/*
  SHAAFT PORTAL theme system — v1.1.8 WOW pass
  ------------------------------------------------
  Design goal:
  - SHAAFT Purple must remain the original/default look.
  - Non-gold themes must feel fully designed, not just recolored text.
  - Theme layer is override-only: no layout rewrites.
*/

/* Purple/default: keep original visual language from base CSS. */
body.shaaft-theme-gold{
  --bg:#07070f;
  --surface:#0e0e1a;
  --surface2:#13131f;
  --surface3:#1a1a28;
  --border:rgba(255,255,255,0.06);
  --border2:rgba(255,255,255,0.1);
  --text:#e8e8f0;
  --text2:#b8b8d0;
  --text3:#8888a8;
  --accent:#d4af37;
  --accent2:#f5d36d;
  --accent-glow:rgba(212,175,55,.24);
  --green:#22c55e;
  --red:#ef4444;
  --amber:#f59e0b;
}

/* Shared theme tokens for non-default themes only. */
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"]{
  color-scheme:dark;
  --theme-hover-bg:rgba(var(--accent-rgb),.085);
  --theme-hover-bg-strong:rgba(var(--accent-rgb),.145);
  --theme-hover-border:rgba(var(--accent-rgb),.45);
  --theme-soft-bg:rgba(var(--accent-rgb),.125);
  --theme-soft-border:rgba(var(--accent-rgb),.28);
  --theme-panel-bg:radial-gradient(circle at 0 0,rgba(var(--accent-rgb),.105),transparent 34%),linear-gradient(180deg,var(--surface),rgba(8,8,16,.90));
  --theme-panel-bg-flat:linear-gradient(180deg,rgba(var(--accent-rgb),.055),rgba(255,255,255,.018));
  --theme-panel-bg-strong:radial-gradient(circle at 0 0,rgba(var(--accent-rgb),.20),transparent 38%),radial-gradient(circle at 100% 0,rgba(var(--accent2-rgb),.11),transparent 42%),linear-gradient(180deg,var(--surface2),var(--surface));
  --theme-button-gradient:linear-gradient(135deg,var(--accent),var(--accent2));
  --theme-card-glow:0 18px 56px rgba(0,0,0,.42),0 0 32px rgba(var(--accent-rgb),.14);
  --theme-card-glow-strong:0 28px 90px rgba(0,0,0,.52),0 0 48px rgba(var(--accent-rgb),.20);
  --theme-hero-gradient:radial-gradient(circle at 14% 0%,rgba(var(--accent-rgb),.30),transparent 34%),radial-gradient(circle at 92% 20%,rgba(var(--accent2-rgb),.16),transparent 38%),linear-gradient(135deg,var(--surface2),var(--bg));
  --theme-hero-overlay:linear-gradient(105deg,rgba(var(--bg-rgb),.98) 0%,rgba(var(--bg-rgb),.91) 42%,rgba(var(--accent-rgb),.22) 68%,rgba(var(--accent2-rgb),.12) 100%);
  --theme-page-wash:radial-gradient(ellipse 90% 55% at 20% -12%,rgba(var(--accent-rgb),.12),transparent 60%),radial-gradient(ellipse 70% 45% at 84% 100%,rgba(var(--accent2-rgb),.08),transparent 56%),var(--bg);
  --theme-border-line:rgba(var(--accent-rgb),.16);
}

/* Theme palettes */
body.shaaft-theme-oled{
  --bg:#000000; --bg-rgb:0,0,0;
  --surface:#050507; --surface2:#09090d; --surface3:#111118;
  --border:rgba(255,255,255,.075); --border2:rgba(255,255,255,.13);
  --text:#f8f8ff; --text2:#cfcfe0; --text3:#8b8b9c;
  --accent:#f5d36d; --accent2:#f5d36d; --accent-rgb:167,139,250; --accent2-rgb:221,214,254;
  --accent-glow:rgba(167,139,250,.28); --green:#34d399; --red:#fb7185; --amber:#fbbf24;
}
body.shaaft-theme-ocean{
  --bg:#031018; --bg-rgb:3,16,24;
  --surface:#071823; --surface2:#092235; --surface3:#0d314a;
  --border:rgba(103,232,249,.105); --border2:rgba(103,232,249,.20);
  --text:#f0fbff; --text2:#bde7f6; --text3:#79aabd;
  --accent:#06b6d4; --accent2:#67e8f9; --accent-rgb:6,182,212; --accent2-rgb:103,232,249;
  --accent-glow:rgba(6,182,212,.32); --green:#34d399; --red:#fb7185; --amber:#fbbf24;
}
body.shaaft-theme-ember{
  --bg:#120706; --bg-rgb:18,7,6;
  --surface:#1b0d0a; --surface2:#25110b; --surface3:#35170d;
  --border:rgba(251,146,60,.115); --border2:rgba(251,146,60,.24);
  --text:#fff5ec; --text2:#f7c8a7; --text3:#b48568;
  --accent:#f97316; --accent2:#fdba74; --accent-rgb:249,115,22; --accent2-rgb:253,186,116;
  --accent-glow:rgba(249,115,22,.34); --green:#22c55e; --red:#ef4444; --amber:#fbbf24;
}
body.shaaft-theme-christmas{
  --bg:#06100b; --bg-rgb:6,16,11;
  --surface:#0a1810; --surface2:#0f2418; --surface3:#163420;
  --border:rgba(74,222,128,.115); --border2:rgba(248,113,113,.22);
  --text:#f4fff8; --text2:#c8f5d7; --text3:#87bb98;
  --accent:#22c55e; --accent2:#f87171; --accent-rgb:34,197,94; --accent2-rgb:248,113,113;
  --accent-glow:rgba(34,197,94,.30); --green:#22c55e; --red:#ef4444; --amber:#fbbf24;
}
body.shaaft-theme-halloween{
  --bg:#100711; --bg-rgb:16,7,17;
  --surface:#190d1b; --surface2:#231126; --surface3:#301739;
  --border:rgba(251,146,60,.13); --border2:rgba(192,132,252,.24);
  --text:#fff5ea; --text2:#ead0ba; --text3:#a98d76;
  --accent:#f97316; --accent2:#c084fc; --accent-rgb:249,115,22; --accent2-rgb:192,132,252;
  --accent-glow:rgba(249,115,22,.32); --green:#22c55e; --red:#ef4444; --amber:#fbbf24;
}

/* Page wash and scroll/selection */
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"]{background:var(--theme-page-wash)!important;color:var(--text)!important;}
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"]::before{background:var(--theme-page-wash)!important;}
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] ::selection{background:rgba(var(--accent-rgb),.34)!important;color:#fff!important;}
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] ::-webkit-scrollbar-thumb{background:rgba(var(--accent-rgb),.30)!important;}
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] ::-webkit-scrollbar-thumb:hover{background:rgba(var(--accent-rgb),.45)!important;}

/* Logo glow */
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .sidebar-logo-img,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .brand-logo,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .logo{filter:drop-shadow(0 0 12px rgba(var(--accent-rgb),.24))!important;}
body.shaaft-theme-christmas .sidebar-logo-img{filter:drop-shadow(0 0 12px rgba(34,197,94,.26)) drop-shadow(0 0 18px rgba(248,113,113,.12))!important;}

/* Shell: sidebar/topbar/search */
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .sidebar-nav{background:rgba(var(--bg-rgb),.96)!important;border-right-color:var(--theme-border-line)!important;}
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .topbar{background:rgba(var(--bg-rgb),.88)!important;border-bottom-color:var(--theme-border-line)!important;}
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .topbar-wish-search input,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .search-input{background:rgba(255,255,255,.035)!important;border-color:var(--theme-border-line)!important;color:var(--text)!important;}
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .topbar-wish-search input:focus,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .search-input:focus{background:rgba(var(--accent-rgb),.045)!important;border-color:rgba(var(--accent-rgb),.50)!important;box-shadow:0 0 0 3px rgba(var(--accent-rgb),.12)!important;}

/* Navigation states */
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .sidebar-link.active,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .nav-link.active,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .mobile-nav a.active,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .bottom-nav a.active{background:var(--theme-active-bg, var(--theme-soft-bg))!important;border-color:var(--theme-soft-border)!important;color:var(--accent2)!important;}
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .sidebar-link.active::before{background:var(--accent)!important;box-shadow:0 0 14px rgba(var(--accent-rgb),.45)!important;}
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .sidebar-link:hover{background:var(--theme-hover-bg)!important;color:var(--text)!important;}
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .sidebar-widget,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .sidebar-premium{background:linear-gradient(135deg,rgba(var(--accent-rgb),.12),rgba(var(--accent2-rgb),.06))!important;border-color:var(--theme-soft-border)!important;}

/* Hero/banner surfaces — all pages */
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .hero-banner,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .hero-card,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .hero,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .welcome-card,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .adm-hero,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .admin-hero,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .stats-hero,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .leaderboard-hero,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .wishes-hero,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .wish-hero,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .wb-hero,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .hero-wishes,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .page-hero,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .ms-hero-banner,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .library-hero,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .lib-hero,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .payment-hero,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .profile-hero,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .support-hero{background:var(--theme-hero-gradient)!important;border-color:var(--theme-soft-border)!important;box-shadow:var(--theme-card-glow-strong)!important;}
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .hero-overlay,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .wb-hero::before{background:var(--theme-hero-overlay)!important;}
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .hero-bg-poster{opacity:.26!important;filter:saturate(.95) contrast(1.05)!important;}
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .hero-eyebrow,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .page-kicker,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .leaderboard-kicker,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .settings-kicker{color:var(--accent2)!important;}

/* Panels/cards across portal */
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .card,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .adm-card,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .adm-panel,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .adm-stat-card,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .settings-box,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .settings-accordion,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .settings-rail,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .settings-copybox,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .wdg-card,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .wdg-modal,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .ms-section,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .ms-total-card,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .ms-reward-card,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .invite-token-row,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .top-users-card,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .sec-body,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .section,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .pop-inline-section,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .library-panel,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .library-filter-panel,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .library-tabs-panel,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .library-controls,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .payment-card,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .payment-package,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .point-package,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .profile-card,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .support-card,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .ticket-card,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .stats-live-card,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .stats-leaderboard-card,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .leaderboard-summary-card,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .wb-card,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .wb-points-top,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .wish-card,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .wish-result-card,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .request-card,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .trending-card{background:var(--theme-panel-bg)!important;border-color:var(--theme-border-line)!important;box-shadow:var(--theme-muted-glow, 0 12px 38px rgba(0,0,0,.25))!important;}

/* Strong modules: status, streamer now, top 5, leaderboard */
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .system-status-bar,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .sys-status,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .sys-item,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .sys-live,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .launch-grid,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .info-bar-live,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] #live-now-card .top-users-card,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] #mobile-live-now-card .top-users-card,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] #week-bar,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] #mobile-week-bar,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .top-users-card,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .stats-live-card,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .stats-leaderboard-card,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .leaderboard-summary-card{background:var(--theme-panel-bg-strong)!important;border-color:var(--theme-soft-border)!important;}
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .top-users-head,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .card-title,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .sec-head,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .ms-section-head,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .settings-accordion summary{background:linear-gradient(90deg,rgba(var(--accent-rgb),.095),transparent)!important;border-color:var(--theme-soft-border)!important;}
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .top-users-title,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .sec-head-title,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .top-user-pts,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .top-user-points,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .leaderboard-summary-card strong{color:var(--accent2)!important;}

