/* ============================================================
  TRC10SWAP — Global Stylesheet
  Aesthetic: Refined infrastructure / product UI
  Fonts: Inter (UI), IBM Plex Mono (data), Orbitron (brand)
  ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Orbitron:wght@400;600;700;900&family=IBM+Plex+Mono:wght@300;400;500&family=Syne:wght@400;500;600;700&display=swap');

/* ── CSS Custom Properties ── */
:root {
  /* Core palette */
  --bg-void:       #070b14;
  --bg-deep:       #0c1220;
  --bg-surface:    #111827;
  --bg-card:       rgba(15, 23, 42, 0.78);
  --bg-card-hover: rgba(17, 26, 48, 0.9);
  --bg-input:      rgba(12, 18, 32, 0.92);

  /* Accent palette */
  --neon-cyan:     #67e8f9;
  --neon-teal:     #5eead4;
  --neon-amber:    #fbbf24;
  --neon-red:      #f87171;
  --neon-purple:   #a78bfa;

  /* Borders & shadows */
  --border-glass:  rgba(148, 163, 184, 0.12);
  --border-glow:   rgba(103, 232, 249, 0.28);
  --shadow-sm:     0 4px 16px rgba(2, 8, 23, 0.22);
  --shadow-md:     0 12px 36px rgba(2, 8, 23, 0.28);
  --shadow-lg:     0 24px 56px rgba(2, 8, 23, 0.34);

  /* Text */
  --text-primary:   #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted:     #7c8ba1;
  --text-soft:      #94a3b8;
  --text-neon:      #67e8f9;

  /* Fonts */
  --font-display:  'Inter', sans-serif;
  --font-brand:    'Orbitron', monospace;
  --font-mono:     'IBM Plex Mono', monospace;
  --font-body:     'Inter', sans-serif;

  /* 8px spacing system */
  --gap-xs: 0.5rem;
  --gap-sm: 1rem;
  --gap-md: 1.5rem;
  --gap-lg: 2rem;
  --gap-xl: 4rem;

  /* Border radius */
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:  cubic-bezier(0.7, 0, 0.84, 0);
  --trans:    0.25s var(--ease-out);
}

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

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

body {
  font-family: var(--font-body);
  background: var(--bg-void);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  max-width: 100vw;
  line-height: 1.65;
  letter-spacing: -0.01em;
  text-rendering: optimizeLegibility;
}

/* Scrollbar */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: rgba(34,211,238,0.5); border-radius: 4px; }

/* ── Background Mesh ── */
.bg-mesh {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 56% 34% at 18% -8%, rgba(103,232,249,0.035) 0%, transparent 64%),
    radial-gradient(ellipse 44% 28% at 88% 110%, rgba(94,234,212,0.03) 0%, transparent 58%),
    radial-gradient(ellipse 42% 62% at 50% 50%, rgba(12,18,32,1) 0%, var(--bg-void) 100%);
}

/* Grid overlay */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(148,163,184,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148,163,184,0.018) 1px, transparent 1px);
  background-size: 72px 72px;
  opacity: 0.45;
  mask-image: radial-gradient(ellipse 100% 80% at 50% 50%, black 20%, transparent 100%);
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 var(--gap-lg);
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(7, 11, 20, 0.82);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  box-shadow: 0 1px 0 rgba(255,255,255,0.02);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--gap-sm);
  text-decoration: none;
}

.logo-icon {
  width: 34px;
  height: 34px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-icon svg {
  filter: drop-shadow(0 0 4px rgba(34,211,238,0.6));
}

.logo-text {
  font-family: var(--font-brand);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-primary);
}

.logo-text span {
  color: var(--neon-cyan);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--gap-lg);
  list-style: none;
}

.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-soft);
  text-decoration: none;
  position: relative;
  padding: 8px 0;
  transition: color var(--trans);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 1px;
  left: 0;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: rgba(103, 232, 249, 0.7);
  transition: width var(--trans);
}

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

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-badge {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  background: rgba(255, 58, 110, 0.15);
  color: var(--neon-red);
  border: 1px solid rgba(255, 58, 110, 0.3);
  padding: 2px 8px;
  border-radius: 100px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: pulse-badge 2s ease-in-out infinite;
}

@keyframes pulse-badge {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.6; }
}

.nav-cta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bg-void) !important;
  background: linear-gradient(180deg, #9be9f6 0%, #74dbe9 100%);
  padding: 10px 18px;
  border-radius: 999px;
  text-decoration: none;
  transition: all var(--trans) !important;
  box-shadow: 0 10px 24px rgba(10, 184, 209, 0.18);
}

.nav-cta:hover {
  background: linear-gradient(180deg, #aaf4e6 0%, #7de7d5 100%) !important;
  box-shadow: 0 14px 28px rgba(10, 184, 209, 0.22) !important;
  transform: translateY(-1px);
}

.nav-cta::after { display: none !important; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: all var(--trans);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--bg-deep);
  border-top: 1px solid rgba(148,163,184,0.08);
  padding: 64px var(--gap-lg) 24px;
  margin-top: var(--gap-xl);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: var(--gap-xl);
}

.footer-brand p {
  font-size: 0.9rem;
  color: var(--text-soft);
  margin-top: 18px;
  max-width: 260px;
  line-height: 1.75;
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: var(--gap-md);
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--gap-sm);
}

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

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

.footer-bottom {
  max-width: 1200px;
  margin: var(--gap-lg) auto 0;
  padding-top: var(--gap-md);
  border-top: 1px solid rgba(148,163,184,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-soft);
}

.footer-status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--neon-red);
  border-radius: 50%;
  margin-right: 6px;
  box-shadow: 0 0 6px var(--neon-red);
  animation: blink 1.4s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  border-radius: 12px;
  min-height: 44px;
  padding: 12px 20px;
  transition: all var(--trans);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.07);
  opacity: 0;
  transition: opacity var(--trans);
}
.btn:hover::before { opacity: 1; }

