/* ── Design tokens ── */
:root {
  --bg-base: #080a10;
  --bg-card: #141820;
  --bg-card-hover: #1a1f2a;
  --bg-elevated: #1c2230;
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-medium: rgba(255, 255, 255, 0.1);

  --text-primary: #f0f2f7;
  --text-secondary: #8b93a7;
  --text-muted: #5c6478;

  --green: #22c55e;
  --green-dim: rgba(34, 197, 94, 0.15);
  --green-glow: rgba(34, 197, 94, 0.35);
  --purple: #7c3aed;
  --purple-bright: #6366f1;
  --purple-glow: rgba(124, 58, 237, 0.4);
  --orange: #f97316;
  --orange-dim: rgba(249, 115, 22, 0.15);
  --blue: #3b82f6;
  --blue-glow: rgba(59, 130, 246, 0.45);
  --yellow: #facc15;
  --red: #ef4444;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  --nav-height: 76px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-top: env(safe-area-inset-top, 0px);

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Montserrat', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --brand-mark-size: 40px;
  --brand-mark-img: 32px;
  --brand-mark-radius: 12px;
  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  color-scheme: dark;
}

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

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

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

[data-brand="name"],
.landing-logo,
.auth-logo__name,
.landing-hero-wallet__label,
.page-loader__text [data-brand="name"],
.landing-footer__brand > span[data-brand="name"] {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.06em;
}

.landing-hero h1,
.auth-hero h1,
.landing-section h2,
.landing-cta h2 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.025em;
}

button, a {
  font: inherit;
  color: inherit;
  cursor: pointer;
  border: none;
  background: none;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

img {
  display: block;
  max-width: 100%;
}

.hidden {
  display: none !important;
}

.brand-mark {
  width: var(--brand-mark-size);
  height: var(--brand-mark-size);
  display: grid;
  place-items: center;
  border-radius: var(--brand-mark-radius);
  background: linear-gradient(145deg, rgba(30, 90, 249, 0.2), rgba(66, 184, 255, 0.08));
  border: 1px solid rgba(66, 184, 255, 0.28);
  padding: 0;
  overflow: visible;
  flex-shrink: 0;
  box-sizing: border-box;
  box-shadow: 0 0 18px rgba(66, 184, 255, 0.18);
}

.brand-mark img,
.brand-mark .nn-mark {
  width: var(--brand-mark-img);
  height: var(--brand-mark-img);
  object-fit: contain;
  display: grid;
  place-items: center;
}

.brand-mark > .nn-mark {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  border: none;
  background: transparent;
  box-shadow: none;
  border-radius: inherit;
}

/* Animated NODALNOVA mark */
.nn-mark {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 12px;
  background: linear-gradient(160deg, rgba(30, 90, 249, 0.22) 0%, rgba(66, 184, 255, 0.08) 55%, rgba(16, 185, 129, 0.08) 100%);
  border: 1px solid rgba(66, 184, 255, 0.28);
  box-shadow:
    0 0 0 1px rgba(30, 90, 249, 0.08),
    0 0 22px rgba(66, 184, 255, 0.22);
  overflow: visible;
}

.nn-mark__svg {
  width: 78%;
  height: 78%;
  display: block;
  overflow: visible;
  filter: drop-shadow(0 0 4px rgba(66, 184, 255, 0.45));
}

.nn-mark__hex {
  transform-origin: 32px 32px;
  animation: nn-hex-breathe 3.6s ease-in-out infinite;
}

.nn-mark__core {
  transform-origin: 32px 29px;
  animation: nn-core-pulse 2.4s ease-in-out infinite;
}

.nn-mark__node {
  transform-origin: center;
  animation: nn-node-glow 2.8s ease-in-out infinite;
}

.nn-mark__node--1 { animation-delay: 0s; }
.nn-mark__node--2 { animation-delay: 0.35s; }
.nn-mark__node--3 { animation-delay: 0.7s; }

.nn-mark__net {
  opacity: 0.95;
  animation: nn-net-flicker 3.2s ease-in-out infinite;
}

@keyframes nn-hex-breathe {
  0%, 100% { opacity: 0.92; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.03); }
}

@keyframes nn-core-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.14); opacity: 0.88; }
}

@keyframes nn-node-glow {
  0%, 100% { opacity: 0.75; }
  50% { opacity: 1; }
}

@keyframes nn-net-flicker {
  0%, 100% { opacity: 0.75; }
  50% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .nn-mark__hex,
  .nn-mark__core,
  .nn-mark__node,
  .nn-mark__net {
    animation: none;
  }
}

/* HTML [hidden] must beat .app { display: flex } — prevents dual panels on desktop */
.app[hidden],
.topup-view[hidden],
.payment-view[hidden],
.send-view[hidden],
.settings-view[hidden],
.activity-view[hidden],
.kyc-view[hidden] {
  display: none !important;
}

body.is-app-mode #landingView,
body.is-app-mode #authView {
  display: none !important;
}

/* ── Shell & ambient background ── */
.app-shell {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ambient {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
}

.ambient-1 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.18) 0%, transparent 70%);
  top: -120px;
  right: -80px;
}

.ambient-2 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.1) 0%, transparent 70%);
  bottom: 120px;
  left: -100px;
}

/* ── Main app container ── */
.app {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  padding: calc(12px + var(--safe-top)) 20px calc(var(--nav-height) + 24px + var(--safe-bottom));
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ── Header ── */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 4px;
}

.profile {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  border: 2px solid var(--border-medium);
  object-fit: cover;
  overflow: hidden;
  flex-shrink: 0;
}

.profile-name {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.header-actions {
  display: flex;
  gap: 10px;
}

.icon-btn {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  display: grid;
  place-items: center;
  transition: background var(--transition), transform var(--transition);
}

.icon-btn svg {
  width: 20px;
  height: 20px;
}

.icon-btn--settings svg {
  color: var(--yellow);
}

.icon-btn--theme svg {
  color: var(--yellow);
}

.icon-btn--theme .icon-moon {
  color: var(--purple-bright);
}

.icon-btn:hover {
  background: var(--bg-card-hover);
}

.icon-btn:active {
  transform: scale(0.94);
}

.badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: var(--radius-full);
  background: var(--red);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  border: 2px solid var(--bg-base);
}

/* ── Balance card ── */
.deposit-pending-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-lg);
  background: rgba(249, 115, 22, 0.12);
  border: 1px solid rgba(249, 115, 22, 0.22);
  color: #fdba74;
  font-size: 0.82rem;
  line-height: 1.45;
}

.deposit-pending-banner svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 1px;
}

.deposit-pending-banner p {
  margin: 0;
}

.balance-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 20px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.balance-card__decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  border-radius: inherit;
}

.balance-card__waves {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 65%;
  height: 100%;
}

.balance-card__watermark {
  position: absolute;
  right: -26px;
  bottom: -24px;
  width: 132px;
  height: 132px;
  opacity: 0.08;
  pointer-events: none;
}

.balance-card__watermark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.balance-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 20px;
}

.token-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.token-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.token-icon svg {
  width: 100%;
  height: 100%;
}

.crypto-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.crypto-icon--sm {
  width: 32px;
  height: 32px;
}

.crypto-icon--xs {
  width: 18px;
  height: 18px;
}

.token-icon .crypto-icon {
  width: 40px;
  height: 40px;
}

.token-name {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.token-sub {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 1px;
}

.balance-card__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: var(--green-dim);
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 600;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.visibility-btn {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  display: grid;
  place-items: center;
  color: var(--text-secondary);
  transition: color var(--transition), background var(--transition);
}

.visibility-btn svg {
  width: 16px;
  height: 16px;
}

.visibility-btn:hover {
  color: var(--text-primary);
  background: var(--bg-card-hover);
}

.balance-amount {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 12px;
}

.balance-value {
  font-size: clamp(2rem, 8vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  transition: filter var(--transition);
  /* The balance ticks every second — fixed-width digits stop it jittering. */
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum' 1;
}

.usd-pill,
.gain-pill,
.change-pill,
.yield-strip__rate {
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum' 1;
}

.balance-unit {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.balance-card.is-hidden .balance-value,
.balance-card.is-hidden .usd-pill,
.balance-card.is-hidden .gain-pill,
.balance-card.is-hidden .change-pill,
.balance-card.is-hidden .yield-strip {
  filter: blur(8px);
  user-select: none;
}

/* ── Live yield strip ── */
.yield-strip {
  position: relative;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: filter var(--transition);
}

.yield-strip[hidden] {
  display: none;
}

.yield-strip__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.yield-strip__status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.yield-strip__pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green-light);
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6);
  animation: yield-pulse 2.4s ease-out infinite;
}

.yield-strip--idle .yield-strip__pulse {
  background: var(--text-muted);
  animation: none;
  box-shadow: none;
}

@keyframes yield-pulse {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.55); }
  70% { box-shadow: 0 0 0 7px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.yield-strip__rate {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--green-light);
}

.yield-strip--idle .yield-strip__rate {
  color: var(--text-muted);
}

.yield-strip__rate small {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-left: 2px;
}

.yield-strip__track {
  height: 5px;
  border-radius: var(--radius-full);
  background: rgba(148, 163, 184, 0.18);
  overflow: hidden;
}

.yield-strip__fill {
  display: block;
  height: 100%;
  width: 3%;
  border-radius: inherit;
  background: var(--gradient-brand, linear-gradient(90deg, #1e5af9, #42b8ff));
  transition: width 600ms cubic-bezier(0.22, 1, 0.36, 1);
}

.yield-strip--idle .yield-strip__fill {
  background: rgba(148, 163, 184, 0.55);
}

.yield-strip__hint {
  font-size: 0.72rem;
  line-height: 1.45;
  color: var(--text-muted);
}

/* ── Activity feed ── */
.empty-state[hidden] {
  display: none !important;
}

.activity-view:not([hidden]) {
  width: 100%;
}

.activity-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.activity-row {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  transition: border-color var(--transition), transform var(--transition);
}

.activity-row:hover {
  border-color: var(--border-medium);
}

.activity-row__icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.activity-row__icon svg {
  width: 18px;
  height: 18px;
}

.activity-row__icon--gain {
  background: rgba(16, 185, 129, 0.14);
  color: var(--green-light, #34d399);
}

.activity-row__icon--deposit {
  background: rgba(30, 90, 249, 0.14);
  color: var(--purple-bright, #42b8ff);
}

.activity-row__icon--pending {
  background: rgba(212, 175, 55, 0.16);
  color: var(--gold-light, #f0c14b);
}

.activity-row__body {
  min-width: 0;
}

.activity-row__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.activity-row__live {
  padding: 1px 7px;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.16);
  color: var(--green-light, #34d399);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.activity-row__meta {
  margin-top: 2px;
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.activity-row__amount {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum' 1;
}

.activity-row__amount small {
  font-size: 0.66rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-left: 4px;
}

.activity-row__amount--gain,
.activity-row__amount--deposit {
  color: var(--green-light, #34d399);
}

.activity-row--live .activity-row__icon--gain {
  position: relative;
}

.activity-row--live .activity-row__icon--gain::after {
  content: '';
  position: absolute;
  top: 6px;
  right: 6px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green-light, #34d399);
  animation: yield-pulse 2.4s ease-out infinite;
}

/* ── Full earnings history view ── */
.activity-summary {
  padding: 20px;
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.activity-summary__label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.activity-summary__value {
  display: block;
  margin-top: 6px;
  font-size: clamp(1.8rem, 7vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--green-light, #34d399);
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum' 1;
}

.activity-summary__value small {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-left: 4px;
}

.activity-summary__note {
  display: block;
  margin-top: 4px;
  font-size: 0.74rem;
  color: var(--text-muted);
}

/* Two columns at every width — the app column is a fixed-width centred shell,
   so a viewport media query here would squeeze the cells on desktop. */
.activity-summary__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.activity-summary__stat {
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
}

.activity-summary__stat span {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.activity-summary__stat strong {
  display: block;
  margin-top: 4px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum' 1;
}

.balance-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.usd-pill {
  display: inline-flex;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  background: var(--green-dim);
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 600;
  transition: filter var(--transition);
}

.change-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.change-pill svg {
  width: 10px;
  height: 10px;
}

.change-pill--up {
  color: var(--green);
}

.change-period {
  color: var(--text-muted);
  font-weight: 400;
}

.gain-pill {
  display: inline-flex;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  background: rgba(34, 197, 94, 0.12);
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 600;
  transition: filter var(--transition);
}

.gain-pill--up {
  color: var(--green);
}

.gain-pill--idle {
  background: rgba(148, 163, 184, 0.14);
  color: var(--text-muted);
}

.change-pill--flat {
  color: var(--text-muted);
}

.change-pill--flat svg {
  display: none;
}

/* ── Quick actions ── */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 4px;
  transition: transform var(--transition);
}

.action-btn:active {
  transform: scale(0.95);
}

.action-icon {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  display: grid;
  place-items: center;
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
}

.action-icon svg {
  width: 22px;
  height: 22px;
  color: var(--text-primary);
}

.action-btn--primary {
  position: relative;
  overflow: visible;
}

.action-btn--primary .action-icon {
  position: relative;
  z-index: 1;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  overflow: visible;
  background: linear-gradient(145deg, #1e5af9 0%, #42b8ff 55%, #34d399 120%);
  border: 0;
  box-shadow:
    0 8px 28px rgba(30, 90, 249, 0.45),
    0 0 22px rgba(66, 184, 255, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
  transform: none;
  animation: topup-pulse 2.8s ease-in-out infinite;
}

.action-btn--primary .action-icon svg {
  color: #fff;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.25));
}

.action-btn--primary:hover .action-icon {
  background: linear-gradient(145deg, #2563eb 0%, #38bdf8 55%, #34d399 120%);
  box-shadow:
    0 12px 36px rgba(30, 90, 249, 0.55),
    0 0 28px rgba(66, 184, 255, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  animation: none;
}

.action-btn--primary .action-label {
  color: var(--text-primary);
  font-weight: 700;
  letter-spacing: 0.02em;
}

@keyframes topup-pulse {
  0%, 100% {
    box-shadow:
      0 8px 28px rgba(30, 90, 249, 0.4),
      0 0 20px rgba(66, 184, 255, 0.32),
      inset 0 1px 0 rgba(255, 255, 255, 0.25);
  }
  50% {
    box-shadow:
      0 10px 34px rgba(30, 90, 249, 0.58),
      0 0 28px rgba(66, 184, 255, 0.48),
      inset 0 1px 0 rgba(255, 255, 255, 0.3);
  }
}

@media (prefers-reduced-motion: reduce) {
  .action-btn--primary .action-icon {
    animation: none;
  }
}

.action-btn:hover .action-icon {
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.action-label {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-secondary);
}

/* ── Stocks section ── */
.stocks-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.section-header h2 {
  position: relative;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  padding-left: 12px;
}

.section-header h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.18em;
  bottom: 0.18em;
  width: 3px;
  border-radius: var(--radius-full);
  background: var(--gradient-brand, linear-gradient(180deg, #1e5af9, #42b8ff));
}

.section-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 3px;
  padding-left: 12px;
}

.stocks-marquee {
  overflow: hidden;
  margin: 0 -20px;
  padding: 0 20px 4px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.stocks-scroll {
  display: flex;
  gap: 12px;
  width: max-content;
  padding-bottom: 4px;
}

.stocks-marquee__track {
  animation: stocks-marquee 48s linear infinite;
}

/* Only pause on real hover devices — mobile tap leaves :hover stuck and freezes the strip. */
@media (hover: hover) and (pointer: fine) {
  .stocks-marquee:hover .stocks-marquee__track {
    animation-play-state: paused;
  }
}

@media (hover: none), (pointer: coarse) {
  .stocks-marquee__track,
  .landing-coin-track {
    animation-play-state: running !important;
  }
}

@keyframes stocks-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .stocks-marquee {
    -webkit-mask-image: none;
    mask-image: none;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .stocks-marquee__track {
    animation: none;
  }

  .stocks-marquee::-webkit-scrollbar {
    display: none;
  }
}

.stock-card {
  flex: 0 0 130px;
  scroll-snap-align: start;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: background var(--transition), transform var(--transition), border-color var(--transition);
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
  cursor: default;
}

.stock-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-medium);
  transform: translateY(-2px);
}

.stock-logo {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-primary);
  overflow: hidden;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--border-subtle);
}

[data-theme="light"] .stock-logo {
  background: #fff;
}

.stock-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}

.stock-ticker {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.stock-name {
  font-size: 0.72rem;
  color: var(--text-secondary);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.stock-change {
  margin-top: auto;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: var(--green-dim);
  color: var(--green);
  font-size: 0.75rem;
  font-weight: 600;
}

.stock-change--down {
  background: rgba(239, 68, 68, 0.15);
  color: var(--red);
}

/* ── Live crypto market cards ── */
.crypto-market-section .live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green-glow);
  vertical-align: middle;
  animation: live-dot-pulse 2s ease-in-out infinite;
}

.crypto-price {
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  transition: color 0.3s ease, transform 0.3s ease;
}

.crypto-card {
  flex: 0 0 138px;
}

.crypto-card--enter {
  animation: crypto-card-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: var(--crypto-delay, 0s);
}

.crypto-card--loading .stock-logo,
.crypto-card--loading .crypto-price,
.crypto-card--loading .stock-change {
  position: relative;
  color: transparent !important;
  overflow: hidden;
}

.crypto-card--loading .stock-logo img {
  opacity: 0;
}

.crypto-card--loading .stock-logo::after,
.crypto-card--loading .crypto-price::after,
.crypto-card--loading .stock-change::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  animation: crypto-shimmer 1.4s ease-in-out infinite;
}

.crypto-card--tick-up .crypto-price {
  animation: crypto-price-up 0.65s ease;
}

.crypto-card--tick-down .crypto-price {
  animation: crypto-price-down 0.65s ease;
}

@keyframes live-dot-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.85); }
}

@keyframes crypto-card-in {
  from { opacity: 0; transform: translateY(18px) scale(0.94); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes crypto-shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

@keyframes crypto-price-up {
  0%, 100% { color: var(--text-primary); transform: scale(1); }
  40% { color: var(--green); transform: scale(1.06); }
}

@keyframes crypto-price-down {
  0%, 100% { color: var(--text-primary); transform: scale(1); }
  40% { color: var(--red); transform: scale(1.06); }
}

@media (prefers-reduced-motion: reduce) {
  .crypto-card--enter,
  .crypto-card--tick-up .crypto-price,
  .crypto-card--tick-down .crypto-price,
  .crypto-market-section .live-dot,
  .crypto-card--loading .stock-logo::after,
  .crypto-card--loading .crypto-price::after,
  .crypto-card--loading .stock-change::after {
    animation: none !important;
  }
}

/* ── Shared section patterns ── */
.section-header--row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.section-link {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--purple-bright);
  white-space: nowrap;
  transition: opacity var(--transition);
}

button.section-link {
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  font: inherit;
}

.section-link svg {
  width: 16px;
  height: 16px;
}

.section-link:hover {
  opacity: 0.8;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  transition: transform var(--transition), box-shadow var(--transition), opacity var(--transition);
}

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn:active {
  transform: scale(0.98);
}

.btn--full {
  width: 100%;
}

.btn--purple {
  background: linear-gradient(135deg, var(--purple-bright), var(--purple));
  color: #fff;
  box-shadow: 0 4px 20px var(--purple-glow);
}

.btn--purple:hover {
  box-shadow: 0 6px 28px var(--purple-glow);
}

/* ── No Cards Yet ── */
.cards-empty {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 28px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.cards-empty__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(124, 58, 237, 0.2);
  display: grid;
  place-items: center;
  color: var(--purple-bright);
  margin-bottom: 4px;
}

.cards-empty__icon svg {
  width: 24px;
  height: 24px;
}

.cards-empty__title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.cards-empty__desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.55;
  max-width: 280px;
  margin-bottom: 8px;
}

/* ── Financial Services ── */
.services-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.services-swipe-hint {
  display: none;
  justify-content: center;
  margin-top: -2px;
}

.services-swipe-hint__track {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(66, 184, 255, 0.2);
  background: rgba(30, 90, 249, 0.12);
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.services-swipe-hint__track svg {
  width: 20px;
  height: 20px;
  color: #93c5fd;
  flex-shrink: 0;
}

html[data-theme="light"] .services-swipe-hint__track {
  background: rgba(30, 90, 249, 0.06);
  border-color: rgba(30, 90, 249, 0.14);
  color: #64748b;
}

html[data-theme="light"] .services-swipe-hint__track svg {
  color: #2563eb;
}

@media (max-width: 767px) {
  .services-swipe-hint {
    display: flex;
  }
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}

.service-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-medium);
}

.service-card__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.service-card__icon svg {
  width: 22px;
  height: 22px;
}

.service-card__icon--green {
  background: rgba(38, 161, 123, 0.15);
  color: var(--green);
}

.service-card__icon--green svg:first-child {
  width: 32px;
  height: 32px;
}

.service-card__icon--orange {
  background: var(--orange-dim);
  color: var(--orange);
}

.service-card__icon--crypto {
  background: rgba(38, 161, 123, 0.1);
  border: 1px solid rgba(38, 161, 123, 0.18);
  padding: 6px;
}

.service-card__icon--crypto .crypto-icon {
  width: 28px;
  height: 28px;
}

.service-card__head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.service-card__head h3 {
  font-size: 0.95rem;
  font-weight: 700;
}

.avail-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: var(--bg-elevated);
  color: var(--text-muted);
  font-size: 0.65rem;
  font-weight: 600;
}

.avail-pill .status-dot {
  width: 5px;
  height: 5px;
  animation: none;
}

.service-card__desc {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.45;
  flex: 1;
}

.service-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 600;
  color: #fff;
  margin-top: auto;
  transition: transform var(--transition), box-shadow var(--transition);
}

.service-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.service-btn--green {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  box-shadow: 0 2px 12px var(--green-glow);
}

.service-btn--green:hover {
  box-shadow: 0 4px 16px var(--green-glow);
}

.service-btn--orange {
  background: linear-gradient(135deg, #f97316, #ea580c);
  box-shadow: 0 2px 12px rgba(249, 115, 22, 0.35);
}

.service-btn--orange:hover {
  box-shadow: 0 4px 16px rgba(249, 115, 22, 0.45);
}

.service-btn:active {
  transform: scale(0.98);
}

/* ── Tip card ── */
.tip-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
}

.tip-card svg {
  width: 20px;
  height: 20px;
  color: var(--purple-bright);
  flex-shrink: 0;
  margin-top: 1px;
}

.tip-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ── Recent Activity ── */
.activity-section,
.help-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.empty-state {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 40px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.empty-state__icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  display: grid;
  place-items: center;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.empty-state__icon svg {
  width: 26px;
  height: 26px;
}

.empty-state__title {
  font-size: 1rem;
  font-weight: 700;
}

.empty-state__desc {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ── Need Help ── */
.help-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.help-grid--single {
  grid-template-columns: 1fr;
}

.help-grid--single .help-card {
  align-items: center;
  text-align: center;
}

.help-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}

button.help-card {
  width: 100%;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  appearance: none;
}

button.help-card:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.help-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-medium);
  transform: translateY(-2px);
}

.help-card__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
}

