/* NOVA storefront design system, v3
   Night-violet stage, warm amber → coral → pink light, wide Unbounded display type,
   Manrope for the interface, JetBrains Mono only for keys, codes and addresses. */

:root {
  color-scheme: dark;

  /* Night ramp */
  --bg-deep: #0c0614;
  --bg: #120a1e;
  --surface: #1a1028;
  --surface-hover: #201433;
  --raised: #241536;
  --raised-2: #2e1c45;
  --input: #170d24;
  --line: rgba(255, 255, 255, .07);
  --line-soft: rgba(255, 255, 255, .1);
  --line-warm: rgba(255, 170, 130, .16);
  --line-strong: rgba(255, 170, 130, .28);
  --text: #fff6ef;
  --text-2: #cdbfdc;
  --text-3: #9a89ad;

  /* Warm light */
  --grad: linear-gradient(100deg, #ffb347 0%, #ff7a3d 42%, #ff3d8d 100%);
  --grad-hover: linear-gradient(100deg, #ffc061 0%, #ff8a4f 42%, #ff509a 100%);
  --grad-press: linear-gradient(100deg, #f2a43c 0%, #f06c31 42%, #ee327f 100%);
  --grad-soft: linear-gradient(100deg, rgba(255, 179, 71, .16) 0%, rgba(255, 122, 61, .14) 42%, rgba(255, 61, 141, .16) 100%);
  --grad-card: linear-gradient(180deg, rgba(42, 24, 64, .72) 0%, rgba(24, 14, 38, .72) 100%);
  --grad-panel: linear-gradient(135deg, #24133b 0%, #2a1240 48%, #3a1440 100%);
  --accent: #ff7a3d;
  --accent-2: #ffb347;
  --accent-3: #ff3d8d;
  --accent-hover: #ff8a52;
  --accent-press: #f06a2d;
  --on-accent: #1a0b12;
  --accent-soft: rgba(255, 122, 61, .14);
  --accent-ring: rgba(255, 140, 90, .35);
  --num: #ff6aa8;

  /* Semantic */
  --pos: #7ee2a8;
  --pos-soft: rgba(126, 226, 168, .12);
  --neg: #ff5d73;
  --neg-text: #ff8597;
  --neg-soft: rgba(255, 93, 115, .12);
  --warn: #ffcc66;
  --warn-soft: rgba(255, 204, 102, .12);
  --info: #cdbfdc;
  --lime: #c8f169;
  --lime-soft: rgba(200, 241, 105, .12);

  /* Printed objects (receipt slips, issued tickets) keep a warm paper */
  --paper: #fff3e8;
  --paper-2: #fbe6d6;
  --paper-ink: #22101c;
  --paper-muted: #7a5a6c;
  --paper-line: rgba(34, 16, 28, .14);

  /* Type */
  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-display: 'Unbounded', 'Manrope', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --fs-hero: clamp(40px, 3.6vw + 18px, 72px);
  --fs-title: clamp(32px, 1.8vw + 18px, 46px);
  --fs-h2: clamp(24px, 1vw + 16px, 32px);
  --fs-h3: 18px;
  --fs-body: 15px;
  --fs-sm: 14px;
  --fs-xs: 13px;
  --fs-meta: 12px;
  --fs-kicker: 11px;

  /* Space: 4px grid */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 32px;
  --space-8: 40px;
  --space-9: 48px;
  --space-10: 64px;
  --space-11: 80px;
  --space-12: 96px;

  /* Radius */
  --r-xs: 6px;
  --r-tag: 8px;
  --r-control: 14px;
  --r-control-lg: 16px;
  --r-card: 20px;
  --r-card-lg: 24px;
  --r-panel: 32px;
  --r-modal: 28px;
  --r-pill: 999px;

  /* Depth */
  --hl: inset 0 1px 0 rgba(255, 255, 255, .05);
  --hl-btn: inset 0 1px 0 rgba(255, 255, 255, .35);
  --shadow-card: 0 20px 60px -30px rgba(0, 0, 0, .8);
  --shadow-cta: 0 10px 30px -8px rgba(255, 90, 80, .55);
  --shadow-cta-hover: 0 14px 36px -8px rgba(255, 90, 80, .7);
  --shadow-object: 0 2px 4px rgba(20, 5, 25, .3), 0 24px 48px -16px rgba(10, 0, 20, .7);
  --shadow-modal: 0 2px 10px rgba(0, 0, 0, .35), 0 40px 100px -30px rgba(0, 0, 0, .85);
  --ring: 0 0 0 3px var(--accent-ring);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 160ms;
  --t-menu: 220ms;
  --t-enter: 420ms;

  /* Layout */
  --container: 1280px;
  --gutter: 32px;
  --header-h: 104px;
  --tabbar-h: 64px;
  --z-base: 1;
  --z-header: 50;
  --z-tabbar: 60;
  --z-modal: 100;
  --z-toast: 200;

  /* Legacy names kept for page styles written against earlier tokens */
  --bg-2: var(--bg-deep);
  --bg-3: var(--surface);
  --surface-solid: var(--surface);
  --surface-2: var(--raised);
  --surface-3: var(--raised-2);
  --input-hover: var(--input);
  --line-2: var(--line-soft);
  --line-3: var(--line-strong);
  --line-input: rgba(255, 255, 255, .08);
  --muted: var(--text-2);
  --faint: var(--text-3);
  --violet-100: var(--text);
  --violet-200: var(--text);
  --violet-300: var(--text-2);
  --violet-400: var(--text-3);
  --violet-500: var(--text-3);
  --violet-600: var(--text-3);
  --violet-700: var(--text-3);
  --cyan-200: var(--text);
  --cyan-300: var(--text-2);
  --cyan-400: var(--accent-2);
  --teal-300: var(--text);
  --money: var(--accent-2);
  --success: var(--pos);
  --warning: var(--warn);
  --danger: var(--neg-text);
  --gold: var(--accent-2);
  --grad-text: var(--grad);
  --grad-card-strong: var(--grad-panel);
  --grad-border: var(--line-strong);
  --radius-xs: var(--r-xs);
  --radius-sm: var(--r-control);
  --radius-input: var(--r-control);
  --radius: var(--r-card);
  --radius-md: var(--r-card);
  --radius-lg: var(--r-card-lg);
  --radius-xl: var(--r-panel);
  --radius-pill: var(--r-pill);
  --shadow-sm: 0 4px 12px -6px rgba(0, 0, 0, .6);
  --shadow: var(--shadow-card);
  --shadow-lg: var(--shadow-modal);
  --glow: var(--shadow-cta);
  --glow-strong: var(--shadow-cta-hover);
  --glow-cyan: var(--shadow-cta);
  --inner-hl: var(--hl);
  --ring-danger: 0 0 0 3px rgba(255, 93, 115, .3);
  --font-ui: var(--font);
  --font-mono: var(--mono);
  --ease-out: var(--ease);
  --ease-spring: var(--ease);
  --dur: var(--t-fast);
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--bg);
  scrollbar-color: rgba(255, 170, 130, .22) transparent;
  scrollbar-width: thin;
  scrollbar-gutter: stable;
}
html.is-locked { overflow: hidden; }
body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--fs-body);
  font-weight: 500;
  line-height: 1.55;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}
/* Two soft light pools above the page: warm on the right, violet on the left */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(56vw 44vw at 100% -6%, rgba(255, 106, 61, .10), transparent 70%),
    radial-gradient(60vw 48vw at -6% -8%, rgba(140, 60, 255, .12), transparent 70%),
    radial-gradient(70vw 40vw at 50% 110%, rgba(90, 30, 140, .10), transparent 70%);
}
h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd { margin: 0; }
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.25; color: var(--text); }
b, strong { font-weight: 700; }
img, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
svg { flex-shrink: 0; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; text-align: inherit; }
button:disabled { cursor: not-allowed; }
a { color: inherit; text-decoration: none; }
hr { border: 0; }
code, kbd, pre, samp { font-family: var(--mono); }
table { border-collapse: collapse; }
[hidden] { display: none !important; }
::selection { background: rgba(255, 122, 61, .38); color: #fff; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: none; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255, 170, 130, .2); border-radius: 8px; border: 3px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background-color: rgba(255, 170, 130, .34); }
::-webkit-scrollbar-corner { background: transparent; }

.icon { display: inline-block; vertical-align: middle; flex-shrink: 0; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Layout */
.app { position: relative; z-index: var(--z-base); min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.view { flex: 1 0 auto; padding: 40px 0 96px; position: relative; }
.page { animation: rise-in var(--t-enter) var(--ease) both; }
.view-loader { display: grid; place-items: center; min-height: 40vh; animation: fade-in var(--t-menu) var(--ease) 180ms both; }
.noscript { padding: 80px 16px; text-align: center; color: var(--text-2); }

.fade-in { animation: fade-in var(--t-enter) var(--ease) both; }
.rise-in { animation: rise-in var(--t-enter) var(--ease) both; }
.stagger > * { animation: rise-in var(--t-enter) var(--ease) both; }
.stagger > :nth-child(2) { animation-delay: 40ms; }
.stagger > :nth-child(3) { animation-delay: 80ms; }
.stagger > :nth-child(4) { animation-delay: 120ms; }
.stagger > :nth-child(5) { animation-delay: 160ms; }
.stagger > :nth-child(n+6) { animation-delay: 200ms; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise-in { from { opacity: 0; transform: translate3d(0, 8px, 0); } to { opacity: 1; transform: none; } }

.section { margin-top: var(--space-11); }
.section:first-child { margin-top: 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; margin-bottom: 24px; }
.section-head__title { font-family: var(--font-display); font-size: var(--fs-h2); font-weight: 700; line-height: 1.12; letter-spacing: -.02em; overflow-wrap: anywhere; }
.section-head__lead { margin-top: 8px; color: var(--text-2); font-size: var(--fs-sm); }

.grid { display: grid; gap: var(--space-6); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--auto { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grid--sidebar { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; }
.grid--sidebar-left { grid-template-columns: 320px minmax(0, 1fr); align-items: start; }
.grid--wide-narrow { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: start; }
.grid--gap-sm { gap: var(--space-4); }
.grid--gap-lg { gap: var(--space-7); }

.stack { display: flex; flex-direction: column; gap: var(--space-4); }
.stack--xs { gap: var(--space-2); }
.stack--sm { gap: var(--space-3); }
.stack--lg { gap: var(--space-6); }
.stack--xl { gap: var(--space-7); }
.row { display: flex; align-items: center; gap: var(--space-3); }
.row--top { align-items: flex-start; }
.row--between { justify-content: space-between; }
.row--end { justify-content: flex-end; }
.row--center { justify-content: center; }
.row--wrap { flex-wrap: wrap; }
.row--sm { gap: var(--space-2); }
.row--lg { gap: var(--space-5); }
.grow { flex: 1 1 auto; min-width: 0; }
.spacer { flex: 1 1 auto; }

.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: var(--space-1); }
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mt-5 { margin-top: var(--space-5); }
.mt-6 { margin-top: var(--space-6); }
.mt-7 { margin-top: var(--space-7); }
.mt-8 { margin-top: var(--space-8); }
.mb-0 { margin-bottom: 0 !important; }
.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-5 { margin-bottom: var(--space-5); }
.mb-6 { margin-bottom: var(--space-6); }
.w-100 { width: 100%; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.nowrap { white-space: nowrap; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.break { overflow-wrap: anywhere; word-break: break-word; }
.tabular { font-variant-numeric: tabular-nums; }

/* Type */
.display {
  font-family: var(--font-display);
  font-size: var(--fs-hero);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -.025em;
  text-wrap: balance;
}
.h1, .page-head__title { font-family: var(--font-display); font-size: var(--fs-title); font-weight: 700; line-height: 1.08; letter-spacing: -.025em; }
.h2 { font-family: var(--font-display); font-size: var(--fs-h2); font-weight: 700; line-height: 1.12; letter-spacing: -.02em; }
.h3 { font-size: 20px; font-weight: 800; line-height: 1.3; letter-spacing: -.01em; }
.h4 { font-size: 16px; font-weight: 700; line-height: 1.35; }
.lead { font-size: 17px; line-height: 1.6; color: var(--text-2); max-width: 38rem; }
.muted { color: var(--text-2); }
.faint { color: var(--text-3); }
.small { font-size: var(--fs-sm); line-height: 1.5; }
.tiny { font-size: var(--fs-meta); line-height: 1.4; }
.strong { font-weight: 700; color: var(--text); }
.mono { font-family: var(--mono); font-size: .92em; letter-spacing: 0; }
.meta { font-size: var(--fs-meta); font-weight: 600; line-height: 1.4; color: var(--text-3); }
.money { font-family: var(--font-display); font-weight: 600; color: var(--text); white-space: nowrap; letter-spacing: -.01em; }
.money--accent, .text-accent { color: var(--accent-2); }
.text-success { color: var(--pos); }
.text-warning { color: var(--warn); }
.text-danger { color: var(--neg-text); }
.text-cyan { color: var(--accent-2); }
.text-lime { color: var(--lime); }
.text-grad, .grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-kicker);
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-2);
}
.kicker > .icon { color: var(--accent); }
.kicker--muted { color: var(--text-3); }
.kicker--pill {
  height: 32px;
  padding: 0 14px 0 10px;
  border-radius: var(--r-pill);
  background: rgba(18, 10, 30, .5);
  border: 1px solid var(--line-strong);
  color: var(--text);
}
.kicker__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 12px rgba(255, 122, 61, .8); flex: none; }
.link { color: var(--accent-2); text-decoration: underline; text-decoration-color: rgba(255, 179, 71, .35); text-underline-offset: 3px; transition: text-decoration-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease); }
.link:hover { text-decoration-color: currentColor; }
.link-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 2px; border-radius: var(--r-xs);
  font-size: var(--fs-sm); font-weight: 700; color: var(--accent-2);
  transition: color var(--t-fast) var(--ease);
}
.link-btn:hover { color: #ffd08a; }
.link-btn--muted { color: var(--text-2); font-weight: 600; }
.link-btn--muted:hover { color: var(--text); }

.prose { color: var(--text-2); line-height: 1.65; overflow-wrap: anywhere; }
.prose p + p { margin-top: .75em; }
.prose a { color: var(--accent-2); text-decoration: underline; text-decoration-color: rgba(255, 179, 71, .35); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: currentColor; }
.prose ul, .prose ol { margin: .6em 0; padding-left: 1.3em; }
.prose li + li { margin-top: .3em; }
.prose li::marker { color: var(--accent); }
.prose strong { color: var(--text); font-weight: 700; }
.prose code { font-size: .9em; background: rgba(12, 6, 20, .6); border: 1px solid var(--line); border-radius: var(--r-xs); padding: .1em .4em; color: var(--text); }

/* Rich description text (richText) */
.rich { color: var(--text-2); font-size: var(--fs-body); line-height: 1.65; overflow-wrap: anywhere; }
.rich > * { margin: 0; }
.rich > * + * { margin-top: 12px; }
.rich > * + .rich__h { margin-top: 28px; }
.rich > .rich__h + * { margin-top: 12px; }
.rich__h {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-kicker);
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-2);
}
.rich__h::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line-warm), transparent); }
.rich ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.rich li { position: relative; padding-left: 22px; }
.rich li::before { content: ''; position: absolute; left: 4px; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 10px rgba(255, 122, 61, .5); }
.rich strong { font-weight: 700; color: var(--text); }

