/* ============================================================
   TRUEWALLET — Design System Layer
   Extracted from dist/ CSS. Tokens are the source of truth.
   Tailwind Play CDN handles utilities; this file holds the
   brand primitives, animations, and structural defaults.
   ============================================================ */

:root {
  /* Brand — Electric Azure / High-tech Cyan (TRUEWALLET primario) */
  --brand-500: #2962FF;
  --brand-400: #448AFF;
  --brand-600: #0039CB;
  --brand-700: #00227B;
  --brand-cyan: #00F0FF;
  --brand-accent: #2962FF;
  --brand-glow: rgba(41, 98, 255, 0.35);
  --brand-glow-soft: rgba(41, 98, 255, 0.14);
  --brand-glow-strong: rgba(0, 240, 255, 0.45);

  /* Mint & Neon Emerald (TRUEWALLET secundario, growth, success) */
  --success: #00E676;
  --success-glow: rgba(0, 230, 118, 0.28);
  --success-glow-soft: rgba(0, 230, 118, 0.12);

  /* Surfaces — Deep Obsidian & Cyber-Glass (OLED pure black tint) */
  --bg-base: #060813;
  --bg-surface: rgba(14, 19, 38, 0.75);
  --bg-elevated: rgba(22, 30, 58, 0.65);
  --bg-overlay: rgba(32, 43, 82, 0.8);
  --bg-glass: rgba(18, 26, 52, 0.55);
  --bg-glass-card: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%), rgba(13, 18, 38, 0.7);

  /* Borders — Reflective light edges */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --border-glow: rgba(68, 138, 255, 0.5);
  --border-glass: 1px solid rgba(255, 255, 255, 0.09);

  /* Text — Crisp high contrast */
  --text-primary: #FFFFFF;
  --text-secondary: #E2E8F0;
  --text-tertiary: #94A3B8;
  --text-muted: #64748B;

  /* Status */
  --warning: #FFB300;
  --danger: #FF3D71;
  --info: #00B0FF;

  /* Networks */
  --network-bep20: #F3BA2F;
  --network-trc20: #FF060A;
  --network-eth: #627EEA;
  --network-polygon: #8247E5;

  /* Radius — Precision tech curves */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Elevation & Lighting Shadows */
  --e1: 0 2px 6px rgba(0, 0, 0, 0.4);
  --e2: 0 4px 16px rgba(0, 0, 0, 0.5);
  --e3: 0 12px 32px rgba(0, 0, 0, 0.65), 0 0 1px rgba(255, 255, 255, 0.15) inset;
  --e4: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 1px rgba(255, 255, 255, 0.2) inset;
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);

  /* Motion */
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.4, 0, .2, 1);
  --duration-instant: 80ms;
  --duration-fast: 160ms;
  --duration-normal: 240ms;
  --duration-slow: 400ms;
  --duration-flash: 600ms;
}

[data-theme="light"] {
  --bg-base: #F4F6FB;
  --bg-surface: rgba(255, 255, 255, 0.85);
  --bg-elevated: #FFFFFF;
  --bg-overlay: #EAEFF9;
  --bg-glass: rgba(255, 255, 255, 0.8);
  --bg-glass-card: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.6) 100%);
  --border-subtle: rgba(0, 0, 0, 0.07);
  --border-strong: rgba(0, 0, 0, 0.12);
  --border-glow: rgba(41, 98, 255, 0.4);
  --text-primary: #0A0F1D;
  --text-secondary: #334155;
  --text-tertiary: #64748B;
  --text-muted: #94A3B8;
  --e1: 0 2px 8px rgba(15, 23, 42, .05);
  --e2: 0 4px 16px rgba(15, 23, 42, .08);
  --e3: 0 12px 32px rgba(15, 23, 42, .12);
  --brand-glow: rgba(41, 98, 255, .22);
  --brand-glow-soft: rgba(41, 98, 255, .08);
  --success-glow: rgba(0, 230, 118, .20);
  --success-glow-soft: rgba(0, 230, 118, .08);
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --duration-instant: 0ms;
    --duration-fast: 0ms;
    --duration-normal: 0ms;
    --duration-slow: 0ms;
    --duration-flash: 0ms;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================
   Aurora Borealis Background — Deep Cyber Atmosphere
   ============================================================ */
.aurora {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  will-change: transform, opacity;
  transform: translate3d(0, 0, 0);
}

.aurora-1 {
  background: radial-gradient(
    ellipse 85% 55% at 50% 0%,
    rgba(41, 98, 255, 0.35),
    transparent 65%
  );
  animation: aurora-drift-1 40s ease-in-out infinite alternate;
}

.aurora-2 {
  background: radial-gradient(
    ellipse 70% 50% at 85% 90%,
    rgba(0, 230, 118, 0.2),
    transparent 60%
  );
  animation: aurora-drift-2 50s ease-in-out infinite alternate;
}

.aurora-3 {
  background: radial-gradient(
    ellipse 55% 35% at 15% 45%,
    rgba(0, 240, 255, 0.18),
    transparent 65%
  );
  animation: aurora-drift-3 60s ease-in-out infinite alternate;
}

[data-theme="light"] .aurora-1 {
  background: radial-gradient(
    ellipse 85% 55% at 50% 0%,
    rgba(41, 98, 255, 0.14),
    transparent 65%
  );
}
[data-theme="light"] .aurora-2 {
  background: radial-gradient(
    ellipse 70% 50% at 85% 90%,
    rgba(0, 230, 118, 0.10),
    transparent 60%
  );
}
[data-theme="light"] .aurora-3 {
  background: radial-gradient(
    ellipse 55% 35% at 15% 45%,
    rgba(0, 240, 255, 0.08),
    transparent 65%
  );
}

@keyframes aurora-drift-1 {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(-3%, 4%, 0) scale(1.08); }
  100% { transform: translate3d(3%, -2%, 0) scale(0.96); }
}

@keyframes aurora-drift-2 {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(4%, -3%, 0) scale(1.1); }
  100% { transform: translate3d(-2%, 4%, 0) scale(0.92); }
}

