/* =============================================
   NovaDEX — Global Styles
   ============================================= */

:root {
  --bg-primary: #0a0b0f;
  --bg-secondary: #12131a;
  --bg-card: #161822;
  --bg-card-hover: #1a1c2a;
  --bg-input: #0d0e14;
  --border: #1e2030;
  --border-hover: #2a2d42;
  --text-primary: #e8eaed;
  --text-secondary: #8b8fa3;
  --text-muted: #5a5e73;
  --accent-purple: #9945FF;
  --accent-green: #14F195;
  --accent-blue: #00D1FF;
  --accent-pink: #FF6B9D;
  --accent-red: #FF4757;
  --gradient-main: linear-gradient(135deg, #9945FF 0%, #14F195 50%, #00D1FF 100%);
  --gradient-purple: linear-gradient(135deg, #9945FF, #7B2FFF);
  --gradient-green: linear-gradient(135deg, #14F195, #00D1FF);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
  --shadow-md: 0 8px 32px rgba(0,0,0,0.4);
  --shadow-lg: 0 16px 64px rgba(0,0,0,0.5);
  --shadow-glow: 0 0 40px rgba(153,69,255,0.15);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'JetBrains Mono', monospace;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

::selection {
  background: rgba(153,69,255,0.3);
  color: #fff;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-hover); }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* =============================================
   Background Effects
   ============================================= */

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

.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}

.bg-glow-1 {
  width: 600px; height: 600px;
  top: -200px; right: -100px;
  background: rgba(153,69,255,0.08);
  animation: float1 20s ease-in-out infinite;
}

.bg-glow-2 {
  width: 500px; height: 500px;
  bottom: 20%; left: -150px;
  background: rgba(20,241,149,0.05);
  animation: float2 25s ease-in-out infinite;
}

.bg-glow-3 {
  width: 400px; height: 400px;
  top: 50%; right: 10%;
  background: rgba(0,209,255,0.04);
  animation: float3 22s ease-in-out infinite;
}

#particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

@keyframes float1 {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(30px, 50px); }
  66% { transform: translate(-20px, 30px); }
}

@keyframes float2 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(40px, -30px); }
}

@keyframes float3 {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(-30px, -40px); }
  66% { transform: translate(20px, 20px); }
}

/* =============================================
   Navigation
   ============================================= */

.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 0;
  backdrop-filter: blur(20px);
  background: rgba(10,11,15,0.8);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: rgba(10,11,15,0.95);
  box-shadow: var(--shadow-md);
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

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

.logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-text {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.logo-badge {
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--gradient-main);
  color: #000;
  letter-spacing: 1px;
  text-transform: uppercase;
}

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

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 4px;
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.network-selector {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
}

.network-selector:hover {
  border-color: var(--border-hover);
}

.network-dot {
  width: 8px; height: 8px;
  background: var(--accent-green);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(20,241,149,0.5);
}

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

.mobile-menu-btn span {
  width: 24px; height: 2px;
  background: var(--text-secondary);
  border-radius: 1px;
  transition: all 0.3s;
}

/* =============================================
   Buttons
   ============================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-main);
  color: #000;
  box-shadow: 0 4px 20px rgba(153,69,255,0.3);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 30px rgba(153,69,255,0.4);
}

.btn-connect {
  background: rgba(153,69,255,0.12);
  color: var(--accent-purple);
  border: 1px solid rgba(153,69,255,0.2);
}

.btn-connect:hover {
  background: rgba(153,69,255,0.2);
  border-color: rgba(153,69,255,0.4);
}

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

.btn-ghost:hover {
  background: rgba(255,255,255,0.08);
  border-color: var(--border-hover);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 15px;
  border-radius: var(--radius-md);
}

.btn-swap {
  width: 100%;
  padding: 16px;
  font-size: 16px;
  font-weight: 700;
  border-radius: var(--radius-md);
  background: var(--gradient-main);
  color: #000;
  box-shadow: 0 4px 24px rgba(153,69,255,0.25);
  transition: all 0.3s ease;
}

.btn-swap:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 32px rgba(153,69,255,0.35);
}

/* =============================================
   Hero Section
   ============================================= */

.hero {
  position: relative;
  z-index: 1;
  padding: 160px 0 80px;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px 6px 10px;
  border-radius: 100px;
  background: rgba(20,241,149,0.08);
  border: 1px solid rgba(20,241,149,0.15);
  color: var(--accent-green);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 24px;
}

.pulse-dot {
  width: 8px; height: 8px;
  background: var(--accent-green);
  border-radius: 50%;
  display: inline-block;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(20,241,149,0.4); }
  50% { opacity: 0.8; box-shadow: 0 0 0 8px rgba(20,241,149,0); }
}

.hero-title {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -2px;
  margin-bottom: 20px;
}

.gradient-text {
  background: var(--gradient-main);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 64px;
}

.stats-ticker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 20px 32px;
  background: rgba(22,24,34,0.6);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 0 32px;
}

