/* ─────────────────────────────────────────────────────────────────────────────
   NGW3 MOVEMENT — PREMIUM DAPP STYLESHEET v2.0
   Mobile-First · Ultra-Glassmorphism · Premium DeFi UI
   ─────────────────────────────────────────────────────────────────────────────*/

/* ── IMPORTS ──────────────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=Space+Grotesk:wght@300;400;500;600;700&family=JetBrains+Mono:wght@300;400;500;600&display=swap');

/* ── CSS VARIABLES ───────────────────────────────────────────────────────── */
:root {
  --bg-base:     #040608;
  --bg-deep:     #060a10;
  --bg-surface:  #0a1220;
  --bg-elevated: #0f1c30;
  --bg-card:     rgba(10, 20, 40, 0.7);
  --bg-glass:    rgba(255, 255, 255, 0.03);
  --bg-input:    rgba(6, 15, 30, 0.85);

  --teal:        #00e5cc;
  --teal-dim:    #00b8a9;
  --teal-soft:   rgba(0, 229, 204, 0.12);
  --teal-border: rgba(0, 229, 204, 0.22);
  --teal-glow:   rgba(0, 229, 204, 0.18);

  --violet:      #7c6aff;
  --violet-dim:  #5b4fe0;
  --violet-soft: rgba(124, 106, 255, 0.12);

  --blue:        #4488ff;
  --blue-soft:   rgba(68, 136, 255, 0.1);

  --green:       #00d68f;
  --green-soft:  rgba(0, 214, 143, 0.12);
  --yellow:      #ffb347;
  --red:         #ff4d6a;

  /* Text */
  --text-primary:   #e2ecf8;
  --text-secondary: #7a9ab8;
  --text-muted:     #3f6080;
  --text-bright:    #ffffff;

  /* Borders */
  --border:      rgba(0, 180, 220, 0.12);
  --border-mid:  rgba(0, 200, 240, 0.2);
  --border-high: rgba(0, 229, 204, 0.35);

  /* Gradients */
  --grad-primary:  linear-gradient(135deg, #00e5cc 0%, #7c6aff 55%, #4488ff 100%);
  --grad-button:   linear-gradient(135deg, #00b8a9 0%, #5b4fe0 100%);
  --grad-card:     linear-gradient(135deg, rgba(0,229,204,0.06) 0%, rgba(124,106,255,0.04) 100%);
  --grad-hero:     radial-gradient(ellipse 80% 60% at 50% -10%, rgba(0,229,204,0.1) 0%, transparent 70%);

  /* Shadows */
  --shadow-card:   0 4px 24px rgba(0,0,0,0.5), 0 0 0 1px var(--border);
  --shadow-glow:   0 0 40px rgba(0,229,204,0.12), 0 0 80px rgba(124,106,255,0.08);
  --shadow-btn:    0 0 24px rgba(0,229,204,0.3), 0 4px 12px rgba(0,0,0,0.4);

  /* Radius */
  --radius-sm:   8px;
  --radius:      14px;
  --radius-lg:   20px;
  --radius-xl:   28px;
  --radius-full: 9999px;

  /* Typography */
  --font-display: 'Syne', sans-serif;
  --font-body:    'Space Grotesk', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  /* Motion */
  --ease:        cubic-bezier(0.22, 1, 0.36, 1);
  --transition:  all 0.22s cubic-bezier(0.22, 1, 0.36, 1);
  --transition-slow: all 0.45s cubic-bezier(0.22, 1, 0.36, 1);

  /* Layout */
  --navbar-h:      64px;
  --bottom-nav-h:  68px;

  /* Legacy compat aliases */
  --cyan:        #00e5cc;
  --cyan-dim:    #00b8a9;
  --cyan-glow:   rgba(0, 229, 204, 0.18);
  --cyan-border: rgba(0, 229, 204, 0.22);
  --purple:      #7c6aff;
  --purple-dim:  #5b4fe0;
  --purple-glow: rgba(124, 106, 255, 0.15);
  --blue-neon:   #00d4ff;
  --shadow-glow: 0 0 40px rgba(0,229,204,0.12), 0 0 80px rgba(124,106,255,0.08);
  --shadow-btn:  0 0 24px rgba(0,229,204,0.3), 0 4px 12px rgba(0,0,0,0.4);
  --font-mono:   'JetBrains Mono', monospace;
}

/* ── RESET & BASE ────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--teal); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--teal-dim); }
img { max-width: 100%; display: block; }

/* ── SCROLLBAR ───────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--teal-dim), var(--violet-dim));
  border-radius: 2px;
}

/* ── CANVAS ──────────────────────────────────────────────────────────────── */
#bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.65;
}

/* ── PAGE WRAPPER ────────────────────────────────────────────────────────── */
.page-wrapper {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
}

/* ═══════════════════════════════════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════════════════════════════════ */

.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--navbar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  background: rgba(4, 6, 12, 0.9);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--border);
  gap: 0.75rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.02em;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-logo-icon {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: var(--grad-button);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: white;
  box-shadow: 0 0 14px rgba(0,229,204,0.4);
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 0;
  height: 1px;
  background: var(--teal);
  transform: scaleX(0);
  transition: transform 0.22s var(--ease);
  border-radius: 1px;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-bright);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

