:root {
  --bg-deep: #07090e;
  --bg-card: rgba(18, 24, 36, 0.72);
  --bg-card-solid: #121824;
  --border: rgba(255, 215, 120, 0.12);
  --text: #e8ecf4;
  --muted: #8b95a8;
  --gold: #e8b84a;
  --gold-dim: #b8923a;
  --accent: #6c5ce7;
  --accent-glow: rgba(108, 92, 231, 0.35);
  --green: #2ee59d;
  --radius: 14px;
  --radius-sm: 10px;
  --font: "Manrope", system-ui, sans-serif;
  --font-display: "Outfit", var(--font);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-deep);
  min-height: 100vh;
}

*::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

*::-webkit-scrollbar-thumb {
  background-color: #272b3f;
  border-radius: 8px;
}

*::-webkit-scrollbar-track {
  background: transparent;
}

.bg-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(108, 92, 231, 0.22), transparent),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(232, 184, 74, 0.08), transparent),
    radial-gradient(ellipse 50% 30% at 0% 20%, rgba(46, 229, 157, 0.06), transparent);
  z-index: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1120px, 100% - 40px);
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

.container-wide {
  width: min(1280px, 100% - 32px);
}

/* Каталог на всю ширину окна (без боковых «полей» от max-width) */
.section-catalog > .container.container-wide {
  width: 100%;
  max-width: none;
  margin-inline: 0;
  padding-inline: clamp(14px, 2.5vw, 36px);
}

/* Header — компактная полоса, вкладки как «текст / активная пилюля» */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(5, 7, 11, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  --header-ctrl-border: rgba(69, 78, 116, 0.42);
  --header-ctrl-bg: rgba(12, 14, 22, 0.65);
  --header-ctrl-bg-hover: rgba(255, 255, 255, 0.07);
  --header-ctrl-h: 42px;
  --header-ctrl-pad-x: 17px;
  --header-ctrl-radius: 11px;
  --header-tab-pad-x: 14px;
  --header-tab-pad-y: 10px;
}

/* Шапка на всю ширину окна (остальной контент остаётся в .container) */
.site-header > .container.header-inner {
  width: 100%;
  max-width: none;
  margin-inline: 0;
  padding-inline: clamp(18px, 4.5vw, 64px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(12px, 2vw, 20px);
  padding: 12px 0;
}

.header-left {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  min-width: 0;
  flex: 1 1 auto;
}

.site-header .nav.nav-primary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  row-gap: 6px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.4vw, 16px);
  flex-shrink: 0;
  margin-left: auto;
}

.header-auth {
  display: flex;
  align-items: center;
  gap: 0;
  padding-left: 0;
  margin-left: 0;
  border-left: none;
}

.header-auth-slot {
  display: inline-flex;
  align-items: center;
  gap: clamp(8px, 1.2vw, 12px);
  flex-wrap: nowrap;
  justify-content: flex-end;
}

.header-user-cluster {
  display: inline-flex;
  align-items: center;
  gap: clamp(8px, 1.2vw, 12px);
  flex-wrap: nowrap;
}

/* Вкладки навигации: неактивные — текст; активная — тёмная пилюля + акцент снизу */
.site-header .nav.nav-primary a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: auto;
  padding: var(--header-tab-pad-y) var(--header-tab-pad-x);
  margin: 0;
  border-radius: 11px;
  border: 1px solid transparent;
  background: transparent;
  box-shadow: none;
  color: rgba(118, 128, 148, 0.98);
  font-weight: 500;
  font-size: 0.9375rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.site-header .nav.nav-primary a:hover {
  color: rgba(240, 244, 252, 0.96);
  background: rgba(255, 255, 255, 0.055);
  border-color: transparent;
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.12);
}

.site-header .nav.nav-primary a.nav-active {
  color: #f4f6fb;
  font-weight: 600;
  background: rgba(18, 22, 34, 0.92);
  border-color: rgba(72, 82, 112, 0.45);
  box-shadow: inset 0 -2px 0 0 var(--gold), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.site-header .nav.nav-primary a:focus-visible {
  outline: 2px solid rgba(232, 184, 74, 0.45);
  outline-offset: 2px;
}

.site-header .header-actions .cart-toggle.btn,
.site-header .header-actions .skinex-notif-bell.btn,
.site-header .header-auth-slot .nav-user-out.btn,
.site-header .header-actions .nav-admin-link.btn {
  min-height: var(--header-ctrl-h);
  padding: 0 var(--header-ctrl-pad-x);
  border-radius: var(--header-ctrl-radius);
  border: 1px solid var(--header-ctrl-border);
  background: var(--header-ctrl-bg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-weight: 500;
  font-size: 0.9375rem;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, transform 0.15s ease;
}

.site-header .header-actions .cart-toggle.btn:hover,
.site-header .header-actions .skinex-notif-bell.btn:hover,
.site-header .header-auth-slot .nav-user-out.btn:hover,
.site-header .header-actions .nav-admin-link.btn:hover {
  border-color: rgba(255, 215, 120, 0.22);
  background: var(--header-ctrl-bg-hover);
  color: var(--text);
}

.site-header .header-actions .cart-toggle.btn:focus-visible,
.site-header .header-actions .skinex-notif-bell.btn:focus-visible,
.site-header .header-auth-slot .nav-user-out.btn:focus-visible,
.site-header .header-actions .nav-admin-link.btn:focus-visible {
  outline: 2px solid rgba(232, 184, 74, 0.4);
  outline-offset: 2px;
}

.site-header .header-auth-slot .nav-user-cabinet,
.site-header .header-auth-slot .nav-user-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--header-ctrl-h);
  padding: 0 var(--header-ctrl-pad-x);
  border-radius: var(--header-ctrl-radius);
  border: 1px solid var(--header-ctrl-border);
  background: var(--header-ctrl-bg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-weight: 500;
  font-size: 0.9375rem;
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: 0;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.site-header .header-auth-slot .nav-user-cabinet:hover,
.site-header .header-auth-slot .nav-user-login:hover {
  color: var(--text);
  border-color: rgba(255, 215, 120, 0.22);
  background: var(--header-ctrl-bg-hover);
}

.site-header .header-auth-slot .nav-user-cabinet--current {
  color: var(--gold);
  border-color: rgba(232, 184, 74, 0.35);
  background: rgba(232, 184, 74, 0.08);
}

.site-header .header-auth-slot .nav-user-login {
  color: var(--text);
}

.site-header .header-auth-slot .nav-user-login:hover {
  color: var(--gold);
}

.site-header .header-auth-slot .nav-user-cabinet:focus-visible,
.site-header .header-auth-slot .nav-user-login:focus-visible {
  outline: 2px solid rgba(232, 184, 74, 0.4);
  outline-offset: 2px;
}

.site-header .header-actions .cart-toggle.btn {
  gap: 8px;
  padding-inline: 14px;
}

.site-header .cart-icon {
  width: 21px;
  height: 21px;
}

.site-header .cart-icon::after {
  top: -7px;
  left: 2px;
  right: 2px;
  height: 7px;
}

.site-header .cart-count {
  min-width: 24px;
  height: 24px;
  font-size: 0.75rem;
  padding: 0 6px;
}

.site-header .skinex-notif-bell.btn {
  min-width: 42px;
  padding-inline: 10px;
}

.site-header .skinex-notif-bell-glyph {
  font-size: 1.22rem;
}

.site-header .logo {
  gap: 11px;
  font-size: 1.35rem;
}

.site-header .logo-mark {
  width: 42px;
  height: 42px;
  font-size: 1.05rem;
  border-radius: 11px;
}

@media (max-width: 520px) {
  .site-header .nav.nav-primary a {
    padding: 7px 10px;
    font-size: 0.82rem;
  }

  .site-header .cart-toggle.btn {
    position: relative;
  }

  .site-header .cart-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
  }
}

/* In-app уведомления (колокол) */
.skinex-notif-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.skinex-notif-bell {
  position: relative;
  min-width: 40px;
  padding-inline: 10px;
}
.skinex-notif-bell-glyph {
  font-size: 1.1rem;
  line-height: 1;
  opacity: 0.92;
}
.skinex-notif-badge {
  position: absolute;
  top: -4px;
  right: 2px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: #dc4a4a;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  line-height: 18px;
  text-align: center;
  pointer-events: none;
}
.skinex-notif-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: min(360px, calc(100vw - 20px));
  max-height: min(440px, 72vh);
  display: flex;
  flex-direction: column;
  background: rgba(18, 22, 32, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.55);
  z-index: 300;
  backdrop-filter: blur(10px);
}
/* Иначе display:flex перебивает поведение атрибута hidden — панель всегда видна */
.skinex-notif-panel[hidden] {
  display: none !important;
}
.skinex-notif-scroll {
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  padding: 8px 0;
}
.skinex-notif-footer {
  flex-shrink: 0;
  padding: 8px 12px 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.skinex-notif-footer-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.skinex-notif-markall {
  font-size: 0.85rem;
  flex: 1;
  min-width: 0;
  justify-content: center;
}
.skinex-notif-close {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid rgba(239, 68, 68, 0.45);
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.skinex-notif-close:hover {
  background: rgba(239, 68, 68, 0.22);
  border-color: rgba(248, 113, 113, 0.65);
  color: #fca5a5;
}
.skinex-notif-close:focus-visible {
  outline: 2px solid rgba(248, 113, 113, 0.6);
  outline-offset: 2px;
}
.skinex-notif-empty {
  margin: 0;
  padding: 20px 16px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
}
.skinex-notif-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.skinex-notif-item {
  padding: 10px 14px;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.15s ease;
}
.skinex-notif-item:hover {
  background: rgba(255, 255, 255, 0.05);
}
.skinex-notif-item.is-unread {
  background: rgba(212, 168, 75, 0.08);
}
.skinex-notif-item-title {
  font-weight: 600;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.95);
}
.skinex-notif-item-body {
  margin-top: 4px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.35;
}
.skinex-notif-item-meta {
  margin-top: 6px;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.4);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
}

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dim));
  color: #1a1208;
  display: grid;
  place-items: center;
  font-size: 1rem;
}

.nav {
  display: flex;
  gap: 28px;
}

.nav a {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--text);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), #f0c96a);
  color: #1a140a;
  box-shadow: 0 8px 32px rgba(232, 184, 74, 0.25);
}

.btn-primary:hover {
  box-shadow: 0 12px 40px rgba(232, 184, 74, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  border-color: rgba(232, 184, 74, 0.35);
  background: rgba(255, 255, 255, 0.03);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
}

.btn-block {
  width: 100%;
}

/* [hidden] must win over .btn { display: inline-flex } or controls stay visible */
.btn[hidden],
a.btn[hidden] {
  display: none !important;
}

.cart-toggle {
  position: relative;
}

.cart-icon {
  width: 18px;
  height: 18px;
  border: 2px solid var(--gold);
  border-radius: 4px 4px 6px 6px;
  position: relative;
}

.cart-icon::after {
  content: "";
  position: absolute;
  top: -6px;
  left: 2px;
  right: 2px;
  height: 6px;
  border: 2px solid var(--gold);
  border-bottom: none;
  border-radius: 6px 6px 0 0;
}

.cart-count {
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.icon-btn {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Hero */
.hero {
  padding: 56px 0 72px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .header-inner {
    flex-wrap: wrap;
    row-gap: 12px;
  }

  .header-left {
    flex: 1 1 auto;
    min-width: 0;
  }

  .site-header .nav.nav-primary {
    flex-wrap: wrap;
    row-gap: 4px;
  }

  .header-auth {
    padding-left: 0;
    margin-left: 0;
    border-left: none;
  }

  .header-user-cluster {
    gap: 10px;
  }
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gold);
  margin: 0 0 12px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.85rem);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 16px;
}

.gradient-text {
  background: linear-gradient(90deg, var(--gold), #fff4d4, var(--gold));
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shine 6s linear infinite;
}

@keyframes shine {
  to {
    background-position: 200% center;
  }
}

.lead {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 520px;
  margin: 0 0 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
}

.stats {
  display: flex;
  gap: 40px;
  margin: 0;
  padding: 0;
}

.stats div {
  margin: 0;
}

.stats dt {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0 0 4px;
}

.stats dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
}

.hero-card {
  border-radius: calc(var(--radius) + 6px);
  padding: 1px;
  background: linear-gradient(145deg, rgba(232, 184, 74, 0.4), rgba(108, 92, 231, 0.25), transparent);
  box-shadow: var(--shadow);
}

.hero-card-inner {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-card-solid);
  min-height: 320px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.hero-orbs {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 20%, var(--accent-glow), transparent 45%),
    radial-gradient(circle at 20% 60%, rgba(232, 184, 74, 0.15), transparent 40%);
}

.badge {
  position: absolute;
  top: 20px;
  left: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(46, 229, 157, 0.15);
  color: var(--green);
  border: 1px solid rgba(46, 229, 157, 0.35);
  z-index: 1;
}

.hero-card-title {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin: 0 0 8px;
}

.hero-card-meta {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Sections */
.section {
  padding: 72px 0;
}

.section-alt {
  background: rgba(255, 255, 255, 0.02);
  border-block: 1px solid var(--border);
}

.section-head {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 40px;
}

.section-head.align-left {
  text-align: left;
  margin-left: 0;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2rem);
  margin: 0 0 12px;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

/* —— Каталог в стилистике collectorsshop (тёмная MUI-палитра, сайдбар + сетка) —— */
.section-catalog {
  padding: 56px 0 80px;
  background: #0d0e14;
  border-block: 1px solid rgba(255, 255, 255, 0.06);
}

.cs-scope {
  --cs-bg: #13151e;
  --cs-bg-elev: #171a26;
  --cs-border: #454e74;
  --cs-border-soft: #272b3f;
  --cs-text: #fff;
  --cs-muted: #a1a8ce;
  --cs-primary: #f55f0f;
  --cs-primary-dim: #c94a0a;
  --cs-mythic: #8847ff;
  --cs-stock: #86d759;
  --cs-radius: 4px;
  font-family: "Montserrat", var(--font);
  font-size: 12px;
  line-height: 1.5;
  color: var(--cs-text);
}

.catalog-page-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 28px;
}