@keyframes aurora-drift-3 {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(2%, 3%, 0) scale(1.12); }
  100% { transform: translate3d(-3%, -2%, 0) scale(0.9); }
}

.app-shell {
  position: relative;
  z-index: 1;
}

/* ============================================================
   Base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html, body {
  height: 100%;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none; /* iOS: no Call/Copy/Share sheet on long-press */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* App-like: no browser link menu on long-press (Android Chrome / iOS Safari). */
a, button, .tw-token-row, .ad-action-btn, .ad-tx, [data-fw-sortable-handle] {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}
/* Keep text selection / paste in forms. */
input, textarea, select, [contenteditable="true"] {
  -webkit-user-select: text;
  user-select: text;
  -webkit-touch-callout: default;
}

body {
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: "Plus Jakarta Sans", Inter, system-ui, sans-serif;
  font-feature-settings: "ss01", "cv11";
  font-size: 16px;
  line-height: 1.4;
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
}

::selection {
  background: var(--brand-500);
  color: #fff;
}

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-subtle); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-strong); }

input, textarea, button { font: inherit; color: inherit; }
button { background: none; border: none; padding: 0; cursor: pointer; }

a { color: inherit; text-decoration: none; }

/* ============================================================
   Mobile-first shell ? safe areas for standalone display
   ============================================================ */
@supports (padding: max(0px)) {
  body {
    padding-left: max(env(safe-area-inset-left), 0px);
    padding-right: max(env(safe-area-inset-right), 0px);
  }
}

@media (display-mode: standalone) {
  body {
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .safe-top { padding-top: env(safe-area-inset-top); }
  .safe-bottom { padding-bottom: env(safe-area-inset-bottom); }
}

/* ============================================================
   Typography primitives
   ============================================================ */
.font-display {
  font-family: "Space Grotesk", "Plus Jakarta Sans", Inter, system-ui, sans-serif;
  letter-spacing: -0.02em;
}
.font-mono {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.text-display-2xl { font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif; font-weight: 700; font-size: 48px; line-height: 54px; letter-spacing: -0.03em; }
.text-display-xl  { font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif; font-weight: 700; font-size: 36px; line-height: 42px; letter-spacing: -0.025em; }
.text-display-lg  { font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif; font-weight: 700; font-size: 28px; line-height: 34px; letter-spacing: -0.02em; }
.text-h1          { font-size: 24px; line-height: 32px; letter-spacing: -0.015em; font-weight: 700; }
.text-h2          { font-size: 20px; line-height: 28px; letter-spacing: -0.01em; font-weight: 600; }
.text-h3          { font-size: 16px; line-height: 24px; font-weight: 600; }
.text-body-lg     { font-size: 16px; line-height: 24px; }
.text-body        { font-size: 14px; line-height: 20px; }
.text-body-sm     { font-size: 13px; line-height: 18px; }
.text-caption     { font-size: 12px; line-height: 16px; letter-spacing: 0.02em; }
.text-mono-sm     { font-family: "JetBrains Mono", monospace; font-size: 12px; line-height: 16px; }
.text-eyebrow     { font-size: 11px; line-height: 14px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700; }

/* Futuristic Text Gradient */
.text-gradient-holo {
  background: linear-gradient(135deg, #FFFFFF 30%, #90CAF9 70%, #00F0FF 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.text-gradient-neon {
  background: linear-gradient(135deg, #00F0FF 0%, #00E676 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* ============================================================
   Backgrounds & Cyber Patterns
   ============================================================ */
.bg-scanlines {
  background-image: repeating-linear-gradient(
    0deg,
    rgba(255, 255, 255, .015) 0px,
    rgba(255, 255, 255, .015) 1px,
    transparent 1px,
    transparent 4px
  );
}
.bg-grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 28px 28px;
}
.bg-grid-fine {
  background-image:
    linear-gradient(rgba(255, 255, 255, .02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .02) 1px, transparent 1px);
  background-size: 14px 14px;
}
.bg-radial-glow {
  background-image: radial-gradient(circle at 50% 0%, var(--brand-glow-soft) 0%, transparent 70%);
}

/* ============================================================
   Skeleton loaders
   ============================================================ */
.skeleton {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.08) 50%, rgba(255, 255, 255, 0.03) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.8s linear infinite;
  border-radius: var(--radius-sm);
}

/* Lottie rayo loader */
.lottie-rayo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  color: var(--brand-400);
}
.lottie-rayo svg {
  width: 100%;
  height: 100%;
  display: block;
  filter: drop-shadow(0 0 10px var(--brand-glow-strong));
}
.lottie-rayo-fallback {
  animation: rayo-pulse 1.2s var(--ease-in-out) infinite;
}
@keyframes rayo-pulse {
  0%, 100% { opacity: 0.55; transform: scale(0.92); }
  50%      { opacity: 1;    transform: scale(1.08); }
}

/* ============================================================
   Shadows / Elevation / Glass Panels
   ============================================================ */
.shadow-glow    { box-shadow: 0 0 24px var(--brand-glow), 0 0 4px var(--brand-cyan); }
.shadow-glow-sm { box-shadow: 0 0 12px var(--brand-glow); }
.shadow-glow-lg { box-shadow: 0 0 48px var(--brand-glow), 0 0 16px rgba(0, 240, 255, 0.3); }
.shadow-e1 { box-shadow: var(--e1); }
.shadow-e2 { box-shadow: var(--e2); }
.shadow-e3 { box-shadow: var(--e3); }
.shadow-e4 { box-shadow: var(--e4); }

.glass-panel {
  background: var(--bg-surface);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-top-color: rgba(255, 255, 255, 0.16);
  box-shadow: var(--e2);
}

.glass-card {
  background: var(--bg-glass-card);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: var(--e3);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

/* ============================================================
   Animations
   ============================================================ */
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 12px var(--brand-glow-soft); }
  50%      { box-shadow: 0 0 32px var(--brand-glow); }
}
.animate-pulse-glow { animation: pulse-glow 2.4s var(--ease-in-out) infinite; }

@keyframes fade-in {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-fade-in { animation: fade-in var(--duration-normal) var(--ease-out); }

@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
.animate-spin { animation: spin 1s linear infinite; }

@keyframes flash-success {
  0%   { box-shadow: 0 0 0 0 var(--brand-glow); transform: scale(1); }
  35%  { box-shadow: 0 0 0 24px transparent; transform: scale(1.02); }
  100% { box-shadow: 0 0 0 0 transparent; transform: scale(1); }
}
.animate-flash-success { animation: flash-success var(--duration-flash) var(--ease-out); }

@keyframes float-up {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-float-up { animation: float-up var(--duration-slow) var(--ease-out); }

@keyframes scanline {
  0%   { transform: translateY(-100%); }
  100% { transform: translateY(100%); }
}
.animate-scanline { animation: scanline 3s linear infinite; }

/* ============================================================
   Interactive feedback
   ============================================================ */
.press-scale { transition: transform var(--duration-fast) var(--ease-out); }
.press-scale:active { transform: scale(.98); }

.glow-hover { transition: box-shadow var(--duration-normal) var(--ease-out); }
.glow-hover:hover { box-shadow: var(--e3); }

/* ============================================================
   Mobile bottom navigation safe area
   ============================================================ */
.bottom-nav-spacer { height: 80px; }
@media (display-mode: standalone) {
  .bottom-nav-spacer { height: calc(80px + env(safe-area-inset-bottom)); }
}

/* ============================================================
   Form controls
   ============================================================ */
.input-base {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  color: var(--text-primary);
  font-size: 15px;
  width: 100%;
  transition: border-color var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast) var(--ease-out);
}
.input-base:focus {
  outline: none;
  border-color: var(--brand-500);
  box-shadow: 0 0 0 3px var(--brand-glow-soft);
}
.input-base::placeholder { color: var(--text-tertiary); }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  min-height: 48px;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
  border: 1px solid transparent;
  user-select: none;
}
.btn:active { transform: scale(.98); }
.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--brand-glow-soft);
}

