/* STARDEX Crystal UI — glassmorphism + shine (loads after index.css) */
:root {
  --crystal-blur: 20px;
  --crystal-shine: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  --crystal-glow: 0 8px 32px rgba(0, 0, 0, 0.25);
}
html.dark {
  --bg: #08080a;
  --surface: rgba(255, 255, 255, 0.04);
  --surface2: rgba(255, 255, 255, 0.06);
  --surface3: rgba(255, 255, 255, 0.08);
  --text: #ffffff;
  --text2: #a8b0c8;
  --text3: #6b7280;
  --border: rgba(255, 255, 255, 0.1);
  --primary: #3b82f6;
  --secondary: #2563eb;
  --success: #34d399;
  --warning: #fbbf24;
  --error: #f87171;
  --accent: #60a5fa;
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-fade-up {
  animation: fade-up 0.65s ease-out both;
}
@keyframes crystal-shimmer {
  0%, 100% { opacity: 0.35; transform: translateX(-30%) rotate(12deg); }
  50% { opacity: 0.65; transform: translateX(30%) rotate(12deg); }
}
html.dark body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(255, 255, 255, 0.03) 48%,
    rgba(147, 197, 253, 0.06) 50%,
    rgba(255, 255, 255, 0.03) 52%,
    transparent 60%
  );
  animation: crystal-shimmer 8s ease-in-out infinite;
}
/* ═══════════════════════════════════════════════════════════════
   Crystal Glass Theme — shining black + glassmorphism
   ═══════════════════════════════════════════════════════════════ */

html.dark {
  background: #08080a !important;
}

html.dark body {
  background-color: #08080a !important;
  background-image:
    radial-gradient(ellipse 90% 70% at 50% 25%, rgba(255, 255, 255, 0.04) 0%, transparent 55%),
    radial-gradient(ellipse 70% 50% at 50% 8%, rgba(59, 130, 246, 0.09) 0%, transparent 52%),
    radial-gradient(ellipse 55% 45% at 95% 80%, rgba(37, 99, 235, 0.06) 0%, transparent 48%),
    radial-gradient(ellipse 45% 35% at 5% 70%, rgba(255, 255, 255, 0.025) 0%, transparent 42%),
    linear-gradient(180deg, #0c0c0e 0%, #08080a 45%, #050507 100%) !important;
  background-attachment: fixed !important;
  min-height: 100vh;
}

html.dark .min-h-screen.flex.justify-center {
  background: #08080a !important;
}

html.dark #app,
html.dark [id="app"] {
  position: relative;
  isolation: isolate;
  background: #08080a !important;
  box-shadow: none !important;
  min-height: 100vh;
}

html.dark #app::before,
html.dark [id="app"]::before {
  content: "";
  position: fixed;
  top: 8%;
  left: 50%;
  transform: translateX(-50%);
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.04) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

html.dark #app::after,
html.dark [id="app"]::after {
  content: "";
  position: fixed;
  top: 120px;
  right: -80px;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

html.dark #app > *:not(nav),
html.dark [id="app"] > *:not(nav) {
  position: relative;
  z-index: 1;
}

html.dark .shadow-\[0_0_80px_rgba\(0\,212\,170\,0\.08\)\] {
  box-shadow: none !important;
}

/* ── Crystal glass cards ── */
html.dark .bg-surface {
  background: rgba(255, 255, 255, 0.04) !important;
  backdrop-filter: blur(var(--crystal-blur)) saturate(1.5) !important;
  -webkit-backdrop-filter: blur(var(--crystal-blur)) saturate(1.5) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow:
    var(--crystal-glow),
    var(--crystal-shine),
    inset 0 -1px 0 rgba(0, 0, 0, 0.15) !important;
}

html.dark .bg-surface-2 {
  background: rgba(255, 255, 255, 0.06) !important;
  backdrop-filter: blur(var(--crystal-blur)) saturate(1.4) !important;
  -webkit-backdrop-filter: blur(var(--crystal-blur)) saturate(1.4) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.2),
    var(--crystal-shine) !important;
}

html.dark .bg-surface-3 {
  background: rgba(255, 255, 255, 0.08) !important;
  backdrop-filter: blur(16px) saturate(1.3) !important;
  -webkit-backdrop-filter: blur(16px) saturate(1.3) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: var(--crystal-shine) !important;
}

html.dark .bg-bg-dark,
html.dark .bg-bg-dark\/95 {
  background: transparent !important;
}

html.dark .sticky.top-0,
html.dark .bg-bg-dark\/95.backdrop-blur-sm {
  background: rgba(10, 10, 10, 0.65) !important;
  backdrop-filter: blur(24px) saturate(1.6) !important;
  -webkit-backdrop-filter: blur(24px) saturate(1.6) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2) !important;
}

html.dark .rounded-\[24px\],
html.dark .rounded-card {
  border-radius: 28px !important;
}

html.dark .portfolio-card {
  background: rgba(255, 255, 255, 0.05) !important;
  backdrop-filter: blur(24px) saturate(1.6) !important;
  -webkit-backdrop-filter: blur(24px) saturate(1.6) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1) !important;
  overflow: hidden;
}

html.dark .portfolio-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 45%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, transparent 100%);
  pointer-events: none;
  border-radius: inherit;
}

html.dark .portfolio-card .text-\[38px\],
html.dark .text-3xl.font-black,
html.dark .text-4xl.font-black {
  color: #ffffff !important;
  text-shadow: 0 0 48px rgba(255, 255, 255, 0.12);
}

html.dark .w-14.h-14.rounded-2xl.bg-surface {
  border-radius: 20px !important;
  background: rgba(255, 255, 255, 0.05) !important;
  backdrop-filter: blur(16px) saturate(1.4) !important;
  -webkit-backdrop-filter: blur(16px) saturate(1.4) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
}

html.dark .w-14.h-14.rounded-2xl.bg-surface:active {
  background: rgba(255, 255, 255, 0.03) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
}

html.dark .w-10.h-10.rounded-xl.bg-surface-2 {
  background: rgba(255, 255, 255, 0.06) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 16px !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}

/* Avatar ring shine */
html.dark .w-11.h-11.rounded-full img,
html.dark .w-11.h-11.rounded-xl img {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1), 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Coin / asset icon boxes */
html.dark [class*="rounded-"][class*="font-black"][style*="background"] {
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
}

/* List rows */
html.dark #home-coins a,
html.dark #home-holdings > div,
html.dark a.flex.items-center.gap-3.py-3 {
  border-color: rgba(255, 255, 255, 0.05) !important;
  transition: background 0.2s ease;
}

html.dark #home-coins a:hover,
html.dark a.flex.items-center.gap-3.py-3:hover {
  background: rgba(255, 255, 255, 0.04) !important;
  backdrop-filter: blur(8px) !important;
  border-radius: 16px;
}