/* Page head */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; margin: 8px 0 32px; }
.page-head__main { min-width: 0; max-width: 820px; }
.page-head__kicker, .page-head__main .kicker { display: block; margin-bottom: 12px; font-size: var(--fs-kicker); font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-2); }
.page-head__title { margin: 0; overflow-wrap: anywhere; }
.page-head__badge { display: inline-flex; vertical-align: middle; margin-left: 12px; transform: translateY(-.2em); letter-spacing: 0; font-family: var(--font); }
.page-head__lead { margin-top: 12px; color: var(--text-2); font-size: var(--fs-body); line-height: 1.6; max-width: 640px; }
.page-head__actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* Cards */
.card {
  position: relative;
  background: var(--grad-card), var(--surface);
  border: 1px solid var(--line-warm);
  border-radius: var(--r-card-lg);
  padding: 28px;
  box-shadow: var(--shadow-card), var(--hl);
  transition: border-color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.card--sm { padding: 20px; border-radius: var(--r-card); }
.card--lg { padding: 36px; border-radius: var(--r-panel); }
.card--flush { padding: 0; overflow: hidden; }
.card--raised { background: linear-gradient(180deg, rgba(52, 30, 78, .8), rgba(30, 18, 48, .8)), var(--raised); }
.card--hover, a.card, .card[data-href] { cursor: pointer; }
.card--hover:hover, a.card:hover, .card[data-href]:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.card--glow, .card--gradient {
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(255, 61, 141, .22), transparent 55%),
    radial-gradient(90% 90% at 0% 100%, rgba(140, 60, 255, .18), transparent 60%),
    var(--grad-panel);
  border-color: var(--line-strong);
}
.card--flat { background: transparent; box-shadow: none; }
.card--inset { background: rgba(12, 6, 20, .55); border-color: var(--line); padding: 16px; border-radius: var(--r-card); box-shadow: none; }
.card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px 16px; margin-bottom: 20px; flex-wrap: wrap; }
.card__title { font-size: 20px; font-weight: 800; line-height: 1.3; letter-spacing: -.01em; }
.card__sub { margin-top: 4px; color: var(--text-2); font-size: var(--fs-sm); }
.card__foot { margin-top: 24px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* Stage: violet light, warm beams and haze for banners and feature panels */
.stage {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(70% 120% at 88% 10%, rgba(255, 61, 141, .26), transparent 60%),
    radial-gradient(60% 90% at 100% 100%, rgba(255, 122, 61, .18), transparent 65%),
    radial-gradient(70% 120% at 0% 100%, rgba(120, 50, 230, .28), transparent 60%),
    var(--grad-panel);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-panel);
}
.stage::before {
  content: '';
  position: absolute;
  inset: -20% -10% 0 30%;
  z-index: -1;
  pointer-events: none;
  background:
    conic-gradient(from 196deg at 72% -6%, transparent 0deg, rgba(255, 140, 210, .16) 4deg, transparent 9deg, transparent 15deg, rgba(255, 180, 130, .12) 18deg, transparent 23deg, transparent 31deg, rgba(200, 120, 255, .14) 34deg, transparent 40deg, transparent 52deg, rgba(255, 120, 170, .1) 56deg, transparent 62deg, transparent 360deg);
  -webkit-mask-image: radial-gradient(80% 90% at 72% 0%, #000 0%, transparent 80%);
  mask-image: radial-gradient(80% 90% at 72% 0%, #000 0%, transparent 80%);
  filter: blur(2px);
}
.stage::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 55%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60% 70% at 70% 100%, rgba(255, 70, 150, .22), transparent 70%),
    linear-gradient(0deg, rgba(12, 6, 20, .35), transparent);
}

.tile {
  display: flex; align-items: center; gap: 14px;
  min-height: 72px; padding: 14px 20px;
  border-radius: var(--r-card);
  background: rgba(26, 14, 40, .55);
  border: 1px solid var(--line-warm);
  transition: border-color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}
.tile:hover { border-color: var(--line-strong); }
.tile__icon { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 12px; color: var(--accent); background: var(--accent-soft); }
.tile__label { font-size: var(--fs-meta); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--text); line-height: 1.4; }

