@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Montserrat:wght@500;600;700;800;900&display=swap');

:root {
  --bg: #070709;
  --bg-subtle: #0d0d0f;
  --panel: #111113;
  --panel-hover: #161619;
  
  /* Радиусы скругления (Увеличили для придания большей округлости) */
  --radius-xs: 6px;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-xl: 30px;
  
  --border: rgba(255, 255, 255, 0.05);
  --border-focus: rgba(255, 255, 255, 0.12);
  --text: #f4f4f5;
  --text-muted: #a1a1aa;
  --text-dark: #52525b;
  --site-accent: #c8ff3d;
  --site-accent-glow: rgba(200, 255, 61, 0.12);
  --site-accent-rgb: 200, 255, 61;
  --red: #f43f5e;
  --green: #10b981;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  overflow-x: hidden;
  font-size: 17.5px;
}

body {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Анимированная фоновая сетка */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.012) 1px, transparent 1px);
  background-size: 50px 50px;
  background-position: center center;
  z-index: -2;
  pointer-events: none;
  animation: gridMove 160s linear infinite;
}

@keyframes gridMove {
  from { background-position: 0 0; }
  to { background-position: 0 5000px; }
}

.noise {
  position: fixed;
  inset: 0;
  opacity: 0.015;
  pointer-events: none;
  z-index: 9999;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.shell {
  width: min(1280px, calc(100% - 40px));
  margin: 0 auto;
}

/* Шапка */
.header {
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border);
  background: rgba(7, 7, 9, 0.8);
  backdrop-filter: blur(20px);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.4s;
  padding-block: 8px;
}
.header.is-scrolled {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(7, 7, 9, 0.92);
}

.header-shell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 100%;
}

.header-top-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
}

.header-top-row .server-pill {
  justify-self: start;
}

.header-top-row .brand {
  justify-self: center;
}

.header-top-row .user-header-widget {
  justify-self: end;
}

@media (max-width: 768px) {
  .header {
    min-height: auto;
    padding-block: 16px;
  }
  .header-shell {
    gap: 12px;
  }
  .header-top-row {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 12px;
    width: 100%;
  }
  .header-top-row .brand {
    width: 100%;
    justify-content: center;
    order: 1;
    justify-self: center;
  }
  .header-top-row .server-pill {
    order: 2;
    justify-self: center;
  }
  .header-top-row .user-header-widget {
    order: 3;
    justify-self: center;
  }
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 15px;
}
.brand-mark {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--site-accent);
  color: var(--bg);
  font-weight: 800;
  font-size: 14px;
  box-shadow: 0 0 20px var(--site-accent-glow);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.brand:hover .brand-mark {
  transform: scale(1.08) rotate(5deg);
}
.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-sm);
}
.brand span {
  display: flex;
  flex-direction: column;
}
.brand b {
  letter-spacing: -0.5px;
}
.brand small {
  font-size: 8px;
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-top: 2px;
}

.nav {
  display: flex;
  gap: 16px;
}
.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 600;
  position: relative;
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  transition: color 0.3s, background-color 0.3s;
}
.nav a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--site-accent);
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1), left 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 2px;
}
.nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
}
.nav a:hover::after {
  width: 16px;
  left: calc(50% - 8px);
}
.nav a.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}
.nav a.active::after {
  width: 24px;
  left: calc(50% - 12px);
}

.user-header-widget {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-widget-btn {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  color: var(--text);
  height: 40px;
  padding: 0 18px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.user-widget-btn:hover {
  border-color: var(--site-accent);
  background: var(--panel-hover);
  box-shadow: 0 0 15px rgba(var(--site-accent-rgb), 0.08);
}

.player-profile-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 4px 14px 4px 6px;
  text-decoration: none;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  height: 40px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.player-profile-pill:hover {
  border-color: var(--site-accent);
  box-shadow: 0 0 15px var(--site-accent-glow);
  transform: translateY(-1px);
}
.player-avatar-img {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-xs);
  background: #27272a;
}
.player-profile-pill span {
  display: flex;
  flex-direction: column;
}
.player-profile-pill .player-name {
  color: var(--text);
  font-weight: 600;
}
.player-profile-pill .player-balance {
  font-size: 10px;
  color: var(--site-accent);
}

.logout-icon-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.2s;
}
.logout-icon-btn:hover {
  color: var(--red);
  border-color: rgba(244, 63, 94, 0.2);
  background: rgba(244, 63, 94, 0.04);
}