/* Progress bars shine */
html.dark .bg-white\/10.rounded-full {
  background: rgba(255, 255, 255, 0.08) !important;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3) !important;
}

html.dark .h-1\.5 .h-full.rounded-full,
html.dark .h-1 .h-full.rounded-full {
  box-shadow: 0 0 8px currentColor;
}

/* Inline SVG stroke overrides */
html.dark [stroke="#00D4AA"],
html.dark [stroke="#00d4aa"],
html.dark [stroke="#3B82F6"],
html.dark [stroke="#3b82f6"] {
  stroke: var(--primary) !important;
}

html.dark [fill="#00D4AA"],
html.dark [fill="#00d4aa"] {
  fill: var(--primary) !important;
}

html.dark .text-\[\#00D4AA\],
html.dark .text-\[\#3B82F6\] {
  color: var(--primary) !important;
}

html.dark .bg-\[\#00D4AA\],
html.dark .bg-\[\#3B82F6\] {
  background: linear-gradient(135deg, #4f8ff7 0%, #3b82f6 50%, #2563eb 100%) !important;
}

html.dark .focus\:ring-\[\#00D4AA\]\/20:focus,
html.dark .focus\:ring-\[\#3B82F6\]\/20:focus {
  --tw-ring-color: color-mix(in srgb, var(--primary) 25%, transparent) !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2) !important;
}

/* ── Floating crystal nav pill ── */
@keyframes nav-crystal-shine {
  0%, 100% {
    box-shadow:
      0 8px 32px rgba(0, 0, 0, 0.35),
      inset 0 1px 0 rgba(255, 255, 255, 0.14),
      inset 0 -1px 0 rgba(0, 0, 0, 0.1);
  }
  50% {
    box-shadow:
      0 12px 40px rgba(0, 0, 0, 0.4),
      inset 0 1px 0 rgba(255, 255, 255, 0.18),
      0 0 24px rgba(59, 130, 246, 0.06);
  }
}

@keyframes center-crystal-glow {
  0%, 100% {
    box-shadow:
      0 4px 20px rgba(59, 130, 246, 0.45),
      inset 0 1px 0 rgba(255, 255, 255, 0.3);
  }
  50% {
    box-shadow:
      0 6px 28px rgba(59, 130, 246, 0.6),
      0 0 28px rgba(59, 130, 246, 0.2),
      inset 0 1px 0 rgba(255, 255, 255, 0.35);
  }
}

/* ── Bottom nav — centered pill (fixes Tailwind translate conflict) ── */
html.dark nav.app-bottom-nav:not(.crystal-bottom-nav),
html.dark nav.fixed.bottom-0 {
  position: fixed !important;
  bottom: 20px !important;
  left: 0 !important;
  right: 0 !important;
  translate: none !important;
  --tw-translate-x: 0 !important;
  --tw-translate-y: 0 !important;
  transform: none !important;
  width: min(390px, calc(100vw - 40px)) !important;
  max-width: 390px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  height: 64px !important;
  z-index: 50 !important;
  background: rgba(20, 20, 20, 0.55) !important;
  backdrop-filter: blur(28px) saturate(1.8) !important;
  -webkit-backdrop-filter: blur(28px) saturate(1.8) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 9999px !important;
  animation: nav-crystal-shine 5s ease-in-out infinite;
  padding: 0 10px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-around !important;
}

html:not(.dark) nav.app-bottom-nav:not(.crystal-bottom-nav),
html:not(.dark) nav.fixed.bottom-0 {
  position: fixed !important;
  bottom: 20px !important;
  left: 0 !important;
  right: 0 !important;
  translate: none !important;
  --tw-translate-x: 0 !important;
  --tw-translate-y: 0 !important;
  transform: none !important;
  width: min(390px, calc(100vw - 40px)) !important;
  max-width: 390px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  height: 64px !important;
  z-index: 50 !important;
  border-radius: 9999px !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12) !important;
  backdrop-filter: blur(20px) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-around !important;
}

html.dark nav.fixed.bottom-0 > a > span,
html.dark nav.crystal-bottom-nav > a > span {
  display: none !important;
}

html.dark nav.fixed.bottom-0 > a,
html.dark nav.crystal-bottom-nav > a {
  flex: 1;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

html.dark nav.fixed.bottom-0 > a.text-primary:not(#nav-trade) svg,
html.dark nav.crystal-bottom-nav > a.text-primary:not(#nav-trade) svg {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  padding: 10px;
  width: 40px !important;
  height: 40px !important;
  stroke: #0a0a0a !important;
  color: #0a0a0a !important;
  box-shadow:
    0 4px 12px rgba(255, 255, 255, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 1) !important;
}

html.dark nav.fixed.bottom-0 > a.text-primary:not(#nav-trade),
html.dark nav.crystal-bottom-nav > a.text-primary:not(#nav-trade) {
  color: #ffffff !important;
}

html.dark nav.fixed.bottom-0 #nav-trade > div,
html.dark nav.crystal-bottom-nav #nav-trade > div {
  width: 48px !important;
  height: 48px !important;
  min-height: 48px !important;
  border-radius: 50% !important;
  background: linear-gradient(145deg, #5b9cf8 0%, #3b82f6 50%, #2563eb 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  animation: center-crystal-glow 3s ease-in-out infinite;
}

html.dark nav.fixed.bottom-0 #nav-trade svg,
html.dark nav.crystal-bottom-nav #nav-trade svg {
  stroke: #ffffff !important;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

html.dark nav.fixed.bottom-0 #nav-trade span,
html.dark nav.crystal-bottom-nav #nav-trade span {
  display: none !important;
}




/* Banking-style wallet card */
html.dark .bank-wallet-card {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  padding: 1.3rem 1.25rem 1.2rem;
  min-height: 124px;
  background:
    radial-gradient(ellipse 120% 80% at 100% 0%, rgba(96, 165, 250, 0.35) 0%, transparent 55%),
    radial-gradient(ellipse 80% 60% at 0% 100%, rgba(37, 99, 235, 0.28) 0%, transparent 50%),
    linear-gradient(135deg, #1a2744 0%, #162033 42%, #0f172a 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 14px 36px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
html.dark .bank-wallet-card__shine {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, 0.08) 50%, transparent 60%);
}
html.dark .bank-wallet-card__pattern {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background-image: radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.35) 0.5px, transparent 0.6px);
  background-size: 14px 14px;
}
html.dark .bank-wallet-card__top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.15rem;
}
html.dark .bank-wallet-card__chip {
  width: 42px;
  height: 30px;
  border-radius: 7px;
  background: linear-gradient(135deg, #f5d76e 0%, #d4a72c 55%, #f0e6a8 100%);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}
html.dark .bank-wallet-card__brand {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
}
html.dark .bank-wallet-card__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 100%;
}
html.dark .bank-wallet-card__label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 0.35rem;
}
html.dark .bank-wallet-card--with-actions {
  display: flex;
  flex-direction: column;
  min-height: 172px;
  padding: 1.3rem 1.25rem 1.2rem;
}
html.dark .bank-wallet-card--with-actions .bank-wallet-card__balance {
  margin-bottom: 0;
  flex: 1;
}
html.dark .bank-wallet-card__actions {
  margin-top: auto;
  padding-top: 0.95rem;
}

html.dark .bank-wallet-card__balance {
  font-size: 2.125rem;
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin-bottom: 0;
}
html.dark .bank-wallet-card__footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
html.dark .bank-wallet-card__meta-label {
  font-size: 11.25px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.42);
  margin-bottom: 0.15rem;
}
html.dark .bank-wallet-card__meta-value {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
}