.btn-primary {
  background: var(--brand-500);
  color: #0a0a0a;
  border-radius: var(--radius-full);
}
.btn-primary:hover {
  background: var(--brand-400);
}
.btn-primary:disabled {
  background: var(--bg-overlay);
  color: var(--text-tertiary);
  cursor: not-allowed;
}

.btn-secondary {
  background: transparent;
  color: var(--brand-500);
  border-color: var(--brand-500);
  border-radius: var(--radius-full);
}
.btn-secondary:hover {
  background: var(--brand-glow-soft);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}
.btn-ghost:hover { color: var(--brand-500); }

/* ============================================================
   Card
   ============================================================ */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
}
.card-elevated {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
}
.card-glow {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 24px;
  position: relative;
  overflow: hidden;
}
.card-glow::before { display: none; }

/* ============================================================
   Network color badges
   ============================================================ */
.net-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.net-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.net-bep20  { color: var(--network-bep20);  background: rgba(240, 185, 11, .1);  }
.net-erc20  { color: var(--network-eth);    background: rgba(98, 126, 234, .1);  }
.net-trc20  { color: var(--network-trc20);  background: rgba(255, 6, 10, .1);    }
.net-eth    { color: var(--network-eth);    background: rgba(98, 126, 234, .1);  }
.net-polygon{ color: var(--network-polygon);background: rgba(130, 71, 229, .1);  }

/* ============================================================
   Misc
   ============================================================ */
.divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 16px 0;
}

.divider-glow {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--brand-glow), transparent);
}

.text-balance {
  font-family: Inter, system-ui, sans-serif;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

/* ============================================================
   Wallet UX — Futuristic & Cyber-Fintech (TRUEWALLET)
   ============================================================ */
.wallet-shell {
  width: 100%;
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
  font-family: "Plus Jakarta Sans", Inter, system-ui, sans-serif;
  padding-bottom: 96px;
}

/* ── Header ── */
.tw-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  max-width: 440px;
  margin: 0 auto;
}
.tw-wallet-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 14px 6px 6px;
  border-radius: 9999px;
  background: var(--bg-surface);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-subtle);
  border-top-color: rgba(255, 255, 255, 0.18);
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  max-width: 210px;
  transition: all var(--duration-fast) var(--ease-out);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}
.tw-wallet-pill:hover {
  background: var(--bg-elevated);
  border-color: var(--brand-400);
  box-shadow: 0 0 16px var(--brand-glow-soft);
}
.tw-wallet-mark {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-400), var(--brand-600));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 10px var(--brand-glow);
}
.tw-wallet-pill-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif;
  letter-spacing: -0.01em;
}
.tw-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.tw-icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--bg-surface);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-top-color: rgba(255, 255, 255, 0.15);
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  position: relative;
  transition: all var(--duration-fast) var(--ease-out);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.tw-icon-btn:hover {
  background: var(--bg-elevated);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45);
}
.tw-icon-btn:active { transform: scale(0.96); }
.tw-icon-btn .badge {
  position: absolute;
  top: 1px;
  right: 1px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 9999px;
  background: var(--danger);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 8px rgba(255, 61, 113, 0.6);
}

