/* ==========================================================================
   BOOST — Professional ELO Boosting Platform
   Design system + components
   ========================================================================== */

/* -------- Design tokens -------- */
:root {
  /* Surfaces */
  --bg-base:        #07080F;
  --bg-elevated:    #0E1018;
  --bg-card:        #131520;
  --bg-card-hover:  #181B28;
  --bg-input:       #1B1E2C;
  --bg-overlay:     rgba(7, 8, 15, 0.85);
  --bg-glass:       rgba(19, 21, 32, 0.6);

  /* Borders */
  --border-subtle:  rgba(255, 255, 255, 0.05);
  --border-default: rgba(255, 255, 255, 0.10);
  --border-strong:  rgba(255, 255, 255, 0.18);
  --border-brand:   rgba(168, 85, 247, 0.40);

  /* Text */
  --text-primary:   #FFFFFF;
  --text-secondary: #C7C9D9;
  --text-tertiary:  #8B8DA8;
  --text-muted:     #5C5E7A;

  /* Brand */
  --brand:        #A855F7;
  --brand-light:  #C084FC;
  --brand-dark:   #7E22CE;
  --brand-glow:   rgba(168, 85, 247, 0.45);

  /* Accents */
  --cyan:         #06B6D4;
  --cyan-light:   #22D3EE;
  --pink:         #EC4899;
  --blue:         #3B82F6;
  --green:        #10B981;
  --green-glow:   rgba(16, 185, 129, 0.4);
  --yellow:       #FBBF24;
  --orange:       #F97316;
  --red:          #EF4444;

  /* Game accents */
  --c-lol:       #C8AA6E;
  --c-valorant:  #FF4655;
  --c-tft:       #4DABF5;

  /* Rank tier colors */
  --tier-iron:        #6F6F6F;
  --tier-bronze:      #B8794D;
  --tier-silver:      #B7B9C2;
  --tier-gold:        #E0B73B;
  --tier-platinum:    #43BCB7;
  --tier-emerald:     #00B274;
  --tier-diamond:     #4DABF5;
  --tier-master:      #B855E1;
  --tier-grandmaster: #FF4655;
  --tier-challenger:  #F4D03F;
  --tier-radiant:     #FFCD2A;
  --tier-immortal:    #B53D63;
  --tier-ascendant:   #29B49E;

  /* Spacing */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 20px;
  --s-6: 24px;
  --s-8: 32px;
  --s-10: 40px;
  --s-12: 48px;
  --s-16: 64px;
  --s-20: 80px;
  --s-24: 96px;
  --s-32: 128px;

  /* Type */
  --font-display: 'Space Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono:    'JetBrains Mono', 'SF Mono', Menlo, monospace;

  --t-xs:  0.75rem;
  --t-sm:  0.875rem;
  --t-md:  1rem;
  --t-lg:  1.125rem;
  --t-xl:  1.25rem;
  --t-2xl: 1.5rem;
  --t-3xl: 1.875rem;
  --t-4xl: 2.25rem;
  --t-5xl: 3rem;
  --t-6xl: 3.75rem;
  --t-7xl: 4.5rem;

  /* Radius */
  --r-xs:  4px;
  --r-sm:  6px;
  --r-md:  10px;
  --r-lg:  16px;
  --r-xl:  24px;
  --r-2xl: 32px;
  --r-full: 9999px;

  /* Shadow */
  --sh-sm:    0 1px 2px rgba(0, 0, 0, 0.4);
  --sh-md:    0 4px 12px rgba(0, 0, 0, 0.4);
  --sh-lg:    0 12px 32px rgba(0, 0, 0, 0.5);
  --sh-xl:    0 24px 64px rgba(0, 0, 0, 0.6);
  --sh-glow:  0 0 40px var(--brand-glow);
  --sh-glow-cyan: 0 0 32px rgba(6, 182, 212, 0.4);

  /* Motion */
  --t-fast:   150ms ease;
  --t-base:   250ms ease;
  --t-slow:   400ms ease;
  --t-spring: 400ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Layers */
  --z-dropdown: 100;
  --z-sticky:   200;
  --z-fixed:    300;
  --z-modal-backdrop: 400;
  --z-modal:    500;
  --z-popover:  600;
  --z-tooltip:  700;

  /* Layout */
  --header-h:        72px;
  --container:       1280px;
  --container-narrow: 960px;
  --container-px:    24px;
}