/* Primary */
.btn-primary {
  background: linear-gradient(180deg, #96f0fb 0%, #6dd8e8 100%);
  color: var(--bg-void);
  box-shadow: 0 10px 24px rgba(19, 171, 194, 0.18);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(19, 171, 194, 0.22);
}
.btn-primary:active { transform: translateY(0); }

/* Outline */
.btn-outline {
  background: rgba(255,255,255,0.02);
  color: var(--text-primary);
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: none;
}
.btn-outline:hover {
  border-color: rgba(148, 163, 184, 0.3);
  background: rgba(255,255,255,0.04);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

/* Ghost */
.btn-ghost {
  background: rgba(0,229,255,0.06);
  color: var(--text-secondary);
  border: 1px solid var(--border-glass);
}
.btn-ghost:hover {
  background: rgba(0,229,255,0.12);
  color: var(--text-primary);
}

/* Danger */
.btn-danger {
  background: rgba(255,58,110,0.1);
  color: var(--neon-red);
  border: 1px solid rgba(255,58,110,0.3);
}
.btn-danger:hover {
  background: rgba(255,58,110,0.2);
  box-shadow: 0 0 20px rgba(255,58,110,0.2);
}

/* Disabled */
.btn:disabled,
.btn[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* Large */
.btn-lg {
  font-size: 0.82rem;
  min-height: 52px;
  padding: 14px 28px;
  border-radius: 14px;
}

/* ============================================================
   CARDS (Glassmorphism)
   ============================================================ */
.card {
  background: var(--bg-card);
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: var(--radius-lg);
  padding: var(--gap-lg);
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
  transition: all var(--trans);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
  opacity: 0.55;
  transition: opacity var(--trans);
}

.card:hover {
  border-color: rgba(148, 163, 184, 0.16);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.card:hover::before {
  opacity: 1;
}

/* ============================================================
   FORMS & INPUTS
   ============================================================ */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.form-input {
  background: var(--bg-input);
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: var(--radius-md);
  min-height: 48px;
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-primary);
  width: 100%;
  outline: none;
  transition: all var(--trans);
}

.form-input:focus {
  border-color: rgba(103, 232, 249, 0.45);
  box-shadow: 0 0 0 4px rgba(103, 232, 249, 0.08);
}

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

.form-input.error {
  border-color: var(--neon-red);
  box-shadow: 0 0 0 3px rgba(255,58,110,0.1);
}

.form-error {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--neon-red);
  display: none;
}

.form-error.visible { display: block; }

/* Select */
.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%2300e5ff' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}

.form-select option {
  background: var(--bg-deep);
  color: var(--text-primary);
}

/* ============================================================
   STATUS BADGES
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
  white-space: nowrap;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.badge-active {
  background: rgba(0,245,196,0.1);
  color: var(--neon-teal);
  border: 1px solid rgba(0,245,196,0.25);
}
.badge-active .badge-dot { background: var(--neon-teal); box-shadow: 0 0 5px var(--neon-teal); animation: blink 2s infinite; }

.badge-paused {
  background: rgba(255,58,110,0.1);
  color: var(--neon-red);
  border: 1px solid rgba(255,58,110,0.25);
}
.badge-paused .badge-dot { background: var(--neon-red); box-shadow: 0 0 5px var(--neon-red); }

.badge-pending {
  background: rgba(255,184,48,0.1);
  color: var(--neon-amber);
  border: 1px solid rgba(255,184,48,0.25);
}
.badge-pending .badge-dot { background: var(--neon-amber); animation: blink 1s infinite; }

/* ============================================================
   MODALS
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(5,8,16,0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--gap-md);
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s var(--ease-out);
}

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

.modal {
  background: var(--bg-deep);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: var(--gap-xl) var(--gap-lg);
  max-width: 480px;
  width: 100%;
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  position: relative;
  transform: translateY(20px) scale(0.96);
  transition: transform 0.4s var(--ease-out);
  box-shadow: 0 40px 100px rgba(0,0,0,0.6), 0 0 60px rgba(0,229,255,0.04);
}

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

.modal-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--gap-md);
  font-size: 1.8rem;
}

.modal-icon.warning {
  background: rgba(255,184,48,0.1);
  border: 1px solid rgba(255,184,48,0.3);
  box-shadow: 0 0 30px rgba(255,184,48,0.1);
}

.modal-icon.error {
  background: rgba(255,58,110,0.1);
  border: 1px solid rgba(255,58,110,0.3);
  box-shadow: 0 0 30px rgba(255,58,110,0.1);
}

.modal-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: center;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.modal-body {
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: var(--gap-lg);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--text-muted);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--trans);
}
.modal-close:hover { color: var(--text-primary); background: rgba(255,255,255,0.1); }

#senderWalletModal .sender-wallet-modal {
  overflow: hidden;
  background:
    radial-gradient(circle at 14% 18%, rgba(0,229,255,0.12), transparent 44%),
    radial-gradient(circle at 86% 74%, rgba(0,245,196,0.11), transparent 48%),
    linear-gradient(150deg, rgba(8,14,28,0.97), rgba(7,10,20,0.98));
  border: 1px solid rgba(0,229,255,0.24);
  box-shadow: 0 35px 90px rgba(0,0,0,0.62), inset 0 0 0 1px rgba(0,229,255,0.06), 0 0 44px rgba(0,229,255,0.11);
}

#senderWalletModal .sender-wallet-modal::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(0,229,255,0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(0,229,255,0.035) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: 0.32;
  pointer-events: none;
}

#senderWalletModal .sender-wallet-orb {
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  filter: blur(28px);
  pointer-events: none;
  opacity: 0.45;
}

#senderWalletModal .sender-wallet-orb-left {
  top: -95px;
  left: -75px;
  background: rgba(0,229,255,0.42);
}

#senderWalletModal .sender-wallet-orb-right {
  bottom: -100px;
  right: -78px;
  background: rgba(0,245,196,0.38);
}

#senderWalletModal .sender-wallet-header,
#senderWalletModal .sender-wallet-desc,
#senderWalletModal .sender-wallet-badges,
#senderWalletModal .sender-wallet-form-group,
#senderWalletModal .sender-wallet-btn {
  position: relative;
  z-index: 1;
}

#senderWalletModal .sender-wallet-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

#senderWalletModal .sender-wallet-title {
  margin: 0;
  text-align: left;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

#senderWalletModal .sender-wallet-close {
  border-color: rgba(0,229,255,0.24);
  color: var(--text-secondary);
  background: rgba(0,229,255,0.06);
}

#senderWalletModal .sender-wallet-close:hover {
  background: rgba(0,229,255,0.18);
  border-color: rgba(0,229,255,0.44);
}

#senderWalletModal .sender-wallet-desc {
  font-size: 0.82rem;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 14px;
  max-width: 96%;
}

#senderWalletModal .sender-wallet-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

#senderWalletModal .sender-wallet-badges span {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--neon-cyan);
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(0,229,255,0.08);
  border: 1px solid rgba(0,229,255,0.2);
}

#senderWalletModal .sender-wallet-form-group {
  margin-bottom: 18px;
}

#senderWalletModal .sender-wallet-input-shell {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(140deg, rgba(4,12,25,0.85), rgba(2,9,18,0.9));
  border: 1px solid rgba(0,229,255,0.22);
  border-radius: 14px;
  padding: 0 14px;
  box-shadow: inset 0 0 24px rgba(0,229,255,0.05);
  transition: box-shadow var(--trans), border-color var(--trans);
}

#senderWalletModal .sender-wallet-input-shell:focus-within {
  border-color: rgba(0,245,196,0.6);
  box-shadow: inset 0 0 24px rgba(0,229,255,0.11), 0 0 0 3px rgba(0,245,196,0.14), 0 0 28px rgba(0,229,255,0.15);
}

#senderWalletModal .sender-wallet-input-prefix {
  font-family: var(--font-display);
  color: var(--neon-cyan);
  font-size: 1rem;
  letter-spacing: 0.08em;
}

#senderWalletModal .sender-wallet-input {
  border: none;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  padding: 15px 4px 15px 0;
}

#senderWalletModal .sender-wallet-input:focus {
  box-shadow: none;
}

#senderWalletModal .sender-wallet-hint {
  margin-top: 8px;
  font-size: 0.67rem;
  color: var(--text-muted);
  line-height: 1.55;
  letter-spacing: 0.02em;
}

#senderWalletModal .sender-wallet-btn {
  position: relative;
  border-radius: 12px;
  padding: 13px 24px;
  font-weight: 600;
  letter-spacing: 0.2em;
  animation: sender-wallet-btn-glow 2.4s ease-in-out infinite;
}

@keyframes sender-wallet-btn-glow {
  0%, 100% { box-shadow: 0 4px 16px rgba(34,211,238,0.2); }
  50%       { box-shadow: 0 4px 20px rgba(34,211,238,0.28); }
}

/* ============================================================
   TOAST NOTIFICATIONS
   ============================================================ */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--bg-deep);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  max-width: 360px;
  pointer-events: all;
  transform: translateX(120%);
  opacity: 0;
  transition: all 0.4s var(--ease-out);
  box-shadow: 0 10px 40px rgba(0,0,0,0.4);
}

.toast.show {
  transform: translateX(0);
  opacity: 1;
}

.toast-icon {
  font-size: 1.1rem;
  margin-top: 1px;
  flex-shrink: 0;
}

.toast-content {
  flex: 1;
}

.toast-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  margin-bottom: 3px;
}

.toast-msg {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  animation: toast-progress 4s linear forwards;
}

@keyframes toast-progress {
  from { width: 100%; }
  to   { width: 0%; }
}

.toast.info    { border-left: 3px solid var(--neon-cyan); }
.toast.info    .toast-progress { background: var(--neon-cyan); }
.toast.warning { border-left: 3px solid var(--neon-amber); }
.toast.warning .toast-progress { background: var(--neon-amber); }
.toast.error   { border-left: 3px solid var(--neon-red); }
.toast.error   .toast-progress { background: var(--neon-red); }
.toast.success { border-left: 3px solid var(--neon-teal); }
.toast.success .toast-progress { background: var(--neon-teal); }

/* ============================================================
   PAGE WRAPPER
   ============================================================ */
.page-content {
  padding-top: 72px;
  min-height: 100vh;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--gap-lg);
}

/* Section headings */
.section-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-soft);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.section-label::before,
.section-label::after {
  content: none;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.04;
  margin-bottom: 16px;
}

.section-title .accent { color: #9debf6; }

.section-sub {
  color: var(--text-soft);
  font-size: 1.02rem;
  max-width: 620px;
  line-height: 1.75;
}

/* ============================================================
   HOME — HERO
   ============================================================ */
.hero {
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: calc(var(--gap-xl) + 0.5rem) 0 var(--gap-xl);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 56px;
  align-items: center;
}

/* Parallax orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  will-change: transform;
  transform: translateZ(0);
}

@media (max-width: 767px) {
  .hero-orb {
    filter: blur(40px);
  }
}

.hero-orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(103,232,249,0.035), transparent 72%);
  top: -100px;
  right: -100px;
}

.hero-orb-2 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(94,234,212,0.028), transparent 72%);
  bottom: -50px;
  left: 30%;
}

.hero-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fde68a;
  background: rgba(251, 191, 36, 0.07);
  border: 1px solid rgba(251,184,36,0.18);
  box-shadow: none;
  padding: 8px 14px;
  border-radius: 100px;
  margin-bottom: var(--gap-md);
  overflow: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.hero-badge::before {
  content: none;
}

.hero-badge::after {
  content: none;
}

.hero-badge-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff1c9;
  background: rgba(251, 191, 36, 0.16);
  border: 1px solid rgba(251,184,36,0.22);
  box-shadow: none;
}

.hero-badge-icon svg {
  display: block;
  filter: none;
}

.hero-badge-copy {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  line-height: 1;
  text-shadow: none;
}

@media (max-width: 640px) {
  .hero-badge {
    gap: 9px;
    padding: 8px 14px;
    font-size: 0.6rem;
    letter-spacing: 0.16em;
  }

  .hero-badge-icon {
    width: 20px;
    height: 20px;
    flex-basis: 20px;
  }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 5vw, 4.75rem);
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 0.98;
  max-width: 11ch;
  margin-bottom: 20px;
}

.hero-title .line-accent {
  display: block;
  color: #9debf6;
  text-shadow: none;
}

.hero-desc {
  color: var(--text-soft);
  font-size: 1.05rem;
  line-height: 1.8;
  max-width: 560px;
  margin-bottom: var(--gap-lg);
}

.hero-cta-row {
  display: flex;
  gap: var(--gap-md);
  flex-wrap: wrap;
  align-items: center;
}

.hero-stats {
  display: flex;
  gap: 24px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.hero-stats > div {
  min-width: 120px;
}

.hero-stat-value {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.04em;
}

.hero-stat-value span { color: var(--neon-cyan); }

.hero-stat-label {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: var(--text-soft);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 6px;
}

/* Hero visual */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-card-float {
  background: var(--bg-card);
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: var(--radius-xl);
  padding: 28px;
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  animation: float 8s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-8px); }
}

.hero-card-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--gap-md);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-token-from,
.hero-token-to {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 18px;
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-token-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.hero-token-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.hero-token-amount {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 700;
  margin-left: auto;
  letter-spacing: -0.03em;
}

.hero-swap-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin: -6px auto;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
  color: #9debf6;
  border: 1px solid rgba(148,163,184,0.14);
  box-shadow: 0 8px 18px rgba(2, 8, 23, 0.22);
  transition: transform var(--trans), border-color var(--trans), box-shadow var(--trans);
}

