/* Teme: standard (implicit), colorată (inspirată din FactoWeb), închisă (pentru lucru îndelungat).
   Tema se alege din iconița de lângă monedă; e ținută în cookie-ul ac_theme și pusă pe <html data-theme>. */

/* ================= tema colorată ================= */
html[data-theme="color"] {
  --bg: #F7F6FE;
  --surface: #FFFFFF;
  --surface-2: #F5F2FF;
  --ink: #11183F;
  --ink-2: #2E3563;
  --body: #4A5078;
  --muted: #5B617A;
  --line: #E6E1FA;
  --line-2: #F0EDFD;
  --field: #CFC7F5;
  --accent: #6547EF;
  --accent-d: #4B30C5;
  --accent-soft: #EEEAFF;
  --accent-pale: #D9D2FB;
  --ok: #128A58; --ok-bg: #E5F7EF; --ok-ring: #159B64;
  --warn: #9A5A00; --warn-bg: #FFF3E0; --warn-ring: #EE931A;
  --profit: #FFAD39;
  --neutral-bg: #F1EEFB;
  --navy: #1B1450;
}
html[data-theme="color"] body {
  background:
    radial-gradient(900px 700px at 0% 10%, rgba(101, 71, 239, .26), transparent 65%),
    radial-gradient(800px 640px at 100% 30%, rgba(255, 173, 57, .24), transparent 62%),
    radial-gradient(900px 700px at 40% 100%, rgba(124, 92, 252, .16), transparent 62%),
    linear-gradient(180deg, #F3F0FF 0%, #FBF7F2 100%);
  background-attachment: fixed;
}
html[data-theme="color"] .site-header { background: linear-gradient(90deg, rgba(246, 242, 255, .9), rgba(255, 248, 238, .9)); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom-color: rgba(101, 71, 239, .14); }
html[data-theme="color"] .card { border-color: rgba(101, 71, 239, .12); box-shadow: 0 14px 40px rgba(70, 37, 112, .07), 0 2px 8px rgba(33, 23, 53, .04); }
html[data-theme="color"] .btn-primary { background: linear-gradient(135deg, #6547EF, #7C5CFC); border-color: #6547EF; box-shadow: 0 6px 18px rgba(101, 71, 239, .28); }
html[data-theme="color"] .btn-primary:hover { background: linear-gradient(135deg, #5638E0, #6547EF); }
html[data-theme="color"] h1 { color: var(--ink); }
html[data-theme="color"] :focus-visible { outline-color: rgba(101, 71, 239, .5); }
html[data-theme="color"] .badge.tone-ok { background: #E5F7EF; color: #0F7A4C; }
html[data-theme="color"] .site-footer { background: rgba(255, 255, 255, .6); }

/* albastrul fix din foaia principală, trecut automat pe violet */
html[data-theme="color"] :focus-visible{outline-color:hsla(250,75%,58%,0.45)}
html[data-theme="color"] .big-search{box-shadow:hsla(250,46%,10%,0.07) 0px 8px 24px}
html[data-theme="color"] .hero-card{box-shadow:hsla(250,46%,10%,0.1) 0px 24px 60px}
html[data-theme="color"] .band .eyebrow{color:hsl(250,81%,66%)}
html[data-theme="color"] .form-field input:focus{box-shadow:hsla(250,75%,58%,0.18) 0px 0px 0px 3px}
html[data-theme="color"] .limit-card{box-shadow:hsla(250,46%,10%,0.08) 0px 24px 60px}
html[data-theme="color"] .bulk-input:focus{box-shadow:hsla(250,75%,58%,0.18) 0px 0px 0px 3px}
html[data-theme="color"] .price-card.featured{box-shadow:hsla(250,75%,58%,0.12) 0px 10px 30px}
html[data-theme="color"] .home-search{box-shadow:hsla(250,47%,11%,0.1) 0px 12px 40px}
html[data-theme="color"] .act:hover{box-shadow:hsla(250,75%,58%,0.12) 0px 4px 14px}
html[data-theme="color"] .logo-dialog{box-shadow:hsla(250,47%,11%,0.35) 0px 30px 80px}
html[data-theme="color"] .logo-dialog::backdrop{background-color:hsla(250,47%,11%,0.45)}
html[data-theme="color"] .jd-bar i{background-image:linear-gradient(90deg, hsl(250,84%,66%), hsl(250,75%,58%))}
html[data-theme="color"] .rm-svg a:hover .rm-c,html[data-theme="color"] .rm-c:hover{stroke:hsl(250,83%,26%)}
html[data-theme="color"] .rm-val{fill:hsl(250,70%,15%)}
html[data-theme="color"] .rm-seg button.on{background-color:hsl(250,75%,58%)}
html[data-theme="color"] .fx-sw a:hover{background-color:hsl(250,90%,97%)}
html[data-theme="color"] .fx-sw a.on{background-color:hsl(250,75%,58%)}
html[data-theme="color"] .rm-pill{stroke:hsl(250,80%,50%)}
html[data-theme="color"] .fn-price.on{border-top-color:hsl(250,75%,58%);border-right-color:hsl(250,75%,58%);border-bottom-color:hsl(250,75%,58%);border-left-color:hsl(250,75%,58%);box-shadow:hsla(250,75%,58%,0.15) 0px 0px 0px 2px}
html[data-theme="color"] .cg-c{fill:hsl(250,75%,58%)}
html[data-theme="color"] .cg a:hover .cg-f{fill:hsl(250,75%,58%)}
html[data-theme="color"] .cg a:hover text{fill:hsl(250,75%,58%)}
html[data-theme="color"] .cg-kc{background-color:hsl(250,75%,58%)}
html[data-theme="color"] .nav-more-list{box-shadow:hsla(250,47%,11%,0.12) 0px 12px 32px}
html[data-theme="color"] .nav-more-list a:hover{background-color:hsl(250,90%,97%)}
html[data-theme="color"] .act-menu{box-shadow:hsla(250,47%,11%,0.12) 0px 12px 32px}
html[data-theme="color"] .act-menu a:hover,html[data-theme="color"] .act-menu button:hover{background-color:hsl(250,90%,97%)}
html[data-theme="color"] .home-live .eyebrow{color:hsl(250,75%,58%)}
html[data-theme="color"] .home-live-kpis li{background-color:hsl(250,90%,97%)}
html[data-theme="color"] .home-tools-grid a:hover{border-top-color:hsl(250,75%,58%);border-right-color:hsl(250,75%,58%);border-bottom-color:hsl(250,75%,58%);border-left-color:hsl(250,75%,58%);box-shadow:hsla(250,75%,58%,0.1) 0px 6px 20px}
html[data-theme="color"] .jm-out{fill:hsl(250,41%,97%)}
html[data-theme="color"] .jm-svg a:hover .jm-c{stroke:hsl(250,83%,26%)}
html[data-theme="color"] .jm-svg a:hover .jm-u,html[data-theme="color"] .jm-u:hover{stroke:hsl(250,83%,26%)}
html[data-theme="color"] .site-header.scrolled{box-shadow:hsla(250,47%,11%,0.08) 0px 6px 24px}
html[data-theme="color"] .mega-panel{box-shadow:hsla(250,47%,11%,0.16) 0px 24px 60px}
html[data-theme="color"] .lang-list{box-shadow:hsla(250,47%,11%,0.14) 0px 16px 40px}
html[data-theme="color"] .acct-panel{box-shadow:hsla(250,47%,11%,0.18) 0px 24px 60px}
html[data-theme="color"] .cur-list{box-shadow:hsla(250,47%,11%,0.14) 0px 16px 40px}
html[data-theme="color"] .jm-tip{box-shadow:hsla(250,47%,11%,0.18) 0px 18px 44px}
html[data-theme="color"] .jm-u:focus-visible{stroke:hsl(250,83%,26%)}
html[data-theme="color"] .jm-panel{box-shadow:hsla(250,47%,11%,0.14) 0px 18px 44px}
html[data-theme="color"] .jm-list i{border-top-color:hsla(250,47%,11%,0.15);border-right-color:hsla(250,47%,11%,0.15);border-bottom-color:hsla(250,47%,11%,0.15);border-left-color:hsla(250,47%,11%,0.15)}
html[data-theme="color"] .more-pill:hover{background-color:hsl(250,89%,94%)}
html[data-theme="color"] .ai-ic{background-image:linear-gradient(135deg, rgb(124, 92, 252), hsl(250,90%,66%))}
html[data-theme="color"] .ai-find{background-image:linear-gradient(135deg, rgb(247, 244, 255) 0px, hsl(250,90%,97%) 100%)}
html[data-theme="color"] .cg-pill{fill:hsl(250,47%,97%)}
html[data-theme="color"] .cg-row:hover .cg-pill{fill:hsl(250,90%,97%)}
html[data-theme="color"] .ga-tabs{box-shadow:hsla(250,47%,11%,0.06) 0px 6px 18px}
html[data-theme="color"] .q-vaci{background-color:hsl(250,68%,96%)}
html[data-theme="color"] .ga-pot{background-image:linear-gradient(135deg, rgb(233, 247, 239), hsl(250,90%,97%))}
html[data-theme="color"] .ga-bul .trk i.q{background-color:hsl(250,40%,93%)}
html[data-theme="color"] .pv-cover{background-image:linear-gradient(135deg, hsl(250,75%,58%), hsl(250,90%,66%))}
html[data-theme="color"] .pv-logo b{color:hsl(250,77%,89%)}
html[data-theme="color"] .ck-bar{box-shadow:hsla(250,47%,11%,0.15) 0px 10px 30px}
html[data-theme="color"] .fw-list li.fw-drag{box-shadow:hsla(250,47%,11%,0.18) 0px 10px 28px}

/* tema colorată: mai multă culoare, ca pe factoweb.ro */
html[data-theme="color"] h1 { background: linear-gradient(90deg, #11183F 0%, #11183F 55%, #6547EF 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
html[data-theme="color"] .card .kpi, html[data-theme="color"] .stat, html[data-theme="color"] .kpis > div { background: linear-gradient(160deg, #FFFFFF, #F6F3FF); }
html[data-theme="color"] .site-header a[href="/"] svg rect { fill: #6547EF; }
html[data-theme="dark"] .site-header a[href="/"] svg rect { fill: #3E64D8; }
html[data-theme="color"] .kpis > .kpi { border-color: rgba(101, 71, 239, .16); }
html[data-theme="color"] .kpis > .kpi:nth-child(4n+2) { background: linear-gradient(160deg, #FFFFFF, #FFF6EA); border-color: rgba(255, 173, 57, .28); }
html[data-theme="color"] .kpis > .kpi:nth-child(4n+3) { background: linear-gradient(160deg, #FFFFFF, #ECF8F2); border-color: rgba(21, 155, 100, .22); }
html[data-theme="color"] .badge.tone-warn { background: #FFF1DD; color: #9A5A00; }
html[data-theme="color"] .site-footer { border-top-color: rgba(101, 71, 239, .14); }

/* ================= tema închisă (paleta din FactoWeb: mov închis, verde, auriu) ================= */
html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #201D27;
  --surface: #2B2635;
  --surface-2: #322C3D;
  --ink: #E9E5F0;
  --ink-2: #D9D2E4;
  --body: #C6BED3;
  --muted: #B0A8BF;
  --line: #4A4158;
  --line-2: #3A3346;
  --field: #4A4158;
  --accent: #BBA6F5;
  --accent-d: #D1C2FA;
  --accent-soft: rgba(150, 120, 230, .16);
  --accent-pale: #3E3354;
  --ok: #9AD5B9; --ok-bg: #244739; --ok-ring: #6FBF98;
  --warn: #F0D294; --warn-bg: #493D27; --warn-ring: #CFB576;
  --bad: #FFB0AA; --bad-bg: #512E35; --bad-ring: #E9827A;
  --neutral-bg: #352E40;
  --profit: #CFB576;
  --navy: #352B44;
}
html[data-theme="dark"] body { background: var(--bg); color: var(--ink); }
html[data-theme="dark"] .site-header { background: rgba(53, 43, 68, .97); border-bottom-color: #46395A; }
html[data-theme="dark"] .card { box-shadow: 0 8px 28px rgba(16, 12, 24, .18); border-color: var(--line); }
html[data-theme="dark"] .fz-panel > .card:nth-of-type(odd), html[data-theme="dark"] .fz-panel > section.card:nth-of-type(odd) { border-left: 3px solid #4C9A72; }
html[data-theme="dark"] .fz-panel > .card:nth-of-type(even), html[data-theme="dark"] .fz-panel > section.card:nth-of-type(even) { border-left: 3px solid #7A5BC2; }
html[data-theme="dark"] .btn { background: var(--surface-2); color: var(--ink); border-color: var(--field); }
html[data-theme="dark"] .btn:hover { border-color: #6A5C80; color: #fff; }
html[data-theme="dark"] .btn-primary { background: #6D4FD1; border-color: #6D4FD1; color: #fff; }
html[data-theme="dark"] .btn-primary:hover { background: #7D61DC; border-color: #7D61DC; }
html[data-theme="dark"] input, html[data-theme="dark"] select, html[data-theme="dark"] textarea { background-color: #26212F; color: var(--ink); border-color: var(--field); }
html[data-theme="dark"] input::placeholder, html[data-theme="dark"] textarea::placeholder { color: #8E86A0; }
html[data-theme="dark"] table th { color: var(--ink-2); }
html[data-theme="dark"] img:not([src$=".svg"]) { filter: brightness(.92); }
html[data-theme="dark"] ::selection { background: rgba(150, 120, 230, .38); }
html[data-theme="dark"] :focus-visible { outline-color: rgba(227, 202, 145, .7); }
html[data-theme="dark"] .ck-bar { background: var(--surface-2); border-color: var(--line); }
html[data-theme="dark"] iframe { filter: brightness(.85) contrast(1.05); }
html[data-theme="dark"] .site-header a[href="/"] svg rect { fill: #6F3FE0; }
/* meniul din stânga al fișei: categoria activă verde, ca în FactoWeb */
html[data-theme="dark"] .fz-list > li.on > .fz-cat { background-color: #285A49 !important; color: #E9F6EF; box-shadow: inset 3px 0 0 #9AD5B9; }
html[data-theme="dark"] .fz-nav, html[data-theme="dark"] #fz-nav { background-color: #2A2433; }
/* graficele: vânzări verde, ultimul an verde aprins, profit auriu (ca în FactoWeb) */
html[data-theme="dark"] .bar.ca { background: #2F6B4E; }
html[data-theme="dark"] .bar.ca.last { background: #4FA77A; }
html[data-theme="dark"] .bar.pr { background: #CFB576; }
html[data-theme="dark"] .bar.ls { background: #E9827A; }
html[data-theme="dark"] .legend i[style*="var(--accent)"] { background: #4FA77A !important; }
html[data-theme="dark"] .bar.ca:hover, html[data-theme="dark"] .bar.ca.last:hover { background: #63BE8F; }
html[data-theme="dark"] .kpis > .kpi { background: rgba(127, 127, 127, .07); }

/* culori fixe din foaia principală, convertite automat pentru tema închisă */
html[data-theme="dark"]{--bg-soft:hsl(210,16%,15%);--card:var(--surface)}
html[data-theme="dark"] input::placeholder{color:var(--body)}
html[data-theme="dark"] .btn-primary{background-color:#6D4FD1}
html[data-theme="dark"] .btn-primary:hover{background-color:#7D61DC}
html[data-theme="dark"] .header-search button{background-color:#6D4FD1}
html[data-theme="dark"] .dots i{background-color:#6D4FD1}
html[data-theme="dark"] .mini-bars div:last-child i{background-color:#6D4FD1}
html[data-theme="dark"] .no{color:var(--body)}
html[data-theme="dark"] .bar.ca.last{background-color:#6D4FD1}
html[data-theme="dark"] .loading-bar{background-color:#6D4FD1}
html[data-theme="dark"] .announce{background-color:#7D61DC}
html[data-theme="dark"] .card.danger{border-top-color:hsl(4,26%,28%);border-right-color:hsl(4,26%,28%);border-bottom-color:hsl(4,26%,28%);border-left-color:hsl(4,26%,28%)}
html[data-theme="dark"] .sb-col i{background-color:#6D4FD1}
html[data-theme="dark"] .sb-col:last-child i{background-color:#7D61DC}
html[data-theme="dark"] .fn-bar i{background-color:#6D4FD1}
html[data-theme="dark"] .pr-stack{background-color:#6D4FD1}
html[data-theme="dark"] .an-formula .an-c2{color:hsl(153,62%,72%)}
html[data-theme="dark"] .an-formula .an-c3{color:hsl(186,68%,72%)}
html[data-theme="dark"] .an-formula .an-c4{color:hsl(3,49%,76%)}
html[data-theme="dark"] .an-bebar b{background-color:#6D4FD1}
html[data-theme="dark"] .an-hr.me .an-hb i{background-color:#6D4FD1}
html[data-theme="dark"] .price-flag{background-color:#6D4FD1}
html[data-theme="dark"] .home-search button{background-color:#6D4FD1}
html[data-theme="dark"] .fz-list > li.on > .fz-cat{background-color:#6D4FD1}
html[data-theme="dark"] .c-acc{background-color:#6D4FD1}
html[data-theme="dark"] .search-tips input:checked + span{background-color:#6D4FD1}
html[data-theme="dark"] .rank-badges .rk-top{background-image:linear-gradient(135deg, hsl(44,33%,19%), hsl(43,33%,19%));color:hsl(37,80%,72%)}
html[data-theme="dark"] .rk-logo-btn{background-color:hsl(40,33%,15%);color:hsl(37,80%,72%)}
html[data-theme="dark"] .rk-logo-btn:hover{background-color:hsl(44,33%,19%)}
html[data-theme="dark"] .act-main{background-color:#6D4FD1}
html[data-theme="dark"] .cb-chip i{background-color:#6D4FD1}
html[data-theme="dark"] .nf-kpi.big em{background-color:var(--surface)}
html[data-theme="dark"] .rm-c{stroke:var(--surface)}
html[data-theme="dark"] .rm-svg a:hover .rm-c,html[data-theme="dark"] .rm-c:hover{stroke:hsl(223,67%,72%)}
html[data-theme="dark"] .rm-labels text{stroke:hsla(0,0%,55%,0.16)}
html[data-theme="dark"] .rm-name{fill:hsl(216,15%,72%)}
html[data-theme="dark"] .rm-val{fill:hsl(222,56%,72%)}
html[data-theme="dark"] .rm-seg{background-color:var(--surface)}
html[data-theme="dark"] .fx-sw{background-color:var(--surface)}
html[data-theme="dark"] .fx-sw a:hover{background-color:hsl(222,33%,15%)}
html[data-theme="dark"] .rm-pill{fill:var(--surface);stroke:hsl(223,64%,72%)}
html[data-theme="dark"] .map-table thead th{background-color:var(--surface)}
html[data-theme="dark"] .rm-agg .rm-c{stroke:hsla(0,0%,55%,0.16)}
html[data-theme="dark"] .rm-gname{fill:hsl(216,22%,72%)}
html[data-theme="dark"] .fn-price{background-color:var(--surface)}
html[data-theme="dark"] .fn-yes{color:hsl(137,52%,72%)}
html[data-theme="dark"] .fn-soon td:first-child b{color:hsl(216,15%,72%)}
html[data-theme="dark"] .tl li::before{border-top-color:var(--line);border-right-color:var(--line);border-bottom-color:var(--line);border-left-color:var(--line)}
html[data-theme="dark"] .cg-p{fill:hsl(137,52%,72%)}
html[data-theme="dark"] .cg-t{fill:hsl(216,15%,72%)}
html[data-theme="dark"] .cg-tp{fill:hsl(144,49%,72%);stroke:var(--surface)}
html[data-theme="dark"] .cg-tc{fill:hsl(216,22%,72%);stroke:var(--surface)}
html[data-theme="dark"] .pf-group{background-color:var(--surface)}
html[data-theme="dark"] .pf-group > summary::before{color:var(--body)}
html[data-theme="dark"] .nav-more-list{background-color:var(--surface)}
html[data-theme="dark"] .nav-more-list a:hover{background-color:hsl(222,33%,15%)}
html[data-theme="dark"] .act-menu{background-color:var(--surface)}
html[data-theme="dark"] .act-menu a:hover,html[data-theme="dark"] .act-menu button:hover{background-color:hsl(222,33%,15%)}
html[data-theme="dark"] .chart-tick{color:var(--body);border-top-color:hsl(215,10%,28%)}
html[data-theme="dark"] .home-live{background-color:var(--surface)}
html[data-theme="dark"] .home-live .eyebrow{color:hsl(224,60%,76%)}
html[data-theme="dark"] .home-live-kpis li{background-color:hsl(222,33%,15%)}
html[data-theme="dark"] .home-tools-grid a{background-color:var(--surface)}
html[data-theme="dark"] .jm-out{fill:hsl(214,23%,15%)}
html[data-theme="dark"] .jm-c{stroke:var(--surface)}
html[data-theme="dark"] .jm-svg a:hover .jm-c{stroke:hsl(223,67%,72%)}
html[data-theme="dark"] .jm-labels text{fill:hsl(216,22%,72%);stroke:var(--surface)}
html[data-theme="dark"] .jm-dot{fill:hsl(216,22%,72%);stroke:var(--surface)}
html[data-theme="dark"] .jm-edge path{fill:hsl(215,15%,72%);stroke:hsl(215,15%,72%)}
html[data-theme="dark"] .jm-u{stroke:var(--surface)}
html[data-theme="dark"] .jm-svg a:hover .jm-u,html[data-theme="dark"] .jm-u:hover{stroke:hsl(223,67%,72%)}
html[data-theme="dark"] .jm-labels .jm-sat{fill:hsl(216,15%,72%)}
html[data-theme="dark"] .ai-ask .ai-err{color:hsl(4,61%,76%)}
html[data-theme="dark"] .badge-flag{background-color:hsl(5,33%,15%);color:hsl(4,61%,76%);border-top-color:hsl(4,38%,28%);border-right-color:hsl(4,38%,28%);border-bottom-color:hsl(4,38%,28%);border-left-color:hsl(4,38%,28%)}
html[data-theme="dark"] .badge-flag:hover{background-color:hsl(4,33%,15%)}
html[data-theme="dark"] .site-header{background-color:hsla(0,0%,55%,0.16)}
html[data-theme="dark"] .mega > summary{background-color:var(--surface)}
html[data-theme="dark"] .mega-panel{background-color:var(--surface)}
html[data-theme="dark"] .lang-sw > summary{background-color:var(--surface)}
html[data-theme="dark"] .lang-list{background-color:var(--surface)}
html[data-theme="dark"] .acct > summary{background-color:#6D4FD1}
html[data-theme="dark"] .acct > summary:hover{background-color:#7D61DC}
html[data-theme="dark"] .acct-av{background-color:#6D4FD1}
html[data-theme="dark"] .acct-panel{background-color:var(--surface)}
html[data-theme="dark"] .btn-social{background-color:var(--surface)}
html[data-theme="dark"] .cur-sw > summary{background-color:var(--surface)}
html[data-theme="dark"] .cur-list{background-color:var(--surface)}
html[data-theme="dark"] .jm-tip{background-color:var(--surface)}
html[data-theme="dark"] .jm-u:focus-visible{stroke:hsl(223,67%,72%)}
html[data-theme="dark"] .jm-u.sel{stroke:hsl(215,20%,72%)}
html[data-theme="dark"] .jm-v{stroke:var(--surface)}
html[data-theme="dark"] .jm-v:hover{stroke:hsl(217,26%,72%)}
html[data-theme="dark"] .jm-vl{fill:hsl(217,26%,72%);stroke:var(--surface)}
html[data-theme="dark"] .jm-panel{background-color:hsla(0,0%,55%,0.16)}
html[data-theme="dark"] .pg-arrow,html[data-theme="dark"] .pg-num{background-color:var(--surface)}
html[data-theme="dark"] .pg-num.on{background-color:#6D4FD1}
html[data-theme="dark"] .pg-per select{background-color:var(--surface)}
html[data-theme="dark"] .more-pill:hover{background-color:hsl(222,33%,19%)}
html[data-theme="dark"] .ai-ask{background-image:linear-gradient(hsl(253,33%,15%) 0px, var(--surface) 90px);border-top-color:hsl(250,33%,28%);border-right-color:hsl(250,33%,28%);border-bottom-color:hsl(250,33%,28%);border-left-color:hsl(250,33%,28%)}
html[data-theme="dark"] .ai-badge{background-color:hsl(254,33%,15%);color:hsl(251,52%,76%)}
html[data-theme="dark"] .ai-up{background-color:hsl(43,33%,15%);color:hsl(44,80%,72%)}
html[data-theme="dark"] .mic-btn{background-color:var(--surface)}
html[data-theme="dark"] .ai-find{background-image:linear-gradient(135deg, hsl(256,33%,15%) 0px, hsl(212,33%,15%) 100%);border-top-color:hsl(250,33%,28%);border-right-color:hsl(250,33%,28%);border-bottom-color:hsl(250,33%,28%);border-left-color:hsl(250,33%,28%)}
html[data-theme="dark"] .ai-find .ai-row input{background-color:var(--surface)}
html[data-theme="dark"] .ai-find .chip{background-color:var(--surface);border-top-color:hsl(250,33%,28%);border-right-color:hsl(250,33%,28%);border-bottom-color:hsl(250,33%,28%);border-left-color:hsl(250,33%,28%)}
html[data-theme="dark"] .ai-find .chip:hover{color:hsl(251,52%,76%)}
html[data-theme="dark"] .ai-wait{color:hsl(251,52%,76%)}
html[data-theme="dark"] .ai-wait i{border-right-color:hsl(252,38%,28%);border-bottom-color:hsl(252,38%,28%);border-left-color:hsl(252,38%,28%)}
html[data-theme="dark"] .ai-okmsg{color:hsl(153,60%,72%)}
html[data-theme="dark"] .ai-say{color:hsl(251,52%,76%)}
html[data-theme="dark"] .home-search .mic-btn{background-color:var(--surface) !important}
html[data-theme="dark"] .cg-tc{fill:var(--surface)}
html[data-theme="dark"] .cg-pp{fill:hsl(148,22%,15%)}
html[data-theme="dark"] .cg-person:hover .cg-pp{fill:hsl(147,24%,19%)}
html[data-theme="dark"] .cg-tp{fill:hsl(152,55%,72%)}
html[data-theme="dark"] .cg-pill{fill:hsl(214,26%,15%);stroke:hsl(215,14%,19%)}
html[data-theme="dark"] .cg-pill.bad{fill:hsl(4,33%,15%)}
html[data-theme="dark"] .cg-row:hover .cg-pill{fill:hsl(222,33%,15%)}
html[data-theme="dark"] .cg-t{fill:hsl(217,26%,72%)}
html[data-theme="dark"] .cg-q{fill:hsl(45,33%,15%)}
html[data-theme="dark"] .cg-q.comun{fill:hsl(148,22%,15%)}
html[data-theme="dark"] .cg-tq{fill:hsl(44,80%,72%)}
html[data-theme="dark"] .cg-k.cg-kq{background-color:hsl(45,33%,15%)}
html[data-theme="dark"] .lk-cu a.lk-comun{color:hsl(153,60%,72%)}
html[data-theme="dark"] iframe.map{background-color:hsl(214,14%,15%)}
html[data-theme="dark"] .cg .cg-tc{fill:var(--surface) !important}
html[data-theme="dark"] .fw-x:hover{background-color:hsl(3,33%,15%)}
html[data-theme="dark"] .acct-add button{background-color:#6D4FD1}
html[data-theme="dark"] .ga-chip .x:hover{background-color:hsl(3,33%,15%)}
html[data-theme="dark"] .ga-tabs{background-color:hsla(0,0%,55%,0.16)}
html[data-theme="dark"] .ga-k{background-color:var(--surface)}
html[data-theme="dark"] .q-vedete{background-color:hsl(140,25%,15%)}
html[data-theme="dark"] .q-vaci{background-color:hsl(208,33%,15%)}
html[data-theme="dark"] .q-semne{background-color:hsl(44,33%,15%)}
html[data-theme="dark"] .q-probleme{background-color:hsl(6,33%,15%)}
html[data-theme="dark"] .ga-ai-text{background-color:hsl(253,33%,15%);border-top-color:hsl(254,40%,28%);border-right-color:hsl(254,40%,28%);border-bottom-color:hsl(254,40%,28%);border-left-color:hsl(254,40%,28%)}
html[data-theme="dark"] .fw-grp{background-color:hsl(253,33%,15%);border-top-color:hsl(254,40%,28%);border-right-color:hsl(254,40%,28%);border-bottom-color:hsl(254,40%,28%);border-left-color:hsl(254,40%,28%)}
html[data-theme="dark"] .ga-pot{background-image:linear-gradient(135deg, hsl(146,26%,15%), hsl(212,33%,15%));border-top-color:hsl(140,15%,28%);border-right-color:hsl(140,15%,28%);border-bottom-color:hsl(140,15%,28%);border-left-color:hsl(140,15%,28%)}
html[data-theme="dark"] .ga-rank .mid{background-color:hsl(44,33%,15%);color:hsl(45,80%,72%)}
html[data-theme="dark"] .pd-t th{background-color:hsl(216,14%,15%)}
html[data-theme="dark"] .pd-rec{background-color:hsl(210,14%,15%)}
html[data-theme="dark"] .ga-concl .c-ok{background-color:hsl(143,25%,15%)}
html[data-theme="dark"] .ga-concl .c-ok::before{color:hsl(146,57%,72%)}
html[data-theme="dark"] .ga-concl .c-warn{background-color:hsl(44,33%,15%)}
html[data-theme="dark"] .ga-concl .c-warn::before{color:hsl(42,80%,72%)}
html[data-theme="dark"] .ga-concl .c-bad{background-color:hsl(6,33%,15%)}
html[data-theme="dark"] .ga-concl .c-bad::before{color:hsl(3,49%,76%)}
html[data-theme="dark"] .ga-bul .trk{background-color:hsl(216,16%,15%)}
html[data-theme="dark"] .ga-bul .trk i.q{background-color:hsl(214,22%,19%)}
html[data-theme="dark"] .pv-firms span{background-color:hsla(0,0%,55%,0.16)}
html[data-theme="dark"] .pv-lines i{border-bottom-color:hsl(215,7%,28%)}
html[data-theme="dark"] .ck-bar{background-color:var(--surface)}

/* ================= selectorul de teme ================= */
.theme-sw { position: relative; }
.theme-sw > summary { list-style: none; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); cursor: pointer; }
.theme-sw > summary::-webkit-details-marker { display: none; }
.theme-sw > summary:hover { border-color: var(--field); color: var(--accent); }
.theme-list { position: absolute; right: 0; top: calc(100% + 8px); z-index: 80; min-width: 230px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 16px 40px rgba(15, 23, 42, .18); padding: 6px; }
.theme-sw:not([open]) .theme-list { display: none; }
.theme-list button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; background: none; border-radius: 10px; font: inherit; color: var(--ink); cursor: pointer; text-align: left; }
.theme-list button:hover { background: var(--accent-soft); }
.theme-list button.on { background: var(--accent-soft); font-weight: 700; }
.theme-list button small { display: block; color: var(--muted); font-weight: 400; font-size: 12px; }
.th-dot { flex: none; width: 28px; height: 28px; border-radius: 8px; border: 1px solid rgba(0, 0, 0, .12); }
.th-dot.std { background: linear-gradient(135deg, #F6F7F9 50%, #1F4FD8 50%); }
.th-dot.col { background: linear-gradient(135deg, #EEEAFF 0 40%, #6547EF 40% 72%, #FFAD39 72%); }
.th-dot.drk { background: linear-gradient(135deg, #161C27 50%, #82A6FF 50%); }