/* -------- Reset -------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
  scroll-padding-top: var(--header-h);
}

body {
  min-height: 100vh;
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: var(--t-md);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, picture, video, canvas, svg { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; color: inherit; }
button { background: none; border: none; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

::selection { background: var(--brand); color: white; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: var(--border-default); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-strong); }

/* -------- Layout -------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--container-px);
}

.container--narrow { max-width: var(--container-narrow); }

.section { padding-block: var(--s-24); position: relative; }
.section--sm { padding-block: var(--s-16); }
.section--lg { padding-block: var(--s-32); }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1; }

.gap-1 { gap: var(--s-1); } .gap-2 { gap: var(--s-2); } .gap-3 { gap: var(--s-3); }
.gap-4 { gap: var(--s-4); } .gap-5 { gap: var(--s-5); } .gap-6 { gap: var(--s-6); }
.gap-8 { gap: var(--s-8); } .gap-12 { gap: var(--s-12); }

.grid { display: grid; }

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-tertiary { color: var(--text-tertiary); }
.text-muted { color: var(--text-muted); }
.text-brand { color: var(--brand-light); }

.hidden { display: none !important; }

.font-mono { font-family: var(--font-mono); }
.font-display { font-family: var(--font-display); }

.uppercase { text-transform: uppercase; letter-spacing: 0.08em; }

@media (max-width: 768px) { .hide-mobile { display: none !important; } }
@media (min-width: 769px) { .show-mobile { display: none !important; } }

/* -------- Typography -------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-size: var(--t-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--brand-light);
  padding: var(--s-2) var(--s-3);
  background: rgba(168, 85, 247, 0.10);
  border: 1px solid var(--border-brand);
  border-radius: var(--r-full);
  white-space: nowrap;
}

.eyebrow--cyan {
  color: var(--cyan-light);
  background: rgba(6, 182, 212, 0.10);
  border-color: rgba(6, 182, 212, 0.35);
}

.eyebrow--pink {
  color: var(--pink);
  background: rgba(236, 72, 153, 0.10);
  border-color: rgba(236, 72, 153, 0.35);
}

.eyebrow--green {
  color: var(--green);
  background: rgba(16, 185, 129, 0.10);
  border-color: rgba(16, 185, 129, 0.35);
}

.h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 5.25rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.h3 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.h4 {
  font-family: var(--font-display);
  font-size: var(--t-2xl);
  font-weight: 700;
  line-height: 1.25;
}

.lead {
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 64ch;
}

.gradient-text {
  background: linear-gradient(135deg, var(--brand-light) 0%, var(--cyan-light) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* -------- Buttons -------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  padding: var(--s-3) var(--s-6);
  border-radius: var(--r-md);
  font-family: var(--font-body);
  font-size: var(--t-sm);
  font-weight: 600;
  letter-spacing: -0.005em;
  white-space: nowrap;
  cursor: pointer;
  transition: all var(--t-base);
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}

.btn:focus-visible { outline: 2px solid var(--brand-light); outline-offset: 2px; }

.btn--primary {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: white;
  box-shadow: 0 8px 24px -8px var(--brand-glow), inset 0 1px 0 rgba(255,255,255,0.18);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px -6px var(--brand-glow), inset 0 1px 0 rgba(255,255,255,0.22);
  filter: brightness(1.08);
}

.btn--primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 30%, rgba(255,255,255,0.15) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 600ms ease;
}

.btn--primary:hover::after { transform: translateX(100%); }

.btn--secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border-color: var(--border-default);
}

.btn--secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--border-subtle);
}

.btn--ghost:hover {
  background: var(--bg-card);
  color: var(--text-primary);
  border-color: var(--border-default);
}

.btn--outline {
  background: transparent;
  color: var(--brand-light);
  border-color: var(--border-brand);
}

.btn--outline:hover {
  background: rgba(168, 85, 247, 0.10);
  border-color: var(--brand);
}

.btn--danger {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.4);
  color: #FCA5A5;
}

.btn--danger:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.6);
  color: white;
}

.btn--lg { padding: var(--s-4) var(--s-8); font-size: var(--t-md); border-radius: var(--r-lg); }
.btn--xl { padding: var(--s-5) var(--s-10); font-size: var(--t-lg); border-radius: var(--r-lg); }
.btn--sm { padding: var(--s-2) var(--s-4); font-size: var(--t-xs); }
.btn--full { width: 100%; }
.btn--icon-only { padding: var(--s-3); }
.btn--icon-only.btn--sm { padding: var(--s-2); }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; pointer-events: none; }

/* -------- Header -------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  height: var(--header-h);
  background: rgba(7, 8, 15, 0.7);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background var(--t-base), border-color var(--t-base);
}

.site-header.scrolled {
  background: rgba(7, 8, 15, 0.92);
  border-bottom-color: var(--border-default);
}

.nav {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-8);
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--t-xl);
  letter-spacing: 0.1em;
  color: var(--text-primary);
}

.nav__brand-mark {
  width: 32px;
  height: 32px;
  border-radius: var(--r-sm);
  background: linear-gradient(135deg, var(--brand) 0%, var(--cyan) 100%);
  display: grid;
  place-items: center;
  box-shadow: 0 4px 16px -4px var(--brand-glow);
  position: relative;
}

.nav__brand-mark::after {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: 5px;
  background: linear-gradient(135deg, rgba(255,255,255,0.20), transparent 50%);
  pointer-events: none;
}

.nav__brand-mark svg {
  width: 18px;
  height: 18px;
  color: white;
  position: relative;
  z-index: 1;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: var(--s-1);
}

.nav__link {
  display: inline-flex;
  align-items: center;
  gap: var(--s-1);
  padding: var(--s-2) var(--s-3);
  border-radius: var(--r-sm);
  font-size: var(--t-sm);
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--t-fast), background var(--t-fast);
  position: relative;
}

.nav__link:hover { color: var(--text-primary); background: var(--bg-card); }

.nav__link.is-active { color: var(--text-primary); }
.nav__link.is-active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 2px;
  background: linear-gradient(90deg, var(--brand), var(--cyan));
  border-radius: 2px;
}

.nav__cta { display: flex; align-items: center; gap: var(--s-3); }

.nav__hamburger {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: var(--r-md);
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  align-items: center;
  justify-content: center;
}

.nav__hamburger span {
  display: block;
  width: 18px;
  height: 2px;
  background: white;
  margin: 2px 0;
  transition: transform var(--t-base);
}

@media (max-width: 1024px) {
  .nav__menu { display: none; }
  .nav__hamburger { display: flex; }
  .nav__cta .btn--ghost { display: none; }
}

.mobile-menu {
  position: fixed;
  inset: var(--header-h) 0 0;
  background: var(--bg-base);
  z-index: var(--z-fixed);
  padding: var(--s-8) var(--container-px);
  transform: translateY(-110%);
  transition: transform var(--t-slow);
  overflow-y: auto;
}

.mobile-menu.is-open { transform: translateY(0); }

.mobile-menu__list { display: flex; flex-direction: column; gap: var(--s-2); margin-bottom: var(--s-8); }

.mobile-menu__link {
  display: block;
  padding: var(--s-4);
  font-size: var(--t-lg);
  font-weight: 600;
  color: var(--text-primary);
  border-radius: var(--r-md);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
}

/* =====================================================================
   BOOST CONFIGURATOR
   ===================================================================== */
.config {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--r-2xl);
  padding: var(--s-6);
  position: relative;
  overflow: hidden;
}

.config::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 400px at 0% 0%, rgba(168, 85, 247, 0.12), transparent 60%),
    radial-gradient(600px 400px at 100% 100%, rgba(6, 182, 212, 0.10), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.config > * { position: relative; z-index: 1; }

.config__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  margin-bottom: var(--s-6);
  flex-wrap: wrap;
}

.config__title { font-family: var(--font-display); font-size: var(--t-xl); font-weight: 700; letter-spacing: -0.015em; }

.config__step { margin-bottom: var(--s-6); }

.config__step-label {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  font-size: var(--t-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: var(--text-tertiary);
  margin-bottom: var(--s-3);
}

.config__step-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid var(--border-brand);
  display: grid;
  place-items: center;
  color: var(--brand-light);
  font-size: 10px;
  font-weight: 800;
  font-family: var(--font-display);
}

/* Game tabs */
.game-tabs {
  display: flex;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-md);
  padding: 4px;
  gap: 4px;
  margin-bottom: var(--s-6);
}

.game-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  padding: var(--s-3) var(--s-4);
  font-size: var(--t-sm);
  font-weight: 600;
  color: var(--text-secondary);
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: all var(--t-fast);
  position: relative;
  text-align: center;
}

.game-tab:hover { color: var(--text-primary); }

.game-tab.is-active {
  background: var(--bg-card);
  color: var(--text-primary);
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.game-tab__icon { width: 20px; height: 20px; border-radius: 4px; flex-shrink: 0; }
.game-tab[data-game="lol"] .game-tab__icon { background: var(--c-lol); }
.game-tab[data-game="valorant"] .game-tab__icon { background: var(--c-valorant); }
.game-tab[data-game="tft"] .game-tab__icon { background: var(--c-tft); }

/* Rank cards */
.rank-cards {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--s-4);
  align-items: stretch;
  margin-bottom: var(--s-6);
}