.catalog-page-head h2 {
  margin: 0 0 10px;
  font-family: "Montserrat", var(--font);
  font-size: clamp(1.35rem, 2.4vw, 1.65rem);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.catalog-page-head p {
  margin: 0;
  color: var(--cs-muted);
  font-size: 12px;
}

.catalog-layout {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.catalog-layout--v2 {
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 22px;
}

@media (max-width: 900px) {
  .catalog-layout {
    grid-template-columns: 1fr;
  }
}

.catalog-aside {
  background: var(--cs-bg-elev);
  border: 1px solid rgba(69, 78, 116, 0.45);
  border-radius: 12px;
  padding: 14px 12px;
  position: sticky;
  top: 72px;
}

.catalog-aside--market {
  background: linear-gradient(165deg, rgba(22, 24, 38, 0.98), rgba(14, 16, 26, 0.99));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 8px 32px rgba(0, 0, 0, 0.35);
}

.catalog-side-hint {
  display: inline-block;
  margin-left: 6px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: none;
  color: rgba(161, 168, 206, 0.55);
  vertical-align: middle;
}

.catalog-side-block + .catalog-side-block {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(69, 78, 116, 0.35);
}

.catalog-side-title {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(161, 168, 206, 0.95);
}

.catalog-side-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.catalog-side-pill {
  display: block;
  width: 100%;
  text-align: left;
  padding: 11px 12px;
  border-radius: 10px;
  border: 1px solid rgba(69, 78, 116, 0.55);
  background: linear-gradient(145deg, rgba(30, 34, 52, 0.95), rgba(18, 20, 32, 0.98));
  color: rgba(255, 255, 255, 0.9);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}

.catalog-side-pill:hover {
  border-color: rgba(136, 71, 255, 0.45);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

.catalog-side-pill.is-active {
  border-color: rgba(136, 71, 255, 0.85);
  box-shadow:
    0 0 0 1px rgba(136, 71, 255, 0.35),
    0 6px 24px rgba(88, 60, 180, 0.25);
  color: #fff;
}

/*
 * Кнопка с картинкой: фон только в ::before на всю площадь (градиент + фото).
 * Подпись без своего «плашечного» фона — иначе получался вертикальный шов.
 */
.catalog-side-pill.catalog-side-pill--media {
  position: relative;
  display: block;
  width: 100%;
  text-align: left;
  padding: 0;
  min-height: 56px;
  overflow: hidden;
  isolation: isolate;
  background: rgb(12, 14, 22);
}

.catalog-side-pill--media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  pointer-events: none;
  background-image:
    linear-gradient(
      90deg,
      rgb(12, 14, 22) 0%,
      rgba(12, 14, 22, 0.97) 18%,
      rgba(18, 20, 34, 0.82) 38%,
      rgba(26, 28, 46, 0.48) 58%,
      rgba(34, 36, 56, 0.18) 76%,
      rgba(40, 42, 62, 0.04) 90%,
      transparent 100%
    ),
    var(--pill-bg, none);
  background-size: 100% 100%, cover;
  background-position: 0 0, center right;
  background-repeat: no-repeat, no-repeat;
}

.catalog-side-pill--media .catalog-side-pill-label {
  position: relative;
  z-index: 1;
  display: block;
  padding: 14px 16px;
  max-width: 78%;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  color: #fff;
  background: transparent;
  text-shadow:
    0 0 8px rgb(12, 14, 22),
    0 0 16px rgb(12, 14, 22),
    0 0 28px rgb(12, 14, 22),
    0 2px 4px rgba(0, 0, 0, 0.85);
}

.catalog-side-pill--media:hover::before {
  background-image:
    linear-gradient(
      90deg,
      rgb(14, 16, 28) 0%,
      rgba(20, 22, 40, 0.9) 28%,
      rgba(34, 36, 56, 0.45) 58%,
      rgba(44, 46, 68, 0.12) 84%,
      transparent 100%
    ),
    var(--pill-bg, none);
}

.catalog-side-pill--media.is-active::before {
  background-image:
    linear-gradient(
      90deg,
      rgb(10, 10, 22) 0%,
      rgba(36, 24, 68, 0.94) 24%,
      rgba(72, 48, 130, 0.55) 50%,
      rgba(100, 70, 170, 0.18) 78%,
      transparent 100%
    ),
    var(--pill-bg, none);
}

@media (max-width: 900px) {
  .catalog-aside {
    position: static;
  }
}

.catalog-search label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--cs-muted);
  margin-bottom: 8px;
}

.catalog-search input {
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--cs-radius);
  border: 1px solid rgba(69, 78, 116, 0.7);
  background: rgba(13, 14, 20, 0.65);
  color: var(--cs-text);
  font-family: inherit;
  font-size: 12px;
  outline: none;
  transition: border-color 0.2s;
}

.catalog-search input::placeholder {
  color: rgba(161, 168, 206, 0.55);
}

.catalog-search input:focus {
  border-color: var(--cs-primary);
}

.catalog-side-nav {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(69, 78, 116, 0.35);
}

.side-nav-group + .side-nav-group {
  margin-top: 18px;
}

.side-nav-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cs-muted);
  margin-bottom: 8px;
  padding-left: 2px;
}

.side-nav-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 9px 10px;
  margin-bottom: 4px;
  border: none;
  border-radius: var(--cs-radius);
  background: transparent;
  color: rgba(255, 255, 255, 0.82);
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.side-nav-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.side-nav-item.is-active {
  background: rgba(245, 95, 15, 0.14);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(245, 95, 15, 0.35);
}

.catalog-content {
  background: var(--cs-bg);
  border: 1px solid rgba(69, 78, 116, 0.35);
  border-radius: var(--cs-radius);
  padding: 16px 18px 22px;
  min-height: 360px;
}

.catalog-content--v2 {
  border-radius: 12px;
  padding: 10px 18px 24px;
  background: linear-gradient(180deg, rgba(22, 24, 36, 0.98), rgba(15, 16, 24, 0.99));
  border-color: rgba(69, 78, 116, 0.5);
}

.catalog-content--v2 .breadcrumbs {
  margin-bottom: 6px;
}

.catalog-filters-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.catalog-filters-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(10, 11, 18, 0.65);
  border: 1px solid rgba(69, 78, 116, 0.4);
}

.catalog-filters-row--secondary {
  align-items: flex-end;
}

.catalog-filters-row--top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 360px);
  align-items: end;
  gap: 16px;
}

.catalog-hero-picker {
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.catalog-hero-label {
  display: block;
  margin: 0 0 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cs-muted);
}

.catalog-hero-select-wrap {
  position: relative;
}

.catalog-hero-select-wrap::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  width: 0;
  height: 0;
  margin-top: -3px;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid rgba(161, 168, 206, 0.75);
  pointer-events: none;
}

.catalog-hero-select {
  width: 100%;
  margin: 0;
  padding: 10px 36px 10px 12px;
  appearance: none;
  -webkit-appearance: none;
  border-radius: 8px;
  border: 1px solid rgba(69, 78, 116, 0.75);
  background: #0d0e14;
  color: #f8fafc;
  font: inherit;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s;
}

.catalog-hero-select:hover {
  border-color: rgba(232, 184, 74, 0.35);
}

.catalog-hero-select:focus {
  border-color: rgba(232, 184, 74, 0.55);
  box-shadow: none;
}

.catalog-search-field {
  flex: 1 1 200px;
  min-width: 180px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid rgba(69, 78, 116, 0.65);
  background: rgba(13, 14, 20, 0.85);
}

.catalog-search-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 2px solid rgba(161, 168, 206, 0.45);
  position: relative;
  opacity: 0.85;
}

.catalog-search-icon::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 2px;
  background: rgba(161, 168, 206, 0.55);
  border-radius: 1px;
  right: -4px;
  bottom: -1px;
  transform: rotate(42deg);
}

.catalog-search-field input {
  flex: 1;
  min-width: 0;
  padding: 11px 4px 11px 0;
  border: none;
  background: transparent;
  color: var(--cs-text);
  font: inherit;
  font-size: 13px;
  outline: none;
}

.catalog-field-inline {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.catalog-field-inline label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--cs-muted);
}

.catalog-field-inline input,
.catalog-field-inline select {
  min-width: 0;
  padding: 9px 10px;
  border-radius: 8px;
  border: 1px solid rgba(69, 78, 116, 0.75);
  background: #0d0e14;
  color: #fff;
  font: inherit;
  font-size: 12px;
}

.catalog-field-inline--grow {
  flex: 1 1 140px;
}

.catalog-field-inline--narrow {
  flex: 0 0 72px;
  max-width: 88px;
}

.catalog-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
  padding: 6px 4px;
}

.catalog-switch input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.catalog-switch-ui {
  width: 38px;
  height: 20px;
  border-radius: 999px;
  background: rgba(69, 78, 116, 0.55);
  position: relative;
  flex-shrink: 0;
  transition: background 0.2s;
}

.catalog-switch-ui::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  top: 2px;
  left: 2px;
  transition: transform 0.2s;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.catalog-switch input:checked + .catalog-switch-ui {
  background: linear-gradient(90deg, #6c5ce7, #8847ff);
}

.catalog-switch input:checked + .catalog-switch-ui::after {
  transform: translateX(18px);
}

.catalog-switch-label {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.82);
  max-width: 140px;
  line-height: 1.25;
}

.catalog-reset-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(239, 68, 68, 0.45);
  background: rgba(239, 68, 68, 0.1);
  color: #fca5a5;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.catalog-reset-all:hover {
  background: rgba(239, 68, 68, 0.18);
  border-color: rgba(239, 68, 68, 0.65);
}

.catalog-reset-x {
  font-size: 1.1rem;
  line-height: 1;
  opacity: 0.9;
}

@media (max-width: 720px) {
  .catalog-filters-row--top {
    grid-template-columns: 1fr;
  }

  .catalog-filters-row--secondary {
    flex-direction: column;
    align-items: stretch;
  }

  .catalog-reset-all {
    margin-left: 0;
    width: 100%;
    justify-content: center;
  }
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--cs-muted);
  margin-bottom: 14px;
}

.breadcrumbs a {
  color: var(--cs-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.breadcrumbs a:hover {
  color: #fff;
}

.bc-sep {
  opacity: 0.45;
  user-select: none;
}

.bc-current {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 500;
}

.catalog-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.catalog-found {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
}

.catalog-sort {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 200px;
}

.catalog-sort label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--cs-muted);
}

.catalog-sort select {
  padding: 8px 10px;
  border-radius: var(--cs-radius);
  border: 1px solid rgba(69, 78, 116, 0.85);
  background: #0d0e14;
  color: #fff;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  outline: none;
}

.catalog-sort select:focus {
  border-color: var(--cs-primary);
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}

.catalog-grid--v2 {
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}

@media (min-width: 1200px) {
  .catalog-grid--v2 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (min-width: 900px) and (max-width: 1199px) {
  .catalog-grid--v2 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .catalog-grid:not(.catalog-grid--v2) {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.cs-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--cs-radius);
  border: 1px solid rgba(69, 78, 116, 0.55);
  background: #12131a;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.cs-card:hover {
  border-color: rgba(245, 95, 15, 0.45);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  transform: translateY(-2px);
}

.cs-card--v2 {
  border-radius: 14px;
  border-color: rgba(69, 78, 116, 0.5);
  background: linear-gradient(180deg, #161824, #12131a);
}

.cs-card--v2:hover {
  border-color: rgba(136, 71, 255, 0.4);
  transform: translateY(-1px);
}

.cs-card--v2.is-in-cart {
  border-color: rgba(136, 71, 255, 0.75);
  box-shadow: 0 0 0 1px rgba(136, 71, 255, 0.35), 0 12px 36px rgba(60, 40, 120, 0.25);
}

.cs-card-discount {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 5px 9px;
  border-radius: 8px;
  background: linear-gradient(135deg, #ef4444, #b91c1c);
  color: #fff;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.35);
}

.cs-card-in-cart {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 5px 8px;
  border-radius: 8px;
  background: rgba(108, 92, 231, 0.95);
  color: #fff;
  max-width: 46%;
  text-align: center;
  line-height: 1.2;
}

.cs-card-media .cs-card-badge-rarity {
  top: auto;
  bottom: 10px;
  right: 10px;
  left: auto;
}

.cs-card-body--v2 {
  padding: 12px 12px 10px;
  gap: 8px;
  /* Не растягивать тело карточки на всю высоту ряда — иначе пустота под ценой */
  flex: 0 1 auto;
  min-height: 0;
}

.cs-card-body--v2 .cs-card-name {
  min-height: auto;
  -webkit-line-clamp: 2;
  margin-bottom: 4px;
}

.cs-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 4px;
}

.cs-card-foot-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.cs-card-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  background: radial-gradient(circle at 30% 25%, rgba(136, 71, 255, 0.35), rgba(13, 14, 20, 0.95));
  border: 1px solid rgba(69, 78, 116, 0.55);
  flex-shrink: 0;
}

.cs-card-foot-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.cs-card-hero-name {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cs-card-rarity-pill {
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 7px;
  border-radius: 4px;
  width: fit-content;
  border: 1px solid rgba(69, 78, 116, 0.5);
}

.cs-card-rarity-pill--arcana {
  color: #ffb38a;
  border-color: rgba(245, 95, 15, 0.45);
  background: rgba(245, 95, 15, 0.1);
}

.cs-card-rarity-pill--immortal {
  color: #b8f598;
  border-color: rgba(134, 215, 89, 0.4);
  background: rgba(134, 215, 89, 0.08);
}

.cs-card-rarity-pill--mythical {
  color: #d4b8ff;
  border-color: rgba(136, 71, 255, 0.45);
  background: rgba(136, 71, 255, 0.1);
}

.cs-card-foot-right {
  flex-shrink: 0;
  text-align: right;
}

.cs-card-price-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.cs-card-price-old {
  font-size: 10px;
  font-weight: 600;
  color: rgba(161, 168, 206, 0.65);
  text-decoration: line-through;
}

.cs-card-actions {
  margin-top: 10px;
  display: flex;
  align-items: center;
}

.cs-card-stepper {
  display: flex;
  align-items: stretch;
  width: 100%;
  min-height: 42px;
  border-radius: 12px;
  padding: 3px;
  gap: 3px;
  border: 1px solid rgba(136, 71, 255, 0.35);
  background: linear-gradient(180deg, rgba(22, 24, 36, 0.95), rgba(10, 11, 18, 0.98));
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.35) inset,
    0 4px 14px rgba(0, 0, 0, 0.25);
}

.cs-card-step-btn {
  flex: 0 0 40px;
  width: 40px;
  min-width: 40px;
  height: auto;
  min-height: 36px;
  border: none;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}

.cs-card-step-btn:hover {
  background: rgba(136, 71, 255, 0.42);
  box-shadow: 0 0 0 1px rgba(136, 71, 255, 0.25);
}

.cs-card-step-btn:active {
  transform: scale(0.96);
}

.cs-card-step-qty {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  margin: 0 2px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.95);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(69, 78, 116, 0.45);
}

.cs-card-body--v2 .btn-cs-cart {
  width: 100%;
  border-radius: 12px;
  padding: 11px 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  box-shadow: 0 4px 16px rgba(245, 95, 15, 0.22);
  transition: box-shadow 0.2s ease, filter 0.2s ease;
}

.cs-card-media {
  position: relative;
  aspect-ratio: 1;
  background: radial-gradient(ellipse at 50% 20%, rgba(245, 95, 15, 0.12), transparent 55%), #0d0e14;
  display: grid;
  place-items: center;
}

/* Блок превью с загруженным фото: без сетки, картинка на весь квадрат + виньетки */
.cs-card-media--image {
  display: block;
  background: radial-gradient(ellipse 80% 65% at 50% 42%, rgba(245, 95, 15, 0.08), transparent 62%), #06080f;
}

.cs-card-media--image .cs-card-img-shell {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
}

.cs-card-media--image .cs-card-img {
  position: absolute;
  inset: -4%;
  width: 108%;
  height: 108%;
  object-fit: cover;
  object-position: 50% 40%;
  transform: scale(1.03);
  transform-origin: center center;
}

.cs-card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-bottom: 1px solid rgba(69, 78, 116, 0.35);
  pointer-events: none;
}

