/**
 * ────────────────────────────────────────────
 *  ENERGON EXCHANGE — Crypto Exchange Interface
 *  Dark mode | Glass panels | Neon accents
 *  Mobile-first responsive design
 * ────────────────────────────────────────────
 */

/* ═══════ ROOT VARIABLES ═══════ */
:root {
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', 'Courier New', monospace;

  --bg-base: #0b0e17;
  --bg-surface: #111827;
  --bg-elevated: #1a2332;
  --bg-panel: #131b29;
  --bg-glass: rgba(17, 24, 39, 0.85);

  --border-subtle: rgba(255,255,255,0.04);
  --border-medium: rgba(255,255,255,0.08);
  --border-accent: rgba(0, 230, 118, 0.25);

  --accent-buy: #00e676;
  --accent-sell: #ff5252;
  --accent-up: #00e676;
  --accent-down: #ff5252;
  --accent-blue: #00b0ff;
  --accent-orange: #ff9100;
  --accent-pink: #f50057;

  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-dim: #475569;

  --success: #00e676;
  --error: #ff5252;
  --warning: #ff9100;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.5);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

/* ═══════ RESET ═══════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  font-family: var(--font-body);
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ═══════ UTILITY ═══════ */
.container { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .container { padding: 0 24px; } }
@media (min-width: 1200px) { .container { padding: 0 32px; } }

.mono { font-family: var(--font-mono); }
.up { color: var(--accent-up); }
.down { color: var(--accent-down); }
.hidden { display: none !important; }

/* ═══════ BUTTONS ═══════ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px;
  font-family: var(--font-body); font-size: 0.85rem; font-weight: 600;
  padding: 8px 18px; border-radius: var(--radius-sm);
  border: none; cursor: pointer; transition: all 0.2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(135deg, #00e676, #00b0ff);
  color: #000; font-weight: 700;
}
.btn-primary:hover { box-shadow: 0 0 20px rgba(0,230,118,0.25); }

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-medium);
  color: var(--text-secondary);
}
.btn-outline:hover { border-color: var(--accent-blue); color: var(--text-primary); background: rgba(0,176,255,0.05); }

.btn-buy { background: linear-gradient(135deg, #00e676, #00c853); color: #000; font-weight: 700; }
.btn-buy:hover { box-shadow: 0 0 20px rgba(0,230,118,0.25); }

.btn-sell { background: linear-gradient(135deg, #ff5252, #ff1744); color: #fff; font-weight: 700; }
.btn-sell:hover { box-shadow: 0 0 20px rgba(255,82,82,0.25); }

.btn-block { width: 100%; }
.btn-lg { padding: 14px 24px; font-size: 1rem; }

/* ═══════ TOP BAR ═══════ */
.topbar {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.75rem;
}
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1320px; margin: 0 auto; padding: 6px 16px;
}
@media (min-width: 768px) { .topbar-inner { padding: 6px 24px; } }
@media (min-width: 1200px) { .topbar-inner { padding: 6px 32px; } }

.topbar-left { display: flex; gap: 18px; overflow-x: auto; scrollbar-width: none; }
.topbar-left::-webkit-scrollbar { display: none; }

.ticker-item { color: var(--text-secondary); white-space: nowrap; font-family: var(--font-mono); }
.ticker-item .ticker-pair { margin-left: 4px; font-weight: 600; }

.topbar-right { display: none; }
@media (min-width: 768px) { .topbar-right { display: flex; } }

.net-indicator {
  display: flex; align-items: center; gap: 8px;
  color: var(--text-muted); font-weight: 600; letter-spacing: 1px; font-size: 0.7rem;
}
.pulse-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent-up);
  box-shadow: 0 0 0 0 rgba(0,230,118,0.4);
  animation: pulse-dot 2s infinite;
}
.pulse-dot.green { background: #44ff44; }
@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(0,230,118,0.4); }
  70% { box-shadow: 0 0 0 8px rgba(0,230,118,0); }
  100% { box-shadow: 0 0 0 0 rgba(0,230,118,0); }
}

/* ═══════ NAVBAR ═══════ */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: var(--bg-glass);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border-bottom: 1px solid var(--border-subtle);
}
.nav-inner {
  display: flex; align-items: center;
  max-width: 1320px; margin: 0 auto;
  padding: 0 16px; height: 56px;
}
@media (min-width: 768px) { .nav-inner { padding: 0 24px; } }
@media (min-width: 1200px) { .nav-inner { padding: 0 32px; } }