/* ── Cyber Promo Banner ── */
.tw-promo {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 6px 0 20px;
  padding: 14px 18px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  border-top-color: rgba(255, 255, 255, 0.12);
  background: linear-gradient(135deg, rgba(41, 98, 255, 0.12) 0%, rgba(0, 230, 118, 0.04) 100%), var(--bg-surface);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  width: 100%;
  text-align: left;
  font: inherit;
  box-shadow: var(--e2);
  transition: all var(--duration-normal) var(--ease-out);
  position: relative;
  overflow: hidden;
}
.tw-promo::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent);
  transition: left 0.7s var(--ease-out);
}
.tw-promo:hover::before {
  left: 150%;
}
.tw-promo:hover {
  border-color: rgba(68, 138, 255, 0.35);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 16px var(--brand-glow-soft);
  transform: translateY(-1px);
}
.tw-promo-dots {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-shrink: 0;
}
.tw-promo-dots span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}
.tw-promo-dots span.is-active {
  background: var(--brand-cyan);
  box-shadow: 0 0 6px var(--brand-cyan);
}
.tw-promo-stack {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.tw-promo-stack img,
.tw-promo-stack .chip {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid var(--bg-base);
  margin-left: -8px;
  object-fit: cover;
  display: block;
  background: var(--bg-overlay);
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}
.tw-promo-stack > :first-child { margin-left: 0; }
.tw-promo-stack .chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: #060813;
}
.tw-promo-copy { min-width: 0; flex: 1; }
.tw-promo-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.35;
}
.tw-promo-cta {
  font-size: 12px;
  font-weight: 500;
  color: var(--brand-cyan);
  margin-top: 3px;
  line-height: 1.3;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ── Hero Balance (Futuristic Big Numbers) ── */
.tw-balance {
  padding: 12px 4px 26px;
  text-align: center;
  position: relative;
}
.tw-balance-value {
  font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif;
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.1;
  color: #FFFFFF;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 2px 20px rgba(41, 98, 255, 0.25);
  background: linear-gradient(180deg, #FFFFFF 40%, #D4E2FF 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.tw-balance-change {
  margin-top: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--success);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 9999px;
  background: rgba(0, 230, 118, 0.08);
  border: 1px solid rgba(0, 230, 118, 0.2);
  box-shadow: 0 0 12px rgba(0, 230, 118, 0.12);
}

/* ── Glass Cyber Action Buttons (Send, Receive, Swap, Buy) ── */
.tw-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 32px;
  padding: 0 4px;
}
.tw-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-decoration: none;
  color: var(--text-primary);
  font: inherit;
  transition: transform var(--duration-fast) var(--ease-out);
}
.tw-action-icon {
  width: 58px;
  height: 58px;
  border-radius: 20px;
  background: var(--bg-surface);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-subtle);
  border-top-color: rgba(255, 255, 255, 0.18);
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  transition: all var(--duration-normal) var(--ease-out);
  position: relative;
}
.tw-action:hover .tw-action-icon {
  background: var(--bg-elevated);
  border-color: rgba(68, 138, 255, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5), 0 0 16px var(--brand-glow-soft);
  color: var(--brand-cyan);
}
.tw-action:active .tw-action-icon {
  transform: scale(0.94);
}
.tw-action.is-primary .tw-action-icon {
  background: linear-gradient(135deg, var(--brand-500) 0%, #00B0FF 100%);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 6px 20px rgba(41, 98, 255, 0.45), 0 0 20px var(--brand-glow);
}
.tw-action.is-primary:hover .tw-action-icon {
  background: linear-gradient(135deg, var(--brand-400) 0%, #00F0FF 100%);
  box-shadow: 0 10px 28px rgba(41, 98, 255, 0.6), 0 0 24px var(--brand-glow-strong);
}
.tw-action-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  text-align: center;
  line-height: 1.2;
  letter-spacing: -0.01em;
  transition: color var(--duration-fast) var(--ease-out);
}
.tw-action:hover .tw-action-label {
  color: #FFFFFF;
}

/* ── Section Header & Futuristic Token Cards ── */
.tw-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding: 0 4px;
}
.tw-section-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.015em;
}
.tw-section-title:hover { color: var(--brand-400); }

.tw-token-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  margin-bottom: 8px;
  text-decoration: none;
  color: inherit;
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-subtle);
  border-top-color: rgba(255, 255, 255, 0.1);
  box-shadow: var(--e1);
  transition: all var(--duration-normal) var(--ease-out);
}
.tw-token-row:hover {
  background: var(--bg-elevated);
  border-color: rgba(68, 138, 255, 0.28);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), 0 0 1px rgba(255, 255, 255, 0.2) inset;
}
.tw-token-row:active {
  transform: scale(0.985);
}

.tw-token-icon {
  position: relative;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}
.tw-token-icon img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-overlay);
  object-fit: cover;
  display: block;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
  -webkit-clip-path: circle(50% at 50% 50%);
  clip-path: circle(50% at 50% 50%);
}
.tw-token-icon .net-dot {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--bg-base);
  display: block;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: var(--bg-overlay);
  -webkit-clip-path: circle(50% at 50% 50%);
  clip-path: circle(50% at 50% 50%);
  font-size: 0;
  color: transparent;
  line-height: 0;
  text-indent: -9999px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.5);
}
.tw-token-icon .net-dot.net-bep20 {
  background-image: url('icons/networks/bep20.png');
  background-color: var(--network-bep20);
}
.tw-token-icon .net-dot.net-erc20 {
  background-image: url('icons/networks/erc20.png');
  background-color: var(--network-eth);
}
.tw-token-icon .net-dot.net-trc20 {
  background-image: url('icons/networks/trc20.png');
  background-color: var(--network-trc20);
}

.tw-token-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: -0.01em;
}
.tw-token-net {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 2px 7px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-tertiary);
  flex-shrink: 0;
  text-transform: uppercase;
}
.tw-token-qty {
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-tertiary);
  margin-top: 3px;
  line-height: 1.25;
}
.tw-token-fiat {
  font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
  text-align: right;
  letter-spacing: -0.01em;
}
.tw-token-price {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 3px;
  line-height: 1.25;
  text-align: right;
}

/* ── Cyber Floating Dock (Mobile) ── */
.tw-dock {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 16px calc(14px + env(safe-area-inset-bottom, 0px));
  pointer-events: none;
}
.tw-dock > * { pointer-events: auto; }
.tw-dock-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 9999px;
  background: rgba(14, 19, 38, 0.85);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-top-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6), 0 0 1px rgba(255, 255, 255, 0.15) inset;
}
.tw-dock-item {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-tertiary);
  text-decoration: none;
  transition: all var(--duration-fast) var(--ease-out);
  position: relative;
}
.tw-dock-item:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}
.tw-dock-item.is-active {
  background: linear-gradient(135deg, rgba(41, 98, 255, 0.3), rgba(0, 240, 255, 0.15));
  color: #FFFFFF;
  box-shadow: 0 0 12px var(--brand-glow-soft);
}
.tw-dock-item.is-active::after {
  content: '';
  position: absolute;
  bottom: 6px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--brand-cyan);
  box-shadow: 0 0 6px var(--brand-cyan);
}
.tw-dock-search {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(22, 30, 58, 0.9), rgba(14, 19, 38, 0.95));
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-top-color: rgba(255, 255, 255, 0.25);
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6), 0 0 1px rgba(255, 255, 255, 0.15) inset;
  transition: all var(--duration-fast) var(--ease-out);
}
.tw-dock-search:hover {
  background: var(--bg-overlay);
  border-color: var(--brand-400);
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.7), 0 0 16px var(--brand-glow-soft);
  color: var(--brand-cyan);
}
.tw-dock-search:active { transform: scale(0.95); }