.help-card__icon svg {
  width: 22px;
  height: 22px;
}

.help-card__icon--blue {
  background: rgba(59, 130, 246, 0.15);
  color: var(--blue);
}

.help-card__icon--green {
  background: var(--green-dim);
  color: var(--green);
}

.help-card h3 {
  font-size: 0.92rem;
  font-weight: 700;
}

.help-card p {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* ── 24/7 Support Banner ── */
.support-banner {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 20px;
  text-align: center;
}

.support-banner__header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 8px;
}

.support-banner__icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: rgba(124, 58, 237, 0.2);
  display: grid;
  place-items: center;
  color: var(--purple-bright);
  flex-shrink: 0;
  overflow: visible;
}

.support-banner__icon svg {
  width: 20px;
  height: 20px;
  overflow: visible;
  display: block;
}

.support-banner__title {
  font-size: 1rem;
  font-weight: 700;
}

.support-banner__tagline {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.support-banner__email {
  margin: 0 0 16px;
  font-size: 0.9rem;
  font-weight: 700;
}

.support-banner__email a {
  color: var(--purple-bright);
  text-decoration: none;
}

.support-banner__email a:hover {
  text-decoration: underline;
}

.support-banner__cta {
  margin: 0 auto 18px;
  max-width: 280px;
}

.support-features {
  display: flex;
  justify-content: center;
  gap: 28px;
}

.support-feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.support-feature__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  display: grid;
  place-items: center;
  overflow: visible;
  flex-shrink: 0;
}

.support-feature__icon svg {
  width: 20px;
  height: 20px;
  overflow: visible;
  display: block;
}

.support-feature__icon--purple {
  background: rgba(124, 58, 237, 0.2);
  color: var(--purple-bright);
}

.support-feature__icon--green {
  background: var(--green-dim);
  color: var(--green);
}

.support-feature__icon--blue {
  background: rgba(59, 130, 246, 0.15);
  color: var(--blue);
}

.support-feature span {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-secondary);
}

/* ── Desktop: services & help grids ── */
@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 767px) {
  .services-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 12px;
    margin: 0 -20px;
    padding: 0 20px 4px;
  }

  .services-grid::-webkit-scrollbar {
    display: none;
  }

  .services-grid .service-card {
    flex: 0 0 min(78vw, 240px);
    scroll-snap-align: start;
  }

  .service-card {
    padding: 16px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.28);
    border-color: rgba(255, 255, 255, 0.08);
  }

  .services-section--expanded .services-grid {
    display: grid;
    grid-template-columns: 1fr;
    overflow: visible;
    scroll-snap-type: none;
    margin: 0;
    padding: 0;
  }

  .services-section--expanded .services-grid .service-card {
    flex: unset;
    width: 100%;
    max-width: none;
    scroll-snap-align: unset;
  }

  .services-section--expanded .services-swipe-hint {
    display: none;
  }
}

@media (min-width: 721px) and (max-width: 767px) {
  .services-grid {
    display: grid;
    overflow-x: visible;
    margin: 0;
    padding: 0;
    grid-template-columns: repeat(3, 1fr);
  }

  .services-grid .service-card {
    flex: unset;
    scroll-snap-align: unset;
  }

  .services-swipe-hint {
    display: none;
  }
}

/* ── Bottom nav ── */
.bottom-nav {
  position: fixed;
  z-index: 40;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  height: calc(var(--nav-height) + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  background: rgba(12, 14, 20, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding-left: 6px;
  padding-right: 6px;
}

.nav-item {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 6px 2px;
  color: var(--text-muted);
  font-size: 0.62rem;
  font-weight: 500;
  transition: color var(--transition);
  min-width: 0;
  max-width: none;
  text-align: center;
}

.nav-item svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.nav-item > svg {
  margin-block: 5px; /* match .nav-icon-wrap height (32px) centering */
}

.nav-item__label {
  display: block;
  width: 100%;
  min-height: 2.2em;
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-align: center;
  overflow: hidden;
}

.nav-item:hover {
  color: var(--text-secondary);
}

.nav-item--active {
  color: var(--text-primary);
}

.nav-icon-wrap {
  display: grid;
  place-items: center;
  width: 44px;
  height: 32px;
  border-radius: var(--radius-md);
  background: var(--purple);
  box-shadow: 0 4px 16px var(--purple-glow);
}

.nav-item--active svg {
  color: #fff;
}

/* ── Desktop enhancements ── */
@media (min-width: 768px) {
  body {
    background:
      radial-gradient(ellipse 80% 60% at 50% -10%, rgba(124, 58, 237, 0.12) 0%, transparent 60%),
      radial-gradient(ellipse 60% 50% at 80% 100%, rgba(34, 197, 94, 0.08) 0%, transparent 50%),
      var(--bg-base);
  }

  .app {
    max-width: 440px;
    padding-top: calc(24px + var(--safe-top));
  }

  .app-shell::before {
    content: '';
    position: fixed;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.015'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
  }

  .bottom-nav {
    max-width: 440px;
    border-radius: var(--radius-xl);
    bottom: 16px;
    height: var(--nav-height);
    padding-bottom: 0;
    box-shadow: 0 -4px 40px rgba(0, 0, 0, 0.4);
  }

  .app {
    padding-bottom: calc(var(--nav-height) + 32px);
  }
}

@media (min-width: 1024px) {
  .app {
    max-width: 460px;
    gap: 28px;
  }

  .balance-card {
    padding: 24px;
  }

  .stock-card {
    flex: 0 0 140px;
  }

  .bottom-nav {
    max-width: 460px;
  }
}

@media (min-width: 1280px) {
  /* Keep a single centered column. A row layout stacked multiple .app views
     side-by-side whenever more than one main was briefly visible. */
  .app-shell {
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 0;
    padding: 40px 24px;
  }

  .app {
    max-width: 440px;
    padding-bottom: calc(var(--nav-height) + 32px);
    flex-shrink: 0;
  }

  .bottom-nav {
    position: fixed;
  }
}

/* Desktop info panel (visible on large screens) */
.desktop-sidebar {
  display: none;
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ── Focus styles ── */
:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 2px;
}

/* ── Light theme ── */
[data-theme="light"] {
  --bg-base: #eef1f6;
  --bg-card: #ffffff;
  --bg-card-hover: #f5f7fb;
  --bg-elevated: #e8ecf2;
  --border-subtle: rgba(0, 0, 0, 0.06);
  --border-medium: rgba(0, 0, 0, 0.1);
  --text-primary: #111827;
  --text-secondary: #4b5563;
  --text-muted: #9ca3af;
  color-scheme: light;
}

[data-theme="light"] body {
  background: var(--bg-base);
}

[data-theme="light"] .ambient-1 {
  background: radial-gradient(circle, rgba(124, 58, 237, 0.08) 0%, transparent 70%);
}

[data-theme="light"] .ambient-2 {
  background: radial-gradient(circle, rgba(34, 197, 94, 0.06) 0%, transparent 70%);
}

[data-theme="light"] .bottom-nav {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .balance-card,
[data-theme="light"] .stock-card,
[data-theme="light"] .service-card,
[data-theme="light"] .help-card,
[data-theme="light"] .empty-state,
[data-theme="light"] .support-banner,
[data-theme="light"] .cards-empty,
[data-theme="light"] .tip-card {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .profile-sheet {
  background: #ffffff;
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .menu-item--highlight {
  background: rgba(124, 58, 237, 0.08);
}

[data-theme="light"] .lang-select {
  background: #f3f4f6;
}

[data-theme="light"] .sheet-overlay {
  background: rgba(0, 0, 0, 0.35);
}

[data-theme="light"] .sheet-icon-btn svg {
  color: var(--yellow);
}

/* ── Profile sheet ── */
.sheet-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.sheet-overlay.is-visible {
  opacity: 1;
}

.sheet-overlay--dim {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  background: rgba(0, 0, 0, 0.45);
}

#moreOverlay {
  z-index: 110;
}

.profile-sheet {
  position: fixed;
  z-index: 70;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) translateY(100%);
  width: 100%;
  max-width: 480px;
  max-height: 92dvh;
  background: #12141c;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  border: 1px solid var(--border-subtle);
  border-bottom: none;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
  overflow: hidden;
}

/* Author `display:flex` otherwise beats the UA [hidden] rule and leaves a
   second panel taking layout/hit-testing on desktop. */
.profile-sheet[hidden],
.more-sheet[hidden],
.sheet-overlay[hidden],
.info-modal[hidden],
.receive-modal[hidden] {
  display: none !important;
}

.profile-sheet.is-open {
  transform: translateX(-50%) translateY(0);
}

.profile-sheet__handle {
  width: 36px;
  height: 4px;
  border-radius: var(--radius-full);
  background: var(--text-muted);
  opacity: 0.5;
  margin: 10px auto 0;
  flex-shrink: 0;
}

.profile-sheet__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px 12px;
  flex-shrink: 0;
}

.profile-sheet__user {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.profile-sheet__avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--purple-bright), var(--purple));
  display: grid;
  place-items: center;
  color: #fff;
  flex-shrink: 0;
  overflow: hidden;
}

.profile-sheet__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-sheet__email {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 1.4em;
}

.profile-sheet__email:empty {
  min-width: 120px;
}

.profile-sheet__actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.sheet-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  display: grid;
  place-items: center;
  color: var(--text-secondary);
  transition: background var(--transition), transform var(--transition);
}

.sheet-icon-btn svg {
  width: 18px;
  height: 18px;
}

#themeToggle svg {
  color: var(--yellow);
}

.sheet-icon-btn:hover {
  background: var(--bg-card-hover);
}

.sheet-icon-btn:active {
  transform: scale(0.94);
}

.profile-sheet__body {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 8px 20px calc(20px + var(--safe-bottom));
  -webkit-overflow-scrolling: touch;
}

.menu-group {
  margin-bottom: 20px;
}

.menu-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
  padding-left: 2px;
}

.menu-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}

.menu-item,
.lang-select {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  text-align: left;
  transition: background var(--transition);
}

.menu-item:hover,
.lang-select:hover {
  background: var(--bg-card-hover);
}

.lang-select--static {
  cursor: default;
  pointer-events: none;
}

.lang-select--static:hover {
  background: transparent;
}

.menu-item--highlight {
  background: rgba(255, 255, 255, 0.04);
}

.menu-item--danger {
  color: var(--red);
}

.menu-item--danger .menu-item__text strong,
.menu-item--danger .menu-item__text small {
  color: inherit;
}

.menu-item--danger .menu-item__text small {
  opacity: 0.75;
}

.menu-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.menu-icon svg {
  width: 20px;
  height: 20px;
  color: #fff;
}

.menu-icon--purple { background: linear-gradient(135deg, #7c3aed, #6366f1); }
.menu-icon--purple-soft { background: rgba(124, 58, 237, 0.25); color: var(--purple-bright); }
.menu-icon--purple-soft svg { color: var(--purple-bright); }
.menu-icon--blue { background: rgba(59, 130, 246, 0.25); }
.menu-icon--blue svg { color: var(--blue); }
.menu-icon--green { background: rgba(34, 197, 94, 0.2); }
.menu-icon--green svg { color: var(--green); }
.menu-icon--green-dark { background: rgba(22, 101, 52, 0.35); }
.menu-icon--green-dark svg { color: var(--green); }
.menu-icon--teal { background: rgba(20, 184, 166, 0.25); }
.menu-icon--teal svg { color: #14b8a6; }
.menu-icon--red { background: rgba(239, 68, 68, 0.15); }
.menu-icon--red svg { color: var(--red); }
.menu-icon--usdt { background: transparent; padding: 0; }
.menu-icon--usdt .crypto-icon { width: 42px; height: 42px; border-radius: var(--radius-sm); }
.menu-icon--usdt svg { width: 42px; height: 42px; }

.menu-item__text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.menu-item__text strong {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
}

.menu-item__text small {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.menu-chevron {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.menu-chevron--danger {
  color: var(--red);
}

.lang-select {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
}

.lang-select__flag {
  font-size: 1.1rem;
  line-height: 1;
}

.lang-select__text {
  flex: 1;
  font-size: 0.92rem;
  font-weight: 500;
}

.profile-sheet__footer {
  padding-top: 8px;
  margin-top: 8px;
  border-top: 1px solid var(--border-subtle);
}

.profile-trust {
  display: flex;
  justify-content: center;
  gap: 32px;
  padding: 16px 0 8px;
}

.profile-trust__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.profile-trust__icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  display: grid;
  place-items: center;
}

.profile-trust__icon svg {
  width: 18px;
  height: 18px;
}

.profile-trust__icon--purple {
  background: rgba(124, 58, 237, 0.2);
  color: var(--purple-bright);
}

.profile-trust__icon--green {
  background: var(--green-dim);
  color: var(--green);
}

.profile-trust__icon--blue {
  background: rgba(59, 130, 246, 0.15);
  color: var(--blue);
}

body.sheet-open {
  overflow: hidden;
}

@media (min-width: 768px) {
  .profile-sheet {
    max-width: 440px;
    border-radius: var(--radius-xl);
    bottom: 24px;
    max-height: calc(100dvh - 48px);
  }

  .profile-sheet.is-open {
    transform: translateX(-50%) translateY(0);
  }

  .profile-sheet:not(.is-open) {
    transform: translateX(-50%) translateY(calc(100% + 24px));
  }
}

@media (min-width: 1024px) {
  .profile-sheet {
    max-width: 460px;
  }
}

/* ── Top Up view ── */
.topup-view[hidden] {
  display: none !important;
}

.header--page {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 8px;
}

.page-title {
  font-size: 1.05rem;
  font-weight: 700;
  text-align: center;
  letter-spacing: -0.02em;
}

.topup-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.topup-card--payment {
  gap: 12px;
}

.topup-card__head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.topup-card__title {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.topup-card__sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 4px;
  line-height: 1.45;
}

.amount-input-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.amount-input {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  cursor: text;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.amount-input:focus-within {
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green-dim);
}

.amount-input__unit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--green);
  flex-shrink: 0;
}

.amount-input input {
  flex: 1;
  min-width: 0;
  background: none;
  border: none;
  outline: none;
  font: inherit;
  font-size: clamp(1.75rem, 7vw, 2.25rem);
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
  letter-spacing: -0.03em;
}

.amount-input input::placeholder {
  color: var(--text-muted);
  opacity: 0.6;
}

.amount-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.45;
}

.amount-hint strong {
  color: var(--text-primary);
  font-weight: 700;
}

.amount-hint--warn {
  color: var(--red, #ef4444);
}

.amount-hint--warn strong {
  color: var(--red, #ef4444);
}

.amount-convert {
  margin: 8px 0 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  text-align: center;
  line-height: 1.45;
}

.amount-convert[hidden] {
  display: none !important;
}

.quick-select__label {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.quick-select__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.quick-btn {
  padding: 12px 8px;
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}

.quick-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-medium);
}

.quick-btn.is-active {
  background: var(--green-dim);
  border-color: var(--green);
  color: var(--green);
}

.quick-btn:active {
  transform: scale(0.97);
}

.payment-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: 280px;
  overflow-y: auto;
  margin: 0 -8px;
  padding: 0 8px;
  scrollbar-width: thin;
  scrollbar-color: var(--text-muted) transparent;
}

.payment-list::-webkit-scrollbar {
  width: 4px;
}

.payment-list::-webkit-scrollbar-thumb {
  background: var(--text-muted);
  border-radius: var(--radius-full);
}

.payment-option {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 12px 10px;
  border-radius: var(--radius-md);
  text-align: left;
  transition: background var(--transition);
}

.payment-option:hover {
  background: var(--bg-card-hover);
}

.payment-option.is-selected {
  background: rgba(124, 58, 237, 0.08);
}

.payment-option__icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: transparent;
  padding: 0;
  overflow: hidden;
}

.payment-option__icon .crypto-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
}

.payment-option__icon svg {
  width: 20px;
  height: 20px;
}

.payment-option__icon--wallet {
  background: rgba(124, 58, 237, 0.2);
  color: var(--purple-bright);
}

.payment-option__icon--coins {
  background: rgba(34, 197, 94, 0.15);
  color: var(--green);
}

.payment-option__label {
  flex: 1;
  font-size: 0.92rem;
  font-weight: 600;
  text-transform: capitalize;
}

.payment-option__radio {
  width: 22px;
  height: 22px;
  border-radius: var(--radius-full);
  border: 2px solid var(--border-medium);
  flex-shrink: 0;
  display: grid;
  place-items: center;
  transition: border-color var(--transition);
}

.payment-option.is-selected .payment-option__radio {
  border-color: var(--purple-bright);
}

.payment-option.is-selected .payment-option__radio::after {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--purple-bright);
}

.payment-coming-soon {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 4px;
  padding: 16px 14px;
  border-radius: var(--radius-md);
  border: 1px dashed var(--border-medium);
  background: rgba(124, 58, 237, 0.06);
}

.payment-coming-soon strong {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
}

.payment-coming-soon span {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.btn--continue {
  width: 100%;
  padding: 16px 24px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #166534, #15803d);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  box-shadow: 0 4px 20px var(--green-glow);
  gap: 10px;
}

.btn--continue:not(:disabled):hover {
  box-shadow: 0 6px 28px var(--green-glow);
}

.btn--continue:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

.security-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.55;
  text-align: left;
  padding: 0 4px;
}

.security-note svg {
  width: 16px;
  height: 16px;
  color: var(--purple-bright);
  flex-shrink: 0;
  margin-top: 1px;
}