.nav-brand {
  display: flex; align-items: center; gap: 8px;
  text-decoration: none; color: inherit;
  margin-right: auto;
}
.logo-svg { flex-shrink: 0; }
.brand-name { font-weight: 800; font-size: 1rem; letter-spacing: 2px; color: var(--text-primary); }
.brand-tag {
  font-size: 0.6rem; font-weight: 700; letter-spacing: 1.5px;
  color: var(--accent-blue);
  border: 1px solid var(--border-accent);
  padding: 2px 6px; border-radius: 4px;
  margin-left: 2px;
}

.nav-links { display: none; }
@media (min-width: 1024px) {
  .nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; margin-right: 16px; }
  .nav-links a {
    color: var(--text-secondary); text-decoration: none;
    font-size: 0.82rem; font-weight: 500;
    padding: 6px 14px; border-radius: var(--radius-sm);
    transition: all 0.2s;
  }
  .nav-links a:hover { color: var(--text-primary); background: rgba(255,255,255,0.04); }
}

.nav-actions { display: none; }
@media (min-width: 1024px) {
  .nav-actions { display: flex; align-items: center; gap: 8px; }
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; padding: 8px; margin-left: 4px;
  background: transparent; border: none; cursor: pointer; border-radius: var(--radius-sm);
}
.mobile-menu-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--text-secondary); border-radius: 2px;
  transition: all 0.25s ease;
}
.mobile-menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 1024px) { .mobile-menu-toggle { display: none; } }

/* Mobile Menu */
.mobile-menu {
  display: none; flex-direction: column;
  position: fixed; inset: 56px 0 0 0; z-index: 99;
  background: var(--bg-surface);
  padding: 24px;
  border-top: 1px solid var(--border-subtle);
  animation: slide-in 0.2s ease;
}
.mobile-menu.open { display: flex; }
@keyframes slide-in { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

.mobile-menu a {
  color: var(--text-primary); text-decoration: none;
  font-size: 1.1rem; font-weight: 500;
  padding: 14px 0; border-bottom: 1px solid var(--border-subtle);
}
.mobile-menu a:last-of-type { border-bottom: none; }
.mobile-actions { margin-top: auto; display: flex; flex-direction: column; gap: 10px; padding-top: 16px; }

/* ═══════ HERO / TICKER ═══════ */
.hero {
  padding: 24px 0 16px;
  background: linear-gradient(180deg, rgba(0,230,118,0.04) 0%, transparent 60%);
}

.hero-market {
  display: flex; flex-direction: column; gap: 16px;
}

.market-pair {
  display: flex; align-items: center; gap: 14px;
}
.coin-icon {
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-up), var(--accent-blue));
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.2rem; color: #000;
  flex-shrink: 0;
}
.pair-info h1 { font-size: 1.4rem; font-weight: 700; margin: 0; }
.pair-sub { color: var(--text-muted); font-size: 0.85rem; }

.market-price {
  display: flex; flex-direction: column;
}
.price-main {
  font-size: 2.2rem; font-weight: 700; font-family: var(--font-mono);
  letter-spacing: -0.5px;
}
.price-change {
  font-size: 0.9rem; font-weight: 600; margin-top: 2px;
}

.market-stats {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
}
@media (min-width: 640px) {
  .market-stats { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
  .hero-market { flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; }
  .market-stats { grid-template-columns: repeat(5, 1fr); flex: 1; max-width: 680px; }
  .price-main { font-size: 2.8rem; }
}

.ms-item {
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 14px;
}
.ms-label { display: block; font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; }
.ms-val { font-family: var(--font-mono); font-size: 0.95rem; font-weight: 600; color: var(--text-primary); }

/* ═══════ CHART ═══════ */
.chart-section { padding: 16px 0; }
.chart-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.chart-tabs { display: flex; gap: 4px; }
.tab {
  background: transparent; border: none;
  color: var(--text-muted); font-size: 0.78rem; font-weight: 600;
  padding: 6px 14px; border-radius: var(--radius-sm); cursor: pointer;
  transition: all 0.2s;
}
.tab:hover { color: var(--text-secondary); }
.tab.active { background: var(--bg-elevated); color: var(--text-primary); }

.chart-tools { display: none; }
@media (min-width: 768px) {
  .chart-tools { display: flex; gap: 4px; }
}
.tool-btn {
  background: transparent; border: none;
  color: var(--text-muted); font-size: 0.78rem; font-weight: 500;
  padding: 6px 14px; border-radius: var(--radius-sm); cursor: pointer;
}
.tool-btn.active { color: var(--text-primary); }

.chart-container {
  position: relative;
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 280px;
}
@media (min-width: 768px) { .chart-container { height: 360px; } }
@media (min-width: 1200px) { .chart-container { height: 420px; } }

#priceChart { display: block; width: 100%; height: 100%; }

.chart-overlay {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%; pointer-events: none; opacity: 0;
  transition: opacity 0.1s;
}
.chart-overlay.active { opacity: 1; }
.overlay-line {
  position: absolute; top: 0; bottom: 0;
  border-left: 1px dashed rgba(255,255,255,0.15);
}
.overlay-label {
  position: absolute; top: 8px;
  background: rgba(0,0,0,0.7); backdrop-filter: blur(8px);
  padding: 4px 10px; border-radius: var(--radius-sm);
  font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-primary);
  border: 1px solid var(--border-medium);
}