.server-pill {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  height: 40px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.server-pill:hover {
  border-color: var(--site-accent);
  background: rgba(255, 255, 255, 0.01);
}
.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--site-accent);
  box-shadow: 0 0 10px var(--site-accent);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(var(--site-accent-rgb), 0.5); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(var(--site-accent-rgb), 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(var(--site-accent-rgb), 0); }
}

.server-pill span {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
}
.server-pill strong {
  font-size: 11px;
  font-weight: 700;
  color: var(--text);
}

/* Hero */
.hero {
  padding: 100px 0 70px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute;
  top: 15%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, var(--site-accent-glow), transparent 70%);
  z-index: -1;
  pointer-events: none;
  animation: glowFloat 8s ease-in-out infinite alternate;
}

@keyframes glowFloat {
  0% { transform: translate(-50%, -50%) scale(0.9) rotate(0deg); opacity: 0.8; }
  100% { transform: translate(-50%, -50%) scale(1.1) rotate(15deg); opacity: 1; }
}

.hero-copy {
  max-width: 820px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--site-accent);
  text-transform: uppercase;
  margin-bottom: 20px;
}
.eyebrow span {
  width: 16px;
  height: 2px;
  background: var(--site-accent);
}
.hero h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(34px, 6vw, 68px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -2px;
  margin-bottom: 24px;
  color: var(--text);
}
.hero h1 span.hero-pill {
  color: var(--site-accent);
  text-shadow: 0 0 30px var(--site-accent-glow);
}
.hero p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 36px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
}

/* Кнопки */
.button {
  height: 48px;
  padding: 0 24px;
  border-radius: var(--radius-md);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}
.button.primary {
  background: var(--site-accent);
  color: var(--bg);
  border: none;
  box-shadow: 0 4px 25px var(--site-accent-glow);
}
.button.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(var(--site-accent-rgb), 0.25);
  filter: brightness(1.05);
}
.button.primary:active {
  transform: translateY(0);
}
.button.ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}
.button.ghost:hover {
  border-color: var(--border-focus);
  background: rgba(255, 255, 255, 0.03);
  transform: translateY(-1px);
}

.trust-row {
  display: flex;
  gap: 28px;
  color: var(--text-dark);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-top: 48px;
}

/* Переключения страниц */
#store-page, #dashboard-page {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.page-hidden {
  opacity: 0 !important;
  transform: translateY(12px) !important;
  pointer-events: none;
  position: absolute;
  width: 100%;
  visibility: hidden;
}

/* Каталог */
.catalog-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 36px;
  margin-top: 36px;
}

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

.catalog-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.filter-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.015) 0%, rgba(255, 255, 255, 0.002) 100%);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.filter-panel:hover {
  border-color: rgba(var(--site-accent-rgb), 0.1);
  box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.35), 0 0 20px rgba(var(--site-accent-rgb), 0.01);
}

.filter-title {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  padding-bottom: 12px;
}

.filter-title span {
  color: var(--site-accent);
  text-shadow: 0 0 10px var(--site-accent-glow);
  font-size: 12px;
}

.store-categories {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.category-chip {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  height: 48px;
  padding: 0 16px;
  border-radius: var(--radius-md);
  font-size: 14.5px;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  overflow: hidden;
}

.category-chip .chip-icon {
  font-size: 15px;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.3s;
  display: inline-block;
}

.category-chip .chip-text {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.category-chip:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.03);
}

.category-chip:hover .chip-icon {
  transform: scale(1.2) rotate(4deg);
}

.category-chip:hover .chip-text {
  transform: translateX(4px);
}

.category-chip.active {
  color: var(--text);
  background: linear-gradient(90deg, rgba(var(--site-accent-rgb), 0.08) 0%, rgba(var(--site-accent-rgb), 0.01) 100%);
  border: 1px solid rgba(var(--site-accent-rgb), 0.15);
  border-left: 3px solid var(--site-accent);
  font-weight: 600;
  box-shadow: 0 4px 20px rgba(var(--site-accent-rgb), 0.04);
}

