/* ==========================================================================
   MelonRust v2 - "night store".
   Store mechanics from a modern Rust shop (floating pill nav, rounded banner,
   one hairline-divided product grid, split product modal) + editorial type
   (Oswald caps, IBM Plex Mono labels, numbered hairline rows).
   Loaded LAST: it restyles the shared legacy primitives (.btn, .modal, .tag,
   .toast…) and owns every `.v-*` component.
   ========================================================================== */

/* ---------------------------------------------------------------- base -- */
:root {
  --t-ui: color .28s var(--ease), background-color .28s var(--ease), border-color .28s var(--ease),
          box-shadow .35s var(--ease), opacity .28s var(--ease), transform .35s var(--ease-out),
          filter .28s var(--ease);
}
/* Zero-specificity base: every link / button / field eases on hover, including
   legacy screens (admin, profile) that never declared a transition. */
:where(a, button, input, select, textarea, label, summary, [role="tab"], [role="button"]) {
  transition: var(--t-ui);
}
html, body { font-size: 15px; }
body { letter-spacing: 0.005em; }

.shell-inner { max-width: 1280px; padding: 0 24px; }

.main { padding-bottom: 40px; }

::selection { background: var(--accent); color: var(--accent-ink); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ----------------------------------------------------------- primitives -- */
.v-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.v-kicker i { font-style: normal; color: var(--text-dim); }

.v-h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 0.95;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin: 0;
}

.v-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  white-space: nowrap;
}
.v-meta-link {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: var(--text-muted);
  transition: var(--t-ui);
}
.v-meta-link:hover { color: var(--accent); }

.v-arrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text-dim);
  transition: var(--t-ui);
}
a:hover > .v-arrow, button:hover > .v-arrow {
  color: var(--accent);
  transform: translate(2px, -2px);
}

.v-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.v-chip {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-2);
  padding: 6px 10px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.015);
}

.v-tag {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 3px 6px;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  vertical-align: middle;
}

.v-dot {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--text-dim);
  flex-shrink: 0;
}
.v-dot.is-on {
  background: var(--success);
  box-shadow: 0 0 0 0 rgba(30, 215, 96, 0.5);
  animation: v-pulse 2s ease-out infinite;
}
@keyframes v-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(30, 215, 96, 0.45); }
  70%  { box-shadow: 0 0 0 8px rgba(30, 215, 96, 0); }
  100% { box-shadow: 0 0 0 0 rgba(30, 215, 96, 0); }
}

/* Status tag: mono caps in a hairline box, green when "on". */
.v-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--text-muted);
  padding: 5px 10px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.02);
}
.v-status::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: currentColor;
}
.v-status.is-on  { color: var(--success); border-color: var(--success-line); background: var(--success-soft); }
.v-status.is-off { color: var(--danger);  border-color: rgba(255, 90, 79, .35); background: rgba(255, 90, 79, .08); }

/* Glass pill over artwork (discounts, "hit"). */
.v-pill {
  position: absolute;
  top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 2;
}
.v-pill-green { left: 10px; color: #eafff1; background: rgba(30, 215, 96, 0.32); }
.v-pill-green i { width: 7px; height: 7px; border-radius: 50%; background: var(--success); }
.v-pill-hit {
  right: 10px;
  color: var(--accent-ink);
  background: var(--accent);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.v-tabular { font-variant-numeric: tabular-nums; }
.dim { color: var(--text-dim); }

/* -------------------------------------------------------------- buttons -- */
.v-btn,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  color: var(--text);
  background: var(--surface-3);
  transition: var(--t-ui);
}
.v-btn:active, .btn:active { transform: translateY(1px); }
.v-btn:disabled, .btn:disabled { opacity: .45; cursor: not-allowed; }

.v-btn-accent, .btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}
.v-btn-accent:hover, .btn-primary:hover { background: var(--accent-hi); border-color: var(--accent-hi); }

.v-btn-ghost, .btn-ghost {
  background: rgba(255, 255, 255, 0.02);
  border-color: var(--border-strong);
  color: var(--text);
}
.v-btn-ghost:hover, .btn-ghost:hover { background: var(--surface-2); border-color: #3a3a3a; }

.v-btn-green {
  background: var(--success-soft);
  border-color: var(--success-line);
  color: var(--success);
}
.v-btn-green:hover { background: rgba(30, 215, 96, .18); }

.v-btn-sm, .btn-sm { height: 36px; padding: 0 14px; font-size: 13px; border-radius: 11px; }
.v-btn-lg, .btn-lg { height: 52px; padding: 0 24px; font-size: 15px; border-radius: 16px; }
.v-btn-square { width: 52px; padding: 0; }

.v-icon-btn {
  display: inline-grid;
  place-items: center;
  width: 32px; height: 32px;
  border-radius: 9px;
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--t-ui);
}
.v-icon-btn:hover { color: var(--accent); border-color: var(--accent); }

/* ------------------------------------------------------------------ nav -- */
.v-nav-wrap {
  position: sticky;
  top: 12px;
  z-index: 60;
  display: flex;
  justify-content: center;
  padding: 12px 16px 0;
  pointer-events: none;           /* only the capsule itself is clickable */
}
.v-nav {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 1080px;
  height: 60px;
  padding: 0 8px 0 10px;
  border-radius: 22px;
  border: 1px solid var(--border-strong);
  background: rgba(22, 22, 22, 0.78);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}
.v-nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-right: 8px;
  flex-shrink: 0;
}
.v-nav-brand img {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--surface-3);
  object-fit: cover;
}
.v-nav-brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  line-height: 1;
}
.v-nav-brand-name b { color: var(--accent); font-weight: 700; }

.v-nav-links {
  flex: 1;
  display: flex;
  justify-content: center;
  gap: 2px;
  min-width: 0;
}
.v-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 14px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--t-ui);
}
.v-nav-link svg { opacity: .7; }
.v-nav-link:hover { color: var(--text); }
.v-nav-link.is-active { color: var(--text); background: rgba(255, 255, 255, 0.07); }
.v-nav-link.is-active svg { opacity: 1; color: var(--accent); }

.v-nav-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.v-nav-icon {
  display: inline-grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 13px;
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--t-ui);
}
.v-nav-icon:hover, .v-nav-icon.is-active { color: var(--accent); border-color: rgba(245, 200, 75, .5); }

.v-balance {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 42px;
  padding: 0 6px 0 14px;
  border-radius: 13px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-variant-numeric: tabular-nums;
}
.v-balance:hover { border-color: rgba(245, 200, 75, .5); }
.v-balance-plus {
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  border-radius: 9px;
  background: var(--accent);
  color: var(--accent-ink);
}
.v-avatar {
  width: 42px; height: 42px;
  padding: 0;
  border-radius: 13px;
  border: 1px solid var(--border-strong);
  background: var(--surface-3);
  overflow: hidden;
  cursor: pointer;
  display: grid;
  place-items: center;
  color: var(--text);
  font-weight: 700;
  font-size: 12px;
}
.v-avatar img { width: 100%; height: 100%; object-fit: cover; }
.v-nav-login { height: 44px; border-radius: 14px; }

/* ---------------------------------------------------------- section kit -- */
.v-section { margin-top: 110px; }
.v-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

/* Numbered hairline rows (servers, steps, news). */
.v-rows {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.v-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1.1fr) minmax(0, 1.6fr) 150px;
  align-items: center;
  gap: 20px;
  min-height: 64px;
  padding: 12px 8px;
  border-bottom: 1px solid var(--line);
  transition: var(--t-ui);
}
.v-row:hover { background: rgba(255, 255, 255, 0.018); }
.v-row > * { min-width: 0; }
.v-row.is-link { cursor: pointer; }
.v-row-n {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--text-dim);
}
.v-row-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: 0.005em;
  line-height: 1.15;
}
.v-row-title-sm { font-family: var(--font-body); font-weight: 500; font-size: 15px; letter-spacing: 0; }
.v-row-desc { color: var(--text-muted); font-size: 14px; }
.v-row-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--text-dim);
}
.v-row-end { display: inline-flex; align-items: center; justify-content: center; gap: 10px; justify-self: center; }
.v-row.is-link:hover .v-arrow { color: var(--accent); transform: translate(2px, -2px); }

/* Label / value link rows (contacts, live facts). */
.v-linkrows { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.v-linkrow {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  align-items: center;
  gap: 16px;
  min-height: 60px;
  padding: 0 4px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: none;
  color: inherit;
  text-align: left;
  font: inherit;
  cursor: pointer;
}
.v-linkrow.is-static { cursor: default; grid-template-columns: 120px 1fr; }
.v-linkrow-l {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.v-linkrow-v {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.v-mono-v { font-family: var(--font-mono); font-size: 16px; font-weight: 500; }
.v-linkrow:not(.is-static):hover .v-linkrow-v { color: var(--accent); }

/* Giant display link ("В МАГАЗИН ↗"). */
.v-giant-link {
  display: inline-flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 10px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(56px, 10vw, 128px);
  line-height: 0.9;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  text-align: left;
  transition: var(--t-ui);
}
.v-giant-link .v-arrow { font-size: 0.35em; margin-top: 0.1em; }
.v-giant-link:hover { color: var(--accent); }
.v-giant-xl { font-size: clamp(64px, 14vw, 190px); }
.v-cta { display: flex; flex-direction: column; align-items: flex-start; }
.v-footer-contact-cta { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.v-footer-contact .v-giant-link { font-size: clamp(44px, 6vw, 88px); white-space: nowrap; }

/* ---------------------------------------------------------------- hero -- */
.v-hero { padding-top: 72px; }
.v-hero-kicker { margin: 0 0 18px; }
.v-hero-title {
  display: flex;
  flex-wrap: wrap;
  margin: 0 0 22px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(88px, 17vw, 236px);
  line-height: 0.86;
  letter-spacing: -0.012em;
  text-transform: uppercase;
}
.v-outline {
  color: transparent;
  -webkit-text-stroke: 2px var(--accent);
  paint-order: stroke fill;
}

.v-hero-band {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  margin-top: 56px;
  padding: 16px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-strong);
  overflow: hidden;
  background:
    radial-gradient(640px 380px at 80% 40%, rgba(245, 200, 75, .16), transparent 70%),
    radial-gradient(460px 260px at 8% 0%, rgba(245, 200, 75, .08), transparent 70%),
    radial-gradient(520px 320px at 0% 100%, rgba(255, 120, 40, .07), transparent 70%),
    linear-gradient(135deg, #141414, #0a0a0a);
}
.v-hero-band.is-solo { grid-template-columns: 1fr; }
.v-hero-pitch {
  display: flex;
  flex-direction: column;
  justify-content: space-between;     /* text up top, actions on the bottom edge */
  gap: 28px;
  padding: 26px 20px 18px 18px;
}
.v-nowrap { white-space: nowrap; }
.v-hero-pitch-top { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.v-hero-h {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(36px, 3.8vw, 56px);
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: -0.005em;
}
.v-hero-lead {
  margin: 0;
  font-size: 17px;
  line-height: 1.55;
  color: var(--text-2);
  max-width: 470px;
  text-wrap: pretty;
}
.v-hero-pitch-foot {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.v-hero-ctas { display: flex; gap: 10px; flex-wrap: wrap; }

/* Best-seller spotlight: real artwork, real price, real sales count. */
.v-spot {
  position: relative;
  display: block;
  min-height: 420px;
  padding: 0;
  border: 0;
  border-radius: 22px;
  overflow: hidden;
  background: #0b0b0b;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.v-spot img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease-out);
}
.v-spot:hover img { transform: scale(1.04); }
.v-spot .v-pill-hit { top: 14px; right: 14px; }
.v-spot-info {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 60px 20px 18px;
  background: linear-gradient(0deg, rgba(0, 0, 0, .92) 0%, rgba(0, 0, 0, .65) 55%, transparent 100%);
}
.v-spot-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 44px;
  line-height: 0.95;
  text-transform: uppercase;
}
.v-spot-sub { color: var(--text-2); font-size: 14px; }
.v-spot-row { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 16px; margin-top: 6px; }
.v-spot-price { font-size: 15px; color: var(--text-2); }
.v-spot-price b { font-family: var(--font-display); font-weight: 500; font-size: 26px; color: var(--accent); }
.v-spot-go {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(0, 0, 0, .4);
  font-size: 13px;
  font-weight: 600;
}
.v-spot:hover .v-spot-go { border-color: var(--accent); color: var(--accent); }
.v-spot:hover .v-spot-go .v-arrow { color: var(--accent); transform: translate(2px, -2px); }

.v-stats {
  display: grid;
  grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr));
  margin-top: 72px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.v-stat {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 26px 0;
}
.v-stat + .v-stat { padding-left: 24px; border-left: 1px solid var(--line); }
.v-stat-l {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.v-stat-v {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 0.95;
  color: var(--text-2);
}

/* ---------------------------------------------------------------- news -- */
.v-news {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 32px;
  align-items: start;
}
.v-season {
  position: relative;
  padding: 26px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background:
    radial-gradient(420px 260px at 100% 0%, rgba(245, 200, 75, .12), transparent 70%),
    var(--surface);
}
.v-season-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 140px;
  line-height: 0.85;
  margin: 18px 0 6px;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(245, 200, 75, .8);
}
.v-season-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 30px;
  text-transform: uppercase;
  margin: 0 0 10px;
}
.v-season-text { color: var(--text-muted); margin: 0; line-height: 1.6; }
.v-rows-compact .v-row { grid-template-columns: 76px minmax(0, 1fr) 150px; min-height: 58px; }
.v-news-more { margin-top: 14px; }

/* ---------------------------------------------------------------- grid -- */
/* One rounded block, cells separated by 1px "gaps" showing the block bg. */
.v-grid {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  overflow: hidden;
}
.v-grid-4    { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.v-grid-shop { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.v-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 16px 18px;
  border: 0;
  background: #0f0f0f;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  min-width: 0;
  transition: var(--t-ui);
}
.v-card:hover { background: #151515; }
.v-card-media {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: var(--surface-2);
  color: rgba(255, 255, 255, .85);
}
.v-card-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease-out);
}
.v-card:hover .v-card-media img { transform: scale(1.045); }
.v-card-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.v-card-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-variant-numeric: tabular-nums;
}
.v-card-price s { color: var(--text-dim); font-size: 13px; }
.v-card-price b { font-size: 16px; font-weight: 700; }
.v-card-price em { font-style: normal; font-weight: 500; color: var(--text-muted); font-size: 13px; }
.v-rub { color: var(--accent); font-weight: 700; }

/* ---------------------------------------------------------------- shop -- */
.v-shop { padding-top: 28px; }

.v-banner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(300px, 400px) 1fr;
  gap: 24px;
  min-height: 360px;
  padding: 16px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-strong);
  overflow: hidden;
  background:
    radial-gradient(600px 380px at 78% 60%, rgba(245, 200, 75, .22), transparent 70%),
    radial-gradient(500px 300px at 100% 0%, rgba(255, 120, 40, .12), transparent 70%),
    linear-gradient(135deg, #151515, #0b0b0b);
}
.v-banner-card {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, .08);
  background: rgba(20, 20, 20, .62);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.v-banner-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 56px;
  line-height: 0.92;
  text-transform: uppercase;
  margin: 0;
}
.v-banner-text { color: var(--text-muted); margin: 0; font-size: 14px; line-height: 1.55; }
.v-banner-balance {
  margin-top: auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, .08);
}
.v-banner-balance-v {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 34px;
  line-height: 1;
  margin-top: 6px;
  font-variant-numeric: tabular-nums;
}
.v-banner-balance-v span { color: var(--accent); }