.icon-box, .icon-orb {
  display: inline-grid; place-items: center; flex: none;
  width: 44px; height: 44px; border-radius: 14px;
  color: var(--accent);
  background: linear-gradient(180deg, rgba(255, 122, 61, .16), rgba(255, 61, 141, .1));
  border: 1px solid var(--line-warm);
}
.icon-box--sm, .icon-orb--sm { width: 36px; height: 36px; border-radius: 12px; }
.icon-box--lg, .icon-orb--lg { width: 52px; height: 52px; border-radius: 16px; }
.icon-box--xl, .icon-orb--xl { width: 64px; height: 64px; border-radius: 20px; }
.icon-box--round, .icon-orb--round { border-radius: 50%; }
.icon-box--pos, .icon-orb--success { color: var(--pos); background: var(--pos-soft); border-color: rgba(126, 226, 168, .22); }
.icon-box--warn, .icon-orb--warn { color: var(--warn); background: var(--warn-soft); border-color: rgba(255, 204, 102, .22); }
.icon-box--neg, .icon-orb--danger { color: var(--neg-text); background: var(--neg-soft); border-color: rgba(255, 93, 115, .24); }
.icon-box--accent { color: var(--accent-2); }
.icon-box--grad, .icon-orb--grad, .icon-orb--cyan { color: var(--on-accent); background: var(--grad); border-color: transparent; box-shadow: var(--shadow-cta); }

/* Buttons */
.btn {
  --btn-h: 48px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: var(--btn-h);
  padding: 0 22px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, .04);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--fs-body);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  transition: background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease), opacity var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.btn:hover { background-color: rgba(255, 255, 255, .08); border-color: rgba(255, 170, 130, .42); }
.btn:active { transform: scale(.98); }
.btn > .icon { color: currentColor; }
.btn--primary, .btn--accent {
  color: var(--on-accent);
  background: var(--grad);
  border-color: transparent;
  box-shadow: var(--shadow-cta), var(--hl-btn);
}
.btn--primary:hover, .btn--accent:hover { background: var(--grad-hover); border-color: transparent; box-shadow: var(--shadow-cta-hover), var(--hl-btn); transform: translateY(-1px); }
.btn--primary:active, .btn--accent:active { background: var(--grad-press); transform: scale(.98); }
.btn--secondary, .btn--soft, .btn--cyan { background: rgba(255, 255, 255, .04); border-color: var(--line-strong); color: var(--text); box-shadow: var(--hl); }
.btn--secondary:hover, .btn--soft:hover, .btn--cyan:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 170, 130, .44); }
.btn--outline {
  background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad) border-box;
  border: 1.5px solid transparent;
  color: var(--text);
}
.btn--outline:hover { background: linear-gradient(#26163a, #26163a) padding-box, var(--grad-hover) border-box; box-shadow: 0 8px 24px -10px rgba(255, 90, 80, .55); }
.btn--ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.btn--ghost:hover { background: rgba(255, 255, 255, .06); border-color: transparent; color: var(--text); }
.btn--danger { background: var(--neg-soft); border-color: rgba(255, 93, 115, .3); color: var(--neg-text); }
.btn--danger:hover { background: rgba(255, 93, 115, .18); border-color: rgba(255, 93, 115, .5); }
.btn--success { background: var(--pos-soft); border-color: rgba(126, 226, 168, .3); color: var(--pos); }
.btn--success:hover { background: rgba(126, 226, 168, .18); border-color: rgba(126, 226, 168, .5); }
.btn--link { height: auto; padding: 4px 2px; border: 0; border-radius: var(--r-xs); background: none; color: var(--accent-2); text-decoration: underline; text-decoration-color: rgba(255, 179, 71, .35); text-underline-offset: 3px; box-shadow: none; }
.btn--link:hover { background: none; text-decoration-color: currentColor; }
.btn--xs { --btn-h: 32px; padding: 0 12px; font-size: var(--fs-xs); gap: 6px; }
.btn--sm { --btn-h: 40px; padding: 0 16px; font-size: var(--fs-sm); gap: 8px; }
.btn--lg { --btn-h: 56px; padding: 0 28px; font-size: 16px; }
.btn--xl { --btn-h: 56px; padding: 0 32px; font-size: 16px; }
.btn--block { display: flex; width: 100%; }
.btn--icon { width: var(--btn-h); padding: 0; flex: none; }
.btn--pill { border-radius: var(--r-pill); }
.btn--arrow::after {
  content: '';
  width: 18px;
  height: 18px;
  flex: none;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m13 6 6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m13 6 6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform var(--t-fast) var(--ease);
}
.btn--arrow:hover::after { transform: translateX(2px); }
.btn:disabled, .btn.is-disabled, .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; transform: none; pointer-events: none; box-shadow: none; }
.btn.is-loading, .btn.btn--loading { color: transparent !important; pointer-events: none; opacity: 1; }
.btn.is-loading > *, .btn.btn--loading > *, .btn.is-loading::after { visibility: hidden; }
.btn.is-loading::before, .btn.btn--loading::before {
  content: '';
  position: absolute;
  inset: 0;
  margin: auto;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255, 246, 239, .22);
  border-top-color: var(--text);
  animation: spin .7s linear infinite;
}
.btn--primary.is-loading::before, .btn--primary.btn--loading::before,
.btn--accent.is-loading::before, .btn--accent.btn--loading::before { border-color: rgba(26, 11, 18, .2); border-top-color: var(--on-accent); }
.btn-group { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.btn-group--end { justify-content: flex-end; }

/* Tags, badges, chips, status dots */
.tag, .badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 10px;
  border-radius: var(--r-pill);
  font-size: var(--fs-meta);
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  color: var(--text-2);
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--line-soft);
}
.tag::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--text-3); flex: none; }
.tag--plain::before { display: none; }
.tag--pos::before, .badge--success::before, .badge--lime::before { background: var(--lime); box-shadow: 0 0 8px rgba(200, 241, 105, .6); }
.tag--warn::before, .badge--warn::before { background: var(--warn); }
.tag--neg::before, .badge--danger::before { background: var(--neg); }
.tag--accent::before { background: var(--accent); }
.tag--accent { color: var(--accent-2); border-color: var(--line-warm); background: var(--accent-soft); }
.tag--grad { color: var(--on-accent); background: var(--grad); border-color: transparent; }
.tag--grad::before { display: none; }
.tag--mono, .badge--mono { font-family: var(--mono); font-weight: 500; }
.badge--success, .badge--lime { color: var(--lime); background: var(--lime-soft); border-color: rgba(200, 241, 105, .2); }
.badge--warn { color: var(--warn); background: var(--warn-soft); border-color: rgba(255, 204, 102, .2); }
.badge--danger { color: var(--neg-text); background: var(--neg-soft); border-color: rgba(255, 93, 115, .22); }
.badge--success::before, .badge--lime::before, .badge--warn::before, .badge--danger::before { content: ''; width: 6px; height: 6px; border-radius: 50%; flex: none; }
.badge--info, .badge--muted { color: var(--text-2); }
.badge--guest { color: #ff8fc0; background: rgba(255, 61, 141, .12); border-color: rgba(255, 61, 141, .26); }
.badge--accent { color: var(--accent-2); background: var(--accent-soft); border-color: var(--line-strong); }
.badge--lg { height: 30px; padding: 0 12px; font-size: var(--fs-xs); }
.badge--sm { height: 22px; padding: 0 8px; font-size: 11px; }
.badge--pill { border-radius: var(--r-pill); }
.badge--dot::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border-radius: var(--r-pill);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--text-2);
  background: rgba(26, 14, 40, .6);
  border: 1px solid var(--line-soft);
  white-space: nowrap;
  cursor: pointer;
  transition: color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.chip:hover { color: var(--text); border-color: var(--line-strong); }
.chip.is-active, .chip[aria-pressed="true"], .chip[aria-selected="true"] {
  color: var(--on-accent);
  background: var(--grad);
  border-color: transparent;
  box-shadow: 0 8px 22px -10px rgba(255, 90, 80, .7), var(--hl-btn);
}
.chip__count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: var(--r-pill); font-size: 11px; font-weight: 800; color: var(--text-3); background: rgba(255, 255, 255, .06); }
.chip.is-active .chip__count, .chip[aria-pressed="true"] .chip__count, .chip[aria-selected="true"] .chip__count { color: var(--on-accent); background: rgba(26, 11, 18, .14); }
.chip--sm { height: 32px; padding: 0 12px; font-size: var(--fs-xs); }
.chip-row { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 0; }
.chip-row::-webkit-scrollbar { display: none; }

.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); flex: none; }
.status-dot--pos { background: var(--lime); box-shadow: 0 0 8px rgba(200, 241, 105, .55); }
.status-dot--warn { background: var(--warn); box-shadow: 0 0 8px rgba(255, 204, 102, .45); }
.status-dot--neg { background: var(--neg); }
.status-dot--accent { background: var(--accent); box-shadow: 0 0 8px rgba(255, 122, 61, .6); }
.status-dot--cyan { background: var(--accent-2); }
.status-dot--off { background: var(--text-3); opacity: .6; }

