/* ============================================================
   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--home:not(.header--compact) .header-shell {
  overflow: visible;
}
.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;
  pointer-events: none;
  transition:
    max-height 0.4s var(--header-ease),
    opacity 0.32s ease,
    transform 0.4s var(--header-ease);
}
.header-top a,
.header-top button,
.header-top .icon-btn,
.header-top .notif-wrap,
.header-top .header-actions {
  pointer-events: auto;
}
.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-top: 0;
  padding-bottom: 12px;
  flex: 0 0 auto;
  overflow: visible;
  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-block {
  position: relative;
  z-index: 12;
  max-height: 72px;
  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-home-categories-actions__promo {
  position: absolute;
  left: 0;
  right: 0;
  top: -34px;
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  column-gap: 10px;
  align-items: stretch;
  pointer-events: none;
}
.header-home-categories-actions__promo > * {
  pointer-events: auto;
  position: relative;
  z-index: 1;
}
.header-home-categories-chips {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  column-gap: 10px;
  min-height: 0;
}
.header-cat-info-badge {
  grid-column: 3;
}
.header-cat-action-btn {
  grid-column: 4;
}
.header-cat-info-badge,
.header-cat-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 28px;
  padding: 5px 8px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.header-cat-info-badge {
  background: rgba(44, 184, 255, 0.12);
  border: 1px solid rgba(44, 184, 255, 0.28);
  color: var(--text-1);
  cursor: default;
}
.header-cat-action-btn {
  background: var(--grad-brand);
  border: 1px solid transparent;
  color: #fff !important;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s, filter 0.2s;
}
.header-cat-action-btn:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  color: #fff !important;
}
.header--compact .header-home-categories-block {
  max-height: 0;
  opacity: 0;
  transform: translateY(-10px);
  margin-top: 0;
  pointer-events: none;
  overflow: hidden;
}
.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;
}

body.page-home .header-home-search {
  display: none !important;
}
body.page-home .header--compact .header-home-panel {
  max-height: 0;
  opacity: 0;
  padding: 0;
  margin: 0;
  overflow: hidden;
  pointer-events: none;
}

.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; }

/* —— Карусель над моментальной покупкой —— */
.home-page > #home-promo-strip {
  width: 100%;
  margin-bottom: 18px;
}
.section-home-hero {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.home-promo-strip {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}
.home-promo-strip__top {
  padding-top: 4px;
}
.home-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 18px;
  background: #1a1d28;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.home-search:focus-within {
  border-color: rgba(124, 92, 255, 0.45);
  box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.12);
}
.home-search__icon {
  flex-shrink: 0;
  color: var(--text-3);
  display: grid;
  place-items: center;
}
.home-search__input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--text-0);
  font-size: 15px;
  outline: none;
}
.home-search__input::placeholder {
  color: var(--text-3);
}

.promo-carousel-shell {
  position: relative;
  width: 100%;
  padding: 0;
}
.promo-carousel-viewport {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 4px 0 10px;
}
.promo-carousel-viewport::-webkit-scrollbar {
  display: none;
}
.promo-carousel-track {
  display: flex;
  gap: 12px;
  width: max-content;
  padding: 0 2px;
}
.promo-carousel-nav {
  position: absolute;
  top: 50%;
  z-index: 5;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(12, 14, 20, 0.82);
  backdrop-filter: blur(8px);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  pointer-events: auto;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.promo-carousel-nav:hover {
  background: rgba(28, 32, 44, 0.94);
  border-color: rgba(124, 92, 255, 0.5);
}
.promo-carousel-nav:active {
  transform: translateY(-50%) scale(0.94);
}
.promo-carousel-nav--prev { left: 14px; }
.promo-carousel-nav--next { right: 14px; }

.promo-banner {
  position: relative;
  flex: 0 0 auto;
  scroll-snap-align: start;
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}
.promo-banner--slide {
  display: block;
  width: clamp(260px, calc((100vw - 120px) / 3.15), 340px);
  aspect-ratio: 5 / 2;
  padding: 0;
  background: #0b1220;
}
.promo-banner--slide:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}
.promo-banner__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