.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.stat-value {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.5px;
  font-family: var(--mono);
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* =============================================
   Partners
   ============================================= */

.partners {
  position: relative;
  z-index: 1;
  padding: 48px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.partners-label {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
  margin-bottom: 24px;
}

.partners-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.partner-logo {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  opacity: 0.6;
  transition: opacity 0.3s;
}

.partner-logo:hover {
  opacity: 1;
}

/* =============================================
   Swap Section
   ============================================= */

.swap-section {
  position: relative;
  z-index: 1;
  padding: 80px 0;
}

.swap-layout {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 24px;
  align-items: start;
}

.swap-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

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

.swap-tabs {
  display: flex;
  gap: 4px;
  background: var(--bg-input);
  border-radius: var(--radius-sm);
  padding: 3px;
}

.swap-tab {
  padding: 8px 16px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

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

.settings-btn {
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}

.settings-btn:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,0.05);
}

.token-input-group {
  background: var(--bg-input);
  border: 1px solid transparent;
  border-radius: var(--radius-lg);
  padding: 16px;
  transition: border-color 0.2s;
}

.token-input-group:focus-within {
  border-color: var(--border-hover);
}

.token-input-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.token-input-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
}

.token-balance {
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--mono);
}

.token-input-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.token-amount-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--mono);
  font-size: 28px;
  font-weight: 600;
  color: var(--text-primary);
  min-width: 0;
}

.token-amount-input::placeholder {
  color: var(--text-muted);
}

.token-selector {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}

.token-selector:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}

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

.token-symbol {
  font-weight: 700;
  font-size: 16px;
  color: var(--text-primary);
}

.token-input-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
}

.token-usd {
  font-size: 13px;
  color: var(--text-muted);
  font-family: var(--mono);
}

.quick-amounts {
  display: flex; gap: 6px;
}

.quick-amt {
  padding: 3px 10px;
  border-radius: 6px;
  background: rgba(153,69,255,0.08);
  border: 1px solid rgba(153,69,255,0.12);
  color: var(--accent-purple);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font);
}

.quick-amt:hover {
  background: rgba(153,69,255,0.15);
}

.swap-direction-wrapper {
  display: flex;
  justify-content: center;
  margin: -8px 0;
  position: relative;
  z-index: 2;
}

.swap-direction-btn {
  width: 40px; height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 3px solid var(--bg-input);
  border-radius: 50%;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s ease;
}

.swap-direction-btn:hover {
  color: var(--accent-purple);
  transform: rotate(180deg);
}

.swap-details {
  margin: 16px 0;
  padding: 12px 16px;
  background: rgba(255,255,255,0.02);
  border-radius: var(--radius-md);
}

.swap-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  font-size: 13px;
  color: var(--text-secondary);
}

.swap-detail-row span:last-child {
  color: var(--text-primary);
  font-weight: 500;
  font-family: var(--mono);
  font-size: 12px;
}

.text-green {
  color: var(--accent-green) !important;
}

.route-badge {
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(20,241,149,0.1);
  color: var(--accent-green);
  font-weight: 600;
}

.swap-footer {
  text-align: center;
  margin-top: 12px;
  font-size: 11px;
  color: var(--text-muted);
}

/* =============================================
   Chart Panel
   ============================================= */

.chart-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}

.chart-pair-name {
  font-weight: 700;
  font-size: 16px;
  margin-right: 12px;
}

.chart-price {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 20px;
  margin-right: 8px;
}

.chart-change {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 6px;
}

.chart-change.positive {
  color: var(--accent-green);
  background: rgba(20,241,149,0.1);
}

.chart-change.negative {
  color: var(--accent-red);
  background: rgba(255,71,87,0.1);
}

.chart-timeframes {
  display: flex; gap: 4px;
}

.tf-btn {
  padding: 6px 12px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 12px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.tf-btn.active, .tf-btn:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,0.05);
}

.chart-body {
  height: 340px;
  padding: 20px;
}

.chart-body canvas {
  width: 100% !important;
  height: 100% !important;
}

.chart-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border);
}

.chart-stat {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-right: 1px solid var(--border);
}

.chart-stat:last-child {
  border-right: none;
}

.chart-stat-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

.chart-stat-value {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 14px;
}

/* =============================================
   Live Transactions Feed
   ============================================= */

.live-feed {
  position: relative;
  z-index: 1;
  padding: 80px 0;
}

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

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

.section-title {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-header.center .section-title {
  justify-content: center;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 15px;
  margin-top: 8px;
}

.tx-feed {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 360px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.tx-row {
  display: grid;
  grid-template-columns: 100px 1fr 1fr 120px 100px;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  font-size: 13px;
  border-bottom: 1px solid rgba(30,32,48,0.5);
  animation: fadeInTx 0.5s ease;
  transition: background 0.2s;
}

.tx-row:hover {
  background: rgba(255,255,255,0.02);
}

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

.tx-type {
  font-weight: 600;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 6px;
  text-align: center;
}

.tx-type.buy {
  color: var(--accent-green);
  background: rgba(20,241,149,0.1);
}

.tx-type.sell {
  color: var(--accent-red);
  background: rgba(255,71,87,0.1);
}

.tx-pair {
  font-weight: 600;
  color: var(--text-primary);
}

.tx-amount {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-secondary);
}

.tx-value {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 13px;
  text-align: right;
}

.tx-time {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-muted);
  text-align: right;
}

