/* ============================================================
   POPOLNY.COM - Marketplace for gamers
   Design system + global styles
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html, body { height: 100%; }
body { line-height: 1.5; -webkit-font-smoothing: antialiased; }
img, picture, video, canvas, svg { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

:root {
  --bg-0: #030a17;
  --bg-1: #07122a;
  --bg-2: #0d1b3d;
  --bg-3: #142754;
  --bg-card: #0f1f46;
  --bg-card-hover: #173065;
  --border: rgba(112, 196, 255, 0.16);
  --border-strong: rgba(147, 215, 255, 0.28);

  --text-0: #ffffff;
  --text-1: #d9ecff;
  --text-2: #9ec4e6;
  --text-3: #6d93bc;

  --brand: #2cb8ff;
  --brand-2: #79dcff;
  --accent: #1d6fff;
  --accent-2: #66c6ff;
  --steam: #36b8ff;
  --success: #38d9a9;
  --danger: #ff4d6d;

  --grad-brand: linear-gradient(135deg, #23d0ff 0%, #2d7dff 55%, #1a5cff 100%);
  --grad-accent: linear-gradient(135deg, #58ddff 0%, #369dff 52%, #1f6fff 100%);
  --grad-steam: linear-gradient(135deg, #0d2b74 0%, #1f6fff 55%, #22d4ff 100%);
  --grad-cyan: linear-gradient(135deg, #26e1ff 0%, #259dff 55%, #2157ff 100%);
  --grad-rose: linear-gradient(135deg, #49d4ff 0%, #2f8dff 52%, #215bff 100%);
  --grad-green: linear-gradient(135deg, #6ce9ff 0%, #2fb8ff 52%, #2977ff 100%);
  --grad-dark: linear-gradient(135deg, #0a1d45 0%, #13306b 100%);

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.5);
  --shadow-brand: 0 12px 32px rgba(44, 184, 255, 0.35);

  --container: 1520px;
  --header-h: 72px;
  --header-home-h: 210px;
  --header-offset: 210px;
  --header-compact-h: 68px;
  --header-gap: 12px;
  --header-ease: cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-0);
  color: var(--text-1);
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(65% 55% at 10% 0%, rgba(35, 208, 255, 0.20), transparent 62%),
    radial-gradient(52% 42% at 92% 8%, rgba(29, 111, 255, 0.16), transparent 72%),
    radial-gradient(45% 35% at 50% 100%, rgba(121, 220, 255, 0.12), transparent 72%);
  z-index: -1;
}

::selection { background: var(--brand); color: white; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-1); }
::-webkit-scrollbar-thumb { background: var(--bg-3); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--brand); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.page {
  padding-top: calc(var(--header-offset, var(--header-home-h)) + var(--header-gap));
  padding-bottom: 80px;
  transition: padding-top 0.4s var(--header-ease);
}
body.has-header-home .page {
  padding-top: calc(var(--header-offset, var(--header-home-h)) + var(--header-gap));
}
.section { margin-bottom: 64px; }

.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 24px; gap: 16px; flex-wrap: wrap;
}
.section-title { font-size: clamp(20px, 2.4vw, 28px); font-weight: 700; color: var(--text-0); letter-spacing: -0.02em; }

.section-tabs {
  display: flex; gap: 6px;
  background: var(--bg-2); border: 1px solid var(--border);
  padding: 4px; border-radius: 999px;
}
.section-tabs button {
  padding: 8px 16px; border-radius: 999px;
  color: var(--text-2); font-size: 14px; font-weight: 500;
  transition: all .2s; white-space: nowrap;
}
.section-tabs button:hover { color: var(--text-0); }
.section-tabs button.active {
  background: var(--grad-brand); color: white;
  box-shadow: 0 4px 12px rgba(44, 184, 255, 0.45);
}

.section-link {
  color: var(--text-2); font-size: 14px; font-weight: 500;
  display: inline-flex; align-items: center; gap: 4px; transition: color .2s;
}
.section-link:hover { color: var(--brand-2); }

.header {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: rgba(10, 10, 20, 0.75);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}
.header--home {
  height: auto;
  transition: height 0.4s var(--header-ease);
}
.header--home.header--compact {
  height: auto;
}
.header-shell {
  display: flex;
  flex-direction: column;
  height: auto;
  overflow: hidden;
}
.header-top {
  position: relative;
  z-index: 40;
  height: var(--header-h);
  max-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 24px;
  flex-shrink: 0;
  opacity: 1;
  transform: translateY(0);
  overflow: visible;
  transition:
    max-height 0.4s var(--header-ease),
    opacity 0.32s ease,
    transform 0.4s var(--header-ease);
}
.header--compact .header-top {
  max-height: 0;
  height: 0;
  opacity: 0;
  transform: translateY(-12px);
  pointer-events: none;
}
.header-inner { height: 100%; display: flex; align-items: center; gap: 24px; }

.logo {
  display: flex; align-items: center;
  font-weight: 800; font-size: 20px; letter-spacing: -0.02em;
  flex-shrink: 0;
}
.logo-mark,
.logo-mark-svg,
.brand-mark-image {
  display: none !important;
}
.header-top-spacer { flex: 1; min-width: 12px; }
.logo-wordmark {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.logo-line {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  line-height: 1.1;
}
.logo-text {
  background: var(--grad-brand); -webkit-background-clip: text;
  background-clip: text; color: transparent;
  font-size: 22px;
  font-weight: 800;
}
.logo-domain {
  color: var(--text-0);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.logo-tagline {
  color: var(--text-3);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.header-home-panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 12px;
  flex: 0 0 auto;
  transition: gap 0.4s var(--header-ease), padding 0.4s var(--header-ease);
}
.header--compact .header-home-panel {
  gap: 0;
  padding-bottom: 10px;
  justify-content: center;
}
.header-home-categories {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  max-height: 72px;
  opacity: 1;
  transform: translateY(0);
  overflow: hidden;
  transition:
    max-height 0.4s var(--header-ease),
    opacity 0.32s ease,
    transform 0.4s var(--header-ease),
    margin 0.4s var(--header-ease);
}
.header--compact .header-home-categories {
  max-height: 0;
  opacity: 0;
  transform: translateY(-10px);
  margin-top: 0;
  pointer-events: none;
}
.cat-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: rgba(15, 31, 70, 0.65);
  border: 1px solid var(--border);
  transition: border-color .2s, background .2s, transform .2s;
  min-width: 0;
}
.cat-chip:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-strong);
  transform: translateY(-1px);
}
.cat-chip.active {
  border-color: var(--brand);
  background: rgba(44, 184, 255, 0.12);
  box-shadow: 0 0 0 1px rgba(44, 184, 255, 0.25);
}
.cat-chip-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
}
.cat-chip-img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}
.cat-chip-svg {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  color: #fff;
}
.cat-chip-svg svg {
  width: 24px;
  height: 24px;
  display: block;
}
.cat-chip-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.cat-chip-title {
  color: var(--text-0);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cat-chip-sub {
  color: var(--text-3);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-home-search {
  position: relative;
  width: 100%;
  flex-shrink: 0;
}
.header-home-search input {
  width: 100%;
  height: 44px;
  padding: 0 16px 0 44px;
  border-radius: 12px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  color: var(--text-1);
  font-size: 14px;
  outline: none;
  transition: border-color .2s, background .2s;
}
.header-home-search input::placeholder { color: var(--text-3); }
.header-home-search input:focus { border-color: var(--brand); background: var(--bg-3); }
.header-home-search .icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-3);
}

.notif-wrap { position: relative; z-index: 50; }
.notif-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: min(360px, calc(100vw - 32px));
  max-height: 400px;
  background: var(--bg-1);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  z-index: 500;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.notif-panel[hidden] { display: none !important; }
.notif-panel-head {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  font-weight: 700;
  color: var(--text-0);
  font-size: 14px;
}
.notif-list {
  overflow-y: auto;
  max-height: 340px;
  display: flex;
  flex-direction: column;
}
.notif-item {
  text-align: left;
  padding: 14px 16px;
  border: 0;
  border-bottom: 1px solid var(--border);
  background: transparent;
  cursor: pointer;
  transition: background .15s;
  width: 100%;
}
.notif-item:hover { background: var(--bg-2); }
.notif-item.unread { background: rgba(44, 184, 255, 0.08); }
.notif-item-title {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-0);
  margin-bottom: 4px;
}
.notif-item-body {
  display: block;
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.45;
}
.notif-item-date {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  color: var(--text-3);
}
.notif-empty {
  padding: 24px 16px;
  text-align: center;
  color: var(--text-3);
  font-size: 14px;
}

.nav { display: none !important; }
.header-top .header-search { display: none !important; }
.nav a {
  padding: 8px 14px; border-radius: 10px;
  color: var(--text-2); font-size: 14px; font-weight: 500;
  transition: all .2s;
}
.nav a:hover { background: var(--bg-2); color: var(--text-0); }
.nav a.active { color: var(--text-0); background: var(--bg-2); }

.header-search { flex: 1; max-width: 420px; position: relative; margin: 0 auto; }
.header-search input {
  width: 100%; height: 40px; padding: 0 14px 0 42px;
  border-radius: 12px; background: var(--bg-2);
  border: 1px solid var(--border); color: var(--text-1);
  font-size: 14px; outline: none;
  transition: border-color .2s, background .2s;
}
.header-search input::placeholder { color: var(--text-3); }
.header-search input:focus { border-color: var(--brand); background: var(--bg-3); }
.header-search .icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--text-3);
}

.header-actions { display: flex; gap: 8px; align-items: center; }

.icon-btn {
  position: relative; width: 40px; height: 40px;
  border-radius: 12px; background: var(--bg-2);
  border: 1px solid var(--border);
  display: grid; place-items: center;
  color: var(--text-1); transition: all .2s;
}
.icon-btn:hover { background: var(--bg-3); border-color: var(--border-strong); transform: translateY(-1px); }
.icon-btn .badge {
  position: absolute; top: -6px; right: -6px;
  min-width: 20px; height: 20px; border-radius: 999px;
  background: var(--accent); color: white;
  font-size: 11px; font-weight: 700;
  display: grid; place-items: center; padding: 0 6px;
}

.menu-toggle { display: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px;
  border-radius: 12px; font-weight: 600; font-size: 14px;
  transition: all .2s; white-space: nowrap;
}
.btn-primary { background: var(--grad-brand); color: white; box-shadow: var(--shadow-brand); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 36px rgba(36, 173, 255, 0.55); }
.btn-primary:active { transform: translateY(0); }
.btn-accent { background: var(--grad-accent); color: #2b1500; }
.btn-accent:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(255, 138, 60, 0.5); }
.btn-secondary { background: var(--bg-2); color: var(--text-0); border: 1px solid var(--border-strong); }
.btn-secondary:hover { background: var(--bg-3); border-color: var(--brand); }
.btn-ghost { background: transparent; color: var(--text-1); border: 1px solid var(--border-strong); }
.btn-ghost:hover { background: var(--bg-2); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 13px; }
.btn-lg { height: 52px; padding: 0 24px; font-size: 15px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none !important; }

/* —— Моментальная покупка —— */
.quick-purchase {
  margin-bottom: 24px;
  overflow: visible;
}
.qp-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr min(42%, 520px);
  gap: 0;
  background: #12141c;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  overflow: visible;
  min-height: 280px;
}
.qp-body {
  position: relative;
  z-index: 2;
  padding: 22px 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  overflow: visible;
}
.qp-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 20px;
}
.qp-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-0);
  letter-spacing: -0.02em;
  margin: 0;
}
.qp-trust {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.qp-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #3ee089;
}
.qp-trust-ico {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  display: inline-block;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.qp-services {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overflow-y: visible;
  padding: 6px 0 4px;
  scrollbar-width: none;
}
.qp-services::-webkit-scrollbar { display: none; }
.qp-service {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 72px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.qp-service-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: #1e2230;
  border: 2px solid transparent;
  display: grid;
  place-items: center;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.25s, box-shadow 0.25s;
}
.qp-service:hover .qp-service-icon,
.qp-service:focus-visible .qp-service-icon {
  transform: scale(1.05);
  border-color: rgba(62, 224, 137, 0.45);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}
.qp-service-icon img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 8px;
}
.qp-service-icon img.qp-icon-mono {
  width: 32px;
  height: 32px;
  border-radius: 0;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}