/* Forms */
.form { display: flex; flex-direction: column; gap: 20px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.label { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-size: var(--fs-xs); font-weight: 700; color: var(--text-2); }
.label__opt { font-weight: 600; color: var(--text-3); font-size: var(--fs-meta); }
.input, .select, .textarea {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  background: var(--input);
  border: 1px solid var(--line-input);
  border-radius: var(--r-control);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--fs-body);
  font-weight: 600;
  line-height: 1.4;
  outline: none;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .25);
  -webkit-appearance: none;
  appearance: none;
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}
.input::placeholder, .textarea::placeholder { color: var(--text-3); opacity: 1; font-weight: 500; }
.input:hover, .select:hover, .textarea:hover { border-color: rgba(255, 170, 130, .22); }
.input:focus, .select:focus, .textarea:focus { border-color: rgba(255, 140, 90, .7); box-shadow: var(--ring); }
.input:disabled, .select:disabled, .textarea:disabled { color: var(--text-3); cursor: not-allowed; background-color: rgba(23, 13, 36, .5); border-color: var(--line); }
.input[readonly] { color: var(--text-2); background-color: rgba(23, 13, 36, .6); cursor: default; }
.input[readonly]:focus { border-color: var(--line-strong); box-shadow: none; }
.input--sm, .select--sm { height: 40px; font-size: var(--fs-sm); padding: 0 14px; border-radius: 12px; }
.input--lg { height: 56px; font-size: 16px; border-radius: var(--r-control-lg); padding: 0 18px; }
.input--mono, .input--code { font-family: var(--mono); font-weight: 500; letter-spacing: .04em; }
.input--code { text-transform: uppercase; }
.input--otp { height: 64px; text-align: center; font-family: var(--mono); font-size: 26px; font-weight: 600; letter-spacing: .4em; padding-left: calc(16px + .4em); border-radius: var(--r-control-lg); }
.input--otp::placeholder { color: rgba(154, 137, 173, .45); }
.input--amount { height: 56px; font-family: var(--font-display); font-size: 22px; font-weight: 600; letter-spacing: -.01em; border-radius: var(--r-control-lg); }
.textarea { height: auto; min-height: 120px; padding: 14px 16px; resize: vertical; line-height: 1.55; }
.select {
  padding-right: 44px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23ffb347' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px 16px;
  text-overflow: ellipsis;
}
.select option, .select optgroup { background: var(--surface); color: var(--text); }
.input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
.input[type="number"]::-webkit-inner-spin-button, .input[type="number"]::-webkit-outer-spin-button,
.qty__input::-webkit-inner-spin-button, .qty__input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.input[type="search"]::-webkit-search-cancel-button, .input[type="search"]::-webkit-search-decoration { -webkit-appearance: none; appearance: none; display: none; }
.input:-webkit-autofill, .input:-webkit-autofill:hover, .input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text);
  -webkit-box-shadow: 0 0 0 1000px var(--input) inset;
  caret-color: var(--text);
  transition: background-color 9999s;
}
.input[type="file"] { display: flex; align-items: center; padding: 0 6px; font-size: var(--fs-sm); color: var(--text-2); }
.input[type="file"]::file-selector-button { height: 36px; margin-right: 12px; padding: 0 14px; border-radius: var(--r-pill); border: 1px solid var(--line-strong); background: rgba(255, 255, 255, .05); color: var(--text); font: inherit; font-weight: 700; cursor: pointer; }
.hint { font-size: var(--fs-xs); font-weight: 500; color: var(--text-3); line-height: 1.5; }
.error { display: flex; align-items: flex-start; gap: 6px; font-size: var(--fs-xs); font-weight: 600; color: var(--neg-text); line-height: 1.45; animation: fade-in var(--t-menu) var(--ease); }
.error .icon { margin-top: 1px; }
.field.has-error .input, .field.has-error .select, .field.has-error .textarea, .input.is-invalid { border-color: var(--neg); box-shadow: var(--ring-danger); }

.input-wrap { position: relative; display: flex; align-items: center; }
.input-wrap > .input, .input-wrap > .select { flex: 1 1 auto; }
.input-wrap--icon > .input { padding-left: 46px; }
.input-wrap__icon { position: absolute; left: 16px; color: var(--accent-2); pointer-events: none; display: grid; place-items: center; }
.input-wrap--action > .input { padding-right: 48px; }
.input-wrap__action {
  position: absolute; right: 6px;
  display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 50%;
  color: var(--text-3);
  transition: color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}
.input-wrap__action:hover { color: var(--text); background: rgba(255, 255, 255, .07); }
.input-wrap--suffix > .input { padding-right: 72px; }
.input-wrap__suffix { position: absolute; right: 16px; color: var(--accent-2); font-size: var(--fs-xs); font-weight: 800; letter-spacing: .04em; pointer-events: none; }

.check { display: inline-flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: var(--fs-sm); font-weight: 500; color: var(--text-2); line-height: 1.45; }
.check input { -webkit-appearance: none; appearance: none; flex: none; width: 20px; height: 20px; margin: 0; border-radius: 6px; border: 1px solid var(--line-strong); background: var(--input); display: grid; place-items: center; cursor: pointer; transition: background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease); }
.check input[type="radio"] { border-radius: 50%; }
.check input:checked { background: var(--grad); border-color: transparent; }
.check input:checked::after { content: ''; width: 10px; height: 5px; border: 2px solid var(--on-accent); border-top: 0; border-right: 0; transform: translateY(-1px) rotate(-45deg); }
.check input[type="radio"]:checked::after { width: 8px; height: 8px; border: 0; border-radius: 50%; background: var(--on-accent); transform: none; }
.check input:focus-visible { box-shadow: var(--ring); }

.switch { position: relative; display: inline-flex; align-items: center; gap: 12px; cursor: pointer; font-size: var(--fs-sm); font-weight: 600; color: var(--text-2); }
.switch input { -webkit-appearance: none; appearance: none; width: 44px; height: 26px; margin: 0; border-radius: 13px; background: var(--raised-2); border: 1px solid var(--line-soft); position: relative; cursor: pointer; flex: none; transition: background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease); }
.switch input::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--text-2); transition: transform var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease); }
.switch input:checked { background: var(--grad); border-color: transparent; }
.switch input:checked::after { transform: translateX(18px); background: #fff; }
.switch input:focus-visible { box-shadow: var(--ring); }

.file-drop {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 76px;
  padding: 14px 16px;
  border-radius: var(--r-card);
  border: 1px dashed rgba(255, 170, 130, .32);
  background: rgba(23, 13, 36, .6);
  cursor: pointer;
  transition: border-color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}
.file-drop:hover { border-color: rgba(255, 170, 130, .5); background: rgba(36, 21, 54, .7); }
.file-drop.is-dragover { border-color: var(--accent); border-style: solid; background: var(--accent-soft); }
.file-drop:focus-within { border-color: var(--accent); box-shadow: var(--ring); }
.file-drop__input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; pointer-events: none; }
.file-drop__icon { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 14px; color: var(--accent); background: var(--accent-soft); }
.file-drop__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.file-drop__title { font-weight: 700; font-size: var(--fs-sm); color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-drop__hint { font-size: var(--fs-xs); color: var(--text-3); }
.file-drop__clear { display: none; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: var(--text-3); flex: none; transition: color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease); }
.file-drop__clear:hover { color: var(--text); background: rgba(255, 255, 255, .07); }
.file-drop.has-file { border-style: solid; border-color: rgba(126, 226, 168, .35); }
.file-drop.has-file .file-drop__icon { color: var(--pos); background: var(--pos-soft); }
.file-drop.has-file .file-drop__clear { display: grid; }

.qty { display: inline-flex; align-items: center; height: 48px; padding: 4px; border-radius: var(--r-pill); background: var(--input); border: 1px solid var(--line-input); }
.qty__btn { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: var(--text-2); background: rgba(255, 255, 255, .05); transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), opacity var(--t-fast) var(--ease); }
.qty__btn:hover:not(:disabled) { background: rgba(255, 255, 255, .1); color: var(--text); }
.qty__btn:disabled { opacity: .35; }
.qty__input { width: 52px; height: 38px; border: 0; background: transparent; text-align: center; font-family: var(--font-display); font-weight: 600; font-size: 16px; color: var(--text); outline: none; -moz-appearance: textfield; appearance: textfield; }
.qty:focus-within { border-color: rgba(255, 140, 90, .7); box-shadow: var(--ring); }

/* Segmented control and tabs */
.seg { display: inline-flex; align-self: flex-start; gap: 4px; padding: 4px; border-radius: var(--r-pill); background: rgba(12, 6, 20, .55); border: 1px solid var(--line-soft); }
.seg--block { display: flex; align-self: stretch; width: 100%; }
.seg--block .seg__btn { flex: 1 1 0; }
.seg__btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 38px; padding: 0 16px; border-radius: var(--r-pill);
  font-size: var(--fs-sm); font-weight: 700; color: var(--text-2);
  white-space: nowrap;
  transition: color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.seg__btn:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.seg__btn.is-active, .seg__btn[aria-selected="true"], .seg__btn[aria-pressed="true"] {
  color: var(--on-accent);
  background: var(--grad);
  box-shadow: 0 6px 18px -8px rgba(255, 90, 80, .75), var(--hl-btn);
}
.seg__btn .chip__count { background: rgba(255, 255, 255, .06); }
.seg__btn.is-active .chip__count, .seg__btn[aria-selected="true"] .chip__count, .seg__btn[aria-pressed="true"] .chip__count { color: var(--on-accent); background: rgba(26, 11, 18, .14); }
.seg--sm .seg__btn { height: 32px; padding: 0 12px; font-size: var(--fs-xs); }

.tabs { display: flex; gap: 28px; border-bottom: 1px solid var(--line-soft); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 14px 0; font-size: var(--fs-sm); font-weight: 700; color: var(--text-2); white-space: nowrap; transition: color var(--t-fast) var(--ease); }
.tab:hover { color: var(--text); }
.tab::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--grad); opacity: 0; transition: opacity var(--t-fast) var(--ease); }
.tab.is-active, .tab[aria-selected="true"] { color: var(--text); }
.tab.is-active::after, .tab[aria-selected="true"]::after { opacity: 1; }
.tab__count { font-size: var(--fs-meta); font-weight: 800; color: var(--accent-2); }

/* Alerts and notices */
.alert {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 16px;
  border-radius: var(--r-control-lg);
  font-size: var(--fs-sm); font-weight: 500; line-height: 1.55;
  color: var(--text-2);
  background: rgba(12, 6, 20, .45);
  border: 1px solid var(--line-soft);
}
.alert > .icon { margin-top: 2px; color: var(--text-3); }
.alert strong { color: var(--text); }
.alert--info > .icon { color: var(--accent-2); }
.alert--success { border-color: rgba(126, 226, 168, .24); background: rgba(126, 226, 168, .06); }
.alert--success > .icon { color: var(--pos); }
.alert--warn { border-color: rgba(255, 204, 102, .26); background: rgba(255, 204, 102, .06); }
.alert--warn > .icon { color: var(--warn); }
.alert--danger { border-color: rgba(255, 93, 115, .32); background: rgba(255, 93, 115, .07); color: var(--text); }
.alert--danger > .icon { color: var(--neg-text); }
.form-alert { animation: fade-in var(--t-menu) var(--ease); }

