/* GoldAI theme-fix: removes hardcoded purple/dark surfaces so every theme (Midnight Purple, Obsidian Sapphire, Champagne Gold, Light Ivory) fully applies. Load LAST. */
html[data-theme=midnight-purple],body[data-theme=midnight-purple]{--card-grad:linear-gradient(160deg,#120e20f2,#0e0b1aeb);--pop-grad:linear-gradient(145deg,#18122bfa,#0a0812fa);--overlay-bg:#080612e0;--true-gold:#e8c547;--true-gold-dark:#c9a227;--glow-purple:rgba(155,124,255,.35);--glow-gold:rgba(232,197,71,.25);--warn-bg:#3c300aeb}
html[data-theme=obsidian-sapphire],body[data-theme=obsidian-sapphire]{--card-grad:linear-gradient(160deg,#0f1625f2,#0b111eeb);--pop-grad:linear-gradient(145deg,#121b2efa,#070b13fa);--overlay-bg:#070b13e0;--true-gold:#e8c547;--true-gold-dark:#c9a227;--glow-purple:rgba(111,156,255,.35);--glow-gold:rgba(111,156,255,.22);--warn-bg:#3c300aeb}
html[data-theme=royal-wine],body[data-theme=royal-wine]{--card-grad:linear-gradient(160deg,#16110af2,#100c07eb);--pop-grad:linear-gradient(145deg,#1c150cfa,#0a0804fa);--overlay-bg:#0a0804e0;--true-gold:#f1d9a0;--true-gold-dark:#e0b862;--glow-purple:rgba(224,184,98,.35);--glow-gold:rgba(224,184,98,.25);--warn-bg:#3c300aeb}
html[data-theme=light-ivory],body[data-theme=light-ivory]{--card-grad:linear-gradient(160deg,#fffdf8,#fbf6ea);--pop-grad:linear-gradient(145deg,#fffdf8,#f7f1e2);--overlay-bg:rgba(247,243,234,.92);--true-gold:#8f6a1c;--true-gold-dark:#6f4f10;--glow-purple:rgba(143,106,28,.28);--glow-gold:rgba(143,106,28,.2);--warn-bg:#fff3cd}

/* cards / panels that were hardcoded purple */
body[data-theme] .ai-box,body[data-theme] .announce-item,body[data-theme] .content-card,body[data-theme] .profile-card,body[data-theme] .stat-box,body[data-theme] .announcement-empty,body[data-theme] .price-badge{background:var(--card-grad);border-color:var(--border)}
body[data-theme] .price-badge{color:var(--text)}
body[data-theme] .announcement-empty{border-color:rgba(var(--accent-rgb),.22);box-shadow:0 18px 55px rgba(0,0,0,.18)}
body[data-theme] .announcement-popup,body[data-theme] .site-notice-banner .site-notice-inner,body[data-theme] .v15-notice{background:var(--pop-grad);border-color:rgba(var(--accent-rgb),.45)}
body[data-theme] .site-notice-banner .site-notice-inner{box-shadow:0 16px 48px rgba(0,0,0,.35),0 0 40px rgba(var(--accent-rgb),.14)}
body[data-theme] .site-notice-banner .site-notice-icon{background:rgba(var(--accent-rgb),.16);border-color:rgba(var(--accent-rgb),.42);color:var(--gold)}
body[data-theme] .site-notice-banner .site-notice-close:hover{border-color:var(--gold);background:rgba(var(--accent-rgb),.1)}
body[data-theme] .toast{background:var(--pop-grad)!important;border:1px solid rgba(var(--accent-rgb),.4)!important;color:var(--text)}
body[data-theme] .theme-panel{background:var(--pop-grad)!important;border:1px solid rgba(var(--accent-rgb),.3)!important}
body[data-theme] .rr-lock{background:var(--overlay-bg)}
body[data-theme] .plan-expiry-banner{background:var(--warn-bg)}
body[data-theme] .site-stop-banner{background:var(--pop-grad)}
body[data-theme] .site-stop-banner h2{color:var(--red)}
body[data-theme] .site-stop-banner .stop-label{color:var(--red)}

/* hardcoded purple (167,139,250) and gold (#d4af37 / #e6be50) accents -> theme accent */
body[data-theme] .rr-stop-box,body[data-theme] .rr-verdict{border-color:rgba(var(--accent-rgb),.32)}
body[data-theme] .rr-elite-badge{border-color:rgba(var(--accent-rgb),.4)}
body[data-theme] .journal-filter.active,body[data-theme] .journal-filter:hover{background:rgba(var(--accent-rgb),.1)}
body[data-theme] .live-data-badge.busy{border-color:rgba(var(--accent-rgb),.3);background:rgba(var(--accent-rgb),.08)}
body[data-theme] .feed-dot{box-shadow:0 0 8px rgba(var(--accent-rgb),.45)}
body[data-theme] .analysis-progress-bar{background:linear-gradient(90deg,var(--gold),var(--purple),var(--gold));background-size:200% 100%}
body[data-theme] .goldai-preloader-glow{background:radial-gradient(circle,rgba(var(--accent-rgb),.2) 0,rgba(var(--accent-rgb),.1) 40%,transparent 70%)}

/* Light Ivory: dark-mode text tints that become unreadable on ivory */
body[data-theme=light-ivory] .announcement-status{color:#166534}
body[data-theme=light-ivory] .live-data-badge.live{color:#15803d}
body[data-theme=light-ivory] .site-stop-banner p{color:var(--text-muted)}
body[data-theme=light-ivory] .v12-dir,body[data-theme=light-ivory] .price-badge strong{color:var(--text)}
body[data-theme=light-ivory] .toast{box-shadow:0 8px 28px rgba(60,45,10,.18)!important}
body[data-theme=light-ivory] .announcement-popup,body[data-theme=light-ivory] .v15-notice{box-shadow:0 12px 32px rgba(60,45,10,.18)}