.qp-service-icon img.qp-icon-color {
  filter: none;
  opacity: 1;
}
.qp-service.active .qp-service-icon {
  border-color: #3ee089;
  box-shadow: 0 0 20px rgba(62, 224, 137, 0.35);
}
.qp-service-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-2);
  text-align: center;
  line-height: 1.2;
  max-width: 72px;
  transition: color 0.2s;
}
.qp-service.active .qp-service-label { color: #3ee089; }

.qp-form-wrap { min-height: 52px; overflow: visible; }
.qp-form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: stretch;
}
.qp-form-row--pack-line {
  align-items: stretch;
}
.qp-form-row--pack-line .qp-field-region-select {
  flex: 0 0 auto;
  min-width: 108px;
}
.qp-form-row--pack-line .qp-pack-picker {
  flex: 1 1 200px;
  min-width: 0;
  max-width: 100%;
}
.qp-field {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 14px;
  background: #1a1d28;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  color: var(--text-1);
  font-size: 14px;
}
.qp-field-wide { flex: 1 1 180px; min-width: 140px; }
.qp-field-amount { flex: 0 1 140px; min-width: 120px; }
.qp-field-amount .qp-input { font-weight: 700; }
.qp-input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--text-0);
  outline: none;
  font-size: 14px;
}
.qp-input::placeholder { color: var(--text-3); }
.qp-field-label {
  font-size: 12px;
  color: var(--text-3);
  white-space: nowrap;
}
.qp-field-currency,
.qp-field-region {
  flex: 0 0 auto;
  font-weight: 600;
  cursor: default;
}
.qp-flag { font-size: 18px; }
.qp-info {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid var(--text-3);
  color: var(--text-3);
  font-size: 11px;
  font-style: italic;
  font-weight: 700;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  cursor: help;
}
.qp-field-promo { flex: 1 1 140px; min-width: 120px; }
.qp-field-icon {
  color: var(--text-3);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.qp-field-icon svg { width: 18px; height: 18px; }
.qp-pack-picker {
  position: relative;
  flex: 1 1 280px;
  min-width: 0;
  max-width: 100%;
}
.qp-field-pack {
  width: 100%;
  cursor: pointer;
  border-color: rgba(255, 255, 255, 0.08);
  transition: border-color 0.2s, background 0.2s;
  padding-right: 10px;
}
.qp-field-pack:hover,
.qp-field-pack[aria-expanded="true"] {
  background: #222633;
  border-color: rgba(255, 255, 255, 0.12);
}
.qp-pack-trigger-inner,
.qp-pack-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-width: 0;
}
.qp-pack-option {
  border: 0;
  background: transparent;
  color: inherit;
  padding: 10px 12px;
  cursor: pointer;
  text-align: left;
  font: inherit;
}
.qp-pack-option:hover,
.qp-pack-option.is-selected {
  background: rgba(255, 255, 255, 0.06);
}
.qp-pack-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
}
.qp-pack-icon img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}
.qp-pack-title {
  flex: 1 1 auto;
  min-width: 0;
  font-weight: 700;
  font-size: 14px;
  color: var(--text-0);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.qp-pack-discount {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 800;
  color: #0f1118;
  background: #ff5ca8;
  padding: 3px 7px;
  border-radius: 6px;
  line-height: 1;
}
.qp-pack-price {
  flex-shrink: 0;
  margin-left: auto;
  font-weight: 800;
  font-size: 14px;
  color: var(--text-0);
  white-space: nowrap;
}
.qp-pack-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  margin: 0;
  padding: 4px 0;
  list-style: none;
  background: #1a1d28;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  max-height: 280px;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  z-index: 40;
  scrollbar-width: thin;
  scrollbar-color: #3ee089 #141820;
}
.qp-pack-menu::-webkit-scrollbar { width: 6px; }
.qp-pack-menu::-webkit-scrollbar-track {
  margin: 6px 2px;
  background: #141820;
  border-radius: 8px;
}
.qp-pack-menu::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #3ee089, #2ab86a);
  border-radius: 8px;
}
.qp-pack-menu::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #5ef0a0, #3ee089);
}
.qp-pack-menu--portal { position: fixed; right: auto; }
.qp-pack-menu[hidden] { display: none; }
.qp-pack-menu li { margin: 0; }
.qp-chevron {
  color: var(--text-3);
  font-size: 14px;
  margin-left: 6px;
  flex-shrink: 0;
}

