/* ============================================================
   RESET + TOKENS
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #07060b;
  --ink: #f4f1ff;
  --muted: rgba(244,241,255,0.55);
  --dim: rgba(244,241,255,0.32);
  --line: rgba(244,241,255,0.08);
  --line-2: rgba(244,241,255,0.14);
  --pink: #ff8ac1;
  --violet: #a855f7;
  --cyan: #7dd3fc;
  --green: #34d399;
  --red: #f87171;
  --radius: 20px;
  --radius-lg: 28px;
}

html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

h1, h2, h3 { font-family: 'Space Grotesk', sans-serif; letter-spacing: -0.02em; font-weight: 700; }
em { font-family: 'Space Grotesk', sans-serif; font-style: italic; font-weight: 400; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: 0; color: inherit; }
input, textarea, select { font-family: inherit; }
.hidden { display: none !important; }

/* ============================================================
   AMBIENT: cursor, grain, mesh
   ============================================================ */
.cursor, .cursor-dot {
  position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9999;
  border-radius: 50%; mix-blend-mode: screen;
  transition: transform 0.15s ease-out;
}
.cursor { width: 40px; height: 40px; background: radial-gradient(circle, rgba(255,138,193,0.35), transparent 70%); transform: translate(-50%,-50%); }
.cursor-dot { width: 4px; height: 4px; background: #fff; transform: translate(-50%,-50%); }
@media (max-width: 900px) { .cursor, .cursor-dot { display: none; } }

.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: 0.05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.9'/></svg>");
}

.mesh { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.mesh-blob { position: absolute; border-radius: 50%; filter: blur(140px); opacity: 0.4; }
.blob-a { width: 700px; height: 700px; background: #ff4d9e; top: -20%; left: -10%; animation: drift1 24s ease-in-out infinite; }
.blob-b { width: 800px; height: 800px; background: #7c3aed; bottom: -30%; right: -15%; animation: drift2 30s ease-in-out infinite; }
.blob-c { width: 500px; height: 500px; background: #0ea5e9; top: 40%; left: 60%; opacity: 0.2; animation: drift3 36s ease-in-out infinite; }

@keyframes drift1 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(120px,80px)} }
@keyframes drift2 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(-140px,-100px)} }
@keyframes drift3 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(-80px,120px)} }

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 90;
  backdrop-filter: blur(20px) saturate(180%);
  background: linear-gradient(to bottom, rgba(7,6,11,0.85), rgba(7,6,11,0));
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1280px; margin: 0 auto; padding: 18px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 18px; }
.brand-mark { width: 32px; height: 32px; display: inline-flex; }
.brand-mark svg { width: 100%; height: 100%; }
.brand-text { font-family: 'Space Grotesk', sans-serif; font-weight: 700; letter-spacing: -0.03em; }
.brand-text em {
  background: linear-gradient(90deg, var(--pink), var(--violet));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  font-style: normal;
}

.nav-links { display: flex; gap: 28px; font-size: 14px; color: var(--muted); }
.nav-links a { position: relative; transition: color 0.2s; }
.nav-links a:hover { color: #fff; }
.nav-links a::after {
  content: ''; position: absolute; left: 0; right: 100%; bottom: -6px; height: 1px;
  background: linear-gradient(90deg, var(--pink), var(--violet));
  transition: right 0.3s ease;
}
.nav-links a:hover::after { right: 0; }

.btn-wallet {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 18px; border-radius: 999px;
  background: rgba(255,255,255,0.06); border: 1px solid var(--line);
  font-size: 14px; font-weight: 500; transition: all 0.2s;
}
.btn-wallet:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,138,193,0.4); }
.btn-wallet.connected { border-color: rgba(52,211,153,0.4); }
.btn-wallet-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 12px var(--pink); transition: all 0.2s; }
.btn-wallet.connected .btn-wallet-dot { background: var(--green); box-shadow: 0 0 12px var(--green); }