[data-theme="light"] .topup-card {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .amount-input {
  background: #f3f4f6;
}

[data-theme="light"] .quick-btn {
  background: #f3f4f6;
}

/* ── Make Payment view ── */
.payment-view[hidden] {
  display: none !important;
}

.pay-card {
  border-radius: var(--radius-xl);
  padding: 20px;
  border: 1px solid var(--border-subtle);
}

.pay-card--purple {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.35), rgba(99, 102, 241, 0.25));
  border-color: rgba(124, 58, 237, 0.3);
}

.pay-card--green {
  background: rgba(22, 101, 52, 0.15);
  border-color: rgba(34, 197, 94, 0.25);
}

.pay-card--blue {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.2);
}

.pay-card--qr {
  background: var(--bg-card);
  text-align: center;
}

.pay-card__row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.pay-card__icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.12);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  overflow: hidden;
}

.pay-card__icon .crypto-icon {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-sm);
}

.pay-card__icon svg {
  width: 20px;
  height: 20px;
  color: #fff;
}

.pay-card__label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
}

.pay-card__label strong {
  text-transform: capitalize;
}

.pay-card__sub {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 4px;
}

.pay-summary-box {
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  font-size: 0.88rem;
  line-height: 1.5;
}

.pay-summary-usdt {
  color: rgba(255, 255, 255, 0.7);
  margin-top: 4px;
  font-size: 0.82rem;
}

.pay-tag {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 8px;
}

.pay-amount-large {
  font-size: clamp(1.5rem, 6vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.pay-amount-large .sym {
  color: var(--green);
  font-size: 0.85em;
}

.pay-equiv {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 8px;
}

.pay-rate {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.pay-yield-tier {
  margin: -6px 0 14px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.18);
  color: var(--green);
  font-size: 0.78rem;
  line-height: 1.45;
  font-weight: 500;
  max-width: 100%;
  box-sizing: border-box;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.pay-credit-box {
  background: rgba(0, 0, 0, 0.25);
  border-radius: var(--radius-md);
  padding: 14px;
  text-align: center;
}

.pay-credit-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.pay-credit-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--green);
}

.pay-instruct-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.pay-instruct-head svg {
  width: 20px;
  height: 20px;
  color: var(--blue);
  flex-shrink: 0;
}

.pay-instruct-head h2 {
  font-size: 0.95rem;
  font-weight: 700;
}

.pay-instruct-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.pay-qr-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.pay-qr-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(124, 58, 237, 0.2);
  display: grid;
  place-items: center;
  color: var(--purple-bright);
}

.pay-qr-icon svg {
  width: 22px;
  height: 22px;
}

.pay-qr-head h2 {
  font-size: 1rem;
  font-weight: 700;
}

.pay-qr-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
}

.pay-qr-canvas,
.pay-qr-img {
  width: 200px;
  height: 200px;
  border-radius: var(--radius-md);
  border: 4px solid #fff;
  background: #fff;
}

.pay-qr-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.pay-address-block {
  text-align: left;
  margin-bottom: 16px;
}

.pay-address-block label {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  text-transform: capitalize;
}

.pay-address-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 14px;
}

.pay-address-row code {
  flex: 1;
  font-size: 0.78rem;
  word-break: break-all;
  line-height: 1.45;
  color: var(--text-primary);
  font-family: ui-monospace, monospace;
}

.copy-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--bg-card-hover);
  border: 1px solid var(--border-subtle);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--text-secondary);
  transition: color var(--transition), background var(--transition);
}

.copy-btn svg {
  width: 16px;
  height: 16px;
}

.copy-btn:hover {
  color: var(--purple-bright);
  background: rgba(124, 58, 237, 0.15);
}

.pay-send-summary {
  background: var(--bg-elevated);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pay-send-label {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.pay-send-crypto {
  font-size: 1.15rem;
  font-weight: 700;
}

.pay-send-usdt {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.pay-confirm-note {
  margin-top: 12px;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.5;
}

.payment-view .btn--continue {
  margin-top: 8px;
}

[data-theme="light"] .pay-card--purple {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.12), rgba(99, 102, 241, 0.08));
}

[data-theme="light"] .pay-card--green {
  background: rgba(34, 197, 94, 0.08);
}

[data-theme="light"] .pay-card--blue {
  background: rgba(59, 130, 246, 0.06);
}

[data-theme="light"] .pay-summary-box,
[data-theme="light"] .pay-credit-box {
  background: rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .pay-card__label,
[data-theme="light"] .pay-card__sub {
  color: var(--text-primary);
}

[data-theme="light"] .pay-card__sub {
  opacity: 0.7;
}

/* ── Send view ── */
.send-view[hidden] {
  display: none !important;
}

.send-hero {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.2), rgba(99, 102, 241, 0.1));
  border: 1px solid rgba(124, 58, 237, 0.25);
  border-radius: var(--radius-xl);
}

.send-hero__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--purple-bright), var(--purple));
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: 0 4px 20px var(--purple-glow);
  flex-shrink: 0;
}

.send-hero__icon svg {
  width: 22px;
  height: 22px;
}

.send-hero__text {
  flex: 1;
  min-width: 0;
}

.send-hero__label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.send-hero__balance {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.network-pill {
  padding: 5px 10px;
  border-radius: var(--radius-full);
  background: rgba(124, 58, 237, 0.2);
  color: var(--purple-bright);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.send-card {
  gap: 14px;
}

.send-recipient-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.text-btn {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--purple-bright);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}

.text-btn:hover {
  background: rgba(124, 58, 237, 0.12);
}

.address-input-wrap {
  margin-top: 4px;
}

.address-input-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 4px 14px 4px 4px;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.address-input-row:focus-within {
  border-color: var(--purple-bright);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

.address-input-row.is-valid {
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green-dim);
}

.address-input-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: rgba(124, 58, 237, 0.15);
  display: grid;
  place-items: center;
  color: var(--purple-bright);
  flex-shrink: 0;
}

.address-input-icon svg {
  width: 18px;
  height: 18px;
}

.address-input {
  flex: 1;
  min-width: 0;
  background: none;
  border: none;
  outline: none;
  font: inherit;
  font-size: 0.88rem;
  color: var(--text-primary);
  padding: 12px 0;
  font-family: ui-monospace, monospace;
}

.address-input::placeholder {
  color: var(--text-muted);
  font-family: var(--font);
}

.address-valid {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  background: var(--green-dim);
  color: var(--green);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.address-valid svg {
  width: 14px;
  height: 14px;
}

.send-warning {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  background: rgba(249, 115, 22, 0.08);
  border: 1px solid rgba(249, 115, 22, 0.2);
  border-radius: var(--radius-md);
}

.send-warning svg {
  width: 18px;
  height: 18px;
  color: var(--orange);
  flex-shrink: 0;
  margin-top: 1px;
}

.send-warning p {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.send-preview {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.send-preview__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.85rem;
}

.send-preview__row span:first-child {
  color: var(--text-muted);
}

.send-preview__row strong {
  font-weight: 600;
  text-align: right;
}

.send-preview__addr {
  font-family: ui-monospace, monospace;
  font-size: 0.75rem;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.send-preview__row--muted {
  font-size: 0.78rem;
  color: var(--text-muted);
  padding-top: 8px;
  border-top: 1px solid var(--border-subtle);
}

.send-quick-grid .quick-btn.is-active {
  background: rgba(124, 58, 237, 0.15);
  border-color: var(--purple-bright);
  color: var(--purple-bright);
}

.btn--send {
  width: 100%;
  padding: 16px 24px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--purple-bright), var(--purple));
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  box-shadow: 0 4px 24px var(--purple-glow);
  gap: 10px;
}

.btn--send:not(:disabled):hover {
  box-shadow: 0 6px 32px var(--purple-glow);
}

.btn--send:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

[data-theme="light"] .send-hero {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.08), rgba(99, 102, 241, 0.05));
}

[data-theme="light"] .address-input-row {
  background: #f3f4f6;
}

[data-theme="light"] .send-preview {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

/* ── Receive modal ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-overlay.is-visible {
  opacity: 1;
}

.receive-modal {
  position: fixed;
  z-index: 85;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%) translateY(110%);
  width: 100%;
  max-width: 440px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-bottom: none;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  overflow: hidden;
  box-shadow: 0 -12px 48px rgba(0, 0, 0, 0.45);
  transition: transform 0.38s cubic-bezier(0.32, 0.72, 0, 1);
}

.receive-modal.is-open {
  transform: translateX(-50%) translateY(0);
}

.receive-modal[hidden] {
  display: none !important;
}

.receive-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 20px 18px;
  background: linear-gradient(135deg, #16a34a 0%, #22c55e 50%, #10b981 100%);
  color: #fff;
}

.receive-modal__title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.receive-modal__title-wrap h2 {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.receive-modal__network {
  font-size: 0.72rem;
  opacity: 0.85;
  font-weight: 500;
}

.receive-modal__back {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.2);
  display: grid;
  place-items: center;
  color: #fff;
  flex-shrink: 0;
  transition: background var(--transition), transform var(--transition);
}

.receive-modal__back.hidden { display: none; }

.receive-modal__back svg { width: 18px; height: 18px; }

.receive-modal__back:hover { background: rgba(255, 255, 255, 0.3); }

.receive-step__lead {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.receive-coin-list,
.receive-chain-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.receive-coin-option,
.receive-chain-option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  text-align: left;
  transition: border-color var(--transition), transform var(--transition), background var(--transition);
}

.receive-coin-option:hover,
.receive-chain-option:hover {
  border-color: rgba(34, 197, 94, 0.35);
  transform: translateY(-1px);
}

.receive-coin-option__icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green-dim);
  flex-shrink: 0;
}

.receive-coin-option__text,
.receive-chain-option__text {
  flex: 1;
  min-width: 0;
}

.receive-coin-option__text strong,
.receive-chain-option__text strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
}

.receive-coin-option__text small,
.receive-chain-option__text small {
  display: block;
  margin-top: 2px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.receive-coin-option svg,
.receive-chain-option svg {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.chain-picker {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}

.chain-picker__title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.chain-picker__options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.chain-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  text-align: left;
  transition: border-color var(--transition), background var(--transition);
}

.chain-option.is-selected {
  border-color: var(--green);
  background: var(--green-dim);
}

.chain-option__name {
  font-size: 0.88rem;
  font-weight: 600;
}

.chain-option__radio {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--border-medium);
  flex-shrink: 0;
}

.chain-option.is-selected .chain-option__radio {
  border-color: var(--green);
  box-shadow: inset 0 0 0 4px var(--green);
}

.receive-modal__close {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.2);
  display: grid;
  place-items: center;
  color: #fff;
  transition: background var(--transition), transform var(--transition);
  flex-shrink: 0;
}

.receive-modal__close svg {
  width: 18px;
  height: 18px;
}

.receive-modal__close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.receive-modal__close:active {
  transform: scale(0.94);
}

.receive-modal__body {
  padding: 24px 20px 8px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.receive-qr-block {
  text-align: center;
}

.receive-qr-frame {
  display: inline-flex;
  padding: 14px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow:
    0 0 0 4px rgba(34, 197, 94, 0.15),
    0 8px 32px rgba(0, 0, 0, 0.2);
  margin-bottom: 12px;
}

.receive-qr-canvas,
.receive-qr-img {
  width: 180px;
  height: 180px;
  display: block;
  border-radius: 8px;
}

.receive-qr-hint {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.receive-address-block label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.receive-address-row {
  display: flex;
  align-items: stretch;
  gap: 0;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.receive-address-text {
  flex: 1;
  padding: 14px 16px;
  font-size: 0.78rem;
  font-family: ui-monospace, monospace;
  word-break: break-all;
  line-height: 1.45;
  color: var(--text-primary);
}

.receive-copy-btn {
  width: 52px;
  flex-shrink: 0;
  background: linear-gradient(180deg, #22c55e, #16a34a);
  color: #fff;
  display: grid;
  place-items: center;
  transition: opacity var(--transition), transform var(--transition);
}

.receive-copy-btn svg {
  width: 18px;
  height: 18px;
}

.receive-copy-btn.is-copied {
  background: linear-gradient(180deg, #15803d, #166534);
}

.receive-copy-btn:active {
  transform: scale(0.96);
}

.receive-notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(234, 179, 8, 0.08);
  border: 1px solid rgba(234, 179, 8, 0.25);
  border-left: 3px solid #eab308;
  border-radius: var(--radius-md);
}

.receive-notice svg {
  width: 20px;
  height: 20px;
  color: #eab308;
  flex-shrink: 0;
  margin-top: 1px;
}

.receive-notice p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.receive-notice strong {
  color: #facc15;
  font-weight: 700;
}

.receive-modal__footer {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 10px;
  padding: 16px 20px calc(16px + var(--safe-bottom));
}

.receive-btn {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform var(--transition), box-shadow var(--transition), opacity var(--transition);
}

.receive-btn svg {
  width: 18px;
  height: 18px;
}

.receive-btn:active {
  transform: scale(0.98);
}

.receive-btn--ghost {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
}

.receive-btn--ghost:hover {
  background: var(--bg-card-hover);
}

.receive-btn--primary {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff;
  box-shadow: 0 4px 20px var(--green-glow);
}

.receive-btn--primary:hover {
  box-shadow: 0 6px 28px var(--green-glow);
}

body.receive-open {
  overflow: hidden;
}

@media (min-width: 768px) {
  .receive-modal {
    bottom: 50%;
    transform: translateX(-50%) translateY(50%) scale(0.92);
    opacity: 0;
    border-radius: var(--radius-xl);
    border-bottom: 1px solid var(--border-subtle);
    max-width: 400px;
    transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.3s ease;
  }

  .receive-modal.is-open {
    transform: translateX(-50%) translateY(50%) scale(1);
    opacity: 1;
  }

  .receive-modal:not(.is-open) {
    transform: translateX(-50%) translateY(50%) scale(0.92);
  }
}

[data-theme="light"] .receive-modal {
  box-shadow: 0 -12px 48px rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .receive-address-row {
  background: #f3f4f6;
}

/* ── More sheet ── */
.more-sheet {
  position: fixed;
  z-index: 120;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) translateY(100%);
  width: 100%;
  max-width: 480px;
  max-height: 85dvh;
  background: #12141c;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  border: 1px solid var(--border-subtle);
  border-bottom: none;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
  overflow: hidden;
}

.more-sheet.is-open {
  transform: translateX(-50%) translateY(0);
}

.more-sheet[hidden] {
  display: none !important;
}

.more-sheet__header {
  position: relative;
  padding: 8px 20px 16px;
  flex-shrink: 0;
}

.more-sheet__header h2 {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.more-sheet__sub {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.more-sheet__header .sheet-icon-btn {
  position: absolute;
  top: 12px;
  right: 16px;
}

.more-sheet__body {
  flex: 1;
  overflow-y: auto;
  padding: 0 20px calc(24px + var(--safe-bottom));
  -webkit-overflow-scrolling: touch;
}

.more-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.more-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.more-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 12px 6px;
  border-radius: var(--radius-lg);
  transition: background var(--transition), transform var(--transition);
}

.more-tile:hover {
  background: var(--bg-card-hover);
}

.more-tile:active {
  transform: scale(0.95);
}

.more-tile__icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
}

.more-tile__icon svg {
  width: 22px;
  height: 22px;
  color: #fff;
}

.more-tile__icon--green { background: linear-gradient(135deg, #22c55e, #16a34a); }
.more-tile__icon--purple { background: linear-gradient(135deg, #7c3aed, #6366f1); }
.more-tile__icon--blue { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.more-tile__icon--teal { background: rgba(34, 197, 94, 0.15); padding: 0; }
.more-tile__icon--green-dark { background: rgba(22, 101, 52, 0.35); color: var(--green); }
.more-tile__icon--green-dark svg { color: var(--green); }
.more-tile__icon--orange { background: linear-gradient(135deg, #f97316, #ea580c); }
.more-tile__icon--blue-soft { background: rgba(59, 130, 246, 0.2); color: var(--blue); }
.more-tile__icon--blue-soft svg { color: var(--blue); }
.more-tile__icon--purple-soft { background: rgba(124, 58, 237, 0.2); color: var(--purple-bright); }
.more-tile__icon--purple-soft svg { color: var(--purple-bright); }
.more-tile__icon--gold { background: linear-gradient(135deg, #eab308, #ca8a04); }

.more-tile__label {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-align: center;
}

.more-promo {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.15), rgba(99, 102, 241, 0.08));
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: var(--radius-lg);
}

.more-promo__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: rgba(234, 179, 8, 0.15);
  color: #eab308;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.more-promo__icon svg {
  width: 20px;
  height: 20px;
}

.more-promo__title {
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.more-promo__sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.more-promo__btn {
  margin-left: auto;
  flex-shrink: 0;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  background: var(--purple-bright);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  transition: transform var(--transition), box-shadow var(--transition);
}

.more-promo__btn:hover {
  box-shadow: 0 4px 16px var(--purple-glow);
}

.more-promo__btn:active {
  transform: scale(0.96);
}

body.more-open {
  overflow: hidden;
}

[data-theme="light"] .more-sheet {
  background: #ffffff;
}

[data-theme="light"] .more-promo {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.08), rgba(99, 102, 241, 0.04));
}

@media (min-width: 768px) {
  .more-sheet {
    max-width: 440px;
    border-radius: var(--radius-xl);
    bottom: 24px;
    max-height: calc(100dvh - 48px);
  }

  .more-sheet:not(.is-open) {
    transform: translateX(-50%) translateY(calc(100% + 24px));
  }
}

/* ── Info modal ── */
.info-modal {
  position: fixed;
  z-index: 90;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.92);
  width: calc(100% - 32px);
  max-width: 400px;
  max-height: 85dvh;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}

.info-modal.is-open {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

.info-modal[hidden] {
  display: none !important;
}

.info-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 20px 12px;
  flex-shrink: 0;
}

.info-modal__header h2 {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.info-modal__body {
  flex: 1;
  overflow-y: auto;
  padding: 0 20px 16px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.info-modal__body p {
  margin-bottom: 12px;
}

.info-modal__body p:last-child {
  margin-bottom: 0;
}

.info-modal__body ul {
  margin: 8px 0 12px 18px;
}

.info-modal__body li {
  margin-bottom: 6px;
}

.info-modal__footer {
  padding: 12px 20px calc(16px + var(--safe-bottom));
  border-top: 1px solid var(--border-subtle);
}

.receive-btn--full {
  width: 100%;
}

body.info-open {
  overflow: hidden;
}

#infoOverlay {
  z-index: 88;
}

[data-theme="light"] .info-modal {
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.12);
}

/* ── Page loader ── */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 30000;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--bg-base);
  opacity: 1;
  visibility: visible;
  transition: opacity 0.55s ease, visibility 0.55s ease;
}

.page-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.page-loader.is-hiding {
  opacity: 0;
  pointer-events: none;
}

.page-loader__glow {
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--green-glow) 0%, transparent 70%);
  animation: loader-pulse 2.4s ease-in-out infinite;
}

.page-loader__content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  z-index: 1;
  padding: 28px 24px;
  overflow: visible;
}

.page-loader__logo.brand-mark {
  box-shadow: 0 8px 28px rgba(30, 90, 249, 0.22);
  animation: loader-float 2s ease-in-out infinite;
}

.page-loader__logo img,
.page-loader__logo .nn-mark {
  width: var(--brand-mark-img);
  height: var(--brand-mark-img);
  object-fit: contain;
}

.page-loader__spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--border-medium);
  border-top-color: var(--green);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}

.page-loader__text {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.page-loader__dots {
  display: flex;
  gap: 6px;
}

.page-loader__dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: loader-dot 1.2s ease-in-out infinite;
}

.page-loader__dots span:nth-child(2) { animation-delay: 0.15s; }
.page-loader__dots span:nth-child(3) { animation-delay: 0.3s; }

body.is-loading {
  overflow: hidden;
}

.app-shell--hidden {
  opacity: 0;
}

.app-shell--ready {
  animation: app-reveal 0.6s ease forwards;
}

/* ── Action progress bar ── */
.action-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9998;
  height: 3px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.action-bar.is-active {
  opacity: 1;
}

.action-bar__track {
  height: 100%;
  background: transparent;
  overflow: hidden;
}

.action-bar__fill {
  height: 100%;
  width: 35%;
  background: linear-gradient(90deg, var(--green), var(--purple-bright));
  border-radius: 0 2px 2px 0;
  animation: action-bar-slide 0.9s ease-in-out infinite;
  box-shadow: 0 0 12px var(--green-glow);
}

/* ── Button loading states ── */
.is-loading {
  pointer-events: none;
  position: relative;
}