@media (max-width: 640px) {
  .rank-cards { grid-template-columns: 1fr; }
  .rank-cards__arrow { transform: rotate(90deg); justify-self: center; }
}

.rank-card {
  background: var(--bg-elevated);
  border: 2px solid var(--border-default);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  cursor: pointer;
  transition: all var(--t-fast);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  position: relative;
}

.rank-card:hover { border-color: var(--border-strong); background: var(--bg-card-hover); }

.rank-card.is-active {
  border-color: var(--brand);
  background: rgba(168, 85, 247, 0.06);
  box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.10);
}

.rank-card__label {
  font-size: var(--t-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--text-tertiary);
}

.rank-card__body { display: flex; align-items: center; gap: var(--s-4); }

.rank-card__name {
  font-family: var(--font-display);
  font-size: var(--t-2xl);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
}

.rank-card__div { font-size: var(--t-sm); color: var(--text-tertiary); margin-top: var(--s-1); }

.rank-card__chevron {
  margin-left: auto;
  color: var(--text-tertiary);
  transition: transform var(--t-fast);
}

.rank-card.is-active .rank-card__chevron { transform: rotate(180deg); color: var(--brand-light); }

.rank-cards__arrow {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  align-self: center;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  color: var(--text-tertiary);
}

.rank-cards__arrow svg { width: 20px; height: 20px; }

/* Tier emblems */
.emblem {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  position: relative;
  flex-shrink: 0;
  background: currentColor;
  box-shadow:
    inset 0 -3px 8px rgba(0,0,0,0.4),
    inset 0 2px 4px rgba(255,255,255,0.25),
    0 4px 12px rgba(0,0,0,0.3);
}

.emblem--sm { width: 36px; height: 36px; }
.emblem--md { width: 44px; height: 44px; }
.emblem--lg { width: 72px; height: 72px; }

.emblem::before {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255,255,255,0.3) 0%, transparent 50%);
}

.emblem__letter {
  font-family: var(--font-display);
  font-weight: 900;
  color: white;
  text-shadow: 0 2px 4px rgba(0,0,0,0.4);
  position: relative;
  z-index: 1;
  font-size: 1.125rem;
}

.emblem--sm .emblem__letter { font-size: 0.75rem; }
.emblem--md .emblem__letter { font-size: 0.95rem; }
.emblem--lg .emblem__letter { font-size: 1.5rem; }

.emblem--iron        { color: var(--tier-iron); }
.emblem--bronze      { color: var(--tier-bronze); }
.emblem--silver      { color: var(--tier-silver); }
.emblem--gold        { color: var(--tier-gold); }
.emblem--platinum    { color: var(--tier-platinum); }
.emblem--emerald     { color: var(--tier-emerald); }
.emblem--diamond     { color: var(--tier-diamond); }
.emblem--master      { color: var(--tier-master); }
.emblem--grandmaster { color: var(--tier-grandmaster); }
.emblem--challenger  {
  background: linear-gradient(135deg, var(--tier-challenger), var(--tier-grandmaster));
  color: var(--tier-challenger);
}
.emblem--ascendant   { color: var(--tier-ascendant); }
.emblem--immortal    { color: var(--tier-immortal); }
.emblem--radiant     {
  background: radial-gradient(circle, #FFD700, #FF6B00);
  color: var(--tier-radiant);
  animation: radiant-glow 2.5s ease-in-out infinite;
}

@keyframes radiant-glow {
  0%, 100% { box-shadow: inset 0 -3px 8px rgba(0,0,0,0.4), inset 0 2px 4px rgba(255,255,255,0.4), 0 0 12px rgba(255, 205, 42, 0.5); }
  50% { box-shadow: inset 0 -3px 8px rgba(0,0,0,0.4), inset 0 2px 4px rgba(255,255,255,0.4), 0 0 24px rgba(255, 205, 42, 0.8); }
}

/* Tier picker */
.tier-picker {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  margin-bottom: var(--s-6);
  animation: slideIn 250ms ease;
}

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

.tier-picker__heading {
  font-size: var(--t-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--text-tertiary);
  margin-bottom: var(--s-3);
}

.tier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: var(--s-2);
  margin-bottom: var(--s-5);
}

.tier-pick {
  background: var(--bg-card);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--r-md);
  padding: var(--s-3) var(--s-2);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-2);
  cursor: pointer;
  transition: all var(--t-fast);
  text-align: center;
}

.tier-pick:hover {
  border-color: var(--border-strong);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.tier-pick.is-selected {
  border-color: currentColor;
  background: rgba(255, 255, 255, 0.04);
}

.tier-pick.is-disabled { opacity: 0.35; cursor: not-allowed; pointer-events: none; }

.tier-pick__name {
  font-size: var(--t-xs);
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tier-pick.is-selected .tier-pick__name { color: var(--text-primary); }

.divisions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: var(--s-2);
}

.division-pick {
  background: var(--bg-card);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--r-md);
  padding: var(--s-3);
  font-size: var(--t-sm);
  font-weight: 700;
  cursor: pointer;
  transition: all var(--t-fast);
  text-align: center;
  color: var(--text-secondary);
}

.division-pick:hover {
  border-color: var(--border-strong);
  background: var(--bg-card-hover);
  color: var(--text-primary);
}

.division-pick.is-selected {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  border-color: var(--brand);
  color: white;
}

.division-pick.is-disabled { opacity: 0.35; cursor: not-allowed; pointer-events: none; }

/* Pills */
.pills { display: flex; flex-wrap: wrap; gap: var(--s-2); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: var(--s-2) var(--s-4);
  background: var(--bg-elevated);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--r-full);
  font-size: var(--t-sm);
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--t-fast);
}

.pill:hover { background: var(--bg-card-hover); border-color: var(--border-strong); color: var(--text-primary); }

.pill.is-active {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  border-color: var(--brand);
  color: white;
}

/* Toggles */
.toggle-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--s-2);
}

.toggle {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-3) var(--s-4);
  background: var(--bg-elevated);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: all var(--t-fast);
}

.toggle:hover { border-color: var(--border-strong); background: var(--bg-card-hover); }

.toggle input { display: none; }

.toggle__sw {
  width: 36px;
  height: 20px;
  background: var(--bg-input);
  border: 1px solid var(--border-default);
  border-radius: var(--r-full);
  position: relative;
  transition: background var(--t-fast);
  flex-shrink: 0;
}

.toggle__sw::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  background: var(--text-secondary);
  border-radius: 50%;
  transition: all var(--t-fast);
}

.toggle input:checked ~ .toggle__sw {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  border-color: var(--brand);
}