/* Dashboard hero balance card */
html.dark .bank-wallet-card--hero {
  border-radius: 28px;
  padding: 1.35rem 1.35rem 1.5rem;
  min-height: 0;
  background:
    radial-gradient(ellipse 90% 70% at 100% 100%, rgba(59, 66, 245, 0.55) 0%, transparent 58%),
    radial-gradient(ellipse 50% 40% at 85% 90%, rgba(96, 165, 250, 0.35) 0%, transparent 50%),
    linear-gradient(155deg, #141414 0%, #0f0f12 45%, #0a0a0c 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
html.dark .bank-wallet-card--hero .bank-wallet-card__glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 92% 88%, rgba(59, 130, 246, 0.45) 0%, transparent 42%);
}
html.dark .dash-profile-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
html.dark .dash-profile-bar .bank-wallet-card__user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}
html.dark .dash-profile-bar .bank-wallet-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #3a3a3a;
  flex-shrink: 0;
}
html.dark .dash-profile-bar .bank-wallet-card__name {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
html.dark .dash-profile-bar .bank-wallet-card__notify {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0;
  margin: 0;
  font: inherit;
  cursor: default;
  pointer-events: none;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-decoration: none;
  transition: background 0.15s ease;
  -webkit-appearance: none;
  appearance: none;
}
html.dark .dash-profile-bar .bank-wallet-card__notify--active::after {
  content: '';
  position: absolute;
  top: 9px;
  right: 10px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ef4444;
  border: 1.5px solid #141414;
}
html.dark .bank-wallet-card--hero .bank-wallet-card__balance-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.4rem;
}
html.dark .bank-wallet-card--hero .bank-wallet-card__label {
  margin-bottom: 0;
  text-transform: none;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  color: rgba(255, 255, 255, 0.45);
}
html.dark .bank-wallet-card--hero .bank-wallet-card__eye {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  line-height: 0;
}
html.dark .bank-wallet-card--hero .bank-wallet-card__balance {
  font-size: 2.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1.65rem;
}
html.dark .bank-wallet-card--hero .bank-wallet-card__quick-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}
html.dark .bank-wallet-card--hero .bank-wallet-card__quick-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: inherit;
}
html.dark .bank-wallet-card--hero .bank-wallet-card__quick-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: transform 0.15s ease, background 0.15s ease;
}
html.dark .bank-wallet-card--hero .bank-wallet-card__quick-item:active .bank-wallet-card__quick-btn {
  transform: scale(0.94);
}
html.dark .bank-wallet-card--hero .bank-wallet-card__quick-label {
  font-size: 11px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.72);
  text-align: center;
  line-height: 1.2;
}

html.dark .dash-plan-stats {
  margin-top: 50px;
  position: relative;
  z-index: 2;
}
html.dark .dash-plan-stat-label {
  margin-bottom: 0.25rem;
  font-size: 11.9px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.5);
  white-space: nowrap;
  text-align: center;
  line-height: 1.2;
}

html.dark .dash-finance-stats {
  margin-top: -40px;
  position: relative;
  z-index: 1;
}



/* Dashboard earning calculator */
html.dark .dash-earning-calculator {
  margin-top: 30px;
}
html.dark .dash-earning-calculator__title {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  font-weight: 800;
  color: #ffffff;
}
html.dark .dash-earning-calculator__subtitle {
  margin: 0 0 1rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.45);
}
html.dark .dash-earning-calculator__field {
  margin-bottom: 0.85rem;
}
html.dark .dash-earning-calculator__label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
}
html.dark .dash-earning-calculator__select-wrap,
html.dark .dash-earning-calculator__amount-wrap {
  position: relative;
}
html.dark .dash-earning-calculator__select,
html.dark .dash-earning-calculator__input {
  width: 100%;
  box-sizing: border-box;
  height: 3rem;
  padding: 0 2.75rem 0 1rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 600;
  appearance: none;
  -webkit-appearance: none;
}
html.dark .dash-earning-calculator__input {
  padding-right: 3.25rem;
}
html.dark .dash-earning-calculator__select:focus,
html.dark .dash-earning-calculator__input:focus {
  outline: none;
  border-color: rgba(59, 130, 246, 0.5);
}
html.dark .dash-earning-calculator__select-icon {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.4);
  pointer-events: none;
}
html.dark .dash-earning-calculator__currency {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.8rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.45);
  pointer-events: none;
}
html.dark .dash-earning-calculator__results {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin: 1rem 0;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
html.dark .dash-earning-calculator__result {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 0.75rem;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
html.dark .dash-earning-calculator__result-label {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 500;
}
html.dark .dash-earning-calculator__result-value {
  font-size: 1rem;
  font-weight: 800;
  color: #ffffff;
}
html.dark .dash-earning-calculator__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 3rem;
  border-radius: 0.75rem;
  background: linear-gradient(90deg, #3b82f6, #1d4ed8);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.25);
}
html.dark .dash-earning-calculator__cta:active {
  transform: scale(0.98);
}
@media (max-width: 768px) {
  html.dark .dash-earning-calculator__select,
  html.dark .dash-earning-calculator__input {
    font-size: 16px;
  }
}


/* Crypto watchlist */
html.dark .crypto-watchlist {
  margin-top: calc(1.5rem + 15px);
  margin-left: -0.25rem;
  margin-right: -0.25rem;
}
html.dark .crypto-watchlist__head {
  display: flex;
  align-items: center;
  margin-bottom: 0.65rem;
  padding: 0 0.25rem;
}
html.dark .crypto-watchlist__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
}
html.dark .crypto-watchlist__viewport {
  overflow: hidden;
  padding-bottom: 0.15rem;
}
html.dark .crypto-watchlist__track {
  display: flex;
  width: max-content;
  will-change: transform;
}
html.dark .crypto-watchlist__row {
  display: flex;
  flex-shrink: 0;
  gap: 0.75rem;
}
html.dark .crypto-watchlist__track--ready {
  animation: crypto-watchlist-slide var(--crypto-watchlist-duration, 42s) linear infinite;
}
html.dark .crypto-watchlist__viewport:hover .crypto-watchlist__track--ready {
  animation-play-state: paused;
}
@keyframes crypto-watchlist-slide {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}
html.dark .crypto-watchlist__card {
  position: relative;
  overflow: hidden;
  flex: 0 0 158px;
  width: 158px;
  padding: 0.85rem 0.8rem 0.9rem;
  border-radius: 18px;
  background:
    radial-gradient(ellipse 90% 70% at 50% 110%, color-mix(in srgb, var(--coin-color) 38%, transparent) 0%, transparent 62%),
    linear-gradient(160deg, rgba(28, 28, 32, 0.98) 0%, rgba(14, 14, 17, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
html.dark .crypto-watchlist__card--loading {
  min-height: 148px;
}
html.dark .crypto-watchlist__card-top {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.55rem;
}
html.dark .crypto-watchlist__icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
html.dark .crypto-watchlist__icon--fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  background: color-mix(in srgb, var(--coin-color) 45%, #1a1a1f);
}
html.dark .crypto-watchlist__name {
  font-size: 0.82rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 88px;
}
html.dark .crypto-watchlist__symbol {
  font-size: 0.68rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.38);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
html.dark .crypto-watchlist__chart {
  height: 38px;
  margin-bottom: 0.55rem;
}
html.dark .crypto-watchlist__spark {
  display: block;
  width: 100%;
  height: 100%;
}
html.dark .crypto-watchlist__price {
  font-size: 1.02rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin-bottom: 0.45rem;
  font-variant-numeric: tabular-nums;
}
html.dark .crypto-watchlist__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
html.dark .crypto-watchlist__badge--up {
  color: #34d399;
  background: rgba(52, 211, 153, 0.14);
}
html.dark .crypto-watchlist__badge--down {
  color: #f87171;
  background: rgba(248, 113, 113, 0.14);
}
html.dark .crypto-watchlist__badge--flat {
  color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.08);
}
html.dark .crypto-watchlist__skel {
  display: block;
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(255,255,255,0.05) 25%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.05) 75%);
  background-size: 200% 100%;
  animation: crypto-watchlist-shimmer 1.2s ease-in-out infinite;
}
html.dark .crypto-watchlist__skel--icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
}
html.dark .crypto-watchlist__skel--line {
  height: 10px;
  margin-bottom: 6px;
}
html.dark .crypto-watchlist__skel--chart {
  height: 38px;
  margin: 10px 0;
}
html.dark .crypto-watchlist__skel--price {
  width: 72%;
  height: 14px;
  margin-bottom: 8px;
}
html.dark .crypto-watchlist__skel--badge {
  width: 48%;
  height: 18px;
  border-radius: 999px;
}
@keyframes crypto-watchlist-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Referrals — referral link box without border */
html.dark .ref-link-box {
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: none !important;
}
html.dark .ref-link-box input,
html.dark .ref-link-box #refLink {
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
  border-radius: 0 !important;
}