@media (min-width: 640px) {
  .tw-dock { display: none; }
  .wallet-shell { padding-bottom: 24px; }
}

/* Legacy aliases kept so older markup doesn't break mid-migration */
.mm-balance-value { font-size: 44px; font-weight: 700; }
.icon-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-overlay);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.icon-circle-sm {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-overlay);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

/* ============================================================
   Asset detail ? Trust Wallet token screen
   ============================================================ */
.ad-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.ad-round-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.ad-round-btn:hover { background: var(--bg-overlay); }
.ad-star {
  background: none;
  border: none;
  color: var(--brand-500);
  padding: 8px;
  cursor: pointer;
  display: inline-flex;
}
.ad-star.is-on { color: var(--brand-500); }

.ad-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.ad-head-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.ad-token-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-overlay);
  object-fit: cover;
  flex-shrink: 0;
  -webkit-clip-path: circle(50% at 50% 50%);
  clip-path: circle(50% at 50% 50%);
}
.ad-token-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--text-primary);
}
.ad-symbol {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}
.ad-head-right { text-align: right; }
.ad-price {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  line-height: 1.2;
}
.ad-change {
  font-size: 14px;
  font-weight: 500;
  margin-top: 4px;
}
.ad-change.is-up { color: var(--brand-500); }
.ad-change.is-down { color: var(--danger); }

.ad-tfs {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  margin: 12px 0 4px;
}
.ad-chart {
  width: 100%;
  height: 180px;
  margin: 4px 0 20px;
  position: relative;
  overflow: hidden;
}
.ad-chart canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}
.ad-tf {
  flex: 1;
  padding: 8px 0;
  border: none;
  background: transparent;
  color: var(--text-tertiary);
  font-size: 13px;
  font-weight: 600;
  border-radius: 9999px;
  cursor: pointer;
  font-family: inherit;
}
.ad-tf.is-active {
  background: var(--bg-elevated);
  color: var(--text-primary);
}

.ad-balance-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}
.ad-balance-label {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-primary);
}
.ad-balance-fiat {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}
.ad-balance-amt {
  font-size: 13px;
  color: var(--text-tertiary);
  margin-top: 2px;
}

.ad-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 28px;
}
.ad-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 12px 16px;
  border-radius: 9999px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  font-family: inherit;
}
.ad-action-btn:hover { background: var(--bg-overlay); }

.ad-ai { margin-bottom: 24px; }
.ad-ai-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 10px;
}
.ad-ai-body {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-secondary);
  margin: 0;
}
.ad-ai-body.is-clamp {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  mask-image: linear-gradient(180deg, #000 55%, transparent);
}
.ad-ai-more {
  margin-top: 8px;
  background: none;
  border: none;
  color: var(--brand-500);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
}

.ad-txs {
  margin-bottom: 28px;
}
.ad-txs-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.ad-txs-title {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-tertiary, var(--fg-tertiary));
}
.ad-txs-all {
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-500);
  text-decoration: none;
}
.ad-txs-all:hover { text-decoration: underline; }
.ad-txs-list {
  border-radius: 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
}
.ad-tx {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  text-decoration: none;
  color: inherit;
  border-top: 1px solid var(--border-subtle);
  transition: background 0.15s ease;
}
.ad-tx:first-child { border-top: 0; }
.ad-tx:hover { background: var(--bg-overlay); }
.ad-tx-ico {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.ad-tx-ico.is-sent { color: var(--danger); background: color-mix(in srgb, var(--danger) 12%, transparent); }
.ad-tx-ico.is-recv { color: var(--success); background: color-mix(in srgb, var(--success) 12%, transparent); }
.ad-tx-ico.is-pend { color: var(--warning); background: color-mix(in srgb, var(--warning) 12%, transparent); }
.ad-tx-main { flex: 1; min-width: 0; }
.ad-tx-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary, var(--fg-primary));
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.ad-tx-meta {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--text-tertiary, var(--fg-tertiary));
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ad-tx-pend {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--warning);
}
.ad-tx-right { text-align: right; flex-shrink: 0; }
.ad-tx-amt {
  font-size: 14px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 600;
  color: var(--text-primary, var(--fg-primary));
}
.ad-tx-amt.is-recv { color: var(--success); }
.ad-tx-fiat {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--text-tertiary, var(--fg-tertiary));
}

.ad-stats {
  margin-bottom: 28px;
}
.ad-stats-title {
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary, var(--fg-primary));
}
.ad-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 20px;
}
.ad-stat-label {
  display: block;
  font-size: 12px;
  color: var(--text-tertiary, var(--fg-tertiary));
  margin-bottom: 4px;
  line-height: 1.3;
}
.ad-stat-value {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary, var(--fg-primary));
  line-height: 1.35;
  word-break: break-word;
}
.ad-stat-value.is-risk {
  color: var(--danger);
  font-weight: 600;
}
.ad-stat-value.is-ok {
  color: var(--success);
}

.ad-sticky {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, transparent, var(--bg-base) 28%);
  pointer-events: none;
}
.ad-sticky > * { pointer-events: auto; max-width: 420px; margin: 0 auto; }
.ad-trade-btn {
  width: 100%;
  min-height: 56px;
  border: none;
  border-radius: 9999px;
  background: var(--brand-500);
  color: #0a0a0a;
  font-size: 16px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
}
.ad-trade-btn:hover { background: var(--brand-400); }
.ad-trade-btn:active { transform: scale(.98); }