.toggle input:checked ~ .toggle__sw::after { left: 17px; background: white; }

.toggle__label { flex: 1; font-size: var(--t-sm); font-weight: 500; color: var(--text-primary); }

.toggle__price { font-size: var(--t-xs); font-weight: 700; color: var(--brand-light); }

/* Service type cards */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--s-2);
}

.svc-card {
  background: var(--bg-elevated);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--r-md);
  padding: var(--s-3) var(--s-4);
  cursor: pointer;
  transition: all var(--t-fast);
  display: flex;
  flex-direction: column;
  gap: var(--s-1);
  text-align: left;
}

.svc-card:hover { border-color: var(--border-strong); background: var(--bg-card-hover); }

.svc-card.is-active { border-color: var(--brand); background: rgba(168, 85, 247, 0.06); }

.svc-card__name { font-weight: 700; font-size: var(--t-sm); }
.svc-card__desc { font-size: var(--t-xs); color: var(--text-tertiary); line-height: 1.4; }

/* Summary card */
.summary {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--r-2xl);
  overflow: hidden;
  position: sticky;
  top: calc(var(--header-h) + var(--s-4));
  display: flex;
  flex-direction: column;
}

.summary__head {
  padding: var(--s-5) var(--s-6) var(--s-4);
  background: linear-gradient(160deg, rgba(168, 85, 247, 0.10), transparent);
  border-bottom: 1px solid var(--border-subtle);
}

.summary__title {
  font-size: var(--t-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: var(--text-tertiary);
  margin-bottom: var(--s-2);
}

.summary__route {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  font-family: var(--font-display);
  font-size: var(--t-md);
  font-weight: 700;
  color: var(--text-primary);
}

.summary__route svg { color: var(--text-tertiary); flex-shrink: 0; }

.summary__body {
  padding: var(--s-5) var(--s-6);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}

.summary__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--t-sm);
  color: var(--text-secondary);
}

.summary__row strong { color: var(--text-primary); font-weight: 600; }
.summary__row--add strong { color: var(--brand-light); }

.summary__divider { height: 1px; background: var(--border-subtle); margin: var(--s-2) 0; }

.summary__total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-3);
  padding: var(--s-4) var(--s-6);
  background: rgba(168, 85, 247, 0.05);
  border-block: 1px solid var(--border-subtle);
}

.summary__total-label {
  font-size: var(--t-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: var(--text-tertiary);
}

.summary__price {
  font-family: var(--font-display);
  font-size: var(--t-4xl);
  font-weight: 800;
  letter-spacing: -0.025em;
  background: linear-gradient(135deg, var(--brand-light), var(--cyan-light));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}

.summary__eta {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  padding: var(--s-3) var(--s-6);
  background: rgba(16, 185, 129, 0.06);
  border-bottom: 1px solid var(--border-subtle);
  font-size: var(--t-xs);
  color: var(--green);
  font-weight: 600;
}

.summary__cta { padding: var(--s-5) var(--s-6); display: flex; flex-direction: column; gap: var(--s-3); }

.summary__trust {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  font-size: var(--t-xs);
  color: var(--text-tertiary);
  justify-content: center;
}

.summary__trust svg { width: 14px; height: 14px; color: var(--green); }

/* HERO */
.hero {
  position: relative;
  padding-top: clamp(48px, 5vw, 80px);
  padding-bottom: clamp(64px, 8vw, 120px);
  overflow: hidden;
  isolation: isolate;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(800px 600px at 80% -10%, rgba(168, 85, 247, 0.22), transparent 60%),
    radial-gradient(600px 500px at 0% 30%, rgba(6, 182, 212, 0.15), transparent 60%),
    radial-gradient(700px 600px at 50% 100%, rgba(236, 72, 153, 0.10), transparent 60%);
}

.hero__grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black, transparent);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black, transparent);
}

.hero__layout {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: var(--s-8);
  align-items: start;
}

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

.hero__intro { text-align: left; margin-bottom: var(--s-8); }

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin-bottom: var(--s-4);
}

.hero__title .accent {
  background: linear-gradient(135deg, var(--brand-light) 0%, var(--cyan-light) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero__sub {
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 56ch;
  line-height: 1.6;
}

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-8);
  margin-top: var(--s-6);
  padding-top: var(--s-6);
  border-top: 1px solid var(--border-subtle);
}

.hero__stat-num {
  font-family: var(--font-display);
  font-size: var(--t-2xl);
  font-weight: 800;
  background: linear-gradient(135deg, var(--brand-light), var(--cyan-light));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}

.hero__stat-label {
  font-size: var(--t-xs);
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: var(--s-1);
}

/* Section heading */
.section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-3);
  text-align: center;
  margin-bottom: var(--s-12);
  max-width: 720px;
  margin-inline: auto;
}

.section-head--left {
  align-items: flex-start;
  text-align: left;
  margin-inline: 0;
  max-width: none;
}

.section-head__title {
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.section-head__sub { color: var(--text-secondary); font-size: var(--t-lg); line-height: 1.55; }

/* Trust bar */
.trust { padding-block: var(--s-12); border-bottom: 1px solid var(--border-subtle); }
.trust__title { font-size: var(--t-xs); text-transform: uppercase; letter-spacing: 0.18em; color: var(--text-muted); text-align: center; margin-bottom: var(--s-6); }
.trust__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--s-12); opacity: 0.7; }
.trust__logo { display: inline-flex; align-items: center; gap: var(--s-2); font-family: var(--font-display); font-weight: 700; font-size: var(--t-lg); color: var(--text-tertiary); filter: grayscale(1); transition: filter var(--t-base), color var(--t-base); }
.trust__logo:hover { filter: grayscale(0); color: var(--text-primary); }
.trust__logo svg { width: 28px; height: 28px; }

/* Game cards */
.games-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--s-4); }

.game-card {
  position: relative;
  display: block;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  aspect-ratio: 4/5;
  transition: transform var(--t-base), border-color var(--t-base);
  isolation: isolate;
}

.game-card:hover { transform: translateY(-6px); border-color: var(--border-strong); }
.game-card__bg { position: absolute; inset: 0; z-index: 0; transition: transform var(--t-slow); }
.game-card:hover .game-card__bg { transform: scale(1.06); }
.game-card__shade { position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, rgba(7,8,15,0.95) 0%, rgba(7,8,15,0.4) 50%, transparent 100%); }
.game-card__content { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; justify-content: flex-end; padding: var(--s-5); gap: var(--s-2); }
.game-card__tag { position: absolute; top: var(--s-4); left: var(--s-4); padding: var(--s-1) var(--s-2); background: rgba(7,8,15,0.6); backdrop-filter: blur(8px); border: 1px solid var(--border-default); border-radius: var(--r-full); font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-secondary); z-index: 2; }
.game-card__title { font-family: var(--font-display); font-size: var(--t-2xl); font-weight: 700; letter-spacing: -0.02em; }
.game-card__meta { display: flex; align-items: center; gap: var(--s-3); font-size: var(--t-xs); color: var(--text-secondary); }