.hero-swap-arrow:hover {
  transform: rotate(180deg);
  border-color: rgba(103, 232, 249, 0.26);
  box-shadow: 0 12px 24px rgba(2, 8, 23, 0.28);
}

.hero-card-rate {
  display: flex;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: var(--gap-sm);
  padding-top: var(--gap-sm);
  border-top: 1px solid var(--border-glass);
  gap: 6px;
}

.hero-card-rate strong { color: var(--neon-teal); }

/* ============================================================
   LIVE SWAPS TICKER
   ============================================================ */
.live-swaps-wrapper {
  width: 100%;
  background: rgba(9, 14, 25, 0.8);
  border-bottom: 1px solid rgba(148,163,184,0.08);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.live-swaps-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,0.02), transparent 30%, transparent 70%, rgba(255,255,255,0.02));
  pointer-events: none;
}

.live-swaps-label {
  display: flex;
  align-items: center;
  padding: 14px 20px;
  background: rgba(7,11,20,0.96);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--neon-teal);
  white-space: nowrap;
  border-right: 1px solid var(--border-glass);
  z-index: 10;
  box-shadow: 10px 0 20px rgba(0,0,0,0.35);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  background: var(--neon-green);
  border-radius: 50%;
  display: inline-block;
  margin-right: 10px;
  box-shadow: 0 0 8px var(--neon-green), 0 0 16px rgba(0,200,100,0.3);
  animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px var(--neon-green), 0 0 16px rgba(0,200,100,0.3); }
  50% { opacity: 0.5; box-shadow: 0 0 4px var(--neon-green); }
}

.live-swaps-track-container {
  flex: 1;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  padding: 10px 0;
}

.live-swaps-track-container::before,
.live-swaps-track-container::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}

.live-swaps-track-container::before {
  left: 0;
  background: linear-gradient(to right, rgba(8,13,26,0.95), transparent);
}

.live-swaps-track-container::after {
  right: 0;
  background: linear-gradient(to left, rgba(8,13,26,0.95), transparent);
}

.live-swaps-track {
  display: flex;
  gap: 16px;
  width: max-content;
  padding: 0 10px;
  will-change: transform;
  backface-visibility: hidden;
}

.swap-ticker-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(148,163,184,0.1);
  border-radius: 12px;
  padding: 8px 14px;
  white-space: nowrap;
  font-family: var(--font-mono);
  cursor: default;
  position: relative;
  contain: layout style;
}

.swap-ticker-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 2px;
  height: 60%;
  border-radius: 2px;
  background: var(--neon-green);
  opacity: 0.5;
}

.ticker-token {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-primary);
}

.ticker-arrow {
  color: var(--neon-cyan);
  font-size: 0.8rem;
  opacity: 0.4;
}

.ticker-time {
  font-size: 0.6rem;
  color: var(--text-muted);
  margin-left: 4px;
  opacity: 0.6;
}

/* Mobile optimizations for Live Swaps */
@media (max-width: 768px) {
  .live-swaps-wrapper {
    flex-direction: row;
    align-items: center;
    width: 100%;
    overflow: hidden;
  }
  .live-swaps-label {
    padding: 10px 14px;
    border-right: 1px solid var(--border-glass);
    border-bottom: none;
    font-size: 0.62rem;
    box-shadow: 6px 0 14px rgba(0,0,0,0.5);
  }
  .live-swaps-track-container {
    padding: 8px 0;
    width: 100%;
    overflow: hidden;
  }
  .swap-ticker-card {
    padding: 6px 10px;
    gap: 6px;
  }
  .ticker-token { font-size: 0.7rem; gap: 4px; }
  .ticker-time { display: none; }
}

/* ============================================================
   HOME — FEATURES
   ============================================================ */
.features-section {
  padding: 88px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap-md);
  margin-top: var(--gap-xl);
}

.feature-card {
  padding: 28px;
  position: relative;
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  background: rgba(103,232,249,0.08);
  border: 1px solid rgba(103,232,249,0.14);
  color: #a5f3fc;
}

.feature-title {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}

.feature-desc {
  font-size: 0.92rem;
  color: var(--text-soft);
  line-height: 1.75;
}

/* ============================================================
   HOME — HOW IT WORKS
   ============================================================ */
.how-section {
  padding: 88px 0;
}

.how-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap-lg);
  margin-top: var(--gap-xl);
  position: relative;
  counter-reset: how-step;
}

/* Horizontal timeline connector behind cards */
.how-steps::before {
  content: '';
  position: absolute;
  top: 50px;
  left: calc(16.66% + 24px);
  right: calc(16.66% + 24px);
  height: 2px;
  background: linear-gradient(90deg,
    transparent,
    rgba(0,229,255,0.25) 15%,
    rgba(0,229,255,0.25) 85%,
    transparent);
  z-index: 0;
}

.how-step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 28px 24px 24px;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(148,163,184,0.12);
  border-radius: var(--radius-lg);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  z-index: 1;
}

.how-step:hover {
  border-color: rgba(148,163,184,0.16);
  box-shadow: var(--shadow-sm);
}

.how-step-header {
  position: relative;
  margin-bottom: var(--gap-md);
}

.how-step-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(103,232,249,0.08);
  border: 1px solid rgba(103,232,249,0.16);
  color: #a5f3fc;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.how-step:hover .how-step-icon {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(34,211,238,0.1);
}

.how-step-badge {
  position: absolute;
  top: -4px;
  right: -6px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #a5f3fc;
  color: var(--bg-void);
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px rgba(0,229,255,0.35);
}

.how-step-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.how-step-desc {
  font-size: 0.9rem;
  color: var(--text-soft);
  line-height: 1.72;
}

@media (max-width: 768px) {
  .how-steps {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
  }
  .how-steps::before {
    display: none;
  }
  .how-step {
    flex-direction: row;
    text-align: left;
    gap: var(--gap-md);
    padding: var(--gap-md);
  }
  .how-step-header {
    flex-shrink: 0;
    margin-bottom: 0;
  }
  .how-step-icon {
    width: 52px;
    height: 52px;
  }
}

/* ============================================================
   HOME — TOKEN SHOWCASE
   ============================================================ */
.tokens-section {
  padding: 88px 0;
}

.tokens-showcase-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap-md);
  margin-top: var(--gap-xl);
}

.token-showcase-card {
  padding: 24px 18px;
  text-align: center;
}

.token-logo {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(148,163,184,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto var(--gap-sm);
  transition: all var(--trans);
  overflow: hidden;
}

.token-showcase-card:hover .token-logo {
  border-color: rgba(103,232,249,0.22);
  box-shadow: 0 10px 24px rgba(2, 8, 23, 0.2);
}

.token-name {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.token-symbol {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--neon-cyan);
  margin: 3px 0;
}

.token-network {
  font-size: 0.72rem;
  color: var(--text-soft);
}

/* ============================================================
   SWAP PAGE
   ============================================================ */
.swap-page {
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--gap-xl) var(--gap-lg);
}

.swap-wrapper {
  width: 100%;
  max-width: 520px;
}

.swap-header {
  text-align: center;
  margin-bottom: var(--gap-xl);
}

.swap-header h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  margin-bottom: 8px;
}

.swap-header p {
  font-size: 0.95rem;
  color: var(--text-soft);
}

.swap-card {
  padding: 32px 28px;
}

.swap-fields {
  display: flex;
  flex-direction: column;
  gap: var(--gap-md);
  position: relative;
}

.swap-input-box {
  background: rgba(10,15,27,0.88);
  border: 1px solid rgba(148,163,184,0.14);
  border-radius: var(--radius-lg);
  padding: 22px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.swap-input-box:focus-within {
  border-color: var(--neon-cyan);
  background: rgba(34,211,238,0.02);
  box-shadow: 0 0 0 2px rgba(34,211,238,0.1);
}

.swap-box-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 14px;
}

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

.swap-token-select {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(148,163,184,0.14);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  cursor: pointer;
  transition: all var(--trans);
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.swap-token-select:hover {
  border-color: var(--neon-cyan);
  background: rgba(34,211,238,0.12);
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  transform: translateY(-1px);
}

.swap-token-emoji { font-size: 1.1rem; }

.swap-token-ticker {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-primary);
}

.swap-amount-input {
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  font-weight: 700;
  color: var(--text-primary);
  width: 100%;
  flex: 1;
  min-width: 0;
  text-align: left;
  letter-spacing: -0.04em;
  transition: all var(--trans);
  text-overflow: ellipsis;
}

.swap-amount-input:focus {
  text-shadow: none;
}

.swap-amount-input::placeholder {
  color: rgba(255,255,255,0.15);
}

.swap-amount-input:read-only {
  color: var(--neon-teal);
}

.swap-amount-hint {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
}

.swap-arrow-center {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 2px 0;
}

.swap-arrow-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0,229,255,0.08);
  border: 1px solid var(--border-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--neon-cyan);
  cursor: pointer;
  transition: all var(--trans);
}
.swap-arrow-btn:hover {
  background: rgba(0,229,255,0.15);
  transform: rotate(180deg);
  box-shadow: 0 0 20px rgba(0,229,255,0.2);
}

.swap-divider {
  height: 1px;
  background: var(--border-glass);
  margin: var(--gap-md) 0;
}

.swap-rate-info {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  padding: 8px 0;
}

.swap-rate-value { color: var(--text-secondary); }

.swap-summary-card {
  margin-top: 14px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(148,163,184,0.12);
  background: rgba(255,255,255,0.03);
}

.swap-summary-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.swap-summary-kicker {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.swap-summary-header strong {
  font-family: var(--font-display);
  font-size: 0.92rem;
  color: var(--text-primary);
}

.swap-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.swap-summary-cell {
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.02);
}