/* Tabs/filters/pills */
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .period-tabs,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] #home-period-tabs,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] #mobile-period-tabs,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .adm-tabs,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .library-tabs,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .filter-tabs,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .wr-tabs,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .wb-tabbar-scroll{background:rgba(var(--accent-rgb),.045)!important;border-color:var(--theme-soft-border)!important;}
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .period-tab.active,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .adm-tab.active,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .settings-rail-btn.active,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .adm-filter-btn.active,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .library-tab.active,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .lib-tab.active,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .wr-tab.active,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .filter-btn.active,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .category-chip.active,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .lib-chip.active,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .wb-tab.active{background:linear-gradient(135deg,rgba(var(--accent-rgb),.28),rgba(var(--accent2-rgb),.14))!important;border-color:var(--theme-hover-border)!important;color:var(--accent2)!important;box-shadow:0 10px 28px rgba(var(--accent-rgb),.18)!important;}
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .period-tab:hover,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .adm-tab:hover,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .settings-rail-btn:hover,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .library-tab:hover,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .lib-tab:hover,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .wr-tab:hover,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .filter-btn:hover,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .category-chip:hover,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .lib-chip:hover,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .wb-tab:hover{background:var(--theme-hover-bg)!important;border-color:var(--theme-hover-border)!important;color:var(--text)!important;}

/* Media/library/request cards */
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .library-card,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .media-card,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .pop-card,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .latest-card,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .latest-server-card,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .wr-card{background:linear-gradient(180deg,rgba(var(--accent-rgb),.055),rgba(20,20,34,.88))!important;border-color:var(--theme-border-line)!important;}
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .card:hover,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .media-card:hover,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .library-card:hover,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .wish-card:hover,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .pop-card:hover,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .latest-card:hover,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .latest-server-card:hover,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .wr-card:hover,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .adm-online-user-card:hover,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .ticket-card:hover,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .support-card:hover,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .profile-card:hover,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .payment-card:hover,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .point-package:hover,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .top-user-row:hover,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .stats-leaderboard-item:hover,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .week-media-item:hover,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .launch-card:hover,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .adm-ticket-row:hover,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .wdg-card:hover{background:var(--theme-hover-bg)!important;border-color:var(--theme-hover-border)!important;box-shadow:var(--theme-card-glow)!important;}

/* Buttons / CTAs */
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .btn-primary,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .adm-btn-accent,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .hero-btn-primary,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .sp-btn-primary,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .save-btn,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] button.primary,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .primary-btn,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .theme-primary,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .pay-btn,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .buy-btn,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .wb-buy-points-btn,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .wish-submit-btn,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .request-submit,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .invite-premium-btn,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .invite-token-copy{background:var(--theme-button-gradient)!important;border-color:rgba(var(--accent-rgb),.40)!important;box-shadow:0 12px 34px rgba(var(--accent-rgb),.25)!important;color:#fff!important;}
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .btn-primary:hover,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .adm-btn-accent:hover,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .hero-btn-primary:hover,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .sp-btn-primary:hover,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .save-btn:hover,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] button.primary:hover,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .primary-btn:hover,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .pay-btn:hover,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .buy-btn:hover{filter:brightness(1.08)!important;box-shadow:0 16px 44px rgba(var(--accent-rgb),.34)!important;}
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .hero-btn-secondary,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .btn-secondary,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .invite-premium-btn.secondary{background:rgba(255,255,255,.045)!important;border-color:var(--theme-soft-border)!important;color:var(--text)!important;}
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .hero-btn-secondary:hover,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .btn-secondary:hover{background:var(--theme-hover-bg)!important;border-color:var(--theme-hover-border)!important;color:var(--accent2)!important;}

/* Badges, avatars, icons */
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .pop-type-badge,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .latest-type-badge,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .badge-primary,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .pill-primary,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .library-badge,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .media-badge,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .bonus-badge,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .payment-bonus,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .popular-badge,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .most-popular-badge,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .adm-pill,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .adm-badge,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .user-badge,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .role-badge,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .theme-pill-preview{background:var(--theme-soft-bg)!important;border-color:var(--theme-soft-border)!important;color:var(--accent2)!important;}
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .adm-online-avatar-fallback,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .adm-ticket-avatar,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .ticket-avatar,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .sys-item-icon,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .launch-icon,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .mobile-nav-icon{background:var(--theme-soft-bg)!important;color:var(--accent2)!important;box-shadow:0 8px 24px rgba(var(--accent-rgb),.18)!important;}
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .adm-online-badges span{background:var(--theme-soft-bg)!important;border-color:var(--theme-soft-border)!important;color:var(--accent2)!important;}
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .adm-online-user-card::before{background:radial-gradient(circle at 0 0,rgba(var(--accent-rgb),.18),transparent 42%)!important;}
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .adm-online-arrow{color:var(--accent2)!important;}

/* Payment featured packages */
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .payment-card.featured,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .payment-package.featured,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .point-package.featured,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .point-package.is-popular,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .package-popular{background:radial-gradient(circle at 50% 0,rgba(var(--accent-rgb),.18),transparent 42%),var(--theme-panel-bg)!important;border-color:var(--theme-hover-border)!important;box-shadow:var(--theme-card-glow-strong)!important;}

/* Numbers, progress, charts */
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .adm-stat-val,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .ms-total-val,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .ms-hero-stat-val{background:linear-gradient(135deg,#fff,var(--accent2))!important;-webkit-background-clip:text!important;-webkit-text-fill-color:transparent!important;background-clip:text!important;}
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .ms-progress-fill,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .ms-total-bar-fill,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .progress-fill,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .stat-bar-fill,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .top-user-progress,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .leaderboard-bar,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .week-progress{background:linear-gradient(90deg,var(--accent),var(--accent2))!important;box-shadow:0 0 20px rgba(var(--accent-rgb),.30)!important;}

/* Support/chat/modals */
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .chat-bubble-wrap.from-user .chat-bubble,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .chat-bubble-wrap.from-user.is-op .chat-bubble{background:linear-gradient(135deg,rgba(var(--accent-rgb),.20),rgba(var(--accent2-rgb),.13))!important;border-color:var(--theme-soft-border)!important;}
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .ticket-unread-dot,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .adm-unread-dot{background:var(--accent)!important;box-shadow:0 0 0 4px rgba(var(--accent-rgb),.14),0 0 10px rgba(var(--accent-rgb),.48)!important;}
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .wish-confirm,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .modal-card,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .wb-detail-panel{background:var(--theme-panel-bg-strong)!important;border-color:var(--theme-soft-border)!important;box-shadow:var(--theme-card-glow-strong)!important;}

/* Inputs/selects incl. native dropdown options */
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .adm-input,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] input,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] select,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] textarea{background:rgba(255,255,255,.040)!important;border-color:rgba(var(--accent-rgb),.17)!important;color:var(--text)!important;}
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] option{background:var(--surface2)!important;color:var(--text)!important;}
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] input:focus,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] select:focus,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] textarea:focus,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .adm-input:focus{background:rgba(var(--accent-rgb),.055)!important;border-color:rgba(var(--accent-rgb),.58)!important;box-shadow:0 0 0 4px rgba(var(--accent-rgb),.13)!important;}
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] input[type="checkbox"]{accent-color:var(--accent)!important;}

/* Inline hardcoded gold rescue for older EJS inline styles. */
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] [style*="124,77,255"],
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] [style*="139,92,246"],
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] [style*="108,99,255"],
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] [style*="168,85,247"],
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] [style*="#d4af37"],
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] [style*="#d4af37"],
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] [style*="#c99722"]{border-color:var(--theme-soft-border)!important;box-shadow:0 8px 26px rgba(var(--accent-rgb),.16)!important;}
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] [style*="background:rgba(124,77,255"],
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] [style*="background: rgba(124,77,255"],
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] [style*="background:rgba(139,92,246"],
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] [style*="background: rgba(139,92,246"],
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] [style*="background:rgba(108,99,255"],
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] [style*="background: rgba(108,99,255"],
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] [style*="background:linear-gradient(135deg,rgba(124,77,255"],
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] [style*="background: linear-gradient(135deg,rgba(124,77,255"],
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] [style*="background:linear-gradient(135deg,#d4af37"],
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] [style*="background: linear-gradient(135deg,#d4af37"],
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] [style*="background:#d4af37"],
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] [style*="background: #d4af37"],
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] [style*="background:#d4af37"],
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] [style*="background: #d4af37"]{background:var(--theme-active-bg, var(--theme-soft-bg))!important;color:var(--accent2)!important;}
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] [style*="color:#f5d36d"],
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] [style*="color: #f5d36d"],
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] [style*="color:#f5d36d"],
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] [style*="color: #f5d36d"],
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] [style*="color:#8b7dff"],
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] [style*="color: #8b7dff"]{color:var(--accent2)!important;}