/* ── HAMBURGER ───────────────────────────────────────────────────────────── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
  width: 40px;
  height: 40px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--teal);
  border-radius: 2px;
  transition: var(--transition);
}

/* ── BOTTOM MOBILE NAV ───────────────────────────────────────────────────── */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--bottom-nav-h);
  background: rgba(4, 6, 14, 0.97);
  backdrop-filter: blur(28px) saturate(200%);
  -webkit-backdrop-filter: blur(28px) saturate(200%);
  border-top: 1px solid var(--border);
  padding: 0 0.5rem;
  padding-bottom: env(safe-area-inset-bottom);
  align-items: center;
}

.bottom-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-around;
  height: 100%;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 6px 10px;
  border-radius: 12px;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.63rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  transition: var(--transition);
  min-width: 52px;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}

.bottom-nav-item svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: var(--transition);
}

.bottom-nav-item:hover,
.bottom-nav-item.active {
  color: var(--teal);
}

.bottom-nav-item.active svg {
  filter: drop-shadow(0 0 6px rgba(0,229,204,0.55));
}

.bottom-nav-item.active::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 2px;
  background: var(--teal);
  border-radius: 0 0 3px 3px;
  box-shadow: 0 0 8px var(--teal);
}

/* ── AVAIL CTA BUTTON IN BOTTOM NAV ─────────────────────────────────────── */
.bottom-nav-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  text-decoration: none;
  position: relative;
  top: -8px;
  -webkit-tap-highlight-color: transparent;
}

.bottom-nav-cta-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--grad-button);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 22px rgba(0,229,204,0.4), 0 4px 14px rgba(0,0,0,0.5);
  transition: var(--transition);
}

.bottom-nav-cta:active .bottom-nav-cta-circle {
  transform: scale(0.94);
}

.bottom-nav-cta svg {
  width: 22px; height: 22px;
  stroke: white;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bottom-nav-cta span {
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--teal);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ═══════════════════════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  min-height: 44px;
  -webkit-tap-highlight-color: transparent;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background 0.18s;
}

.btn:hover::after { background: rgba(255,255,255,0.08); }
.btn:active { transform: scale(0.97); }

.btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-primary {
  background: var(--grad-button);
  color: white;
  box-shadow: var(--shadow-btn);
}

.btn-primary:hover {
  box-shadow: 0 0 32px rgba(0,229,204,0.45), 0 4px 14px rgba(0,0,0,0.4);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--teal);
  border: 1px solid var(--teal-border);
}

.btn-outline:hover {
  background: var(--teal-soft);
  border-color: var(--teal);
  box-shadow: 0 0 18px var(--teal-glow);
}

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

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

