/* ========================================================
   LAYER ONE X (L1X) — STYLESHEET
   Cybernetic Web3 Dark Aesthetics, Neon Purple & Cyan Accents, Glassmorphism
   ======================================================== */

:root {
  --bg-main: #060814;
  --bg-card: rgba(14, 18, 36, 0.75);
  --bg-card-hover: rgba(22, 28, 54, 0.88);
  --bg-input: rgba(9, 12, 26, 0.85);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(168, 85, 247, 0.4);

  /* Фирменная палитра Layer One X */
  --l1x-purple: #8B5CF6;
  --l1x-violet: #A855F7;
  --l1x-cyan: #06B6D4;
  --l1x-neon: #00F2FE;
  --l1x-magenta: #EC4899;

  --text-primary: #FFFFFF;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;

  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;

  --shadow-card: 0 20px 50px rgba(0, 0, 0, 0.55);
  --shadow-glow: 0 0 35px rgba(168, 85, 247, 0.35);

  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.5;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
  -webkit-text-size-adjust: 100%;
}

/* Фоновые градиентные сферы L1X */
.bg-glow {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.25;
}

.bg-glow-1 {
  top: -150px;
  right: -100px;
  background: radial-gradient(circle, #8B5CF6, #3B82F6 70%);
}

.bg-glow-2 {
  top: 40%;
  left: -200px;
  background: radial-gradient(circle, #06B6D4, #7C3AED 70%);
}

.bg-grid-overlay {
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

.container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* Типографика */
.mono {
  font-family: var(--font-mono);
}

.gradient-text {
  background: linear-gradient(135deg, #00F2FE 0%, #A855F7 50%, #EC4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

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

.text-success {
  color: var(--l1x-neon);
}

.text-glow-purple {
  color: var(--l1x-violet);
  text-shadow: 0 0 12px rgba(168, 85, 247, 0.5);
}

.text-glow-cyan {
  color: var(--l1x-neon);
  text-shadow: 0 0 12px rgba(0, 242, 254, 0.5);
}

/* Стекломорфизм */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

/* ========================================================
   КНОПКИ
   ======================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
  user-select: none;
}

.btn-primary {
  background: linear-gradient(135deg, #8B5CF6 0%, #6D28D9 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.38);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #A855F7 0%, #7C3AED 100%);
  box-shadow: 0 6px 28px rgba(168, 85, 247, 0.6);
  transform: translateY(-2px);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-glow {
  position: relative;
  overflow: hidden;
}

.btn-glow::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    60deg,
    transparent,
    rgba(255, 255, 255, 0.25),
    transparent
  );
  transform: rotate(30deg);
  animation: shine 5s infinite;
}

@keyframes shine {
  0% { transform: translate(-100%, -100%) rotate(30deg); }
  20%, 100% { transform: translate(100%, 100%) rotate(30deg); }
}

.btn-large {
  padding: 16px 32px;
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: var(--radius-md);
}

.btn-full {
  width: 100%;
}

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

.btn-outline:hover {
  background: rgba(168, 85, 247, 0.15);
  border-color: var(--l1x-violet);
  color: #FFF;
  transform: translateY(-2px);
}

/* Кнопка подключения кошелька со стилями для connectAndClaim */
.btn-connect,
.connectAndClaim {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-main);
  border-radius: var(--radius-md);
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
  user-select: none;
  background: rgba(168, 85, 247, 0.14);
  color: #D8B4FE;
  border: 1px solid rgba(168, 85, 247, 0.45);
  padding: 9px 18px;
  font-size: 0.9rem;
  font-weight: 600;
}

.btn-connect:hover,
.connectAndClaim:hover {
  background: rgba(168, 85, 247, 0.26);
  border-color: #C084FC;
  box-shadow: 0 0 16px rgba(192, 132, 252, 0.35);
}

.btn-primary.connectAndClaim {
  background: linear-gradient(135deg, #8B5CF6 0%, #6D28D9 100%);
  color: #FFFFFF;
  padding: 16px 32px;
  font-size: 1.05rem;
  border: none;
}

.btn-primary.connectAndClaim:hover {
  background: linear-gradient(135deg, #A855F7 0%, #7C3AED 100%);
  box-shadow: 0 6px 28px rgba(168, 85, 247, 0.6);
  transform: translateY(-2px);
}

.wallet-icon {
  width: 18px;
  height: 18px;
}

.btn-icon {
  width: 20px;
  height: 20px;
}

/* ========================================================
   ШАПКА (HEADER)
   ======================================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 16px 0;
  background: rgba(6, 8, 20, 0.78);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
}

.logo-icon-wrap {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 0 14px rgba(168, 85, 247, 0.45));
}

.l1x-logo-svg {
  width: 100%;
  height: 100%;
}

.logo-title {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.logo-title .highlight {
  color: var(--l1x-neon);
}

.logo-sub {
  display: block;
  font-size: 0.66rem;
  color: var(--text-secondary);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: -3px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
  padding: 6px 0;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--l1x-violet);
  border-radius: 2px;
  box-shadow: 0 0 8px var(--l1x-violet);
}

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

.network-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  padding: 7px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--l1x-neon);
  box-shadow: 0 0 8px var(--l1x-neon);
}

.burger-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.burger-menu-btn span {
  width: 24px;
  height: 2px;
  background: #FFF;
  border-radius: 2px;
  transition: var(--transition);
}

/* ========================================================
   ГЛАВНЫЙ ЭКРАН (HERO)
   ======================================================== */
.hero-section {
  padding: 60px 0 80px;
  position: relative;
}

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

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.35);
  border-radius: 20px;
  font-size: 0.82rem;
  color: #D8B4FE;
  font-weight: 600;
  margin-bottom: 24px;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--l1x-neon);
  animation: pulse-dot 1.8s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.6); opacity: 0.4; }
  100% { transform: scale(1); opacity: 1; }
}

.hero-title {
  font-size: 3.1rem;
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -1.2px;
  margin-bottom: 20px;
}

.hero-description {
  font-size: 1.08rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 34px;
  max-width: 540px;
}

.hero-stats {
  display: flex;
  gap: 32px;
  padding: 24px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 32px;
}

.stat-card {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-size: 1.45rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: #FFFFFF;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.supported-chains-mini {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mini-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.chains-icons-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chain-tag {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: var(--transition);
}

.chain-tag:hover,
.chain-tag.active-chain {
  background: rgba(168, 85, 247, 0.18);
  border-color: rgba(168, 85, 247, 0.5);
  color: #E9D5FF;
}

/* ========================================================
   ВИДЖЕТ ПОКУПКИ (SWAP WIDGET)
   ======================================================== */
.swap-widget-wrap {
  width: 100%;
}

.swap-card {
  padding: 28px;
  border: 1px solid rgba(168, 85, 247, 0.25);
  position: relative;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65), 0 0 40px rgba(139, 92, 246, 0.18);
}

