/* =========================================================
   Doctor Marketing (DM) brand theme — black & gold
   Loaded last from layouts/partials/css.blade.php
   ========================================================= */
/* Doctor Marketing: no remote fonts (offline shops); the app fonts are self-hosted in public/fonts/dm */

:root {
    --dm-black: #0b0b0b;
    --dm-black-2: #141414;
    --dm-black-3: #1d1d1d;
    --dm-line: #2a2a2a;
    --dm-gold: #d4a62a;
    --dm-gold-light: #f3d27a;
    --dm-gold-dark: #9c7414;
    --dm-gold-grad: linear-gradient(135deg, #f6dc8b 0%, #d4a62a 45%, #a87c12 100%);
    --dm-cream: #faf7ef;

    --theme-700: #d4a62a;
    --theme-800: #b88a1c;
    --theme-900: #8f6a10;
}

/* Arabic-friendly font everywhere */
body, .tw-font-sans, h1, h2, h3, h4, h5, h6, .btn, input, select, textarea, button {
    font-family: "Cairo", "Segoe UI", Tahoma, sans-serif !important;
}

/* ---------- Content area: warm light background ---------- */
body.tw-bg-gray-100, main.tw-bg-gray-100 { background-color: var(--dm-cream) !important; }

/* ---------- Header ---------- */
.theme-header-bg {
    background-image: linear-gradient(90deg, #050505 0%, #161616 100%) !important;
    border-bottom: 1px solid rgba(212, 166, 42, .45) !important;
}
.theme-header-bg .tw-text-white,
.theme-header-bg summary,
.theme-header-bg svg { color: var(--dm-gold-light) !important; }
.theme-btn-bg {
    background: #1b1b1b !important;
    color: var(--dm-gold-light) !important;
    box-shadow: inset 0 0 0 1px rgba(212, 166, 42, .35) !important;
}
.theme-btn-bg:hover { background: #262626 !important; color: #fff !important; }
.theme-btn-bg:focus, .theme-btn-bg:active { background: #000 !important; color: var(--dm-gold) !important; }

/* ---------- Sidebar ---------- */
aside.side-bar { background: var(--dm-black) !important; }
aside.side-bar .tw-border-r,
#side-bar { border-color: var(--dm-line) !important; }

.dm-sidebar-brand {
    background: radial-gradient(120% 140% at 50% 0%, #1e1a10 0%, #0b0b0b 70%) !important;
    border-bottom: 1px solid rgba(212, 166, 42, .35);
    padding: 14px 12px 10px;
    height: auto !important;
    flex-direction: column;
    gap: 4px;
    text-decoration: none !important;
}
.dm-sidebar-brand img { max-width: 150px; max-height: 72px; object-fit: contain; filter: drop-shadow(0 2px 10px rgba(212,166,42,.25)); }
.dm-sidebar-brand .side-bar-heading { color: var(--dm-gold-light) !important; font-size: 13px !important; margin: 0; }

aside.side-bar #sidebar-search { color: #e5e5e5 !important; }
aside.side-bar .tw-bg-gray-100 { background: #161616 !important; border-color: var(--dm-line) !important; }

#side-bar a { color: #d6d3cb !important; }
#side-bar a svg, #side-bar a i { color: #8a8478 !important; }
#side-bar .theme-sidebar-hover:hover,
#side-bar .theme-sidebar-hover:focus {
    background: rgba(212, 166, 42, .10) !important;
    color: var(--dm-gold-light) !important;
}
#side-bar a:hover svg, #side-bar a:hover i { color: var(--dm-gold) !important; }
#side-bar .theme-sidebar-active {
    background: var(--dm-gold-grad) !important;
    color: #111 !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 14px rgba(212, 166, 42, .25);
}
#side-bar a.theme-sidebar-active svg, #side-bar a.theme-sidebar-active i { color: #111 !important; }
#side-bar .theme-sidebar-child-hover:hover,
#side-bar .theme-sidebar-child-active { color: var(--dm-gold) !important; }
#side-bar .chiled, #side-bar [class*="tw-border-l"], #side-bar [class*="tw-border-s"] { border-color: #333 !important; }
#side-bar .tw-text-gray-400 { color: #7c766a !important; }
#side-bar::-webkit-scrollbar { width: 6px; }
#side-bar::-webkit-scrollbar-thumb { background: #3a3220; border-radius: 6px; }

/* ---------- Buttons ---------- */
.btn-primary, .bg-primary, .tw-dw-btn-primary,
.btn-primary:focus, .btn-primary.focus {
    background: var(--dm-gold-grad) !important;
    border-color: var(--dm-gold-dark) !important;
    color: #111 !important;
    font-weight: 700;
}
.btn-primary:hover, .btn-primary:active, .btn-primary.active, .tw-dw-btn-primary:hover {
    background: linear-gradient(135deg, #f3d27a 0%, #c99a20 60%, #8f6a10 100%) !important;
    border-color: #7a5a0c !important;
    color: #000 !important;
}
.tw-bg-gradient-to-r.tw-from-indigo-500,
.tw-bg-gradient-to-r.tw-from-indigo-600 {
    background-image: var(--dm-gold-grad) !important;
    color: #111 !important;
}
.tw-bg-gradient-to-r.tw-from-indigo-500.tw-text-transparent { -webkit-text-fill-color: transparent; }
.btn-dark-gold { background: #111 !important; color: var(--dm-gold-light) !important; border: 1px solid var(--dm-gold) !important; }

/* links, accents */
a { color: #9c7414; }
a:hover, a:focus { color: #6e520c; }
.text-primary { color: #9c7414 !important; }
.nav-tabs-custom > .nav-tabs > li.active { border-top-color: var(--dm-gold) !important; }
.nav-pills > li.active > a, .nav-pills > li.active > a:hover { background: var(--dm-gold) !important; color: #111 !important; }
.pagination > .active > a, .pagination > .active > span,
.pagination > .active > a:hover { background: var(--dm-gold) !important; border-color: var(--dm-gold-dark) !important; color: #111 !important; }
.box.box-primary, .box-primary { border-top-color: var(--dm-gold) !important; }
.form-control:focus, .select2-container--default.select2-container--focus .select2-selection--multiple,
.select2-container--default .select2-selection--single:focus {
    border-color: var(--dm-gold) !important;
    box-shadow: 0 0 0 3px rgba(212, 166, 42, .18) !important;
}
.select2-container--default .select2-results__option--highlighted[aria-selected] { background: var(--dm-gold) !important; color: #111 !important; }
.icheckbox_square-blue.checked, .iradio_square-blue.checked { filter: hue-rotate(175deg) saturate(1.4); }
::selection { background: rgba(212, 166, 42, .35); }

/* Table headers */
table.dataTable thead th, .table > thead > tr > th {
    background: #121212 !important;
    color: var(--dm-gold-light) !important;
    border-color: #2a2a2a !important;
}
.table-striped > tbody > tr:nth-of-type(odd) { background-color: #fbf8f0; }

/* Cards / widgets */
.box, .tw-rounded-xl.tw-bg-white, .tw-rounded-2xl.tw-bg-white { border-color: #ece4cf !important; }
.modal-header { background: #111; color: var(--dm-gold-light); border-bottom: 1px solid var(--dm-gold-dark); }
.modal-header .modal-title, .modal-header .close { color: var(--dm-gold-light) !important; opacity: 1; }

/* POS screen header */
.pos-header, #pos_header, .header-pos { background: #0b0b0b !important; color: var(--dm-gold-light) !important; }

/* ---------- Dashboard welcome banner ---------- */
.dm-welcome {
    position: relative; overflow: hidden;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    background: radial-gradient(120% 160% at 85% 0%, #2a2210 0%, #0b0b0b 60%);
    border: 1px solid rgba(212, 166, 42, .35);
    border-radius: 18px; padding: 18px 24px; margin: 0 0 18px;
    color: #fff; min-height: 150px;
}
.dm-welcome h2 { margin: 0 0 6px; font-size: 26px; font-weight: 800; color: #fff; }
.dm-welcome h2 span { color: var(--dm-gold); }
.dm-welcome p { margin: 0; color: #cfc8b6; font-size: 15px; }
.dm-welcome .dm-welcome-tag { font-size: 12px; letter-spacing: .2em; color: var(--dm-gold-light); margin-top: 10px; opacity: .8; }
.dm-welcome img.dm-mascot { height: 170px; margin: -18px 0 -22px; flex: 0 0 auto; }
.dm-welcome img.dm-logo { height: 70px; flex: 0 0 auto; }
@media (max-width: 767px) {
    .dm-welcome { padding: 16px; }
    .dm-welcome h2 { font-size: 20px; }
    .dm-welcome img.dm-mascot { height: 120px; }
    .dm-welcome img.dm-logo { display: none; }
}

/* ---------- Auth pages (login / register) ---------- */
html.dm-auth, html.dm-auth body {
    background: radial-gradient(90% 70% at 50% 0%, #2a2210 0%, #0b0b0b 55%, #050505 100%) fixed !important;
    min-height: 100%;
}
html.dm-auth .tw-bg-white.tw-rounded-2xl {
    background: rgba(18, 18, 18, .92) !important;
    border: 1px solid rgba(212, 166, 42, .4) !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .6), 0 0 0 1px rgba(212,166,42,.08) inset !important;
    --tw-ring-color: transparent !important;
}
html.dm-auth .tw-bg-white.tw-rounded-2xl h1,
html.dm-auth .tw-bg-white.tw-rounded-2xl .tw-text-black,
html.dm-auth .tw-bg-white.tw-rounded-2xl .tw-text-\[\#1e1e1e\] { color: #f5f0e3 !important; }
html.dm-auth .tw-bg-white.tw-rounded-2xl h2,
html.dm-auth .tw-bg-white.tw-rounded-2xl .tw-text-gray-500 { color: #a9a190 !important; }
html.dm-auth .tw-bg-white.tw-rounded-2xl input[type=text],
html.dm-auth .tw-bg-white.tw-rounded-2xl input[type=password],
html.dm-auth .tw-bg-white.tw-rounded-2xl input[type=email] {
    background: #0d0d0d !important; color: #fff !important; border-color: #3a3426 !important;
}
html.dm-auth .tw-bg-white.tw-rounded-2xl input:focus { border-color: var(--dm-gold) !important; box-shadow: 0 0 0 3px rgba(212,166,42,.2); }
html.dm-auth .show_hide_icon svg { stroke: var(--dm-gold-light) !important; }
html.dm-auth .tw-border-white { border-color: var(--dm-gold) !important; }
html.dm-auth .tw-text-white { color: var(--dm-gold-light) !important; }
html.dm-auth .tw-dw-checkbox { border-color: var(--dm-gold) !important; }
html.dm-auth .tw-dw-checkbox:checked { background-color: var(--dm-gold) !important; }

.dm-auth-logo { display: flex; justify-content: center; margin-bottom: 6px; }
.dm-auth-logo img { width: 190px; max-width: 70%; filter: drop-shadow(0 6px 24px rgba(212,166,42,.35)); }
.dm-auth-mascot { display: flex; align-items: flex-end; justify-content: center; height: 100%; padding-top: 40px; }
.dm-auth-mascot img { width: 100%; max-width: 360px; filter: drop-shadow(0 10px 40px rgba(212,166,42,.18)); }
.dm-auth-tagline { text-align: center; color: var(--dm-gold-light); font-weight: 600; margin-top: 8px; }
.dm-auth-footer {
    text-align: center; margin: 34px auto 10px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 22px;
    font-size: clamp(20px, 2.6vw, 30px); font-weight: 800; color: #f5f0e3; letter-spacing: .02em;
}
.dm-auth-footer .dm-sep { color: var(--dm-gold); opacity: .6; }
.dm-auth-footer a {
    color: var(--dm-gold) !important; direction: ltr; unicode-bidi: isolate; text-decoration: none !important;
    background: var(--dm-gold-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
    font-size: 1.15em; letter-spacing: .06em;
}
@media (max-width: 991px) { .dm-auth-mascot { display: none; } }

/* register wizard */
html.dm-auth .wizard > .steps .current a { background: var(--dm-gold) !important; color: #111 !important; }
html.dm-auth .wizard > .actions a { background: var(--dm-gold) !important; color: #111 !important; }

/* gold buttons keep dark text on auth pages */
html.dm-auth button.tw-bg-gradient-to-r,
html.dm-auth button.tw-bg-gradient-to-r.tw-text-white { color: #111 !important; font-weight: 800 !important; }

/* ---------- Landing page (/) ---------- */
.dm-landing {
    max-width: 1100px; margin: 40px auto 0; padding: 0 16px;
    display: flex; align-items: center; justify-content: space-between; gap: 32px;
}
.dm-landing-text { flex: 1 1 auto; text-align: center; }
.dm-landing-logo { width: 300px; max-width: 80%; filter: drop-shadow(0 8px 30px rgba(212,166,42,.35)); }
.dm-landing-title { font-size: clamp(28px, 4.5vw, 48px); font-weight: 800; color: #fff !important; margin: 18px 0 6px; }
.dm-landing-title span { color: var(--dm-gold); }
.dm-landing-sub { color: #e8dfc6; font-size: clamp(16px, 2.2vw, 22px); margin: 0; }
.dm-landing-en { color: var(--dm-gold-light); letter-spacing: .3em; font-size: 13px; margin-top: 8px; opacity: .8; }
.dm-landing-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 26px 0; }
.dm-btn { min-width: 150px; height: 50px; padding: 0 26px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 16px; text-decoration: none !important; transition: transform .15s, box-shadow .15s; }
.dm-btn:hover { transform: translateY(-1px); }
.dm-btn-gold { background: var(--dm-gold-grad); color: #111 !important; box-shadow: 0 8px 24px rgba(212,166,42,.3); }
.dm-btn-outline { border: 1.5px solid var(--dm-gold); color: var(--dm-gold-light) !important; background: rgba(0,0,0,.35); }
.dm-landing-features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.dm-landing-features div { background: rgba(20,20,20,.85); border: 1px solid rgba(212,166,42,.3); border-radius: 14px; padding: 14px 8px; display: flex; flex-direction: column; gap: 2px; }
.dm-landing-features b { color: var(--dm-gold-light); font-size: 16px; }
.dm-landing-features span { color: #a9a190; font-size: 13px; }
.dm-landing-art { flex: 0 0 38%; text-align: center; }
.dm-landing-art img { width: 100%; max-width: 420px; }
@media (max-width: 991px) {
    .dm-landing { flex-direction: column-reverse; margin-top: 70px; gap: 0; }
    .dm-landing-art img { max-width: 240px; }
    .dm-landing-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- POS screen ---------- */
.pos-header > div.tw-bg-white {
    background: linear-gradient(90deg, #050505, #171717) !important;
    border: 1px solid rgba(212, 166, 42, .4);
    color: var(--dm-gold-light);
}
.pos-header > div.tw-bg-white strong,
.pos-header > div.tw-bg-white p { color: var(--dm-gold-light) !important; }
.pos-header button.tw-bg-white, .pos-header a.tw-bg-white {
    background: #1a1a1a !important; border-color: #3a3220 !important; color: var(--dm-gold-light) !important;
}
.pos-header [class*="tw-bg-[#646EE4]"],
.pos-form-actions [class*="tw-bg-[#646EE4]"] {
    background: var(--dm-gold-grad) !important; color: #111 !important;
}
.pos-header [class*="tw-bg-[#646EE4]"] .text-white,
.pos-header [class*="tw-bg-[#646EE4]"] svg { color: #111 !important; }
.pos-form-actions [class*="tw-bg-[#646EE4]"] { color: #111 !important; }
.pos-form-actions { background: #0b0b0b !important; border-top: 1px solid rgba(212,166,42,.45) !important; }
.pos-form-actions .tw-text-gray-700 { color: #e8dfc6 !important; }
.pos-form-actions [class*="tw-bg-[#001F3E]"] {
    background: #1c1c1c !important; box-shadow: inset 0 0 0 1px var(--dm-gold); color: var(--dm-gold-light) !important;
}
.pos-form-actions [class*="tw-bg-[rgb(40,183,123)]"] {
    background: var(--dm-gold-grad) !important; color: #111 !important;
}
.pos-form-actions .pos-footer-divider { background: #333 !important; }
#pos_total_payable, .pos-total-payable, #total_payable { color: var(--dm-gold) !important; }
.pos-product-tile:hover, .product_box:hover { border-color: var(--dm-gold) !important; box-shadow: 0 4px 16px rgba(212,166,42,.2) !important; }

/* =========================================================
   Split auth layout (landing "/" + login) — matches DM mockups
   ========================================================= */

html.dm-auth body:has(.dm-split) .right-col { padding-top: 0 !important; padding-bottom: 0 !important; }
html.dm-auth body:has(.dm-split-login) a[href*="/business/register"].tw-text-white,
html.dm-auth body:has(.dm-split-login) .tw-border-2.tw-rounded-full,
html.dm-auth body:has(.dm-split-landing) .tw-border-2.tw-rounded-full,
html.dm-auth body:has(.dm-split-landing) a[href*="/login"].tw-text-white { display: none !important; }

.dm-split {
    position: relative; z-index: 1;
    display: grid;
    grid-template-columns: minmax(380px, 560px) minmax(300px, 1fr) minmax(320px, 1.05fr);
    grid-template-areas: "card hero art";
    align-items: center; gap: 24px;
    min-height: calc(100vh - 90px);
    max-width: 1680px; margin: 0 auto; padding: 90px 3vw 0;
}
.dm-split-card { grid-area: card; display: flex; justify-content: center; }
.dm-split-hero { grid-area: hero; text-align: center; display: flex; flex-direction: column; align-items: center; }
.dm-split-art { grid-area: art; position: relative; align-self: end; display: flex; justify-content: center; }
.dm-split-art img { width: 100%; max-width: 640px; max-height: calc(100vh - 120px); object-fit: contain; object-position: bottom; display: block;
    -webkit-mask-image: linear-gradient(to top, transparent 0, #000 8%); mask-image: linear-gradient(to top, transparent 0, #000 8%); }
.dm-split-landing .dm-split-art { align-self: center; }

/* hero */
.dm-hero-logo { width: min(300px, 70%); filter: drop-shadow(0 10px 34px rgba(212,166,42,.35)); margin-bottom: 14px; }
.dm-hero-title { color: #fff !important; font-weight: 800 !important; font-size: clamp(26px, 2.6vw, 40px); line-height: 1.35; margin: 0 0 14px; }
.dm-hero-title span { color: transparent; background: var(--dm-gold-grad); -webkit-background-clip: text; background-clip: text; font-size: 1.25em; }
.dm-hero-title-lg { font-size: clamp(30px, 3.4vw, 56px); text-align: start; align-self: stretch; }
.dm-hero-title-lg span { font-size: 1em; }
.dm-split-landing .dm-split-hero { align-items: flex-start; text-align: start; }
.dm-hero-sub { color: #e8dfc6; font-size: clamp(15px, 1.25vw, 19px); line-height: 1.8; margin: 0 0 26px; }

.dm-features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); width: 100%; max-width: 560px; }
.dm-feature { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 4px 8px; text-align: center; }
.dm-feature + .dm-feature { border-inline-start: 1px solid rgba(212,166,42,.22); }
.dm-feature-ico { width: 58px; height: 58px; border-radius: 14px; display: grid; place-items: center;
    background: linear-gradient(180deg, #1a160c, #0c0c0c); border: 1px solid rgba(212,166,42,.45); color: var(--dm-gold); box-shadow: 0 6px 18px rgba(0,0,0,.5); }
.dm-feature-ico svg { width: 30px; height: 30px; }
.dm-feature-text { color: #e8dfc6; font-size: 13.5px; line-height: 1.6; font-weight: 600; }

.dm-script { position: absolute; inset-inline-end: 6%; bottom: 6%; font-family: "Great Vibes", cursive !important; color: var(--dm-gold-light);
    font-size: clamp(24px, 2.2vw, 36px); transform: rotate(-8deg); direction: ltr; white-space: nowrap;
    text-shadow: 0 2px 14px rgba(212,166,42,.4); }
.dm-script::after { content: ""; display: block; height: 2px; margin-top: 4px; background: linear-gradient(90deg, transparent, var(--dm-gold), transparent); }

/* card */
.dm-card {
    width: 100%; max-width: 520px; padding: 38px 40px 34px; border-radius: 26px; position: relative;
    background: linear-gradient(180deg, rgba(22,20,14,.92), rgba(10,10,10,.96));
    border: 1px solid rgba(212,166,42,.55);
    box-shadow: 0 30px 80px rgba(0,0,0,.65), 0 0 40px rgba(212,166,42,.08), inset 0 1px 0 rgba(255,230,160,.08);
}
.dm-card::after { content: ""; position: absolute; left: 12%; right: 12%; bottom: -1px; height: 2px;
    background: linear-gradient(90deg, transparent, #f6dc8b, transparent); filter: blur(.5px); }
.dm-card-landing { padding-top: 46px; padding-bottom: 46px; }
.dm-card-logo { display: flex; justify-content: center; margin-bottom: 10px; }
.dm-card-logo img { width: 190px; filter: drop-shadow(0 6px 22px rgba(212,166,42,.35)); }
.dm-card-title { text-align: center; color: #fff !important; font-weight: 800 !important; font-size: 28px; margin: 6px 0 6px; }
.dm-card-sub { text-align: center; color: #bdb4a0; font-size: 14.5px; margin: 0 0 26px; }

.dm-field { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; margin: 0 0 14px !important;
    background: #0c0c0c; border: 1px solid #3a3426; border-radius: 14px; padding: 8px 16px; min-height: 64px; transition: border-color .15s, box-shadow .15s; font-weight: 400; }
.dm-field:focus-within { border-color: var(--dm-gold); box-shadow: 0 0 0 3px rgba(212,166,42,.16); }
.dm-field.has-error { border-color: #c0392b; }
.dm-field-icon { color: #bdb4a0; flex: 0 0 auto; order: 2; }
.dm-field-icon svg, .dm-eye svg { width: 22px; height: 22px; display: block; }
.dm-field-body { flex: 1 1 auto; display: flex; flex-direction: column; min-width: 0; }
.dm-field-label { color: #a9a190; font-size: 12.5px; line-height: 1.4; }
.dm-field input { all: unset; color: #fff; font-size: 15.5px; font-family: inherit; width: 100%; line-height: 1.6; }
.dm-field input::placeholder { color: #6f6858; }
.dm-eye { order: 3; background: none; border: 0; color: var(--dm-gold-light); padding: 4px; cursor: pointer; }
.dm-error { display: block; color: #ff7b6b; font-size: 13px; margin: -6px 4px 12px; font-weight: 600; }

.dm-row { display: flex; align-items: center; justify-content: space-between; margin: 6px 2px 20px; gap: 10px; }
.dm-check { display: inline-flex; align-items: center; gap: 8px; color: #e8dfc6; font-size: 14px; cursor: pointer; margin: 0; font-weight: 600; }
.dm-check input { appearance: none; -webkit-appearance: none; width: 20px; height: 20px; border-radius: 5px; border: 1.5px solid var(--dm-gold); background: #0c0c0c; margin: 0; display: grid; place-items: center; cursor: pointer; }
.dm-check input:checked { background: var(--dm-gold-grad); }
.dm-check input:checked::after { content: ""; width: 10px; height: 6px; border: 2px solid #111; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.dm-link { color: var(--dm-gold) !important; font-size: 13.5px; text-decoration: underline !important; text-underline-offset: 3px; }

.dm-btn-block { width: 100%; height: 58px; justify-content: center; position: relative; font-size: 17px; border: 0; cursor: pointer; }
.dm-btn-block .dm-btn-ico { position: absolute; inset-inline-end: 18px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; display: grid; place-items: center; }
.dm-btn-gold .dm-btn-ico { background: rgba(0,0,0,.85); color: var(--dm-gold-light); border-radius: 50%; }
.dm-btn-ico svg { width: 18px; height: 18px; }
.dm-btn-outline .dm-btn-ico { color: var(--dm-gold); }
.dm-btn-outline .dm-btn-ico svg { width: 24px; height: 24px; }
.dm-btn-block:hover { transform: translateY(-1px); }

.dm-or { display: flex; align-items: center; gap: 14px; color: #8a8270; margin: 22px 0; font-size: 14px; }
.dm-or::before, .dm-or::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, #4a4030, transparent); }

/* decorative gold curves */
.dm-curves { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.dm-curves i { position: absolute; border-radius: 50%; border: 2px solid transparent; }
.dm-curves i:nth-child(1) { width: 1400px; height: 1400px; right: -1050px; top: -500px; border-left-color: rgba(212,166,42,.55); filter: drop-shadow(0 0 8px rgba(212,166,42,.5)); }
.dm-curves i:nth-child(2) { width: 1100px; height: 1100px; right: -900px; bottom: -650px; border-top-color: rgba(212,166,42,.45); border-left-color: rgba(212,166,42,.25); filter: drop-shadow(0 0 10px rgba(212,166,42,.5)); }
.dm-curves i:nth-child(3) { width: 900px; height: 900px; right: -700px; bottom: -600px; border-top-color: rgba(246,220,139,.35); }
html.dm-auth body:has(.dm-split) .dm-auth-footer { position: relative; z-index: 1; margin-top: 10px; padding-bottom: 18px; }

/* responsive */
@media (max-width: 1280px) {
    .dm-split { grid-template-columns: minmax(360px, 480px) 1fr; grid-template-areas: "card hero"; }
    .dm-split-art { display: none; }
}
@media (max-width: 860px) {
    .dm-split { grid-template-columns: 1fr; grid-template-areas: "hero" "card"; padding: 84px 16px 0; gap: 22px; min-height: 0; }
    .dm-split-landing .dm-split-hero { align-items: center; text-align: center; }
    .dm-hero-title-lg { text-align: center; }
    .dm-hero-logo { width: 200px; }
    .dm-card { padding: 28px 20px; }
    .dm-features { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 16px; }
    .dm-feature:nth-child(3) { border-inline-start: 0; }
    .dm-split-login .dm-split-hero .dm-features { display: none; }
    .dm-curves { display: none; }
}

/* fixes */
.dm-btn-outline.dm-btn-block { border: 1.5px solid var(--dm-gold) !important; background: rgba(0,0,0,.4); }
.dm-btn-outline.dm-btn-block:hover { background: rgba(212,166,42,.08); }
.dm-split-art { flex-direction: column; align-items: center; }
.dm-split-art img {
    -webkit-mask-image: radial-gradient(ellipse 72% 70% at 50% 48%, #000 62%, transparent 100%);
            mask-image: radial-gradient(ellipse 72% 70% at 50% 48%, #000 62%, transparent 100%);
}
.dm-split-login .dm-split-art img {
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 10%, #000 88%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 8%, #000 92%, transparent 100%);
    -webkit-mask-composite: source-in; mask-composite: intersect;
    mask-image: linear-gradient(to right, transparent 0, #000 10%, #000 88%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 8%, #000 92%, transparent 100%);
}
.dm-script { position: static; transform: rotate(-6deg); margin-top: 6px; align-self: flex-start; margin-inline-start: 0; padding-inline-start: 10%; }
html[dir="rtl"] .dm-script { align-self: flex-end; padding-inline-start: 0; padding-inline-end: 8%; }
.dm-split-landing .dm-split-art img {
    -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 62%, transparent 100%);
            mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 62%, transparent 100%);
}
@media (max-width: 860px) {
    .dm-split .dm-card-logo { display: none; }
    .dm-split-login .dm-hero-sub { margin-bottom: 0; }
    .dm-split-landing .dm-split-hero::before { content: ""; display: block; width: 200px; height: 140px; margin: 0 auto 10px;
        background: url('../img/brand/logo.png') center / contain no-repeat; }
    .dm-auth-footer { font-size: 18px; }
}

/* browser autofill: keep the dark field + light text instead of Chrome's blue/yellow fill */
.dm-field input:-webkit-autofill,
.dm-field input:-webkit-autofill:hover,
.dm-field input:-webkit-autofill:focus,
.dm-field input:-webkit-autofill:active,
html.dm-auth input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px #0c0c0c inset !important;
            box-shadow: 0 0 0 1000px #0c0c0c inset !important;
    -webkit-text-fill-color: #ffffff !important;
    caret-color: var(--dm-gold);
    border-radius: 6px;
    transition: background-color 9999s ease-out 0s;
    font-family: inherit !important;
    font-size: 15.5px !important;
}
.dm-field input:autofill { background: #0c0c0c !important; color: #fff !important; }
.dm-field input { background: transparent; border: 0; outline: none; }

/* ---------- Login v2: full-height scene on the left ---------- */
.dm-login-bg {
    position: fixed; top: 0; bottom: 0; left: 0; width: 46vw; z-index: 0; pointer-events: none;
    background: url('../img/brand/login-bg.jpg') left center / cover no-repeat;
    -webkit-mask-image: linear-gradient(to right, #000 55%, transparent 100%);
            mask-image: linear-gradient(to right, #000 55%, transparent 100%);
}
.dm-login-bg::after { content: ""; position: absolute; inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,.25), transparent 20%, transparent 80%, rgba(0,0,0,.55)); }
.dm-split-login { grid-template-columns: minmax(380px, 520px) minmax(300px, 1fr) minmax(280px, 1fr); }
.dm-split-login .dm-split-art { visibility: hidden; }
.dm-split-login .dm-split-hero { align-items: flex-start; text-align: start; text-shadow: 0 2px 18px rgba(0,0,0,.8); }
.dm-split-login .dm-card { max-width: 500px; }
.dm-split-login .dm-card-title { font-size: 24px; }
@media (max-width: 1280px) {
    .dm-split-login { grid-template-columns: minmax(360px, 480px) 1fr; }
    .dm-login-bg { width: 50vw; opacity: .45; }
}
@media (max-width: 860px) {
    .dm-login-bg { width: 100vw; opacity: .25; -webkit-mask-image: none; mask-image: none; background-position: center top; }
    .dm-split-login .dm-split-hero { align-items: center; text-align: center; }
    .dm-split-login .dm-split-hero::before { content: ""; display: block; width: 200px; height: 130px; margin: 0 auto 6px;
        background: url('../img/brand/logo.png') center / contain no-repeat; }
}
html.dm-auth .right-col > .row > .tw-absolute { z-index: 5; }
@media (max-width: 860px) {
    .dm-split-login { grid-template-columns: minmax(0, 1fr); grid-template-areas: "hero" "card"; }
}

/* ---------- Landing v2 ("/") — full scene + right panel ---------- */
.dm-landing-bg {
    position: fixed; top: 0; bottom: 0; left: 0; width: 68vw; z-index: 0; pointer-events: none;
    background: url('../img/brand/landing-bg.jpg') left center / cover no-repeat;
    -webkit-mask-image: linear-gradient(to right, #000 62%, transparent 100%);
            mask-image: linear-gradient(to right, #000 62%, transparent 100%);
}
html.dm-auth body:has(.dm-home) .right-col { padding-top: 0 !important; padding-bottom: 0 !important; }
html.dm-auth body:has(.dm-home) .tw-border-2.tw-rounded-full,
html.dm-auth body:has(.dm-home) a[href*="/login"].tw-text-white { display: none !important; }
.dm-home { position: relative; z-index: 1; min-height: calc(100vh - 80px); display: flex; align-items: center; justify-content: flex-start; padding: 60px 3vw 0; }
.dm-home-panel { width: min(560px, 100%); display: flex; flex-direction: column; align-items: center; text-align: center; }
.dm-home-logo { width: min(260px, 70%); filter: drop-shadow(0 8px 30px rgba(212,166,42,.35)); margin-bottom: 18px; }
.dm-home-title { color: #fff !important; font-weight: 800 !important; font-size: clamp(28px, 2.6vw, 42px); line-height: 1.5; margin: 0 0 14px; text-shadow: 0 3px 18px rgba(0,0,0,.8); }
.dm-home-title span { color: transparent; background: var(--dm-gold-grad); -webkit-background-clip: text; background-clip: text; }
.dm-home-sub { color: #e8dfc6; font-size: clamp(15px, 1.2vw, 18px); margin: 0 0 26px; }

.dm-features-boxed { gap: 14px; max-width: 540px; }
.dm-features-boxed .dm-feature { border: 1px solid rgba(212,166,42,.5) !important; border-radius: 14px; padding: 16px 6px 12px;
    background: linear-gradient(180deg, rgba(26,22,12,.9), rgba(8,8,8,.92)); box-shadow: 0 8px 20px rgba(0,0,0,.45); }
.dm-features-boxed .dm-feature-ico { width: auto; height: auto; background: none; border: 0; box-shadow: none; }
.dm-features-boxed .dm-feature-ico svg { width: 44px; height: 44px; }
.dm-features-boxed .dm-feature-text { font-size: 14px; }

.dm-home-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin: 30px 0 22px; width: 100%; }
.dm-home-actions .dm-btn { flex: 1 1 200px; max-width: 240px; height: 56px; gap: 10px; border-radius: 12px; }
.dm-home-actions .dm-btn svg { width: 22px; height: 22px; }
.dm-home-actions .dm-btn-outline { border: 1.5px solid var(--dm-gold) !important; }

.dm-home-script { display: flex; align-items: flex-end; gap: 14px; color: var(--dm-gold-light); margin-top: 10px; direction: ltr; }
.dm-home-script span { font-family: "Great Vibes", cursive !important; font-size: clamp(26px, 2.2vw, 36px); transform: rotate(-6deg);
    text-shadow: 0 2px 14px rgba(212,166,42,.4); border-bottom: 2px solid rgba(212,166,42,.6); padding-bottom: 2px; }
.dm-home-script svg { width: 64px; height: 48px; color: var(--dm-gold); }

@media (max-width: 1100px) {
    .dm-landing-bg { width: 100vw; opacity: .35; -webkit-mask-image: none; mask-image: none; }
    .dm-home { justify-content: center; }
}
@media (max-width: 860px) {
    .dm-home { padding: 80px 16px 0; min-height: 0; }
    .dm-landing-bg { opacity: .28; background-position: 30% center; }
    .dm-features-boxed { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dm-features-boxed .dm-feature { border-inline-start: 1px solid rgba(212,166,42,.5) !important; }
}
html.dm-auth body:has(.dm-home) .dm-auth-footer { position: relative; z-index: 2; }

/* ---------- Business register wizard ---------- */
.dm-register > div.tw-bg-white {
    background: linear-gradient(180deg, rgba(22,20,14,.95), rgba(10,10,10,.97)) !important;
    border: 1px solid rgba(212,166,42,.55); border-radius: 24px !important;
    box-shadow: 0 30px 80px rgba(0,0,0,.65), 0 0 40px rgba(212,166,42,.08) !important;
    --tw-ring-color: transparent !important; padding: 26px 22px !important; position: relative;
}
.dm-register > div.tw-bg-white::after { content: ""; position: absolute; left: 12%; right: 12%; bottom: -1px; height: 2px; background: linear-gradient(90deg, transparent, #f6dc8b, transparent); }
.dm-register-logo { width: 170px; margin: 0 auto 6px; filter: drop-shadow(0 6px 22px rgba(212,166,42,.35)); }
.dm-register h1 { color: #fff !important; font-weight: 800 !important; font-size: 24px !important; }
.dm-register h2, .dm-register .tw-text-gray-500 { color: #bdb4a0 !important; }

html.dm-auth .dm-register .wizard > .content { background: transparent !important; border: 0; min-height: 0; }
.dm-register .wizard > .content > .body { width: 100%; position: relative; padding: 10px 4px; }
.dm-register .wizard > .content > .body h3, .dm-register legend, .dm-register h3, .dm-register h4 { color: var(--dm-gold-light) !important; font-weight: 800; border-color: #3a3426 !important; }
.dm-register label, .dm-register .control-label, .dm-register .text-black, .dm-register p, .dm-register .help-block { color: #e8dfc6 !important; }
.dm-register .text-danger, .dm-register label.error, .dm-register .error { color: #ff7b6b !important; }

/* steps */
.dm-register .wizard > .steps a, .dm-register .wizard > .steps a:hover, .dm-register .wizard > .steps a:active {
    background: #151515 !important; color: #8a8270 !important; border: 1px solid #2f2a1e; border-radius: 12px !important; font-weight: 700;
}
.dm-register .wizard > .steps .current a, .dm-register .wizard > .steps .current a:hover {
    background: var(--dm-gold-grad) !important; color: #111 !important; border-color: transparent;
}
.dm-register .wizard > .steps .done a, .dm-register .wizard > .steps .done a:hover {
    background: #1d1a10 !important; color: var(--dm-gold-light) !important; border-color: rgba(212,166,42,.5);
}
.dm-register .wizard > .steps .number { color: inherit; }

/* inputs */
.dm-register .form-control,
.dm-register .select2-container--default .select2-selection--single,
.dm-register .select2-container--default .select2-selection--multiple {
    background: #0c0c0c !important; color: #fff !important; border: 1px solid #3a3426 !important; height: 42px; border-radius: 0 10px 10px 0;
    box-shadow: none !important;
}
html[dir="rtl"] .dm-register .input-group .form-control { border-radius: 10px 0 0 10px; }
.dm-register .form-control:focus { border-color: var(--dm-gold) !important; box-shadow: 0 0 0 3px rgba(212,166,42,.16) !important; }
.dm-register .form-control::placeholder { color: #6f6858 !important; }
.dm-register .form-control[readonly], .dm-register .form-control[disabled] { background: #121212 !important; color: #cfc8b6 !important; }
.dm-register .select2-container--default .select2-selection--single .select2-selection__rendered { color: #fff !important; line-height: 40px; }
.dm-register .select2-container--default .select2-selection--single .select2-selection__arrow { height: 40px; }
.dm-register .select2-container--default .select2-selection--single .select2-selection__arrow b { border-top-color: var(--dm-gold) !important; }
.dm-register .input-group-addon {
    background: #17140c !important; color: var(--dm-gold) !important; border: 1px solid #3a3426 !important; min-width: 44px;
}
html[dir="rtl"] .dm-register .input-group-addon:first-child { border-radius: 0 10px 10px 0; border-left: 0 !important; }
.dm-register .input-group-addon i { color: var(--dm-gold) !important; }
.dm-register input:-webkit-autofill, .dm-register input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px #0c0c0c inset !important; -webkit-text-fill-color: #fff !important; transition: background-color 9999s ease-out 0s;
}
/* file input */
.dm-register .file-caption, .dm-register .file-caption-main .form-control { background: #0c0c0c !important; color: #cfc8b6 !important; }
.dm-register .btn-file, .dm-register .file-input .btn-primary { background: var(--dm-gold-grad) !important; color: #111 !important; border: 0 !important; font-weight: 700; }
.dm-register input[type=checkbox] { accent-color: #d4a62a; }

/* prev / next / finish */
.dm-register .wizard > .actions a, .dm-register .wizard > .actions a:hover, .dm-register .wizard > .actions a:active {
    background: var(--dm-gold-grad) !important; color: #111 !important; border-radius: 12px !important; font-weight: 800; padding: .7em 1.8em; border: 0 !important;
}
.dm-register .wizard > .actions .disabled a, .dm-register .wizard > .actions .disabled a:hover {
    background: transparent !important; color: #8a8270 !important; border: 1.5px solid #3a3426 !important;
}
.dm-register .wizard > .actions li:first-child a { background: transparent !important; color: var(--dm-gold-light) !important; border: 1.5px solid var(--dm-gold) !important; }
.dm-register .wizard > .actions li.disabled:first-child a { color: #6f6858 !important; border-color: #3a3426 !important; }

/* dropdowns rendered on <body> (select2 / datepicker) */
html.dm-auth .select2-dropdown { background: #111 !important; border-color: #3a3426 !important; color: #e8dfc6; }
html.dm-auth .select2-search__field { background: #0c0c0c !important; color: #fff !important; border-color: #3a3426 !important; }
html.dm-auth .select2-results__option { color: #e8dfc6; }
html.dm-auth .select2-results__option[aria-selected=true] { background: #1d1a10 !important; color: var(--dm-gold-light) !important; }
html.dm-auth .datepicker { background: #111 !important; color: #e8dfc6; border-color: #3a3426; }
html.dm-auth .datepicker table tr td.active, html.dm-auth .datepicker table tr td.active:hover { background: var(--dm-gold) !important; color: #111 !important; }
html.dm-auth .datepicker table tr td.day:hover, html.dm-auth .datepicker th:hover { background: #1d1a10 !important; }
@media (max-width: 767px) {
    .dm-register { padding: 0 !important; margin-top: 70px !important; }
    .dm-register > div.tw-bg-white { padding: 18px 10px !important; }
    .dm-register .wizard > .steps > ul > li { width: 100% !important; }
}
@media (max-width: 767px) { .dm-register .input-group, .dm-register .form-group { width: 100% !important; } .dm-register .col-md-6, .dm-register .col-md-4 { padding-left: 4px; padding-right: 4px; } }

/* ---------- single-card auth pages (forgot / reset password) ---------- */
html.dm-auth body:has(.dm-solo) .right-col { padding-top: 0 !important; }
.dm-solo { position: relative; z-index: 1; min-height: calc(100vh - 120px); display: flex; align-items: center; justify-content: center; padding: 90px 16px 20px; }
.dm-solo .dm-card { max-width: 480px; }
.dm-alert { border-radius: 12px; padding: 12px 14px; margin: 0 0 16px; font-size: 14px; font-weight: 600; }
.dm-alert-ok { background: #102a1c; border: 1px solid #1f5a3b; color: #8be3ad; }
.dm-field input[dir="ltr"] { text-align: right; }
.dm-field input[dir="ltr"]:placeholder-shown { text-align: right; }
/* long button labels: leave room for the round icon and allow two lines */
.dm-btn-block { height: auto !important; min-height: 58px; padding: 10px 56px !important; line-height: 1.35; text-align: center; }