.guest-notice {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 20px 24px;
  border-radius: var(--r-card-lg);
  background:
    radial-gradient(80% 140% at 100% 0%, rgba(255, 61, 141, .14), transparent 60%),
    var(--grad-card), var(--surface);
  border: 1px solid var(--line-warm);
}
.guest-notice__icon { display: grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: 16px; color: var(--accent); background: var(--accent-soft); border: 1px solid var(--line-warm); }
.guest-notice__body { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.guest-notice__title { font-size: 16px; font-weight: 800; color: var(--text); }
.guest-notice__text { color: var(--text-2); font-size: var(--fs-sm); }
.guest-notice__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.guest-notice--compact { padding: 14px 16px; gap: 12px; border-radius: var(--r-card); }
.guest-notice--compact .guest-notice__icon { width: 40px; height: 40px; border-radius: 12px; }

/* Empty state */
.empty-state { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 48px 24px; }
.card.empty-state {
  padding: 64px 24px;
  background:
    radial-gradient(60% 100% at 50% 0%, rgba(255, 61, 141, .1), transparent 70%),
    var(--grad-card), var(--surface);
}
.empty-state__icon { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 12px; border-radius: 18px; color: var(--accent); background: linear-gradient(180deg, rgba(255, 122, 61, .18), rgba(255, 61, 141, .1)); border: 1px solid var(--line-warm); }
.empty-state__icon--danger { color: var(--neg-text); background: var(--neg-soft); border-color: rgba(255, 93, 115, .24); }
.empty-state__icon--success { color: var(--pos); background: var(--pos-soft); border-color: rgba(126, 226, 168, .22); }
.empty-state__icon--warn { color: var(--warn); background: var(--warn-soft); border-color: rgba(255, 204, 102, .22); }
.empty-state__title { font-size: 20px; font-weight: 800; letter-spacing: -.01em; }
.empty-state__text { color: var(--text-2); max-width: 440px; font-size: var(--fs-body); }
.empty-state__actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 16px; }

/* Loading */
.spinner { display: inline-block; width: 20px; height: 20px; border-radius: 50%; border: 2px solid rgba(255, 170, 130, .16); border-top-color: var(--accent); animation: spin .8s linear infinite; flex: none; }
.spinner--sm { width: 14px; height: 14px; border-width: 1.5px; }
.spinner--lg { width: 32px; height: 32px; border-width: 2.5px; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading-block { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 48px 20px; color: var(--text-3); font-size: var(--fs-sm); font-weight: 600; text-align: center; }

.skeleton {
  display: block;
  border-radius: var(--r-tag);
  background: linear-gradient(90deg, rgba(255, 255, 255, .05) 30%, rgba(255, 190, 160, .1) 50%, rgba(255, 255, 255, .05) 70%);
  background-size: 300% 100%;
  animation: shimmer 1.8s linear infinite;
}
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }
.skeleton--text { height: 12px; width: 100%; }
.skeleton--short { width: 56%; }
.skeleton--title { height: 18px; width: 72%; }
.skeleton--media { aspect-ratio: 4 / 3; width: 100%; border-radius: var(--r-card); }
.skeleton--pill { height: 26px; width: 84px; border-radius: var(--r-pill); }
.skeleton--btn { height: 40px; width: 112px; border-radius: var(--r-pill); }
.skeleton--avatar { width: 44px; height: 44px; border-radius: 50%; flex: none; }
.skeleton--block { height: 120px; width: 100%; border-radius: var(--r-card); }
.skeleton-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.skeleton-card { display: flex; flex-direction: column; gap: 12px; padding: 12px 12px 20px; border-radius: var(--r-card-lg); border: 1px solid var(--line-warm); background: var(--grad-card), var(--surface); }
.skeleton-card__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.skeleton-rows { display: flex; flex-direction: column; }
.skeleton-row { display: flex; align-items: center; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.skeleton-row:last-child { border-bottom: 0; }
.skeleton-row__body { flex: 1; display: flex; flex-direction: column; gap: 8px; }

/* Accordion: numbered outlined rows */
.accordion { display: flex; flex-direction: column; gap: 12px; counter-reset: acc; }
.accordion__item {
  counter-increment: acc;
  border-radius: var(--r-card-lg);
  background: linear-gradient(180deg, rgba(36, 20, 56, .7), rgba(24, 14, 38, .7)), var(--surface);
  border: 1px solid rgba(190, 120, 255, .16);
  transition: border-color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}
.accordion__item:hover { border-color: var(--line-strong); }
.accordion__item.is-open { border-color: var(--line-strong); }
.accordion__head {
  display: flex; align-items: center; gap: 20px;
  width: 100%; min-height: 84px; padding: 18px 24px;
  border-radius: inherit;
  text-align: left;
  font-size: 16px; font-weight: 700; color: var(--text); line-height: 1.45;
}
.accordion__head:focus-visible { outline-offset: -2px; }
.accordion__num { flex: none; min-width: 22px; font-family: var(--mono); font-size: 0; font-weight: 600; color: var(--num); }
.accordion__num::before { content: counter(acc, decimal-leading-zero); font-size: var(--fs-meta); letter-spacing: .02em; }
.accordion__title { flex: 1; min-width: 0; }
.accordion__icon { position: relative; display: block; flex: none; width: 24px; height: 24px; color: var(--accent-2); transition: transform var(--t-menu) var(--ease); }
.accordion__icon > .icon { display: none; }
.accordion__icon::before, .accordion__icon::after { content: ''; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; margin: -1px 0 0 -7px; border-radius: 1px; background: currentColor; }
.accordion__icon::after { transform: rotate(90deg); }
.accordion__item.is-open .accordion__icon { transform: rotate(45deg); }
.accordion__panel { display: none; }
.accordion__item.is-open .accordion__panel { display: block; animation: rise-in var(--t-menu) var(--ease) both; }
.accordion__body { padding: 0 64px 24px 66px; font-size: var(--fs-body); }
.accordion--plain .accordion__body { padding-left: 24px; }
.accordion--cards { gap: 12px; }
.accordion--flat { gap: 0; border-top: 1px solid var(--line); }
.accordion--flat .accordion__item { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none; }
.accordion--flat .accordion__head { min-height: 64px; padding: 16px 4px; }
.accordion--flat .accordion__body { padding: 0 4px 20px 46px; }

/* Modal and mobile sheet */
.modal {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: flex;
  padding: 48px 24px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.modal__backdrop { position: fixed; inset: 0; background: rgba(8, 3, 14, .74); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); opacity: 0; transition: opacity var(--t-menu) var(--ease); }
.modal__dialog {
  --modal-w: 560px;
  position: relative;
  margin: auto;
  width: 100%;
  max-width: var(--modal-w);
  border-radius: var(--r-modal);
  background:
    radial-gradient(80% 50% at 100% 0%, rgba(255, 61, 141, .12), transparent 70%),
    radial-gradient(70% 50% at 0% 0%, rgba(140, 60, 255, .14), transparent 70%),
    linear-gradient(180deg, #221338 0%, #170d26 100%);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-modal), inset 0 1px 0 rgba(255, 255, 255, .06);
  opacity: 0;
  transform: translate3d(0, 12px, 0) scale(.985);
  transition: opacity var(--t-menu) var(--ease), transform var(--t-menu) var(--ease);
  outline: none;
}
.modal.is-open .modal__backdrop { opacity: 1; }
.modal.is-open .modal__dialog { opacity: 1; transform: none; }
.modal.is-closing .modal__backdrop { opacity: 0; }
.modal.is-closing .modal__dialog { opacity: 0; transform: translate3d(0, 6px, 0); }
.modal--sm .modal__dialog { --modal-w: 460px; }
.modal--md .modal__dialog { --modal-w: 580px; }
.modal--lg .modal__dialog { --modal-w: 820px; }
.modal--xl .modal__dialog { --modal-w: 1080px; border-radius: var(--r-panel); }
.modal__close {
  position: absolute; top: 16px; right: 16px; z-index: 3;
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%;
  color: var(--text-2);
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--line-soft);
  transition: color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.modal__close:hover { color: var(--text); background: rgba(255, 255, 255, .1); border-color: var(--line-strong); }
.modal__head { padding: 28px 72px 0 28px; }
.modal__title { font-family: var(--font-display); font-size: 22px; font-weight: 600; line-height: 1.25; letter-spacing: -.015em; }
.modal__content { padding: 28px; }
.modal__head + .modal__content { padding-top: 20px; }
.modal__footer { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; margin-top: 24px; }

.confirm { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding-right: 32px; }
.confirm__icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 8px; border-radius: 16px; color: var(--accent); background: var(--accent-soft); border: 1px solid var(--line-warm); }
.confirm__icon.is-danger { color: var(--neg-text); background: var(--neg-soft); border-color: rgba(255, 93, 115, .26); }
.confirm__title { font-size: 20px; font-weight: 800; letter-spacing: -.01em; }
.confirm__text { color: var(--text-2); font-size: var(--fs-sm); }
.confirm__actions { display: flex; justify-content: flex-end; gap: 8px; width: 100%; margin-top: 20px; }

/* Toasts */
.toast-stack {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  width: min(400px, calc(100vw - 32px));
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  padding: 12px 10px 12px 12px;
  border-radius: var(--r-card);
  background: rgba(30, 17, 48, .92);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-modal), inset 0 1px 0 rgba(255, 255, 255, .06);
  animation: toast-in var(--t-menu) var(--ease) both;
}
.toast.is-leaving { animation: toast-out 160ms var(--ease) forwards; }
.toast__icon { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 50%; color: var(--accent-2); background: var(--accent-soft); }
.toast--success .toast__icon { color: #0f2a1b; background: var(--pos); box-shadow: 0 0 16px rgba(126, 226, 168, .4); }
.toast--error .toast__icon { color: #fff; background: var(--neg); box-shadow: 0 0 16px rgba(255, 93, 115, .4); }
.toast--warn .toast__icon { color: #2a1a00; background: var(--warn); }
.toast__body { flex: 1; min-width: 0; padding-top: 6px; }
.toast__title { font-weight: 800; font-size: var(--fs-sm); margin-bottom: 2px; }
.toast__text { font-size: var(--fs-sm); font-weight: 600; color: var(--text); line-height: 1.45; overflow-wrap: anywhere; }
.toast__close { display: grid; place-items: center; width: 28px; height: 28px; margin-top: 2px; flex: none; border-radius: 50%; color: var(--text-3); transition: color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease); }
.toast__close:hover { color: var(--text); background: rgba(255, 255, 255, .08); }
@keyframes toast-in { from { opacity: 0; transform: translate3d(0, 10px, 0); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translate3d(0, 4px, 0); } }
@keyframes toast-in-top { from { opacity: 0; transform: translate3d(0, -10px, 0); } to { opacity: 1; transform: none; } }
@keyframes toast-out-top { to { opacity: 0; transform: translate3d(0, -4px, 0); } }

/* Copy field */
.copy-field {
  display: flex; align-items: center; gap: 8px;
  min-height: 52px; padding: 6px 6px 6px 16px;
  border-radius: var(--r-control-lg);
  background: rgba(12, 6, 20, .7);
  border: 1px solid var(--line-warm);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, .35);
}
.copy-field__value {
  flex: 1; min-width: 0;
  font-family: var(--mono); font-size: var(--fs-sm); font-weight: 500;
  color: var(--text);
  overflow-wrap: anywhere; word-break: break-all;
  user-select: all; -webkit-user-select: all;
  line-height: 1.5;
}
.copy-field__btn { flex: none; }
.copy-field__btn.is-copied, .btn[data-copy].is-copied { color: var(--pos); border-color: rgba(126, 226, 168, .4); }
.copy-field--multiline { align-items: flex-start; padding-top: 12px; padding-bottom: 12px; }
.copy-field--multiline .copy-field__value { white-space: pre-wrap; word-break: break-word; user-select: text; -webkit-user-select: text; }
.copy-field--multiline .copy-field__btn { margin-top: -6px; }
.copy-field--lg { min-height: 60px; }
.copy-field--lg .copy-field__value { font-family: var(--font-display); font-size: 20px; font-weight: 600; word-break: normal; letter-spacing: -.01em; }

/* Key signature: a license key in segmented mono groups (keyCode) */
.key-code {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  max-width: 100%;
  min-height: 52px;
  padding: 6px 6px 6px 18px;
  border-radius: var(--r-control-lg);
  background: linear-gradient(180deg, rgba(8, 3, 14, .78), rgba(16, 8, 26, .78));
  border: 1px solid var(--line-warm);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, .45), 0 1px 0 rgba(255, 255, 255, .04);
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: .06em;
  color: var(--text);
  vertical-align: middle;
  align-self: flex-start;
}
/* Groups flow as inline blocks: lines break only between groups (each separator travels with the group after it),
   and a text selection copies the original string with its dashes */