.qp-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.qp-pay {
  flex-shrink: 0;
  height: 48px;
  padding: 0 28px;
  border: 0;
  border-radius: 12px;
  background: #3ee089;
  color: #0a0f14;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
  white-space: nowrap;
}
.qp-pay:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(62, 224, 137, 0.45);
  filter: brightness(1.05);
}
.qp-legal {
  flex: 1;
  min-width: 200px;
  margin: 0;
  font-size: 11px;
  line-height: 1.45;
  color: var(--text-3);
}
.qp-legal a {
  color: var(--text-2);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.qp-legal a:hover { color: var(--brand-2); }

.qp-loading,
.qp-hint {
  font-size: 13px;
  color: var(--text-3);
  padding: 8px 0;
}
.qp-hint.qp-error { color: var(--danger); }
.qp-field-select {
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  min-width: 140px;
}
.qp-field-email { flex: 1 1 200px; min-width: 180px; }
.qp-select {
  width: 100%;
  height: 40px;
  border: 0;
  background: transparent;
  color: var(--text-0);
  font-size: 14px;
  font-weight: 600;
  outline: none;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239ec4e6' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0 center;
  padding-right: 20px;
}
.qp-select option { background: #1a1d28; color: #fff; }

.qp-hero {
  position: relative;
  min-height: 280px;
  background: #0d0f14;
  overflow: hidden;
}
.qp-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #12141c 0%, transparent 45%);
  z-index: 1;
  pointer-events: none;
}
.qp-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.qp-hero-img.is-active { opacity: 1; }

@media (max-width: 1100px) {
  .qp-card {
    grid-template-columns: 1fr;
  }
  .qp-hero {
    min-height: 200px;
    order: -1;
  }
  .qp-hero::before {
    background: linear-gradient(180deg, transparent 30%, #12141c 100%);
  }
}

@media (max-width: 640px) {
  .qp-body { padding: 16px; }
  .qp-title { font-size: 18px; }
  .qp-actions { flex-direction: column; align-items: stretch; }
  .qp-pay { width: 100%; }
  .qp-legal { text-align: center; }
}

.promo-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  grid-template-rows: 200px 200px;
  gap: 16px;
}
.promo-card {
  position: relative; border-radius: var(--radius-lg);
  padding: 24px; overflow: hidden; isolation: isolate;
  cursor: pointer; transition: transform .25s ease, box-shadow .25s ease;
  display: flex; flex-direction: column; justify-content: space-between;
  min-height: 200px;
}
.promo-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.promo-card .promo-bg { position: absolute; inset: 0; z-index: -1; opacity: 0.95; }
.promo-card .promo-blob {
  position: absolute; border-radius: 50%;
  filter: blur(60px); opacity: 0.6; z-index: -1;
}
.promo-card.promo-steam .promo-bg { background: var(--grad-steam); }
.promo-card.promo-steam .promo-blob { background: #8de7ff; width: 180px; height: 180px; bottom: -40px; right: -40px; }
.promo-card.promo-console .promo-bg { background: var(--grad-brand); }
.promo-card.promo-console .promo-blob { background: #6dd7ff; width: 160px; height: 160px; top: -40px; right: -40px; }
.promo-card.promo-currency .promo-bg { background: var(--grad-accent); }
.promo-card.promo-currency .promo-blob { background: #a6ecff; width: 140px; height: 140px; bottom: -30px; left: -30px; }
.promo-card.promo-gifts .promo-bg { background: var(--grad-rose); }
.promo-card.promo-gifts .promo-blob { background: #8dd9ff; width: 140px; height: 140px; top: -40px; left: -20px; }
.promo-card.promo-keys .promo-bg { background: var(--grad-cyan); }
.promo-card.promo-keys .promo-blob { background: #a8f0ff; width: 140px; height: 140px; bottom: -40px; right: -20px; }
.promo-card.promo-cards .promo-bg { background: var(--grad-green); }
.promo-card.promo-cards .promo-blob { background: #9de3ff; width: 140px; height: 140px; top: -30px; right: -30px; }
.promo-card.large { grid-column: span 1; grid-row: span 2; min-height: 416px; padding: 32px; }

.promo-eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border-radius: 999px; padding: 6px 12px;
  font-size: 12px; font-weight: 600; color: white;
  width: fit-content;
}

.promo-title { color: white; font-size: 26px; font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; }
.promo-card.large .promo-title { font-size: 40px; }
.promo-sub { color: rgba(255, 255, 255, 0.85); font-size: 14px; margin-top: 4px; }

.promo-card .arrow {
  width: 40px; height: 40px; border-radius: 12px;
  background: rgba(255, 255, 255, 0.18); backdrop-filter: blur(8px);
  display: grid; place-items: center; color: white;
  transition: transform .25s, background .25s;
}
.promo-card:hover .arrow { background: rgba(255, 255, 255, 0.3); transform: translateX(4px); }

.promo-illustration {
  position: absolute; right: 16px; bottom: 16px; z-index: 1;
  width: 88px; height: 88px;
  display: grid; place-items: center;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.35));
  pointer-events: none;
}
.promo-illustration img { width: 100%; height: 100%; object-fit: contain; opacity: 0.95; }
.promo-card.large .promo-illustration { width: 140px; height: 140px; right: 20px; bottom: 20px; }

.product-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px;
}
.product-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: all .25s; cursor: pointer; position: relative;
  display: flex; flex-direction: column;
}
.product-card:hover {
  background: var(--bg-card-hover); border-color: var(--brand);
  transform: translateY(-4px); box-shadow: var(--shadow-lg);
}
.product-thumb {
  position: relative; aspect-ratio: 1 / 1;
  background: var(--bg-2); overflow: hidden;
  display: grid; place-items: center;
}
.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.product-image-logo {
  object-fit: contain;
  padding: 22px;
  background:
    radial-gradient(circle at 50% 35%, rgba(124, 92, 255, 0.22), transparent 55%),
    linear-gradient(135deg, rgba(124, 92, 255, 0.08), rgba(255, 138, 60, 0.08));
}
.product-thumb .emoji {
  font-size: 64px; transition: transform .3s;
  filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.4));
}
.product-card:hover .product-image { transform: scale(1.06); }
.product-card:hover .product-thumb .emoji { transform: scale(1.1) rotate(-5deg); }
.product-thumb::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, 0.4) 100%);
}
.product-badges {
  position: absolute; top: 10px; left: 10px;
  display: flex; gap: 6px; z-index: 1;
}
.badge-chip {
  background: var(--bg-card); color: var(--text-0);
  border-radius: 8px; padding: 4px 8px;
  font-size: 11px; font-weight: 700;
  border: 1px solid var(--border);
}
.badge-chip.discount { background: var(--accent); color: #2b1500; border: 0; }
.badge-chip.new { background: var(--success); color: #03210f; border: 0; }
.badge-chip.hot { background: var(--danger); color: white; border: 0; }

.product-fav {
  position: absolute; top: 10px; right: 10px;
  width: 32px; height: 32px; border-radius: 10px;
  background: rgba(0, 0, 0, 0.4); backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: grid; place-items: center; color: white;
  opacity: 0; transform: translateY(-4px); transition: all .25s; z-index: 1;
}
.product-card:hover .product-fav { opacity: 1; transform: translateY(0); }
.product-fav.active { color: var(--danger); opacity: 1; }

.product-info { padding: 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-platform {
  font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.04em; color: var(--text-3); font-weight: 600;
}
.product-name {
  font-size: 14px; font-weight: 600; color: var(--text-0);
  line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; min-height: 36px;
}
.product-footer {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; margin-top: auto; padding-top: 4px;
}
.product-price { display: flex; flex-direction: column; gap: 2px; }
.product-price .price { font-weight: 800; color: var(--text-0); font-size: 16px; }
.product-price .old { font-size: 12px; color: var(--text-3); text-decoration: line-through; }
.product-cart {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--bg-2); display: grid; place-items: center;
  color: var(--text-1); transition: all .2s;
  border: 1px solid var(--border);
}
.product-cart:hover { background: var(--grad-brand); color: white; border-color: transparent; }
.product-cart.added { background: var(--success); color: white; border-color: transparent; }

.service-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px;
}
.service-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
  cursor: pointer; transition: all .2s;
  min-height: 130px; position: relative; overflow: hidden;
}
.service-card:hover { background: var(--bg-card-hover); border-color: var(--brand); transform: translateY(-3px); }
.service-card .service-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--bg-2); display: grid; place-items: center;
  font-size: 24px;
}
.brand-logo {
  width: 26px;
  height: 26px;
  object-fit: contain;
  border-radius: 8px;
}
.service-card .service-name { font-size: 15px; font-weight: 700; color: var(--text-0); }
.service-card .service-sub { font-size: 12px; color: var(--text-2); }
.service-card .service-price {
  margin-top: 8px;
  font-size: 16px;
  font-weight: 800;
  color: var(--brand-2);
}
.service-card .service-tag {
  margin-top: auto; font-size: 11px;
  padding: 4px 8px; border-radius: 6px;
  background: rgba(124, 92, 255, 0.15);
  color: var(--brand-2); font-weight: 600;
}