@media (max-width: 900px) {
  .promo-banner--slide {
    width: clamp(240px, calc((100vw - 96px) / 2.1), 300px);
  }
}
@media (max-width: 640px) {
  .promo-carousel-nav {
    width: 28px;
    height: 28px;
  }
  .promo-carousel-nav--prev { left: 8px; }
  .promo-carousel-nav--next { right: 8px; }
  .promo-banner--slide {
    width: min(calc(100vw - 88px), 300px);
  }
}

/* —— Моментальная покупка —— */
.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); }

.quick-purchase .qp-steam-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.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; }

/* —— Главная: каталог игр и сервисов —— */
.home-catalog-section .section-header {
  margin-bottom: 18px;
}
.home-catalog-panel {
  background: linear-gradient(165deg, rgba(22, 26, 38, 0.95) 0%, rgba(14, 16, 24, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 18px 18px 20px;
}
.home-game-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 14px;
  margin-bottom: 4px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.home-game-tabs::-webkit-scrollbar { display: none; }
.home-game-tabs__btn {
  flex: 0 0 auto;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-2);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}
.home-game-tabs__btn:hover {
  color: var(--text-0);
  border-color: rgba(124, 92, 255, 0.35);
  background: rgba(124, 92, 255, 0.08);
}
.home-game-tabs__btn.is-active,
.home-game-tabs__btn:active {
  background: var(--grad-brand);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 14px rgba(124, 92, 255, 0.35);
}
.home-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 12px;
}
.home-product-grid--services {
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}
.home-catalog-loading,
.home-catalog-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 32px 16px;
  color: var(--text-2);
  font-size: 14px;
}
.home-catalog-empty h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-0);
  margin-bottom: 6px;
}
.home-offer-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 168px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(26, 29, 40, 0.85);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.home-offer-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(124, 92, 255, 0.12), transparent 70%);
  opacity: 0;
  transition: opacity 0.25s;
  pointer-events: none;
}
.home-offer-card:hover {
  transform: translateY(-4px);
  border-color: rgba(94, 212, 255, 0.35);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  background: rgba(32, 36, 50, 0.95);
}
.home-offer-card:hover::before { opacity: 1; }
.home-offer-card__media {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(124, 92, 255, 0.18), rgba(44, 184, 255, 0.1));
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  flex-shrink: 0;
}
.home-offer-card__media .brand-logo,
.home-offer-card__media img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}
.home-offer-card__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 0;
}
.home-offer-card__tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.home-offer-card__title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-0);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 38px;
}
.home-offer-card__price {
  margin-top: auto;
  padding-top: 8px;
  font-size: 17px;
  font-weight: 800;
  color: #5ed4ff;
  letter-spacing: -0.02em;
}
.home-offer-card__cta {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-2);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.2s, transform 0.2s, background 0.2s, color 0.2s;
}
.home-offer-card:hover .home-offer-card__cta {
  opacity: 1;
  transform: translateX(0);
  background: var(--grad-brand);
  border-color: transparent;
  color: #fff;
}
.home-offer-card--service .home-offer-card__media {
  background: linear-gradient(145deg, rgba(44, 184, 255, 0.14), rgba(124, 92, 255, 0.1));
}

@media (max-width: 640px) {
  .home-catalog-panel { padding: 14px; }
  .home-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .home-offer-card {
    min-height: 150px;
    padding: 12px;
  }
  .home-offer-card__title { font-size: 13px; min-height: 34px; }
  .home-offer-card__price { font-size: 15px; }
}

.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-main {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}
.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;
  transition: border-color .2s, background .2s, color .2s, box-shadow .2s, transform .2s;
}
.catalog-chip-btn:hover:not(.active) {
  color: var(--text-0);
  border-color: rgba(147, 215, 255, 0.28);
  background: rgba(44, 184, 255, 0.06);
}
.catalog-chip-btn.active {
  border-color: transparent;
  color: #fff;
  background: var(--grad-brand);
  box-shadow: 0 4px 14px rgba(44, 184, 255, 0.28);
}

