:root {
  --bg: #050912;
  --bg-2: #08111f;
  --surface: #0d1626;
  --surface-2: #131f37;
  --surface-3: #1a2a49;
  --line: rgba(130, 170, 255, .09);
  --line-2: rgba(130, 170, 255, .19);
  --text: #f1f5ff;
  --muted: #8b9ab8;
  --faint: #566382;
  --accent: #2f80ff;
  --accent-2: #1fa2ff;
  --cyan: #38d6ff;
  --green: #22c55e;
  --red: #f43f5e;
  --amber: #f59e0b;
  --grad: linear-gradient(135deg, #1d4ed8 0%, #2563eb 42%, #0ea5e9 100%);
  --radius: 20px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --text-2: #c2cee6; --code: #bfe3ff; --note: #9fe6ff; --chip: rgba(255, 255, 255, .08); --field: rgba(255, 255, 255, .045);
  --bar: rgba(5, 9, 18, .72); --glow1: rgba(37, 99, 235, .20); --glow2: rgba(14, 165, 233, .10);
  --glass: rgba(255, 255, 255, .06); --glass-line: rgba(255, 255, 255, .15);
  --glass-shadow: 0 18px 50px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .2);
  --tab-ink: rgba(255, 255, 255, .62); --tab-on-ink: #fff;
  --tab-on: linear-gradient(180deg, rgba(255, 255, 255, .26), rgba(255, 255, 255, .12));
  --tab-on-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 4px 18px rgba(47, 128, 255, .35);
  --on-grad: #fff; --hero: var(--grad); --on-hero: #fff;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Unbounded", "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); }
body { min-height: 100vh; overflow-x: hidden; }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(900px 420px at 85% -10%, var(--glow1), transparent 70%),
              radial-gradient(700px 380px at -5% 12%, var(--glow2), transparent 70%); }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
input, select { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
svg { display: block; }
[hidden] { display: none !important; }
.ico { display: inline-flex; flex: none; }
.ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- wordmark ---------- */
.wordmark { display: inline-flex; align-items: baseline; font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: -.01em; line-height: 1; }
.wordmark b { font-weight: 800; color: var(--text); }
.wordmark i { font-style: normal; color: var(--accent); margin: 0 .03em; text-shadow: 0 0 22px rgba(47, 128, 255, .7); }
.wordmark.xl { font-size: 54px; }

/* ---------- splash ---------- */
.splash { position: fixed; inset: 0; z-index: 90; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding: 24px; box-sizing: border-box; overflow: hidden; background: var(--bg); text-align: center; }
.splash-glow { position: absolute; left: 50%; top: 50%; width: min(380px, 90vmin); height: min(380px, 90vmin); transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, rgba(47, 128, 255, .32), transparent 65%); pointer-events: none; }
.splash .wordmark { position: relative; }
.splash-bar { position: relative; width: 150px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.splash-bar { width: 190px; height: 5px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .05); }
.splash-bar span { will-change: transform; position: absolute; inset: 0; width: 100%; border-radius: 5px; transform-origin: left center; transform: scaleX(0); background: var(--grad); box-shadow: 0 0 14px rgba(56, 189, 248, .55);
 }
.splash-bar span::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%); background-size: 220% 100%; animation: splashSheen 1.3s linear infinite; will-change: background-position; }
@keyframes splashFill { from { transform: scaleX(.04); } to { transform: scaleX(.93); } }
@keyframes splashSheen { from { background-position: 160% 0; } to { background-position: -60% 0; } }
.splash { transition: opacity .24s ease; }
.splash.leaving { opacity: 0; pointer-events: none; }
.splash-text { position: relative; color: var(--muted); font-size: 13px; max-width: 320px; }
@keyframes load { 0% { transform: translateX(-100%); } 100% { transform: translateX(260%); } }

/* ---------- topbar ---------- */
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 18px; padding: 12px 16px; background: var(--bar); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; }
.test-tag { padding: 3px 7px; border-radius: 7px; border: 1px solid var(--line-2); color: var(--cyan); font-size: 10px; font-weight: 800; letter-spacing: .1em; }
.topnav { display: none; gap: 4px; margin-left: 10px; }
.topnav button { padding: 9px 15px; border-radius: 12px; color: var(--muted); font-weight: 600; font-size: 14px; transition: color .2s, background .2s; }
.topnav button:hover { color: var(--text); background: var(--surface); }
.topnav button.active { color: var(--text); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.balance-pill { display: flex; align-items: center; gap: 9px; padding: 7px 8px 7px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-2); font-weight: 700; font-size: 14px; white-space: nowrap; flex: none; font-variant-numeric: tabular-nums; }
.balance-pill .plus { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--grad); font-size: 15px; line-height: 1; }
.balance-pill { position: relative; cursor: pointer; transition: border-color .25s, box-shadow .3s, transform .2s, background .25s; }
.balance-pill .plus { position: relative; transition: transform .45s cubic-bezier(.34, 1.56, .64, 1), box-shadow .3s; }
.balance-pill .plus::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid rgba(56, 189, 248, .75); opacity: 0; pointer-events: none; }
@media (hover: hover) {
  .balance-pill:hover { border-color: rgba(56, 189, 248, .6); transform: translateY(-1px); box-shadow: 0 0 0 3px rgba(47, 128, 255, .14), 0 8px 22px rgba(37, 99, 235, .32); }
  .balance-pill:hover .plus { transform: rotate(180deg) scale(1.22); box-shadow: 0 0 16px rgba(56, 189, 248, .75); }
  .balance-pill:hover .plus::after { animation: plusRipple 1.3s ease-out infinite; }
}
.balance-pill:focus-visible { outline: none; border-color: rgba(56, 189, 248, .6); box-shadow: 0 0 0 3px rgba(47, 128, 255, .22); }
.balance-pill:active { transform: scale(.96); }
.balance-pill:active .plus { transform: rotate(180deg) scale(.92); }
@keyframes plusRipple { 0% { transform: scale(1); opacity: .85; } 100% { transform: scale(2.1); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .balance-pill .plus::after { animation: none !important; } }
.top-avatar { display: none; border-radius: 50%; }

.avatar { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; overflow: hidden; background: var(--surface-3); font-weight: 800; font-size: 18px; flex: none; box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.sm { width: 34px; height: 34px; font-size: 14px; box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px var(--accent); }
.avatar.lg { width: 58px; height: 58px; font-size: 22px; box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent); }

/* ---------- glass bottom navigation (phone) ---------- */
.tabbar { position: fixed; z-index: 40; left: 50%; bottom: calc(14px + var(--safe-b)); transform: translateX(-50%); display: flex; gap: 2px; padding: 6px; border-radius: 999px;
  background: var(--glass); backdrop-filter: blur(26px) saturate(180%); -webkit-backdrop-filter: blur(26px) saturate(180%);
  border: 1px solid var(--glass-line); box-shadow: var(--glass-shadow); }
.tab-pill { position: absolute; left: 0; top: 6px; width: 46px; height: 46px; border-radius: 999px; background: var(--tab-on); box-shadow: var(--tab-on-shadow); pointer-events: none; will-change: transform, width; }
.tabbar button { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; height: 46px; min-width: 46px; padding: 0 12px; border-radius: 999px; color: var(--tab-ink);
  transition: color .3s, padding .44s cubic-bezier(.3, .9, .35, 1), transform .15s; }
.tabbar button:active { transform: scale(.93); }
.tabbar button span:last-child { max-width: 0; margin-left: 0; opacity: 0; overflow: hidden; white-space: nowrap; font-weight: 700; font-size: 14px;
  transition: max-width .44s cubic-bezier(.3, .9, .35, 1), margin .44s cubic-bezier(.3, .9, .35, 1), opacity .12s; }
.tabbar button.active { color: var(--tab-on-ink); padding: 0 18px 0 14px; }
.tabbar button.active span:last-child { max-width: 140px; margin-left: 8px; opacity: 1; transition: max-width .44s cubic-bezier(.3, .9, .35, 1), margin .44s cubic-bezier(.3, .9, .35, 1), opacity .2s .16s; }

/* ---------- layout ---------- */
.view { width: 100%; max-width: 1240px; margin: 0 auto; padding: 14px 16px calc(110px + var(--safe-b)); }
/* page change: the old page drops out fast, the new one rises in block by block */
.view.leaving { opacity: 0; transition: opacity .09s ease; }
.page-in > *, .page-in .list > *:not(.skeleton), .page-in .menu > *, .page-in .methods > *, .page-in .topup > * { animation: rise .46s cubic-bezier(.2, .8, .3, 1) both; animation-delay: calc(var(--k, 0) * 55ms); }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes pageIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
::view-transition-old(root) { animation: fadeOut .18s ease both; }
::view-transition-new(root) { animation: fadeIn .28s ease both; }
@keyframes fadeOut { to { opacity: 0; } }
@keyframes fadeIn { from { opacity: 0; } }

.page-title { font-family: var(--display); font-weight: 800; font-size: clamp(22px, 6vw, 38px); line-height: 1.1; letter-spacing: -.01em; }
.page-title .count { margin-left: 8px; color: var(--accent-2); font-size: .36em; font-weight: 700; vertical-align: super; letter-spacing: 0; }
.crumbs { display: none; gap: 8px; margin: 6px 0 10px; color: var(--muted); font-size: 13px; }
.crumbs b { color: var(--text); font-weight: 600; }
.crumbs i { color: var(--faint); font-style: normal; }

/* ---------- mobile balance banner ---------- */
.hero-mini { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 4px 0 14px; padding: 18px; border-radius: 24px; background: var(--hero); color: var(--on-hero); position: relative; overflow: hidden; isolation: isolate; }
.hero-mini::after { content: ""; position: absolute; right: -50px; top: -70px; width: 200px; height: 200px; border-radius: 50%; z-index: -1; background: radial-gradient(circle, rgba(255, 255, 255, .28), transparent 65%); }
/* a huge balance figure shrinks (fitDigits in app.js) and, as a last resort, wraps; the "Пополнить" button never does */
.hero-mini > div:first-child { min-width: 0; }
.hero-mini .btn-glass { flex-shrink: 0; }
.hm-label { color: rgba(255, 255, 255, .8); font-size: 13px; font-weight: 600; }
.hm-amount { font-family: var(--display); font-weight: 700; font-size: 34px; line-height: 1.1; margin-top: 2px; }
.hm-amount small { font-size: .55em; margin-left: 3px; opacity: .85; }
.btn-glass { display: inline-flex; align-items: center; gap: 8px; padding: 11px 16px; border-radius: 14px; background: rgba(255, 255, 255, .17); border: 1px solid rgba(255, 255, 255, .26); font-weight: 700; font-size: 14px; backdrop-filter: blur(8px); }
.btn-glass .ico svg { width: 18px; height: 18px; }
.btn-glass { position: relative; overflow: hidden; cursor: pointer; transition: transform .25s cubic-bezier(.34, 1.56, .64, 1), background .25s, border-color .25s, box-shadow .3s; }
.btn-glass::before { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 45%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .42), transparent); transform: skewX(-20deg); opacity: 0; pointer-events: none; }
.btn-glass .ico { display: inline-grid; transition: transform .45s cubic-bezier(.34, 1.56, .64, 1); }
@media (hover: hover) {
  .btn-glass:hover { transform: translateY(-2px); background: rgba(255, 255, 255, .27); border-color: rgba(255, 255, 255, .5); box-shadow: 0 10px 26px rgba(8, 20, 60, .35), 0 0 0 3px rgba(255, 255, 255, .1); }
  .btn-glass:hover .ico { transform: rotate(180deg) scale(1.2); }
  .btn-glass:hover::before { animation: glassShine .9s ease-out; }
}
.btn-glass:active { transform: scale(.95); background: rgba(255, 255, 255, .3); }
.btn-glass:focus-visible { outline: none; border-color: rgba(255, 255, 255, .6); box-shadow: 0 0 0 3px rgba(255, 255, 255, .25); }
@keyframes glassShine { 0% { left: -60%; opacity: 1; } 100% { left: 130%; opacity: 1; } }

/* ---------- catalog ---------- */
.catalog { display: block; }
.filters { display: none; }
.toolbar { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin: 12px 0 10px; }
.search { position: relative; display: block; grid-column: 1 / -1; }
.search .ico { position: absolute; z-index: 2; left: 14px; top: 13px; color: var(--faint); pointer-events: none; }
.search .ico svg { width: 20px; height: 20px; }
.search input { width: 100%; height: 46px; padding: 0 14px 0 44px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface); outline: none; font-size: 15px; transition: border-color .2s, box-shadow .2s; }
.search input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(47, 128, 255, .18); }
.select { position: relative; }
.select select { appearance: none; -webkit-appearance: none; width: 100%; height: 46px; padding: 0 38px 0 16px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface); outline: none; font-weight: 600; font-size: 14px; }
.select::after { content: ""; position: absolute; right: 16px; top: 18px; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); pointer-events: none; }
.btn-filter { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 16px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface); font-weight: 700; font-size: 14px; }
.btn-filter .ico svg { width: 18px; height: 18px; }
.btn-filter em { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--accent); font-style: normal; font-size: 12px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.chips:empty { display: none; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 8px 8px 14px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line-2); font-size: 13px; font-weight: 600; }
.chip.clear { background: var(--text); color: var(--bg); border-color: transparent; }
.chip .ico svg { width: 15px; height: 15px; stroke-width: 2.6; }
.chip .ico { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--chip); }
.chip.clear .ico { background: rgba(8, 17, 31, .12); }

.section-head { display: flex; align-items: baseline; justify-content: space-between; margin: 18px 2px 12px; }
.section-title { font-family: var(--display); font-weight: 700; font-size: clamp(20px, 5vw, 28px); }
.section-note { color: var(--muted); font-size: 13px; }

.collections { display: flex; gap: 12px; overflow-x: auto; padding: 2px 2px 10px; margin: 0 -16px 6px; padding-inline: 16px; scroll-snap-type: x proximity; scrollbar-width: none; }
.collections::-webkit-scrollbar { display: none; }
.coll { position: relative; flex: none; width: 210px; height: 118px; display: flex; flex-direction: column; justify-content: flex-end; padding: 14px; border-radius: 18px; overflow: hidden; text-align: left; scroll-snap-align: start; isolation: isolate; border: 1px solid var(--line-2); transition: transform .2s, border-color .2s, box-shadow .2s; }
.coll:active { transform: scale(.97); }
.coll .bg { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; transition: transform .6s; }
.coll:hover .bg { transform: scale(1.06); }
.coll::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(5, 9, 18, .15), rgba(5, 9, 18, .88)); }
.coll b { font-size: 16px; font-weight: 800; line-height: 1.15; color: #fff; text-shadow: 0 2px 14px rgba(0, 0, 0, .6); }
.coll span { margin-top: 3px; color: #c3d2ee; font-size: 12px; }
.coll.on { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent), 0 10px 34px rgba(47, 128, 255, .3); }
/* collections: room at both ends of the row, a position slider under it */
.collections { scroll-padding-inline: 16px; cursor: grab; overscroll-behavior-x: contain; }
.collections.grabbing { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.coll { -webkit-user-drag: none; user-select: none; }
.hscroll-track { position: relative; height: 4px; border-radius: 4px; background: var(--chip); margin: 2px 26px 14px; touch-action: none; cursor: pointer; }
.hscroll-track::before { content: ""; position: absolute; inset: -12px 0; }
.hscroll-track i { position: absolute; top: 0; bottom: 0; left: 0; border-radius: 4px; background: var(--grad); box-shadow: 0 0 10px rgba(47, 128, 255, .45); transition: box-shadow .2s; }
.hscroll-track:hover i, .hscroll-track:active i { box-shadow: 0 0 14px rgba(56, 189, 248, .8); }
/* latest purchases: a running strip under the balance banner */
.feed { margin: 16px 0 26px; }
.feed-label { display: flex; align-items: center; gap: 7px; margin: 0 2px 8px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); animation: liveDot 1.8s infinite; }
@keyframes liveDot { 0% { box-shadow: 0 0 0 0 rgba(56, 214, 255, .6); } 70% { box-shadow: 0 0 0 7px rgba(56, 214, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(56, 214, 255, 0); } }

.feed-strip { position: relative; overflow: hidden; margin-inline: -16px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.feed-track { display: flex; width: max-content; padding: 2px 0; animation: feedRun var(--feed-dur, 48s) linear infinite; }
.feed-strip:hover .feed-track, .feed-strip:active .feed-track { animation-play-state: paused; }
@keyframes feedRun { to { transform: translateX(-50%); } }
.feed-pill { display: flex; align-items: center; gap: 8px; flex: none; margin-right: 8px; padding: 5px 13px 5px 5px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-2); font-size: 12.5px; white-space: nowrap; text-align: left; transition: border-color .2s, transform .2s; }
.feed-pill:hover { border-color: rgba(56, 189, 248, .55); }
.feed-pill:active { transform: scale(.97); }
.feed-cv { width: 28px; height: 28px; flex: none; border-radius: 50%; background-size: cover; background-position: center; }
.feed-pill b { font-weight: 700; }
.feed-pill .feed-t { color: var(--muted); }
/* The strip is the whole point of the block, so it keeps running even when the system asks to reduce motion
   (the global reduce-motion rule would otherwise freeze or flicker it). It pauses on touch and hover. */
@media (prefers-reduced-motion: reduce) {
  .live-dot { animation: none; }
  .feed-track { animation: feedRun var(--feed-dur, 48s) linear infinite !important; }
  .feed-strip:hover .feed-track, .feed-strip:active .feed-track { animation-play-state: paused !important; }
}
.lot-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
.lot { position: relative; display: flex; flex-direction: row; overflow: hidden; padding: 0; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); text-align: left; animation: cardIn .4s cubic-bezier(.2, .8, .3, 1) both; animation-delay: calc(var(--i, 0) * 35ms); transition: transform .2s, border-color .2s, box-shadow .2s; }
@keyframes cardIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.lot:hover { border-color: rgba(47, 128, 255, .55); box-shadow: 0 12px 38px rgba(8, 40, 110, .35); transform: translateY(-2px); }
.lot:active { transform: scale(.985); }
.lot.out { opacity: .72; }
.lot-cover { position: relative; flex: none; width: 124px; align-self: stretch; min-height: 118px; background-size: cover; background-position: center; display: grid; place-items: center; }
.lot-cover .ico svg { width: 38px; height: 38px; stroke-width: 1.5; color: rgba(255, 255, 255, .8); }
.badge { position: absolute; left: 8px; top: 8px; padding: 4px 8px; border-radius: 8px; font-size: 11px; font-weight: 800; letter-spacing: .02em; }
.badge.sale { background: var(--grad); color: var(--on-grad); }
.badge.off { background: rgba(5, 9, 18, .82); color: var(--muted); border: 1px solid var(--line-2); }
.badge.sale + .badge.off { top: 36px; }
/* badges stack in the card's top-left corner; the best seller gets a see-through "Хит" mark with its sales */
.badges { position: absolute; left: 8px; top: 8px; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: 5px; pointer-events: none; }
.badges:empty { display: none; }
.badges .badge { position: static; }
.badge.hit { display: inline-flex; align-items: baseline; gap: 6px; background: rgba(8, 16, 36, .42); border: 1px solid rgba(255, 255, 255, .24); color: #fff; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: 0 4px 14px rgba(0, 0, 0, .25); }
.badge.hit b { font-weight: 800; color: #ffd166; letter-spacing: .04em; text-transform: uppercase; }
.badge.hit small { font-size: 10.5px; font-weight: 600; color: rgba(255, 255, 255, .85); letter-spacing: 0; }.lot-body { display: flex; flex-direction: column; gap: 5px; flex: 1; min-width: 0; padding: 13px 14px; }
.lot-cat { color: var(--accent-2); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lot-title { font-weight: 700; font-size: 15px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lot-meta { color: var(--muted); font-size: 12.5px; }
.lot-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 6px; }
.price { font-family: var(--display); font-weight: 700; font-size: 18px; letter-spacing: -.01em; white-space: nowrap; }
.price s { margin-left: 6px; color: var(--faint); font-family: var(--font); font-weight: 500; font-size: 12px; }
.btn-buy { color: var(--on-grad); padding: 9px 14px; border-radius: 11px; background: var(--grad); font-weight: 700; font-size: 13px; box-shadow: 0 6px 18px rgba(37, 99, 235, .35); }

/* ---------- empty / skeleton ---------- */
.empty { grid-column: 1 / -1; padding: 46px 20px; text-align: center; color: var(--muted); }
.empty .ico svg { width: 44px; height: 44px; margin: 0 auto 10px; stroke-width: 1.4; color: var(--faint); }
.skeleton { border-radius: 22px; border: 1px solid var(--line); background: linear-gradient(90deg, var(--surface) 0%, var(--surface-3) 50%, var(--surface) 100%); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- filter panel ---------- */
.fp h4 { margin: 0 0 12px; font-size: 18px; font-weight: 800; }
.fp section { margin-bottom: 22px; }
.price-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.price-inputs input { width: 100%; height: 42px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); outline: none; font-size: 14px; }
.price-inputs input:focus { border-color: var(--accent); }
.opt { display: flex; align-items: center; gap: 10px; padding: 7px 2px; cursor: pointer; font-size: 14px; font-weight: 500; user-select: none; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt .box { width: 20px; height: 20px; flex: none; border-radius: 50%; border: 2px solid var(--faint); display: grid; place-items: center; transition: .2s; }
.opt.check .box { border-radius: 6px; }
.opt input:checked + .box { border-color: var(--accent); background: var(--accent); box-shadow: 0 0 0 3px rgba(47, 128, 255, .22); }
.opt .box::after { content: ""; width: 8px; height: 4px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) scale(0); margin-top: -2px; transition: transform .15s; }
.opt input:checked + .box::after { transform: rotate(-45deg) scale(1); }
.opt .n { margin-left: auto; color: var(--faint); font-size: 12px; }
.switch-row { display: flex; align-items: center; justify-content: space-between; padding: 6px 2px; font-weight: 700; font-size: 15px; cursor: pointer; }
.switch-row input { position: absolute; opacity: 0; pointer-events: none; }
.switch { position: relative; width: 44px; height: 26px; border-radius: 13px; background: var(--surface-3); transition: background .2s; }
.switch::after { content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .22s cubic-bezier(.3, 1.4, .5, 1); }
.switch-row input:checked + .switch { background: var(--accent); }
.switch-row input:checked + .switch::after { transform: translateX(18px); }
.btn-reset { width: 100%; height: 44px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); font-weight: 700; font-size: 14px; }

/* ---------- orders ---------- */
.summary { position: relative; overflow: hidden; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 22px; border-radius: 24px; background: var(--hero); color: var(--on-hero); isolation: isolate; }
.summary::after { content: ""; position: absolute; right: -60px; top: -80px; width: 220px; height: 220px; border-radius: 50%; z-index: -1; background: radial-gradient(circle, rgba(255, 255, 255, .26), transparent 65%); }
.summary-label { font-weight: 700; font-size: 15px; }
.summary-sub { opacity: .85; font-size: 13px; margin-top: 6px; }
.summary-count { font-family: var(--display); font-size: 46px; font-weight: 700; line-height: 1; margin-top: 4px; }
.summary-box { padding: 12px 16px; border-radius: 16px; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .24); text-align: right; min-width: 0; }
/* a huge lifetime total shrinks (fitDigits in app.js); the heading on the left keeps its own size */
.summary > div:first-child { flex-shrink: 0; }
.summary-box div { font-size: 12px; opacity: .85; }
.summary-box b { font-size: 20px; }
.list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 14px; }
.orders-page, .orders-page > * { min-width: 0; }
.row-card { min-width: 0; padding: 16px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
.row-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; color: var(--muted); font-size: 13px; }
.row-top b { color: var(--text); font-size: 19px; font-family: var(--display); }
.row-title { margin: 8px 0 10px; font-weight: 600; font-size: 15px; }
.row-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 12.5px; }