@media (max-width: 800px) { .nav-links { display: none; } }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; z-index: 10;
  max-width: 1000px; margin: 0 auto;
  padding: 160px 24px 60px;
  text-align: center;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px; border-radius: 999px;
  background: rgba(255,255,255,0.04); border: 1px solid var(--line);
  font-size: 12.5px; color: var(--muted);
  margin-bottom: 32px;
  animation: fadeDown 0.8s ease both;
}
.pulse {
  width: 6px; height: 6px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 0 0 rgba(52,211,153,0.7);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(52,211,153,0.6); }
  70% { box-shadow: 0 0 0 12px rgba(52,211,153,0); }
  100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); }
}
@keyframes fadeDown { from{opacity:0;transform:translateY(-12px)} to{opacity:1;transform:translateY(0)} }
@keyframes fadeUp { from{opacity:0;transform:translateY(28px)} to{opacity:1;transform:translateY(0)} }

.hero-title {
  font-size: clamp(40px, 7.5vw, 96px);
  line-height: 0.98;
  letter-spacing: -0.045em;
  margin-bottom: 24px;
  animation: fadeUp 1s ease 0.1s both;
}
.hero-title .italic-serif {
  font-style: italic; font-weight: 400;
  background: linear-gradient(120deg, #fff 20%, var(--pink) 60%, var(--violet) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-title .grad {
  background: linear-gradient(90deg, var(--pink), var(--violet) 60%, var(--cyan));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

.hero-sub {
  max-width: 560px; margin: 0 auto 40px;
  font-size: clamp(15px, 1.5vw, 17px); line-height: 1.6;
  color: var(--muted);
  animation: fadeUp 1s ease 0.25s both;
}

.hero-cta {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 28px; border-radius: 16px;
  background: linear-gradient(135deg, var(--pink), var(--violet));
  color: #0a0014; font-weight: 600; font-size: 15px;
  transition: all 0.25s;
  box-shadow: 0 20px 60px -15px rgba(255,138,193,0.6);
  animation: fadeUp 1s ease 0.4s both;
}
.hero-cta:hover { transform: translateY(-2px); box-shadow: 0 25px 70px -15px rgba(255,138,193,0.8); }
.hero-cta svg { transition: transform 0.25s; }
.hero-cta:hover svg { transform: translateX(3px); }

/* ============================================================
   APP SECTION (Tabs)
   ============================================================ */
.app-section {
  position: relative; z-index: 10;
  padding: 40px 24px 80px;
}
.app-container {
  max-width: 640px; margin: 0 auto;
  background: linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.02));
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  padding: 8px;
  backdrop-filter: blur(40px);
  box-shadow: 0 60px 140px -40px rgba(168,85,247,0.4);
  animation: fadeUp 1s ease 0.5s both;
}

/* Tabs */
.tabs {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px;
  padding: 4px; border-radius: 20px;
  background: rgba(0,0,0,0.25);
  margin-bottom: 8px;
}
.tab {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 12px; border-radius: 16px;
  font-size: 14px; font-weight: 500; color: var(--muted);
  transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
}
.tab:hover { color: #fff; background: rgba(255,255,255,0.04); }
.tab.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(255,138,193,0.18), rgba(168,85,247,0.18));
  box-shadow: 0 4px 20px -8px rgba(255,138,193,0.5), inset 0 0 0 1px rgba(255,138,193,0.25);
}
.tab svg { opacity: 0.85; }
.tab.active svg { color: var(--pink); }

/* Panels */
.tab-panel { display: none; padding: 24px; }
.tab-panel.active { display: block; animation: fadeIn 0.35s ease both; }
@keyframes fadeIn { from{opacity:0;transform:translateY(8px)} to{opacity:1;transform:translateY(0)} }

.panel-header { margin-bottom: 24px; text-align: center; }
.panel-header h2 { font-size: 22px; margin-bottom: 8px; letter-spacing: -0.02em; }
.panel-header p { color: var(--muted); font-size: 14px; line-height: 1.55; max-width: 440px; margin: 0 auto; }