/* =============================================
   Features
   ============================================= */

.features {
  position: relative;
  z-index: 1;
  padding: 80px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all 0.3s ease;
}

.feature-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md), var(--shadow-glow);
}

.feature-icon {
  width: 56px; height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(153,69,255,0.08);
  border-radius: var(--radius-md);
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* =============================================
   CTA Section
   ============================================= */

.cta-section {
  position: relative;
  z-index: 1;
  padding: 80px 0;
}

.cta-card {
  text-align: center;
  padding: 64px 40px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(153,69,255,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.cta-card h2 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.cta-card p {
  color: var(--text-secondary);
  font-size: 16px;
  margin-bottom: 32px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.cta-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.cta-wallets {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--text-muted);
}

.wallet-icons {
  display: flex;
  gap: 8px;
}

.wallet-name {
  padding: 4px 12px;
  background: rgba(255,255,255,0.05);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
}

/* =============================================
   Footer
   ============================================= */

.footer {
  position: relative;
  z-index: 1;
  padding: 64px 0 32px;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-desc {
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 16px;
  max-width: 280px;
  line-height: 1.6;
}

.social-links {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.social-link {
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  transition: all 0.2s;
}

.social-link:hover {
  border-color: var(--accent-purple);
  color: var(--accent-purple);
  background: rgba(153,69,255,0.08);
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  padding: 6px 0;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
}

.footer-legal {
  display: flex; gap: 24px;
}

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

.footer-legal a:hover {
  color: var(--text-primary);
}

/* =============================================
   Modal
   ============================================= */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.3s;
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
}

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  width: 420px;
  max-width: 90vw;
  box-shadow: var(--shadow-lg);
  animation: modalIn 0.3s ease;
}

@keyframes modalIn {
  from { transform: scale(0.95) translateY(10px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}

.modal-header h3 {
  font-size: 18px;
  font-weight: 700;
}

.modal-close {
  width: 32px; height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 20px;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}

.modal-close:hover {
  background: rgba(255,255,255,0.05);
  color: var(--text-primary);
}

.modal-body {
  padding: 24px;
}

.modal-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

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

.wallet-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
  text-align: left;
  font-family: var(--font);
}

.wallet-option:hover {
  border-color: var(--accent-purple);
  background: rgba(153,69,255,0.05);
}

.wallet-option-icon {
  width: 40px; height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.wallet-option-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.wallet-option-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-primary);
}

.wallet-option-desc {
  font-size: 12px;
  color: var(--text-muted);
}

.wallet-detected {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-green);
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(20,241,149,0.1);
}

.modal-footer-text {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 20px;
  line-height: 1.5;
}

.modal-footer-text a {
  color: var(--accent-purple);
  text-decoration: none;
}

/* =============================================
   Responsive
   ============================================= */

@media (max-width: 1024px) {
  .swap-layout {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }
  .chart-panel { order: -1; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-menu-btn { display: flex; }
  .stats-ticker { flex-direction: column; gap: 16px; }
  .stat-divider { width: 60px; height: 1px; }
  .features-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .tx-row { grid-template-columns: 80px 1fr 100px; }
  .tx-pair, .tx-amount { display: none; }
  .chart-stats { grid-template-columns: repeat(2, 1fr); }
  .chart-stat:nth-child(2) { border-right: none; }
  .hero-title { letter-spacing: -1px; }
}

@media (max-width: 480px) {
  .nav-actions .network-selector { display: none; }
  .hero { padding: 100px 0 40px; }
  .hero-title { font-size: 32px; letter-spacing: -0.5px; }
  .hero-subtitle { font-size: 15px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .swap-card { padding: 16px; }
  .swap-layout { max-width: 100%; }
  .token-amount-input { font-size: 22px; }
  .partners-row { gap: 20px; }
  .partner-logo { font-size: 13px; }
  .cta-card { padding: 40px 24px; }
  .cta-card h2 { font-size: 24px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .section-title { font-size: 24px; }
  .chart-body { height: 220px; }
  .chart-header { flex-direction: column; gap: 12px; align-items: flex-start; }
}

/* Touch-friendly tap targets for mobile */
@media (hover: none) and (pointer: coarse) {
  .nav-link { padding: 12px 16px; }
  .btn { min-height: 44px; }
  .swap-tab { padding: 10px 16px; }
  .wallet-option { padding: 16px; }
  .quick-amt { padding: 6px 14px; font-size: 13px; }
  .token-selector { padding: 10px 14px; }
  .tf-btn { padding: 8px 14px; }
}
