/* ═══ یکپارچگی طراحی — «مروارید و طلا» — [۱۴۰۵/۰۸/۰۳ · مالک: «طراحی‌ها در هر صفحه متفاوت است؛ اصلاً یکپارچگی UI/UX نیست»]
   یک زبان بصری برای همهٔ صفحه‌ها: زمینهٔ مرواریدی روشن، متن سرمه‌ای، جزئیات طلایی، اقدام آبی یکسان.
   سطح‌های تیره (سربرگ صفحه‌ها، پانویس، پنل ورود، تابلو، ...) روشن شدند؛ فقط عکس‌ها و پوشش هیرو تیره می‌مانند.
   آخرین فایل CSS در base.html و bs/base.html است. داشبورد و صفحهٔ سالن همین توکن‌ها را دارند. */
:root{--u-ink:#141A3A;--u-ink2:#3C4264;--u-mut:#6B7194;--u-gold:#B78D50;--u-gold-ink:#8A6A2F;--u-act:#8A6A2F;--u-act2:#8A6A2F;
  --u-pearl:linear-gradient(180deg,#FFFDF9 0%,#F7F1E8 100%);--u-hair:rgba(20,26,58,.09);
  --u-card:#fff;--u-glow:radial-gradient(520px 260px at 100% 0,rgba(138,106,47,.10),transparent 70%),radial-gradient(460px 240px at 0 100%,rgba(183,141,80,.18),transparent 70%);
  --u-shadow:0 1px 0 rgba(20,26,58,.03),0 30px 60px -44px rgba(20,26,58,.45)}

/* ── سطح‌های تیره ← مرواریدی ── */
html body :is(.page-head,.page-head.in,.b2b-hero,.gd-hero,.zau-art,.stat-band,.zpr-flow,.zsbd,.zsbd-board,.zsg,.zsl-side,.ix-foot,footer.pt-5){
  background:var(--u-glow),var(--u-pearl)!important;color:var(--u-ink)!important;border-color:var(--u-hair)!important}
html body :is(.page-head,.page-head.in,.b2b-hero,.gd-hero,.zau-art,.stat-band){border:1px solid var(--u-hair);box-shadow:var(--u-shadow)}
html body :is(.page-head,.page-head.in){border-radius:28px}
html body :is(.zsbd-board){border:1px solid var(--u-hair);box-shadow:var(--u-shadow)}
html body :is(.ix-foot,footer.pt-5){border-top:1px solid var(--u-hair);box-shadow:none}

/* متن‌های داخل سطح‌های بالا: سرمه‌ای؛ جز دکمه‌ها و برچسب‌های رنگی */
html body :is(.page-head,.b2b-hero,.gd-hero,.zau-art,.stat-band,.zpr-flow,.zsbd,.zsg,.zsl-side,.ix-foot,footer.pt-5)
  :is(h1,h2,h3,h4,p,li,span,small,b,strong,label,dt,dd,legend,summary,div,em,i):not(:is([class*="btn"],[class*="btn"] *,[class*="chip"],.zsbd-legend i,.s-free,.s-hold,.s-done,.zsbd-live,.zsbd-live *,[class*="stat-n"],.grad-text)){color:var(--u-ink2)}
html body :is(.page-head,.b2b-hero,.gd-hero,.zau-art,.zsbd,.zsg,.zsl-side) :is(h1,h2,h3){color:var(--u-ink)!important}
html body :is(.page-head,.b2b-hero,.gd-hero,.zau-art,.zsbd,.zsg,.zsl-side,.stat-band) :is(h1,h2,h3) :is(em,b,.grad-text,strong){color:var(--u-act)!important;-webkit-text-fill-color:currentColor!important;background:none!important}
html body :is(.page-head,.b2b-hero,.gd-hero,.zau-art,.zsbd,.zsg,.zsl-side) :is(.zsb-kick,.zsx-eye,[class*="kick"],[class*="eyebrow"]){color:var(--u-gold-ink)!important}
html body :is(.ix-foot,footer.pt-5) a{color:var(--u-ink2)!important}
html body :is(.ix-foot,footer.pt-5) a:hover{color:var(--u-act)!important}
html body :is(.ix-foot,footer.pt-5) :is(h3,h4,h5,.ix-foot-h){color:var(--u-ink)!important}
html body :is(.ix-foot,footer.pt-5) :is(.border-t,hr,[class*="border"]){border-color:var(--u-hair)!important}
html body :is(.zsbd-row,.zsbd-th){border-color:var(--u-hair)!important;color:var(--u-ink2)}
html body .zsbd-bar{background:rgba(20,26,58,.04)!important;color:var(--u-ink)!important}
html body .stat-band :is(b,strong,.num){color:var(--u-act)!important}

/* ── اقدام یکسان: آبی برند ── */
html body :is(.zsb-btn:not(.ghost):not(.gold),.zh-btn-primary,.btn-primary,button.zsb-btn.lg){background:linear-gradient(120deg,var(--u-act2),var(--u-act) 60%,#1C1C20)!important;color:#fff!important;border:0!important;box-shadow:0 14px 28px -14px rgba(138,106,47,.6)}
html body :is(.zsb-btn.ghost,.zh-btn-ghost){background:var(--u-card)!important;color:var(--u-ink)!important;border:1px solid var(--u-hair)!important}
html body .zsb-btn.gold{background:linear-gradient(120deg,#E7C78F,#C9A46C)!important;color:#241d29!important;border:0!important}
html body :is(a,button):focus-visible{outline:2px solid var(--u-gold);outline-offset:2px}

/* ── قلم و ریتم یکسان ── */
html body{font-family:'Vazirmatn RD UI FD',Vazirmatn,Tahoma,sans-serif}
html body :is(h1,h2,h3){letter-spacing:-.2px;text-wrap:balance}
html body :is(input[type=text],input[type=tel],input[type=email],input[type=search],input[type=number],input[type=password],select,textarea):focus{border-color:var(--u-gold)!important;box-shadow:0 0 0 4px rgba(183,141,80,.16)!important;outline:0}
html body :is(.card,.glass-card,.modal-panel,.zh-card){border-radius:22px}

/* ── تیره‌شدن خودکار نداریم ── */

/* ── رفع تداخل با zin.css (سربرگ صفحه‌های داخلی و پانویس) — ویژگی بالاتر ── */
html body main.page .page-head,html body .page>.container>.page-head{color:var(--u-ink)!important;background:var(--u-glow),var(--u-pearl)!important;border:1px solid var(--u-hair);box-shadow:var(--u-shadow)}
html body main.page .page-head::before{opacity:.5}
html body main.page .page-head::after{border-color:rgba(183,141,80,.55)!important;opacity:.7}
html body main.page .page-head h1{color:var(--u-ink)!important;font-weight:400!important}
html body main.page .page-head h1 .grad-text{color:var(--u-act)!important;-webkit-text-fill-color:var(--u-act)!important;background:none!important;font-weight:800}
html body main.page .page-head .sec-kicker{color:var(--u-gold-ink)!important}
html body main.page .page-head .sec-sub,html body main.page .page-head p{color:var(--u-mut)!important}
html body main.page .page-head a{color:var(--u-act)!important}
html body .ix-foot.zinf{color:var(--u-ink2)!important;background:var(--u-glow),var(--u-pearl)!important;border-top:1px solid var(--u-hair)!important}
html body .zinf h4,html body .zinf-brand{color:var(--u-ink)!important}
html body .zinf p,html body .zinf ul a,html body .zinf-bot,html body .zinf-bot a{color:var(--u-ink2)!important}
html body .zinf ul a:hover,html body .zinf-bot a:hover{color:var(--u-act)!important}
html body .zinf-bot{border-top-color:var(--u-hair)!important}
html body .zinf-brand span{background:var(--u-card)!important;border-color:var(--u-hair)!important}
html body .zinf .zsoc a,html body .zinf .zbot{color:var(--u-ink)!important;background:var(--u-card)!important;border-color:var(--u-hair)!important}
html body :is(.b2b-hero,.gd-hero) :is(.btn-ghost,a:not([class*="btn-primary"]):not(.zsb-btn)){color:var(--u-ink)!important;background:var(--u-card)!important;border:1px solid var(--u-hair)!important}
html body .gd-hero a.zsb-btn,html body .gd-hero a[class*="primary"]{color:#fff!important}

/* ═══ تم تیره (انتخابی کاربر) — همان زبان، سطح‌های سرمه‌ای عمیق با طلایی گرم ═══ */
html[data-theme="dark"]{--u-ink:#F3EFF8;--u-ink2:#DABB85;--u-mut:#9D9BBB;--u-gold:#D9B472;--u-gold-ink:#E6C98F;--u-act:#DABB85;--u-act2:#DABB85;--u-card:#141416;
  --u-pearl:linear-gradient(180deg,#141416 0%,#0B0B0C 100%);--u-hair:rgba(255,255,255,.1);
  --u-glow:radial-gradient(520px 260px at 100% 0,rgba(218,187,133,.16),transparent 70%),radial-gradient(460px 240px at 0 100%,rgba(217,180,114,.14),transparent 70%);
  --u-shadow:0 1px 0 rgba(255,255,255,.04),0 30px 60px -40px rgba(0,0,0,.8)}
html[data-theme="dark"] body :is(.zsb-btn:not(.ghost):not(.gold),.zh-btn-primary,.btn-primary,button.zsb-btn.lg){background:linear-gradient(120deg,#DABB85,#B78D50 60%,#8A6A2F)!important;color:#fff!important}

/* ═══ طلا و گرادیان مدرن [۱۴۰۵/۰۸/۰۳ · مالک: «رنگ طلایی کو؟ گرادیانت‌های بهتر، مدرن‌تر و زیباتر»] ═══ */
:root{--u-g-gold:linear-gradient(120deg,#F6E2B3 0%,#E2BE79 38%,#C79A4E 70%,#9C7433 100%);
  --u-g-text:linear-gradient(100deg,#8A6A2F 0%,#B78D50 38%,#B78D50 100%);
  --u-g-act:linear-gradient(125deg,#B78D50 0%,#8A6A2F 35%,#8A6A2F 70%,#1C1C20 100%);
  --u-g-mesh:radial-gradient(60% 50% at 12% 8%,rgba(183,141,80,.16),transparent 70%),radial-gradient(50% 45% at 92% 14%,rgba(226,190,121,.30),transparent 70%),radial-gradient(55% 50% at 80% 96%,rgba(212,91,150,.12),transparent 70%)}
html[data-theme="dark"]{--u-g-gold:linear-gradient(120deg,#F3DDA8 0%,#E0B96E 40%,#BE9248 75%,#8F6A2E 100%);--u-g-text:linear-gradient(100deg,#DABB85 0%,#F1E8DA 40%,#E6C98F 100%);
  --u-g-mesh:radial-gradient(60% 50% at 12% 8%,rgba(218,187,133,.22),transparent 70%),radial-gradient(50% 45% at 92% 14%,rgba(217,180,114,.18),transparent 70%),radial-gradient(55% 50% at 80% 96%,rgba(212,91,150,.14),transparent 70%)}
/* واژهٔ تأکیدی عنوان‌ها: آبی ← طلا */
html body :is(.zsb-head h2 em,.zsbd-head h2 em,.ag-head h2 em,main.page .page-head h1 .grad-text,.zsm h2 em,.zsg h2 em,.zsl h2 em){
  background:var(--u-g-text)!important;-webkit-background-clip:text!important;background-clip:text!important;-webkit-text-fill-color:transparent!important;color:transparent!important}
html body .hv-h1 em{background:var(--u-g-gold)!important;-webkit-background-clip:text!important;background-clip:text!important;-webkit-text-fill-color:transparent!important;color:transparent!important}
/* برچسب بالای عنوان: قرص طلایی */
html body :is(.zsb-kick,.sec-kicker){display:inline-flex;align-items:center;gap:8px;padding:5px 14px;border-radius:99px;font-weight:800;font-size:.8rem;color:#6b4d17!important;
  background:linear-gradient(120deg,rgba(246,226,179,.75),rgba(226,190,121,.45));border:1px solid rgba(183,141,80,.55)}
html[data-theme="dark"] body :is(.zsb-kick,.sec-kicker){color:#F3DDA8!important;background:linear-gradient(120deg,rgba(217,180,114,.22),rgba(217,180,114,.08));border-color:rgba(217,180,114,.4)}
/* خط طلایی بالای سربرگ‌ها و پانویس */
html body :is(main.page .page-head,.b2b-hero,.gd-hero){box-shadow:inset 0 3px 0 transparent,var(--u-shadow);position:relative}
html body :is(main.page .page-head,.b2b-hero,.gd-hero)::selection{background:#E2BE79}
html body main.page .page-head{background:var(--u-g-mesh),var(--u-pearl)!important;border-image:none}
html body main.page .page-head h1::before{content:"";display:block;width:56px;height:4px;margin-bottom:14px;border-radius:4px;background:var(--u-g-gold)}
html body .ix-foot.zinf{border-top:3px solid transparent!important;border-image:var(--u-g-gold) 1!important}
/* اقدام اصلی: گرادیان آبی عمیق با لبهٔ طلایی */
html body :is(.zsb-btn:not(.ghost):not(.gold),.zh-btn-primary,.btn-primary,button.zsb-btn.lg,.hv-go){background:var(--u-g-act)!important;box-shadow:0 16px 30px -14px rgba(138,106,47,.65),inset 0 0 0 1px rgba(226,190,121,.55)!important}
html body .zsb-btn.gold,html body .zinf-cta{background:var(--u-g-gold)!important;color:#2a1d05!important}
/* کارت‌های هیرو و ایجنت: قاب طلایی گرادیانی */
html body .hv-card::before{border:1px solid transparent!important;background:var(--u-g-gold) border-box;-webkit-mask:linear-gradient(#000 0 0) padding-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask-composite:exclude}
html body .ag-canvas::before{border:1px solid transparent!important;background:var(--u-g-gold) border-box;-webkit-mask:linear-gradient(#000 0 0) padding-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask-composite:exclude;opacity:.7}
html body .ag-fin{border-color:rgba(199,154,78,.6)!important;box-shadow:0 40px 70px -50px rgba(199,154,78,.55)}
html body .ag-fin h3 svg,html body .ag-card h3 svg{color:#C79A4E}
html body .ag-plans li{border-color:transparent!important;background:linear-gradient(var(--ag-card),var(--ag-card)) padding-box,var(--u-g-gold) border-box;border:1.5px solid transparent!important}
html body .ag-node circle{stroke:#C79A4E}
html body .ag-node.on circle{stroke:#F3DDA8}
html body .ag-hub circle{stroke:#E2BE79;stroke-width:3}
html body .ag-flow li.on i{background:var(--u-g-act)}
/* پس‌زمینهٔ مش نرم برای بخش‌های اصلی */
html body :is(.ag,.zsm,.zsl){background-image:var(--u-g-mesh)}
/* داشبورد و صفحهٔ سالن: همان طلا */
html body.zb-dashboard :is(.zdo-kpi,.stat-hero,.dx-kpi,.zbd-kpi){box-shadow:inset 0 3px 0 #D9B472,var(--zl-shadow)!important}
html body.zb-dashboard .zbd-hello h2 b{background:linear-gradient(100deg,var(--zd-act),#C79A4E);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent!important}
html body.zb-dashboard #sidebar .sidebar-link:is(.active,[aria-current="page"]){box-shadow:inset -3px 0 0 #D9B472!important}

/* ═══ تم تیره = سیاه واقعی با طلا [۱۴۰۵/۰۸/۰۳ · مالک: «تم تیره داغون است؛ نمی‌شود سیاه باشد؟»] ═══ */
html[data-theme="dark"]{--u-ink:#F5F2EC;--u-ink2:#C9C4BA;--u-mut:#8C877E;--u-gold:#E2BE79;--u-gold-ink:#E6C98F;--u-act:#E6C98F;--u-act2:#F6E2B3;--u-card:#0E0E0F;
  --u-pearl:linear-gradient(180deg,#0A0A0B 0%,#000 100%);--u-hair:rgba(255,255,255,.09);
  --u-glow:radial-gradient(520px 260px at 100% 0,rgba(226,190,121,.12),transparent 70%),radial-gradient(460px 240px at 0 100%,rgba(255,255,255,.04),transparent 70%);
  --u-g-act:linear-gradient(125deg,#F6E2B3 0%,#E2BE79 40%,#C79A4E 75%,#9C7433 100%);--u-g-text:linear-gradient(100deg,#FFFFFF 0%,#F6E2B3 45%,#C79A4E 100%);
  --u-g-mesh:radial-gradient(60% 50% at 12% 8%,rgba(255,255,255,.04),transparent 70%),radial-gradient(50% 45% at 92% 14%,rgba(226,190,121,.16),transparent 70%)}
html[data-theme="dark"] body{background-color:#000}
html[data-theme="dark"] body :is(.zsb-btn:not(.ghost):not(.gold),.zh-btn-primary,.btn-primary,button.zsb-btn.lg,.hv-go){background:var(--u-g-act)!important;color:#1A1206!important;box-shadow:0 14px 30px -14px rgba(226,190,121,.45)!important}
html[data-theme="dark"] body :is(.zbd-card,.zdo-card,.dx-card,.glass-card):not(.zcu-ticket):not(.zcu-wallet){background:linear-gradient(165deg,rgba(24,24,26,.86),rgba(12,12,13,.92))!important;border-color:rgba(255,255,255,.08)!important}
html[data-theme="dark"] body .zcu-ticket{background:radial-gradient(420px 220px at 100% 0,rgba(226,190,121,.22),transparent 60%),linear-gradient(160deg,#18181A,#0A0A0B)!important;border:1px solid rgba(226,190,121,.35)!important}
html[data-theme="dark"] body .zcu-tk-bg{background:radial-gradient(80% 110% at 90% 0%,rgba(226,190,121,.18),transparent 60%)!important}
html[data-theme="dark"] body .zcu-wallet{background:radial-gradient(90% 90% at 100% 0,rgba(226,190,121,.28),transparent 55%),linear-gradient(160deg,#141415,#070707)!important}
html[data-theme="dark"] body :is(nav.navbar.fixed-top,aside.w-64,#sidebar){background:linear-gradient(180deg,rgba(10,10,11,.94),rgba(0,0,0,.96))!important}
html[data-theme="dark"] body.z3,html[data-theme="dark"] body.z3 .z3-main{background:#000!important}
html[data-theme="dark"] body .z3-sc-img{background-color:#111!important}