/* ============================================================
   Send / Receive — Futuristic Cyber HUD Flows
   ============================================================ */
.sr-page {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  padding: 10px 18px 36px;
  font-family: "Plus Jakarta Sans", Inter, system-ui, sans-serif;
}
.sr-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  min-height: 48px;
}
.sr-topbar-title {
  font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.015em;
}
.sr-topbar-side {
  width: 42px;
  display: flex;
  align-items: center;
}
.sr-topbar-side.is-right { justify-content: flex-end; }

.sr-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-tertiary);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}
.sr-field {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-subtle);
  border-top-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) inset;
  transition: all var(--duration-fast) var(--ease-out);
}
.sr-field:focus-within {
  border-color: var(--brand-400);
  box-shadow: 0 0 0 3px var(--brand-glow-soft), 0 2px 8px rgba(0, 0, 0, 0.3) inset;
}
.sr-field input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 15px;
  font-family: inherit;
}
.sr-field input::placeholder { color: var(--text-muted); }

.sr-field-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.sr-link {
  background: rgba(41, 98, 255, 0.12);
  border: 1px solid rgba(41, 98, 255, 0.25);
  padding: 4px 10px;
  border-radius: 9999px;
  color: var(--brand-400);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  font-family: "Space Grotesk", sans-serif;
  white-space: nowrap;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: all var(--duration-fast) var(--ease-out);
}
.sr-link:hover {
  background: var(--brand-500);
  color: #fff;
  box-shadow: 0 0 10px var(--brand-glow);
}
.sr-icon-btn {
  background: none;
  border: none;
  color: var(--brand-400);
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color var(--duration-fast) var(--ease-out);
}
.sr-icon-btn:hover { color: var(--brand-cyan); }

.sr-network {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 14px;
  border-radius: 9999px;
  background: var(--bg-surface);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-top-color: rgba(255, 255, 255, 0.15);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all var(--duration-fast) var(--ease-out);
}
.sr-network:hover {
  background: var(--bg-elevated);
  border-color: rgba(255, 255, 255, 0.2);
}
.sr-network img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  -webkit-clip-path: circle(50% at 50% 50%);
  clip-path: circle(50% at 50% 50%);
}
.sr-net-menu {
  margin-top: 8px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border: 1px solid var(--border-subtle);
  border-top-color: rgba(255, 255, 255, 0.16);
  box-shadow: var(--e3);
  overflow: hidden;
}
.sr-net-option {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition: background var(--duration-fast) var(--ease-out);
}
.sr-net-option:hover,
.sr-net-option.is-active {
  background: rgba(41, 98, 255, 0.12);
}
.sr-net-option.is-active { color: var(--brand-cyan); }
.sr-net-option img {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
}
.sr-net-option span { flex: 1; }
.sr-hint-error {
  margin-top: 8px;
  font-size: 12px;
  color: var(--danger);
  font-weight: 500;
}
.sr-block { margin-bottom: 22px; }

.sr-next {
  width: 100%;
  min-height: 54px;
  border: none;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--brand-500) 0%, #00B0FF 100%);
  color: #FFFFFF;
  font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  margin-top: 12px;
  box-shadow: 0 8px 24px rgba(41, 98, 255, 0.4), 0 0 16px var(--brand-glow);
  transition: all var(--duration-fast) var(--ease-out);
}
.sr-next:not(:disabled):hover {
  background: linear-gradient(135deg, var(--brand-400) 0%, #00F0FF 100%);
  box-shadow: 0 10px 32px rgba(41, 98, 255, 0.6), 0 0 24px var(--brand-glow-strong);
  transform: translateY(-2px);
}
.sr-next:disabled {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  box-shadow: none;
  cursor: not-allowed;
}

/* ── Receive Screen & HUD QR Visor ── */
.sr-warn {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(255, 179, 0, 0.12) 0%, rgba(255, 179, 0, 0.04) 100%);
  border: 1px solid rgba(255, 179, 0, 0.25);
  color: #FFE082;
  font-size: 13px;
  line-height: 1.45;
  margin-bottom: 24px;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.sr-warn strong { color: #FFF8E1; font-weight: 700; }
.sr-warn-icon {
  flex-shrink: 0;
  color: #FFB300;
  margin-top: 1px;
}
.sr-asset-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}
.sr-asset-row img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  -webkit-clip-path: circle(50% at 50% 50%);
  clip-path: circle(50% at 50% 50%);
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.sr-asset-sym {
  font-family: "Space Grotesk", sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}
.sr-asset-badge {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 3px 9px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-tertiary);
  text-transform: uppercase;
}

/* Futuristic HUD QR Container */
.sr-qr-card {
  background: #FFFFFF;
  border-radius: 20px;
  padding: 22px 18px 18px;
  text-align: center;
  margin: 0 auto 26px;
  max-width: 310px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7), 0 0 28px rgba(41, 98, 255, 0.25);
  position: relative;
}
.sr-qr-card img {
  width: 220px;
  height: 220px;
  display: block;
  margin: 0 auto 16px;
}
.sr-qr-addr {
  font-size: 12px;
  line-height: 1.45;
  color: #1E293B;
  word-break: break-all;
  font-family: "JetBrains Mono", monospace;
  font-weight: 600;
  background: #F1F5F9;
  padding: 8px 10px;
  border-radius: 8px;
}

.sr-recv-actions {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 28px;
}
.sr-recv-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  font-family: inherit;
  padding: 0;
  text-decoration: none;
  transition: transform var(--duration-fast) var(--ease-out);
}
.sr-recv-action:hover {
  transform: translateY(-2px);
}
.sr-recv-action:active { transform: scale(0.95); }
.sr-recv-action-icon {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background: var(--bg-surface);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-subtle);
  border-top-color: rgba(255, 255, 255, 0.18);
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
  transition: all var(--duration-fast) var(--ease-out);
}
.sr-recv-action:hover .sr-recv-action-icon {
  background: var(--bg-elevated);
  border-color: var(--brand-400);
  color: var(--brand-cyan);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 16px var(--brand-glow-soft);
}
.sr-recv-action span {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}
.sr-recv-action:hover span { color: #FFFFFF; }
.sr-deposit {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  width: 100%;
  text-align: left;
  font: inherit;
}
.sr-deposit-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--brand-500);
  color: #0a0a0a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sr-deposit-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}