/* ── Crystal inputs ── */
html.dark input,
html.dark select,
html.dark textarea {
  background: rgba(255, 255, 255, 0.04) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 16px !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
  color: #ffffff !important;
}

html.dark input:focus,
html.dark select:focus,
html.dark textarea:focus {
  border-color: rgba(59, 130, 246, 0.5) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 0 3px rgba(59, 130, 246, 0.12) !important;
}

html.dark input::placeholder,
html.dark textarea::placeholder {
  color: #888888 !important;
}

/* Buy plan — amount input (after global input rules so overrides stick) */
html.dark .plan-amount-input,
html.dark .plan-amount-input:hover {
  margin-bottom: 20px !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-width: 1px !important;
  box-shadow: none !important;
  outline: none !important;
}
html.dark .plan-amount-input:focus,
html.dark .plan-amount-input:focus:hover {
  border: 1px solid rgba(59, 130, 246, 0.45) !important;
  box-shadow: none !important;
  outline: none !important;
}

/* Period / tab selectors */
html.dark .bg-surface-2.rounded-pill,
html.dark .bg-surface-2.rounded-card.p-1 {
  background: rgba(255, 255, 255, 0.05) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 9999px !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

html.dark .period-btn.bg-primary {
  background: linear-gradient(135deg, #4f8ff7 0%, #3b82f6 100%) !important;
  color: #ffffff !important;
  border-radius: 9999px !important;
  box-shadow: 0 2px 12px rgba(59, 130, 246, 0.4) !important;
}

/* AI signal card */
html.dark .from-secondary\/15.to-primary\/\[0\.08\] {
  background: rgba(255, 255, 255, 0.04) !important;
  backdrop-filter: blur(20px) saturate(1.5) !important;
  -webkit-backdrop-filter: blur(20px) saturate(1.5) !important;
  border: 1px solid rgba(37, 99, 235, 0.2) !important;
  border-radius: 28px !important;
  box-shadow:
    0 4px 24px rgba(37, 99, 235, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}

/* Primary CTA — luminous crystal button */
html.dark .bg-primary,
html.dark button.bg-primary,
html.dark a.bg-primary {
  background: linear-gradient(145deg, rgba(91, 156, 248, 0.9) 0%, rgba(59, 130, 246, 0.95) 50%, rgba(37, 99, 235, 0.9) 100%) !important;
  backdrop-filter: blur(8px) !important;
  color: #ffffff !important;
  border-radius: 18px !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  box-shadow:
    0 4px 20px rgba(59, 130, 246, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
}

html.dark .bg-primary:active,
html.dark button.bg-primary:active {
  box-shadow:
    0 2px 10px rgba(59, 130, 246, 0.3),
    inset 0 2px 4px rgba(0, 0, 0, 0.2) !important;
}

html.dark .bg-primary.text-bg-dark {
  color: #ffffff !important;
}

/* Success / error badges */
html.dark .bg-success\/15 {
  background: rgba(52, 211, 153, 0.15) !important;
  box-shadow: inset 0 0 12px rgba(52, 211, 153, 0.08);
}

html.dark .text-success {
  color: var(--success) !important;
  text-shadow: 0 0 20px rgba(52, 211, 153, 0.3);
}

html.dark .bg-error\/15 {
  box-shadow: inset 0 0 12px rgba(248, 113, 113, 0.08);
}

html.dark .bg-secondary\/15,
html.dark .bg-secondary\/20 {
  box-shadow: inset 0 0 12px rgba(37, 99, 235, 0.1);
}

/* Section headings */
html.dark h1,
html.dark h2.text-xl {
  letter-spacing: -0.02em;
}

html.dark .text-primary {
  text-shadow: 0 0 24px rgba(59, 130, 246, 0.25);
}

/* Modals & bottom sheets — crystal panels */
html.dark #bottom-sheet-panel,
html.dark #modal-panel {
  background: rgba(20, 20, 20, 0.75) !important;
  backdrop-filter: blur(28px) saturate(1.6) !important;
  -webkit-backdrop-filter: blur(28px) saturate(1.6) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow:
    0 -8px 40px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}

html.dark #bottom-sheet-overlay,
html.dark #modal-overlay {
  backdrop-filter: blur(6px) !important;
  -webkit-backdrop-filter: blur(6px) !important;
}

html.dark #toast-container > div {
  background: rgba(20, 20, 20, 0.8) !important;
  backdrop-filter: blur(20px) saturate(1.5) !important;
  -webkit-backdrop-filter: blur(20px) saturate(1.5) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}

/* Auth pages */
html.dark .min-h-screen.bg-bg-dark {
  background: transparent !important;
}

/* Decorative radial gradients in inline styles */
html.dark [style*="radial-gradient"] {
  opacity: 0.85;
}

/* Toggle switches */
html.dark .peer-checked\:bg-primary {
  background: linear-gradient(135deg, #4f8ff7, #3b82f6) !important;
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.4) !important;
}

/* Scroll padding for floating nav */
html.dark body {
  padding-bottom: 0;
}

html.dark .pb-24 {
  padding-bottom: 6.5rem !important;
}

/* Dividers */
html.dark .border-white\/5,
html.dark .divide-white\/5 > :not(:last-child) {
  border-color: rgba(255, 255, 255, 0.06) !important;
}

/* Shadow utilities */
html.dark .shadow-lg {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4) !important;
}