.key-code__value { display: block; min-width: 0; padding: 4px 0; }
.key-code__g { display: inline-block; white-space: nowrap; }
.key-code__sep { position: relative; display: inline-block; width: 1.4em; height: 1em; vertical-align: -.1em; text-align: center; letter-spacing: 0; }
.key-code__sep::before { content: ''; position: absolute; left: 50%; top: 50%; width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 8px rgba(255, 122, 61, .7); }
.key-code__orig { position: absolute; left: 50%; top: 0; width: 1px; overflow: hidden; opacity: 0; }
.key-code__copy {
  display: grid; place-items: center;
  width: 40px; height: 40px; flex: none; margin-left: auto;
  border-radius: 12px;
  color: var(--accent-2);
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--line-soft);
  transition: color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.key-code__copy:hover { color: var(--text); background: rgba(255, 255, 255, .1); border-color: var(--line-strong); }
.key-code__copy.is-copied { color: var(--pos); border-color: rgba(126, 226, 168, .4); }
.key-code--block { display: flex; align-self: stretch; width: 100%; }
.key-code--sm { min-height: 40px; gap: 8px; padding: 2px 2px 2px 12px; font-size: var(--fs-xs); border-radius: 12px; }
.key-code--sm .key-code__copy { width: 34px; height: 34px; border-radius: 10px; }
.key-code--lg { min-height: 64px; padding-left: 22px; font-size: 21px; letter-spacing: .07em; }
.key-code--bare { min-height: 0; padding: 0; background: none; border: 0; border-radius: 0; box-shadow: none; }
.key-code--plain .key-code__value { display: block; white-space: pre-wrap; word-break: break-all; letter-spacing: 0; font-weight: 500; }

/* Stat and key-value */
.stat { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.stat__label { font-size: var(--fs-kicker); font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-2); }
.stat__value { font-family: var(--font-display); font-weight: 600; font-size: 30px; line-height: 1.1; letter-spacing: -.02em; color: var(--text); }
.stat__value small { font-family: var(--font); font-size: .5em; font-weight: 800; color: var(--text-2); margin-left: .4em; letter-spacing: .02em; }
.stat__value--accent { color: var(--accent-2); }
.stat__hint { font-size: var(--fs-meta); font-weight: 600; color: var(--text-3); }
.stat--xl .stat__value { font-size: clamp(40px, 3vw + 16px, 60px); }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.stat-grid > .stat { padding: 18px 20px; border-radius: var(--r-card); background: rgba(12, 6, 20, .45); border: 1px solid var(--line-warm); }

.kv { display: flex; flex-direction: column; }
.kv__row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.kv__row:first-child { padding-top: 0; }
.kv__row:last-child { border-bottom: 0; padding-bottom: 0; }
.kv__key { color: var(--text-3); font-size: var(--fs-sm); font-weight: 600; flex: none; }
.kv__val { color: var(--text); font-size: var(--fs-sm); font-weight: 700; text-align: right; min-width: 0; overflow-wrap: anywhere; }

/* List rows */
.list, .table-list { display: flex; flex-direction: column; }
.table-list__head { display: flex; gap: 16px; padding: 0 16px 10px; font-size: var(--fs-kicker); font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); border-bottom: 1px solid var(--line); }
.list__row, .table-list__row {
  display: flex; align-items: center; gap: 14px;
  min-height: 64px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  transition: background-color var(--t-fast) var(--ease);
}
.list__row:last-child, .table-list__row:last-child { border-bottom-color: transparent; }
a.list__row:hover, .list__row[data-href]:hover, .list__row.is-clickable:hover,
a.table-list__row:hover, .table-list__row[data-href]:hover, .table-list__row.is-clickable:hover { background: rgba(255, 255, 255, .035); cursor: pointer; }
.list__row.is-active, .table-list__row.is-active { background: rgba(255, 122, 61, .08); }
.list__icon, .table-list__icon { flex: none; color: var(--accent); }
.list__main, .table-list__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.list__title, .table-list__title { font-weight: 700; font-size: var(--fs-body); color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list__meta, .table-list__meta { font-size: var(--fs-xs); font-weight: 500; color: var(--text-3); display: flex; flex-wrap: wrap; gap: 4px 12px; }
.list__side, .table-list__side { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; text-align: right; }
.list__amount, .table-list__amount { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-body); letter-spacing: -.01em; color: var(--text); white-space: nowrap; }
.list__amount.is-plus, .table-list__amount.is-plus { color: var(--pos); }
.list__amount.is-minus, .table-list__amount.is-minus { color: var(--text-2); }
.list__chevron, .table-list__chevron { color: var(--text-3); transition: color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease); }
a.list__row:hover .list__chevron, a.table-list__row:hover .table-list__chevron, .table-list__row[data-href]:hover .table-list__chevron { color: var(--accent-2); transform: translateX(2px); }

/* Misc */
.divider { height: 1px; border: 0; margin: 24px 0; background: var(--line-soft); }
.divider--tight { margin: 12px 0; }
.divider--text { display: flex; align-items: center; gap: 12px; height: auto; background: none; color: var(--text-3); font-size: var(--fs-xs); font-weight: 600; }
.divider--text::before, .divider--text::after { content: ''; flex: 1; height: 1px; background: var(--line-soft); }