/* Лёгкое затемнение по краям фото — картинка остаётся читаемой */
.cs-card-media--image::after {
  background:
    linear-gradient(180deg, rgba(4, 6, 12, 0.22) 0%, transparent 22%),
    linear-gradient(180deg, transparent 0%, transparent 55%, rgba(12, 14, 22, 0.14) 78%, rgba(18, 20, 30, 0.42) 100%),
    linear-gradient(90deg, rgba(6, 8, 14, 0.35) 0%, transparent 10%, transparent 90%, rgba(6, 8, 14, 0.35) 100%),
    radial-gradient(ellipse 100% 88% at 50% 48%, transparent 40%, rgba(8, 10, 16, 0.1) 100%);
}

.cs-card--with-photo .cs-card-body--v2 {
  padding-top: 14px;
}

.cs-card--with-photo .cs-card-name {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.cs-card-emoji {
  position: relative;
  z-index: 2;
  font-size: clamp(2.2rem, 6vw, 3rem);
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.45));
}

.cs-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 8px;
  border-radius: 3px;
  background: rgba(13, 14, 20, 0.88);
  border: 1px solid rgba(69, 78, 116, 0.6);
  color: rgba(255, 255, 255, 0.92);
}

.cs-badge--arcana {
  border-color: rgba(245, 95, 15, 0.55);
  color: #ffb38a;
}

.cs-badge--immortal {
  border-color: rgba(134, 215, 89, 0.45);
  color: #b8f598;
}

.cs-badge--mythical {
  border-color: rgba(136, 71, 255, 0.55);
  color: #d4b8ff;
}

.cs-card-body {
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 4px;
}

.cs-card-name {
  margin: 0;
  font-family: "Montserrat", var(--font);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  color: #fff;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.7em;
}

.cs-card-hero {
  margin: 0;
  font-size: 11px;
  font-weight: 500;
  color: var(--cs-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cs-card-row {
  margin-top: auto;
  padding-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cs-card-price {
  font-size: 14px;
  font-weight: 700;
  color: var(--cs-primary);
  letter-spacing: 0.02em;
}

.cs-card-meta {
  font-size: 10px;
  font-weight: 600;
  color: var(--cs-stock);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.btn-cs-cart {
  width: 100%;
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 600;
  font-family: inherit;
  border: none;
  border-radius: var(--cs-radius);
  cursor: pointer;
  background: var(--cs-primary);
  color: #fff;
  transition: background 0.2s, transform 0.12s;
}

.btn-cs-cart:hover {
  background: var(--cs-primary-dim);
}

.btn-cs-cart:active {
  transform: scale(0.98);
}

.catalog-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 16px;
  color: var(--cs-muted);
  font-size: 12px;
  border: 1px dashed rgba(69, 78, 116, 0.5);
  border-radius: var(--cs-radius);
  background: rgba(13, 14, 20, 0.35);
}

.cs-card-media-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.cs-card-media-link:focus-visible {
  outline: 2px solid var(--cs-primary);
  outline-offset: 2px;
}

.cs-card-name-link {
  color: inherit;
  text-decoration: none;
}

.cs-card-name-link:hover {
  color: var(--cs-primary);
}

.cs-card-more {
  display: inline-block;
  margin-top: 2px;
  font-size: 11px;
  font-weight: 600;
  color: var(--cs-primary);
  text-decoration: none;
}

.cs-card-more:hover {
  text-decoration: underline;
}

.cart-line-title {
  color: inherit;
  text-decoration: none;
  font-weight: 600;
}

.cart-line-title:hover {
  color: var(--gold);
}

/* Страница товара */
.product-main {
  padding: 20px 0 72px;
}

.product-main .container-wide {
  width: min(1180px, 100% - 32px);
  margin-inline: auto;
}

.product-breadcrumbs {
  margin-bottom: 18px;
  font-size: 12px;
}

.product-card {
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 2.2vw, 22px);
  padding: clamp(18px, 2.5vw, 28px);
  border-radius: 18px;
  border: 1px solid rgba(69, 78, 116, 0.4);
  background:
    linear-gradient(155deg, rgba(26, 28, 42, 0.98) 0%, rgba(14, 16, 24, 0.99) 48%, rgba(12, 13, 20, 1) 100%);
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  max-width: 100%;
}

.product-card__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(22px, 3.5vw, 40px);
  align-items: stretch;
  width: 100%;
}

.product-card__top > .product-showcase {
  align-self: start;
  width: 100%;
  max-width: min(400px, 100%);
  margin-inline: auto;
}


.product-card__full {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 1.5vw, 16px);
  margin-top: 4px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 900px) {
  .product-card__top {
    grid-template-columns: 1fr;
    gap: 22px;
    justify-items: stretch;
  }

  .product-card__top > .product-showcase {
    max-width: min(400px, 100%);
  }
}

/* Витрина: рамка и свет вокруг превью */
.product-showcase {
  position: relative;
  border-radius: 16px;
  padding: 3px;
  background: linear-gradient(135deg, rgba(245, 95, 15, 0.35), rgba(136, 71, 255, 0.28), rgba(69, 78, 116, 0.5));
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.35),
    0 20px 50px rgba(0, 0, 0, 0.4);
}

.product-showcase::before {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 13px;
  background: radial-gradient(ellipse 90% 70% at 50% 20%, rgba(245, 95, 15, 0.12), transparent 55%);
  pointer-events: none;
  z-index: 0;
}

.product-showcase > .product-media {
  position: relative;
  z-index: 1;
  border-radius: 13px;
}

.product-showcase-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 6;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 6px 11px;
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
}

.product-media {
  position: relative;
  aspect-ratio: 1;
  width: 100%;
  max-width: min(400px, 100%);
  min-height: 220px;
  max-height: min(420px, 52vh);
  margin-inline: auto;
  border-radius: 13px;
  background: radial-gradient(ellipse at 50% 35%, rgba(245, 95, 15, 0.1), transparent 50%), #0a0b10;
  border: 1px solid rgba(69, 78, 116, 0.5);
  display: grid;
  place-items: center;
}

.product-media--image {
  display: block;
  background: radial-gradient(ellipse 70% 55% at 50% 40%, rgba(136, 71, 255, 0.08), transparent 65%), #080910;
}

.product-media--image .product-img-shell {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(6px, 1.5vw, 14px);
  box-sizing: border-box;
}

.product-media--image .product-full-img {
  position: relative;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  min-width: 0;
  min-height: 0;
  object-fit: contain;
  object-position: center center;
  transform: none;
  filter: drop-shadow(0 16px 36px rgba(0, 0, 0, 0.55));
}

.product-emoji {
  font-size: clamp(3rem, 12vw, 4.5rem);
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.45));
}

.product-kicker {
  margin-bottom: 8px;
}

.product-hero {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  color: rgba(161, 168, 206, 0.95);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.product-type-line {
  margin: 0 0 10px;
  font-size: 12px;
  color: var(--cs-muted);
}

.product-title {
  margin: 0 0 14px;
  font-family: "Montserrat", var(--font);
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  font-weight: 700;
  line-height: 1.22;
  color: #fff;
  letter-spacing: -0.02em;
  max-width: 100%;
}

.product-price-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 0;
  padding: 0 0 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  max-width: 100%;
}

.product-price-block-main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
}

.product-price {
  font-size: clamp(1.45rem, 2.6vw, 1.85rem);
  font-weight: 800;
  color: var(--cs-primary);
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.product-price-hint {
  font-size: 11px;
  color: var(--cs-muted);
  max-width: min(38em, 100%);
  line-height: 1.5;
  margin: 0;
}

.product-price-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 14px;
}

.product-market-block {
  margin: 0;
  padding: 16px 16px 14px;
  border-radius: 14px;
  background: rgba(8, 9, 14, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.product-market-block .product-subtitle {
  margin-bottom: 8px;
}

.product-market-lead,
.product-market-empty {
  margin: 0 0 14px;
  font-size: 12px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.72);
  max-width: min(90ch, 100%);
}

.product-market-table-wrap {
  overflow-x: auto;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.2);
}

.product-market-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  table-layout: fixed;
}

.product-market-table th,
.product-market-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  vertical-align: middle;
}

.product-market-table th {
  color: var(--cs-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 10px;
  background: rgba(255, 255, 255, 0.03);
}

.product-market-table tbody tr:last-child td {
  border-bottom: none;
}

.product-market-table th:nth-child(1),
.product-market-table td:nth-child(1) {
  width: 26%;
}

.product-market-table th:nth-child(2),
.product-market-table td:nth-child(2),
.product-market-table th:nth-child(3),
.product-market-table td:nth-child(3) {
  width: 14%;
  text-align: center;
}

.product-market-table th:nth-child(4),
.product-market-table td:nth-child(4) {
  width: 22%;
  text-align: right;
}

.product-market-table th:nth-child(5),
.product-market-table td:nth-child(5) {
  width: 16%;
  text-align: right;
}

.product-market-block--admin .product-market-table th:nth-child(1),
.product-market-block--admin .product-market-table td:nth-child(1) {
  width: 22%;
}

.product-market-block--admin .product-market-table th:nth-child(4),
.product-market-block--admin .product-market-table td:nth-child(4) {
  width: 18%;
}

.product-market-block--admin .product-market-table th:nth-child(6),
.product-market-block--admin .product-market-table td:nth-child(6) {
  width: 48px;
  text-align: center;
  padding: 8px;
}

.product-market-offer-del {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(248, 113, 113, 0.35);
  border-radius: 10px;
  background: rgba(127, 29, 29, 0.35);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.product-market-offer-del:hover {
  background: rgba(153, 27, 27, 0.55);
  border-color: rgba(248, 113, 113, 0.6);
}

.product-market-price {
  font-weight: 700;
  color: var(--cs-primary);
}

.product-market-num {
  color: rgba(255, 255, 255, 0.85);
  font-variant-numeric: tabular-nums;
}

.product-market-rating {
  color: rgba(255, 255, 255, 0.9);
  font-size: 12px;
}

.product-market-rating-n {
  color: var(--cs-muted);
  font-weight: 500;
}

.account-trader-ratings {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.account-trader-ratings-title {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--cs-muted);
}

.account-trader-rate-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  margin-bottom: 10px;
}

.account-trader-rate-row:last-child {
  margin-bottom: 0;
}

.account-trader-rate-name {
  min-width: 8ch;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.9);
}

.account-trader-stars {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.account-star-btn {
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.account-star-btn:hover {
  border-color: var(--cs-primary);
  color: var(--cs-primary);
}

.account-trader-rated {
  margin: 0 0 8px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.78);
}

.account-trader-rated:last-child {
  margin-bottom: 0;
}

.product-trader-panel {
  margin: 0;
  padding: 16px 16px 14px;
  border-radius: 14px;
  border: 1px solid rgba(134, 215, 89, 0.28);
  background: linear-gradient(165deg, rgba(134, 215, 89, 0.07) 0%, rgba(10, 12, 18, 0.5) 100%);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.product-trader-panel .product-subtitle {
  margin-bottom: 8px;
}

.product-trader-lead {
  margin: 0 0 14px;
  font-size: 12px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.82);
  max-width: 62ch;
}

.product-trader-note {
  margin: 12px 0 0;
  font-size: 11px;
  min-height: 1em;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.65);
}

.product-trader-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
  max-width: 520px;
}

.product-trader-btn,
.product-trader-withdraw {
  margin-top: 0;
  width: 100%;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  box-sizing: border-box;
}

.product-trader-withdraw {
  border-color: rgba(248, 113, 113, 0.45);
  color: #fecaca;
}

.product-trader-withdraw:hover {
  border-color: #f87171;
  color: #fff;
}

.product-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 100%;
  height: 100%;
  width: 100%;
  max-width: none;
  padding-top: 2px;
  align-self: stretch;
  box-sizing: border-box;
}

.product-info__stack {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  gap: 10px;
}

.product-info__foot {
  flex: 0 0 auto;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.product-info__foot .product-add-btn {
  width: 100%;
  max-width: none;
  padding: 14px 22px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(245, 95, 15, 0.25);
}

.product-desc-inline {
  margin: 0;
  font-size: 13px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.88);
  max-width: min(66ch, 100%);
}

.product-desc {
  margin: 0 0 18px;
  font-size: 13px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.88);
  max-width: 58ch;
}

.product-subtitle {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cs-muted);
}

.product-details-list {
  margin: 0;
  padding-left: 18px;
  font-size: 12px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82);
}

.product-details-list li {
  margin-bottom: 8px;
}

.product-details {
  padding: 16px 18px;
  margin: 0;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.06);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.product-details .product-subtitle {
  margin-top: 0;
}

.product-add-btn {
  min-width: 0;
}

.product-cart-note {
  margin: 0;
  font-size: 11px;
  color: var(--cs-stock);
  min-height: 0;
  max-width: min(40em, 100%);
  line-height: 1.45;
}

.product-cart-note:empty {
  display: none;
}

.product-error {
  text-align: center;
  padding: 48px 20px;
  border-radius: 4px;
  border: 1px solid rgba(69, 78, 116, 0.45);
  background: #13151e;
}

.product-error h1 {
  margin: 0 0 12px;
  font-size: 1.25rem;
}

.product-error p {
  margin: 0 0 20px;
  color: var(--cs-muted);
  font-size: 12px;
}

.nav a.nav-active {
  color: var(--gold);
  font-weight: 600;
}

.cart-checkout-note {
  margin: 8px 0 0;
  min-height: 2.5em;
  font-size: 11px;
  line-height: 1.45;
  text-align: center;
  color: var(--muted);
}

.drawer-foot-second {
  margin-top: 10px;
}

/* Личный кабинет */
.account-main {
  padding: 24px 0 80px;
}

.account-page {
  --account-radius: 16px;
  --account-border: rgba(69, 78, 116, 0.42);
  --account-surface: rgba(10, 11, 18, 0.72);
}

.account-page--minimal {
  --account-radius: 12px;
  --account-border: rgba(255, 255, 255, 0.08);
  --account-surface: rgba(11, 12, 17, 0.55);
}

/* Личный кабинет — усиленное оформление */
.account-page--cabinet.account-main {
  padding-top: 28px;
  background:
    radial-gradient(ellipse 100% 80% at 18% -10%, rgba(136, 71, 255, 0.14), transparent 52%),
    radial-gradient(ellipse 70% 55% at 92% 8%, rgba(245, 95, 15, 0.08), transparent 48%);
}

.account-page-header--cabinet {
  margin-bottom: 12px;
  padding: 20px 22px 22px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: linear-gradient(165deg, rgba(22, 24, 36, 0.92), rgba(10, 11, 17, 0.78));
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.05) inset,
    0 20px 48px rgba(0, 0, 0, 0.35);
  border-bottom: none;
}

.account-page-header--cabinet .account-title {
  margin-bottom: 8px;
  font-size: clamp(1.45rem, 2.8vw, 1.85rem);
  letter-spacing: -0.03em;
}

.account-page-header--cabinet .account-hero-lead {
  max-width: 48ch;
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(161, 168, 206, 0.95);
}

.account-page-header--cabinet .account-role-pill {
  align-self: center;
  box-shadow: 0 6px 20px rgba(245, 95, 15, 0.15);
}

.account-nav--cabinet .account-nav-link {
  padding: 9px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.2);
  color: rgba(255, 255, 255, 0.58);
}

.account-nav--cabinet .account-nav-link:hover {
  color: #fff;
  border-color: rgba(245, 95, 15, 0.35);
  background: rgba(245, 95, 15, 0.1);
}

.account-balance-glow {
  position: absolute;
  width: 100px;
  height: 100px;
  right: -28px;
  top: -28px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 95, 15, 0.2), transparent 68%);
  pointer-events: none;
  opacity: 0.75;
}