.time-axis {
  display: flex; justify-content: space-between;
  padding: 8px 12px 0;
  font-size: 0.7rem; color: var(--text-muted); font-family: var(--font-mono);
}

/* ═══════ PANELS ═══════ */
.panel {
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.panel-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-subtle);
}
.panel-header h3 { font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.panel-badge {
  font-size: 0.65rem; font-weight: 700; letter-spacing: 1px;
  color: var(--accent-up); text-transform: uppercase;
  background: rgba(0,230,118,0.08); padding: 2px 8px; border-radius: 4px;
}

/* ═══════ TRADING GRID ═══════ */
.trading-section { padding: 16px 0 24px; }
.trading-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 1024px) {
  .trading-grid {
    grid-template-columns: 1fr 380px 1fr;
    gap: 16px;
  }
}

/* Orderbook */
.orderbook-panel { display: flex; flex-direction: column; height: 520px; }
@media (min-width: 768px) { .orderbook-panel { height: 600px; } }

.ob-header {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  padding: 8px 14px;
  font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border-subtle);
}

.ob-asks, .ob-bids {
  flex: 1; overflow-y: auto; font-family: var(--font-mono); font-size: 0.78rem;
}
.ob-bids { border-top: 1px solid var(--border-subtle); }

.ob-row {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  padding: 4px 14px; position: relative;
}
.ob-row:hover { background: rgba(255,255,255,0.02); }

.ob-bar {
  position: absolute; right: 0; top: 0; bottom: 0;
  opacity: 0.08; pointer-events: none;
}
.ob-bar.ask { background: var(--accent-sell); }
.ob-bar.bid { background: var(--accent-buy); }

.ob-price { font-weight: 500; }
.ob-price.ask { color: var(--accent-sell); }
.ob-price.bid { color: var(--accent-buy); }
.ob-amt { text-align: right; }
.ob-total { text-align: right; color: var(--text-secondary); }

.ob-spread {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 8px 14px; border-bottom: 1px solid var(--border-subtle);
}
.spread-label { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; }
.spread-val { font-family: var(--font-mono); font-size: 0.8rem; font-weight: 600; color: var(--text-secondary); }

/* Trade Pad */
.tradepad-panel { align-self: start; }

.trade-tabs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  border-bottom: 1px solid var(--border-subtle);
}
.trade-tab {
  background: transparent; border: none;
  padding: 12px; font-size: 0.85rem; font-weight: 600;
  cursor: pointer; transition: all 0.2s;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.trade-tab.buy { color: var(--accent-buy); }
.trade-tab.buy.active { border-bottom-color: var(--accent-buy); background: rgba(0,230,118,0.04); }
.trade-tab.sell { color: var(--accent-sell); }
.trade-tab.sell.active { border-bottom-color: var(--accent-sell); background: rgba(255,82,82,0.04); }

.trade-form { padding: 16px; }

.input-group {
  margin-bottom: 14px;
  position: relative;
}
.input-group label {
  display: block; font-size: 0.75rem; color: var(--text-muted);
  margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.5px;
}
.trade-input {
  width: 100%; background: var(--bg-base);
  border: 1px solid var(--border-medium); border-radius: var(--radius-sm);
  padding: 12px 14px; padding-right: 60px;
  color: var(--text-primary); font-family: var(--font-mono); font-size: 0.95rem;
  outline: none; transition: all 0.2s;
}
.trade-input:focus { border-color: var(--accent-blue); box-shadow: 0 0 0 3px rgba(0,176,255,0.08); }
.input-suffix {
  position: absolute; right: 14px; bottom: 13px;
  font-size: 0.75rem; color: var(--text-muted); font-weight: 500;
}

.slider-row {
  display: flex; gap: 8px; margin-bottom: 16px;
}
.pct-btn {
  flex: 1; background: var(--bg-base);
  border: 1px solid var(--border-medium); border-radius: var(--radius-sm);
  padding: 6px; font-size: 0.75rem; font-weight: 600; color: var(--text-secondary);
  cursor: pointer; transition: all 0.2s;
}
.pct-btn:hover { border-color: var(--accent-blue); color: var(--text-primary); }

.trade-summary { border-top: 1px solid var(--border-subtle); padding-top: 12px; margin-bottom: 16px; }
.summary-row {
  display: flex; justify-content: space-between;
  font-size: 0.8rem; padding: 4px 0; color: var(--text-secondary);
}
.summary-row .mono { font-family: var(--font-mono); }

/* Recent Trades */
.trades-panel { display: flex; flex-direction: column; height: 520px; }
@media (min-width: 768px) { .trades-panel { height: 600px; } }

.trades-header {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  padding: 8px 14px;
  font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border-subtle);
}
.trades-list { flex: 1; overflow-y: auto; font-family: var(--font-mono); font-size: 0.78rem; }
.trade-row {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  padding: 4px 14px;
}
.trade-row:hover { background: rgba(255,255,255,0.02); }
.trade-time { color: var(--text-muted); }
.trade-price.buy { color: var(--accent-buy); text-align: right; }
.trade-price.sell { color: var(--accent-sell); text-align: right; }
.trade-amt { text-align: right; color: var(--text-secondary); }