.v-banner-art {
  position: relative;
  min-height: 300px;
}
.v-banner-poster {
  position: absolute;
  top: 50%;
  width: 46%;
  max-width: 250px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 30px 60px rgba(0, 0, 0, .55);
  transition: transform .5s var(--ease-out);
}
.v-banner-poster-0 { left: 4%;  transform: translateY(-50%) rotate(-8deg);  z-index: 1; }
.v-banner-poster-1 { left: 24%; transform: translateY(-56%) rotate(-2deg);  z-index: 3; }
.v-banner-poster-2 { left: 44%; transform: translateY(-48%) rotate(4deg);   z-index: 2; }
.v-banner-poster-3 { left: 62%; transform: translateY(-54%) rotate(10deg);  z-index: 1; }
.v-banner:hover .v-banner-poster-1 { transform: translateY(-60%) rotate(-3deg); }
.v-banner:hover .v-banner-poster-2 { transform: translateY(-52%) rotate(5deg); }

.v-shop-bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-top: 40px;
  flex-wrap: wrap;
}
/* Folder tabs sitting on the grid's top edge. */
.v-tabs {
  display: flex;
  gap: 4px;
  padding-left: 18px;
  margin-bottom: -1px;
  position: relative;
  z-index: 1;
  overflow-x: auto;
  scrollbar-width: none;
}
.v-tabs::-webkit-scrollbar { display: none; }
.v-tab {
  height: 42px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-bottom: 0;
  border-radius: 14px 14px 0 0;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: var(--t-ui);
}
.v-tab:hover { color: var(--text); }
.v-tab.is-active {
  color: var(--text);
  background: #0f0f0f;
  border-color: var(--line);
}

.v-shop-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 12px;
  flex-wrap: wrap;
}
.v-seg {
  display: inline-flex;
  padding: 4px;
  gap: 2px;
  border-radius: 14px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, .02);
}
.v-seg-btn {
  height: 32px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.v-seg-btn:hover { color: var(--text); }
.v-seg-btn.is-active { background: rgba(255, 255, 255, .08); color: var(--text); }
.v-seg-n { font-family: var(--font-mono); font-size: 10px; color: var(--text-dim); margin-left: 4px; }
.v-seg-btn.is-active .v-seg-n { color: var(--accent); }

.v-search {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 12px;
  border-radius: 14px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, .02);
  color: var(--text-dim);
}
.v-search:focus-within { border-color: rgba(245, 200, 75, .5); color: var(--text-muted); }
.v-search input {
  width: 140px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 14px;
}
.v-select {
  height: 42px;
  padding: 0 34px 0 14px;
  border-radius: 14px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, .02)
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238c8c87' stroke-width='2'><path d='m6 9 6 6 6-6'/></svg>") no-repeat right 12px center;
  appearance: none;
  -webkit-appearance: none;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.v-select option { background: #111; }

.v-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 72px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  text-align: center;
}
.v-empty-t { font-family: var(--font-display); font-weight: 700; font-size: 36px; text-transform: uppercase; }

/* ------------------------------------------------------- product modal -- */
.v-overlay { background: rgba(0, 0, 0, .72); backdrop-filter: blur(10px); }
.v-pmodal-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 48px;
  line-height: 0.95;
  text-transform: uppercase;
  margin: 0;
}
.v-pmodal-sub { margin: -6px 0 0; color: var(--text-2); }
.v-pmodal-desc { margin: 0; color: var(--text-muted); font-size: 14px; line-height: 1.6; }
.v-pmodal-note { font-size: 13px; color: var(--text-muted); display: inline-flex; align-items: center; gap: 6px; }

/* Perks as hairline key rows. */
.v-perks { margin-top: 4px; }
.v-perks > .v-kicker { display: flex; padding-bottom: 10px; border-bottom: 1px solid var(--line); }

/* Thin dark scrollbars inside panels. */
.v-pm, .v-pm-main, .v-pm-side, .v-compare { scrollbar-width: thin; scrollbar-color: #2e2e2e transparent; }
.v-pm::-webkit-scrollbar, .v-pm-main::-webkit-scrollbar, .v-pm-side::-webkit-scrollbar, .v-compare::-webkit-scrollbar { width: 6px; height: 6px; }
.v-pm::-webkit-scrollbar-thumb, .v-pm-main::-webkit-scrollbar-thumb, .v-pm-side::-webkit-scrollbar-thumb, .v-compare::-webkit-scrollbar-thumb { background: #2e2e2e; border-radius: 6px; }
.v-perks .product-perk {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 2px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.45;
  color: var(--text-2);
}
.v-perks .product-perk svg { color: var(--success); margin-top: 3px; }
.perk-accent { color: var(--accent); font-weight: 600; }

.v-pick { display: flex; flex-direction: column; gap: 10px; }
.v-pick-row { display: flex; flex-wrap: wrap; gap: 6px; }
.v-pick-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
  min-height: 44px;
  padding: 6px 14px;
  border-radius: 13px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, .02);
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--t-ui);
}
.v-pick-btn b { color: var(--text); font-weight: 600; font-size: 14px; }
.v-pick-btn span { font-family: var(--font-mono); font-size: 11px; color: var(--text-dim); font-weight: 400; }
.v-pick-btn:hover { border-color: #3d3d3d; color: var(--text); }
.v-pick-btn.is-active { border-color: var(--accent); background: var(--accent-softer); color: var(--text); }
.v-pick-btn.is-active span { color: var(--accent); }

.v-trial {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--success-line);
  background: var(--success-soft);
}
.v-trial-t { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--success); }
.v-trial-s { font-size: 12px; color: var(--text-muted); margin-top: 3px; }

.v-pmodal-price > div { display: flex; align-items: baseline; gap: 10px; margin-top: 4px; }
.v-pmodal-price b {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 34px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.v-pmodal-price s { color: var(--text-dim); font-size: 15px; }
.v-pmodal-actions { display: flex; gap: 8px; }
.v-pmodal-buy { min-width: 220px; }

/* -------------------------------------------------- product panel v4 -- */
.v-pm {
  position: relative;
  display: grid;
  grid-template-columns: 400px minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) auto;
  grid-template-areas: "side main" "bar bar";
  width: 100%;
  max-width: 1120px;
  max-height: min(860px, calc(100vh - 64px));
  max-height: min(860px, calc(100dvh - 64px));
  margin: auto;
  border-radius: 28px;
  border: 1px solid var(--border-strong);
  background: #101010;
  box-shadow: 0 40px 120px rgba(0, 0, 0, .6);
  overflow: hidden;
}
.v-pm.is-rich { height: min(860px, calc(100vh - 64px)); height: min(860px, calc(100dvh - 64px)); }
.v-pm-tools { position: absolute; top: 14px; right: 14px; z-index: 6; display: flex; gap: 8px; }
.v-pm-tool {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  padding: 0;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(0, 0, 0, .45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--text);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.v-pm-tool svg { transform: rotate(-45deg); }
.v-pm-tool:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.v-pm-x:hover { transform: rotate(90deg); }

/* Left: square art (never stretched) over a blurred glow of itself. */
.v-pm-side {
  grid-area: side;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 0;
  padding: 16px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;             /* sized to fit (see .v-pm-art); no bar */
  border-right: 1px solid var(--line);
  z-index: 1;
}
.v-pm-side::-webkit-scrollbar { display: none; }
/* Blurred glow of the art, clipped to the left column. It lives OUTSIDE the
   scrolling column: a blurred box bleeding past the edges would otherwise
   count as overflow and summon a scrollbar for nothing. */
.v-pm-ambient {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 400px;
  overflow: hidden;
  background: #0b0b0b;
  pointer-events: none;
}
.v-pm-ambient span {
  position: absolute;
  inset: -60px;
  background-size: cover;
  background-position: center;
  filter: blur(60px) saturate(150%);
  opacity: .3;
}
.v-pm-art {
  position: relative;
  flex-shrink: 0;
  aspect-ratio: 1 / 1;
  /* Shrinks on short screens so terms + trial still fit without scrolling:
     panel height minus the pay bar and the ~300px of choices under the art. */
  width: min(100%, max(200px, calc(min(860px, 100dvh - 64px) - 404px)));
  align-self: center;
  display: grid;
  place-items: center;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .55);
}
.v-pm-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Right: header + tabs, scrolls on its own. */
.v-pm-main {
  grid-area: main;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 0;
  padding: 28px 28px 24px;
  overflow-y: auto;
}
.v-pm-head { display: flex; flex-direction: column; gap: 10px; padding-right: 92px; }
.v-pm-bar {
  grid-area: bar;
  position: relative;
  z-index: 2;                        /* above the art glow layer */
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 24px;
  border-top: 1px solid var(--line);
  background: #0c0c0c;
}

.v-ptab-panel { animation: v-in .45s var(--ease-out) backwards; }

/* Stats as a tile grid: label on top, value big - reads like game stats. */
/* Separate tiles (not a shared background showing through the gaps), so an
   incomplete last row leaves clean space instead of grey filler cells. */
.v-sg {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 8px;
}
.v-sg-cell {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #121212;
  transition: var(--t-ui);
}
.v-sg-cell:hover { background: #171717; border-color: #333; transform: translateY(-2px); }
.v-sg-k { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-dim); }
.v-sg-v { font-family: var(--font-display); font-weight: 500; font-size: 24px; line-height: 1.05; color: var(--text); transition: var(--t-ui); }
.v-sg-cell:hover .v-sg-v { transform: translateX(3px); }
.v-sg + .v-perks { margin-top: 14px; }
.v-perks-lead { border-top: 0; }
.v-perks-lead .product-perk {
  padding: 4px 0 14px;
  border-bottom: 0;
  font-size: 19px;
  line-height: 1.45;
  color: var(--text);
}
.v-perks-lead .product-perk svg { width: 18px; height: 18px; margin-top: 5px; }