@media (max-width: 900px) {
  .account-balance-glow {
    right: -20px;
    top: -50px;
  }
}

.account-dash-balance--cabinet .account-balance-inner {
  position: relative;
  z-index: 1;
}

.account-dash-balance--cabinet .account-balance-label {
  margin-bottom: 4px;
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.45);
}

.account-dash-balance--cabinet .account-balance-value {
  margin-bottom: 10px;
  font-size: clamp(1.25rem, 2.8vw, 1.65rem);
  line-height: 1.15;
  text-shadow: 0 0 28px rgba(245, 95, 15, 0.22);
}

.account-topup-open--cabinet {
  width: 100%;
  max-width: 200px;
  padding: 8px 14px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: 10px;
  box-shadow:
    0 4px 20px rgba(245, 95, 15, 0.28),
    0 1px 0 rgba(255, 255, 255, 0.12) inset;
  transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.15s ease;
}

.account-topup-open--cabinet:hover {
  filter: brightness(1.05);
  box-shadow:
    0 6px 28px rgba(245, 95, 15, 0.38),
    0 1px 0 rgba(255, 255, 255, 0.15) inset;
}

.account-topup-open--cabinet:active {
  transform: scale(0.98);
}

@media (max-width: 900px) {
  .account-topup-open--cabinet {
    max-width: none;
  }
}

.account-dash-balance--cabinet .account-balance-hint {
  position: relative;
  z-index: 1;
  margin-top: 8px;
  margin-bottom: 0;
  padding: 6px 8px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.68rem;
  line-height: 1.35;
  max-width: 100%;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.account-dash-stats.account-dash-stats--cabinet {
  align-content: start;
}

.account-dash-stats--cabinet .account-stat-cell {
  justify-content: flex-start;
  padding: 10px 8px 12px;
  gap: 2px;
  background: rgba(0, 0, 0, 0.15);
}

.account-dash-stats--cabinet .account-stat-cell:nth-child(even) {
  background: rgba(255, 255, 255, 0.02);
}

.account-dash-stats--cabinet .account-stat-value {
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 1px 12px rgba(255, 255, 255, 0.1);
}

.account-dash-stats--cabinet .account-stat-label {
  font-size: 0.62rem;
  letter-spacing: 0.07em;
  opacity: 0.88;
  line-height: 1.2;
}

.account-panel--cabinet .account-section-head {
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.account-panel--cabinet .account-panel-title {
  font-size: 1.08rem;
  letter-spacing: -0.02em;
}

.account-panel--cabinet .account-panel-desc {
  font-size: 0.84rem;
  color: rgba(161, 168, 206, 0.92);
}

.account-layout--cabinet {
  gap: 28px;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 320px);
}

@media (max-width: 1020px) {
  .account-layout--cabinet {
    grid-template-columns: 1fr;
  }
}

.account-layout-aside--cabinet {
  gap: 18px;
}

.account-side-card--cabinet-accent {
  border-color: rgba(136, 71, 255, 0.28);
  background: linear-gradient(165deg, rgba(26, 22, 42, 0.95), rgba(12, 13, 20, 0.9));
  box-shadow:
    0 0 0 1px rgba(136, 71, 255, 0.08),
    0 16px 40px rgba(0, 0, 0, 0.3);
}

.account-side-card--cabinet {
  border-radius: 14px;
}

.account-trader-apply-lead {
  margin: 0 0 14px;
  font-size: 0.86rem;
  line-height: 1.5;
  color: rgba(161, 168, 206, 0.95);
}

.account-side-card--cabinet-tips {
  border-color: rgba(69, 78, 116, 0.4);
  background: linear-gradient(200deg, rgba(16, 18, 28, 0.95), rgba(10, 11, 16, 0.92));
}

.account-page--cabinet .account-empty {
  border-radius: 14px;
  padding: 22px;
  text-align: center;
  border-style: solid;
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.2);
}

.account-breadcrumbs {
  margin-bottom: 8px;
}

.account-page-header--minimal {
  margin-bottom: 8px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.account-page--minimal .account-title {
  margin-bottom: 6px;
  font-size: clamp(1.35rem, 2.5vw, 1.65rem);
  font-weight: 600;
}

.account-page--minimal .account-hero-lead {
  font-size: 0.88rem;
  max-width: 42ch;
}

.account-page-header--minimal.account-page-header--cabinet {
  margin-bottom: 12px;
  padding: 20px 22px 22px;
  border-bottom: none;
}

.account-page--minimal.account-page--cabinet .account-title {
  margin-bottom: 8px;
  font-size: clamp(1.45rem, 2.8vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.account-page--minimal.account-page--cabinet .account-hero-lead {
  font-size: 0.9rem;
  max-width: 48ch;
  line-height: 1.6;
  color: rgba(161, 168, 206, 0.95);
}

.account-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  margin: 0 0 20px;
  padding: 0 0 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.account-nav-link {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  border: 1px solid transparent;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}

.account-nav-link:hover {
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.05);
}

.account-nav-link:focus-visible {
  outline: 2px solid rgba(245, 95, 15, 0.45);
  outline-offset: 2px;
}

.account-nav.account-nav--cabinet {
  margin: 0 0 22px;
  padding: 6px 8px 16px;
  gap: 6px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.account-dash,
.account-section,
#profile {
  scroll-margin-top: 96px;
}

.account-dash {
  display: grid;
  grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
  border-radius: var(--account-radius);
  border: 1px solid var(--account-border);
  background: var(--account-surface);
  overflow: hidden;
}

.account-dash.account-dash--cabinet {
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(18, 20, 30, 0.95), rgba(10, 11, 16, 0.88));
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 16px 40px rgba(0, 0, 0, 0.32);
  grid-template-columns: minmax(0, 200px) minmax(0, 1fr);
}

@media (max-width: 900px) {
  .account-dash {
    grid-template-columns: 1fr;
  }
}

.account-dash-balance {
  padding: 18px 20px;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(160deg, rgba(245, 95, 15, 0.06), transparent);
}

@media (max-width: 900px) {
  .account-dash-balance {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }
}

.account-dash-balance.account-dash-balance--cabinet {
  position: relative;
  padding: 12px 14px 12px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(ellipse 120% 100% at 100% 0%, rgba(245, 95, 15, 0.12), transparent 55%),
    linear-gradient(200deg, rgba(136, 71, 255, 0.06), transparent 45%);
}

@media (max-width: 900px) {
  .account-dash-balance.account-dash-balance--cabinet {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
}

.account-dash-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
}

@media (max-width: 720px) {
  .account-dash-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .account-stat-cell:nth-child(n + 3) {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
  }
}

.account-stat-cell {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  padding: 14px 10px;
  text-align: center;
  border-left: 1px solid rgba(255, 255, 255, 0.05);
}

.account-stat-cell:first-child {
  border-left: none;
}

@media (max-width: 720px) {
  .account-stat-cell:nth-child(3) {
    border-left: none;
  }
}

.account-stat-cell--muted .account-stat-value {
  opacity: 0.85;
}

.account-stat-cell--muted .account-stat-label {
  opacity: 0.9;
}

.account-section-head {
  margin-bottom: 14px;
}

.account-section .account-panel-title {
  margin-bottom: 4px;
  font-size: 1rem;
  font-weight: 600;
}

.account-section .account-panel-desc {
  margin-bottom: 0;
  font-size: 0.78rem;
}

.account-page--minimal .account-panel {
  padding: 16px 18px;
  border-color: var(--account-border);
  background: var(--account-surface);
  box-shadow: none;
}

.account-page--minimal .account-panel.account-panel--cabinet {
  padding: 20px 22px 22px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: linear-gradient(180deg, rgba(18, 20, 30, 0.94), rgba(11, 12, 18, 0.88));
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 16px 40px rgba(0, 0, 0, 0.28);
}

.account-page--minimal .account-side-card {
  padding: 14px 16px;
  border-color: var(--account-border);
  background: var(--account-surface);
  box-shadow: none;
}

.account-page--minimal .account-side-card.account-side-card--cabinet-accent {
  padding: 16px 18px;
  border-radius: 14px;
  border-color: rgba(136, 71, 255, 0.32);
  background: linear-gradient(165deg, rgba(26, 22, 42, 0.96), rgba(12, 13, 20, 0.92));
  box-shadow:
    0 0 0 1px rgba(136, 71, 255, 0.1),
    0 14px 36px rgba(0, 0, 0, 0.32);
}

.account-page--minimal .account-side-card.account-side-card--cabinet-tips {
  border-color: rgba(69, 78, 116, 0.42);
  background: linear-gradient(200deg, rgba(16, 18, 28, 0.96), rgba(10, 11, 16, 0.94));
}

.account-page--minimal .account-side-title {
  margin-bottom: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.account-tip-list--compact {
  padding-left: 16px;
  font-size: 0.82rem;
  line-height: 1.45;
}

.account-tip-list--compact li {
  margin-bottom: 6px;
}

.account-order-head-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  min-width: 0;
}

.account-status-pill {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.88);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.account-status-pill--CREATED {
  border-color: rgba(100, 149, 237, 0.4);
  background: rgba(100, 149, 237, 0.12);
}

.account-status-pill--ASSIGNED {
  border-color: rgba(147, 197, 255, 0.35);
  background: rgba(147, 197, 255, 0.1);
}

.account-status-pill--WAITING_PERIOD {
  border-color: rgba(240, 193, 76, 0.4);
  background: rgba(240, 193, 76, 0.1);
}

.account-status-pill--READY_TO_DELIVER {
  border-color: rgba(232, 184, 74, 0.45);
  background: rgba(232, 184, 74, 0.12);
}

.account-status-pill--DELIVERED {
  border-color: rgba(134, 215, 89, 0.45);
  background: rgba(134, 215, 89, 0.1);
}

.account-status-pill--COMPLETED {
  border-color: rgba(86, 182, 120, 0.45);
  background: rgba(86, 182, 120, 0.12);
}

.account-status-pill--CANCELLED {
  border-color: rgba(248, 113, 113, 0.45);
  background: rgba(248, 113, 113, 0.12);
  color: #fecaca;
}

.account-page-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px 24px;
  margin-bottom: 12px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.account-page-header-text {
  min-width: min(100%, 560px);
}

.account-title {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
}

.account-hero-lead {
  margin: 0;
  max-width: 52ch;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--muted);
}

.account-role-pill {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(245, 95, 15, 0.35);
  background: rgba(245, 95, 15, 0.1);
  color: rgba(255, 200, 160, 0.95);
}

.account-role-note {
  margin: 0 0 20px;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid rgba(136, 71, 255, 0.22);
  background: rgba(20, 22, 34, 0.65);
  font-size: 0.82rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.82);
}

.account-page--minimal .account-role-pill {
  padding: 6px 12px;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
}

.account-role-note[hidden] {
  display: none !important;
}

.account-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
  align-items: start;
}

@media (max-width: 1020px) {
  .account-layout {
    grid-template-columns: 1fr;
  }
}

.account-layout-main {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.account-page--minimal .account-layout-main {
  gap: 16px;
}

.account-layout-aside {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 88px;
}

@media (max-width: 1020px) {
  .account-layout-aside {
    position: static;
  }
}

.account-side-card {
  padding: 18px 20px;
  border-radius: var(--account-radius);
  border: 1px solid var(--account-border);
  background: var(--account-surface);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.account-side-card--tips {
  background: linear-gradient(165deg, rgba(22, 24, 38, 0.88), rgba(12, 13, 20, 0.95));
}

.account-side-title {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}

.account-name-form {
  width: 100%;
}

.account-name-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 8px;
}

.account-name-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.account-name-row input {
  flex: 1;
  min-width: 0;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid rgba(69, 78, 116, 0.65);
  background: rgba(0, 0, 0, 0.28);
  color: #fff;
  font-family: inherit;
  font-size: 0.9rem;
}

.account-name-save {
  padding: 11px 16px;
  font-size: 0.85rem;
  border-radius: 10px;
}

.account-name-note {
  margin: 10px 0 0;
  font-size: 0.8rem;
  min-height: 1.2em;
}

.account-balance-card {
  display: grid;
  grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  padding: 22px 24px;
  border-radius: var(--account-radius);
  border: 1px solid var(--account-border);
  background: linear-gradient(145deg, rgba(245, 95, 15, 0.09), rgba(10, 11, 18, 0.92));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.account-dash-balance .account-balance-value {
  margin-bottom: 12px;
}

.account-dash-balance .account-balance-hint {
  font-size: 0.78rem;
  margin-top: 10px;
}

@media (max-width: 720px) {
  .account-balance-card {
    grid-template-columns: 1fr;
  }
}

.account-balance-inner {
  text-align: left;
}

.account-balance-label {
  margin: 0 0 8px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.account-balance-value {
  margin: 0 0 16px;
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 700;
  font-family: var(--font-display);
  color: var(--cs-primary);
  letter-spacing: 0.02em;
}

.account-topup-open {
  padding: 11px 22px;
  font-size: 0.88rem;
  width: auto;
  display: inline-block;
  border-radius: 10px;
}

.account-balance-hint {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--muted);
}

.account-return-msg {
  margin: 8px 0 0;
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--cs-stock, #86d759);
}

.account-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

@media (max-width: 800px) {
  .account-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 420px) {
  .account-stats-grid {
    grid-template-columns: 1fr;
  }
}

.account-stat-card {
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(69, 78, 116, 0.38);
  background: rgba(0, 0, 0, 0.2);
  text-align: center;
}

.account-stat-card--muted {
  opacity: 0.92;
  border-style: dashed;
}

.account-stat-value {
  display: block;
  font-size: 1.25rem;
  font-weight: 800;
  font-family: var(--font-display);
  color: #fff;
  line-height: 1.2;
  margin-bottom: 6px;
}

.account-stat-label {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.account-info-dl {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.account-info-dl > div {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 10px;
  font-size: 0.88rem;
  align-items: baseline;
}

@media (max-width: 400px) {
  .account-info-dl > div {
    grid-template-columns: 1fr;
  }
}

.account-info-dl dt {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.account-info-dl dd {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  word-break: break-word;
}

.account-tip-list {
  margin: 0;
  padding-left: 18px;
  font-size: 0.85rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.82);
}

.account-tip-list li {
  margin-bottom: 10px;
}

.account-tip-list li:last-child {
  margin-bottom: 0;
}

.account-tip-list a {
  color: var(--cs-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.account-panel {
  padding: 20px 22px;
  border-radius: var(--account-radius);
  border: 1px solid var(--account-border);
  background: var(--account-surface);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.account-panel-title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
}

.account-panel-desc {
  margin: 0 0 16px;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
}

.account-empty {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  padding: 18px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px dashed rgba(69, 78, 116, 0.45);
}

.account-order {
  padding: 16px;
  margin-bottom: 12px;
  border-radius: 12px;
  border: 1px solid rgba(69, 78, 116, 0.45);
  background: rgba(0, 0, 0, 0.25);
}

.account-page--minimal .account-order {
  padding: 14px 14px 12px;
  margin-bottom: 10px;
  border-radius: 10px;
  border-color: rgba(255, 255, 255, 0.07);
  background: rgba(6, 7, 11, 0.35);
}

.account-page--minimal .account-order-meta {
  font-size: 0.72rem;
  opacity: 0.9;
}

.account-page--minimal.account-page--cabinet .account-order {
  padding: 18px 18px 16px;
  margin-bottom: 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(165deg, rgba(20, 22, 32, 0.95), rgba(8, 9, 14, 0.75));
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

.account-page--minimal.account-page--cabinet .account-order:last-child {
  margin-bottom: 0;
}

.account-page--minimal.account-page--cabinet .deal-track {
  border-radius: 12px;
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.35);
}

.account-order:last-child {
  margin-bottom: 0;
}

.account-order-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 6px;
}

.account-order-id {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--cs-muted);
}

.account-order-total {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--cs-primary);
}

.account-order-meta {
  margin: 0 0 10px;
  font-size: 0.75rem;
  color: rgba(161, 168, 206, 0.9);
}

.account-order-items {
  margin: 0;
  padding-left: 18px;
  font-size: 0.82rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.88);
}

.account-order-items li {
  margin-bottom: 4px;
}

.account-complete-btn {
  margin-top: 12px;
  width: 100%;
  font-size: 0.82rem;
  padding: 10px 14px;
  border-radius: 10px;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  pointer-events: none;
}

.modal.is-open {
  pointer-events: auto;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  transition: opacity 0.25s;
}

.modal.is-open .modal-backdrop {
  opacity: 1;
}

.modal-box {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(400px, 100% - 32px);
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 0;
  border-radius: 8px;
  border: 1px solid rgba(69, 78, 116, 0.55);
  background: #13151e;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
  transform: translate(-50%, -50%) scale(0.96);
  opacity: 0;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.2s;
}

.modal.is-open .modal-box {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-head h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.modal-body {
  padding: 18px;
}

.modal-body .field input {
  background: rgba(13, 14, 20, 0.65);
  border-color: rgba(69, 78, 116, 0.7);
  color: #fff;
  font-size: 13px;
}

.modal-hint {
  margin: 0 0 14px;
  font-size: 11px;
  color: var(--cs-muted);
  line-height: 1.45;
}

.modal-box--topup {
  width: min(440px, 100% - 28px);
}

.topup-form .topup-hero {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(136, 71, 255, 0.14), rgba(13, 14, 20, 0.9));
  border: 1px solid rgba(136, 71, 255, 0.28);
}

.topup-hero-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.55);
}