.bg-lol { background: radial-gradient(circle at 30% 30%, #C8AA6E, #1E2328 70%); }
.bg-valorant { background: radial-gradient(circle at 30% 30%, #FF4655, #0F1923 70%); }
.bg-tft { background: radial-gradient(circle at 30% 30%, #4DABF5, #0B1638 70%); }

/* Booster cards */
.boosters-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--s-5); }

.booster-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform var(--t-base), border-color var(--t-base), box-shadow var(--t-base);
}

.booster-card:hover { transform: translateY(-4px); border-color: var(--border-default); box-shadow: var(--sh-lg); }

.booster-card__top {
  position: relative;
  padding: var(--s-5);
  background: linear-gradient(180deg, rgba(168,85,247,0.10), transparent 80%);
  border-bottom: 1px solid var(--border-subtle);
}

.booster-card__rank-badge {
  position: absolute;
  top: var(--s-3);
  right: var(--s-3);
  display: inline-flex;
  align-items: center;
  gap: var(--s-1);
  padding: var(--s-1) var(--s-2);
  background: rgba(7,8,15,0.7);
  border: 1px solid var(--border-default);
  border-radius: var(--r-full);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.booster-card__avatar-wrap { position: relative; display: flex; align-items: center; gap: var(--s-3); }

.booster-card__avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--cyan));
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: var(--t-xl);
  color: white;
  position: relative;
  flex-shrink: 0;
  border: 2px solid var(--border-default);
}

.booster-card__avatar.online::after {
  content: '';
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 14px;
  height: 14px;
  background: var(--green);
  border: 2px solid var(--bg-card);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--green-glow);
}

.booster-card__name { font-family: var(--font-display); font-size: var(--t-lg); font-weight: 700; }
.booster-card__handle { font-size: var(--t-xs); color: var(--text-tertiary); }
.booster-card__verified { display: inline-flex; align-items: center; gap: 4px; font-size: 10px; color: var(--cyan-light); font-weight: 600; }
.booster-card__verified svg { width: 12px; height: 12px; }
.booster-card__games { display: flex; gap: var(--s-1); margin-top: var(--s-3); }
.booster-card__game-icon { width: 26px; height: 26px; border-radius: var(--r-sm); display: grid; place-items: center; font-size: 10px; font-weight: 800; color: white; border: 1px solid var(--border-default); }
.booster-card__body { padding: var(--s-4) var(--s-5); flex: 1; display: flex; flex-direction: column; gap: var(--s-3); }
.booster-card__bio { font-size: var(--t-sm); color: var(--text-secondary); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.booster-card__tags { display: flex; flex-wrap: wrap; gap: 4px; }
.booster-card__tag { font-size: 10px; padding: 3px 8px; background: var(--bg-elevated); border: 1px solid var(--border-subtle); border-radius: var(--r-full); color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }
.booster-card__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-2); padding: var(--s-3); background: rgba(255,255,255,0.02); border: 1px solid var(--border-subtle); border-radius: var(--r-md); }
.booster-stat { text-align: center; }
.booster-stat__num { font-weight: 800; font-size: var(--t-md); color: var(--text-primary); }
.booster-stat__lbl { font-size: 10px; color: var(--text-tertiary); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 2px; }
.booster-card__footer { padding: var(--s-4) var(--s-5); border-top: 1px solid var(--border-subtle); display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); }
.booster-card__price { display: flex; flex-direction: column; }
.booster-card__price strong { font-family: var(--font-display); font-size: var(--t-xl); font-weight: 800; color: var(--text-primary); line-height: 1; }
.booster-card__price-from { font-size: 10px; color: var(--text-tertiary); text-transform: uppercase; letter-spacing: 0.08em; }
.booster-card__rating { display: inline-flex; align-items: center; gap: 4px; font-size: var(--t-sm); font-weight: 700; color: var(--yellow); }
.booster-card__rating svg { width: 14px; height: 14px; fill: currentColor; }
.booster-card__rating small { color: var(--text-tertiary); font-weight: 500; margin-left: 2px; }

/* Catalog */
.catalog { display: grid; grid-template-columns: 280px 1fr; gap: var(--s-8); align-items: start; }

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

.filters {
  position: sticky;
  top: calc(var(--header-h) + var(--s-4));
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  display: flex;
  flex-direction: column;
  gap: var(--s-6);
  max-height: calc(100vh - var(--header-h) - var(--s-8));
  overflow-y: auto;
}

@media (max-width: 1024px) { .filters { position: static; max-height: none; } }

.filter-group { display: flex; flex-direction: column; gap: var(--s-3); }
.filter-group__label { font-size: var(--t-xs); font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-tertiary); display: flex; align-items: center; justify-content: space-between; }
.filter-clear { font-size: 10px; font-weight: 600; color: var(--brand-light); text-transform: none; letter-spacing: 0; }
.filter-clear:hover { color: var(--brand); }
.filter-options { display: flex; flex-direction: column; gap: 4px; }
.filter-check { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); padding: var(--s-2) var(--s-3); border-radius: var(--r-sm); cursor: pointer; transition: background var(--t-fast); font-size: var(--t-sm); }
.filter-check:hover { background: var(--bg-card-hover); }
.filter-check input { display: none; }
.filter-check__box { width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid var(--border-strong); display: grid; place-items: center; flex-shrink: 0; transition: all var(--t-fast); }
.filter-check__box svg { width: 12px; height: 12px; opacity: 0; color: white; transition: opacity var(--t-fast); }
.filter-check input:checked + .filter-check__box { background: var(--brand); border-color: var(--brand); }
.filter-check input:checked + .filter-check__box svg { opacity: 1; }
.filter-check__label { flex: 1; color: var(--text-secondary); }
.filter-check input:checked ~ .filter-check__label { color: var(--text-primary); font-weight: 600; }
.filter-check__count { font-size: 10px; color: var(--text-muted); padding: 2px 6px; background: var(--bg-elevated); border-radius: var(--r-full); }

.range-row { display: flex; flex-direction: column; gap: var(--s-2); }
.range-values { display: flex; justify-content: space-between; font-size: var(--t-xs); color: var(--text-secondary); font-weight: 600; }

input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 4px; background: var(--bg-elevated); border-radius: 999px; outline: none; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 16px; height: 16px; border-radius: 50%; background: var(--brand); cursor: pointer; border: 2px solid white; box-shadow: 0 2px 8px var(--brand-glow); }
input[type="range"]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--brand); cursor: pointer; border: 2px solid white; }