.btn.is-loading,
.action-btn.is-loading,
.more-tile.is-loading,
.nav-item.is-loading,
.menu-item.is-loading,
.quick-btn.is-loading,
.payment-option.is-loading,
.service-btn.is-loading,
.text-btn.is-loading,
.visibility-btn.is-loading,
.lang-select.is-loading,
.receive-btn.is-loading,
.sheet-icon-btn.is-loading,
.more-promo__btn.is-loading,
.section-link.is-loading,
.help-card.is-loading {
  pointer-events: none;
  position: relative;
}

.btn.is-loading {
  color: transparent !important;
}

.btn.is-loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.65s linear infinite;
}

.action-btn.is-loading .action-icon {
  position: relative;
}

.action-btn.is-loading .action-icon svg {
  opacity: 0;
}

.action-btn.is-loading .action-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 22px;
  height: 22px;
  margin: -11px 0 0 -11px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-top-color: var(--green);
  border-radius: 50%;
  animation: spin 0.65s linear infinite;
}

.action-btn--primary.is-loading .action-icon::after {
  border-color: rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
}

.action-btn.is-loading .action-label {
  opacity: 0.5;
}

.more-tile.is-loading {
  opacity: 0.7;
}

.more-tile.is-loading::after {
  content: '';
  position: absolute;
  top: 14px;
  right: 14px;
  width: 16px;
  height: 16px;
  border: 2px solid var(--border-medium);
  border-top-color: var(--purple-bright);
  border-radius: 50%;
  animation: spin 0.65s linear infinite;
}

.nav-item.is-loading .nav-icon-wrap,
.nav-item.is-loading > svg {
  opacity: 0.35;
}

.nav-item.is-loading::after {
  content: '';
  position: absolute;
  bottom: 22px;
  left: 50%;
  width: 14px;
  height: 14px;
  margin-left: -7px;
  border: 2px solid var(--border-medium);
  border-top-color: var(--green);
  border-radius: 50%;
  animation: spin 0.65s linear infinite;
}

.icon-btn.is-loading,
.copy-btn.is-loading,
.receive-copy-btn.is-loading {
  pointer-events: none;
  position: relative;
  color: transparent;
}

.icon-btn.is-loading svg,
.copy-btn.is-loading svg,
.receive-copy-btn.is-loading svg {
  opacity: 0;
}

.icon-btn.is-loading::after,
.copy-btn.is-loading::after,
.receive-copy-btn.is-loading::after,
.quick-btn.is-loading::after,
.payment-option.is-loading::after,
.service-btn.is-loading::after,
.text-btn.is-loading::after,
.visibility-btn.is-loading::after,
.lang-select.is-loading::after,
.receive-btn.is-loading::after,
.sheet-icon-btn.is-loading::after,
.more-promo__btn.is-loading::after,
.section-link.is-loading::after,
.help-card.is-loading::after,
.menu-item.is-loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border: 2px solid var(--border-medium);
  border-top-color: var(--green);
  border-radius: 50%;
  animation: spin 0.65s linear infinite;
}

.menu-item.is-loading .menu-item__text,
.section-link.is-loading,
.help-card.is-loading {
  opacity: 0.45;
}

.quick-btn.is-loading {
  color: transparent;
}

.payment-option.is-loading .payment-option__label,
.payment-option.is-loading .payment-option__icon {
  opacity: 0.35;
}

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

@keyframes loader-pulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.15); opacity: 0.85; }
}

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

@keyframes loader-dot {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40% { transform: scale(1); opacity: 1; }
}

@keyframes app-reveal {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes action-bar-slide {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(320%); }
}

/* ── Auth screen ── */
.auth-view {
  --auth-bg: #080a10;
  --auth-surface: rgba(255, 255, 255, 0.04);
  --auth-border: rgba(255, 255, 255, 0.08);
  --auth-text: #f8fafc;
  --auth-muted: rgba(255, 255, 255, 0.55);
  --auth-gradient: linear-gradient(135deg, #15803d 0%, #22c55e 50%, #16a34a 100%);
  --auth-gradient-showcase: linear-gradient(145deg, #0a1810 0%, #14532d 35%, #166534 70%, #15803d 100%);
  --auth-highlight: #86efac;
  --auth-accent: #42b8ff;
  --auth-focus-border: rgba(66, 184, 255, 0.7);
  --auth-focus-ring: rgba(66, 184, 255, 0.2);
  --auth-focus-fill: rgba(66, 184, 255, 0.16);
  --auth-input-bg: #10141c;
  --auth-input-bg-focus: #141a24;
  color-scheme: dark;

  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--auth-bg);
  color: var(--auth-text);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.auth-view__scroll {
  position: relative;
  z-index: 1;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.auth-view__scroll::-webkit-scrollbar {
  display: none;
}

.auth-view:not(.hidden) {
  opacity: 1;
  visibility: visible;
}

.auth-view--open .auth-panel__body > *:not(.auth-mobile-art) {
  animation: auth-fade-up 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.auth-view--open .auth-hero { animation-delay: 0.04s; }
.auth-view--open .auth-mobile-art { animation: auth-art-fade 0.55s 0.08s cubic-bezier(0.22, 1, 0.36, 1) both; }
.auth-view--open .auth-social { animation-delay: 0.12s; }
.auth-view--open .auth-divider { animation-delay: 0.14s; }
.auth-view--open .auth-forms { animation-delay: 0.18s; }
.auth-view--open .auth-switch { animation-delay: 0.22s; }
.auth-view--open .auth-showcase__card { animation: auth-scale-in 0.7s 0.15s cubic-bezier(0.22, 1, 0.36, 1) both; }
.auth-view--open .auth-showcase__phone { animation: auth-phone-tilt 7s ease-in-out infinite; }
.auth-view--open .auth-showcase__widget { animation: auth-widget-pop 0.8s 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) both, auth-widget-wiggle 4s 1.4s ease-in-out infinite; }
.auth-view--open .auth-showcase__chip { animation: auth-chip-float 5s ease-in-out infinite; }
.auth-view--open .auth-showcase__chip--2 { animation-delay: -2.5s; }
.auth-view--open .auth-social-btn { animation: auth-social-pop 0.45s cubic-bezier(0.22, 1, 0.36, 1) both; }
.auth-view--open .auth-social-btn:nth-child(1) { animation-delay: 0.14s; }
.auth-view--open .auth-social-btn:nth-child(2) { animation-delay: 0.2s; }

/* After the full-page loader, skip one-shot entrance fades so the form
   does not appear to load a second time. Keep looping motion. */
.auth-view--ready.auth-view--open .auth-panel__body > *:not(.auth-mobile-art),
.auth-view--ready.auth-view--open .auth-mobile-art,
.auth-view--ready.auth-view--open .auth-showcase__card,
.auth-view--ready.auth-view--open .auth-social-btn {
  animation: none;
}

.auth-view--ready.auth-view--open .auth-showcase__widget {
  animation: auth-widget-wiggle 4s ease-in-out infinite;
}

.auth-logo__mark {
  position: relative;
  display: none;
}

.auth-view--open .auth-logo__mark::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: calc(var(--brand-mark-radius) + 4px);
  border: 1px solid rgba(66, 184, 255, 0.45);
  animation: auth-logo-ring 2.8s ease-out infinite;
}

.auth-view__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.auth-view__grid {
  position: absolute;
  inset: -50%;
  background-image:
    radial-gradient(circle at center, rgba(134, 239, 172, 0.14) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.35;
  animation: auth-grid-drift 40s linear infinite;
  mask-image: radial-gradient(ellipse 70% 60% at 30% 40%, #000 20%, transparent 75%);
}

.auth-view__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
}

.auth-view__orb--1 {
  width: 420px;
  height: 420px;
  top: -120px;
  left: -80px;
  background: rgba(34, 197, 94, 0.22);
  animation: auth-orb-drift 14s ease-in-out infinite;
}

.auth-view__orb--2 {
  width: 320px;
  height: 320px;
  bottom: -80px;
  left: 30%;
  background: rgba(22, 163, 74, 0.18);
  animation: auth-orb-drift 18s ease-in-out infinite reverse;
}

.auth-view__orb--3 {
  width: 260px;
  height: 260px;
  top: 40%;
  right: 10%;
  background: rgba(134, 239, 172, 0.12);
  animation: auth-orb-drift 12s ease-in-out infinite;
  animation-delay: -4s;
}

.auth-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(320px, 480px) 1fr;
  min-height: 100dvh;
}

.auth-panel {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  padding: 24px clamp(20px, 4vw, 48px);
  overflow: visible;
}

.auth-panel__top {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  margin-bottom: clamp(24px, 5vh, 48px);
  padding-right: 56px;
}

.auth-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--auth-border);
  color: var(--auth-text);
  transition: background var(--transition), transform var(--transition);
}

.auth-logo:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.auth-logo__mark img,
.auth-logo__mark .nn-mark {
  border-radius: 10px;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
}

.auth-logo__mark .nn-mark__svg {
  width: 72%;
  height: 72%;
  display: block;
  margin: 0;
}

.auth-logo__name {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.auth-settings-btn {
  position: absolute;
  top: max(16px, var(--safe-top));
  right: max(16px, env(safe-area-inset-right, 0px));
  z-index: 4;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-md);
  background: rgba(8, 10, 16, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #f8fafc;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  transition: background var(--transition), color var(--transition), transform var(--transition), border-color var(--transition);
}

.auth-settings-btn:hover {
  background: rgba(15, 23, 42, 0.72);
  color: #f8fafc;
  transform: translateY(-1px);
}

.auth-settings-btn svg { width: 18px; height: 18px; }

.auth-panel__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  max-width: 420px;
  width: 100%;
}

.auth-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 12px;
}

.auth-hero p {
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--auth-muted);
  max-width: 38ch;
}

.auth-highlight {
  color: var(--auth-highlight);
  font-weight: 600;
}

.auth-highlight--shimmer {
  background: linear-gradient(90deg, #86efac 0%, #fef08a 35%, #86efac 70%, #4ade80 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: auth-shimmer-text 4s linear infinite;
}

.auth-mobile-art {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 22px 0 10px;
  padding: 12px 0;
  overflow: visible;
  flex-shrink: 0;
  isolation: isolate;
}

.auth-mobile-art__stage {
  position: relative;
  width: 220px;
  height: 220px;
  display: grid;
  place-items: center;
  overflow: visible;
  perspective: 600px;
}

.auth-mobile-art__ring {
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  border: 2px solid rgba(66, 184, 255, 0.42);
  background: radial-gradient(circle at 50% 50%, rgba(30, 90, 249, 0.12) 0%, transparent 68%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 0 0 6px rgba(30, 90, 249, 0.07),
    0 0 28px rgba(66, 184, 255, 0.14);
  animation: auth-ring-breathe 4s ease-in-out infinite;
  pointer-events: none;
}

.auth-mobile-art__ring--inner {
  inset: 28px;
  border-width: 1.5px;
  background: none;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    0 0 16px rgba(66, 184, 255, 0.12);
  animation-delay: -2s;
  opacity: 0.85;
}

.auth-mobile-art__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(20px);
  pointer-events: none;
}

.auth-mobile-art__orb--1 {
  width: 56px;
  height: 56px;
  top: 6%;
  right: 6%;
  background: rgba(66, 184, 255, 0.38);
  animation: auth-float 4s ease-in-out infinite;
}

.auth-mobile-art__orb--2 {
  width: 44px;
  height: 44px;
  bottom: 8%;
  left: 4%;
  background: rgba(247, 147, 26, 0.32);
  animation: auth-float 5s ease-in-out infinite reverse;
}

.auth-mobile-art__phone {
  position: relative;
  z-index: 1;
  width: 88px;
  padding: 6px;
  border-radius: 16px;
  background: linear-gradient(160deg, #e2e8f0, #f8fafc);
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.65);
  animation: auth-mobile-phone-float 6s ease-in-out infinite;
  transform-origin: center center;
}

.auth-mobile-art__screen {
  border-radius: 12px;
  background: #0f1219;
  padding: 10px;
  min-height: 120px;
}

.auth-mobile-art__chart {
  width: 36px;
  height: 36px;
  margin: 0 auto 8px;
  border-radius: 50%;
  border: 4px solid rgba(66, 184, 255, 0.2);
  border-top-color: #42b8ff;
}

.auth-mobile-art__chart--spin {
  animation: auth-ring-spin 1.4s linear infinite;
}

.auth-mobile-art__bars {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
  height: 36px;
}

.auth-mobile-art__bars span {
  width: 8px;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, #42b8ff, rgba(30, 90, 249, 0.35));
  transform-origin: bottom center;
}

.auth-mobile-art__bars--live span {
  animation: auth-bar-dance 1.8s ease-in-out infinite;
}

.auth-mobile-art__bars--live span:nth-child(1) { height: 40%; animation-delay: 0s; }
.auth-mobile-art__bars--live span:nth-child(2) { height: 75%; animation-delay: 0.15s; }
.auth-mobile-art__bars--live span:nth-child(3) { height: 55%; animation-delay: 0.3s; }
.auth-mobile-art__bars--live span:nth-child(4) { height: 65%; animation-delay: 0.45s; }

.auth-mobile-art__coin {
  width: 34px;
  height: 34px;
  margin: 10px auto 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(247, 147, 26, 0.14);
  border: 1.5px solid rgba(247, 147, 26, 0.45);
  box-shadow: 0 4px 16px rgba(247, 147, 26, 0.28);
}

.auth-mobile-art__coin img {
  width: 22px;
  height: 22px;
  display: block;
  object-fit: contain;
}

.auth-mobile-art__coin--pulse {
  animation: auth-btc-pulse 2.2s ease-in-out infinite;
}

.auth-social {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 28px;
}

.auth-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--auth-border);
  color: var(--auth-text);
  font-size: 0.88rem;
  font-weight: 600;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}

.auth-social-btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.auth-social-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
  transform: translateY(-1px);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 20px 0;
  color: var(--auth-muted);
  font-size: 0.82rem;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: currentColor;
  opacity: 0.45;
}

.auth-social-note {
  grid-column: 1 / -1;
  margin: 0;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  background: #141820;
  border: 1px solid var(--auth-border);
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--auth-text);
  text-align: center;
  display: none;
}

.auth-social-note.is-visible {
  display: block;
}

.auth-forms {
  position: relative;
  z-index: 5;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: visible;
}

.auth-form--switch {
  animation: auth-fade-up 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.auth-field > span {
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.72);
}

.auth-field input {
  padding: 13px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--auth-border);
  background: var(--auth-input-bg);
  color: var(--auth-text);
  font: inherit;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-height: 48px;
  color-scheme: dark;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.auth-field input::placeholder { color: rgba(255, 255, 255, 0.28); }

.auth-field input:focus {
  outline: none;
  border-color: var(--auth-focus-border);
  background: var(--auth-input-bg-focus);
  box-shadow: 0 0 0 3px var(--auth-focus-ring);
}

.auth-field input:-webkit-autofill,
.auth-field input:-webkit-autofill:hover,
.auth-field input:-webkit-autofill:focus,
.auth-field input:-webkit-autofill:active,
.auth-field input:autofill {
  -webkit-text-fill-color: var(--auth-text);
  caret-color: var(--auth-text);
  border-color: var(--auth-border);
  background-color: var(--auth-input-bg) !important;
  background-image: none !important;
  box-shadow: inset 0 0 0 1000px var(--auth-input-bg);
  transition: background-color 99999s ease-out;
}

.auth-field input:-webkit-autofill:focus,
.auth-field input:autofill:focus {
  border-color: var(--auth-focus-border);
  box-shadow:
    inset 0 0 0 1000px var(--auth-input-bg-focus),
    0 0 0 3px var(--auth-focus-ring);
}

.auth-password {
  position: relative;
  display: block;
}

.auth-password input {
  padding-right: 48px;
}

.auth-password-toggle {
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: rgba(255, 255, 255, 0.48);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.auth-password-toggle:hover,
.auth-password-toggle:focus-visible {
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.06);
}

.auth-password-toggle:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--auth-focus-ring);
}

.auth-password-toggle svg {
  width: 18px;
  height: 18px;
  display: none;
}

.auth-password-toggle .auth-password-toggle__eye {
  display: block;
}

.auth-password.is-visible .auth-password-toggle .auth-password-toggle__eye {
  display: none;
}

.auth-password.is-visible .auth-password-toggle .auth-password-toggle__eye-off {
  display: block;
}

.auth-field-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
}

.auth-field {
  position: relative;
}

.auth-picker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-height: 48px;
  padding: 13px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--auth-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--auth-text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.auth-picker.is-placeholder {
  color: rgba(255, 255, 255, 0.28);
}

.auth-picker svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.45);
}

.auth-picker:focus,
.auth-picker.is-open {
  outline: none;
  border-color: var(--auth-focus-border);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 3px var(--auth-focus-ring);
}

.auth-field:has(.auth-picker.is-open) {
  z-index: 8;
}

.auth-menu,
.auth-calendar {
  position: absolute;
  z-index: 20;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  width: auto;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #0c1018;
  isolation: isolate;
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.04);
}

.auth-menu {
  padding: 6px;
  display: grid;
  gap: 2px;
}

.auth-menu__item {
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--auth-text);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.auth-menu__item:hover,
.auth-menu__item:focus {
  outline: none;
  background: var(--auth-focus-fill);
  color: var(--auth-accent);
}

.auth-menu__item.is-selected {
  background: var(--auth-focus-fill);
  color: var(--auth-accent);
}

.auth-calendar {
  padding: 12px;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.auth-cal__head {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 32px;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}

.auth-cal__pickers {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 4px;
  min-width: 0;
}

.auth-cal__select-wrap {
  min-width: 0;
}

.auth-cal__select {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  appearance: none;
  border: 1px solid var(--auth-border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 6px center;
  color: var(--auth-text);
  font: inherit;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 8px 22px 8px 8px;
  cursor: pointer;
  text-align: left;
}

.auth-cal__select.is-open {
  border-color: var(--auth-focus-border);
  background-color: var(--auth-focus-fill);
}

.auth-cal__list {
  display: grid;
  gap: 2px;
  max-height: 220px;
  overflow-y: auto;
  padding: 4px;
  margin: 0 0 8px;
  border-radius: 12px;
  border: 1px solid var(--auth-border);
  background: #10141c;
  color: var(--auth-text);
}

.auth-cal__choice {
  width: 100%;
  text-align: left;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--auth-text);
  font: inherit;
  font-weight: 600;
  padding: 10px 12px;
  cursor: pointer;
}

.auth-cal__choice:hover,
.auth-cal__choice:focus {
  outline: none;
  background: var(--auth-focus-fill);
  color: var(--auth-accent);
}

.auth-cal__choice.is-selected {
  background: var(--auth-focus-fill);
  color: var(--auth-accent);
}

.auth-cal__nav {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 1px solid var(--auth-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--auth-text);
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
}

.auth-cal__nav:hover,
.auth-cal__nav:focus {
  outline: none;
  border-color: var(--auth-focus-border);
  background: var(--auth-focus-fill);
}

.auth-cal__nav svg {
  width: 16px;
  height: 16px;
}

.auth-cal__week,
.auth-cal__grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 2px;
}

.auth-cal__years {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.auth-cal__dow {
  text-align: center;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--auth-muted);
  padding: 6px 0 8px;
}

.auth-cal__day,
.auth-cal__year {
  border: 0;
  background: transparent;
  color: var(--auth-text);
  font: inherit;
  font-weight: 600;
  min-height: 32px;
  border-radius: 10px;
  cursor: pointer;
}

.auth-cal__day.is-muted {
  color: rgba(255, 255, 255, 0.42);
}

.auth-cal__day.is-today {
  box-shadow: inset 0 0 0 1px var(--auth-focus-border);
}

.auth-cal__day.is-selected,
.auth-cal__year.is-selected {
  background: var(--auth-gradient);
  color: #fff;
  box-shadow: none;
}

.auth-cal__day:hover:not(:disabled):not(.is-selected),
.auth-cal__year:hover:not(.is-selected) {
  background: var(--auth-focus-fill);
}

.auth-cal__day:disabled {
  opacity: 0.28;
  cursor: not-allowed;
}

.auth-cal__foot {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
}

.auth-cal__link {
  border: 0;
  background: none;
  color: var(--auth-accent);
  font: inherit;
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  padding: 6px 4px;
}

.auth-cal__link:hover,
.auth-cal__link:focus {
  outline: none;
  color: #7dd3fc;
}

