/* Valmier panel — light theme ("Vormir at noon"). Loaded last; only active on <html data-theme="light">.
   Same brand: the crimson→violet sky stays the accent, amber still means money. The ground turns to
   pale rose stone, text to deep wine. The dark theme (app.css) is the default. */
html[data-theme="light"] {
  --abyss: #F3ECEE; --stone: #EDE4E7; --night: #FFFFFF; --night-2: #FCF8F9; --night-3: #F1E7EB;
  --line: rgba(58, 18, 34, .09); --line-2: rgba(58, 18, 34, .16);
  --sky-soft: linear-gradient(135deg, rgba(196, 22, 58, .12), rgba(74, 30, 58, .08));
  --bone: #2A0F19; --ash: #5E4450; --ash-dim: #8E7480;
  --ok: #1E8A5C; --ok-bg: rgba(30, 138, 92, .1); --bad: #C8322A; --bad-bg: rgba(200, 50, 42, .09);
  --warn: #C2621A; --warn-bg: rgba(194, 98, 26, .1); --soul: #C2621A; --vio: #8A3BA0; --vio-bg: rgba(138, 59, 160, .09);
  color-scheme: light;
}
html[data-theme="light"] body {
  background:
    radial-gradient(900px 420px at 100% -8%, rgba(196, 22, 58, .10), transparent 65%),
    radial-gradient(700px 380px at 20% -12%, rgba(122, 44, 102, .10), transparent 70%),
    var(--abyss);
}
html[data-theme="light"] a:hover { color: #9E4A0E; }
html[data-theme="light"] .side { background: linear-gradient(180deg, #FFFFFF, #FBF6F8); }
html[data-theme="light"] .side nav a:hover,
html[data-theme="light"] tbody tr:hover td,
html[data-theme="light"] .thread:hover { background: rgba(58, 18, 34, .04); }
html[data-theme="light"] .topbar { background: rgba(255, 255, 255, .72); }
html[data-theme="light"] thead th, html[data-theme="light"] tr.th th { background: rgba(58, 18, 34, .03); }
html[data-theme="light"] .tag, html[data-theme="light"] .note.info, html[data-theme="light"] .feed .f-dot { background: rgba(58, 18, 34, .05); }
html[data-theme="light"] .bar, html[data-theme="light"] .ring .track { background: rgba(58, 18, 34, .08); stroke: rgba(58, 18, 34, .08); }
html[data-theme="light"] .switch { background: rgba(58, 18, 34, .18); }
html[data-theme="light"] input, html[data-theme="light"] select, html[data-theme="light"] textarea { background: #FFFFFF; }
html[data-theme="light"] input::placeholder, html[data-theme="light"] textarea::placeholder { color: #A8919B; }
html[data-theme="light"] .note { color: #7A3A0C; }
html[data-theme="light"] .note.err { color: #8E1F19; }
html[data-theme="light"] .toast { background: rgba(255, 255, 255, .97); color: var(--bone); box-shadow: 0 18px 50px -16px rgba(58, 18, 34, .35); }
html[data-theme="light"] .tabbar { background: rgba(255, 255, 255, .92); box-shadow: 0 10px 30px -12px rgba(58, 18, 34, .3); }
html[data-theme="light"] .side-open .scrim, html[data-theme="light"] dialog.modal::backdrop { background: rgba(42, 15, 25, .35); }
html[data-theme="light"] .card, html[data-theme="light"] .stat, html[data-theme="light"] .tile,
html[data-theme="light"] .login .login-card, html[data-theme="light"] dialog.modal {
  background: linear-gradient(180deg, var(--night), var(--night-2)) padding-box,
              linear-gradient(160deg, rgba(58, 18, 34, .14), rgba(58, 18, 34, .06) 50%, rgba(196, 22, 58, .22)) border-box;
  box-shadow: 0 1px 2px rgba(58, 18, 34, .04), 0 12px 32px -24px rgba(58, 18, 34, .25);
}
html[data-theme="light"] .card.hl { background: linear-gradient(135deg, rgba(242, 134, 42, .1), var(--night) 60%) padding-box,
  linear-gradient(160deg, rgba(194, 98, 26, .5), rgba(194, 98, 26, .1) 50%, rgba(196, 22, 58, .25)) border-box; }
html[data-theme="light"] .card.danger { background: linear-gradient(135deg, rgba(200, 50, 42, .07), var(--night) 60%) padding-box,
  linear-gradient(160deg, rgba(200, 50, 42, .45), rgba(200, 50, 42, .08)) border-box; }
html[data-theme="light"] .btn.ghost { color: var(--bone); }
html[data-theme="light"] .fx-spot::before { opacity: .5; }

/* theme switch in the top bar: sun in the dark theme, moon in the light one */
.theme-btn .ico-sun { display: inline; } .theme-btn .ico-moon { display: none; }
html[data-theme="light"] .theme-btn .ico-sun { display: none; } html[data-theme="light"] .theme-btn .ico-moon { display: inline; }

/* cashback strip above the page (2026-10-12) */
.cashback-bar { display: flex; gap: 10px; align-items: center; padding: 11px 16px; margin-bottom: 18px; border-radius: 12px;
  background: linear-gradient(135deg, rgba(63, 178, 127, .14), rgba(242, 134, 42, .08)); border: 1px solid rgba(63, 178, 127, .3);
  font-size: 13.5px; color: var(--bone); }
.cashback-bar .ico { color: var(--ok); }

/* inside Telegram (Mini App): no sidebar chrome to fight Telegram's own header */
html.tg .topbar { min-height: 60px; padding-block: 10px; }
html.tg .topbar-logo { display: none !important; }
html[data-theme="light"] .login::after { background: rgba(74, 30, 58, .16); }