.catalog__toolbar { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap; margin-bottom: var(--s-6); }

.search-input { flex: 1; min-width: 240px; position: relative; }
.search-input input { width: 100%; background: var(--bg-card); border: 1px solid var(--border-default); border-radius: var(--r-md); padding: var(--s-3) var(--s-4) var(--s-3) var(--s-12); color: var(--text-primary); font-size: var(--t-sm); outline: none; transition: border-color var(--t-fast), background var(--t-fast); }
.search-input input::placeholder { color: var(--text-muted); }
.search-input input:focus { border-color: var(--brand); background: var(--bg-card-hover); }
.search-input svg { position: absolute; left: var(--s-4); top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--text-tertiary); }

.select {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--r-md);
  padding: var(--s-3) var(--s-10) var(--s-3) var(--s-4);
  color: var(--text-primary);
  font-size: var(--t-sm);
  font-weight: 500;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%23C7C9D9' stroke-width='2' viewBox='0 0 24 24'><path d='m6 9 6 6 6-6'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.select:focus { outline: none; border-color: var(--brand); }

/* Features */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--s-4); }

.feature {
  position: relative;
  padding: var(--s-6);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  transition: border-color var(--t-base), transform var(--t-base);
  overflow: hidden;
}

.feature:hover { border-color: var(--border-default); transform: translateY(-3px); }

.feature::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(168, 85, 247, 0.08), transparent 60%);
  opacity: 0;
  transition: opacity var(--t-base);
  pointer-events: none;
}

.feature:hover::after { opacity: 1; }

.feature__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, rgba(168,85,247,0.18), rgba(6,182,212,0.18));
  border: 1px solid rgba(168, 85, 247, 0.3);
  display: grid;
  place-items: center;
  color: var(--brand-light);
  flex-shrink: 0;
}

.feature__icon svg { width: 24px; height: 24px; }
.feature__title { font-family: var(--font-display); font-size: var(--t-xl); font-weight: 700; letter-spacing: -0.015em; }
.feature__text { font-size: var(--t-sm); color: var(--text-secondary); line-height: 1.6; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--s-4); }

.step {
  position: relative;
  padding: var(--s-6);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}

.step__num {
  font-family: var(--font-display);
  font-size: var(--t-7xl);
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, var(--brand-light), transparent 70%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: var(--s-2);
  letter-spacing: -0.06em;
}

.step__title { font-family: var(--font-display); font-size: var(--t-xl); font-weight: 700; }
.step__text { font-size: var(--t-sm); color: var(--text-secondary); line-height: 1.55; }

/* Testimonials */
.testimonials { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: var(--s-4); }
.testi { padding: var(--s-6); background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--r-lg); display: flex; flex-direction: column; gap: var(--s-4); position: relative; }
.testi__stars { display: flex; gap: 2px; color: var(--yellow); }
.testi__stars svg { width: 16px; height: 16px; fill: currentColor; }
.testi__quote { font-size: var(--t-md); line-height: 1.6; color: var(--text-secondary); flex: 1; }
.testi__author { display: flex; align-items: center; gap: var(--s-3); padding-top: var(--s-4); border-top: 1px solid var(--border-subtle); }
.testi__avatar { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), var(--cyan)); display: grid; place-items: center; font-weight: 700; color: white; flex-shrink: 0; }
.testi__name { font-weight: 700; font-size: var(--t-sm); }
.testi__meta { font-size: var(--t-xs); color: var(--text-tertiary); }
.testi__rank-up { display: inline-flex; align-items: center; gap: var(--s-1); margin-left: auto; padding: var(--s-1) var(--s-2); background: rgba(16, 185, 129, 0.12); border: 1px solid rgba(16, 185, 129, 0.3); border-radius: var(--r-full); font-size: 10px; font-weight: 700; color: var(--green); text-transform: uppercase; letter-spacing: 0.06em; }

/* FAQ */
.faq { display: flex; flex-direction: column; gap: var(--s-2); max-width: 800px; margin-inline: auto; }
.faq__item { background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--r-lg); overflow: hidden; }
.faq__item.is-open { border-color: var(--border-default); }
.faq__q { width: 100%; padding: var(--s-5) var(--s-6); display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); text-align: left; font-family: var(--font-display); font-size: var(--t-lg); font-weight: 600; color: var(--text-primary); cursor: pointer; transition: background var(--t-fast); }
.faq__q:hover { background: var(--bg-card-hover); }
.faq__icon { width: 32px; height: 32px; border-radius: var(--r-full); background: var(--bg-elevated); display: grid; place-items: center; flex-shrink: 0; transition: transform var(--t-base), background var(--t-base); }
.faq__icon svg { width: 14px; height: 14px; }
.faq__item.is-open .faq__icon { background: var(--brand); transform: rotate(45deg); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height var(--t-slow); }
.faq__a-inner { padding: 0 var(--s-6) var(--s-5); color: var(--text-secondary); line-height: 1.65; font-size: var(--t-md); }
.faq__item.is-open .faq__a { max-height: 600px; }

/* Pricing plans */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--s-5); align-items: stretch; }
.plan { padding: var(--s-6); background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--r-lg); display: flex; flex-direction: column; gap: var(--s-5); position: relative; transition: transform var(--t-base), border-color var(--t-base); }
.plan:hover { transform: translateY(-4px); border-color: var(--border-default); }
.plan--featured { border-color: var(--border-brand); background: linear-gradient(180deg, rgba(168, 85, 247, 0.10), var(--bg-card) 50%); box-shadow: var(--sh-glow); transform: scale(1.02); }
.plan--featured:hover { transform: scale(1.02) translateY(-4px); }
.plan__badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: linear-gradient(135deg, var(--brand), var(--cyan)); color: white; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; padding: var(--s-1) var(--s-3); border-radius: var(--r-full); }
.plan__name { font-family: var(--font-display); font-size: var(--t-2xl); font-weight: 700; }
.plan__desc { font-size: var(--t-sm); color: var(--text-tertiary); }
.plan__price { display: flex; align-items: baseline; gap: var(--s-2); margin: var(--s-3) 0; }
.plan__price-amount { font-family: var(--font-display); font-size: var(--t-5xl); font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.plan__price-period { color: var(--text-tertiary); font-size: var(--t-sm); }
.plan__features { display: flex; flex-direction: column; gap: var(--s-3); flex: 1; }
.plan__feat { display: flex; align-items: flex-start; gap: var(--s-2); font-size: var(--t-sm); color: var(--text-secondary); line-height: 1.5; }
.plan__feat svg { width: 18px; height: 18px; color: var(--green); flex-shrink: 0; margin-top: 2px; }
.plan__feat--off { color: var(--text-muted); }
.plan__feat--off svg { color: var(--text-muted); }

/* Forms */
.form { display: flex; flex-direction: column; gap: var(--s-5); }
.field { display: flex; flex-direction: column; gap: var(--s-2); }
.field__label { font-size: var(--t-xs); font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-tertiary); }
.input, .textarea { width: 100%; background: var(--bg-card); border: 1px solid var(--border-default); border-radius: var(--r-md); padding: var(--s-4); color: var(--text-primary); font-size: var(--t-md); font-family: var(--font-body); outline: none; transition: border-color var(--t-fast), background var(--t-fast); }
.input:focus, .textarea:focus { border-color: var(--brand); background: var(--bg-card-hover); }
.textarea { resize: vertical; min-height: 140px; }
.field__hint { font-size: var(--t-xs); color: var(--text-muted); }
.field__error { font-size: var(--t-xs); color: var(--red); }