.auth-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: var(--radius-full);
  font-size: 0.92rem;
  font-weight: 700;
  transition: transform var(--transition), box-shadow var(--transition);
}

.auth-btn--full { width: 100%; }

.auth-btn--primary {
  background: var(--auth-gradient);
  color: #fff;
  box-shadow: 0 10px 32px rgba(30, 90, 249, 0.35);
  animation: auth-glow-pulse 3s ease-in-out infinite;
}

.auth-btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 36px rgba(30, 90, 249, 0.45);
}

.auth-btn--primary:active { transform: scale(0.98); }

.auth-error {
  padding: 10px 12px;
  border-radius: var(--radius-md);
  background: rgba(239, 68, 68, 0.12);
  color: #fca5a5;
  font-size: 0.82rem;
}

[data-theme="light"] .auth-error {
  background: rgba(185, 28, 28, 0.1);
  color: #b91c1c;
}

.auth-success {
  padding: 10px 12px;
  border-radius: var(--radius-md);
  background: rgba(34, 197, 94, 0.12);
  color: var(--auth-highlight);
  font-size: 0.82rem;
}

.auth-dev-notice {
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: rgba(250, 204, 21, 0.1);
  border: 1px solid rgba(250, 204, 21, 0.25);
  color: #fde68a;
  font-size: 0.8rem;
  line-height: 1.5;
}

.auth-dev-notice code {
  font-size: 0.78rem;
  color: #fef3c7;
}

.auth-link-btn {
  background: none;
  border: none;
  color: var(--auth-highlight);
  font-size: 0.82rem;
  font-weight: 600;
  text-align: center;
  padding: 8px;
  cursor: pointer;
  width: 100%;
}

.auth-link-btn--muted {
  color: var(--auth-muted);
  font-weight: 500;
}

.auth-link-btn:hover { text-decoration: underline; }

.auth-verify-intro {
  text-align: center;
  margin-bottom: 4px;
}

.auth-verify-intro p {
  font-size: 0.88rem;
  color: var(--auth-muted);
  line-height: 1.5;
}

.auth-verify-intro strong {
  color: var(--auth-text);
  word-break: break-all;
}

.auth-switch {
  margin-top: auto;
  padding-top: 24px;
  text-align: center;
  font-size: 0.88rem;
  color: var(--auth-muted);
}

.auth-switch__link {
  background: none;
  border: none;
  color: var(--auth-highlight);
  font-weight: 700;
  padding: 0 0 0 4px;
  cursor: pointer;
  transition: color var(--transition);
}

.auth-switch__link:hover { text-decoration: underline; }

.auth-panel__footer {
  margin-top: 32px;
  padding-top: 16px;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.35);
}

.auth-showcase {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 72px 24px 0;
  height: 100dvh;
  min-height: 100dvh;
  position: sticky;
  top: 0;
  align-self: start;
  pointer-events: none;
}

.auth-showcase__card {
  position: relative;
  width: min(100%, 720px);
  height: min(100%, calc(100dvh - 48px));
  border-radius: 28px;
  overflow: hidden;
  background: var(--auth-gradient-showcase);
  border: 1px solid rgba(134, 239, 172, 0.12);
  box-shadow:
    0 32px 80px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.auth-showcase__mesh {
  position: absolute;
  inset: -40%;
  background:
    conic-gradient(from 180deg at 50% 50%, rgba(134, 239, 172, 0.08), transparent 25%, rgba(34, 197, 94, 0.12), transparent 50%, rgba(74, 222, 128, 0.06), transparent 75%, rgba(134, 239, 172, 0.08));
  animation: auth-mesh-rotate 24s linear infinite;
  pointer-events: none;
}

.auth-showcase__scan {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

.auth-showcase__scan::after {
  content: '';
  position: absolute;
  left: -20%;
  right: -20%;
  height: 2px;
  top: -4%;
  background: linear-gradient(90deg, transparent, rgba(134, 239, 172, 0.5), transparent);
  box-shadow: 0 0 24px rgba(134, 239, 172, 0.35);
  animation: auth-scan-sweep 5s ease-in-out infinite;
}

.auth-showcase__glow {
  position: absolute;
  width: 320px;
  height: 320px;
  top: -80px;
  right: -60px;
  border-radius: 50%;
  background: rgba(134, 239, 172, 0.18);
  filter: blur(60px);
  animation: auth-orb-drift 10s ease-in-out infinite;
}

.auth-showcase__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: clamp(28px, 4vw, 44px);
}

.auth-showcase__content h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  max-width: 14ch;
  margin-bottom: 10px;
  color: #f8fafc;
}

.auth-showcase__content > p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
  max-width: 34ch;
}

.auth-showcase .auth-highlight {
  color: #7dd3fc;
}

.auth-showcase .auth-highlight--shimmer {
  background: linear-gradient(90deg, #7dd3fc 0%, #fef08a 40%, #86efac 70%, #7dd3fc 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.auth-showcase__art {
  position: relative;
  flex: 1;
  display: grid;
  place-items: center;
  min-height: 280px;
  margin: 24px 0;
  perspective: 900px;
}

.auth-showcase__stream {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.auth-showcase__particle {
  position: absolute;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
  opacity: 0;
  z-index: 3;
}

.auth-showcase__particle img {
  display: block;
  border-radius: 50%;
}

.auth-showcase__particle--1 {
  width: 52px;
  height: 52px;
  animation: auth-coin-to-wallet-1 5s ease-in-out infinite;
}

.auth-showcase__particle--2 {
  width: 50px;
  height: 50px;
  animation: auth-coin-to-wallet-2 5.5s ease-in-out infinite 1.2s;
}

.auth-showcase__particle--3 {
  width: 48px;
  height: 48px;
  animation: auth-coin-to-wallet-3 5.2s ease-in-out infinite 2.4s;
}

.auth-showcase__particle--4 {
  width: 46px;
  height: 46px;
  animation: auth-coin-to-wallet-4 5.8s ease-in-out infinite 3.6s;
}

.auth-showcase__chips {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;
}

.auth-showcase__chip {
  position: absolute;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  font-size: 0.68rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
  white-space: nowrap;
}

.auth-showcase__chip--1 {
  top: 8%;
  left: 4%;
}

.auth-showcase__chip--2 {
  bottom: 28%;
  left: 2%;
}

.auth-showcase__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
}

.auth-showcase__orb--1 {
  width: 180px;
  height: 180px;
  top: 10%;
  right: 8%;
  background: rgba(134, 239, 172, 0.25);
  animation: auth-orb-drift 11s ease-in-out infinite;
}

.auth-showcase__orb--2 {
  width: 140px;
  height: 140px;
  bottom: 18%;
  left: 6%;
  background: rgba(34, 197, 94, 0.2);
  animation: auth-orb-drift 13s ease-in-out infinite reverse;
}

.auth-showcase__phone {
  position: relative;
  z-index: 1;
  width: min(100%, 260px);
  padding: 12px;
  border-radius: 28px;
  background: linear-gradient(160deg, #e2e8f0, #f8fafc);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
  transform-style: preserve-3d;
}

.auth-showcase__phone-screen {
  border-radius: 20px;
  background: #0f1219;
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 16px;
}

.auth-showcase__phone-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.55);
}

.auth-showcase__phone-header span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}

.auth-showcase__phone-balance {
  margin-bottom: 16px;
}

.auth-showcase__phone-balance small {
  display: block;
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.45);
}

.auth-showcase__phone-balance strong {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.auth-showcase__balance-value {
  display: inline-block;
  animation: auth-balance-flip 6s ease-in-out infinite;
}

.auth-showcase__phone-balance strong span {
  font-size: 0.82rem;
  color: var(--green);
}

.auth-showcase__phone-chart {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 4px;
  height: 72px;
  margin-bottom: 12px;
  padding: 8px 10px 0;
  border-radius: var(--radius-md);
  background: rgba(34, 197, 94, 0.06);
  border: 1px solid rgba(34, 197, 94, 0.12);
}

.auth-showcase__bar {
  flex: 1;
  max-width: 14px;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, var(--green), rgba(34, 197, 94, 0.35));
  transform-origin: bottom center;
  animation: auth-bar-rise 2.4s ease-in-out infinite;
}

.auth-showcase__bar:nth-child(1) { animation-delay: 0s; }
.auth-showcase__bar:nth-child(2) { animation-delay: 0.12s; }
.auth-showcase__bar:nth-child(3) { animation-delay: 0.24s; }
.auth-showcase__bar:nth-child(4) { animation-delay: 0.36s; }
.auth-showcase__bar:nth-child(5) { animation-delay: 0.48s; }
.auth-showcase__bar:nth-child(6) { animation-delay: 0.6s; }
.auth-showcase__bar:nth-child(7) { animation-delay: 0.72s; }

.auth-showcase__phone-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.auth-showcase__phone-rows span {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}

.auth-showcase__phone-rows span::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(34, 197, 94, 0.25), transparent);
  transform: translateX(-100%);
  animation: auth-row-shimmer 2.8s ease-in-out infinite;
}

.auth-showcase__phone-rows span:nth-child(1)::after { animation-delay: 0s; }
.auth-showcase__phone-rows span:nth-child(2)::after { animation-delay: 0.4s; }
.auth-showcase__phone-rows span:nth-child(3)::after { animation-delay: 0.8s; }

.auth-showcase__phone-rows span:nth-child(1) { width: 88%; }
.auth-showcase__phone-rows span:nth-child(2) { width: 72%; }
.auth-showcase__phone-rows span:nth-child(3) { width: 56%; }

.auth-showcase__widget {
  position: absolute;
  right: 8%;
  bottom: 18%;
  z-index: 3;
  padding: 12px 14px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.95);
  color: #0f172a;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
  transform-origin: center bottom;
}

.auth-showcase__widget small {
  display: block;
  font-size: 0.68rem;
  color: #64748b;
}

.auth-showcase__widget strong {
  display: block;
  font-size: 1.1rem;
  font-weight: 800;
}

.auth-showcase__widget span {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--green);
}

.auth-showcase__widget-delta {
  display: inline-block;
  animation: auth-delta-bounce 2s ease-in-out infinite;
}

.auth-showcase__partners {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.auth-showcase__partners-track {
  display: flex;
  gap: 28px;
  width: max-content;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.72);
  animation: auth-partners-marquee 22s linear infinite;
}

.auth-showcase__partners-track span {
  flex-shrink: 0;
  white-space: nowrap;
}

@keyframes auth-art-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

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

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

@keyframes auth-glow-pulse {
  0%, 100% { box-shadow: 0 10px 32px rgba(30, 90, 249, 0.32); }
  50% { box-shadow: 0 14px 42px rgba(30, 90, 249, 0.52); }
}

@keyframes auth-orb-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(24px, -18px) scale(1.06); }
}

@keyframes auth-grid-drift {
  from { transform: translate(0, 0); }
  to { transform: translate(28px, 28px); }
}

@keyframes auth-logo-ring {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(1.45); opacity: 0; }
}

@keyframes auth-shimmer-text {
  to { background-position: 200% center; }
}

@keyframes auth-social-pop {
  from { opacity: 0; transform: translateY(10px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes auth-mesh-rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes auth-scan-sweep {
  0%, 100% { top: -4%; opacity: 0; }
  8% { opacity: 1; }
  45% { top: 104%; opacity: 0.85; }
  55% { opacity: 0; }
}

@keyframes auth-coin-to-wallet-1 {
  0% { top: 6%; left: 90%; opacity: 0; transform: scale(0.5); z-index: 3; }
  8% { opacity: 1; transform: scale(1.15); }
  55% { top: 46%; left: 50%; opacity: 1; transform: scale(1) translate(-50%, -50%); z-index: 3; }
  75% { top: 50%; left: 50%; opacity: 0.85; transform: scale(0.55) translate(-50%, -50%); z-index: 1; }
  100% { top: 52%; left: 50%; opacity: 0; transform: scale(0) translate(-50%, -50%); z-index: 0; }
}

@keyframes auth-coin-to-wallet-2 {
  0% { top: 10%; left: 4%; opacity: 0; transform: scale(0.5); z-index: 3; }
  8% { opacity: 1; transform: scale(1.12); }
  55% { top: 46%; left: 50%; opacity: 1; transform: scale(1) translate(-50%, -50%); z-index: 3; }
  75% { top: 50%; left: 50%; opacity: 0.85; transform: scale(0.55) translate(-50%, -50%); z-index: 1; }
  100% { top: 52%; left: 50%; opacity: 0; transform: scale(0) translate(-50%, -50%); z-index: 0; }
}

@keyframes auth-coin-to-wallet-3 {
  0% { top: 82%; left: 88%; opacity: 0; transform: scale(0.5); z-index: 3; }
  8% { opacity: 1; transform: scale(1.1); }
  55% { top: 46%; left: 50%; opacity: 1; transform: scale(1) translate(-50%, -50%); z-index: 3; }
  75% { top: 50%; left: 50%; opacity: 0.85; transform: scale(0.55) translate(-50%, -50%); z-index: 1; }
  100% { top: 52%; left: 50%; opacity: 0; transform: scale(0) translate(-50%, -50%); z-index: 0; }
}

@keyframes auth-coin-to-wallet-4 {
  0% { top: 84%; left: 6%; opacity: 0; transform: scale(0.5); z-index: 3; }
  8% { opacity: 1; transform: scale(1.1); }
  55% { top: 46%; left: 50%; opacity: 1; transform: scale(1) translate(-50%, -50%); z-index: 3; }
  75% { top: 50%; left: 50%; opacity: 0.85; transform: scale(0.55) translate(-50%, -50%); z-index: 1; }
  100% { top: 52%; left: 50%; opacity: 0; transform: scale(0) translate(-50%, -50%); z-index: 0; }
}

@keyframes auth-phone-tilt {
  0%, 100% { transform: rotateY(-8deg) rotateX(5deg) translateY(0); }
  50% { transform: rotateY(8deg) rotateX(-4deg) translateY(-10px); }
}

@keyframes auth-widget-pop {
  from { opacity: 0; transform: translateX(28px) scale(0.82) rotate(3deg); }
  to { opacity: 1; transform: translateX(0) scale(1) rotate(0deg); }
}

@keyframes auth-widget-wiggle {
  0%, 100% { transform: rotate(-1.5deg) translateY(0); }
  50% { transform: rotate(1.5deg) translateY(-4px); }
}

@keyframes auth-chip-float {
  0%, 100% { transform: translateY(0) translateX(0); }
  50% { transform: translateY(-10px) translateX(6px); }
}

@keyframes auth-bar-rise {
  0%, 100% { transform: scaleY(0.35); opacity: 0.55; }
  50% { transform: scaleY(1); opacity: 1; }
}

@keyframes auth-bar-dance {
  0%, 100% { transform: scaleY(0.5); }
  50% { transform: scaleY(1); }
}

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

@keyframes auth-ring-breathe {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.03); opacity: 0.88; }
}

@keyframes auth-btc-pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 4px 16px rgba(247, 147, 26, 0.28);
  }
  50% {
    transform: scale(1.1);
    box-shadow: 0 6px 22px rgba(247, 147, 26, 0.48);
  }
}

@keyframes auth-balance-flip {
  0%, 100% { transform: perspective(400px) rotateX(0deg); opacity: 1; }
  48% { transform: perspective(400px) rotateX(8deg); opacity: 0.92; }
  52% { transform: perspective(400px) rotateX(-4deg); }
}

@keyframes auth-row-shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

@keyframes auth-delta-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

@keyframes auth-partners-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (max-width: 1100px) and (min-width: 768px) {
  .auth-layout {
    grid-template-columns: minmax(300px, 400px) 1fr;
  }

  .auth-showcase {
    padding-right: 64px;
  }
}

@media (max-width: 767px) {
  .auth-layout {
    grid-template-columns: 1fr;
    min-height: 100dvh;
  }

  .auth-showcase { display: none; }

  .auth-panel {
    align-items: stretch;
    min-height: 100dvh;
    padding-bottom: calc(24px + var(--safe-bottom));
  }

  .auth-panel__body {
    max-width: none;
    margin: 0 auto;
  }

  .auth-settings-btn {
    top: max(18px, var(--safe-top));
    right: max(18px, env(safe-area-inset-right, 0px));
  }
}