.sr-deposit-sub {
  font-size: 12px;
  color: var(--text-tertiary);
  margin-top: 2px;
}



/* ============================================================
   Welcome Gate — Cyber Elegance Landing
   ============================================================ */
.welcome-page {
  max-width: 440px;
  margin: 0 auto;
  padding: 16px 20px 48px;
  min-height: calc(100vh - 2rem);
  display: flex;
  flex-direction: column;
}
.welcome-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.welcome-brand {
  font-family: "Space Grotesk", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-cyan);
  text-shadow: 0 0 10px var(--brand-glow);
}
.welcome-top-spacer { width: 42px; height: 42px; }
.welcome-icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-tertiary);
  background: var(--bg-surface);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-top-color: rgba(255, 255, 255, 0.15);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
}
.welcome-icon-btn:hover {
  color: #FFFFFF;
  background: var(--bg-elevated);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 0 12px var(--brand-glow-soft);
}

.welcome-pwa {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 18px;
  margin-bottom: 28px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(41, 98, 255, 0.18) 0%, rgba(0, 240, 255, 0.06) 100%), var(--bg-surface);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 240, 255, 0.25);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), 0 0 16px var(--brand-glow-soft);
}
.welcome-pwa-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 4px;
}
.welcome-pwa-body { font-size: 12px; color: var(--text-secondary); margin: 0; line-height: 1.45; }
.welcome-pwa-actions { display: flex; gap: 10px; align-items: center; }
.welcome-pwa-install {
  min-height: 38px;
  padding: 0 18px;
  border: none;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--brand-500) 0%, #00B0FF 100%);
  color: #FFFFFF;
  font-family: "Space Grotesk", sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(41, 98, 255, 0.4);
  transition: all var(--duration-fast) var(--ease-out);
}
.welcome-pwa-install:hover {
  background: linear-gradient(135deg, var(--brand-400) 0%, #00F0FF 100%);
  transform: translateY(-1px);
}
.welcome-pwa-skip {
  min-height: 38px;
  padding: 0 12px;
  border: none;
  background: transparent;
  color: var(--text-tertiary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.welcome-pwa-skip:hover { color: var(--text-primary); }

.welcome-hero {
  text-align: center;
  padding: 12px 4px 38px;
}
.welcome-hero-logo {
  display: block;
  width: 128px;
  height: 128px;
  margin: 0 auto 30px;
  filter: drop-shadow(0 16px 40px rgba(41, 98, 255, 0.5)) drop-shadow(0 0 20px rgba(0, 240, 255, 0.3));
  animation: float-pulse 6s ease-in-out infinite alternate;
}
@keyframes float-pulse {
  0% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-6px) scale(1.02); }
  100% { transform: translateY(0) scale(1); }
}
.welcome-headline {
  font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif;
  font-size: clamp(1.5rem, 5.2vw, 1.95rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.03em;
  color: #FFFFFF;
  max-width: 16.5em;
  margin: 0 auto;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.6);
}

.welcome-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 38px;
}
.welcome-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 18px;
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-subtle);
  border-top-color: rgba(255, 255, 255, 0.14);
  text-decoration: none;
  color: inherit;
  box-shadow: var(--e2);
  transition: all var(--duration-fast) var(--ease-out);
}
.welcome-cta:hover {
  border-color: rgba(68, 138, 255, 0.35);
  background: var(--bg-elevated);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5), 0 0 16px var(--brand-glow-soft);
}
.welcome-cta:active { transform: scale(0.985); }
.welcome-cta-icon {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--brand-500) 0%, #00B0FF 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(41, 98, 255, 0.4);
}
.welcome-cta-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.welcome-cta-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}
.welcome-cta-sub { font-size: 12px; color: var(--text-tertiary); line-height: 1.35; }
.welcome-cta-chevron { color: var(--text-tertiary); flex-shrink: 0; opacity: 0.7; transition: transform var(--duration-fast) var(--ease-out); }
.welcome-cta:hover .welcome-cta-chevron {
  transform: translateX(3px);
  color: var(--brand-cyan);
}

.welcome-tokens { margin-top: 4px; }
.welcome-tokens-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 6px;
  padding: 0 2px;
}
.welcome-tokens-head h2 { font-size: 16px; font-weight: 700; color: var(--text-primary); margin: 0; }
.welcome-tokens-head span { font-size: 12px; color: var(--text-tertiary); }
.welcome-token-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 2px;
}
.welcome-token-row + .welcome-token-row {
  border-top: 1px solid rgba(255,255,255,0.04);
}
.welcome-token-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  -webkit-clip-path: circle(50% at 50% 50%);
  clip-path: circle(50% at 50% 50%);
}
.welcome-token-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.welcome-token-sym { font-size: 15px; font-weight: 700; color: var(--text-primary); }
.welcome-token-name { font-size: 12px; color: var(--text-tertiary); }
.welcome-token-price {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}
.welcome-legal {
  font-size: 11px;
  line-height: 1.5;
  color: var(--text-tertiary);
  text-align: center;
  max-width: 28em;
  margin: 32px auto 0;
}