.swap-summary-cell span {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.swap-summary-cell strong {
  font-family: var(--font-display);
  font-size: 0.84rem;
  color: var(--text-primary);
  line-height: 1.35;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.swap-live-summary {
  margin-top: 14px;
  margin-bottom: 12px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(148,163,184,0.12);
  background: rgba(255,255,255,0.03);
}

.swap-live-summary-top,
.swap-live-summary-main,
.swap-live-summary-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.swap-live-summary-top {
  align-items: flex-start;
  margin-bottom: 10px;
}

.swap-live-badge {
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(17, 212, 117, 0.12);
  border: 1px solid rgba(17, 212, 117, 0.25);
  color: #8dffbf;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.swap-live-summary-main {
  margin-bottom: 10px;
}

.swap-live-stat {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(7,11,20,0.5);
  border: 1px solid rgba(148,163,184,0.12);
}

.swap-live-stat span,
.swap-live-summary-meta {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  color: var(--text-muted);
}

.swap-live-stat strong {
  display: block;
  margin-top: 6px;
  font-family: var(--font-display);
  font-size: 0.96rem;
  color: var(--text-primary);
  line-height: 1.3;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.swap-live-summary-meta {
  flex-wrap: wrap;
  line-height: 1.5;
}

.swap-action-area {
  margin-top: var(--gap-md);
  position: sticky;
  bottom: max(12px, env(safe-area-inset-bottom));
  z-index: 100;
}

.swap-btn-main {
  width: 100%;
  padding: 22px;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  box-shadow: 0 14px 30px rgba(19,171,194,0.22);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.swap-btn-main:hover {
  box-shadow: 0 18px 36px rgba(19,171,194,0.28);
  transform: translateY(-1px);
}

/* Mobile optimizations */
@media (max-width: 600px) {
  .swap-card {
    padding: 24px 16px;
  }
  
  .swap-amount-input {
    font-size: 1.8rem;
  }

  .swap-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .swap-summary-card,
  .swap-live-summary {
    padding: 12px;
    border-radius: 14px;
  }

  .swap-summary-cell,
  .swap-live-stat {
    padding: 9px 10px;
  }

  .swap-live-summary-main,
  .swap-live-summary-top,
  .swap-live-summary-meta {
    flex-direction: column;
    gap: 8px;
  }

  .swap-token-select {
    padding: 8px 12px;
  }
  
  .swap-action-area {
    bottom: 16px;
  }
  
  .swap-btn-main {
    padding: 20px;
    box-shadow: 0 12px 32px rgba(34,211,238,0.3);
    border: 1px solid rgba(34,211,238,0.35);
    backdrop-filter: blur(12px);
  }
}

/* Loading shimmer */
.shimmer {
  position: relative;
  overflow: hidden;
}

.shimmer::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(0,229,255,0.06) 50%, transparent 100%);
  transform: translateX(-100%);
  animation: shimmer 1.6s ease-in-out infinite;
}

@keyframes shimmer {
  to { transform: translateX(100%); }
}

/* Loading state */
.swap-loading {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

.swap-loading.visible { display: flex; }

.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid var(--border-glass);
  border-top-color: var(--neon-cyan);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.paused-notice {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,58,110,0.06);
  border: 1px solid rgba(255,58,110,0.2);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  margin-bottom: var(--gap-md);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--neon-red);
  letter-spacing: 0.05em;
}

.paused-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--neon-red);
  flex-shrink: 0;
  animation: blink 1s infinite;
}

/* ============================================================
   TOKENS PAGE
   ============================================================ */
.tokens-page-header {
  padding: var(--gap-xl) 0 var(--gap-lg);
  text-align: center;
}

.tokens-filter-bar {
  display: flex;
  gap: var(--gap-sm);
  margin-bottom: var(--gap-lg);
  flex-wrap: wrap;
}

.filter-input {
  flex: 1;
  min-width: 200px;
}

.tokens-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: var(--gap-lg);
}

/* ── Token Card — Professional Layout ─────────── */
.token-card {
  padding: 0;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), border-color 0.35s var(--ease-out);
}
.token-card:hover {
  transform: translateY(-3px);
  border-color: rgba(34, 211, 238, 0.18);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.4);
}

/* Header */
.tc-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 20px 0;
}
.tc-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: box-shadow 0.35s var(--ease-out);
}
.tc-icon img,
.tc-icon svg {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: block;
}
.token-card:hover .tc-icon {
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.22);
}
.tc-identity {
  flex: 1;
  min-width: 0;
}
.tc-name {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-primary);
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tc-sub {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 3px;
}
.tc-symbol {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--neon-cyan);
  font-weight: 600;
  letter-spacing: 0.08em;
}
.tc-sep {
  color: var(--text-muted);
  opacity: 0.3;
  font-size: 0.6rem;
}
.tc-id {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--text-muted);
  opacity: 0.5;
}
.tc-network {
  font-family: var(--font-mono);
  font-size: 0.54rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--neon-cyan);
  background: rgba(0, 229, 255, 0.06);
  border: 1px solid rgba(0, 229, 255, 0.15);
  border-radius: 6px;
  padding: 4px 10px;
  flex-shrink: 0;
  line-height: 1;
}

/* Stats 2×2 Grid */
.tc-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin: 16px 20px 0;
  background: rgba(0, 229, 255, 0.06);
  border-radius: 8px;
  overflow: hidden;
}
.tc-stat {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 12px 14px;
  background: rgba(8, 14, 28, 0.85);
}
.tc-stat-label {
  font-family: var(--font-mono);
  font-size: 0.54rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.tc-stat-value {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
}
.tc-stat-value small {
  font-size: 0.6rem;
  color: var(--text-muted);
  font-weight: 400;
}
.tc-stat--accent {
  color: var(--neon-green);
}
.tc-stat--truncate {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Liquidity indicator */
.ld-wrap {
  display: inline-flex;
  gap: 3px;
  margin-right: 6px;
  vertical-align: middle;
}
.ld {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.04);
}
.ld.on {
  background: var(--neon-cyan);
  border-color: transparent;
  box-shadow: 0 0 5px rgba(0, 229, 255, 0.35);
}
.liq--high .ld.on {
  background: var(--neon-green);
  box-shadow: 0 0 5px rgba(0, 245, 196, 0.4);
}
.liq--mid .ld.on {
  background: #ffb830;
  box-shadow: 0 0 5px rgba(255, 184, 48, 0.35);
}
.liq--low .ld.on {
  background: #ff4d6a;
  box-shadow: 0 0 5px rgba(255, 77, 106, 0.35);
}

/* Card Footer */
.tc-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  margin-top: 16px;
  border-top: 1px solid var(--border-glass);
}
.tc-status {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.tc-status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--neon-green);
  box-shadow: 0 0 8px rgba(0, 245, 196, 0.5);
  animation: tcPulse 2.4s ease-in-out infinite;
}
@keyframes tcPulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px rgba(0, 245, 196, 0.5); }
  50% { opacity: 0.45; box-shadow: 0 0 4px rgba(0, 245, 196, 0.2); }
}
.tc-swap-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--neon-cyan);
  text-decoration: none;
  padding: 7px 16px;
  border-radius: 6px;
  border: 1px solid rgba(0, 229, 255, 0.18);
  background: rgba(0, 229, 255, 0.03);
  opacity: 0;
  transform: translateX(10px);
  transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out), background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.token-card:hover .tc-swap-btn {
  opacity: 1;
  transform: translateX(0);
}
.tc-swap-btn:hover {
  background: rgba(0, 229, 255, 0.1);
  border-color: rgba(0, 229, 255, 0.4);
  box-shadow: 0 0 14px rgba(0, 229, 255, 0.12);
}

.tokens-count {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: right;
  margin-bottom: var(--gap-sm);
}

/* ============================================================
   STATUS PAGE
   ============================================================ */
.status-page-header {
  padding: var(--gap-xl) 0 var(--gap-lg);
  text-align: center;
}

.status-overall {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: var(--gap-md);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--neon-red);
  letter-spacing: 0.1em;
}

.status-overall-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--neon-red);
  box-shadow: 0 0 10px var(--neon-red);
  animation: blink 1.2s ease-in-out infinite;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap-md);
  margin-bottom: var(--gap-xl);
}

.status-component-card {
  padding: var(--gap-lg);
}

.status-comp-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--gap-md);
}

.status-comp-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.status-comp-icon.cyan {
  background: rgba(0,229,255,0.08);
  border: 1px solid rgba(0,229,255,0.2);
}

.status-comp-icon.amber {
  background: rgba(255,184,48,0.08);
  border: 1px solid rgba(255,184,48,0.2);
}

.status-comp-icon.red {
  background: rgba(255,58,110,0.08);
  border: 1px solid rgba(255,58,110,0.2);
}