@media (max-width: 560px) {
  .auth-field-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .auth-panel { padding-inline: 18px; }

  .auth-field input,
  .auth-picker {
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-view--open .auth-panel__body > *,
  .auth-view--open .auth-showcase__card,
  .auth-view--open .auth-showcase__phone,
  .auth-view--open .auth-showcase__widget,
  .auth-view--open .auth-showcase__chip,
  .auth-view--open .auth-social-btn,
  .auth-view--open .auth-logo__mark::after,
  .auth-form--switch,
  .auth-btn--primary,
  .auth-view--open .auth-mobile-art,
  .auth-mobile-art__phone,
  .auth-mobile-art__chart--spin,
  .auth-mobile-art__bars--live span,
  .auth-mobile-art__coin--pulse,
  .auth-mobile-art__ring,
  .auth-view__orb,
  .auth-view__grid,
  .auth-showcase__glow,
  .auth-showcase__mesh,
  .auth-showcase__scan::after,
  .auth-showcase__particle,
  .auth-showcase__orb,
  .auth-showcase__bar,
  .auth-showcase__phone-rows span::after,
  .auth-showcase__balance-value,
  .auth-showcase__widget-delta,
  .auth-showcase__partners-track,
  .auth-highlight--shimmer {
    animation: none !important;
  }

  .auth-highlight--shimmer {
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    color: var(--auth-highlight);
  }

  .auth-showcase .auth-highlight--shimmer {
    color: #7dd3fc;
  }

  .auth-showcase__particle {
    opacity: 0;
  }
}

[data-theme="light"] .auth-view {
  --auth-bg: #f8fafc;
  --auth-surface: rgba(15, 23, 42, 0.04);
  --auth-border: rgba(15, 23, 42, 0.1);
  --auth-text: #0f172a;
  --auth-muted: #64748b;
  --auth-highlight: #1e5af9;
  --auth-accent: #1e5af9;
  --auth-focus-border: rgba(30, 90, 249, 0.65);
  --auth-focus-ring: rgba(30, 90, 249, 0.16);
  --auth-focus-fill: rgba(30, 90, 249, 0.1);
  --auth-input-bg: #ffffff;
  --auth-input-bg-focus: #ffffff;
  color-scheme: light;
}

[data-theme="light"] .auth-link-btn,
[data-theme="light"] .auth-switch__link {
  color: #1e5af9;
}

[data-theme="light"] .auth-link-btn--muted {
  color: var(--auth-muted);
}

[data-theme="light"] .auth-logo,
[data-theme="light"] .auth-social-btn {
  background: #fff;
  border-color: rgba(15, 23, 42, 0.1);
  color: #0f172a;
}

[data-theme="light"] .auth-settings-btn {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(15, 23, 42, 0.12);
  color: #0f172a;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}

[data-theme="light"] .auth-settings-btn:hover {
  background: #fff;
  color: #0f172a;
}

[data-theme="light"] .auth-showcase__content h2,
[data-theme="light"] .auth-showcase .auth-highlight {
  color: #f8fafc;
}

[data-theme="light"] .auth-showcase .auth-highlight--shimmer {
  background: linear-gradient(90deg, #7dd3fc 0%, #fef08a 40%, #86efac 70%, #7dd3fc 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

[data-theme="light"] .auth-field input {
  background: var(--auth-input-bg);
  border-color: rgba(15, 23, 42, 0.12);
  color: #0f172a;
  color-scheme: light;
}

[data-theme="light"] .auth-field input:-webkit-autofill,
[data-theme="light"] .auth-field input:-webkit-autofill:hover,
[data-theme="light"] .auth-field input:-webkit-autofill:focus,
[data-theme="light"] .auth-field input:-webkit-autofill:active,
[data-theme="light"] .auth-field input:autofill {
  -webkit-text-fill-color: #0f172a;
  caret-color: #0f172a;
  background-color: #fff !important;
  box-shadow: inset 0 0 0 1000px #fff;
}

[data-theme="light"] .auth-picker {
  background: #fff;
  border-color: rgba(15, 23, 42, 0.12);
  color: #0f172a;
}

[data-theme="light"] .auth-picker.is-placeholder {
  color: #94a3b8;
}

[data-theme="light"] .auth-picker svg {
  color: #64748b;
}

[data-theme="light"] .auth-picker:focus,
[data-theme="light"] .auth-picker.is-open {
  border-color: var(--auth-focus-border);
  background: #fff;
  box-shadow: 0 0 0 3px var(--auth-focus-ring);
}

[data-theme="light"] .auth-social-note {
  background: #fff;
  border-color: rgba(15, 23, 42, 0.1);
  color: #0f172a;
}

[data-theme="light"] .auth-menu,
[data-theme="light"] .auth-calendar {
  background: #fff;
  border-color: rgba(15, 23, 42, 0.1);
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.16);
}

[data-theme="light"] .auth-menu__item {
  color: #0f172a;
}

[data-theme="light"] .auth-menu__item:hover,
[data-theme="light"] .auth-menu__item:focus,
[data-theme="light"] .auth-cal__day:hover:not(:disabled):not(.is-selected),
[data-theme="light"] .auth-cal__year:hover:not(.is-selected) {
  background: rgba(30, 90, 249, 0.08);
  color: #1e5af9;
}

[data-theme="light"] .auth-menu__item.is-selected {
  background: rgba(30, 90, 249, 0.12);
  color: #1e5af9;
}

[data-theme="light"] .auth-cal__nav,
[data-theme="light"] .auth-cal__day,
[data-theme="light"] .auth-cal__year,
[data-theme="light"] .auth-cal__select {
  color: #0f172a;
}

[data-theme="light"] .auth-cal__select {
  background-color: #f8fafc;
  border-color: rgba(15, 23, 42, 0.1);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
}

[data-theme="light"] .auth-cal__list {
  background: #f8fafc;
  border-color: rgba(15, 23, 42, 0.1);
}

[data-theme="light"] .auth-cal__choice {
  color: #0f172a;
}

[data-theme="light"] .auth-cal__choice:hover,
[data-theme="light"] .auth-cal__choice:focus,
[data-theme="light"] .auth-cal__choice.is-selected {
  background: rgba(30, 90, 249, 0.1);
  color: #1e5af9;
}

[data-theme="light"] .auth-cal__nav {
  background: #f8fafc;
  border-color: rgba(15, 23, 42, 0.1);
}

[data-theme="light"] .auth-cal__day.is-muted {
  color: #94a3b8;
}

[data-theme="light"] .auth-cal__link {
  color: #1e5af9;
}

[data-theme="light"] .auth-field > span {
  color: #475569;
}

[data-theme="light"] .auth-field input:focus {
  border-color: var(--auth-focus-border);
  background: var(--auth-input-bg-focus);
  box-shadow: 0 0 0 3px var(--auth-focus-ring);
}

[data-theme="light"] .auth-field input::placeholder { color: #94a3b8; }

[data-theme="light"] .auth-password-toggle {
  color: #64748b;
}

[data-theme="light"] .auth-password-toggle:hover,
[data-theme="light"] .auth-password-toggle:focus-visible {
  color: #0f172a;
  background: rgba(15, 23, 42, 0.06);
}

[data-theme="light"] .auth-mobile-art__ring {
  border-color: rgba(30, 90, 249, 0.55);
  background: radial-gradient(circle at 50% 50%, rgba(30, 90, 249, 0.1) 0%, transparent 68%);
  box-shadow:
    inset 0 0 0 1px rgba(30, 90, 249, 0.14),
    0 0 0 8px rgba(30, 90, 249, 0.06),
    0 0 24px rgba(66, 184, 255, 0.18);
}

[data-theme="light"] .auth-mobile-art__orb--1 {
  background: rgba(66, 184, 255, 0.28);
}

[data-theme="light"] .auth-mobile-art__orb--2 {
  background: rgba(247, 147, 26, 0.22);
}

[data-theme="light"] .auth-mobile-art__phone {
  background: linear-gradient(160deg, #ffffff, #e8eef8);
  box-shadow:
    0 16px 36px rgba(15, 23, 42, 0.14),
    0 0 0 1px rgba(30, 90, 249, 0.12);
}

[data-theme="light"] .auth-mobile-art__screen {
  background: #0a0e1a;
}

[data-theme="light"] .auth-mobile-art__coin {
  background: rgba(247, 147, 26, 0.16);
  border-color: rgba(247, 147, 26, 0.5);
}

[data-theme="light"] .auth-panel__footer {
  color: #94a3b8;
}

#otpInput {
  letter-spacing: 0.35em;
  text-align: center;
  font-size: 1.25rem;
  font-weight: 700;
}

#appShell.hidden {
  display: none !important;
}

/* ── Notifications panel ── */
.notifications-panel {
  position: fixed;
  z-index: 200;
  width: min(360px, calc(100vw - 24px));
  max-height: 420px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.notifications-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.notifications-panel__header h2 {
  font-size: 0.95rem;
  font-weight: 700;
}

.notifications-panel__list {
  overflow-y: auto;
  max-height: 340px;
}

.notifications-panel__empty {
  padding: 32px 16px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.notif-item {
  display: flex;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-subtle);
  transition: background var(--transition);
}

.notif-item:hover {
  background: var(--bg-card-hover);
}

.notif-item--unread {
  background: rgba(34, 197, 94, 0.06);
}

.notif-item__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: transparent;
  margin-top: 6px;
  flex-shrink: 0;
}

.notif-item--unread .notif-item__dot {
  background: var(--green);
}

.notif-item__content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.notif-item__content strong {
  font-size: 0.85rem;
}

.notif-item__content span {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.notif-item__content time {
  font-size: 0.68rem;
  color: var(--text-muted);
}

.notif-badge.hidden {
  display: none;
}

/* ── Settings view ── */
.settings-view {
  padding-top: 0;
  padding-bottom: calc(var(--nav-height) + 56px + var(--safe-bottom));
}

.settings-view:not([hidden]) {
  width: 100%;
}

.sub-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: calc(8px + var(--safe-top)) 0 16px;
  margin-bottom: 8px;
}

.sub-header__title {
  flex: 1;
  font-size: 1.1rem;
  font-weight: 700;
  text-align: center;
  margin-right: 40px;
}

.sub-header__actions {
  width: 40px;
}

.settings-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.settings-section h2 {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.settings-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.settings-field span {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.settings-field input,
.settings-field select {
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-medium);
  background: var(--bg-elevated);
  color: var(--text-primary);
  font: inherit;
}

.settings-field input:-webkit-autofill,
.settings-field input:-webkit-autofill:hover,
.settings-field input:-webkit-autofill:focus,
.settings-field input:autofill {
  -webkit-text-fill-color: var(--text-primary);
  caret-color: var(--text-primary);
  box-shadow: inset 0 0 0 1000px var(--bg-elevated);
  transition: background-color 99999s ease-out;
}

.settings-field input:disabled {
  opacity: 0.6;
}

.settings-field__hint {
  margin: 2px 0 0;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.35;
}

.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.settings-row:last-child {
  border-bottom: none;
}

.settings-row strong {
  display: block;
  font-size: 0.88rem;
  margin-bottom: 2px;
}

.settings-row p {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.settings-toggle {
  width: 48px;
  height: 28px;
  border-radius: var(--radius-full);
  background: var(--bg-elevated);
  border: 1px solid var(--border-medium);
  position: relative;
  flex-shrink: 0;
  transition: background var(--transition);
}

.settings-toggle::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--text-muted);
  transition: transform var(--transition), background var(--transition);
}

.settings-toggle.is-on {
  background: var(--green-dim);
  border-color: var(--green);
}

.settings-toggle.is-on::after {
  transform: translateX(20px);
  background: var(--green);
}

.settings-status {
  font-size: 0.82rem;
  text-align: center;
  min-height: 1.2em;
}

.settings-status--success {
  color: var(--green);
}

.settings-status--error {
  color: var(--red);
}

.settings-section--danger {
  padding-top: 8px;
  border-top: 1px solid rgba(239, 68, 68, 0.25);
}

.settings-danger__copy {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 14px;
}

.btn--danger {
  background: linear-gradient(135deg, #b91c1c, #ef4444);
  color: #fff;
  border: none;
}

.btn--danger:hover {
  filter: brightness(1.05);
}

.btn--danger:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  filter: none;
}

[data-theme="light"] .notifications-panel {
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
}

/* ── Landing page ── */
.landing {
  --lp-bg: #ffffff;
  --lp-bg-soft: #f0fdf4;
  --lp-dark: #080a10;
  --lp-dark-2: #0f1219;
  --lp-text: #0f172a;
  --lp-text-muted: #64748b;
  --lp-border: rgba(15, 23, 42, 0.08);
  --lp-green: #22c55e;
  --lp-green-dark: #16a34a;
  --lp-green-light: #86efac;
  --lp-green-dim: rgba(34, 197, 94, 0.15);
  --lp-green-glow: rgba(34, 197, 94, 0.35);
  --lp-gradient: linear-gradient(135deg, #16a34a 0%, #22c55e 100%);
  --lp-gradient-hero: linear-gradient(135deg, #22c55e, #86efac);
  --lp-gradient-cta: linear-gradient(135deg, #15803d 0%, #22c55e 50%, #16a34a 100%);

  position: relative;
  min-height: 100dvh;
  background: var(--lp-bg);
  color: var(--lp-text);
  overflow-x: hidden;
}

/* Top bar */
.landing-topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--lp-dark);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: var(--safe-top);
}

.landing-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 20px;
}

.landing-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1 1 auto;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: #fff;
}

.landing-logo__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.landing-logo__mark,
.landing-logo .nn-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  flex-shrink: 0;
}

.landing-topbar .landing-logo .nn-mark,
.landing-topbar .landing-logo__mark {
  display: none;
}

.landing-menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  cursor: pointer;
  position: relative;
  z-index: 121;
}

.landing-topbar__actions {
  display: none;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex: 0 0 auto;
}

.landing-topbar-auth-btn {
  display: none;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: var(--radius-full);
  font-size: 0.76rem;
  font-weight: 600;
  font-family: inherit;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.landing-topbar-auth-btn--login {
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(226, 232, 240, 0.72);
}

.landing-topbar-auth-btn--login:hover {
  border-color: rgba(148, 163, 184, 0.4);
  background: rgba(255, 255, 255, 0.07);
  color: #e2e8f0;
}

.landing-topbar-auth-btn--signup {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(66, 184, 255, 0.45);
  color: #fff;
  background: linear-gradient(135deg, #1e5af9 0%, #42b8ff 55%, #34d399 120%);
  background-size: 180% 180%;
  box-shadow: 0 4px 16px rgba(30, 90, 249, 0.35);
  animation: topbar-signup-glow 2.8s ease-in-out infinite;
}

.landing-topbar-auth-btn--signup::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, 0.35) 45%, transparent 70%);
  transform: translateX(-120%);
  animation: topbar-signup-shine 3.2s ease-in-out infinite;
  pointer-events: none;
}

.landing-topbar-auth-btn--signup:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(30, 90, 249, 0.48);
}

@keyframes topbar-signup-glow {
  0%, 100% {
    background-position: 0% 50%;
    box-shadow: 0 4px 16px rgba(30, 90, 249, 0.32);
  }
  50% {
    background-position: 100% 50%;
    box-shadow: 0 6px 24px rgba(66, 184, 255, 0.48);
  }
}

@keyframes topbar-signup-shine {
  0%, 55% { transform: translateX(-120%); }
  75%, 100% { transform: translateX(120%); }
}

@media (prefers-reduced-motion: reduce) {
  .landing-topbar-auth-btn--signup,
  .landing-topbar-auth-btn--signup::before {
    animation: none;
  }
}

.landing-menu-btn svg { width: 22px; height: 22px; }

.landing-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.landing-nav a {
  padding: 8px 12px;
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  border-radius: var(--radius-full);
  transition: color var(--transition), background var(--transition);
}

.landing-nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.landing-nav__login,
.landing-nav__cta {
  padding: 10px 16px;
  border-radius: var(--radius-full);
  font-size: 0.86rem;
  font-weight: 600;
  margin-left: 4px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  line-height: 1.2;
}

.landing-nav__login {
  color: rgba(226, 232, 240, 0.72);
  background: transparent;
  border: 1px solid rgba(148, 163, 184, 0.28);
}

.landing-nav__login:hover {
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.06);
}

.landing-nav__cta {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #1e5af9 0%, #42b8ff 55%, #34d399 120%);
  background-size: 180% 180%;
  color: #fff;
  box-shadow: 0 4px 20px rgba(30, 90, 249, 0.35);
  animation: topbar-signup-glow 2.8s ease-in-out infinite;
}

.landing-nav__cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, 0.35) 45%, transparent 70%);
  transform: translateX(-120%);
  animation: topbar-signup-shine 3.2s ease-in-out infinite;
  pointer-events: none;
}

/* Hero */
.landing-hero {
  position: relative;
  padding-bottom: 32px;
}

.landing-hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 20%, rgba(34, 197, 94, 0.12), transparent),
    radial-gradient(ellipse 60% 50% at 80% 30%, rgba(34, 197, 94, 0.08), transparent),
    linear-gradient(180deg, #f0fdf4 0%, #ffffff 100%);
  pointer-events: none;
  animation: hero-bg-shift 12s ease-in-out infinite alternate;
}

.landing-hero__content--animate > * {
  animation: hero-fade-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.landing-hero__content--animate .landing-badge { animation-delay: 0.05s; }
.landing-hero__content--animate h1 { animation-delay: 0.12s; }
.landing-hero__content--animate .landing-hero__lead { animation-delay: 0.2s; }
.landing-hero__content--animate .landing-hero__actions { animation-delay: 0.28s; }
.landing-hero__content--animate .landing-checks { animation-delay: 0.36s; }

.landing-hero__content--animate .landing-btn--primary {
  animation: hero-btn-glow 3s ease-in-out infinite;
}

.landing-hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 20px 40px;
}

.landing-badge {
  display: inline-block;
  margin-bottom: 16px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: var(--lp-green-dim);
  color: var(--lp-green-dark);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.landing-hero h1 {
  font-size: clamp(2.25rem, 4.5vw, 3.25rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 800;
  color: var(--lp-text);
  max-width: 14ch;
}

.landing-gradient-text {
  background: var(--lp-gradient-hero);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.landing-gradient-text--cyan {
  background: linear-gradient(135deg, var(--lp-green-dark), var(--lp-green-light));
  -webkit-background-clip: text;
  background-clip: text;
}

.landing-gradient-text--green {
  background: linear-gradient(135deg, #16a34a, var(--lp-green));
  -webkit-background-clip: text;
  background-clip: text;
}

.landing-hero__lead {
  margin-top: 18px;
  max-width: 48ch;
  color: var(--lp-text-muted);
  font-size: 1rem;
  line-height: 1.65;
}

.landing-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.landing-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: var(--radius-full);
  font-size: 0.92rem;
  font-weight: 600;
  transition: transform var(--transition), box-shadow var(--transition);
}

.landing-btn:active { transform: scale(0.98); }

.landing-btn--primary {
  background: var(--lp-gradient);
  color: #fff;
  box-shadow: 0 8px 28px var(--lp-green-glow);
}

.landing-btn--ghost {
  border: 1px solid var(--lp-border);
  color: var(--lp-text);
  background: #fff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.landing-btn--white {
  background: #fff;
  color: var(--lp-text);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.landing-btn--outline-white {
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  color: #fff;
  background: transparent;
}

.landing-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 28px;
  list-style: none;
  font-size: 0.88rem;
  color: var(--lp-text-muted);
}

.landing-checks li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.landing-checks li::before {
  content: '✓';
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.15);
  color: var(--lp-green);
  font-size: 0.7rem;
  font-weight: 700;
}

/* Hero visual */
.landing-hero__visual {
  display: flex;
  justify-content: center;
  overflow: visible;
}

.landing-hero__art {
  position: relative;
  width: min(100%, 420px);
  min-height: 460px;
  overflow: visible;
  animation: hero-art-enter 1s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}

.landing-hero__ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 320px;
  height: 320px;
  margin: -160px 0 0 -160px;
  border-radius: 50%;
  border: 1px solid rgba(34, 197, 94, 0.2);
  animation: hero-ring-pulse 4s ease-out infinite;
  pointer-events: none;
}

.landing-hero-orbit {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.landing-hero-orbit__coin {
  position: absolute;
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(34, 197, 94, 0.25);
  animation: hero-orbit 14s linear infinite;
}

.landing-hero-orbit__coin--1 {
  width: 32px;
  height: 32px;
  top: 50%;
  left: 50%;
  margin: -16px 0 0 -16px;
  animation-duration: 12s;
  animation-delay: 0s;
}

.landing-hero-orbit__coin--2 {
  width: 28px;
  height: 28px;
  top: 50%;
  left: 50%;
  margin: -14px 0 0 -14px;
  animation-duration: 16s;
  animation-delay: -4s;
  animation-direction: reverse;
}

.landing-hero-orbit__coin--3 {
  width: 28px;
  height: 28px;
  top: 50%;
  left: 50%;
  margin: -14px 0 0 -14px;
  animation-duration: 20s;
  animation-delay: -8s;
}

.landing-hero-orbit__coin--4 {
  width: 26px;
  height: 26px;
  top: 50%;
  left: 50%;
  margin: -13px 0 0 -13px;
  animation-duration: 18s;
  animation-delay: -12s;
  animation-direction: reverse;
}

.landing-hero-wallet {
  position: absolute;
  top: 8%;
  left: -4%;
  z-index: 3;
  animation: hero-wallet-float 5s ease-in-out infinite;
}

.landing-hero-wallet__body {
  position: relative;
  width: 88px;
  height: 72px;
  border-radius: 12px 12px 16px 16px;
  background: linear-gradient(145deg, #15803d, #22c55e 55%, #16a34a);
  box-shadow:
    0 16px 40px rgba(34, 197, 94, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  overflow: hidden;
}

.landing-hero-wallet__fold {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 18px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.15), transparent);
  border-radius: 12px 12px 0 0;
  transform-origin: top center;
  animation: hero-wallet-flap 4s ease-in-out infinite;
}

.landing-hero-wallet__slot {
  position: absolute;
  top: 22px;
  left: 10px;
  right: 10px;
  height: 4px;
  border-radius: 2px;
  background: rgba(0, 0, 0, 0.2);
}

.landing-hero-wallet__coins {
  position: absolute;
  bottom: 10px;
  left: 0;
  right: 0;
  height: 32px;
}

.landing-hero-wallet__coin {
  position: absolute;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.landing-hero-wallet__coin--1 {
  left: 12px;
  bottom: 0;
  animation: hero-coin-pop 3s ease-in-out infinite;
}

.landing-hero-wallet__coin--2 {
  left: 34px;
  bottom: 4px;
  animation: hero-coin-pop 3s ease-in-out infinite 0.6s;
}

.landing-hero-wallet__coin--3 {
  left: 54px;
  bottom: 0;
  animation: hero-coin-pop 3s ease-in-out infinite 1.2s;
}

.landing-hero-wallet__label {
  display: block;
  margin-top: 6px;
  text-align: center;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--lp-green-dark);
  letter-spacing: 0.04em;
}

.landing-hero-toast {
  position: absolute;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: var(--radius-full);
  background: #fff;
  border: 1px solid var(--lp-border);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--lp-text);
  white-space: nowrap;
  opacity: 0;
}

.landing-hero-toast__icon {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--lp-green-dim);
  color: var(--lp-green-dark);
  font-size: 0.75rem;
  font-weight: 800;
}

.landing-hero-toast--1 {
  top: 18%;
  right: -12%;
  animation: hero-toast-in 8s ease-in-out infinite;
}

.landing-hero-toast--2 {
  top: 42%;
  left: 2%;
  animation: hero-toast-in 8s ease-in-out infinite 4s;
}

.landing-hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  pointer-events: none;
}

.landing-hero__orb--1 {
  width: 180px;
  height: 180px;
  top: 10%;
  right: 0;
  background: rgba(34, 197, 94, 0.25);
  animation: hero-orb-drift 10s ease-in-out infinite;
}

.landing-hero__orb--2 {
  width: 140px;
  height: 140px;
  bottom: 20%;
  left: 0;
  background: rgba(34, 197, 94, 0.15);
  animation: hero-orb-drift 14s ease-in-out infinite reverse;
}

.landing-phone {
  position: relative;
  z-index: 1;
  width: min(100%, 280px);
  margin: 0 auto;
  padding: 12px;
  border-radius: 28px;
  background: linear-gradient(160deg, #e2e8f0, #f8fafc);
  border: 1px solid var(--lp-border);
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.12);
  animation: hero-phone-float 6s ease-in-out infinite;
}

.landing-phone__screen {
  border-radius: 20px;
  background: var(--lp-dark);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 16px;
  min-height: 340px;
  color: #fff;
}