/* Kits: pick a kit, its in-game inventory shows right here. */
.v-kits-group { margin-top: 22px; }
.v-kits-h { display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px; font-size: 15px; font-weight: 600; color: var(--text-2); }
.v-kits-h > span:last-child { font-family: var(--font-mono); font-size: 11px; color: var(--text-dim); }
.v-kits-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.v-kit-tab {
  height: 34px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, .02);
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.v-kit-tab:hover { color: var(--text); border-color: #3d3d3d; transform: translateY(-1px); }
.v-kit-tab.is-active { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
.v-kit-shot {
  position: relative;
  display: block;
  width: 100%;
  max-width: 520px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: #0b0b0b;
  cursor: zoom-in;
}
.v-kit-shot img { display: block; width: 100%; height: auto; animation: v-in .4s var(--ease-out) backwards; }
.v-kit-shot:hover { border-color: rgba(245, 200, 75, .45); }
.v-kit-zoom {
  position: absolute;
  right: 10px; bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 10px;
  border-radius: 9px;
  background: rgba(0, 0, 0, .65);
  backdrop-filter: blur(6px);
  font-size: 12px;
  color: var(--text-2);
  opacity: 0;
  transform: translateY(4px);
  transition: var(--t-ui);
}
.v-kit-shot:hover .v-kit-zoom { opacity: 1; transform: none; }

/* Compare: every privilege side by side, current column highlighted. */
.v-compare { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; }
.v-compare table { width: 100%; min-width: 520px; border-collapse: collapse; }
.v-compare th, .v-compare td { padding: 12px; text-align: center; border-bottom: 1px solid var(--line); font-size: 14px; }
.v-compare th { vertical-align: bottom; padding-top: 16px; }
.v-compare td:first-child { text-align: left; color: var(--text-muted); font-size: 13px; }
.v-compare tbody tr:last-child td { border-bottom: 0; }
.v-compare tbody tr { transition: var(--t-ui); }
.v-compare tbody tr:hover { background: rgba(255, 255, 255, .025); }
.v-compare td span { font-weight: 600; }
.v-compare .is-cur { background: rgba(245, 200, 75, .07); }
.v-compare th button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.v-compare th button:disabled { cursor: default; }
.v-compare th img { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; transition: var(--t-ui); }
.v-compare th button:not(:disabled):hover img { transform: translateY(-3px) scale(1.06); }
.v-compare th b { font-family: var(--font-display); font-weight: 500; font-size: 16px; text-transform: uppercase; transition: var(--t-ui); }
.v-compare th button:not(:disabled):hover b, .v-compare th.is-cur b { color: var(--accent); }
.v-compare th span { font-family: var(--font-mono); font-size: 10px; color: var(--text-dim); }
.v-none { color: var(--text-dim); font-weight: 400 !important; font-size: 12px; }

@media (max-width: 900px) {
  /* One scrolling column; children of both panes are re-ordered so the
     title sits right under the art and the choices come before the details. */
  .v-pm, .v-pm.is-rich { display: flex; flex-direction: column; gap: 14px; height: auto; max-height: calc(100dvh - 24px); overflow-y: auto; }
  .v-pm-side, .v-pm-main { display: contents; }
  .v-pm-ambient { display: none; }
  .v-pm-art { order: 1; width: 100%; max-height: 52vh; border-radius: 0; box-shadow: none; }
  .v-pm-art img { object-position: center 30%; }
  .o-head { order: 2; } .o-owned { order: 3; } .o-server { order: 4; } .o-tiers { order: 5; }
  .o-trial { order: 6; } .o-note { order: 7; } .o-desc { order: 8; }
  .o-panel { order: 10; } .o-upsell { order: 11; }
  .o-head, .o-owned, .o-server, .o-tiers, .o-trial, .o-note, .o-desc, .o-panel, .o-upsell { margin: 0 18px; }
  .o-upsell { width: auto; }
  .o-panel { margin-bottom: 6px; }
  .v-pm-head { padding-right: 0; }
  /* Tools float over the art here: move the badge out from under them. */
  .v-pm-art .v-pill-hit { right: auto; left: 10px; top: 46px; }
  .v-pm-bar { order: 12; position: sticky; bottom: 0; z-index: 5; }
}

/* --------------------------------------------------------------- footer -- */
.v-footer {
  margin-top: 80px;
  padding-bottom: 28px;
  border-top: 1px solid var(--line);
}
.v-footer .v-section { margin-top: 90px; }
.v-server .v-row-title { font-size: 24px; }
.v-server { grid-template-columns: 56px minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1fr) 150px 44px; }
.v-server > .v-row-meta,
.v-server-ipcell,
.v-server-status,
.v-server-copy { justify-self: center; text-align: center; }
.v-server-ip {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-2);
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, .02);
}
/* Dim the cells, not the row: the row's own opacity belongs to the reveal animation. */
.v-server.is-soon > * { opacity: .55; }

.v-footer-contact {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 40px;
  align-items: end;
  margin-top: 110px;
}

.v-footer-cols {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr));
  gap: 32px;
  margin-top: 90px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
}
.v-footer-brand { display: flex; gap: 16px; align-items: flex-start; }
.v-footer-brand img { width: 48px; height: 48px; border-radius: 14px; }
.v-footer-brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  text-transform: uppercase;
  line-height: 1;
}
.v-footer-brand-name b { color: var(--accent); }
.v-footer-brand p { color: var(--text-muted); font-size: 13px; line-height: 1.6; margin: 10px 0 0; max-width: 340px; }
.v-footer-col { display: flex; flex-direction: column; gap: 10px; }
.v-footer-col .v-kicker { margin-bottom: 4px; color: var(--text-dim); }
.v-footer-col a { color: var(--text-muted); font-size: 14px; transition: var(--t-ui); }
.v-footer-col a:hover { color: var(--accent); }

.v-footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--text-dim);
}

/* ---------------------------------------------------- content pages -- */
.v-page { padding-top: 72px; }
.v-page-head { margin-bottom: 44px; }
.v-page-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(64px, 11vw, 150px);
  line-height: 0.88;
  text-transform: uppercase;
  margin: 16px 0 18px;
}
.v-page-intro { color: var(--text-muted); max-width: 720px; margin: 0; line-height: 1.65; font-size: 16px; }

.v-rule { grid-template-columns: 64px minmax(0, 1fr) 170px; align-items: start; padding: 18px 8px; }
.v-rule .v-row-n { padding-top: 3px; color: var(--accent); }
.v-rule-text { color: var(--text-2); line-height: 1.6; font-size: 15px; }
.v-rule-end { flex-direction: column; align-items: center; gap: 8px; }
.v-rule-dur { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; color: var(--text-dim); white-space: nowrap; }

.v-note {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-top: 32px;
  padding: 18px 20px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(245, 200, 75, .25);
  background: var(--accent-softer);
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.6;
}
.v-note svg { color: var(--accent); flex-shrink: 0; margin-top: 3px; }
.v-note a { color: var(--accent); border-bottom: 1px solid rgba(245, 200, 75, .4); }