html.dark .shadow-primary,
html.dark .shadow-primary\/5,
html.dark .shadow-primary\/10,
html.dark .shadow-primary\/20 {
  box-shadow: 0 4px 24px rgba(59, 130, 246, 0.25) !important;
}

/* FAQ / accordion buttons */
html.dark .faq-toggle,
html.dark button.bg-surface-2 {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
}

html.dark .faq-toggle:hover {
  background: rgba(255, 255, 255, 0.05) !important;
}

/* Chart canvas container */
html.dark canvas {
  filter: drop-shadow(0 2px 8px rgba(59, 130, 246, 0.1));
}

/* Light mode pill nav */
html:not(.dark) nav.fixed.bottom-0 > a > span,
html:not(.dark) nav.crystal-bottom-nav > a > span {
  display: none !important;
}

html:not(.dark) nav.fixed.bottom-0 #nav-trade > div,
html:not(.dark) nav.crystal-bottom-nav #nav-trade > div {
  border-radius: 50% !important;
  background: linear-gradient(135deg, #4f8ff7, #3b82f6) !important;
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.35) !important;
}

html:not(.dark) nav.fixed.bottom-0 #nav-trade svg,
html:not(.dark) nav.crystal-bottom-nav #nav-trade svg {
  stroke: #ffffff !important;
}

