/* Growzem Dark — v1.1.5
   Applies only when <html data-theme="dark">. Loaded LAST so it wins over the legacy light layers.
   Palette: deep navy surfaces, the same teal → blue brand gradient as the light theme. */
html[data-theme=dark]{
  --dk-bg:#0b1220;--dk-bg2:#0e1729;--dk-surface:#121c30;--dk-surface2:#182540;--dk-raise:#1d2d4b;
  --dk-line:#26364f;--dk-line2:#33476a;
  --dk-text:#e8f0fc;--dk-soft:#c0cde4;--dk-muted:#9aabc7;
  --dk-teal:#2ee8c8;--dk-cyan:#22c7ec;--dk-blue:#4da3ff;--dk-link:#5fd4f0;
  --dk-grad:linear-gradient(135deg,#2ee8c8 0%,#00b4dc 48%,#0066dd 100%);
  --dk-shadow:0 10px 30px rgba(0,0,0,.45);
  color-scheme:dark!important;
  background:var(--dk-bg)!important;
  /* legacy variable layers */
  --bg:var(--dk-bg);--panel:var(--dk-surface);--panel2:var(--dk-surface2);--line:var(--dk-line);--muted:var(--dk-muted);--text:var(--dk-text);
  --hx-bg1:var(--dk-bg);--hx-bg2:var(--dk-bg2);--hx-card:var(--dk-surface);--hx-card-line:var(--dk-line);--hx-ink:var(--dk-text);--hx-ink2:var(--dk-muted);--hx-soft:var(--dk-surface2);--hx-top:rgba(11,18,32,.88);
  --hx-shadow:var(--dk-shadow);--hx-shadow-lg:0 22px 55px rgba(0,0,0,.55);
  --uf-text:var(--dk-text);--uf-soft:var(--dk-soft);--uf-line:var(--dk-line);--uf-accent:var(--dk-link);
  --gz-navy:var(--dk-text);
}
html[data-theme=dark] body{background:linear-gradient(180deg,var(--dk-bg),var(--dk-bg2)) fixed!important;color:var(--dk-text)!important}

/* ---------- Text ---------- */
html[data-theme=dark] body :is(h1,h2,h3,h4,h5,h6,strong,b,th,legend,dt){color:var(--dk-text)!important;text-shadow:none!important}
html[data-theme=dark] body :is(p,small,li,dd,label,td,figcaption){color:var(--dk-soft)!important}
html[data-theme=dark] body :is(.muted,.page-heading p,.form-note,.hint,.sub,small){color:var(--dk-muted)!important}
html[data-theme=dark] body a:not(.btn):not(.top-link):not(.nav-item):not(.brand):not(.top-brand):not(.mobile-nav a):not([class*=tab]){color:var(--dk-link)}
html[data-theme=dark] body a:not(.btn):hover{color:#9be8ff}
html[data-theme=dark] body :is(h1,h2) em,html[data-theme=dark] body .gradient-text{background-image:var(--dk-grad);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;color:transparent!important}
html[data-theme=dark] ::selection{background:#2ee8c844;color:#fff}
html[data-theme=dark] hr{border-color:var(--dk-line)!important}

/* ---------- Surfaces (cards, panels, rails) ---------- */
html[data-theme=dark] body :is(.panel,.stat,.nf-card,.auth-panel,.contact-main,.contact-guidance,.policy-contents,.policy-section,.wallet-balance-stat,.history-panel,.api-console-box,.api-access-panel,.invite-panel,.category-card,.profile-hero-card,.verification-status-card,.preferences-panel,.support-form-panel,.support-list-panel,.wallet-deposit-panel,.wallet-requests-panel,.wallet-history-panel,.profile-account-panel,.profile-password-panel,.profile-email-panel,.about-honesty,.line-item,.modal,.modal-card,.dropdown,.popover,.notification-popup-content){
  background:var(--dk-surface)!important;border-color:var(--dk-line)!important;color:var(--dk-soft)!important;box-shadow:var(--dk-shadow)!important}
html[data-theme=dark] body :is(.panel,.stat,.category-card):hover{border-color:var(--dk-line2)!important}
html[data-theme=dark] body :is(.preference-block,.auth-footer-card,.captcha-panel,.captcha-picture,.help-card,.auth-mode-switch,.empty-catalog,.coupon-box){
  background:var(--dk-surface2)!important;border-color:var(--dk-line)!important;color:var(--dk-soft)!important}
html[data-theme=dark] body :is(.auth-mode-pill.active,.top-link.active,.tab.active){background:var(--dk-raise)!important;color:#fff!important;border-color:var(--dk-line2)!important}

/* ---------- Header, sidebar, nav ---------- */
html[data-theme=dark] body :is(.topbar,.sidebar,.mobile-nav){background:rgba(11,18,32,.92)!important;border-color:var(--dk-line)!important;box-shadow:0 8px 28px rgba(0,0,0,.35)!important;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}
html[data-theme=dark] body .top-nav{background:var(--dk-surface)!important;border-color:var(--dk-line)!important}
html[data-theme=dark] body :is(.top-link,.nav-item){color:var(--dk-soft)!important}
html[data-theme=dark] body :is(.top-link,.nav-item):hover{color:#fff!important}
html[data-theme=dark] body :is(.top-link.active,.nav-item.active){color:#fff!important;background:linear-gradient(135deg,rgba(46,232,200,.16),rgba(0,102,221,.26))!important;border-color:rgba(46,232,200,.4)!important}
html[data-theme=dark] body .header-search{background:var(--dk-surface)!important;border-color:var(--dk-line)!important}
html[data-theme=dark] body .header-search kbd{background:var(--dk-surface2)!important;color:var(--dk-muted)!important;border-color:var(--dk-line)!important}
html[data-theme=dark] body .mobile-nav a{color:var(--dk-muted)!important}
html[data-theme=dark] body .mobile-nav a.active{color:var(--dk-teal)!important;background:rgba(46,232,200,.12)!important;border-color:rgba(46,232,200,.35)!important}
html[data-theme=dark] body :is(.brand strong,.top-brand strong){color:#fff!important}
html[data-theme=dark] body :is(.brand small,.sidebar-bottom small){color:var(--dk-muted)!important}

/* ---------- Form controls ---------- */
html[data-theme=dark] body :is(input,select,textarea):not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]){
  background:var(--dk-bg2)!important;color:var(--dk-text)!important;border-color:var(--dk-line2)!important;caret-color:var(--dk-teal)}
html[data-theme=dark] body :is(input,select,textarea)::placeholder{color:#7a8ba8!important;opacity:1}
html[data-theme=dark] body :is(input,select,textarea):focus{border-color:var(--dk-cyan)!important;box-shadow:0 0 0 3px rgba(34,199,236,.2)!important;outline:none}
html[data-theme=dark] body :is(input,select,textarea):disabled,html[data-theme=dark] body input[readonly]{background:var(--dk-surface)!important;color:var(--dk-muted)!important}
html[data-theme=dark] body select option{background:var(--dk-surface);color:var(--dk-text)}
html[data-theme=dark] body :is(.search-field,.history-search,.invite-link-wrap,.referral-quick-copy,.password-wrap){background:transparent!important}
html[data-theme=dark] body .search-field{background:var(--dk-surface)!important;border-color:var(--dk-line2)!important}
html[data-theme=dark] body .search-field input{background:transparent!important;border:0!important}
html[data-theme=dark] input:-webkit-autofill{-webkit-text-fill-color:var(--dk-text);-webkit-box-shadow:0 0 0 40px var(--dk-bg2) inset}

/* ---------- Buttons ---------- */
html[data-theme=dark] body :is(.btn.secondary,.icon-btn,.currency-chip-btn,.password-toggle,.carousel-buttons button){
  background:var(--dk-surface2)!important;color:var(--dk-text)!important;border-color:var(--dk-line2)!important;box-shadow:none!important}
html[data-theme=dark] body :is(.btn.secondary,.icon-btn,.currency-chip-btn):hover{background:var(--dk-raise)!important;border-color:var(--dk-cyan)!important}
html[data-theme=dark] body :is(.btn.secondary,.icon-btn) svg{color:var(--dk-text)!important;stroke:currentColor}
html[data-theme=dark] body .btn:disabled,html[data-theme=dark] body .btn[disabled]{opacity:.55}

/* ---------- Pills, badges, chips ---------- */
html[data-theme=dark] body :is(.eyebrow,.auth-pill-badge,.course-points span,.nf-pill,.auth-trust-pill,.live-pill,.chip,.pill,.tag){
  background:rgba(46,232,200,.12)!important;color:#7be9ff!important;border-color:rgba(46,232,200,.35)!important}
html[data-theme=dark] body :is(.category-icon){background:var(--dk-surface2)!important;border-color:var(--dk-line)!important}

/* ---------- Hero & banners ---------- */
html[data-theme=dark] body :is(.hero,.hx-hero){
  background:radial-gradient(ellipse at 80% 20%,rgba(0,180,220,.22),transparent 55%),radial-gradient(ellipse at 10% 90%,rgba(46,232,200,.10),transparent 50%),linear-gradient(135deg,#0f1b33,#0b1428)!important;
  border-color:var(--dk-line2)!important;box-shadow:var(--dk-shadow)!important}
html[data-theme=dark] body :is(.hero,.hx-hero) :is(h1,h2,.hero-title-line1){color:#fff!important}
html[data-theme=dark] body :is(.hero,.hx-hero) .hero-title-line2 em,html[data-theme=dark] body :is(.hero,.hx-hero) h2 em{background-image:var(--dk-grad)!important;-webkit-background-clip:text!important;background-clip:text!important;-webkit-text-fill-color:transparent;color:transparent!important}
html[data-theme=dark] body :is(.hero,.hx-hero) :is(p,.hero-desc-stylish){color:var(--dk-soft)!important}
html[data-theme=dark] body .hero-notes span{color:var(--dk-soft)!important}
html[data-theme=dark] body .hero-notes b{color:#fff!important}
html[data-theme=dark] body .hero-notes i{color:var(--dk-muted)!important;font-style:normal}
html[data-theme=dark] body .hero-notes svg{color:var(--dk-teal)!important}
html[data-theme=dark] body .hero-notes span>svg,html[data-theme=dark] body .hero-notes .color-icon{background:var(--dk-surface2)!important;border-color:var(--dk-line2)!important}
html[data-theme=dark] body .hero-laptop-badge{background:rgba(18,28,48,.92)!important;border-color:var(--dk-line2)!important}
html[data-theme=dark] body .hero-laptop-badge .badge-text{color:var(--dk-teal)!important}
html[data-theme=dark] body :is(.mini-banner,.mini-banner.green,.install-banner,.faq-section,.journey-card,.step-card,.referral-hero,.trust-hero,.course-hero,.retry-panel,.nf-card){
  background:linear-gradient(135deg,#13213d,#0e1830)!important;border-color:var(--dk-line2)!important;color:var(--dk-soft)!important;box-shadow:var(--dk-shadow)!important}
html[data-theme=dark] body .mini-banner.green{background:linear-gradient(135deg,#0e2a30,#0e1a2c)!important}
html[data-theme=dark] body :is(.mini-banner,.faq-section,.install-banner,.course-hero,.trust-hero,.referral-hero) :is(h1,h2,h3){color:#fff!important}
html[data-theme=dark] body :is(.mini-banner,.faq-section,.install-banner,.course-hero,.trust-hero,.referral-hero) p{color:var(--dk-soft)!important}
html[data-theme=dark] body :is(.text-link,a.text-link){color:var(--dk-link)!important;-webkit-text-fill-color:currentColor}
html[data-theme=dark] body .trust-emblem,html[data-theme=dark] body .auth-brand-emblem,html[data-theme=dark] body .maintenance-spark{background:var(--dk-surface2)!important;border-color:var(--dk-line2)!important;color:var(--dk-teal)!important;box-shadow:none!important}
html[data-theme=dark] body .trust-hero .eyebrow{background:rgba(46,232,200,.12)!important;color:#7be9ff!important;border-color:rgba(46,232,200,.35)!important}
html[data-theme=dark] body .trust-hero h2 em{background-image:var(--dk-grad)!important;-webkit-background-clip:text!important;background-clip:text!important}

/* ---------- Catalog ---------- */
html[data-theme=dark] body .tab,html[data-theme=dark] body .snippet-tab,html[data-theme=dark] body :is(.chip-btn,.filter-chip){background:var(--dk-surface2)!important;color:var(--dk-soft)!important;border-color:var(--dk-line2)!important;box-shadow:none!important}
html[data-theme=dark] body .tab:hover{color:#fff!important;border-color:var(--dk-cyan)!important}
html[data-theme=dark] body :is(.tab.active,.snippet-tab.active){background:var(--dk-grad)!important;color:#fff!important;border-color:transparent!important}
html[data-theme=dark] body .product{background:linear-gradient(180deg,var(--dk-surface2),var(--dk-surface))!important;border-color:var(--dk-line)!important;box-shadow:var(--dk-shadow)!important}
html[data-theme=dark] body .product:hover{border-color:var(--dk-cyan)!important}
html[data-theme=dark] body .product :is(h3,h4,strong){color:#fff!important}
html[data-theme=dark] body .product :is(p,small,.product-meta){color:var(--dk-muted)!important}
html[data-theme=dark] body .product .price,html[data-theme=dark] body .product .product-price{color:var(--dk-teal)!important}
html[data-theme=dark] body :is(.product-art,.product-artwork,.product-image,.product-media){background:radial-gradient(circle at 50% 30%,rgba(34,199,236,.18),transparent 70%),var(--dk-surface2)!important}
html[data-theme=dark] body :is(.category-card,.featured-brand,.brand-tile) :is(strong,small){color:var(--dk-text)!important}
html[data-theme=dark] body .category-card small,html[data-theme=dark] body .featured-brand small{color:var(--dk-muted)!important}

/* ---------- Auth ---------- */
html[data-theme=dark] body .auth-panel{background:linear-gradient(180deg,var(--dk-surface),#0f192c)!important}
html[data-theme=dark] body .field>label,html[data-theme=dark] body .field>span,html[data-theme=dark] body label span,html[data-theme=dark] body .field label{color:var(--dk-soft)!important}
html[data-theme=dark] body .captcha-heading>span,html[data-theme=dark] body .captcha-panel :is(strong,span,small){color:var(--dk-soft)!important}
html[data-theme=dark] body .auth-trust-pill{color:#7be9ff!important}

/* ---------- Misc surfaces ---------- */
html[data-theme=dark] body .policy-number{color:#8fa3c4!important}
html[data-theme=dark] body :is(.toast,.toast.error,.toast.success){background:var(--dk-surface2)!important;color:var(--dk-text)!important;border:1px solid var(--dk-line2)!important;box-shadow:var(--dk-shadow)!important}
html[data-theme=dark] body :is(.toast.error){border-color:#ef6b6b!important}
html[data-theme=dark] .boot{background:radial-gradient(ellipse at 50% 38%,rgba(0,180,220,.14),transparent 48%),#0b1220!important;color:var(--dk-text)!important}
html[data-theme=dark] .boot :is(h2,p){color:var(--dk-text)!important}
html[data-theme=dark] body .topbar .header-search input{background:transparent!important;border:0!important;box-shadow:none!important}
html[data-theme=dark] body :is(.course-hero-logo,.course-hero-seal){background:#fff!important}
html[data-theme=dark] body .topbar form.header-search,html[data-theme=dark] body .topbar .header-search{background:var(--dk-surface)!important;border-color:var(--dk-line2)!important}
html[data-theme=dark] body .category-card .category-icon,html[data-theme=dark] body span.category-icon{background:var(--dk-surface2)!important;border-color:var(--dk-line2)!important}
html[data-theme=dark] body div.boot,html[data-theme=dark] body .boot{background:radial-gradient(ellipse at 50% 38%,rgba(0,180,220,.14),transparent 48%),#0b1220!important}
:root[data-theme=dark] body section.hero.hx-hero,:root[data-theme=dark] body .hero.hx-hero{
  background-color:#0b1428!important;
  background-image:radial-gradient(ellipse at 80% 20%,rgba(0,180,220,.22),transparent 55%),radial-gradient(ellipse at 10% 90%,rgba(46,232,200,.10),transparent 50%),linear-gradient(135deg,#0f1b33,#0b1428)!important}
html[data-theme=dark] body :is(h1,h2,h3,h4,strong,b):not(em):not(.gradient-text){-webkit-text-fill-color:currentColor}
html[data-theme=dark] body .hero-title-line1,html[data-theme=dark] body .hero .hero-title-line1{color:#fff!important;-webkit-text-fill-color:#fff!important}
html[data-theme=dark] body .hero-laptop-screen{-webkit-mask-image:radial-gradient(ellipse 62% 60% at 50% 50%,#000 62%,transparent 100%);mask-image:radial-gradient(ellipse 62% 60% at 50% 50%,#000 62%,transparent 100%)}
html[data-theme=dark] body .topbar .header-search kbd{display:none!important}
html[data-theme=dark] body :is(.icon-btn,.mobile-toggle,.quick-search,.theme-toggle) :is(svg,.gz-ni,.color-icon){color:var(--dk-text)!important;stroke:currentColor!important;fill:none}
html[data-theme=dark] body :is(.icon-btn,.mobile-toggle){color:var(--dk-text)!important}
html[data-theme=dark] .boot::before,html[data-theme=dark] .boot::after,html[data-theme=dark] body .boot::before,html[data-theme=dark] body .boot::after{background:radial-gradient(circle,rgba(0,180,220,.22),rgba(0,102,221,.10) 55%,transparent 72%)!important;opacity:.9}
html[data-theme=dark] body .boot :is(h2,p,strong){color:var(--dk-text)!important;-webkit-text-fill-color:currentColor}
html[data-theme=dark] body .boot p{color:var(--dk-muted)!important}
:root[data-theme=dark] body div#app>div.boot,:root[data-theme=dark] body div.boot,:root[data-theme=dark] html body .boot{background-color:#0b1220!important;background-image:radial-gradient(ellipse at 50% 38%,rgba(0,180,220,.16),transparent 48%)!important}
