/* 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, .95); }
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); }

/* API docs page (2026-10-12): one readable column, code blocks stay left-to-right */
.doc { max-width: 860px; margin: 0 auto; padding: 24px 16px 64px; }
.doc-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.doc-head .brand { padding: 0; }
.doc h1 { font: 400 clamp(26px, 4vw, 34px)/1.3 var(--display); margin: 8px 0 10px; }
.doc h2 { font: 700 18px/1.5 var(--text); margin: 36px 0 10px; padding-top: 14px; border-top: 1px solid var(--line); scroll-margin-top: 16px; }
.doc p, .doc li { color: var(--ash); max-width: 72ch; }
.doc b { color: var(--bone); }
.doc code { font: 12.5px/1.6 var(--mono); background: var(--night-3); color: var(--bone); padding: 1px 6px; border-radius: 6px; direction: ltr; unicode-bidi: isolate; }
.doc pre { margin: 12px 0; padding: 14px 16px; border-radius: 12px; background: var(--stone); border: 1px solid var(--line); overflow-x: auto; text-align: left; }
.doc pre code { background: none; padding: 0; white-space: pre; font-size: 12.5px; }
.doc-toc { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 4px; }
.doc-toc a { padding: 5px 12px; border-radius: 99px; border: 1px solid var(--line-2); color: var(--ash); font-size: 13px; }
.doc-toc a:hover { color: var(--bone); border-color: var(--soul); }
.doc-table { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; margin: 12px 0; }
.doc-table table { width: 100%; border-collapse: collapse; font-size: 13px; }
.doc-table th, .doc-table td { padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; text-align: start; }
.doc-table tr:last-child td { border-bottom: 0; }
.doc-table td[dir=ltr] { text-align: left; white-space: nowrap; }

/* shop-bot trial countdown (2026-10-12) */
.trial-bar { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; padding: 12px 16px; margin-bottom: 18px; border-radius: 12px;
  background: linear-gradient(135deg, rgba(242, 134, 42, .16), rgba(196, 22, 58, .10)); border: 1px solid rgba(242, 134, 42, .35); font-size: 14px; }
.trial-bar .ico { color: var(--soul); }
.trial-bar > span { flex: 1; min-width: 200px; }
.trial-bar #trial-left { font-size: 17px; letter-spacing: .04em; color: var(--soul); }
.trial-bar form { margin: 0; }

/* UVIP / VIP plans (2026-10-12) */
.vip-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin-bottom: 18px; }
.vip-plans .card { margin: 0; display: flex; flex-direction: column; }
.vip-plans .card-body { flex: 1; display: flex; flex-direction: column; }
.vip-plan-title { margin: 0 0 10px; color: var(--ash); }
.vip-price { font: 400 30px/1.2 var(--display); color: var(--soul); }
.vip-price b { font-weight: 400; }
.vip-features { list-style: none; padding: 0; margin: 12px 0 18px; flex: 1; display: grid; gap: 8px; font-size: 13.5px; }
.vip-features li { display: flex; gap: 8px; align-items: flex-start; }
.vip-features .ico { color: var(--ok); width: 16px; height: 16px; margin-top: 4px; }
.vip-plan-top { border-color: rgba(242, 134, 42, .45); box-shadow: 0 18px 50px -28px rgba(242, 134, 42, .7); }
.vip-invoice { margin-top: 12px; padding: 14px 16px; border-radius: 12px; background: var(--night-3); border: 1px solid var(--line-2); display: grid; gap: 10px; }
.vip-invoice-note, .inv-note { white-space: pre-line; font-size: 12.5px; color: var(--ash); line-height: 1.9; }
.inv-note { display: block; margin-top: 4px; }
.vip-invoice .btn { justify-self: start; }

/* shop-bot plan rows: volume / duration / price (2026-10-12) */
.plan-rows { display: grid; gap: 10px; margin-bottom: 10px; }
.plan-row { display: grid; grid-template-columns: minmax(110px, 1fr) minmax(130px, 1.2fr) minmax(150px, 1.4fr) auto; gap: 8px; align-items: center; }
.plan-row .plan-price-fa { grid-column: 3 / 4; margin-top: -4px; min-height: 0; }
.plan-row .plan-price-fa:empty { display: none; }
@media (max-width: 560px) {
  .plan-row { grid-template-columns: 1fr 1fr auto; padding: 10px; border: 1px solid var(--line); border-radius: 12px; }
  .plan-row > .addon:first-child { grid-column: 1 / 2; }
  .plan-row select { grid-column: 2 / 3; }
  .plan-row > .addon:nth-child(3) { grid-column: 1 / 3; grid-row: 2; }
  .plan-row [data-plan-del] { grid-column: 3; grid-row: 1; }
  .plan-row .plan-price-fa { grid-column: 1 / 3; }
}

/* shop-bot setup as numbered steps (2026-10-12) */
.wiz { display: grid; gap: 0; }
.wiz-step .card-head { gap: 12px; }
.wiz-n { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--sky); color: #fff; font: 700 14px/1 var(--text); }
.wiz-step.ok .wiz-n { background: var(--ok); }
.wiz-step.ok { border-color: rgba(63, 178, 127, .3); }
.wiz-howto { margin: 0 0 12px; padding-inline-start: 20px; display: grid; gap: 10px; font-size: 13.5px; }
.wiz-howto li { line-height: 1.9; }
.wiz-howto .btn { vertical-align: middle; margin-inline-end: 4px; }
.wiz-howto code { font: 13px var(--mono); background: var(--night-3); padding: 2px 8px; border-radius: 6px; }
.wiz-howto .icon-btn { vertical-align: middle; }
.wiz-more { margin-top: 6px; }
.wiz-more summary { cursor: pointer; color: var(--soul); font-size: 13px; padding: 6px 0; }
.wiz-more[open] summary { margin-bottom: 8px; }
.wiz-save { padding-block: 14px; font-size: 15px; margin-bottom: 18px; }
.wiz-done { border-color: rgba(63, 178, 127, .4); }
.wiz-done-head { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.wiz-done-head > .ico { width: 34px; height: 34px; padding: 7px; border-radius: 50%; background: var(--ok-bg); color: var(--ok); }
.wiz-done-head div { display: flex; flex-direction: column; }