.category-chip.active .chip-icon {
  color: var(--site-accent);
  text-shadow: 0 0 10px var(--site-accent-glow);
  transform: scale(1.1);
}

.catalog-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Баннер скидок */
.sale-banner {
  background: rgba(200, 255, 61, 0.02);
  border: 1px solid rgba(200, 255, 61, 0.1);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.sale-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--site-accent);
  color: var(--bg);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 16px;
  box-shadow: 0 0 10px var(--site-accent-glow);
}
.sale-banner span {
  font-size: 9px;
  font-weight: 800;
  color: var(--site-accent);
  letter-spacing: 1px;
}
.sale-banner strong {
  display: block;
  font-size: 14px;
  color: var(--text);
  margin-top: 2px;
}

/* Сетка продуктов */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

/* Карточки скругленные */
.product-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.015) 0%, rgba(255, 255, 255, 0.005) 100%);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-lg);
  overflow: hidden;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  position: relative;
}
.product-card:hover {
  transform: translateY(-6px) scale(1.015);
  border-color: rgba(var(--site-accent-rgb), 0.15);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(var(--site-accent-rgb), 0.02);
}

.product-card::before, .bento-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(300px circle at var(--mouse-x, 0) var(--mouse-y, 0), rgba(var(--site-accent-rgb), 0.08), transparent 45%);
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.product-card:hover::before, .bento-card:hover::before {
  opacity: 1;
}

.product-top {
  height: 160px;
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at center, rgba(var(--site-accent-rgb), 0.03), transparent 70%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}
.product-image {
  max-height: 115px;
  object-fit: contain;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), filter 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.product-card:hover .product-image {
  transform: translateY(-8px) scale(1.06) rotate(1.5deg);
  filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.5));
}
.product-icon {
  font-family: 'Montserrat', sans-serif;
  font-size: 36px;
  font-weight: 800;
  color: var(--accent, var(--text));
  opacity: 0.85;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.product-card:hover .product-icon {
  transform: translateY(-8px) scale(1.15) rotate(3deg);
}

.sale-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(244, 63, 94, 0.08);
  border: 1px solid rgba(244, 63, 94, 0.25);
  color: #ff4b72;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  z-index: 10;
  box-shadow: 0 0 15px rgba(244, 63, 94, 0.15);
}
.product-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 16px;
  position: relative;
  z-index: 2;
}
.product-body h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 16.5px;
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: -0.5px;
  transition: color 0.3s;
}
.product-summary {
  margin: -6px 0 0;
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.45;
}
.product-card:hover .product-body h3 {
  color: #fff;
}
.compact-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}
.compact-price {
  display: flex;
  flex-direction: column;
}
.compact-price del {
  font-size: 11px;
  color: var(--text-dark);
}
.compact-price strong {
  font-size: 17px;
  font-weight: 700;
  color: var(--site-accent);
}
.compact-price small {
  font-size: 9px;
  color: var(--text-dark);
  margin-top: 1px;
}
.compact-buy {
  width: 42px;
  height: 42px;
  min-width: 42px;
  line-height: 1;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  font-size: 18px;
  cursor: pointer;
  display: grid;
  place-items: center;
  align-self: center;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.product-card:hover .compact-buy {
  border-color: rgba(var(--site-accent-rgb), 0.3);
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}
.compact-buy:hover {
  background: var(--site-accent) !important;
  color: var(--bg) !important;
  border-color: var(--site-accent) !important;
  transform: scale(1.1) rotate(90deg);
  box-shadow: 0 0 15px var(--site-accent-glow);
}

/* Perks */
.perks {
  padding: 80px 0;
  border-top: 1px solid var(--border);
}
.perk-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.perk-grid article {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  position: relative;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.perk-grid article:hover {
  transform: translateY(-2px);
  border-color: var(--border-focus);
}
.perk-grid article span {
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 10px;
  font-weight: 800;
  color: var(--text-dark);
}
.perk-icon {
  font-size: 24px;
  margin-bottom: 16px;
  transition: transform 0.3s;
}
.perk-grid article:hover .perk-icon {
  transform: scale(1.15) rotate(-5deg);
}
.perk-grid h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}
.perk-grid p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* FAQ */
.faq {
  padding: 80px 0;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 48px;
}
.faq-intro h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -1px;
}
.faq-intro p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
}
.accordion details {
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}
.accordion summary {
  list-style: none;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.accordion summary::-webkit-details-marker {
  display: none;
}
.accordion summary span {
  color: var(--site-accent);
  font-size: 18px;
  transition: transform 0.3s;
}
.accordion details[open] summary span {
  transform: rotate(45deg);
}
.accordion p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
  padding-top: 12px;
}