.currency-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px;
}
.currency-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px;
  display: flex; align-items: center; gap: 14px;
  cursor: pointer; transition: all .2s;
}
.currency-card:hover { background: var(--bg-card-hover); border-color: var(--brand); transform: translateY(-2px); }
.currency-icon {
  width: 56px; height: 56px; border-radius: 14px;
  display: grid; place-items: center; font-size: 28px;
  background: var(--grad-dark); flex-shrink: 0;
}
.currency-icon .brand-logo,
.service-icon .brand-logo {
  width: 28px;
  height: 28px;
}
.currency-card .info { flex: 1; min-width: 0; }
.currency-card .name { font-weight: 700; font-size: 15px; color: var(--text-0); }
.currency-card .desc { font-size: 12px; color: var(--text-2); }

.games-thumb {
  background:
    radial-gradient(circle at 30% 20%, rgba(121, 220, 255, 0.18), transparent 45%),
    linear-gradient(135deg, rgba(44, 184, 255, 0.08), rgba(26, 92, 255, 0.16)),
    var(--bg-2);
}
.games-thumb::after { display: none; }
.games-thumb-icon {
  width: 110px;
  height: 110px;
  border-radius: 28px;
  background: rgba(7, 18, 42, 0.55);
  border: 1px solid rgba(147, 215, 255, 0.22);
  display: grid;
  place-items: center;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
}
.games-thumb-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  image-rendering: auto;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.22));
}