.status-comp-name {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.status-comp-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Animated network indicator */
.status-wave {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 24px;
  margin-top: var(--gap-md);
}

.status-wave span {
  display: block;
  width: 4px;
  border-radius: 2px;
  background: var(--neon-cyan);
  animation: wave 1s ease-in-out infinite;
}

.status-wave.paused span {
  background: var(--neon-red);
  animation: none;
  height: 4px !important;
}

.status-wave.degraded span {
  background: var(--neon-amber);
  animation: wave 2s ease-in-out infinite;
}

@keyframes wave {
  0%, 100% { transform: scaleY(0.4); }
  50%       { transform: scaleY(1); }
}

.status-wave span:nth-child(1) { height: 60%; animation-delay: 0s; }
.status-wave span:nth-child(2) { height: 100%; animation-delay: 0.1s; }
.status-wave span:nth-child(3) { height: 45%; animation-delay: 0.2s; }
.status-wave span:nth-child(4) { height: 80%; animation-delay: 0.3s; }
.status-wave span:nth-child(5) { height: 55%; animation-delay: 0.4s; }

/* Uptime bar */
.uptime-bar {
  margin-top: var(--gap-md);
}

.uptime-label {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.uptime-track {
  height: 4px;
  border-radius: 4px;
  background: rgba(255,255,255,0.06);
  overflow: hidden;
}

.uptime-fill {
  height: 100%;
  border-radius: 4px;
  background: var(--neon-cyan);
  box-shadow: 0 0 8px var(--neon-cyan);
}

/* Incident log */
.incident-log {
  margin-top: var(--gap-xl);
}

.incident-list {
  display: flex;
  flex-direction: column;
  gap: var(--gap-sm);
  margin-top: var(--gap-lg);
}

.incident-item {
  display: flex;
  gap: var(--gap-md);
  align-items: flex-start;
  padding: var(--gap-md);
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  backdrop-filter: blur(8px);
}

.incident-time {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  white-space: nowrap;
  min-width: 100px;
  padding-top: 2px;
}

.incident-title {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 3px;
}

.incident-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ============================================================
   ANIMATIONS — PAGE LOAD & SCROLL REVEAL
   ============================================================ */

/* Page entrance — JS adds .page-ready after DOMContentLoaded */
body:not(.page-ready) {
  opacity: 0;
}

/* Scroll-reveal elements: hidden until IntersectionObserver triggers */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-up.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children within a grid/container */
.fade-up:nth-child(2) { transition-delay: 0.06s; }
.fade-up:nth-child(3) { transition-delay: 0.12s; }
.fade-up:nth-child(4) { transition-delay: 0.18s; }
.fade-up:nth-child(5) { transition-delay: 0.24s; }
.fade-up:nth-child(6) { transition-delay: 0.30s; }
.fade-up:nth-child(7) { transition-delay: 0.36s; }
.fade-up:nth-child(8) { transition-delay: 0.42s; }

/* Reduced motion: skip all animations */
@media (prefers-reduced-motion: reduce) {
  .fade-up { opacity: 1; transform: none; transition: none; }
  body { opacity: 1 !important; }
  .hero-card-float { animation: none; }
  .pulse-dot { animation: none; }
}

/* ============================================================
   PARTICLES CANVAS
   ============================================================ */
#particles {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  will-change: contents;
  display: none;
}

/* ============================================================
   TOKEN SELECTOR MODAL
   ============================================================ */
.token-list-container {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.token-list-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 12px 15px;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s;
}
.token-list-item:hover {
  background: rgba(0, 229, 255, 0.1);
}
.token-list-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}
.token-list-info {
  display: flex;
  flex-direction: column;
}
.token-list-symbol {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}
.token-list-name {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.eta-tooltip-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(0, 229, 255, 0.12);
}

.eta-tooltip-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.16), rgba(0, 245, 196, 0.08));
  border: 1px solid rgba(0, 229, 255, 0.26);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--neon-cyan);
  box-shadow: 0 0 14px rgba(0, 229, 255, 0.12);
}

.eta-tooltip-headline {
  flex: 1;
  min-width: 0;
}

.eta-tooltip .tooltip-intro {
  margin: 4px 0 0;
  color: var(--text-secondary);
  font-size: 0.83rem;
  line-height: 1.55;
}

.eta-tooltip .tooltip-points {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.eta-tooltip .tooltip-points li {
  padding: 11px 13px;
  border: 1px solid rgba(0, 229, 255, 0.12);
  border-radius: 10px;
  background: rgba(4, 12, 25, 0.5);
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 4px 10px;
  align-items: start;
  transition: border-color 0.2s, background 0.2s;
}

.eta-tooltip .tooltip-points li:hover {
  border-color: rgba(0, 229, 255, 0.24);
  background: rgba(0, 229, 255, 0.04);
}

.eta-tooltip .tooltip-point-icon {
  grid-row: span 2;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid rgba(0, 229, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--neon-cyan);
  flex-shrink: 0;
  margin-top: 1px;
}

.eta-tooltip .tooltip-point-title {
  color: var(--neon-cyan);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  align-self: end;
}

.eta-tooltip .tooltip-point-text {
  color: var(--text-secondary);
  font-size: 0.84rem;
  line-height: 1.58;
}

.eta-tooltip .tooltip-note-bar {
  margin: 14px 0 0;
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(0, 229, 255, 0.05);
  border: 1px solid rgba(0, 229, 255, 0.14);
  color: var(--text-secondary);
  font-size: 0.8rem;
  line-height: 1.55;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.eta-tooltip .tooltip-note-bar svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--neon-teal);
}

@media (max-width: 768px) {
  .eta-tooltip {
    padding: 16px 14px 14px;
    max-height: min(78vh, 520px);
  }

  .eta-tooltip-icon {
    width: 34px;
    height: 34px;
  }

  .eta-tooltip .tooltip-points li {
    padding: 9px 10px;
  }
}

.token-group {
  margin-bottom: 14px;
}

.token-group:last-child {
  margin-bottom: 0;
}

.token-group-title {
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.token-list-compact {
  gap: 6px;
}

.token-list-item.is-selected {
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0,229,255,0.18);
}

.token-empty-state {
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255,255,255,0.02);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.7rem;
}

/* ============================================================
   RESPONSIVE — TABLET & MOBILE
   ============================================================ */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .tokens-showcase-grid { grid-template-columns: repeat(2, 1fr); }
  .status-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: var(--gap-lg); }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: 1; margin-top: var(--gap-md); }
}

@media (max-width: 768px) {
  :root {
    --gap-md: 1.25rem;
    --gap-lg: 1.5rem;
    --gap-xl: 3rem;
  }

  .nav-links { display: none; flex-direction: column; position: fixed; top: 64px; left: 0; right: 0; background: rgba(7,11,20,0.98); backdrop-filter: blur(20px); padding: 16px 20px 24px; gap: 4px; border-bottom: 1px solid rgba(148,163,184,0.12); max-height: calc(100dvh - 64px); overflow-y: auto; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }

  .features-grid { grid-template-columns: 1fr; }
  .tokens-showcase-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; }

  .hero-stats { flex-direction: column; gap: 16px; margin-top: 28px; }
  .hero-cta-row { flex-direction: column; align-items: stretch; }
  .hero-cta-row .btn { width: 100%; justify-content: center; }
  .hero-visual { text-align: center; }

  .swap-wrapper { padding: 0; }
  .swap-layout { display: flex; flex-direction: column; gap: var(--gap-md); }
  
  .swap-page {
    padding: 12px 0 24px;
    min-height: auto;
    align-items: flex-start;
  }

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

  .swap-header h1 {
    font-size: 1.45rem;
    margin-bottom: 4px;
  }

  .swap-header p {
    font-size: 0.76rem;
    line-height: 1.45;
  }

  /* Compact mobile styling for swap */
  .swap-card { 
    margin: 0 auto; 
    width: 100% !important; 
    padding: 16px 14px !important;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(15, 23, 42, 0.86);
    box-shadow: 0 16px 28px rgba(2, 8, 23, 0.24);
  }

  .swap-fields {
    gap: 10px;
  }

  .swap-btn-main {
    padding: 15px !important;
    font-size: 1rem !important;
    border-radius: 12px !important;
    text-shadow: none;
    box-shadow: 0 16px 28px rgba(19,171,194,0.22) !important;
  }
  .swap-input-box {
    border-color: rgba(148,163,184,0.14) !important;
    background: rgba(10,15,27,0.88) !important;
    padding: 14px;
    border-radius: 14px;
  }

  .swap-box-label {
    font-size: 0.66rem;
    margin-bottom: 10px;
  }

  .swap-token-row {
    align-items: flex-start;
    gap: 8px;
  }

  .swap-token-select {
    padding: 7px 10px;
    gap: 8px;
  }

  .swap-token-ticker {
    font-size: 0.76rem;
  }

  .swap-amount-input {
    font-size: 1.45rem;
  }

  .swap-amount-hint {
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
    font-size: 0.62rem;
  }

  .swap-divider {
    margin: 12px 0;
  }

  .swap-route {
    font-size: 0.62rem;
    gap: 6px;
    margin: 8px 0;
  }

  .route-node {
    padding: 3px 8px;
  }

  .swap-details-toggle {
    font-size: 0.64rem;
    padding: 10px 0 6px;
  }

  .swap-detail-row {
    font-size: 0.66rem;
    padding: 7px 0;
  }

  .swap-action-area {
    position: sticky;
    bottom: max(10px, env(safe-area-inset-bottom));
    margin-top: 12px;
  }

  .modal {
    border-radius: 18px;
    padding: 24px 18px;
    max-height: calc(100dvh - 16px);
  }

  .toast-container {
    left: 12px;
    right: 12px;
    bottom: 14px;
  }

  .toast {
    max-width: none;
  }

  .tokens-filter-bar { flex-direction: column; }
  .tokens-grid { grid-template-columns: 1fr; }
  .tc-swap-btn { opacity: 1; transform: none; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .navbar { padding: 0 16px; }
  .footer { padding: 48px 16px 16px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .tokens-showcase-grid { grid-template-columns: 1fr; }
  .hero-visual { display: none; }

  .swap-page {
    padding-top: 10px;
  }

  .swap-card {
    padding: 14px 12px !important;
  }

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

  .swap-header h1 {
    font-size: 1.4rem;
  }

  .swap-header p {
    font-size: 0.78rem;
  }

  .swap-amount-input {
    font-size: 1.34rem;
  }

  .swap-summary-grid {
    grid-template-columns: 1fr;
  }

  .security-tags {
    justify-content: flex-start;
    gap: 8px;
  }

  .security-tag {
    font-size: 0.56rem;
  }
}

/* ============================================================
   INFO PAGES (ABOUT, FAQ, TERMS)
   ============================================================ */
.info-page-header {
  padding-top: var(--gap-xl);
  padding-bottom: var(--gap-lg);
  text-align: center;
  margin-bottom: var(--gap-lg);
}

.info-content {
  max-width: 800px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: var(--gap-xl);
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
  line-height: 1.7;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.info-content h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: var(--gap-xl);
  margin-bottom: var(--gap-md);
}

.info-content h2:first-child {
  margin-top: 0;
}

.info-content h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-top: var(--gap-lg);
  margin-bottom: var(--gap-sm);
}