/* Подвал */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 32px;
  align-items: start;
}
.footer p {
  font-size: 11px;
  color: var(--text-dark);
  line-height: 1.6;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 12px;
  transition: color 0.2s;
}
.footer-links a:hover {
  color: var(--text);
}

.merchant-info span {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.45;
}
.footer small {
  color: var(--text-dark);
  font-size: 11px;
}

/* Модалки */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 1000;
}
.modal.open {
  display: grid;
  place-items: center;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  animation: fadeIn 0.2s ease-out;
}
.modal-card {
  position: relative;
  width: min(460px, calc(100% - 32px));
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  z-index: 10;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.6);
  max-height: 90vh;
  overflow-y: auto;
  animation: scaleIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes scaleIn {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 24px;
  cursor: pointer;
  transition: color 0.15s;
}
.modal-close:hover {
  color: var(--text);
}
.modal-tag {
  font-size: 9px;
  font-weight: 800;
  color: var(--site-accent);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.modal h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
}

/* Модалка вариантов скругленная */
.variants-modal .variants-card {
  position: relative;
  width: min(640px, calc(100% - 32px));
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  z-index: 10;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.6);
  max-height: 90vh;
  overflow-y: auto;
  animation: scaleIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.variants-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 16px;
}
.variant-product {
  display: flex;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
  gap: 16px;
  align-items: center;
  transition: border-color 0.2s;
}
.variant-product:hover {
  border-color: rgba(255, 255, 255, 0.1);
}
.variant-image {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
}
.variant-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.variant-content {
  flex: 1;
}
.variant-content h3 {
  font-size: 13px;
  font-weight: 700;
}
.variant-content p {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}
.variant-price {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
}
.variant-price strong {
  font-size: 14px;
  color: var(--site-accent);
}
.variant-price del {
  font-size: 10px;
  color: var(--text-dark);
}
.variant-price button {
  margin-left: auto;
  height: 28px;
  padding: 0 12px;
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 11px;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: all 0.2s;
}
.variant-price button:hover {
  background: var(--site-accent);
  color: var(--bg);
  border-color: var(--site-accent);
}

/* Формы */
form label {
  display: flex;
  flex-direction: column;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 16px;
}
form label span {
  font-size: 10px;
  color: var(--text-dark);
  margin-top: 4px;
}
input {
  width: 100%;
  height: 42px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0 12px;
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
  margin-top: 8px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
input:focus {
  border-color: var(--site-accent);
  box-shadow: 0 0 10px var(--site-accent-glow);
}
.coupon-row {
  display: flex;
  gap: 8px;
}
.coupon-row input {
  margin-top: 8px;
}
.coupon-row button {
  height: 42px;
  margin-top: 8px;
  padding: 0 16px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.coupon-row button:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border-focus);
}

.total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
  padding-top: 16px;
  margin-top: 16px;
}
.total span {
  font-size: 13px;
  color: var(--text-muted);
}
.total strong {
  font-size: 18px;
  font-weight: 700;
  color: var(--site-accent);
}
.form-note {
  font-size: 10px;
  color: var(--text-dark);
  line-height: 1.4;
  margin-top: 16px;
  text-align: center;
}
.form-error {
  color: var(--red);
  font-size: 11px;
  margin-top: 8px;
  text-align: center;
  min-height: 14px;
}

/* Тосты */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 20px);
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 10000;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ==========================================================================
   ЛИЧНЫЙ КАБИНЕТ (DASHBOARD)
   ========================================================================== */

#dashboard-page {
  padding: 40px 0;
}

.dashboard-welcome {
  margin-bottom: 24px;
}
.dashboard-welcome h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(22px, 3.5vw, 36px);
  font-weight: 800;
  letter-spacing: -1px;
}
.dashboard-welcome p {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Bento сетка */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}

/* Карточки Bento скругленные */
.bento-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.bento-card:hover {
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  transform: translateY(-2px);
}