.catalog-layout { display: grid; grid-template-columns: 280px 1fr; gap: 16px; align-items: start; }
.catalog-filters { position: sticky; top: 88px; padding: 16px; }
.catalog-filter-title { font-size: 13px; font-weight: 700; color: var(--text-2); margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.04em; }
.catalog-filter-group + .catalog-filter-group { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); }
.catalog-check { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-1); margin: 8px 0; cursor: pointer; }
.catalog-check input { accent-color: #2cb8ff; }
.catalog-filter-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.catalog-chip-btn { border: 1px solid var(--border-strong); background: var(--bg-2); color: var(--text-1); padding: 7px 10px; border-radius: 10px; font-size: 12px; font-weight: 600; cursor: pointer; }
.catalog-chip-btn.active { border-color: transparent; color: #fff; background: var(--grad-brand); }
.catalog-reset { width: 100%; margin-top: 10px; border: 1px solid var(--border-strong); background: var(--bg-2); color: var(--text-1); border-radius: 12px; height: 40px; font-weight: 600; cursor: pointer; }
.catalog-filter-note { margin-top: 12px; font-size: 12px; color: var(--text-3); line-height: 1.45; }
.catalog-filter-note code { font-size: 11px; color: var(--text-2); }
.catalog-toolbar { padding: 14px 16px; margin-bottom: 14px; }
.catalog-toolbar-grid { display: grid; grid-template-columns: 1fr 220px; gap: 10px; }
.catalog-stats-bar { display: flex; flex-wrap: wrap; gap: 12px; padding: 14px 16px; margin-bottom: 16px; }
.catalog-stat { display: flex; flex-direction: column; gap: 2px; min-width: 110px; }
.catalog-stat strong { font-size: 18px; color: var(--text-0); }
.catalog-stat span { font-size: 12px; color: var(--text-3); }
.catalog-collections { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; margin-bottom: 18px; }
.catalog-collection-card { border: 1px solid var(--border); background: var(--bg-card); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 4px; transition: border-color .2s, transform .2s; }
.catalog-collection-card:hover { border-color: var(--brand); transform: translateY(-2px); }
.catalog-collection-title { font-weight: 700; color: var(--text-0); }
.catalog-collection-count { font-size: 12px; color: var(--text-3); }
.recent-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.recent-card { border: 1px solid var(--border); background: var(--bg-card); border-radius: 12px; padding: 12px; display: flex; align-items: center; gap: 10px; }
.recent-icon { width: 36px; height: 36px; border-radius: 10px; background: var(--bg-2); display: grid; place-items: center; overflow: hidden; flex-shrink: 0; }
.recent-icon img { width: 24px; height: 24px; object-fit: contain; }
.recent-name { font-size: 13px; font-weight: 600; color: var(--text-0); line-height: 1.25; }
.rub-notice { font-size: 13px; color: var(--text-2); margin-bottom: 12px; }
@media (max-width: 980px) {
  .catalog-layout { grid-template-columns: 1fr; }
  .catalog-filters { position: static; top: auto; }
  .catalog-toolbar-grid { grid-template-columns: 1fr; }
}

.cta-panel.game-profile { background: var(--grad-steam); color: white; }
.cta-panel.game-profile .blob { background: rgba(141, 231, 255, 0.35); width: 240px; height: 240px; right: -60px; bottom: -60px; }
.cta-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cta-panel {
  position: relative; border-radius: var(--radius-xl);
  padding: 36px; overflow: hidden; isolation: isolate;
  min-height: 220px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.cta-panel.cashback { background: var(--grad-brand); }
.cta-panel.bonus { background: var(--grad-accent); color: white; }
.cta-panel .blob {
  position: absolute; z-index: -1; border-radius: 50%;
  filter: blur(80px); opacity: 0.7;
}
.cta-panel.cashback .blob { background: #ff8a3c; width: 240px; height: 240px; right: -60px; bottom: -60px; }
.cta-panel.bonus .blob { background: #ff5e7a; width: 240px; height: 240px; left: -60px; top: -60px; }
.cta-eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px; padding: 6px 14px;
  font-size: 12px; font-weight: 700; width: fit-content;
}
.cta-title { font-size: 28px; font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; max-width: 460px; }
.cta-text { font-size: 14px; opacity: 0.9; max-width: 480px; }

.footer {
  background: var(--bg-1); border-top: 1px solid var(--border);
  margin-top: 80px; padding: 56px 0 32px;
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer h4 {
  font-size: 14px; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--text-3);
  margin-bottom: 16px; font-weight: 700;
}
.footer ul { display: flex; flex-direction: column; gap: 10px; }
.footer ul a { color: var(--text-2); font-size: 14px; transition: color .2s; }
.footer ul a:hover { color: var(--brand-2); }
.footer-brand p { color: var(--text-2); font-size: 14px; margin-top: 14px; max-width: 360px; }
.socials { display: flex; gap: 10px; margin-top: 20px; }
.socials a {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--bg-2); border: 1px solid var(--border);
  display: grid; place-items: center; color: var(--text-1);
  transition: all .2s;
}
.socials a:hover { background: var(--grad-brand); border-color: transparent; transform: translateY(-2px); }
.footer-bottom {
  padding-top: 24px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  color: var(--text-3); font-size: 13px;
}
.footer-bottom .legal { display: flex; gap: 18px; }
.footer-bottom .legal a:hover { color: var(--brand-2); }

.page-hero {
  background: var(--bg-1); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 40px;
  margin-bottom: 32px;
  display: grid; grid-template-columns: 1fr auto;
  gap: 24px; align-items: center;
  position: relative; overflow: hidden; isolation: isolate;
}
.page-hero .blob {
  position: absolute; z-index: -1; border-radius: 50%;
  filter: blur(80px); opacity: 0.4;
}
.page-hero h1 { font-size: 36px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.page-hero p { color: var(--text-2); margin-top: 8px; max-width: 600px; }
.page-hero .visual { font-size: 120px; opacity: 0.8; filter: drop-shadow(0 6px 30px rgba(0,0,0,0.5)); }

.form-row { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-row label { font-size: 13px; font-weight: 600; color: var(--text-2); }
.input, .select, .textarea {
  width: 100%; height: 48px; border-radius: 12px;
  border: 1px solid var(--border-strong); background: var(--bg-2);
  color: var(--text-0); padding: 0 14px; font-size: 14px;
  outline: none; transition: all .2s;
}
.textarea { padding: 12px 14px; height: auto; min-height: 100px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--brand); background: var(--bg-3); }
.input-prefix { position: relative; }
.input-prefix .prefix {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--text-3); font-weight: 600;
}
.input-prefix .input { padding-left: 36px; }

.tabs {
  display: flex; gap: 4px;
  background: var(--bg-2); padding: 4px;
  border-radius: 14px; border: 1px solid var(--border);
  margin-bottom: 24px; width: fit-content; flex-wrap: wrap;
}
.tabs button {
  padding: 10px 18px; border-radius: 10px;
  color: var(--text-2); font-weight: 600; font-size: 14px;
  transition: all .2s;
}
.tabs button:hover { color: var(--text-0); }
.tabs button.active {
  background: var(--grad-brand); color: white;
  box-shadow: 0 4px 12px rgba(124, 92, 255, 0.4);
}

.panel {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px;
}
.panel h2 { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 6px; }
.panel-subtitle { color: var(--text-2); font-size: 14px; margin-bottom: 24px; }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.step-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 22px 22px;
  overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.step-card:hover {
  border-color: rgba(124, 92, 255, 0.35);
  box-shadow: 0 8px 28px rgba(124, 92, 255, 0.12);
  transform: translateY(-2px);
}
.step-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--grad-brand);
  opacity: 0.85;
}
.step-num {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(124, 92, 255, 0.14);
  color: var(--brand-2);
  font-size: 13px;
  font-weight: 800;
  display: grid;
  place-items: center;
  line-height: 1;
}
.step-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(124, 92, 255, 0.18), rgba(44, 184, 255, 0.12));
  border: 1px solid rgba(124, 92, 255, 0.22);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  color: var(--brand-2);
}
.step-icon svg { width: 24px; height: 24px; }
.step-icon.step-icon-cycle {
  display: block;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.step-icon-cycle img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 28px;
  height: 28px;
  object-fit: contain;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.85);
  transition: opacity 0.45s ease, transform 0.45s ease;
  pointer-events: none;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.25));
}
.step-icon-cycle img.is-active {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

@media (prefers-reduced-motion: reduce) {
  .step-icon-cycle img { transition: none; }
  .step-icon-cycle img:first-child {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  .header--home,
  .header-top,
  .header-home-categories,
  .header-home-panel,
  .page {
    transition: none !important;
  }
}
.step-title {
  display: block;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-0);
  margin-bottom: 8px;
}
.step-desc {
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-2);
  margin: 0;
}
.step-icon-success {
  background: linear-gradient(145deg, rgba(34, 197, 94, 0.18), rgba(44, 184, 255, 0.1));
  border-color: rgba(34, 197, 94, 0.28);
  color: #22c55e;
}

.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(5, 5, 12, 0.7);
  backdrop-filter: blur(8px); z-index: 200;
  display: none; align-items: center; justify-content: center;
  padding: 20px;
}
.modal-backdrop.active { display: flex; animation: fadeIn .2s ease; }
.modal {
  width: 100%; max-width: 460px;
  background: var(--bg-card); border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl); padding: 32px;
  position: relative;
  animation: pop .25s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}
.modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--bg-2); display: grid; place-items: center;
  color: var(--text-2); transition: all .2s;
}
.modal-close:hover { background: var(--bg-3); color: var(--text-0); }
.email-verify-box {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bg-2);
}
.email-verify-title {
  color: var(--text-0);
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 6px;
}
.email-verify-box p {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.45;
}
.email-code-input {
  margin-bottom: 10px;
  text-align: center;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.22em;
}
.email-resend-btn {
  width: 100%;
  margin-top: 12px;
  color: var(--brand-2);
  font-size: 13px;
  font-weight: 700;
}
.email-resend-btn:disabled { opacity: 0.55; cursor: wait; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop {
  from { opacity: 0; transform: scale(0.94) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.toasts {
  position: fixed; bottom: 24px; right: 24px;
  display: flex; flex-direction: column; gap: 10px;
  z-index: 300; max-width: 340px;
}
.toast {
  background: var(--bg-card); border: 1px solid var(--border-strong);
  border-left: 3px solid var(--brand);
  border-radius: 12px; padding: 14px 18px;
  box-shadow: var(--shadow-lg);
  display: flex; align-items: flex-start; gap: 10px;
  animation: slideIn .25s ease; font-size: 14px;
}
.toast.success { border-left-color: var(--success); }
.toast.error { border-left-color: var(--danger); }
@keyframes slideIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }

.auth-wrap {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 0;
  border-radius: var(--radius-xl); overflow: hidden;
  border: 1px solid var(--border); background: var(--bg-card);
  max-width: 960px; margin: 32px auto 0; min-height: 540px;
}
.auth-form-side { padding: 48px; display: flex; flex-direction: column; justify-content: center; }
.auth-visual-side {
  background: var(--grad-brand);
  position: relative; overflow: hidden; isolation: isolate;
  padding: 48px; color: white;
  display: flex; flex-direction: column; justify-content: space-between;
}
.auth-visual-side .blob {
  position: absolute; z-index: -1; border-radius: 50%;
  filter: blur(80px); width: 280px; height: 280px;
  background: #7ee2ff; opacity: 0.55;
  right: -80px; bottom: -80px;
}
.auth-visual-side h2 { font-size: 34px; font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; }
.auth-visual-side p { font-size: 14px; opacity: 0.9; margin-top: 12px; }
.auth-tabs {
  display: flex; gap: 4px; background: var(--bg-2);
  padding: 4px; border-radius: 12px; margin-bottom: 24px;
}
.auth-tabs button { flex: 1; padding: 10px; border-radius: 10px; color: var(--text-2); font-weight: 600; }
.auth-tabs button.active { background: var(--grad-brand); color: white; }

.cabinet { display: grid; grid-template-columns: 280px 1fr; gap: 24px; }
.cabinet-sidebar {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 18px;
  height: fit-content; position: sticky; top: calc(var(--header-h) + 16px);
}
.cabinet-user {
  display: flex; align-items: center; gap: 12px;
  padding: 12px; margin-bottom: 16px;
  border-bottom: 1px solid var(--border); padding-bottom: 16px;
}
.cabinet-avatar {
  width: 48px; height: 48px; border-radius: 14px;
  background: var(--grad-brand); display: grid; place-items: center;
  font-weight: 800; color: white; font-size: 18px;
}
.cabinet-user .name { font-weight: 700; }
.cabinet-user .email { font-size: 12px; color: var(--text-2); }

.cabinet-nav { display: flex; flex-direction: column; gap: 4px; }
.cabinet-nav a {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 10px;
  color: var(--text-2); font-weight: 500; font-size: 14px;
  transition: all .2s;
}
.cabinet-nav a:hover { background: var(--bg-2); color: var(--text-0); }
.cabinet-nav a.active { background: var(--bg-2); color: var(--text-0); }
.cabinet-nav a.active::before {
  content: ''; width: 3px; height: 16px;
  background: var(--brand); border-radius: 4px;
  margin-right: -3px;
}
.cabinet-logout { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.cabinet-content { display: flex; flex-direction: column; gap: 20px; }

.ref-hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  padding: 28px;
  background:
    radial-gradient(circle at 88% 12%, rgba(126, 226, 255, 0.35), transparent 32%),
    linear-gradient(135deg, #0d2b74 0%, #1f6fff 58%, #22d4ff 100%);
  border: 1px solid rgba(147, 215, 255, 0.28);
  color: white;
}
.ref-hero-content { max-width: 680px; position: relative; z-index: 1; }
.ref-eyebrow {
  display: inline-flex;
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(0,0,0,0.24);
  color: rgba(255,255,255,0.82);
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 12px;
}
.ref-hero h2 { font-size: clamp(24px, 3vw, 36px); line-height: 1.05; font-weight: 900; letter-spacing: -0.04em; }
.ref-hero p { margin-top: 12px; max-width: 620px; color: rgba(255,255,255,0.86); line-height: 1.55; font-size: 14px; }
.ref-stats { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.ref-stats div {
  min-width: 140px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(3, 10, 23, 0.34);
  border: 1px solid rgba(255,255,255,0.14);
}
.ref-stats strong { display: block; font-size: 22px; font-weight: 900; line-height: 1; }
.ref-stats span { display: block; margin-top: 5px; color: rgba(255,255,255,0.72); font-size: 12px; font-weight: 700; }
.ref-panel h3, .cabinet-content .panel h3 { font-size: 18px; font-weight: 800; color: var(--text-0); margin-bottom: 12px; }
.ref-link-box { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.ref-link-box .btn { height: 48px; white-space: nowrap; }
.ref-rules { display: grid; gap: 10px; margin-top: 16px; }
.ref-rules div {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 12px;
  border-radius: 14px;
  background: rgba(44, 184, 255, 0.08);
  border: 1px solid var(--border);
}
.ref-rules span {
  width: 24px; height: 24px; border-radius: 999px; flex-shrink: 0;
  display: grid; place-items: center;
  background: var(--grad-brand);
  color: white; font-size: 12px; font-weight: 900;
}
.ref-rules p { margin: 0; color: var(--text-2); font-size: 13px; line-height: 1.45; }
.ref-list { display: flex; flex-direction: column; gap: 10px; }
.ref-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 16px;
  background: var(--bg-2);
  border: 1px solid var(--border);
}
.ref-avatar {
  width: 42px; height: 42px; border-radius: 13px;
  display: grid; place-items: center;
  overflow: hidden;
  background: var(--grad-brand);
  color: white; font-weight: 900;
}
.ref-avatar img { width: 100%; height: 100%; object-fit: cover; }
.ref-name { color: var(--text-0); font-weight: 800; }
.ref-meta { color: var(--text-3); font-size: 12px; margin-top: 2px; }
.ref-status {
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--success);
  background: rgba(56, 217, 169, 0.12);
  font-size: 12px;
  font-weight: 800;
}

/* Game profile */
.gp-panel { padding: 24px; }
.gp-hero {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 18px 20px; margin-bottom: 20px;
  background: linear-gradient(135deg, rgba(13, 43, 116, 0.55), rgba(15, 31, 70, 0.95));
  border: 1px solid rgba(147, 215, 255, 0.22); border-radius: var(--radius-lg);
}
.gp-hero-icon {
  width: 52px; height: 52px; border-radius: 16px; flex-shrink: 0;
  background: linear-gradient(135deg, rgba(44, 184, 255, 0.25), rgba(26, 92, 255, 0.35));
  border: 1px solid rgba(147, 215, 255, 0.25);
  display: grid; place-items: center; padding: 10px;
}
.gp-hero-icon img { width: 100%; height: 100%; object-fit: contain; }
.gp-hero-text { flex: 1; min-width: 200px; }
.gp-hero-text h3 { font-size: 18px; font-weight: 800; color: var(--text-0); margin-bottom: 6px; }
.gp-hero-text p { font-size: 13px; color: var(--text-2); line-height: 1.55; margin: 0; }
.gp-hero-stat {
  text-align: center; padding: 10px 16px; border-radius: 14px;
  background: rgba(3, 10, 23, 0.45); border: 1px solid var(--border);
}
.gp-hero-stat strong { display: block; font-size: 24px; font-weight: 900; color: var(--brand-2); line-height: 1; }
.gp-hero-stat span { font-size: 11px; color: var(--text-3); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.gp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.gp-card {
  display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: start;
  padding: 14px; border-radius: var(--radius); border: 1px solid var(--border);
  background: var(--bg-card); transition: border-color .2s, box-shadow .2s;
}
.gp-card.is-filled { border-color: rgba(44, 184, 255, 0.35); box-shadow: 0 0 0 1px rgba(44, 184, 255, 0.08); }
.gp-icon {
  width: 52px; height: 52px; border-radius: 14px; flex-shrink: 0;
  background:
    radial-gradient(circle at 35% 25%, color-mix(in srgb, var(--gp-accent) 55%, transparent), transparent 65%),
    var(--bg-2);
  border: 1px solid rgba(147, 215, 255, 0.14);
  display: grid; place-items: center; padding: 10px;
}
.gp-icon img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 2px 6px rgba(0,0,0,0.25)); }
.gp-body { min-width: 0; }
.gp-label { display: block; font-size: 14px; font-weight: 700; color: var(--text-0); margin-bottom: 8px; }
.gp-body .input { padding: 11px 14px; font-size: 14px; }
.gp-hint { font-size: 11px; color: var(--text-3); margin-top: 6px; line-height: 1.45; }
.gp-status {
  width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center; margin-top: 4px;
  background: rgba(56, 217, 169, 0.12); color: var(--success);
}
.gp-status svg { width: 14px; height: 14px; stroke-width: 3; }
.gp-card:not(.is-filled) .gp-status { opacity: 0; }
.gp-save-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  margin-top: 24px;
}
.gp-save-btn .site-logo-img { width: 22px; height: 22px; object-fit: contain; }

.site-logo-img { object-fit: contain; }
.marquee-track .logo-item img {
  width: 28px; height: 28px; object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.2));
}
.marquee-track .logo-item span {
  font-size: 15px; font-weight: 700; color: var(--text-2);
}