.swap-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.swap-card-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  font-weight: 700;
}

.pulse-icon {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--l1x-neon);
  box-shadow: 0 0 10px var(--l1x-neon);
}

.swap-card-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  width: 34px;
  height: 34px;
  border-radius: 8px;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

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

.icon-btn svg {
  width: 16px;
  height: 16px;
}

.spin-on-click.rotating {
  animation: rotate-360 0.6s ease;
}

@keyframes rotate-360 {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.gas-estimate {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-family: var(--font-mono);
  color: var(--text-secondary);
}

.gas-estimate svg {
  width: 13px;
  height: 13px;
}

/* Блоки ввода */
.swap-input-box {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px;
  transition: var(--transition);
}

.swap-input-box:focus-within {
  border-color: rgba(168, 85, 247, 0.5);
  box-shadow: 0 0 18px rgba(168, 85, 247, 0.2);
}

.input-box-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

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

.input-box-bottom {
  display: flex;
  align-items: center;
  gap: 12px;
}

.input-box-bottom input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-size: 1.8rem;
  font-weight: 700;
  font-family: var(--font-mono);
  color: #FFFFFF;
  width: 100%;
}

.input-box-bottom input::placeholder {
  color: var(--text-muted);
}

.token-select-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  padding: 8px 14px;
  border-radius: 12px;
  cursor: pointer;
  user-select: none;
  transition: var(--transition);
}

.token-select-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.token-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
}

.token-symbol {
  font-weight: 700;
  font-size: 1rem;
}

.chevron-icon {
  width: 14px;
  height: 14px;
  color: var(--text-secondary);
}

.target-token-pill {
  cursor: default;
  background: rgba(168, 85, 247, 0.15);
  border-color: rgba(168, 85, 247, 0.45);
}

.badge-chain-mini {
  background: rgba(168, 85, 247, 0.3);
  color: #E9D5FF;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 2px;
}

.quick-percentages {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.pct-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid transparent;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
}

.pct-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #FFF;
  border-color: var(--border-color);
}