/* /twall ? install-to-receive landing */
.twall-page {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px 48px;
  overflow: hidden;
}
.twall-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(26, 75, 255, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 80%, rgba(16, 185, 129, 0.10), transparent 50%),
    var(--bg-base);
  pointer-events: none;
}
.twall-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 400px;
  text-align: center;
}
.twall-logo {
  display: block;
  margin: 0 auto 16px;
  width: 88px;
  height: 88px;
}
.twall-brand {
  margin: 0 0 20px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-500);
}
.twall-title {
  margin: 0 0 12px;
  font-size: clamp(26px, 6vw, 34px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  text-wrap: balance;
}
.twall-sub {
  margin: 0 auto 28px;
  max-width: 28em;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-secondary);
}
.twall-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.twall-install {
  width: 100%;
  max-width: 280px;
  min-height: 52px;
  padding: 0 24px;
  border: none;
  border-radius: 14px;
  background: var(--brand-500);
  color: #0a0a0a;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s ease, transform .12s ease;
}
.twall-install:hover:not(:disabled) { background: var(--brand-400); }
.twall-install:active:not(:disabled) { transform: scale(0.98); }
.twall-install:disabled { opacity: 0.7; cursor: wait; }
.twall-hint {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--text-secondary);
  max-width: 26em;
}
.twall-ready {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--brand-400);
}
.twall-ios {
  margin-top: 24px;
  padding: 16px 18px;
  text-align: left;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
}
.twall-ios-title {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}
.twall-ios-steps {
  margin: 0;
  padding-left: 1.2em;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-secondary);
}
.twall-ios-steps li + li { margin-top: 6px; }
.twall-foot {
  margin-top: 36px;
  font-size: 13px;
  color: var(--text-tertiary);
}
.twall-foot a {
  color: var(--brand-400);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ============================================================
   Stake page (/stake/HNI) — informational, Phase X
   Hero APD card + plans table + feature cards + glassy CTA.
   Reuses .sr-* helpers from receive.twig for layout consistency.
   ============================================================ */
.stk-hero {
  margin: 12px 0 8px;
  padding: 22px 20px 18px;
  border-radius: 18px;
  background:
    linear-gradient(135deg,
      color-mix(in srgb, var(--brand-500) 22%, transparent) 0%,
      color-mix(in srgb, var(--success) 14%, transparent) 100%),
    color-mix(in srgb, var(--bg-elevated) 88%, transparent);
  border: 1px solid color-mix(in srgb, var(--brand-500) 30%, transparent);
  box-shadow: 0 0 32px var(--brand-glow-soft);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.stk-hero-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 2px 0;
}
.stk-hero-row--muted { margin-top: 8px; }
.stk-hero-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}
.stk-hero-value {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 56px;
  font-weight: 800;
  line-height: 1;
  color: var(--brand-400);
  letter-spacing: -0.02em;
  text-shadow: 0 0 24px var(--brand-glow);
}
.stk-hero-pct {
  font-size: 28px;
  font-weight: 700;
  margin-left: 2px;
  color: var(--brand-500);
}
.stk-hero-sub {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
}
.stk-hero-note {
  font-weight: 400;
  color: var(--text-tertiary);
  margin-left: 4px;
  font-size: 12px;
}
.stk-hero-bar {
  margin-top: 14px;
  height: 4px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand-500) 18%, transparent);
  overflow: hidden;
}
.stk-hero-bar-fill {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--brand-500), var(--success));
  border-radius: 999px;
  animation: stk-bar-pulse 4s ease-in-out infinite;
}
@keyframes stk-bar-pulse {
  0%, 100% { opacity: 0.7; transform: scaleX(0.92); transform-origin: left; }
  50% { opacity: 1; transform: scaleX(1); }
}
@media (prefers-reduced-motion: reduce) {
  .stk-hero-bar-fill { animation: none; }
}

.stk-plans { margin-top: 18px; }
.stk-table-wrap {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: color-mix(in srgb, var(--bg-elevated) 80%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.stk-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.stk-table thead th {
  text-align: left;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  padding: 12px 14px 8px;
  border-bottom: 1px solid var(--border-subtle);
  background: color-mix(in srgb, var(--bg-base) 60%, transparent);
}
.stk-table tbody td {
  padding: 14px;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
  color: var(--text-primary);
}
.stk-table tbody tr:last-child td { border-bottom: 0; }
.stk-table tbody tr:hover { background: color-mix(in srgb, var(--brand-500) 5%, transparent); }
.stk-plan-name {
  display: block;
  font-weight: 700;
  color: var(--text-primary);
  font-size: 14px;
}
.stk-plan-sub {
  display: block;
  font-size: 11px;
  color: var(--text-tertiary);
  margin-top: 2px;
}
.stk-plan-apy {
  display: inline-block;
  font-family: 'Inter', monospace;
  font-weight: 700;
  font-size: 16px;
  color: var(--success);
  letter-spacing: -0.01em;
}
.stk-plan-apy--premium {
  background: linear-gradient(135deg, var(--brand-500), var(--success));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.stk-plan-pill {
  display: inline-block;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand-500) 14%, transparent);
  color: var(--brand-400);
  border: 1px solid color-mix(in srgb, var(--brand-500) 30%, transparent);
}

.stk-features {
  margin-top: 22px;
  display: grid;
  gap: 10px;
}
.stk-feature {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--bg-elevated) 60%, transparent);
  border: 1px solid var(--border-subtle);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.stk-feature-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: color-mix(in srgb, var(--brand-500) 18%, transparent);
  color: var(--brand-400);
}
.stk-feature-title {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}
.stk-feature-body {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-tertiary);
}

.stk-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 24px;
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 700;
  color: #0a0a0a;
  background: linear-gradient(135deg, var(--brand-400), var(--success));
  border: 0;
  border-radius: 14px;
  cursor: pointer;
  box-shadow: 0 8px 24px var(--brand-glow);
  transition: transform 160ms var(--ease-out), box-shadow 160ms var(--ease-out);
}
.stk-cta:hover { transform: translateY(-1px); box-shadow: 0 12px 32px var(--brand-glow); }
.stk-cta:active { transform: translateY(0); }
.stk-cta-note {
  margin: 8px 0 0;
  font-size: 11px;
  text-align: center;
  color: var(--text-tertiary);
  font-style: italic;
}
.stk-disclaimer {
  margin: 22px 0 0;
  padding: 12px 14px;
  font-size: 11px;
  line-height: 1.55;
  color: var(--text-tertiary);
  border-top: 1px solid var(--border-subtle);
  text-align: center;
}

@media (max-width: 480px) {
  .stk-hero-value { font-size: 48px; }
  .stk-hero-pct { font-size: 24px; }
  .stk-table thead th, .stk-table tbody td { padding: 10px 8px; font-size: 12px; }
}