.btn-danger {
  background: linear-gradient(135deg, #ff4d6a, #c01435);
  color: white;
}

.btn-success {
  background: linear-gradient(135deg, #00d68f, #009963);
  color: white;
  box-shadow: 0 0 20px rgba(0,214,143,0.3);
}

.btn-success:hover {
  box-shadow: 0 0 30px rgba(0,214,143,0.45);
  transform: translateY(-1px);
}

.btn-wallet {
  background: linear-gradient(135deg, rgba(0,229,204,0.1), rgba(124,106,255,0.1));
  border: 1px solid var(--teal-border);
  color: var(--teal);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0;
  text-transform: none;
}

.btn-wallet.connected {
  border-color: rgba(0,214,143,0.35);
  color: var(--green);
  background: rgba(0,214,143,0.08);
}

.btn-lg { padding: 0.85rem 2rem; font-size: 0.85rem; min-height: 52px; }
.btn-sm { padding: 0.4rem 0.9rem; font-size: 0.7rem; min-height: 36px; }
.btn-full { width: 100%; }

/* ── SPINNER ─────────────────────────────────────────────────────────────── */
.spinner {
  display: inline-block;
  width: 15px; height: 15px;
  border: 2px solid rgba(255,255,255,0.15);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
  flex-shrink: 0;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ═══════════════════════════════════════════════════════════════════════════
   CARDS
   ═══════════════════════════════════════════════════════════════════════════ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-card);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  border-radius: inherit;
}

.card::after {
  content: '';
  position: absolute;
  top: 0; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,229,204,0.3), transparent);
  pointer-events: none;
}

.card:hover { border-color: var(--border-mid); }
.card:hover::before { opacity: 1; }

.card-glow { box-shadow: var(--shadow-card), var(--shadow-glow); }

.card-title {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card-title::before {
  content: '';
  display: block;
  width: 3px;
  height: 12px;
  background: var(--grad-primary);
  border-radius: 2px;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════════════════════
   STAT CARDS
   ═══════════════════════════════════════════════════════════════════════════ */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  backdrop-filter: blur(20px);
}

.stat-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--grad-primary);
  opacity: 0.5;
}

.stat-card:hover {
  border-color: var(--border-mid);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.stat-icon { font-size: 1.5rem; margin-bottom: 0.6rem; }

.stat-value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
  margin-bottom: 0.25rem;
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ═══════════════════════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--navbar-h) + 3rem) 1.5rem 4rem;
  position: relative;
  background: var(--grad-hero);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(0,229,204,0.07);
  border: 1px solid var(--teal-border);
  border-radius: var(--radius-full);
  padding: 0.3rem 1rem 0.3rem 0.6rem;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1.75rem;
  animation: fadeInDown 0.6s var(--ease) both;
}

.hero-badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 8vw, 5.5rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin-bottom: 1.4rem;
  animation: fadeInUp 0.65s var(--ease) 0.1s both;
}

.hero-title-line1 { color: var(--text-bright); display: block; }

.hero-title-line2 {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  filter: drop-shadow(0 0 24px rgba(0,229,204,0.22));
}

.hero-sub {
  font-size: clamp(0.95rem, 2.5vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto 2.25rem;
  line-height: 1.75;
  animation: fadeInUp 0.7s var(--ease) 0.18s both;
  font-weight: 400;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
  animation: fadeInUp 0.75s var(--ease) 0.26s both;
}

.hero-stats {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 3rem;
  padding-top: 2.25rem;
  border-top: 1px solid var(--border);
  width: 100%;
  max-width: 640px;
  animation: fadeInUp 0.8s var(--ease) 0.34s both;
}

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

.hero-stat-value {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 800;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}

.hero-stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.2rem;
  font-weight: 500;
}

/* ── GLOW TEXT ───────────────────────────────────────────────────────────── */
.glow-text-cyan   { color: var(--teal);   text-shadow: 0 0 20px rgba(0,229,204,0.4); }
.glow-text-purple { color: var(--violet); text-shadow: 0 0 20px rgba(124,106,255,0.4); }

/* ═══════════════════════════════════════════════════════════════════════════
   SECTIONS
   ═══════════════════════════════════════════════════════════════════════════ */
.section {
  padding: 5rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-header { text-align: center; margin-bottom: 3rem; }

.section-label {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.65rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--text-bright);
  line-height: 1.15;
  margin-bottom: 0.9rem;
  letter-spacing: -0.01em;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.75;
}