/* order search + cards */
.pill-search { margin: 12px 0 4px; }
.pill-search input { height: 50px; padding-left: 50px; border-radius: 999px; background: var(--field); border-color: var(--line-2); backdrop-filter: blur(10px); }
.pill-search input::placeholder { color: var(--faint); font-weight: 500; letter-spacing: .02em; opacity: 1; }
.pill-search .ico { left: 18px; top: 15px; color: var(--muted); }
.search input[type="search"] { -webkit-appearance: none; appearance: none; }
.search input[type="search"]::-webkit-search-cancel-button, .search input[type="search"]::-webkit-search-decoration { -webkit-appearance: none; display: none; }
.pill-search input:focus { background: rgba(47, 128, 255, .07); }
.orders-summary { min-height: 0; }
.order .oid { font-size: 12.5px; letter-spacing: .03em; color: var(--muted); }
.row-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin-top: 10px; color: var(--muted); font-size: 12.5px; }
.row-meta .what { flex: 1 1 100%; }
.row-meta .when { flex: 1; }
.row-meta .what { display: inline-flex; align-items: center; gap: 6px; color: var(--accent-2); font-weight: 800; font-size: 14px; min-width: 0; }
.row-meta .what .ico svg { width: 16px; height: 16px; }
.row-meta .status { margin-left: auto; padding: 7px 13px; border-radius: 999px; background: var(--surface-3); color: var(--text); }
.row-sep { height: 1px; margin: 14px 0; background: var(--line); }
.deliv-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.deliv-label { color: var(--muted); font-size: 13px; flex: none; }
.pill { display: flex; align-items: center; gap: 6px; min-width: 0; max-width: 78%; padding: 5px 5px 5px 14px; border-radius: 999px; background: var(--surface-3); font-size: 13px; font-weight: 600; cursor: pointer; transition: background .2s; }
.pill:hover, .pill.open { background: rgba(47, 128, 255, .22); }
.pill.muted { cursor: default; padding-right: 14px; color: var(--muted); background: var(--surface-2); }
.pill .txt { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pill-btn { display: grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 50%; background: var(--chip); color: var(--muted); transition: background .2s, color .2s; }
.pill-btn:hover { background: var(--accent); color: #fff; }
.pill-btn .ico svg { width: 15px; height: 15px; }
.deliv-body { margin-top: 12px; display: grid; gap: 8px; }
.deliv-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.deliv-actions .btn-ghost { margin-top: 0; height: 44px; gap: 8px; font-size: 14px; }
.deliv-actions .btn-ghost .ico svg { width: 17px; height: 17px; }
.progress-row { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.progress-row .progress { flex: 1; margin: 0; }
.progress-row small { color: var(--muted); font-size: 12.5px; font-weight: 700; }
.more-btn { display: block; width: 100%; margin-top: 12px; height: 52px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-2); color: var(--muted); font-weight: 700; font-size: 15px; transition: background .2s, color .2s; }
.more-btn:hover { background: var(--surface-2); color: var(--text); }
.more-btn[disabled] { opacity: .6; cursor: default; }
.status { padding: 6px 10px; border-radius: 10px; background: var(--surface-2); font-weight: 700; font-size: 12px; color: var(--muted); }
.status.ok { color: #86efac; background: rgba(34, 197, 94, .12); }
.status.wait { color: #fcd34d; background: rgba(245, 158, 11, .12); }
.progress { height: 6px; margin-top: 12px; border-radius: 6px; background: var(--chip); overflow: hidden; }
.progress span { display: block; height: 100%; width: 100%; background: var(--grad); }

/* ---------- top-up ---------- */
.topup { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.topup > *, .profile > *, .orders-layout > * { min-width: 0; }
.panel { padding: 22px 18px; border-radius: 26px; background: var(--surface); border: 1px solid var(--line); }
.panel-label { text-align: center; color: var(--muted); font-size: 14px; font-weight: 600; }
.amount-input { display: block; width: 100%; margin: 6px 0 2px; border: 0; outline: none; background: none; text-align: center; font-family: var(--display); font-weight: 700; font-size: 52px; letter-spacing: -.02em; }
.amount-note { text-align: center; color: var(--faint); font-size: 13px; }
.presets { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 16px; }
.preset { padding: 11px 17px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-weight: 700; font-size: 14px; transition: .2s; }
.preset.active { color: var(--on-grad); background: var(--grad); border-color: transparent; box-shadow: 0 8px 24px rgba(37, 99, 235, .4); }
.group-label { margin: 22px 0 10px; color: var(--muted); font-size: 14px; font-weight: 600; }
.methods { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.method { display: flex; align-items: center; gap: 11px; padding: 13px 12px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); text-align: left; transition: border-color .2s, background .2s, transform .15s; }
.method:active { transform: scale(.97); }
.method.active { border-color: var(--accent); background: rgba(47, 128, 255, .13); box-shadow: inset 0 0 0 1px rgba(47, 128, 255, .55); }
.m-icon { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 11px; background: rgba(47, 128, 255, .16); color: var(--cyan); }
.m-icon .ico svg { width: 21px; height: 21px; }
.m-icon.brand { background: none; padding: 0; border-radius: 11px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.m-icon.brand img { display: block; width: 100%; height: 100%; object-fit: cover; }
[data-theme="light"] .m-icon.brand { box-shadow: inset 0 0 0 1px rgba(15,30,60,.12); }
.m-text { min-width: 0; }
.m-text b { display: block; font-size: 14px; line-height: 1.2; overflow-wrap: anywhere; }
.m-text small { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.method:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 4px); }
.fee-note { margin-top: 14px; text-align: center; color: var(--faint); font-size: 12.5px; line-height: 1.45; }
.btn-main { color: var(--on-grad); display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 56px; margin-top: 16px; border-radius: 18px; background: var(--grad); font-weight: 800; font-size: 17px; box-shadow: 0 14px 38px rgba(37, 99, 235, .42); transition: transform .15s, opacity .2s; }
.btn-main:active { transform: scale(.985); }
.btn-main[disabled] { opacity: .45; cursor: default; box-shadow: none; }
.btn-ghost { display: flex; align-items: center; justify-content: center; width: 100%; height: 50px; margin-top: 10px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); font-weight: 700; }
.note { margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: rgba(56, 214, 255, .07); border: 1px dashed rgba(56, 214, 255, .35); color: var(--note); font-size: 12.5px; line-height: 1.45; }
.hist-title { margin: 6px 4px 12px; font-size: 16px; font-weight: 700; }
.pay-row { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.pay-row .m-icon { width: 40px; height: 40px; }
.pay-row .info { flex: 1; min-width: 0; }
.pay-row .info b { display: block; font-size: 15px; }
.pay-row .info small { color: var(--muted); font-size: 12.5px; }
.pay-row .when { display: inline-flex; align-items: center; gap: 6px; margin-top: 2px; font-variant-numeric: tabular-nums; }
.pay-row .when .ico svg { width: 14px; height: 14px; stroke-width: 1.8; }
.pay-row .status { display: inline-flex; align-items: center; gap: 5px; }
.pay-row .status .ico svg { width: 13px; height: 13px; stroke-width: 2.4; }
.pay-row .sum { text-align: right; }
.pay-row .sum b { display: block; font-size: 16px; margin-bottom: 4px; }

/* ---------- profile ---------- */
.profile { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.p-head { display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); }
.p-head .who { min-width: 0; flex: 1; }
.p-head .p-user { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p-name { font-weight: 800; font-size: 17px; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p-user { color: var(--accent-2); font-size: 14px; font-weight: 600; }
.p-side { text-align: right; flex: none; }
.p-id { color: var(--faint); font-size: 12.5px; letter-spacing: .02em; }
.p-bal { margin-top: 4px; font-size: 13px; color: var(--muted); white-space: nowrap; }
.p-bal b { color: var(--text); font-size: 17px; }
.menu { display: grid; gap: 8px; }
.menu-item { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); text-align: left; transition: background .2s, transform .15s; }
.menu-item:active { transform: scale(.985); }
.menu-item:hover { background: var(--surface-2); }
.menu-item .m-icon { width: 42px; height: 42px; border-radius: 13px; }
.menu-item .t { flex: 1; min-width: 0; }
.menu-item .t b { display: block; font-size: 15px; }
.menu-item .t small { color: var(--muted); font-size: 12.5px; }
.menu-item > .ico:last-child { color: var(--faint); }
.menu-item > .ico:last-child svg { width: 18px; height: 18px; }
.menu-item.disabled { opacity: .55; cursor: default; }
.soon { padding: 4px 9px; border-radius: 8px; background: var(--surface-3); color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }

/* ---------- sheet ---------- */
.sheet { position: fixed; inset: 0; z-index: 70; display: flex; align-items: flex-end; justify-content: center; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(0, 4, 12, .66); backdrop-filter: blur(5px); animation: fadein .2s; }
.sheet-panel { position: relative; width: 100%; max-width: 580px; max-height: 92vh; overflow-y: auto; padding: 10px 18px calc(22px + var(--safe-b)); border-radius: 28px 28px 0 0; background: var(--bg-2); border: 1px solid var(--line-2); border-bottom: 0; animation: up .3s cubic-bezier(.2, .9, .3, 1); }
.sheet-grip { width: 42px; height: 5px; margin: 0 auto 12px; border-radius: 5px; background: rgba(255, 255, 255, .18); }
.sheet-close { position: absolute; right: 14px; top: 14px; z-index: 3; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(5, 9, 18, .7); border: 1px solid var(--line-2); backdrop-filter: blur(6px); }
.sheet-close::before, .sheet-close::after { content: ""; position: absolute; width: 14px; height: 2px; border-radius: 2px; background: var(--muted); transform: rotate(45deg); }
.sheet-close::after { transform: rotate(-45deg); }
@keyframes up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fadein { from { opacity: 0; } }
.p-cover { position: relative; aspect-ratio: 460 / 215; margin: -10px -18px 16px; background-size: cover; background-position: center; border-radius: 28px 28px 0 0; display: grid; place-items: center; }
.p-cover::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(180deg, transparent 45%, var(--bg-2)); }
.p-cover .ico svg { width: 60px; height: 60px; stroke-width: 1.3; color: rgba(255, 255, 255, .8); }
.p-title { font-family: var(--display); font-weight: 700; font-size: 21px; line-height: 1.2; }
.p-desc { margin-top: 12px; color: var(--text-2); font-size: 14px; line-height: 1.55; white-space: pre-line; max-height: 200px; overflow-y: auto; padding-right: 4px; }
.p-meta { margin-top: 8px; color: var(--muted); font-size: 13px; }
.p-meta b { color: var(--text); }
.p-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; }
.stepper { display: flex; align-items: center; gap: 4px; padding: 4px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.stepper button { width: 40px; height: 40px; border-radius: 10px; background: var(--surface-2); font-size: 20px; font-weight: 700; }
.stepper input { width: 64px; border: 0; outline: none; background: none; text-align: center; font-weight: 800; font-size: 17px; }
.field { margin-top: 14px; }
.field label { display: block; margin-bottom: 6px; color: var(--muted); font-size: 13px; font-weight: 600; }
.field input { width: 100%; height: 48px; padding: 0 14px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface); outline: none; }
.field input:focus { border-color: var(--accent); }
.total-line { display: flex; justify-content: space-between; margin-top: 16px; color: var(--muted); font-size: 14px; }
.total-line b { color: var(--text); font-size: 17px; }
.warn { margin-top: 10px; min-height: 18px; color: #fda4af; font-size: 13px; }
.result { text-align: center; padding-top: 10px; }
.done { width: 74px; height: 74px; margin: 6px auto 12px; border-radius: 50%; display: grid; place-items: center; background: rgba(34, 197, 94, .15); color: var(--green); animation: pop .45s cubic-bezier(.2, 1.4, .4, 1); }
.done .ico svg { width: 38px; height: 38px; stroke-width: 2.4; }
.done.fail { background: rgba(244, 63, 94, .15); color: var(--red); }
.catalog-title { margin: 0 0 4px; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
.result h3 { margin: 0; font-family: var(--display); font-size: 21px; }
.result p { color: var(--muted); font-size: 14px; }
.content-box { margin-top: 14px; text-align: left; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.content-line { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-top: 1px solid var(--line); }
.content-line:first-child { border-top: 0; }
.content-line code { flex: 1; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; word-break: break-all; color: var(--code); }
.copy { padding: 7px 10px; border-radius: 10px; background: var(--surface-2); color: var(--muted); font-size: 12px; font-weight: 700; flex: none; }
.filter-sheet { padding-top: 6px; }

.toast { position: fixed; left: 50%; bottom: calc(98px + var(--safe-b)); transform: translateX(-50%); z-index: 90; padding: 12px 18px; border-radius: 14px; background: var(--text); color: var(--bg); font-weight: 700; font-size: 14px; box-shadow: 0 12px 40px rgba(0, 0, 0, .4); animation: up .25s; max-width: calc(100% - 32px); }
.gate { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 14px; padding: 24px; text-align: center; }
.gate h2 { margin: 0; font-family: var(--display); }
.gate p { margin: 0; color: var(--muted); max-width: 320px; line-height: 1.5; }

/* ---------- tablet / desktop ---------- */
@media (min-width: 520px) {
  .lot-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
  .lot { flex-direction: column; }
  .lot-cover { width: auto; min-height: 0; aspect-ratio: 460 / 215; }
  .lot-body { padding: 14px 16px 16px; }
  .toolbar { grid-template-columns: 1fr auto auto; }
  .search { grid-column: auto; }
}
@media (min-width: 900px) {
  .topnav { display: flex; }
  .top-avatar { display: block; }
  .tabbar { display: none; }
  .toast { bottom: 32px; }
  .view { padding: 22px 28px 70px; }
  .topbar { padding: 14px 28px; }
  .hero-mini { display: none; }
  .crumbs { display: flex; }
  .catalog { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 30px; align-items: start; margin-top: 18px; }
  .filters { display: block; position: sticky; top: 84px; max-height: calc(100vh - 100px); overflow-y: auto; padding-right: 4px; scrollbar-width: thin; }
  .btn-filter { display: none; }
  .toolbar { grid-template-columns: 1fr 210px; margin-top: 0; }
  .collections { margin-inline: 0; padding-inline: 2px; scroll-padding-inline: 2px; }
  .hscroll-track { margin-inline: 2px; }
  .feed-strip { margin-inline: 0; }
  .coll { width: 236px; height: 128px; }
  .sheet { align-items: center; }
  .sheet-panel { border-radius: 28px; border-bottom: 1px solid var(--line-2); max-height: 88vh; }
  .sheet-grip { display: none; }
  .orders-page { max-width: 760px; margin: 0 auto; }
  .topup { grid-template-columns: minmax(0, 560px) minmax(0, 1fr); gap: 24px; align-items: start; }
  .profile { max-width: 640px; margin: 0 auto; }
}
@media (min-width: 1200px) {
  .lot-grid { grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  /* the navigation motion is the point of the bar, so it stays (the pill itself is a script animation) */
  .page-in > *, .page-in .list > *:not(.skeleton), .page-in .menu > *, .page-in .methods > *, .page-in .topup > * { animation-duration: .46s !important; }
  .view.leaving { transition-duration: .09s !important; }
  .tabbar button { transition-duration: .3s, .44s, .15s !important; }
  .tabbar button span:last-child { transition-duration: .44s, .44s, .12s !important; }
  .tabbar button.active span:last-child { transition-duration: .44s, .44s, .2s !important; }
}


/* ===== themes ===== */
/* Poster layout (from the Neon Grid layout) on the blue palette */
.page-title, .section-title { text-transform: uppercase; letter-spacing: .02em; }
.lot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.lot { position: relative; flex-direction: column; aspect-ratio: 3 / 4.1; border-radius: 16px; }
.lot:hover { box-shadow: 0 0 0 1px var(--accent), 0 14px 40px rgba(37, 99, 235, .35); }
.lot-cover { position: absolute; inset: 0; width: auto; min-height: 0; aspect-ratio: auto; }
.lot-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 44px 12px 12px; gap: 3px; background: linear-gradient(180deg, transparent, rgba(2, 6, 16, .94) 55%); }
.lot-cat { color: #7fb2ff; }
.lot-title { font-size: 14px; color: #fff; }
.lot-meta { font-size: 11.5px; color: rgba(255, 255, 255, .68); }
.price { font-size: 16px; color: #fff; }
.price s { color: rgba(255, 255, 255, .5); }
.btn-buy { padding: 7px 11px; border-radius: 10px; }
.coll, .panel, .row-card, .menu-item, .pay-row, .p-head, .summary, .hero-mini { border-radius: 16px; }
.btn-main { border-radius: 14px; }
@media (min-width: 520px) { .lot-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; } .lot-body { padding: 48px 14px 14px; } }
@media (min-width: 900px) { .lot { aspect-ratio: 4 / 4.6; } }

/* purchase result: one copy button, details behind an arrow */
.result .btn-main { gap: 8px; }
.result .btn-main .ico svg { width: 20px; height: 20px; }
.expander { display: flex; align-items: center; justify-content: space-between; width: 100%; margin-top: 10px; padding: 14px 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line-2); font-weight: 600; font-size: 14px; text-align: left; color: var(--text); }
.expander .ico { color: var(--muted); transition: transform .28s cubic-bezier(.3, 1.3, .4, 1); }
.expander .ico svg { width: 18px; height: 18px; }
.expander.open .ico { transform: rotate(90deg); color: var(--accent-2); }
.result-detail { display: grid; gap: 10px; margin-top: 10px; animation: pageIn .28s ease; }
.item-head { padding: 10px 14px 0; color: var(--muted); font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; text-align: left; }
.result-note { font-size: 12.5px; margin-top: 14px; }
.result .btn-ghost { margin-top: 8px; }

/* API sheet */
.api-sheet { display: grid; gap: 12px; }
.api-sheet .p-meta { margin: 0; }
.keybox { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line-2); }
.keybox code { flex: 1; min-width: 0; word-break: break-all; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; color: var(--code); }
.api-sheet .btn-main { margin-top: 0; }
.api-sheet .btn-main .ico, .api-sheet .btn-ghost .ico { margin-right: 6px; }
.api-sheet .btn-ghost { margin-top: 0; height: 48px; }
.api-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.api-sheet .note { margin-top: 0; }

/* theme toggle */
.theme-toggle { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line-2); color: var(--muted); transition: color .2s, transform .2s, background .2s; }
.theme-toggle .ico svg { width: 19px; height: 19px; }
.menu-item .tstate { color: var(--accent-2); font-size: 12.5px; font-weight: 700; }

/* Light theme (from the Ice Light layout) */
:root[data-theme="light"] {
  --bg: #e9f0fb; --bg-2: #f6f9fe; --surface: #ffffff; --surface-2: #eef3fb; --surface-3: #dde7f7;
  --line: rgba(20, 50, 110, .08); --line-2: rgba(20, 50, 110, .16);
  --text: #0b1a3a; --text-2: #38496e; --muted: #5d6f94; --faint: #8f9dbb;
  --accent: #2563eb; --accent-2: #1d4ed8; --cyan: #0284c7;
  --grad: linear-gradient(135deg, #2563eb 0%, #38bdf8 100%); --on-grad: #fff;
  --bar: rgba(244, 248, 255, .82); --glow1: rgba(37, 99, 235, .16); --glow2: rgba(56, 189, 248, .16);
  --glass: rgba(255, 255, 255, .6); --glass-line: rgba(20, 50, 110, .14);
  --glass-shadow: 0 14px 40px rgba(20, 50, 110, .2), inset 0 1px 0 #fff;
  --tab-ink: rgba(11, 26, 58, .5); --tab-on-ink: #1d4ed8; --tab-on: linear-gradient(180deg, #fff, rgba(255, 255, 255, .65));
  --tab-on-shadow: 0 4px 16px rgba(37, 99, 235, .28);
  --code: #1d4ed8; --note: #0369a1; --chip: rgba(20, 50, 110, .07); --field: #fff;
}
[data-theme="light"] .wordmark i { text-shadow: none; }
/* ---------- header micro-animations: theme toggle + wordmark ---------- */
.theme-toggle { position: relative; cursor: pointer; transition: color .2s, transform .3s cubic-bezier(.34, 1.56, .64, 1), background .25s, border-color .25s, box-shadow .3s; }
.theme-toggle .ico { display: grid; place-items: center; }
.theme-toggle .ico svg { transition: transform .55s cubic-bezier(.34, 1.56, .64, 1); }
.theme-toggle::after { content: ""; position: absolute; inset: -1px; border-radius: 50%; border: 2px solid rgba(56, 189, 248, .7); opacity: 0; pointer-events: none; }
.theme-toggle:active { transform: scale(.88); }
.theme-toggle:focus-visible { outline: none; color: var(--text); border-color: rgba(56, 189, 248, .6); box-shadow: 0 0 0 3px rgba(47, 128, 255, .22); }
.theme-toggle.swap .ico svg { animation: themeSwap .6s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes themeSwap { from { transform: rotate(-140deg) scale(.2); opacity: 0; } }
@keyframes toggleRipple { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.9); opacity: 0; } }
.theme-toggle.swap::after { animation: toggleRipple .7s ease-out; }

.brand { cursor: pointer; transition: transform .2s; }
.brand:active { transform: scale(.96); }
.wordmark b, .wordmark i { display: inline-block; transition: transform .4s cubic-bezier(.34, 1.56, .64, 1), text-shadow .3s, color .3s; }
@media (hover: hover) {
  .theme-toggle:hover { color: var(--text); transform: translateY(-1px); border-color: rgba(56, 189, 248, .6); box-shadow: 0 0 0 3px rgba(47, 128, 255, .14), 0 8px 20px rgba(37, 99, 235, .28); }
  .theme-toggle:hover .ico svg { transform: rotate(90deg) scale(1.18); }
  .theme-toggle:hover::after { animation: toggleRipple 1.4s ease-out infinite; }
  .brand:hover .wordmark b:first-child { transform: translateX(-2px); }
  .brand:hover .wordmark b:last-child { transform: translateX(2px); }
  .brand:hover .wordmark i { transform: skewX(-16deg) scale(1.28); color: #38bdf8; text-shadow: 0 0 20px rgba(56, 189, 248, .95), 0 0 6px rgba(56, 189, 248, .7); }
  [data-theme="light"] .brand:hover .wordmark i { color: var(--accent); text-shadow: 0 0 12px rgba(37, 99, 235, .4); }
}
@media (prefers-reduced-motion: reduce) { .theme-toggle::after { animation: none !important; } }
[data-theme="light"] .lot, [data-theme="light"] .row-card, [data-theme="light"] .panel, [data-theme="light"] .menu-item, [data-theme="light"] .pay-row, [data-theme="light"] .p-head { box-shadow: 0 6px 24px rgba(20, 50, 110, .08); }
[data-theme="light"] .lot:hover { box-shadow: 0 14px 38px rgba(37, 99, 235, .18); }
[data-theme="light"] .sheet-panel, [data-theme="light"] .splash { background: var(--bg-2); }
[data-theme="light"] .sheet-backdrop { background: rgba(20, 40, 90, .35); }
[data-theme="light"] .status.ok { color: #15803d; background: rgba(34, 197, 94, .14); }
[data-theme="light"] .status.wait { color: #b45309; }
[data-theme="light"] .badge.off { background: rgba(255, 255, 255, .92); color: var(--muted); }
[data-theme="light"] .p-cover::after { background: linear-gradient(180deg, transparent 45%, var(--bg-2)); }
[data-theme="light"] .search input, [data-theme="light"] .select select, [data-theme="light"] .btn-filter, [data-theme="light"] .price-inputs input { background: #fff; }
[data-theme="light"] .method.active { background: rgba(37, 99, 235, .08); }
[data-theme="light"] .menu-item:hover { background: var(--surface-2); }
[data-theme="light"] .btn-glass { background: rgba(255, 255, 255, .22); }
[data-theme="light"] .sheet-close { background: #fff; }
[data-theme="light"] .sheet-close::before, [data-theme="light"] .sheet-close::after { background: var(--muted); }
.menu-item.current { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.menu-item.current > .ico { color: var(--accent); }
/* subscription gate: covers the whole app until the channel and the chat are joined */
.sub-gate { position: fixed; inset: 0; z-index: 80; overflow-y: auto; background: var(--bg); }
.sub-gate .gate { min-height: 100%; }
.sub-rows { display: grid; gap: 10px; width: 100%; max-width: 360px; margin: 18px auto 16px; }
.sub-row { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line-2); text-align: left; font-weight: 700; font-size: 15px; transition: border-color .2s, transform .15s; }
.sub-row:not(.ok):hover { border-color: var(--accent); }
.sub-row:not(.ok):active { transform: scale(.98); }
.sub-row .sub-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--chip); color: var(--muted); flex: none; }
.sub-row.ok { border-color: rgba(34, 197, 94, .45); cursor: default; }
.sub-row.ok .sub-mark { background: rgba(34, 197, 94, .16); color: #4ade80; }
.sub-gate .btn-main { max-width: 360px; margin-inline: auto; }

/* ===== filter widgets (collapsible pills) and the sort dropdown ===== */
.fp { display: grid; gap: 10px; }
.acc-head { display: flex; align-items: center; gap: 10px; width: 100%; height: 48px; padding: 0 18px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line-2); font-weight: 800; font-size: 15px; text-align: left;
  transition: border-color .25s, background .25s, box-shadow .3s, transform .15s; }
.acc-head > span:first-child { flex: 1; min-width: 0; }
.acc-head em { display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--accent); color: #fff; font-style: normal; font-size: 12px; font-weight: 800; }
.acc-head .ico { color: var(--muted); transform: rotate(90deg); transition: transform .38s cubic-bezier(.3, 1.3, .4, 1), color .2s; }
.acc-head .ico svg { width: 18px; height: 18px; stroke-width: 2.4; }
.acc-head:active { transform: scale(.985); }
@media (hover: hover) { .acc-head:hover { border-color: rgba(120, 170, 255, .45); } }
.acc.open .acc-head { border-color: var(--accent); background: var(--surface); box-shadow: 0 0 0 3px rgba(47, 128, 255, .16); }
.acc.open .acc-head .ico { transform: rotate(-90deg); color: var(--text); }
.acc-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .38s cubic-bezier(.2, .8, .3, 1); }
.acc.open .acc-body { grid-template-rows: 1fr; }
.acc-inner { min-height: 0; overflow: hidden; visibility: hidden; transition: visibility 0s .38s; }
.acc.open .acc-inner { visibility: visible; transition: visibility 0s; }
.acc-list { margin-top: 8px; padding: 10px 16px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line-2); max-height: 264px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--text-2) transparent; }
.acc-list::-webkit-scrollbar { width: 5px; }
.acc-list::-webkit-scrollbar-thumb { background: var(--text-2); border-radius: 3px; }
.acc-list .opt { padding: 10px 2px; color: var(--text-2); font-weight: 600; transition: color .2s; }
.acc-list .opt:has(input:checked) { color: var(--text); }
.acc.open .acc-list .opt { animation: ddIn .32s both; animation-delay: calc(var(--j, 0) * 32ms + 90ms); }
@keyframes ddIn { from { opacity: 0; transform: translateX(-10px); } }
.acc-switch { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 18px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line-2); font-weight: 800; font-size: 15px; cursor: pointer; transition: border-color .25s, transform .15s; }
.acc-switch > span:first-child { flex: 1; }
.acc-switch:active { transform: scale(.985); }
.acc-switch input { position: absolute; opacity: 0; pointer-events: none; }
.acc-switch input:checked + .switch { background: var(--accent); }
.acc-switch input:checked + .switch::after { transform: translateX(18px); }
.acc-switch:has(input:checked) { border-color: var(--accent); }

.sort-slot { position: relative; min-width: 0; }
.dd { position: relative; }
.dd-btn { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; height: 46px; padding: 0 12px 0 16px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface); font-weight: 700; font-size: 14px; text-align: left; transition: border-color .25s, box-shadow .3s, transform .15s; }
.dd-btn > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dd-btn .ico { color: var(--muted); transform: rotate(90deg); transition: transform .38s cubic-bezier(.3, 1.3, .4, 1); }
.dd-btn .ico svg { width: 18px; height: 18px; stroke-width: 2.4; }
.dd-btn:active { transform: scale(.985); }
.dd.open .dd-btn { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(47, 128, 255, .16); }
.dd.open .dd-btn .ico { transform: rotate(-90deg); }
.dd-list { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 8px); min-width: 210px; padding: 6px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--glass-shadow);
  opacity: 0; visibility: hidden; transform: translateY(-8px) scale(.96); transform-origin: top left; pointer-events: none;
  transition: opacity .18s ease, transform .26s cubic-bezier(.2, .9, .3, 1.15), visibility 0s .26s; }
.dd.open .dd-list { opacity: 1; visibility: visible; transform: none; pointer-events: auto; transition-delay: 0s; }
.dd-opt { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; padding: 12px 14px; border-radius: 14px; font-weight: 600; font-size: 14px; text-align: left; color: var(--text-2); transition: background .15s, color .15s; }
@media (hover: hover) { .dd-opt:hover { background: var(--chip); color: var(--text); } }
.dd-opt.on { color: var(--text); background: rgba(47, 128, 255, .14); }
.dd-opt .ico svg { width: 17px; height: 17px; color: var(--accent); stroke-width: 2.6; }
.dd.open .dd-opt { animation: ddIn .28s both; animation-delay: calc(var(--k, 0) * 30ms + 50ms); }
@media (prefers-reduced-motion: reduce) {
  .acc-head, .acc-switch, .dd-btn { transition-duration: .25s !important; }
  .acc-head .ico, .dd-btn .ico { transition-duration: .38s !important; }
  .acc-body { transition-duration: .38s !important; }
  .dd-list { transition-duration: .18s, .26s, 0s !important; }
  .acc.open .acc-list .opt, .dd.open .dd-opt { animation-duration: .3s !important; }
}
.resume-note { margin: 12px 0 0; padding: 10px 14px; border-radius: 14px; background: rgba(47, 128, 255, .12); border: 1px solid rgba(47, 128, 255, .35); font-size: 13px; font-weight: 600; text-align: center; line-height: 1.4; animation: rise .4s cubic-bezier(.2, .8, .3, 1) both; }
.resume-line { margin: 4px 0 16px; font-weight: 600; line-height: 1.45; }

/* ===== settings switches that change the whole app ===== */
.no-motion *, .no-motion *::before, .no-motion *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }

/* in-stock chip: green everywhere; Settings -> "Остатки зелёным" turns the colour off */
.stock { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 999px; background: rgba(34, 197, 94, .18); color: #4ade80; font: 700 10.5px var(--font); white-space: nowrap; }
.stock::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 6px #22c55e; }
.stock.img { background: rgba(4, 36, 18, .72); color: #6ee7a0; }
:root[data-theme="light"] .stock { color: #15803d; background: rgba(34, 197, 94, .16); }
:root[data-theme="light"] .stock.img { color: #86efac; }
.no-green .stock, .no-green .stock.img { background: var(--chip); color: var(--muted); box-shadow: none; }
.no-green .stock::before { background: var(--muted); box-shadow: none; }
.lot-meta .stock { background: rgba(4, 36, 18, .66); color: #6ee7a0; }
.no-green .lot-meta .stock { background: rgba(255, 255, 255, .12); color: rgba(255, 255, 255, .75); }

/* ===== home: sections ===== */
.sx-head { margin: 16px 2px 12px; }
.sx-head .section-title { display: flex; align-items: baseline; gap: 8px; }
.sx-head small { font: 600 12px var(--font); color: var(--muted); text-transform: none; letter-spacing: 0; }
.sx-tile { container: sx / inline-size; }
.sx-tile .stock .ss { display: none; }
@container sx (max-width: 158px) { .stock[data-d="1"] .sf { display: none; } .stock[data-d="1"] .ss { display: inline; } }
@container sx (max-width: 160px) { .stock[data-d="2"] .sf { display: none; } .stock[data-d="2"] .ss { display: inline; } }
@container sx (max-width: 164px) { .stock[data-d="3"] .sf { display: none; } .stock[data-d="3"] .ss { display: inline; } }
@container sx (max-width: 194px) { .stock[data-d="4"] .sf, .stock[data-d="5"] .sf { display: none; } .stock[data-d="4"] .ss, .stock[data-d="5"] .ss { display: inline; } }
.sx-art { position: absolute; inset: 0; z-index: 0; background-size: cover; background-position: center; transition: transform .6s; }
.sx-tile { position: relative; display: block; overflow: hidden; border-radius: 18px; border: 1px solid var(--line-2); isolation: isolate; color: #fff; text-align: left; transition: transform .2s, box-shadow .25s, border-color .2s; }
.sx-tile:active { transform: scale(.98); }
@media (hover: hover) { .sx-tile:hover { border-color: rgba(120, 170, 255, .5); box-shadow: 0 10px 30px rgba(37, 99, 235, .28); } .sx-tile:hover .sx-art { transform: scale(1.05); } }
.sx-tile::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(5, 9, 18, .05) 30%, rgba(5, 9, 18, .82)); }
.sx-in { position: relative; z-index: 2; height: 100%; min-height: inherit; box-sizing: border-box; gap: 8px; display: flex; flex-direction: column; justify-content: space-between; padding: 11px; }
.sx-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; } .sx-top .stock { flex: none; }
.sx-gl { flex: none; width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: rgba(255, 255, 255, .2); border: 1px solid rgba(255, 255, 255, .3); }
.sx-gl .ico svg { width: 18px; height: 18px; }
.sx-tile b { display: block; font: 800 14px/1.2 var(--font); text-shadow: 0 2px 12px rgba(0, 0, 0, .55); }
.sx-tile small { display: block; margin-top: 2px; font: 500 11px var(--font); color: #cfdcf3; }
.sx-off { position: absolute; z-index: 3; right: 10px; top: 10px; font: 800 10px var(--font); padding: 3px 7px; border-radius: 8px; background: var(--red); color: #fff; }
.sx-off.static { position: static; }

.sx-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sx-tiles .sx-tile { min-height: 112px; } .sx-tiles .sx-tile.wide { grid-column: 1 / -1; min-height: 132px; }
.sx-banners { display: grid; gap: 10px; }
.sx-banners .sx-tile { height: 92px; } .sx-banners .sx-in { flex-direction: row; align-items: flex-end; }
.sx-banners .sx-top { position: absolute; right: 11px; top: 11px; } .sx-banners .sx-gl { display: none; }
.sx-mosaic { display: grid; grid-template-columns: 1.15fr 1fr; grid-auto-rows: 124px; gap: 10px; }
.sx-mosaic .sx-tile.tall { grid-row: span 2; }
.sx-list { display: grid; gap: 8px; }
.sx-btn { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 8px 12px 8px 10px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line-2); text-align: left; transition: transform .2s, border-color .2s; }
.sx-btn:active { transform: scale(.985); }
@media (hover: hover) { .sx-btn:hover { border-color: rgba(120, 170, 255, .5); } }
.sx-glc { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; color: #fff; flex: none; }
.sx-glc .ico svg { width: 20px; height: 20px; }
.sx-t { flex: 1; min-width: 0; } .sx-t b { display: block; font-size: 14px; } .sx-t small { color: var(--muted); font-size: 11.5px; }
.sx-btn > .ico { color: var(--muted); }
.sx-chips { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px 14px; padding: 2px 16px; scrollbar-width: none; }
.sx-chips::-webkit-scrollbar { display: none; }
.sx-chip { flex: none; padding: 9px 15px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-2); font: 700 12.5px var(--font); color: var(--text-2); white-space: nowrap; transition: background .2s, color .2s, box-shadow .25s; }
.sx-chip.on { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 6px 18px rgba(47, 128, 255, .35); }
@media (min-width: 900px) {
  .sx-tiles { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); } .sx-tiles .sx-tile.wide { grid-column: span 2; }
  .sx-mosaic { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); } .sx-mosaic .sx-tile.tall { grid-column: span 2; }
  .sx-banners, .sx-list { grid-template-columns: 1fr 1fr; }
  .sx-chips { margin-inline: 0; padding-inline: 0; flex-wrap: wrap; overflow: visible; }
}
/* a section / settings page one level down */
.sx-sub { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; }
.sx-sub .page-title { margin: 0; }
.sx-back { width: 38px; height: 38px; flex: none; border-radius: 50%; background: var(--surface); border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--text); transition: transform .15s, border-color .2s; }
.sx-back:active { transform: scale(.9); }
@media (hover: hover) { .sx-back:hover { border-color: var(--accent); } }
.sx-sortbar { position: relative; z-index: 20; margin: 0 0 12px; max-width: 260px; }   /* above the product cards, whose entrance animation makes them stacking contexts */

/* ===== settings page (variant 4: quick buttons + groups) ===== */
.settings { display: grid; gap: 12px; max-width: 640px; margin: 0 auto; }
.st-quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.st-qb { padding: 13px 6px 11px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line-2); display: grid; justify-items: center; gap: 6px; text-align: center; transition: transform .15s, border-color .2s; }
.st-qb:active { transform: scale(.96); }
@media (hover: hover) { .st-qb:hover { border-color: rgba(120, 170, 255, .5); } }
.st-qb b { font-size: 13px; } .st-qb small { color: var(--muted); font: 600 11px var(--font); }
.st-gl { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: rgba(47, 128, 255, .16); color: var(--cyan); flex: none; }
.st-gl .ico svg { width: 19px; height: 19px; }
.st-grp { border-radius: 20px; background: var(--surface); border: 1px solid var(--line-2); overflow: hidden; }
.st-lb { padding: 12px 16px 4px; font: 800 10.5px var(--font); color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.st-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 16px; font: 600 14px var(--font); text-align: left; cursor: pointer; }
.st-row + .st-row { border-top: 1px solid var(--line); }
.st-row .st-gl { width: 34px; height: 34px; border-radius: 11px; }
.st-t { flex: 1; min-width: 0; } .st-t small { display: block; font: 500 11px var(--font); color: var(--muted); margin-top: 1px; }
.st-v { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font: 600 12.5px var(--font); }
.st-v .ico svg { width: 15px; height: 15px; }
.st-row input { position: absolute; opacity: 0; pointer-events: none; }
.st-row input:checked + .switch { background: var(--accent); }
.st-row input:checked + .switch::after { transform: translateX(18px); }
.st-reset { display: flex; align-items: center; justify-content: center; gap: 8px; height: 46px; border-radius: 16px; background: var(--chip); border: 1px solid var(--line-2); font: 700 13px var(--font); color: var(--text-2); }
.st-reset .ico svg { width: 16px; height: 16px; }
.sx-opts { display: grid; gap: 8px; margin-top: 12px; }
.sx-opt { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-radius: 16px; background: var(--surface-2); border: 1.5px solid var(--line-2); font-size: 14px; text-align: left; }
.sx-opt.on { border-color: var(--accent); background: rgba(47, 128, 255, .12); }
.sx-opt .ico { color: var(--accent); }
.st-tcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.st-tc { padding: 8px; border-radius: 18px; background: var(--surface-2); border: 1.5px solid var(--line-2); display: grid; gap: 8px; text-align: center; font: 700 12px var(--font); transition: border-color .2s, box-shadow .2s; }
.st-tc.on { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(47, 128, 255, .16); }
.st-tp { height: 70px; border-radius: 12px; padding: 9px; display: grid; gap: 5px; align-content: start; }
.st-tp i { display: block; height: 8px; border-radius: 4px; }
.st-tp.dark { background: #050912; } .st-tp.dark i { background: #1d4ed8; } .st-tp.dark i + i { background: #13203a; }
.st-tp.light { background: #e9f0fb; } .st-tp.light i { background: #2563eb; } .st-tp.light i + i { background: #fff; }
.st-tp.auto { background: linear-gradient(90deg, #050912 50%, #e9f0fb 50%); } .st-tp.auto i { background: #2563eb; width: 70%; } .st-tp.auto i + i { background: #7aa7ff; }
.st-vcg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.st-vc { position: relative; padding: 8px; border-radius: 18px; background: var(--surface-2); border: 1.5px solid var(--line-2); display: grid; gap: 8px; text-align: center; font: 700 12px var(--font); transition: border-color .2s, box-shadow .2s; }
.st-vc.on { border-color: var(--accent); background: rgba(47, 128, 255, .12); box-shadow: 0 0 0 3px rgba(47, 128, 255, .14); }
.st-ck { position: absolute; top: 6px; right: 6px; width: 19px; height: 19px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; z-index: 1; }
.st-ck .ico svg { width: 12px; height: 12px; stroke-width: 3; }
.st-pv { display: grid; gap: 4px; height: 58px; padding: 6px; border-radius: 11px; background: var(--bg); border: 1px solid var(--line); }
.st-pv i { background: rgba(120, 165, 255, .34); border-radius: 5px; display: block; }
.st-vc.on .st-pv i { background: rgba(80, 150, 255, .75); }
.st-pv.tiles { grid-template-columns: 1fr 1fr; grid-template-rows: 1.1fr 1fr; } .st-pv.tiles i:first-child { grid-column: 1 / -1; }
.st-pv.list { grid-template-rows: repeat(4, 1fr); } .st-pv.banners { grid-template-rows: repeat(3, 1fr); }
.st-pv.mosaic { grid-template-columns: 1.2fr 1fr; grid-template-rows: 1fr 1fr; } .st-pv.mosaic i:first-child { grid-row: span 2; }
.st-pv.tabs { grid-template-columns: 1fr 1fr; grid-template-rows: 12px 1fr; } .st-pv.tabs i:first-child { grid-column: 1 / -1; border-radius: 7px; }

/* ===== order card: a game banner and the delivered data in a frame ===== */
.oc2 { border-radius: 22px; background: var(--surface); border: 1px solid var(--line-2); overflow: hidden; }
.oc2-ban { position: relative; height: 96px; isolation: isolate; }
.oc2-art { position: absolute; inset: 0; z-index: 0; background-size: cover; background-position: center; }
.oc2-ban::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(2, 6, 16, .1), rgba(2, 6, 16, .88)); }
.oc2-in { position: absolute; z-index: 2; left: 14px; right: 14px; bottom: 11px; display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; color: #fff; }
.oc2-in b { display: block; font: 800 16px/1.2 var(--font); text-shadow: 0 2px 12px rgba(0, 0, 0, .6); } .oc2-in small { color: #cfdcf3; font-size: 11.5px; }
.oc2-in em { font: 800 16px var(--font); font-style: normal; }
.oc2-ok { position: absolute; z-index: 2; right: 12px; top: 12px; font: 800 10.5px var(--font); padding: 4px 10px; border-radius: 999px; background: rgba(34, 197, 94, .22); color: #86efac; backdrop-filter: blur(6px); }
.oc2-ok.off { background: rgba(148, 163, 184, .22); color: #cbd5e1; }
.oc2-bd { padding: 12px; display: grid; gap: 10px; }
.of-toggle { display: flex; align-items: center; gap: 9px; width: 100%; height: 42px; padding: 0 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line-2); font: 700 13px var(--font); text-align: left; }
.of-toggle > span:not(.ico) { flex: 1; } .of-toggle .ico svg { width: 16px; height: 16px; } .of-toggle > .ico:last-child { color: var(--muted); transform: rotate(90deg); transition: transform .3s; }
.of-toggle.open > .ico:last-child { transform: rotate(-90deg); }
.of { display: grid; gap: 10px; }
.of-in { padding: 1.5px; border-radius: 17px; background: linear-gradient(135deg, #2f80ff, #38d6ff 55%, #8b5cf6); }
.of-in > * { background: var(--surface-2); }
.of-in > :first-child { border-radius: 16px 16px 0 0; border-top: 0; padding-top: 13px; }
.of-in > :last-child { border-radius: 0 0 16px 16px; }
.of-in > :first-child:last-child { border-radius: 16px; }
.of-item { padding: 8px 14px 11px; display: grid; gap: 9px; border-top: 1px solid var(--line); }
.of-item + .of-item { border-top: 1px dashed var(--line-2); }
.of-num { font: 800 11px var(--font); color: var(--cyan); text-transform: uppercase; letter-spacing: .06em; }
.of-fld { display: grid; gap: 3px; min-width: 0; }
.of-fld small { font: 600 10.5px var(--font); color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.of-v { display: flex; align-items: center; gap: 8px; min-width: 0; }
.of-v code { flex: 1; min-width: 0; font-size: 13px; word-break: break-all; }
.of-copy { width: 30px; height: 30px; flex: none; border-radius: 9px; background: var(--chip); display: grid; place-items: center; color: var(--muted); transition: color .2s, background .2s; }
.of-copy .ico svg { width: 15px; height: 15px; }
@media (hover: hover) { .of-copy:hover { color: var(--text); background: rgba(120, 170, 255, .2); } }
.of-mail { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 999px; background: rgba(47, 128, 255, .16); color: var(--cyan); font: 800 11px var(--font); white-space: nowrap; flex: none; }
.of-mail .ico svg { width: 12px; height: 12px; }
.of-acts { display: grid; grid-template-columns: 1.3fr 1fr; gap: 8px; }
.of-acts .btn-main, .of-acts .btn-ghost { height: 42px; font-size: 13px; }
.of-chat { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); border: 1px dashed var(--line-2); color: var(--muted); font: 600 13px var(--font); }
.of-chat span { color: var(--text); font-weight: 800; }

/* order card buttons: one height, clean arrow */
.of-toggle { height: 46px; gap: 10px; }
.of-toggle > .ico:first-child { color: var(--cyan); flex: none; }
.of-arrow { flex: none; width: 8px; height: 8px; margin: 0 3px 3px 0; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .3s; }
.of-toggle.open .of-arrow { transform: rotate(-135deg); margin-bottom: -3px; }
.of-acts { display: grid; grid-template-columns: 1.3fr 1fr; gap: 10px; align-items: stretch; }
.of-acts > button { height: 46px; margin: 0; padding: 0 14px; display: flex; align-items: center; justify-content: center; gap: 8px; border-radius: 14px; font: 800 13.5px var(--font); box-sizing: border-box; line-height: 1; }
.of-acts .btn-main { box-shadow: 0 6px 18px rgba(47, 128, 255, .3); }
.of-acts .btn-ghost { background: var(--chip); border: 1px solid var(--line-2); color: var(--text); }
.of-acts .ico svg { width: 17px; height: 17px; }
.of-acts > .btn-main, .of-acts > .btn-ghost { height: 46px; font-size: 13.5px; }
.of-v.link { flex-wrap: wrap; row-gap: 8px; }
.of-v.link code { flex-basis: 100%; }
.of-v.link .of-copy { margin-left: auto; }

/* A/BOT: the mascot in a glowing ring stands where the slash used to be */
.wordmark .rc-ring { display: inline-block; flex: none; align-self: center; width: 1.74em; height: 1.74em; margin: 0 .07em; border: 2px solid transparent; border-radius: 50%; text-shadow: none;
  background: url(assets/mascot-head.png) 50% 64% / 112% auto no-repeat, radial-gradient(circle at 50% 26%, #2b5bb8, #08122a 74%), linear-gradient(135deg, #38d6ff, #2f80ff 52%, #8b5cf6);
  background-clip: padding-box, padding-box, border-box; background-origin: padding-box, padding-box, border-box;
  box-shadow: 0 0 .55em rgba(47, 128, 255, .7), inset 0 0 .3em rgba(0, 0, 0, .5); transition: transform .45s cubic-bezier(.34, 1.56, .64, 1), box-shadow .3s; }
.wordmark.xl .rc-ring { border-width: 3px; }
@media (hover: hover) {
  .brand:hover .wordmark i.rc-ring { transform: scale(1.1) rotate(-9deg); color: inherit; box-shadow: 0 0 .95em rgba(56, 214, 255, .95), inset 0 0 .3em rgba(0, 0, 0, .5); }
}
.brand:active .wordmark i.rc-ring { transform: scale(.94) rotate(6deg); }
.splash .wordmark .rc-ring::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; box-shadow: 0 0 1.1em rgba(56, 214, 255, .95); opacity: 0; animation: ringPulse 2.6s ease-in-out infinite; }
@keyframes ringPulse { 50% { opacity: 1; } }
[data-theme="light"] .wordmark .rc-ring { box-shadow: 0 2px .5em rgba(37, 99, 235, .4), inset 0 0 .3em rgba(0, 0, 0, .45); }
/* the ring sits level with the letters: both centred on the same line, the ring nudged up to the cap-height centre */
.wordmark:has(.rc-ring) { align-items: center; }
.wordmark .rc-ring { position: relative; top: .055em; align-self: center; }

/* ---------- tile text: names break between words, never inside a bracket, a hyphenated word or a number with its unit ---------- */
.sx-tile b, .sx-t b, .lot-title { text-wrap: balance; hyphens: none; overflow-wrap: normal; word-break: normal; }
.sx-tile b { text-wrap: balance; }

/* ---------- admin panel ---------- */
.adm-tag { flex: none; padding: 3px 8px; border-radius: 999px; font: 800 9.5px var(--font); letter-spacing: .08em; color: var(--amber); background: rgba(245, 158, 11, .14); border: 1px solid rgba(245, 158, 11, .35); }
.admin-page { display: grid; gap: 14px; }
.admin-page .sx-sub { margin-bottom: 0; }
.admin-page .page-title { flex: 1; min-width: 0; font-size: 21px; white-space: nowrap; }
.adm-seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-2); }
.adm-seg button { padding: 9px 6px; border-radius: 999px; font: 700 13px var(--font); color: var(--text-2); transition: background .25s, color .25s, box-shadow .25s; }
.adm-seg button.on { background: var(--grad); color: #fff; box-shadow: 0 6px 18px rgba(47, 128, 255, .35); }
.adm-body { display: grid; gap: 14px; }
.adm-skel { height: 220px; }
.adm-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.adm-tile { display: grid; align-content: start; gap: 4px; padding: 13px 14px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line-2); min-width: 0; }
.adm-l { font: 600 11.5px var(--font); color: var(--muted); }
.adm-tile b { font: 800 22px/1.15 var(--display, var(--font)); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.adm-d { font: 700 11px var(--font); font-variant-numeric: tabular-nums; }
.adm-d.up { color: var(--green); } .adm-d.down { color: var(--red); } .adm-d.flat { color: var(--muted); }
.adm-chart { display: grid; gap: 10px; padding: 13px 14px 11px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line-2); }
.adm-bars { display: flex; align-items: flex-end; gap: 3px; height: 84px; }
.adm-bars i { flex: 1; min-width: 0; border-radius: 4px 4px 2px 2px; background: rgba(47, 128, 255, .45); transform-origin: bottom; animation: admGrow .5s cubic-bezier(.2, .8, .3, 1) both; }
.adm-bars i.peak { background: var(--cyan); box-shadow: 0 0 12px rgba(56, 214, 255, .5); }
@keyframes admGrow { from { transform: scaleY(.15); opacity: 0; } }
.adm-axis { display: flex; justify-content: space-between; font: 600 10.5px var(--font); color: var(--muted); font-variant-numeric: tabular-nums; }
.adm-h { margin: 4px 2px 0; font: 800 12px var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.adm-low-list { display: grid; gap: 8px; }
.adm-low { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line-2); text-align: left; transition: transform .15s, border-color .2s; }
.adm-low:active { transform: scale(.985); }
.adm-low b { min-width: 0; font-size: 13.5px; }
.adm-chip { flex: none; padding: 3px 9px; border-radius: 999px; font: 800 10.5px var(--font); }
.adm-chip.low { color: var(--amber); background: rgba(245, 158, 11, .14); }
.adm-chip.crit, .adm-chip.out { color: var(--red); background: rgba(244, 63, 94, .14); }
.adm-empty { margin: 0; padding: 12px 2px; color: var(--muted); font-size: 13px; }
.adm-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.adm-actions button { display: grid; justify-items: center; gap: 6px; padding: 12px 4px 10px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line-2); color: var(--text-2); font: 700 11px var(--font); transition: transform .15s, border-color .2s, color .2s; }
.adm-actions button:active { transform: scale(.95); }
@media (hover: hover) { .adm-actions button:hover, .adm-low:hover { border-color: rgba(120, 170, 255, .5); } .adm-actions button:hover { color: var(--text); } }
.adm-actions .ico svg { width: 20px; height: 20px; color: var(--accent); }
.adm-sheet { display: grid; gap: 12px; }
.adm-note { margin: 0; color: var(--muted); font-size: 12.5px; line-height: 1.45; }
.adm-search, .adm-text { width: 100%; box-sizing: border-box; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); border: 1.5px solid var(--line-2); color: var(--text); font: 500 14px var(--font); outline: none; }
.adm-search:focus, .adm-text:focus { border-color: var(--accent); }
.adm-text { resize: vertical; min-height: 120px; line-height: 1.45; }
.adm-list { display: grid; gap: 6px; max-height: 52vh; overflow-y: auto; margin: 0 -4px; padding: 0 4px; }
.adm-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 13px; background: var(--surface-2); border: 1px solid var(--line); }
.adm-row.off { opacity: .6; }
.adm-row .t { display: grid; gap: 2px; min-width: 0; }
.adm-row b { font-size: 13px; } .adm-row small { color: var(--muted); font-size: 11px; }
.adm-num { flex: none; font: 800 13px var(--font); font-variant-numeric: tabular-nums; }
.adm-num.zero { color: var(--red); }
.adm-sub { margin: 8px 2px 0; font: 800 11px var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* ---------- web version: sign in through the bot ---------- */
.web-actions { display: grid; gap: 10px; width: min(320px, 100%); margin-top: 8px; }
.web-actions a.btn-main { display: grid; place-items: center; text-decoration: none; }
.web-note { min-height: 20px; max-width: 320px; font-size: 13px; }
.web-manual { display: grid; gap: 8px; justify-items: center; width: min(320px, 100%); }
.web-manual:empty { display: none; }
.web-manual small { color: var(--muted); }
.web-manual code { display: block; max-width: 100%; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line-2); font: 600 12px ui-monospace, Consolas, monospace; overflow-wrap: anywhere; user-select: all; text-align: left; }

/* ---------- support button (lower right corner) and a centred header on the website ---------- */
.support-fab { position: fixed; right: 12px; bottom: calc(84px + var(--safe-b, 0px)); z-index: 40; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(37, 99, 235, .5); border: 1px solid rgba(147, 197, 253, .32); opacity: .8; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); box-shadow: 0 6px 18px rgba(0, 0, 0, .28); transition: transform .2s, opacity .2s, background .2s; }
.support-fab .ico svg { width: 17px; height: 17px; }
.support-fab:active { transform: scale(.92); }
.support-fab:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.support-tip { position: absolute; right: 50px; top: 50%; transform: translateY(-50%); padding: 7px 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line-2); color: var(--text); font: 700 12px var(--font); white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .2s; }
@media (hover: hover) { .support-fab:hover { opacity: 1; background: rgba(37, 99, 235, .85); transform: translateY(-1px); } .support-fab:hover .support-tip { opacity: 1; } }
@media (min-width: 900px) {
  .support-fab { right: 24px; bottom: 24px; width: 42px; height: 42px; }
  .topbar { display: grid; grid-template-columns: 1fr auto 1fr; }
  .topbar .topnav { margin: 0; justify-self: center; }
  .topbar .top-right { margin-left: 0; justify-self: end; }
  .center-title { text-align: center; }
}

/* the balance in the header stays on one line, including on narrow phones */
@media (max-width: 400px) { .balance-pill { gap: 6px; padding: 6px 6px 6px 11px; font-size: 13px; } .topbar { gap: 10px; } .top-right { gap: 7px; } }

/* ---------- support chat ---------- */
body.on-chat .tabbar, body.on-chat .support-fab { display: none; }
body.on-chat .view { padding-bottom: 12px; }
.sp-page, .tk-page.tk-detail { display: flex; flex-direction: column; height: calc(100dvh - 92px); min-height: 420px; max-width: 760px; margin: 0 auto; }
.sp-head { display: flex; align-items: center; gap: 10px; padding: 2px 2px 10px; }
.sp-ava { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid var(--accent); background: #08122a; flex: none; }
.sp-who { flex: 1; min-width: 0; } .sp-who b { display: block; font-size: 15px; line-height: 1.2; } .sp-who small { color: var(--green); font-size: 11.5px; }
.tk-detail .sp-who small { color: var(--muted); }
.sp-list { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 6px 2px; scrollbar-width: thin; }
.sp-msg { max-width: 82%; padding: 9px 12px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); font-size: 14px; line-height: 1.4; }
.sp-msg.me { align-self: flex-end; background: var(--grad); color: #fff; border-color: transparent; border-bottom-right-radius: 5px; }
.sp-msg.them { align-self: flex-start; border-bottom-left-radius: 5px; }
.sp-text { display: block; white-space: pre-wrap; overflow-wrap: anywhere; }
.sp-msg small { display: block; font-size: 10.5px; opacity: .65; margin-top: 3px; }
.sp-order { display: flex; gap: 8px; align-items: center; padding: 7px; border-radius: 11px; background: rgba(255, 255, 255, .14); margin-bottom: 6px; }
.sp-order i { width: 30px; height: 30px; border-radius: 8px; background: linear-gradient(135deg, #7c3aed, #1d4ed8); flex: none; }
.sp-order b { display: block; font-size: 12px; } .sp-order small { margin: 0; font-size: 11px; opacity: .8; }
.sp-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px 0; }
.sp-chip { padding: 7px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-2); color: var(--text-2); font: 700 12px var(--font); }
.sp-attached { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line-2); margin-bottom: 6px; }
.sp-attached[hidden] { display: none; }
.sp-attached .sp-order { flex: 1; min-width: 0; margin: 0; padding: 0; background: transparent; }
.sp-x { width: 24px; height: 24px; border-radius: 50%; background: var(--surface-2); color: var(--muted); font-size: 16px; line-height: 1; flex: none; }
.sp-comp { display: flex; align-items: flex-end; gap: 8px; padding: 6px 0 2px; }
.sp-input { flex: 1; min-width: 0; resize: none; padding: 11px 15px; border-radius: 20px; background: var(--surface); border: 1.5px solid var(--line-2); color: var(--text); font: 500 14px var(--font); line-height: 1.35; max-height: 110px; outline: none; }
.sp-input:focus { border-color: var(--accent); }
.sp-send { width: 42px; height: 42px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; color: #fff; flex: none; box-shadow: 0 6px 16px rgba(47, 128, 255, .4); }
.sp-send .ico svg { width: 18px; height: 18px; } .sp-send:disabled { opacity: .5; }
.sp-badge { position: absolute; top: -5px; right: -5px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 99px; background: var(--red); color: #fff; font: 800 10px var(--font); display: grid; place-items: center; border: 2px solid var(--bg); box-sizing: content-box; }
.badge-count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--red); color: #fff; font: 800 11px var(--font); display: grid; place-items: center; }
.of-help { display: flex; align-items: center; justify-content: center; gap: 7px; padding: 10px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line-2); color: var(--text-2); font: 700 12.5px var(--font); }
.of-help .ico svg { width: 15px; height: 15px; }
/* tickets (admin) */
.tk-rows { display: grid; gap: 8px; margin-top: 12px; }
.tk-row { display: grid; gap: 4px; text-align: left; padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line-2); }
.tk-top { display: flex; align-items: center; gap: 8px; } .tk-top small { margin-left: auto; color: var(--muted); }
.tk-row p { margin: 0; color: var(--text-2); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-unread { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--red); color: #fff; font: 800 10.5px var(--font); display: grid; place-items: center; }
.tk-close { padding: 8px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line-2); color: var(--text-2); font: 700 12px var(--font); white-space: nowrap; }
.adm-actions { grid-template-columns: repeat(5, 1fr); gap: 6px; }
.adm-actions button { position: relative; padding: 11px 2px 9px; font-size: 10.5px; }
.adm-count { position: absolute; top: 5px; right: 6px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 99px; background: var(--red); color: #fff; font: 800 9.5px var(--font); font-style: normal; display: grid; place-items: center; }

/* ---------- pictures: always one picture, scaled to fill, never tiled ---------- */
.lot-cover, .p-cover, .sx-art, .oc2-art, .coll .bg { background-repeat: no-repeat; background-color: #0a1224; }
.lot-cover { background-position: center 28%; }
.lot-cover:has(.cv-sharp) { overflow: hidden; }
.lot-cover:has(.cv-sharp)::before { content: ""; position: absolute; inset: -18px; background: inherit; filter: blur(14px) brightness(.62) saturate(1.15); }
.cv-sharp { position: absolute; inset: 0; background-size: cover, contain; background-position: center top, center 36%; background-repeat: no-repeat; }
/* the picture is the card: a lighter shade under the text so the artwork (logos, titles) stays visible */
.lot:has(.cv-sharp) .lot-body { padding-top: 30px; background: linear-gradient(180deg, transparent, rgba(2, 6, 16, .88) 60%); }
.lot-cover > .ico { position: relative; z-index: 1; }

/* product card frame: a thin gradient edge (bright at the top-left, fading, a soft glint at the bottom-right) instead of a flat line */
.lot { border-color: transparent; box-shadow: 0 10px 28px rgba(3, 12, 40, .38); }
.lot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; pointer-events: none; z-index: 3;
  background: linear-gradient(150deg, rgba(150, 200, 255, .85), rgba(70, 120, 255, .18) 42%, rgba(70, 120, 255, .10) 62%, rgba(150, 200, 255, .5));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); transition: opacity .2s; }