/* Seasonal personality touches, still subtle/premium. */
body.shaaft-theme-christmas .theme-forced-note{background:rgba(34,197,94,.10)!important;border-color:rgba(248,113,113,.24)!important;color:#dcfce7!important;}
body.shaaft-theme-halloween .theme-forced-note{background:rgba(249,115,22,.10)!important;border-color:rgba(192,132,252,.24)!important;color:#fed7aa!important;}
body.shaaft-theme-ocean .theme-forced-note{background:rgba(6,182,212,.10)!important;border-color:rgba(103,232,249,.24)!important;color:#cffafe!important;}

/* v1.1.8+ theme deep polish: Neon/Crimson + Point Shop/Library/Support coverage */
body.shaaft-theme-neon{
  --bg:#020806; --bg-rgb:2,8,6;
  --surface:#06120d; --surface2:#071b12; --surface3:#0a2618;
  --border:rgba(57,255,20,.12); --border2:rgba(57,255,20,.26);
  --text:#effff4; --text2:#c6ffd5; --text3:#75b889;
  --accent:#39ff14; --accent2:#00f5a0; --accent-rgb:57,255,20; --accent2-rgb:0,245,160;
  --accent-glow:rgba(57,255,20,.38); --green:#39ff14; --red:#ff4d6d; --amber:#d9ff00;
  --theme-active-bg:linear-gradient(135deg,rgba(57,255,20,.23),rgba(0,245,160,.10));
  --theme-muted-glow:0 18px 50px rgba(0,0,0,.38),0 0 26px rgba(57,255,20,.10);
  --theme-button-gradient:linear-gradient(135deg,#22e900,#00d68f);
  --theme-hero-gradient:radial-gradient(circle at 15% 0%,rgba(57,255,20,.22),transparent 36%),radial-gradient(circle at 88% 14%,rgba(0,245,160,.16),transparent 42%),linear-gradient(135deg,#06110b,#03130d 52%,#071a12);
  --theme-hero-overlay:linear-gradient(105deg,rgba(2,8,6,.98) 0%,rgba(3,15,10,.94) 42%,rgba(57,255,20,.17) 68%,rgba(0,245,160,.10) 100%);
  --theme-page-wash:radial-gradient(ellipse 90% 55% at 20% -12%,rgba(57,255,20,.12),transparent 60%),radial-gradient(ellipse 70% 45% at 84% 100%,rgba(0,245,160,.08),transparent 56%),var(--bg);
}
body.shaaft-theme-crimson{
  --bg:#100205; --bg-rgb:16,2,5;
  --surface:#19060a; --surface2:#240910; --surface3:#360d18;
  --border:rgba(255,45,85,.13); --border2:rgba(255,83,115,.28);
  --text:#fff3f5; --text2:#ffc7d1; --text3:#bb7784;
  --accent:#ff2d55; --accent2:#ff7a18; --accent-rgb:255,45,85; --accent2-rgb:255,122,24;
  --accent-glow:rgba(255,45,85,.36); --green:#22c55e; --red:#ff2d55; --amber:#ffb020;
  --theme-active-bg:linear-gradient(135deg,rgba(255,45,85,.25),rgba(255,122,24,.11));
  --theme-muted-glow:0 18px 50px rgba(0,0,0,.42),0 0 26px rgba(255,45,85,.11);
  --theme-button-gradient:linear-gradient(135deg,#ff2d55,#ff7a18);
  --theme-hero-gradient:radial-gradient(circle at 14% 0%,rgba(255,45,85,.26),transparent 36%),radial-gradient(circle at 90% 14%,rgba(255,122,24,.13),transparent 42%),linear-gradient(135deg,#180409,#110207 52%,#2a0810);
  --theme-hero-overlay:linear-gradient(105deg,rgba(16,2,5,.98) 0%,rgba(25,4,9,.94) 42%,rgba(255,45,85,.18) 68%,rgba(255,122,24,.10) 100%);
  --theme-page-wash:radial-gradient(ellipse 90% 55% at 20% -12%,rgba(255,45,85,.13),transparent 60%),radial-gradient(ellipse 70% 45% at 84% 100%,rgba(255,122,24,.08),transparent 56%),var(--bg);
}

/* Make every non-gold theme feel complete on pages that still had gold residues. */
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .content,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .main,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .page,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .main-content,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .app-main{
  background:var(--theme-page-wash)!important;
}

/* Point Shop / payment page */
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .payment-page,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .billing-page,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .pointshop-page,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .payment-wrap,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .billing-wrap,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .shop-wrap{
  background:var(--theme-page-wash)!important;
}
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .billing-hero,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .shop-hero,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .points-hero,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .payment-header,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .payment-title-card,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .shop-title-card{
  background:var(--theme-hero-gradient)!important;
  border-color:var(--theme-soft-border)!important;
  box-shadow:var(--theme-card-glow-strong)!important;
}
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .plan-card,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .subscription-card,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .access-card,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .points-card,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .earning-card,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .benefit-card,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .shop-card,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .price-card{
  background:var(--theme-panel-bg)!important;
  border-color:var(--theme-border-line)!important;
  box-shadow:var(--theme-muted-glow)!important;
}
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .plan-card.featured,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .subscription-card.featured,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .price-card.featured,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .shop-card.featured{
  background:radial-gradient(circle at 50% 0,rgba(var(--accent-rgb),.20),transparent 44%),var(--theme-panel-bg)!important;
  border-color:var(--theme-hover-border)!important;
  box-shadow:var(--theme-card-glow-strong)!important;
}
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .most-selected,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .most-chosen,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .premium-upgrade,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .upgrade-badge,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .package-ribbon{
  background:var(--theme-button-gradient)!important;
  color:#fff!important;
  box-shadow:0 12px 32px rgba(var(--accent-rgb),.28)!important;
}
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .paypal-section,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .paypal-buttons,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .paypal-card{
  background:transparent!important;
  border-color:var(--theme-border-line)!important;
}

/* Library page */
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .library-page,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .bibliotek-page,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .library-wrap,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .bibliotek-wrap{
  background:var(--theme-page-wash)!important;
}
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .library-shell,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .library-filter-shell,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .library-toolbar,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .library-actions,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .library-empty,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .lib-empty,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .media-grid-empty{
  background:var(--theme-panel-bg)!important;
  border-color:var(--theme-border-line)!important;
  box-shadow:var(--theme-muted-glow)!important;
}
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .library-grid .card,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .library-grid .item-card,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .library-item,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .poster-card,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .poster-tile,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .media-tile{
  background:linear-gradient(180deg,rgba(var(--accent-rgb),.055),rgba(10,12,20,.90))!important;
  border-color:var(--theme-border-line)!important;
}
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .library-grid .card:hover,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .library-grid .item-card:hover,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .library-item:hover,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .poster-card:hover,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .poster-tile:hover,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .media-tile:hover{
  border-color:var(--theme-hover-border)!important;
  box-shadow:var(--theme-card-glow)!important;
}
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .favorite-toggle,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .fav-toggle,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .favorite-btn.active,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .fav-btn.active{
  background:var(--theme-soft-bg)!important;
  border-color:var(--theme-soft-border)!important;
  color:var(--accent2)!important;
}

/* Support center */
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .support-page,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .support-wrap,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .tickets-page,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .tickets-wrap{
  background:var(--theme-page-wash)!important;
}
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .support-category,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .support-stat,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .faq-card,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .faq-panel,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .faq-item,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .ticket-list,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .ticket-panel,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .support-empty,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .new-ticket-card{
  background:var(--theme-panel-bg)!important;
  border-color:var(--theme-border-line)!important;
  box-shadow:var(--theme-muted-glow)!important;
}
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .support-category:hover,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .faq-item:hover,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .ticket-row:hover,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .ticket-card:hover{
  background:var(--theme-hover-bg)!important;
  border-color:var(--theme-hover-border)!important;
  box-shadow:var(--theme-card-glow)!important;
}
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .support-pill,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .faq-tag,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .category-pill,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .ticket-status,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .ticket-category{
  background:var(--theme-soft-bg)!important;
  border-color:var(--theme-soft-border)!important;
  color:var(--accent2)!important;
}
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .support-category.active,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .support-category.is-active,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .faq-item[open],
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .faq-item.active{
  background:var(--theme-active-bg,var(--theme-soft-bg))!important;
  border-color:var(--theme-hover-border)!important;
}

/* Theme dropdown polish. Native dropdown popups are OS-rendered, but closed state/options stay readable. */
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] #cfg-portal-theme{
  background:linear-gradient(135deg,rgba(var(--accent-rgb),.10),rgba(255,255,255,.035))!important;
  border-color:var(--theme-soft-border)!important;
  color:var(--text)!important;
  box-shadow:0 10px 26px rgba(var(--accent-rgb),.10)!important;
}
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] #cfg-portal-theme option{
  background:var(--surface2)!important;
  color:var(--text)!important;
}

body.shaaft-theme-neon .theme-forced-note{background:rgba(57,255,20,.10)!important;border-color:rgba(0,245,160,.24)!important;color:#d9ffe0!important;}
body.shaaft-theme-crimson .theme-forced-note{background:rgba(255,45,85,.10)!important;border-color:rgba(255,122,24,.24)!important;color:#ffe4e9!important;}

/* --------------------------------------------------------------------------
   v1.1.8 FINAL THEME ENGINE PASS
   Goal: no gold leakage in non-gold themes, while Purple remains original.
   This block is intentionally loaded at the end and only affects non-gold themes.
---------------------------------------------------------------------------- */

body.shaaft-theme-oled{
  --accent:#8b8cff; --accent2:#e9e7ff; --accent-rgb:139,140,255; --accent2-rgb:233,231,255;
  --bg:#000000; --bg-rgb:0,0,0; --surface:#050507; --surface2:#0a0a10; --surface3:#12121b;
  --theme-active-bg:linear-gradient(135deg,rgba(139,140,255,.18),rgba(233,231,255,.065));
  --theme-button-gradient:linear-gradient(135deg,#7c7cff,#c7c4ff);
  --theme-hero-gradient:radial-gradient(circle at 12% 0,rgba(139,140,255,.18),transparent 36%),radial-gradient(circle at 88% 18%,rgba(233,231,255,.075),transparent 42%),linear-gradient(135deg,#050507,#000 54%,#07070d);
  --theme-page-wash:radial-gradient(ellipse 90% 55% at 20% -12%,rgba(139,140,255,.08),transparent 60%),#000;
  --theme-muted-glow:0 18px 50px rgba(0,0,0,.50),0 0 22px rgba(139,140,255,.075);
}
body.shaaft-theme-ocean{
  --accent:#15c8e8; --accent2:#7ee8ff; --accent-rgb:21,200,232; --accent2-rgb:126,232,255;
  --bg:#031017; --bg-rgb:3,16,23; --surface:#071822; --surface2:#092334; --surface3:#0d3148;
  --theme-active-bg:linear-gradient(135deg,rgba(21,200,232,.22),rgba(126,232,255,.10));
  --theme-button-gradient:linear-gradient(135deg,#12c6e6,#59e1fa);
  --theme-hero-gradient:radial-gradient(circle at 12% 0,rgba(21,200,232,.24),transparent 36%),radial-gradient(circle at 88% 18%,rgba(126,232,255,.13),transparent 42%),linear-gradient(135deg,#061923,#031017 54%,#092334);
  --theme-page-wash:radial-gradient(ellipse 90% 55% at 20% -12%,rgba(21,200,232,.11),transparent 60%),radial-gradient(ellipse 70% 45% at 84% 100%,rgba(126,232,255,.065),transparent 56%),var(--bg);
  --theme-muted-glow:0 18px 50px rgba(0,0,0,.40),0 0 24px rgba(21,200,232,.085);
}
body.shaaft-theme-ember{
  --accent:#ff6b1a; --accent2:#ffb86b; --accent-rgb:255,107,26; --accent2-rgb:255,184,107;
  --bg:#130706; --bg-rgb:19,7,6; --surface:#1b0d09; --surface2:#27110a; --surface3:#37170d;
  --theme-active-bg:linear-gradient(135deg,rgba(255,107,26,.22),rgba(255,184,107,.095));
  --theme-button-gradient:linear-gradient(135deg,#ff6b1a,#ff9d42);
  --theme-hero-gradient:radial-gradient(circle at 12% 0,rgba(255,107,26,.25),transparent 36%),radial-gradient(circle at 88% 18%,rgba(255,184,107,.12),transparent 42%),linear-gradient(135deg,#1c0a06,#130706 54%,#2b1108);
  --theme-page-wash:radial-gradient(ellipse 90% 55% at 20% -12%,rgba(255,107,26,.11),transparent 60%),radial-gradient(ellipse 70% 45% at 84% 100%,rgba(255,184,107,.06),transparent 56%),var(--bg);
  --theme-muted-glow:0 18px 50px rgba(0,0,0,.42),0 0 24px rgba(255,107,26,.085);
}
body.shaaft-theme-christmas{
  --accent:#22c55e; --accent2:#f87171; --accent-rgb:34,197,94; --accent2-rgb:248,113,113;
  --bg:#06100b; --bg-rgb:6,16,11; --surface:#0a1810; --surface2:#0f2217; --surface3:#17331f;
  --theme-active-bg:linear-gradient(135deg,rgba(34,197,94,.20),rgba(248,113,113,.085));
  --theme-button-gradient:linear-gradient(135deg,#22c55e,#16a34a);
  --theme-hero-gradient:radial-gradient(circle at 12% 0,rgba(34,197,94,.22),transparent 36%),radial-gradient(circle at 88% 18%,rgba(248,113,113,.11),transparent 42%),linear-gradient(135deg,#0a1810,#06100b 54%,#132619);
  --theme-page-wash:radial-gradient(ellipse 90% 55% at 20% -12%,rgba(34,197,94,.10),transparent 60%),radial-gradient(ellipse 70% 45% at 84% 100%,rgba(248,113,113,.055),transparent 56%),var(--bg);
  --theme-muted-glow:0 18px 50px rgba(0,0,0,.40),0 0 24px rgba(34,197,94,.08);
}
body.shaaft-theme-halloween{
  --accent:#ff7a18; --accent2:#c084fc; --accent-rgb:255,122,24; --accent2-rgb:192,132,252;
  --bg:#100711; --bg-rgb:16,7,17; --surface:#190d1b; --surface2:#231126; --surface3:#301739;
  --theme-active-bg:linear-gradient(135deg,rgba(255,122,24,.22),rgba(192,132,252,.09));
  --theme-button-gradient:linear-gradient(135deg,#ff7a18,#c084fc);
  --theme-hero-gradient:radial-gradient(circle at 12% 0,rgba(255,122,24,.23),transparent 36%),radial-gradient(circle at 88% 18%,rgba(192,132,252,.12),transparent 42%),linear-gradient(135deg,#1a0a12,#100711 54%,#281035);
  --theme-page-wash:radial-gradient(ellipse 90% 55% at 20% -12%,rgba(255,122,24,.11),transparent 60%),radial-gradient(ellipse 70% 45% at 84% 100%,rgba(192,132,252,.065),transparent 56%),var(--bg);
  --theme-muted-glow:0 18px 50px rgba(0,0,0,.42),0 0 24px rgba(255,122,24,.085);
}
body.shaaft-theme-neon{
  --accent:#22ff35; --accent2:#00f5a0; --accent-rgb:34,255,53; --accent2-rgb:0,245,160;
  --bg:#020906; --bg-rgb:2,9,6; --surface:#06120c; --surface2:#081a11; --surface3:#0b2618;
  --theme-active-bg:linear-gradient(135deg,rgba(34,255,53,.18),rgba(0,245,160,.075));
  --theme-button-gradient:linear-gradient(135deg,#22ff35,#00e090);
  --theme-hero-gradient:radial-gradient(circle at 12% 0,rgba(34,255,53,.18),transparent 36%),radial-gradient(circle at 88% 18%,rgba(0,245,160,.10),transparent 42%),linear-gradient(135deg,#06120c,#020906 56%,#092016);
  --theme-hero-overlay:linear-gradient(105deg,rgba(2,9,6,.99) 0%,rgba(4,16,10,.95) 44%,rgba(34,255,53,.11) 70%,rgba(0,245,160,.065) 100%);
  --theme-page-wash:radial-gradient(ellipse 90% 55% at 20% -12%,rgba(34,255,53,.075),transparent 60%),radial-gradient(ellipse 70% 45% at 84% 100%,rgba(0,245,160,.05),transparent 56%),var(--bg);
  --theme-muted-glow:0 18px 50px rgba(0,0,0,.44),0 0 22px rgba(34,255,53,.065);
  --theme-card-glow:0 20px 58px rgba(0,0,0,.46),0 0 30px rgba(34,255,53,.12);
  --theme-card-glow-strong:0 30px 90px rgba(0,0,0,.56),0 0 42px rgba(34,255,53,.16);
}
body.shaaft-theme-crimson{
  --accent:#ff315f; --accent2:#ff8a2a; --accent-rgb:255,49,95; --accent2-rgb:255,138,42;
  --bg:#100205; --bg-rgb:16,2,5; --surface:#19060a; --surface2:#240910; --surface3:#35101a;
  --theme-active-bg:linear-gradient(135deg,rgba(255,49,95,.20),rgba(255,138,42,.085));
  --theme-button-gradient:linear-gradient(135deg,#ff315f,#ff7a18);
  --theme-hero-gradient:radial-gradient(circle at 12% 0,rgba(255,49,95,.22),transparent 36%),radial-gradient(circle at 88% 18%,rgba(255,138,42,.11),transparent 42%),linear-gradient(135deg,#19050a,#100205 56%,#2a0710);
  --theme-hero-overlay:linear-gradient(105deg,rgba(16,2,5,.99) 0%,rgba(25,4,9,.95) 44%,rgba(255,49,95,.13) 70%,rgba(255,138,42,.07) 100%);
  --theme-page-wash:radial-gradient(ellipse 90% 55% at 20% -12%,rgba(255,49,95,.095),transparent 60%),radial-gradient(ellipse 70% 45% at 84% 100%,rgba(255,138,42,.055),transparent 56%),var(--bg);
  --theme-muted-glow:0 18px 50px rgba(0,0,0,.44),0 0 22px rgba(255,49,95,.07);
  --theme-card-glow:0 20px 58px rgba(0,0,0,.46),0 0 30px rgba(255,49,95,.13);
  --theme-card-glow-strong:0 30px 90px rgba(0,0,0,.56),0 0 42px rgba(255,49,95,.17);
}

/* One final selector set for the actual class names used in inline EJS styles. */
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] :is(
  .pay-hero,.bib-hero,.support-hero-v3,.sp-hero,.wb-hero,.ms-hero-banner,.admin-hero,.adm-hero,
  .library-hero,.payment-hero,.page-hero,.profile-hero,.stats-hero,.leaderboard-hero,.hero-banner
){
  background:var(--theme-hero-gradient)!important;
  border-color:rgba(var(--accent-rgb),.28)!important;
  box-shadow:var(--theme-card-glow-strong)!important;
}
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] :is(.pay-hero,.bib-hero,.support-hero-v3,.sp-hero,.wb-hero)::before{border-color:rgba(var(--accent-rgb),.14)!important;}
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .wb-hero::after{
  background:linear-gradient(90deg,transparent,rgba(var(--accent-rgb),.16)),repeating-linear-gradient(90deg,rgba(255,255,255,.10) 0 1px,transparent 1px 16px)!important;
}

body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] :is(
  .pay-card,.pts-card,.point-benefit,.pts-balance-bar,
  .bib-panel,.bib-card,.library-item,.poster-card,.poster-tile,.media-card,.media-tile,
  .support-metric-card,.support-quick-card,.support-ticket-card,.support-help-card,.support-empty-state,.support-faq-item-v3,
  .sp-card,.sp-panel,.ticket-row,.faq-item,.messenger-composer,
  .ms-section,.ms-total-card,.ms-reward-card,.invite-token-row,
  .adm-card,.adm-panel,.adm-stat-card,.adm-online-user-card,.top-users-card,.stats-live-card,.stats-leaderboard-card,
  .payment-card,.payment-package,.point-package,.plan-card,.subscription-card,.access-card,.price-card,.shop-card,
  .wish-card,.request-card,.trending-card,.latest-card,.pop-card,.wdg-card,.card
){
  background:var(--theme-panel-bg)!important;
  border-color:rgba(var(--accent-rgb),.14)!important;
  box-shadow:var(--theme-muted-glow)!important;
}
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] :is(
  .pay-card:hover,.pts-card:hover,.point-benefit:hover,
  .bib-card:hover,.library-item:hover,.poster-card:hover,.poster-tile:hover,.media-card:hover,.media-tile:hover,
  .support-quick-card:hover,.support-faq-item-v3:hover,.ticket-row:hover,.faq-item:hover,
  .adm-card:hover,.adm-panel:hover,.adm-online-user-card:hover,.top-user-row:hover,
  .payment-card:hover,.payment-package:hover,.point-package:hover,.plan-card:hover,.subscription-card:hover,.access-card:hover,.price-card:hover,.shop-card:hover,
  .wish-card:hover,.request-card:hover,.trending-card:hover,.latest-card:hover,.pop-card:hover,.wdg-card:hover,.card:hover
){
  background:var(--theme-hover-bg)!important;
  border-color:rgba(var(--accent-rgb),.42)!important;
  box-shadow:var(--theme-card-glow)!important;
}
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] :is(.pay-card.recommended,.pay-card.featured,.pts-card.popular,.point-benefit.paid,.point-benefit.iptv,.payment-card.featured,.point-package.featured,.plan-card.featured,.subscription-card.featured,.price-card.featured){
  background:radial-gradient(circle at 50% 0,rgba(var(--accent-rgb),.18),transparent 46%),var(--theme-panel-bg)!important;
  border-color:rgba(var(--accent-rgb),.40)!important;
  box-shadow:var(--theme-card-glow-strong)!important;
}

body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] :is(
  .bib-tab,.library-tab,.lib-tab,.category-chip,.filter-btn,.wr-tab,.period-tab,.adm-tab,.settings-rail-btn,
  .support-trust-row span,.point-chip,.support-pill,.faq-tag,.category-pill,.ticket-status,.ticket-category,.pay-badge,.pts-bonus
){
  background:rgba(var(--accent-rgb),.105)!important;
  border-color:rgba(var(--accent-rgb),.22)!important;
  color:var(--accent2)!important;
  box-shadow:none!important;
}
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] :is(.bib-tab.active,.library-tab.active,.lib-tab.active,.category-chip.active,.filter-btn.active,.wr-tab.active,.period-tab.active,.adm-tab.active,.settings-rail-btn.active){
  background:var(--theme-active-bg)!important;
  border-color:rgba(var(--accent-rgb),.52)!important;
  color:#fff!important;
  box-shadow:0 10px 28px rgba(var(--accent-rgb),.18)!important;
}

body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] :is(
  .btn-primary,.sp-btn-primary,.hero-btn-primary,.adm-btn-accent,.save-btn,.primary-btn,.pay-btn,.buy-btn,.wb-buy-points-btn,.wish-submit-btn,.request-submit,.invite-premium-btn,.invite-token-copy,.support-main-cta,.bib-btn.primary,.pay-badge,.most-selected,.most-chosen,.premium-upgrade,.upgrade-badge,.package-ribbon
){
  background:var(--theme-button-gradient)!important;
  border-color:rgba(var(--accent-rgb),.42)!important;
  color:#fff!important;
  box-shadow:0 12px 34px rgba(var(--accent-rgb),.25)!important;
}
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] :is(.btn-secondary,.hero-btn-secondary,.bib-btn:not(.primary),.sp-btn:not(.sp-btn-primary)){
  background:rgba(255,255,255,.045)!important;
  border-color:rgba(var(--accent-rgb),.18)!important;
  color:var(--text)!important;
}
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] :is(.btn-secondary,.hero-btn-secondary,.bib-btn:not(.primary),.sp-btn:not(.sp-btn-primary)):hover{
  background:rgba(var(--accent-rgb),.10)!important;
  border-color:rgba(var(--accent-rgb),.40)!important;
  color:var(--accent2)!important;
}

body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] :is(.pay-features li::before,.support-metric-icon,.ticket-avatar,.sys-item-icon,.launch-icon,.adm-online-avatar-fallback,.mobile-nav-icon){
  background:rgba(var(--accent-rgb),.12)!important;
  border-color:rgba(var(--accent-rgb),.22)!important;
  color:var(--accent2)!important;
  box-shadow:0 8px 24px rgba(var(--accent-rgb),.16)!important;
}
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] :is(.pts-amount,.pts-balance-val,.pay-price,.adm-stat-val,.ms-total-val,.top-user-pts,.top-user-points){
  background:linear-gradient(135deg,#fff,var(--accent2))!important;
  -webkit-background-clip:text!important;
  -webkit-text-fill-color:transparent!important;
  background-clip:text!important;
}
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] :is(.pay-hero-sub,.bib-hero p,.support-sub-v3,.pay-desc,.point-benefit p,.support-quick-card small,.support-empty-state p){color:var(--text2)!important;}
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] :is(.pay-plan,.pay-price span,.pts-price-sub,.pay-section-head,.support-metric-card span,.support-faq-category){color:var(--text3)!important;}

body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] :is(.bib-search,.bib-select,.sp-input,.ticket-reply-input,input,select,textarea){
  background:rgba(255,255,255,.04)!important;
  border-color:rgba(var(--accent-rgb),.17)!important;
  color:var(--text)!important;
}
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] :is(.bib-search,.bib-select,.sp-input,.ticket-reply-input,input,select,textarea):focus{
  border-color:rgba(var(--accent-rgb),.55)!important;
  box-shadow:0 0 0 4px rgba(var(--accent-rgb),.12)!important;
}

/* Catch remaining hardcoded gold backgrounds in inline blocks without touching the default Purple theme. */
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] [style*="124,77,255"],
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] [style*="139,92,246"],
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] [style*="108,99,255"],
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] [style*="#d4af37"],
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] [style*="#d4af37"],
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] [style*="#c99722"]{
  border-color:rgba(var(--accent-rgb),.28)!important;
  box-shadow:0 10px 30px rgba(var(--accent-rgb),.12)!important;
}
/* --------------------------------------------------------------------------
   v1.1.8 PREMIUM THEME FINISH PASS
   - Purple remains the baseline/original look.
   - Other themes use restrained premium palettes, not full-strength neon wash.
   - Final override catches inline gold leftovers: My Page buy buttons, support bubble,
     point shop, library, support, leaderboard, streamer-now, modals and popups.
---------------------------------------------------------------------------- */