.account-gp-teaser {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 18px 20px; margin-bottom: 20px;
  background: linear-gradient(135deg, rgba(13, 43, 116, 0.55), rgba(15, 31, 70, 0.95));
  border: 1px solid rgba(147, 215, 255, 0.22); border-radius: var(--radius-lg);
}
.account-gp-teaser-icon {
  width: 52px; height: 52px; border-radius: 16px; flex-shrink: 0;
  background: var(--grad-brand); padding: 11px;
  display: grid; place-items: center; box-shadow: 0 8px 24px rgba(44, 184, 255, 0.35);
}
.account-gp-teaser-icon img { width: 100%; height: 100%; object-fit: contain; }
.account-gp-teaser-body { flex: 1; min-width: 220px; }
.account-gp-teaser-body h3 { font-size: 17px; font-weight: 800; color: var(--text-0); margin-bottom: 6px; }
.account-gp-teaser-body p { font-size: 13px; color: var(--text-2); line-height: 1.5; margin: 0; }

.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.stat-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px;
  position: relative; overflow: hidden;
}
.stat-card .label {
  font-size: 12px; color: var(--text-2);
  text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600;
}
.stat-card .value {
  font-size: 26px; font-weight: 800; margin-top: 8px;
  color: var(--text-0); letter-spacing: -0.02em;
}
.stat-card .icon { position: absolute; right: 14px; top: 14px; font-size: 28px; opacity: 0.5; }

.balance-card {
  background: var(--grad-brand); border-radius: var(--radius-xl);
  padding: 28px; position: relative; overflow: hidden;
  isolation: isolate; color: white;
}
.balance-card .blob {
  position: absolute; z-index: -1; border-radius: 50%;
  filter: blur(60px); width: 200px; height: 200px;
  background: #74ddff; opacity: 0.5;
  right: -40px; top: -40px;
}
.balance-card .label { opacity: 0.9; font-size: 14px; }
.balance-card .amount { font-size: 40px; font-weight: 800; letter-spacing: -0.02em; }
.balance-card .actions { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.balance-card .actions .btn {
  background: rgba(0,0,0,0.25); color: white;
  backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,0.2);
}
.balance-card .actions .btn:hover { background: rgba(0,0,0,0.4); }

.order-list { display: flex; flex-direction: column; gap: 10px; }
.order-item {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px;
  display: grid; grid-template-columns: auto 1fr auto auto;
  gap: 16px; align-items: center;
}
.order-thumb {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--bg-3); display: grid; place-items: center; font-size: 24px;
}
.order-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}
.order-info .title { font-weight: 600; font-size: 14px; }
.order-info .meta { font-size: 12px; color: var(--text-2); margin-top: 2px; }
.order-status { font-size: 12px; padding: 4px 10px; border-radius: 999px; font-weight: 600; }
.order-status.completed { background: rgba(46, 204, 113, 0.15); color: var(--success); }
.order-status.pending { background: rgba(255, 193, 77, 0.15); color: var(--accent-2); }
.order-status.cancelled { background: rgba(255, 77, 109, 0.15); color: var(--danger); }
.order-price { font-weight: 700; }

.steam-calc { display: grid; grid-template-columns: 1fr 380px; gap: 24px; align-items: start; }
.amount-presets {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 10px; margin-bottom: 18px;
}
.amount-preset {
  padding: 14px; background: var(--bg-2);
  border: 1px solid var(--border); border-radius: 12px;
  text-align: center; cursor: pointer; transition: all .15s;
  font-weight: 700;
}
.amount-preset:hover { border-color: var(--brand); background: var(--bg-3); }
.amount-preset.active { background: var(--grad-brand); border-color: transparent; color: white; }
.amount-preset .sub { font-size: 11px; opacity: 0.8; font-weight: 500; display: block; margin-top: 2px; }

.summary {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px;
  position: sticky; top: calc(var(--header-h) + 16px);
}
.summary h3 { font-size: 16px; margin-bottom: 12px; }
.summary-row {
  display: flex; justify-content: space-between;
  padding: 8px 0; border-bottom: 1px dashed var(--border); font-size: 14px;
}
.summary-row.total { border-bottom: 0; padding-top: 16px; font-size: 18px; font-weight: 800; }
.summary-row .muted { color: var(--text-2); }

.cart-grid { display: grid; grid-template-columns: 1fr 380px; gap: 24px; align-items: start; }
.cart-list { display: flex; flex-direction: column; gap: 12px; }
.cart-item {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px;
  display: grid; grid-template-columns: 72px 1fr auto auto;
  gap: 16px; align-items: center;
}
.cart-thumb {
  width: 72px; height: 72px; border-radius: 12px;
  background: var(--bg-2); display: grid; place-items: center; font-size: 32px;
}
.cart-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}
.cart-info .title { font-weight: 600; }
.cart-info .meta { color: var(--text-2); font-size: 13px; margin-top: 2px; }
.qty {
  display: flex; align-items: center; gap: 4px;
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: 10px; padding: 4px;
}
.qty button {
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--bg-3); color: var(--text-0); font-weight: 700;
}
.qty button:hover { background: var(--brand); }
.qty span { min-width: 24px; text-align: center; font-weight: 700; }
.cart-remove {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--bg-2); color: var(--text-2);
  display: grid; place-items: center; transition: all .15s;
}
.cart-remove:hover { background: rgba(255, 77, 109, 0.15); color: var(--danger); }

.empty-state {
  text-align: center; padding: 80px 24px;
  background: var(--bg-card); border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
}
.empty-state .emoji { font-size: 64px; margin-bottom: 12px; }
.ui-empty-icon {
  width: 88px; height: 88px; margin: 0 auto 16px; border-radius: 22px;
  background: var(--bg-2); border: 1px solid var(--border);
  display: grid; place-items: center; padding: 18px;
}
.ui-empty-icon img { width: 100%; height: 100%; object-fit: contain; opacity: 0.9; }
.empty-state h2 { font-size: 22px; font-weight: 700; margin-bottom: 6px; }
.empty-state p { color: var(--text-2); margin-bottom: 20px; }