html:not(.dark) nav.fixed.bottom-0 > a.text-primary:not(#nav-trade) svg,
html:not(.dark) nav.crystal-bottom-nav > a.text-primary:not(#nav-trade) svg {
  background: var(--primary);
  border-radius: 50%;
  padding: 10px;
  width: 40px !important;
  height: 40px !important;
  stroke: #ffffff !important;
}

/* ── Global page tuning — all screens ── */
html.dark .rounded-pill.bg-surface-2,
html.dark .rounded-pill.bg-primary {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
}

html.dark .rounded-pill.bg-primary {
  background: linear-gradient(135deg, #4f8ff7, #3b82f6) !important;
  box-shadow: 0 2px 12px rgba(59, 130, 246, 0.35) !important;
}

html.dark .bg-surface.border.rounded-xl,
html.dark .bg-surface.border.rounded-\[24px\] {
  background: rgba(255, 255, 255, 0.04) !important;
  backdrop-filter: blur(20px) saturate(1.5) !important;
  -webkit-backdrop-filter: blur(20px) saturate(1.5) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}

html.dark .rounded-t-3xl.bg-surface,
html.dark .rounded-t-\[32px\].bg-surface {
  background: rgba(20, 20, 20, 0.8) !important;
  backdrop-filter: blur(28px) saturate(1.6) !important;
  -webkit-backdrop-filter: blur(28px) saturate(1.6) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow:
    0 -8px 40px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}

html.dark a[class*="bg-primary"],
html.dark button[class*="bg-primary"]:not(.period-btn) {
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.15);
}

html.dark .border-primary\/20 {
  border-color: rgba(59, 130, 246, 0.25) !important;
}

html.dark .bg-primary\/15 {
  background: rgba(59, 130, 246, 0.12) !important;
  box-shadow: inset 0 0 16px rgba(59, 130, 246, 0.06);
}

html.dark .bg-secondary\/15,
html.dark .bg-secondary\/20 {
  background: rgba(37, 99, 235, 0.12) !important;
}

html.dark .text-white\/40 {
  color: #888888 !important;
}

html.dark .text-white\/50 {
  color: #888888 !important;
}

html.dark .text-white\/30 {
  color: #666666 !important;
}

html.dark .text-white\/60,
html.dark .text-white\/70 {
  color: #aaaaaa !important;
}

html.dark h1,
html.dark h2,
html.dark .font-bold,
html.dark .font-black {
  color: #ffffff;
}

html.dark .text-primary {
  text-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

/* Sign-in / auth submit buttons */
html.dark .w-full.bg-primary,
html.dark .w-full[class*="bg-primary"] {
  background: linear-gradient(145deg, #5b9cf8 0%, #3b82f6 50%, #2563eb 100%) !important;
  box-shadow:
    0 6px 24px rgba(59, 130, 246, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
}

/* Transaction / list cards */
html.dark .flex.items-center.gap-3.p-4.rounded-xl,
html.dark .flex.items-center.gap-4.p-4.rounded-2xl {
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

html.dark .flex.items-center.gap-3.p-4.rounded-xl:hover,
html.dark .flex.items-center.gap-4.p-4.rounded-2xl:hover {
  background: rgba(255, 255, 255, 0.04) !important;
}

/* Image avatars in lists */
html.dark img.rounded-full {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.1),
    0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Universal crystal borders */
html.dark .border-white\/5,
html.dark .border-white\/8,
html.dark .border-white\/10,
html.dark .border-white\/\[0\.08\] {
  border-color: rgba(255, 255, 255, 0.1) !important;
}

/* Status badges — crystal pills */
html.dark .bg-success\/15,
html.dark .bg-error\/15,
html.dark .bg-warning\/15,
html.dark .bg-secondary\/15,
html.dark .bg-secondary\/20,
html.dark .bg-primary\/15 {
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

html.dark .shadow-lg,
html.dark .shadow-2xl {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25) !important;
}

html.dark .shadow-primary,
html.dark .shadow-primary\/5,
html.dark .shadow-primary\/10,
html.dark .shadow-primary\/20 {
  box-shadow: 0 4px 24px rgba(59, 130, 246, 0.2) !important;
}

/* Coin icon crystal tiles */
html.dark [class*="rounded-"][class*="font-black"][style*="background"] {
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    0 2px 8px rgba(0, 0, 0, 0.2) !important;
}

/* Section labels */
html.dark .text-\[11px\].text-white\/30,
html.dark .text-xs.text-white\/40 {
  color: #888888 !important;
  letter-spacing: 0.04em;
}

/* Dividers — crystal line */
html.dark .border-b.border-white\/5,
html.dark .divide-white\/5 > :not(:last-child) {
  border-color: rgba(255, 255, 255, 0.06) !important;
}

/* ── Landing / home page crystal ── */
html.dark .home-page {
  position: relative;
  width: 100%;
  height: 100dvh;
  min-height: 100dvh;
  padding: 0;
  box-sizing: border-box;
  overflow: hidden;
  background: transparent !important;
}
html.dark .crystal-page-box:has(.home-page) {
  height: 100dvh;
  min-height: 100dvh;
  overflow: hidden;
}
html.dark .home-space {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
html.dark .home-hero {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-height: 100%;
  padding: 1.75rem 1.25rem;
  box-sizing: border-box;
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
html.dark .home-hero-copy {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  width: 100%;
  gap: 1.2rem;
  padding-bottom: 1.25rem;
}
html.dark .home-hero-copy > .flex.items-center {
  margin-bottom: 0 !important;
}
html.dark .home-hero-spacer {
  flex: 1 1 0;
  width: 100%;
}
html.dark .home-hero .hero-title {
  font-size: 38px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.5px;
  color: #ffffff;
  margin: 1rem 0 0;
  text-shadow: 0 0 40px rgba(59, 130, 246, 0.2), 0 0 80px rgba(37, 99, 235, 0.1);
}
html.dark .home-hero .hero-subline {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.42;
  color: #ffffff;
  margin: 0;
}
html.dark .home-hero .hero-tagline {
  font-size: 17px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.55);
  margin: 0;
  max-width: 100%;
  padding: 0 0.25rem;
}
html.dark .home-actions {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  width: 100%;
  max-width: 320px;
  margin: 1.5rem auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
html.dark .home-actions a svg {
  width: 20px !important;
  height: 20px !important;
}
html.dark .home-actions a {
  font-size: 18px !important;
  height: 54px !important;
  min-height: 54px !important;
}
html.dark .home-hero .size-30 {
  width: 132px !important;
  height: 132px !important;
}
html.dark .hero-gradient {
  display: inline-block;
  margin-top: 0;
  line-height: 1.1;
  font-size: 34px;
  font-weight: 900;
  white-space: nowrap;
  background: linear-gradient(90deg, #60a5fa, #3b82f6, #2563eb, #60a5fa) !important;
  background-size: 200% 200% !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: transparent !important;
  animation: home-gradient-move 4s ease infinite;
  filter: drop-shadow(0 0 16px rgba(59, 130, 246, 0.45));
}

/* Homepage — lock same sizes/spacing on mobile as desktop */
@media (max-width: 768px) {
  html.dark .home-hero {
    padding: 1.75rem 1.25rem !important;
  }
  html.dark .home-hero-copy {
    gap: 1.2rem !important;
    padding-bottom: 1.25rem !important;
  }
  html.dark .home-hero .hero-title {
    font-size: 38px !important;
    line-height: 1.1 !important;
    margin-top: 1rem !important;
  }
  html.dark .home-hero .hero-gradient {
    font-size: 34px !important;
    line-height: 1.1 !important;
  }
  html.dark .home-hero .hero-subline {
    font-size: 28px !important;
    line-height: 1.42 !important;
  }
  html.dark .home-hero .hero-tagline {
    font-size: 17px !important;
    line-height: 1.65 !important;
  }
  html.dark .home-hero .size-30 {
    width: 132px !important;
    height: 132px !important;
  }
  html.dark .home-actions {
    max-width: 320px !important;
    margin-top: 1.5rem !important;
  }
  html.dark .home-actions a {
    font-size: 18px !important;
    height: 54px !important;
    min-height: 54px !important;
  }
  html.dark .home-actions a svg {
    width: 20px !important;
    height: 20px !important;
  }
}

html.dark .hero-highlight {
  display: inline-block;
  background: linear-gradient(90deg, #e8eaed, #ffffff) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: transparent !important;
}
html.dark .home-actions a.bg-surface-2 {
  backdrop-filter: blur(16px) saturate(1.4) !important;
  -webkit-backdrop-filter: blur(16px) saturate(1.4) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 4px 20px rgba(0, 0, 0, 0.2) !important;
}
html.dark .space-stars {
  position: absolute;
  inset: 0;
}
html.dark .space-stars--fill::before,
html.dark .space-stars--fill::after,
html.dark .space-stars--far::before,
html.dark .space-stars--far::after,
html.dark .space-stars--mid::before,
html.dark .space-stars--near::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: transparent;
}
html.dark .space-stars--far::before {
  box-shadow: 24px 18px #fff, 132px 68px #fff, 248px 52px #fff, 78px 142px #fff, 198px 128px #fff;
  animation: home-space-twinkle 5s ease-in-out infinite;
}
html.dark .space-stars--far::after {
  box-shadow: 36px 32px rgba(255, 255, 255, 0.45), 144px 92px rgba(255, 255, 255, 0.35);
  animation: home-space-twinkle 7s ease-in-out infinite reverse;
}
html.dark .space-stars--mid::before {
  box-shadow: 64px 38px rgba(255, 255, 255, 0.8), 300px 98px #fff, 208px 138px rgba(255, 255, 255, 0.8);
  animation: home-space-twinkle 4s ease-in-out infinite;
}
html.dark .space-stars--near::before {
  width: 3px;
  height: 3px;
  box-shadow: 44px 24px #fff, 272px 76px rgba(255, 255, 255, 0.85), 160px 140px #fff;
  animation: home-space-twinkle 3s ease-in-out infinite;
}
html.dark .space-stars--fill::before {
  box-shadow: 335px 65px rgba(255, 255, 255, 0.5), 52px 310px #fff, 287px 222px rgba(255, 255, 255, 0.75), 191px 184px #fff, 202px 150px #fff;
  animation: home-space-twinkle 6s ease-in-out infinite;
}
html.dark .space-stars--fill::after {
  box-shadow: 394px 381px #fff, 272px 239px rgba(255, 255, 255, 0.5), 331px 38px rgba(255, 255, 255, 0.75), 300px 303px #fff;
  animation: home-space-twinkle 8s ease-in-out infinite reverse;
}
html.dark .space-shooting-star {
  position: absolute;
  top: 25%;
  left: -100px;
  width: 90px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.95), transparent);
  border-radius: 2px;
  opacity: 0;
  transform: rotate(-32deg);
  animation: home-shooting-star 8s ease-in-out infinite;
}
html.dark .space-shooting-star--2 {
  top: 45%;
  animation-delay: 4s;
  width: 70px;
  animation-duration: 10s;
}
html.dark .space-shooting-star--3 {
  top: 65%;
  animation-delay: 6.5s;
  width: 55px;
  animation-duration: 12s;
}
@keyframes home-gradient-move {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes home-space-twinkle {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}
@keyframes home-shooting-star {
  0%, 72%, 100% { opacity: 0; transform: rotate(-32deg) translateX(0); }
  76% { opacity: 1; }
  88% { opacity: 0; transform: rotate(-32deg) translateX(460px); }
}
html.dark #app .absolute.rounded-full[style*="radial-gradient"] {
  filter: blur(2px);
  opacity: 0.9;
}

/* ── Global page box (all pages) — almost black crystal shine ── */
html.dark .crystal-page-box {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 100dvh;
  box-sizing: border-box;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  background:
    radial-gradient(ellipse 90% 55% at 50% -5%, rgba(59, 130, 246, 0.1) 0%, transparent 58%),
    radial-gradient(ellipse 55% 45% at 100% 100%, rgba(37, 99, 235, 0.07) 0%, transparent 52%),
    linear-gradient(180deg, #0e0e10 0%, #0a0a0c 48%, #060608 100%) !important;
  backdrop-filter: blur(22px) saturate(1.5) !important;
  -webkit-backdrop-filter: blur(22px) saturate(1.5) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 0 80px rgba(255, 255, 255, 0.02),
    0 12px 40px rgba(0, 0, 0, 0.5) !important;
}
html.dark .crystal-page-box::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 10;
  border-radius: inherit;
  background: linear-gradient(
    105deg,
    transparent 36%,
    rgba(255, 255, 255, 0.035) 46%,
    rgba(147, 197, 253, 0.08) 50%,
    rgba(255, 255, 255, 0.035) 54%,
    transparent 64%
  );
  animation: crystal-shimmer 8s ease-in-out infinite;
}
html.dark .crystal-page-box::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  pointer-events: none;
  z-index: 11;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2) 50%, transparent);
  opacity: 0.75;
}
html.dark .crystal-page-box > * {
  position: relative;
  z-index: 1;
}
@media (max-width: 768px) {
  html.dark .crystal-page-box {
    border: none !important;
    border-radius: 0 !important;
  }
  html.dark .crystal-page-box::before,
  html.dark .crystal-page-box::after {
    border-radius: 0;
  }
}

/* App shell wrapper */
html.dark .crystal-app-shell {
  position: relative;
  isolation: isolate;
  background: #08080a !important;
  box-shadow: none !important;
  min-height: 100vh;
}

/* Scrollbars — subtle crystal */
html.dark ::-webkit-scrollbar { width: 6px; height: 6px; }
html.dark ::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
}
html.dark ::-webkit-scrollbar-track { background: transparent; }

/* Tables / data rows */
html.dark table,
html.dark .table {
  border-collapse: separate;
  border-spacing: 0 6px;
}
html.dark tr.bg-surface-2,
html.dark .bg-surface-2.rounded-lg {
  backdrop-filter: blur(12px) !important;
}

/* Select dropdowns */
html.dark option {
  background: #141414;
  color: #fff;
}

/* Links hover glow */
html.dark a.text-primary:hover,
html.dark a.hover\:text-primary:hover {
  text-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
}

/* Logo shine on pages */
html.dark .email-header img,
html.dark img[alt="logo"],
html.dark .size-30 {
  filter: drop-shadow(0 0 12px rgba(59, 130, 246, 0.25));
}

/* ── Off-white text (replaces green/teal accent text) ── */
html.dark .text-primary,
html.dark .text-primary\/60,
html.dark .text-primary\/80,
html.dark a.text-primary,
html.dark .hover\:text-primary:hover,
html.dark a.hover\:text-primary:hover,
html.dark .text-success,
html.dark .text-\[\#00C896\],
html.dark .text-\[\#00D4AA\],
html.dark .text-\[\#00d4aa\],
html.dark [class*="text-primary"] {
  color: #e8eaed !important;
  text-shadow: none !important;
}

html.dark .text-primary\/60 {
  color: rgba(232, 234, 237, 0.6) !important;
}

html.dark .text-primary\/80 {
  color: rgba(232, 234, 237, 0.85) !important;
}

html.dark a.text-primary:hover,
html.dark a.hover\:text-primary:hover {
  color: #ffffff !important;
}

/* Keep button label contrast on filled primary buttons */
html.dark .bg-primary.text-bg-dark,
html.dark button.bg-primary.text-bg-dark,
html.dark a.bg-primary.text-bg-dark {
  color: #ffffff !important;
}

/* Homepage gradient text → off-white */
html.dark .bg-clip-text.text-transparent:not(.hero-gradient):not(.hero-highlight),
html.dark .from-primary.to-secondary.bg-clip-text:not(.hero-highlight),
html.dark .bg-gradient-to-r.from-primary.to-secondary.bg-clip-text:not(.hero-highlight) {
  background: none !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  -webkit-text-fill-color: #e8eaed !important;
  color: #e8eaed !important;
}

/* SVG icons using primary/success stroke for text-like accents */
html.dark svg.text-primary,
html.dark .text-primary svg {
  color: #e8eaed !important;
  stroke: #e8eaed !important;
}

html.dark nav.fixed.bottom-0 > a.text-primary:not(#nav-trade),
html.dark nav.crystal-bottom-nav > a.text-primary:not(#nav-trade) {
  color: #e8eaed !important;
}

/* Success/primary opacity text variants */
html.dark [class*="text-success"],
html.dark [class*="text-primary"]:not(.bg-primary):not([class*="bg-primary"]) {
  color: #e8eaed !important;
  text-shadow: none !important;
}

/* Green inline SVG accents → off-white */
html.dark [stroke="#00D4AA"],
html.dark [stroke="#00d4aa"],
html.dark [stroke="#00C896"],
html.dark [stroke="#00c896"] {
  stroke: #e8eaed !important;
}

html.dark [fill="#00D4AA"],
html.dark [fill="#00d4aa"],
html.dark [fill="#00C896"],
html.dark [fill="#00c896"] {
  fill: #e8eaed !important;
}

/* Top quick-menu / action icons — purple → off-white */
html.dark .grid.grid-cols-4.gap-3 > a > span {
  color: #e8eaed !important;
}

html.dark .grid.grid-cols-4.gap-3 svg {
  stroke: #e8eaed !important;
  color: #e8eaed !important;
}

html.dark .grid.grid-cols-4.gap-3 svg[fill="#3b82f6"],
html.dark .grid.grid-cols-4.gap-3 svg[fill="#3b82f6"] {
  fill: #e8eaed !important;
}

html.dark [stroke="#3b82f6"],
html.dark [stroke="#3b82f6"] {
  stroke: #e8eaed !important;
}

html.dark [fill="#3b82f6"],
html.dark [fill="#3b82f6"] {
  fill: #e8eaed !important;
}

html.dark svg.text-secondary,
html.dark .text-secondary svg {
  color: #e8eaed !important;
  stroke: #e8eaed !important;
}


html.dark .home-actions a.bg-primary {
  color: #ffffff !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
}


/* ── Keep all scroll inside page border ── */
html.dark body {
  overflow: hidden !important;
  height: 100dvh;
  max-height: 100dvh;
}
html.dark .min-h-screen.flex.justify-center {
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden !important;
}
html.dark #app.crystal-app-shell {
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden !important;
}
html.dark .crystal-page-box:has(.crystal-page-scroll) {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden !important;
  padding: 1px;
  box-sizing: border-box;
}
@media (max-width: 768px) {
  html.dark .crystal-page-box:has(.crystal-page-scroll) {
    padding: 0;
  }
}

/* ── Bottom nav pinned inside crystal page box ── */
html.dark #app.crystal-app-shell:has(.crystal-page-footer) {
  max-height: 100dvh;
  overflow: hidden;
}

html.dark .crystal-page-box:has(.crystal-page-footer) {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  max-height: 100dvh;
  height: 100dvh;
  overflow: hidden;
  position: relative;
}

html.dark .crystal-page-scroll {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  box-sizing: border-box;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  position: relative;
  z-index: 1;
  contain: paint;
  border-radius: 23px;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.28) rgba(255, 255, 255, 0.06);
}
html.dark .crystal-page-box:has(.crystal-page-footer) .crystal-page-scroll {
  border-radius: 23px 23px 0 0;
}
@media (max-width: 768px) {
  html.dark .crystal-page-scroll {
    border-radius: 0;
  }
}
html.dark .crystal-page-scroll::-webkit-scrollbar {
  width: 6px;
}
html.dark .crystal-page-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.28);
  border-radius: 999px;
}
html.dark .crystal-page-scroll::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
}