/* ═══════ NETWORK STATS ═══════ */
.stats-section { padding: 40px 0 32px; background: var(--bg-surface); border-top: 1px solid var(--border-subtle); }
.section-title {
  font-size: 1.3rem; font-weight: 700; margin-bottom: 24px;
  text-align: center;
}
@media (min-width: 768px) { .section-title { font-size: 1.6rem; } }

.stats-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
}
@media (min-width: 640px) { .stats-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .stats-grid { grid-template-columns: repeat(6, 1fr); } }

.stat-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px 16px;
  text-align: center;
  transition: all 0.2s;
}
.stat-card:hover { border-color: var(--border-accent); transform: translateY(-2px); box-shadow: var(--shadow-md); }

.stat-icon {
  width: 40px; height: 40px; border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(0,230,118,0.08), rgba(0,176,255,0.08));
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px;
  font-size: 1.1rem; font-weight: 700; color: var(--accent-up);
}
.stat-value { font-size: 1.1rem; font-weight: 700; font-family: var(--font-mono); margin-bottom: 4px; }
@media (min-width: 768px) { .stat-value { font-size: 1.25rem; } }
.stat-label { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 6px; }
.stat-trend { font-size: 0.7rem; color: var(--text-dim); }

/* ═══════ FEATURES ═══════ */
.features-section { padding: 48px 0; }
.features-grid {
  display: grid; grid-template-columns: 1fr; gap: 16px;
}
@media (min-width: 640px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }

.feature-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  transition: all 0.2s;
}
.feature-card:hover { border-color: var(--border-accent); transform: translateY(-2px); }

.feature-icon {
  width: 56px; height: 56px; border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(0,230,118,0.06), rgba(0,176,255,0.06));
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.feature-card h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 8px; }
.feature-card p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.6; }

/* ═══════ CONNECT / TERMINAL ═══════ */
.connect-section { padding: 48px 0; background: var(--bg-surface); border-top: 1px solid var(--border-subtle); }
.connect-grid {
  display: grid; grid-template-columns: 1fr; gap: 24px;
}
@media (min-width: 1024px) { .connect-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }

.connect-info .section-title { text-align: left; }
.connect-desc { color: var(--text-secondary); font-size: 0.95rem; margin-bottom: 28px; line-height: 1.7; }

.connect-steps { display: flex; flex-direction: column; gap: 20px; }
.step {
  display: flex; gap: 16px; align-items: flex-start;
}
.step-num {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-up), var(--accent-blue));
  color: #000; font-weight: 800; font-size: 0.85rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.step-body h4 { font-size: 0.95rem; font-weight: 600; margin-bottom: 4px; }
.step-body p { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.55; }
.step-body code {
  background: rgba(0,176,255,0.08); color: var(--accent-blue);
  padding: 1px 5px; border-radius: 3px; font-family: var(--font-mono); font-size: 0.82rem;
}