.topup-hero-value {
  font-family: "Montserrat", var(--font);
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.topup-field-amount input {
  font-size: 15px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.topup-snaps-label {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.topup-snaps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.topup-snap {
  flex: 1 1 calc(33.333% - 6px);
  min-width: 72px;
  padding: 10px 8px;
  border-radius: 10px;
  border: 1px solid rgba(69, 78, 116, 0.65);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.92);
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.topup-snap:hover {
  border-color: rgba(245, 95, 15, 0.45);
  background: rgba(245, 95, 15, 0.1);
  color: #fff;
}

.topup-snap:focus-visible {
  outline: 2px solid var(--cs-primary);
  outline-offset: 2px;
}

.topup-steps {
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(69, 78, 116, 0.45);
}

.topup-steps-title {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
}

.topup-steps-list {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 11px;
  line-height: 1.5;
  color: var(--cs-muted);
}

.topup-steps-list li + li {
  margin-top: 4px;
}

.topup-modal-hint {
  margin-top: 0;
}

body.modal-open {
  overflow: hidden;
}

.modal-box-wide {
  width: min(760px, 100% - 28px);
}

.nav-admin-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: #f55f0f;
}

.nav-admin-link:hover {
  color: #ff8d50;
}

.admin-nav-slot:empty {
  display: none;
}

.admin-body {
  background: var(--bg-deep);
}

.admin-header .header-inner {
  flex-wrap: wrap;
}

.admin-main {
  padding: 24px 0 64px;
}

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.admin-tab {
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 22px;
  border-radius: 10px;
  border: 1px solid rgba(69, 78, 116, 0.5);
  background: rgba(10, 12, 18, 0.65);
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.admin-tab:hover {
  color: var(--text);
  border-color: rgba(232, 184, 74, 0.28);
}

.admin-tab.is-active {
  color: #1a140a;
  border-color: transparent;
  background: linear-gradient(135deg, var(--gold), #f0c96a);
  box-shadow: 0 6px 22px rgba(232, 184, 74, 0.22);
}

.admin-tab-panel[hidden] {
  display: none !important;
}

.admin-users-tab-head {
  margin-bottom: 18px;
}

.admin-dash-board {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-bottom: 16px;
}

.admin-dash-toolbar {
  padding: 16px 18px;
  border-radius: 12px;
  border: 1px solid rgba(69, 78, 116, 0.45);
  background: linear-gradient(165deg, rgba(18, 20, 32, 0.95), rgba(10, 12, 18, 0.88));
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.admin-dash-toolbar-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px 18px;
}

.admin-dash-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  min-width: 200px;
}

.admin-dash-field-lbl {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cs-muted, #a1a8ce);
}

.admin-dash-select {
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(69, 78, 116, 0.55);
  background: #13151e;
  color: var(--text, #e8eaf0);
  font: inherit;
  font-size: 13px;
  min-width: 200px;
}

.admin-dash-custom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
}

.admin-dash-custom[hidden] {
  display: none !important;
}

.admin-dash-date {
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(69, 78, 116, 0.55);
  background: #13151e;
  color: var(--text);
  font: inherit;
  font-size: 13px;
}

.admin-dash-date-sep {
  color: var(--cs-muted);
  font-size: 12px;
}

.admin-dash-apply {
  font-size: 12px;
  padding: 8px 14px;
}

.admin-dash-range-badge {
  margin-left: auto;
  font-size: 12px;
  font-weight: 600;
  color: #fbbf24;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.admin-dash-toolbar-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  padding-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-dash-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.82);
  cursor: pointer;
  user-select: none;
}

.admin-dash-check input {
  accent-color: #f59e0b;
  width: 16px;
  height: 16px;
}

.admin-dash-section {
  margin: 0;
}

.admin-dash-section-title {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.92);
}

.admin-dash-snap {
  font-size: 11px;
  font-weight: 500;
  color: var(--cs-muted);
  letter-spacing: 0;
}

.admin-dash-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}

.admin-dash-grid--kpi {
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
}

.admin-dash-card {
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid rgba(69, 78, 116, 0.45);
  background: rgba(10, 12, 18, 0.55);
}

.admin-dash-card-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--cs-muted, #a1a8ce);
  margin-bottom: 6px;
}

.admin-dash-card-value {
  display: block;
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  font-variant-numeric: tabular-nums;
  line-height: 1.25;
}

.admin-dash-card-hint {
  display: block;
  margin-top: 6px;
  font-size: 10px;
  font-weight: 500;
  color: var(--cs-muted);
  line-height: 1.35;
  text-transform: none;
  letter-spacing: 0;
}

.admin-dash-bars {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 720px;
}

.admin-dash-bar-row {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(80px, 3fr) 40px;
  gap: 10px;
  align-items: center;
  font-size: 12px;
}

.admin-dash-bar-label {
  color: rgba(255, 255, 255, 0.85);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-dash-bar-track {
  height: 10px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.35);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-dash-bar-fill {
  display: block;
  height: 100%;
  border-radius: 5px;
  min-width: 2px;
  transition: width 0.25s ease;
}

.admin-dash-bar-num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

.admin-dash-table-wrap {
  overflow-x: auto;
  border-radius: 10px;
  border: 1px solid rgba(69, 78, 116, 0.45);
  background: rgba(8, 9, 14, 0.5);
}

.admin-dash-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.admin-dash-table th,
.admin-dash-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-dash-table th {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--cs-muted);
  background: rgba(255, 255, 255, 0.03);
}

.admin-dash-table tbody tr:last-child td {
  border-bottom: none;
}

.admin-dash-table-empty {
  color: var(--cs-muted);
  text-align: center;
  padding: 20px !important;
}