/* ═══════════════════════════════════════════════════════════════════════════
   FORMS
   ═══════════════════════════════════════════════════════════════════════════ */
.form-group { margin-bottom: 1.1rem; }

.form-label {
  display: block;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 0.45rem;
}

.form-input, .form-select {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  transition: var(--transition);
  outline: none;
  appearance: none;
  min-height: 48px;
}

.form-input:focus, .form-select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(0,229,204,0.1);
  background: rgba(0,229,204,0.03);
}

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

.form-hint {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
  line-height: 1.5;
}

.form-error { font-size: 0.78rem; color: var(--red); margin-top: 0.35rem; display: none; }
.form-error.show { display: block; }

/* ═══════════════════════════════════════════════════════════════════════════
   PROGRESS BAR
   ═══════════════════════════════════════════════════════════════════════════ */
.progress-wrap {
  background: rgba(0,0,0,0.35);
  border-radius: var(--radius-full);
  height: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.progress-bar {
  height: 100%;
  background: var(--grad-primary);
  border-radius: var(--radius-full);
  transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 0 8px rgba(0,229,204,0.35);
  position: relative;
}

.progress-bar::after {
  content: '';
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 16px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35));
}

/* ═══════════════════════════════════════════════════════════════════════════
   BADGES
   ═══════════════════════════════════════════════════════════════════════════ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.badge-green  { background: var(--green-soft);  color: var(--green);  border: 1px solid rgba(0,214,143,0.3); }
.badge-cyan   { background: var(--teal-soft);   color: var(--teal);   border: 1px solid var(--teal-border); }
.badge-purple { background: var(--violet-soft); color: var(--violet); border: 1px solid rgba(124,106,255,0.3); }
.badge-red    { background: rgba(255,77,106,0.1); color: var(--red);  border: 1px solid rgba(255,77,106,0.3); }

/* ═══════════════════════════════════════════════════════════════════════════
   ALERTS
   ═══════════════════════════════════════════════════════════════════════════ */
.alert {
  display: none;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.9rem;
  border: 1px solid;
  animation: slideIn 0.28s var(--ease);
  line-height: 1.55;
}

.alert.show { display: flex; }

.alert-success { background: rgba(0,214,143,0.07); border-color: rgba(0,214,143,0.3); color: var(--green); }
.alert-error   { background: rgba(255,77,106,0.07); border-color: rgba(255,77,106,0.3); color: var(--red); }
.alert-warning { background: rgba(255,179,71,0.07); border-color: rgba(255,179,71,0.3); color: var(--yellow); }
.alert-info    { background: rgba(0,229,204,0.05); border-color: var(--teal-border); color: var(--teal); }

/* ═══════════════════════════════════════════════════════════════════════════
   TOAST
   ═══════════════════════════════════════════════════════════════════════════ */
.toast-container {
  position: fixed;
  bottom: calc(var(--bottom-nav-h) + 1rem);
  right: 1rem;
  left: 1rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  pointer-events: none;
  max-width: 360px;
  margin-left: auto;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius);
  backdrop-filter: blur(24px);
  border: 1px solid;
  font-size: 0.85rem;
  font-weight: 500;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  animation: toastIn 0.28s var(--ease) forwards;
  pointer-events: all;
  line-height: 1.5;
}

.toast.removing { animation: toastOut 0.25s var(--ease) forwards; }

.toast-success { background: rgba(6,22,16,0.97);  border-color: rgba(0,214,143,0.4); color: var(--green); }
.toast-error   { background: rgba(20,5,10,0.97);   border-color: rgba(255,77,106,0.4); color: var(--red); }
.toast-info    { background: rgba(4,12,25,0.97);   border-color: var(--teal-border); color: var(--teal); }

@keyframes toastIn {
  from { opacity: 0; transform: translateY(12px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

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

/* ═══════════════════════════════════════════════════════════════════════════
   DASHBOARD
   ═══════════════════════════════════════════════════════════════════════════ */
.dashboard-wrap {
  padding: calc(var(--navbar-h) + 1.5rem) 1.5rem calc(var(--bottom-nav-h) + 1.5rem);
  max-width: 1280px;
  margin: 0 auto;
}

.dashboard-header { margin-bottom: 1.5rem; }

.dashboard-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-bright);
  letter-spacing: -0.01em;
}

.dashboard-sub { color: var(--text-secondary); font-size: 0.875rem; margin-top: 0.2rem; }

.dashboard-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(12, 1fr);
}

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