/* Hint box */
.hint {
  display: flex; gap: 12px; align-items: flex-start;
  margin-top: 24px; padding: 16px 18px;
  border-radius: 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
}
.hint-icon { font-size: 18px; flex-shrink: 0; line-height: 1.4; }
.hint-text { font-size: 13px; color: var(--muted); line-height: 1.55; }
.hint-text strong { color: #fff; font-weight: 600; }

/* ============================================================
   CLAIM TAB
   ============================================================ */
.claim-search { margin-bottom: 8px; }
.search-inner {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 6px 6px 18px;
  border-radius: 18px;
  background: rgba(255,255,255,0.045);
  border: 1px solid var(--line);
  transition: all 0.3s;
}
.search-inner:focus-within {
  border-color: rgba(255,138,193,0.5);
  box-shadow: 0 0 0 4px rgba(255,138,193,0.08);
}
.search-icon { color: var(--dim); flex-shrink: 0; }
.search-inner input {
  flex: 1; background: none; border: 0; outline: 0;
  padding: 14px 10px; color: var(--ink);
  font-size: 14.5px; font-family: 'JetBrains Mono', monospace;
  min-width: 0;
}
.search-inner input::placeholder { color: var(--dim); font-family: 'Inter', sans-serif; }
.search-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: 14px;
  background: linear-gradient(135deg, var(--pink), var(--violet));
  color: #0a0014; font-weight: 600; font-size: 14px;
  transition: all 0.25s;
  box-shadow: 0 10px 24px -10px rgba(255,138,193,0.5);
  flex-shrink: 0;
}
.search-btn:hover { transform: translateY(-1px); box-shadow: 0 15px 32px -10px rgba(255,138,193,0.7); }

@media (max-width: 540px) {
  .search-inner { flex-direction: column; padding: 12px; gap: 10px; }
  .search-inner input { width: 100%; text-align: center; padding: 10px; }
  .search-icon { display: none; }
  .search-btn { width: 100%; justify-content: center; }
}

/* Result card */
.result-card-slot { margin-top: 20px; }
.result-card {
  padding: 28px 24px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  border: 1px solid var(--line-2);
  position: relative; overflow: hidden;
  animation: fadeIn 0.4s ease both;
}
.result-card::before {
  content: ''; position: absolute; top: -1px; left: 20%; right: 20%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--pink), transparent);
}

.rc-empty { text-align: center; padding: 12px 0; }
.rc-emoji { font-size: 48px; margin-bottom: 14px; display: block; }
.rc-title { font-family: 'Space Grotesk', sans-serif; font-size: 20px; margin-bottom: 8px; }
.rc-sub { color: var(--muted); font-size: 14px; line-height: 1.55; }

.rc-amount-label { color: var(--muted); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 10px; text-align: center; }
.rc-amount {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(36px, 7vw, 56px); font-weight: 700; letter-spacing: -0.04em;
  text-align: center; line-height: 1;
  background: linear-gradient(120deg, #fff 10%, var(--pink) 50%, var(--violet) 90%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  margin-bottom: 6px;
}
.rc-usd { text-align: center; color: var(--muted); font-family: 'JetBrains Mono', monospace; font-size: 13px; margin-bottom: 24px; }

.action-btn {
  width: 100%; padding: 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--pink), var(--violet));
  color: #0a0014; font-weight: 600; font-size: 15px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  transition: all 0.25s; position: relative; overflow: hidden;
  box-shadow: 0 20px 50px -15px rgba(255,138,193,0.6);
}
.action-btn:hover { transform: translateY(-2px); box-shadow: 0 25px 60px -15px rgba(255,138,193,0.8); }
.action-btn::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transform: translateX(-100%);
}
.action-btn:hover::after { animation: sweep 0.8s ease; }
@keyframes sweep { to { transform: translateX(100%); } }

.rc-note { text-align: center; font-size: 12px; color: var(--dim); margin-top: 14px; }