.catalog-segmented {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 6px;
  margin-top: 14px;
  border-radius: 18px;
  border: 1px solid rgba(147, 215, 255, 0.14);
  background:
    linear-gradient(180deg, rgba(18, 32, 68, 0.92) 0%, rgba(10, 18, 40, 0.96) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 10px 28px rgba(0, 0, 0, 0.22);
}
.catalog-segmented .catalog-chip-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-2);
  padding: 10px 16px;
  border-radius: 13px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1;
  white-space: nowrap;
}
.catalog-segmented .catalog-chip-btn::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(147, 215, 255, 0.35);
  box-shadow: 0 0 10px rgba(44, 184, 255, 0.35);
  flex-shrink: 0;
  transition: background .2s, box-shadow .2s, transform .2s;
}
.catalog-segmented .catalog-chip-btn[data-cat="gaming"]::before { background: rgba(124, 92, 255, 0.55); }
.catalog-segmented .catalog-chip-btn[data-cat="subscriptions"]::before { background: rgba(255, 138, 60, 0.65); }
.catalog-segmented .catalog-chip-btn[data-cat="ai"]::before { background: rgba(52, 211, 153, 0.65); }
.catalog-segmented .catalog-chip-btn:hover:not(.active) {
  color: var(--text-0);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.06);
  transform: translateY(-1px);
}
.catalog-segmented .catalog-chip-btn.active {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.12);
  background: linear-gradient(135deg, #38c8ff 0%, #1a6bff 52%, #7c5cff 100%);
  box-shadow:
    0 6px 20px rgba(44, 184, 255, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
}
.catalog-segmented .catalog-chip-btn.active::before {
  background: #fff;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.65);
  transform: scale(1.15);
}
.catalog-segmented--sidebar {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  margin-top: 0;
  padding: 5px;
  gap: 4px;
}
.catalog-segmented--sidebar .catalog-chip-btn {
  width: 100%;
  justify-content: flex-start;
  padding: 11px 14px;
}
@media (max-width: 640px) {
  .catalog-segmented:not(.catalog-segmented--sidebar) {
    display: flex;
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .catalog-segmented:not(.catalog-segmented--sidebar)::-webkit-scrollbar { display: none; }
  .catalog-segmented:not(.catalog-segmented--sidebar) .catalog-chip-btn { flex-shrink: 0; }
}
.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: 0; }
.catalog-toolbar .catalog-segmented { margin-top: 14px; margin-bottom: 2px; }
.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)); }

.page-hero--stars {
  position: relative;
  padding: 40px min(440px, 46vw) 0 40px;
  min-height: 240px;
  overflow: hidden;
  align-items: center;
}
.page-hero-stars-copy {
  position: relative;
  z-index: 1;
  align-self: center;
}
.page-hero-stars-visual {
  position: absolute;
  right: 8px;
  bottom: 0;
  width: min(420px, 48vw);
  height: auto;
  margin: 0;
  padding: 0;
  line-height: 0;
  z-index: 1;
  transform: translateX(-36px);
  pointer-events: none;
}
.page-hero-stars-visual img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 280px;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 16px 42px rgba(0, 0, 0, 0.45));
}
.page-hero--stars .blob {
  opacity: 0.45;
  right: 48px;
  bottom: -60px;
  top: auto;
}

.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%);
  z-index: 1;
  color: var(--text-2);
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  pointer-events: none;
}
.input-prefix .input { padding-left: 38px; }

.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-block,
  .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; }

.cta-eyebrow--with-icon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.cta-eyebrow-icon {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: rgba(255, 214, 80, 0.22);
  color: #ffe08a;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 0 16px rgba(255, 214, 80, 0.25);
}
.cta-eyebrow-icon svg {
  width: 14px;
  height: 14px;
  display: block;
}

.steam-benefits {
  list-style: none;
  margin: 0;
  padding: 16px;
  border-radius: 12px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.steam-benefit {
  display: flex;
  align-items: center;
  gap: 12px;
}
.steam-benefit-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.steam-benefit-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}
.steam-benefit-icon--sky {
  background: linear-gradient(135deg, rgba(44, 184, 255, 0.2), rgba(26, 92, 255, 0.12));
  color: #5ed4ff;
  box-shadow: 0 4px 14px rgba(44, 184, 255, 0.15);
}
.steam-benefit-icon--violet {
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.22), rgba(88, 52, 200, 0.12));
  color: #b9a3ff;
  box-shadow: 0 4px 14px rgba(124, 92, 255, 0.15);
}
.steam-benefit-icon--green {
  background: linear-gradient(135deg, rgba(52, 211, 153, 0.2), rgba(16, 120, 90, 0.12));
  color: #5eead4;
  box-shadow: 0 4px 14px rgba(52, 211, 153, 0.12);
}
.steam-benefit-text {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.5;
}
.steam-benefit-text strong {
  color: var(--text-0);
  font-weight: 700;
}