.landing-phone__header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 14px;
}

.landing-phone__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lp-green);
}

.landing-phone__balance {
  padding: 16px;
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, rgba(34, 197, 94, 0.15), rgba(34, 197, 94, 0.05));
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.landing-phone__balance small {
  display: block;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.72rem;
}

.landing-phone__balance strong {
  display: block;
  margin-top: 4px;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  animation: hero-balance-glow 2.5s ease-in-out infinite;
}

.landing-phone__balance strong span { font-size: 0.85rem; color: var(--lp-green); }

.landing-phone__balance em {
  display: block;
  margin-top: 4px;
  font-style: normal;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
}

.landing-phone__actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin: 12px 0;
}

.landing-phone__actions span {
  text-align: center;
  padding: 8px 6px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.7rem;
  font-weight: 600;
}

.landing-phone__list div,
.landing-phone__tx {
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  margin-bottom: 6px;
  position: relative;
  overflow: hidden;
}

.landing-phone__tx::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(34, 197, 94, 0.12), transparent);
  transform: translateX(-100%);
  animation: hero-tx-shimmer 2.5s ease-in-out infinite;
}

.landing-phone__tx--1::after { animation-delay: 0s; }
.landing-phone__tx--2::after { animation-delay: 0.5s; }
.landing-phone__tx--3::after { animation-delay: 1s; }

.landing-widget {
  position: absolute;
  right: -8px;
  bottom: 24px;
  z-index: 2;
  width: 200px;
  padding: 16px;
  border-radius: var(--radius-lg);
  background: var(--lp-dark);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.25);
  color: #fff;
  animation: hero-widget-float 5.5s ease-in-out infinite reverse;
}

.landing-widget small {
  display: block;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.5);
}

.landing-widget strong {
  display: block;
  margin-top: 4px;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.landing-widget__up {
  display: inline-block;
  margin-top: 4px;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: rgba(34, 197, 94, 0.15);
  color: var(--lp-green);
  font-size: 0.72rem;
  font-weight: 700;
}

.landing-widget__chart {
  height: 40px;
  margin: 12px 0 10px;
  border-radius: 6px;
  background: linear-gradient(180deg, transparent 60%, rgba(34, 197, 94, 0.15) 100%);
  position: relative;
  overflow: hidden;
}

.landing-widget__chart-line {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: var(--lp-green);
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: hero-chart-draw 3s ease-out 0.8s forwards, hero-chart-pulse 4s ease-in-out 4s infinite;
}

.landing-widget__meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.45);
}

.landing-widget__meta em {
  display: block;
  font-style: normal;
  color: #fff;
  font-weight: 600;
  font-size: 0.78rem;
}

/* Hero animation keyframes */
@keyframes hero-bg-shift {
  0% { filter: hue-rotate(0deg); opacity: 1; }
  100% { filter: hue-rotate(8deg); opacity: 0.92; }
}

@keyframes hero-fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes hero-btn-glow {
  0%, 100% { box-shadow: 0 8px 28px var(--lp-green-glow); }
  50% { box-shadow: 0 10px 44px rgba(34, 197, 94, 0.5); }
}

@keyframes hero-art-enter {
  from { opacity: 0; transform: translateY(24px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes hero-ring-pulse {
  0%, 100% { transform: scale(0.92); opacity: 0.55; }
  50% { transform: scale(1.08); opacity: 0.25; }
}

@keyframes hero-orbit {
  from { transform: rotate(0deg) translateX(125px) rotate(0deg); }
  to { transform: rotate(360deg) translateX(125px) rotate(-360deg); }
}

@keyframes hero-wallet-float {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50% { transform: translateY(-14px) rotate(4deg); }
}

@keyframes hero-wallet-flap {
  0%, 100% { transform: perspective(120px) rotateX(0deg); }
  50% { transform: perspective(120px) rotateX(-12deg); }
}

@keyframes hero-coin-pop {
  0%, 100% { transform: translateY(0) scale(1); }
  45% { transform: translateY(-8px) scale(1.1); }
}

@keyframes hero-toast-in {
  0%, 12%, 100% { opacity: 0; transform: translateY(10px) scale(0.96); }
  18%, 42% { opacity: 1; transform: translateY(0) scale(1); }
  48% { opacity: 0; transform: translateY(-6px) scale(0.98); }
}

@keyframes hero-orb-drift {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(12px, -16px); }
}

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

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

@keyframes hero-balance-glow {
  0%, 100% { text-shadow: 0 0 0 transparent; }
  50% { text-shadow: 0 0 20px rgba(34, 197, 94, 0.35); }
}

@keyframes hero-tx-shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

@keyframes hero-chart-draw {
  to { stroke-dashoffset: 0; }
}

@keyframes hero-chart-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.65; }
}

.landing-trusted {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 20px 0;
  text-align: center;
}

.landing-trusted p {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lp-text-muted);
  margin-bottom: 16px;
}

.landing-trusted__logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px 32px;
}

.landing-trusted__logos span {
  font-size: 0.95rem;
  font-weight: 600;
  color: #94a3b8;
  letter-spacing: -0.01em;
}

/* Dark strip */
.landing-strip {
  background: var(--lp-dark);
  color: #fff;
  padding: 40px 20px;
}

.landing-strip__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.landing-strip article h3 {
  font-size: 0.95rem;
  margin: 10px 0 6px;
}

.landing-strip article p {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.5;
}

.landing-strip__icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--lp-green-dim);
  color: var(--lp-green);
}

.landing-strip__icon svg { width: 20px; height: 20px; }

/* Assets */
.landing-assets {
  background: var(--lp-dark);
  color: #fff;
  padding: 56px 20px;
}

.landing-assets__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto 28px;
}

.landing-assets__head h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.02em;
  margin-top: 8px;
}

.landing-assets__head > p {
  max-width: 320px;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.55);
  text-align: right;
}

.landing-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.landing-label--cyan,
.landing-label--purple,
.landing-label--blue { color: var(--lp-green); }
.landing-label--green { color: var(--lp-green-dark); }

.landing-assets__stage {
  position: relative;
  overflow: hidden;
  margin-top: 8px;
  padding: 12px 0 8px;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.landing-assets__stage::before,
.landing-assets__stage::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 40px;
  z-index: 2;
  pointer-events: none;
}

.landing-assets__stage::before {
  top: 0;
  background: linear-gradient(180deg, var(--lp-dark), transparent);
}

.landing-assets__stage::after {
  bottom: 0;
  background: linear-gradient(0deg, var(--lp-dark), transparent);
}

.landing-coin-row {
  overflow: hidden;
  padding: 10px 0;
}

.landing-coin-row + .landing-coin-row {
  margin-top: 4px;
}

.landing-coin-track {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  width: max-content;
  animation: coin-track-drift var(--track-duration, 50s) linear infinite;
  animation-direction: var(--track-direction, normal);
  will-change: transform;
}

.landing-coin-float {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 88px;
  text-align: center;
  animation: coin-float-bob var(--float-duration, 3.5s) ease-in-out infinite;
  animation-delay: var(--float-delay, 0s);
  will-change: transform;
  pointer-events: none;
  user-select: none;
}

.landing-coin-float__bubble {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.25),
    0 0 0 1px rgba(34, 197, 94, 0.08);
  transition: transform var(--transition), box-shadow var(--transition);
}

.landing-coin-float__bubble img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
}

.landing-coin-float__fallback {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--lp-green-dim);
  color: var(--lp-green);
  font-weight: 800;
  font-size: 1rem;
}

.landing-coin-float__fallback.hidden { display: none; }

@media (hover: hover) and (pointer: fine) {
  .landing-coin-float:hover .landing-coin-float__bubble {
    transform: scale(1.08);
    box-shadow:
      0 16px 40px rgba(34, 197, 94, 0.2),
      0 0 0 2px rgba(34, 197, 94, 0.25);
  }
}

.landing-coin-float strong {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
}

.landing-coin-float small {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.3;
}

@keyframes coin-float-bob {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-16px) rotate(2deg); }
}

@keyframes coin-track-drift {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .landing-hero__bg,
  .landing-hero__content--animate > *,
  .landing-hero__content--animate .landing-btn--primary,
  .landing-hero__art,
  .landing-hero__ring,
  .landing-hero-orbit__coin,
  .landing-hero-wallet,
  .landing-hero-wallet__fold,
  .landing-hero-wallet__coin,
  .landing-hero-toast,
  .landing-hero__orb,
  .landing-phone,
  .landing-widget,
  .landing-phone__balance strong,
  .landing-phone__tx::after,
  .landing-widget__chart-line {
    animation: none !important;
  }

  .landing-hero-toast {
    opacity: 1;
    transform: none;
  }

  .landing-widget__chart-line {
    stroke-dashoffset: 0;
  }

  .landing-coin-track {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
    width: auto;
    max-width: 1200px;
    margin: 0 auto;
  }

  .landing-coin-float {
    animation: none;
  }

  .landing-assets__stage {
    mask-image: none;
    -webkit-mask-image: none;
  }

  .landing-coin-row + .landing-coin-row {
    display: none;
  }
}

/* Sections */
.landing-main { position: relative; z-index: 1; }

.landing-section {
  padding: 72px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.landing-section--light { background: var(--lp-bg); max-width: none; }
.landing-section--light > * { max-width: 1200px; margin-left: auto; margin-right: auto; }

.landing-section--grid {
  background: var(--lp-bg-soft);
  max-width: none;
  background-image:
    linear-gradient(rgba(34, 197, 94, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 197, 94, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
}

.landing-section--grid > * { max-width: 1200px; margin-left: auto; margin-right: auto; }

.landing-section--usdt { max-width: none; padding-bottom: 48px; }
.landing-section--usdt > * { max-width: 1200px; margin-left: auto; margin-right: auto; }

.landing-section__head { margin-bottom: 36px; }
.landing-section__head--center { text-align: center; max-width: 680px; margin-left: auto; margin-right: auto; }

.landing-section__head h2 {
  font-size: clamp(1.85rem, 3.5vw, 2.5rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 12px;
}

.landing-section__head p {
  color: var(--lp-text-muted);
  font-size: 1rem;
  line-height: 1.6;
}

/* Feature cards */
.landing-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.landing-feature {
  position: relative;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--lp-border);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
  transition: box-shadow var(--transition), transform var(--transition);
}

.landing-feature:hover {
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.08);
  transform: translateY(-2px);
}

.landing-feature__icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  margin-bottom: 14px;
}

.landing-feature__icon svg { width: 22px; height: 22px; }
.landing-feature__icon--purple { background: var(--lp-green-dim); color: var(--lp-green-dark); }
.landing-feature__icon--blue { background: rgba(34, 197, 94, 0.12); color: var(--lp-green); }
.landing-feature__icon--green { background: rgba(34, 197, 94, 0.18); color: var(--lp-green-dark); }
.landing-feature__icon--orange { background: rgba(34, 197, 94, 0.1); color: #15803d; }
.landing-feature__icon--cyan { background: rgba(34, 197, 94, 0.12); color: var(--lp-green); }
.landing-feature__icon--indigo { background: rgba(34, 197, 94, 0.14); color: var(--lp-green-dark); }

.landing-feature h3 { font-size: 1rem; margin-bottom: 8px; }

.landing-feature p {
  font-size: 0.86rem;
  color: var(--lp-text-muted);
  line-height: 1.55;
  padding-right: 20px;
}

.landing-feature__arrow {
  position: absolute;
  bottom: 20px;
  right: 20px;
  color: var(--lp-green);
  font-size: 1.1rem;
  opacity: 0.5;
}

/* Stats bar */
.landing-stats-wrap {
  padding: 0 20px 56px;
  max-width: 1200px;
  margin: 0 auto;
}

.landing-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 28px 32px;
  border-radius: var(--radius-xl);
  background: var(--lp-dark);
  color: #fff;
}

.landing-stats > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.landing-stats__icon { font-size: 1.2rem; margin-bottom: 4px; }

.landing-stats strong {
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.landing-stats > div > span:last-child {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.4;
}

/* How it works flow */
.landing-flow {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.landing-flow li {
  text-align: center;
  padding: 20px 14px;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--lp-border);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

.landing-flow__icon {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
}

.landing-flow__icon--purple { background: linear-gradient(135deg, #15803d, #22c55e); }
.landing-flow__icon--blue { background: linear-gradient(135deg, #16a34a, #86efac); }
.landing-flow__icon--green { background: linear-gradient(135deg, #15803d, #4ade80); }

.landing-flow h3 { font-size: 0.88rem; margin-bottom: 8px; }

.landing-flow p {
  font-size: 0.78rem;
  color: var(--lp-text-muted);
  line-height: 1.5;
}

/* Security block */
.landing-security {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 32px;
  padding: 32px;
  border-radius: var(--radius-xl);
  background: #fff;
  border: 1px solid var(--lp-border);
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.06);
}

.landing-security__main {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.landing-security__shield {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--lp-gradient);
  color: #fff;
}

.landing-security__shield svg { width: 28px; height: 28px; }

.landing-security__main h2 {
  font-size: 1.35rem;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.landing-security__main p {
  font-size: 0.88rem;
  color: var(--lp-text-muted);
  line-height: 1.6;
}

.landing-security__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.landing-security__grid article h4 {
  font-size: 0.88rem;
  margin: 8px 0 4px;
}

.landing-security__grid article p {
  font-size: 0.78rem;
  color: var(--lp-text-muted);
  line-height: 1.5;
}

.landing-security__dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.landing-security__dot--purple { background: var(--lp-green-dark); }
.landing-security__dot--blue { background: var(--lp-green); }
.landing-security__dot--green { background: var(--lp-green-light); }

/* USDT section */
.landing-usdt {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 20px;
  margin-bottom: 32px;
}

.landing-usdt__hero {
  padding: 28px;
  border-radius: var(--radius-xl);
  background: var(--lp-dark);
  color: #fff;
}

.landing-usdt__hero h3 {
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  line-height: 1.3;
}

.landing-usdt__hero > p {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.55;
  margin-bottom: 24px;
}

.landing-usdt__flow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.landing-usdt__flow-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  flex-shrink: 0;
}

.landing-usdt__flow-icon--usdt {
  background: rgba(38, 161, 123, 0.18);
  border: 1px solid rgba(38, 161, 123, 0.35);
  padding: 6px;
}

.landing-usdt__flow-icon--usdt img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  display: block;
}

.landing-usdt__flow-icon--shield {
  background: rgba(66, 184, 255, 0.14);
  color: var(--lp-green-light);
  border: 1px solid rgba(66, 184, 255, 0.25);
}

.landing-usdt__flow-icon--shield svg {
  width: 18px;
  height: 18px;
}

.landing-usdt__flow-icon--fiat {
  background: rgba(34, 197, 94, 0.2);
  color: var(--lp-green);
  font-weight: 800;
  font-size: 1rem;
}

.landing-usdt__line {
  flex: 1;
  height: 2px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 1px;
}

.landing-usdt__badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.55);
}

.landing-usdt__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.landing-usdt__grid article {
  padding: 18px;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--lp-border);
}

.landing-usdt__card-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  margin-bottom: 10px;
  border-radius: 10px;
  background: rgba(38, 161, 123, 0.1);
  border: 1px solid rgba(38, 161, 123, 0.18);
}

.landing-usdt__card-icon img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  display: block;
}

.landing-usdt__grid h4 { font-size: 0.88rem; margin-bottom: 6px; }

.landing-usdt__grid p {
  font-size: 0.78rem;
  color: var(--lp-text-muted);
  line-height: 1.5;
}

.landing-usdt-trust {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 28px;
  border-radius: var(--radius-xl);
  background: var(--lp-bg-soft);
  border: 1px solid var(--lp-border);
}

.landing-usdt-trust__left {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 420px;
}

.landing-usdt-trust__logo {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(38, 161, 123, 0.12);
  border: 1px solid rgba(38, 161, 123, 0.22);
  padding: 8px;
  flex-shrink: 0;
}

.landing-usdt-trust__logo img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: block;
}

.landing-usdt-trust__left p {
  font-size: 0.86rem;
  color: var(--lp-text-muted);
  line-height: 1.5;
}

.landing-usdt-trust__stats {
  display: flex;
  gap: 32px;
}

.landing-usdt-trust__stats strong {
  display: block;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.landing-usdt-trust__stats span {
  font-size: 0.72rem;
  color: var(--lp-text-muted);
}

/* Support */
.landing-support {
  padding: 72px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.landing-support__inner {
  max-width: 960px;
  margin: 0 auto;
}

.landing-support__inner > h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.25rem);
  letter-spacing: -0.02em;
  margin: 8px 0 14px;
}

.landing-support__lead {
  color: var(--lp-text-muted, rgba(255, 255, 255, 0.65));
  font-size: 1rem;
  line-height: 1.65;
  max-width: 640px;
  margin-bottom: 32px;
}

.landing-support__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 28px;
}

.landing-support__card {
  padding: 22px 20px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.landing-support__card h3 {
  font-size: 1rem;
  margin-bottom: 10px;
}

.landing-support__card p,
.landing-support__card li {
  font-size: 0.86rem;
  color: var(--lp-text-muted, rgba(255, 255, 255, 0.6));
  line-height: 1.55;
}

.landing-support__card ul {
  list-style: disc;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.landing-support__email {
  display: inline-block;
  margin-top: 12px;
  font-weight: 700;
  color: #42b8ff;
  text-decoration: none;
}

.landing-support__email:hover {
  text-decoration: underline;
}

.landing-support__actions {
  justify-content: flex-start;
}

@media (max-width: 860px) {
  .landing-support__grid {
    grid-template-columns: 1fr;
  }
}

/* CTA */
.landing-cta {
  padding: 0;
  max-width: none;
}

.landing-cta__inner {
  text-align: center;
  padding: 72px 28px;
  background: var(--lp-gradient-cta);
  color: #fff;
}

.landing-cta__badge {
  display: inline-block;
  margin-bottom: 16px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.15);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.landing-cta__inner h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.landing-cta__inner p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 28px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.landing-cta .landing-hero__actions { justify-content: center; }

/* Footer */
.landing-footer {
  background: var(--lp-dark);
  color: #fff;
  padding: 56px 20px calc(24px + var(--safe-bottom));
}

.landing-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto 40px;
}

.landing-footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  margin-bottom: 12px;
}

.landing-footer__col p {
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.6;
  max-width: 280px;
}

.landing-footer__col h4 {
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 14px;
  color: rgba(255, 255, 255, 0.9);
}

.landing-footer__col a,
.landing-footer__col button {
  display: block;
  text-align: left;
  padding: 4px 0;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.5);
  transition: color var(--transition);
}

.landing-footer__col a:hover,
.landing-footer__col button:hover { color: #fff; }

.landing-footer__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.4);
}

.landing-footer__trust {
  display: flex;
  gap: 20px;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
}

/* ── Cloudflare Turnstile ── */
.turnstile-gate {
  position: fixed;
  inset: 0;
  z-index: 30050;
  display: grid;
  place-items: center;
  padding: max(16px, var(--safe-top)) 12px max(16px, var(--safe-bottom));
  background: rgba(8, 10, 16, 0.97);
  backdrop-filter: blur(8px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.turnstile-gate.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.turnstile-gate.hidden {
  display: none !important;
}

.turnstile-gate__card {
  width: min(100%, 420px);
  max-width: 100%;
  box-sizing: border-box;
  padding: 32px 20px 28px;
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
  text-align: center;
  overflow: hidden;
}

.turnstile-gate__icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green-dim);
  color: var(--green);
}

.turnstile-gate__icon svg {
  width: 26px;
  height: 26px;
}

.turnstile-gate__card h2 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
  padding: 0 8px;
}

.turnstile-gate__card > p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0 0 20px;
  padding: 0 8px;
  overflow-wrap: break-word;
  hyphens: none;
}

.turnstile-gate__widget,
.turnstile-field {
  display: flex;
  justify-content: center;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
  overflow: hidden;
  border-radius: 3px;
  box-sizing: border-box;
  line-height: 0;
}

.turnstile-gate__widget > div,
.turnstile-field > div {
  width: auto !important;
  max-width: 100%;
  overflow: hidden;
  line-height: 0;
}

.turnstile-gate__widget iframe,
.turnstile-field iframe {
  display: block;
  max-width: 100%;
  border: 0;
  outline: none;
  margin: 0;
}

.turnstile-gate__error {
  margin: 14px 8px 0;
  font-size: 0.82rem;
  color: var(--red);
  line-height: 1.45;
}