.terminal-panel {
  background: #0d1117;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.term-header {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.02);
}
.term-dot { width: 10px; height: 10px; border-radius: 50%; }
.term-dot.red { background: #ff5f56; }
.term-dot.yellow { background: #ffbd2e; }
.term-dot.green { background: #27c93f; }
.term-title { font-size: 0.75rem; color: var(--text-muted); margin-left: 4px; }

.term-body {
  padding: 14px;
  font-family: var(--font-mono); font-size: 0.75rem; line-height: 1.75;
  overflow-x: auto; color: #e6edf3;
}
@media (min-width: 768px) { .term-body { font-size: 0.78rem; } }

.term-prompt { color: var(--accent-up); margin-right: 6px; }
.term-comment { color: #6b7280; }
.term-string { color: var(--accent-blue); }

/* ═══════ DOWNLOADS ═══════ */
.downloads-section { padding: 48px 0; }
.downloads-grid {
  display: grid; grid-template-columns: 1fr; gap: 16px;
}
@media (min-width: 640px) { .downloads-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .downloads-grid { grid-template-columns: repeat(3, 1fr); } }

.dl-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  transition: all 0.2s;
}
.dl-card:hover { border-color: var(--border-accent); transform: translateY(-2px); }

.dl-icon { color: var(--accent-blue); margin-bottom: 16px; }
.dl-card h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 4px; }
.dl-meta { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 20px; }
.dl-hash {
  margin-top: 14px; font-size: 0.7rem; color: var(--text-dim);
  word-break: break-all;
}
.dl-hash code {
  color: var(--text-muted); font-family: var(--font-mono);
  background: var(--bg-base); padding: 2px 6px; border-radius: 4px;
}

/* ═══════ FOOTER ═══════ */
.footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  padding: 40px 0 24px;
  margin-top: auto;
}
.footer-grid {
  display: grid; grid-template-columns: 1fr; gap: 28px;
}
@media (min-width: 640px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }

.footer-logo { font-weight: 800; font-size: 1.1rem; letter-spacing: 2px; }
.footer-desc { font-size: 0.85rem; color: var(--text-secondary); margin-top: 10px; line-height: 1.6; }
.footer-net {
  display: flex; align-items: center; gap: 8px;
  margin-top: 14px; font-size: 0.8rem; color: var(--text-muted);
}
.footer-port { color: var(--accent-blue); font-family: var(--font-mono); }

.footer-col h4 {
  font-size: 0.8rem; font-weight: 600; color: var(--text-secondary);
  text-transform: uppercase; letter-spacing: 1px; margin-bottom: 14px;
}
.footer-col a, .footer-col span {
  display: block; font-size: 0.85rem; color: var(--text-muted);
  text-decoration: none; margin-bottom: 10px; transition: color 0.2s;
}
.footer-col a:hover { color: var(--text-primary); }

.footer-bottom {
  display: flex; flex-direction: column; gap: 8px;
  margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--border-subtle);
  font-size: 0.78rem; color: var(--text-dim); text-align: center;
}
@media (min-width: 640px) {
  .footer-bottom { flex-direction: row; justify-content: space-between; text-align: left; }
}
.footer-build { font-family: var(--font-mono); }

/* ═══════ MODAL ═══════ */
.modal {
  display: none; position: fixed; inset: 0; z-index: 200;
  align-items: center; justify-content: center; padding: 16px;
}
.modal.open { display: flex; }
.modal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.6); backdrop-filter: blur(4px); }
.modal-content {
  position: relative; z-index: 1;
  background: var(--bg-panel); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg); width: 100%; max-width: 420px;
  padding: 28px; box-shadow: var(--shadow-lg);
  animation: modal-in 0.25s ease;
}
@keyframes modal-in {
  from { opacity: 0; transform: translateY(12px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-close {
  position: absolute; top: 14px; right: 18px;
  background: none; border: none; color: var(--text-muted); font-size: 1.4rem; cursor: pointer;
}
.modal-content h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 8px; }

.wallet-options { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.wallet-opt {
  display: flex; align-items: flex-start; gap: 14px;
  background: var(--bg-base); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md); padding: 16px;
  cursor: pointer; transition: all 0.2s;
}
.wallet-opt:hover { border-color: var(--border-accent); }
.wallet-opt-icon { flex-shrink: 0; color: var(--accent-blue); }
.wallet-opt strong { font-size: 0.9rem; display: block; margin-bottom: 4px; }
.wallet-opt p { font-size: 0.8rem; color: var(--text-secondary); margin: 0; }

/* ═══════ SCROLLBAR ═══════ */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.15); }

/* ═══════ ANIMATIONS ═══════ */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ═══════ RESPONSIVE HELPERS ═══════ */
@media (max-width: 639px) {
  .price-main { font-size: 1.8rem; }
  .pair-info h1 { font-size: 1.15rem; }
}

/* Selection */
::selection { background: rgba(0,230,118,0.2); color: var(--text-primary); }

/* Focus visible */
*:focus-visible { outline: 2px solid var(--accent-blue); outline-offset: 2px; }
input:focus-visible, button:focus-visible { outline-offset: -2px; }