body.shaaft-theme-gold{
  --accent-rgb:108,99,255;
  --accent2-rgb:139,133,255;
  --accent-soft:rgba(212,175,55,.14);
  --accent-border:rgba(212,175,55,.28);
  --accent-gradient:linear-gradient(135deg,#d4af37,#f5d36d);
}

body:not(.shaaft-theme-gold)[class*="shaaft-theme-"]{
  --premium-radius:22px;
  --premium-border:rgba(var(--accent-rgb),.18);
  --premium-border-strong:rgba(var(--accent-rgb),.36);
  --premium-surface:linear-gradient(180deg,rgba(255,255,255,.035),rgba(255,255,255,.015));
  --premium-surface-accent:radial-gradient(circle at 12% 0%,rgba(var(--accent-rgb),.105),transparent 42%),linear-gradient(180deg,rgba(255,255,255,.035),rgba(255,255,255,.014));
  --premium-surface-strong:radial-gradient(circle at 12% 0%,rgba(var(--accent-rgb),.155),transparent 42%),radial-gradient(circle at 92% 0%,rgba(var(--accent2-rgb),.08),transparent 46%),linear-gradient(180deg,rgba(255,255,255,.045),rgba(255,255,255,.018));
  --premium-cta:linear-gradient(135deg,var(--accent),var(--accent2));
  --premium-soft:rgba(var(--accent-rgb),.105);
  --premium-soft-2:rgba(var(--accent2-rgb),.075);
  --premium-focus:0 0 0 4px rgba(var(--accent-rgb),.13);
  --premium-shadow:0 20px 60px rgba(0,0,0,.38),0 0 24px rgba(var(--accent-rgb),.065);
  --premium-shadow-hover:0 26px 76px rgba(0,0,0,.46),0 0 32px rgba(var(--accent-rgb),.12);
}

/* Refined palettes: darker base, softer accents, premium contrast */
body.shaaft-theme-oled{
  --accent:#8c8dff; --accent2:#f0efff; --accent-rgb:140,141,255; --accent2-rgb:240,239,255;
  --bg:#000000; --bg-rgb:0,0,0; --surface:#050506; --surface2:#09090d; --surface3:#111119;
  --text:#f8f8ff; --text2:#cbcbe0; --text3:#8d8da2;
  --theme-page-wash:radial-gradient(ellipse 70% 48% at 22% -14%,rgba(140,141,255,.065),transparent 62%),#000;
  --theme-hero-gradient:radial-gradient(circle at 14% 0%,rgba(140,141,255,.16),transparent 38%),radial-gradient(circle at 90% 12%,rgba(240,239,255,.055),transparent 44%),linear-gradient(135deg,#050506,#000 58%,#07070c);
  --theme-button-gradient:linear-gradient(135deg,#7778ff,#c9c7ff);
  --theme-active-bg:linear-gradient(135deg,rgba(140,141,255,.15),rgba(240,239,255,.055));
}
body.shaaft-theme-ocean{
  --accent:#2dc5e8; --accent2:#8beaff; --accent-rgb:45,197,232; --accent2-rgb:139,234,255;
  --bg:#041017; --bg-rgb:4,16,23; --surface:#071720; --surface2:#0a2130; --surface3:#0e2d42;
  --text:#f2fbff; --text2:#b9e0ec; --text3:#77a4b3;
  --theme-page-wash:radial-gradient(ellipse 85% 50% at 20% -12%,rgba(45,197,232,.085),transparent 62%),radial-gradient(ellipse 70% 45% at 88% 100%,rgba(139,234,255,.045),transparent 58%),var(--bg);
  --theme-hero-gradient:radial-gradient(circle at 14% 0%,rgba(45,197,232,.19),transparent 38%),radial-gradient(circle at 92% 14%,rgba(139,234,255,.095),transparent 44%),linear-gradient(135deg,#071923,#041017 58%,#092538);
  --theme-button-gradient:linear-gradient(135deg,#20b9dd,#6bdcf3);
  --theme-active-bg:linear-gradient(135deg,rgba(45,197,232,.18),rgba(139,234,255,.075));
}
body.shaaft-theme-ember{
  --accent:#f06a24; --accent2:#f5b061; --accent-rgb:240,106,36; --accent2-rgb:245,176,97;
  --bg:#120706; --bg-rgb:18,7,6; --surface:#1a0d09; --surface2:#241109; --surface3:#32170d;
  --text:#fff5ec; --text2:#e9c4a8; --text3:#ad8066;
  --theme-page-wash:radial-gradient(ellipse 85% 50% at 20% -12%,rgba(240,106,36,.085),transparent 62%),radial-gradient(ellipse 70% 45% at 88% 100%,rgba(245,176,97,.042),transparent 58%),var(--bg);
  --theme-hero-gradient:radial-gradient(circle at 14% 0%,rgba(240,106,36,.19),transparent 38%),radial-gradient(circle at 92% 14%,rgba(245,176,97,.085),transparent 44%),linear-gradient(135deg,#1b0a06,#120706 58%,#2a1008);
  --theme-button-gradient:linear-gradient(135deg,#e85f1d,#f39a3d);
  --theme-active-bg:linear-gradient(135deg,rgba(240,106,36,.18),rgba(245,176,97,.07));
}
body.shaaft-theme-christmas{
  --accent:#2dbd65; --accent2:#e66f6f; --accent-rgb:45,189,101; --accent2-rgb:230,111,111;
  --bg:#06100b; --bg-rgb:6,16,11; --surface:#0a1710; --surface2:#0e2116; --surface3:#15301e;
  --text:#f4fff7; --text2:#c4ebd2; --text3:#82ad91;
  --theme-page-wash:radial-gradient(ellipse 85% 50% at 20% -12%,rgba(45,189,101,.08),transparent 62%),radial-gradient(ellipse 70% 45% at 88% 100%,rgba(230,111,111,.042),transparent 58%),var(--bg);
  --theme-hero-gradient:radial-gradient(circle at 14% 0%,rgba(45,189,101,.17),transparent 38%),radial-gradient(circle at 92% 14%,rgba(230,111,111,.075),transparent 44%),linear-gradient(135deg,#0a1710,#06100b 58%,#122619);
  --theme-button-gradient:linear-gradient(135deg,#22b85b,#37d978);
  --theme-active-bg:linear-gradient(135deg,rgba(45,189,101,.17),rgba(230,111,111,.06));
}
body.shaaft-theme-halloween{
  --accent:#eb7624; --accent2:#a979e8; --accent-rgb:235,118,36; --accent2-rgb:169,121,232;
  --bg:#100711; --bg-rgb:16,7,17; --surface:#180d1a; --surface2:#221125; --surface3:#2e1736;
  --text:#fff4e8; --text2:#e3c9b6; --text3:#a98b76;
  --theme-page-wash:radial-gradient(ellipse 85% 50% at 20% -12%,rgba(235,118,36,.085),transparent 62%),radial-gradient(ellipse 70% 45% at 88% 100%,rgba(169,121,232,.052),transparent 58%),var(--bg);
  --theme-hero-gradient:radial-gradient(circle at 14% 0%,rgba(235,118,36,.18),transparent 38%),radial-gradient(circle at 92% 14%,rgba(169,121,232,.08),transparent 44%),linear-gradient(135deg,#190a12,#100711 58%,#251034);
  --theme-button-gradient:linear-gradient(135deg,#e66d1d,#9a6be4);
  --theme-active-bg:linear-gradient(135deg,rgba(235,118,36,.18),rgba(169,121,232,.065));
}
body.shaaft-theme-neon{
  --accent:#56f06a; --accent2:#20dca0; --accent-rgb:86,240,106; --accent2-rgb:32,220,160;
  --bg:#020907; --bg-rgb:2,9,7; --surface:#06120d; --surface2:#091b13; --surface3:#0d281b;
  --text:#f1fff3; --text2:#bcebc7; --text3:#78aa86;
  --theme-page-wash:radial-gradient(ellipse 85% 50% at 20% -12%,rgba(86,240,106,.058),transparent 64%),radial-gradient(ellipse 70% 45% at 88% 100%,rgba(32,220,160,.04),transparent 58%),var(--bg);
  --theme-hero-gradient:radial-gradient(circle at 14% 0%,rgba(86,240,106,.13),transparent 39%),radial-gradient(circle at 92% 14%,rgba(32,220,160,.07),transparent 45%),linear-gradient(135deg,#06120d,#020907 60%,#092016);
  --theme-button-gradient:linear-gradient(135deg,#4ade63,#18c68e);
  --theme-active-bg:linear-gradient(135deg,rgba(86,240,106,.135),rgba(32,220,160,.055));
  --theme-card-glow:0 20px 58px rgba(0,0,0,.46),0 0 22px rgba(86,240,106,.075);
  --theme-card-glow-strong:0 30px 90px rgba(0,0,0,.56),0 0 34px rgba(86,240,106,.11);
}
body.shaaft-theme-crimson{
  --accent:#e83f62; --accent2:#f07b35; --accent-rgb:232,63,98; --accent2-rgb:240,123,53;
  --bg:#100306; --bg-rgb:16,3,6; --surface:#19070b; --surface2:#230a10; --surface3:#32101a;
  --text:#fff2f4; --text2:#e8bac3; --text3:#aa7883;
  --theme-page-wash:radial-gradient(ellipse 85% 50% at 20% -12%,rgba(232,63,98,.075),transparent 63%),radial-gradient(ellipse 70% 45% at 88% 100%,rgba(240,123,53,.042),transparent 58%),var(--bg);
  --theme-hero-gradient:radial-gradient(circle at 14% 0%,rgba(232,63,98,.16),transparent 39%),radial-gradient(circle at 92% 14%,rgba(240,123,53,.075),transparent 45%),linear-gradient(135deg,#19060a,#100306 60%,#290812);
  --theme-button-gradient:linear-gradient(135deg,#e43d5d,#e87831);
  --theme-active-bg:linear-gradient(135deg,rgba(232,63,98,.16),rgba(240,123,53,.06));
  --theme-card-glow:0 20px 58px rgba(0,0,0,.46),0 0 22px rgba(232,63,98,.08);
  --theme-card-glow-strong:0 30px 90px rgba(0,0,0,.56),0 0 36px rgba(232,63,98,.12);
}

/* Premium global surfaces: no cheap full-color flood. */
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] :is(
  .card,.adm-card,.adm-panel,.adm-stat-card,.settings-box,.settings-accordion,.settings-rail,.settings-copybox,
  .ms-section,.ms-total-card,.ms-reward-card,.invite-token-row,.ms-shortcut,
  .top-users-card,.stats-live-card,.stats-leaderboard-card,.leaderboard-summary-card,.system-status-bar,.sys-item,
  .bib-panel,.bib-card,.library-shell,.library-filter-shell,.library-toolbar,.library-actions,.library-empty,.media-card,.poster-card,.poster-tile,.media-tile,
  .pay-card,.pts-card,.point-benefit,.pts-balance-bar,.payment-card,.payment-package,.point-package,.plan-card,.subscription-card,.access-card,.price-card,.shop-card,
  .sp-card,.sp-panel,.support-metric-card,.support-quick-card,.support-ticket-card,.support-help-card,.support-empty-state,.support-faq-item-v3,.faq-item,.ticket-row,.ticket-panel,.messenger-composer,
  .profile-card,.wish-card,.request-card,.trending-card,.latest-card,.pop-card,.wdg-card,.modal-card,.wish-confirm,.wb-detail-panel,#message-bubble-panel,#admin-chat-bubble
){
  background:var(--premium-surface-accent)!important;
  border-color:var(--premium-border)!important;
  box-shadow:var(--premium-shadow)!important;
}
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] :is(
  .hero-banner,.hero-card,.hero,.welcome-card,.adm-hero,.admin-hero,.stats-hero,.leaderboard-hero,.wishes-hero,.wish-hero,.wb-hero,.hero-wishes,.page-hero,.ms-hero-banner,.library-hero,.lib-hero,.bib-hero,.pay-hero,.payment-hero,.profile-hero,.support-hero,.support-hero-v3,.sp-hero
){
  background:var(--theme-hero-gradient)!important;
  border-color:var(--premium-border-strong)!important;
  box-shadow:var(--theme-card-glow-strong,var(--premium-shadow-hover))!important;
}
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] :is(
  .card:hover,.adm-card:hover,.adm-panel:hover,.ms-shortcut:hover,.top-user-row:hover,.bib-card:hover,.media-card:hover,.poster-card:hover,.poster-tile:hover,.media-tile:hover,
  .pay-card:hover,.pts-card:hover,.point-benefit:hover,.payment-card:hover,.point-package:hover,.plan-card:hover,.subscription-card:hover,.price-card:hover,.shop-card:hover,
  .support-quick-card:hover,.support-faq-item-v3:hover,.ticket-row:hover,.faq-item:hover,.profile-card:hover,.wish-card:hover,.request-card:hover,.trending-card:hover,.latest-card:hover,.pop-card:hover,.wdg-card:hover
){
  background:var(--premium-surface-strong)!important;
  border-color:var(--premium-border-strong)!important;
  box-shadow:var(--premium-shadow-hover)!important;
}

/* CTAs: includes My Page "Køb points", support bubble, admin chat and payment/shop buttons. */
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] :is(
  .btn-primary,.sp-btn-primary,.hero-btn-primary,.adm-btn-accent,.save-btn,.primary-btn,.pay-btn,.buy-btn,.wb-buy-points-btn,.wish-submit-btn,.request-submit,.invite-premium-btn,.invite-token-copy,.support-main-cta,.bib-btn.primary,.ms-buy-points-btn,.ms-points-btn,.points-buy-btn,.buy-points-btn,.shop-buy-btn,.pay-badge,.most-selected,.most-chosen,.premium-upgrade,.upgrade-badge,.package-ribbon,#message-bubble,#ev-popup-btn
),
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] a[href*="/betaling"],
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] a[href*="/pointshop"],
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] a[href*="points"]{
  background:var(--theme-button-gradient)!important;
  border-color:rgba(var(--accent-rgb),.40)!important;
  color:#fff!important;
  box-shadow:0 14px 36px rgba(var(--accent-rgb),.22),0 3px 12px rgba(0,0,0,.24)!important;
}
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] #message-bubble:hover{
  box-shadow:0 16px 44px rgba(var(--accent-rgb),.30),0 3px 12px rgba(0,0,0,.28)!important;
}

/* Inline gold rescue: override inline backgrounds, borders and JS-created support panel colors. */
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] [style*="124,77,255"],
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] [style*="139,92,246"],
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] [style*="108,99,255"],
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] [style*="124,58,237"],
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] [style*="#d4af37"],
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] [style*="#b8891e"],
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] [style*="#d4af37"],
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] [style*="#c99722"],
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] [style*="#d4af37"]{
  border-color:rgba(var(--accent-rgb),.26)!important;
  box-shadow:0 12px 34px rgba(var(--accent-rgb),.10),0 2px 10px rgba(0,0,0,.22)!important;
}
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] :is(button,a,div,span)[style*="linear-gradient"][style*="#d4af37"],
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] :is(button,a,div,span)[style*="linear-gradient"][style*="#b8891e"],
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] :is(button,a,div,span)[style*="linear-gradient"][style*="124,77,255"],
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] :is(button,a,div,span)[style*="linear-gradient"][style*="139,92,246"]{
  background:var(--theme-button-gradient)!important;
  color:#fff!important;
}
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] :is(div,section,article,header)[style*="rgba(124,77,255"],
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] :is(div,section,article,header)[style*="rgba(139,92,246"],
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] :is(div,section,article,header)[style*="rgba(124,58,237"]{
  background:var(--premium-surface-accent)!important;
  color:var(--text)!important;
}