.steam-region-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(44, 184, 255, 0.22);
  background: linear-gradient(135deg, rgba(44, 184, 255, 0.1), rgba(124, 92, 255, 0.08));
  font-size: 13px;
  color: var(--text-1);
  line-height: 1.5;
}
.steam-region-note-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: rgba(44, 184, 255, 0.15);
  color: #5ed4ff;
}
.steam-region-note-icon svg {
  display: block;
}
.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;
}

/* Sellers landing */
body.page-sellers {
  padding-top: calc(var(--header-offset, var(--header-home-h)) + var(--header-gap));
}
.sellers-page {
  padding-bottom: 64px;
  overflow-x: hidden;
}

.sellers-hero {
  position: relative;
  padding: clamp(32px, 5vw, 56px) 0 clamp(72px, 8vw, 96px);
  color: #fff;
}
.sellers-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 10% 20%, rgba(44, 184, 255, 0.35), transparent 55%),
    radial-gradient(ellipse 60% 50% at 90% 10%, rgba(29, 111, 255, 0.4), transparent 50%),
    linear-gradient(155deg, #061428 0%, #0c2452 42%, #123d8a 72%, #1a5cff 100%);
  z-index: 0;
}
.sellers-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.6;
}
.sellers-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
}
.sellers-eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.95);
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.sellers-hero h1 {
  margin-top: 18px;
  font-size: clamp(30px, 4.5vw, 48px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.08;
  max-width: 12em;
}
.sellers-hero-accent {
  background: linear-gradient(90deg, #fff 0%, #a8e8ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.sellers-hero-lead {
  margin-top: 16px;
  max-width: 520px;
  font-size: clamp(15px, 1.8vw, 18px);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.86);
}
.sellers-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.sellers-btn-primary {
  box-shadow: var(--shadow-brand);
}
.sellers-btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
}
.sellers-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.35);
}
.sellers-hero-note {
  margin-top: 16px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  max-width: 480px;
  line-height: 1.45;
}

.sellers-hero-card {
  position: relative;
}
.sellers-hero-card-glow {
  position: absolute;
  inset: -20% -10%;
  background: radial-gradient(circle, rgba(44, 184, 255, 0.35) 0%, transparent 65%);
  filter: blur(24px);
  pointer-events: none;
}
.sellers-hero-card-inner {
  position: relative;
  padding: 20px;
  border-radius: var(--radius-lg);
  background: rgba(8, 18, 42, 0.55);
  border: 1px solid rgba(147, 215, 255, 0.22);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-lg);
}
.sellers-hero-card-row {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px 12px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.sellers-hero-card-row + .sellers-hero-card-row {
  margin-top: 10px;
}
.sellers-hero-card-row--highlight {
  background: rgba(44, 184, 255, 0.12);
  border-color: rgba(44, 184, 255, 0.28);
}
.sellers-hero-card-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 18px;
}
.sellers-hero-card-row strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
}
.sellers-hero-card-row span:not(.sellers-hero-card-badge):not(.sellers-hero-card-icon) {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
}
.sellers-hero-card-badge {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.sellers-hero-card-badge--ok {
  background: var(--success);
  color: #042a1f;
}

.sellers-stats {
  position: relative;
  margin-top: -48px;
  z-index: 2;
  padding-bottom: 8px;
}
.sellers-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.sellers-stat {
  padding: 20px 18px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.2s, transform 0.2s;
}
.sellers-stat:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}
.sellers-stat-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(44, 184, 255, 0.12);
  color: var(--brand-2);
}
.sellers-stat strong {
  font-size: clamp(22px, 2.5vw, 28px);
  font-weight: 800;
  color: var(--text-0);
  letter-spacing: -0.02em;
}
.sellers-stat span:last-child {
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.35;
}

.sellers-section {
  padding: clamp(48px, 6vw, 72px) 0 0;
}
.sellers-section--muted {
  background: linear-gradient(180deg, transparent 0%, rgba(15, 31, 70, 0.45) 50%, transparent 100%);
}
.sellers-section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 36px;
}
.sellers-section-head h2 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-0);
}
.sellers-section-sub {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-2);
}