.avatar {
  --av: 40px;
  display: inline-grid; place-items: center; flex: none;
  width: var(--av); height: var(--av);
  border-radius: 50%;
  font-family: var(--font);
  font-size: calc(var(--av) * .34);
  font-weight: 800;
  line-height: 1;
  letter-spacing: .02em;
  color: var(--text);
  background: linear-gradient(160deg, #3a2156, #24143a) padding-box, var(--grad) border-box;
  border: 2px solid transparent;
  user-select: none;
  transition: box-shadow var(--t-fast) var(--ease);
}
.avatar--guest { color: var(--text-2); background: linear-gradient(160deg, #2e1c45, #1f1230) padding-box, linear-gradient(var(--line-strong), var(--line-strong)) border-box; }
.avatar--sm { --av: 32px; border-width: 1.5px; }
.avatar--md { --av: 48px; }
.avatar--lg { --av: 64px; }
.avatar--xl { --av: 88px; border-width: 3px; }

.stars { position: relative; display: inline-flex; vertical-align: middle; line-height: 0; }
.stars__base, .stars__fill { display: inline-flex; gap: 2px; white-space: nowrap; }
.stars__base { color: rgba(255, 246, 239, .18); }
.stars__fill { position: absolute; inset: 0 auto 0 0; overflow: hidden; color: var(--accent-2); }
.stars__value { margin-left: 8px; font-family: var(--font-display); font-weight: 600; font-size: var(--fs-sm); vertical-align: middle; color: var(--text); }
.stars-input { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.stars-input__radio { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.stars-input__star { display: grid; place-items: center; padding: 4px; border-radius: 10px; color: rgba(255, 246, 239, .18); cursor: pointer; transition: color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease); }
.stars-input__radio:checked ~ .stars-input__star, .stars-input__star:hover, .stars-input__star:hover ~ .stars-input__star { color: var(--accent-2); }
.stars-input:hover .stars-input__radio:checked ~ .stars-input__star:not(:hover):not(:hover ~ .stars-input__star) { color: rgba(255, 246, 239, .18); }
.stars-input__radio:focus-visible + .stars-input__star { outline: 2px solid var(--accent-2); outline-offset: 1px; }

.qr-box { display: inline-grid; place-items: center; padding: 14px; border-radius: var(--r-card); background: #fff; line-height: 0; box-shadow: 0 0 0 1px rgba(255, 170, 130, .3), 0 16px 40px -16px rgba(255, 90, 80, .45); }
.qr-box img { width: 176px; height: 176px; image-rendering: pixelated; border-radius: var(--r-xs); }
.qr-box--sm img { width: 136px; height: 136px; }
.qr-box--lg img { width: 216px; height: 216px; }

.countdown {
  display: inline-flex; align-items: center; gap: 6px;
  height: 32px; padding: 0 12px;
  border-radius: var(--r-pill);
  font-family: var(--mono); font-weight: 600; font-size: var(--fs-sm);
  color: var(--text);
  background: rgba(12, 6, 20, .55);
  border: 1px solid var(--line-warm);
  transition: color var(--t-fast) var(--ease);
}
.countdown .icon { color: var(--accent-2); }
.countdown.is-urgent, .countdown.is-urgent .icon { color: var(--warn); }
.countdown.is-expired, .countdown.is-expired .icon { color: var(--neg-text); }
.countdown--lg { height: 40px; padding: 0 16px; font-size: 18px; }

.progress { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.progress__bar { height: 100%; border-radius: inherit; background: var(--grad); box-shadow: 0 0 12px rgba(255, 90, 80, .5); transition: transform var(--t-enter) var(--ease); }

.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; counter-reset: step; }
.steps > li { position: relative; padding-left: 44px; min-height: 28px; color: var(--text-2); font-size: var(--fs-sm); line-height: 1.6; counter-increment: step; }
.steps > li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: -2px;
  display: grid; place-items: center;
  width: 30px; height: 30px; border-radius: 50%;
  font-family: var(--mono); font-size: 11px; font-weight: 600;
  color: var(--num); background: rgba(255, 61, 141, .1); border: 1px solid rgba(255, 61, 141, .26);
}
.steps > li strong { color: var(--text); }

.list-check { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.list-check > li { position: relative; padding-left: 30px; color: var(--text-2); font-size: var(--fs-sm); }
.list-check > li::before { content: ''; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%; background: var(--lime-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c8f169' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat; }

.price { display: inline-flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price__now { font-family: var(--font-display); font-weight: 600; font-size: 22px; letter-spacing: -.02em; color: var(--text); }
.price__cur { font-size: var(--fs-meta); font-weight: 800; color: var(--accent-2); letter-spacing: .04em; }
.price__old { font-size: var(--fs-xs); font-weight: 600; color: var(--text-3); text-decoration: line-through; }

.code-block {
  margin: 0;
  padding: 14px 18px;
  border-radius: var(--r-control-lg);
  background: rgba(8, 3, 14, .7);
  border: 1px solid var(--line-warm);
  font-family: var(--mono);
  font-size: var(--fs-xs);
  line-height: 1.65;
  color: var(--text);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
kbd { display: inline-block; min-width: 22px; padding: 1px 6px; border-radius: var(--r-xs); border: 1px solid var(--line-strong); background: var(--raised); font-size: var(--fs-meta); line-height: 18px; text-align: center; color: var(--text-2); }

.media-thumb { position: relative; overflow: hidden; border-radius: var(--r-card); background: var(--raised); border: 1px solid var(--line-warm); }
.media-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Header: a floating glass pill */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  padding-top: 16px;
  pointer-events: none;
}
.site-header::before {
  content: '';
  position: absolute;
  inset: 0 0 -24px;
  z-index: -1;
  background: linear-gradient(180deg, rgba(18, 10, 30, .94) 0%, rgba(18, 10, 30, .7) 55%, rgba(18, 10, 30, 0) 100%);
  pointer-events: none;
}
.header-bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 24px;
  width: calc(100% - var(--gutter) * 2);
  max-width: var(--container);
  height: 80px;
  margin-inline: auto;
  padding: 0 16px 0 24px;
  border-radius: var(--r-pill);
  background: rgba(26, 14, 40, .78);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid var(--line-warm);
  box-shadow: 0 24px 60px -34px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .06);
  pointer-events: auto;
}
.logo { display: inline-flex; align-items: center; gap: 12px; height: 48px; flex: none; color: var(--text); border-radius: var(--r-pill); }
.logo .logo-mark { width: 40px; height: 40px; }
.logo-mark { display: block; }
.logo__word { font-family: var(--font-display); font-size: 21px; font-weight: 700; line-height: 1; letter-spacing: .01em; max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.main-nav { position: relative; flex: 1 1 auto; min-width: 0; display: flex; align-items: center; height: 100%; }
.main-nav__track {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  max-width: 100%;
  padding: 10px 6px 8px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 170, 130, .3) rgba(255, 255, 255, .04);
}
.main-nav__track::after { content: ''; flex: none; width: 20px; height: 1px; }
.main-nav::after {
  content: '';
  position: absolute;
  top: 8px;
  right: 0;
  bottom: 8px;
  width: 28px;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(26, 14, 40, 0), rgba(26, 14, 40, .95));
}
.main-nav__track::-webkit-scrollbar { height: 4px; }
.main-nav__track::-webkit-scrollbar-track { background: rgba(255, 255, 255, .04); border-radius: 2px; }
.main-nav__track::-webkit-scrollbar-thumb { background: rgba(255, 170, 130, .3); border: 0; border-radius: 2px; }
.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  height: 42px;
  padding: 0 16px;
  border-radius: var(--r-pill);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--text-2);
  white-space: nowrap;
  transition: color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.nav-link:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.nav-link:focus-visible { outline-offset: -2px; }
.nav-link.is-active {
  transition: none;
  color: var(--on-accent);
  background: var(--grad);
  box-shadow: 0 0 0 3px rgba(26, 14, 40, .9), 0 0 0 4px rgba(255, 166, 90, .55), 0 10px 26px -8px rgba(255, 80, 90, .75), var(--hl-btn);
}
.nav-link.is-active .nav-count { color: var(--on-accent); background: rgba(26, 11, 18, .16); }
.nav-count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: var(--r-pill); background: var(--grad); font-size: 11px; font-weight: 800; line-height: 20px; text-align: center; color: var(--on-accent); }
.nav-dot { display: block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-3); box-shadow: 0 0 0 2px var(--surface), 0 0 10px rgba(255, 61, 141, .8); }

.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; flex: none; }
.hdr-balance {
  display: inline-flex; align-items: center; gap: 8px;
  height: 48px; padding: 0 18px 0 14px;
  border-radius: var(--r-pill);
  background: rgba(12, 6, 20, .55);
  border: 1px solid var(--line-warm);
  white-space: nowrap;
  transition: background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.hdr-balance > .icon { color: var(--text-2); }
.hdr-balance:hover, .hdr-balance.is-active { background: rgba(255, 255, 255, .06); border-color: var(--line-strong); }
.hdr-balance__num { font-family: var(--font-display); font-size: 15px; font-weight: 600; letter-spacing: -.01em; color: var(--accent-2); }
.hdr-balance__cur { font-size: var(--fs-xs); font-weight: 700; color: var(--text); }
.hdr-balance.is-bump .hdr-balance__num { animation: bump 420ms var(--ease); }
@keyframes bump { 0% { transform: none; } 35% { transform: translateY(-2px); color: #ffd08a; } 100% { transform: none; } }
.avatar-btn { display: grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: 50%; transition: box-shadow var(--t-fast) var(--ease); }
.avatar-btn .avatar { --av: 48px; }
.avatar-btn:hover .avatar { box-shadow: 0 0 0 4px rgba(255, 122, 61, .14); }
.avatar-btn.is-active .avatar { box-shadow: 0 0 0 4px rgba(255, 122, 61, .22), 0 8px 24px -8px rgba(255, 80, 90, .7); }
.header-login {
  --btn-h: 48px;
  padding: 0 20px 0 16px;
  background: linear-gradient(rgba(30, 16, 46, .96), rgba(30, 16, 46, .96)) padding-box, var(--grad) border-box;
  border: 1.5px solid transparent;
  color: var(--text);
}
.header-login:hover { background: linear-gradient(#2c1844, #2c1844) padding-box, var(--grad-hover) border-box; border-color: transparent; box-shadow: 0 10px 26px -10px rgba(255, 80, 90, .7); }
.header-login .icon { color: var(--accent-2); }
.header-login__short { display: none; }
.header-menu { display: none; --btn-h: 48px; border: 1px solid var(--line-warm); background: rgba(12, 6, 20, .55); color: var(--text); }
.header-menu:hover { background: rgba(255, 255, 255, .06); border-color: var(--line-strong); }
.header-menu .nav-dot { position: absolute; top: 9px; right: 9px; }

/* The NOVA mark */
.logo-mark .lm-base { transition: filter var(--t-fast) var(--ease); }
.logo:hover .logo-mark .lm-base { filter: brightness(1.08); }

/* Footer */
.site-footer { position: relative; margin-top: auto; }
.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  flex-wrap: wrap;
  padding-block: 28px 36px;
  border-top: 1px solid var(--line-soft);
  color: var(--text-3);
  font-size: var(--fs-xs);
  font-weight: 600;
}
.site-footer__brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text-2); }
.site-footer__brand .logo-mark { width: 22px; height: 22px; }
.site-footer__links { display: flex; align-items: center; gap: 4px 24px; flex-wrap: wrap; }
.site-footer__links a { color: var(--text-2); transition: color var(--t-fast) var(--ease); }
.site-footer__links a:hover { color: var(--accent-2); }
.site-footer__meta { display: inline-flex; align-items: center; gap: 12px; flex-wrap: wrap; color: var(--text-2); }
.site-footer__sep { width: 1px; height: 12px; background: var(--line-strong); color: transparent; overflow: hidden; }

/* Mobile tab bar */
.tabbar { display: none; }

/* Menu sheet */
.menu-sheet .modal__content { padding: 24px; }
.menu-sheet__head { display: flex; align-items: center; gap: 14px; padding-right: 48px; margin-bottom: 20px; }
.menu-sheet__who { min-width: 0; flex: 1; }
.menu-sheet__name { font-size: 17px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-sheet__meta { color: var(--text-3); font-size: var(--fs-xs); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-sheet__text { color: var(--text-2); font-size: var(--fs-sm); margin: -8px 0 16px; }
.menu-sheet__balance {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 18px 16px 18px 20px; margin-bottom: 16px;
  border-radius: var(--r-card);
  background:
    radial-gradient(90% 140% at 100% 0%, rgba(255, 61, 141, .26), transparent 60%),
    radial-gradient(80% 140% at 0% 100%, rgba(140, 60, 255, .22), transparent 60%),
    var(--grad-panel);
  border: 1px solid var(--line-strong);
}
.menu-sheet__balance .stat__value { font-size: 26px; }
.menu-sheet__login { margin-bottom: 16px; }
.menu-list { display: flex; flex-direction: column; gap: 4px; }
.menu-link {
  position: relative;
  display: flex; align-items: center; gap: 14px;
  height: 52px; padding: 0 14px;
  border-radius: var(--r-control-lg);
  font-size: var(--fs-body); font-weight: 700; color: var(--text-2);
  transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.menu-link:hover { background: rgba(255, 255, 255, .05); color: var(--text); }
.menu-link__icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; color: var(--accent); background: rgba(255, 255, 255, .04); }
.menu-link.is-active { background: var(--grad-soft); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-strong); }
.menu-link.is-active .menu-link__icon { color: var(--on-accent); background: var(--grad); }
.menu-link .nav-count { margin-left: auto; }
.menu-sheet__actions { display: flex; flex-direction: column; gap: 8px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line-soft); }

/* Telegram login modal */
.tg-login { display: flex; flex-direction: column; }
.tg-login__badge {
  display: grid; place-items: center;
  width: 56px; height: 56px; margin-bottom: 8px;
  border-radius: 18px;
  color: var(--on-accent);
  background: var(--grad);
  box-shadow: var(--shadow-cta), var(--hl-btn);
}
.tg-login__head { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding-right: 40px; margin-bottom: 24px; }
.tg-login__title { font-family: var(--font-display); font-size: 24px; font-weight: 600; line-height: 1.2; letter-spacing: -.02em; }
.tg-login__lead { color: var(--text-2); font-size: var(--fs-sm); }
.tg-login__body { display: flex; flex-direction: column; gap: 16px; min-height: 120px; }
.tg-login__loading { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 160px; color: var(--text-3); font-size: var(--fs-sm); font-weight: 600; }
.tg-login__qr { display: flex; align-items: center; gap: 16px; padding: 14px; border-radius: var(--r-card); background: rgba(12, 6, 20, .5); border: 1px solid var(--line-warm); }
.tg-login__qr .qr-box { padding: 8px; border-radius: 14px; flex: none; box-shadow: none; }
.tg-login__qr .qr-box img { width: 112px; height: 112px; }
.tg-login__qr-caption { color: var(--text-2); font-size: var(--fs-sm); line-height: 1.5; }
.tg-login__status { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 16px; border-radius: var(--r-pill); background: rgba(12, 6, 20, .5); border: 1px solid var(--line-soft); font-size: var(--fs-sm); font-weight: 600; color: var(--text); }
.tg-login__status-icon { display: grid; place-items: center; width: 18px; height: 18px; flex: none; color: var(--text-3); }
.tg-login__status[data-tone="ok"] { border-color: rgba(126, 226, 168, .3); }
.tg-login__status[data-tone="ok"] .tg-login__status-icon { color: var(--pos); }
.tg-login__status[data-tone="bad"] .tg-login__status-icon { color: var(--warn); }
.tg-login__status-text { flex: 1; min-width: 0; }
.tg-login__timer { flex: none; font-family: var(--mono); font-size: var(--fs-xs); font-weight: 600; color: var(--accent-2); }
.tg-login__timer.is-urgent { color: var(--warn); }
.tg-login__note { color: var(--text-3); font-size: var(--fs-xs); font-weight: 500; line-height: 1.5; }
.tg-login__notice { display: flex; align-items: flex-start; gap: 14px; }
.tg-login__notice-title { font-weight: 800; color: var(--text); }
.tg-login__notice-text { margin-top: 4px; color: var(--text-2); font-size: var(--fs-sm); }
.tg-login__form { display: flex; flex-direction: column; gap: 16px; }
.tg-login__links { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.tg-login__foot { display: flex; justify-content: center; margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line-soft); }

/* Responsive */
@media (max-width: 1199px) {
  .header-bar { gap: 16px; padding-left: 20px; }
  .logo__word { font-size: 19px; }
  .nav-link { padding: 0 14px; }
}
@media (max-width: 1024px) {
  :root { --gutter: 24px; }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--sidebar, .grid--sidebar-left, .grid--wide-narrow { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 899px) {
  :root { --header-h: 88px; }
  .main-nav { display: none; }
  .header-menu { display: inline-flex; position: relative; }
  .header-bar { height: 68px; padding: 0 10px 0 16px; }
  .logo .logo-mark { width: 36px; height: 36px; }
  .hdr-balance, .header-login, .header-menu, .avatar-btn { --btn-h: 44px; height: 44px; }
  .avatar-btn, .avatar-btn .avatar { width: 44px; --av: 44px; }
}
@media (max-width: 860px) {
  .grid--2 { grid-template-columns: minmax(0, 1fr); }
  .form-row { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 768px) {
  .view { padding: 24px 0 56px; }
  .app { padding-bottom: calc(var(--tabbar-h) + 24px + env(safe-area-inset-bottom)); }
  .site-header { padding-top: 10px; }
  .header-actions { gap: 8px; }
  .avatar-btn { display: none; }
  .page-head { margin: 4px 0 24px; }
  .page-head__lead { margin-top: 8px; }
  .card { padding: 22px 18px; border-radius: var(--r-card); }
  .card--lg { padding: 28px 20px; border-radius: var(--r-card-lg); }
  .card--sm { padding: 16px; }
  .card.empty-state { padding: 44px 20px; }
  .section { margin-top: var(--space-10); }
  .accordion__head { gap: 14px; min-height: 72px; padding: 16px 18px; font-size: var(--fs-body); }
  .accordion__body { padding: 0 18px 20px 54px; }
  .toast-stack { left: 12px; right: 12px; width: auto; align-items: stretch; top: calc(12px + env(safe-area-inset-top)); bottom: auto; flex-direction: column-reverse; }
  .toast { animation-name: toast-in-top; }
  .toast.is-leaving { animation-name: toast-out-top; }
  .site-footer__inner { flex-direction: column; align-items: flex-start; padding-block: 24px 28px; }
  .site-footer__meta { flex-direction: column; align-items: flex-start; gap: 6px; }
  .site-footer__sep { display: none; }

  .tabbar {
    display: flex;
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    z-index: var(--z-tabbar);
    height: var(--tabbar-h);
    padding: 0 6px;
    border-radius: 24px;
    background: rgba(26, 14, 40, .86);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    backdrop-filter: blur(20px) saturate(140%);
    border: 1px solid var(--line-warm);
    box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .06);
  }
  .tabbar__item {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
    font-size: 11px; font-weight: 700; line-height: 1; color: var(--text-3);
    transition: color var(--t-fast) var(--ease);
  }
  .tabbar__item:focus-visible { outline-offset: -4px; border-radius: 16px; }
  .tabbar__item.is-active { color: var(--text); }
  .tabbar__icon { position: relative; display: grid; place-items: center; width: 44px; height: 28px; border-radius: var(--r-pill); transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease); }
  .tabbar__item.is-active .tabbar__icon { color: var(--on-accent); background: var(--grad); box-shadow: 0 6px 16px -6px rgba(255, 80, 90, .8), var(--hl-btn); }
  .tabbar__icon .nav-dot { position: absolute; top: 0; right: 6px; }
  .tabbar__label { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .input, .select, .textarea { font-size: 16px; }
  .modal { padding: 48px 0 0; }
  .modal__dialog,
  .modal--xl .modal__dialog {
    margin: auto 0 0;
    max-width: none;
    border-radius: var(--r-modal) var(--r-modal) 0 0;
    border-bottom: 0;
    padding-bottom: env(safe-area-inset-bottom);
    transform: translate3d(0, 24px, 0);
    transition-duration: var(--t-enter);
  }
  .modal__dialog::before { content: ''; position: absolute; top: 8px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 2px; background: var(--line-strong); }
  .modal.is-closing .modal__dialog { transform: translate3d(0, 24px, 0); transition-duration: var(--t-menu); }
  .modal__content { padding: 32px 16px 24px; }
  .modal__head { padding: 32px 64px 0 16px; }
  .modal__head + .modal__content { padding-top: 16px; }
  .modal__close { top: 14px; right: 12px; }
  .confirm { padding-right: 0; }
  .confirm__actions { flex-direction: column-reverse; }
  .confirm__actions .btn { width: 100%; }
  .grid--3, .grid--4 { grid-template-columns: minmax(0, 1fr); }
  .list__row, .table-list__row { padding: 12px 4px; }
  .kv__row { flex-direction: column; align-items: flex-start; gap: 2px; }
  .kv__val { text-align: left; }
  .qr-box img { width: 168px; height: 168px; }
  .guest-notice { padding: 18px; }
  .guest-notice__actions { width: 100%; }
  .guest-notice__actions .btn { flex: 1; }
  .key-code--lg { font-size: 17px; padding-left: 16px; }
  .tg-login__head { padding-right: 32px; }
  .btn--lg { --btn-h: 52px; padding: 0 22px; }
}
@media (max-width: 640px) and (hover: none) {
  .tg-login__qr { display: none; }
}
@media (max-width: 420px) {
  .header-bar { gap: 10px; padding-left: 12px; }
  .logo { gap: 8px; }
  .logo__word { font-size: 17px; max-width: 96px; }
  .logo .logo-mark { width: 34px; height: 34px; }
  .hdr-balance { padding: 0 12px 0 10px; gap: 6px; }
  .hdr-balance > .icon { display: none; }
  .header-login { padding: 0 14px 0 12px; }
  .header-login__full { display: none; }
  .header-login__short { display: inline; }
}
@media (max-width: 359px) {
  .hdr-balance__cur { display: none; }
}
@media (hover: none) {
  .card--hover:hover, a.card:hover, .card[data-href]:hover { transform: none; }
  .btn--primary:hover, .btn--accent:hover { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }
}