/* ═══════════════════════════════════════════════════════════════════════════
   COPY INPUT
   ═══════════════════════════════════════════════════════════════════════════ */
.copy-wrap { display: flex; gap: 0.5rem; align-items: center; }

.copy-input {
  flex: 1;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.6rem 0.9rem;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: text;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.copy-btn {
  flex-shrink: 0;
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius);
  background: var(--teal-soft);
  border: 1px solid var(--teal-border);
  color: var(--teal);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  transition: var(--transition);
  white-space: nowrap;
  min-height: 44px;
}

.copy-btn:hover { background: rgba(0,229,204,0.2); box-shadow: 0 0 12px var(--teal-glow); }

/* ═══════════════════════════════════════════════════════════════════════════
   TABLE
   ═══════════════════════════════════════════════════════════════════════════ */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
thead tr { border-bottom: 1px solid var(--border); }

th {
  padding: 0.7rem 0.9rem;
  text-align: left;
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

td {
  padding: 0.8rem 0.9rem;
  color: var(--text-primary);
  border-bottom: 1px solid rgba(0,160,200,0.05);
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

tr:hover td { background: rgba(0,229,204,0.025); }

/* ═══════════════════════════════════════════════════════════════════════════
   STEP CARDS
   ═══════════════════════════════════════════════════════════════════════════ */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(20px);
  transition: var(--transition);
}

.step-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,229,204,0.25), transparent);
}

.step-card:hover {
  border-color: var(--border-mid);
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}

.step-number {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 900;
  opacity: 0.07;
  position: absolute;
  top: 1rem; right: 1.25rem;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.step-icon  { font-size: 1.75rem; margin-bottom: 0.9rem; }
.step-title { font-family: var(--font-display); font-size: 0.88rem; font-weight: 700; color: var(--text-bright); margin-bottom: 0.45rem; letter-spacing: 0.04em; }
.step-desc  { color: var(--text-secondary); font-size: 0.875rem; line-height: 1.65; }

/* ═══════════════════════════════════════════════════════════════════════════
   FAQ
   ═══════════════════════════════════════════════════════════════════════════ */
.faq-list { display: flex; flex-direction: column; gap: 0.6rem; max-width: 780px; margin: 0 auto; }

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  backdrop-filter: blur(20px);
  transition: border-color 0.22s;
}

.faq-item.open { border-color: var(--border-mid); }

.faq-q {
  width: 100%;
  text-align: left;
  padding: 1rem 1.25rem;
  background: none;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
  gap: 1rem;
  min-height: 52px;
  -webkit-tap-highlight-color: transparent;
}

.faq-q:hover { color: var(--teal); }

.faq-q .faq-icon {
  flex-shrink: 0;
  font-size: 1.1rem;
  transition: transform 0.3s var(--ease);
  color: var(--teal);
  opacity: 0.7;
  width: 20px;
  text-align: center;
}

.faq-item.open .faq-icon { transform: rotate(45deg); opacity: 1; }

.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.35s var(--ease); }
.faq-item.open .faq-a { max-height: 400px; }

.faq-a-inner {
  padding: 0 1.25rem 1.1rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}

/* ═══════════════════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════════════════ */
.footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 1.5rem 1.75rem;
  text-align: center;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.6rem;
}

.footer-desc { color: var(--text-muted); font-size: 0.83rem; max-width: 440px; margin: 0 auto 1.25rem; line-height: 1.65; }