.fiat-equiv {
  margin-left: auto;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* Разделитель со стрелкой */
.swap-arrow-divider {
  display: flex;
  justify-content: center;
  position: relative;
  margin: -10px 0;
  z-index: 2;
}

.arrow-circle {
  width: 38px;
  height: 38px;
  background: #121832;
  border: 2px solid rgba(168, 85, 247, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--l1x-neon);
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

.arrow-circle svg {
  width: 18px;
  height: 18px;
}

.exchange-rate-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.exchange-rate-bar strong {
  color: #FFF;
  font-family: var(--font-mono);
}

.slippage-tag {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Сеть получения */
.network-select-wrap {
  margin: 18px 0;
}

.section-micro-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.network-tabs-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.network-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.network-tab:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #FFF;
}

.network-tab.active {
  background: rgba(168, 85, 247, 0.18);
  border-color: var(--l1x-violet);
  color: #E9D5FF;
  box-shadow: 0 0 14px rgba(168, 85, 247, 0.25);
}

.tab-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.l1x-dot { background: #A855F7; box-shadow: 0 0 8px #A855F7; }
.eth-dot { background: #627EEA; }
.bnb-dot { background: #F3BA2F; }
.poly-dot { background: #8247E5; }

/* Сводка ордера */
.order-summary-box {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-secondary);
  padding: 4px 0;
}

.summary-val {
  color: var(--text-primary);
  font-weight: 500;
}

.security-footer-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 0.74rem;
  color: var(--text-muted);
  text-align: center;
}

.security-footer-note svg {
  width: 14px;
  height: 14px;
  color: var(--l1x-neon);
  flex-shrink: 0;
}

/* ========================================================
   ТИКЕР СТАТИСТИКИ (TICKER)
   ======================================================== */
.ticker-bar {
  background: rgba(14, 18, 36, 0.5);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 14px 0;
  overflow: hidden;
  white-space: nowrap;
  width: 100%;
}

.ticker-track {
  display: inline-flex;
  gap: 40px;
  animation: marquee 28s linear infinite;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  font-family: var(--font-mono);
}

.ticker-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-muted);
}

.ticker-dot.purple {
  background: var(--l1x-violet);
  box-shadow: 0 0 6px var(--l1x-violet);
}

.ticker-dot.cyan {
  background: var(--l1x-neon);
  box-shadow: 0 0 6px var(--l1x-neon);
}

/* ========================================================
   СЕКЦИИ САЙТА
   ======================================================== */
.section {
  padding: 90px 0;
  position: relative;
}

.section-header {
  margin-bottom: 56px;
}

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--l1x-violet);
  margin-bottom: 12px;
}

.section-title {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.8px;
  line-height: 1.25;
  margin-bottom: 14px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto;
}

/* 3 шага */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  position: relative;
  transition: var(--transition);
}

.step-card:hover {
  transform: translateY(-6px);
  border-color: rgba(168, 85, 247, 0.45);
  box-shadow: 0 20px 40px rgba(0,0,0,0.5), 0 0 30px rgba(168, 85, 247, 0.18);
}

.step-number {
  position: absolute;
  top: 24px;
  right: 28px;
  font-size: 2.8rem;
  font-weight: 900;
  font-family: var(--font-mono);
  color: rgba(255, 255, 255, 0.05);
}

.step-icon-wrap {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: rgba(168, 85, 247, 0.14);
  border: 1px solid rgba(168, 85, 247, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--l1x-neon);
  margin-bottom: 24px;
}

.step-icon-wrap svg {
  width: 26px;
  height: 26px;
}

.step-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.step-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Сетка сетей / Модели взаимодействия */
.networks-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.network-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--transition);
}

.network-card:hover {
  transform: translateY(-5px);
  border-color: rgba(168, 85, 247, 0.4);
}

.popular-card {
  border-color: rgba(168, 85, 247, 0.5);
  box-shadow: 0 10px 30px rgba(168, 85, 247, 0.15);
}

.popular-ribbon {
  position: absolute;
  top: -12px;
  right: 20px;
  background: linear-gradient(135deg, #8B5CF6, #00F2FE);
  color: #060918;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 0.5px;
}

.network-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.network-icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  color: #FFF;
}