.info-content p {
  margin-bottom: var(--gap-md);
}

.info-content ul {
  margin-bottom: var(--gap-md);
  padding-left: var(--gap-lg);
}

.info-content li {
  margin-bottom: 8px;
  position: relative;
}

.info-content li::marker {
  color: var(--neon-cyan);
}

.info-content a {
  color: var(--neon-cyan);
  text-decoration: none;
  transition: all var(--trans);
  border-bottom: 1px solid transparent;
}

.info-content a:hover {
  border-bottom-color: var(--neon-cyan);
  text-shadow: 0 0 8px rgba(0,229,255,0.4);
}

@media (max-width: 768px) {
  .info-content { padding: var(--gap-lg) var(--gap-md); }
}

/* ============================================================
   TX EXPLORER (PROGRESS TRACKER)
   ============================================================ */
.tx-progress-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin: 20px 0;
  padding: 15px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  text-align: left;
}
.tx-step {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
  position: relative;
  transition: all var(--trans);
}
.tx-step::before {
  content: '';
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--text-muted);
  background: var(--bg-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  z-index: 2;
  transition: all var(--trans);
}
.tx-step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 9px;
  top: 22px;
  bottom: -13px;
  width: 2px;
  background: var(--text-muted);
  opacity: 0.3;
  z-index: 1;
}
.tx-step.completed {
  color: var(--text-primary);
}
.tx-step.completed::before {
  border-color: var(--neon-teal);
  background: var(--neon-teal);
  box-shadow: 0 0 10px var(--neon-teal);
}
.tx-step.completed:not(:last-child)::after {
  background: var(--neon-teal);
  opacity: 1;
}
.tx-step.active {
  color: var(--neon-cyan);
  font-weight: 600;
}
.tx-step.active::before {
  border-color: var(--neon-cyan);
  background: rgba(0, 229, 255, 0.2);
  box-shadow: 0 0 15px var(--neon-cyan);
  animation: pulse-badge 1.5s infinite;
}
.tx-step.active:not(:last-child)::after {
  background: linear-gradient(to bottom, var(--neon-cyan), var(--text-muted));
  opacity: 0.8;
}

/* ============================================================
   HERO SWAP PREVIEW CARD
   ============================================================ */
.hero-card-float {
  background: var(--bg-card);
  border: 1px solid rgba(148,163,184,0.14);
  border-radius: var(--radius-xl);
  padding: 28px;
  width: 100%;
  max-width: 420px;
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  position: relative;
  overflow: hidden;
  animation: float 8s ease-in-out infinite;
}

/* Internal lighting: removed for cleaner look */
.hero-card-float::after {
  display: none;
}

@keyframes float-card {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-10px); }
}

@keyframes rotate-glow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.hero-card-float > * {
  position: relative;
  z-index: 1;
}

.hero-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 22px;
}

.hero-card-heading {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-card-kicker {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.hero-card-heading strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  text-transform: uppercase;
}

/* Token Boxes */
.hero-token-from,
.hero-token-to {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: var(--radius-lg);
  padding: 18px;
  transition: all 0.4s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.hero-token-side-label {
  position: absolute;
  top: 10px;
  right: 12px;
  font-family: var(--font-mono);
  font-size: 0.54rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-soft);
  opacity: 0.8;
}

.hero-token-from:hover,
.hero-token-to:hover {
  background: rgba(255,255,255,0.045);
  border-color: rgba(148,163,184,0.16);
}

.hero-token-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-right: 15px;
  box-shadow: none;
  position: relative;
  z-index: 2;
}

/* Inner glow ring: removed for cleaner look */
.hero-token-icon::before {
  display: none;
}

@keyframes spin-dashed {
  100% { transform: rotate(360deg); }
}

.hero-token-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.hero-token-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-token-sub {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-token-amount {
  margin-left: auto;
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  max-width: 150px;
  text-align: right;
}

/* Swap Arrow */
.hero-swap-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: -6px auto;
  background: rgba(34, 211, 238, 0.06);
  border-radius: 50%;
  color: var(--neon-cyan);
  position: relative;
  z-index: 5;
  border: 1px solid var(--border-glass);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s var(--ease-out), border-color var(--trans);
  cursor: pointer;
}

.hero-swap-arrow::before,
.hero-swap-arrow::after {
  display: none;
}

.hero-swap-arrow svg {
  width: 18px;
  height: 18px;
  filter: none;
}

.hero-swap-arrow:hover {
  transform: rotate(180deg);
  border-color: var(--border-glow);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.hero-card-stats {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.hero-card-stat {
  min-width: 0;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.05);
}

.hero-card-stat span {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hero-card-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--text-primary);
}

.hero-card-stat:first-child strong {
  color: var(--neon-teal);
}

/* Responsive adjust */
@media (max-width: 768px) {
  .hero-card-float {
    max-width: 100%;
    animation: none;
    transform: none !important;
  }
  /* keep 3 stats side-by-side since card is full-width on mobile */
  .hero-card-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ============================================================
   GLASSMORPHISM TOOLTIP
   ============================================================ */
.cyber-tooltip {
  position: absolute;
  background: rgba(8, 14, 28, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  pointer-events: none;
  opacity: 0;
  z-index: 9999;
  font-family: var(--font-body);
  color: var(--text-primary);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 229, 255, 0.1);
  transform: translateY(10px) scale(0.95);
  transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out);
  max-width: 220px;
}
.cyber-tooltip.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.cyber-tooltip .tooltip-title {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--neon-cyan);
  margin-bottom: 6px;
  font-weight: 600;
  letter-spacing: 0.05em;
}
.cyber-tooltip .tooltip-stat {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  margin-top: 4px;
}
.cyber-tooltip .tooltip-stat-label {
  color: var(--text-muted);
}
.cyber-tooltip .tooltip-stat-value {
  color: var(--text-secondary);
  font-weight: 500;
}

/* ============================================================
   ETA INFO BUTTON & TOOLTIP
   ============================================================ */
.eta-info-btn {
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.12), rgba(0, 245, 196, 0.08));
  border: 1.5px solid rgba(0, 229, 255, 0.28);
  border-radius: 50%;
  width: 28px;
  height: 28px;
  min-width: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  position: relative;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  color: var(--neon-cyan);
  flex-shrink: 0;
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.1), inset 0 1px 0 rgba(255,255,255,0.1);
}

.eta-info-btn::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid rgba(0, 229, 255, 0.18);
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.2s var(--ease-out), transform 0.2s var(--ease-out);
  pointer-events: none;
}

.eta-info-btn:hover {
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.18), rgba(0, 245, 196, 0.14));
  border-color: rgba(0, 229, 255, 0.4);
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.25), inset 0 1px 0 rgba(255,255,255,0.12);
  transform: scale(1.12);
}

.eta-info-btn:hover::after,
.eta-info-btn:focus-visible::after {
  opacity: 1;
  transform: scale(1);
}

.eta-info-btn:active {
  transform: scale(0.96);
}

.eta-info-btn svg {
  width: 16px;
  height: 16px;
  display: block;
  filter: drop-shadow(0 0 6px rgba(0, 229, 255, 0.15));
  pointer-events: none;
}

.eta-fab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 20010;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(0, 229, 255, 0.35);
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.18), rgba(0, 245, 196, 0.12));
  color: var(--neon-cyan);
  box-shadow: 0 16px 30px rgba(0, 6, 18, 0.55), 0 0 18px rgba(0, 229, 255, 0.18);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), border-color 0.25s var(--ease-out);
}

.eta-fab:hover,
.eta-fab:focus-visible {
  transform: translateY(-2px) scale(1.02);
  border-color: rgba(0, 229, 255, 0.55);
  box-shadow: 0 20px 34px rgba(0, 6, 18, 0.62), 0 0 24px rgba(0, 229, 255, 0.24);
}

.eta-fab svg {
  pointer-events: none;
}

@media (max-width: 768px) {
  .eta-fab {
    right: 12px;
    bottom: 12px;
    padding: 9px 12px;
    font-size: 0.72rem;
  }
}

.eta-tooltip {
  position: fixed;
  top: 50%;
  left: 50%;
  background: linear-gradient(160deg, rgba(8, 14, 30, 0.97) 0%, rgba(10, 16, 32, 0.95) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 229, 255, 0.2);
  border-radius: 16px;
  padding: 22px 20px 20px;
  pointer-events: auto;
  opacity: 0;
  visibility: hidden;
  z-index: 20002;
  font-family: var(--font-body);
  color: var(--text-primary);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255,255,255,0.04) inset, 0 1px 0 rgba(255,255,255,0.07) inset;
  transform: translate(-50%, -46%) scale(0.92);
  transition: opacity 0.28s var(--ease-out), visibility 0.28s, transform 0.28s var(--ease-out);
  width: min(560px, calc(100vw - 28px));
  max-width: 560px;
  max-height: min(74vh, 500px);
  overflow-y: auto;
  line-height: 1.6;
  font-size: 0.92rem;
}

.eta-tooltip-close {
  flex-shrink: 0;
  margin-left: auto;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid rgba(0, 229, 255, 0.2);
  background: rgba(0, 229, 255, 0.07);
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s var(--ease-out);
}

.eta-tooltip-close:hover,
.eta-tooltip-close:focus-visible {
  border-color: rgba(0, 229, 255, 0.45);
  background: rgba(0, 229, 255, 0.16);
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.2);
}

.eta-tooltip.visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.eta-tooltip.visible::before {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(3, 8, 16, 0.58);
  z-index: -1;
}

.eta-tooltip .tooltip-label {
  font-family: var(--font-display);
  font-size: 0.96rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin: 0;
  font-weight: 700;
  line-height: 1.3;
}