.footer-links { display: flex; justify-content: center; gap: 1.75rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.footer-links a { color: var(--text-muted); font-size: 0.82rem; font-weight: 500; }
.footer-links a:hover { color: var(--teal); }

.footer-copy { color: var(--text-muted); font-size: 0.74rem; font-family: var(--font-mono); opacity: 0.7; }

/* ═══════════════════════════════════════════════════════════════════════════
   CONNECT PROMPT
   ═══════════════════════════════════════════════════════════════════════════ */
.connect-prompt {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
  gap: 1.25rem;
  padding: 2rem 1rem;
}

.connect-prompt-icon { font-size: 3rem; }
.connect-prompt-title { font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; color: var(--text-bright); }
.connect-prompt-sub { color: var(--text-secondary); font-size: 0.95rem; max-width: 340px; line-height: 1.65; }

/* ═══════════════════════════════════════════════════════════════════════════
   PAYMENT FLOW
   ═══════════════════════════════════════════════════════════════════════════ */
.flow-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0.85rem; }

.flow-item {
  text-align: center;
  padding: 1.1rem 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(20px);
  transition: var(--transition);
}

.flow-item:hover { border-color: var(--border-mid); transform: scale(1.02); }

.flow-pct {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 900;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.2rem;
}

.flow-amount { font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-secondary); margin-bottom: 0.25rem; }
.flow-label  { font-size: 0.7rem; font-weight: 600; color: var(--text-muted); letter-spacing: 0.07em; text-transform: uppercase; }

/* ═══════════════════════════════════════════════════════════════════════════
   GRID UTILITIES
   ═══════════════════════════════════════════════════════════════════════════ */
.two-col-grid   { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; align-items: start; }
.three-col-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0.75rem; }

.avail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  max-width: 940px;
  margin: 0 auto;
}

/* ═══════════════════════════════════════════════════════════════════════════
   WALLET CONNECT BTN
   ═══════════════════════════════════════════════════════════════════════════ */