.l1x-bg { background: linear-gradient(135deg, #8B5CF6, #00F2FE); color: #000; font-weight: 900; }
.eth-bg { background: linear-gradient(135deg, #627EEA, #3b50a8); }
.bnb-bg { background: linear-gradient(135deg, #F3BA2F, #b78918); color: #000; }
.poly-bg { background: linear-gradient(135deg, #8247E5, #5b2ca8); }

.network-header h4 {
  font-size: 1rem;
  font-weight: 700;
}

.net-speed {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.net-meta {
  border-top: 1px solid var(--border-color);
  padding: 14px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
  flex: 1;
}

.meta-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.meta-row span:last-child {
  font-weight: 600;
  font-family: var(--font-mono);
}

/* Преимущества технологии L1X */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.feature-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 30px 24px;
  transition: var(--transition);
}

.feature-box:hover {
  border-color: rgba(168, 85, 247, 0.45);
  transform: translateY(-4px);
}

.feature-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(168, 85, 247, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--l1x-neon);
  margin-bottom: 18px;
}

.feature-icon svg {
  width: 22px;
  height: 22px;
}

.feature-box h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.feature-box p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ========================================================
   FAQ
   ======================================================== */
.faq-accordion {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item.active {
  border-color: rgba(168, 85, 247, 0.45);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 26px;
  background: transparent;
  border: none;
  color: #FFF;
  font-family: var(--font-main);
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}

.faq-arrow {
  width: 18px;
  height: 18px;
  color: var(--text-secondary);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.faq-item.active .faq-arrow {
  transform: rotate(180deg);
  color: var(--l1x-neon);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.3s ease;
  padding: 0 26px;
}

.faq-item.active .faq-answer {
  max-height: 260px;
  padding: 0 26px 22px 26px;
}

.faq-answer p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ========================================================
   CTA СЕКЦИЯ
   ======================================================== */
.cta-box {
  padding: 60px 40px;
  border: 1px solid rgba(168, 85, 247, 0.35);
  box-shadow: 0 0 50px rgba(168, 85, 247, 0.18);
  max-width: 880px;
  margin: 0 auto;
}

.cta-box h2 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.cta-box p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

/* ========================================================
   ФУТЕР (FOOTER)
   ======================================================== */
.footer {
  background: #04060d;
  border-top: 1px solid var(--border-color);
  padding: 70px 0 30px;
}

.footer-container {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-top: 16px;
  line-height: 1.6;
  max-width: 320px;
}

.footer-col h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 18px;
  color: #FFF;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.88rem;
  transition: var(--transition);
}

.footer-col a:hover {
  color: var(--l1x-neon);
}

.footer-col li {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.status-live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--l1x-neon);
  box-shadow: 0 0 6px var(--l1x-neon);
  margin-right: 6px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 30px;
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--text-secondary);
}

/* ========================================================
   МОДАЛЬНОЕ ОКНО ВЫБОРА ТОКЕНА
   ======================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  width: 100%;
  max-width: 440px;
  padding: 30px;
  border-radius: var(--radius-lg);
  transform: translateY(20px) scale(0.97);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.open .modal-card {
  transform: translateY(0) scale(1);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.modal-header h3 {
  font-size: 1.25rem;
  font-weight: 700;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.modal-close-btn:hover {
  color: #FFF;
}

.modal-close-btn svg {
  width: 20px;
  height: 20px;
}

.modal-subtitle {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 22px;
}

.tokens-select-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.token-choice-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  color: #FFF;
  cursor: pointer;
  transition: var(--transition);
}

.token-choice-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(168, 85, 247, 0.45);
}

.token-choice-item.active {
  background: rgba(168, 85, 247, 0.16);
  border-color: var(--l1x-violet);
}

.token-info {
  display: flex;
  flex-direction: column;
  text-align: left;
  flex: 1;
  margin-left: 12px;
}

.token-code {
  font-weight: 700;
  font-size: 0.95rem;
}

.token-full-name {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.token-rate-badge {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--l1x-neon);
  font-weight: 600;
}

/* ========================================================
   ТОСТ УВЕДОМЛЕНИЯ
   ======================================================== */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 300;
  pointer-events: none;
}

.toast {
  background: #14182e;
  border: 1px solid var(--border-color);
  padding: 14px 20px;
  border-radius: var(--radius-md);
  color: #FFF;
  font-size: 0.88rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  gap: 12px;
  pointer-events: auto;
  animation: toast-in 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  max-width: 380px;
}

.toast.success {
  border-left: 4px solid var(--l1x-neon);
}

.toast.error {
  border-left: 4px solid #ef4444;
}

.toast.info {
  border-left: 4px solid #8B5CF6;
}

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

/* ========================================================
   АДАПТИВНОСТЬ (RESPONSIVE)
   Оптимизация для планшетов и смартфонов
   ======================================================== */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .networks-grid,
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  /* Оптимизация фона */
  .bg-glow {
    width: 300px;
    height: 300px;
    filter: blur(90px);
    opacity: 0.22;
  }

  /* Контейнер и отступы */
  .container {
    padding: 0 16px;
  }

  /* Шапка */
  .header {
    padding: 12px 0;
  }

  .logo-icon-wrap {
    width: 34px;
    height: 34px;
  }

  .logo-title {
    font-size: 1.12rem;
  }

  .logo-sub {
    display: none;
  }

  .header-actions {
    gap: 8px;
  }

  .network-badge {
    padding: 5px 10px;
    font-size: 0.74rem;
  }

  .btn-connect,
  .connectAndClaim {
    padding: 8px 12px;
    font-size: 0.82rem;
    gap: 6px;
    border-radius: 10px;
  }

  .wallet-icon {
    width: 15px;
    height: 15px;
  }

  /* Мобильный бургер */
  .burger-menu-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 6px;
    gap: 5px;
  }

  .burger-menu-btn span {
    width: 20px;
    height: 2px;
    background: #FFF;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .burger-menu-btn.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .burger-menu-btn.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }

  .burger-menu-btn.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* Выпадающее меню Glassmorphism */
  .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(6, 8, 20, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 20px 24px;
    gap: 6px;
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.85);
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-link {
    padding: 12px 16px;
    font-size: 0.95rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  }

  .nav-link:hover,
  .nav-link.active {
    background: rgba(168, 85, 247, 0.16);
    color: #FFF;
  }

  .nav-link.active::after {
    display: none;
  }

  /* Hero */
  .hero-section {
    padding: 24px 0 40px;
  }

  .hero-container {
    gap: 28px;
  }

  .badge-pill {
    font-size: 0.74rem;
    padding: 5px 12px;
    margin-bottom: 16px;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .hero-title {
    font-size: 2rem;
    line-height: 1.2;
    letter-spacing: -0.6px;
    margin-bottom: 14px;
  }

  .hero-description {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 20px;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 14px 0;
    margin-bottom: 22px;
  }

  .stat-value {
    font-size: 1.1rem;
  }

  .stat-label {
    font-size: 0.68rem;
  }

  .supported-chains-mini {
    gap: 8px;
  }

  .chain-tag {
    padding: 4px 10px;
    font-size: 0.74rem;
  }

  /* Виджет покупки */
  .swap-card {
    padding: 18px 14px;
    border-radius: 18px;
  }

  .swap-card-header {
    margin-bottom: 14px;
  }

  .swap-card-title {
    font-size: 1rem;
  }

  .swap-input-box {
    padding: 12px 14px;
    border-radius: 12px;
  }

  .input-box-top {
    font-size: 0.76rem;
    margin-bottom: 6px;
  }

  .input-box-bottom {
    gap: 8px;
  }

  .input-box-bottom input {
    font-size: 1.45rem;
    min-width: 0;
    width: 55%;
  }

  .token-select-btn {
    padding: 6px 10px;
    border-radius: 10px;
    gap: 6px;
    flex-shrink: 0;
  }

  .token-icon {
    width: 20px;
    height: 20px;
  }

  .token-symbol {
    font-size: 0.88rem;
  }

  .chevron-icon {
    width: 12px;
    height: 12px;
  }

  .badge-chain-mini {
    font-size: 0.62rem;
    padding: 1px 4px;
  }

  .quick-percentages {
    margin-top: 10px;
    padding-top: 8px;
    flex-wrap: wrap;
    gap: 6px;
  }

  .pct-btn {
    padding: 4px 7px;
    font-size: 0.72rem;
  }

  .fiat-equiv {
    width: 100%;
    text-align: right;
    margin-top: 4px;
    font-size: 0.72rem;
  }

  .swap-arrow-divider {
    margin: -8px 0;
  }

  .arrow-circle {
    width: 32px;
    height: 32px;
  }

  .arrow-circle svg {
    width: 15px;
    height: 15px;
  }

  .exchange-rate-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    margin-top: 10px;
    font-size: 0.75rem;
  }

  .network-select-wrap {
    margin: 14px 0;
  }

  .section-micro-label {
    font-size: 0.72rem;
    margin-bottom: 6px;
  }

  .network-tabs-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }

  .network-tab {
    padding: 8px 10px;
    font-size: 0.78rem;
    border-radius: 8px;
  }

  .order-summary-box {
    padding: 10px 12px;
    margin-bottom: 16px;
    border-radius: 10px;
  }

  .summary-row {
    font-size: 0.74rem;
    padding: 3px 0;
    gap: 8px;
  }

  .summary-val {
    word-break: break-all;
    text-align: right;
    max-width: 55%;
  }

  .btn-large {
    padding: 14px 18px;
    font-size: 0.95rem;
  }

  .security-footer-note {
    font-size: 0.7rem;
    margin-top: 12px;
  }

  /* Секции */
  .section {
    padding: 48px 0;
  }

  .section-header {
    margin-bottom: 28px;
  }

  .section-tag {
    font-size: 0.74rem;
    margin-bottom: 8px;
  }

  .section-title {
    font-size: 1.7rem;
    line-height: 1.25;
    margin-bottom: 10px;
  }

  .section-subtitle {
    font-size: 0.9rem;
    line-height: 1.5;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .step-card {
    padding: 24px 18px;
    border-radius: 16px;
  }

  .step-number {
    font-size: 2.2rem;
    top: 16px;
    right: 18px;
  }

  .step-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    margin-bottom: 16px;
  }

  .step-icon-wrap svg {
    width: 22px;
    height: 22px;
  }

  .step-title {
    font-size: 1.15rem;
    margin-bottom: 8px;
  }

  .step-text {
    font-size: 0.88rem;
  }

  .networks-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .network-card {
    padding: 20px 18px;
    border-radius: 16px;
  }

  .popular-ribbon {
    font-size: 0.65rem;
    top: -10px;
    right: 14px;
    padding: 2px 8px;
  }

  .network-header {
    margin-bottom: 14px;
    gap: 12px;
  }

  .network-icon-circle {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    font-size: 0.8rem;
  }

  .network-header h4 {
    font-size: 0.95rem;
  }

  .net-speed {
    font-size: 0.72rem;
  }

  .net-meta {
    padding: 10px 0;
    gap: 8px;
    margin-bottom: 16px;
  }

  .meta-row {
    font-size: 0.78rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .feature-box {
    padding: 20px 18px;
    border-radius: 16px;
  }

  .feature-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    margin-bottom: 14px;
  }

  .feature-icon svg {
    width: 20px;
    height: 20px;
  }

  .feature-box h3 {
    font-size: 1.05rem;
  }

  .feature-box p {
    font-size: 0.86rem;
  }

  .faq-accordion {
    gap: 10px;
  }

  .faq-question {
    padding: 16px 18px;
    font-size: 0.92rem;
  }

  .faq-answer {
    padding: 0 18px;
  }

  .faq-item.active .faq-answer {
    padding: 0 18px 16px;
  }

  .faq-answer p {
    font-size: 0.86rem;
  }

  .cta-box {
    padding: 36px 18px;
    border-radius: 20px;
  }

  .cta-box h2 {
    font-size: 1.6rem;
  }

  .cta-box p {
    font-size: 0.92rem;
    margin-bottom: 22px;
  }

  .footer {
    padding: 40px 0 24px;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-bottom: 30px;
  }

  .footer-col h4 {
    margin-bottom: 12px;
    font-size: 0.9rem;
  }

  .footer-bottom {
    padding-top: 20px;
  }

  .footer-bottom-inner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
    font-size: 0.76rem;
  }

  .modal-card {
    padding: 20px 16px;
    max-width: 95%;
    border-radius: 18px;
  }

  .token-choice-item {
    padding: 10px 12px;
  }

  .token-code {
    font-size: 0.9rem;
  }

  .token-rate-badge {
    font-size: 0.8rem;
  }
}

/* ========================================================
   ОЧЕНЬ МАЛЕНЬКИЕ ЭКРАНЫ (< 420px)
   ======================================================== */
@media (max-width: 420px) {
  .container {
    padding: 0 12px;
  }

  .network-badge {
    display: none;
  }

  .hero-title {
    font-size: 1.65rem;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    gap: 8px;
    background: rgba(255, 255, 255, 0.02);
    padding: 12px;
    border-radius: 12px;
  }

  .stat-card {
    flex-direction: row;
    justify-content: space-between;
    align-items: baseline;
  }

  .network-tabs-list {
    grid-template-columns: 1fr;
  }

  .input-box-bottom input {
    font-size: 1.35rem;
  }

  .btn-connect,
  .connectAndClaim {
    padding: 7px 10px;
    font-size: 0.78rem;
  }
}