html.dark .crystal-page-box:has(.crystal-page-footer) > *:not(.crystal-page-footer):not(.crystal-page-scroll) {
  flex: initial;
  min-height: initial;
  overflow: visible;
}

html.dark .crystal-page-footer {
  flex: 0 0 auto;
  position: relative;
  z-index: 50;
  padding: 0 0 20px;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, rgba(8, 8, 10, 0.92) 35%);
}

html.dark .crystal-page-footer .crystal-bottom-nav,
html.dark .crystal-page-footer nav.app-bottom-nav.crystal-bottom-nav {
  pointer-events: auto;
}

html.dark .crystal-bottom-spacer {
  display: none;
}

/* In-box footer nav — same pill look, pinned inside page box */
html.dark nav.app-bottom-nav.crystal-bottom-nav {
  position: relative !important;
  overflow: hidden !important;
  isolation: isolate;
  bottom: auto !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  translate: none !important;
  --tw-translate-x: 0 !important;
  --tw-translate-y: 0 !important;
  transform: none !important;
  width: min(390px, calc(100% - 40px)) !important;
  max-width: 390px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  height: 64px !important;
  z-index: 50 !important;
  background: rgba(255, 255, 255, 0.06) !important;
  backdrop-filter: blur(36px) saturate(1.85) !important;
  -webkit-backdrop-filter: blur(36px) saturate(1.85) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  border-radius: 9999px !important;
  box-shadow:
    0 10px 40px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 -1px 0 rgba(255, 255, 255, 0.05) !important;
  animation: nav-crystal-shine 5s ease-in-out infinite;
  padding: 0 10px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-around !important;
}