/* Footer */
.site-footer {
  margin-top: var(--s-24);
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
  padding-top: var(--s-16);
  padding-bottom: var(--s-8);
}

.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: var(--s-8); margin-bottom: var(--s-12); }

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--s-6); }
  .footer-col--brand { grid-column: span 2; }
}

.footer-col h4 { font-family: var(--font-display); font-size: var(--t-xs); font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-tertiary); margin-bottom: var(--s-4); }
.footer-col ul { display: flex; flex-direction: column; gap: var(--s-2); }
.footer-col a { font-size: var(--t-sm); color: var(--text-secondary); transition: color var(--t-fast); }
.footer-col a:hover { color: var(--text-primary); }
.footer-col--brand p { color: var(--text-tertiary); font-size: var(--t-sm); line-height: 1.55; max-width: 36ch; margin-block: var(--s-3) var(--s-4); }
.socials { display: flex; gap: var(--s-2); }
.socials a { width: 36px; height: 36px; display: grid; place-items: center; background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--r-md); color: var(--text-secondary); transition: all var(--t-fast); }
.socials a:hover { background: var(--bg-card-hover); color: var(--text-primary); border-color: var(--border-default); }
.socials svg { width: 16px; height: 16px; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--s-4); padding-top: var(--s-6); border-top: 1px solid var(--border-subtle); font-size: var(--t-xs); color: var(--text-muted); }
.footer-bottom__links { display: flex; gap: var(--s-6); flex-wrap: wrap; align-items: center; }

/* Admin */
.admin { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }

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

.admin__sidebar {
  background: var(--bg-elevated);
  border-right: 1px solid var(--border-subtle);
  padding: var(--s-6) var(--s-4);
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

@media (max-width: 1024px) {
  .admin__sidebar { position: static; height: auto; flex-direction: row; flex-wrap: wrap; gap: var(--s-2); }
}

.admin__brand { display: flex; align-items: center; gap: var(--s-2); padding: var(--s-3); font-family: var(--font-display); font-weight: 800; font-size: var(--t-md); color: var(--text-primary); letter-spacing: 0.1em; margin-bottom: var(--s-4); }

.admin__nav-link { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-3) var(--s-4); border-radius: var(--r-md); font-size: var(--t-sm); font-weight: 500; color: var(--text-secondary); transition: all var(--t-fast); cursor: pointer; }
.admin__nav-link:hover { background: var(--bg-card); color: var(--text-primary); }
.admin__nav-link.is-active { background: linear-gradient(135deg, rgba(168, 85, 247, 0.15), rgba(6, 182, 212, 0.05)); color: var(--text-primary); border-left: 2px solid var(--brand); }
.admin__nav-link svg { width: 18px; height: 18px; flex-shrink: 0; }

.admin__main { padding: var(--s-8); overflow-x: hidden; }

.admin__page-title { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); margin-bottom: var(--s-8); flex-wrap: wrap; }
.admin__page-title h1 { font-family: var(--font-display); font-size: var(--t-3xl); font-weight: 700; letter-spacing: -0.02em; }

.admin__view { display: none; }
.admin__view.is-active { display: block; }

/* KPIs */
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--s-4); margin-bottom: var(--s-8); }

.kpi {
  padding: var(--s-5) var(--s-6);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  position: relative;
  overflow: hidden;
}

.kpi::before { content: ''; position: absolute; top: 0; right: 0; width: 80px; height: 80px; background: radial-gradient(circle, rgba(168, 85, 247, 0.1), transparent 70%); pointer-events: none; }

.kpi__label { font-size: var(--t-xs); color: var(--text-tertiary); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; }
.kpi__value { font-family: var(--font-display); font-size: var(--t-3xl); font-weight: 800; letter-spacing: -0.025em; line-height: 1; }
.kpi__delta { font-size: var(--t-xs); font-weight: 600; }
.kpi__delta--up { color: var(--green); }
.kpi__delta--down { color: var(--red); }

/* Tables */
.table-wrap { background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--r-lg); overflow: hidden; }
.table-wrap__head { padding: var(--s-4) var(--s-5); border-bottom: 1px solid var(--border-subtle); display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap; }
.table { width: 100%; border-collapse: collapse; font-size: var(--t-sm); }
.table th { text-align: left; padding: var(--s-3) var(--s-5); background: var(--bg-elevated); font-size: var(--t-xs); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; color: var(--text-tertiary); border-bottom: 1px solid var(--border-subtle); white-space: nowrap; }
.table td { padding: var(--s-4) var(--s-5); border-bottom: 1px solid var(--border-subtle); color: var(--text-secondary); vertical-align: middle; }
.table tr:last-child td { border-bottom: none; }
.table tr:hover td { background: rgba(255,255,255,0.015); color: var(--text-primary); }
.table-wrap--scroll { overflow-x: auto; }

/* Badges */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; border-radius: var(--r-full); border: 1px solid currentColor; }
.badge--pending { color: var(--yellow); background: rgba(251, 191, 36, 0.1); }
.badge--in_progress { color: var(--cyan-light); background: rgba(6, 182, 212, 0.1); }
.badge--completed { color: var(--green); background: rgba(16, 185, 129, 0.1); }
.badge--cancelled { color: var(--red); background: rgba(239, 68, 68, 0.1); }
.badge--success { color: var(--green); background: rgba(16, 185, 129, 0.1); }
.badge--warning { color: var(--yellow); background: rgba(251, 191, 36, 0.1); }
.badge--info { color: var(--cyan-light); background: rgba(6, 182, 212, 0.1); }

/* Bar chart */
.bar-chart { display: flex; align-items: flex-end; gap: 4px; height: 200px; padding: var(--s-4); }
.bar-chart__bar { flex: 1; background: linear-gradient(180deg, var(--brand) 0%, var(--brand-dark) 100%); border-radius: var(--r-xs) var(--r-xs) 0 0; position: relative; transition: opacity var(--t-fast); min-height: 4px; }
.bar-chart__bar:hover { opacity: 0.85; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 600ms ease, transform 600ms ease; }
.reveal.is-revealed { opacity: 1; transform: translateY(0); }

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(168, 85, 247, 0.6); }
  50% { box-shadow: 0 0 0 16px rgba(168, 85, 247, 0); }
}
.pulse-glow { animation: pulse-glow 2.5s infinite; }