@media (max-width: 380px) {
  .turnstile-gate {
    padding: max(12px, var(--safe-top)) 8px max(12px, var(--safe-bottom));
  }

  .turnstile-gate__card {
    padding: 28px 12px 22px;
  }
}

@media (max-width: 340px) {
  .turnstile-gate {
    padding-left: 4px;
    padding-right: 4px;
  }

  .turnstile-gate__card {
    padding-left: 4px;
    padding-right: 4px;
  }
}

body.turnstile-gate-open {
  overflow: hidden;
}

body.turnstile-gate-open .landing,
body.turnstile-gate-open #appShell,
body.turnstile-gate-open .page-loader,
body.turnstile-gate-open #widget-container,
body.turnstile-gate-open #smartsupp-widget-container,
body.turnstile-gate-open [data-testid="widgetButtonFrame"],
body.turnstile-gate-open div[id*='smartsupp'],
body.turnstile-gate-open iframe[src*='smartsuppchat.com'],
body.turnstile-gate-open iframe[src*='smartsupp'] {
  visibility: hidden !important;
  pointer-events: none !important;
}

body.auth-view-open {
  overflow: hidden;
}

/* Smartsupp — hide floating launcher in wallet/auth; show when opened from More → Help */
body.smartsupp-launcher-hidden #widget-container,
body.smartsupp-launcher-hidden div[id*='smartsupp'],
body.smartsupp-launcher-hidden iframe[src*='smartsuppchat.com'],
body.smartsupp-launcher-hidden iframe[src*='smartsupp'] {
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

body.smartsupp-chat-open #widget-container,
body.smartsupp-chat-open div[id*='smartsupp'],
body.smartsupp-chat-open iframe[src*='smartsuppchat.com'],
body.smartsupp-chat-open iframe[src*='smartsupp'] {
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

/* Smartsupp — compact corner widget on mobile (not fullscreen) */
@media (max-width: 767px) {
  #widget-container {
    inset: auto !important;
    top: auto !important;
    left: auto !important;
    bottom: calc(16px + var(--safe-bottom)) !important;
    right: 16px !important;
    width: min(380px, calc(100vw - 32px)) !important;
    max-width: min(380px, calc(100vw - 32px)) !important;
    height: auto !important;
    max-height: min(560px, calc(100dvh - 96px)) !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35) !important;
  }

  #widget-container iframe,
  iframe[src*='smartsuppchat.com'],
  iframe[src*='smartsupp'] {
    max-height: min(560px, calc(100dvh - 96px)) !important;
    border-radius: 16px !important;
  }
}

body:not(.is-app-mode) .action-bar { display: none; }

/* Landing responsive */
@media (max-width: 1024px) and (min-width: 721px) {
  .landing-features { grid-template-columns: repeat(3, 1fr); }
  .landing-strip__inner { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .landing-flow { grid-template-columns: repeat(5, 1fr); gap: 12px; }
  .landing-stats { grid-template-columns: repeat(4, 1fr); }
  .landing-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .landing-security { grid-template-columns: 1fr 1.2fr; }
  .landing-usdt { grid-template-columns: 1fr 1.4fr; }
  .landing-hero h1 { max-width: none; }
}

@media (max-width: 720px) {
  .landing-hero__inner {
    grid-template-columns: 1fr;
    padding: 48px 20px 32px;
  }

  .landing-hero__visual { order: -1; }

  .landing-hero h1 { max-width: none; font-size: clamp(2.35rem, 8vw, 2.85rem); }

  .landing-section { padding: 56px 20px; }

  .landing-menu-btn { display: inline-flex; }

  .landing-topbar__inner {
    gap: 8px;
    padding: 12px 14px;
  }

  .landing-logo {
    gap: 8px;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    max-width: none;
  }

  .landing-topbar .landing-logo__name {
    overflow: visible;
    text-overflow: unset;
  }

  .landing-logo .nn-mark,
  .landing-logo__mark {
    width: 34px;
    height: 34px;
    border-radius: 11px;
  }

  .landing-topbar__actions {
    display: flex;
    gap: 6px;
  }

  .landing-topbar-auth-btn {
    display: inline-flex;
    padding: 8px 10px;
    font-size: 0.7rem;
  }

  .landing-nav {
    position: fixed;
    inset: calc(60px + var(--safe-top)) 16px auto;
    z-index: 120;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border-radius: var(--radius-lg);
    background: var(--lp-dark-2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
  }

  .landing-nav.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .landing-nav a,
  .landing-nav__login,
  .landing-nav__cta {
    width: 100%;
    text-align: center;
  }

  .landing-nav__login,
  .landing-nav__cta {
    display: none;
  }

  .landing-assets__head { flex-direction: column; align-items: flex-start; }
  .landing-assets__head > p { text-align: left; }
  .landing-strip__inner { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .landing-features { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .landing-feature { padding: 20px; }
  .landing-flow { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .landing-flow li { padding: 16px 12px; box-shadow: 0 6px 20px rgba(15, 23, 42, 0.06); }
  .landing-stats { grid-template-columns: repeat(2, 1fr); padding: 24px 20px; }
  .landing-security { grid-template-columns: 1fr; }
  .landing-security__grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .landing-usdt { grid-template-columns: 1fr; }
  .landing-usdt__grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .landing-usdt__hero { padding: 22px 18px; }
  .landing-usdt__flow-icon { width: 36px; height: 36px; }
  .landing-usdt__flow-icon--usdt img { width: 22px; height: 22px; }
  .landing-usdt__card-icon { width: 34px; height: 34px; margin-bottom: 8px; }
  .landing-usdt__card-icon img { width: 20px; height: 20px; }
  .landing-usdt-trust { flex-direction: column; text-align: center; }
  .landing-usdt-trust__left { flex-direction: column; }
  .landing-usdt-trust__stats { flex-wrap: wrap; justify-content: center; gap: 20px; }
  .landing-footer__grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .landing-footer__bar { flex-direction: column; text-align: center; }
  .landing-widget { right: 0; width: 170px; }
  .landing-hero-wallet { left: 0; top: 4%; }
  .landing-hero-toast--1 { right: -4%; font-size: 0.65rem; }
  .landing-hero-toast--2 { left: 6%; font-size: 0.65rem; }
  .landing-hero__art { min-height: 400px; }
  .landing-trusted__logos { gap: 16px 24px; }
  .landing-hero__actions { flex-direction: row; flex-wrap: wrap; }
  .landing-hero__actions .landing-btn { width: auto; flex: 1 1 140px; justify-content: center; }

  .landing-hero__content {
    text-align: center;
  }

  .landing-badge {
    margin-inline: auto;
  }

  .landing-hero__lead {
    margin-inline: auto;
  }

  .landing-hero__actions {
    justify-content: center;
  }

  .landing-checks {
    justify-content: center;
  }

  .landing-topbar {
    background:
      linear-gradient(180deg, rgba(10, 14, 26, 0.97) 0%, rgba(15, 22, 41, 0.94) 100%);
    border-bottom: 1px solid rgba(66, 184, 255, 0.18);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 8px 32px rgba(30, 90, 249, 0.12);
  }

  .landing-logo .nn-mark,
  .landing-logo__mark {
    background: linear-gradient(160deg, rgba(30, 90, 249, 0.28) 0%, rgba(66, 184, 255, 0.1) 100%);
    box-shadow: 0 4px 16px rgba(30, 90, 249, 0.28);
  }

  .landing-menu-btn {
    border-color: rgba(66, 184, 255, 0.28);
    background: rgba(30, 90, 249, 0.14);
    color: #7dd3fc;
  }

  .landing-nav {
    background: linear-gradient(180deg, #0f1629 0%, #0a0e1a 100%);
    border-color: rgba(66, 184, 255, 0.16);
    box-shadow: 0 24px 64px rgba(10, 14, 26, 0.55), 0 0 0 1px rgba(66, 184, 255, 0.08);
  }

  .landing-nav a:hover {
    background: rgba(30, 90, 249, 0.14);
    color: #e0f2fe;
  }

  .landing {
    background: linear-gradient(180deg, #ffffff 0%, #fafffe 45%, #f0fdf4 100%);
  }

  .landing-feature {
    box-shadow: 0 10px 32px rgba(15, 23, 42, 0.08);
  }

  .landing-stats {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
  }

  .landing-cta {
    padding: 0 0 40px;
  }

  .landing-cta__inner {
    margin: 0 16px;
    padding: 52px 24px 56px;
    border-radius: var(--radius-xl);
    box-shadow: 0 16px 48px rgba(30, 90, 249, 0.28);
  }

  .landing-coin-float { width: 76px; }
  .landing-coin-float__bubble { width: 60px; height: 60px; }
  .landing-coin-float__bubble img { width: 36px; height: 36px; }
  .landing-coin-track { gap: 20px; }
}

@media (max-width: 400px) {
  .landing-strip__inner,
  .landing-features,
  .landing-flow,
  .landing-stats,
  .landing-footer__grid,
  .landing-security__grid,
  .landing-usdt__grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .landing-usdt__card-icon {
    width: 32px;
    height: 32px;
  }

  .landing-hero__actions { flex-direction: column; }
  .landing-hero__actions .landing-btn { width: 100%; flex: none; }

  .landing-logo {
    max-width: none;
    font-size: 0.7rem;
  }

  .landing-logo .nn-mark {
    width: 30px;
    height: 30px;
  }

  .landing-topbar-auth-btn {
    padding: 7px 8px;
    font-size: 0.66rem;
  }
}

/* ── Mobile premium polish (phones & small tablets; desktop min-width rules untouched) ── */
@media (max-width: 767px) {
  body.is-app-mode {
    background:
      radial-gradient(ellipse 90% 55% at 50% -8%, rgba(30, 90, 249, 0.12) 0%, transparent 58%),
      radial-gradient(ellipse 75% 50% at 88% 100%, rgba(66, 184, 255, 0.08) 0%, transparent 52%),
      var(--bg-base);
  }

  body.is-app-mode .app-shell::before {
    display: none;
  }

  body.is-app-mode .ambient {
    filter: none;
    opacity: 0.5;
  }

  body.is-app-mode .ambient-1 {
    width: 280px;
    height: 280px;
  }

  body.is-app-mode .ambient-2 {
    width: 240px;
    height: 240px;
  }

  .app {
    padding-top: calc(16px + var(--safe-top));
    padding-bottom: calc(var(--nav-height) + 56px + var(--safe-bottom));
    gap: 26px;
  }

  .balance-card {
    padding: 22px;
    background: linear-gradient(155deg, #12182a 0%, #0f1629 55%, #0a0e1a 100%);
    border-color: rgba(66, 184, 255, 0.14);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.38);
  }

  .token-icon {
    width: 44px;
    height: 44px;
    padding: 5px;
    border-radius: 12px;
    background: rgba(38, 161, 123, 0.12);
    border: 1px solid rgba(38, 161, 123, 0.22);
    display: grid;
    place-items: center;
  }

  .token-icon .crypto-icon {
    width: 32px;
    height: 32px;
  }

  /* Wallet card: circular icon only — no padded square behind USDT. */
  .balance-card .token-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: transparent;
    box-shadow: none;
    overflow: hidden;
  }

  .balance-card .token-icon .crypto-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: transparent;
  }

  .crypto-icon {
    object-fit: contain;
  }

  .stock-logo img {
    object-fit: contain;
    padding: 3px;
  }

  .status-dot {
    animation: none;
  }

  .section-header h2 {
    font-size: 1.12rem;
  }

  .stock-card {
    flex: 0 0 142px;
    padding: 18px 14px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  }

  .cards-empty {
    padding: 36px 24px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  }

  .tip-card {
    padding: 18px 20px;
    background: linear-gradient(135deg, rgba(30, 90, 249, 0.08) 0%, var(--bg-card) 100%);
    border-color: rgba(66, 184, 255, 0.14);
  }

  .quick-actions {
    gap: 10px;
  }

  .action-icon {
    width: 62px;
    height: 62px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  }

  .action-btn--primary .action-icon {
    box-shadow:
      0 8px 28px rgba(30, 90, 249, 0.4),
      0 0 22px rgba(66, 184, 255, 0.35),
      inset 0 1px 0 rgba(255, 255, 255, 0.28);
  }

  .help-card {
    padding: 20px 16px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
  }

  .empty-state {
    padding: 44px 28px;
  }

  .service-card__icon--crypto {
    background: rgba(38, 161, 123, 0.1);
    border: 1px solid rgba(38, 161, 123, 0.18);
  }

  .service-card__icon--crypto .crypto-icon {
    width: 28px;
    height: 28px;
  }

  .bottom-nav {
    left: 14px;
    right: 14px;
    width: auto;
    max-width: none;
    transform: none;
    bottom: calc(10px + var(--safe-bottom));
    height: var(--nav-height);
    padding-bottom: 0;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(66, 184, 255, 0.12);
    background: rgba(10, 14, 26, 0.96);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
  }

  .nav-item {
    min-width: 0;
    padding: 8px 4px;
  }

  .nav-item__label {
    font-size: 0.58rem;
  }

  .profile-name {
    font-size: 1.08rem;
  }

  .icon-btn {
    width: 44px;
    height: 44px;
  }

  .auth-panel {
    background:
      linear-gradient(180deg, rgba(30, 90, 249, 0.07) 0%, transparent 140px),
      var(--auth-bg);
  }

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

  .auth-hero p {
    margin-inline: auto;
  }

  .auth-mobile-art {
    margin: 32px 0 12px;
  }

  .auth-mobile-art__stage {
    width: 240px;
    height: 240px;
  }

  .auth-mobile-art__phone {
    width: 96px;
  }

  .auth-btn--primary {
    box-shadow: 0 8px 24px rgba(30, 90, 249, 0.32);
  }
}

@media (max-width: 400px) {
  .auth-social { grid-template-columns: 1fr; }
}

/* ── KYC verification ── */
.kyc-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 0 4px 28px;
}

.kyc-status-card {
  padding: 16px 18px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(30, 90, 249, 0.18);
  background: linear-gradient(135deg, rgba(30, 90, 249, 0.08), rgba(66, 184, 255, 0.05));
}

.kyc-status-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(30, 90, 249, 0.15);
  color: var(--accent, #93c5fd);
  margin-bottom: 10px;
}

.kyc-status-badge[data-status="pending"] {
  background: rgba(30, 90, 249, 0.15);
  color: #93c5fd;
}

.kyc-status-badge[data-status="submitted"] {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
}

.kyc-status-badge[data-status="approved"] {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
}

.kyc-status-badge[data-status="rejected"] {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
}

html[data-theme="light"] .kyc-status-badge[data-status="pending"] {
  color: #1d4ed8;
  background: rgba(29, 78, 216, 0.1);
}

html[data-theme="light"] .kyc-status-badge[data-status="submitted"] {
  color: #b45309;
  background: rgba(180, 83, 9, 0.1);
}

html[data-theme="light"] .kyc-status-badge[data-status="approved"] {
  color: #15803d;
  background: rgba(21, 128, 61, 0.1);
}

html[data-theme="light"] .kyc-status-badge[data-status="rejected"] {
  color: #b91c1c;
  background: rgba(185, 28, 28, 0.1);
}

.kyc-status-message {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

.kyc-status-card .auth-link-btn {
  margin-top: 12px;
}

.kyc-view .kyc-panel {
  padding-bottom: calc(var(--nav-height) + 72px + var(--safe-bottom));
}

.kyc-form-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
  padding: 4px 0 12px;
}

.kyc-help {
  margin: 0 0 16px;
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.kyc-upload-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.kyc-upload {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(66, 184, 255, 0.18);
  background:
    linear-gradient(160deg, rgba(30, 90, 249, 0.1), rgba(15, 22, 41, 0.55) 55%),
    rgba(12, 16, 28, 0.88);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  overflow: hidden;
}

.kyc-upload[hidden] {
  display: none !important;
}

html[data-theme="light"] .kyc-upload {
  background:
    linear-gradient(160deg, rgba(30, 90, 249, 0.06), rgba(255, 255, 255, 0.92) 55%),
    #fff;
  border-color: rgba(30, 90, 249, 0.16);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.kyc-upload.has-preview {
  border-color: rgba(66, 184, 255, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 0 0 1px rgba(66, 184, 255, 0.12);
}

.kyc-upload__copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.kyc-upload__title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.kyc-upload__hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.kyc-upload__zone {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.kyc-upload__input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.kyc-upload__idle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 148px;
  padding: 20px 16px;
  border-radius: var(--radius-md);
  border: 1.5px dashed rgba(66, 184, 255, 0.32);
  background: rgba(8, 12, 24, 0.45);
  text-align: center;
}

html[data-theme="light"] .kyc-upload__idle {
  background: rgba(30, 90, 249, 0.035);
  border-color: rgba(30, 90, 249, 0.28);
}

.kyc-upload.has-preview .kyc-upload__idle {
  display: none;
}

.kyc-upload__glyph {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  color: #93c5fd;
  background: linear-gradient(145deg, rgba(30, 90, 249, 0.28), rgba(66, 184, 255, 0.12));
  border: 1px solid rgba(66, 184, 255, 0.22);
  box-shadow: 0 8px 20px rgba(30, 90, 249, 0.18);
}

.kyc-upload__glyph svg {
  width: 22px;
  height: 22px;
}

html[data-theme="light"] .kyc-upload__glyph {
  color: #1d4ed8;
  background: linear-gradient(145deg, rgba(30, 90, 249, 0.14), rgba(66, 184, 255, 0.08));
  box-shadow: none;
}

.kyc-upload__btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 132px;
  padding: 0 22px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #1e5af9 0%, #2f8dff 55%, #42b8ff 100%);
  color: #fff;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1;
  cursor: pointer;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.22) inset,
    0 10px 22px rgba(30, 90, 249, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.kyc-upload__btn:hover {
  filter: brightness(1.05);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.25) inset,
    0 12px 26px rgba(30, 90, 249, 0.42);
}

.kyc-upload__btn:active {
  transform: translateY(1px) scale(0.98);
}

.kyc-upload__btn:focus-visible {
  outline: 2px solid #93c5fd;
  outline-offset: 3px;
}

.kyc-upload__btn--replace {
  min-width: 0;
  min-height: 36px;
  padding: 0 14px;
  font-size: 0.78rem;
  border-radius: 10px;
  background: rgba(30, 90, 249, 0.16);
  color: #dbeafe;
  border: 1px solid rgba(66, 184, 255, 0.28);
  box-shadow: none;
}

.kyc-upload__btn--replace:hover {
  filter: none;
  background: rgba(30, 90, 249, 0.24);
  box-shadow: none;
}

html[data-theme="light"] .kyc-upload__btn--replace {
  color: #1e3a8a;
  background: rgba(30, 90, 249, 0.08);
  border-color: rgba(30, 90, 249, 0.2);
}

.kyc-upload__meta {
  margin: 0;
  font-size: 0.74rem;
  color: var(--text-muted);
}

.kyc-upload__ready {
  display: none;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.kyc-upload.has-preview .kyc-upload__ready {
  display: flex;
}

.kyc-upload__ready[hidden] {
  display: none !important;
}

.kyc-preview {
  display: none;
  width: 100%;
  max-height: 220px;
  object-fit: contain;
  border-radius: 14px;
  border: 1px solid rgba(66, 184, 255, 0.2);
  background: rgba(0, 0, 0, 0.28);
}

.kyc-preview:not([hidden]) {
  display: block;
}

.kyc-preview[hidden] {
  display: none !important;
}

html[data-theme="light"] .kyc-preview {
  background: rgba(15, 23, 42, 0.04);
  border-color: rgba(30, 90, 249, 0.16);
}

.kyc-upload__filebar {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.kyc-upload__filename {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
}

#kycFormStatus {
  min-height: 1.2em;
  margin: 0;
}

.btn--kyc-submit {
  width: 100%;
  min-height: 52px;
  padding: 14px 22px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, #1e5af9 0%, #2a78ff 48%, #42b8ff 100%);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.2) inset,
    0 12px 28px rgba(30, 90, 249, 0.38);
}

.btn--kyc-submit:not(:disabled):hover {
  filter: brightness(1.04);
}

.btn--kyc-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  filter: none;
  box-shadow: none;
}

@media (max-width: 380px) {
  .kyc-upload {
    padding: 14px;
  }

  .kyc-upload__idle {
    min-height: 132px;
    padding: 16px 12px;
  }

  .kyc-upload__btn {
    min-width: 118px;
  }
}