.rc-status {
  margin-top: 14px; padding: 13px 16px; border-radius: 14px;
  font-size: 13px; text-align: center; border: 1px solid;
}
.rc-status.info { background: rgba(125,211,252,0.08); border-color: rgba(125,211,252,0.25); color: #bae6fd; }
.rc-status.success { background: rgba(52,211,153,0.08); border-color: rgba(52,211,153,0.3); color: #6ee7b7; }
.rc-status.error { background: rgba(248,113,113,0.08); border-color: rgba(248,113,113,0.3); color: #fca5a5; }

/* ============================================================
   SWAP TAB
   ============================================================ */
.chain-selector {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px;
  margin-bottom: 20px;
}
.chain-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 12px; border-radius: 12px;
  background: rgba(255,255,255,0.035); border: 1px solid var(--line);
  font-size: 12px; font-weight: 500; transition: all 0.2s;
  color: var(--muted);
}
.chain-btn:hover { background: rgba(255,255,255,0.07); color: #fff; }
.chain-btn.active {
  background: linear-gradient(135deg, rgba(255,138,193,0.15), rgba(168,85,247,0.15));
  border-color: rgba(255,138,193,0.5);
  color: #fff;
}
.chain-btn img { width: 16px; height: 16px; border-radius: 50%; }
@media (max-width: 500px) { .chain-btn span { display: none; } .chain-btn { padding: 8px 10px; } }

.swap-widget { margin-bottom: 4px; }
.swap-row { margin-bottom: 4px; }
.swap-row label {
  display: block; font-size: 11.5px; color: var(--muted);
  margin-bottom: 6px; letter-spacing: 0.06em; text-transform: uppercase;
}
.swap-input-group {
  display: flex; align-items: center; gap: 6px;
  padding: 4px 4px 4px 16px;
  border-radius: 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  transition: border-color 0.2s;
}
.swap-input-group:focus-within { border-color: rgba(255,138,193,0.5); }
.swap-input-group input {
  flex: 1; background: none; border: 0; outline: 0;
  padding: 14px 0; color: var(--ink);
  font-size: 17px; font-family: 'JetBrains Mono', monospace;
  min-width: 0;
}
.swap-input-group input::placeholder { color: var(--dim); }

.token-select-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 12px; border-radius: 12px;
  background: rgba(255,255,255,0.07);
  border: 1px solid var(--line);
  font-weight: 500; font-size: 13.5px;
  transition: all 0.2s; white-space: nowrap;
  flex-shrink: 0;
}
.token-select-btn:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,138,193,0.4); }
.token-select-btn img { width: 20px; height: 20px; border-radius: 50%; background: rgba(255,255,255,0.05); }

.swap-arrow {
  display: flex; justify-content: center; padding: 8px 0;
  color: var(--muted);
}

@media (max-width: 480px) {
  .swap-input-group { flex-wrap: wrap; padding: 12px; }
  .token-select-btn { width: 100%; justify-content: center; }
}

/* ============================================================
   BUY TAB
   ============================================================ */
.buy-grid { display: flex; flex-direction: column; gap: 10px; margin-bottom: 4px; }
.buy-option {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 20px; border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  border: 1px solid var(--line);
  transition: all 0.3s;
  text-align: left;
}
.buy-option:hover {
  transform: translateX(4px);
  border-color: rgba(255,138,193,0.4);
  box-shadow: 0 15px 40px -20px rgba(255,138,193,0.4);
}
.buy-icon { font-size: 28px; flex-shrink: 0; }
.buy-info { flex: 1; min-width: 0; }
.buy-info strong { display: block; font-size: 15px; margin-bottom: 3px; font-weight: 600; }
.buy-info span { font-size: 12.5px; color: var(--muted); }
.buy-arrow { color: var(--dim); flex-shrink: 0; transition: transform 0.2s; }
.buy-option:hover .buy-arrow { color: var(--pink); transform: translateX(2px); }

/* ============================================================
   SECTIONS
   ============================================================ */
.protocol, .faq, .ledger, .complaint-section {
  position: relative; z-index: 10;
  max-width: 1100px; margin: 0 auto;
  padding: 100px 24px;
}
.section-head { text-align: center; margin-bottom: 56px; }
.kicker {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--pink); margin-bottom: 14px;
}
.section-head h2 {
  font-size: clamp(30px, 4.5vw, 52px);
  letter-spacing: -0.035em; line-height: 1.05;
}

/* Protocol */
.protocol-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .protocol-grid { grid-template-columns: 1fr; } }
.step {
  padding: 32px 26px; border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  border: 1px solid var(--line);
  transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
}
.step:hover {
  transform: translateY(-6px);
  border-color: rgba(255,138,193,0.3);
  box-shadow: 0 40px 80px -30px rgba(255,138,193,0.3);
}
.step-num { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--dim); margin-bottom: 20px; }
.step-icon {
  width: 44px; height: 44px; margin-bottom: 18px;
  border-radius: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(255,138,193,0.15), rgba(168,85,247,0.15));
  border: 1px solid rgba(255,138,193,0.25);
  color: var(--pink);
}
.step-icon svg { width: 20px; height: 20px; }
.step h3 { font-size: 19px; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 14px; line-height: 1.65; }