.divider { height: 1px; width: 100%; background: var(--border-subtle); margin-block: var(--s-12); }

.empty { text-align: center; padding: var(--s-16) var(--s-4); color: var(--text-tertiary); }
.empty svg { width: 48px; height: 48px; margin: 0 auto var(--s-4); color: var(--text-muted); }

/* CTA banner */
.cta-banner {
  position: relative;
  padding: var(--s-16);
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.18), rgba(6, 182, 212, 0.10));
  border: 1px solid var(--border-brand);
  border-radius: var(--r-2xl);
  overflow: hidden;
  isolation: isolate;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-5);
}

.cta-banner::before { content: ''; position: absolute; top: -50%; left: -10%; width: 700px; height: 700px; background: radial-gradient(circle, var(--brand-glow), transparent 60%); filter: blur(80px); z-index: -1; }
.cta-banner__title { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3.25rem); font-weight: 800; letter-spacing: -0.025em; line-height: 1.1; max-width: 720px; }
.cta-banner__sub { font-size: var(--t-lg); color: var(--text-secondary); max-width: 520px; margin: 0 auto; }

/* Page hero */
.page-hero { position: relative; padding: clamp(64px, 8vw, 120px) 0 var(--s-12); border-bottom: 1px solid var(--border-subtle); overflow: hidden; isolation: isolate; }
.page-hero__bg { position: absolute; inset: 0; z-index: -1; background: radial-gradient(700px 400px at 20% 0%, rgba(168, 85, 247, 0.15), transparent 60%), radial-gradient(500px 400px at 80% 30%, rgba(6, 182, 212, 0.10), transparent 60%); }
.page-hero__breadcrumb { display: flex; align-items: center; gap: var(--s-2); font-size: var(--t-xs); color: var(--text-tertiary); margin-bottom: var(--s-4); }
.page-hero__breadcrumb a:hover { color: var(--text-primary); }
.page-hero__title { font-family: var(--font-display); font-size: clamp(2.25rem, 5vw, 4rem); font-weight: 800; line-height: 1.05; letter-spacing: -0.03em; margin-bottom: var(--s-3); }
.page-hero__sub { color: var(--text-secondary); font-size: var(--t-lg); max-width: 60ch; line-height: 1.55; }

/* Tags */
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; background: var(--bg-elevated); border: 1px solid var(--border-subtle); border-radius: var(--r-full); font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-secondary); }
.tag--brand { background: rgba(168, 85, 247, 0.12); border-color: var(--border-brand); color: var(--brand-light); }
.tag--cyan { background: rgba(6, 182, 212, 0.12); border-color: rgba(6, 182, 212, 0.3); color: var(--cyan-light); }
.tag--green { background: rgba(16, 185, 129, 0.12); border-color: rgba(16, 185, 129, 0.3); color: var(--green); }
.tag--yellow { background: rgba(251, 191, 36, 0.12); border-color: rgba(251, 191, 36, 0.3); color: var(--yellow); }

/* Modal */
.modal-backdrop { position: fixed; inset: 0; background: rgba(7, 8, 15, 0.75); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); z-index: var(--z-modal-backdrop); display: grid; place-items: center; padding: var(--s-4); opacity: 0; pointer-events: none; transition: opacity var(--t-base); }
.modal-backdrop.is-open { opacity: 1; pointer-events: auto; }
.modal { width: 100%; max-width: 540px; max-height: 90vh; overflow-y: auto; background: var(--bg-card); border: 1px solid var(--border-default); border-radius: var(--r-xl); padding: var(--s-8); box-shadow: var(--sh-xl); z-index: var(--z-modal); transform: translateY(20px); transition: transform var(--t-base); position: relative; }
.modal-backdrop.is-open .modal { transform: translateY(0); }
.modal__close { position: absolute; top: var(--s-4); right: var(--s-4); width: 36px; height: 36px; border-radius: var(--r-full); background: var(--bg-elevated); display: grid; place-items: center; color: var(--text-secondary); }
.modal__close:hover { background: var(--bg-card-hover); color: var(--text-primary); }
.modal__close svg { width: 16px; height: 16px; }

/* Auth */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
@media (max-width: 1024px) { .auth { grid-template-columns: 1fr; } }
.auth__visual { background: linear-gradient(135deg, rgba(168, 85, 247, 0.15), rgba(6, 182, 212, 0.08)); position: relative; display: flex; align-items: center; justify-content: center; padding: var(--s-12); overflow: hidden; }
@media (max-width: 1024px) { .auth__visual { display: none; } }
.auth__visual::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black, transparent); }
.auth__visual-content { max-width: 420px; text-align: center; position: relative; z-index: 1; }
.auth__panel { display: flex; align-items: center; justify-content: center; padding: var(--s-12); background: var(--bg-base); }
.auth__form { width: 100%; max-width: 420px; }

/* Pagination */
.pagination { display: flex; justify-content: center; gap: var(--s-2); margin-top: var(--s-12); }
.page-btn { min-width: 40px; height: 40px; padding: 0 var(--s-3); border-radius: var(--r-md); background: var(--bg-card); border: 1px solid var(--border-subtle); color: var(--text-secondary); font-weight: 600; font-size: var(--t-sm); display: inline-flex; align-items: center; justify-content: center; }
.page-btn:hover { border-color: var(--border-default); color: var(--text-primary); }
.page-btn.is-active { background: var(--brand); color: white; border-color: var(--brand); }

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.shimmer { background: linear-gradient(110deg, var(--bg-card) 8%, var(--bg-card-hover) 18%, var(--bg-card) 33%); background-size: 200% 100%; animation: shimmer 1.6s infinite linear; border-radius: var(--r-md); }

/* Toasts */
.toast-container { position: fixed; bottom: var(--s-6); right: var(--s-6); display: flex; flex-direction: column; gap: var(--s-2); z-index: var(--z-tooltip); pointer-events: none; }
.toast { background: var(--bg-card); border: 1px solid var(--border-default); border-radius: var(--r-md); padding: var(--s-3) var(--s-4); font-size: var(--t-sm); color: var(--text-primary); box-shadow: var(--sh-lg); pointer-events: auto; animation: toast-in 250ms ease; display: flex; align-items: center; gap: var(--s-2); max-width: 360px; }
.toast--success { border-color: rgba(16, 185, 129, 0.4); }
.toast--error { border-color: rgba(239, 68, 68, 0.4); }

@keyframes toast-in {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}