/* Pills, tabs, status chips and icons use subtle accent, not loud full color. */
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] :is(
  .bib-tab,.library-tab,.lib-tab,.category-chip,.filter-btn,.wr-tab,.period-tab,.adm-tab,.settings-rail-btn,.point-chip,.support-pill,.faq-tag,.category-pill,.ticket-status,.ticket-category,.adm-pill,.adm-badge,.user-badge,.role-badge,.library-badge,.media-badge,.bonus-badge,.payment-bonus,.popular-badge,.most-popular-badge,.support-trust-row span
){
  background:rgba(var(--accent-rgb),.09)!important;
  border-color:rgba(var(--accent-rgb),.20)!important;
  color:var(--accent2)!important;
  box-shadow:none!important;
}
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] :is(.bib-tab.active,.library-tab.active,.lib-tab.active,.category-chip.active,.filter-btn.active,.wr-tab.active,.period-tab.active,.adm-tab.active,.settings-rail-btn.active){
  background:var(--theme-active-bg)!important;
  border-color:rgba(var(--accent-rgb),.42)!important;
  color:#fff!important;
  box-shadow:0 10px 28px rgba(var(--accent-rgb),.14)!important;
}

/* Inputs and focus */
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] :is(input,select,textarea,.adm-input,.bib-search,.bib-select,.sp-input,.ticket-reply-input):focus{
  border-color:rgba(var(--accent-rgb),.50)!important;
  box-shadow:var(--premium-focus)!important;
}