.bento-card__title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-dark);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}

.span-4 { grid-column: span 4; }
.span-8 { grid-column: span 8; }
.span-12 { grid-column: span 12; }

/* Bento кошельки */
.wallet-card {
  background: linear-gradient(145deg, #111113, #080809);
}
.wallet-balance-row {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 12px;
  position: relative;
  z-index: 2;
}
.wallet-balance-amount {
  font-family: 'Montserrat', sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.wallet-card:hover .wallet-balance-amount {
  transform: scale(1.05);
}
.wallet-balance-currency {
  font-size: 16px;
  font-weight: 600;
  color: var(--site-accent);
}
.wallet-description {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 16px;
  min-height: 34px;
  position: relative;
  z-index: 2;
}
.wallet-action-btn {
  width: 100%;
  height: 38px;
  border-radius: var(--radius-xs);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: grid;
  place-items: center;
  text-decoration: none;
  position: relative;
  z-index: 2;
}
.wallet-action-btn:hover {
  background: var(--site-accent);
  color: var(--bg);
  border-color: var(--site-accent);
  box-shadow: 0 0 12px var(--site-accent-glow);
}

/* Поддержка мини-карточка */
.support-mini-card {
  border-color: rgba(16, 185, 129, 0.12);
}
.support-mini-body {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
  flex: 1;
  position: relative;
  z-index: 2;
}
.support-mini-btn {
  margin-top: auto;
  border-color: rgba(16, 185, 129, 0.2);
  color: var(--green);
}
.support-mini-btn:hover {
  background: rgba(16, 185, 129, 0.05);
  border-color: var(--green);
}

/* Скин профиль */
.skin-card-body {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 16px;
  align-items: center;
  flex: 1;
  position: relative;
  z-index: 2;
}
.skin-container {
  height: 160px;
  background: rgba(255,255,255,0.015);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.skin-render-img {
  height: 90%;
  object-fit: contain;
  image-rendering: pixelated;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.skin-container:hover .skin-render-img {
  transform: scale(1.15) translateY(-2px);
}
.skin-card-controls {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  gap: 4px;
}
.skin-control-btn {
  width: 24px;
  height: 24px;
  border-radius: var(--radius-xs);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 12px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.2s;
}
.skin-control-btn:hover {
  color: var(--text);
  border-color: var(--border-focus);
}

.profile-info-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.profile-info-item {
  display: flex;
  flex-direction: column;
}
.profile-info-label {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-dark);
  letter-spacing: 0.5px;
}
.profile-info-value {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-top: 2px;
}
.profile-info-value .badge-accent {
  background: var(--site-accent-glow);
  color: var(--site-accent);
  padding: 2px 6px;
  border-radius: var(--radius-xs);
  font-size: 11px;
}

/* Рефералы */
.referral-input-row {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  position: relative;
  z-index: 2;
}
.referral-input-row input {
  margin-top: 0;
  height: 38px;
  background: rgba(0, 0, 0, 0.2);
}
.referral-btn {
  height: 38px;
  padding: 0 16px;
  font-size: 11px;
  font-weight: 700;
}
.referral-desc {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.5;
  position: relative;
  z-index: 2;
}

/* Система уровней */
.levels-progress-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  position: relative;
  z-index: 2;
}
.levels-progress-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.levels-progress-percentage {
  font-size: 11px;
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: 1px;
}
.levels-progress-bar-outer {
  width: 160px;
  height: 6px;
  background: rgba(255,255,255,0.05);
  border-radius: 3px;
  overflow: hidden;
}
.levels-progress-bar-inner {
  height: 100%;
  width: 0%;
  background: var(--site-accent);
  border-radius: 3px;
  box-shadow: 0 0 10px var(--site-accent);
  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.levels-progress-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}
.levels-progress-spent {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}
.levels-progress-next {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-dark);
}
.levels-cashback-badge {
  background: var(--site-accent-glow);
  color: var(--site-accent);
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: var(--radius-xs);
}

.levels-timeline {
  display: flex;
  justify-content: space-between;
  position: relative;
  padding: 20px 0;
  margin-bottom: 24px;
  z-index: 2;
}
.levels-timeline::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.03);
  transform: translateY(-50%);
  z-index: 1;
}
.levels-timeline-active-line {
  position: absolute;
  top: 50%;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--site-accent);
  transform: translateY(-50%);
  z-index: 2;
  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.level-node {
  position: relative;
  z-index: 3;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--panel);
  border: 2px solid rgba(255, 255, 255, 0.08);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
}
.level-node:hover {
  transform: scale(1.15);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 0 15px rgba(255,255,255,0.05);
}
.level-node.completed {
  border-color: var(--site-accent);
  background: var(--site-accent);
  color: var(--bg);
  box-shadow: 0 0 12px var(--site-accent-glow);
}
.level-node.active {
  border-color: var(--site-accent);
  background: var(--panel);
  color: var(--site-accent);
  box-shadow: 0 0 16px var(--site-accent-glow);
}
.level-node-icon {
  font-size: 12px;
}
.level-node-number {
  position: absolute;
  top: -18px;
  font-size: 9px;
  font-weight: 700;
  color: var(--text-dark);
}
.level-node.active .level-node-number, .level-node.completed .level-node-number {
  color: var(--text);
}
.level-node-name {
  position: absolute;
  bottom: -18px;
  font-size: 9px;
  font-weight: 600;
  color: var(--text-dark);
  white-space: nowrap;
  transition: color 0.3s;
}
.level-node.active .level-node-name, .level-node.completed .level-node-name {
  color: var(--text-muted);
}