/* Ledger */
.ledger-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
  border-radius: 24px; overflow: hidden;
  background: rgba(255,255,255,0.01);
}
@media (max-width: 900px) { .ledger-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .ledger-grid { grid-template-columns: 1fr; } }
.ledger-item {
  padding: 32px 24px;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  transition: background 0.3s;
}
.ledger-item:hover { background: rgba(255,255,255,0.02); }
.ledger-label { font-size: 11.5px; color: var(--dim); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 14px; }
.ledger-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(24px, 3vw, 34px); font-weight: 600; letter-spacing: -0.03em;
  margin-bottom: 8px;
  background: linear-gradient(120deg, #fff, var(--pink));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.ledger-value .unit { font-size: 0.5em; color: var(--pink); margin-left: 4px; }
.ledger-sub { font-size: 12.5px; color: var(--muted); line-height: 1.5; }

/* FAQ */
.faq-list { max-width: 720px; margin: 0 auto; }
details { border-bottom: 1px solid var(--line); padding: 22px 0; }
details[open] { padding-bottom: 26px; }
summary {
  cursor: pointer; list-style: none;
  font-family: 'Space Grotesk', sans-serif; font-size: 17px; font-weight: 500;
  display: flex; justify-content: space-between; align-items: center;
  transition: color 0.2s;
  gap: 16px;
}
summary:hover { color: var(--pink); }
summary::-webkit-details-marker { display: none; }
summary::after {
  content: '+'; font-size: 22px; color: var(--dim); font-weight: 300;
  transition: transform 0.3s; flex-shrink: 0;
}
details[open] summary::after { transform: rotate(45deg); color: var(--pink); }
details p { margin-top: 12px; color: var(--muted); font-size: 14px; line-height: 1.7; }

/* Complaint */
.complaint-form { max-width: 560px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.complaint-form input, .complaint-form textarea {
  width: 100%; padding: 15px 18px; border-radius: 16px;
  background: rgba(255,255,255,0.04); border: 1px solid var(--line);
  color: var(--ink); font-size: 14px; outline: none; resize: vertical;
  transition: border-color 0.2s;
}
.complaint-form input:focus, .complaint-form textarea:focus { border-color: rgba(255,138,193,0.5); }
.complaint-form input::placeholder, .complaint-form textarea::placeholder { color: var(--dim); }
.form-note { text-align: center; font-size: 12.5px; color: var(--dim); }
.form-note a { color: var(--pink); text-decoration: underline; text-decoration-color: rgba(255,138,193,0.3); }
.form-note a:hover { text-decoration-color: var(--pink); }

/* Footer */
.footer { position: relative; z-index: 10; border-top: 1px solid var(--line); padding: 48px 24px; }
.footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; flex-wrap: wrap; gap: 24px;
  justify-content: space-between; align-items: center;
}
.footer-brand .brand-text { font-size: 18px; }
.footer-brand p { color: var(--dim); font-size: 12.5px; margin-top: 6px; max-width: 280px; }
.footer-links { display: flex; gap: 20px; font-size: 14px; color: var(--muted); flex-wrap: wrap; }
.footer-links a:hover { color: #fff; }
.footer-copy { color: var(--dim); font-size: 12.5px; }

/* ============================================================
   MODALS (Token picker + Wallet)
   ============================================================ */
.modal {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(5,3,10,0.75);
  backdrop-filter: blur(12px);
  animation: fadeIn 0.25s ease;
}
.modal-card {
  position: relative; z-index: 1;
  width: 100%; max-width: 420px;
  max-height: 82vh;
  background: linear-gradient(180deg, rgba(24,18,34,0.98), rgba(14,10,22,0.98));
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 26px;
  padding: 24px;
  display: flex; flex-direction: column;
  animation: modalIn 0.35s cubic-bezier(0.4,0,0.2,1);
  box-shadow: 0 40px 100px -20px rgba(168,85,247,0.5);
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 20px; gap: 12px;
}
.modal-head h3 { font-size: 19px; margin-bottom: 4px; }
.modal-head p { color: var(--muted); font-size: 13px; }
.modal-close {
  width: 34px; height: 34px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--line);
  color: var(--muted);
  transition: all 0.2s;
  flex-shrink: 0;
}
.modal-close:hover { background: rgba(255,255,255,0.1); color: #fff; transform: rotate(90deg); }
.modal-search-input {
  width: 100%; padding: 14px 18px;
  border-radius: 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 14px;
  outline: none;
  margin-bottom: 14px;
}
.modal-search-input:focus { border-color: rgba(255,138,193,0.5); }
.modal-search-input::placeholder { color: var(--dim); }
.modal-foot {
  padding-top: 14px; margin-top: 14px;
  border-top: 1px solid var(--line);
  text-align: center;
}
.modal-foot p { color: var(--dim); font-size: 11.5px; }

/* Token list */
.token-list {
  flex: 1; overflow-y: auto;
  display: flex; flex-direction: column; gap: 2px;
  margin: -6px -6px 0;
  padding: 6px;
  max-height: 55vh;
}
.token-list::-webkit-scrollbar { width: 6px; }
.token-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }
.token-list-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 12px;
  transition: background 0.15s;
  text-align: left; width: 100%;
}
.token-list-item:hover { background: rgba(255,255,255,0.06); }
.token-list-item img {
  width: 32px; height: 32px; border-radius: 50%;
  flex-shrink: 0; background: rgba(255,255,255,0.05);
}
.token-list-info { flex: 1; min-width: 0; }
.token-list-symbol { font-weight: 600; font-size: 14px; }
.token-list-name {
  font-size: 12px; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.token-list-address {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px; color: var(--dim);
}
.token-empty { padding: 40px 20px; text-align: center; color: var(--muted); font-size: 13.5px; }

/* Wallet list */
.wallet-list {
  display: flex; flex-direction: column; gap: 6px;
  max-height: 380px; overflow-y: auto;
}
.wallet-list::-webkit-scrollbar { width: 6px; }
.wallet-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }
.wallet-item {
  display: flex; align-items: center; gap: 14px;
  padding: 13px 15px; border-radius: 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
  transition: all 0.2s;
  text-align: left; width: 100%;
}
.wallet-item:hover {
  background: rgba(255,138,193,0.06);
  border-color: rgba(255,138,193,0.3);
  transform: translateX(4px);
}
.wallet-item-icon {
  width: 40px; height: 40px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  overflow: hidden; flex-shrink: 0;
  background: rgba(255,255,255,0.06);
}
.wallet-item-icon img { width: 100%; height: 100%; object-fit: cover; }
.wallet-item-icon .wallet-letter {
  width: 100%; height: 100%;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700; font-size: 16px; color: #fff;
}
.wallet-item-info { flex: 1; min-width: 0; }
.wallet-item-name { font-weight: 500; font-size: 14.5px; color: var(--ink); }
.wallet-item-tag { font-size: 11.5px; color: var(--dim); margin-top: 2px; }
.wallet-item-arrow { color: var(--dim); transition: transform 0.2s; }
.wallet-item:hover .wallet-item-arrow { color: var(--pink); transform: translateX(2px); }

.wallet-empty { text-align: center; padding: 24px 0; }
.wallet-empty-icon { font-size: 40px; margin-bottom: 10px; }
.wallet-empty-title { font-family: 'Space Grotesk', sans-serif; font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.wallet-empty-sub { color: var(--muted); font-size: 13px; margin-bottom: 18px; }
.wallet-install-btn {
  display: inline-block;
  padding: 12px 22px; border-radius: 14px;
  background: linear-gradient(135deg, var(--pink), var(--violet));
  color: #0a0014; font-weight: 600; font-size: 13.5px;
  transition: all 0.2s;
}
.wallet-install-btn:hover { transform: translateY(-1px); box-shadow: 0 15px 40px -10px rgba(255,138,193,0.7); }

/* ============================================================
   SPINNER
   ============================================================ */
.spinner {
  width: 20px; height: 20px;
  border: 2px solid rgba(255,255,255,0.1);
  border-top-color: var(--pink);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: inline-block; vertical-align: middle; margin-right: 8px;
}
@keyframes spin { to { transform: rotate(360deg); } }