.eta-tooltip .tooltip-text {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.72;
}

/* ============================================================
   I18N LANGUAGE SWITCHER
   ============================================================ */
.lang-switcher {
  position: relative;
  display: inline-block;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  padding: 6px 12px;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  background: rgba(8,14,28,0.6);
  transition: all var(--trans);
}

.lang-switcher:hover {
  color: var(--text-primary);
  border-color: var(--neon-cyan);
  box-shadow: 0 0 10px rgba(0,229,255,0.1);
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 5px);
  right: 0;
  background: rgba(8,14,28,0.95);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-sm);
  backdrop-filter: blur(10px);
  padding: 5px 0;
  min-width: 80px;
  display: none;
  flex-direction: column;
  z-index: 1000;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.lang-switcher:hover .lang-dropdown,
.lang-switcher.active .lang-dropdown {
  display: flex;
}

.lang-dropdown div {
  padding: 8px 15px;
  color: var(--text-muted);
  transition: all 0.2s;
}

.lang-dropdown div:hover {
  color: var(--neon-cyan);
  background: rgba(0,229,255,0.05);
}

/* ============================================================
   ADVANCED SWAP: SETTINGS & HISTORY
   ============================================================ */
.swap-header-tools {
  position: absolute;
  right: var(--gap-lg);
  top: var(--gap-lg);
  display: flex;
  gap: 10px;
}

.icon-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.icon-btn:hover {
  color: var(--neon-cyan);
  background: rgba(0,229,255,0.08);
}

.slippage-options {
  display: flex;
  gap: 6px;
  margin-top: 10px;
}

.slippage-btn {
  flex: 1;
  background: var(--bg-deep);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 8px 0;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
}
.slippage-btn.active {
  background: rgba(0,229,255,0.1);
  color: var(--neon-cyan);
  border-color: var(--neon-cyan);
}

.history-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 300px;
  overflow-y: auto;
  padding-right: 5px;
}

.history-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--border-glass);
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.history-item a {
  color: var(--neon-cyan);
  text-decoration: none;
  margin-top: 4px;
  display: inline-block;
  font-size: 0.7rem;
}
.history-item a:hover { text-decoration: underline; }

/* ============================================================
   LIVE PRICE BREATHING EFFECTS
   ============================================================ */
@keyframes price-flash-green {
  0% { color: var(--neon-green); text-shadow: 0 0 10px var(--neon-green); }
  100% { color: var(--neon-teal); text-shadow: none; }
}

@keyframes price-flash-red {
  0% { color: var(--neon-red); text-shadow: 0 0 10px var(--neon-red); }
  100% { color: var(--neon-teal); text-shadow: none; }
}

.price-up { animation: price-flash-green 1s ease-out; }
.price-down { animation: price-flash-red 1s ease-out; }

/* TradingView entry points */
.mobile-chart-quick {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding: 10px 12px;
  border: 1px solid var(--border-glass);
  border-radius: 10px;
  background: linear-gradient(120deg, rgba(255,255,255,0.02), rgba(0,229,255,0.06));
}

.mobile-chart-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mobile-chart-kicker {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--text-muted);
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.mobile-chart-copy strong {
  font-family: var(--font-display);
  font-size: 0.82rem;
  color: var(--text-primary);
  font-weight: 600;
}

.mobile-chart-btn {
  min-width: 72px;
  font-size: 0.68rem;
  padding: 7px 12px;
  border-radius: 9px;
  background: rgba(0,229,255,0.1);
  border: 1px solid rgba(0,229,255,0.25);
  color: var(--neon-cyan);
}

.mobile-chart-btn:hover {
  background: rgba(0,229,255,0.16);
  border-color: rgba(0,229,255,0.35);
}

.chart-preview-card {
  border: 1px solid rgba(0,229,255,0.18);
  background: linear-gradient(160deg, rgba(8,14,28,0.95), rgba(0,229,255,0.05));
}

.chart-preview-text {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.chart-preview-meta {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
}

.chart-preview-btn {
  margin-top: 12px;
  width: 100%;
  justify-content: center;
  font-size: 0.75rem;
  padding: 10px;
  border: 1px dashed var(--border-glow);
  background: rgba(0,229,255,0.05);
  color: var(--text-secondary);
}

.chart-preview-btn:hover {
  color: var(--neon-cyan);
  background: rgba(0,229,255,0.1);
}

.tv-controls {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.tv-interval-btn {
  border: 1px solid var(--border-glass);
  background: rgba(255,255,255,0.03);
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 0;
  cursor: pointer;
  transition: all var(--trans);
}

.tv-interval-btn:hover {
  border-color: var(--border-glow);
  color: var(--text-primary);
}

.tv-interval-btn.active {
  background: rgba(0,229,255,0.12);
  color: var(--neon-cyan);
  border-color: var(--neon-cyan);
}

#tvWidgetContainer {
  width: 100%;
  height: 350px;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  margin-top: 15px;
}

.tv-loading {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

@media (max-width: 768px) {
  .mobile-chart-quick {
    display: flex;
  }

  .tv-modal {
    max-width: 100% !important;
  }

  #tvWidgetContainer {
    height: 52vh;
    min-height: 280px;
    margin-top: 12px;
  }
}

@media (max-width: 420px) {
  .tv-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tv-interval-btn {
    font-size: 0.64rem;
  }
}

/* ============================================================
   ENHANCED MOBILE EXPERIENCE
   ============================================================ */

/* Touch-friendly tap targets (min 44px) */
@media (max-width: 768px) {
  .nav-links a,
  .btn,
  .btn-sm,
  .form-input,
  .form-select {
    min-height: 44px;
  }

  /* Navbar mobile polish */
  .navbar {
    padding: 0 20px;
    height: 64px;
  }

  .logo-text { font-size: 0.95rem; }

  .nav-links {
    gap: 0;
    padding: 16px 20px 24px;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 12px 0;
    font-size: 0.8rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    width: 100%;
  }

  .nav-links a::after { display: none; }

  .nav-cta {
    text-align: center;
    justify-content: center;
    margin-top: var(--gap-sm);
  }

  .lang-switcher {
    width: 100%;
    text-align: center;
    min-height: 48px;
    padding: 12px;
  }

  /* Hero mobile */
  .hero {
    min-height: auto;
    padding-top: 28px;
  }

  .hero-title {
    font-size: clamp(2.05rem, 8vw, 2.7rem);
    letter-spacing: -0.05em;
    max-width: none;
  }

  .hero-desc {
    font-size: 0.96rem;
    line-height: 1.75;
  }

  .hero-stats {
    gap: var(--gap-md);
    flex-wrap: wrap;
  }

  .hero-stat-value {
    font-size: 1.55rem;
  }

  .hero-stat-label {
    font-size: 0.64rem;
  }

  /* Features mobile — full width cards */
  .features-grid {
    gap: var(--gap-sm);
  }

  .feature-card {
    padding: 22px;
  }

  .feature-icon {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
    margin-bottom: var(--gap-sm);
  }

  .feature-title { font-size: 0.94rem; }
  .feature-desc { font-size: 0.88rem; }

  /* Token showcase mobile */
  .token-showcase-card {
    padding: 18px 14px;
  }

  .token-logo {
    width: 42px;
    height: 42px;
  }

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

  /* Footer mobile */
  .footer-inner {
    gap: var(--gap-md);
  }

  .footer-brand p {
    font-size: 0.84rem;
    max-width: 100%;
  }

  .footer-bottom {
    font-size: 0.62rem;
  }

  /* Modals mobile */
  .modal {
    margin: 8px;
    max-height: calc(100dvh - 16px);
    padding: var(--gap-lg) var(--gap-md);
    border-radius: var(--radius-lg);
  }

  .modal-title { font-size: 0.95rem; }

  /* Cards hover — disable lift on touch */
  .card:hover {
    transform: none;
  }

  .card:active {
    border-color: var(--border-glow);
    background: var(--bg-card-hover);
  }

  /* Section titles mobile */
  .section-title {
    font-size: clamp(1.7rem, 7vw, 2.3rem);
  }

  .section-sub {
    font-size: 0.92rem;
  }

  /* Swap page mobile */
  .swap-steps {
    flex-wrap: wrap;
    gap: 4px;
    justify-content: center;
  }

  .swap-step {
    font-size: 0.58rem;
    padding: 0 6px;
  }

  .swap-step:not(:last-child)::after {
    right: -4px;
    font-size: 0.6rem;
  }

  /* Toast mobile — full width */
  .toast {
    font-size: 0.8rem;
  }
}

/* Extra small devices (< 360px) */
@media (max-width: 360px) {
  :root {
    --gap-md: 1rem;
    --gap-lg: 1rem;
    --gap-xl: 2rem;
  }

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

  .hero-desc {
    font-size: 0.88rem;
  }

  .btn-lg {
    padding: 14px 24px;
    font-size: 0.8rem;
  }

  .hero-stat-value { font-size: 1.1rem; }
  .token-logo { width: 36px; height: 36px; }
  .section-title { font-size: 1.3rem; }
}

/* Safe area insets for notched phones */
@supports (padding: env(safe-area-inset-bottom)) {
  .footer {
    padding-bottom: calc(var(--gap-md) + env(safe-area-inset-bottom));
  }
  .navbar {
    padding-left: calc(var(--gap-lg) + env(safe-area-inset-left));
    padding-right: calc(var(--gap-lg) + env(safe-area-inset-right));
  }
  .swap-action-area {
    padding-bottom: env(safe-area-inset-bottom);
  }
}

/* ============================================================
   TRUST SIGNALS SECTION
   ============================================================ */
.trust-section {
  padding: 88px 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap-md);
  margin-top: var(--gap-xl);
}

.trust-card {
  text-align: center;
  padding: 28px;
}