html.dark nav.app-bottom-nav.crystal-bottom-nav::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  border-radius: inherit;
  background: linear-gradient(
    105deg,
    transparent 36%,
    rgba(255, 255, 255, 0.05) 44%,
    rgba(147, 197, 253, 0.16) 50%,
    rgba(255, 255, 255, 0.05) 56%,
    transparent 64%
  );
  animation: crystal-shimmer 7s ease-in-out infinite;
}
html.dark nav.app-bottom-nav.crystal-bottom-nav::after {
  content: "";
  position: absolute;
  top: 0;
  left: 8%;
  right: 8%;
  height: 1px;
  pointer-events: none;
  z-index: 1;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5) 50%, transparent);
  opacity: 0.75;
}
html.dark nav.app-bottom-nav.crystal-bottom-nav > a,
html.dark nav.app-bottom-nav.crystal-bottom-nav > a > div {
  position: relative;
  z-index: 2;
}

html:not(.dark) nav.app-bottom-nav.crystal-bottom-nav {
  position: relative !important;
  bottom: auto !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  translate: none !important;
  --tw-translate-x: 0 !important;
  --tw-translate-y: 0 !important;
  transform: none !important;
  width: min(390px, calc(100% - 40px)) !important;
  max-width: 390px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  height: 64px !important;
  z-index: 50 !important;
  background: rgba(255, 255, 255, 0.72) !important;
  border-radius: 9999px !important;
  border: 1px solid rgba(255, 255, 255, 0.55) !important;
  box-shadow:
    0 10px 36px rgba(0, 0, 0, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
  backdrop-filter: blur(28px) saturate(1.6) !important;
  -webkit-backdrop-filter: blur(28px) saturate(1.6) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-around !important;
}


/* Deposit page — keep selects inside crystal scroll shell */
html.dark .deposit-page {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
html.dark .deposit-page form {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
html.dark .deposit-method-select {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding-right: 2.75rem !important;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  text-overflow: ellipsis;
}
html.dark .deposit-select-wrap {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
html.dark .deposit-select-icon {
  pointer-events: none;
}
@media (max-width: 768px) {
  html.dark .deposit-method-select {
    font-size: 16px !important;
    min-height: 3.5rem;
    line-height: 1.3;
    background-color: rgba(255, 255, 255, 0.06) !important;
  }
}

html.dark .home-actions a.bg-primary:active {
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2) !important;
}

/* ── Homepage, login & register: no visible scrollbar ── */
html.dark .crystal-page-scroll:has(.home-page),
html.dark .crystal-page-scroll:has(.auth-screen) {
  overflow: hidden !important;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scrollbar-gutter: auto;
}
html.dark .crystal-page-scroll:has(.home-page)::-webkit-scrollbar,
html.dark .crystal-page-scroll:has(.auth-screen)::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}
html.dark .crystal-page-box:has(.home-page),
html.dark .crystal-page-box:has(.auth-screen) {
  overflow: hidden !important;
}
html.dark .auth-screen {
  height: 100%;
  max-height: 100dvh;
  overflow: hidden;
  box-sizing: border-box;
}
html.dark .auth-screen .px-6.pt-8 {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
html.dark .auth-screen .px-6.pt-8::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

/* ── Deposit confirm: hide scrollbar only (keep scroll) ── */
html.dark .crystal-page-scroll:has(.deposit-confirm-screen) {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
html.dark .crystal-page-scroll:has(.deposit-confirm-screen)::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

/* ── Deposit invoice: hide scrollbar only (keep scroll) ── */
html.dark .crystal-page-scroll:has(.deposit-invoice-page) {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
html.dark .crystal-page-scroll:has(.deposit-invoice-page)::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}