/* pointed at (mouse), focused (keyboard) or pressed: the frame lights up blue */
.lot:hover, .lot:focus-visible, .lot:active { border-color: transparent; box-shadow: 0 0 0 1px rgba(59, 130, 246, .9), 0 0 26px rgba(59, 130, 246, .55), 0 16px 40px rgba(37, 99, 235, .4); outline: none; }
.lot:hover::after, .lot:focus-visible::after, .lot:active::after { padding: 2px; background: linear-gradient(150deg, #7cb8ff, #2f80ff 40%, #3b82f6 65%, #7cb8ff); }
[data-theme="light"] .lot { box-shadow: 0 10px 28px rgba(20, 50, 110, .16); }
[data-theme="light"] .lot:hover { box-shadow: 0 0 0 1px rgba(37, 99, 235, .85), 0 0 24px rgba(37, 99, 235, .4), 0 14px 36px rgba(37, 99, 235, .22); }
[data-theme="light"] .lot:hover::after { background: linear-gradient(150deg, #60a5fa, #2563eb 45%, #3b82f6 65%, #60a5fa); }
[data-theme="light"] .lot::after { background: linear-gradient(150deg, rgba(255, 255, 255, .9), rgba(255, 255, 255, .25) 45%, rgba(255, 255, 255, .15) 62%, rgba(255, 255, 255, .7)); }
/* out of stock: a "Нет в наличии" tag in the top right corner, and the whole card is see-through so it does not compete with the goods in stock */
.lot-cover > .badge.off { position: absolute; left: auto; right: 8px; top: 8px; z-index: 2; color: rgba(232, 239, 255, .6); background: rgba(5, 9, 18, .22); border-color: rgba(255, 255, 255, .1); font-weight: 700; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.lot.out { opacity: 1; filter: opacity(.55); }  /* a filter, not opacity: the card entrance animation holds opacity at 1 */
.lot.out:hover { filter: opacity(.85); }
[data-theme="light"] .lot-cover > .badge.off { color: rgba(15, 30, 70, .6); background: rgba(255, 255, 255, .3); border-color: rgba(15, 30, 70, .1); }

/* ---------- direct Steam top-up page ---------- */
.spay-page { display: flex; flex-direction: column; gap: 12px; padding-bottom: 104px; }   /* the floating tab bar must not cover the last lines */
.spay-hero { display: flex; gap: 14px; align-items: center; padding: 16px; background: linear-gradient(135deg, rgba(47, 128, 255, .22), rgba(34, 211, 238, .1)); }
.spay-hero > .ico svg { width: 38px; height: 38px; color: #fff; }
.spay-hero b { display: block; font: 800 17px/1.2 var(--font); }
.spay-hero p { margin: 4px 0 0; font-size: 12.5px; line-height: 1.4; color: var(--muted); }
.spay-form { display: grid; gap: 10px; padding: 16px; }
.spay-label { font: 700 13px var(--font); color: var(--text-2); }
.spay-wrap { position: relative; display: flex; align-items: center; }
.spay-input { width: 100%; box-sizing: border-box; height: 50px; padding: 0 96px 0 16px; min-width: 0; border-radius: 16px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text); font: 600 15px var(--font); }
.spay-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(47, 128, 255, .22); }
.spay-input::placeholder { color: var(--muted); font-weight: 500; }
.spay-help { position: absolute; right: 14px; background: none; border: 0; padding: 4px; color: var(--muted); font: 600 12.5px var(--font); }
.spay-sign { position: absolute; right: 16px; color: var(--muted); font: 700 15px var(--font); pointer-events: none; }
.spay-regions { display: flex; gap: 8px; }
.spay-region { flex: 1; height: 40px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text-2); font: 700 13px var(--font); }
.spay-region.active { background: var(--grad); color: #fff; border-color: transparent; }
.spay-presets { justify-content: flex-start; }
.spay-lines { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; color: var(--muted); }
.spay-total { margin-top: 2px; font-size: 17px; }
.spay-note { font-size: 12px; color: var(--muted); }
.spay-note:empty { display: none; }
.spay-spin { width: 44px; height: 44px; margin: 6px auto 12px; border-radius: 50%; border: 4px solid rgba(47, 128, 255, .25); border-top-color: var(--accent); animation: spaySpin 2.4s linear infinite; }
@keyframes spaySpin { to { transform: rotate(360deg); } }
.no-motion .spay-spin { animation-duration: 3s; }

/* currency picker with flags, like the shop's other top-up forms */
.spay-row { display: flex; gap: 10px; align-items: center; }
.spay-row .spay-wrap { flex: 1; min-width: 0; }
.spay-row .spay-input { padding-right: 16px; }
.spay-cur-wrap { position: relative; flex: none; }
.spay-cur { display: flex; align-items: center; gap: 8px; height: 50px; padding: 0 12px; border-radius: 16px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text); font: 800 13px var(--font); }
.spay-cur .ico svg { width: 14px; height: 14px; transform: rotate(90deg); transition: transform .2s; }
.spay-cur.open .ico svg { transform: rotate(-90deg); }
.spay-cur-menu { position: absolute; z-index: 30; right: 0; top: calc(100% + 8px); display: grid; gap: 8px; padding: 10px; min-width: 130px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line-2); box-shadow: 0 16px 40px rgba(0, 0, 0, .45); }
.spay-cur-menu[hidden] { display: none; }
.spay-cur-item { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border-radius: 12px; border: 0; background: var(--surface-2); color: var(--text); font: 800 13px var(--font); }
.spay-cur-item:active, .spay-cur-item:hover { background: rgba(47, 128, 255, .22); }
.flag { display: inline-flex; width: 24px; height: 16px; border-radius: 3px; overflow: hidden; box-shadow: 0 0 0 1px rgba(255, 255, 255, .18); flex: none; }
.flag svg { width: 100%; height: 100%; display: block; }
/* "how to find the login" sheet */
.spay-help-sheet { display: grid; gap: 14px; }
.spay-help-sheet h3 { margin: 0; text-align: center; font: 800 20px var(--font); }
.spay-mock { padding: 16px; border-radius: 20px; background: #101a2c; border: 1px solid rgba(120, 170, 255, .35); }
.spay-mock-bar { display: flex; gap: 8px; align-items: center; }
.spay-mock .mb { display: inline-flex; align-items: center; justify-content: center; height: 26px; min-width: 38px; border-radius: 4px; color: #fff; font: 600 13px var(--font); }
.spay-mock .mb.blue { background: #1a9fff; } .spay-mock .mb.green { background: #5c7e10; }
.spay-mock .mb .ico svg { width: 15px; height: 15px; }
.spay-mock .mb.user { background: #1d2a40; gap: 8px; padding: 0 10px 0 0; color: #1a9fff; }
.spay-mock .mb.user i { width: 26px; height: 26px; background: linear-gradient(135deg, #ffb347, #ff7a1a); border-radius: 3px 0 0 3px; }
.spay-mock .mb.user small { color: #8aa0c0; font-size: 12px; }
.spay-mock-menu { margin: 8px 0 0 auto; width: 70%; display: grid; gap: 8px; padding: 12px; background: #243247; color: #9fb0c8; font-size: 13px; }
.spay-mock-menu .circled { color: #1a9fff; font-weight: 500; padding: 1px 6px; border: 2px solid #e5484d; border-radius: 10px; }
.spay-warn { margin: 0; font-size: 14px; line-height: 1.45; }
.spay-link { color: var(--accent); font-weight: 700; text-decoration: none; }

/* a promo-banner tile: the picture carries the words, so no shade, glyph or caption; it spans the row at the picture's own proportions */
/* every tile of the home grid has the same size; the banner is shown whole on a navy ground of its own colour */
.sx-tiles .sx-tile, .sx-tiles .sx-tile.wide { height: 128px; min-height: 0; }
.sx-tile.art-only .sx-art { background-color: #171b6b; }
.sx-tile.art-only::after, .sx-tile.art-only .sx-gl, .sx-tile.art-only .sx-in > div:last-child { display: none; }
.sx-tile.art-only .sx-art { background-size: contain; background-position: center; }
.sx-tile.art-only .sx-top { position: absolute; right: 10px; bottom: 10px; top: auto; }
.sx-tile.art-only .sx-off { top: auto; bottom: 10px; }
.sx-tile.art-only .sx-off.zero { top: 10px; bottom: auto; right: 10px; background: var(--grad); box-shadow: 0 4px 14px rgba(47, 128, 255, .45); }
.spay-form .result-note { margin: 4px 0 0; text-align: center; font-size: 12.5px; line-height: 1.45; color: var(--text-2); }
.spay-page > * { flex: none; }
.sx-glyph { width: 22px; height: 22px; object-fit: contain; display: block; pointer-events: none; }
.sx-glc .sx-glyph { width: 24px; height: 24px; }
.sx-gl:empty { display: none; }
/* no glyphs on the section tiles: the pictures and the captions are enough */
.sx-tile .sx-gl { display: none; }
.sx-off.zero { background: var(--grad); box-shadow: 0 4px 14px rgba(47, 128, 255, .45); }
.spay-saved { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: -2px; }
.spay-saved[hidden] { display: none; }
.spay-saved > span { font-size: 12px; color: var(--muted); }
.spay-chip { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text); font: 600 13px var(--font); }
.spay-chip.on { background: rgba(47, 128, 255, .22); border-color: var(--accent); }
.sx-head .section-title small { color: var(--accent-2); font: 700 12px var(--font); text-transform: uppercase; letter-spacing: 0; vertical-align: super; }   /* the same blue count as next to a section's name */
/* Steam top-up receipt in the orders */
.of.tp { display: grid; gap: 10px; padding: 14px; border-radius: 18px; background: linear-gradient(160deg, rgba(47, 128, 255, .14), rgba(34, 211, 238, .06)); border: 1px solid rgba(120, 170, 255, .28); }
.tp-ok { display: flex; align-items: center; gap: 10px; }
.tp-ok > span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--grad); color: #fff; }
.tp-ok .ico svg { width: 16px; height: 16px; }
.tp-ok b { font: 800 15px var(--font); }
.tp-row { display: grid; gap: 4px; padding: 10px 12px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line-2); }
.tp-row small { font: 700 11px var(--font); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.tp-row > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tp-row b { font: 800 17px var(--font); overflow-wrap: anywhere; }
.of.tp .of-acts { margin-top: 2px; }
/* the "buying now" strip sits close to the sections heading */
.feed { margin-bottom: 8px; }
.feed + .sx-head, .sx-head { margin-top: 4px; }
/* saved logins: the latest as a chip with an arrow that opens the full list */
.spay-saved { display: grid; gap: 8px; }
.spay-saved-head { display: flex; align-items: center; gap: 8px; min-width: 0; }
.spay-saved-head > span { flex: none; font-size: 12px; color: var(--muted); }
.spay-saved-head .spay-chip { min-width: 0; }
.spay-more { flex: none; display: grid; place-items: center; width: 34px; height: 34px; margin-left: auto; border-radius: 50%; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text-2); }
.spay-more .ico svg { width: 15px; height: 15px; transform: rotate(90deg); transition: transform .2s; }
.spay-more.open { border-color: var(--accent); color: var(--accent); }
.spay-more.open .ico svg { transform: rotate(-90deg); }
.spay-list { display: grid; border-radius: 16px; overflow: hidden; border: 1px solid var(--line-2); background: var(--surface-2); }
.spay-li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border: 0; border-top: 1px solid var(--line-2); background: none; color: var(--text); font: 600 14px var(--font); text-align: left; }
.spay-li:first-child { border-top: 0; }
.spay-li.on { background: rgba(47, 128, 255, .16); }
.spay-li .ico svg { width: 16px; height: 16px; color: var(--accent); }
/* test: the active tab pill is the app's own blue (dark theme); the light theme keeps its own */
:root:not([data-theme="light"]) { --tab-on: var(--grad); --tab-on-ink: #fff; --tab-on-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 6px 20px rgba(47, 128, 255, .45); }
/* the arrow of the saved logins: quiet, but visible */
.spay-more { width: 30px; height: 30px; border: 0; background: rgba(255, 255, 255, .07); color: var(--muted); transition: background .2s, color .2s; }
.spay-more .ico svg { width: 14px; height: 14px; stroke-width: 2.2; }
.spay-more:hover, .spay-more.open { background: rgba(255, 255, 255, .12); color: var(--text-2); border: 0; }
[data-theme="light"] .spay-more { background: rgba(15, 30, 70, .07); }
[data-theme="light"] .spay-more:hover, [data-theme="light"] .spay-more.open { background: rgba(15, 30, 70, .12); }

/* ---------- inside a section ---------- */
.lot-grid.in-section .lot-cat { display: none; }
.sx-sub-top { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; }
.sx-sub-top .sx-sortbar { flex: 1; margin: 0; max-width: 260px; }

/* ---------- smoother scrolling on phones ---------- */
html, body { overscroll-behavior-y: contain; }
/* (cards are always painted: skipping the far ones made their pictures flash empty while scrolling) */
.lot-cover:has(.cv-sharp)::before { filter: none; box-shadow: inset 0 0 0 999px rgba(2, 6, 16, .45); }    /* no live blur on every card */
.lot { box-shadow: 0 6px 16px rgba(3, 12, 40, .32); }
.tabbar, .support-fab { will-change: transform; }      /* (no transform here: the bar is centred with its own translateX) */


/* ---------- pull down to reload ---------- */
.ptr { position: fixed; left: 50%; top: calc(env(safe-area-inset-top, 0px) + 74px); z-index: 85; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--line-2); color: var(--text-2); box-shadow: 0 8px 24px rgba(0, 0, 0, .4); transform: translate(-50%, -60px); opacity: 0; pointer-events: none; }
.ptr .ico svg { width: 20px; height: 20px; }
.ptr.ready { background: var(--grad); color: #fff; border-color: transparent; }
.ptr.spin .ico svg { animation: ptrSpin .7s linear infinite; }
@keyframes ptrSpin { to { transform: rotate(360deg); } }
.sx-tile.one-line b { white-space: nowrap; text-wrap: nowrap; font-size: 13px; letter-spacing: -.01em; }   /* the top-up name fits in a single line */

/* ---------- selection frame (variant 1): a solid blue frame with a soft glow, the same everywhere something is picked ---------- */
:root { --sel-border: #2f80ff; --sel-glow: 0 0 0 1px #2f80ff, 0 0 24px rgba(47, 128, 255, .6); }
.lot { border: 1px solid rgba(120, 170, 255, .25); }
.lot::after { display: none; }                         /* the older gradient edge is replaced */
.lot:hover, .lot:focus-visible, .lot:active, .lot.on,
.sx-tile:hover, .sx-tile:focus-visible, .sx-tile:active,
.method.active, .spay-chip.on, .spay-li.on, .coll.on { border-color: var(--sel-border); box-shadow: var(--sel-glow); outline: none; }
.lot:hover, .lot:focus-visible, .lot:active, .lot.on { border-width: 2px; }
.method.active, .spay-chip.on { border-width: 2px; }
.lot.out.on { filter: opacity(.9); }
[data-theme="light"] .lot:hover, [data-theme="light"] .lot.on, [data-theme="light"] .sx-tile:hover { box-shadow: 0 0 0 1px #2f80ff, 0 0 20px rgba(47, 128, 255, .4); }
.lot-title { -webkit-line-clamp: 3; line-clamp: 3; }   /* "Minecraft Java&Bedrock Global" shows in full */
/* the ready-made amounts: one row of equal buttons, whatever the number of them */
.presets.even { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 8px; justify-content: stretch; }
.presets.even .preset { min-width: 0; padding: 12px 2px; text-align: center; white-space: nowrap; font-size: 13.5px; letter-spacing: -.01em; }
.presets.even.spay-presets { justify-content: stretch; }

/* support button: no caption, a lively hover (lift, glow, a ring that spreads, the handset icon shakes) */
.support-tip { display: none !important; }
.support-fab { transition: transform .22s cubic-bezier(.3, .9, .35, 1.3), background .2s, box-shadow .22s, opacity .2s; }
.support-fab::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(56, 189, 248, .75); opacity: 0; pointer-events: none; }
@media (hover: hover) {
  .support-fab:hover { opacity: 1; background: rgba(37, 99, 235, .95); transform: translateY(-3px) scale(1.12); box-shadow: 0 0 0 4px rgba(56, 189, 248, .2), 0 10px 26px rgba(37, 99, 235, .55); }
  .support-fab:hover .ico svg { animation: fabShake .7s ease-in-out; }
  .support-fab:hover::after { animation: fabRing 1.1s ease-out infinite; }
}
.support-fab:active .ico svg { animation: fabShake .5s ease-in-out; }
@keyframes fabShake { 0%, 100% { transform: rotate(0); } 18% { transform: rotate(-16deg); } 36% { transform: rotate(14deg); } 54% { transform: rotate(-10deg); } 72% { transform: rotate(6deg); } }
@keyframes fabRing { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.9); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .support-fab:hover .ico svg, .support-fab:hover::after { animation: none; } }
.no-motion .support-fab:hover .ico svg, .no-motion .support-fab:hover::after { animation: none; }

/* Bybit: UID linking and transfer instructions inside the sheet */
.bybit { display: grid; gap: 0; }
.bybit h3 { margin-bottom: 4px; }
.bybit p { margin: 6px 0 10px; line-height: 1.45; }
.bb-row { display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 8px; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line-2); text-align: left; color: var(--text); }
.bb-k { flex: none; color: var(--muted); font-size: 12.5px; }
.bb-v { margin-left: auto; min-width: 0; font-size: 16px; font-variant-numeric: tabular-nums; word-break: break-all; text-align: right; }
.bb-row .ico { flex: none; color: var(--accent-2); }
.bb-row .ico svg { width: 18px; height: 18px; }
.bb-input { width: 100%; box-sizing: border-box; height: 52px; padding: 0 16px; border-radius: 16px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text); font: 600 17px var(--font); letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.bb-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(47, 128, 255, .22); }
.bb-input::placeholder { color: var(--muted); font-weight: 500; letter-spacing: 0; }
.bb-wait { display: flex; align-items: center; justify-content: center; gap: 9px; margin: 14px 0 2px; color: var(--muted); font-size: 13.5px; }
.bb-wait em { font-style: normal; font-variant-numeric: tabular-nums; color: var(--text); }
.bb-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); animation: bbPulse 1.4s ease-in-out infinite; }
@keyframes bbPulse { 50% { opacity: .25; transform: scale(.7); } }
@media (prefers-reduced-motion: reduce) { .bb-dot { animation: none; } }
.bb-rate { margin-top: 10px; text-align: center; color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }
/* the sort dropdown opens over the cards below it (the cards are animated, so they form their own layers) */
.sx-sub-top { position: relative; z-index: 40; }
/* with the system setting 'reduce motion' every animation got 0.01ms, so an endless spinner flickered about a hundred times a second: loaders keep an unhurried speed */
@media (prefers-reduced-motion: reduce) { .spay-spin { animation-duration: 2.4s !important; } .skeleton { animation-duration: 1.8s !important; } }

/* round flag avatar for Steam top-ups in the live feed */
.feed-flag { display: block; overflow: hidden; box-shadow: 0 0 0 1px rgba(255, 255, 255, .22); }
.feed-flag svg { width: 100%; height: 100%; display: block; }

/* game rentals (KOSell) */
.rent-promo { margin: 2px 0 14px; }
.rent-hint { color: var(--muted); font-size: 13px; margin: 6px 0 0; }
.rent-sheet h3 { margin: 0 0 4px; font: 800 20px var(--font); }
.rent-code { font-family: var(--display); font-size: 36px; font-weight: 800; letter-spacing: .08em; text-align: center; padding: 18px; margin-top: 10px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); }
.rent-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 10px; }
.rent-actions .btn-ghost { margin-top: 0; height: 42px; font-size: 12.5px; gap: 5px; padding: 0 4px; }
.rent-actions .btn-ghost .ico svg { width: 15px; height: 15px; }
.btn-main.danger { background: linear-gradient(135deg, #ef4444, #b91c1c); box-shadow: 0 14px 38px rgba(220, 38, 38, .35); }
.btn-ghost.danger { color: #ef4444; border-color: rgba(239, 68, 68, .35); }

.rent-tile { display: block; width: 100%; min-height: 132px; margin: 2px 0 14px; }

/* game rentals: "2,02 ₽/ч" is longer than a shop price, so the button is a compact arrow that always fits the card */
.rent-lot .lot-row { min-width: 0; }
.rent-lot .price { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.rent-lot .price small { margin-left: 1px; font-size: .72em; font-weight: 600; opacity: .8; }
.btn-buy.btn-go { flex: none; display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border-radius: 11px; }
.btn-buy.btn-go .ico svg { width: 18px; height: 18px; stroke-width: 2.4; }

/* rental stock bars: 3 green = plenty, 2 yellow = some, 1 red = the last account; dim bars keep the scale readable */
.seats { display: flex; align-items: center; gap: 3px; }
.seats i { width: 12px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .16); }
.seats span { margin-left: 5px; font: 700 10.5px var(--font); white-space: nowrap; }
.seats.high i.on { background: #22c55e; box-shadow: 0 0 8px rgba(34, 197, 94, .8); }
.seats.high span { color: #6ee7a0; }
.seats.mid i.on { background: #facc15; box-shadow: 0 0 8px rgba(250, 204, 21, .75); }
.seats.mid span { color: #fde68a; }
.seats.low i.on { background: #f43f5e; box-shadow: 0 0 8px rgba(244, 63, 94, .8); }
.seats.low span { color: #fda4af; }
/* a busy rental game: the poster dims, when it frees up sits in the middle */
.rent-busy .lot-cover { filter: saturate(.55) brightness(.7); }
.rent-busy .price { opacity: .6; }
.rent-veil { position: absolute; inset: 0; z-index: 1; display: grid; place-content: center; justify-items: center; gap: 2px; padding: 0 8px 46px; text-align: center; background: rgba(3, 7, 16, .45); pointer-events: none; }
.rent-veil span { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: rgba(232, 239, 255, .7); }
.rent-veil b { font: 800 20px var(--display); color: #fff; }
.rent-veil small { font-size: 11.5px; color: #b6c3dd; }
.rent-busy .lot-body { z-index: 2; }

/* Steam top-up: pay from the shop balance, the rest by invoice */
.spay-bal { padding: 10px 12px; border-radius: 14px; background: var(--field); border: 1px solid var(--line); }
.spay-bal-t { display: grid; gap: 1px; }
.spay-bal-t b { font-size: 14px; }
.spay-bal-t small { font-size: 12px; font-weight: 500; color: var(--muted); }
.spay-split { display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
.spay-split > div { display: flex; justify-content: space-between; gap: 10px; }
.spay-split b { color: var(--text); font-variant-numeric: tabular-nums; }
.spay-note.error { color: #fda4af; }

/* rental checkout (the chosen "poster + savings" sheet): poster, stock, hours/days rows with discounts, savings meter, total */
.rs2 { display: grid; gap: 14px; }
.rs2-head { display: grid; grid-template-columns: 62px 1fr; gap: 12px; align-items: center; }
.rs2-thumb { width: 62px; aspect-ratio: 2 / 3; border-radius: 10px; background-size: cover; background-position: center; background-color: #0a1224; box-shadow: 0 8px 20px rgba(0, 0, 0, .45); }
.rs2-head > div { display: grid; gap: 6px; min-width: 0; }
.rs2-title { font: 700 17px/1.25 var(--display); }
.rs2-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 12.5px; color: var(--muted); }
.rs2-label { font-size: 12.5px; color: var(--muted); margin-bottom: -4px; }
.rs2-rows { display: grid; gap: 9px; }
.rs2-row { display: grid; grid-template-columns: 44px 1fr; gap: 8px; align-items: center; }
.rs2-row > span { font: 700 11px var(--font); color: var(--faint); text-transform: uppercase; letter-spacing: .06em; }
.rs2-set { display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 7px; }
.rs2-chip { position: relative; display: grid; justify-items: center; align-content: center; gap: 1px; min-height: 52px; padding: 7px 2px; border-radius: 13px; border: 1px solid var(--line-2); background: var(--surface-2);
  transition: transform .26s cubic-bezier(.34, 1.56, .64, 1), background .25s, border-color .25s, box-shadow .25s; -webkit-tap-highlight-color: transparent; }
.rs2-chip b { font: 700 14px var(--display); }
.rs2-chip small { font: 700 10px var(--font); color: #4ade80; min-height: 1.3em; }
.rs2-chip.on { background: var(--grad); border-color: transparent; color: var(--on-grad); box-shadow: 0 6px 18px rgba(37, 99, 235, .4); }
.rs2-chip.on small { color: #d1fae5; }
.rs2-chip:active { transform: scale(.94); transition-duration: .08s; }
.rs2-chip.pop { animation: rs2Pop .44s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes rs2Pop { 0% { transform: scale(.94); } 55% { transform: scale(1.04); } 100% { transform: scale(1); } }
.rs2-ribbon { position: absolute; top: -8px; left: 50%; transform: translateX(-50%); padding: 1px 7px; border-radius: 999px; white-space: nowrap; font: 800 9px var(--font); color: #2a1a00; background: #fbbf24; box-shadow: 0 2px 8px rgba(251, 191, 36, .5); }
.rs2-meter { display: grid; gap: 6px; }
.rs2-bar { position: relative; height: 10px; border-radius: 5px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.rs2-fill { position: absolute; inset: 0 auto 0 0; border-radius: inherit; background: linear-gradient(90deg, #16a34a, #4ade80, #a3e635); box-shadow: 0 0 14px rgba(74, 222, 128, .6); transition: width .7s cubic-bezier(.22, 1, .36, 1); }
.rs2-fill::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .35), transparent) no-repeat; background-size: 60px 100%; animation: rs2Sheen 2.4s ease-in-out infinite; }
@keyframes rs2Sheen { from { background-position: -60px 0; } to { background-position: calc(100% + 60px) 0; } }
.rs2-ticks { display: flex; justify-content: space-between; font: 700 10px var(--font); color: var(--faint); }
.rs2-hint { font-size: 12px; color: var(--muted); }
.rs2-hint b { color: #4ade80; }
.rs2-sum { display: flex; justify-content: space-between; align-items: end; gap: 10px; padding: 12px 14px; border-radius: 16px; background: var(--surface-2); }
.rs2-sum > div { display: grid; gap: 2px; font-size: 12.5px; color: var(--muted); }
.rs2-sum s { color: var(--faint); }
.rs2-sum > b { display: inline-block; font: 800 22px var(--display); font-variant-numeric: tabular-nums; }
.rs2-off { display: inline-block; padding: 2px 7px; border-radius: 999px; font: 800 11px var(--font); color: #4ade80; background: rgba(34, 197, 94, .14); }
.rs2 .tick { animation: rs2Tick .32s cubic-bezier(.22, 1, .36, 1); }
@keyframes rs2Tick { from { opacity: .35; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.rs2-btn { transition: transform .28s cubic-bezier(.34, 1.56, .64, 1), filter .2s; }
.rs2-btn:active:not(:disabled) { transform: scale(.97); filter: brightness(.94); transition-duration: .08s; }
.rs2-skel { display: grid; gap: 9px; }
.rs2-skel .skeleton { height: 52px; border-radius: 13px; }
/* the rental sheet's motion is switched off by the app's own setting (.no-motion), like the rest of the app */

/* press feedback for every tappable control: it sinks a little under the finger and springs back when released.
   The independent "scale" property is used, so controls already placed with "transform" keep their position. */
.is-pressed { scale: .965; transition: scale .08s ease-out; }
.springs { animation: pressSpring .42s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes pressSpring { 0% { scale: .965; } 55% { scale: 1.015; } 100% { scale: 1; } }
.no-motion .is-pressed { scale: 1; }

/* pressKeep: the OS "reduce motion" flag (on whenever Windows animation effects are off) cuts every animation to .01ms above;
   these small ones are the feedback itself, so they keep their timing, like the tab bar does. The app's own "Анимации" switch
   (.no-motion) still turns them off: the selectors only match without it. */
@media (prefers-reduced-motion: reduce) {
  :root:not(.no-motion) .rs2-chip { transition-duration: .26s, .25s, .25s, .25s !important; }
  :root:not(.no-motion) .rs2-chip:active, :root:not(.no-motion) .is-pressed { transition-duration: .08s !important; }
  :root:not(.no-motion) .rs2-btn { transition-duration: .28s, .2s !important; }
  :root:not(.no-motion) .rs2-fill { transition-duration: .7s !important; }
  :root:not(.no-motion) .rs2-fill::after { animation-duration: 2.4s !important; }
  :root:not(.no-motion) .rs2-chip.pop { animation-duration: .44s !important; }
  :root:not(.no-motion) .rs2 .tick { animation-duration: .32s !important; }
  :root:not(.no-motion) .springs { animation-duration: .42s !important; }
}

/* rental ready ("capsule" screen): live status, the time-left capsule, copy cards, Steam Guard, extend / got it */
.rd { display: grid; gap: 12px; }
.rd-live { justify-self: center; display: inline-flex; align-items: center; gap: 7px; font: 700 12px var(--font); color: #4ade80; text-align: center; }
.rd-live.warn { color: #fbbf24; }
.rd-live.late { color: #fb7185; }
.rd-live i { position: relative; flex: none; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.rd-live i::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: rdPing 1.8s cubic-bezier(0, 0, .2, 1) infinite; }
@keyframes rdPing { 0% { transform: scale(1); opacity: .7; } 80%, 100% { transform: scale(2.8); opacity: 0; } }
.rd-capsule { --c1: rgba(37, 99, 235, .55); --c2: rgba(56, 189, 248, .3); --digits: #fff;
  position: relative; display: grid; grid-template-columns: 50px 1fr auto; gap: 12px; align-items: center; padding: 9px 18px 9px 9px; border-radius: 999px; overflow: hidden;
  background: #081123; border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 14px 34px rgba(0, 0, 0, .4), inset 0 1px 0 rgba(255, 255, 255, .06); color: #fff; }
.rd-capsule.warn { --c1: rgba(217, 119, 6, .5); --c2: rgba(251, 191, 36, .28); --digits: #fde68a; }
.rd-capsule.late { --c1: rgba(225, 29, 72, .5); --c2: rgba(251, 113, 133, .28); --digits: #fecdd3; animation: rdLate 1.6s ease-in-out infinite; }
@keyframes rdLate { 50% { box-shadow: 0 14px 34px rgba(0, 0, 0, .4), 0 0 0 4px rgba(251, 113, 133, .25); } }
.rd-fill { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, var(--c1), var(--c2)); transition: width 1s linear, background .8s;
  -webkit-mask: linear-gradient(90deg, #000 calc(100% - 28px), transparent); mask: linear-gradient(90deg, #000 calc(100% - 28px), transparent); }
.rd-capsule > :not(.rd-fill) { position: relative; }
.rd-icon { width: 50px; height: 50px; border-radius: 50%; background-size: cover; background-position: center 25%; background-color: #0a1224; box-shadow: 0 0 0 2px rgba(255, 255, 255, .22); }
.rd-mid { display: grid; gap: 1px; min-width: 0; }
.rd-mid b { font: 700 15px var(--display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rd-mid span { font-size: 11.5px; color: rgba(255, 255, 255, .72); }
.rd-time { display: grid; justify-items: end; line-height: 1.1; }
.rd-time small { font: 700 9.5px var(--font); color: rgba(255, 255, 255, .6); text-transform: uppercase; letter-spacing: .1em; }
.rd-time b { font: 800 24px ui-monospace, "SFMono-Regular", Consolas, monospace; color: var(--digits); font-variant-numeric: tabular-nums; transition: color .8s; }
.rd-span { display: flex; align-items: center; gap: 8px; padding: 0 10px; font: 700 11px var(--font); color: var(--muted); font-variant-numeric: tabular-nums; }
.rd-dots { flex: 1; border-top: 1px dashed var(--line-2, rgba(130, 170, 255, .26)); }
.rd-creds { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rd-cred { position: relative; display: grid; gap: 4px; padding: 11px 12px; border-radius: 15px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; text-align: left; transition: border-color .3s, background .3s; }
.rd-top { display: flex; justify-content: space-between; align-items: center; gap: 6px; font-size: 11.5px; color: var(--muted); }
.rd-val { font: 700 15px ui-monospace, "SFMono-Regular", Consolas, monospace; letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: opacity .3s; }
.rd-ic { position: relative; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 8px; background: var(--surface-2); color: var(--accent-2, #38bdf8); transition: background .3s, color .3s; }
.rd-ic .ico { position: absolute; transition: opacity .2s, transform .35s cubic-bezier(.34, 1.56, .64, 1); }
.rd-ic .ico svg { width: 15px; height: 15px; }
.rd-ic .ico:last-child { opacity: 0; transform: scale(.4) rotate(-30deg); }
.rd-note { position: absolute; left: 12px; bottom: -22px; font: 700 11px var(--font); color: #4ade80; transition: bottom .3s cubic-bezier(.22, 1, .36, 1); }
.rd-cred.rd-done { border-color: rgba(74, 222, 128, .55); background: rgba(34, 197, 94, .08); }
.rd-cred.rd-done .rd-ic { background: rgba(34, 197, 94, .2); color: #4ade80; }
.rd-cred.rd-done .rd-ic .ico:first-child { opacity: 0; transform: scale(.4) rotate(30deg); }
.rd-cred.rd-done .rd-ic .ico:last-child { opacity: 1; transform: none; }
.rd-cred.rd-done .rd-note { bottom: 6px; }
.rd-cred.rd-done .rd-val { opacity: .3; }
.rd-peek { position: absolute; right: 44px; top: 8px; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 8px; color: var(--muted); }
.rd-peek svg { width: 16px; height: 16px; }
.rd-peek.rd-on { color: var(--accent-2, #38bdf8); }
.rd-both { display: flex; justify-content: center; align-items: center; gap: 8px; padding: 10px; border-radius: 13px; border: 1px dashed var(--line-2, rgba(130, 170, 255, .26)); font: 700 13px var(--font); color: var(--accent-2, #38bdf8); transition: background .3s, color .3s, border-color .3s; }
.rd-both .ico svg { width: 16px; height: 16px; }
.rd-both.rd-done { color: #4ade80; border-color: rgba(74, 222, 128, .5); background: rgba(34, 197, 94, .08); border-style: solid; }
.rd-guard { display: grid; gap: 10px; padding: 12px; border-radius: 16px; background: linear-gradient(135deg, rgba(37, 99, 235, .16), rgba(14, 165, 233, .06)); border: 1px solid rgba(56, 189, 248, .3); }
.rd-gtop { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.rd-gtop b { font: 700 14px var(--display); }
.rd-muted { font-size: 12px; color: var(--muted); }
.rd-gbtn { display: flex; justify-content: center; align-items: center; gap: 8px; padding: 12px; border-radius: 13px; background: var(--grad); color: var(--on-grad, #fff); font: 700 14px var(--font); box-shadow: 0 8px 20px rgba(37, 99, 235, .3); }
.rd-gbtn.soft { background: var(--surface-2); border: 1px solid var(--line); box-shadow: none; color: var(--text); }
.rd-gbtn .ico svg { width: 16px; height: 16px; }
.rd-cells { display: flex; gap: 6px; justify-content: center; }
.rd-cells span { width: 42px; height: 48px; display: grid; place-items: center; border-radius: 11px; background: var(--bg); border: 1px solid var(--line); font: 800 22px ui-monospace, Consolas, monospace; animation: rdCell .35s cubic-bezier(.34, 1.56, .64, 1) both; }
.rd-cells span:nth-child(2) { animation-delay: .05s; } .rd-cells span:nth-child(3) { animation-delay: .1s; } .rd-cells span:nth-child(4) { animation-delay: .15s; } .rd-cells span:nth-child(5) { animation-delay: .2s; }
@keyframes rdCell { from { opacity: 0; transform: translateY(8px) scale(.9); } to { opacity: 1; transform: none; } }
.rd-codebar { height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.rd-codebar div { height: 100%; background: var(--accent-2, #38bdf8); transition: width 1s linear; }
.rd-cd { font: 800 12px var(--font); color: var(--accent-2, #38bdf8); font-variant-numeric: tabular-nums; }
.rd-spin { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, .25); border-top-color: #fff; animation: rdSpin .7s linear infinite; }
@keyframes rdSpin { to { transform: rotate(360deg); } }
.rd-acts { display: grid; grid-template-columns: 1fr 1.6fr; gap: 8px; }
.rd-ext { display: flex; justify-content: center; align-items: center; gap: 6px; border-radius: 16px; padding: 14px 10px; font: 700 14px var(--font); background: var(--surface-2); border: 1px solid var(--line); transition: background .4s, border-color .4s, color .4s; }
.rd-ext .ico svg { width: 16px; height: 16px; }
.rd-acts.warn .rd-ext { background: rgba(251, 191, 36, .12); border-color: rgba(251, 191, 36, .45); color: #fde68a; }
.rd-acts.late .rd-ext { background: rgba(251, 113, 133, .14); border-color: rgba(251, 113, 133, .5); color: #fecdd3; }
.rd-ok { border-radius: 16px; padding: 14px; font: 700 15px var(--font); color: var(--on-grad, #fff); background: var(--grad); box-shadow: 0 10px 28px rgba(37, 99, 235, .4); text-align: center; }
/* like the other feedback animations: kept when the OS asks to reduce motion, off with the app's own switch */
@media (prefers-reduced-motion: reduce) {
  :root:not(.no-motion) .rd-cells span { animation-duration: .35s !important; }
  :root:not(.no-motion) .rd-cred, :root:not(.no-motion) .rd-both, :root:not(.no-motion) .rd-ext { transition-duration: .3s !important; }
  :root:not(.no-motion) .rd-ic .ico { transition-duration: .2s, .35s !important; }
  :root:not(.no-motion) .rd-note { transition-duration: .3s !important; }
  :root:not(.no-motion) .rd-fill, :root:not(.no-motion) .rd-codebar div { transition-duration: 1s !important; }
  :root:not(.no-motion) .rd-live i::after { animation-duration: 1.8s !important; }
  :root:not(.no-motion) .rd-spin { animation-duration: .7s !important; }
}

/* extend a rental: the capsule grows (blue = left now, green stripes = what is added), seven chips in one row */
.rx { display: grid; gap: 12px; }
.rx-head { justify-self: center; font-size: 13px; color: var(--muted); }
.rx-capsule { position: relative; display: grid; grid-template-columns: 46px 1fr auto; gap: 12px; align-items: center; padding: 8px 16px 8px 8px; border-radius: 999px; overflow: hidden; background: #081123; border: 1px solid rgba(255, 255, 255, .12); color: #fff; }
.rx-now, .rx-add { position: absolute; top: 0; bottom: 0; }
.rx-now { left: 0; background: linear-gradient(90deg, rgba(37, 99, 235, .55), rgba(56, 189, 248, .32)); }
.rx-add { background: repeating-linear-gradient(135deg, rgba(74, 222, 128, .35) 0 6px, rgba(74, 222, 128, .2) 6px 12px); transition: width .6s cubic-bezier(.22, 1, .36, 1);
  -webkit-mask: linear-gradient(90deg, #000 calc(100% - 22px), transparent); mask: linear-gradient(90deg, #000 calc(100% - 22px), transparent); }
.rx-capsule > .rx-icon, .rx-capsule > .rx-mid, .rx-capsule > .rx-tm { position: relative; }
.rx-icon { width: 46px; height: 46px; border-radius: 50%; background-size: cover; background-position: center 25%; background-color: #0a1224; box-shadow: 0 0 0 2px rgba(255, 255, 255, .22); }
.rx-mid { display: grid; gap: 1px; min-width: 0; }
.rx-mid b { font: 700 14px var(--display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rx-mid span { font-size: 11px; color: rgba(255, 255, 255, .75); font-variant-numeric: tabular-nums; }
.rx-tm { display: grid; justify-items: end; line-height: 1.1; }
.rx-tm small { font: 700 9.5px var(--font); color: rgba(255, 255, 255, .6); text-transform: uppercase; letter-spacing: .1em; }
.rx-tm b { font: 800 20px ui-monospace, "SFMono-Regular", Consolas, monospace; font-variant-numeric: tabular-nums; }
.rx-tm em { font: 800 11px var(--font); font-style: normal; color: #4ade80; }
.rx-set { display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 5px; }
.rx .rs2-chip { min-height: 46px; border-radius: 11px; }
.rx .rs2-chip b { font-size: 12.5px; }
.rx .rs2-chip small { font-size: 9px; }
.rx-line { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 0 4px; font-size: 12px; color: var(--muted); }
.rx-line b { color: var(--text); font-variant-numeric: tabular-nums; }
.rx-line s { color: var(--faint); }
.rx-line .rx-short { color: #fb7185; }
.rx-btn { flex-direction: column; gap: 0; margin-top: 0; }
.rx-btn small { font: 600 11.5px var(--font); opacity: .85; }
@media (prefers-reduced-motion: reduce) { :root:not(.no-motion) .rx-add { transition-duration: .6s !important; } }

/* rentals in Orders (regular order card): the "Аренда" row with the time left, a mini capsule, copy cards, Steam Guard row */
.rq-acc { display: grid; }
.rq-toggle .rq-pill { flex: none; padding: 3px 10px; border-radius: 999px; background: rgba(56, 189, 248, .14); color: #bae6fd; font: 800 12.5px ui-monospace, "SFMono-Regular", Consolas, monospace; font-variant-numeric: tabular-nums; }
.rq-warn .rq-toggle .rq-pill { background: rgba(251, 191, 36, .16); color: #fde68a; }
.rq-warn .rq-toggle > .ico:first-child { color: #fbbf24; }
.rq-thin { height: 3px; margin: -3px 14px 0; border-radius: 2px; background: rgba(255, 255, 255, .06); overflow: hidden; }
.rq-thin div { height: 100%; background: linear-gradient(90deg, #2563eb, #38bdf8); transition: width 1s linear; }
.rq-warn .rq-thin div { background: linear-gradient(90deg, #d97706, #fbbf24); }
.rq-frame { display: grid; gap: 10px; }
.rq-cap { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 999px; overflow: hidden; background: #081123; border: 1px solid rgba(255, 255, 255, .12); color: #fff; }
.rq-fill { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, rgba(37, 99, 235, .55), rgba(56, 189, 248, .3)); transition: width 1s linear;
  -webkit-mask: linear-gradient(90deg, #000 calc(100% - 22px), transparent); mask: linear-gradient(90deg, #000 calc(100% - 22px), transparent); }
.rq-warn .rq-fill { background: linear-gradient(90deg, rgba(217, 119, 6, .5), rgba(251, 191, 36, .28)); }
.rq-cap > span, .rq-cap > b { position: relative; }
.rq-cap > span { font: 600 12px var(--font); color: rgba(255, 255, 255, .82); }
.rq-cap > b { font: 800 21px ui-monospace, "SFMono-Regular", Consolas, monospace; font-variant-numeric: tabular-nums; }
.rq-guard { display: grid; gap: 8px; padding: 10px 11px; border-radius: 14px; background: linear-gradient(135deg, rgba(37, 99, 235, .16), rgba(14, 165, 233, .05)); border: 1px solid rgba(56, 189, 248, .28); }
.rq-gh { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.rq-gl { display: flex; align-items: center; gap: 8px; font: 700 13px var(--font); }
.rq-gl .ico { color: var(--accent-2, #38bdf8); }
.rq-gl .ico svg { width: 16px; height: 16px; }
.rq-get { padding: 7px 12px; border-radius: 10px; background: var(--grad); color: var(--on-grad, #fff); font: 700 12px var(--font); white-space: nowrap; }
.rq-get.soft { background: var(--surface-2); color: var(--text); border: 1px solid var(--line); }
.rq-extend { display: flex; justify-content: center; align-items: center; gap: 8px; padding: 13px; border-radius: 14px; background: var(--grad); color: var(--on-grad, #fff); font: 700 14px var(--font); box-shadow: 0 8px 22px rgba(37, 99, 235, .35); }
.rq-extend .ico svg { width: 16px; height: 16px; }
.rq-warn .rq-extend { background: linear-gradient(135deg, #d97706, #f59e0b); box-shadow: 0 8px 22px rgba(217, 119, 6, .35); color: #1f1300; }
.rq-quiet { justify-self: center; display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px; font: 600 12px var(--font); color: var(--muted); }
.rq-quiet .ico svg { width: 14px; height: 14px; }
.rq-facts { display: grid; gap: 5px; padding: 2px 4px; font-size: 12.5px; color: var(--muted); }
.rq-facts div { display: flex; justify-content: space-between; gap: 8px; }
.rq-facts b { color: var(--text); font-weight: 700; }
.rq-ended .oc2-art { filter: saturate(.55); }
.oc2-ok.warn { background: rgba(251, 191, 36, .22); color: #fde68a; }
/* rq-fix: the time pill keeps its own width (the generic toggle stretches its text spans); a price never wraps */
.of-toggle.rq-toggle > .rq-pill { flex: none; }
.oc2-in em { white-space: nowrap; }

/* support: quick answers (no AI) shown as a bot bubble with "helped" / "write to people" */
.sp-auto { display: grid; gap: 8px; max-width: 92%; border: 1px solid rgba(56, 189, 248, .3); background: linear-gradient(135deg, rgba(37, 99, 235, .16), rgba(14, 165, 233, .05)); animation: spAuto .35s cubic-bezier(.22, 1, .36, 1) both; }
@keyframes spAuto { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.sp-tag { display: inline-flex; align-items: center; gap: 5px; font: 800 10.5px var(--font); color: var(--accent-2, #38bdf8); text-transform: uppercase; letter-spacing: .06em; }
.sp-tag .ico svg { width: 13px; height: 13px; }
.sp-auto-acts { display: flex; flex-wrap: wrap; gap: 6px; }
.sp-auto-acts button { display: inline-flex; align-items: center; gap: 5px; padding: 7px 11px; border-radius: 10px; font: 700 12px var(--font); }
.sp-auto-acts .ico svg { width: 14px; height: 14px; }
.sp-auto-go { background: var(--grad); color: var(--on-grad, #fff); }
.sp-auto-ok { background: rgba(34, 197, 94, .16); color: #4ade80; }
.sp-auto-more { background: var(--surface-2); color: var(--text); border: 1px solid var(--line); }
.sp-auto-done { display: inline-flex; align-items: center; gap: 5px; font: 700 12px var(--font); color: #4ade80; }
.sp-auto-done .ico svg { width: 14px; height: 14px; }

/* admin reply templates in a ticket */
.rt-bar { display: flex; justify-content: flex-start; padding: 6px 12px 0; }
.rt-open { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line-2); font: 700 12.5px var(--font); color: var(--accent-2, #38bdf8); }
.rt-open .ico svg { width: 14px; height: 14px; }
.rt-sheet { display: grid; gap: 10px; }
.rt-seg { justify-self: start; }
.rt-search { width: 100%; height: 42px; padding: 0 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); color: var(--text); font: 500 14px var(--font); }
.rt-list { display: grid; gap: 8px; max-height: 56vh; overflow: auto; }
.rt-item { display: grid; gap: 4px; padding: 11px 12px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); text-align: left; }
.rt-item b { font: 700 13.5px var(--font); }
.rt-item span { font-size: 12.5px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-line; }

/* support: a question answered by a quick answer, remembered on the device and never sent */
.sp-local { opacity: .78; }
.sp-local small { font-style: italic; }

/* quick answers keep their paragraphs */
.sp-auto .sp-text { white-space: pre-line; }

.rs2-busy { color: #fbbf24; font-weight: 700; }

/* site layout: posters fanned on the right of a wide tile, the caption side fades into the tile colour */
.pfan { position: absolute; inset: 0; display: flex; justify-content: flex-end; align-items: center; padding-right: 3%; overflow: hidden; }
.pfan i { flex: none; height: 82%; aspect-ratio: 2 / 3; margin-left: -2.5%; border-radius: 10px; background-size: cover; background-position: center; background-color: #0a1224;
  box-shadow: -10px 12px 26px rgba(0, 0, 0, .5); outline: 1px solid rgba(255, 255, 255, .12); transform: rotate(calc((var(--k) - 2) * 2.5deg)) translateY(calc((var(--k) - 2) * 2%)); }
.pfan::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 24, 58, .96) 0%, rgba(10, 24, 58, .75) 32%, rgba(10, 24, 58, 0) 62%); }
.rent-tile .pfan i { height: 86%; }
/* "buying now" reaches the edges of the column, with a narrower fade */
@media (min-width: 900px) {
  .feed-strip { margin-inline: -28px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 2.5%, #000 97.5%, transparent); mask-image: linear-gradient(90deg, transparent, #000 2.5%, #000 97.5%, transparent); }
}
/* big monitors: a wider page */
@media (min-width: 1560px) {
  .view { max-width: 1440px; }
  .rent-tile { min-height: 168px; }
}

/* the poster "shelf" on the rental banner and the accounts tile */
.pshelf { position: absolute; inset: 0; overflow: hidden; background: radial-gradient(120% 140% at 85% 30%, #1d4fb3 0%, #12306f 45%, #0b1d48 100%); }
.ps-glow { position: absolute; right: -4%; top: -10%; bottom: -10%; width: 70%; display: flex; filter: blur(34px) saturate(1.6); opacity: .55; }
.ps-glow i { flex: 1; background-size: cover; background-position: center; }
.ps-shelf { position: absolute; right: 18px; top: 14px; bottom: 24px; z-index: 2; display: flex; gap: 8px; perspective: 800px;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s cubic-bezier(.22, 1, .36, 1); }
@media (max-width: 899px) { .ps-shelf { right: 12px; gap: 6px; animation: psSway 7s ease-in-out infinite; } }
@keyframes psSway { 0%, 100% { transform: rotateY(-3deg); } 50% { transform: rotateY(3deg) translateY(-2px); } }
.ps-card { position: relative; height: 100%; aspect-ratio: 2 / 3; border-radius: 9px; transform-origin: right center; transform: rotateY(-24deg); box-shadow: -10px 12px 24px rgba(0, 0, 0, .55); }
.ps-face { position: absolute; inset: 0; border-radius: inherit; background-size: cover; background-position: center; background-color: #0a1224; outline: 1px solid rgba(255, 255, 255, .14); overflow: hidden; }
.ps-face::after { content: ""; position: absolute; inset: -20% -60%; background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, .38) 50%, transparent 60%);
  transform: translateX(-70%); animation: psSheen 6s ease-in-out infinite; animation-delay: calc(var(--k) * .12s + 1.4s); }
@keyframes psSheen { 0%, 70% { transform: translateX(-70%); } 85%, 100% { transform: translateX(70%); } }
.ps-refl { position: absolute; left: 0; right: 0; top: 100%; height: 34%; margin-top: 4px; border-radius: 9px; background-size: cover; background-position: center bottom; transform: scaleY(-1);
  opacity: .28; -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, .9), transparent 70%); mask-image: linear-gradient(to top, rgba(0, 0, 0, .9), transparent 70%); filter: blur(1px); }
.ps-board { position: absolute; z-index: 1; right: 8px; bottom: 14px; width: 66%; height: 6px; border-radius: 4px;
  background: linear-gradient(90deg, transparent, rgba(125, 211, 252, .25) 30%, rgba(186, 230, 253, .55) 80%, rgba(125, 211, 252, .3)); box-shadow: 0 0 18px rgba(56, 189, 248, .45); }
.ps-fade { position: absolute; inset: 0; z-index: 3; pointer-events: none; background: linear-gradient(90deg, rgba(10, 26, 66, .97) 0%, rgba(10, 26, 66, .82) 28%, rgba(10, 26, 66, 0) 56%); }
.ps-enter .ps-card { animation: psIn .8s cubic-bezier(.22, 1, .36, 1) both; animation-delay: calc(var(--k) * 90ms); }
@keyframes psIn { from { opacity: 0; transform: translateX(80px) rotateY(-70deg); } to { opacity: 1; transform: rotateY(-24deg); } }
.ps-enter .ps-board { animation: psBoard .9s cubic-bezier(.22, 1, .36, 1) both; }
@keyframes psBoard { from { transform: scaleX(0); transform-origin: right; opacity: 0; } to { transform: scaleX(1); opacity: 1; } }
/* kept when the OS asks to reduce motion, off with the app's own "Анимации" switch, like the other feedback animations */
@media (prefers-reduced-motion: reduce) {
  :root:not(.no-motion) .ps-enter .ps-card { animation-duration: .8s !important; }
  :root:not(.no-motion) .ps-face::after { animation-duration: 6s !important; }
  :root:not(.no-motion) .ps-shelf { transition-duration: .5s !important; }
}

/* shelf, calm: nothing moves on its own; on hover (a press on phones) the glow comes up, a sheen runs once and the posters turn a little */
.ps-shelf { transform: none !important; animation: none !important; }
.ps-card { transition: transform .5s cubic-bezier(.22, 1, .36, 1); }
.ps-face::after { animation: none; transform: translateX(-70%); }
.ps-glow { opacity: .35; transition: opacity .5s, filter .5s; }
.ps-board { transition: box-shadow .5s, opacity .5s; opacity: .7; }
.sx-tile:hover .ps-card, .sx-tile:active .ps-card { transform: rotateY(-12deg); }
.sx-tile:hover .ps-glow, .sx-tile:active .ps-glow { opacity: .75; filter: blur(30px) saturate(1.9); }
.sx-tile:hover .ps-board, .sx-tile:active .ps-board { opacity: 1; box-shadow: 0 0 26px rgba(56, 189, 248, .75); }
.sx-tile:hover .ps-face::after, .sx-tile:active .ps-face::after { animation: psSheenOnce .9s ease-out both; animation-delay: calc(var(--k) * 70ms); }
@keyframes psSheenOnce { from { transform: translateX(-70%); } to { transform: translateX(70%); } }
@media (prefers-reduced-motion: reduce) {
  :root:not(.no-motion) .ps-card { transition-duration: .5s !important; }
  :root:not(.no-motion) .ps-glow, :root:not(.no-motion) .ps-board { transition-duration: .5s !important; }
  :root:not(.no-motion) .sx-tile:hover .ps-face::after, :root:not(.no-motion) .sx-tile:active .ps-face::after { animation-duration: .9s !important; }
}

/* the rental tile inside the sections grid: two columns wide, the grid back-fills the holes it leaves */
.sx-tiles, .sx-mosaic { grid-auto-flow: row dense; }
.sx-tiles .rent-tile, .sx-mosaic .rent-tile, .sx-banners .rent-tile { margin: 0; min-height: 0; }
.sx-mosaic .rent-tile { grid-column: span 2; }
.sx-banners .rent-tile { grid-column: auto; }
@media (max-width: 899px) { .rent-tile .ps-card:nth-child(n+5) { display: none; } }
/* a tile with the poster shelf keeps its picture still on hover: only the shelf itself reacts */
@media (hover: hover) { .sx-tile:hover .sx-art:has(.pshelf) { transform: none; } }

/* shelf, flat: no perspective, so the posters are drawn at full sharpness; the hover/press only tilts and lifts them (2D) */
.ps-shelf { perspective: none; }
.ps-card { transform: none; transform-origin: 50% 100%; transition: transform .45s cubic-bezier(.22, 1, .36, 1); transition-delay: calc(var(--k) * 35ms); box-shadow: 0 10px 22px rgba(0, 0, 0, .5); }
.sx-tile:hover .ps-card, .sx-tile:active .ps-card { transform: translateY(-4px) rotate(-2.5deg); }
.ps-glow { transition: opacity .45s; }
.sx-tile:hover .ps-glow, .sx-tile:active .ps-glow { opacity: .75; filter: blur(34px) saturate(1.6); }
.ps-refl { filter: none; opacity: .22; }
.sx-tile:has(.pshelf):active { transform: none; }
@media (prefers-reduced-motion: reduce) { :root:not(.no-motion) .ps-card { transition-duration: .45s !important; } }

/* bigger posters: the shelf tiles are taller and the shelf takes more of their height; a phone shows three posters */
.sx-tiles .sx-tile.wide:has(.pshelf) { height: 150px; }
.ps-shelf { top: 10px; bottom: 18px; }
.ps-board { bottom: 11px; }
@media (max-width: 899px) { .ps-card:nth-child(n+4) { display: none; } .ps-shelf { right: 14px; gap: 7px; } }
@media (max-width: 899px) { .ps-fade { background: linear-gradient(90deg, rgba(10, 26, 66, .95) 0%, rgba(10, 26, 66, .7) 22%, rgba(10, 26, 66, 0) 42%); } }

/* the kind strip: a coloured label and spaced capitals along the bottom edge of the accounts and rental tiles */
.kind-strip { position: absolute; left: 0; right: 0; bottom: 0; height: 24px; z-index: 4; display: flex; align-items: center; overflow: hidden; white-space: nowrap; pointer-events: none; }
.kind-strip .ks-lab { align-self: stretch; display: grid; place-items: center; padding: 0 13px 0 10px; margin-right: 11px; font: 800 8.5px var(--display); letter-spacing: .06em;
  clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 100%, 0 100%); }
.kind-strip .ks-t { font: 700 8px var(--font); letter-spacing: .08em; text-transform: uppercase; }
.kind-strip .ks-rule { width: 1px; height: 11px; margin: 0 8px; background: currentColor; opacity: .35; flex: none; }
.kind-strip.acc { background: linear-gradient(90deg, rgba(8, 30, 70, .95), rgba(10, 40, 90, .9)); color: #d8ecff; }
.kind-strip.acc .ks-lab { background: linear-gradient(90deg, #93c5fd, #22d3ee); color: #04121f; }
.kind-strip.rent { background: linear-gradient(90deg, rgba(60, 28, 6, .95), rgba(80, 38, 8, .9)); color: #ffe9c9; }
.kind-strip.rent .ks-lab { background: linear-gradient(90deg, #f5a524, #ff7a3d); color: #1a1205; }
/* the tile makes room for it: the caption, the shelf and its board sit above the strip */
.sx-tile:has(.kind-strip) .sx-in { padding-bottom: 32px; }
.sx-tile:has(.kind-strip) .ps-shelf { bottom: 32px; }
.sx-tile:has(.kind-strip) .ps-board { bottom: 27px; }
.sx-tiles .sx-tile.wide:has(.kind-strip) { height: 170px; }
.rent-tile:has(.kind-strip) .ps-board { background: linear-gradient(90deg, transparent, rgba(252, 211, 125, .25) 30%, rgba(253, 230, 186, .55) 80%, rgba(252, 180, 100, .3)); }
[data-theme="light"] .kind-strip.acc { background: linear-gradient(90deg, #dbeafe, #e0f2fe); color: #0b2a55; }
[data-theme="light"] .kind-strip.rent { background: linear-gradient(90deg, #ffedd5, #fef3c7); color: #5a2a05; }

/* Steam accounts: the rental-style purchase sheet with a big number and − / + */
.aq-stepper { display: grid; grid-template-columns: 58px 1fr 58px; align-items: center; gap: 10px; padding: 8px; border-radius: 20px; background: var(--surface-2); border: 1px solid var(--line); }
.aq-stepper > button { height: 58px; border-radius: 16px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03); font: 700 26px var(--font); color: var(--text);
  transition: transform .28s cubic-bezier(.34, 1.56, .64, 1), background .2s; }
.aq-stepper > button:active { transform: scale(.92); background: rgba(56, 189, 248, .14); transition-duration: .08s; }
.aq-num { text-align: center; }
.aq-num b { display: block; font: 800 34px/1 var(--display); font-variant-numeric: tabular-nums; }
.aq-num small { font-size: 11.5px; color: var(--muted); }
.aq-num b.aq-pop { animation: aqPop .32s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes aqPop { 40% { transform: scale(1.14); } }
.aq-quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: -4px; }
.aq-quick button { padding: 10px 0; border-radius: 12px; border: 1px solid var(--line-2); background: transparent; font: 700 13px var(--font); color: var(--text);
  transition: transform .2s cubic-bezier(.34, 1.56, .64, 1), background .2s; }
.aq-quick button:active { transform: scale(.95); background: rgba(56, 189, 248, .12); }
.aq .rs2-sum > div b { color: var(--text); }
.aq .warn:empty { display: none; }
.aq-note { margin: -4px 0 0; text-align: center; font-size: 12px; color: var(--muted); }
@media (prefers-reduced-motion: reduce) {
  :root:not(.no-motion) .aq-num b.aq-pop { animation-duration: .32s !important; }
  :root:not(.no-motion) .aq-stepper > button, :root:not(.no-motion) .aq-quick button { transition-duration: .28s !important; }
}

/* "Steam top-up sent": a check drawn in a glowing ring, the login and amount, three steps with the current one pulsing */
.ts { display: grid; justify-items: center; gap: 12px; }
.ts-ring { width: 78px; height: 78px; margin-top: 4px; border-radius: 50%; display: grid; place-items: center; color: #4ade80;
  background: radial-gradient(circle, rgba(34, 197, 94, .22), rgba(34, 197, 94, .06) 70%); box-shadow: 0 0 0 1px rgba(74, 222, 128, .25), 0 0 40px rgba(34, 197, 94, .25);
  animation: pop .45s cubic-bezier(.34, 1.56, .64, 1) both; }
.ts-ring .ico svg { width: 36px; height: 36px; stroke-width: 2.6; }
.ts-ring path, .ts-ring polyline { stroke-dasharray: 30; animation: tsDraw .6s .3s cubic-bezier(.65, 0, .35, 1) both; }
@keyframes tsDraw { from { stroke-dashoffset: 30; } }
.ts h3 { margin: 0; }
.result .ts-sub { margin: -6px 0 0; }
.ts-sub b { color: var(--text); }
.ts-steps { width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); position: relative; margin: 4px 0; }
.ts-steps::before { content: ""; position: absolute; left: 16%; right: 16%; top: 11px; height: 2px; background: linear-gradient(90deg, #22c55e 50%, var(--line-2) 50%); }
.ts-step { display: grid; justify-items: center; gap: 6px; font-size: 11.5px; color: var(--muted); }
.ts-dot { position: relative; z-index: 1; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 800;
  background: var(--surface-2); border: 1px solid var(--line-2); }
.ts-step.ok { color: var(--text); }
.ts-step.ok .ts-dot { background: #22c55e; border-color: transparent; color: #04120a; }
.ts-step.now .ts-dot { border-color: #38bdf8; color: #38bdf8; box-shadow: 0 0 0 4px rgba(56, 189, 248, .15); animation: tsPulse 1.6s ease-in-out infinite; }
@keyframes tsPulse { 50% { box-shadow: 0 0 0 7px rgba(56, 189, 248, .05); } }
.ts .result-note { margin: 0; }
.ts .btn-main { width: 100%; }
@media (prefers-reduced-motion: reduce) {
  :root:not(.no-motion) .ts-ring { animation-duration: .45s !important; }
  :root:not(.no-motion) .ts-ring path, :root:not(.no-motion) .ts-ring polyline { animation-duration: .6s !important; }
  :root:not(.no-motion) .ts-step.now .ts-dot { animation-duration: 1.6s !important; }
}

/* the "sent" sheet follows the order: the line fills and step 3 turns green (or amber for a refund) */
.ts-steps::before { transition: background .5s; }
.ts-steps.all::before { background: #22c55e; }
.ts-steps.back::before { background: linear-gradient(90deg, #22c55e 50%, #f5a524 50%); }
.ts-step.ts-fin .ts-dot { animation: pop .45s cubic-bezier(.34, 1.56, .64, 1); }
.ts-step.back { color: #fcd34d; }
.ts-step.back .ts-dot { background: #f5a524; border-color: transparent; color: #1a1205; }
@media (prefers-reduced-motion: reduce) { :root:not(.no-motion) .ts-step.ts-fin .ts-dot { animation-duration: .45s !important; } }

/* the history button in the login field (next to "Where to find it?") and the cards it unrolls under the field */
.spay-wrap.has-hist .spay-input { padding-right: 140px; }
.spay-wrap.has-hist .spay-help { right: 54px; }
.spay-hist { position: absolute; right: 7px; width: 36px; height: 36px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(56, 189, 248, .06); color: #38bdf8;
  display: grid; place-items: center; transition: background .3s, color .3s, border-color .3s, transform .3s cubic-bezier(.34, 1.56, .64, 1); }
.spay-hist[hidden] { display: none; }
.spay-hist:active { transform: scale(.9); }
.spay-hist .ico svg { width: 18px; height: 18px; transition: transform .5s cubic-bezier(.34, 1.56, .64, 1); }
.spay-hist.open { background: var(--grad); color: #fff; border-color: transparent; }
.spay-hist.open .ico svg { transform: rotate(-360deg); }
.spay-hist-n { position: absolute; top: -6px; right: -6px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: #2563eb; color: #fff;
  font: 800 10px/17px var(--font); border: 2px solid var(--surface); }
.spay-saved { display: grid; grid-template-rows: 0fr; margin-top: -4px; transition: grid-template-rows .45s cubic-bezier(.22, 1, .36, 1); }
.spay-saved > div { overflow: hidden; min-width: 0; }
.spay-saved.open { grid-template-rows: 1fr; }
.spay-cards { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 8px 2px 10px; scroll-snap-type: x proximity;
  -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
.spay-cards::-webkit-scrollbar { display: none; }
.spay-card { position: relative; flex: 0 0 116px; scroll-snap-align: start; display: grid; gap: 7px; justify-items: start; align-content: start; padding: 11px; border-radius: 18px;
  border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text); text-align: left;
  transition: transform .4s cubic-bezier(.34, 1.56, .64, 1), border-color .3s, box-shadow .35s, background .3s; }
.spay-saved.open .spay-card { animation: spayCardIn .45s cubic-bezier(.22, 1, .36, 1) backwards; animation-delay: calc(var(--i) * 55ms + 120ms); }
@keyframes spayCardIn { from { opacity: 0; transform: translateY(10px) scale(.95); } }
.spay-card:active { transform: scale(.95); transition-duration: .1s; }
.spay-card.on { transform: translateY(-3px); border-color: rgba(56, 189, 248, .8); background: linear-gradient(180deg, rgba(37, 99, 235, .16), var(--surface-2) 70%);
  box-shadow: 0 10px 24px rgba(37, 99, 235, .3), 0 0 0 3px rgba(56, 189, 248, .14); }
.spay-av { position: relative; width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; font: 800 15px var(--display); color: #fff; background: linear-gradient(135deg, var(--c1), var(--c2)); }
.spay-av-ok { position: absolute; right: -6px; bottom: -6px; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: #22c55e; color: #04120a;
  font-size: 10px; font-weight: 900; border: 2px solid var(--surface-2); transform: scale(0); transition: transform .35s cubic-bezier(.34, 1.56, .64, 1); }
.spay-card.on .spay-av-ok { transform: scale(1); }
.spay-card b { font-size: 13px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.spay-card small { font-size: 11px; color: var(--muted); line-height: 1.3; }
.spay-card small em { font-style: normal; color: var(--text-2); font-weight: 700; }
@media (prefers-reduced-motion: reduce) {
  :root:not(.no-motion) .spay-saved { transition-duration: .45s !important; }
  :root:not(.no-motion) .spay-saved.open .spay-card { animation-duration: .45s !important; }
  :root:not(.no-motion) .spay-card, :root:not(.no-motion) .spay-hist .ico svg, :root:not(.no-motion) .spay-av-ok { transition-duration: .4s !important; }
}
/* the old row rule centred its items: the folded cards must stretch to the 0 height of their row, or they show over the field */
.spay-saved { align-items: stretch; align-content: start; }
.spay-saved > div { min-height: 0; }

/* smoother unroll: room around the cards for the chosen one's glow, a short eased height, cheap card entrance, mask after opening */
.spay-saved { margin: -6px -14px 0; transition: grid-template-rows .32s cubic-bezier(.2, .8, .2, 1); }
.spay-cards { padding: 10px 14px 18px; scroll-padding-left: 14px; -webkit-mask-image: none; mask-image: none; }
.spay-saved.shown .spay-cards { -webkit-mask-image: linear-gradient(90deg, #000 86%, transparent); mask-image: linear-gradient(90deg, #000 86%, transparent); }
.spay-saved.open .spay-card { animation: spayCardIn2 .3s cubic-bezier(.2, .8, .2, 1) backwards; animation-delay: calc(var(--i) * 40ms + 60ms); }
@keyframes spayCardIn2 { from { opacity: 0; transform: translateY(8px); } }
.spay-card { transition: transform .35s cubic-bezier(.34, 1.4, .64, 1), border-color .25s, box-shadow .3s, background .25s; }
.spay-card.on { box-shadow: 0 8px 18px rgba(37, 99, 235, .26), 0 0 0 2px rgba(56, 189, 248, .2); }
@media (prefers-reduced-motion: reduce) {
  :root:not(.no-motion) .spay-saved { transition-duration: .32s !important; }
  :root:not(.no-motion) .spay-saved.open .spay-card { animation-duration: .3s !important; }
}
/* more room under the cards for the chosen one shadow, taken back from the gap to the amount */
.spay-cards { padding-bottom: 28px; }
.spay-saved { margin-bottom: -14px; }
.spay-card.on { box-shadow: 0 6px 14px rgba(37, 99, 235, .26), 0 0 0 2px rgba(56, 189, 248, .2); }

/* smooth sideways scrolling of the history cards: no mask and no snapping on the scrolling row; a mouse can drag it */
.spay-cards, .spay-saved.shown .spay-cards { -webkit-mask-image: none; mask-image: none; scroll-snap-type: none; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
@media (hover: hover) and (pointer: fine) { .spay-cards { cursor: grab; } .spay-cards.dragging { cursor: grabbing; } .spay-cards.dragging .spay-card { pointer-events: none; } }

/* rental cards: the entrance does not keep each card on its own graphics layer once it has played, and later cards skip it */
.rent-lot { animation-fill-mode: backwards; }
.rent-lot.still { animation: none; }
.rent-more { grid-column: 1 / -1; height: 1px; }

/* ================================================================ the website on a wide screen (html.site = not opened in Telegram) */
.sh-top, .sh-block, .site-foot, .ss-how, .ss-faq, .spay-aside { display: none; }
@media (min-width: 1100px) {
  html.site .view { max-width: 1240px; }
  html.site .view > div > section.feed { display: none; }            /* the live list moves into the welcome row */
  /* welcome row */
  html.site .sh-top { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; margin: 6px 0 26px; }
  .sh-hero { position: relative; overflow: hidden; isolation: isolate; min-height: 250px; padding: 28px; border-radius: 22px; border: 1px solid rgba(120, 170, 255, .28);
    display: grid; align-content: center; background: radial-gradient(120% 140% at 100% 0%, #1d4fb3 0%, #12306f 45%, #0b1d48 100%);
    transform: perspective(1200px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .3s ease-out, box-shadow .5s, border-color .4s; }
  .sh-hero:hover { border-color: rgba(120, 190, 255, .55); box-shadow: 0 18px 50px rgba(37, 99, 235, .3); }
  .sh-hero::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, rgba(10, 26, 66, .92) 48%, rgba(10, 26, 66, 0) 70%); }
  .sh-txt { position: relative; z-index: 2; display: grid; gap: 14px; max-width: 470px; color: #fff; }
  .sh-txt h2 { margin: 0; font: 800 28px/1.15 var(--display); }
  .sh-txt p { margin: 0; color: #c9d6ee; }
  .sh-acts { display: flex; gap: 10px; }
  .sh-acts button { width: auto; padding: 12px 18px; }
  .sh-acts .btn-ghost { color: #fff; background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .22); }
  .sh-stats { display: flex; gap: 24px; }
  .sh-stats b { display: block; font: 800 20px var(--display); }
  .sh-stats span { color: #c9d6ee; font-size: 12px; }
  .sh-art { position: absolute; z-index: 0; right: 44px; top: 50%; width: 300px; height: 200px; transform: translateY(-50%) translate(var(--px, 0px), var(--py, 0px)); transition: transform .3s ease-out; }
  .sh-art i { position: absolute; left: 90px; top: 5px; width: 120px; aspect-ratio: 2 / 3; border-radius: 12px; background-size: cover; background-position: center; background-color: #0a1224;
    box-shadow: 0 14px 30px rgba(0, 0, 0, .5); transform-origin: 50% 90%; transition: transform .6s cubic-bezier(.34, 1.56, .64, 1), box-shadow .5s, opacity .5s, filter .5s; }
  .sh-art i:nth-child(1) { z-index: 2; transform: translateX(-40px) rotate(-5deg); }
  .sh-art i:nth-child(2) { z-index: 2; transform: translateX(40px) rotate(5deg); }
  .sh-art i:nth-child(3) { z-index: 1; opacity: 0; transform: translateY(14px) scale(.9); filter: brightness(.7); }
  .sh-hero:hover .sh-art i:nth-child(1) { transform: translateX(-80px) translateY(10px) rotate(-12deg); filter: brightness(.9); }
  .sh-hero:hover .sh-art i:nth-child(2) { transform: translateX(80px) translateY(10px) rotate(12deg); filter: brightness(.9); }
  .sh-hero:hover .sh-art i:nth-child(3) { z-index: 3; opacity: 1; transform: translateY(-8px) scale(1.06); filter: none; box-shadow: 0 22px 44px rgba(0, 0, 0, .6); transition-delay: .06s; }
  .sh-glare { position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: 0; transition: opacity .4s;
    background: radial-gradient(420px circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, .13), transparent 60%); }
  .sh-hero:hover .sh-glare { opacity: 1; }
  .sh-feed { padding: 16px; display: grid; gap: 10px; align-content: start; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
  .sh-feed-h { display: flex; align-items: center; gap: 8px; font: 800 11.5px var(--font); letter-spacing: .08em; color: var(--muted); text-transform: uppercase; }
  .sh-feed-list { display: grid; gap: 8px; }
  .sh-fi { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px; border-radius: 12px; border: 0; background: var(--surface-2); color: var(--text); text-align: left;
    transition: transform .25s cubic-bezier(.34, 1.56, .64, 1), background .2s; animation: shFi .5s cubic-bezier(.22, 1, .36, 1) backwards; }
  .sh-fi:hover { transform: translateX(3px); }
  @keyframes shFi { from { opacity: 0; transform: translateY(-6px); } }
  .sh-fi i { width: 34px; height: 34px; border-radius: 10px; background-size: cover; background-position: center; }
  .sh-fi b { display: block; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .sh-fi small { color: var(--muted); font-size: 11.5px; }
  .sh-fi em { font-style: normal; font-weight: 800; }
  /* best sellers, popular rentals */
  html.site .sh-block:not([hidden]) { display: grid; gap: 14px; margin-top: 30px; }
  .sh-h { display: flex; align-items: center; }
  .sh-h .section-title { margin: 0; }
  .sh-more { margin-left: auto; border: 0; background: none; color: var(--accent); font: 700 13px var(--font); }
  html.site .lot-grid.sh-hits { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .sh-rents { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 10px; }
  .sh-rc { position: relative; aspect-ratio: 2 / 3; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background-size: cover; background-position: center; background-color: #0a1224;
    transition: transform .3s cubic-bezier(.34, 1.4, .64, 1), border-color .3s; }
  .sh-rc:hover { transform: translateY(-4px); border-color: rgba(56, 189, 248, .5); }
  .sh-rc::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(5, 9, 18, .9)); }
  .sh-rc span { position: absolute; left: 8px; bottom: 8px; z-index: 1; color: #fff; font: 800 12px var(--display); }
  .sh-rc small { font: 700 9px var(--font); opacity: .8; }
  /* footer */
  html.site .site-foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 24px; margin-top: 40px; padding: 26px 0 10px; border-top: 1px solid var(--line); color: var(--muted); }
  .site-foot b { display: block; color: var(--text); margin-bottom: 8px; font-size: 13px; }
  .site-foot p { margin: 0; font-size: 12.5px; }
  .sf-link { display: block; padding: 0; border: 0; background: none; color: var(--muted); font: 500 12.5px/2 var(--font); text-align: left; }
  .sf-link:hover { color: var(--text); }
  .sf-pays { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
  .sf-pays span { padding: 4px 10px; border-radius: 8px; border: 1px solid var(--line-2); font: 700 11px var(--font); color: var(--text-2); }
  /* Steam top-up: the form on the left (not stretched), the summary on the right */
  html.site .spay-page { display: grid; grid-template-columns: minmax(0, 1fr) 360px; column-gap: 18px; row-gap: 14px; align-items: start; }
  html.site .spay-page > * { grid-column: 1; }
  html.site .spay-page > .sx-sub, html.site .spay-page > .site-foot { grid-column: 1 / -1; }
  html.site .spay-page > .spay-aside { display: grid; gap: 14px; grid-column: 2; grid-row: 2 / span 4; position: sticky; top: 84px; }
  html.site .spay-form > .spay-wrap, html.site .spay-form > .spay-row, html.site .spay-form > .spay-saved, html.site .spay-form > .spay-presets,
  html.site .spay-form > .spay-lines, html.site .spay-form > .spay-bal, html.site .spay-form > .spay-split { max-width: 600px; }
  html.site .spay-form > .spay-total, html.site .spay-form > .btn-main, html.site .spay-form > .result-note { display: none; }
  .ss-sum { padding: 20px; display: grid; gap: 11px; }
  .ss-sum h3, .ss-recent h3 { margin: 0; font: 800 14px var(--display); text-transform: uppercase; }
  .ss-r { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--text-2); }
  .ss-r[hidden] { display: none; }
  .ss-r b { color: var(--text); text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .ss-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 12px; border-top: 1px dashed var(--line-2); }
  .ss-total strong { font: 800 24px var(--display); }
  .ss-note { margin: 0; text-align: center; color: var(--muted); font-size: 12px; }
  .ss-recent { padding: 16px; display: grid; gap: 8px; }
  .ss-recent[hidden] { display: none; }
  .ss-ri { display: flex; justify-content: space-between; gap: 10px; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); font-size: 12.5px; }
  .ss-ri b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .ss-ri span { color: var(--muted); white-space: nowrap; }
  html.site .ss-how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding: 18px 20px; }
  .ss-how > div { display: grid; gap: 4px; align-content: start; }
  .ss-n { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: rgba(56, 189, 248, .12); color: #38bdf8; font: 800 13px var(--display); }
  .ss-how b { font-size: 13.5px; }
  .ss-how span:not(.ss-n) { color: var(--muted); font-size: 12px; }
  html.site .ss-faq { display: block; padding: 4px 20px; }
  .ss-faq details { border-bottom: 1px solid var(--line); padding: 12px 0; }
  .ss-faq details:last-child { border: 0; }
  .ss-faq summary { cursor: pointer; font-weight: 700; font-size: 13.5px; }
  .ss-faq p { margin: 8px 0 0; color: var(--muted); font-size: 12.5px; }
}

/* admin tools: unlock, upload, purchases, customers, demand, wholesale */
.adm-unlock { display: grid; gap: 12px; justify-items: center; text-align: center; padding: 22px 16px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line-2); }
.adm-unlock-ico .ico svg { width: 34px; height: 34px; color: var(--accent); }
.adm-unlock .btn-main { margin-top: 0; }
.adm-code { text-align: center; font: 800 26px/1 var(--font); letter-spacing: .35em; max-width: 240px; }
.adm-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.adm-pill { padding: 3px 9px; border-radius: 999px; font: 700 11px var(--font); color: var(--text-2); background: var(--surface-2); border: 1px solid var(--line); white-space: nowrap; }
.adm-pill.ok { color: var(--green); background: rgba(34, 197, 94, .12); border-color: transparent; }
.adm-pill.warn { color: var(--amber); background: rgba(245, 158, 11, .14); border-color: transparent; }
.adm-pill.bad { color: var(--red); background: rgba(244, 63, 94, .14); border-color: transparent; }
.adm-row-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.adm-row-btns .btn-ghost, .adm-detail .btn-ghost, .adm-card .btn-ghost { margin-top: 0; height: 42px; gap: 8px; font-size: 13px; }
.adm-check { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-2); }
.adm-check input { width: 18px; height: 18px; accent-color: var(--accent); }
.adm-card { display: grid; gap: 8px; padding: 12px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.adm-card.bad { border-color: rgba(244, 63, 94, .4); }
.adm-card.warn { border-color: rgba(245, 158, 11, .5); }
.adm-pre { margin: 0; white-space: pre-wrap; word-break: break-all; font: 500 12.5px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--text); user-select: text; }
.adm-errline { font-size: 12px; color: var(--text-2); display: grid; gap: 2px; }
.adm-errline small { color: var(--muted); word-break: break-all; }
.adm-up-preview { display: grid; gap: 8px; }
.adm-live { color: var(--green); font: 700 11px var(--font); }
.adm-live::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: var(--green); animation: admPulse 1.6s infinite; }
@keyframes admPulse { 50% { opacity: .3; } }
.adm-feed { max-height: 56vh; }
.adm-ev { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: start; gap: 10px; width: 100%; text-align: left; padding: 10px 12px; border-radius: 13px; background: var(--surface-2); border: 1px solid var(--line); color: var(--text); }
.adm-ev.off { opacity: .55; }
.adm-ev .t { display: grid; gap: 4px; min-width: 0; }
.adm-ev .t b { font-size: 13.5px; overflow-wrap: anywhere; }
.adm-ev .t small { color: var(--muted); font-size: 11.5px; }
.adm-ev-t { color: var(--muted); font: 600 11px var(--font); padding-top: 2px; }
.adm-ev-sum { font-size: 13.5px; white-space: nowrap; }
.adm-ev-sum.plus { color: var(--green); }
.adm-click { width: 100%; text-align: left; color: var(--text); }
.adm-detail { display: grid; gap: 10px; }
.adm-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.adm-fact { display: grid; gap: 3px; padding: 10px 12px; border-radius: 13px; background: var(--surface-2); border: 1px solid var(--line); min-width: 0; }
.adm-fact small { color: var(--muted); font-size: 11px; }
.adm-fact b { font-size: 13.5px; overflow-wrap: anywhere; }
.adm-items { display: grid; gap: 8px; max-height: 46vh; overflow-y: auto; }
.adm-demand { max-height: 58vh; }
.adm-dem-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.adm-mini { display: flex; align-items: flex-end; gap: 3px; height: 42px; }
.adm-mini i { flex: 1; border-radius: 3px 3px 0 0; background: var(--accent); opacity: .8; }
.adm-advice { display: flex; align-items: center; gap: 8px; margin: 0; padding: 8px 10px; border-radius: 10px; color: var(--accent); background: rgba(59, 130, 246, .12); font: 700 12.5px var(--font); }
.adm-advice .ico svg { width: 16px; height: 16px; }
.adm-tiers { display: grid; gap: 8px; }
.adm-tier { display: grid; grid-template-columns: 1fr 1fr 40px; gap: 8px; align-items: end; }
.adm-tier label { display: grid; gap: 4px; }
.adm-tier small { color: var(--muted); font-size: 11px; }
.adm-x { height: 44px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); color: var(--red); display: grid; place-items: center; }
.adm-sheet select.adm-search { appearance: auto; }
.adm-cat { max-height: 60vh; gap: 12px; }
.adm-cat-sec { display: grid; gap: 6px; }
.adm-cat-sec.off { opacity: .65; }
.adm-cat-head { display: flex; align-items: center; gap: 8px; }
.adm-cat-title { flex: 1; display: grid; gap: 2px; text-align: left; color: var(--text); padding: 4px 2px; min-width: 0; }
.adm-cat-title b { font-size: 15px; }
.adm-cat-title small { color: var(--muted); font-size: 11.5px; }
.adm-cat-add { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line-2); color: var(--accent); }
.adm-thumb { flex: none; width: 44px; height: 44px; border-radius: 10px; object-fit: cover; background: var(--surface-3); display: grid; place-items: center; color: var(--muted); }
.adm-click.adm-row { justify-content: flex-start; }
.adm-click.adm-row .t { flex: 1; }
.adm-pic { display: grid; place-items: center; min-height: 140px; border-radius: 16px; overflow: hidden; background: var(--surface-2); border: 1px dashed var(--line-2); }
.adm-pic img { width: 100%; max-height: 220px; object-fit: cover; display: block; }
.adm-pic-empty { display: grid; justify-items: center; gap: 6px; padding: 16px; color: var(--muted); font-size: 12.5px; text-align: center; }
.adm-pic-empty .ico svg { width: 28px; height: 28px; }
.otp { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; width: 100%; max-width: 312px; margin: 0 auto; cursor: text; }
.otp-cell { height: 54px; border-radius: 14px; display: grid; place-items: center; background: var(--surface-2); border: 1.5px solid var(--line-2); font: 800 24px/1 var(--font); color: var(--text); font-variant-numeric: tabular-nums; transition: border-color .15s, box-shadow .15s; }
.otp-cell.full { border-color: var(--line-2); background: var(--surface-3); }
.otp-cell.on { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(59, 130, 246, .2); }
.otp-input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; border: 0; background: transparent; color: transparent; caret-color: transparent; font-size: 16px; }
.adm-seg[hidden] { display: none; }

/* admin home "Пульт": numbers with sparklines, tools in three groups, what runs out (from the chosen mockup) */
.mk-head { display: flex; align-items: center; gap: 10px; }
.mk-head .page-title { flex: 1; font-size: 20px; white-space: nowrap; }
.mk-session { display: inline-flex; align-items: center; gap: 7px; padding: 5px 5px 5px 11px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-2); font: 700 11.5px var(--font); color: var(--text-2); white-space: nowrap; }
.mk-session .lockb { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: rgba(47, 128, 255, .16); color: var(--cyan); }
.mk-session .lockb .ico svg { width: 15px; height: 15px; }
.mk-gt { display: flex; align-items: center; justify-content: space-between; margin: 0 2px; font: 800 11px var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.mk-gt a { text-transform: none; letter-spacing: 0; color: var(--accent-2); font: 700 12px var(--font); text-decoration: none; }
.mk-group { display: grid; gap: 8px; }
.mk-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mk-kpis.k4 { grid-template-columns: repeat(4, 1fr); gap: 6px; }
.mk-kpi { display: grid; gap: 3px; padding: 11px 12px 10px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line-2); min-width: 0; }
.mk-kpi small { font: 600 11px var(--font); color: var(--muted); }
.mk-kpi b { font: 800 19px/1.1 var(--display); font-variant-numeric: tabular-nums; white-space: nowrap; }
.k4 .mk-kpi { padding: 9px 8px; border-radius: 14px; }
.k4 .mk-kpi b { font-size: 14px; }
.k4 .mk-kpi small { font-size: 10px; }
.mk-spark { display: flex; align-items: flex-end; gap: 2px; height: 22px; margin-top: 4px; }
.mk-spark i { flex: 1; border-radius: 2px 2px 1px 1px; background: rgba(47, 128, 255, .45); transform-origin: bottom; animation: admGrow .6s cubic-bezier(.2, .8, .3, 1) both; }
.mk-spark i:last-child { background: var(--cyan); box-shadow: 0 0 8px rgba(56, 214, 255, .6); }
.mk-tools { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.mk-tool { position: relative; display: grid; justify-items: center; gap: 6px; padding: 11px 2px 9px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line-2); color: var(--text-2); font: 700 10.5px var(--font); animation: cardIn .4s cubic-bezier(.2, .8, .3, 1) both; transition: border-color .2s, color .2s; }
.mk-tool .ico svg { width: 21px; height: 21px; color: var(--accent); }
.mk-tool:hover { border-color: rgba(120, 170, 255, .5); color: var(--text); }
.mk-badge { position: absolute; top: 5px; right: 7px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 99px; background: var(--red); color: #fff; font: 800 9.5px/16px var(--font); }
.mk-low { display: grid; gap: 6px; }
.mk-low .adm-low { padding: 10px 12px; }
.mk-head .page-title { font-size: 21px; }
.mk-session .lockb { cursor: pointer; }
.adm-home { display: grid; gap: 14px; }
.mk-tool .ico svg { pointer-events: none; }
.adm-more { color: var(--accent-2); font: 700 12px var(--font); text-transform: none; letter-spacing: 0; }
.mk-session[hidden] { display: none; }
.btn-ghost.adm-danger { color: var(--red); border-color: rgba(244, 63, 94, .35); }
/* admin sheets: new content fades in; the loading placeholder is small and shows only when loading takes a moment */
.adm-swap { animation: admSwap .22s ease-out both; }
@keyframes admSwap { from { opacity: 0; transform: translateY(6px); } }
.adm-sheet .skeleton.adm-skel { height: 64px; animation: shimmer 1.2s infinite linear, admSkelIn .2s .25s both; }
@keyframes admSkelIn { from { opacity: 0; } to { opacity: 1; } }
.no-motion .adm-swap { animation: none; }

/* Steam top-up: "is it really this login?" — a tick for a login topped up before, a sheet for a new one */
:root { --lc-warn: #ffb547; --lc-warn-bg: rgba(255, 181, 71, .09); }
:root[data-theme="light"] { --lc-warn: #a85d00; --lc-warn-bg: rgba(214, 120, 0, .09); }
.spay-check { display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 14px; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--lc-warn); background: var(--lc-warn-bg); color: var(--lc-warn); font: 700 14px var(--font); text-align: left; line-height: 1.35; }
.spay-check-box { flex-shrink: 0; width: 22px; height: 22px; border-radius: 7px; border: 2px solid var(--lc-warn); display: flex; align-items: center; justify-content: center; box-sizing: border-box; }
.spay-check-box svg { width: 16px; height: 16px; opacity: 0; transition: opacity .15s; }
.spay-check.on { border-color: var(--line-2); background: var(--surface-2); color: var(--text); }
.spay-check.on .spay-check-box { border-color: transparent; background: var(--grad); color: var(--on-grad); }
.spay-check.on .spay-check-box svg { opacity: 1; }
.spay-check:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.login-confirm { display: grid; gap: 10px; }
.login-confirm h2 { margin: 0 0 4px; text-align: center; font: 800 20px var(--font); color: var(--lc-warn); text-wrap: balance; }
.login-confirm .lc-row { display: grid; gap: 2px; padding: 10px 14px; border-radius: 16px; background: var(--field); border: 1px solid var(--line-2); }
.login-confirm .lc-row.new { border-color: var(--lc-warn); }
.login-confirm .lc-row small { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.login-confirm .lc-row.new small { color: var(--lc-warn); }
.login-confirm .lc-login { font: 700 17px ui-monospace, "JetBrains Mono", Consolas, monospace; color: var(--text-2); word-break: break-all; }
.login-confirm .lc-login.big { font-size: 22px; color: var(--text); }
.login-confirm .lc-note { margin: 2px 0 0; color: var(--muted); font-size: 14px; line-height: 1.45; text-align: center; }
.login-confirm .btn-main { margin-top: 6px; }
.login-confirm .btn-ghost { margin-top: 0; }
.no-motion .spay-check-box svg { transition: none; }