.trust-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--gap-md);
  background: rgba(103,232,249,0.08);
  border: 1px solid rgba(103,232,249,0.14);
  color: #a5f3fc;
}

.trust-value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: #b6f3fb;
  margin-bottom: 4px;
  letter-spacing: -0.04em;
}

.trust-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}

.trust-sub {
  font-size: 0.84rem;
  color: var(--text-soft);
  line-height: 1.65;
}

@media (max-width: 768px) {
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--gap-sm);
  }

  .trust-card { padding: var(--gap-md); }
  .trust-icon { width: 44px; height: 44px; font-size: 1.2rem; }
  .trust-value { font-size: 1.4rem; }
}

@media (max-width: 480px) {
  .trust-grid { grid-template-columns: 1fr; }
}

/* Security badges row */
.trust-badges {
  display: flex;
  justify-content: center;
  gap: var(--gap-md);
  flex-wrap: wrap;
  margin-top: var(--gap-lg);
}

.trust-badge-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-soft);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px 16px;
  border: 1px solid rgba(148,163,184,0.12);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.03);
}

.trust-badge-item span { font-size: 1rem; }

/* ============================================================
   MOBILE-FIRST ENFORCEMENT
   ============================================================ */
img,
svg,
video {
  max-width: 100%;
}

section,
.container,
.card,
.hero-inner,
.swap-layout,
.swap-token-row,
.info-content {
  min-width: 0;
}

@media (max-width: 768px) {
  html,
  body {
    overflow-x: hidden;
  }

  body {
    font-size: 16px;
  }

  .page-content {
    padding-top: 64px;
  }

  .container {
    padding: 0 16px;
  }

  .navbar {
    height: 64px;
    padding: 0 16px;
  }

  .nav-toggle {
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
  }

  .nav-links {
    top: 64px;
    left: 0;
    right: 0;
    padding: 12px 16px 24px;
  }

  .nav-links a,
  .nav-cta,
  .lang-switcher,
  .btn,
  .form-input,
  .form-select {
    min-height: 48px;
  }

  .hero {
    min-height: auto;
    padding: 24px 0 40px;
  }

  .hero-inner {
    gap: 24px;
  }

  .hero-title {
    font-size: clamp(2rem, 8vw, 2.6rem);
    line-height: 1;
    max-width: 11ch;
  }

  .hero-desc,
  .section-sub,
  .feature-desc,
  .how-step-desc,
  .trust-sub,
  .info-content,
  .swap-header p {
    font-size: 1rem;
    line-height: 1.7;
  }

  .hero-visual {
    display: none;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 24px;
    padding-top: 20px;
  }

  .features-section,
  .how-section,
  .tokens-section,
  .trust-section,
  .status-page-header,
  .tokens-page-header,
  .info-page-header {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .features-grid,
  .tokens-showcase-grid,
  .trust-grid,
  .status-grid,
  .tokens-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .card,
  .feature-card,
  .trust-card,
  .token-showcase-card,
  .status-component-card,
  .incident-item {
    padding: 20px;
  }

  .section-label {
    margin-bottom: 10px;
  }

  .section-title {
    font-size: clamp(1.75rem, 7vw, 2.3rem);
    line-height: 1.02;
    margin-bottom: 12px;
  }

  .live-swaps-label {
    padding: 12px 14px;
    font-size: 0.62rem;
  }

  .swap-page {
    padding: 8px 0 24px;
  }

  .swap-wrapper {
    max-width: none;
  }

  .swap-card {
    padding: 16px 16px 20px !important;
    border-radius: 20px;
  }

  .swap-header {
    margin-bottom: 16px;
  }

  .swap-header h1 {
    font-size: 1.5rem;
    line-height: 1.05;
  }

  .swap-fields {
    gap: 12px;
  }

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

  .swap-token-row {
    gap: 10px;
  }

  .swap-token-select {
    min-height: 44px;
    padding: 8px 12px;
  }

  .swap-amount-input {
    font-size: 1.5rem;
  }

  .swap-summary-grid {
    grid-template-columns: 1fr;
  }

  .swap-live-summary-main,
  .swap-live-summary-top,
  .swap-live-summary-meta {
    flex-direction: column;
    gap: 8px;
  }

  .swap-action-area {
    position: sticky;
    bottom: 0;
    z-index: 110;
    margin-top: 12px;
    padding: 12px 0 calc(12px + env(safe-area-inset-bottom));
    background: linear-gradient(to top, rgba(7,11,20,0.98), rgba(7,11,20,0.88) 68%, transparent);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  .swap-btn-main {
    min-height: 52px;
    width: 100%;
    border-radius: 14px;
  }

  .modal {
    margin: 8px;
    width: calc(100vw - 16px);
  }

  .toast-container {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }

  .toast {
    max-width: none;
  }

  .footer {
    padding: 48px 16px 16px;
  }
}

@media (min-width: 769px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  }

  .features-grid {
    gap: 20px;
  }

  .tokens-showcase-grid {
    gap: 20px;
  }

  .trust-grid {
    gap: 20px;
  }

  .section-sub {
    max-width: 640px;
  }
}

/* ══════════════════════════════════════════════════════════════
   CIV v5 — Clean Pipeline  TRC10 → AML → USDT
   Mobile-only ≤640px.  CSS-only, GPU-friendly.
══════════════════════════════════════════════════════════════ */

.hero-net-vis { display:none; width:100%; max-width:340px; }

.civ {
  display:flex; align-items:center; justify-content:center;
  gap:0; width:100%; padding:28px 12px 18px;
}

/* ── Nodes ── */
.civ-node {
  display:flex; flex-direction:column; align-items:center; gap:6px;
  flex-shrink:0; position:relative;
}
.civ-n-icon {
  width:44px; height:44px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  font:700 9px/1 var(--font-mono,'JetBrains Mono',monospace);
  letter-spacing:.06em; color:rgba(103,232,249,.75);
  background:radial-gradient(circle at 42% 38%, rgba(103,232,249,.07), rgba(8,14,28,.95));
  border:1px solid rgba(103,232,249,.2);
  box-shadow:0 0 24px rgba(103,232,249,.07), inset 0 0 12px rgba(103,232,249,.04);
  position:relative; z-index:2;
  animation:civBreathe 4.5s ease-in-out infinite;
  transition:box-shadow .4s ease;
}
.civ-icon-g {
  color:rgba(0,230,118,.8);
  border-color:rgba(0,230,118,.22);
  background:radial-gradient(circle at 42% 38%, rgba(0,230,118,.08), rgba(8,14,28,.95));
  box-shadow:0 0 24px rgba(0,230,118,.08), inset 0 0 10px rgba(0,230,118,.03);
  width:50px; height:50px;
}
.civ-icon-t {
  color:rgba(52,211,153,.75);
  border-color:rgba(52,211,153,.2);
  background:radial-gradient(circle at 42% 38%, rgba(52,211,153,.07), rgba(8,14,28,.95));
  box-shadow:0 0 20px rgba(52,211,153,.06), inset 0 0 10px rgba(52,211,153,.03);
  font-size:14px; font-weight:600;
}

@keyframes civBreathe {
  0%,100% { transform:scale(1); filter:brightness(1); }
  50%     { transform:scale(1.05); filter:brightness(1.15); }
}

/* Ping ring */
.civ-n-ring {
  position:absolute; top:0; left:50%;
  width:44px; height:44px; border-radius:50%;
  transform:translateX(-50%);
  border:1px solid rgba(103,232,249,.12);
  animation:civPing 3.5s ease-out infinite;
  pointer-events:none;
}
.civ-ring-g { border-color:rgba(0,230,118,.12); width:50px; height:50px; }
.civ-ring-t { border-color:rgba(52,211,153,.12); }
@keyframes civPing {
  0%   { transform:translateX(-50%) scale(1);   opacity:.5; }
  100% { transform:translateX(-50%) scale(1.7); opacity:0; }
}

/* Labels */
.civ-n-lbl {
  font:600 7px/1 var(--font-mono,'JetBrains Mono',monospace);
  letter-spacing:.15em; color:rgba(103,232,249,.5);
  text-transform:uppercase;
}
.civ-lbl-g { color:rgba(0,230,118,.55); }
.civ-lbl-t { color:rgba(52,211,153,.5); }

/* ── Connecting lines ── */
.civ-line {
  flex:1; height:1px; position:relative; min-width:20px;
  background:linear-gradient(90deg, rgba(103,232,249,.12), rgba(0,230,118,.12));
  margin:0 -2px; margin-bottom:16px;
}
.civ-line::before {
  content:''; position:absolute; inset:0;
  background:inherit; filter:blur(3px); opacity:.5;
}
.civ-line-2 {
  background:linear-gradient(90deg, rgba(0,230,118,.12), rgba(52,211,153,.12));
}

/* Traveling pulse */
.civ-pulse {
  position:absolute; top:-1.5px; left:0;
  width:20px; height:4px; border-radius:4px;
  background:linear-gradient(90deg, transparent, rgba(103,232,249,.5), transparent);
  animation:civTravel 2.5s ease-in-out infinite;
}
.civ-pulse-t {
  background:linear-gradient(90deg, transparent, rgba(52,211,153,.5), transparent);
  animation-delay:.8s;
}
.civ-pulse-d {
  animation-delay:1.4s;
  opacity:.6;
}
@keyframes civTravel {
  0%   { left:-20px; opacity:0; }
  10%  { opacity:1; }
  90%  { opacity:1; }
  100% { left:calc(100% + 2px); opacity:0; }
}

/* ── Mobile activation ── */
@media (max-width:640px) {
  .hero-badge { display:none; }
  .hero-net-vis { display:block; margin-bottom:8px; }
}

/* ── Accessibility ── */
@media (prefers-reduced-motion:reduce) {
  .civ-n-icon, .civ-n-ring, .civ-pulse { animation:none !important; }
  .civ-pulse { opacity:0 !important; }
}