.wallet-connect-btn {
  font-size: 0.72rem;
  padding: 0.5rem 0.9rem;
  max-width: 148px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ═══════════════════════════════════════════════════════════════════════════
   CYCLE RING
   ═══════════════════════════════════════════════════════════════════════════ */
.cycle-ring { position: relative; width: 110px; height: 110px; flex-shrink: 0; }
.cycle-ring svg { width: 110px; height: 110px; transform: rotate(-90deg); }
.cycle-ring .ring-bg   { fill: none; stroke: rgba(0,180,220,0.1); stroke-width: 8; }
.cycle-ring .ring-fill { fill: none; stroke: url(#ringGrad); stroke-width: 8; stroke-linecap: round; stroke-dasharray: 314; transition: stroke-dashoffset 0.8s var(--ease); }

.cycle-ring-label {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-family: var(--font-display);
}

.cycle-ring-val { font-size: 1.5rem; font-weight: 900; color: var(--teal); line-height: 1; }
.cycle-ring-sub { font-size: 0.6rem; color: var(--text-muted); letter-spacing: 0.06em; text-transform: uppercase; margin-top: 0.15rem; }

/* ═══════════════════════════════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════════════════════════════ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

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

@keyframes glow {
  0%, 100% { box-shadow: 0 0 16px rgba(0,229,204,0.15); }
  50%       { box-shadow: 0 0 36px rgba(0,229,204,0.4), 0 0 70px rgba(124,106,255,0.15); }
}

.animate-glow { animation: glow 3s ease-in-out infinite; }

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE — TABLET (≤1024px)
   ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .col-8  { grid-column: span 12; }
  .col-4  { grid-column: span 12; }
  .avail-grid { grid-template-columns: 1fr; max-width: 560px; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE — MOBILE (≤767px)
   ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 767px) {
  :root {
    --navbar-h: 56px;
  }

  /* Activate bottom nav */
  .bottom-nav   { display: flex; }

  /* Hide desktop hamburger and nav links */
  .hamburger    { display: none !important; }
  .nav-links    { display: none !important; }

  /* Lean top navbar */
  .navbar { padding: 0 1rem; height: 56px; }
  .nav-logo { font-size: 1.1rem; }
  .nav-logo-icon { width: 30px; height: 30px; font-size: 0.85rem; }
  .wallet-connect-btn { max-width: 120px; font-size: 0.68rem; }

  /* Sections & layout */
  .section       { padding: 3rem 1rem; }
  .section-header { margin-bottom: 2.25rem; }

  /* Dashboard */
  .dashboard-wrap { padding: 72px 1rem calc(var(--bottom-nav-h) + 1.5rem); }
  .dashboard-title { font-size: 1.3rem; }

  /* Hero */
  .hero         { padding: 76px 1.1rem calc(var(--bottom-nav-h) + 2rem); min-height: auto; }
  .hero-cta     { flex-direction: column; align-items: center; }
  .hero-cta .btn { width: 100%; max-width: 300px; }
  .hero-stats   { gap: 1.25rem; margin-top: 2rem; padding-top: 1.75rem; }
  .hero-stat-value { font-size: 1.45rem; }

  /* Grids */
  .col-6, .col-3  { grid-column: span 12; }
  .two-col-grid   { grid-template-columns: 1fr; }
  .three-col-grid { grid-template-columns: 1fr 1fr; }
  .avail-grid     { grid-template-columns: 1fr; }

  /* Stat cards */
  .stat-grid  { grid-template-columns: repeat(2, 1fr); gap: 0.85rem; }
  .stat-card  { padding: 1.1rem 0.85rem; }
  .stat-value { font-size: 1.3rem; }

  /* Cards */
  .card { padding: 1.1rem; border-radius: var(--radius); }

  /* Steps */
  .steps-grid { grid-template-columns: 1fr; }
  .step-card  { padding: 1.35rem; }

  /* Toast */
  .toast-container {
    left: 0.75rem; right: 0.75rem;
    bottom: calc(var(--bottom-nav-h) + 0.75rem);
    max-width: none;
    margin-left: 0;
  }

  /* Table */
  table { min-width: 460px; }
  th, td { padding: 0.6rem 0.7rem; }

  /* Flow grid */
  .flow-grid { grid-template-columns: repeat(2, 1fr); }

  /* Copy */
  .copy-wrap { flex-direction: column; }
  .copy-wrap .copy-input, .copy-wrap .copy-btn { width: 100%; justify-content: center; }

  /* FAQ */
  .faq-q { font-size: 0.88rem; padding: 0.9rem 1rem; }
  .faq-a-inner { padding: 0 1rem 1rem; padding-top: 0.9rem; }

  /* Footer */
  .footer { padding-bottom: calc(var(--bottom-nav-h) + 1.5rem); }
  .footer-links { gap: 1rem; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE — SMALL MOBILE (≤420px)
   ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 420px) {
  html { font-size: 15px; }

  .navbar { padding: 0 0.85rem; }
  .nav-logo-icon { display: none; }

  .hero { padding: 66px 0.9rem calc(var(--bottom-nav-h) + 1.5rem); }
  .hero-stats { flex-direction: row; gap: 1rem; }
  .hero-stat  { flex: 1; }
  .hero-stat-value { font-size: 1.2rem; }

  .stat-grid { gap: 0.6rem; }
  .stat-card { padding: 0.85rem 0.7rem; }
  .card      { padding: 1rem; }

  .dashboard-wrap { padding: 68px 0.85rem calc(var(--bottom-nav-h) + 1rem); }
  .section        { padding: 2.5rem 0.85rem; }

  .connect-prompt { min-height: 50vh; padding: 1.5rem 0.75rem; }
  .three-col-grid { grid-template-columns: 1fr; }
  .flow-grid      { grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }

  /* iOS zoom prevention */
  .form-input, .form-select { font-size: 16px; }

  .footer-links a { font-size: 0.78rem; }
  .footer-links   { gap: 0.75rem; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   TOUCH IMPROVEMENTS
   ═══════════════════════════════════════════════════════════════════════════ */
@media (hover: none) and (pointer: coarse) {
  .btn        { min-height: 48px; }
  .faq-q      { min-height: 52px; }
  .copy-btn   { min-height: 48px; }

  /* Disable sticky hover states on touch */
  .card:hover         { transform: none; border-color: var(--border); }
  .card:hover::before { opacity: 0; }
  .step-card:hover    { transform: none; box-shadow: none; }
  .flow-item:hover    { transform: none; }
  .btn-primary:hover  { transform: none; }
  .stat-card:hover    { transform: none; box-shadow: none; }
}