/* Legacy screens (top, profile, legal): same header language. */
.screen.top, .screen.profile { padding-top: 72px; }
.screen.admin { padding-top: 56px; }
.screen.legal { padding-top: 72px; }
.top-title, .legal-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(56px, 9vw, 120px);
  line-height: 0.9;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  margin: 14px 0 16px;
}
.top-sub, .legal-intro { color: var(--text-muted); }
.legal-title { font-size: clamp(40px, 6vw, 84px); }
.profile-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 48px;
  text-transform: uppercase;
  letter-spacing: 0;
  line-height: 1;
}
.profile-avatar { border-radius: 22px; }
.top-board { border-radius: var(--radius-xl); overflow: hidden; }
.top-row-h {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.top-c-score { font-family: var(--font-display); font-weight: 500; font-size: 20px; }
.top-c-name, .top-clan-name { font-weight: 600; }

/* ------------------------------------------------ legacy primitives skin -- */
.card {
  background: var(--surface);
  border-color: var(--border);
  border-radius: var(--radius-lg);
}
.card:hover { border-color: var(--border-strong); }
.card-interactive:hover { transform: none; background: #151515; }

.tag {
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 8px;
}
.tag-success { color: var(--success); background: var(--success-soft); border-color: var(--success-line); }

.eyebrow {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--text-muted);
}
.eyebrow::before { background: var(--text-dim); }

.section-title,
.shop-title,
.page-title {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: -0.005em;
}

.modal {
  background: #111;
  border-color: var(--border-strong);
  border-radius: 26px;
}
.modal-title { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: 34px; line-height: 1; }
.modal-close {
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(0, 0, 0, .45);
}

.fld > span {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.fld input, .fld select, .fld textarea { border-radius: 12px; }

.toast {
  border-radius: 16px;
  background: rgba(22, 22, 22, .92);
  backdrop-filter: blur(14px);
  border-color: var(--border-strong);
}

.support-option { border-radius: 16px; }

.auth-gate {
  border-radius: var(--radius-xl);
  margin-top: 40px;
}
.auth-gate-title { font-family: var(--font-display); text-transform: uppercase; font-size: 36px; }

.live-dot { background: var(--success); }

/* ------------------------------------------------ conversion components -- */
.v-accent { color: var(--accent); }

/* Entry-price anchor under the hero text. */
.v-hero-anchor {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
}
.v-hero-anchor b {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 28px;
  line-height: 1;
  color: var(--accent);
}

/* Nav: promo badge on the top-up "+". */
.v-balance { position: relative; }
.v-balance-promo {
  position: absolute;
  top: -8px; right: -6px;
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--success);
  color: #04210f;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.04em;
  box-shadow: 0 0 0 3px var(--bg);
}

@keyframes v-rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Top-up promo strip with a real countdown. */
.v-promo {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 20px;
  border: 1px solid var(--success-line);
  background:
    radial-gradient(400px 120px at 0% 50%, rgba(30, 215, 96, .16), transparent 70%),
    var(--surface);
}
.v-promo-badge {
  display: grid;
  place-items: center;
  min-width: 58px; height: 58px;
  padding: 0 8px;
  border-radius: 16px;
  background: var(--success);
  color: #04210f;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
}
.v-promo-text { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.v-promo-text b { font-family: var(--font-display); font-weight: 500; font-size: 22px; text-transform: uppercase; }
.v-promo-text span { color: var(--text-muted); font-size: 13px; }
.v-promo-left { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.v-promo-left b { font-family: var(--font-display); font-weight: 500; font-size: 24px; color: var(--success); }

.v-search kbd {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  padding: 1px 6px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
}
.v-search:focus-within kbd { display: none; }

/* Card extras: flags over the art, duration and sales proof. */
.v-card-flags {
  position: absolute;
  left: 10px; bottom: 10px;
  display: flex;
  gap: 6px;
  z-index: 2;
}
.v-flag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.v-flag-trial { color: #04210f; background: var(--success); }
.v-flag-owned { color: var(--accent); background: rgba(10, 10, 10, .75); border: 1px solid rgba(245, 200, 75, .5); }
.v-card-dur { font-family: var(--font-mono); font-size: 11px; color: var(--text-dim); }
.v-card-price { flex-wrap: wrap; row-gap: 2px; }

/* Trust row under the grid. */
.v-trust {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  overflow: hidden;
  gap: 1px;
  background: var(--line);
}
.v-trust li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 18px;
  background: #0d0d0d;
}
.v-trust svg { color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.v-trust div { display: flex; flex-direction: column; gap: 2px; }
.v-trust b { font-size: 14px; font-weight: 600; }
.v-trust span { font-size: 12px; color: var(--text-muted); }

.v-proof {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 16px;
  font-size: 13px;
  color: var(--text-muted);
}
.v-proof > span { display: inline-flex; align-items: center; gap: 6px; }
.v-proof-hit { color: var(--accent); font-weight: 600; }

.v-owned {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(245, 200, 75, .3);
  background: var(--accent-softer);
  font-size: 13px;
  color: var(--text-2);
}
.v-owned svg { color: var(--accent); margin-top: 2px; flex-shrink: 0; }
.v-owned b { color: var(--text); }

.v-pick-tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)); }
.v-tier { position: relative; padding: 10px 12px; gap: 3px; min-height: 76px; }
.v-tier .v-tier-price { font-family: var(--font-body); font-size: 14px; color: var(--text-2); font-weight: 600; }
.v-tier .v-tier-day { font-family: var(--font-mono); font-size: 10px; color: var(--text-dim); }
.v-tier .v-tier-day em { font-style: normal; color: var(--success); }
.v-tier.is-active .v-tier-price { color: var(--text); }
.v-tier-badge {
  position: absolute;
  top: -9px; right: 8px;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--success);
  color: #04210f !important;
  font-family: var(--font-mono);
  font-size: 9px !important;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.v-upsell {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 12px;
  border-radius: 16px;
  border: 1px dashed var(--border-strong);
  background: rgba(255, 255, 255, .015);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: var(--t-ui);
}
.v-upsell:hover { border-color: rgba(245, 200, 75, .5); background: var(--accent-softer); }
.v-upsell img, .v-upsell-ico {
  width: 54px; height: 54px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  display: grid;
  place-items: center;
}
.v-upsell-t { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.v-upsell-t b { font-family: var(--font-display); font-weight: 500; font-size: 20px; text-transform: uppercase; }
.v-upsell-t > span:last-child { font-size: 13px; color: var(--text-muted); }

.v-pmodal-sub2 { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 4px; font-size: 12px; color: var(--text-dim); }
.v-save { color: var(--success); font-weight: 600; }
.v-short { color: var(--warn); }
.v-gift-btn { width: auto; padding: 0 18px; }

/* Unfinished purchase reminder. */
.v-resume {
  position: fixed;
  left: 50%; bottom: 24px;
  transform: translateX(-50%);
  z-index: 150;
  display: flex;
  align-items: center;
  gap: 14px;
  width: min(560px, calc(100vw - 24px));
  padding: 12px 12px 12px 18px;
  border-radius: 20px;
  border: 1px solid rgba(245, 200, 75, .4);
  background: rgba(18, 18, 18, .92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .55);
  animation: v-rise .4s var(--ease-out);
}
.v-resume-t { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.v-resume-t b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v-resume-p { font-family: var(--font-display); font-weight: 500; font-size: 20px; white-space: nowrap; }

/* Post-purchase screen. */
.v-success {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin: auto;
  padding: 28px;
  border-radius: 28px;
  border: 1px solid var(--border-strong);
  background:
    radial-gradient(420px 220px at 50% 0%, rgba(30, 215, 96, .14), transparent 70%),
    #111;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  animation: pop-in .3s var(--ease-out);
}
.v-success-art {
  position: relative;
  width: 116px; height: 116px;
  border-radius: 26px;
  display: grid;
  place-items: center;
  margin-bottom: 8px;
}
.v-success-art img { width: 100%; height: 100%; object-fit: cover; border-radius: 26px; }
.v-success-mark {
  position: absolute;
  right: -10px; bottom: -10px;
  width: 42px; height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--success);
  color: #04210f;
  box-shadow: 0 0 0 5px #111;
}
.v-success-mark.is-warn { background: var(--warn); }
.v-success-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 56px;
  line-height: 1;
  text-transform: uppercase;
  margin: 0;
}
.v-success-text { margin: 0; color: var(--text-2); line-height: 1.6; max-width: 400px; }
.v-success-srv {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin-top: 8px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid var(--border-strong);
  text-align: left;
}
.v-success-srv > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.v-success-srv code { font-family: var(--font-mono); font-size: 14px; }
.v-success-actions { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; justify-content: center; }

/* Wallet: unfinished purchase + "хватит на". */
.v-intent {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 14px 0 4px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(245, 165, 36, .4);
  background: rgba(245, 165, 36, .06);
}
.v-intent.is-ready { border-color: var(--success-line); background: var(--success-soft); }
.v-intent > div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.v-intent > div > span:last-child { font-size: 12px; color: var(--warn); }
.v-intent.is-ready > div > span:last-child { color: var(--success); }
.v-covers { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.v-covers-list { display: flex; flex-wrap: wrap; gap: 6px; }
.v-covers-item {
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  font-size: 13px;
  color: var(--text-muted);
}
.v-covers-item b { color: var(--text); font-weight: 600; }

/* Phone tab bar (hidden on larger screens). */
.v-tabbar { display: none; }

/* -------------------------------------------------------------- motion -- */
/* Hover language: lift + glow on primary actions, tint + nudge on the rest. */
.v-btn-accent:hover, .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(245, 200, 75, .28); }
.v-btn-ghost:hover, .btn-ghost:hover   { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0, 0, 0, .35); }
.v-btn-green:hover                     { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(30, 215, 96, .18); }
.v-btn:active, .btn:active             { transform: translateY(0) scale(.98); box-shadow: none; transition-duration: .08s; }
.v-nav-link:hover:not(.is-active)      { background: rgba(255, 255, 255, .04); }
.v-nav-link:hover svg                  { transform: translateY(-1px); }
.v-nav-link svg                        { transition: var(--t-ui); }
.v-nav-icon:hover, .v-avatar:hover     { transform: translateY(-1px); border-color: rgba(245, 200, 75, .5); }
.v-avatar                              { transition: var(--t-ui); }
.v-balance:hover                       { transform: translateY(-1px); }
.v-balance-plus                        { transition: var(--t-ui); }
.v-balance:hover .v-balance-plus       { transform: rotate(90deg); }
.v-nav-brand img                       { transition: var(--t-ui); }
.v-nav-brand:hover img                 { transform: rotate(-8deg) scale(1.06); }
.v-tab:hover:not(.is-active)           { background: rgba(255, 255, 255, .03); }
.v-seg-btn:hover:not(.is-active)       { background: rgba(255, 255, 255, .04); }
.v-select:hover, .v-search:hover       { border-color: #3d3d3d; }
.v-card .v-card-title                  { transition: var(--t-ui); }
.v-card:hover .v-card-title            { color: var(--accent); }
.v-card .v-pill                        { transition: var(--t-ui); }
.v-card:hover .v-pill                  { transform: translateY(-2px); }
.v-row .v-row-title                    { transition: var(--t-ui); }
.v-row:hover .v-row-title              { transform: translateX(6px); color: var(--accent); }
.v-linkrow .v-linkrow-v                { transition: var(--t-ui); }
.v-linkrow:not(.is-static):hover .v-linkrow-v { transform: translateX(6px); }
.v-footer-col a:hover                  { transform: translateX(4px); }
.v-footer-col a                        { display: inline-block; width: fit-content; }
.v-giant-link:hover                    { transform: translateX(8px); }
.v-pick-btn:hover                      { transform: translateY(-2px); }
.v-upsell:hover                        { transform: translateY(-2px); }
.v-icon-btn:hover                      { transform: translateY(-1px); }
.v-trust li                            { transition: var(--t-ui); }
.v-trust li:hover                      { background: #121212; }
.v-trust li svg                        { transition: var(--t-ui); }
.v-trust li:hover svg                  { transform: scale(1.18) rotate(-6deg); }
.v-chip                                { transition: var(--t-ui); }
.v-chip:hover                          { border-color: rgba(245, 200, 75, .45); color: var(--text); }
.v-status                              { transition: var(--t-ui); }
.v-row:hover .v-status.is-on           { box-shadow: 0 0 18px rgba(30, 215, 96, .18); }
.v-stat                                { transition: var(--t-ui); }
.v-stat:hover .v-stat-v                { color: var(--accent); }
.v-stat-v                              { transition: var(--t-ui); }
.v-tabbar-link                         { transition: var(--t-ui); }
.v-tabbar-link:active                  { transform: scale(.94); }
.v-season                              { transition: var(--t-ui); }
.v-season:hover                        { border-color: rgba(245, 200, 75, .35); transform: translateY(-3px); }
.v-promo-badge                         { transition: var(--t-ui); }
.v-promo:hover .v-promo-badge          { transform: rotate(-6deg) scale(1.05); }
.v-banner-poster                       { transition: transform .6s var(--ease-out), box-shadow .6s var(--ease); }
.v-banner:hover .v-banner-poster-0     { transform: translateY(-50%) rotate(-11deg) translateX(-8px); }
.v-banner:hover .v-banner-poster-3     { transform: translateY(-54%) rotate(13deg) translateX(8px); }

/* Footer social icons. */
.v-socials { display: flex; gap: 8px; margin-top: 16px; }
.v-social {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  color: var(--text-muted);
  background: rgba(255, 255, 255, .02);
}
.v-social:hover { color: var(--accent); border-color: rgba(245, 200, 75, .5); transform: translateY(-3px); background: var(--accent-softer); }

/* Reveal on scroll (classes added by the motion module in components.jsx).
   Animations, not transitions: hover transitions stay instant-to-start and
   are never delayed by the cascade. */
@keyframes v-in { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
.v-fade, .v-stagger > * { opacity: 0; }
.v-fade.is-in { opacity: 1; animation: v-in .9s var(--ease-out) backwards; }
.v-stagger.is-in > * { opacity: 1; animation: v-in .75s var(--ease-out) backwards; }
.v-stagger.is-in > :nth-child(2)  { animation-delay: .06s; }
.v-stagger.is-in > :nth-child(3)  { animation-delay: .12s; }
.v-stagger.is-in > :nth-child(4)  { animation-delay: .18s; }
.v-stagger.is-in > :nth-child(5)  { animation-delay: .24s; }
.v-stagger.is-in > :nth-child(6)  { animation-delay: .30s; }
.v-stagger.is-in > :nth-child(7)  { animation-delay: .36s; }
.v-stagger.is-in > :nth-child(8)  { animation-delay: .42s; }
.v-stagger.is-in > :nth-child(n+9) { animation-delay: .48s; }

/* Hero intro: the wordmark rises in, then the rest follows. */
@keyframes v-title-in { from { opacity: 0; transform: translateY(40%); } to { opacity: 1; transform: none; } }
.v-hero-title span { display: inline-block; animation: v-title-in 1.1s var(--ease-out) backwards; }
.v-hero-title span + span { animation-delay: .14s; }
.v-hero-kicker, .v-hero .v-chips { animation: v-in .9s var(--ease-out) backwards; }
.v-hero .v-chips { animation-delay: .28s; }
@keyframes v-stroke-glow { 0%, 100% { filter: none; } 50% { filter: drop-shadow(0 0 18px rgba(245, 200, 75, .35)); } }
.v-outline { animation: v-title-in 1.1s var(--ease-out) .14s backwards, v-stroke-glow 5s ease-in-out 1.4s infinite; }

/* Route change: every screen fades up. */
.screen { animation: v-screen-in .5s var(--ease-out) backwards; }
@keyframes v-screen-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* Modals: overlay fades, panels scale in from slightly below. */
.v-pm, .v-success { animation: v-pop .38s var(--ease-out) backwards; }
@keyframes v-pop { from { opacity: 0; transform: translateY(18px) scale(.97); } to { opacity: 1; transform: none; } }

/* ---------------------------------------------------------- responsive -- */
@media (max-width: 1100px) {
  .v-grid-shop { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .v-nav-link { padding: 0 11px; }
  .v-banner { grid-template-columns: minmax(280px, 360px) 1fr; }
  .v-footer-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .v-footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .v-nav-link span { display: none; }          /* icon-only links */
  .v-nav-link { width: 40px; padding: 0; justify-content: center; }
  .v-nav-link svg { opacity: 1; }
  .v-hero-band, .v-news, .v-footer-contact { grid-template-columns: 1fr; }
  .v-spot { min-height: 0; aspect-ratio: 1 / 1; }
  .v-hero-pitch { padding: 12px 8px 4px; }
  .v-footer-contact { gap: 28px; }
  .v-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .v-banner { grid-template-columns: 1fr; min-height: 0; }
  .v-banner-art { min-height: 240px; order: -1; }
  .v-banner-poster { width: 38%; }
  .v-row { grid-template-columns: 40px 1fr auto; }
  .v-row-desc, .v-row-meta { display: none; }
  .v-server {
    grid-template-columns: 40px minmax(0, 1fr) auto;
    grid-template-areas: "n title status" ". ip copy";
    row-gap: 8px;
  }
  .v-server > .v-row-n { grid-area: n; }
  .v-server > .v-row-title { grid-area: title; }
  .v-server-status { grid-area: status; justify-self: end; }
  .v-server-ipcell { grid-area: ip; justify-self: start; text-align: left; }
  .v-server-copy { grid-area: copy; justify-self: end; }
  .v-rows-compact .v-row { grid-template-columns: 64px minmax(0, 1fr) auto; }
  .v-row { grid-template-columns: 40px minmax(0, 1fr) auto; }
}

@media (max-width: 640px) {
  .shell-inner { padding: 0 16px; }
  .v-nav-wrap { top: 8px; padding: 8px 8px 0; }
  .v-nav { height: 56px; gap: 4px; padding: 0 6px; border-radius: 18px; }
  .v-nav-brand-name { display: none; }
  .v-nav-brand img { width: 36px; height: 36px; }
  .v-nav-link { width: 34px; height: 36px; }
  .v-nav-icon, .v-avatar { width: 38px; height: 38px; border-radius: 11px; }
  .v-balance { height: 38px; padding: 0 4px 0 10px; font-size: 13px; }
  .v-balance-plus { width: 28px; height: 28px; }
  .v-nav-actions .v-nav-icon[title="Выйти из аккаунта"] { display: none; }
  .v-nav-login span { display: none; }
  .v-nav-login { width: 44px; padding: 0; }

  .v-hero { padding-top: 44px; }
  .v-section { margin-top: 80px; }
  .v-stats { grid-template-columns: repeat(2, 1fr); }
  .v-stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .v-stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .v-linkrow, .v-linkrow.is-static { grid-template-columns: 92px 1fr auto; }
  .v-linkrow-v { font-size: 19px; }
  .v-hero-ctas .v-btn { flex: 1; }
  .v-hero-band { padding: 10px; margin-top: 36px; }
  .v-spot-title { font-size: 36px; }
  .v-spot-go { margin-left: 0; }

  .v-grid-shop { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .v-card { padding: 10px 10px 14px; gap: 10px; }
  .v-card-media { border-radius: 12px; }
  .v-card-title { font-size: 17px; }
  .v-pill { height: 24px; font-size: 12px; top: 8px; }
  .v-pill-green { left: 8px; } .v-pill-hit { right: 8px; }

  .v-banner { padding: 10px; }
  .v-banner-card { padding: 18px; }
  .v-banner-title { font-size: 44px; }
  .v-shop-bar { flex-direction: column; align-items: stretch; gap: 12px; }
  .v-shop-tools { order: -1; padding-bottom: 0; }
  .v-shop-bar > * { min-width: 0; max-width: 100%; }
  .v-shop-tools { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
  .v-shop-tools > * { min-width: 0; }
  .v-seg { grid-column: 1 / -1; overflow-x: auto; max-width: 100%; scrollbar-width: none; }
  .v-search { min-width: 0; }
  .v-search input { width: 100%; min-width: 0; }
  .v-banner-art { min-height: 210px; }
  .v-tabs { padding-left: 10px; }

  .v-pm { border-radius: 22px; max-height: calc(100dvh - 24px); }
  .v-pmodal-title { font-size: 38px; }
  .v-pm-bar { padding: 14px 16px; flex-wrap: wrap; gap: 12px; }
  .v-pmodal-price { display: flex; flex-direction: column; width: 100%; }
  .v-pmodal-price > div { justify-content: flex-start; }
  .v-pick-tiers { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .v-tier { padding: 9px 9px; min-height: 72px; }
  .v-tier .v-tier-day em { display: block; }
  .v-pmodal-price b { font-size: 28px; }
  .v-pmodal-buy { min-width: 0; flex: 1; }
  .v-pmodal-actions { width: 100%; }

  .v-footer-cols { grid-template-columns: 1fr 1fr; }
  .v-season-num { font-size: 110px; }
  .v-page, .screen.top, .screen.profile, .screen.legal, .screen.admin { padding-top: 40px; }
  .v-rule { grid-template-columns: 40px minmax(0, 1fr); }
  .v-rule-end { grid-column: 2; flex-direction: row; align-items: center; justify-content: flex-start; justify-self: start; }
  .profile-name { font-size: 34px; }

  .v-hero-kicker { display: block; line-height: 1.8; }
  .v-section-head { flex-direction: column; align-items: flex-start; gap: 10px; margin-bottom: 20px; }
  .v-meta { white-space: normal; }
  .v-row { gap: 12px; padding: 12px 2px; }
  .v-row-title { font-size: 19px; }
  .v-server .v-row-title { font-size: 20px; }
  .v-server-ip { font-size: 12px; padding: 4px 8px; }
}


/* ------------------------------------------ conversion: small screens -- */
@media (max-width: 900px) {
  .v-trust { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .v-promo { flex-wrap: wrap; }
  .v-promo-left { align-items: flex-start; }
}
@media (max-width: 640px) {
  /* Sections live in the bottom tab bar; the top capsule keeps brand + account. */
  .v-nav-links { display: none; }
  .v-nav { justify-content: space-between; }
  .v-nav-brand-name { display: inline; font-size: 18px; }
  .v-tabbar {
    pointer-events: auto;
    position: fixed;
    left: 8px; right: 8px; bottom: 8px;
    z-index: 70;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    height: 62px;
    padding: 6px;
    border-radius: 20px;
    border: 1px solid var(--border-strong);
    background: rgba(20, 20, 20, .9);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    box-shadow: 0 -8px 30px rgba(0, 0, 0, .45);
    padding-bottom: max(6px, env(safe-area-inset-bottom));
  }
  .v-tabbar-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    border-radius: 14px;
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 600;
  }
  .v-tabbar-link.is-active { color: var(--accent); background: rgba(255, 255, 255, .06); }
  .app { padding-bottom: 80px; }
  .toast { bottom: 88px; }
  .v-resume { bottom: 84px; }
  .v-trust li { padding: 14px; }
  .v-promo { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px 14px; }
  .v-promo-badge { min-width: 48px; height: 48px; font-size: 22px; }
  .v-promo-text b { font-size: 19px; }
  .v-promo-left { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between;
                  padding-top: 10px; border-top: 1px solid rgba(30, 215, 96, .2); }
  .v-promo .v-btn { grid-column: 1 / -1; width: 100%; }
  .v-card-dur { display: none; }
  .v-card-price s { font-size: 12px; }
  .v-gift-btn span { display: none; }
  .v-gift-btn { width: 52px; padding: 0; }
  .v-success { padding: 22px 18px; }
  .v-success-title { font-size: 44px; }
  .v-success-srv { flex-wrap: wrap; }
  .v-success-srv > div { flex-basis: 100%; }
  .v-success-srv .v-btn { flex: 1; }
  .v-intent { flex-direction: column; align-items: stretch; }
}

/* ------------------------------------------------ comparison entry points --
   Three ways in: the ladder strip under a privilege's title, big icon tabs
   in the modal, and a "Сравнить привилегии" button in the shop toolbar. */

/* Ladder strip: where this privilege sits among the others. */
.v-ladder {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "k c" "s s";
  grid-template-rows: 34px auto;     /* no jump when "Сравнить все" hides */
  align-items: center;
  gap: 10px 12px;
  margin-top: 4px;
  padding: 12px 12px 10px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, .015);
}
/* The close/share buttons only cover the title rows: the strip can use the
   full width. Nothing in the scrolling column may shrink (the tabs, an
   overflow box, used to collapse to a sliver once the header grew). */
.v-pm-head .v-ladder { margin-right: -92px; }
.v-pm-main > * { flex-shrink: 0; }
.v-ladder > .v-kicker { grid-area: k; }
.v-ladder-steps { grid-area: s; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.v-ladder-sep { width: 12px; height: 1px; background: var(--border-strong); flex-shrink: 0; }
.v-ladder-step {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 12px 0 4px;
  border-radius: 11px;
  border: 1px solid transparent;
  background: none;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--t-ui);
}
.v-ladder-step img, .v-ladder-step svg { width: 30px; height: 30px; border-radius: 8px; object-fit: cover; transition: var(--t-ui); }
.v-ladder-step svg { padding: 6px; background: #1a1a1a; }
.v-ladder-step img { filter: grayscale(.7) brightness(.8); }
.v-ladder-step:hover { color: var(--text); background: rgba(255, 255, 255, .05); transform: translateY(-2px); }
.v-ladder-step:hover img { filter: none; }
.v-ladder-step.is-cur { color: var(--accent); border-color: rgba(245, 200, 75, .35); background: rgba(245, 200, 75, .08); cursor: default; transform: none; }
.v-ladder-step.is-cur img { filter: none; }
.v-ladder-cmp {
  grid-area: c;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid rgba(245, 200, 75, .4);
  background: rgba(245, 200, 75, .1);
  color: var(--accent);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: var(--t-ui);
}
.v-ladder-cmp:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); transform: translateY(-2px); }

/* Shop toolbar button. */
.v-cmp-btn { height: 42px; padding: 0 16px; border-radius: 14px; gap: 8px; }
.v-cmp-btn svg { color: var(--accent); transition: var(--t-ui); }
.v-cmp-btn:hover { border-color: rgba(245, 200, 75, .5); }
.v-cmp-btn:hover svg { transform: scale(1.12); }

/* Standalone comparison modal (opened from the shop). */
.v-cmpm {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  max-width: 900px;
  max-height: calc(100vh - 64px);
  max-height: calc(100dvh - 64px);
  margin: auto;
  padding: 30px 32px 32px;
  overflow-y: auto;
  border-radius: 28px;
  border: 1px solid var(--border-strong);
  background: #101010;
  box-shadow: 0 40px 120px rgba(0, 0, 0, .6);
  scrollbar-width: thin;
  scrollbar-color: #2e2e2e transparent;
  animation: v-pop .38s var(--ease-out) backwards;
}
.v-cmpm-x { position: absolute; top: 14px; right: 14px; }
.v-cmpm > * { flex-shrink: 0; }
/* Row labels stay put while the tiers scroll sideways on narrow screens. */
.v-compare th:first-child, .v-compare td:first-child { position: sticky; left: 0; z-index: 1; background: #101010; }
.v-cmpm .v-pmodal-title { padding-right: 48px; }
.v-cmpm .v-pmodal-sub { margin: 0; }
.v-cmpm .v-compare { margin-top: 6px; }
.v-cmpm .v-compare th img { width: 64px; height: 64px; }
.v-cmp-hit {
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-mono);
  font-size: 10px;
  font-style: normal;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .v-pm-head .v-ladder { margin-right: 0; }
}
@media (max-width: 640px) {
  .v-ladder { padding: 10px; }
  .v-ladder > .v-kicker { letter-spacing: .08em; white-space: nowrap; }
  .v-ladder-cmp { padding: 0 10px; }
  .v-ladder-step { padding: 0 4px; }
  .v-ladder-step:not(.is-cur) span { display: none; }
  .v-ladder-steps { flex-wrap: nowrap; gap: 4px; }
  .v-ladder-sep { width: 6px; }
  .v-sg { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .v-ladder-step.is-cur { padding-right: 10px; }
  /* Toolbar: search | sort | compare (icon only). */
  .v-shop-tools { grid-template-columns: minmax(0, 1fr) auto auto; }
  .v-cmp-btn { order: 1; width: 42px; padding: 0; justify-content: center; }
  .v-cmp-btn span { display: none; }
  .v-cmpm { padding: 22px 16px 18px; border-radius: 22px; max-height: calc(100dvh - 24px); }
  .v-cmpm .v-pmodal-title { font-size: 30px; }
  .v-cmpm .v-compare th img { width: 48px; height: 48px; }
  .v-compare table { min-width: 470px; }
  .v-compare th, .v-compare td { padding: 10px 8px; font-size: 13px; }
  .v-compare td:first-child { font-size: 12px; padding-left: 12px; }
}

/* ------------------------------------------------- kits as item grids --
   Inventory-style cells: icon, amount in the corner, the hovered (or
   tapped) item is named under the grid. */
.v-kit-tab span { margin-left: 4px; font-family: var(--font-mono); font-size: 10px; opacity: .6; }
.v-inv {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
}
.v-inv-cell {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  min-width: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: radial-gradient(circle at 50% 42%, #1d1d1d, #111 72%);
  cursor: default;
  transition: var(--t-ui);
  animation: v-inv-in .4s var(--ease-out) backwards;
  animation-delay: calc(var(--i, 0) * 14ms);
}
@keyframes v-inv-in { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: none; } }
.v-inv-cell img {
  width: 76%;
  height: 76%;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .55));
  transition: transform .3s var(--ease-out);
  pointer-events: none;
}
.v-inv-cell:hover, .v-inv-cell.is-hot {
  border-color: rgba(245, 200, 75, .45);
  background: radial-gradient(circle at 50% 42%, #262216, #121110 72%);
  transform: translateY(-2px);
}
.v-inv-cell:hover img, .v-inv-cell.is-hot img { transform: scale(1.08); }
.v-inv-q {
  position: absolute;
  right: 6px;
  bottom: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--text);
  text-shadow: 0 1px 2px #000, 0 0 6px #000;
  pointer-events: none;
}
.v-inv-cap {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  min-height: 22px;
  margin-top: 10px;
  font-size: 14px;
}
.v-inv-cap b { font-weight: 600; }
.v-inv-cap > span { font-family: var(--font-mono); font-size: 12px; color: var(--accent); white-space: nowrap; }
.v-inv-cap > .v-inv-hint { font-family: var(--font-body); font-size: 13px; color: var(--text-dim); white-space: normal; }

@media (max-width: 640px) {
  .v-inv { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; }
  .v-inv-cell { border-radius: 10px; }
  .v-inv-q { right: 4px; bottom: 2px; font-size: 10px; }
}

/* ------------------------------------------------ admin: kit editor -- */
.kit-ed { margin: 6px 0 4px; }
.kit-ed-legacy {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 2px 0 10px;
  padding: 10px 12px;
  border: 1px solid rgba(245, 200, 75, .3);
  border-radius: 12px;
  background: rgba(245, 200, 75, .06);
  font-size: 12px;
  color: var(--text-2);
}
.kit-ed-legacy .btn { flex-shrink: 0; }
.kit-ed-kit { border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, .015); margin-bottom: 8px; transition: var(--t-ui); }
.kit-ed-kit.is-open { border-color: var(--border-strong); }
.kit-ed-head { display: flex; align-items: center; gap: 6px; padding: 8px; }
.kit-ed-head input { flex: 1; min-width: 0; height: 34px; padding: 0 10px; border-radius: 9px; border: 1px solid var(--border-strong); background: #0d0d0d; color: var(--text); font-weight: 600; }
.kit-ed-head .icon-btn { width: 30px; height: 30px; flex-shrink: 0; }
.kit-ed-head .icon-btn:disabled { opacity: .35; pointer-events: none; }
.kit-ed-n { font-family: var(--font-mono); font-size: 11px; color: var(--text-dim); white-space: nowrap; }
.kit-ed-toggle { display: grid; place-items: center; width: 30px; height: 30px; flex-shrink: 0; border: 0; border-radius: 8px; background: none; color: var(--text-muted); cursor: pointer; transition: var(--t-ui); }
.kit-ed-toggle svg { transition: transform .25s var(--ease-out); }
.kit-ed-kit.is-open .kit-ed-toggle svg { transform: rotate(90deg); }
.kit-ed-toggle:hover { color: var(--accent); background: rgba(255, 255, 255, .05); }
.kit-ed-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); gap: 6px; padding: 0 8px 10px; }
.kit-ed-cell {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 6px 4px 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #111;
  cursor: grab;
  transition: var(--t-ui);
}
.kit-ed-cell:hover { border-color: #3a3a3a; }
.kit-ed-cell.is-drag { opacity: .4; border-style: dashed; }
.kit-ed-cell img { width: 44px; height: 44px; object-fit: contain; pointer-events: none; }
.kit-ed-cell input {
  width: 100%;
  height: 24px;
  padding: 0 4px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: #0a0a0a;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 11px;
  text-align: center;
  -moz-appearance: textfield;
}
.kit-ed-cell input::-webkit-inner-spin-button, .kit-ed-cell input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.kit-ed-cell input:focus { outline: 0; border-color: rgba(245, 200, 75, .6); }
.kit-ed-x {
  position: absolute;
  top: 2px; right: 2px;
  width: 18px; height: 18px;
  display: grid; place-items: center;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: rgba(0, 0, 0, .6);
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transition: var(--t-ui);
}
.kit-ed-cell:hover .kit-ed-x, .kit-ed-x:focus { opacity: 1; }
.kit-ed-x:hover { background: var(--danger); color: #fff; }
.kit-ed-add {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 82px;
  border: 1px dashed var(--border-strong);
  border-radius: 10px;
  background: none;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--t-ui);
}
.kit-ed-add:hover { border-color: var(--accent); color: var(--accent); background: rgba(245, 200, 75, .05); }

/* Item picker (above the product editor). */
.kit-picker-overlay { z-index: 260; }
.kit-picker {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 860px;
  height: min(720px, calc(100dvh - 64px));
  margin: auto;
  border-radius: 22px;
  border: 1px solid var(--border-strong);
  background: #101010;
  box-shadow: 0 40px 120px rgba(0, 0, 0, .6);
  overflow: hidden;
  animation: v-pop .3s var(--ease-out) backwards;
}
.kit-picker-head { display: flex; align-items: center; gap: 10px; padding: 14px 14px 14px 18px; border-bottom: 1px solid var(--line); color: var(--text-dim); }
.kit-picker-head input { flex: 1; min-width: 0; height: 40px; border: 0; outline: 0; background: none; color: var(--text); font-size: 16px; }
.kit-picker-head .modal-close { position: static; flex-shrink: 0; }
.kit-picker-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  align-content: start;
  gap: 6px;
  padding: 12px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #2e2e2e transparent;
}
.kit-picker-cell {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 4px 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #121212;
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.2;
  cursor: pointer;
  transition: var(--t-ui);
}
.kit-picker-cell img { width: 54px; height: 54px; object-fit: contain; transition: transform .25s var(--ease-out); }
.kit-picker-cell span { width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: center; }
.kit-picker-cell:hover { border-color: #3a3a3a; color: var(--text); transform: translateY(-2px); }
.kit-picker-cell:hover img { transform: scale(1.08); }
.kit-picker-cell.is-added { border-color: rgba(245, 200, 75, .55); background: rgba(245, 200, 75, .07); color: var(--text); }
.kit-picker-cell i {
  position: absolute;
  top: 5px; right: 5px;
  display: grid; place-items: center;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
}
.kit-picker-foot { padding: 10px 18px; border-top: 1px solid var(--line); font-size: 12px; }

/* Ladder strip button, the way back from the comparison. */
.v-ladder-cmp.is-back { border-color: var(--border-strong); background: rgba(255, 255, 255, .03); color: var(--text); }
.v-ladder-cmp.is-back svg { transform: rotate(180deg); }
.v-ladder-cmp.is-back:hover { border-color: var(--accent); background: rgba(245, 200, 75, .1); color: var(--accent); }

/* ----------------------------------------------------------- top v2 --
   Page head like the rules page, one toolbar row of switches, a podium
   for places 1-3 (prizes live on the podium), hairline rows for the rest. */
.v-top .v-page-head { margin-bottom: 28px; }
.v-top-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.v-top-bar .v-seg-btn { display: inline-flex; align-items: center; gap: 6px; }
.v-top-bar .v-seg-btn svg { opacity: .7; }
.v-top-meta {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.v-top-hint { margin: -6px 0 20px; font-size: 13px; color: var(--text-muted); max-width: 720px; }

.v-pods {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  gap: 12px;
  margin-bottom: 28px;
}
.v-pod {
  --medal: var(--accent);
  --medal-soft: rgba(245, 200, 75, .12);
  --medal-line: rgba(245, 200, 75, .35);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 26px 18px 18px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(120% 70% at 50% 0%, var(--medal-soft), transparent 70%),
    linear-gradient(180deg, #151515, #0c0c0c);
  text-align: center;
  overflow: hidden;
  transition: var(--t-ui);
  animation: v-in .5s var(--ease-out) backwards;
}
.v-pod:hover { transform: translateY(-3px); border-color: var(--medal-line); }
.v-pod.p1 { order: 2; min-height: 318px; border-color: rgba(245, 200, 75, .35); box-shadow: 0 24px 60px -30px rgba(245, 200, 75, .45); }
.v-pod.p2 { order: 1; min-height: 278px; --medal: #cfd5de; --medal-soft: rgba(207, 213, 222, .09); --medal-line: rgba(207, 213, 222, .35); animation-delay: .08s; }
.v-pod.p3 { order: 3; min-height: 258px; --medal: #d08a54; --medal-soft: rgba(208, 138, 84, .1); --medal-line: rgba(208, 138, 84, .4); animation-delay: .16s; }
.v-pod-n {
  position: absolute;
  top: -18px;
  left: 14px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 120px;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--medal-line);
  opacity: .8;
  pointer-events: none;
}
.v-pod-medal {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  color: var(--medal);
  background: var(--medal-soft);
  border: 1px solid var(--medal-line);
}
.v-pod-mark { position: relative; margin-top: auto; }
.v-pod-mark .top-clan-banner { width: 64px; height: 80px; padding: 6px 6px 14px; font-size: 20px; }
.v-pod.p1 .v-pod-mark .top-clan-banner { width: 76px; height: 95px; font-size: 24px; }
.v-pod-mark .v-top-ava { width: 72px; height: 72px; font-size: 20px; }
.v-pod.p1 .v-pod-mark .v-top-ava { width: 84px; height: 84px; }
.v-pod-free {
  display: grid;
  place-items: center;
  width: 64px; height: 64px;
  border-radius: 50%;
  border: 1px dashed var(--border-strong);
  color: var(--text-dim);
}
.v-pod-name {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  line-height: 1.05;
  text-transform: uppercase;
}
.v-pod.p1 .v-pod-name { font-size: 32px; }
.v-pod.is-free .v-pod-name { color: var(--text-muted); font-size: 20px; }
.v-pod-sub { font-size: 12px; color: var(--text-muted); margin-top: -4px; }
.v-pod-val {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 30px;
  line-height: 1;
  color: var(--medal);
}
.v-pod.p1 .v-pod-val { font-size: 38px; }
.v-pod-val span {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.v-pod-prize {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 2px 6px;
  width: 100%;
  margin-top: 6px;
  padding: 9px 10px;
  border-radius: 12px;
  background: rgba(0, 0, 0, .35);
  border: 1px solid var(--line);
  font-size: 12px;
  color: var(--text-muted);
}
.v-pod-prize b { font-weight: 700; font-size: 14px; color: var(--accent); }

.v-top-board { position: relative; }
.v-top-h, .v-top-row { grid-template-columns: 56px minmax(0, 1fr) 150px; }
.v-top-h.has-members, .v-top-row.has-members { grid-template-columns: 56px minmax(0, 1fr) 110px 150px; }
.v-top-h {
  display: grid;
  gap: 20px;
  padding: 0 8px 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.v-top-h > span:nth-child(n + 3) { text-align: center; }
.v-top-row { min-height: 60px; padding: 8px; }
.v-top-row .v-row-n { color: var(--text-muted); }
.v-top-who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.v-top-who .top-clan-banner { width: 32px; height: 40px; padding: 3px 3px 7px; font-size: 11px; }
.v-top-name { display: flex; flex-direction: column; min-width: 0; }
.v-top-name b { font-weight: 600; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: var(--t-ui); }
.v-top-name em { font-style: normal; font-size: 12px; color: var(--text-dim); }
.v-top-row:hover .v-top-name b { color: var(--accent); transform: translateX(4px); }
.v-top-prize {
  flex-shrink: 0;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
}
.v-top-members { text-align: center; color: var(--text-muted); font-size: 13px; }
.v-top-val { text-align: center; font-family: var(--font-display); font-weight: 500; font-size: 20px; }
.v-top-ava {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 36px; height: 36px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--surface-3);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
}
.v-top-ava img { width: 100%; height: 100%; object-fit: cover; }
.v-top-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 12px;
  padding: 44px 20px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 14px;
  text-align: center;
}
.v-top-empty svg { color: var(--text-dim); }
.v-spin {
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 2px solid var(--border-strong);
  border-top-color: var(--accent);
  animation: v-spin .8s linear infinite;
}
@keyframes v-spin { to { transform: rotate(360deg); } }
.v-top-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 52px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: none;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--t-ui);
}
.v-top-more span { font-family: var(--font-mono); font-size: 11px; color: var(--text-dim); }
.v-top-more:hover { color: var(--accent); background: rgba(255, 255, 255, .02); }

@media (max-width: 900px) {
  .v-top-meta { margin-left: 0; width: 100%; }
}
@media (max-width: 640px) {
  .v-top-bar .v-seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .v-pods { gap: 6px; }
  .v-pod { padding: 18px 8px 10px; gap: 6px; border-radius: 18px; }
  .v-pod.p1 { min-height: 236px; }
  .v-pod.p2 { min-height: 206px; }
  .v-pod.p3 { min-height: 192px; }
  .v-pod-n { font-size: 76px; top: -10px; left: 8px; }
  .v-pod-medal { width: 24px; height: 24px; top: 8px; right: 8px; }
  .v-pod-medal svg { width: 12px; height: 12px; }
  .v-pod-mark .top-clan-banner, .v-pod.p1 .v-pod-mark .top-clan-banner { width: 44px; height: 55px; padding: 4px 4px 9px; font-size: 14px; }
  .v-pod-mark .v-top-ava, .v-pod.p1 .v-pod-mark .v-top-ava { width: 48px; height: 48px; font-size: 14px; }
  .v-pod-free { width: 44px; height: 44px; }
  .v-pod-name, .v-pod.p1 .v-pod-name { font-size: 16px; }
  .v-pod.is-free .v-pod-name { font-size: 13px; white-space: normal; }
  .v-pod-val, .v-pod.p1 .v-pod-val { font-size: 20px; }
  .v-pod-val span { font-size: 8px; }
  .v-pod-prize { padding: 6px 4px; font-size: 10px; flex-direction: column; align-items: center; }
  .v-pod-prize b { font-size: 12px; }
  .v-top-h, .v-top-row { grid-template-columns: 34px minmax(0, 1fr) 76px; gap: 10px; }
  .v-top-h.has-members, .v-top-row.has-members { grid-template-columns: 34px minmax(0, 1fr) 50px 76px; }
  .v-top-val { font-size: 17px; }
  .v-top-prize { display: none; }
}

/* ------------------------------------------------------- profile v2 --
   Identity header in the page-title language, a stats band, an underline
   section nav, then flat panels (.v-box) instead of the old cards. */
.v-prof-head { display: flex; align-items: flex-end; gap: 28px; }
.v-prof-ava {
  position: relative;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 132px; height: 132px;
  border-radius: 32px;
  background: linear-gradient(145deg, var(--accent), #e0a92a);
  color: var(--accent-ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 48px;
  box-shadow: 0 24px 60px -24px rgba(245, 200, 75, .5);
}
.v-prof-ava img { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
.v-prof-lv {
  position: absolute;
  right: -8px; bottom: -8px;
  display: grid;
  place-items: center;
  min-width: 40px; height: 40px;
  padding: 0 8px;
  border-radius: 14px;
  border: 3px solid var(--bg, #060606);
  background: #111;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 18px;
}
.v-prof-id { display: flex; flex-direction: column; gap: 12px; min-width: 0; flex: 1; }
/* A sentence, not a row of flex items: wraps like text on narrow screens. */
.v-prof-id > .v-kicker { display: block; line-height: 1.6; }
.v-prof-id > .v-kicker i { margin: 0 6px; }
.v-prof-name {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(48px, 8vw, 112px);
  line-height: 0.86;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}
.v-prof-line { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 18px; }
.v-prof-sid {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 12px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: rgba(255, 255, 255, .02);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 12px;
  cursor: pointer;
  transition: var(--t-ui);
}
.v-prof-sid svg:last-child { opacity: .5; }
.v-prof-sid:hover { border-color: rgba(245, 200, 75, .5); color: var(--text); }
.v-prof-xp { display: flex; align-items: center; gap: 10px; min-width: 260px; flex: 1; max-width: 460px; }
.v-prof-xp-l, .v-prof-xp-r { font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; color: var(--text-dim); white-space: nowrap; }
.v-prof-xp-l { color: var(--accent); }
.v-prof-xp-r b { color: var(--text); font-weight: 600; }
.v-prof-xp-bar { flex: 1; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.v-prof-xp-bar > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #e0a92a, var(--accent)); }

.v-prof-stats { margin-top: 44px; }
.v-prof-stats .v-stat-v { font-size: clamp(34px, 4vw, 52px); }
.v-stat-v.is-accent { color: var(--accent); }

.v-prof-nav {
  display: flex;
  gap: 4px;
  margin: 36px 0 28px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
}
.v-prof-nav::-webkit-scrollbar { display: none; }
.v-prof-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 50px;
  padding: 0 16px;
  border: 0;
  background: none;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: var(--t-ui);
}
.v-prof-tab svg { opacity: .6; transition: var(--t-ui); }
.v-prof-tab > span { font-family: var(--font-mono); font-size: 11px; color: var(--text-dim); }
.v-prof-tab::after {
  content: "";
  position: absolute;
  left: 12px; right: 12px; bottom: -1px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform .35s var(--ease-out);
}
.v-prof-tab:hover { color: var(--text); }
.v-prof-tab:hover::after { transform: scaleX(.35); }
.v-prof-tab.is-active { color: var(--text); }
.v-prof-tab.is-active svg { opacity: 1; color: var(--accent); }
.v-prof-tab.is-active > span { color: var(--accent); }
.v-prof-tab.is-active::after { transform: scaleX(1); }
.v-prof-panel { animation: v-in .45s var(--ease-out) backwards; }

.v-prof-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 16px; align-items: start; }
.v-box {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, #121212, #0c0c0c);
  min-width: 0;
}
.v-box-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 36px; }
.v-box-sub { margin-top: 6px; font-family: var(--font-mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--text-dim); }
.v-box-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 36px 16px;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
}
.v-box-empty svg { color: var(--text-dim); margin-bottom: 4px; }
.v-box-empty b { color: var(--text); font-size: 16px; }
.v-box-empty .v-btn { margin-top: 8px; }
.v-box-empty.is-flat { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 56px 16px; }

.v-wallet-bal {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(56px, 6vw, 84px);
  line-height: .9;
}
.v-wallet-bal span { margin-left: 8px; font-size: .5em; color: var(--text-dim); }
.v-wallet-meta { font-size: 13px; color: var(--text-muted); }
.v-wallet-meta b { color: var(--text-2); font-weight: 600; }
.v-wallet-meta i { font-style: normal; color: var(--text-dim); margin: 0 4px; }
.v-wallet-promo {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(245, 200, 75, .35);
  border-radius: 14px;
  background: linear-gradient(90deg, rgba(245, 200, 75, .12), rgba(245, 200, 75, .03));
}
.v-wallet-promo > b {
  display: grid;
  place-items: center;
  min-width: 48px; height: 40px;
  border-radius: 11px;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-display);
  font-size: 20px;
}
.v-wallet-promo > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.v-wallet-promo span { font-weight: 700; }
.v-wallet-promo em { font-style: normal; font-size: 12px; color: var(--text-2); }

.v-amounts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.v-amount, .v-amount-own {
  height: 44px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: rgba(255, 255, 255, .02);
  color: var(--text-2);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--t-ui);
}
.v-amount:hover { border-color: #3d3d3d; color: var(--text); transform: translateY(-1px); }
.v-amount.is-active { border-color: var(--accent); background: rgba(245, 200, 75, .1); color: var(--accent); }
.v-amount-own { grid-column: span 2; display: flex; align-items: center; gap: 6px; padding: 0 14px; cursor: text; }
.v-amount-own:focus-within { border-color: rgba(245, 200, 75, .6); }
.v-amount-own input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: none;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 20px;
  -moz-appearance: textfield;
}
.v-amount-own input::-webkit-inner-spin-button, .v-amount-own input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.v-amount-own span { color: var(--text-dim); }

.v-methods { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.v-method {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  background: rgba(255, 255, 255, .02);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: var(--t-ui);
}
.v-method:hover:not(:disabled) { border-color: #3d3d3d; transform: translateY(-1px); }
.v-method.is-active { border-color: var(--accent); background: rgba(245, 200, 75, .08); }
.v-method:disabled { opacity: .4; cursor: not-allowed; }
.v-method-ico { display: grid; place-items: center; width: 36px; height: 36px; flex-shrink: 0; border-radius: 10px; background: #1a1a1a; color: var(--text-muted); transition: var(--t-ui); }
.v-method.is-active .v-method-ico { background: var(--accent); color: var(--accent-ink); }
.v-method-t { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.v-method-t b { font-size: 14px; font-weight: 600; }
.v-method-t em { font-style: normal; font-size: 11px; color: var(--text-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v-method-fee { font-family: var(--font-mono); font-size: 11px; color: var(--text-dim); }

.v-wallet-cta { width: 100%; margin-top: 6px; flex-wrap: wrap; row-gap: 2px; }
.v-wallet-cta-get { margin-left: 4px; }
.v-wallet-cta-fee { width: 100%; font-size: 12px; font-weight: 500; opacity: .7; }
.v-wallet .v-covers { margin-top: 0; }

.v-privs-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.v-priv {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  grid-template-areas: "ico t left" "bar bar bar";
  align-items: center;
  gap: 10px 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, .015);
  transition: var(--t-ui);
}
.v-priv:hover { border-color: #333; }
.v-priv-ico { grid-area: ico; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; color: #fff; }
.v-priv-t { grid-area: t; display: flex; flex-direction: column; min-width: 0; }
.v-priv-t b { font-family: var(--font-display); font-weight: 500; font-size: 20px; text-transform: uppercase; }
.v-priv-t em { font-style: normal; font-size: 12px; color: var(--text-dim); }
.v-priv-left { grid-area: left; display: flex; flex-direction: column; align-items: flex-end; font-family: var(--font-display); font-size: 20px; color: var(--accent); }
.v-priv-left em { font-style: normal; font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-dim); }
.v-priv-bar { grid-area: bar; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .06); overflow: hidden; }
.v-priv-bar > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #e0a92a, var(--accent)); }

.v-prof-mini { margin: 0 0 24px; }
.v-prof-mini .v-stat { padding: 18px 0; }
.v-prof-mini .v-stat + .v-stat { padding-left: 24px; }
.v-prof-mini .v-stat-v { font-size: clamp(28px, 3vw, 40px); }

.v-hist-row { grid-template-columns: 40px minmax(0, 1fr) 140px 150px 120px 110px; min-height: 64px; }
.v-hist-row.is-tx { grid-template-columns: 40px minmax(0, 1fr) 140px 150px 120px 110px; }
.v-hist-ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; color: #fff; background: #1a1a1a; }
.v-hist-ico.is-in { background: var(--success-soft); color: var(--success); }
.v-hist-ico.is-out { color: var(--text-muted); }
.v-hist-t { display: flex; flex-direction: column; min-width: 0; }
.v-hist-t b { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-weight: 600; font-size: 15px; }
.v-hist-t em { font-style: normal; font-size: 12px; color: var(--text-dim); }
.v-hist-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
}
.v-hist-tag.sent { background: rgba(255, 255, 255, .06); color: var(--text-2); }
.v-hist-m { text-align: center; font-family: var(--font-mono); font-size: 11px; letter-spacing: .04em; color: var(--text-muted); }
.v-hist-s { display: flex; justify-content: center; }
.v-hist-a { text-align: right; font-family: var(--font-display); font-weight: 500; font-size: 19px; }
.v-hist-a.is-pos { color: var(--success); }

.v-achs { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }
.v-ach {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  grid-template-areas: "ico t" "ico st";
  align-items: start;
  gap: 8px 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, .015);
  transition: var(--t-ui);
}
.v-ach:hover { border-color: #333; transform: translateY(-2px); }
.v-ach.is-done { border-color: rgba(245, 200, 75, .28); background: linear-gradient(180deg, rgba(245, 200, 75, .06), rgba(255, 255, 255, .01)); }
.v-ach-ico { grid-area: ico; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 15px; background: #1a1a1a; color: var(--text-dim); }
.v-ach.is-done .v-ach-ico { color: #fff; }
.v-ach-t { grid-area: t; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.v-ach-t b { font-weight: 600; font-size: 15px; }
.v-ach:not(.is-done) .v-ach-t b { color: var(--text-2); }
.v-ach-t em { font-style: normal; font-size: 13px; color: var(--text-muted); line-height: 1.45; }
.v-ach-rew { font-size: 12px; font-weight: 600; color: var(--accent); }
.v-ach-st {
  grid-area: st;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.v-ach-st.is-done { border-color: rgba(245, 200, 75, .4); color: var(--accent); }

.v-set-row { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.v-set-ico { display: grid; place-items: center; width: 40px; height: 40px; flex-shrink: 0; border-radius: 11px; background: #1a1a1a; color: var(--text-2); }
.v-set-t { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.v-set-t b { font-weight: 600; }
.v-set-t em { font-style: normal; font-size: 12px; color: var(--text-dim); overflow-wrap: anywhere; }
.v-set-row > .v-btn, .v-set-row > .v-status { flex-shrink: 0; }

@media (max-width: 1100px) {
  .v-hist-row, .v-hist-row.is-tx { grid-template-columns: 40px minmax(0, 1fr) 120px 110px 100px; }
  .v-hist-row > .v-hist-m:nth-of-type(4) { display: none; }
}
@media (max-width: 900px) {
  .v-prof-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .v-prof-head { flex-direction: column; align-items: flex-start; gap: 18px; }
  .v-prof-ava { width: 88px; height: 88px; border-radius: 24px; font-size: 32px; }
  .v-prof-lv { min-width: 32px; height: 32px; font-size: 15px; border-radius: 11px; }
  .v-prof-name { font-size: 46px; }
  .v-prof-xp { min-width: 0; flex: 1 1 100%; max-width: none; }
  .v-prof-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 28px; }
  .v-prof-stats .v-stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .v-prof-stats .v-stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .v-prof-nav { margin: 24px -16px 20px; padding: 0 8px; }
  .v-prof-tab { padding: 0 10px; font-size: 14px; }
  .v-box { padding: 16px; border-radius: 20px; }
  .v-amounts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .v-amount-own { grid-column: 1 / -1; }
  .v-methods { grid-template-columns: 1fr; }
  .v-prof-mini { grid-template-columns: 1fr 1fr; }
  .v-prof-mini .v-stat:nth-child(3) { grid-column: 1 / -1; padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .v-hist-row, .v-hist-row.is-tx { grid-template-columns: 36px minmax(0, 1fr) auto; gap: 10px; }
  .v-hist-row > .v-hist-m, .v-hist-row > .v-hist-s { display: none; }
  .v-hist-ico { width: 36px; height: 36px; }
  .v-hist-a { font-size: 17px; }
  .v-achs { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------- legal v2 --
   Documents: page-title header, sticky table of contents on the left,
   numbered sections on the right. */
.v-legal-title { font-size: clamp(44px, 7vw, 104px); max-width: 14ch; }
.v-legal .v-page-intro + .v-page-intro { margin-top: 12px; }
.v-legal-grid { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 56px; align-items: start; }
.v-legal-toc {
  position: sticky;
  top: 108px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: calc(100vh - 140px);
  overflow-y: auto;
  scrollbar-width: none;
}
.v-legal-toc::-webkit-scrollbar { display: none; }
.v-legal-toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.v-legal-toc a {
  position: relative;
  display: flex;
  gap: 10px;
  padding: 8px 0 8px 16px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.35;
  transition: var(--t-ui);
}
.v-legal-toc a span { font-family: var(--font-mono); font-size: 11px; color: var(--text-dim); padding-top: 2px; transition: var(--t-ui); }
.v-legal-toc a::before {
  content: "";
  position: absolute;
  left: -1px; top: 8px; bottom: 8px;
  width: 2px;
  border-radius: 2px;
  background: var(--accent);
  transform: scaleY(0);
  transition: transform .3s var(--ease-out);
}
.v-legal-toc a:hover { color: var(--text); }
.v-legal-toc a.is-cur { color: var(--text); }
.v-legal-toc a.is-cur span { color: var(--accent); }
.v-legal-toc a.is-cur::before { transform: scaleY(1); }

.v-legal-body { max-width: 780px; min-width: 0; }
.v-legal-sec { padding: 8px 0 28px; border-top: 1px solid var(--line); scroll-margin-top: 110px; }
.v-legal-sec + .v-legal-sec { margin-top: 8px; }
.v-legal-h {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 20px 0 16px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.05;
  text-transform: uppercase;
}
.v-legal-h span { font-family: var(--font-mono); font-weight: 400; font-size: 12px; letter-spacing: .08em; color: var(--accent); }
.v-legal-p {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 8px;
  margin: 0 0 12px;
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.7;
}
.v-legal-p span { font-family: var(--font-mono); font-size: 11px; color: var(--text-dim); padding-top: 4px; }
.v-legal-list { margin: 0 0 14px 56px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.v-legal-list li { position: relative; padding-left: 18px; color: var(--text-2); font-size: 15px; line-height: 1.6; }
.v-legal-list li::before { content: ""; position: absolute; left: 0; top: .72em; width: 8px; height: 1px; background: var(--accent); }
.v-legal .v-note { margin-top: 20px; }

@media (max-width: 900px) {
  .v-legal-grid { grid-template-columns: 1fr; gap: 28px; }
  .v-legal-toc { position: static; max-height: none; }
}
@media (max-width: 640px) {
  .v-legal-p { grid-template-columns: 36px minmax(0, 1fr); font-size: 14px; }
  .v-legal-list { margin-left: 44px; }
  .v-legal-list li { font-size: 14px; }
}

/* ------------------------------------------------------ polish pass --
   Products without artwork: a lit glass badge on the admin gradient
   instead of a flat colour field with a thin icon. */
.v-card-media.is-glyph, .v-pm-art.is-glyph { isolation: isolate; }
.v-card-media.is-glyph::before, .v-pm-art.is-glyph::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(70% 60% at 50% 38%, rgba(255, 255, 255, .22), transparent 70%),
    radial-gradient(circle, rgba(255, 255, 255, .14) 1px, transparent 1.3px) 0 0 / 14px 14px,
    linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, .45));
}
.v-glyph {
  display: grid;
  place-items: center;
  width: 44%;
  aspect-ratio: 1 / 1;
  border-radius: 28%;
  border: 1px solid rgba(255, 255, 255, .28);
  background: rgba(255, 255, 255, .12);
  -webkit-backdrop-filter: blur(6px);
          backdrop-filter: blur(6px);
  color: #fff;
  box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .25);
  transition: transform .5s var(--ease-out);
}
.v-glyph svg { width: 42%; height: 42%; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .35)); }
.v-card:hover .v-glyph { transform: translateY(-4px) scale(1.04); }
.v-glyph.is-lg { width: 36%; }

/* Old price after the new one. */
.v-card-price s { margin-left: -2px; }

/* Guest in the shop banner: a login line instead of "0 ₽". */
.v-banner-login { margin-top: 6px; max-width: 240px; font-size: 14px; line-height: 1.35; color: var(--text-2); }

/* Login gate (profile / admin for guests). */
.v-gate .v-kicker svg { color: var(--accent); }
.v-gate-row { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 20px; margin-top: -12px; }
.v-gate-note { font-size: 13px; color: var(--text-dim); max-width: 320px; }
.v-gate-points { margin-top: 48px; }
.v-gate-points .v-row { grid-template-columns: 56px minmax(0, 1fr) minmax(0, 1.4fr); }
@media (max-width: 640px) {
  .v-gate-points .v-row { grid-template-columns: 36px minmax(0, 1fr); }
  .v-gate-points .v-row-desc { display: block; grid-column: 2; margin-top: -8px; }
}

/* Phones: two narrow columns cut names mid-word ("ТУРЕЛИ БЕЗ ЭЛЕКТ..."),
   so titles get two lines; the same height keeps prices in one line. */
@media (max-width: 640px) {
  .v-card-title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    white-space: normal;
    min-height: 2.2em;
    overflow-wrap: anywhere;
  }
}

/* ------------------------------------------------ landing: hero row --
   Server chips sit above the title (as its kicker); under the title one
   hairline row: the two actions on the left, the live numbers on the right. */
.v-hero-chips { margin: 0 0 18px; }
.v-hero-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px 40px;
  margin-top: 10px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.v-hero-row .v-hero-ctas { flex-wrap: nowrap; }
.v-hero-stats { display: flex; margin: 0; }
.v-hero-stats > div { display: flex; flex-direction: column; gap: 8px; padding: 0 0 0 28px; }
.v-hero-stats > div + div { margin-left: 28px; border-left: 1px solid var(--line); }
.v-hero-stats dt {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-dim);
  white-space: nowrap;
}
.v-hero-stats dd {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 44px;
  line-height: .9;
  color: var(--text-2);
  transition: var(--t-ui);
}
.v-hero-stats > div:hover dd { color: var(--accent); }
/* The shop is the next thing on the page: pull it up. */
.v-hero + .v-section { margin-top: 80px; }

@media (max-width: 900px) {
  .v-hero-row { flex-direction: column; align-items: stretch; }
  .v-hero-stats > div:first-child { padding-left: 0; }
}
@media (max-width: 640px) {
  .v-hero-row .v-hero-ctas { flex-direction: column; }
  .v-hero-row .v-hero-ctas .v-btn { flex: none; width: 100%; }   /* flex:1 in a column squashed them */
  .v-hero-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .v-hero-stats > div, .v-hero-stats > div + div { margin: 0; padding: 0 0 0 12px; }
  .v-hero-stats > div:first-child { padding-left: 0; border-left: 0; }
  .v-hero-stats dt { letter-spacing: .1em; white-space: normal; }
  .v-hero-stats dd { font-size: 30px; }
  .v-hero + .v-section { margin-top: 56px; }
}

/* =========================================================== admin v2 --
   Same language as the public pages: a page-title header naming the
   current section, a quiet sticky sidebar, flat dark panels with hairline
   borders, mono labels, one accent. Everything is scoped to .screen.admin
   (and the admin modals) so the public site is untouched. */
.screen.admin { padding-top: 48px; }

.v-adm-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px 40px;
  padding-bottom: 24px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--line);
}
.v-adm-id { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.v-adm-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(48px, 6vw, 84px);
  line-height: .88;
  text-transform: uppercase;
}
.v-adm-facts { display: flex; margin: 0; }
.v-adm-facts > div { display: flex; flex-direction: column; gap: 8px; padding-left: 24px; }
.v-adm-facts > div + div { margin-left: 24px; border-left: 1px solid var(--line); }
.v-adm-facts dt {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-dim);
  white-space: nowrap;
}
.v-adm-facts dd {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 32px;
  line-height: .95;
  color: var(--text-2);
  white-space: nowrap;
}
.v-adm-facts dd span { font-size: .55em; font-weight: 500; color: var(--text-dim); }
.v-adm-facts dd.is-on { color: var(--accent); }

/* layout + sidebar */
.screen.admin .admin-layout { grid-template-columns: 236px minmax(0, 1fr); gap: 28px; }
.screen.admin .admin-side {
  top: 100px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  scrollbar-width: none;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(180deg, #111, #0b0b0b);
}
.screen.admin .admin-side::-webkit-scrollbar { display: none; }
.screen.admin .admin-navgroup + .admin-navgroup { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.screen.admin .admin-navgroup-h {
  padding: 4px 10px 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: .18em;
  color: var(--text-dim);
}
.screen.admin .admin-navbtn {
  height: 38px;
  padding: 0 10px 0 12px;
  gap: 10px;
  border: 0;
  border-radius: 10px;
  color: var(--text-muted);
  font-size: 14px;
  transition: var(--t-ui);
}
.screen.admin .admin-navbtn svg { opacity: .7; transition: var(--t-ui); }
.screen.admin .admin-navbtn:hover { background: rgba(255, 255, 255, .04); color: var(--text); }
.screen.admin .admin-navbtn:hover svg { opacity: 1; }
.screen.admin .admin-navbtn.active { background: rgba(245, 200, 75, .1); color: var(--text); }
.screen.admin .admin-navbtn.active svg { opacity: 1; color: var(--accent); }
.screen.admin .admin-navbtn.active::before { left: -10px; width: 3px; height: 20px; }
.admin-navbtn-l { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-navbtn-n { font-family: var(--font-mono); font-size: 11px; color: var(--text-dim); }
.screen.admin .admin-navbtn.active .admin-navbtn-n { color: var(--accent); }

/* content primitives */
.screen.admin .admin-content { animation: v-in .4s var(--ease-out) backwards; }
.screen.admin .card, .admin-editor.modal {
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  background: linear-gradient(180deg, #121212, #0c0c0c);
  box-shadow: none;
}
.screen.admin .card:hover { border-color: var(--border-strong); }
.screen.admin .admin-sub-h, .admin-editor .admin-sub-h {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .16em;
  color: var(--text-muted);
}
.screen.admin .muted { color: var(--text-muted); }

.screen.admin .admin-bar { margin-bottom: 18px; }
.screen.admin .mini-chip, .admin-editor .mini-chip {
  height: 34px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, .02);
  color: var(--text-muted);
  font-weight: 600;
  transition: var(--t-ui);
}
.screen.admin .mini-chip:hover, .admin-editor .mini-chip:hover { color: var(--text); border-color: #3d3d3d; }
.screen.admin .mini-chip.active, .admin-editor .mini-chip.active { background: #1e1e1e; border-color: #444; color: var(--text); }
.screen.admin .mini-chip span, .admin-editor .mini-chip span { background: none; padding: 0; font-family: var(--font-mono); color: var(--text-dim); }
.screen.admin .mini-chip.active span, .admin-editor .mini-chip.active span { color: var(--accent); background: none; }

/* list rows (products, rules, logs, achievements) */
.screen.admin .admin-rows { gap: 6px; }
.screen.admin .admin-row {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, #121212, #0e0e0e);
  transition: var(--t-ui);
}
.screen.admin .admin-row:hover { border-color: #353535; background: linear-gradient(180deg, #151515, #101010); }
.screen.admin .admin-row-prod { grid-template-columns: 28px 52px minmax(0, 1fr) 120px 130px 110px 84px; }
.screen.admin .admin-thumb { width: 52px; height: 52px; border-radius: 12px; }
.screen.admin .admin-row-title { font-size: 15px; }
.screen.admin .admin-row-dur { font-family: var(--font-mono); font-size: 11px; letter-spacing: .04em; text-align: center; }
.screen.admin .admin-row-price { font-family: var(--font-display); font-weight: 500; font-size: 20px; text-align: right; }
.screen.admin .admin-row-price em { font-family: var(--font-body); font-style: normal; font-size: 12px; font-weight: 500; color: var(--text-dim); }
.screen.admin .admin-row-cat { text-align: center; }
.screen.admin .icon-btn { border-radius: 10px; transition: var(--t-ui); }

/* tags */
.screen.admin .tag, .admin-editor .tag {
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
}

/* form fields */
.screen.admin .fld > span, .admin-editor .fld > span {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: .16em;
  color: var(--text-dim);
}
.screen.admin .fld input, .screen.admin .fld select, .screen.admin .fld textarea,
.admin-editor .fld input, .admin-editor .fld select, .admin-editor .fld textarea {
  min-height: 42px;
  border: 1px solid #2a2a2a;
  border-radius: 11px;
  background: #0a0a0a;
  transition: border-color .2s, box-shadow .2s;
}
.screen.admin .fld textarea, .admin-editor .fld textarea { min-height: 0; }
.screen.admin .fld input:hover, .screen.admin .fld select:hover, .screen.admin .fld textarea:hover,
.admin-editor .fld input:hover, .admin-editor .fld select:hover, .admin-editor .fld textarea:hover { border-color: #383838; }
.screen.admin .fld input:focus, .screen.admin .fld select:focus, .screen.admin .fld textarea:focus,
.admin-editor .fld input:focus, .admin-editor .fld select:focus, .admin-editor .fld textarea:focus {
  border-color: rgba(245, 200, 75, .7);
  box-shadow: 0 0 0 3px rgba(245, 200, 75, .12);
}

/* segmented switches (editor "из шаблона / своя картинка" etc.) */
.screen.admin .seg, .admin-editor .seg { border-radius: 12px; background: #0a0a0a; border-color: var(--border-strong); }
.screen.admin .seg button, .admin-editor .seg button { border-radius: 9px; color: var(--text-muted); transition: var(--t-ui); }
.screen.admin .seg button.active, .admin-editor .seg button.active { background: #1e1e1e; color: var(--text); box-shadow: inset 0 0 0 1px #3a3a3a; }

/* tables (users, payments, API clients) */
.screen.admin .purchases-card { padding: 0; overflow: hidden; }
.screen.admin .purchases-head {
  background: rgba(255, 255, 255, .02);
  border-bottom: 1px solid var(--line);
}
.screen.admin .purchases-h-cell {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: .16em;
  color: var(--text-dim);
}
.screen.admin .purchase-row { border-bottom: 1px solid var(--line); transition: var(--t-ui); }
.screen.admin .purchase-row:last-child { border-bottom: 0; }
.screen.admin .purchase-row:hover { background: rgba(255, 255, 255, .02); }

/* stat tiles inside sections */
.screen.admin .admin-stat { padding: 16px 18px; }
.screen.admin .admin-stat-l {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .18em;
  color: var(--text-dim);
}
.screen.admin .admin-stat-v { font-size: 30px; font-weight: 700; letter-spacing: 0; color: var(--text); }

/* product editor modal header */
.admin-editor .admin-editor-h {
  font-family: var(--font-display);
  font-size: 34px;
  line-height: .95;
  text-transform: uppercase;
  letter-spacing: 0;
}

@media (max-width: 1100px) {
  .v-adm-facts { width: 100%; }
  .v-adm-facts > div:first-child { padding-left: 0; }
}
@media (max-width: 900px) {
  .screen.admin .admin-layout { grid-template-columns: 1fr; }
  .screen.admin .admin-side {
    position: static;
    max-height: none;
    flex-direction: row;
    gap: 6px;
    overflow-x: auto;
    padding: 6px;
  }
  .screen.admin .admin-navgroup { flex-direction: row; gap: 4px; }
  .screen.admin .admin-navgroup + .admin-navgroup { margin: 0; padding: 0 0 0 6px; border-top: 0; border-left: 1px solid var(--line); }
  .screen.admin .admin-navgroup-h { display: none; }
  .screen.admin .admin-navbtn { flex-shrink: 0; }
  .screen.admin .admin-navbtn.active::before { display: none; }
  .screen.admin .admin-row-prod { grid-template-columns: 28px 48px minmax(0, 1fr) 96px 72px; }
  .screen.admin .admin-row-prod .admin-row-cat, .screen.admin .admin-row-prod .admin-row-dur { display: none; }
}
@media (max-width: 640px) {
  .screen.admin { padding-top: 32px; }
  .v-adm-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .v-adm-facts > div, .v-adm-facts > div + div { margin: 0; padding: 0 0 0 12px; }
  .v-adm-facts > div:first-child { padding-left: 0; border-left: 0; }
  .v-adm-facts dt { white-space: normal; letter-spacing: .1em; }
  .v-adm-facts dd { font-size: 24px; white-space: normal; }
  .v-adm-facts dd.is-on span { display: block; margin-top: 2px; font-size: 11px; font-family: var(--font-mono); letter-spacing: .04em; }
  /* Product rows: title on top, price under it, actions on the right. */
  .screen.admin .admin-row-prod {
    grid-template-columns: 24px 44px minmax(0, 1fr) auto;
    grid-template-areas: "re th main act" "re th price act";
    row-gap: 2px;
    column-gap: 10px;
  }
  .screen.admin .admin-row-prod .admin-reorder { grid-area: re; }
  .screen.admin .admin-row-prod .admin-thumb { grid-area: th; width: 44px; height: 44px; }
  .screen.admin .admin-row-prod .admin-row-main { grid-area: main; }
  .screen.admin .admin-row-prod .admin-row-price { display: block; grid-area: price; text-align: left; font-size: 16px; }
  .screen.admin .admin-row-prod .admin-row-actions { grid-area: act; }
}

/* ---------------------------------------- admin top: leader's reward --
   Reward rows gained a "Лидеру" column; the season warning sits above the
   close-wipe buttons. */
.admin-clantop .fld-row.reward-tier { grid-template-columns: 100px 130px 130px 1fr 44px; }
.admin-clantop .fld-row.season-tier { grid-template-columns: 90px 160px 120px 120px 1fr 44px; }
.clantop-warn {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 10px 0 4px;
  padding: 10px 14px;
  border: 1px solid rgba(245, 200, 75, .35);
  border-radius: 12px;
  background: rgba(245, 200, 75, .07);
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.5;
}
.clantop-warn svg { color: var(--accent); flex-shrink: 0; margin-top: 3px; }
.v-pod-lead { flex-basis: 100%; }
.v-pod-lead b { color: var(--accent); }
@media (max-width: 900px) {
  .admin-clantop .fld-row.reward-tier, .admin-clantop .fld-row.season-tier { grid-template-columns: 1fr 1fr; }
  .admin-clantop .fld-row.reward-tier > .btn, .admin-clantop .fld-row.season-tier > .btn { justify-self: start; }
}