.level-details-box {
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  position: relative;
  z-index: 2;
  transition: transform 0.3s, opacity 0.3s;
}
.level-details-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
  margin-bottom: 12px;
}
.level-details-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}
.level-details-desc {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.level-details-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.level-details-col-title {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-dark);
  margin-bottom: 6px;
}
.level-details-list {
  list-style: none;
}
.level-details-list li {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.level-details-list li::before {
  content: '✦';
  color: var(--site-accent);
  font-size: 10px;
}

/* Защита и почта */
.security-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  position: relative;
  z-index: 2;
}
.security-empty-state {
  font-size: 11px;
  color: var(--text-dark);
  padding: 12px;
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  text-align: center;
}
.security-keys-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.security-key-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 12px;
  animation: slideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideIn {
  from { transform: translateY(5px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.security-key-name {
  font-weight: 500;
}
.security-key-date {
  font-size: 9px;
  color: var(--text-dark);
}

.security-btn {
  height: 34px;
  font-size: 11px;
  margin-top: auto;
}

.email-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  position: relative;
  z-index: 2;
}
.email-status {
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
  font-size: 12px;
  font-weight: 500;
}
.email-status span {
  font-weight: 700;
  color: var(--text-muted);
}
.email-status.verified span {
  color: var(--green);
}

/* Обращения техподдержки */
.support-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  position: relative;
  z-index: 2;
}
.support-tickets-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 260px;
  overflow-y: auto;
  margin-bottom: 16px;
  position: relative;
  z-index: 2;
}
.support-ticket-item {
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.support-ticket-item:hover {
  border-color: var(--border-focus);
  background: rgba(255, 255, 255, 0.03);
  transform: translateX(2px);
}
.support-ticket-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}
.support-ticket-subject {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.support-ticket-status {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: var(--radius-xs);
}
.support-ticket-status.open {
  background: rgba(16, 185, 129, 0.15);
  color: var(--green);
}
.support-ticket-status.closed {
  background: rgba(113, 113, 122, 0.15);
  color: var(--text-dark);
}
.support-ticket-meta {
  font-size: 10px;
  color: var(--text-dark);
}

/* Модалка детального вида тикета */
#ticket-view-messages {
  border-radius: var(--radius-sm);
}
#ticket-view-messages > div {
  border-radius: var(--radius-xs);
}

/* Анимации скролла */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: transform, opacity;
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Адаптивность */
@media (max-width: 1024px) {
  .span-4 { grid-column: span 6; }
  .span-8 { grid-column: span 12; }
}