.product-page { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: start; }
.product-page .product-visual {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 40px;
  aspect-ratio: 1 / 1; display: grid; place-items: center;
  position: relative; overflow: hidden; isolation: isolate;
}
.product-page .product-visual .blob {
  position: absolute; z-index: -1; border-radius: 50%;
  filter: blur(80px); width: 280px; height: 280px; opacity: 0.4;
}
.product-image-hero {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
}
.product-image-logo-hero {
  object-fit: contain;
  padding: 72px;
  background:
    radial-gradient(circle at 50% 35%, rgba(124, 92, 255, 0.24), transparent 55%),
    linear-gradient(135deg, rgba(124, 92, 255, 0.08), rgba(255, 138, 60, 0.08));
}
.product-page .product-visual .big-emoji { font-size: 160px; filter: drop-shadow(0 6px 32px rgba(0,0,0,0.5)); }

.product-details h1 { font-size: 32px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.product-details .platform {
  color: var(--text-2); font-size: 14px; margin-top: 6px;
  text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600;
}
.product-details .price-block { display: flex; align-items: baseline; gap: 12px; margin: 20px 0; }
.product-details .price-block .price { font-size: 36px; font-weight: 800; color: var(--text-0); letter-spacing: -0.02em; }
.product-details .price-block .old { font-size: 18px; color: var(--text-3); text-decoration: line-through; }
.product-details .cashback {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255, 138, 60, 0.15); color: var(--accent);
  border-radius: 8px; padding: 6px 10px;
  font-size: 13px; font-weight: 700; margin-bottom: 20px;
}
.product-description {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px;
  font-size: 14px; color: var(--text-1);
  line-height: 1.7; margin-top: 24px;
}
.product-description h3 { color: var(--text-0); margin-bottom: 10px; font-size: 16px; }
.product-features { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.product-features li { display: flex; gap: 10px; align-items: flex-start; color: var(--text-2); }
.product-features li::before { content: '✓'; color: var(--success); font-weight: 800; }

.wheel-wrap {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 32px; align-items: center;
  max-width: 960px; margin: 0 auto;
}
.wheel { width: 100%; max-width: 380px; aspect-ratio: 1 / 1; position: relative; margin: 0 auto; }
.wheel-inner {
  width: 100%; height: 100%; border-radius: 50%;
  background: conic-gradient(
    #7c5cff 0deg 45deg,
    #ff8a3c 45deg 90deg,
    #ec4899 90deg 135deg,
    #06b6d4 135deg 180deg,
    #b86eff 180deg 225deg,
    #ffc14d 225deg 270deg,
    #f43f5e 270deg 315deg,
    #10b981 315deg 360deg
  );
  border: 8px solid var(--bg-card);
  box-shadow: 0 0 0 4px var(--brand), var(--shadow-lg);
  transition: transform 4s cubic-bezier(0.15, 0.65, 0.25, 1);
  position: relative;
}
.wheel-inner::after {
  content: 'P'; position: absolute;
  width: 80px; height: 80px; border-radius: 50%;
  background: var(--bg-card); border: 4px solid var(--brand);
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  display: grid; place-items: center;
  font-weight: 900; font-size: 28px; color: var(--brand-2);
}
.wheel-arrow {
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  border: 18px solid transparent; border-top-color: var(--brand);
  filter: drop-shadow(0 4px 8px rgba(124, 92, 255, 0.5)); z-index: 2;
}

.text-muted { color: var(--text-2); }
.text-accent { color: var(--accent); }
.text-brand { color: var(--brand-2); }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; }
.mt-2 { margin-top: 8px; } .mt-4 { margin-top: 16px; } .mt-6 { margin-top: 24px; }
.mb-2 { margin-bottom: 8px; } .mb-4 { margin-bottom: 16px; } .mb-6 { margin-bottom: 24px; }
.hidden { display: none !important; }

@media (max-width: 1100px) {
  .promo-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 200px 200px 200px; }
  .promo-card.large { grid-column: span 2; grid-row: span 1; min-height: 240px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .cabinet { grid-template-columns: 1fr; }
  .cabinet-sidebar { position: static; }
  .steam-calc, .cart-grid { grid-template-columns: 1fr; }
  .summary { position: static; }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-visual-side { display: none; }
  .product-page { grid-template-columns: 1fr; }
  .wheel-wrap { grid-template-columns: 1fr; }
}

@media (max-width: 1400px) {
  :root {
    --header-home-h: 276px;
    --header-offset: 276px;
  }
  .header-home-categories {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-height: 154px;
  }
}

@media (max-width: 1200px) {
  :root {
    --header-home-h: 276px;
    --header-offset: 276px;
  }
  .header-home-categories {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-height: 154px;
  }
}

@media (max-width: 900px) {
  :root {
    --header-home-h: 228px;
    --header-offset: 228px;
    --header-gap: 10px;
  }
  .header-home-categories {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: 160px;
  }
}

@media (max-width: 768px) {
  .container { padding: 0 16px; }
  .nav { display: none; }
  .header-search { display: none; }
  .header-home-search { display: block; }
  .menu-toggle { display: grid; }
  :root {
    --header-home-h: 204px;
    --header-offset: 204px;
    --header-gap: 8px;
  }
  .header-home-categories {
    display: flex;
    overflow-x: auto;
    gap: 8px;
    max-height: none;
    padding-bottom: 4px;
    scrollbar-width: none;
  }
  .header-home-categories::-webkit-scrollbar { display: none; }
  .cat-chip { min-width: 200px; flex-shrink: 0; }
  .promo-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
  .promo-card.large { grid-column: span 1; grid-row: span 1; }
  .promo-card.large .promo-title { font-size: 28px; }
  .promo-illustration { width: 76px; height: 76px; right: 14px; bottom: 14px; }
  .promo-card.large .promo-illustration { width: 108px; height: 108px; right: 14px; bottom: 14px; }
  .promo-card.large .promo-sub { max-width: 58%; }
  .cta-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .page-hero { padding: 28px; grid-template-columns: 1fr; }
  .page-hero h1 { font-size: 28px; }
  .page-hero .visual { display: none; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .order-item { grid-template-columns: auto 1fr; gap: 12px; }
  .order-item .order-status, .order-item .order-price { grid-column: 2; }
  .cart-item { grid-template-columns: 60px 1fr; row-gap: 8px; }
  .cart-item .cart-thumb { width: 60px; height: 60px; font-size: 26px; }
  .cart-item .qty { grid-column: 1 / -1; justify-self: start; }
  .modal { padding: 24px; }
  .auth-form-side { padding: 28px; }
  .product-details h1 { font-size: 24px; }
  .product-details .price-block .price { font-size: 28px; }
}

.marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}
.marquee-track {
  display: flex; gap: 48px; width: max-content;
  animation: marquee 30s linear infinite;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.marquee-track .logo-item {
  font-size: 28px; font-weight: 800;
  color: var(--text-3);
  display: flex; align-items: center; gap: 10px;
}

/* ============================================================
   Telegram Mini App tweaks (applied only when running inside Telegram)
   ============================================================ */
body.in-telegram {
  padding-bottom: env(safe-area-inset-bottom);
  padding-top: env(safe-area-inset-top);
}
body.in-telegram #site-header .nav { display: none; }
body.in-telegram .footer { display: none; }
body.in-telegram .container.page { padding-top: 12px; }
body.in-telegram .login-cta-mobile { display: none; }
