/* Праздничные темы кабинета трейдера (v7.80). Включает fest.js атрибутом data-fest на <html>.
   Меняем фон, панели, акцент и золото. --ok/--warn/--bad не трогаем: это рабочие сигналы статусов. */
:root[data-fest] { color-scheme:dark; --ink:#eef0f6; --accent-soft:rgba(var(--accent-rgb),.14); }
:root[data-fest="halloween"] {
  --bg:#0d0912; --panel:#16101d; --panel2:#1d1526; --line:#2a1f36; --line2:#3d2c4f; --chip:#241a30; --track:#33264a;
  --muted:#9b8bb0; --ink2:#cbbedc; --code:#120c18; --toast:#1f1529; --toast-new:#2a1a10;
  --accent:#ff8a1e; --accent-ink:#2a1200; --accent-rgb:255,138,30; --glow:rgba(255,122,24,.16);
  --au-rgb:255,128,24; --au:#ff9b3d; --au-d:#d9661a; --au-l:#ffc27a; --au-ink:#2a1200; --fest2:rgba(140,60,220,.14);
}
:root[data-fest="newyear"] {
  --bg:#07111d; --panel:#0e1a29; --panel2:#132234; --line:#1c2d44; --line2:#2a405e; --chip:#16263a; --track:#243954;
  --muted:#8aa0bb; --ink2:#c2d2e6; --code:#0a1522; --toast:#13243a; --toast-new:#0f2436;
  --accent:#4fb3ff; --accent-ink:#04121f; --accent-rgb:79,179,255; --glow:rgba(120,190,255,.14);
  --au-rgb:240,196,90; --au:#f0c45a; --au-d:#c8962e; --au-l:#ffe39a; --au-ink:#1d1406; --fest2:rgba(200,40,60,.10);
}
:root[data-fest="valentine"] {
  --bg:#130a10; --panel:#1c1018; --panel2:#24141f; --line:#33202c; --line2:#4a2c3e; --chip:#2a1824; --track:#432a3a;
  --muted:#b08ea0; --ink2:#e2c6d4; --code:#170c13; --toast:#2a1622; --toast-new:#2c1220;
  --accent:#ff5c8a; --accent-ink:#2a0612; --accent-rgb:255,92,138; --glow:rgba(255,92,138,.15);
  --au-rgb:255,120,160; --au:#ff8fb0; --au-d:#d9466f; --au-l:#ffc2d4; --au-ink:#2a0612; --fest2:rgba(255,160,190,.08);
}
:root[data-fest="feb23"] {
  --bg:#0b100b; --panel:#121a12; --panel2:#182218; --line:#243224; --line2:#344634; --chip:#1b261b; --track:#2e3e2e;
  --muted:#93a48f; --ink2:#cbd6c6; --code:#0e150e; --toast:#1a261a; --toast-new:#1a2a14;
  --accent:#8fb35d; --accent-ink:#10170a; --accent-rgb:143,179,93; --glow:rgba(143,179,93,.13);
  --au-rgb:212,165,60; --au:#e0b44c; --au-d:#b8862a; --au-l:#f5d68a; --au-ink:#1d1406; --fest2:rgba(212,165,60,.08);
}
:root[data-fest="march8"] {
  --bg:#120c14; --panel:#1a121d; --panel2:#221827; --line:#312438; --line2:#45334f; --chip:#281c2e; --track:#3e2e48;
  --muted:#a894b4; --ink2:#dccbe6; --code:#160e19; --toast:#261a2c; --toast-new:#2a1626;
  --accent:#ff7eb6; --accent-ink:#2a0a1a; --accent-rgb:255,126,182; --glow:rgba(255,126,182,.14);
  --au-rgb:183,140,255; --au:#c4a0ff; --au-d:#8f5fe0; --au-l:#e2d0ff; --au-ink:#1a0c2e; --fest2:rgba(127,220,168,.08);
}
:root[data-fest="cosmos"] {
  --bg:#05081a; --panel:#0c1128; --panel2:#111833; --line:#1c2547; --line2:#2a3663; --chip:#141c3a; --track:#253058;
  --muted:#8c97c0; --ink2:#c4cbea; --code:#080c20; --toast:#121a3a; --toast-new:#0f1c3a;
  --accent:#5aa9ff; --accent-ink:#04102a; --accent-rgb:90,169,255; --glow:rgba(90,169,255,.15);
  --au-rgb:185,140,255; --au:#c9a2ff; --au-d:#8f5fe0; --au-l:#e4d2ff; --au-ink:#140a2e; --fest2:rgba(185,140,255,.12);
}
:root[data-fest="bday"] {
  --accent-rgb:245,196,81; --accent:#f5c451; --accent-ink:#1d1406; --glow:rgba(245,196,81,.16); --fest2:rgba(46,196,166,.10);
}
:root[data-fest] body { background:radial-gradient(900px 420px at 60% -80px, var(--glow), transparent 70%),
  radial-gradient(700px 500px at 0% 100%, var(--fest2, transparent), transparent 60%), var(--bg); }
:root[data-fest] body.is-online[data-view="dashboard"] { background:radial-gradient(1100px 520px at 50% -120px, rgba(var(--au-rgb),calc(.05 + .11 * var(--gold))), transparent 72%),
  radial-gradient(700px 500px at 0% 100%, var(--fest2, transparent), transparent 60%), var(--bg); }
:root[data-fest] .brand-gold { background:linear-gradient(90deg,var(--au-d),var(--au) 45%,var(--au-l)); -webkit-background-clip:text; background-clip:text; }
:root[data-fest] .tbl.heat td.sum { color:var(--au); }

/* кнопка «выключить праздничную тему» в шапке и значок у логотипа */
.fest-off { font-size:18px; line-height:1; }
.fest-off svg { display:block; }
.fest-badge { display:inline-flex; align-items:center; margin-left:4px; font-size:19px; line-height:1; }

/* украшения: поверх фона, сквозь них можно кликать */
.fest-deco { position:fixed; inset:0; pointer-events:none; z-index:1; overflow:hidden; }
.fest-deco > * { position:absolute; }
.fest-sky { position:absolute; top:0; left:0; right:0; height:440px; pointer-events:none; z-index:1; overflow:hidden; }
.fest-sky > * { position:absolute; }
body:not([data-view="dashboard"]) .fest-sky { display:none; }
.fd-web { top:0; right:0; width:230px; height:230px; opacity:.32; }
.fd-web.l { left:0; right:auto; bottom:0; top:auto; transform:rotate(180deg); width:170px; height:170px; opacity:.2; }
.fd-moon { top:190px; right:330px; width:90px; height:90px; border-radius:50%; background:radial-gradient(circle at 35% 35%,#ffe6b0,#ffb347 60%,#e07b14);
  box-shadow:0 0 60px 18px rgba(255,150,40,.2); opacity:.85; }
.fd-bat { filter:drop-shadow(0 0 6px rgba(255,138,30,.25)); }
.fd-garland { top:0; left:0; right:0; height:16px; display:flex; justify-content:space-around; border-top:2px solid rgba(255,255,255,.12); }
.fd-garland i { width:8px; height:11px; border-radius:50% 50% 45% 45%; margin-top:2px; background:var(--c); box-shadow:0 0 10px var(--c); opacity:.85; }
.fd-snow { top:-10px; width:var(--sz); height:var(--sz); border-radius:50%; background:#fff; opacity:.5; }
.fd-heart, .fd-star { color:var(--accent); }
.fd-star { color:var(--au); }
.fd-c { opacity:.18; }
.fd-c.tl { left:14px; top:70px; transform:rotate(-14deg); }
.fd-c.br { right:18px; bottom:96px; transform:rotate(12deg); }
.fd-planet { top:160px; right:300px; width:96px; height:96px; border-radius:50%; background:radial-gradient(circle at 35% 30%,#b9a4ff,#5a49c8 55%,#241a63);
  box-shadow:0 0 50px 10px rgba(120,100,255,.18); opacity:.8; }
.fd-planet::after { content:""; position:absolute; left:-30px; right:-30px; top:42px; height:14px; border-radius:50%; border:2px solid rgba(220,200,255,.45); transform:rotate(-14deg); }
.fd-dot { width:var(--sz); height:var(--sz); border-radius:50%; background:#fff; opacity:.45; }
.fd-conf { width:7px; height:12px; border-radius:2px; opacity:.35; }
.motion .fd-snow { animation:fdSnow var(--dur) linear var(--del) infinite; }
.motion .fd-garland i { animation:fdBlink 1.6s ease-in-out var(--d) infinite alternate; }
.motion .fd-dot { animation:fdBlink 3s ease-in-out var(--del) infinite alternate; }
.motion .fd-bat { animation:fdBat 6s ease-in-out infinite alternate; }
@keyframes fdSnow { to { transform:translate(30px, 105vh); } }
@keyframes fdBlink { to { opacity:.25; } }
@keyframes fdBat { to { transform:translate(-14px, 8px); } }
@media (max-width:900px) {
  .fest-sky { display:none; }
  .fd-web { width:150px; height:150px; }
  .fd-c { font-size:38px !important; }
}

/* предложение включить тему: баннер наверху дашборда */
.fest-offer { display:flex; align-items:center; gap:18px; padding:14px 16px 14px 14px; margin:0 0 18px; border-radius:16px; position:relative; overflow:hidden;
  background:linear-gradient(100deg, var(--fo1, rgba(255,138,30,.13)), var(--fo2, rgba(140,60,220,.10)) 60%, var(--panel)); border:1px solid var(--fob, rgba(255,138,30,.38)); }
.fest-offer[data-f="newyear"] { --fo1:rgba(79,179,255,.13); --fo2:rgba(200,40,60,.08); --fob:rgba(79,179,255,.38); --foa:#4fb3ff; --foi:#04121f; }
.fest-offer[data-f="valentine"] { --fo1:rgba(255,92,138,.14); --fo2:rgba(255,160,190,.06); --fob:rgba(255,92,138,.4); --foa:#ff5c8a; --foi:#2a0612; }
.fest-offer[data-f="feb23"] { --fo1:rgba(143,179,93,.14); --fo2:rgba(212,165,60,.08); --fob:rgba(143,179,93,.4); --foa:#8fb35d; --foi:#10170a; }
.fest-offer[data-f="march8"] { --fo1:rgba(255,126,182,.14); --fo2:rgba(183,140,255,.08); --fob:rgba(255,126,182,.4); --foa:#ff7eb6; --foi:#2a0a1a; }
.fest-offer[data-f="cosmos"] { --fo1:rgba(90,169,255,.14); --fo2:rgba(185,140,255,.1); --fob:rgba(90,169,255,.4); --foa:#5aa9ff; --foi:#04102a; }
.fest-offer[data-f="bday"] { --fo1:rgba(245,196,81,.14); --fo2:rgba(46,196,166,.08); --fob:rgba(245,196,81,.42); --foa:#f5c451; --foi:#1d1406; }
.fest-prev { width:118px; height:70px; flex:none; border-radius:11px; border:1px solid var(--fob, rgba(255,138,30,.45)); position:relative; overflow:hidden;
  background:radial-gradient(60px 40px at 70% 10%, var(--fo1, rgba(255,122,24,.35)), transparent 70%), #0d0a14; }
.fest-prev i { position:absolute; border-radius:4px; background:rgba(255,255,255,.08); }
.fest-prev i.a { left:8px; top:8px; width:50px; height:8px; }
.fest-prev i.b { left:58px; top:36px; width:52px; height:26px; background:var(--foa, #ff8a1e); opacity:.55; }
.fest-prev span { position:absolute; left:10px; bottom:6px; font-size:30px; line-height:1; }
.fest-prev span svg { width:40px; height:40px; }
.fest-txt { flex:1; min-width:0; }
.fest-txt b { font-size:16px; display:block; margin-bottom:2px; }
.fest-txt span { color:var(--muted); font-size:13.5px; }
.fest-act { display:flex; align-items:center; gap:8px; flex-wrap:wrap; justify-content:flex-end; max-width:380px; }
.fest-act .btn.fest-on { background:var(--foa, #ff8a1e); border-color:var(--foa, #ff8a1e); color:var(--foi, #2a1200); font-weight:700; }
.fest-never { display:block; width:100%; text-align:right; font-size:12.5px; color:var(--muted); background:none; border:0; padding:0;
  text-decoration:underline; text-underline-offset:3px; margin-top:2px; cursor:pointer; }
.fest-set { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-top:10px; font-size:13.5px; }
.fest-set .btn { padding:7px 13px; font-size:13.5px; }
@media (max-width:700px) {
  .fest-offer { flex-wrap:wrap; }
  .fest-prev { width:84px; height:54px; }
  .fest-prev span { font-size:24px; } .fest-prev span svg { width:30px; height:30px; }
  .fest-act { width:100%; max-width:none; }
  .fest-act .btn { flex:1; }
  .fest-never { text-align:center; }
}
.topbar > .fest-off { margin-left:auto; margin-right:8px; }