.admin-dash-note {
  font-size: 12px;
  color: var(--cs-muted, #a1a8ce);
  margin: 0 0 16px;
  min-height: 1.2em;
}

.admin-backup-btn {
  margin-top: 4px;
}

.admin-site-form {
  max-width: 640px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.admin-site-form .field textarea {
  min-height: 80px;
}

.admin-order-lines {
  font-size: 12px;
  line-height: 1.45;
  color: var(--cs-muted, #a1a8ce);
  max-width: 280px;
}

.admin-order-id-muted {
  font-size: 11px;
  color: var(--cs-muted, #a1a8ce);
}

.admin-order-buyer {
  font-size: 12px;
  line-height: 1.4;
  max-width: 200px;
}

.admin-order-email {
  color: var(--cs-muted, #a1a8ce);
  font-size: 11px;
}

.admin-order-modal-body {
  max-height: min(78vh, 720px);
  overflow-y: auto;
}

.admin-order-detail {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.88);
}

.admin-order-dl {
  margin: 0 0 20px;
  display: grid;
  gap: 12px 20px;
}

.admin-order-dl > div {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 10px;
  align-items: start;
}

@media (max-width: 560px) {
  .admin-order-dl > div {
    grid-template-columns: 1fr;
  }
}

.admin-order-dl dt {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--cs-muted, #a1a8ce);
}

.admin-order-dl dd {
  margin: 0;
  line-height: 1.45;
}

.admin-order-status-pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(136, 71, 255, 0.2);
  border: 1px solid rgba(136, 71, 255, 0.45);
  font-weight: 600;
  font-size: 12px;
}

.admin-order-subtitle {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}

.admin-order-lines-table {
  margin-bottom: 20px;
}

.admin-order-timeline {
  margin: 0 0 20px;
  padding-left: 18px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
}

.admin-order-timeline-item {
  margin-bottom: 8px;
}

.admin-order-timeline-item time {
  color: var(--cs-muted, #a1a8ce);
  font-size: 12px;
}

.admin-order-timeline-note {
  color: var(--cs-muted, #a1a8ce);
  font-weight: 400;
}

.admin-order-status-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 420px;
  margin-bottom: 16px;
  padding: 14px;
  border-radius: 8px;
  border: 1px solid rgba(69, 78, 116, 0.45);
  background: rgba(13, 14, 20, 0.5);
}

.admin-order-status-select {
  width: 100%;
  padding: 8px 10px;
  border-radius: 4px;
  border: 1px solid rgba(69, 78, 116, 0.55);
  background: rgba(13, 14, 20, 0.65);
  color: #fff;
  font-family: inherit;
  font-size: 13px;
}

.admin-order-hint {
  font-size: 11px;
  color: var(--cs-muted, #a1a8ce);
  line-height: 1.45;
  margin: 0;
}

.account-order-status {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
}

/* Дорожка этапов сделки (клиент / трейдер) */
.deal-track {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 4px 8px;
  margin: 12px 0 14px;
  padding: 12px 10px;
  border-radius: 10px;
  background: rgba(13, 14, 20, 0.55);
  border: 1px solid rgba(232, 184, 74, 0.12);
}

.deal-track--compact {
  margin: 10px 0 12px;
  padding: 8px 8px;
  gap: 2px 4px;
  border-radius: 8px;
  background: rgba(8, 9, 14, 0.45);
  border-color: rgba(255, 255, 255, 0.06);
}

.deal-track--compact .deal-track-step {
  min-width: 48px;
  gap: 3px;
}

.deal-track--compact .deal-track-dot {
  width: 7px;
  height: 7px;
}

.deal-track--compact .deal-track-short {
  font-size: 9px;
  line-height: 1.15;
}

.deal-track-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 56px;
  text-align: center;
  font-size: 10px;
  color: var(--cs-muted, #a1a8ce);
  transition: color 0.2s;
}

.deal-track-step.is-done {
  color: #86d759;
}

.deal-track-step.is-current {
  color: #f0c14c;
  font-weight: 600;
}

.deal-track-step.is-pending {
  opacity: 0.45;
}

.deal-track-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.25);
}

.deal-track-step.is-done .deal-track-dot {
  background: #3d7a2e;
  border-color: #86d759;
}

.deal-track-step.is-current .deal-track-dot {
  background: #c9a227;
  border-color: #f0c14c;
  box-shadow: 0 0 0 3px rgba(240, 193, 76, 0.2);
}

.deal-track-short {
  line-height: 1.2;
}

.deal-track-hint {
  display: none;
}

@media (min-width: 720px) {
  .deal-track-hint {
    display: block;
    font-size: 9px;
    opacity: 0.75;
    max-width: 72px;
  }
}

.deal-track--cancelled {
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(248, 113, 113, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.35);
  margin: 12px 0;
}

.deal-track-cancel-msg {
  color: #f87171;
  font-weight: 600;
  font-size: 13px;
}

.account-order-wait {
  font-size: 12px;
  color: var(--cs-muted, #a1a8ce);
  margin: 8px 0 0;
}

.account-order--trader {
  border-left: 3px solid rgba(232, 184, 74, 0.45);
}

.account-order-buyer-ref {
  font-size: 12px;
  color: var(--cs-muted, #a1a8ce);
  margin: 0 0 8px;
}

.account-deal-pair-hint {
  font-size: 12px;
  color: var(--cs-muted, #a1a8ce);
  margin: 0 0 10px;
  line-height: 1.45;
}

.account-deal-pair-hint code {
  font-size: 11px;
  word-break: break-all;
}

.account-trader-advance-btn {
  margin-top: 12px;
  width: 100%;
  max-width: 360px;
}

.account-trader-wait-msg {
  font-size: 12px;
  color: #86d759;
  margin: 10px 0 0;
}

.account-subpanel-title {
  font-size: 0.95rem;
  margin: 20px 0 10px;
  color: var(--muted);
}

.account-panel--trader {
  border: 1px solid rgba(232, 184, 74, 0.2);
  border-radius: 12px;
  padding: 4px 4px 8px;
}

.account-page--minimal .account-panel--trader {
  border-color: rgba(232, 184, 74, 0.18);
  padding: 12px 12px 8px;
}

.account-empty a {
  color: var(--cs-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Админка: чип статуса и полоска этапов */
.admin-order-status-chip {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.admin-order-status-chip[data-deal-status="CREATED"] {
  background: rgba(100, 149, 237, 0.15);
  border-color: rgba(100, 149, 237, 0.4);
  color: #a8c4ff;
}

.admin-order-status-chip[data-deal-status="ASSIGNED"],
.admin-order-status-chip[data-deal-status="WAITING_PERIOD"] {
  background: rgba(240, 193, 76, 0.12);
  border-color: rgba(240, 193, 76, 0.35);
  color: #f0c14c;
}

.admin-order-status-chip[data-deal-status="READY_TO_DELIVER"],
.admin-order-status-chip[data-deal-status="DELIVERED"] {
  background: rgba(134, 215, 89, 0.12);
  border-color: rgba(134, 215, 89, 0.35);
  color: #b8e89f;
}

.admin-order-status-chip[data-deal-status="COMPLETED"] {
  background: rgba(134, 215, 89, 0.2);
  color: #d8f5c8;
}

.admin-order-status-chip[data-deal-status="CANCELLED"] {
  background: rgba(248, 113, 113, 0.15);
  border-color: rgba(248, 113, 113, 0.4);
  color: #fca5a5;
}

.admin-deal-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}

.admin-deal-strip--cancelled {
  color: #f87171;
  font-weight: 600;
  font-size: 13px;
}

.admin-deal-step {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 10px;
  color: var(--cs-muted, #8b92b5);
}

.admin-deal-step.is-done {
  color: #86d759;
}

.admin-deal-step.is-current .admin-deal-step-dot {
  background: #f0c14c;
  box-shadow: 0 0 0 2px rgba(240, 193, 76, 0.35);
}

.admin-deal-step.is-pending {
  opacity: 0.4;
}

.admin-deal-step-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.admin-deal-step-t {
  font-weight: 600;
}

.admin-dd-deal {
  padding-top: 4px;
}

.admin-order-status-pill[data-deal-status] {
  padding: 6px 12px;
  border-radius: 8px;
  font-weight: 600;
}

.admin-page-title {
  margin: 0 0 10px;
  font-family: "Montserrat", var(--font);
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
}

.admin-login-warn {
  max-width: 560px;
  font-size: 12px;
  line-height: 1.55;
  color: var(--cs-muted, #a1a8ce);
  margin-bottom: 20px;
}

.admin-login-warn code {
  font-size: 11px;
  color: #ffb38a;
}

.admin-login-form {
  max-width: 360px;
  padding: 22px;
  border-radius: 8px;
  border: 1px solid rgba(69, 78, 116, 0.45);
  background: #13151e;
}

.admin-login-submit {
  width: 100%;
  margin-top: 8px;
  padding: 10px;
  font-size: 13px;
}

.admin-login-error {
  margin: 10px 0 0;
  font-size: 12px;
  color: #f87171;
  min-height: 1.2em;
}

.admin-panel-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  align-items: flex-end;
}

.admin-panel-lead {
  margin: 0;
  max-width: 640px;
  font-size: 12px;
  color: var(--cs-muted, #a1a8ce);
}

.admin-panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-table-wrap {
  overflow-x: auto;
  border-radius: 6px;
  border: 1px solid rgba(69, 78, 116, 0.4);
  background: #13151e;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.9);
}

.admin-table th,
.admin-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-table th {
  font-weight: 600;
  color: var(--cs-muted, #a1a8ce);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.admin-table-actions {
  white-space: nowrap;
}

.admin-table-empty {
  padding: 24px !important;
  text-align: center;
  color: var(--cs-muted, #a1a8ce);
}

.btn-sm {
  padding: 5px 10px;
  font-size: 11px;
}

.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
}

@media (max-width: 600px) {
  .admin-form-grid {
    grid-template-columns: 1fr;
  }
}

.field-span2 {
  grid-column: 1 / -1;
}

.admin-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
  flex-wrap: wrap;
}

/* Админка: модалка рассмотрения заявки в трейдеры */
.trader-app-review-modal {
  width: min(520px, calc(100% - 28px));
  max-width: 520px;
  border-radius: 16px;
  border: 1px solid rgba(100, 116, 180, 0.35);
  background: linear-gradient(165deg, rgba(24, 28, 42, 0.98) 0%, #12141c 48%, #0e1018 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 28px 90px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}

.trader-app-review-head {
  align-items: flex-start;
  gap: 12px;
  padding: 20px 22px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(0, 0, 0, 0.2);
}

.trader-app-review-head-text {
  flex: 1;
  min-width: 0;
}

.trader-app-review-head h2 {
  margin: 0 0 6px;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.96);
}

.trader-app-review-lead {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: rgba(180, 190, 220, 0.85);
  max-width: 36em;
}

.trader-app-review-close {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  font-size: 1.25rem;
  line-height: 1;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  transition: background 0.15s, border-color 0.15s;
}

.trader-app-review-close:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
}

.trader-app-review-body {
  padding: 20px 22px 22px;
}

.trader-app-review-mount {
  margin: 0;
}

.trader-app-review-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.trader-app-review-id {
  display: inline-block;
  max-width: 100%;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(200, 210, 240, 0.9);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  word-break: break-all;
}

.trader-app-review-status {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.trader-app-review-status--pending {
  color: #fcd34d;
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.35);
  box-shadow: 0 0 20px rgba(251, 191, 36, 0.08);
}

.trader-app-review-status--approved {
  color: #86efac;
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid rgba(74, 222, 128, 0.35);
}

.trader-app-review-status--rejected {
  color: #fca5a5;
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.35);
}

.trader-app-review-grid {
  display: grid;
  gap: 12px;
}

.trader-app-review-card {
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(100, 116, 160, 0.22);
  transition: border-color 0.15s, background 0.15s;
}

.trader-app-review-card:hover {
  border-color: rgba(120, 140, 200, 0.35);
  background: rgba(255, 255, 255, 0.045);
}

.trader-app-review-k {
  display: block;
  margin-bottom: 8px;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(160, 172, 210, 0.75);
}

.trader-app-review-v {
  font-size: 0.9375rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.94);
  line-height: 1.45;
  word-break: break-word;
}

.trader-app-review-tg,
.trader-app-review-tg-link,
.trader-app-review-tg-fallback {
  font-family: ui-monospace, "Cascadia Code", "Segoe UI Mono", monospace;
  font-size: 1rem;
}

.trader-app-review-tg-link {
  display: inline-flex;
  align-items: baseline;
  color: #7dd3fc;
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid rgba(125, 211, 252, 0.35);
  transition: color 0.15s, border-color 0.15s;
}

.trader-app-review-tg-link:hover {
  color: #bae6fd;
  border-bottom-color: rgba(186, 230, 253, 0.55);
}

.trader-app-review-tg-fallback {
  color: rgba(255, 255, 255, 0.5);
}

.trader-app-review-tg-at {
  opacity: 0.65;
  margin-right: 1px;
}

.trader-app-review-steam {
  margin: 0;
}

.trader-app-review-steam-link {
  color: #fdba74;
  text-decoration: none;
  font-weight: 500;
  word-break: break-all;
  border-bottom: 1px solid rgba(253, 186, 116, 0.35);
  transition: color 0.15s, border-color 0.15s;
}

.trader-app-review-steam-link:hover {
  color: #fed7aa;
  border-bottom-color: rgba(254, 215, 170, 0.55);
}

.trader-app-review-steam-plain {
  color: rgba(255, 255, 255, 0.55);
}

.trader-app-review-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.trader-app-review-btn {
  width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: inherit;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: 1px solid transparent;
  transition:
    background 0.15s,
    border-color 0.15s,
    color 0.15s,
    box-shadow 0.15s,
    transform 0.1s;
}

.trader-app-review-btn:active {
  transform: scale(0.98);
}

.trader-app-review-btn--secondary {
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset;
}

.trader-app-review-btn--secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.22);
}

.trader-app-review-btn--primary {
  color: #0f0f12;
  background: linear-gradient(165deg, #ffb457 0%, #f55f0f 45%, #d94d08 100%);
  border-color: rgba(255, 200, 140, 0.35);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12) inset,
    0 6px 22px rgba(245, 95, 15, 0.35);
}

.trader-app-review-btn--primary:hover {
  filter: brightness(1.06);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.16) inset,
    0 8px 28px rgba(245, 95, 15, 0.42);
}

@media (max-width: 420px) {
  .trader-app-review-actions {
    grid-template-columns: 1fr;
  }
}

.trader-app-review-note {
  margin-top: 14px;
  margin-bottom: 0;
  min-height: 1.25em;
  font-size: 0.8125rem;
}

.admin-save-note {
  margin-top: 16px;
  font-size: 12px;
  min-height: 1.2em;
}

/* Картинки в каталоге (внутри .cs-card-img-shell при наличии imageUrl) */
.cs-card-img {
  position: relative;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-full-img {
  position: relative;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-video-wrap {
  margin: 10px 0 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(69, 78, 116, 0.45);
  background: #000;
  aspect-ratio: 16 / 9;
  max-width: 100%;
}

.product-video-frame,
.product-video-tag {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.product-video-link {
  margin: 12px 0 0;
  font-size: 12px;
}

.product-video-link a {
  color: #f55f0f;
}

.product-type-line strong {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 600;
}

/* Админка: справочники тегов */
.admin-taxonomy {
  margin-bottom: 28px;
  padding: 20px 22px;
  border-radius: 6px;
  border: 1px solid rgba(69, 78, 116, 0.45);
  background: #12131a;
}

.admin-taxonomy-title {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}

.admin-taxonomy-lead {
  margin: 0 0 16px;
  font-size: 11px;
  line-height: 1.5;
  color: var(--cs-muted, #a1a8ce);
  max-width: 720px;
}

/* Админка: фильтры сайдбара (коллекции / категории) */
.admin-sidebar-meta {
  margin-bottom: 28px;
}

.admin-sidebar-meta .admin-meta-hint {
  font-weight: 500;
  font-size: 0.85em;
  color: var(--cs-muted, #a1a8ce);
  text-transform: none;
  letter-spacing: 0;
}

.admin-meta-table input.admin-meta-input-id,
.admin-meta-table input.admin-meta-input-name {
  width: 100%;
  min-width: 100px;
  padding: 8px 10px;
  border-radius: 4px;
  border: 1px solid rgba(69, 78, 116, 0.55);
  background: rgba(13, 14, 20, 0.65);
  color: #fff;
  font-family: inherit;
  font-size: 12px;
}

.admin-meta-table input.admin-meta-input-id:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.admin-meta-parent-cell {
  vertical-align: middle;
  min-width: 140px;
  max-width: 240px;
}

.admin-meta-parent-id {
  width: 100%;
  max-width: 220px;
  padding: 8px 10px;
  border-radius: 4px;
  border: 1px solid rgba(69, 78, 116, 0.55);
  background: rgba(13, 14, 20, 0.65);
  color: #fff;
  font-family: inherit;
  font-size: 12px;
}

.admin-meta-parent-id:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.catalog-side-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.catalog-side-sublist {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0 0 6px 10px;
  padding-left: 12px;
  border-left: 2px solid rgba(69, 78, 116, 0.45);
}

.catalog-side-pill--sub {
  font-size: 11px;
  font-weight: 500;
  padding: 8px 10px;
}

.catalog-side-pill.is-parent-of-active:not(.is-active) {
  border-color: rgba(136, 71, 255, 0.42);
  box-shadow: 0 0 0 1px rgba(136, 71, 255, 0.12);
}

.admin-meta-actions {
  white-space: nowrap;
}

.admin-meta-actions .btn-sm {
  margin-right: 4px;
  margin-bottom: 4px;
}

.admin-meta-img-cell {
  vertical-align: top;
  min-width: 200px;
  max-width: 320px;
}

.admin-meta-thumb-wrap {
  margin-bottom: 8px;
  min-height: 44px;
}

.admin-meta-thumb {
  display: block;
  max-width: 100%;
  max-height: 72px;
  width: auto;
  height: auto;
  border-radius: 6px;
  border: 1px solid rgba(69, 78, 116, 0.45);
  object-fit: cover;
}

.admin-meta-file {
  display: block;
  width: 100%;
  max-width: 260px;
  margin-bottom: 8px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.85);
}

.admin-meta-img-cell .admin-meta-url {
  width: 100%;
  max-width: 260px;
  margin-top: 4px;
  padding: 6px 8px;
  border-radius: 4px;
  border: 1px solid rgba(69, 78, 116, 0.55);
  background: rgba(13, 14, 20, 0.65);
  color: #fff;
  font-family: inherit;
  font-size: 11px;
}

.admin-taxonomy-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 16px;
}

@media (max-width: 640px) {
  .admin-taxonomy-grid {
    grid-template-columns: 1fr;
  }
}

.admin-taxonomy-sub {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 600;
  color: #f55f0f;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.admin-taxonomy-list {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  max-height: 220px;
  overflow-y: auto;
  border: 1px solid rgba(69, 78, 116, 0.35);
  border-radius: 4px;
  background: #0d0e14;
}

.admin-taxonomy-li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  font-size: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.9);
}

.admin-taxonomy-li:last-child {
  border-bottom: none;
}

.admin-tax-remove {
  border: none;
  background: rgba(255, 255, 255, 0.06);
  color: var(--cs-muted, #a1a8ce);
  width: 28px;
  height: 28px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  flex-shrink: 0;
}

.admin-tax-remove:hover {
  color: #f87171;
  background: rgba(248, 113, 113, 0.12);
}

.admin-taxonomy-add {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.admin-taxonomy-add input {
  flex: 1;
  min-width: 140px;
  padding: 8px 10px;
  border-radius: 4px;
  border: 1px solid rgba(69, 78, 116, 0.55);
  background: rgba(13, 14, 20, 0.65);
  color: #fff;
  font-family: inherit;
  font-size: 12px;
}

.admin-taxonomy-save {
  padding: 10px 20px;
  font-size: 12px;
}

.admin-taxonomy-note {
  margin: 10px 0 0;
  font-size: 11px;
  min-height: 1.2em;
}

/* Steps */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 768px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

.steps li {
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.step-num {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), #8b7cf0);
  font-family: var(--font-display);
  font-weight: 700;
  margin-bottom: 14px;
}

.steps h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.steps p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Reviews */
.reviews-form-mount {
  margin-bottom: 28px;
}

.reviews-form-mount--hint .reviews-form-hint {
  margin: 0;
  padding: 16px 18px;
  border-radius: var(--radius);
  border: 1px solid rgba(69, 78, 116, 0.45);
  background: rgba(0, 0, 0, 0.2);
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--muted);
}

.reviews-form-mount--hint a {
  color: var(--gold);
  font-weight: 600;
}

.reviews-form-card {
  padding: 22px 24px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  max-width: 560px;
}

.reviews-form-title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
}

.reviews-form-lead {
  margin: 0 0 18px;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.5;
}

.reviews-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.reviews-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.reviews-field-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.reviews-field select,
.reviews-field textarea {
  font-family: inherit;
  font-size: 0.95rem;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
}

.reviews-field textarea {
  min-height: 100px;
  resize: vertical;
  max-height: 280px;
}

.reviews-form-submit {
  align-self: flex-start;
  margin-top: 4px;
}

.reviews-form-note {
  margin: 0;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (max-width: 900px) {
  .reviews-grid {
    grid-template-columns: 1fr;
  }
}

.review-card {
  margin: 0;
  padding: 22px 22px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  height: 100%;
  box-sizing: border-box;
}

.review-card--user {
  border-color: rgba(245, 95, 15, 0.22);
  background: linear-gradient(165deg, rgba(245, 95, 15, 0.06), rgba(18, 19, 28, 0.98));
}

.review-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.review-card-product {
  font-size: 0.8rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.35;
}

.review-stars {
  display: inline-flex;
  gap: 2px;
  letter-spacing: 0;
  font-size: 0.95rem;
  line-height: 1;
}

.review-star {
  color: rgba(255, 255, 255, 0.2);
}

.review-star.is-on {
  color: #fbbf24;
}

.review-card blockquote {
  margin: 0 0 14px;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text);
}

.review-card figcaption {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}

.review-card-author {
  color: rgba(255, 255, 255, 0.88);
}

.review-card-date {
  font-weight: 500;
  color: var(--muted);
}

.reviews-page-main {
  padding: 28px 0 72px;
}

.reviews-page-intro {
  margin-bottom: 28px;
}

.reviews-page-intro h1 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
}

.reviews-page-lead {
  margin: 0;
  max-width: 62ch;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--muted);
}

.reviews-page-section {
  padding-top: 0;
}

.reviews-app {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.reviews-grid-v2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 20px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

@media (max-width: 900px) {
  .reviews-grid-v2 {
    grid-template-columns: 1fr;
  }
}

.review-card-v2 {
  margin: 0;
  padding: 0;
  border-radius: 16px;
  border: 1px solid rgba(69, 78, 116, 0.45);
  background: linear-gradient(165deg, rgba(22, 24, 38, 0.98), rgba(14, 15, 22, 0.98));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  overflow: hidden;
  height: 100%;
  box-sizing: border-box;
}

.review-v2-path {
  padding: 10px 14px 8px;
  font-size: 0.78rem;
  line-height: 1.45;
  font-weight: 600;
  color: #a5b4fc;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  word-break: break-word;
}

.review-v2-mid {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px 14px;
  align-items: start;
  padding: 14px 14px 12px;
}

.review-v2-thumb {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.review-v2-thumb-ico {
  font-size: 1.75rem;
  line-height: 1;
}

.review-v2-thumb-ico--ph {
  opacity: 0.55;
  font-size: 1.4rem;
}

.review-v2-user {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}

.review-v2-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(145deg, #6366f1, #4f46e5);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  letter-spacing: 0.02em;
}

.review-v2-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 4px;
  word-break: break-word;
}

.review-v2-stars {
  display: inline-flex;
  gap: 1px;
  font-size: 0.88rem;
  line-height: 1;
  margin-bottom: 6px;
}

.review-v2-star {
  color: rgba(255, 255, 255, 0.2);
}

.review-v2-star.is-on {
  color: #7dd3fc;
}

.review-v2-orders-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.35);
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.review-v2-aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex-shrink: 0;
  text-align: right;
}

.review-v2-time {
  font-size: 0.78rem;
  color: var(--muted);
  white-space: nowrap;
}

.review-v2-admin-del {
  margin-top: 4px;
  padding: 5px 10px;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #fca5a5;
  background: rgba(127, 29, 29, 0.25);
  border: 1px solid rgba(248, 113, 113, 0.35);
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.review-v2-admin-del:hover {
  color: #fecaca;
  background: rgba(153, 27, 27, 0.35);
  border-color: rgba(248, 113, 113, 0.55);
}

.review-v2-quote {
  margin: 0;
  padding: 12px 14px 16px;
  background: rgba(0, 0, 0, 0.35);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.review-v2-quote p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: rgba(226, 232, 240, 0.95);
}

.reviews-fab {
  position: fixed;
  right: 22px;
  bottom: 28px;
  z-index: 40;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
  color: #fff;
  background: linear-gradient(145deg, #7c3aed, #5b21b6);
  box-shadow: 0 10px 28px rgba(91, 33, 182, 0.45);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.reviews-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(91, 33, 182, 0.55);
}

.review-compose-wrap {
  margin-top: 36px;
  padding-top: 8px;
}

.reviews-compose {
  margin-top: 0;
}

.reviews-compose-inner {
  max-width: 640px;
}

.reviews-compose-inner.reviews-form-mount--hint {
  margin-top: 0;
}

.reviews-compose-inner.reviews-form-mount--active {
  padding: 22px 24px;
  border-radius: 16px;
  border: 1px solid rgba(69, 78, 116, 0.45);
  background: linear-gradient(165deg, rgba(22, 24, 38, 0.98), rgba(14, 15, 22, 0.98));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.reviews-compose-title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
}

.reviews-compose-lead {
  margin: 0 0 18px;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
}

.reviews-form-v2 {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.reviews-form-v2-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

@media (max-width: 560px) {
  .reviews-form-v2-grid {
    grid-template-columns: 1fr;
  }
}

.reviews-field-v2 {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
}

.reviews-field-v2--block {
  grid-column: 1 / -1;
}

.reviews-field-v2-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.reviews-field-v2 select,
.reviews-field-v2 textarea {
  font-family: inherit;
  font-size: 0.95rem;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
}

.reviews-field-v2 textarea {
  min-height: 120px;
  resize: vertical;
  max-height: 320px;
}

.reviews-form-v2-submit {
  align-self: flex-start;
}

/* Страница «Поддержка» */
.support-main {
  padding: 28px 0 72px;
}

.support-desk {
  padding: 18px 0 10px;
}

.support-desk-mount:empty {
  display: none;
}

.support-desk-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

@media (max-width: 920px) {
  .support-desk-grid {
    grid-template-columns: 1fr;
  }
}

/* Клиент: форма + компактная история слева (внизу), чат справа на всю высоту */
.support-desk-grid--client {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 1.15fr);
  grid-template-rows: auto minmax(0, 1fr);
  grid-template-areas:
    "form chat"
    "history chat";
  align-items: stretch;
  row-gap: 0;
  column-gap: 16px;
  min-height: min(72vh, 720px);
}

.support-desk-slot--form {
  grid-area: form;
  align-self: start;
}

.support-desk-slot--history {
  grid-area: history;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.support-desk-slot--history > .support-desk-card {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.support-desk-slot--chat {
  grid-area: chat;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.support-desk-slot--chat > .support-desk-card {
  flex: 1 1 auto;
  min-height: 0;
}

/* Визуально одна колонка без «щели» между формой и историей */
.support-desk-grid--client .support-desk-slot--form > .support-desk-card {
  border-radius: 16px 16px 0 0;
  border-bottom: none;
}

.support-desk-grid--client .support-desk-slot--history > .support-desk-card {
  border-radius: 0 0 16px 16px;
}

.support-desk-list--compact {
  padding: 12px 14px 14px;
}

.support-desk-list--compact h2 {
  margin: 0 0 8px;
  font-size: 1rem;
  flex: 0 0 auto;
}

.support-desk-slot--history .support-ticket-list--compact {
  flex: 1 1 auto;
  min-height: 0;
}

.support-ticket-list--compact {
  display: grid;
  gap: 8px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-bottom: 2px;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable;
}

.support-ticket--compact {
  width: 100%;
  min-width: 0;
  max-width: none;
  padding: 8px 10px;
  border-radius: 10px;
}

.support-ticket--compact .support-ticket-meta {
  margin-top: 4px;
}

.support-ticket--compact .support-ticket-subject {
  font-size: 0.88rem;
}

.support-desk-chat--tall {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.support-desk-chat--tall .support-chat-scroll {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
}

@media (max-width: 920px) {
  .support-desk-grid--client {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    grid-template-areas:
      "form"
      "chat"
      "history";
    row-gap: 16px;
    min-height: 0;
  }

  .support-desk-slot--form {
    align-self: stretch;
  }

  .support-desk-slot--history {
    display: block;
  }

  .support-desk-slot--history > .support-desk-card {
    display: block;
  }

  .support-desk-grid--client .support-desk-slot--form > .support-desk-card,
  .support-desk-grid--client .support-desk-slot--history > .support-desk-card {
    border-radius: 16px;
    border: 1px solid rgba(69, 78, 116, 0.45);
  }

  .support-desk-slot--history .support-ticket-list--compact {
    flex: none;
    max-height: 220px;
  }

  .support-desk-slot--chat {
    min-height: min(48vh, 520px);
  }
}

.support-desk-card {
  padding: 18px 18px;
  border-radius: 16px;
  border: 1px solid rgba(69, 78, 116, 0.45);
  background: rgba(0, 0, 0, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.support-desk-card h2 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
}

.support-muted {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.92rem;
}

.support-muted-inline {
  color: var(--muted);
  font-weight: 500;
}

.support-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
}

.support-pill--open {
  border-color: rgba(134, 215, 89, 0.35);
  color: rgba(134, 215, 89, 0.95);
}

.support-pill--closed {
  border-color: rgba(161, 168, 206, 0.25);
  color: rgba(161, 168, 206, 0.85);
}

.support-desk-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}

.support-filter-btn {
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.82);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.support-filter-btn:hover {
  border-color: rgba(245, 95, 15, 0.4);
  color: #fff;
}

.support-filter-btn.is-active {
  border-color: rgba(245, 95, 15, 0.65);
  background: rgba(245, 95, 15, 0.14);
  color: #fff;
}

.support-ticket-search-wrap {
  margin: 0 0 12px;
}

.support-ticket-search {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.25);
  color: #fff;
  font: inherit;
  font-size: 0.88rem;
}

.support-ticket-search::placeholder {
  color: rgba(161, 168, 206, 0.65);
}

.support-ticket-ref {
  flex-shrink: 0;
  align-self: flex-start;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  font-family: ui-monospace, "Cascadia Code", monospace;
  color: rgba(255, 210, 140, 0.98);
  padding: 3px 7px;
  border-radius: 6px;
  background: rgba(245, 95, 15, 0.14);
  border: 1px solid rgba(245, 95, 15, 0.3);
}

.support-chat-ref {
  display: inline-block;
  margin-right: 6px;
  vertical-align: baseline;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-family: ui-monospace, "Cascadia Code", monospace;
  color: rgba(255, 210, 140, 0.98);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.support-ticket-top-main {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

.support-ticket-top-main .support-ticket-subject {
  flex: 1;
  min-width: 0;
}

.support-ticket-unread-dot {
  flex-shrink: 0;
  width: 9px;
  height: 9px;
  margin-top: 5px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #5eead4, #14b8a6);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35);
}

.support-ticket--unread {
  border-left: 3px solid rgba(20, 184, 166, 0.9);
  background: rgba(20, 184, 166, 0.07);
}

.support-ticket--unread.is-active {
  border-left-color: rgba(245, 95, 15, 0.75);
  background: rgba(245, 95, 15, 0.08);
}

.support-desk-grid--staff {
  align-items: start;
}

.support-desk-grid--staff .support-desk-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-width: 100%;
}

.support-desk-grid--staff .support-desk-col > .support-desk-card {
  flex: 0 1 auto;
  width: 100%;
  max-width: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.support-desk-grid--staff .support-desk-list .support-ticket-list {
  flex: 0 1 auto;
  max-height: min(42vh, 420px);
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  align-content: start;
  grid-auto-rows: max-content;
}

.support-desk-grid--staff .support-ticket-list > .support-ticket {
  justify-self: stretch;
  align-self: start;
  width: 100%;
  height: auto;
  min-height: 0;
}

.support-desk-grid--staff .support-desk-chat {
  display: flex;
  flex-direction: column;
  min-height: 0;
  max-height: min(85vh, 780px);
}

.support-desk-grid--staff .support-chat-scroll {
  flex: 0 1 auto;
  max-height: min(48vh, 520px);
  min-height: 120px;
  overflow-y: auto;
}

.support-desk textarea {
  resize: none;
}

.support-form .field {
  margin-bottom: 12px;
}

.support-ticket-list {
  display: grid;
  gap: 10px;
}

.support-ticket {
  width: 100%;
  text-align: left;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
  cursor: pointer;
}

.support-ticket:hover {
  border-color: rgba(245, 95, 15, 0.35);
}

.support-ticket.is-active {
  border-color: rgba(245, 95, 15, 0.55);
  box-shadow: 0 10px 26px rgba(245, 95, 15, 0.10);
}

.support-ticket-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.support-ticket-subject {
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.25;
}

.support-ticket-meta {
  margin-top: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 0.82rem;
}

.support-ticket-who {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 24ch;
}

.support-chat-subject {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.support-chat-head-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 12px;
}

.support-chat-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
}

.support-chat-scroll {
  max-height: 420px;
  overflow: auto;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.18);
}

.support-msg {
  padding: 10px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  margin-bottom: 10px;
}

.support-msg--staff {
  border-color: rgba(245, 95, 15, 0.22);
  background: rgba(245, 95, 15, 0.06);
}

.support-msg--client {
  border-color: rgba(136, 71, 255, 0.20);
  background: rgba(136, 71, 255, 0.06);
}

.support-msg-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 0.78rem;
  margin-bottom: 6px;
}

.support-msg-body {
  font-size: 0.92rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
  word-break: break-word;
}

.support-chat-composer {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.support-chat-composer textarea {
  width: 100%;
  min-height: 92px;
  box-sizing: border-box;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.5;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
}

.support-chat-composer textarea:focus {
  border-color: rgba(232, 184, 74, 0.45);
}

.support-chat-composer textarea:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.support-desk-grid--staff .support-chat-composer textarea {
  max-height: 200px;
}

.support-chat-send {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.support-chat-send .btn-cs-cart {
  min-width: 160px;
}

.support-page-intro {
  margin-bottom: 28px;
}

.support-page-intro h1 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.support-page-lead {
  margin: 0;
  color: var(--muted);
  max-width: 56ch;
  line-height: 1.55;
}

/* Страница «Пополнение Steam» — вкладки по логину / TF2, в стилистике Skinexs */
.steam-topup-main {
  padding-bottom: 72px;
}

.steam-topup-shell {
  max-width: 1080px;
  margin: 0 auto;
}

/* Скрытый режим не участвует в вёрстке — только один блок виден */
.steam-topup-mode[hidden] {
  display: none !important;
}

.steam-topup-mode {
  margin-top: 8px;
}

.steam-topup-page-title {
  margin: 8px 0 28px;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3.2vw, 2.1rem);
  font-weight: 700;
  text-align: center;
  letter-spacing: -0.02em;
  color: #f4f6fb;
}

.steam-topup-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-end;
  gap: clamp(8px, 2vw, 20px);
  margin-bottom: 28px;
  padding-bottom: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.steam-topup-tabs__wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.steam-topup-tabs__badge {
  position: absolute;
  bottom: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0d1512;
  background: linear-gradient(135deg, #3ecf8e, #2ee59d);
  box-shadow: 0 0 20px rgba(46, 229, 157, 0.35);
}

.steam-topup-tabs__btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 20px 14px;
  margin-bottom: -1px;
  border: none;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.steam-topup-tabs__btn:hover {
  color: rgba(240, 244, 252, 0.92);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 12px 12px 0 0;
}

.steam-topup-tabs__btn[aria-selected="true"] {
  color: #fff;
  border-bottom-color: var(--gold);
  background: rgba(232, 184, 74, 0.06);
  border-radius: 12px 12px 0 0;
}

.steam-topup-tabs__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.92;
  color: inherit;
}

.steam-topup-tabs__icon svg {
  display: block;
}

.steam-topup-tabs__label {
  line-height: 1.2;
  text-align: center;
  max-width: 11em;
}

.steam-topup-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 300px);
  gap: 24px;
  align-items: start;
}

@media (max-width: 900px) {
  .steam-topup-grid {
    grid-template-columns: 1fr;
  }

  .steam-topup-col--promo {
    order: -1;
  }
}

.steam-topup-panels {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.steam-topup-card {
  padding: 20px 20px 18px;
  border-radius: 14px;
  border: 1px solid rgba(69, 78, 116, 0.42);
  background: linear-gradient(165deg, rgba(22, 24, 36, 0.92), rgba(10, 11, 18, 0.9));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 16px 40px rgba(0, 0, 0, 0.25);
}

.steam-topup-card__title {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}

.steam-topup-field {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 4px 0 12px;
  margin-bottom: 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.28);
  transition: border-color 0.2s ease;
}

.steam-topup-field:focus-within {
  border-color: rgba(232, 184, 74, 0.35);
}

.steam-topup-field--full {
  padding-right: 12px;
}

.steam-topup-field--grow {
  flex: 1;
  min-width: 0;
  margin-bottom: 0;
}

.steam-topup-field__icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(232, 184, 74, 0.85);
  opacity: 0.9;
}

.steam-topup-field__icon svg {
  display: block;
  width: 20px;
  height: 20px;
}

.steam-topup-input {
  flex: 1;
  min-width: 0;
  height: 44px;
  border: none;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.92rem;
  outline: none;
}

.steam-topup-input::placeholder {
  color: rgba(139, 149, 168, 0.75);
}

.steam-topup-field__hint {
  flex-shrink: 0;
  padding: 6px 10px;
  margin: 6px 6px 6px 0;
  border-radius: 8px;
  border: 1px solid rgba(69, 78, 116, 0.55);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.steam-topup-field__hint:hover {
  color: var(--gold);
  border-color: rgba(232, 184, 74, 0.35);
  background: rgba(232, 184, 74, 0.06);
}

.steam-topup-currency {
  display: flex;
  flex-shrink: 0;
  border-radius: 9px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.steam-topup-currency__btn {
  padding: 6px 10px;
  border: none;
  background: rgba(0, 0, 0, 0.35);
  color: var(--muted);
  font: inherit;
  font-size: 0.68rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.steam-topup-currency__btn.is-active {
  background: rgba(108, 92, 231, 0.45);
  color: #fff;
}

.steam-topup-currency__btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.steam-topup-paygrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

.steam-topup-paytile {
  min-height: 56px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(69, 78, 116, 0.5);
  background: rgba(0, 0, 0, 0.22);
  color: var(--text);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.steam-topup-paytile:hover {
  border-color: rgba(232, 184, 74, 0.25);
}

.steam-topup-paytile.is-active {
  border-color: rgba(232, 184, 74, 0.55);
  background: rgba(232, 184, 74, 0.08);
  box-shadow: 0 0 0 1px rgba(232, 184, 74, 0.15), 0 8px 28px rgba(108, 92, 231, 0.12);
}

.steam-topup-summary {
  margin: 16px 0 14px;
  padding: 0;
}

.steam-topup-summary__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 8px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.88rem;
}

.steam-topup-summary__row:first-child {
  border-top: none;
}

.steam-topup-summary__row dt {
  margin: 0;
  color: var(--muted);
  font-weight: 500;
}

.steam-topup-summary__row dd {
  margin: 0;
  font-weight: 700;
  color: #fff;
}

.steam-topup-pill {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  vertical-align: middle;
}

.steam-topup-pill--warn {
  color: #1a1208;
  background: linear-gradient(135deg, var(--gold), var(--gold-dim));
}

.steam-topup-pill--ok {
  color: #0d1512;
  background: linear-gradient(135deg, #3ecf8e, #2ee59d);
}

.steam-topup-paybtn {
  text-decoration: none;
  padding-top: 14px;
  padding-bottom: 14px;
  font-size: 0.95rem;
}

.steam-topup-keys-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.steam-topup-keys-label {
  font-size: 0.92rem;
  font-weight: 600;
  color: rgba(240, 244, 252, 0.95);
}

.steam-topup-keys-price {
  margin-left: auto;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--gold);
}

.steam-topup-stepper {
  display: inline-flex;
  align-items: center;
  border-radius: 10px;
  border: 1px solid rgba(69, 78, 116, 0.55);
  overflow: hidden;
  background: rgba(0, 0, 0, 0.3);
}

.steam-topup-stepper__btn {
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease;
}

.steam-topup-stepper__btn:hover {
  background: rgba(255, 255, 255, 0.06);
}

.steam-topup-stepper__val {
  min-width: 28px;
  text-align: center;
  font-weight: 700;
  font-size: 0.95rem;
}

.steam-topup-callout {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(232, 184, 74, 0.28);
  background: rgba(232, 184, 74, 0.06);
  font-size: 0.82rem;
  line-height: 1.5;
  color: rgba(232, 224, 200, 0.95);
}

.steam-topup-callout a {
  display: inline-block;
  margin-top: 8px;
  font-weight: 600;
  color: var(--gold);
  text-decoration: none;
}

.steam-topup-callout a:hover {
  text-decoration: underline;
}

.steam-topup-col--promo {
  position: relative;
  min-height: 200px;
}

.steam-topup-promo {
  position: relative;
  overflow: hidden;
  min-height: 280px;
  padding: 28px 22px;
  border-radius: 14px;
  border: 1px solid rgba(69, 78, 116, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.steam-topup-promo--login {
  background: radial-gradient(ellipse 80% 70% at 50% 100%, rgba(232, 184, 74, 0.18), transparent 55%),
    linear-gradient(165deg, rgba(26, 22, 38, 0.95), rgba(8, 9, 14, 0.98));
}

.steam-topup-promo--keys {
  background: radial-gradient(ellipse 80% 70% at 50% 100%, rgba(46, 229, 157, 0.14), transparent 55%),
    linear-gradient(165deg, rgba(18, 32, 28, 0.92), rgba(8, 10, 14, 0.98));
}

.steam-topup-promo__rings {
  position: absolute;
  inset: -20%;
  background: repeating-radial-gradient(
    circle at 50% 50%,
    transparent 0,
    transparent 38px,
    rgba(232, 184, 74, 0.06) 38px,
    rgba(232, 184, 74, 0.06) 40px
  );
  opacity: 0.9;
  pointer-events: none;
}

.steam-topup-promo__rings--keys {
  background: repeating-radial-gradient(
    circle at 50% 50%,
    transparent 0,
    transparent 38px,
    rgba(46, 229, 157, 0.07) 38px,
    rgba(46, 229, 157, 0.07) 40px
  );
}

.steam-topup-promo__text {
  position: relative;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-weight: 800;
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #fff;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
}

.steam-topup-promo__text--keys {
  color: #eafcf6;
}

.steam-topup-promo__sub {
  display: block;
  margin-top: 10px;
  font-family: var(--font);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.45;
}

.steam-topup-disclaimer {
  margin: 28px 0 0;
  max-width: 72ch;
  margin-inline: auto;
  text-align: center;
  font-size: 0.72rem;
  line-height: 1.45;
  color: rgba(161, 168, 206, 0.75);
}

.support-faq-section {
  padding: 28px 0 40px;
}

.support-faq-mount {
  width: 100%;
  max-width: none;
  margin: 0;
}

.support-faq-empty {
  text-align: center;
  color: var(--muted);
  padding: 24px 16px;
  font-size: 0.95rem;
  line-height: 1.55;
}

.support-faq-inner {
  text-align: center;
}

.support-faq-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}

.support-faq-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-dim);
  box-shadow: none;
}

.support-faq-title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.support-faq-lead {
  margin: 0 auto 28px;
  max-width: 48ch;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
  text-align: center;
}

.support-faq-list {
  width: 95%;
  max-width: none;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.support-faq-item {
  border-radius: var(--radius);
  border: 1px solid rgba(69, 78, 116, 0.45);
  background: rgba(0, 0, 0, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  overflow: hidden;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.support-faq-item.is-open {
  border-color: rgba(255, 215, 120, 0.2);
  background: rgba(0, 0, 0, 0.28);
}

.support-faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  margin: 0;
  border: none;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease;
}

.support-faq-trigger:hover {
  background: rgba(255, 255, 255, 0.04);
}

.support-faq-trigger:focus-visible {
  outline: 2px solid rgba(232, 184, 74, 0.35);
  outline-offset: -2px;
}

.support-faq-q {
  flex: 1;
  min-width: 0;
}

.support-faq-chevron {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  margin-top: 2px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  opacity: 0.85;
  transform: rotate(45deg);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.support-faq-item.is-open .support-faq-chevron {
  transform: rotate(-135deg);
  margin-top: 6px;
}

.support-faq-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.support-faq-item.is-open .support-faq-panel {
  grid-template-rows: 1fr;
}

.support-faq-panel-inner {
  min-height: 0;
  overflow: hidden;
}

.support-faq-a {
  padding: 14px 20px 18px;
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
  border-top: 1px solid var(--border);
}

.admin-hint-editor {
  margin-bottom: 28px;
  padding: 20px 22px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(69, 78, 116, 0.45);
  background: rgba(0, 0, 0, 0.22);
}

.admin-hint-editor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.contact-list {
  margin: 24px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

.contact-list li {
  margin-bottom: 10px;
}

.contact-form {
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field span {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
}

.field input,
.field textarea {
  font-family: inherit;
  font-size: 1rem;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
}

.field input:focus,
.field textarea:focus {
  border-color: rgba(232, 184, 74, 0.45);
}

.field.checkbox {
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

.field.checkbox input {
  width: 18px;
  height: 18px;
  accent-color: var(--gold);
}

.form-note {
  min-height: 1.5em;
  margin: 0;
  font-size: 0.9rem;
  color: var(--green);
}

/* Footer */
.site-footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  text-align: center;
}

.footer-brand {
  margin: 0 0 12px;
  font-weight: 600;
  color: var(--muted);
}

.footer-disclaimer {
  margin: 0;
  font-size: 0.75rem;
  color: var(--muted);
  opacity: 0.75;
  max-width: 640px;
  margin-inline: auto;
  line-height: 1.5;
}

.footer-legal-links {
  margin: 14px 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.footer-legal-links a {
  color: var(--gold);
  text-decoration: none;
}

.footer-legal-links a:hover {
  text-decoration: underline;
}

.legal-list {
  text-align: left;
  padding-left: 1.25rem;
  line-height: 1.65;
  color: var(--muted);
}

/* Drawer */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
}

.drawer.is-open {
  pointer-events: auto;
}

.drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  transition: opacity 0.3s;
}

.drawer.is-open .drawer-backdrop {
  opacity: 1;
}

.drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(400px, 100%);
  height: 100%;
  background: var(--bg-card-solid);
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.5);
}

.drawer.is-open .drawer-panel {
  transform: translateX(0);
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--border);
}

.drawer-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}

.drawer-foot {
  padding: 16px 20px 24px;
  border-top: 1px solid var(--border);
}

a.cart-auth-cta {
  margin-bottom: 10px;
  text-decoration: none;
  box-sizing: border-box;
}

.cart-line {
  display: flex;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  margin-bottom: 10px;
  align-items: flex-start;
}

.cart-line-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.cart-line-info {
  flex: 1;
  min-width: 0;
}

.cart-line-info strong {
  display: block;
  font-size: 0.9rem;
}

.cart-line-info span {
  font-size: 0.8rem;
  color: var(--muted);
}

.cart-line-remove {
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 1.1rem;
  padding: 4px;
  line-height: 1;
}

.cart-line-remove:hover {
  color: #f87171;
}

.cart-empty {
  text-align: center;
  color: var(--muted);
  padding: 40px 16px;
}

.cart-total {
  margin: 0 0 12px;
  font-size: 1rem;
}

.cart-total strong {
  color: var(--gold);
  font-size: 1.15rem;
}

body.drawer-open {
  overflow: hidden;
}

/* ——— Auth (auth.html) ——— */
.auth-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.auth-main {
  flex: 1;
  padding: 32px 0 56px;
}

.container-narrow {
  width: min(440px, 100% - 40px);
  margin-inline: auto;
}

.auth-card {
  padding: 28px 26px 30px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  box-shadow: var(--shadow);
}

.auth-title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.auth-lead {
  margin: 0 0 22px;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--muted);
}

.auth-lead code {
  font-size: 0.78em;
  color: var(--gold-dim);
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.35);
}

.auth-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 20px;
  padding: 4px;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
}

.auth-tab {
  flex: 1;
  padding: 10px 14px;
  font: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--muted);
  background: transparent;
  border: none;
  border-radius: calc(var(--radius-sm) - 4px);
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}

.auth-tab:hover {
  color: var(--text);
}

.auth-tab.is-active {
  color: #1a140a;
  background: linear-gradient(135deg, var(--gold), #f0c96a);
  box-shadow: 0 4px 16px rgba(232, 184, 74, 0.2);
}

.auth-panel[hidden] {
  display: none !important;
}

.auth-form .field {
  margin-bottom: 14px;
}

.auth-submit {
  margin-top: 6px;
}

.auth-steam-wrap {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.auth-steam-sep {
  margin: 0 0 10px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-align: center;
}

.btn-steam {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  color: #e8edf5;
  background: linear-gradient(180deg, #1b2838 0%, #16202d 100%);
  border: 1px solid rgba(102, 192, 244, 0.35);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}

.btn-steam:hover {
  border-color: rgba(102, 192, 244, 0.65);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.btn-steam:active {
  transform: translateY(1px);
}

.btn-steam-icon {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  flex-shrink: 0;
  background: linear-gradient(135deg, #1b2838 0%, #66c0f4 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.auth-steam-hint {
  margin: 10px 0 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--muted);
}

.auth-note {
  margin: 12px 0 0;
  font-size: 0.85rem;
  min-height: 1.3em;
}

/* ——— Header: login / cabinet ——— */
.nav .user-nav-slot {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-left: 4px;
  padding-left: 16px;
  border-left: 1px solid var(--border);
}

.header-auth-slot .user-nav-slot,
.header-auth-slot .admin-nav-slot {
  margin-left: 0;
  padding-left: 0;
  border-left: none;
}

.nav .nav-user-login {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gold);
}

.nav .nav-user-login:hover {
  color: #f0d078;
}

.nav .nav-user-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav .nav-user-link:hover {
  color: var(--gold);
}

.header-auth-slot .nav-user-cabinet {
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: 0.01em;
  padding: 6px 2px;
  border-radius: 8px;
  transition: color 0.18s ease, background 0.18s ease;
}

.header-auth-slot .nav-user-cabinet:hover {
  color: var(--gold);
  background: rgba(255, 255, 255, 0.04);
}

.header-auth-slot .nav-user-cabinet--current {
  color: var(--gold);
}

.nav .nav-user-greeting {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  max-width: 170px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav .nav-user-role {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--green);
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid rgba(46, 229, 157, 0.35);
  background: rgba(46, 229, 157, 0.08);
}

.nav .nav-user-steam {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #66c0f4;
  padding: 3px 7px;
  border-radius: 6px;
  border: 1px solid rgba(102, 192, 244, 0.4);
  background: rgba(27, 40, 56, 0.55);
}

.nav .nav-user-admin {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
}

.nav .nav-user-out {
  padding: 8px 14px;
  font-size: 0.8rem;
}

.header-auth-slot .nav-user-out {
  padding: 9px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  white-space: nowrap;
}

.header-auth-slot .nav-user-out:hover {
  border-color: rgba(245, 95, 15, 0.35);
  background: rgba(255, 255, 255, 0.06);
}

.admin-login-alt {
  margin: 14px 0 0;
  font-size: 12px;
  color: var(--muted);
}

.admin-login-alt a {
  color: var(--gold-dim);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.admin-login-alt a:hover {
  color: var(--gold);
}

.admin-users-roles {
  margin-bottom: 28px;
}

.admin-user-steam-mark {
  font-size: 0.78em;
  font-weight: 500;
  color: #66c0f4;
  white-space: nowrap;
}

.admin-user-role-select {
  min-width: 160px;
  padding: 8px 10px;
  font: inherit;
  font-size: 13px;
  border-radius: 8px;
  border: 1px solid rgba(69, 78, 116, 0.55);
  background: #13151e;
  color: var(--text);
}

@media (max-width: 720px) {
  .nav .user-nav-slot {
    margin-left: 0;
    padding-left: 0;
    border-left: none;
    width: 100%;
    justify-content: flex-end;
    flex-wrap: wrap;
  }

  .header-auth-slot .user-nav-slot {
    width: auto;
    justify-content: flex-end;
  }

  .header-left .nav.nav-primary {
    flex-wrap: wrap;
    justify-content: flex-start;
  }
}