.sellers-benefits {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.sellers-benefit {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.sellers-benefit:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-strong);
  transform: translateY(-2px);
}
.sellers-benefit-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 14px;
}
.sellers-benefit-icon--cyan { background: rgba(44, 184, 255, 0.15); color: var(--brand-2); }
.sellers-benefit-icon--blue { background: rgba(29, 111, 255, 0.2); color: #8ec5ff; }
.sellers-benefit-icon--violet { background: rgba(100, 120, 255, 0.18); color: #b8c4ff; }
.sellers-benefit-icon--green { background: rgba(56, 217, 169, 0.15); color: var(--success); }
.sellers-benefit h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-0);
  margin-bottom: 8px;
}
.sellers-benefit p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-2);
}

.sellers-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  list-style: none;
  counter-reset: none;
}
.sellers-step {
  position: relative;
  padding: 22px 18px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
}
.sellers-step-num {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--brand);
  margin-bottom: 12px;
}
.sellers-step h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-0);
  margin-bottom: 8px;
  line-height: 1.25;
}
.sellers-step p {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-2);
}

.sellers-faq {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 800px;
  margin: 0 auto;
}
.sellers-faq-item {
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: border-color 0.2s;
}
.sellers-faq-item[open] {
  border-color: var(--border-strong);
}
.sellers-faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  cursor: pointer;
  font-weight: 700;
  font-size: 15px;
  color: var(--text-0);
  list-style: none;
}
.sellers-faq-item summary::-webkit-details-marker { display: none; }
.sellers-faq-chevron {
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--brand-2);
  border-bottom: 2px solid var(--brand-2);
  transform: rotate(45deg);
  flex-shrink: 0;
  transition: transform 0.2s;
}
.sellers-faq-item[open] .sellers-faq-chevron {
  transform: rotate(-135deg);
  margin-top: 4px;
}
.sellers-faq-item p {
  padding: 0 20px 18px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-2);
}
.sellers-faq-item a {
  color: var(--brand-2);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.sellers-final {
  padding: clamp(40px, 5vw, 64px) 0 0;
}
.sellers-final-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: clamp(28px, 4vw, 40px) clamp(24px, 4vw, 40px);
  border-radius: var(--radius-lg);
  background: var(--grad-brand);
  box-shadow: var(--shadow-brand);
  color: #fff;
}
.sellers-final-copy h2 {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.sellers-final-copy p {
  margin-top: 10px;
  max-width: 480px;
  font-size: 15px;
  line-height: 1.5;
  opacity: 0.92;
}
.sellers-final-card .btn {
  flex-shrink: 0;
  background: #fff;
  color: var(--accent);
  border: none;
  font-weight: 800;
}
.sellers-final-card .btn:hover {
  filter: brightness(0.96);
  transform: translateY(-1px);
}

/* Support FAB + chat */
.support-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 120;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  background: var(--grad-brand);
  color: #fff;
  box-shadow: 0 8px 28px rgba(44, 184, 255, 0.35);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.2s;
}
.support-fab:hover { transform: scale(1.06); }
.chat-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 20px;
  pointer-events: none;
}
.chat-modal.open { display: flex; pointer-events: auto; }
.chat-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}
.chat-modal-card {
  position: relative;
  width: min(420px, 100%);
  max-height: min(70vh, 560px);
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
}
.chat-modal-close {
  position: absolute;
  top: 8px;
  right: 10px;
  z-index: 2;
  border: none;
  background: transparent;
  color: var(--text-2);
  font-size: 24px;
  cursor: pointer;
}
.chat-panel { display: flex; flex-direction: column; gap: 0; min-height: 320px; }
.chat-panel-head {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.chat-panel-head h3 { font-size: 15px; margin: 0; }
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 360px;
}
.chat-msg { max-width: 92%; align-self: flex-start; }
.chat-msg.mine { align-self: flex-end; }
.chat-msg.system { align-self: center; max-width: 100%; opacity: 0.85; }
.chat-msg-meta { font-size: 10px; color: var(--text-3); margin-bottom: 4px; }
.chat-msg-body {
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  font-size: 13px;
  line-height: 1.45;
}
.chat-msg.mine .chat-msg-body {
  background: rgba(44, 184, 255, 0.15);
  border-color: rgba(44, 184, 255, 0.35);
}
.chat-msg.system .chat-msg-body { background: transparent; border-style: dashed; }
.chat-msg-img { max-width: 120px; border-radius: 8px; margin-top: 6px; display: block; }
.chat-compose {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--border);
}
.chat-compose .input { flex: 1; height: 42px; }
.mp-balance-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 12px 0 16px;
}
.mp-balance-grid strong { display: block; font-size: 22px; }
.mp-balance-grid span { font-size: 12px; color: var(--text-2); }
.mp-withdraw-form { display: flex; flex-wrap: wrap; gap: 8px; }
.mp-filter-row { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.mp-seller-card .product-thumb { position: relative; }

.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: 228px;
    --header-offset: 228px;
  }
  .header-home-categories-chips,
  .header-home-categories-actions__promo {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .header-cat-info-badge { grid-column: 3; }
  .header-cat-action-btn { grid-column: 4; }
  .sellers-stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1200px) {
  :root {
    --header-home-h: 240px;
    --header-offset: 240px;
  }
  .header-home-categories-chips,
  .header-home-categories-actions__promo {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .header-home-categories-actions__promo {
    top: -36px;
    display: flex;
    flex-direction: row;
    gap: 8px;
    grid-template-columns: none;
    left: 0;
    right: 0;
    width: 100%;
  }
  .header-cat-info-badge,
  .header-cat-action-btn {
    grid-column: auto;
    flex: 1 1 0;
  }
}

@media (max-width: 900px) {
  :root {
    --header-home-h: 228px;
    --header-offset: 228px;
    --header-gap: 10px;
  }
  .header-home-categories-chips,
  .header-home-categories-actions__promo {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .header-cat-info-badge { grid-column: 1; }
  .header-cat-action-btn { grid-column: 2; }
  .header-home-categories-block { max-height: none; }
  .sellers-hero-inner { grid-template-columns: 1fr; }
  .sellers-hero-card { max-width: 420px; margin: 0 auto; width: 100%; }
  .sellers-hero h1 { max-width: none; }
  .sellers-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sellers-benefits { grid-template-columns: 1fr; }
}

@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: 210px;
    --header-offset: 210px;
    --header-gap: 8px;
  }
  .header-home-categories-block {
    max-height: none;
    overflow: visible;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .header-home-categories-actions__promo {
    position: static;
    top: auto;
    display: flex;
    flex-direction: row;
    gap: 8px;
    width: 100%;
  }
  .header-cat-info-badge,
  .header-cat-action-btn {
    flex: 1 1 0;
    grid-column: auto;
  }
  .header-home-categories-chips {
    display: flex;
    overflow-x: auto;
    gap: 8px;
    padding-bottom: 4px;
    scrollbar-width: none;
  }
  .header-home-categories-chips::-webkit-scrollbar { display: none; }
  .header-home-categories-chips > .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:not(.page-hero-stars-visual) { display: none; }
  .page-hero--stars {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 28px 20px 200px;
  }
  .page-hero-stars-visual {
    position: absolute;
    right: 50%;
    bottom: 0;
    width: 300px;
    transform: translateX(50%);
  }
  .page-hero-stars-visual img {
    max-height: 220px;
    object-position: center bottom;
  }
  .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; }
  .sellers-hero { padding-bottom: 64px; }
  .sellers-stats { margin-top: -32px; }
  .sellers-stats-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .sellers-stat { padding: 16px 14px; }
  .sellers-hero-actions { flex-direction: column; align-items: stretch; }
  .sellers-hero-actions .btn { width: 100%; justify-content: center; }
  .sellers-hero-card { max-width: none; }
  .sellers-steps { grid-template-columns: 1fr; }
  .sellers-final-card { flex-direction: column; text-align: center; }
  .sellers-final-card .btn { width: 100%; }
  .sellers-section-head { margin-bottom: 28px; }
}

@media (max-width: 480px) {
  .sellers-stats-grid { grid-template-columns: 1fr; }
  .sellers-hero h1 { font-size: 28px; }
}

.home-page > .home-marquee-strip {
  width: 100%;
  margin: 8px 0 28px;
  padding: 22px 0;
  background: transparent;
  border: 0;
}
.home-marquee-strip .marquee {
  width: 100%;
  max-width: none;
}

.marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, 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; }