/* Event/reward popup */
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] #ev-popup-box{
  background:var(--premium-surface-strong)!important;
  border-color:rgba(var(--accent-rgb),.30)!important;
  box-shadow:0 30px 80px rgba(0,0,0,.62),0 0 44px rgba(var(--accent-rgb),.12)!important;
}

/* Support message bubble internal content */
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] #message-bubble-panel [style*="rgba(124,77,255"],
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] #message-bubble-panel [style*="#d4af37"],
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] #message-bubble-panel [style*="#b8891e"],
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] #message-bubble-panel [style*="#d4af37"]{
  border-color:rgba(var(--accent-rgb),.24)!important;
  box-shadow:none!important;
}
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] #message-bubble-panel a[href="/tickets/new"],
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] #message-bubble-panel button{
  background:var(--theme-button-gradient)!important;
  color:#fff!important;
}

/* Keep semantic colors semantic. Do not theme danger/success into accent. */
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] :is(.danger,.error,.red,.delete-btn){--semantic:#ef4444;}
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] :is(.success,.ok,.green){--semantic:#22c55e;}

/* Slightly reduce visual noise on neon only, still premium glow. */
body.shaaft-theme-neon :is(.card,.adm-card,.ms-section,.bib-card,.pay-card,.sp-card,.support-quick-card,.top-users-card){
  box-shadow:0 20px 60px rgba(0,0,0,.44),0 0 18px rgba(86,240,106,.055)!important;
}
body.shaaft-theme-neon :is(.btn-primary,.hero-btn-primary,.pay-btn,.buy-btn,#message-bubble){
  box-shadow:0 14px 34px rgba(86,240,106,.18),0 3px 12px rgba(0,0,0,.26)!important;
}

/* --------------------------------------------------------------------------
   v1.1.8 RAZER/PREMIUM THEME REFINEMENT
   - Purple remains untouched/original.
   - Neon Green is now SHAAFT/Razer style: OLED black + controlled neon edge-light.
   - Other themes use premium palettes instead of loud full-color floods.
   - Sidebar nav is never styled like a CTA button.
---------------------------------------------------------------------------- */

/* Premium palette tuning */
body.shaaft-theme-neon{
  --accent:#39ff14; --accent2:#00d084; --accent-rgb:57,255,20; --accent2-rgb:0,208,132;
  --bg:#010201; --bg-rgb:1,2,1;
  --surface:#040704; --surface2:#071007; --surface3:#0b1a0d;
  --text:#f4fff3; --text2:#b8dfbc; --text3:#6f9477;
  --border:rgba(57,255,20,.075); --border2:rgba(57,255,20,.16);
  --theme-page-wash:
    radial-gradient(ellipse 70% 42% at 18% -12%,rgba(57,255,20,.045),transparent 64%),
    radial-gradient(ellipse 58% 36% at 92% 108%,rgba(0,208,132,.035),transparent 60%),
    #010201;
  --theme-hero-gradient:
    radial-gradient(circle at 10% 0%,rgba(57,255,20,.105),transparent 38%),
    radial-gradient(circle at 88% 18%,rgba(0,208,132,.052),transparent 44%),
    linear-gradient(135deg,#050805 0%,#010201 58%,#061207 100%);
  --theme-hero-overlay:linear-gradient(105deg,rgba(1,2,1,.995) 0%,rgba(3,7,3,.96) 48%,rgba(57,255,20,.075) 74%,rgba(0,208,132,.045) 100%);
  --premium-surface-accent:linear-gradient(180deg,rgba(57,255,20,.034),rgba(255,255,255,.012));
  --premium-surface-strong:linear-gradient(180deg,rgba(57,255,20,.060),rgba(255,255,255,.017));
  --premium-border:rgba(57,255,20,.115);
  --premium-border-strong:rgba(57,255,20,.24);
  --theme-active-bg:linear-gradient(135deg,rgba(57,255,20,.115),rgba(0,208,132,.045));
  --theme-button-gradient:linear-gradient(135deg,#102612 0%,#1fcf48 58%,#0f9f61 100%);
  --theme-muted-glow:0 18px 52px rgba(0,0,0,.58),0 0 18px rgba(57,255,20,.050);
  --theme-card-glow:0 22px 64px rgba(0,0,0,.62),0 0 22px rgba(57,255,20,.10);
  --theme-card-glow-strong:0 32px 98px rgba(0,0,0,.68),0 0 34px rgba(57,255,20,.145);
  --accent-glow:rgba(57,255,20,.22);
}
body.shaaft-theme-ocean{
  --accent:#23b7d6; --accent2:#7ddff1; --accent-rgb:35,183,214; --accent2-rgb:125,223,241;
  --bg:#020b12; --bg-rgb:2,11,18; --surface:#06131d; --surface2:#091b2a; --surface3:#0e2b40;
  --text:#f1fbff; --text2:#b8ddeb; --text3:#78a3b2;
  --premium-surface-accent:linear-gradient(180deg,rgba(35,183,214,.042),rgba(255,255,255,.014));
  --premium-surface-strong:linear-gradient(180deg,rgba(35,183,214,.070),rgba(255,255,255,.018));
  --premium-border:rgba(35,183,214,.13); --premium-border-strong:rgba(35,183,214,.28);
  --theme-button-gradient:linear-gradient(135deg,#0f5168,#27bddb 60%,#56d6ec);
}
body.shaaft-theme-crimson{
  --accent:#df3356; --accent2:#e67a36; --accent-rgb:223,51,86; --accent2-rgb:230,122,54;
  --bg:#0c0204; --bg-rgb:12,2,4; --surface:#150609; --surface2:#20090f; --surface3:#2e1018;
  --text:#fff3f5; --text2:#e5bac2; --text3:#9e6e78;
  --premium-surface-accent:linear-gradient(180deg,rgba(223,51,86,.046),rgba(255,255,255,.013));
  --premium-surface-strong:linear-gradient(180deg,rgba(223,51,86,.075),rgba(255,255,255,.018));
  --premium-border:rgba(223,51,86,.13); --premium-border-strong:rgba(223,51,86,.27);
  --theme-button-gradient:linear-gradient(135deg,#651523,#d93455 60%,#e77a33);
}
body.shaaft-theme-ember{
  --accent:#e86f25; --accent2:#e6a05c; --accent-rgb:232,111,37; --accent2-rgb:230,160,92;
  --bg:#0f0503; --bg-rgb:15,5,3; --surface:#180b06; --surface2:#231008; --surface3:#32160a;
  --premium-surface-accent:linear-gradient(180deg,rgba(232,111,37,.046),rgba(255,255,255,.013));
  --premium-surface-strong:linear-gradient(180deg,rgba(232,111,37,.075),rgba(255,255,255,.018));
  --premium-border:rgba(232,111,37,.13); --premium-border-strong:rgba(232,111,37,.27);
  --theme-button-gradient:linear-gradient(135deg,#713115,#df6a21 60%,#e99d55);
}
body.shaaft-theme-christmas{
  --accent:#2fbf63; --accent2:#d95f63; --accent-rgb:47,191,99; --accent2-rgb:217,95,99;
  --bg:#040b07; --bg-rgb:4,11,7; --surface:#08150d; --surface2:#0d2115; --surface3:#14301e;
  --premium-surface-accent:linear-gradient(180deg,rgba(47,191,99,.045),rgba(217,95,99,.012));
  --premium-surface-strong:linear-gradient(180deg,rgba(47,191,99,.070),rgba(217,95,99,.018));
  --premium-border:rgba(47,191,99,.13); --premium-border-strong:rgba(47,191,99,.27);
  --theme-button-gradient:linear-gradient(135deg,#145f31,#2fbd62 62%,#a94448);
}
body.shaaft-theme-halloween{
  --accent:#e97822; --accent2:#9b71dd; --accent-rgb:233,120,34; --accent2-rgb:155,113,221;
  --bg:#0d050f; --bg-rgb:13,5,15; --surface:#170b19; --surface2:#211026; --surface3:#2f1738;
  --premium-surface-accent:linear-gradient(180deg,rgba(233,120,34,.045),rgba(155,113,221,.014));
  --premium-surface-strong:linear-gradient(180deg,rgba(233,120,34,.072),rgba(155,113,221,.020));
  --premium-border:rgba(233,120,34,.13); --premium-border-strong:rgba(233,120,34,.27);
  --theme-button-gradient:linear-gradient(135deg,#703010,#e77721 58%,#885fd0);
}
body.shaaft-theme-oled{
  --premium-surface-accent:linear-gradient(180deg,rgba(150,145,255,.030),rgba(255,255,255,.012));
  --premium-surface-strong:linear-gradient(180deg,rgba(150,145,255,.050),rgba(255,255,255,.016));
  --premium-border:rgba(160,155,255,.105); --premium-border-strong:rgba(160,155,255,.22);
}

/* Sidebar: navigation is subtle, never a loud CTA. This fixes Point Shop menu. */
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .sidebar-nav .sidebar-link,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .sidebar-nav .sidebar-link[href*="/betaling"],
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .sidebar-nav .sidebar-link[href*="/pointshop"],
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .sidebar-nav a.sidebar-link[href*="points"]{
  background:transparent!important;
  border-color:transparent!important;
  color:var(--text2)!important;
  box-shadow:none!important;
}
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .sidebar-nav .sidebar-link:hover{
  background:rgba(var(--accent-rgb),.060)!important;
  border-color:rgba(var(--accent-rgb),.14)!important;
  color:var(--text)!important;
  box-shadow:none!important;
}
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .sidebar-nav .sidebar-link.active,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .sidebar-nav .sidebar-link.active[href*="/betaling"],
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .sidebar-nav .sidebar-link.active[href*="/pointshop"]{
  background:var(--theme-active-bg)!important;
  border-color:rgba(var(--accent-rgb),.24)!important;
  color:var(--accent2)!important;
  box-shadow:inset 0 0 0 1px rgba(var(--accent-rgb),.055),0 0 18px rgba(var(--accent-rgb),.075)!important;
}
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .sidebar-widget-btn,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .sidebar-widget-btn[href*="/betaling"],
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .sidebar-widget-btn[href*="points"]{
  background:rgba(var(--accent-rgb),.075)!important;
  border:1px solid rgba(var(--accent-rgb),.14)!important;
  color:var(--text2)!important;
  box-shadow:none!important;
}
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .sidebar-widget-btn:hover,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .sidebar-widget-btn[href*="/betaling"]:hover{
  background:rgba(var(--accent-rgb),.115)!important;
  border-color:rgba(var(--accent-rgb),.24)!important;
  color:var(--accent2)!important;
}

/* CTA discipline: premium, not flat neon. Exclude sidebar nav explicitly. */
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] :is(
  .btn-primary,.sp-btn-primary,.hero-btn-primary,.adm-btn-accent,.save-btn,.primary-btn,.pay-btn,.buy-btn,.wb-buy-points-btn,.wish-submit-btn,.request-submit,.invite-premium-btn,.invite-token-copy,.support-main-cta,.bib-btn.primary,.ms-buy-points-btn,.ms-points-btn,.points-buy-btn,.buy-points-btn,.shop-buy-btn,#message-bubble,#ev-popup-btn
):not(.sidebar-link):not(.sidebar-widget-btn){
  background:var(--theme-button-gradient)!important;
  border-color:rgba(var(--accent-rgb),.34)!important;
  color:#fff!important;
  box-shadow:0 14px 36px rgba(var(--accent-rgb),.17),0 3px 14px rgba(0,0,0,.30)!important;
}
body.shaaft-theme-neon :is(.btn-primary,.sp-btn-primary,.hero-btn-primary,.adm-btn-accent,.save-btn,.primary-btn,.pay-btn,.buy-btn,.wb-buy-points-btn,.wish-submit-btn,.request-submit,.support-main-cta,.ms-buy-points-btn,.points-buy-btn,.buy-points-btn,.shop-buy-btn,#message-bubble):not(.sidebar-link):not(.sidebar-widget-btn){
  background:linear-gradient(135deg,#0b180d 0%,#1fbf42 64%,#0f7d50 100%)!important;
  border-color:rgba(57,255,20,.42)!important;
  box-shadow:0 16px 42px rgba(57,255,20,.18),0 0 0 1px rgba(57,255,20,.08) inset,0 3px 14px rgba(0,0,0,.34)!important;
}

/* Keep anchors to billing/points from becoming huge buttons unless they are explicit CTAs. */
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] a[href*="/betaling"]:not(.btn-primary):not(.sp-btn-primary):not(.hero-btn-primary):not(.buy-btn):not(.pay-btn):not(.ms-buy-points-btn):not(.points-buy-btn):not(.buy-points-btn):not(.shop-buy-btn):not(.sidebar-widget-btn),
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] a[href*="/pointshop"]:not(.btn-primary):not(.sp-btn-primary):not(.hero-btn-primary):not(.buy-btn):not(.pay-btn):not(.sidebar-widget-btn){
  background:inherit!important;
  border-color:inherit!important;
  box-shadow:inherit!important;
}
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .sidebar-nav a[href*="/betaling"],
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .sidebar-nav a[href*="/pointshop"]{
  background:transparent!important;
}
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .sidebar-nav a.active[href*="/betaling"],
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] .sidebar-nav a.active[href*="/pointshop"]{
  background:var(--theme-active-bg)!important;
}

/* Native theme select readability. */
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] #cfg-portal-theme,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] select[name="portal_theme"],
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] select[name="theme"]{
  color-scheme:dark!important;
  background-color:var(--surface2)!important;
  background-image:linear-gradient(135deg,rgba(var(--accent-rgb),.075),rgba(255,255,255,.025))!important;
  color:var(--text)!important;
  border-color:rgba(var(--accent-rgb),.24)!important;
}
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] #cfg-portal-theme option,
body:not(.shaaft-theme-gold)[class*="shaaft-theme-"] select option{
  background-color:var(--surface2)!important;
  color:var(--text)!important;
}

/* Razer Neon: restore deep OLED restraint on large areas. */
body.shaaft-theme-neon :is(.hero-banner,.hero-card,.hero,.welcome-card,.adm-hero,.admin-hero,.stats-hero,.leaderboard-hero,.wishes-hero,.wish-hero,.wb-hero,.hero-wishes,.page-hero,.ms-hero-banner,.library-hero,.lib-hero,.bib-hero,.pay-hero,.payment-hero,.profile-hero,.support-hero,.support-hero-v3,.sp-hero){
  background:var(--theme-hero-gradient)!important;
  border-color:rgba(57,255,20,.22)!important;
  box-shadow:0 30px 90px rgba(0,0,0,.70),0 0 38px rgba(57,255,20,.12)!important;
}
body.shaaft-theme-neon :is(.system-status-bar,.top-users-card,.stats-live-card,.stats-leaderboard-card,.leaderboard-summary-card,.ms-section,.bib-panel,.pay-card,.support-card,.support-metric-card,.support-quick-card,.adm-panel,.adm-card,.payment-card,.point-package,.plan-card,.subscription-card){
  background:linear-gradient(180deg,rgba(57,255,20,.035),rgba(255,255,255,.010))!important;
  border-color:rgba(57,255,20,.12)!important;
}
body.shaaft-theme-neon :is(.period-tab.active,.adm-tab.active,.settings-rail-btn.active,.library-tab.active,.lib-tab.active,.wr-tab.active,.filter-btn.active,.category-chip.active,.bib-tab.active){
  background:linear-gradient(135deg,rgba(57,255,20,.135),rgba(0,208,132,.045))!important;
  border-color:rgba(57,255,20,.28)!important;
  color:#b9ffb0!important;
  box-shadow:0 10px 30px rgba(57,255,20,.11)!important;
}
body.shaaft-theme-neon :is(.progress-fill,.stat-bar-fill,.ms-progress-fill,.ms-total-bar-fill,.top-user-progress,.leaderboard-bar,.week-progress){
  background:linear-gradient(90deg,#39ff14,#00d084)!important;
  box-shadow:0 0 18px rgba(57,255,20,.24)!important;
}


/* ============================================================
   v1.1.8+ THEME ENHANCEMENTS
   ============================================================ */

/* ── 1. NEON: Razer glow på tekst og overskrifter ──────────── */
body.shaaft-theme-neon h1,
body.shaaft-theme-neon h2,
body.shaaft-theme-neon .sidebar-logo-text,
body.shaaft-theme-neon .page-title,
body.shaaft-theme-neon .hero-title,
body.shaaft-theme-neon .section-title,
body.shaaft-theme-neon .ms-hero-title {
  text-shadow: 0 0 12px rgba(57,255,20,.45), 0 0 28px rgba(57,255,20,.20) !important;
}
body.shaaft-theme-neon .accent,
body.shaaft-theme-neon .top-user-pts,
body.shaaft-theme-neon .stat-value,
body.shaaft-theme-neon .ms-stat-value,
body.shaaft-theme-neon .leaderboard-time {
  text-shadow: 0 0 10px rgba(57,255,20,.5) !important;
  color: #39ff14 !important;
}
/* Neon scanline overlay */
body.shaaft-theme-neon::after {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(57,255,20,.012) 3px,
    rgba(57,255,20,.012) 4px
  );
  pointer-events: none;
  z-index: 9999;
}
/* Neon cursor glow on buttons */
body.shaaft-theme-neon .btn,
body.shaaft-theme-neon button.accent,
body.shaaft-theme-neon .primary-btn {
  box-shadow: 0 0 18px rgba(57,255,20,.28), 0 4px 24px rgba(0,0,0,.4) !important;
}
body.shaaft-theme-neon .btn:hover,
body.shaaft-theme-neon button.accent:hover {
  box-shadow: 0 0 28px rgba(57,255,20,.5), 0 6px 32px rgba(0,0,0,.5) !important;
}

/* ── 2. CHRISTMAS: Snefnug animation ───────────────────────── */
@keyframes shaaft-snowfall {
  0%   { transform: translateY(-10vh) translateX(0px) rotate(0deg); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 0.7; }
  100% { transform: translateY(105vh) translateX(80px) rotate(360deg); opacity: 0; }
}
@keyframes shaaft-snowfall-2 {
  0%   { transform: translateY(-10vh) translateX(0px) rotate(0deg); opacity: 0; }
  10%  { opacity: 0.8; }
  90%  { opacity: 0.5; }
  100% { transform: translateY(105vh) translateX(-60px) rotate(-420deg); opacity: 0; }
}

body.shaaft-theme-christmas .shaaft-snow-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  overflow: hidden;
}
body.shaaft-theme-christmas .shaaft-snow-flake {
  position: absolute;
  top: -20px;
  color: rgba(255,255,255,.7);
  font-size: 14px;
  animation: shaaft-snowfall linear infinite;
}
body.shaaft-theme-christmas .shaaft-snow-flake:nth-child(odd) {
  animation-name: shaaft-snowfall-2;
}

/* Christmas: subtle red/green dual glow on hero */
body.shaaft-theme-christmas .hero-banner,
body.shaaft-theme-christmas .hero-card,
body.shaaft-theme-christmas .wb-hero,
body.shaaft-theme-christmas .ms-hero-banner {
  box-shadow: 0 0 48px rgba(34,197,94,.14), 0 0 48px rgba(248,113,113,.08) !important;
}

/* ── 3. HALLOWEEN: Pulserende glow ─────────────────────────── */
@keyframes shaaft-halloween-pulse {
  0%, 100% { box-shadow: 0 0 18px rgba(249,115,22,.18), 0 20px 60px rgba(0,0,0,.5); }
  50%       { box-shadow: 0 0 40px rgba(192,132,252,.28), 0 20px 60px rgba(0,0,0,.5); }
}
@keyframes shaaft-halloween-text {
  0%, 100% { text-shadow: 0 0 8px rgba(249,115,22,.35); }
  50%       { text-shadow: 0 0 16px rgba(192,132,252,.55), 0 0 28px rgba(249,115,22,.25); }
}

body.shaaft-theme-halloween .hero-banner,
body.shaaft-theme-halloween .hero-card,
body.shaaft-theme-halloween .ms-hero-banner,
body.shaaft-theme-halloween .wb-hero {
  animation: shaaft-halloween-pulse 4s ease-in-out infinite !important;
}
body.shaaft-theme-halloween h1,
body.shaaft-theme-halloween h2,
body.shaaft-theme-halloween .hero-title,
body.shaaft-theme-halloween .page-title {
  animation: shaaft-halloween-text 3.5s ease-in-out infinite !important;
}

/* ── 4. OLED: Bedre accent2 diversitet ─────────────────────── */
body.shaaft-theme-oled {
  --accent2: #22d3ee;
  --accent2-rgb: 34,211,238;
}
body.shaaft-theme-oled h1,
body.shaaft-theme-oled h2,
body.shaaft-theme-oled .hero-title {
  background: linear-gradient(135deg, #f5d36d, #22d3ee);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── 5. CRIMSON: Dramatisk glow på hero ─────────────────────── */
body.shaaft-theme-crimson .hero-banner,
body.shaaft-theme-crimson .ms-hero-banner,
body.shaaft-theme-crimson .wb-hero {
  box-shadow: 0 0 60px rgba(255,45,85,.16), 0 30px 90px rgba(0,0,0,.6) !important;
}
body.shaaft-theme-crimson h1,
body.shaaft-theme-crimson h2,
body.shaaft-theme-crimson .hero-title {
  text-shadow: 0 0 20px rgba(255,45,85,.3) !important;
}

/* ── 6. LIGHT theme ─────────────────────────────────────────── */
body.shaaft-theme-light {
  color-scheme: light;
  --bg: #f4f4f8;
  --bg-rgb: 244,244,248;
  --surface: #ffffff;
  --surface2: #f0f0f6;
  --surface3: #e8e8f2;
  --border: rgba(0,0,0,.08);
  --border2: rgba(0,0,0,.14);
  --text: #1a1a2e;
  --text2: #3d3d5c;
  --text3: #6b6b8c;
  --accent: #d4af37;
  --accent2: #f5d36d;
  --accent-rgb: 108,99,255;
  --accent2-rgb: 139,133,255;
  --accent-glow: rgba(212,175,55,.2);
  --green: #16a34a;
  --red: #dc2626;
  --amber: #d97706;
}
body.shaaft-theme-light {
  background: #f4f4f8 !important;
  color: #1a1a2e !important;
}
body.shaaft-theme-light .sidebar-nav,
body.shaaft-theme-light .topbar {
  background: rgba(255,255,255,.96) !important;
  border-color: rgba(0,0,0,.08) !important;
}
body.shaaft-theme-light .card,
body.shaaft-theme-light .top-users-card,
body.shaaft-theme-light .ms-section,
body.shaaft-theme-light .stat-card,
body.shaaft-theme-light .adm-card,
body.shaaft-theme-light .adm-panel {
  background: #ffffff !important;
  border-color: rgba(0,0,0,.08) !important;
  box-shadow: 0 2px 16px rgba(0,0,0,.06) !important;
  color: #1a1a2e !important;
}
body.shaaft-theme-light .sidebar-link {
  color: #3d3d5c !important;
}
body.shaaft-theme-light .sidebar-link:hover {
  background: rgba(212,175,55,.08) !important;
  color: #1a1a2e !important;
}
body.shaaft-theme-light .sidebar-link.active {
  background: rgba(212,175,55,.12) !important;
  color: #d4af37 !important;
}
body.shaaft-theme-light input,
body.shaaft-theme-light select,
body.shaaft-theme-light textarea {
  background: #f4f4f8 !important;
  border-color: rgba(0,0,0,.12) !important;
  color: #1a1a2e !important;
}
body.shaaft-theme-light .hero-banner,
body.shaaft-theme-light .ms-hero-banner,
body.shaaft-theme-light .wb-hero {
  background: linear-gradient(135deg, #ede9fe, #e0e7ff) !important;
  border-color: rgba(212,175,55,.2) !important;
}
body.shaaft-theme-light .text-muted,
body.shaaft-theme-light .text3 { color: #6b6b8c !important; }