@media (max-width: 768px) {
  .catalog-layout {
    grid-template-columns: 1fr;
  }
  .bento-grid {
    grid-template-columns: 1fr;
  }
  .span-4, .span-8, .span-12 {
    grid-column: span 12;
  }
  .levels-timeline {
    overflow-x: auto;
    padding: 20px 10px;
    justify-content: flex-start;
    gap: 24px;
  }
  .levels-timeline::before, .levels-timeline-active-line {
    display: none;
  }
  .level-node-name {
    position: static;
    margin-top: 4px;
  }
  .level-node {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 8px;
  }
  .level-details-columns {
    grid-template-columns: 1fr;
  }
  .footer {
    grid-template-columns: 1fr;
  }
  .faq {
    grid-template-columns: 1fr;
  }
  .perk-grid {
    grid-template-columns: 1fr;
  }
}

/* Стили пошагового оформления заказа (Checkout Modal) */
.checkout-stepped-modal {
  width: min(850px, calc(100% - 32px)) !important;
  max-width: 850px !important;
}

.checkout-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.03);
  padding: 16px 24px;
  border-radius: var(--radius-md);
}

.step-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-dark);
  font-size: 13px;
  font-weight: 600;
  transition: all 0.3s;
}

.step-item .step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  transition: all 0.3s;
}

.step-item.active {
  color: var(--text);
}

.step-item.active .step-num {
  background: #f97316; /* Акцентный оранжевый */
  border-color: #f97316;
  color: #fff;
  box-shadow: 0 0 15px rgba(249, 115, 22, 0.3);
}

.step-item.completed {
  color: var(--text-muted);
}

.step-item.completed .step-num {
  background: rgba(249, 115, 22, 0.1);
  border-color: rgba(249, 115, 22, 0.3);
  color: #f97316;
}

.step-line {
  flex: 1;
  height: 1px;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
  margin: 0 16px;
}

/* Секции шагов */
.checkout-step-section {
  display: none;
  animation: fadeIn 0.3s ease-out;
}

.checkout-step-section.active {
  display: block;
}

.step-box-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
  color: var(--text);
}

/* Шаг 1: Сетка длительности */
.duration-selector-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.duration-card {
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-md);
  padding: 24px 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.duration-card:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

.duration-card.active {
  background: linear-gradient(180deg, rgba(249, 115, 22, 0.06) 0%, rgba(249, 115, 22, 0.01) 100%);
  border-color: rgba(249, 115, 22, 0.3);
  box-shadow: 0 8px 30px rgba(249, 115, 22, 0.05);
}

.duration-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.duration-card.active .duration-title {
  color: #f97316;
}

.duration-desc {
  font-size: 11px;
  color: var(--text-muted);
}

.duration-price-pct {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-dark);
  background: rgba(255, 255, 255, 0.02);
  padding: 4px 8px;
  border-radius: 20px;
  margin-top: 4px;
}

.duration-card.active .duration-price-pct {
  color: #f97316;
  background: rgba(249, 115, 22, 0.1);
}

/* Навигация внизу шагов */
.checkout-step-footer {
  display: flex;
  margin-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding-top: 20px;
}

.checkout-step-footer.flex-footer {
  justify-content: space-between;
  gap: 16px;
}

.checkout-step-footer button {
  min-width: 120px;
}

.step-inputs-wrap {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 500px;
  margin: 0 auto;
}

/* Шаг 3: Разметка */
.checkout-main {
  display: grid;
  grid-template-columns: 1.2fr 1.8fr;
  gap: 24px;
  margin-bottom: 24px;
}

.checkout-left {
  display: flex;
  flex-direction: column;
}

.checkout-preview-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.005) 100%);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  min-height: 240px;
}

.checkout-product-img-wrap {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 20px;
  position: relative;
  background: radial-gradient(circle at center, rgba(255,255,255,0.015), transparent 70%);
}

.checkout-product-img-wrap img {
  max-height: 140px;
  object-fit: contain;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.4));
}

.checkout-product-icon {
  font-family: 'Montserrat', sans-serif;
  font-size: 48px;
  font-weight: 800;
  color: var(--site-accent);
  opacity: 0.8;
}

.checkout-product-title-wrap {
  background: rgba(17, 17, 19, 0.85);
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  padding: 16px;
  text-align: center;
  backdrop-filter: blur(8px);
}

.checkout-product-title-wrap h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text);
  letter-spacing: -0.5px;
}

.checkout-product-price {
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #f97316;
  margin-top: 6px;
}

.checkout-perks-box {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-md);
  padding: 18px;
  max-height: 120px;
  overflow-y: auto;
  margin-bottom: 12px;
}

.checkout-perks-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.checkout-perks-list li {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.checkout-perks-list li::before {
  content: '✦';
  color: var(--site-accent);
  font-size: 10px;
}

.checkout-warning-box {
  border-left: 3px solid #f97316;
  background: rgba(249, 115, 22, 0.02);
  padding: 14px 18px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.checkout-warning-box h4 {
  font-size: 11px;
  font-weight: 800;
  color: #f97316;
  margin-bottom: 6px;
  letter-spacing: 1px;
}

.checkout-warning-box p {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 6px;
}

.checkout-warning-box p:last-child {
  margin-bottom: 0;
}

/* Блок Кешбека */
.checkout-cashback-panel {
  background: rgba(255, 255, 255, 0.012);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 24px;
}

.checkout-cashback-header {
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  padding-bottom: 14px;
}

.cashback-label {
  font-size: 9px;
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: 1.2px;
}

.cashback-level {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-top: 2px;
}

.cashback-rate-wrap {
  text-align: right;
}

.cashback-rate {
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--site-accent);
  display: block;
}

.cashback-rate-wrap small {
  font-size: 8px;
  color: var(--text-dark);
  text-transform: uppercase;
}

.checkout-cashback-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 0;
}

.cashback-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
}

.cashback-row span {
  color: var(--text-muted);
}

.cashback-row strong {
  color: var(--text);
  font-weight: 600;
}

/* Блок перехода уровня */
.checkout-next-level-box {
  background: rgba(249, 115, 22, 0.02);
  border: 1px solid rgba(249, 115, 22, 0.1);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 12px;
}

.next-level-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.next-level-title span {
  font-weight: 800;
}

.next-level-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.next-lvl-card {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
}

.next-lvl-card small {
  display: block;
  font-size: 9px;
  color: var(--text-dark);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.next-lvl-card strong {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #f97316;
}

.checkout-cashback-footer {
  font-size: 10px;
  color: var(--text-dark);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Способы оплаты */
.checkout-payment-section {
  margin-bottom: 24px;
}

.checkout-payment-section h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
  color: var(--text);
}

.payment-group-title {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-dark);
  margin: 16px 0 10px;
}

.payment-methods-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.payment-methods-grid.card-methods {
  grid-template-columns: repeat(2, 1fr);
}

.payment-method-card {
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-md);
  padding: 14px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 52px;
}

.payment-method-card:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.payment-method-card.active {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--site-accent);
}

.payment-method-card .method-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 700;
  display: block;
}

.payment-method-card .method-desc {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 4px;
  display: block;
}

.payment-logo-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.payment-method-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.payment-brand-icon {
  width: 46px;
  height: 34px;
  border-radius: 6px;
  background: #fff;
  display: grid;
  place-items: center;
  overflow: hidden;
  flex: 0 0 auto;
}

.payment-brand-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.payment-brand-sbp {
  width: 76px;
}

.payment-brand-sbp img {
  object-fit: contain;
}

.payment-method-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
}

.payment-method-copy small {
  color: var(--text-muted);
  font-size: 10px;
  white-space: nowrap;
}

.payment-method-copy strong {
  color: var(--text);
  font-size: 14px;
}

.active-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--site-accent);
  box-shadow: 0 0 10px var(--site-accent);
}

.sbp-logo, .mir-logo, .crypto-logo {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: var(--text);
}

.payment-policy-note {
  max-width: 760px;
  color: var(--text-muted);
  line-height: 1.45;
}

/* Оранжевая кнопка во всю ширину */
.pay-button {
  background: #f97316 !important;
  color: #fff !important;
  border: none !important;
  box-shadow: 0 4px 25px rgba(249, 115, 22, 0.25) !important;
  height: 52px !important;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px !important;
  font-weight: 700 !important;
}

.pay-button:hover {
  background: #ea580c !important;
  box-shadow: 0 8px 30px rgba(249, 115, 22, 0.4) !important;
  transform: translateY(-2px) !important;
}

@media (max-width: 768px) {
  .checkout-main {
    grid-template-columns: 1fr;
  }
  .duration-selector-grid {
    grid-template-columns: 1fr;
  }
  .payment-methods-grid.card-methods {
    grid-template-columns: 1fr;
  }
}
