﻿:root {
  color-scheme: light;
  --bg-primary: #ffffff;
  --bg-secondary: #f6f6f4;
  --bg-card: #ffffff;
  --border: #e5e5e0;
  --accent-blue: #050505;
  --accent-blue-light: #050505;
  --accent-gold: #8a6a18;
  --text-primary: #050505;
  --text-secondary: #5f666d;
  --success: #0f8a45;
  --danger: #c2410c;
  --warning: #8a6a18;
  --glass: rgba(255, 255, 255, 0.9);
  --shadow: 0 24px 70px rgba(15, 15, 15, 0.08);
  --radius: 8px;
  font-family: "Manrope", ui-sans-serif, system-ui, sans-serif;
}


* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at top left, rgba(14, 165, 233, 0.16), transparent 34rem),
    radial-gradient(circle at 80% 10%, rgba(245, 158, 11, 0.1), transparent 28rem),
    var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
}

body > .skiptranslate,
.goog-te-banner-frame,
#google_translate_element {
  display: none !important;
}

.risk-disclosure-banner {
  display: none !important;
}

body {
  top: 0 !important;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.mono {
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
}

.section-pad {
  padding: clamp(72px, 9vw, 128px) clamp(18px, 5vw, 72px);
}

.site-shell {
  overflow: hidden;
}

.risk-disclosure-banner {
  position: fixed;
  top: 76px;
  right: 0;
  left: 0;
  z-index: 39;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(245, 158, 11, 0.32);
  background: rgba(245, 158, 11, 0.14);
  color: var(--text-primary);
  backdrop-filter: blur(14px);
}

.risk-disclosure-banner button,
.modal-close {
  min-height: 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(10, 14, 26, 0.44);
  color: var(--text-primary);
  cursor: pointer;
}

.risk-disclosure-banner.hidden {
  display: none;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 76px;
  padding: 14px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid transparent;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    backdrop-filter 180ms ease;
}

.site-header[data-elevated="true"] {
  border-color: rgba(143, 198, 219, 0.62);
  background: rgba(238, 247, 252, 0.92);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: "Sora", sans-serif;
  font-weight: 800;
  letter-spacing: 0;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(143, 198, 219, 0.9);
  border-radius: 14px;
  background: linear-gradient(180deg, #dfece8 0%, #d7ebf0 48%, #dce8f4 100%);
  color: #0b0d11;
  font-size: 0.82rem;
}

.brand-mark svg {
  width: 27px;
  height: 27px;
  fill: currentColor;
}

.brand-mark svg path:last-child {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 3.2;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: clamp(14px, 2.8vw, 32px);
  color: #5f6878;
  font-size: 0.94rem;
}

.nav-links a {
  transition: color 160ms ease;
}

.nav-links a:hover {
  color: var(--text-primary);
}

.mobile-only-header-actions {
  display: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.language-cluster {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
}

@media (min-width: 769px) {
  .language-cluster {
    width: auto;
    max-width: 56px;
    overflow: hidden;
    transition: max-width 220ms ease, padding 220ms ease;
  }

  .language-cluster:hover,
  .language-cluster.open {
    max-width: 260px;
  }

  .language-cluster .translator {
    min-width: 0;
    flex: 1 1 auto;
    opacity: 0;
    width: 0;
    overflow: hidden;
    transition: opacity 180ms ease, width 220ms ease;
  }

  .language-cluster:hover .translator,
  .language-cluster.open .translator {
    opacity: 1;
    width: auto;
  }

  .language-cluster .language-reset-inline {
    flex: 0 0 auto;
  }
}

.translator {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 258px;
  min-height: 42px;
  padding: 6px 8px;
  border: 0;
  border-radius: 0 12px 12px 0;
  background: transparent;
}

.translator span {
  color: var(--text-secondary);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

select,
input,
textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(10, 14, 26, 0.75);
  color: var(--text-primary);
}

select {
  padding: 8px 28px 8px 10px;
}

select option {
  color: #101827;
  background: #ffffff;
}

:root[data-theme="dark"] select option {
  color: #f4f7fb;
  background: #11151d;
}

input,
textarea {
  margin-top: 8px;
  padding: 12px;
}

textarea {
  resize: vertical;
}

.language-reset,
.mobile-menu,
.topbar-actions button,
.copy-btn,
.toggle {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(19, 28, 53, 0.82);
  cursor: pointer;
}

.language-reset {
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-right: 0;
  border-radius: 12px 0 0 12px;
  background: rgba(255, 255, 255, 0.98);
  color: var(--accent-blue-light);
  font-weight: 900;
}

.language-reset-inline {
  width: auto;
  min-width: 56px;
  padding-inline: 12px;
}

.translator select {
  min-height: 42px;
  border: 1px solid var(--border);
  border-left: 0;
  border-radius: 0 12px 12px 0;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: none;
}

.login-link {
  border: 0;
  background: transparent;
  color: var(--text-secondary);
  font-weight: 700;
  cursor: pointer;
}

.button {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease;
}

.ripple {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  transform: translate(-50%, -50%) scale(0);
  animation: ripple 520ms ease-out;
  pointer-events: none;
}

@keyframes ripple {
  to {
    opacity: 0;
    transform: translate(-50%, -50%) scale(18);
  }
}

.button:hover {
  transform: translateY(-2px);
}

.button:active {
  transform: translateY(0) scale(0.97);
  transition-duration: 60ms;
}

body.logged-in .button-primary:active,
body.logged-in .vault-form .button-primary:active {
  box-shadow: 0 2px 8px rgba(5, 5, 5, 0.3);
}

body.logged-in .button-secondary:active {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Modal submit button press effects */
.deposit-modal-submit:active,
.withdraw-modal-submit:active,
.init-modal-pay-btn:active {
  transform: scale(0.96);
  transition-duration: 60ms;
}

.deposit-modal-submit:active {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

:root[data-theme="dark"] .deposit-modal-submit:active {
  box-shadow: 0 2px 10px rgba(255, 255, 255, 0.15);
}

.withdraw-modal-submit:active {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

:root[data-theme="dark"] .withdraw-modal-submit:active {
  box-shadow: 0 2px 10px rgba(255, 255, 255, 0.15);
}

.button-primary {
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-blue-light));
  color: #02101c;
  box-shadow: 0 12px 32px rgba(14, 165, 233, 0.28);
}

.button-secondary {
  border-color: rgba(56, 189, 248, 0.3);
  background: rgba(56, 189, 248, 0.08);
  color: var(--text-primary);
}

.mobile-menu {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.mobile-menu span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text-primary);
}

.hero {
  position: relative;
  min-height: 100svh;
  padding-top: 130px;
  isolation: isolate;
}

.hero-bg,
.hero-bg img,
.hero-bg canvas {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
}

.hero-bg img {
  object-fit: cover;
  opacity: 0.32;
  filter: saturate(1.1) contrast(1.08);
}

.hero-bg::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background:
    linear-gradient(90deg, rgba(10, 14, 26, 0.98), rgba(10, 14, 26, 0.76), rgba(10, 14, 26, 0.9)),
    radial-gradient(circle at 76% 30%, rgba(14, 165, 233, 0.22), transparent 28rem);
}

.hero-bg canvas {
  z-index: 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
  min-height: calc(100svh - 240px);
}

.hero-copy {
  max-width: 980px;
}

.status-pill,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-blue-light);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.status-pill {
  margin-bottom: 18px;
  padding: 8px 12px;
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.08);
}

.status-pill span {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: var(--success);
  box-shadow: 0 0 20px var(--success);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: "Sora", sans-serif;
  letter-spacing: 0;
  line-height: 1.02;
}

h1 {
  margin-bottom: 24px;
  font-size: clamp(3.3rem, 8.8vw, 8.4rem);
}

.hero-copy h1 {
  color: var(--text-primary);
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.5),
    0 10px 24px rgba(148, 163, 184, 0.14);
}

.hero-silver {
  display: inline-block;
  background: linear-gradient(180deg, #0f1115 0%, #7b828e 44%, #e6e8ec 56%, #1a1d22 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.72),
    0 0 18px rgba(192, 202, 214, 0.18);
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2.1rem, 5vw, 4.9rem);
}

h3 {
  margin-bottom: 10px;
  font-size: 1.05rem;
}

.hero-copy p,
.section-heading p,
.flow-card p,
.trust-card p,
.plan-card p,
.site-footer p,
.faq-list p {
  color: var(--text-secondary);
}

.hero-copy p {
  max-width: 680px;
  margin-bottom: 28px;
  font-size: clamp(1.05rem, 1.6vw, 1.28rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.compliance-note {
  max-width: 560px;
  color: var(--text-secondary);
  font-size: 0.88rem;
}

.plan-card,
.ecosystem-card,
.flow-card,
.table-card,
.metric-card,
.quick-panel,
.vault-form,
.trust-card,
.review-carousel article,
.app-shell,
.alert-card,
.referral-link {
  border: 1px solid rgba(56, 189, 248, 0.16);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent),
    var(--glass);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.terminal-card {
  padding: 22px;
}

.terminal-top,
.panel-head,
.app-topbar,
.fee-line,
.toggle-line,
.referral-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.terminal-top,
.balance-card span,
.terminal-grid span,
.metric-card span,
.ref-card span {
  color: var(--text-secondary);
  font-size: 0.82rem;
}

.balance-card {
  margin: 22px 0;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(10, 14, 26, 0.58);
}

.balance-card strong {
  display: block;
  margin: 5px 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.balance-card small {
  color: var(--success);
}

.spark-wrap {
  padding: 12px 0;
}

.chart-line {
  fill: none;
  stroke: var(--accent-blue-light);
  stroke-width: 4;
  filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.5));
}

.chart-area {
  fill: url("#chartFill");
}

.terminal-grid,
.dashboard-grid,
.trust-grid,
.plans-grid,
.ecosystem-grid,
.flow-grid,
.asset-grid,
.referral-grid,
.settings-grid {
  display: grid;
  gap: 16px;
}

.terminal-grid {
  grid-template-columns: repeat(3, 1fr);
}

.terminal-grid div {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(10, 14, 26, 0.56);
}

.terminal-grid strong {
  display: block;
  margin-top: 4px;
}

.ticker-tape {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(10, 14, 26, 0.78);
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 34s linear infinite;
}

.ticker-tape:hover .ticker-track {
  animation-play-state: paused;
}

.ticker-track span {
  display: inline-flex;
  gap: 8px;
  padding: 16px 28px;
  color: var(--text-secondary);
  font-family: "IBM Plex Mono", monospace;
}

.ticker-track b {
  color: var(--text-primary);
}

.ticker-track i {
  color: var(--success);
  font-style: normal;
}

@keyframes ticker {
  to {
    transform: translateX(-50%);
  }
}

.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(15, 22, 41, 0.84);
}

.stats-bar div {
  padding: clamp(22px, 4vw, 38px);
  border-right: 1px solid var(--border);
  animation: statsCardIn 720ms cubic-bezier(0.2, 0.9, 0.2, 1) both;
}

.stats-bar div:nth-child(1) {
  animation-delay: 70ms;
}

.stats-bar div:nth-child(2) {
  animation-delay: 150ms;
}

.stats-bar div:nth-child(3) {
  animation-delay: 230ms;
}

.stats-bar div:nth-child(4) {
  animation-delay: 310ms;
}

.stats-bar div:last-child {
  border-right: 0;
}

.stats-bar strong {
  display: block;
  margin-bottom: 6px;
  color: var(--accent-blue-light);
  font-size: clamp(1.8rem, 3.4vw, 3rem);
  letter-spacing: -0.04em;
  animation: statsNumberFloat 4.5s ease-in-out infinite;
}

.stats-bar span {
  color: var(--text-secondary);
}

.section-heading {
  max-width: 980px;
  margin-bottom: 34px;
}

.plans-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ecosystem-section {
  position: relative;
  background:
    linear-gradient(180deg, rgba(56, 189, 248, 0.08), transparent 42%),
    rgba(15, 22, 41, 0.38);
}

.ecosystem-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ecosystem-card {
  position: relative;
  min-height: 310px;
  padding: 26px;
  overflow: hidden;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.ecosystem-card::after {
  position: absolute;
  inset: auto -12% -24% 34%;
  height: 140px;
  content: "";
  background: radial-gradient(circle, rgba(56, 189, 248, 0.18), transparent 66%);
  pointer-events: none;
}

.ecosystem-card:hover {
  transform: translateY(-5px);
  border-color: rgba(56, 189, 248, 0.46);
  box-shadow: 0 32px 110px rgba(14, 165, 233, 0.16);
}

.ecosystem-icon {
  display: grid;
  width: 52px;
  height: 52px;
  margin-bottom: 42px;
  place-items: center;
  border: 1px solid rgba(56, 189, 248, 0.36);
  border-radius: var(--radius);
  background: rgba(14, 165, 233, 0.1);
  color: var(--accent-blue-light);
  font-family: "IBM Plex Mono", monospace;
  font-weight: 800;
}

.ecosystem-card p {
  color: var(--text-secondary);
}

.ecosystem-card a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  margin-top: 14px;
  color: var(--accent-blue-light);
  font-weight: 800;
}

.plan-card,
.flow-card,
.trust-card {
  position: relative;
  min-height: 280px;
  padding: 24px;
  transition:
    transform 180ms ease,
    border-color 180ms ease;
}

.plan-card:hover,
.flow-card:hover,
.trust-card:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.45);
}

.plan-card.featured {
  border-color: rgba(245, 158, 11, 0.54);
  background:
    linear-gradient(135deg, rgba(245, 158, 11, 0.12), transparent 55%),
    var(--glass);
}

.plan-tag,
.badge,
.trust-card span {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.plan-tag {
  margin-bottom: 22px;
  padding: 7px 10px;
  border: 1px solid rgba(56, 189, 248, 0.28);
  color: var(--accent-blue-light);
}

.roi {
  display: block;
  color: var(--text-primary);
  font-size: 3.2rem;
}

.plan-card ul {
  display: grid;
  gap: 10px;
  min-height: 96px;
  margin: 22px 0;
  padding: 0;
  color: var(--text-secondary);
  list-style: none;
}

.plan-card li::before {
  content: "+ ";
  color: var(--success);
}

.workflow-section,
.asset-section,
.security-section,
.faq-section {
  background: rgba(15, 22, 41, 0.45);
}

.flow-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.flow-card span {
  display: inline-block;
  margin-bottom: 46px;
  color: var(--accent-gold);
  font-family: "IBM Plex Mono", monospace;
  font-size: 2.2rem;
}

.market-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tabs button {
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(19, 28, 53, 0.72);
  color: var(--text-secondary);
  cursor: pointer;
}

.tabs button.active {
  border-color: rgba(56, 189, 248, 0.5);
  background: rgba(14, 165, 233, 0.16);
  color: var(--accent-blue-light);
}

.tabs.compact button {
  min-height: 32px;
  font-size: 0.82rem;
}

.search-field {
  width: min(340px, 100%);
  color: var(--text-secondary);
  font-size: 0.84rem;
  font-weight: 700;
}

.market-chart-panel {
  display: grid;
  gap: 18px;
  margin-bottom: 18px;
  padding: 20px;
  border: 1px solid rgba(56, 189, 248, 0.18);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(14, 165, 233, 0.1), transparent 46%),
    rgba(19, 28, 53, 0.7);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.chart-summary,
.chart-stats,
.market-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chart-summary {
  justify-content: space-between;
}

.chart-summary h3 {
  margin-bottom: 0;
  font-size: clamp(1.35rem, 3vw, 2rem);
}

.chart-price {
  display: grid;
  justify-items: end;
  gap: 4px;
}

.chart-price strong {
  font-size: clamp(1.5rem, 3vw, 2.4rem);
}

.live-chart-shell {
  width: 100%;
  height: clamp(380px, 58vw, 620px);
  min-height: 380px;
  overflow: hidden;
  border: 1px solid rgba(30, 45, 79, 0.72);
  border-radius: var(--radius);
  background: rgba(10, 14, 26, 0.5);
}

.tradingview-widget-container,
.tradingview-widget-container__widget {
  width: 100%;
  height: 100%;
}

.chart-loader {
  display: grid;
  height: 100%;
  place-items: center;
  color: var(--text-secondary);
  font-family: "IBM Plex Mono", monospace;
}

.chart-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.chart-stats div {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(10, 14, 26, 0.52);
}

.chart-stats span,
.market-count {
  color: var(--text-secondary);
  font-size: 0.82rem;
}

.chart-stats strong {
  display: block;
  margin-top: 5px;
}

.market-count {
  margin-bottom: 10px;
}

.table-card {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 20px;
}

.table-card::after {
  display: block;
  margin-top: 8px;
  color: var(--text-secondary);
  content: "Scroll horizontally to view more columns";
  font-size: 0.75rem;
}

.skeleton-row td {
  height: 58px;
}

.skeleton-bar {
  display: block;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(148, 163, 184, 0.12), rgba(56, 189, 248, 0.22), rgba(148, 163, 184, 0.12));
  background-size: 220% 100%;
  animation: skeleton 1.15s ease-in-out infinite;
}

@keyframes skeleton {
  to {
    background-position: -220% 0;
  }
}

.data-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: 15px 12px;
  border-bottom: 1px solid rgba(30, 45, 79, 0.82);
  text-align: left;
}

.data-table th {
  color: var(--text-secondary);
  font-size: 0.74rem;
  text-transform: uppercase;
}

.asset-name {
  display: flex;
  align-items: center;
  gap: 10px;
}

.asset-icon,
.method-icon,
.avatar {
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: rgba(56, 189, 248, 0.12);
  color: var(--accent-blue-light);
  font-family: "IBM Plex Mono", monospace;
  font-weight: 900;
}

.asset-icon {
  width: 34px;
  height: 34px;
}

.mini-spark {
  width: 110px;
  height: 34px;
}

.positive {
  color: var(--success);
}

.negative {
  color: var(--danger);
}

.chart-button.active {
  border-color: rgba(56, 189, 248, 0.65);
  background: rgba(14, 165, 233, 0.22);
  color: var(--accent-blue-light);
}

.asset-grid {
  grid-template-columns: repeat(7, minmax(120px, 1fr));
}

.method-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(19, 28, 53, 0.62);
}

.method-icon {
  width: 34px;
  height: 34px;
}

.platform {
  background:
    radial-gradient(circle at 80% 10%, rgba(14, 165, 233, 0.18), transparent 28rem),
    var(--bg-primary);
}

.app-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 760px;
  overflow: hidden;
}

.app-sidebar {
  padding: 20px;
  border-right: 1px solid var(--border);
  background: rgba(10, 14, 26, 0.62);
  display: flex;
  flex-direction: column;
}

.profile-mini {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.avatar {
  width: 42px;
  height: 42px;
}

.profile-mini small {
  display: block;
  color: var(--text-secondary);
}

.app-sidebar nav {
  display: grid;
  gap: 8px;
}

.app-sidebar button {
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  color: var(--text-secondary);
  text-align: left;
  cursor: pointer;
}

.app-sidebar button.active,
.app-sidebar button:hover,
.app-sidebar a.active,
.app-sidebar a:hover {
  border-color: rgba(56, 189, 248, 0.32);
  background: rgba(14, 165, 233, 0.12);
  color: var(--text-primary);
}

.app-main {
  min-width: 0;
  padding: 20px;
}

.app-topbar {
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.app-topbar strong {
  display: block;
  margin-top: 4px;
  font-size: 1.55rem;
}

.topbar-actions button {
  min-height: 40px;
  padding: 0 12px;
}

.notification-wrap {
  position: relative;
}

.unread-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--danger);
}

.notification-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  z-index: 20;
  display: none;
  width: min(320px, 86vw);
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(10, 14, 26, 0.96);
  box-shadow: var(--shadow);
}

.notification-menu.open {
  display: grid;
  gap: 10px;
}

.notification-menu p {
  margin: 0;
  color: var(--text-secondary);
}

.app-screen {
  display: none;
  animation: screenIn 220ms ease;
}

.app-screen.active {
  display: block;
}

@keyframes screenIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

.dashboard-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 16px;
}

.metric-card {
  padding: 18px;
}

.metric-card strong {
  display: block;
  margin: 8px 0;
  font-size: clamp(1.35rem, 2vw, 2rem);
}

.metric-card small {
  color: var(--success);
}

.chart-panel {
  position: relative;
  margin-bottom: 16px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(10, 14, 26, 0.44);
}

.chart-tooltip {
  position: absolute;
  display: none;
  padding: 7px 9px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(10, 14, 26, 0.92);
  color: var(--text-primary);
  pointer-events: none;
}

.chart-tooltip-dot {
  display: none;
  fill: var(--accent-gold);
  stroke: var(--bg-primary);
  stroke-width: 2;
}

.chart-grid-lines line {
  stroke: rgba(148, 163, 184, 0.16);
  stroke-width: 1;
}

.allocation-widget {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(10, 14, 26, 0.44);
}

.donut-chart {
  width: min(180px, 100%);
  margin: 8px auto;
  transform: rotate(-90deg);
}

.donut-chart circle {
  fill: none;
  stroke: rgba(148, 163, 184, 0.18);
  stroke-width: 16;
}

.donut-growth {
  stroke: var(--accent-blue-light) !important;
  stroke-dasharray: 111 264;
}

.donut-premium {
  stroke: var(--accent-gold) !important;
  stroke-dasharray: 100 264;
  stroke-dashoffset: -111;
}

.donut-starter {
  stroke: var(--success) !important;
  stroke-dasharray: 53 264;
  stroke-dashoffset: -211;
}

.allocation-legend {
  display: grid;
  gap: 6px;
  color: var(--text-secondary);
  font-size: 0.82rem;
}

.area-chart {
  width: 100%;
  height: 220px;
}

.two-col,
.deposit-layout,
.auth-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 16px;
}

.quick-panel {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 20px;
}

.ref-card {
  margin-top: 10px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(10, 14, 26, 0.58);
}

.ref-card strong {
  display: block;
  margin-top: 4px;
  font-size: 1.5rem;
}

.stepper,
.kyc-status {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.stepper span,
.kyc-status span {
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 800;
}

.stepper .active,
.kyc-status .active {
  border-color: rgba(56, 189, 248, 0.5);
  color: var(--accent-blue-light);
}

.method-list {
  display: grid;
  gap: 10px;
}

.method-card {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(19, 28, 53, 0.62);
}

.method-card small {
  color: var(--text-secondary);
}

.method-card.selected {
  border-color: var(--accent-blue-light);
  background: rgba(14, 165, 233, 0.12);
}

.method-card:hover {
  cursor: pointer;
  border-color: rgba(56, 189, 248, 0.45);
}

.method-card.selected:hover {
  border-color: var(--accent-blue-light);
}

.app-sidebar a.active {
  border-color: rgba(56, 189, 248, 0.32);
  background: rgba(14, 165, 233, 0.12);
  color: var(--text-primary);
}

.app-sidebar a:hover {
  border-color: rgba(56, 189, 248, 0.32);
  background: rgba(14, 165, 233, 0.06);
  color: var(--text-primary);
}

.app-sidebar a {
  display: flex;
  min-height: 44px;
  align-items: center;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: var(--text-secondary);
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
}

.vault-form {
  display: grid;
  gap: 14px;
  padding: 22px;
}

.vault-form.narrow {
  max-width: 640px;
}

.vault-form label {
  color: var(--text-secondary);
  font-size: 0.86rem;
  font-weight: 800;
}

.wallet-box,
.captcha-box,
.qr-box {
  padding: 16px;
  border: 1px dashed rgba(56, 189, 248, 0.42);
  border-radius: var(--radius);
  background: rgba(10, 14, 26, 0.62);
}

.wallet-box {
  display: grid;
  gap: 8px;
}

.copy-btn {
  width: fit-content;
  min-height: 34px;
  padding: 0 12px;
  color: var(--accent-blue-light);
}

.vault-form small,
.trust-copy {
  color: var(--text-secondary);
}

.alert-card {
  display: grid;
  gap: 5px;
  margin-bottom: 14px;
  padding: 16px;
}

.alert-card.warning {
  border-color: rgba(245, 158, 11, 0.42);
}

.alert-card.danger {
  border-color: rgba(239, 68, 68, 0.42);
}

.form-grid,
.settings-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.badge {
  padding: 6px 9px;
}

.badge.success {
  background: rgba(16, 185, 129, 0.14);
  color: var(--success);
}

.badge.warning {
  background: rgba(245, 158, 11, 0.14);
  color: var(--warning);
}

.badge.danger {
  background: rgba(239, 68, 68, 0.14);
  color: var(--danger);
}

.status-badge::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.status-badge.completed::before {
  content: "âœ“";
  display: inline-grid;
  width: 14px;
  height: 14px;
  place-items: center;
  background: transparent;
  font-size: 0.75rem;
}

.status-badge.pending::before {
  animation: pulseStatus 1s ease-in-out infinite;
}

@keyframes pulseStatus {
  50% {
    opacity: 0.35;
    transform: scale(1.35);
  }
}

.referral-grid {
  grid-template-columns: 1.5fr repeat(3, 1fr);
  margin-bottom: 16px;
}

.referral-link {
  padding: 18px;
}

.referral-enhance-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.4fr) 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.qr-card,
.share-card,
.email-confirm-card,
.security-score-card {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(19, 28, 53, 0.7);
}

.qr-code {
  width: 180px;
  max-width: 100%;
  border-radius: var(--radius);
  background: #fff;
}

.share-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.email-confirm-card {
  display: grid;
  gap: 8px;
}

.toggle.active {
  padding: 8px 12px;
  color: var(--success);
}

.activity-log {
  display: grid;
  gap: 8px;
  color: var(--text-secondary);
}

.trust-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.trust-card span {
  margin-bottom: 42px;
  padding: 7px 10px;
  border: 1px solid rgba(245, 158, 11, 0.28);
  color: var(--accent-gold);
}

.legal-doc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.security-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.security-score-card {
  display: grid;
  align-content: start;
  gap: 10px;
}

.security-score-card strong {
  color: var(--accent-blue-light);
  font-size: 3rem;
}

.score-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.score-steps span {
  padding: 6px 9px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-secondary);
  font-size: 0.75rem;
}

.score-steps .done {
  color: var(--success);
}

.auth-grid {
  align-items: start;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.check-row input,
.vault-form input[type="checkbox"] {
  width: auto;
  margin: 0;
}

.reviews-hero {
  text-align: center;
}

.reviews-heading {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
}

.reviews-heading h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
}

.reviews-heading p {
  margin: 16px 0 0;
  color: var(--text-secondary);
  line-height: 1.7;
}

.reviews-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin: 32px 0;
}

.review-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.review-stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
  font-family: var(--font-heading);
}

.review-stat-label {
  font-size: 0.82rem;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
  margin-top: 4px;
}

.reviews-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.page-meta {
  margin-top: 16px;
  font-size: 0.78rem;
  color: var(--text-secondary);
  opacity: 0.6;
}

.reviews-board {
  padding-top: 0;
}

.review-board-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 1320px;
  margin: 0 auto;
}

.review-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--bg-card);
  box-shadow: var(--shadow);
}

.review-card-top {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.review-card-photo {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.review-card-info {
  flex: 1;
  min-width: 100px;
}

.review-card-info strong {
  display: block;
  color: var(--text-primary);
  font-size: 1rem;
}

.review-card-info small {
  display: block;
  color: var(--text-secondary);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
}

.review-card-stars {
  color: var(--accent-gold);
  letter-spacing: 0.06em;
  font-size: 1.05rem;
  line-height: 1;
  margin-left: auto;
}

.review-card-copy {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 0.95rem;
}

.reviews-cta {
  text-align: center;
  padding: 48px 24px;
}

.reviews-cta-inner {
  max-width: 560px;
  margin: 0 auto;
  padding: 48px 32px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--bg-card);
}

.reviews-cta h2 {
  font-size: 1.6rem;
  margin: 0 0 12px;
  color: var(--text-primary);
}

.reviews-cta p {
  margin: 0 0 24px;
  color: var(--text-secondary);
  line-height: 1.6;
}
  overflow: hidden;
  border: 4px solid rgba(255, 255, 255, 0.92);
  border-radius: 22px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.12);
}

.stars {
  color: var(--accent-gold);
  letter-spacing: 0;
}

.faq-list {
  display: grid;
  gap: 12px;
  max-width: 980px;
}

details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #ffffff;
}

summary {
  padding: 18px;
  color: #050505;
  cursor: pointer;
  font-weight: 900;
}

details p {
  margin: 0;
  padding: 0 18px 18px;
  color: #4b5563;
}

.chat-widget {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
}

.chat-bubble {
  position: relative;
  display: grid;
  place-items: center;
  gap: 2px;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(56, 189, 248, 0.42);
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-blue-light));
  color: #03121d;
  font-weight: 900;
  box-shadow: 0 18px 45px rgba(14, 165, 233, 0.35);
  cursor: pointer;
}

.chat-bubble-icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.chat-bubble-label {
  margin-top: -2px;
  font-size: 0.68rem;
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.chat-badge {
  position: absolute;
  top: -4px;
  right: -2px;
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 50%;
  background: var(--danger);
  color: #fff;
  font-size: 0.72rem;
}

.chat-panel {
  position: absolute;
  right: 0;
  bottom: 72px;
  display: none;
  width: min(380px, calc(100vw - 28px));
  max-height: min(72vh, 560px);
  overflow: hidden;
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: var(--radius);
  background: rgba(10, 14, 26, 0.96);
  box-shadow: var(--shadow);
}

.chat-panel.open {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
}

.chat-header,
.chat-input {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px;
  border-bottom: 1px solid var(--border);
}

.chat-header span {
  display: block;
  color: var(--text-secondary);
  font-size: 0.8rem;
}

.chat-header button,
.chat-input button,
.quick-replies button {
  min-height: 38px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(19, 28, 53, 0.82);
  color: var(--text-primary);
  cursor: pointer;
}

.chat-header button,
.chat-input button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.chat-icon {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chat-messages {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 0;
  overflow-y: auto;
  padding: 14px;
}

.chat-message {
  width: fit-content;
  max-width: 86%;
  padding: 10px 12px;
  border-radius: var(--radius);
  background: rgba(19, 28, 53, 0.9);
}

.chat-message.user {
  justify-self: end;
  background: rgba(14, 165, 233, 0.2);
}

.typing-dots span {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin: 0 2px;
  border-radius: 50%;
  background: var(--accent-blue-light);
  animation: typingDot 900ms infinite ease-in-out;
}

.typing-dots span:nth-child(2) {
  animation-delay: 140ms;
}

.typing-dots span:nth-child(3) {
  animation-delay: 280ms;
}

@keyframes typingDot {
  50% {
    transform: translateY(-4px);
  }
}

.quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 14px 14px;
}

.quick-replies button {
  min-height: 34px;
  padding: 0 10px;
  color: var(--accent-blue-light);
  font-size: 0.82rem;
}

.chat-input {
  border-top: 1px solid var(--border);
  border-bottom: 0;
}

.chat-input input {
  margin: 0;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  align-items: start;
  padding: 0;
  border-top: 1px solid var(--border);
  background: #070b14;
}

.footer-main,
.footer-contact,
.site-footer .risk,
.footer-bottom {
  grid-column: 1 / -1;
}

.site-footer nav {
  display: grid;
  gap: 8px;
  color: var(--text-secondary);
}

.site-footer nav button {
  width: fit-content;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.risk {
  width: min(100% - 64px, 1500px);
  max-width: none;
  justify-self: center;
  text-align: left;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 60;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(10, 14, 26, 0.94);
  color: var(--text-primary);
  opacity: 0;
  transform: translate(-50%, 16px);
  pointer-events: none;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.toast.active {
  opacity: 1;
  transform: translate(-50%, 0);
}

.cookie-banner {
  position: fixed;
  right: 18px;
  bottom: 18px;
  left: 18px;
  z-index: 70;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(10, 14, 26, 0.96);
  box-shadow: var(--shadow);
}

.cookie-banner.open {
  display: flex;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.72);
}

.modal-backdrop.open {
  display: grid;
}

.legal-modal,
.onboarding-modal {
  position: relative;
  width: min(860px, 100%);
  max-height: 86vh;
  overflow-y: auto;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-secondary);
  box-shadow: var(--shadow);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
}

.legal-modal p,
.legal-modal li,
.onboarding-modal p {
  color: var(--text-secondary);
}

.onboarding-dots {
  display: flex;
  gap: 8px;
  margin: 18px 0;
}

.onboarding-dots span {
  width: 28px;
  height: 4px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.35);
}

.onboarding-dots .active {
  background: var(--accent-blue-light);
}

.scroll-top {
  position: fixed;
  right: 18px;
  bottom: 92px;
  z-index: 29;
  display: none;
  place-items: center;
  min-height: 44px;
  width: 58px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(19, 28, 53, 0.9);
  color: var(--text-primary);
  cursor: pointer;
}

.scroll-top.visible {
  display: grid;
}

.scroll-top svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-toggle-icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.mobile-bottom-nav {
  position: fixed;
  right: 10px;
  bottom: 10px;
  left: 10px;
  z-index: 35;
  display: none;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(10, 14, 26, 0.94);
  box-shadow: var(--shadow);
}

.mobile-bottom-nav a {
  display: grid;
  min-height: 44px;
  place-items: center;
  color: var(--text-secondary);
  font-size: 0.74rem;
}

.drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 74;
  display: none;
  background: rgba(0, 0, 0, 0.62);
}

.drawer-overlay.open {
  display: block;
}

.sr-only-image {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 600ms ease,
    transform 600ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes statsCardIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
    filter: blur(2px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes statsNumberFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-2px);
  }
}

@media (max-width: 1180px) {
  .site-header {
    grid-template-columns: auto auto 1fr;
  }

  .mobile-menu {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 76px;
    right: 18px;
    display: none;
    width: min(320px, calc(100vw - 36px));
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(10, 14, 26, 0.96);
  }

  .nav-links.open {
    display: grid;
  }

  .header-actions {
    justify-content: end;
  }

  .hero-grid,
  .app-shell,
  .two-col,
  .deposit-layout,
  .auth-grid {
    grid-template-columns: 1fr;
  }

  .app-sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .app-sidebar nav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .plans-grid,
  .ecosystem-grid,
  .flow-grid,
  .dashboard-grid,
  .trust-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .asset-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  body {
    padding-bottom: 76px;
  }

  .site-shell {
    overflow: visible;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .section-pad {
    padding: 58px 16px;
  }

  .site-header {
    position: sticky;
    top: 0;
    grid-template-columns: 1fr auto;
    gap: 10px;
    min-height: auto;
    padding: 10px 14px;
    background: rgba(10, 14, 26, 0.94);
    border-bottom: 1px solid var(--border);
  }

  .brand {
    min-width: 0;
    font-size: 1rem;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
    font-size: 0.72rem;
  }

  .mobile-menu {
    justify-self: end;
  }

  .header-actions {
    display: none;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 10px);
    right: 14px;
    left: 14px;
    display: none;
    gap: 8px;
    width: auto;
    max-height: calc(100svh - 96px);
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: rgba(10, 14, 26, 0.98);
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.28);
    overflow: auto;
  }

  .nav-links.open {
    display: grid;
  }

  .nav-links a {
    display: flex;
    min-height: 44px;
    align-items: center;
    padding: 0 12px;
    border-radius: 12px;
  }

  .nav-links a:hover {
    background: rgba(148, 163, 184, 0.08);
  }

  .mobile-only-header-actions {
    display: grid;
    gap: 12px;
    padding-top: 12px;
    margin-top: 4px;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
  }

  .language-cluster-mobile {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 42px;
    gap: 8px;
    min-width: 0;
  }

  .auth-buttons-mobile {
    display: grid;
    gap: 8px;
  }

  .language-cluster-mobile .translator {
    min-width: 0;
    width: 100%;
    min-height: 40px;
    padding: 5px 7px;
  }

  .language-cluster-mobile .translator span {
    display: none;
  }

  .language-cluster-mobile .language-reset {
    width: 40px;
    height: 40px;
  }

  .auth-buttons-mobile .auth-trigger {
    width: 100%;
    justify-content: center;
    min-height: 44px;
  }

  .language-cluster {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 42px;
    min-width: 0;
  }

  .translator {
    min-width: 0;
    width: 100%;
    min-height: 40px;
    padding: 5px 7px;
  }

  .translator span {
    display: none;
  }

  .language-reset {
    width: 40px;
    height: 40px;
  }

  .login-link {
    display: none;
    align-self: center;
  }

  .hero {
    min-height: auto;
    padding-top: 44px;
  }

  .hero-grid {
    min-height: auto;
  }

  h1 {
    font-size: clamp(2.65rem, 14vw, 4.2rem);
  }

  h2 {
    font-size: clamp(2rem, 11vw, 3.2rem);
  }

  .hero-copy p {
    font-size: 1rem;
  }

  .terminal-card,
  .plan-card,
  .ecosystem-card,
  .flow-card,
  .table-card,
  .metric-card,
  .quick-panel,
  .vault-form,
  .trust-card,
  .review-carousel article,
  .app-shell,
  .alert-card,
  .referral-link,
  .market-chart-panel {
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.26);
  }

  .terminal-grid,
  .stats-bar,
  .plans-grid,
  .ecosystem-grid,
  .flow-grid,
  .dashboard-grid,
  .trust-grid,
  .review-carousel,
  .referral-grid,
  .referral-enhance-grid,
  .security-grid,
  .form-grid,
  .settings-grid,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .stats-bar div {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .market-toolbar {
    display: grid;
  }

  .tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }

  .tabs button {
    flex: 0 0 auto;
  }

  .live-chart-shell {
    height: 360px;
    min-height: 360px;
  }

  .chart-summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .chart-price {
    justify-items: start;
  }

  .chart-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .asset-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .app-sidebar nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .app-sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 75;
    width: min(310px, 86vw);
    overflow-y: auto;
    transform: translateX(-105%);
    transition: transform 180ms ease;
    border-right: 1px solid var(--border);
    border-bottom: 0;
    background: rgba(10, 14, 26, 0.98);
  }

  .app-sidebar.drawer-open {
    transform: translateX(0);
  }

  .panel-head,
  .app-topbar,
  .referral-link {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer .risk {
    justify-self: start;
    text-align: left;
  }

  .mobile-bottom-nav {
    display: grid;
  }

  .chat-widget {
    right: 12px;
    bottom: 86px;
  }

  .chat-bubble {
    width: 52px;
    height: 52px;
  }

  .chat-panel {
    right: -2px;
    bottom: 62px;
    max-height: calc(100vh - 170px);
  }

  .chat-messages {
    max-height: min(300px, 42vh);
  }

  .cookie-banner {
    right: 10px;
    bottom: 74px;
    left: 10px;
    align-items: stretch;
    flex-direction: column;
  }

  .cookie-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .risk-disclosure-banner {
    position: static;
    grid-template-columns: 1fr;
    padding: 12px 14px;
    font-size: 0.88rem;
  }

  .scroll-top {
    right: 14px;
    bottom: 144px;
  }
}

@media (max-width: 640px) {
  #marketsTable th:nth-child(4),
  #marketsTable td:nth-child(4),
  #marketsTable th:nth-child(5),
  #marketsTable td:nth-child(5) {
    display: none;
  }
}

@media (max-width: 480px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .topbar-actions {
    gap: 6px;
  }

  .topbar-actions button {
    padding-inline: 8px;
  }
}

@media (max-width: 440px) {
  .header-actions {
    grid-template-columns: 1fr auto;
  }

  .language-cluster,
  .header-actions > .button {
    grid-column: 1 / -1;
  }

  .header-actions > .button {
    width: 100%;
  }

  .hero-actions .button,
  .quick-panel .button {
    width: 100%;
  }

  .asset-grid {
    grid-template-columns: 1fr;
  }

  .chart-stats,
  .market-actions {
    grid-template-columns: 1fr;
  }

  .market-actions {
    display: grid;
  }

  .chart-stats {
    grid-template-columns: 1fr;
  }

  .live-chart-shell {
    height: 320px;
    min-height: 320px;
  }

  .chat-panel {
    width: calc(100vw - 24px);
  }

  .mobile-bottom-nav {
    right: 6px;
    bottom: 6px;
    left: 6px;
    padding: 6px;
  }

  .mobile-bottom-nav a {
    font-size: 0.68rem;
  }
}

/* Light monochrome rebuild skin. Keep the product features, remove the old dark mood. */
:root,
:root[data-theme="light"] {
  color-scheme: light;
  --bg-primary: #f1f7fb;
  --bg-secondary: #e3edf4;
  --bg-card: #ffffff;
  --border: #c5d5e3;
  --accent-blue: #050505;
  --accent-blue-light: #050505;
  --accent-gold: #8a6a18;
  --text-primary: #050505;
  --text-secondary: #4d5d72;
  --success: #0f8a45;
  --danger: #c2410c;
  --warning: #8a6a18;
  --glass: rgba(255, 255, 255, 0.92);
  --shadow: 0 24px 70px rgba(33, 55, 82, 0.11);
}

body {
  background:
    radial-gradient(circle at 18% 0%, rgba(126, 173, 204, 0.24), transparent 24rem),
    radial-gradient(circle at 82% 10%, rgba(203, 219, 229, 0.32), transparent 20rem),
    linear-gradient(180deg, #eef6fb 0%, #f7fafc 42%, #edf4f9 100%);
  color: var(--text-primary);
}

.risk-disclosure-banner {
  top: 74px;
  border-bottom: 1px solid #eadca6;
  background: #fff8dc;
  color: #171717;
  backdrop-filter: none;
}

.risk-disclosure-banner button,
.modal-close {
  background: #ffffff;
  color: #050505;
}

.site-header {
  background: rgba(239, 246, 250, 0.94);
  border-bottom: 1px solid rgba(56, 189, 248, 0.14);
  backdrop-filter: blur(18px);
}

.site-header[data-elevated="true"] {
  border-color: rgba(56, 189, 248, 0.22);
  background: rgba(235, 244, 249, 0.97);
}

.brand-mark {
  border-color: rgba(56, 189, 248, 0.5);
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.26), rgba(245, 158, 11, 0.18));
  color: #050505;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    0 10px 24px rgba(56, 189, 248, 0.1);
}

.nav-links,
.login-link {
  color: #5b6674;
}

.translator,
select,
input,
textarea {
  background: #ffffff;
  color: #050505;
}

.language-reset,
.mobile-menu,
.topbar-actions button,
.copy-btn,
.toggle {
  background: #ffffff;
  color: #050505;
}

#themeToggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  min-height: 42px;
  min-width: 42px;
  padding: 0;
  flex: 0 0 42px;
}

.mobile-menu span {
  background: #050505;
}

.button-primary {
  background: #050505;
  color: #ffffff;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.16);
}

.button-secondary {
  border-color: #d1deea;
  background: rgba(255, 255, 255, 0.88);
  color: #050505;
}

.hero {
  min-height: auto;
  padding-top: clamp(150px, 17vw, 210px);
  background:
    linear-gradient(180deg, #f3f8fb 0%, #f7fbfd 56%, #edf4f8 100%),
    radial-gradient(circle at 32% 12%, rgba(56, 189, 248, 0.14), transparent 20rem),
    radial-gradient(circle at 74% 18%, rgba(203, 213, 225, 0.22), transparent 18rem);
}

.hero-bg {
  display: none;
}

.hero-grid {
  grid-template-columns: minmax(0, 1fr);
  gap: 34px;
  min-height: auto;
  text-align: center;
}

.hero-copy {
  max-width: 900px;
  margin: 0 auto;
}

.status-pill {
  margin-inline: auto;
  border-color: #d6e3ec;
  background: rgba(255, 255, 255, 0.98);
  color: #050505;
  box-shadow: 0 10px 28px rgba(56, 189, 248, 0.08);
}

.status-pill span {
  background: #050505;
  box-shadow: none;
}

h1 {
  max-width: 940px;
  margin-inline: auto;
  font-size: clamp(3.5rem, 9.2vw, 7.6rem);
}

h2 {
  font-size: clamp(2.4rem, 6vw, 5.8rem);
}

.hero-copy p {
  max-width: 780px;
  margin-inline: auto;
  color: #526172;
  font-size: clamp(1.08rem, 1.8vw, 1.34rem);
}

.hero-actions {
  justify-content: center;
}

.hero-actions .button {
  min-width: min(100%, 360px);
  min-height: 58px;
}

.compliance-note {
  max-width: 690px;
  margin-inline: auto;
}

.terminal-card {
  position: relative;
  overflow: hidden;
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(20px, 3vw, 30px);
  text-align: left;
  border-color: rgba(255, 255, 255, 0.76);
  border-radius: 34px;
  background:
    radial-gradient(circle at 15% 0%, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0) 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(247, 247, 244, 0.72));
  box-shadow:
    0 38px 110px rgba(15, 23, 42, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(22px) saturate(130%);
}

.terminal-card::before {
  content: "";
  position: absolute;
  inset: 12px;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 26px;
}

.terminal-top {
  position: relative;
  z-index: 1;
  margin-bottom: 16px;
}

.terminal-top strong {
  padding: 8px 12px;
  border-radius: 999px;
  background: #050505;
  color: #ffffff;
  font-size: 0.74rem;
}

.plan-card,
.ecosystem-card,
.flow-card,
.table-card,
.metric-card,
.quick-panel,
.vault-form,
.trust-card,
.review-carousel article,
.app-shell,
.alert-card,
.referral-link,
.market-chart-panel,
.security-score-card,
.qr-card,
.share-card {
  border-color: #e5e5e0;
  background: #ffffff;
  box-shadow: var(--shadow);
  backdrop-filter: none;
}

.balance-card,
.terminal-grid div,
.live-chart-shell,
.wallet-box,
.captcha-box,
.qr-box {
  border-color: #e5e5e0;
  background: #f7f7f5;
}

.balance-card {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
  margin: 0 0 16px;
  padding: clamp(18px, 3vw, 28px);
  border-color: rgba(255, 255, 255, 0.78);
  border-radius: 26px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(242, 242, 238, 0.64)),
    rgba(255, 255, 255, 0.74);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 18px 48px rgba(15, 23, 42, 0.08);
}

.balance-card strong {
  margin-top: 8px;
  color: #050505;
  font-size: clamp(2.2rem, 5vw, 4.45rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
}

.balance-card small {
  color: #4b5563;
  max-width: 460px;
  font-size: 0.92rem;
  line-height: 1.5;
}

.spark-wrap {
  position: relative;
  z-index: 1;
  margin: 0 0 16px;
  padding: 6px 0 0;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(5, 5, 5, 0.035));
}

.spark-wrap svg {
  display: block;
  width: 100%;
  min-height: 180px;
}

.terminal-grid {
  position: relative;
  z-index: 1;
  gap: 12px;
}

.terminal-grid div {
  min-height: 96px;
  padding: 16px;
  border-color: rgba(255, 255, 255, 0.78);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.66);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.terminal-grid span {
  display: block;
  color: #667085;
  font-size: 0.84rem;
}

.terminal-grid strong {
  margin-top: 12px;
  color: #050505;
  font-size: 1.28rem;
}

.chart-line,
.profit-line {
  stroke: #050505 !important;
  filter: none;
}

.chart-area,
.profit-area {
  fill: rgba(0, 0, 0, 0.08);
}

.ticker-tape {
  position: relative;
  margin-top: 56px;
  background: #050505;
  border-color: #050505;
}

.ticker-track b,
.ticker-track span {
  color: #ffffff;
}

.ticker-track i {
  color: #86efac;
}

.stats-bar {
  background: #f6f6f4;
  border-color: #e5e5e0;
}

.stats-bar div {
  border-color: #e5e5e0;
}

.stats-bar strong,
.eyebrow,
.roi,
.ecosystem-icon,
.ecosystem-card a,
.plan-tag,
.trust-card span,
.market-count,
.asset-icon {
  color: #050505;
}

.ecosystem-icon,
.asset-icon,
.avatar {
  background: #050505;
  border-color: #050505;
  color: #ffffff;
}

.workflow-section,
.asset-section,
.security-section,
.faq-section,
.ecosystem-section {
  background: #f6f6f4;
}

.ecosystem-card::after {
  background: radial-gradient(circle, rgba(0, 0, 0, 0.06), transparent 66%);
}

.ecosystem-card:hover,
.plan-card:hover,
.flow-card:hover,
.trust-card:hover {
  border-color: #050505;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.12);
}

.plan-card.featured {
  border-color: #050505;
  background: #050505;
  color: #ffffff;
}

.plan-card.featured p,
.plan-card.featured li {
  color: rgba(255, 255, 255, 0.74);
}

.plan-card.featured .plan-tag,
.plan-card.featured .roi {
  border-color: rgba(255, 255, 255, 0.28);
  color: #ffffff;
}

.tabs button {
  background: #ffffff;
  color: #050505;
}

.tabs button.active {
  border-color: #050505;
  background: #050505;
  color: #ffffff;
}

.badge.success {
  background: #e9f8ef;
  color: #0f8a45;
}

.badge.warning {
  background: #fff6d7;
  color: #76520d;
}

.badge.danger {
  background: #fee2e2;
  color: #991b1b;
}

.chat-bubble {
  background: #050505;
  color: #ffffff;
}

.chat-panel,
.chat-input,
.chat-header {
  background: #ffffff;
  color: #050505;
}

.chat-message.bot {
  background: #f1f1ee;
  color: #050505;
}

.chat-message.user {
  background: #050505;
  color: #ffffff;
}

.quick-replies button {
  background: #ffffff;
  color: #050505;
}

.site-footer {
  background:
    radial-gradient(circle at 12% 0%, rgba(56, 189, 248, 0.08), transparent 18rem),
    #050505;
  color: rgba(255, 255, 255, 0.92);
}

.site-footer p,
.site-footer .risk,
.site-footer nav {
  color: #98a2b3;
}

.site-footer .brand-mark {
  border-color: #ffffff;
  background: #ffffff;
  color: #050505;
}

.cookie-banner,
.mobile-bottom-nav,
.notification-menu,
.legal-modal,
.onboarding-modal {
  border-color: #e5e5e0;
  background: #ffffff;
  color: #050505;
  box-shadow: var(--shadow);
}

.mobile-bottom-nav a {
  color: #4b5563;
}

.mobile-bottom-nav {
  display: none !important;
}

.member-only {
  display: none;
}

.auth-section {
  display: none;
}

body.logged-in .member-only {
  display: block;
}

body.logged-in #memberGate {
  display: none;
}

.liquid-glass,
.partner-card,
.contact-strip,
.member-gate,
.auth-card,
.footer-contact {
  border: 1px solid rgba(255, 255, 255, 0.72);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.6)),
    rgba(255, 255, 255, 0.74);
  box-shadow:
    0 30px 90px rgba(15, 23, 42, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(22px) saturate(1.2);
}

.partner-section,
.contact-section {
  background:
    radial-gradient(circle at 80% 12%, rgba(0, 0, 0, 0.055), transparent 22rem),
    #ffffff;
}

.partner-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.partner-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: clamp(24px, 5vw, 52px);
  align-items: center;
  min-height: 360px;
  padding: clamp(28px, 5vw, 58px);
  border-radius: 28px;
}

.partner-photo {
  display: grid;
  width: min(100%, 220px);
  aspect-ratio: 1;
  place-items: center;
  overflow: hidden;
  border: 7px solid #ffffff;
  border-radius: 30px;
  background:
    radial-gradient(circle at 35% 25%, #ffffff, transparent 26%),
    linear-gradient(135deg, #050505, #6b7280);
  color: #ffffff;
  font-family: "Sora", sans-serif;
  font-size: 3rem;
  font-weight: 900;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.15);
}

.partner-photo svg,
.review-photo svg {
  display: block;
  width: 100%;
  height: 100%;
}

.partner-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.quote-mark {
  display: block;
  height: 46px;
  color: #c9cdd3;
  font-family: Georgia, serif;
  font-size: 5rem;
  line-height: 0.7;
}

.partner-code {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding: 12px 20px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.partner-code span {
  font-weight: 800;
  color: var(--text-primary);
  font-size: 0.88rem;
  letter-spacing: 0.04em;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(30px, 6vw, 82px);
  align-items: start;
}

.about-section .section-heading h2 {
  max-width: 820px;
  font-size: clamp(3rem, 6.4vw, 6.4rem);
  line-height: 0.94;
}

.about-section .section-heading p {
  max-width: 620px;
  color: #525f70;
}

.about-copy {
  color: #4b5563;
  padding-top: 8px;
  font-size: clamp(1.02rem, 1.35vw, 1.16rem);
  line-height: 1.72;
}

.about-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.about-points span {
  min-height: 58px;
  padding: 16px;
  border: 1px solid #e5e5e0;
  border-radius: 18px;
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.94), rgba(247, 247, 244, 0.78));
  color: #050505;
  font-weight: 800;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 18px 46px rgba(15, 23, 42, 0.05);
}

.contact-strip,
.footer-contact {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: clamp(20px, 3vw, 36px);
  border-radius: 30px;
}

.contact-strip article,
.footer-contact article {
  display: flex;
  gap: 18px;
  align-items: center;
}

.contact-icon {
  display: grid;
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: #050505;
  color: #ffffff;
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
}

.contact-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-icon.whatsapp-icon {
  background: #050505;
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
}

.contact-icon.whatsapp-icon svg {
  fill: currentColor;
  stroke: none;
}

.contact-strip small,
.footer-contact small {
  display: block;
  color: #98a2b3;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-strip strong,
.footer-contact strong {
  display: block;
  color: #ffffff;
  font-size: clamp(0.92rem, 1.25vw, 1.08rem);
}

.member-gate {
  width: min(1100px, calc(100% - 32px));
  margin: 34px auto 90px;
  padding: clamp(32px, 6vw, 72px);
  border-radius: 34px;
  text-align: center;
}

.member-gate h2 {
  max-width: 850px;
  margin-inline: auto;
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  place-items: center;
  padding: 18px;
  background: rgba(255, 255, 255, 0.46);
  backdrop-filter: blur(18px);
}

.auth-modal.open {
  display: grid;
}

.auth-card {
  width: min(560px, 100%);
  padding: clamp(26px, 5vw, 46px);
  border-radius: 30px;
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(260px, 1.2fr) repeat(3, minmax(132px, 0.72fr));
  gap: clamp(24px, 4vw, 58px);
  padding: clamp(42px, 5vw, 68px) clamp(18px, 5vw, 72px) clamp(30px, 4vw, 48px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand p {
  max-width: 430px;
  margin-top: 18px;
  color: #98a2b3;
  font-size: 0.88rem;
  font-weight: 750;
  line-height: 1.7;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.social-row {
  display: flex;
  gap: 14px;
  margin-top: 22px;
}

.social-row a {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
  font-weight: 900;
}

.site-footer nav {
  display: grid;
  align-content: start;
  gap: 14px;
}

.site-footer nav strong {
  color: #ffffff;
  margin-bottom: 4px;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-footer nav a,
.site-footer nav button {
  border: 0;
  background: transparent;
  color: #98a2b3;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-align: left;
  text-transform: uppercase;
  cursor: pointer;
}

.footer-contact {
  width: min(100% - 64px, 1500px);
  margin: 0 auto 18px;
  padding: clamp(16px, 2.2vw, 24px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(135deg, rgba(21, 25, 37, 0.96), rgba(10, 14, 26, 0.9));
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.footer-contact article {
  min-width: 0;
  padding: 8px;
}

.footer-contact article > div,
.contact-strip article > div {
  min-width: 0;
}

.footer-contact strong,
.contact-strip strong {
  overflow-wrap: anywhere;
  word-break: normal;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 18px clamp(18px, 5vw, 72px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #98a2b3;
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-footer .risk {
  width: min(100% - 64px, 1500px);
  margin: 0 auto 22px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  color: #98a2b3;
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.65;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.footer-auth {
  width: fit-content;
}

.faq-section .section-heading h2 {
  font-size: clamp(2rem, 4.2vw, 4.4rem);
}

.faq-section .section-heading {
  max-width: 900px;
  margin-inline: auto;
  text-align: center;
}

.faq-section .section-heading p {
  max-width: 700px;
  margin-inline: auto;
}

.faq-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.faq-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  max-width: 1220px;
  margin: 0 auto;
}

.faq-categories {
  display: grid;
  gap: 12px;
  position: sticky;
  top: 110px;
}

.faq-category {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-height: 92px;
  padding: 18px 18px 18px 20px;
  border: 1px solid transparent;
  border-radius: 22px;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  text-align: left;
  font: inherit;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.faq-category svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
}

.faq-category.active {
  background: #ffffff;
  color: #050505;
  border-color: var(--border);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.06);
}

.faq-list {
  display: grid;
  gap: 12px;
  max-width: none;
  margin-inline: 0;
}

.faq-list details[hidden] {
  display: none;
}

.faq-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  max-width: 1220px;
  margin-inline: auto;
}

.faq-list details {
  min-width: 0;
  border-color: #dfdfd8;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(250, 250, 248, 0.96));
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.06);
}

.faq-list details[open] {
  border-color: #bdbdb4;
}

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: #050505;
  font-size: clamp(1rem, 1.5vw, 1.18rem);
}

.faq-list summary::after {
  content: "+";
  color: #050505;
  font-family: "IBM Plex Mono", monospace;
}

.faq-list details[open] summary::after {
  content: "-";
}

.faq-list p {
  max-width: 900px;
  color: #374151;
  font-size: 0.98rem;
}

.install-prompt {
  position: fixed;
  right: 50%;
  bottom: 34px;
  z-index: 55;
  display: none;
  width: min(574px, calc(100% - 32px));
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 24px;
  border-radius: 20px;
  background: #050505;
  color: #ffffff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
  transform: translateX(50%);
}

.install-prompt strong,
.install-prompt span {
  display: block;
}

.install-prompt span {
  color: #a3a3a3;
}

.install-prompt button {
  min-width: 104px;
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  background: #ffffff;
  color: #050505;
  font-weight: 900;
  cursor: pointer;
}

.install-prompt.hidden {
  display: none;
}

@media (max-width: 980px) {
  .partner-grid,
  .about-layout,
  .contact-strip,
  .footer-contact,
  .footer-main {
    grid-template-columns: 1fr;
  }

  .partner-card {
    grid-template-columns: 1fr;
  }

  .partner-photo {
    width: min(220px, 100%);
  }

  .footer-bottom {
    flex-direction: column;
  }
}

@media (max-width: 760px) {
  .about-points {
    grid-template-columns: 1fr;
  }

  .partner-card,
  .member-gate,
  .contact-strip,
  .footer-contact {
    border-radius: 22px;
  }

  .install-prompt {
    display: none;
  }
}

.scroll-top {
  background: #050505;
  color: #ffffff;
  right: 92px;
  bottom: 24px;
  min-width: 58px;
  border-color: #050505;
}

.chat-widget {
  right: 24px;
  bottom: 24px;
}

@media (max-width: 760px) {
  .site-header {
    background: rgba(255, 255, 255, 0.96);
  }

  .nav-links {
    background: #ffffff;
  }

  .hero {
    padding-top: 42px;
  }

  h1 {
    font-size: clamp(3rem, 15vw, 4.8rem);
  }

  .hero-actions .button {
    min-width: 0;
    width: 100%;
  }

  .app-sidebar {
    background: #ffffff;
  }
}

@media (max-width: 768px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  body {
    padding-bottom: 84px;
  }

  .site-shell {
    width: 100%;
    overflow-x: clip;
  }

  .risk-disclosure-banner {
    position: static;
    grid-template-columns: 1fr auto;
    gap: 6px 10px;
    padding: 8px 12px;
    font-size: 0.76rem;
    line-height: 1.35;
  }

  .risk-disclosure-banner strong {
    grid-column: 1 / -1;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .risk-disclosure-banner button {
    min-height: 34px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 0.78rem;
  }

  .site-header {
    position: sticky;
    top: 0;
    grid-template-columns: minmax(0, 1fr) 46px;
    gap: 8px;
    padding: 9px 12px;
  }

  .brand {
    gap: 9px;
    font-size: 1rem;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 10px;
  }

  .brand-mark svg {
    width: 24px;
    height: 24px;
  }

  .mobile-menu {
    width: 46px;
    height: 44px;
    min-height: 44px;
    justify-self: end;
    border-radius: 12px;
  }

  .nav-links {
    top: calc(100% + 8px);
    right: 12px;
    left: 12px;
    width: auto;
    gap: 4px;
    padding: 10px;
    border-radius: 18px;
    box-shadow: 0 22px 60px rgba(15, 23, 42, 0.18);
  }

  .nav-links a {
    display: flex;
    min-height: 44px;
    align-items: center;
    padding: 0 12px;
    border-radius: 12px;
    color: #050505;
  }

  .nav-links a:hover {
    background: #f4f4f2;
  }

  .header-actions {
    grid-column: 1 / -1;
    width: 100%;
  }

  .language-cluster {
    grid-template-columns: minmax(0, 1fr) 46px;
    width: 100%;
  }

  .translator,
  .language-reset {
    min-height: 44px;
    border-radius: 12px;
  }

  .translator {
    padding: 4px 8px;
  }

  .translator select {
    min-height: 34px;
    font-size: 0.95rem;
  }

  .language-reset {
    width: 46px;
    height: 44px;
  }

  .header-actions > .button {
    display: none;
  }

  .section-pad {
    padding: 46px 14px;
  }

  .hero {
    padding-top: 34px;
  }

  .hero-grid {
    gap: 24px;
  }

  .status-pill {
    max-width: 100%;
    min-height: 36px;
    padding: 7px 10px;
    font-size: 0.78rem;
    white-space: normal;
  }

  h1 {
    font-size: clamp(2.55rem, 12vw, 3.55rem);
    line-height: 0.95;
  }

  h2,
  .about-section .section-heading h2,
  .faq-section .section-heading h2 {
    font-size: clamp(2.05rem, 9vw, 3.25rem);
    line-height: 0.98;
  }

  h3 {
    font-size: clamp(1.18rem, 5vw, 1.55rem);
  }

  .hero-copy p,
  .section-heading p,
  .about-copy,
  .contact-strip strong,
  .footer-contact strong {
    font-size: 0.98rem;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    width: 100%;
  }

  .hero-actions .button,
  .button {
    min-height: 48px;
    white-space: normal;
  }

  .compliance-note {
    font-size: 0.82rem;
  }

  .terminal-card {
    width: 100%;
    padding: 14px;
    border-radius: 24px;
  }

  .terminal-card::before {
    inset: 8px;
    border-radius: 18px;
  }

  .terminal-top {
    gap: 8px;
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 12px;
    font-size: 0.84rem;
  }

  .terminal-top strong {
    padding: 7px 10px;
    font-size: 0.66rem;
  }

  .balance-card {
    gap: 10px;
    padding: 16px;
    border-radius: 18px;
  }

  .balance-card strong {
    font-size: clamp(1.8rem, 10vw, 2.7rem);
    letter-spacing: -0.03em;
  }

  .balance-card small {
    display: block;
    max-width: calc(100% - 64px);
    font-size: 0.8rem;
  }

  .spark-wrap svg {
    min-height: 118px;
  }

  .terminal-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .terminal-grid div {
    min-height: 76px;
    padding: 10px;
    border-radius: 16px;
  }

  .terminal-grid span {
    font-size: 0.7rem;
  }

  .terminal-grid strong {
    margin-top: 8px;
    font-size: 1rem;
  }

  .ticker-tape {
    margin-top: 34px;
    max-width: 100%;
    overflow: hidden;
  }

  .ticker-track span {
    gap: 8px;
    padding-inline: 16px;
    font-size: 0.78rem;
  }

  .stats-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-inline: 14px;
    border-radius: 24px;
  }

  .stats-bar div {
    min-height: 118px;
    padding: 18px 10px;
    border-right: 1px solid #eeeeea;
    border-bottom: 1px solid #eeeeea;
  }

  .stats-bar div:nth-child(2n) {
    border-right: 0;
  }

  .counter {
    font-size: clamp(1.85rem, 9vw, 2.55rem);
  }

  .ecosystem-grid,
  .partner-grid,
  .plans-grid,
  .flow-grid,
  .dashboard-grid,
  .trust-grid,
  .review-carousel,
  .referral-grid,
  .referral-enhance-grid,
  .security-grid,
  .settings-grid,
  .form-grid,
  .deposit-layout,
  .auth-grid,
  .two-col {
    grid-template-columns: 1fr;
  }

  .ecosystem-card,
  .plan-card,
  .flow-card,
  .metric-card,
  .quick-panel,
  .vault-form,
  .trust-card,
  .review-carousel article,
  .table-card,
  .alert-card,
  .qr-card,
  .share-card,
  .security-score-card {
    padding: 18px;
    border-radius: 20px;
  }

  .partner-card {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 22px;
    border-radius: 24px;
  }

  .partner-photo {
    width: min(190px, 100%);
    aspect-ratio: 1;
  }

  .quote-mark {
    height: 28px;
    font-size: 3.2rem;
  }

  .about-layout,
  .contact-strip,
  .footer-contact,
  .footer-main {
    grid-template-columns: 1fr;
  }

  .about-copy {
    padding-top: 0;
  }

  .about-points {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 20px;
  }

  .about-points span {
    min-height: 52px;
    padding: 14px;
  }

  .contact-strip,
  .footer-contact {
    width: min(100% - 28px, 1500px);
    gap: 12px;
    padding: 14px;
    border-radius: 22px;
  }

  .contact-strip article,
  .footer-contact article {
    gap: 12px;
    align-items: flex-start;
    padding: 6px;
  }

  .contact-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    font-size: 0.82rem;
  }

  .member-gate {
    width: calc(100% - 28px);
    margin: 22px auto 54px;
    padding: 28px 18px;
    border-radius: 24px;
  }

  .member-gate h2 {
    font-size: clamp(1.85rem, 8vw, 2.7rem);
  }

  .market-toolbar,
  .chart-summary,
  .panel-head,
  .app-topbar,
  .referral-link,
  .method-card {
    align-items: stretch;
    flex-direction: column;
  }

  .market-toolbar {
    display: grid;
    gap: 12px;
  }

  .tabs {
    max-width: 100%;
    overflow-x: auto;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
  }

  .tabs button,
  .chart-button,
  .copy-btn,
  .topbar-actions button {
    min-height: 44px;
  }

  .asset-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .method-pill {
    min-height: 54px;
  }

  .live-chart-shell {
    height: 320px;
    min-height: 320px;
  }

  .chart-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .app-shell {
    min-height: auto;
    border-radius: 22px;
  }

  .app-main {
    padding: 14px;
  }

  .app-topbar {
    gap: 12px;
  }

  .topbar-actions {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    width: 100%;
  }

  .topbar-actions button {
    flex: 0 0 auto;
    width: auto;
    padding-inline: 10px;
  }

  .notification-wrap {
    flex: 0 0 auto;
  }

  .notification-wrap button {
    white-space: nowrap;
  }

  .avatar {
    flex: 0 0 auto;
  }

  .dashboard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .metric-card strong {
    font-size: clamp(1.2rem, 6vw, 1.65rem);
  }

  .chart-panel,
  .allocation-widget {
    padding: 14px;
    border-radius: 18px;
  }

  .area-chart {
    height: 170px;
  }

  .table-card {
    max-width: 100%;
    padding: 14px;
    overflow-x: auto;
  }

  #markets .table-card {
    max-height: min(620px, 72vh);
    overflow: auto;
  }

  #markets .data-table thead {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #ffffff;
  }

  .data-table {
    min-width: auto;
    width: 100%;
  }

  .data-table th,
  .data-table td {
    padding: 12px 10px;
  }

  .vault-form input,
  .vault-form select,
  .vault-form textarea,
  .chat-input input {
    min-height: 44px;
  }

  .notification-menu {
    right: auto;
    left: 0;
    width: min(320px, calc(100vw - 28px));
  }

  .auth-card,
  .legal-modal,
  .onboarding-modal {
    max-height: calc(100vh - 24px);
    overflow-y: auto;
    padding: 22px;
    border-radius: 22px;
  }

  .chat-widget {
    right: 10px;
    bottom: 10px;
  }

  .chat-bubble {
    width: 46px;
    height: 46px;
    font-size: 0.78rem;
  }

  body.logged-in .chat-widget {
    bottom: 90px;
  }

  body.logged-in .chat-bubble {
    width: 52px;
    height: 52px;
    font-size: 0.9rem;
  }

  .chat-panel {
    right: -2px;
    width: calc(100vw - 24px);
    max-height: calc(100vh - 164px);
    border-radius: 20px;
  }

  .scroll-top {
    right: 76px;
    bottom: 18px;
  }

  body.logged-in .scroll-top {
    bottom: 92px;
  }

  .mobile-bottom-nav {
    right: 8px;
    bottom: 8px;
    left: 8px;
    gap: 4px;
    padding: 7px;
    border-radius: 20px;
  }

  .mobile-bottom-nav a {
    min-height: 48px;
  }

  .cookie-banner {
    right: 10px;
    bottom: 82px;
    left: 10px;
    padding: 14px;
    border-radius: 18px;
  }

  .cookie-actions {
    grid-template-columns: 1fr 1fr;
  }

  .site-footer {
    overflow: hidden;
  }

  .footer-main {
    gap: 28px;
    padding: 38px 18px 28px;
  }

  .site-footer nav {
    gap: 10px;
  }

  .site-footer nav a,
  .site-footer nav button {
    min-height: 38px;
  }

  .site-footer .risk {
    width: calc(100% - 28px);
    margin-bottom: 18px;
    padding: 14px;
    font-size: 0.72rem;
  }

  .footer-bottom {
    padding: 16px 18px 92px;
    font-size: 0.72rem;
  }
}

@media (max-width: 480px) {
  .risk-disclosure-banner {
    grid-template-columns: 1fr auto;
  }

  .risk-disclosure-banner button {
    width: auto;
  }

  .site-header {
    padding-inline: 10px;
  }

  .brand {
    font-size: 0.96rem;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .translator select {
    font-size: 0.9rem;
  }

  .section-pad {
    padding: 40px 12px;
  }

  h1 {
    font-size: clamp(2.35rem, 13vw, 3.1rem);
  }

  h2,
  .about-section .section-heading h2,
  .faq-section .section-heading h2 {
    font-size: clamp(1.95rem, 10vw, 2.75rem);
  }

  .hero {
    padding-top: 28px;
  }

  .terminal-card,
  .ecosystem-card,
  .plan-card,
  .flow-card,
  .metric-card,
  .quick-panel,
  .vault-form,
  .trust-card,
  .review-carousel article,
  .table-card,
  .alert-card,
  .partner-card {
    padding: 16px;
  }

  .balance-card strong {
    font-size: clamp(1.65rem, 10.5vw, 2.3rem);
  }

  .terminal-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .terminal-grid div {
    min-height: 62px;
  }

  .asset-grid {
    grid-template-columns: 1fr;
  }

  .stats-bar,
  .dashboard-grid,
  .chart-stats,
  .cookie-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .topbar-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .stats-bar div {
    min-height: 98px;
  }

  .stats-bar div:nth-child(odd) {
    border-right: 1px solid #eeeeea;
  }

  .stats-bar div:nth-child(even) {
    border-right: 0;
  }

  .partner-photo {
    width: min(170px, 100%);
  }

  .contact-strip article,
  .footer-contact article {
    align-items: center;
  }

  .live-chart-shell {
    height: 280px;
    min-height: 280px;
  }

  .data-table {
    min-width: auto;
    width: 100%;
  }

  .auth-card,
  .legal-modal,
  .onboarding-modal {
    padding: 18px;
  }

  .mobile-bottom-nav a {
    font-size: 0.66rem;
  }
}

/* Signup screen polish */
.auth-modal {
  overflow-y: auto;
  place-items: start center;
  padding: clamp(28px, 5vw, 64px) 18px;
  background:
    radial-gradient(circle at 50% 0%, rgba(0, 0, 0, 0.04), transparent 28rem),
    #f7f8fa;
  backdrop-filter: none;
}

.auth-card.signup-screen {
  width: min(1150px, 100%);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.signup-screen {
  width: min(1150px, 100%);
  margin: 0 auto;
}

.signup-heading {
  margin-bottom: 34px;
  text-align: center;
}

.signup-heading .eyebrow {
  justify-content: center;
}

.signup-heading h2 {
  margin: 0;
  color: #050505;
  font-size: clamp(2.3rem, 4.5vw, 4.4rem);
  line-height: 1.02;
}

.signup-heading p {
  margin: 12px 0 0;
  color: #4b5563;
  font-size: clamp(1rem, 1.6vw, 1.35rem);
}

.auth-inline-link {
  border: 0;
  background: transparent;
  color: #050505;
  cursor: pointer;
  font-weight: 900;
}

.signup-bonus {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 18px;
  align-items: center;
  width: min(1010px, 100%);
  margin: 0 auto 48px;
  padding: 30px 26px;
  border: 1px solid #ececef;
  border-radius: 18px;
  background:
    linear-gradient(100deg, #ffffff 0%, #ffffff 54%, #fbf6ff 100%);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
}

.signup-bonus-icon {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 12px;
  background: #050505;
  color: #ffffff;
  font-size: 1.8rem;
  font-weight: 900;
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.18);
}

.signup-bonus h3 {
  margin: 0 0 6px;
  color: #050505;
  font-size: 1.25rem;
}

.signup-bonus p {
  margin: 0;
  color: #344054;
  font-size: 1.02rem;
  line-height: 1.55;
}

.signup-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px;
  width: min(1150px, 100%);
  margin: 0 auto;
  padding: clamp(34px, 4vw, 48px);
  border: 1px solid #dedfe3;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
}

.signup-form fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.signup-form legend {
  width: 100%;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid #edf0f4;
  color: #050505;
  font-size: 1.24rem;
  font-weight: 900;
}

.signup-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.input-shell {
  display: flex;
  min-width: 0;
  min-height: 68px;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  border: 1px solid #dfe3ea;
  border-radius: 12px;
  background: #fbfcfe;
  color: #98a2b3;
}

.input-shell.wide {
  grid-column: 1 / -1;
}

.signup-form-grid > .wide {
  grid-column: 1 / -1;
}

.input-shell span {
  flex: 0 0 auto;
  color: #98a2b3;
  font-family: "IBM Plex Mono", monospace;
  font-size: 1.15rem;
  font-weight: 700;
}

.input-shell input,
.input-shell select {
  min-height: 64px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #050505;
  font-size: 1.04rem;
  outline: none;
}

.input-shell input::placeholder,
.input-shell select:invalid {
  color: #98a2b3;
  opacity: 1;
}

.promo-input input {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.92rem;
  text-transform: uppercase;
}

.phone-field-group {
  display: grid;
  width: 100%;
  gap: 8px;
  align-content: start;
}

.phone-field-group .input-shell {
  width: 100%;
  padding: 0 16px;
  gap: 0;
}

.phone-shell {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 0;
}

.phone-code-select {
  width: 100px;
  min-width: 100px;
  min-height: auto;
  flex-shrink: 0;
  height: 44px;
  padding: 0 28px 0 0;
  margin: 0;
  border: 0;
  border-radius: 8px;
  background-color: transparent;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5L6 8l3.5-3.5' fill='none' stroke='%237f8a9b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: right 8px center;
  background-repeat: no-repeat;
  color: #050505;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.98rem;
  font-weight: 700;
  cursor: pointer;
  outline: none;
}

.phone-divider {
  width: 1px;
  height: 28px;
  flex-shrink: 0;
  margin: 0 4px;
  background: #dfe3ea;
}

.phone-shell input {
  flex: 1 1 auto;
  min-width: 0;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #050505;
  font-size: 0.98rem;
  outline: none;
}
}

.phone-field-status {
  min-height: 0;
  margin: 0 4px;
  font-size: 0.86rem;
  opacity: 0;
  transition: opacity 0.18s ease;
}

.phone-field-status[data-status="error"] {
  opacity: 1;
}

.signup-submit {
  grid-column: 1 / -1;
  width: min(674px, 100%);
  min-height: 80px;
  margin: 2px auto 0;
  border-radius: 16px;
  font-size: 1.15rem;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
}

.signup-terms {
  grid-column: 1 / -1;
  max-width: 760px;
  margin: 0 auto;
  color: #667085;
  text-align: center;
}

.auth-modal .modal-close {
  position: sticky;
  top: 0;
  z-index: 2;
  float: right;
  min-height: 42px;
  margin: 0 0 10px 10px;
  border-color: #dfe3ea;
  border-radius: 999px;
}

.auth-modal.login-mode .signup-bonus,
.auth-modal.login-mode .signup-form fieldset:first-of-type,
.auth-modal.login-mode .signup-form .promo-input {
  display: none;
}

.auth-modal.login-mode .signup-form {
  grid-template-columns: 1fr;
  width: min(620px, 100%);
}

.auth-modal.login-mode .signup-form fieldset {
  display: block;
}

.auth-modal.login-mode .signup-form-grid {
  grid-template-columns: 1fr;
}

@media (max-width: 768px) {
  .auth-modal {
    padding: 18px 12px;
  }

  .signup-heading {
    margin-bottom: 22px;
  }

  .signup-heading h2 {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .signup-heading p,
  .signup-bonus p {
    font-size: 0.95rem;
  }

  .signup-bonus {
    grid-template-columns: 46px 1fr;
    gap: 14px;
    margin-bottom: 24px;
    padding: 18px;
    border-radius: 18px;
  }

  .signup-bonus-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    font-size: 1.4rem;
  }

  .signup-form {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 22px;
    border-radius: 22px;
  }

  .signup-form-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .input-shell {
    min-height: 58px;
    padding-inline: 14px;
  }

  .input-shell input,
  .input-shell select {
    min-height: 56px;
    font-size: 0.98rem;
  }

  .phone-code-select {
    padding: 0 24px 0 10px;
  }

  .signup-submit {
    min-height: 58px;
    border-radius: 14px;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .signup-heading h2 {
    font-size: clamp(1.85rem, 10vw, 2.55rem);
  }

  .signup-bonus {
    align-items: start;
  }

  .signup-form {
    padding: 18px;
  }

  .signup-form legend {
    margin-bottom: 16px;
    font-size: 1.08rem;
  }
}

/* Signup refinement pass */
.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

body.signup-route {
  min-height: 100vh;
  padding-bottom: 0;
  background:
    radial-gradient(circle at 50% -10%, rgba(0, 0, 0, 0.08), transparent 34rem),
    linear-gradient(180deg, #fafbfc 0%, #f3f5f7 100%);
}

.auth-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(100% - 36px, 1200px);
  margin: 18px auto 0;
}

.auth-page-header .brand {
  min-width: 0;
}

.auth-page-header .button {
  flex: 0 0 auto;
}

.auth-page-header--dark {
  width: min(100% - 36px, 1200px);
  margin-top: 18px;
}

body.login-route {
  min-height: 100vh;
  padding-bottom: 0;
  background:
    radial-gradient(circle at top left, rgba(14, 165, 233, 0.12), transparent 28rem),
    radial-gradient(circle at 80% 10%, rgba(245, 158, 11, 0.08), transparent 24rem),
    var(--bg-primary);
}

body.login-route.admin-login-route {
  background:
    linear-gradient(135deg, rgba(248, 250, 252, 0.98) 0%, rgba(228, 233, 242, 0.98) 55%, rgba(249, 250, 251, 1) 100%),
    repeating-linear-gradient(90deg, rgba(16, 24, 40, 0.045) 0 1px, transparent 1px 76px);
}

.login-route .site-shell,
.login-route .chat-widget,
.login-route .scroll-top,
.login-route .cookie-banner,
.login-route .mobile-bottom-nav {
  display: none !important;
}

.login-page {
  display: grid;
  place-items: start center;
  min-height: calc(100vh - 88px);
  padding: clamp(30px, 5vw, 58px) 16px 56px;
}

.login-panel {
  width: min(440px, 100%);
  margin-top: clamp(14px, 3vw, 22px);
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--border);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.admin-login-route .login-panel {
  width: min(500px, 100%);
  border-color: #d9dee8;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 24px 70px rgba(16, 24, 40, 0.14);
  backdrop-filter: blur(18px);
}

.admin-login-route .login-panel::before {
  content: "Restricted operations access";
  display: inline-flex;
  margin-bottom: 16px;
  padding: 7px 10px;
  border: 1px solid #d9dee8;
  border-radius: 999px;
  color: #344054;
  background: #f8fafc;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-login-route .login-field,
.admin-login-route .login-submit {
  border-radius: 12px;
}

.admin-login-route .login-submit {
  background: #101828;
}

.login-kicker {
  margin: 0 0 8px;
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.login-panel h1 {
  margin: 0 0 18px;
  color: var(--text-primary);
  font-size: clamp(1.7rem, 3vw, 2.15rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.login-form {
  display: grid;
  gap: 16px;
  width: 100%;
}

.login-field {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff, #fbfcfe);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.login-field:focus-within {
  border-color: rgba(5, 5, 5, 0.7);
  box-shadow:
    0 0 0 4px rgba(5, 5, 5, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.login-field .field-icon {
  color: #9aa4b2;
}

.login-field input {
  min-width: 0;
  flex: 1 1 auto;
  border: 0;
  background: transparent;
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.login-field input::placeholder {
  color: #9aa4b2;
  opacity: 1;
}

.login-field-password {
  padding-right: 12px;
}

.login-visibility {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-left: auto;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #97a0af;
  cursor: pointer;
}

.login-visibility svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.login-submit {
  min-height: 58px;
  margin-top: 4px;
  border: 0;
  border-radius: 16px;
  background: #050505;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 800;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.16);
  cursor: pointer;
}

.login-submit:hover {
  transform: translateY(-1px);
}

.login-back-home {
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.88);
  color: var(--text-primary);
}

.login-route .brand {
  color: var(--text-primary);
}

.login-route .brand-mark {
  border-color: rgba(56, 189, 248, 0.24);
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.2), rgba(245, 158, 11, 0.12));
  color: var(--accent-blue-light);
}

.login-route .button-secondary {
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.88);
  color: var(--text-primary);
}

.login-route .button-secondary:hover,
.login-route .button-secondary:focus-visible {
  border-color: rgba(5, 5, 5, 0.24);
  background: rgba(255, 255, 255, 1);
}

@media (max-width: 768px) {
  .auth-page-header--dark {
    width: min(100% - 24px, 1200px);
    margin-top: 12px;
  }

  .login-page {
    min-height: calc(100vh - 72px);
    padding: 18px 12px 40px;
  }

  .login-panel {
    width: min(100%, 420px);
    margin-top: 10px;
    padding: 20px;
    border-radius: 24px;
  }

  .login-panel h1 {
    margin-bottom: 16px;
    font-size: clamp(1.6rem, 8vw, 2rem);
  }

  .login-form {
    gap: 14px;
  }

  .login-field {
    min-height: 54px;
    padding: 0 14px;
    border-radius: 16px;
    gap: 10px;
  }

  .login-field input {
    font-size: 0.96rem;
  }

  .login-submit {
    min-height: 54px;
    border-radius: 16px;
    font-size: 0.98rem;
  }
}

@media (max-width: 480px) {
  .login-page {
    padding-top: 12px;
  }

  .login-panel {
    padding: 18px;
  }

  .login-field {
    min-height: 52px;
    padding: 0 12px;
  }

  .login-submit {
    min-height: 52px;
  }

  .login-visibility {
    width: 28px;
    height: 28px;
  }
}

.signup-route .site-shell,
.signup-route .chat-widget,
.signup-route .scroll-top,
.signup-route .cookie-banner,
.signup-route .mobile-bottom-nav {
  display: none !important;
}

.signup-route .auth-modal {
  position: static;
  display: grid;
  min-height: 100vh;
  overflow: visible;
  padding: clamp(34px, 5vw, 72px) 18px 64px;
}

.signup-route .auth-modal .modal-close {
  display: none;
}

.auth-modal,
.signup-screen {
  font-family: "Plus Jakarta Sans", "Manrope", ui-sans-serif, system-ui, sans-serif;
}

.auth-modal {
  background:
    radial-gradient(circle at 22% 8%, rgba(255, 255, 255, 0.95), transparent 26rem),
    radial-gradient(circle at 78% 4%, rgba(225, 229, 236, 0.72), transparent 22rem),
    #f6f7f9;
}

.signup-heading {
  position: relative;
  margin-bottom: 30px;
}

.signup-heading h2 {
  max-width: 980px;
  margin-inline: auto;
  font-family: "Plus Jakarta Sans", "Manrope", sans-serif;
  font-size: clamp(3.2rem, 5.4vw, 5.35rem);
  font-weight: 800;
  letter-spacing: -0.055em;
}

.signup-heading p {
  color: #566273;
  font-size: clamp(1rem, 1.45vw, 1.28rem);
  font-weight: 600;
}

.auth-inline-link {
  padding: 0;
  font-family: inherit;
  font-size: inherit;
}

.auth-inline-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.signup-bonus {
  width: min(980px, 100%);
  margin-bottom: 46px;
  padding: 26px;
  border-color: rgba(230, 232, 238, 0.9);
  border-radius: 22px;
  background:
    linear-gradient(105deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.94) 48%, rgba(250, 246, 255, 0.9) 100%);
  box-shadow:
    0 30px 80px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.signup-bonus-icon svg,
.field-icon svg {
  display: block;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.signup-bonus-icon {
  border-radius: 14px;
  background: #030303;
}

.signup-bonus h3 {
  font-size: 1.22rem;
  letter-spacing: -0.02em;
}

.signup-bonus p {
  max-width: 860px;
  color: #3c4656;
  font-weight: 600;
}

.signup-form {
  gap: clamp(28px, 4vw, 46px);
  padding: clamp(34px, 4.4vw, 54px);
  border-color: rgba(214, 219, 228, 0.92);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.94));
  box-shadow:
    0 34px 90px rgba(15, 23, 42, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.signup-form legend {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-color: #edf0f4;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.signup-form-grid {
  gap: 22px 24px;
}

.input-shell {
  min-height: 68px;
  border-color: #dde3ec;
  border-radius: 14px;
  background:
    linear-gradient(180deg, #ffffff, #fbfcfe);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 1px 2px rgba(15, 23, 42, 0.02);
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.input-shell:focus-within {
  border-color: #050505;
  background: #ffffff;
  box-shadow:
    0 0 0 4px rgba(5, 5, 5, 0.06),
    0 14px 30px rgba(15, 23, 42, 0.07);
}

.field-icon {
  display: grid;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  place-items: center;
  color: #98a2b3;
}

.input-shell:focus-within .field-icon {
  color: #050505;
}

.input-shell input,
.input-shell select {
  font-family: inherit;
  font-size: 1rem;
  font-weight: 650;
}

.input-shell input::placeholder {
  color: #9aa4b2;
}

.signup-submit {
  min-height: 76px;
  border-radius: 18px;
  font-family: inherit;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  box-shadow:
    0 26px 60px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.signup-submit:hover {
  transform: translateY(-1px);
  box-shadow:
    0 30px 70px rgba(0, 0, 0, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.signup-terms {
  color: #667085;
  font-size: 0.95rem;
  font-weight: 600;
}

.auth-modal .modal-close {
  color: #050505;
  font-family: inherit;
  font-weight: 700;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

@media (max-width: 768px) {
  .signup-route .auth-modal,
  .auth-modal {
    padding: 22px 12px 42px;
  }

  .signup-heading h2 {
    font-size: clamp(2.35rem, 10.5vw, 3.45rem);
    letter-spacing: -0.05em;
  }

  .signup-bonus {
    padding: 18px;
    margin-bottom: 24px;
  }

  .signup-form {
    padding: 22px;
  }

  .input-shell {
    min-height: 60px;
  }
}

@media (max-width: 480px) {
  .signup-heading h2 {
    font-size: clamp(2.05rem, 11vw, 2.9rem);
  }

  .signup-bonus {
    grid-template-columns: 46px 1fr;
    border-radius: 20px;
  }

  .signup-bonus h3 {
    font-size: 1.05rem;
  }

  .signup-form {
    padding: 18px;
    border-radius: 22px;
  }

  .signup-submit {
    min-height: 58px;
  }
}

/* Signup size tuning: keep the design, reduce the footprint. */
.auth-card.signup-screen,
.signup-screen {
  width: min(1040px, 100%);
}

.signup-route .auth-modal {
  padding: clamp(26px, 4vw, 52px) 18px 48px;
}

.signup-heading {
  margin-bottom: 22px;
}

.signup-heading h2 {
  max-width: 900px;
  font-size: clamp(2.7rem, 4.45vw, 4.45rem);
}

.signup-heading p {
  font-size: clamp(0.95rem, 1.2vw, 1.12rem);
}

.signup-bonus {
  width: min(900px, 100%);
  margin-bottom: 30px;
  padding: 20px 22px;
}

.signup-bonus-icon {
  width: 48px;
  height: 48px;
}

.signup-bonus h3 {
  font-size: 1.06rem;
}

.signup-bonus p {
  font-size: 0.94rem;
  line-height: 1.5;
}

.signup-form {
  width: min(1040px, 100%);
  gap: 26px 34px;
  padding: clamp(26px, 3.2vw, 40px);
}

.signup-form legend {
  margin-bottom: 17px;
  padding-bottom: 12px;
  font-size: 1.04rem;
}

.signup-form-grid {
  gap: 15px 18px;
}

.input-shell {
  min-height: 58px;
  gap: 10px;
  padding: 0 14px;
}

.field-icon {
  width: 21px;
  height: 21px;
}

.field-icon svg,
.signup-bonus-icon svg {
  width: 20px;
  height: 20px;
}

.input-shell input,
.input-shell select {
  min-height: 56px;
  font-size: 0.94rem;
}

.signup-submit {
  width: min(600px, 100%);
  min-height: 62px;
  border-radius: 15px;
  font-size: 1rem;
}

.signup-terms {
  font-size: 0.86rem;
}

@media (max-width: 768px) {
  .signup-route .auth-modal,
  .auth-modal {
    padding: 16px 12px 34px;
  }

  .signup-heading h2 {
    font-size: clamp(2rem, 9vw, 2.85rem);
  }

  .signup-bonus {
    margin-bottom: 18px;
    padding: 15px;
  }

  .signup-form {
    gap: 22px;
    padding: 17px;
  }

  .input-shell {
    min-height: 52px;
  }

  .input-shell input,
  .input-shell select {
    min-height: 50px;
  }
}

@media (max-width: 480px) {
  .signup-heading h2 {
    font-size: clamp(1.75rem, 9.5vw, 2.42rem);
  }

  .signup-heading p,
  .signup-bonus p {
    font-size: 0.88rem;
  }

  .signup-bonus {
    grid-template-columns: 42px 1fr;
  }

  .signup-bonus-icon {
    width: 42px;
    height: 42px;
  }

  .signup-form {
    padding: 15px;
  }

  .signup-submit {
    min-height: 52px;
  }
}


@media (max-width: 980px) {
  .doc-grid {
    grid-template-columns: 1fr;
  }

  .faq-shell {
    grid-template-columns: 1fr;
  }

  .faq-categories {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .faq-category {
    min-height: 78px;
  }

  .faq-list {
    grid-template-columns: 1fr;
  }

  .review-board-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .reviews-stats {
    gap: 32px;
  }

  .review-stat-value {
    font-size: 1.6rem;
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg-primary: #000000;
  --bg-secondary: #121212;
  --bg-card: #1E1E1E;
  --border: #2D2D2D;
  --accent-blue: #2196F3;
  --accent-blue-light: #64B5F6;
  --accent-gold: #FF6200;
  --text-primary: #FFFFFF;
  --text-secondary: #E0E0E0;
  --success: #4CAF50;
  --danger: #FF6200;
  --warning: #FF6200;
  --glass: rgba(0, 0, 0, 0.88);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
}

:root[data-theme="dark"] body {
  background: #000000;
  color: var(--text-primary);
}

:root[data-theme="dark"] .app-sidebar {
  background: rgba(18, 18, 18, 0.95) !important;
  border-color: #2D2D2D !important;
}

:root[data-theme="dark"] .app-sidebar nav a,
:root[data-theme="dark"] .app-sidebar nav button {
  color: #CCCCCC;
}

:root[data-theme="dark"] .app-sidebar nav a.active,
:root[data-theme="dark"] .app-sidebar nav button.active {
  background: #FFFFFF;
  color: #000000;
}

:root[data-theme="dark"] .dash-topbar {
  background: rgba(0, 0, 0, 0.6) !important;
  border-bottom-color: #2D2D2D;
}

:root[data-theme="dark"] .dash-user-info strong { color: #FFFFFF; }
:root[data-theme="dark"] .dash-user-info small { color: #CCCCCC; }

:root[data-theme="dark"] .admin-metric-card { background: #1E1E1E; border-color: #2D2D2D; }
:root[data-theme="dark"] .admin-metric-card span { color: #CCCCCC; }
:root[data-theme="dark"] .admin-metric-card strong { color: #FFFFFF; }

:root[data-theme="dark"] .data-table th { background: #121212; color: #CCCCCC; border-color: #2D2D2D; }
:root[data-theme="dark"] .data-table td { border-color: #2D2D2D; color: #E0E0E0; }

:root[data-theme="dark"] .site-header,
:root[data-theme="dark"] .site-header[data-elevated="true"] {
  background: rgba(8, 11, 16, 0.88);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

:root[data-theme="dark"] .risk-disclosure-banner {
  border-bottom-color: rgba(242, 200, 121, 0.28);
  background: rgba(38, 28, 10, 0.95);
  color: #f6ead0;
}

:root[data-theme="dark"] .brand-mark {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

:root[data-theme="dark"] .nav-links,
:root[data-theme="dark"] .login-link,
:root[data-theme="dark"] .translator span,
:root[data-theme="dark"] .section-heading p,
:root[data-theme="dark"] .hero-copy p,
:root[data-theme="dark"] .faq-list p,
:root[data-theme="dark"] .site-footer p,
:root[data-theme="dark"] .site-footer .risk,
:root[data-theme="dark"] .site-footer nav,
:root[data-theme="dark"] .mobile-bottom-nav a {
  color: var(--text-secondary);
}

:root[data-theme="dark"] .site-footer {
  background:
    radial-gradient(circle at 12% 0%, rgba(56, 189, 248, 0.08), transparent 18rem),
    #05070d;
}

:root[data-theme="dark"] .site-footer .brand-mark {
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.92);
  color: #050505;
}

:root[data-theme="dark"] .stats-bar,
:root[data-theme="dark"] .asset-section,
:root[data-theme="dark"] .security-section,
:root[data-theme="dark"] .faq-section,
:root[data-theme="dark"] .ecosystem-section {
  background: #0e131a;
}

:root[data-theme="dark"] .stats-bar div,
:root[data-theme="dark"] .ecosystem-card,
:root[data-theme="dark"] .plan-card,
:root[data-theme="dark"] .trust-card,
:root[data-theme="dark"] .table-card,
:root[data-theme="dark"] .flow-card,
:root[data-theme="dark"] .method-card,
:root[data-theme="dark"] .footer-contact,
:root[data-theme="dark"] .cookie-banner,
:root[data-theme="dark"] .mobile-bottom-nav,
:root[data-theme="dark"] .notification-menu,
:root[data-theme="dark"] .legal-modal,
:root[data-theme="dark"] .onboarding-modal,
:root[data-theme="dark"] .auth-modal,
:root[data-theme="dark"] .chat-panel,
:root[data-theme="dark"] .chat-message,
:root[data-theme="dark"] .quick-replies button {
  background: rgba(17, 22, 31, 0.96);
  border-color: var(--border);
  color: var(--text-primary);
}

:root[data-theme="dark"] .chat-header,
:root[data-theme="dark"] .chat-input {
  background: rgba(12, 16, 24, 0.98);
  color: var(--text-primary);
}

:root[data-theme="dark"] .hero {
  background:
    linear-gradient(180deg, #090b10 0%, #0a0d12 64%, #0e1318 100%);
}

:root[data-theme="dark"] .hero-copy h1,
:root[data-theme="dark"] .section-heading h2,
:root[data-theme="dark"] h3,
:root[data-theme="dark"] .footer-brand span,
:root[data-theme="dark"] .footer-contact strong,
:root[data-theme="dark"] .contact-strip strong,
:root[data-theme="dark"] .site-footer strong {
  color: #f4f7fb;
}

:root[data-theme="dark"] .language-cluster {
  border-color: var(--border);
  background: rgba(17, 21, 29, 0.95);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.36);
}

:root[data-theme="dark"] .status-pill,
:root[data-theme="dark"] .translator,
:root[data-theme="dark"] select,
:root[data-theme="dark"] input,
:root[data-theme="dark"] textarea,
:root[data-theme="dark"] .language-reset,
:root[data-theme="dark"] .language-reset-inline,
:root[data-theme="dark"] .mobile-menu,
:root[data-theme="dark"] .topbar-actions button,
:root[data-theme="dark"] .copy-btn,
:root[data-theme="dark"] .toggle,
:root[data-theme="dark"] .chat-header button,
:root[data-theme="dark"] .chat-input button {
  background: rgba(17, 21, 29, 0.95);
  border-color: var(--border);
  color: var(--text-primary);
}

:root[data-theme="dark"] .button-secondary {
  background: rgba(17, 21, 29, 0.92);
  border-color: var(--border);
  color: var(--text-primary);
}

:root[data-theme="dark"] .button-primary {
  background: linear-gradient(135deg, #f5f7fb, #b7c1cf);
  color: #090b10;
  box-shadow: 0 16px 34px rgba(255, 255, 255, 0.08);
}

:root[data-theme="dark"] .theme-toggle-icon,
:root[data-theme="dark"] .scroll-top svg,
:root[data-theme="dark"] .chat-icon {
  stroke: currentColor;
}

:root[data-theme="dark"] .chat-message.bot {
  background: rgba(24, 30, 41, 0.96);
}

:root[data-theme="dark"] .chat-message.user {
  background: rgba(34, 43, 58, 0.96);
}

:root[data-theme="dark"] .status-pill span,
:root[data-theme="dark"] .unread-dot {
  background: #ffffff;
}

:root[data-theme="dark"] .stats-bar strong,
:root[data-theme="dark"] .eyebrow,
:root[data-theme="dark"] .roi,
:root[data-theme="dark"] .ecosystem-icon,
:root[data-theme="dark"] .ecosystem-card a,
:root[data-theme="dark"] .plan-tag,
:root[data-theme="dark"] .trust-card span,
:root[data-theme="dark"] .market-count,
:root[data-theme="dark"] .asset-icon,
:root[data-theme="dark"] .about-points span {
  color: var(--text-primary);
}

:root[data-theme="dark"] .about-section .section-heading p,
:root[data-theme="dark"] .about-copy,
:root[data-theme="dark"] .faq-list summary,
:root[data-theme="dark"] .faq-list p,
:root[data-theme="dark"] .signup-heading p,
:root[data-theme="dark"] .signup-bonus p {
  color: var(--text-secondary);
}

:root[data-theme="dark"] .stats-bar {
  background: #0e131a;
  border-color: var(--border);
}

:root[data-theme="dark"] .stats-bar div {
  border-color: var(--border);
}

:root[data-theme="dark"] .ecosystem-icon,
:root[data-theme="dark"] .asset-icon,
:root[data-theme="dark"] .avatar {
  background: var(--text-primary);
  border-color: var(--border);
  color: var(--bg-primary);
}

:root[data-theme="dark"] .about-points {
  border-color: var(--border);
}

:root[data-theme="dark"] .about-points span {
  border-color: var(--border);
  background: rgba(17, 22, 31, 0.96);
  box-shadow: none;
}

:root[data-theme="dark"] .ecosystem-card::after {
  background: radial-gradient(circle, rgba(56, 189, 248, 0.12), transparent 66%);
}

:root[data-theme="dark"] .ecosystem-card:hover,
:root[data-theme="dark"] .plan-card:hover,
:root[data-theme="dark"] .flow-card:hover,
:root[data-theme="dark"] .trust-card:hover {
  border-color: rgba(56, 189, 248, 0.46);
  box-shadow: 0 30px 90px rgba(14, 165, 233, 0.16);
}

:root[data-theme="dark"] .faq-list summary {
  background: rgba(17, 22, 31, 0.96);
  border-color: var(--border);
}

:root[data-theme="dark"] .faq-list details {
  background: rgba(17, 22, 31, 0.96);
  border-color: var(--border);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.36);
}

:root[data-theme="dark"] .faq-list details[open] {
  border-color: rgba(56, 189, 248, 0.36);
}

:root[data-theme="dark"] .faq-list summary::after {
  color: var(--text-secondary);
}

:root[data-theme="dark"] .faq-category {
  background: rgba(17, 22, 31, 0.96);
  border-color: var(--border);
  color: var(--text-secondary);
}

:root[data-theme="dark"] .faq-category.active {
  background: var(--text-primary);
  color: var(--bg-primary);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.36);
}

:root[data-theme="dark"] .signup-heading h2,
:root[data-theme="dark"] .signup-bonus h3 {
  color: var(--text-primary);
}

:root[data-theme="dark"] .summary,
:root[data-theme="dark"] details p {
  color: var(--text-secondary);
}

:root[data-theme="dark"] .partner-section,
:root[data-theme="dark"] .contact-section {
  background: var(--bg-primary);
}

:root[data-theme="dark"] .partner-card,
:root[data-theme="dark"] .member-gate,
:root[data-theme="dark"] .contact-strip,
:root[data-theme="dark"] .footer-contact,
:root[data-theme="dark"] .auth-card {
  border-color: var(--border);
  background: rgba(17, 22, 31, 0.96);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.36);
}

:root[data-theme="dark"] .partner-card h3,
:root[data-theme="dark"] .partner-card p,
:root[data-theme="dark"] .member-gate h2,
:root[data-theme="dark"] .member-gate p {
  color: var(--text-primary);
}

:root[data-theme="dark"] .member-gate .eyebrow,
:root[data-theme="dark"] .partner-section .eyebrow {
  color: var(--text-secondary);
}

:root[data-theme="dark"] .partner-code {
  border-color: var(--border);
  background: rgba(17, 22, 31, 0.96);
  color: var(--text-primary);
}

:root[data-theme="dark"] .partner-photo {
  border-color: rgba(255, 255, 255, 0.14);
}

:root[data-theme="dark"] .quote-mark {
  color: rgba(255, 255, 255, 0.2);
}

:root[data-theme="dark"] .liquid-glass {
  border-color: var(--border);
  background: rgba(17, 22, 31, 0.96);
}

:root[data-theme="dark"] .terminal-card {
  border-color: var(--border);
  background: rgba(17, 22, 31, 0.96);
}

:root[data-theme="dark"] .terminal-card::before {
  border-color: rgba(255, 255, 255, 0.08);
}

:root[data-theme="dark"] .terminal-top strong {
  background: var(--text-primary);
  color: var(--bg-primary);
}

:root[data-theme="dark"] .terminal-grid div {
  border-color: var(--border);
  background: rgba(17, 22, 31, 0.96);
}

:root[data-theme="dark"] .terminal-grid span {
  color: var(--text-secondary);
}

:root[data-theme="dark"] .terminal-grid strong {
  color: var(--text-primary);
}

:root[data-theme="dark"] .balance-card,
:root[data-theme="dark"] .terminal-grid div,
:root[data-theme="dark"] .live-chart-shell,
:root[data-theme="dark"] .wallet-box,
:root[data-theme="dark"] .captcha-box,
:root[data-theme="dark"] .qr-box {
  border-color: var(--border);
  background: rgba(17, 22, 31, 0.96);
}

:root[data-theme="dark"] .auth-page-header {
  background: rgba(8, 11, 16, 0.88);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

:root[data-theme="dark"] .login-panel,
:root[data-theme="dark"] .verify-panel {
  background: rgba(17, 22, 31, 0.96);
  border-color: var(--border);
  color: var(--text-primary);
}

:root[data-theme="dark"] .login-panel h1,
:root[data-theme="dark"] .verify-panel h1 {
  color: var(--text-primary);
}

:root[data-theme="dark"] .login-panel p,
:root[data-theme="dark"] .verify-panel p {
  color: var(--text-secondary);
}

:root[data-theme="dark"] body.signup-route {
  background: var(--bg-primary);
}

:root[data-theme="dark"] .signup-form {
  border-color: var(--border);
  background: rgba(17, 22, 31, 0.96);
}

:root[data-theme="dark"] .signup-form legend {
  color: var(--text-primary);
  border-color: var(--border);
}

:root[data-theme="dark"] .signup-form label {
  color: var(--text-secondary);
}

:root[data-theme="dark"] .signup-bonus {
  border-color: var(--border);
  background: rgba(17, 22, 31, 0.96);
}

:root[data-theme="dark"] .signup-bonus-icon {
  background: var(--text-primary);
  color: var(--bg-primary);
}

:root[data-theme="dark"] .signup-terms {
  color: var(--text-secondary);
}

:root[data-theme="dark"] .auth-modal {
  background: rgba(8, 11, 16, 0.95);
}

:root[data-theme="dark"] .auth-card {
  background: rgba(17, 22, 31, 0.98);
  border-color: var(--border);
}

:root[data-theme="dark"] .input-shell input,
:root[data-theme="dark"] .input-shell select {
  background: rgba(17, 21, 29, 0.95);
  border-color: var(--border);
  color: var(--text-primary);
}

:root[data-theme="dark"] .phone-code-select {
  background-color: transparent;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5L6 8l3.5-3.5' fill='none' stroke='%23b4bdca' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: right 8px center;
  background-repeat: no-repeat;
  color: var(--text-primary);
}

:root[data-theme="dark"] .phone-divider {
  background: var(--border);
}

:root[data-theme="dark"] .phone-shell input {
  color: var(--text-primary);
}

:root[data-theme="dark"] .input-shell label {
  color: var(--text-secondary);
}

:root[data-theme="dark"] .page-hero {
  background:
    linear-gradient(180deg, rgba(10, 12, 18, 0.98), rgba(10, 13, 18, 0.92)),
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.05), transparent 18rem);
}

.page-shell {
  min-height: 100vh;
}

.page-main {
  padding-top: 0;
}

.page-hero {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 248, 246, 0.92)),
    radial-gradient(circle at 50% 0%, rgba(0, 0, 0, 0.04), transparent 18rem);
}

.page-hero .section-heading {
  max-width: 1100px;
  margin-inline: auto;
  text-align: center;
}

.page-hero .section-heading h1 {
  max-width: 900px;
  margin-inline: auto;
  font-size: clamp(2.55rem, 5.6vw, 5.15rem);
  line-height: 0.96;
}

.page-hero .section-heading p {
  max-width: 760px;
  margin-inline: auto;
  font-size: clamp(1.02rem, 1.25vw, 1.16rem);
  line-height: 1.7;
}

.page-meta {
  margin-top: 18px;
  color: var(--text-secondary);
  font-size: 0.84rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.doc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: 1200px;
  margin: 34px auto 0;
}

.doc-card {
  display: grid;
  gap: 10px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--bg-card);
  box-shadow: var(--shadow);
}

.doc-card p,
.doc-article p,
.doc-article li {
  color: var(--text-secondary);
}

.doc-toc {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: min(100%, 1060px);
  margin: 26px auto 0;
}

.doc-toc a {
  display: flex;
  align-items: center;
  min-height: 50px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--text-primary);
  font-weight: 700;
  text-align: left;
  line-height: 1.25;
}

.doc-article {
  display: grid;
  gap: 18px;
  max-width: 980px;
  margin-inline: auto;
}

.doc-article + .doc-article {
  margin-top: 18px;
}

.doc-article h2 {
  margin-bottom: 0;
  font-size: clamp(1.5rem, 2.6vw, 2.45rem);
  line-height: 1.05;
}

.doc-article > div {
  padding: 26px 28px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--bg-card);
  box-shadow: var(--shadow);
}

.doc-article ul {
  margin-block: 1rem;
  padding-left: 1.2rem;
}

.doc-article li + li {
  margin-top: 0.6rem;
}

.empty-state {
  min-height: 220px;
  place-items: center;
  text-align: center;
}

.empty-state strong {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
}

.empty-state p {
  max-width: 720px;
}

:root[data-theme="dark"] .page-hero {
  background:
    linear-gradient(180deg, rgba(10, 12, 18, 0.98), rgba(10, 13, 18, 0.92)),
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.05), transparent 18rem);
}

:root[data-theme="dark"] .doc-toc a {
  background: rgba(17, 21, 29, 0.95);
}

.legal-page-risk .page-hero {
  padding-top: 24px;
}

.legal-page-risk .page-hero .section-heading h1 {
  max-width: 760px;
  font-size: clamp(2.15rem, 4.5vw, 3.65rem);
}

.legal-page-risk .page-hero .section-heading p {
  max-width: 900px;
  font-size: 0.98rem;
  line-height: 1.64;
}

.legal-page-risk .doc-toc {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(100%, 1040px);
}

.legal-page-risk .doc-article {
  max-width: 920px;
}

.legal-page-risk .doc-article > div {
  padding: 22px 24px;
}

.contact-page .page-hero {
  padding-bottom: 18px;
}

.contact-method-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  width: min(100%, 1200px);
  margin: 0 auto;
}

.contact-method-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 22px 24px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--bg-card);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
}

.contact-method-card:hover {
  transform: translateY(-2px);
}

.contact-method-card small,
.contact-form-note,
.contact-side-card li,
.contact-side-card p,
.contact-method-card p {
  color: var(--text-secondary);
}

.contact-method-card small {
  display: block;
  margin-bottom: 6px;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-method-card strong {
  display: block;
  color: var(--text-primary);
  font-size: clamp(1rem, 1.25vw, 1.12rem);
}

.contact-method-card p {
  margin: 8px 0 0;
  line-height: 1.55;
}

.contact-method-icon {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 18px;
  background: #050505;
  color: #fff;
  flex: 0 0 auto;
}

.contact-method-icon svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.contact-method-icon.whatsapp-icon svg {
  fill: currentColor;
  stroke: none;
}

.contact-method-cta {
  justify-self: end;
  align-self: center;
  color: var(--text-primary);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.95fr);
  gap: 24px;
  width: min(100%, 1200px);
  margin: 0 auto;
}

.contact-form,
.contact-side-card {
  border: 1px solid var(--border);
  border-radius: 28px;
  background: var(--bg-card);
  box-shadow: var(--shadow);
}

.contact-form {
  padding: clamp(22px, 3vw, 34px);
}

.contact-form-heading {
  max-width: none;
  margin-inline: 0;
  text-align: left;
}

.contact-form-heading p {
  max-width: 680px;
}

.contact-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.contact-form-grid label {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.contact-form-grid label span {
  color: var(--text-secondary);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-form-grid input,
.contact-form-grid textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--bg);
  color: var(--text-primary);
  font: inherit;
  padding: 14px 16px;
}

.contact-form-grid textarea {
  resize: vertical;
  min-height: 160px;
}

.contact-field-wide {
  grid-column: 1 / -1;
}

.contact-submit {
  margin-top: 18px;
}

.contact-form-note {
  margin: 14px 0 0;
  font-size: 0.92rem;
  line-height: 1.6;
}

.contact-side {
  display: grid;
  gap: 16px;
}

.contact-side-card {
  padding: clamp(22px, 3vw, 30px);
}

.contact-side-card h3 {
  margin-bottom: 10px;
}

.contact-side-card ul {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--text-secondary);
}

.contact-side-card li + li {
  margin-top: 0.6rem;
}

.contact-side-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

@media (max-width: 900px) {
  .doc-toc {
    grid-template-columns: 1fr;
  }

  .page-main {
    padding-top: 0;
  }

  .doc-article > div {
    padding: 22px 20px;
  }

  .legal-page-risk .page-hero {
    padding-top: 18px;
  }

  .legal-page-risk .page-hero .section-heading h1 {
    max-width: 100%;
    font-size: clamp(2.1rem, 9.5vw, 3rem);
  }

  .contact-method-grid,
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .page-main {
    padding-top: 0;
  }

  .page-hero .section-heading h1 {
    font-size: clamp(2.2rem, 12vw, 3rem);
  }

  .page-hero .section-heading p {
    font-size: 0.98rem;
  }

  .doc-toc a {
    min-height: 46px;
    padding: 10px 14px;
    font-size: 0.92rem;
  }

  .faq-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .faq-categories {
    grid-template-columns: 1fr;
  }

  .contact-method-card {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
  }

  .contact-method-cta {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .contact-form-grid {
    grid-template-columns: 1fr;
  }

  .review-board-grid {
    grid-template-columns: 1fr;
  }

  .review-card {
    min-height: 0;
  }

  .reviews-stats {
    flex-direction: column;
    gap: 20px;
  }

  .reviews-actions {
    flex-direction: column;
    align-items: stretch;
  }
}

/* Dashboard workspace revamp */
.platform,
.security-hub {
  background:
    radial-gradient(circle at 50% 0%, rgba(56, 189, 248, 0.12), transparent 36rem),
    linear-gradient(180deg, #0f172a 0%, #060b16 100%);
  color: rgba(255, 255, 255, 0.92);
}

.dashboard-page-shell {
  padding: 0;
}

.dashboard-page-shell .app-main {
  padding: 20px;
}

/* Top Bar */
.dash-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.dash-user {
  display: flex;
  align-items: center;
  gap: 14px;
}

.dash-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #000;
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1.1rem;
}

.dash-avatar.dashboard-icon { background: linear-gradient(135deg, #1a1f2e 0%, #232a3b 100%); }
.dash-avatar.vaults-icon { background: linear-gradient(135deg, #0d4f3c 0%, #1a7a5c 100%); }
.dash-avatar.deposit-icon { background: linear-gradient(135deg, #1e4d2b 0%, #2d7a3f 100%); }
.dash-avatar.withdraw-icon { background: linear-gradient(135deg, #4a1a1a 0%, #6b2b2b 100%); }
.dash-avatar.markets-icon { background: linear-gradient(135deg, #1a3a5c 0%, #2a5a8c 100%); }
.dash-avatar.settings-icon { background: linear-gradient(135deg, #3d3d3d 0%, #5a5a5a 100%); }
.dash-avatar.security-icon { background: linear-gradient(135deg, #4a3a1a 0%, #6b5a2b 100%); }
.dash-avatar.referrals-icon { background: linear-gradient(135deg, #2a1a4a 0%, #4a2a7a 100%); }
.dash-avatar.ai-icon { background: linear-gradient(135deg, #0a2a4a 0%, #1a4a7a 100%); }
.dash-avatar.support-icon { background: linear-gradient(135deg, #1a2a4a 0%, #2a4a7a 100%); }
.dash-avatar.kyc-icon { background: linear-gradient(135deg, #0a3a2a 0%, #1a5a4a 100%); }
.dash-avatar.privacy-icon { background: linear-gradient(135deg, #2a2a3a 0%, #4a4a6a 100%); }
.dash-avatar.admin-icon { background: linear-gradient(135deg, #3a1a1a 0%, #5a2a2a 100%); }

.dash-user-info strong {
  display: block;
  font-size: 1.1rem;
  font-weight: 800;
  color: #000;
  letter-spacing: 0.02em;
}

.dash-user-info small {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: #666;
  letter-spacing: 0.08em;
}

.dash-support-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid #e5e5e5;
  background: #fff;
  display: grid;
  place-items: center;
  color: #333;
  text-decoration: none;
  transition: all 0.2s;
  flex-shrink: 0;
}

.dash-support-btn:hover {
  background: #f5f5f5;
}

.dash-support-btn svg,
.dash-support-btn .material-symbols-outlined {
  width: 22px;
  height: 22px;
}

.dash-topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.dash-theme-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid #e5e5e5;
  background: #fff;
  display: grid;
  place-items: center;
  color: #333;
  cursor: pointer;
  transition: all 0.2s;
  flex: 0 0 44px;
  padding: 0;
}

.dash-theme-btn:hover {
  background: #f5f5f5;
}

.dash-theme-btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Balance Card */
.dash-balance-card {
  background: #000;
  border-radius: 20px;
  padding: 28px;
  margin-bottom: 20px;
  color: #fff;
}

.dash-balance-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}

.dash-balance-available {
  flex: 1;
}

.dash-balance-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.7);
  margin-bottom: 8px;
}

.dash-balance-amount {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.dash-balance-side {
  text-align: right;
}

.dash-balance-right {
  margin-bottom: 12px;
}

.dash-balance-right:last-child {
  margin-bottom: 0;
}

.dash-balance-label-sm {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.6);
  margin-bottom: 4px;
}

.dash-balance-value {
  font-size: 1.2rem;
  font-weight: 700;
}

.dash-balance-divider {
  height: 1px;
  background: rgba(255,255,255,0.15);
  margin: 24px 0;
}

.dash-balance-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.dash-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: all 0.2s;
}

.dash-btn-deposit {
  background: #fff;
  color: #000;
}

.dash-btn-deposit:hover {
  background: #f0f0f0;
}

.dash-btn-withdraw {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
}

.dash-btn-withdraw:hover {
  border-color: rgba(255,255,255,0.6);
}

/* Stats Grid */
.dash-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}

.dash-stat-card {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 14px;
  padding: 16px;
}

.dash-stat-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: #666;
  margin-bottom: 6px;
}

.dash-stat-value {
  font-size: 1.1rem;
  font-weight: 800;
  color: #000;
}

.dash-stat-value.green {
  color: #10b981;
}

/* Sections */
.dash-section {
  margin-bottom: 24px;
}

.dash-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.dash-section-header h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #000;
  margin: 0;
}

.dash-section-header a {
  font-size: 0.78rem;
  font-weight: 600;
  color: #3b82f6;
  text-decoration: none;
}

.dash-section-header a:hover {
  text-decoration: underline;
}

.dash-section-copy {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 14px;
}

.dash-vaults-grid,
.dash-plans-grid {
  display: grid;
  gap: 12px;
}

/* Quick Actions */
.dash-actions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.dash-action-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 8px;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 14px;
  text-decoration: none;
  color: #000;
  transition: all 0.2s;
}

.dash-action-card:hover {
  background: #f9f9f9;
}

.dash-action-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #f5f5f5;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1.1rem;
}

.dash-action-card span {
  font-size: 0.72rem;
  font-weight: 600;
}

.dash-plans-section {
  margin-top: 24px;
}

.dash-plans-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.dash-plans-header h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
}

.dash-plans-viewall {
  font-size: 0.75rem;
  font-weight: 600;
  color: #111;
  text-decoration: none;
}

.dash-plans-viewall:hover {
  text-decoration: underline;
}

.dash-plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

@media (max-width: 640px) {
  .dash-plans-grid {
    grid-template-columns: 1fr;
  }

  .dash-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .dash-stat-card {
    padding: 14px 12px;
  }

  .dash-stat-label {
    font-size: 0.6rem;
  }

  .dash-stat-value {
    font-size: 0.95rem;
  }

  .dash-actions-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .dash-action-card {
    padding: 14px 8px;
  }

  .dash-action-icon {
    width: 36px;
    height: 36px;
    font-size: 0.95rem;
  }

  .dash-action-card span {
    font-size: 0.68rem;
  }

  .dash-balance-amount {
    font-size: 1.8rem;
  }

  .dash-balance-side {
    gap: 16px;
  }

  .dash-balance-label-sm {
    font-size: 0.55rem;
  }

  .dash-balance-value {
    font-size: 0.95rem;
  }

  .dash-topbar {
    padding: 12px 16px;
  }

  .dash-avatar {
    width: 36px;
    height: 36px;
  }

  .dash-user-info strong {
    font-size: 0.85rem;
  }

  .dash-user-info small {
    font-size: 0.6rem;
  }

  .dash-support-btn {
    width: 36px;
    height: 36px;
  }

  .dash-plans-header {
    padding: 0;
  }

  .dash-plans-header h3 {
    font-size: 0.85rem;
  }

  .dash-plan-card {
    padding: 14px;
  }

  .dash-plan-name {
    font-size: 0.85rem;
  }

  .dash-plan-roi {
    font-size: 0.78rem;
  }

  .dash-plan-detail label {
    font-size: 0.58rem;
  }

  .dash-plan-detail span {
    font-size: 0.78rem;
  }

  .dash-plan-cta {
    padding: 9px;
    font-size: 0.68rem;
  }

  .dash-active-card {
    padding: 14px;
  }

  .dash-active-icon {
    width: 36px;
    height: 36px;
  }

  .dash-active-icon svg {
    width: 18px;
    height: 18px;
  }

  .dash-active-name {
    font-size: 0.82rem;
  }

  .dash-active-roi {
    font-size: 0.72rem;
    padding: 3px 8px;
  }

  .dash-active-details {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 12px;
  }

  .dash-active-detail label {
    font-size: 0.55rem;
  }

  .dash-active-detail span {
    font-size: 0.78rem;
  }

  .section-pad {
    padding: 12px;
  }

  .init-modal {
    padding: 24px;
    border-radius: 20px;
    margin: 10px;
  }

  .init-modal-title {
    font-size: 1.4rem;
  }

  .init-modal-stats {
    gap: 8px;
  }

  .init-modal-stat {
    padding: 12px;
  }

  .init-modal-stat-value {
    font-size: 1.1rem;
  }

  .init-modal-input {
    font-size: 1.1rem;
  }

  .init-modal-pay-btn {
    padding: 14px;
    font-size: 0.8rem;
  }
}

.dash-plan-card {
  display: block;
  padding: 18px;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 14px;
  text-decoration: none;
  color: #000;
  transition: all 0.2s;
}

.dash-plan-card:hover {
  border-color: #111;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.dash-plan-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.dash-plan-name {
  font-size: 0.95rem;
  font-weight: 700;
}

.dash-plan-roi {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.85rem;
  font-weight: 600;
  color: #10b981;
}

.dash-plan-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}

.dash-plan-detail {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dash-plan-detail label {
  font-size: 0.65rem;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.dash-plan-detail span {
  font-size: 0.85rem;
  font-weight: 600;
  font-family: 'IBM Plex Mono', monospace;
}

.dash-plan-cta {
  display: block;
  width: 100%;
  padding: 10px;
  background: #111;
  border: none;
  border-radius: 8px;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: center;
  transition: background 0.2s;
}

.dash-plan-card:hover .dash-plan-cta {
  background: #000;
}

/* Dark Mode */
:root[data-theme="dark"] .dash-user-info strong,
:root[data-theme="dark"] .dash-stat-value,
:root[data-theme="dark"] .dash-section-header h3,
:root[data-theme="dark"] .dash-action-card span {
  color: var(--text-primary);
}

:root[data-theme="dark"] .dash-user-info small,
:root[data-theme="dark"] .dash-stat-label,
:root[data-theme="dark"] .dash-section-copy {
  color: var(--text-secondary);
}

:root[data-theme="dark"] .dash-avatar {
  background: #222;
  color: #fff;
}

:root[data-theme="dark"] .dash-avatar.dashboard-icon { background: linear-gradient(135deg, #121212 0%, #1E1E1E 100%); }
:root[data-theme="dark"] .dash-avatar.vaults-icon { background: linear-gradient(135deg, #0a3025 0%, #4CAF50 100%); }
:root[data-theme="dark"] .dash-avatar.deposit-icon { background: linear-gradient(135deg, #0a3025 0%, #4CAF50 100%); }
:root[data-theme="dark"] .dash-avatar.withdraw-icon { background: linear-gradient(135deg, #3d1a0a 0%, #FF6200 100%); }
:root[data-theme="dark"] .dash-avatar.markets-icon { background: linear-gradient(135deg, #0a1e3d 0%, #2196F3 100%); }
:root[data-theme="dark"] .dash-avatar.settings-icon { background: linear-gradient(135deg, #1E1E1E 0%, #2D2D2D 100%); }
:root[data-theme="dark"] .dash-avatar.security-icon { background: linear-gradient(135deg, #1E1E1E 0%, #2D2D2D 100%); }
:root[data-theme="dark"] .dash-avatar.referrals-icon { background: linear-gradient(135deg, #0a1e3d 0%, #2196F3 100%); }
:root[data-theme="dark"] .dash-avatar.ai-icon { background: linear-gradient(135deg, #0a1e3d 0%, #2196F3 100%); }
:root[data-theme="dark"] .dash-avatar.support-icon { background: linear-gradient(135deg, #0a1e3d 0%, #2196F3 100%); }
:root[data-theme="dark"] .dash-avatar.kyc-icon { background: linear-gradient(135deg, #0a3025 0%, #4CAF50 100%); }
:root[data-theme="dark"] .dash-avatar.privacy-icon { background: linear-gradient(135deg, #1E1E1E 0%, #2D2D2D 100%); }
:root[data-theme="dark"] .dash-avatar.admin-icon { background: linear-gradient(135deg, #3d1a0a 0%, #FF6200 100%); }
}

:root[data-theme="dark"] .dash-support-btn {
  background: var(--bg-card);
  border-color: var(--border);
  color: var(--text-primary);
}

:root[data-theme="dark"] .dash-theme-btn {
  background: var(--bg-card);
  border-color: var(--border);
  color: var(--text-primary);
}

:root[data-theme="dark"] .dash-stat-card,
:root[data-theme="dark"] .dash-action-card {
  background: var(--bg-card);
  border-color: var(--border);
}

:root[data-theme="dark"] .dash-action-icon {
  background: rgba(255,255,255,0.08);
}

:root[data-theme="dark"] .dash-action-card:hover {
  background: rgba(255,255,255,0.05);
}

:root[data-theme="dark"] .dash-plans-header h3 { color: #FFFFFF; }
:root[data-theme="dark"] .dash-plan-card { background: #1E1E1E; border-color: #2D2D2D; }
:root[data-theme="dark"] .dash-plan-card:hover { border-color: #FFFFFF; box-shadow: 0 4px 16px rgba(255, 255, 255, 0.08); }
:root[data-theme="dark"] .dash-plan-name { color: #FFFFFF; }
:root[data-theme="dark"] .dash-plan-detail span { color: #E0E0E0; }
:root[data-theme="dark"] .dash-plan-cta { background: #FFFFFF; color: #000000; }
:root[data-theme="dark"] .dash-plan-card:hover .dash-plan-cta { background: #FFFFFF; }

.platform .section-heading,
.security-hub .section-heading {
  max-width: 980px;
  margin-inline: auto;
  text-align: left;
}

.platform .section-heading .eyebrow,
.security-hub .section-heading .eyebrow,
.platform .section-heading h2,
.security-hub .section-heading h2,
.platform .section-heading p,
.security-hub .section-heading p {
  color: #ffffff;
}

.platform .section-heading p,
.security-hub .section-heading p {
  color: #9aa4b2;
}

.app-shell {
  max-width: 1120px;
  margin: 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.98));
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.34);
}

.app-sidebar {
  padding: 16px 14px;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(8, 14, 28, 0.96);
}

.profile-mini {
  padding-bottom: 16px;
  margin-bottom: 18px;
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.profile-mini strong {
  color: #ffffff;
}

.profile-mini small {
  color: #7e8899;
}

.app-sidebar button,
.app-sidebar a {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 52px;
  width: 100%;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 14px;
  text-align: left;
  color: #7c8798;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.app-sidebar button.active,
.app-sidebar button:hover,
.app-sidebar a.active,
.app-sidebar a:hover {
  border-color: rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  box-shadow: inset 3px 0 0 #ffffff;
}

.app-main {
  padding: 18px;
  background: #000000;
}

.app-topbar {
  margin-bottom: 16px;
  padding: 18px 18px 16px;
  border: 0;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.02);
}

.app-topbar .eyebrow {
  color: #99a3b2;
}

.app-topbar strong {
  color: #ffffff;
}

.topbar-actions button,
.notification-menu {
  background: rgba(24, 28, 38, 0.92);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.08);
}

.dashboard-hero {
  display: grid;
  gap: 18px;
  margin-bottom: 16px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02)),
    #050505;
}

.dashboard-hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.hero-user {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.hero-user .avatar {
  width: 44px;
  height: 44px;
  background: #ffffff;
  color: #050505;
  box-shadow: none;
}

.hero-user strong {
  display: block;
  color: #ffffff;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.hero-user small {
  color: #7f8aa3;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-chip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
}

.dashboard-balance-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.dashboard-balance-grid .balance-card {
  margin: 0;
  border-color: rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
}

.balance-card-main strong {
  font-size: clamp(2rem, 4vw, 3.6rem);
  color: #ffffff;
}

.balance-card-main small,
.balance-card-stack span,
.balance-card-stack strong {
  color: #a2abb8;
}

.balance-card-stack {
  display: grid;
  align-content: start;
  gap: 10px;
}

.balance-card-stack strong {
  color: #ffffff;
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
}

.dashboard-actions {
  display: flex;
  gap: 12px;
}

.dashboard-actions .button {
  min-width: 160px;
}

.dashboard-grid {
  gap: 12px;
}

.metric-card {
  padding: 18px;
  border-color: rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.04);
}

.metric-card span {
  color: #9aa4b2;
}

.metric-card strong {
  color: #ffffff;
}

.metric-card small {
  color: #22c55e;
}

.chart-panel,
.quick-panel,
.vault-form,
.table-card,
.alert-card,
.referral-link,
.security-score-card,
.qr-card,
.share-card {
  border-color: rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.92);
}

.chart-panel .panel-head h3,
.quick-panel h3,
.vault-form h3,
.table-card h3,
.security-score-card strong,
.qr-card h3,
.share-card h3 {
  color: #ffffff;
}

.chart-panel {
  padding: 18px;
}

.area-chart {
  filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.04));
}

.data-table thead th,
.data-table tbody td,
.vault-form label,
.vault-form small,
.trust-copy,
.referral-link span,
.referral-link code {
  color: #9aa4b2;
}

.data-table tbody tr {
  border-color: rgba(255, 255, 255, 0.06);
}

.data-table tbody td {
  color: #ffffff;
}

.vault-form input,
.vault-form select,
.vault-form textarea,
.search-field input {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
}

.vault-form input::placeholder,
.search-field input::placeholder {
  color: #7f8aa3;
}

.alert-card.warning {
  border-color: rgba(245, 158, 11, 0.18);
  background: rgba(245, 158, 11, 0.08);
  color: #fff7e6;
}

.alert-card.danger {
  border-color: rgba(239, 68, 68, 0.18);
  background: rgba(239, 68, 68, 0.08);
  color: #fff0f0;
}

.security-hub .vault-form,
.security-hub .table-card,
.security-hub .security-score-card {
  background: rgba(255, 255, 255, 0.04);
}

.flow-progress,
.stepper span,
.kyc-status span {
  color: #7f8aa3;
}

.flow-progress,
.stepper,
.kyc-status {
  color: #ffffff;
}

.flow-progress,
.kyc-status {
  margin-bottom: 14px;
}

.platform .app-screen,
.security-hub .vault-form,
.security-hub .table-card {
  color: rgba(255, 255, 255, 0.92);
}

@media (max-width: 980px) {
  .app-shell {
    grid-template-columns: 92px minmax(0, 1fr);
  }

  .app-sidebar {
    width: 92px;
    padding: 14px 10px;
  }

  .profile-mini {
    justify-content: center;
  }

  .profile-mini div,
  .app-sidebar button,
  .app-sidebar a {
    font-size: 0;
  }
}

@media (max-width: 760px) {
  .platform .section-heading,
  .security-hub .section-heading {
    text-align: left;
  }

  .app-shell {
    grid-template-columns: 1fr;
    border-radius: 0;
  }

  body.logged-in .app-shell {
    grid-template-columns: 1fr;
  }

  .app-sidebar {
    display: none !important;
    width: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  body.logged-in .app-sidebar {
    display: none !important;
  }

  .app-sidebar nav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .dashboard-balance-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-actions {
    flex-direction: column;
  }

  .dashboard-actions .button {
    width: 100%;
  }

  .dash-topbar {
    align-items: center;
    gap: 12px;
  }

  .dash-support-btn {
    width: 40px;
    height: 40px;
  }

  .dash-balance-top {
    flex-direction: column;
    gap: 16px;
  }

  .dash-balance-side {
    text-align: left;
    display: flex;
    gap: 24px;
  }

  .dash-balance-right {
    margin-bottom: 0;
  }

  .dash-actions-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

/* Compact signup override */
.signup-page {
  padding: 28px 16px 48px;
}

.signup-shell {
  width: min(1080px, 100%);
  margin: 0 auto;
}

.signup-shell .signup-heading {
  margin-bottom: 28px;
  text-align: center;
}

.signup-shell .signup-heading .eyebrow {
  justify-content: center;
}

.signup-shell .signup-heading h1 {
  max-width: 640px;
  margin: 0 auto;
  font-size: clamp(1.95rem, 4.2vw, 2.8rem);
  line-height: 1.06;
}
.signup-title-break {
  display: block;
}

.signup-shell .signup-heading p {
  margin-top: 8px;
  font-size: 0.96rem;
}

.signup-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  align-items: start;
}

.signup-sidecard {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.signup-bonus {
  margin: 0;
  padding: 18px;
  border-radius: 18px;
}

.signup-bonus-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
}

.signup-bonus h3 {
  margin-bottom: 4px;
  font-size: 0.96rem;
}

.signup-bonus p {
  font-size: 0.86rem;
  line-height: 1.5;
}

.signup-points {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.signup-points li {
  padding: 12px 12px 12px 34px;
  border-radius: 14px;
  font-size: 0.82rem;
  line-height: 1.45;
}

.signup-points li::before {
  top: 15px;
  left: 14px;
  width: 7px;
  height: 7px;
}

.signup-form {
  padding: 24px;
  gap: 18px;
  border-radius: 22px;
}

.signup-form legend {
  margin-bottom: 16px;
  padding-bottom: 12px;
  font-size: 1rem;
}

.signup-form-grid {
  gap: 14px;
}

.input-shell {
  min-height: 54px;
  padding: 0 12px;
}

.input-shell input,
.input-shell select {
  min-height: 50px;
  font-size: 0.92rem;
}

.signup-submit {
  width: 100%;
  min-height: 54px;
  margin: 4px auto 0;
  border-radius: 16px;
  font-size: 1rem;
}

.signup-terms {
  max-width: 560px;
  margin: 0 auto;
  font-size: 0.82rem;
}

@media (max-width: 900px) {
  .signup-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .signup-sidecard {
    position: static;
    order: -1;
  }

  .signup-points {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .signup-points li {
    flex: 1 1 calc(50% - 4px);
    min-width: 200px;
  }
}

@media (max-width: 768px) {
  .signup-page {
    padding: 14px 12px 28px;
  }

  .signup-shell .signup-heading {
    margin-bottom: 14px;
  }

  .signup-shell .signup-heading h1 {
    font-size: clamp(1.5rem, 5.8vw, 2.1rem);
    word-break: break-word;
    overflow-wrap: break-word;
  }

  .signup-form {
    padding: 18px;
  }

  .signup-form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .signup-page {
    padding-top: 10px;
  }

  .signup-bonus {
    padding: 14px;
  }

  .signup-bonus-icon {
    width: 42px;
    height: 42px;
  }

  .signup-points li {
    flex: 1 1 100%;
  }

  .signup-form {
    padding: 16px;
  }

  .signup-submit {
    min-height: 52px;
  }
}

/* Standalone app pages */
.app-page .app-shell {
  grid-template-columns: 240px minmax(0, 1fr);
}

.app-page .app-sidebar nav {
  gap: 10px;
}

.app-page .app-sidebar a,
.app-page .app-sidebar button {
  font-size: 0.95rem;
}

.app-page .dashboard-hero,
.app-page .chart-panel,
.app-page .table-card,
.app-page .quick-panel,
.app-page .vault-form,
.app-page .alert-card,
.app-page .referral-link,
.app-page .security-score-card,
.app-page .qr-card,
.app-page .share-card {
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
}

@media (max-width: 980px) {
  .app-page .app-shell {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .app-page .profile-mini {
    justify-content: flex-start;
  }

  .app-page .profile-mini div,
  .app-page .app-sidebar a,
  .app-page .app-sidebar button {
    font-size: 0.88rem;
  }
}

@media (max-width: 760px) {
  .app-page .app-shell {
    grid-template-columns: 1fr;
  }

  .app-page .app-sidebar {
    display: none !important;
  }

  .app-page .app-sidebar nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .app-page .app-sidebar a,
  .app-page .app-sidebar button {
    min-height: 46px;
    font-size: 0.9rem;
  }

  .app-page .dashboard-actions {
    flex-direction: column;
  }

  .app-page .dashboard-actions .button {
    width: 100%;
  }

.app-page .two-col,
.app-page .deposit-layout,
.app-page .referral-enhance-grid,
.app-page .settings-grid {
    grid-template-columns: 1fr;
  }
}

/* â”€â”€ Terminal Pro Inspired UI Components â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

/* Hero Balance Card */
.hero-balance-card {
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid #e5e5e0;
  border-radius: 20px;
  background: linear-gradient(145deg, #ffffff 0%, #f8f8f6 100%);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.08);
  text-align: center;
  margin-bottom: 20px;
}

.hero-balance-card .eyebrow {
  display: block;
  margin-bottom: 8px;
  color: #6b7280;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-balance-card .balance-amount {
  display: block;
  font-family: "IBM Plex Mono", monospace;
  font-size: clamp(2.8rem, 7vw, 4.2rem);
  font-weight: 800;
  color: #050505;
  line-height: 1;
  letter-spacing: -0.03em;
}

.hero-balance-card .balance-change {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #e9f8ef;
  color: #0f8a45;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.88rem;
  font-weight: 700;
}

.hero-balance-card .balance-change.negative {
  background: #fee2e2;
  color: #c2410c;
}

.hero-balance-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 24px;
}

.hero-balance-actions .button {
  min-height: 52px;
  border-radius: 14px;
  font-size: 0.95rem;
}

.hero-balance-actions .button-secondary {
  border-color: #e5e5e0;
  background: #ffffff;
}

/* Stat Cards Row */
.stat-cards-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 20px;
}

.stat-card {
  padding: 20px;
  border: 1px solid #e5e5e0;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.stat-card .stat-icon {
  display: grid;
  width: 40px;
  height: 40px;
  margin-bottom: 14px;
  place-items: center;
  border-radius: 12px;
  background: #f3f4f6;
  color: #050505;
  font-size: 1.1rem;
}

.stat-card .stat-icon.green {
  background: #e9f8ef;
  color: #0f8a45;
}

.stat-card .stat-label {
  display: block;
  margin-bottom: 4px;
  color: #6b7280;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stat-card .stat-value {
  display: block;
  font-family: "IBM Plex Mono", monospace;
  font-size: 1.5rem;
  font-weight: 800;
  color: #050505;
}

.stat-card .stat-value.green {
  color: #0f8a45;
}

/* Bar Chart */
.bar-chart-card {
  padding: 24px;
  border: 1px solid #e5e5e0;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.08);
  margin-bottom: 20px;
}

.bar-chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.bar-chart-header h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
}

.bar-chart-header .tabs {
  gap: 6px;
}

.bar-chart-header .tabs button {
  min-height: 32px;
  padding: 0 14px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
}

.bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 180px;
  padding: 0 4px;
  margin-bottom: 20px;
}

.bar-chart .bar {
  flex: 1;
  min-width: 0;
  border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg, #d1d5db 0%, #e5e7eb 100%);
  transition: background 200ms ease, transform 160ms ease;
  cursor: pointer;
  position: relative;
}

.bar-chart .bar:hover {
  background: linear-gradient(180deg, #050505 0%, #374151 100%);
  transform: scaleY(1.02);
  transform-origin: bottom;
}

.bar-chart .bar.highlight {
  background: linear-gradient(180deg, #050505 0%, #374151 100%);
}

.bar-chart-footer {
  display: flex;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid #f3f4f6;
}

.bar-chart-footer .chart-stat {
  display: grid;
  gap: 2px;
}

.bar-chart-footer .chart-stat span {
  color: #6b7280;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.bar-chart-footer .chart-stat strong {
  font-family: "IBM Plex Mono", monospace;
  font-size: 1.15rem;
  font-weight: 800;
  color: #050505;
}

.bar-chart-footer .chart-stat strong.green {
  color: #0f8a45;
}

/* Investment Cards */
.investments-section {
  margin-bottom: 20px;
}

.investments-section .section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.investments-section .section-header h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
}

.investments-section .section-header a {
  color: #6b7280;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.investment-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px;
  border: 1px solid #e5e5e0;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
  margin-bottom: 12px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.investment-card:hover {
  border-color: #c9d8ea;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.investment-card .inv-icon {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 14px;
  background: #f3f4f6;
  color: #050505;
  font-size: 1.2rem;
}

.investment-card .inv-icon.blue {
  background: #eff6ff;
  color: #2563eb;
}

.investment-card .inv-icon.green {
  background: #e9f8ef;
  color: #0f8a45;
}

.investment-card .inv-info {
  flex: 1;
  min-width: 0;
}

.investment-card .inv-name {
  display: block;
  font-weight: 800;
  font-size: 1rem;
  color: #050505;
}

.investment-card .inv-meta {
  display: block;
  color: #6b7280;
  font-size: 0.82rem;
}

.investment-card .inv-amount {
  text-align: right;
}

.investment-card .inv-amount strong {
  display: block;
  font-family: "IBM Plex Mono", monospace;
  font-weight: 800;
  font-size: 1.05rem;
  color: #050505;
}

.investment-card .inv-amount .inv-profit {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.82rem;
  font-weight: 700;
  color: #0f8a45;
}

.plans-section-copy {
  max-width: 620px;
  margin: -4px 0 16px;
  color: #697386;
  font-size: 0.92rem;
  line-height: 1.55;
}

body.logged-in .active-vault-empty {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 18px;
  border: 1px dashed #cfd5df;
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(248, 249, 251, 0.92));
}

body.logged-in .active-vault-empty .empty-icon {
  display: inline-grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 18px;
  background: #050505;
  color: #ffffff;
  font-family: "IBM Plex Mono", monospace;
  font-weight: 900;
}

body.logged-in .active-vault-empty strong {
  display: block;
  margin-bottom: 4px;
  color: #050505;
  font-size: 1.04rem;
  font-weight: 900;
}

body.logged-in .active-vault-empty p {
  margin: 0;
  color: #697386;
  font-size: 0.9rem;
  line-height: 1.5;
}

body.logged-in .active-vault-grid {
  display: grid;
  gap: 12px;
}

body.logged-in .active-vault-card {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: 18px;
  padding: 18px;
  border: 1px solid #e5e7eb;
  border-radius: 22px;
  background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 14px 34px rgba(16, 24, 40, 0.06);
}

body.logged-in .active-vault-main h4 {
  margin: 10px 0 8px;
  color: #050505;
  font-size: 1.16rem;
  font-weight: 950;
}

body.logged-in .active-vault-main p {
  margin: 0;
  color: #697386;
  font-size: 0.88rem;
  line-height: 1.55;
}

body.logged-in .vault-status {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border-radius: 999px;
  background: #ecfdf3;
  color: #067647;
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.logged-in .vault-status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: currentColor;
}

body.logged-in .vault-status.pending {
  background: #fff7ed;
  color: #b45309;
}

body.logged-in .active-vault-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

body.logged-in .active-vault-metrics span {
  min-width: 0;
  padding: 13px;
  border: 1px solid #edf0f4;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.86);
}

body.logged-in .active-vault-metrics small {
  display: block;
  margin-bottom: 5px;
  color: #697386;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

body.logged-in .active-vault-metrics strong {
  display: block;
  overflow-wrap: anywhere;
  color: #050505;
  font-size: 0.92rem;
  font-weight: 900;
}

body.logged-in .active-vault-metrics .positive {
  color: #07884f;
}

body.logged-in .vault-plan-cta {
  flex: 0 0 auto;
  padding-inline: 18px;
  text-decoration: none;
}

/* Transaction List Items */
.txn-list {
  display: grid;
  gap: 10px;
}

.txn-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px solid #e5e5e0;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.03);
  transition: border-color 160ms ease;
}

.txn-item:hover {
  border-color: #c9d8ea;
}

.txn-item .txn-icon {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 12px;
  font-size: 1rem;
}

.txn-item .txn-icon.deposit {
  background: #e9f8ef;
  color: #0f8a45;
}

.txn-item .txn-icon.withdrawal {
  background: #fff6d7;
  color: #76520d;
}

.txn-item .txn-icon.reinvest {
  background: #eff6ff;
  color: #2563eb;
}

.txn-item .txn-icon.failed {
  background: #fee2e2;
  color: #991b1b;
}

.txn-item .txn-details {
  flex: 1;
  min-width: 0;
}

.txn-item .txn-title {
  display: block;
  font-weight: 800;
  font-size: 0.95rem;
  color: #050505;
}

.txn-item .txn-subtitle {
  display: block;
  font-size: 0.8rem;
}

.txn-item .txn-subtitle.completed {
  color: #0f8a45;
}

.txn-item .txn-subtitle.pending {
  color: #76520d;
}

.txn-item .txn-subtitle.failed {
  color: #991b1b;
}

.txn-item .txn-right {
  text-align: right;
  flex: 0 0 auto;
}

.txn-item .txn-amount {
  display: block;
  font-family: "IBM Plex Mono", monospace;
  font-weight: 800;
  font-size: 1rem;
}

.txn-item .txn-amount.positive {
  color: #0f8a45;
}

.txn-item .txn-amount.negative {
  color: #050505;
}

.txn-item .txn-date {
  display: block;
  color: #9ca3af;
  font-size: 0.78rem;
}

/* Profile Card */
.profile-hero-card {
  text-align: center;
  padding: clamp(28px, 4vw, 40px);
  border: 1px solid #e5e5e0;
  border-radius: 20px;
  background: linear-gradient(145deg, #ffffff 0%, #f8f8f6 100%);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.08);
  margin-bottom: 24px;
}

.profile-hero-card .profile-avatar {
  position: relative;
  display: inline-block;
  margin-bottom: 16px;
}

.profile-hero-card .profile-avatar .avatar {
  width: 80px;
  height: 80px;
  font-size: 1.6rem;
  border: 3px solid #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.profile-hero-card .profile-avatar .edit-icon {
  position: absolute;
  bottom: 0;
  right: -4px;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 2px solid #ffffff;
  border-radius: 50%;
  background: #050505;
  color: #ffffff;
  font-size: 0.72rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.profile-hero-card .profile-name {
  display: block;
  margin-bottom: 4px;
  font-family: "Sora", sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: #050505;
}

.profile-hero-card .profile-email {
  display: block;
  margin-bottom: 14px;
  color: #6b7280;
  font-size: 0.88rem;
}

.profile-hero-card .profile-badges {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.profile-hero-card .profile-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
}

.profile-hero-card .profile-badge.verified {
  background: #e9f8ef;
  color: #0f8a45;
}

.profile-hero-card .profile-badge.tier {
  background: #f3f4f6;
  color: #374151;
}

/* Settings List Rows */
.settings-list {
  display: grid;
  gap: 10px;
  margin-bottom: 24px;
}

.settings-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.settings-list-header h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 800;
}

.settings-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px solid #e5e5e0;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.03);
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.settings-row:hover {
  border-color: #c9d8ea;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.06);
}

.settings-row .settings-icon {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 12px;
  background: #f3f4f6;
  color: #374151;
  font-size: 1rem;
}

.settings-row .settings-info {
  flex: 1;
  min-width: 0;
}

.settings-row .settings-label {
  display: block;
  font-weight: 800;
  font-size: 0.95rem;
  color: #050505;
}

.settings-row .settings-meta {
  display: block;
  color: #6b7280;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.settings-row .settings-arrow {
  flex: 0 0 auto;
  color: #d1d5db;
  font-size: 1.2rem;
}

/* Toggle Row (enhanced) */
.toggle-row-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px solid #e5e5e0;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.03);
}

.toggle-row-card .toggle-icon {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 12px;
  background: #f3f4f6;
  color: #374151;
  font-size: 1rem;
}

.toggle-row-card .toggle-info {
  flex: 1;
  min-width: 0;
}

.toggle-row-card .toggle-label {
  display: block;
  font-weight: 800;
  font-size: 0.95rem;
  color: #050505;
}

.toggle-row-card .toggle-meta {
  display: block;
  color: #0f8a45;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* KYC Status Card */
.kyc-status-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px;
  border: 2px solid #e5e5e0;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.kyc-status-card.verified {
  border-color: #0f8a45;
}

.kyc-status-card .kyc-icon {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  font-size: 1.3rem;
}

.kyc-status-card .kyc-icon.verified {
  background: #e9f8ef;
  color: #0f8a45;
}

.kyc-status-card .kyc-info {
  flex: 1;
}

.kyc-status-card .kyc-level {
  display: block;
  font-weight: 800;
  font-size: 1rem;
  color: #050505;
}

.kyc-status-card .kyc-detail {
  display: block;
  color: #6b7280;
  font-size: 0.82rem;
}

.kyc-status-card .kyc-action {
  flex: 0 0 auto;
  color: #6b7280;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

/* Sign Out Button */
.sign-out-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 52px;
  margin-top: 12px;
  border: 1px solid #e5e5e0;
  border-radius: 14px;
  background: #ffffff;
  color: #c2410c;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease;
}

.sign-out-btn:hover {
  background: #fff5f5;
  border-color: #fecaca;
}

/* Section Label (uppercase eyebrow for sections) */
.section-label {
  display: block;
  margin-bottom: 12px;
  color: #6b7280;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Mobile Bottom Nav (hidden on desktop) */
.mobile-bottom-nav-app {
  display: none;
}

@media (max-width: 768px) {
  .mobile-bottom-nav-app {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 50;
    display: grid;
  grid-template-columns: repeat(5, 1fr);
    gap: 0;
    padding: 8px 0;
    padding-bottom: max(8px, env(safe-area-inset-bottom));
    border-top: 1px solid #e5e5e0;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(18px);
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.06);
  }

  .mobile-bottom-nav-app a {
    display: grid;
    gap: 3px;
    padding: 6px 4px;
    color: #9ca3af;
    font-size: 0.65rem;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    transition: color 120ms ease;
  }

  .mobile-bottom-nav-app a.active {
    color: #050505;
  }

  .mobile-bottom-nav-app a svg {
    width: 22px;
    height: 22px;
    margin: 0 auto;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  body {
    padding-bottom: 72px;
  }

  .hero-balance-card .balance-amount {
    font-size: clamp(2.2rem, 10vw, 3.4rem);
  }

  .bar-chart {
    height: 140px;
  }

  .stat-cards-row {
    gap: 10px;
  }

  .investment-card {
    padding: 14px;
  }

  .settings-row,
  .txn-item {
    padding: 14px;
  }
}

/* Orynvia clean app recovery - black and white logged-in experience */
body.logged-in.app-page {
  background: #f5f6f8;
  color: #050505;
  font-family: "Manrope", "Plus Jakarta Sans", Arial, sans-serif;
  overflow-x: hidden;
}

body.logged-in.app-page * {
  box-sizing: border-box;
}

body.logged-in .dashboard-page-shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 34px 18px 118px;
}

body.logged-in .section-heading {
  max-width: 780px;
  margin: 0 auto 22px;
  text-align: left;
}

body.logged-in .section-heading .eyebrow {
  color: #050505;
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  font-weight: 900;
}

body.logged-in .section-heading h1 {
  color: #050505;
  font-size: clamp(2.35rem, 8vw, 4.65rem);
  line-height: 0.94;
  letter-spacing: 0;
  margin: 8px 0 10px;
  text-transform: none;
}

body.logged-in .section-heading p {
  max-width: 620px;
  color: #6b7280;
  font-size: 1rem;
  line-height: 1.55;
  margin: 0;
}

body.logged-in .app-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  max-width: 1120px;
  margin: 0 auto;
  min-height: auto;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

body.logged-in .app-sidebar {
  display: flex;
}

body.logged-in .app-main {
  width: 100%;
  padding: 0;
  background: transparent;
}

body.logged-in .app-topbar,
body.logged-in .hero-balance-card,
body.logged-in .bar-chart-card,
body.logged-in .investments-section,
body.logged-in .stat-card,
body.logged-in .table-card,
body.logged-in .vault-form,
body.logged-in .wallet-box,
body.logged-in .method-card,
body.logged-in .alert-card,
body.logged-in .kyc-status-card,
body.logged-in .security-score-card,
body.logged-in .ref-card,
body.logged-in .settings-card,
body.logged-in .support-card,
body.logged-in .profile-card {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid #e3e5e8;
  color: #050505;
  border-radius: 24px;
  box-shadow: 0 18px 48px rgba(16, 24, 40, 0.07);
  backdrop-filter: blur(18px);
}

body.logged-in .app-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  margin-bottom: 16px;
}

body.logged-in .topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

body.logged-in .avatar {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 15px;
  background: #050505;
  color: #fff;
  font-weight: 900;
}

body.logged-in .hero-balance-card {
  padding: 28px;
  margin-bottom: 16px;
  background: #050505;
  color: #fff;
}

body.logged-in .hero-balance-card .eyebrow,
body.logged-in .hero-balance-card .balance-change {
  color: rgba(255, 255, 255, 0.72);
}

body.logged-in .balance-amount {
  display: block;
  margin: 10px 0;
  color: #fff;
  font-size: clamp(2.65rem, 9vw, 4.9rem);
  line-height: 0.96;
  letter-spacing: 0;
  word-break: break-word;
}

body.logged-in .hero-balance-actions,
body.logged-in .stat-cards-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

body.logged-in .hero-balance-actions {
  margin-top: 22px;
}

body.logged-in .button,
body.logged-in button {
  min-height: 46px;
  border-radius: 16px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

body.logged-in .button-primary,
body.logged-in .vault-form .button-primary {
  background: #050505;
  color: #fff;
  border-color: #050505;
  box-shadow: 0 16px 34px rgba(5, 5, 5, 0.16);
}

body.logged-in .button-secondary {
  background: #fff;
  color: #050505;
  border: 1px solid #d8dce2;
}

body.logged-in .hero-balance-card .button-secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.34);
}

body.logged-in .stat-card {
  min-height: 116px;
  padding: 20px;
  text-decoration: none;
}

body.logged-in .stat-icon,
body.logged-in .inv-icon,
body.logged-in .txn-icon {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background: #f2f4f7;
  color: #050505;
  font-weight: 900;
  font-size: 0.82rem;
}

body.logged-in .stat-icon.green {
  background: #ecfdf3;
  color: #067647;
}

body.logged-in .stat-label,
body.logged-in .inv-meta,
body.logged-in .flow-progress,
body.logged-in .data-table td:first-child,
body.logged-in small {
  color: #697386;
}

body.logged-in .stat-value,
body.logged-in .inv-name,
body.logged-in .section-header h3,
body.logged-in .vault-form h3 {
  color: #050505;
}

body.logged-in .green,
body.logged-in .inv-profit {
  color: #07884f;
}

body.logged-in .bar-chart-card,
body.logged-in .investments-section,
body.logged-in .table-card {
  padding: 22px;
  margin-top: 16px;
}

body.logged-in .bar-chart {
  min-height: 190px;
  gap: 10px;
  padding-top: 16px;
}

body.logged-in .bar-chart .bar {
  border-radius: 14px 14px 0 0;
  background: #d8dde5;
}

body.logged-in .bar-chart .bar.highlight {
  background: #1f2937;
}

body.logged-in .investment-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(16, 24, 40, 0.05);
}

body.logged-in .investment-card + .investment-card {
  margin-top: 12px;
}

body.logged-in .inv-info,
body.logged-in .inv-amount {
  min-width: 0;
}

body.logged-in .inv-amount {
  text-align: right;
}

body.logged-in .deposit-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 16px;
  align-items: start;
}

body.logged-in .deposit-guide-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.75fr);
  gap: 18px;
  align-items: start;
  margin-bottom: 16px;
  padding: 22px;
  border: 1px solid #e3e5e8;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 48px rgba(16, 24, 40, 0.07);
  backdrop-filter: blur(18px);
}

body.logged-in .deposit-guide-card h3 {
  max-width: 520px;
  margin: 8px 0 8px;
  color: #050505;
  font-size: clamp(1.35rem, 3vw, 2.1rem);
  line-height: 1.05;
  font-weight: 950;
}

body.logged-in .deposit-guide-card p {
  max-width: 640px;
  margin: 0;
  color: #697386;
  line-height: 1.55;
}

body.logged-in .deposit-guide-card ol {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  counter-reset: deposit-steps;
  list-style: none;
}

body.logged-in .deposit-guide-card li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid #edf0f4;
  border-radius: 16px;
  background: #fafafa;
  color: #475467;
  font-size: 0.88rem;
  font-weight: 800;
}

body.logged-in .deposit-guide-card li svg {
  flex-shrink: 0;
  color: #111;
}

body.logged-in .method-list {
  display: grid;
  gap: 12px;
}

body.logged-in .method-card {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  cursor: pointer;
}

body.logged-in .method-card.selected {
  border-color: #050505;
  box-shadow: inset 0 0 0 1px #050505, 0 18px 42px rgba(5, 5, 5, 0.08);
}

body.logged-in .badge {
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.68rem;
  font-weight: 900;
  white-space: nowrap;
}

body.logged-in .badge.success,
body.logged-in .badge.warning,
body.logged-in .badge.danger {
  background: #f2f4f7;
  color: #050505;
}

body.logged-in .vault-form {
  display: grid;
  gap: 14px;
  padding: 22px;
}

body.logged-in .vault-form label {
  display: grid;
  gap: 8px;
  color: #050505;
  font-weight: 800;
}

body.logged-in input,
body.logged-in select,
body.logged-in textarea {
  width: 100%;
  min-height: 50px;
  border-radius: 16px;
  border: 1px solid #dfe3ea;
  background: #fafafa;
  color: #050505;
  padding: 0 14px;
  font: inherit;
}

body.logged-in textarea {
  padding: 14px;
}

body.logged-in input::placeholder,
body.logged-in textarea::placeholder {
  color: #9aa3b2;
}

body.logged-in .wallet-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 12px;
  padding: 16px;
}

body.logged-in .deposit-wallet-box {
  border-style: solid;
  border-color: #d8dce2;
  background: #ffffff;
}

body.logged-in .deposit-wallet-box strong {
  display: block;
  margin-top: 3px;
  color: #050505;
  font-size: 1rem;
  font-weight: 900;
}

body.logged-in .wallet-box span,
body.logged-in .wallet-box code {
  grid-column: 1 / -1;
}

body.logged-in .deposit-wallet-box code {
  overflow-wrap: anywhere;
  padding: 13px;
  border: 1px solid #edf0f4;
  border-radius: 14px;
  background: #f8fafc;
  color: #050505;
  line-height: 1.45;
}

body.logged-in .deposit-wallet-box .wallet-warning {
  grid-column: 1 / -1;
  color: #9a3412;
  line-height: 1.45;
}

body.logged-in .copy-btn {
  justify-self: start;
  min-height: 38px;
  padding: 0 14px;
  background: #050505;
  color: #fff;
  border: 0;
}

body.logged-in .stepper {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 8px;
  margin: 10px 0 18px;
  border: 1px solid #e3e5e8;
  border-radius: 18px;
  background: #fff;
}

body.logged-in .stepper span {
  flex: 1 0 auto;
  min-height: 38px;
  display: inline-grid;
  place-items: center;
  padding: 0 12px;
  border-radius: 12px;
  color: #697386;
  font-size: 0.78rem;
  font-weight: 900;
}

body.logged-in .stepper span.active {
  background: #050505;
  color: #fff;
}

body.logged-in .stepper span svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

body.logged-in .stepper span.completed {
  background: #f0f0f0;
  color: #111;
}

body.logged-in .alert-card {
  display: grid;
  gap: 4px;
  padding: 16px;
  margin-bottom: 12px;
}

body.logged-in .alert-card.warning,
body.logged-in .alert-card.danger {
  background: #fff;
  border-color: #e3e5e8;
  color: #050505;
}

body.logged-in .data-table {
  width: 100%;
  border-collapse: collapse;
}

body.logged-in .data-table td,
body.logged-in .data-table th {
  padding: 12px 0;
  border-bottom: 1px solid #eef0f3;
}

body.logged-in .mobile-bottom-nav-app {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  padding: 6px 0 calc(6px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.94);
  border-top: 1px solid #e5e7eb;
  box-shadow: 0 -14px 34px rgba(16, 24, 40, 0.11);
  backdrop-filter: blur(20px);
  overflow: hidden;
  white-space: nowrap;
}

body.logged-in .mobile-bottom-nav-app a {
  min-width: 0;
  min-height: 54px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: #667085;
  text-decoration: none;
  font-size: 0.55rem;
  font-weight: 900;
  line-height: 1.05;
  overflow: hidden;
}

body.logged-in .mobile-bottom-nav-app a span:last-child {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.logged-in .mobile-bottom-nav-app .nav-dot {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  background: #f2f4f7;
  color: #050505;
  font-size: 0.62rem;
  font-weight: 1000;
}

body.logged-in .mobile-bottom-nav-app a.active {
  color: #050505;
}

body.logged-in .mobile-bottom-nav-app a.active .nav-dot {
  background: #050505;
  color: #fff;
  box-shadow: 0 10px 20px rgba(5, 5, 5, 0.22);
}

/* AI icon - center of attraction */
body.logged-in .mobile-bottom-nav-app a[data-page="ai"] .nav-icon,
body.logged-in .mobile-bottom-nav-app a[href="ai.html"] .nav-icon {
  background: #111;
  color: #fff;
  width: 34px;
  height: 34px;
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}
body.logged-in .mobile-bottom-nav-app a[data-page="ai"] .nav-icon svg,
body.logged-in .mobile-bottom-nav-app a[href="ai.html"] .nav-icon svg {
  width: 18px;
  height: 18px;
}
body.logged-in .mobile-bottom-nav-app a[data-page="ai"],
body.logged-in .mobile-bottom-nav-app a[href="ai.html"] {
  color: #111;
  font-weight: 1000;
}

body.logged-in .nav-icon {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: 10px;
  background: transparent;
  color: #667085;
}

body.logged-in .mobile-bottom-nav-app a.active .nav-icon {
  background: #111;
  color: #fff;
}

:root[data-theme="dark"] body.logged-in .mobile-bottom-nav-app {
  background: rgba(10, 14, 26, 0.94);
  border-top-color: #1f2937;
  box-shadow: 0 -14px 34px rgba(0, 0, 0, 0.35);
}

:root[data-theme="dark"] body.logged-in .mobile-bottom-nav-app a {
  color: #7c8798;
}

:root[data-theme="dark"] body.logged-in .mobile-bottom-nav-app a.active {
  color: #f4f7fb;
  background: rgba(255,255,255,0.06);
}

body.logged-in .nav-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.logged-in .mobile-bottom-nav-app .nav-icon {
  width: 30px;
  height: 30px;
  flex-basis: 30px;
  border-radius: 12px;
}

body.logged-in .mobile-bottom-nav-app .nav-icon svg {
  width: 16px;
  height: 16px;
}

body.logged-in .mobile-bottom-nav-app a.active .nav-icon {
  background: #050505;
  color: #fff;
  box-shadow: 0 10px 20px rgba(5, 5, 5, 0.22);
}

body.logged-in.app-page .platform,
body.logged-in.app-page .dashboard-page-shell {
  background: #f5f6f8 !important;
  color: #050505 !important;
}

:root[data-theme="dark"] body.logged-in.app-page .platform,
:root[data-theme="dark"] body.logged-in.app-page .dashboard-page-shell {
  background: #000000 !important;
  color: #FFFFFF !important;
}

body.logged-in .app-topbar strong,
body.logged-in .app-topbar .mono,
body.logged-in .table-card .mono,
body.logged-in .wallet-box .mono,
body.logged-in .vault-form .mono {
  color: #050505;
}

body.logged-in .hero-balance-card .mono {
  color: #fff;
}

body.logged-in .method-card strong,
body.logged-in .method-card small {
  display: block;
}

body.logged-in .method-card small {
  margin-top: 4px;
  line-height: 1.45;
}

@media (min-width: 900px) {
  body.logged-in .mobile-bottom-nav-app {
    display: none;
  }

  body.logged-in .dashboard-page-shell {
    padding-bottom: 54px;
  }
}

@media (max-width: 768px) {
  body.logged-in .dashboard-page-shell {
    padding: 24px 14px 106px;
  }

  body.logged-in .app-shell,
  body.logged-in.app-page .app-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  body.logged-in .app-main {
    min-width: 0;
  }

  body.logged-in .section-heading h1 {
    font-size: clamp(2.15rem, 13vw, 3.8rem);
  }

  body.logged-in .app-topbar {
    align-items: flex-start;
  }

  body.logged-in .dash-topbar,
  body.logged-in .dash-balance-top,
  body.logged-in .dash-plans-header,
  body.logged-in .dash-user,
  body.logged-in .settings-hero,
  body.logged-in .settings-hero-badges,
  body.logged-in .settings-toggle-row,
  body.logged-in .settings-kyc {
    flex-wrap: wrap;
  }

  body.logged-in .dash-user,
  body.logged-in .dash-user-info,
  body.logged-in .settings-hero-info,
  body.logged-in .settings-row-info,
  body.logged-in .tx-info {
    min-width: 0;
  }

  body.logged-in .dash-balance-side,
  body.logged-in .dash-user-info,
  body.logged-in .settings-hero-info,
  body.logged-in .tx-amount {
    text-align: left;
  }

  body.logged-in .deposit-layout {
    grid-template-columns: 1fr;
  }

  body.logged-in .deposit-guide-card {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  body.logged-in .hero-balance-card,
  body.logged-in .bar-chart-card,
  body.logged-in .investments-section,
  body.logged-in .table-card,
  body.logged-in .vault-form {
    border-radius: 22px;
    padding: 18px;
  }

  body.logged-in .stat-cards-row,
  body.logged-in .hero-balance-actions {
    grid-template-columns: 1fr;
  }

  body.logged-in .hero-balance-actions .button {
    width: 100%;
  }

  body.logged-in .investment-card {
    grid-template-columns: auto minmax(0, 1fr);
  }

body.logged-in .investment-card .inv-amount {
  grid-column: 2;
  text-align: left;
}

  body.logged-in .active-vault-empty,
  body.logged-in .active-vault-card {
    grid-template-columns: 1fr;
  }

  body.logged-in .active-vault-empty .button {
    width: 100%;
  }

  body.logged-in .active-vault-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.logged-in .table-card,
  body.logged-in .data-table {
    overflow-x: auto;
  }

  body.logged-in.market-route .markets-search-wrap,
  body.logged-in.market-route .markets-grid-wrap,
  body.logged-in.settings-route .tx-tabs,
  body.logged-in.settings-route .tx-list {
    padding-left: 14px;
    padding-right: 14px;
  }

  body.logged-in.market-route .markets-filters {
    padding: 14px;
    gap: 10px;
  }

  body.logged-in.market-route .filter-pill {
    flex: 0 0 auto;
  }

  body.logged-in.market-route .markets-grid,
  body.logged-in .dash-stats-grid,
  body.logged-in .dash-actions-grid,
  body.logged-in .dash-plans-grid,
  body.logged-in .active-vault-metrics {
    grid-template-columns: 1fr;
  }

  body.logged-in.settings-route .settings-row,
  body.logged-in.settings-route .settings-toggle-row,
  body.logged-in.settings-route .settings-kyc,
  body.logged-in.settings-route .tx-item {
    align-items: flex-start;
  }

  body.logged-in.settings-route .settings-kyc-btn,
  body.logged-in.settings-route .tx-amount {
    width: 100%;
  }

  body.logged-in.settings-route .settings-toggle {
    width: 44px;
    min-width: 44px;
    margin-left: auto;
    flex: 0 0 44px;
  }

  body.logged-in.settings-route .settings-edit-actions {
    flex-direction: column;
  }

  body.logged-in.settings-route .settings-edit-actions .button {
    width: 100%;
  }
}

@media (max-width: 480px) {
  body.logged-in .dashboard-page-shell {
    padding-left: 12px;
    padding-right: 12px;
  }

  body.logged-in .app-topbar {
    border-radius: 20px;
  }

  body.logged-in .topbar-actions .button-secondary {
    display: none;
  }

  body.logged-in .balance-amount {
    font-size: clamp(2.25rem, 15vw, 3.4rem);
  }

  body.logged-in .method-card {
    align-items: flex-start;
    flex-direction: column;
  }

  body.logged-in .mobile-bottom-nav-app a {
    font-size: 0.52rem;
  }

  body.logged-in .mobile-bottom-nav-app .nav-dot {
    width: 28px;
    height: 28px;
    border-radius: 10px;
  }

  body.logged-in .mobile-bottom-nav-app .nav-icon {
    width: 28px;
    height: 28px;
    flex-basis: 28px;
    border-radius: 10px;
  }

  body.logged-in .mobile-bottom-nav-app .nav-icon svg {
    width: 15px;
    height: 15px;
  }

  body.logged-in .active-vault-metrics {
    grid-template-columns: 1fr;
  }

  body.logged-in .dash-balance-card,
  body.logged-in .settings-hero,
  body.logged-in .settings-card,
  body.logged-in .market-search,
  body.logged-in .market-card,
  body.logged-in .ai-watch-item {
    border-radius: 18px;
  }

  body.logged-in.market-route .markets-search-wrap,
  body.logged-in.market-route .markets-grid-wrap,
  body.logged-in.settings-route .tx-tabs,
  body.logged-in.settings-route .tx-list {
    padding-left: 12px;
    padding-right: 12px;
  }

  body.logged-in.settings-route .settings-row,
  body.logged-in.settings-route .settings-toggle-row,
  body.logged-in.settings-route .settings-kyc,
  body.logged-in.settings-route .tx-item {
    padding-left: 16px;
    padding-right: 16px;
  }
}

body.logged-in .vault-pricing-card {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  padding: 20px;
}

body.logged-in .vault-pricing-card.featured {
  border-color: #050505;
  box-shadow: 0 22px 54px rgba(5, 5, 5, 0.12);
}

body.logged-in .vault-pricing-card .inv-icon {
  background: #050505;
  color: #ffffff;
}

body.logged-in .vault-label {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 8px;
  padding: 7px 10px;
  border-radius: 999px;
  background: #050505;
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 1000;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

body.logged-in .vault-price-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

body.logged-in .vault-price-grid div {
  padding: 14px;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  background: #fafafa;
}

body.logged-in .vault-price-grid span,
body.logged-in .vault-feature-list {
  color: #667085;
  font-size: 0.78rem;
  font-weight: 850;
}

body.logged-in .vault-price-grid strong {
  display: block;
  margin-top: 6px;
  color: #050505;
  font-family: "IBM Plex Mono", monospace;
  font-size: 1.04rem;
}

body.logged-in .vault-feature-list {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 14px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

body.logged-in .vault-feature-list li {
  position: relative;
  padding-left: 18px;
}

body.logged-in .vault-feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #050505;
}

body.logged-in .vault-pricing-card .inv-amount {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #eef0f3;
  text-align: left;
}

body.logged-in .vault-pricing-card .inv-profit {
  max-width: 280px;
  text-align: right;
}

@media (max-width: 768px) {
  body.logged-in .vault-price-grid,
  body.logged-in .vault-feature-list {
    grid-template-columns: 1fr;
  }

  body.logged-in .vault-pricing-card .inv-amount {
    align-items: flex-start;
    flex-direction: column;
  }

  body.logged-in .vault-pricing-card .inv-profit {
    text-align: left;
  }
}

/* Authentication feedback and verification screen */
.auth-status {
  min-height: 22px;
  margin: 10px 0 0;
  color: #5f6673;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.45;
}

.auth-status[data-status="success"] {
  color: #087443;
}

.auth-status[data-status="error"] {
  color: #b42318;
}

.auth-status[data-status="info"] {
  color: #344054;
}

.login-help {
  margin: 10px 0 0;
  color: #667085;
  font-size: 0.95rem;
  font-weight: 800;
  text-align: center;
}

.login-help a {
  color: #050505;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.verify-panel {
  max-width: 520px;
}

.verify-copy {
  margin: -8px 0 24px;
  color: #667085;
  font-size: 1rem;
  line-height: 1.55;
  text-align: center;
}

.verify-code-input {
  text-align: center;
  letter-spacing: 0.28em;
  font-size: 1.35rem;
  font-weight: 900;
}

.resend-code-button {
  width: 100%;
  justify-content: center;
}

button[disabled],
.button[disabled] {
  cursor: not-allowed;
  opacity: 0.68;
}

/* Markets terminal */
body.logged-in .market-command {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 14px;
  margin-bottom: 16px;
}

body.logged-in.dashboard-route .app-topbar {
  justify-content: flex-end;
  padding: 0;
  margin-bottom: 14px;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

body.logged-in .market-search,
body.logged-in .ai-signal-card,
body.logged-in .market-card,
body.logged-in .ai-watch-item {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #e3e5e8;
  border-radius: 24px;
  box-shadow: 0 18px 48px rgba(16, 24, 40, 0.07);
  backdrop-filter: blur(18px);
}

body.logged-in .market-search {
  display: grid;
  gap: 10px;
  padding: 18px;
  color: #050505;
  font-weight: 900;
}

body.logged-in .market-search input,
body.logged-in .market-search select {
  width: 100%;
  min-height: 46px;
  border: 1px solid #e3e5e8;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  color: #050505;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 800;
  outline: none;
  padding: 0 14px;
}

body.logged-in .market-search select {
  cursor: pointer;
}

body.logged-in .market-search input:focus,
body.logged-in .market-search select:focus {
  border-color: #050505;
  box-shadow: 0 0 0 4px rgba(5, 5, 5, 0.08);
}

body.logged-in .ai-signal-card {
  padding: 18px;
}

body.logged-in .ai-signal-card h3 {
  margin: 6px 0 8px;
  color: #050505;
  font-size: 1.05rem;
}

body.logged-in .ai-signal-card p {
  margin: 0;
  color: #667085;
  line-height: 1.5;
}

body.logged-in .market-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

body.logged-in .market-terminal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 16px;
  align-items: start;
}

body.logged-in .tradingview-card,
body.logged-in .market-list-card {
  overflow: hidden;
  border: 1px solid #e3e5e8;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 48px rgba(16, 24, 40, 0.07);
  backdrop-filter: blur(18px);
}

body.logged-in .tradingview-card {
  position: sticky;
  top: 18px;
}

body.logged-in .tradingview-card .section-header,
body.logged-in .market-list-card .section-header {
  padding: 18px;
  border-bottom: 1px solid #eef0f3;
}

body.logged-in .tradingview-card h3,
body.logged-in .market-list-card h3 {
  margin: 4px 0 0;
  color: #050505;
  font-size: 1.1rem;
}

body.logged-in .tradingview-frame {
  position: relative;
  height: 540px;
  min-height: 420px;
  background: #f7f8fa;
}

body.logged-in .tradingview-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

body.logged-in .market-list-card .market-grid {
  grid-template-columns: 1fr;
  max-height: 690px;
  overflow: auto;
  padding: 14px;
  scrollbar-width: thin;
}

body.logged-in .market-list-card .market-grid::-webkit-scrollbar {
  width: 8px;
}

body.logged-in .market-list-card .market-grid::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #d0d5dd;
}

body.logged-in .market-list-toggle {
  width: calc(100% - 28px);
  margin: 0 14px 14px;
}

body.logged-in .market-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  cursor: pointer;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

body.logged-in .market-card:hover,
body.logged-in .market-card.active {
  border-color: #050505;
  box-shadow: 0 22px 58px rgba(16, 24, 40, 0.13);
  transform: translateY(-1px);
}

body.logged-in .market-card.active {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(250, 250, 250, 0.92));
}

body.logged-in .market-card-head,
body.logged-in .ai-watch-item {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: flex-start;
  gap: 14px;
}

body.logged-in .market-card-head {
  grid-template-columns: minmax(0, 1fr) max-content;
}

body.logged-in .market-price-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  align-items: baseline;
  gap: 12px;
}

body.logged-in .market-meta-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: flex-start;
  gap: 14px;
}

body.logged-in .market-category {
  display: inline-flex;
  margin-bottom: 8px;
  color: #667085;
  font-size: 0.68rem;
  font-weight: 1000;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.logged-in .market-card h3 {
  margin: 0;
  color: #050505;
  font-size: 1.35rem;
}

body.logged-in .market-card p {
  margin: 4px 0 0;
  color: #667085;
}

body.logged-in .market-signal {
  flex: 0 0 auto;
  padding: 7px 10px;
  border-radius: 999px;
  background: #f2f4f7;
  color: #050505;
  font-size: 0.68rem;
  font-weight: 1000;
  text-transform: uppercase;
}

body.logged-in .market-signal.research {
  background: #ecfdf3;
  color: #067647;
}

body.logged-in .market-signal.watch,
body.logged-in .market-signal.hold-watch {
  background: #fffaeb;
  color: #946300;
}

body.logged-in .market-signal.caution {
  background: #fef3f2;
  color: #b42318;
}

body.logged-in .market-price-row strong {
  min-width: 0;
  color: #050505;
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  line-height: 1.05;
  overflow-wrap: anywhere;
}

body.logged-in .market-price-row .positive,
body.logged-in .ai-watch-item .positive {
  color: #087443;
  font-weight: 1000;
}

body.logged-in .market-price-row .negative {
  color: #b42318;
  font-weight: 1000;
}

body.logged-in .market-price-row .positive,
body.logged-in .market-price-row .negative {
  justify-self: end;
  white-space: nowrap;
}

body.logged-in .confidence-meter {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #eef0f3;
}

body.logged-in .confidence-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #050505;
}

body.logged-in .market-meta-row {
  color: #667085;
  font-size: 0.82rem;
  font-weight: 850;
}

body.logged-in .market-note {
  min-height: 48px;
}

body.logged-in .market-ai-btn {
  width: fit-content;
}

.market-ai-analysis {
  margin-top: 12px;
  padding: 12px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(147, 51, 234, 0.1) 100%);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 8px;
}

.market-ai-analysis .ai-badge {
  display: inline-block;
  padding: 2px 8px;
  background: linear-gradient(135deg, #3b82f6 0%, #9333ea 100%);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 4px;
  margin-bottom: 8px;
}

.market-ai-analysis p {
  margin: 0;
  font-size: 0.8rem;
  color: #374151;
  line-height: 1.4;
}

.market-price-row {
  position: relative;
}

.market-ai-analysis-detail {
  margin-top: 16px;
  padding: 16px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(147, 51, 234, 0.08) 100%);
  border: 1px solid rgba(59, 130, 246, 0.15);
  border-radius: 12px;
}

.market-ai-analysis-detail h4 {
  margin: 0 0 12px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #1f2937;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.analysis-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 12px;
}

.analysis-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.analysis-item span {
  font-size: 0.7rem;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.analysis-item strong {
  font-size: 0.9rem;
  font-weight: 600;
  color: #1f2937;
}

.analysis-item strong.positive {
  color: #10b981;
}

.analysis-item strong.negative {
  color: #ef4444;
}

.analysis-outlook {
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid rgba(59, 130, 246, 0.15);
  font-size: 0.85rem;
  color: #374151;
  line-height: 1.5;
}

body.logged-in .market-ai-panel {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: end;
  pointer-events: none;
  opacity: 0;
  transition: opacity 180ms ease;
}

body.logged-in .market-ai-panel.active {
  pointer-events: auto;
  opacity: 1;
}

body.logged-in .market-ai-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 5, 0.36);
  backdrop-filter: blur(7px);
}

body.logged-in .market-ai-sheet {
  position: relative;
  width: min(460px, calc(100vw - 28px));
  max-height: calc(100vh - 32px);
  overflow: auto;
  margin: 16px;
  padding: 24px;
  border: 1px solid rgba(227, 229, 232, 0.9);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 36px 90px rgba(16, 24, 40, 0.24);
  backdrop-filter: blur(22px);
  transform: translateY(18px) scale(0.98);
  transition: transform 220ms ease;
}

body.logged-in .market-ai-panel.active .market-ai-sheet {
  transform: translateY(0) scale(1);
}

body.logged-in .market-ai-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid #e3e5e8;
  border-radius: 999px;
  background: #fff;
  color: #050505;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

body.logged-in .market-ai-sheet h3 {
  margin: 8px 42px 18px 0;
  color: #050505;
  font-size: 1.45rem;
}

body.logged-in .market-ai-selected,
body.logged-in .market-ai-metrics {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

body.logged-in .market-ai-selected {
  padding-bottom: 16px;
  border-bottom: 1px solid #eef0f3;
}

body.logged-in .market-ai-selected h4 {
  margin: 0;
  color: #050505;
  font-size: 1.65rem;
}

body.logged-in .market-ai-selected p,
body.logged-in .market-ai-copy,
body.logged-in .market-ai-disclaimer {
  margin: 6px 0 0;
  color: #667085;
  line-height: 1.5;
}

body.logged-in .market-ai-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 18px 0;
}

body.logged-in .market-ai-metrics span {
  display: grid;
  gap: 5px;
  padding: 14px;
  border: 1px solid #eef0f3;
  border-radius: 18px;
  background: #fafafa;
}

body.logged-in .market-ai-metrics small,
body.logged-in .market-ai-disclaimer {
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

body.logged-in .market-ai-metrics b {
  color: #050505;
}

body.logged-in .market-ai-metrics b.positive {
  color: #087443;
}

body.logged-in .market-ai-metrics b.negative {
  color: #b42318;
}

body.logged-in .market-ai-verdict {
  margin: 14px 0;
  padding: 14px;
  border-radius: 18px;
  background: #050505;
  color: #fff;
  font-weight: 900;
  line-height: 1.45;
}

body.logged-in .ai-watchlist-card {
  margin-top: 16px;
}

body.logged-in .ai-watchlist-card #aiWatchlist {
  display: grid;
  gap: 10px;
}

body.logged-in .ai-watchlist-grid {
  display: grid;
  gap: 10px;
}

body.logged-in .ai-watch-item {
  align-items: center;
  padding: 14px;
}

body.logged-in .ai-watch-item small {
  display: block;
  margin: 3px 0 6px;
  color: #8a93a3;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

body.logged-in .ai-watchlist-toggle {
  width: 100%;
  margin-top: 12px;
}

body.logged-in .ai-watch-item > .mono {
  display: block;
  width: 38px;
  color: #98a2b3;
  font-weight: 1000;
  text-align: left;
  font-variant-numeric: tabular-nums;
}

body.logged-in .ai-watch-item strong {
  color: #050505;
}

body.logged-in .ai-watch-item p {
  margin: 4px 0 0;
  color: #667085;
}

@media (max-width: 900px) {
  body.logged-in .market-command,
  body.logged-in .market-grid,
  body.logged-in .market-terminal-layout {
    grid-template-columns: 1fr;
  }

  body.logged-in .tradingview-card {
    position: static;
  }

  body.logged-in .tradingview-frame {
    height: 430px;
    min-height: 360px;
  }
}

@media (max-width: 560px) {
  body.logged-in .market-card-head,
  body.logged-in .market-price-row,
  body.logged-in .market-meta-row {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }

  body.logged-in .market-price-row .positive,
  body.logged-in .market-price-row .negative {
    justify-self: start;
  }

  body.logged-in .ai-watch-item {
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: flex-start;
  }

  body.logged-in .ai-watch-item .market-signal {
    grid-column: 2;
    width: fit-content;
  }

  body.logged-in .market-ai-btn {
    width: 100%;
  }

  body.logged-in .tradingview-card .section-header,
  body.logged-in .market-list-card .section-header {
    align-items: flex-start;
    flex-direction: column;
  }

  body.logged-in .tradingview-frame {
    height: 360px;
    min-height: 320px;
  }

  body.logged-in .market-list-card .market-grid {
    max-height: 580px;
  }
}

/* Desktop app navigation rail */
@media (min-width: 900px) {
  body.logged-in .dashboard-page-shell {
    max-width: 1320px;
  }

  body.logged-in .app-shell {
    display: grid;
    grid-template-columns: 238px minmax(0, 1fr);
    gap: 18px;
    max-width: 1180px;
    align-items: start;
    overflow: visible;
  }

  body.logged-in .app-sidebar {
    position: sticky;
    top: 18px;
    display: block !important;
    align-self: start;
    min-height: calc(100vh - 36px);
    max-height: calc(100vh - 36px);
    overflow: auto;
    overscroll-behavior: contain;
    padding: 18px;
    border: 1px solid #e3e5e8;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.9) !important;
    box-shadow: 0 18px 48px rgba(16, 24, 40, 0.07);
    backdrop-filter: blur(18px);
  }

  body.logged-in .profile-mini {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 16px;
    margin-bottom: 14px;
    border-bottom: 1px solid #eef0f3;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
  }

  body.logged-in .profile-mini strong {
    display: block;
    color: #050505;
    font-size: 0.98rem;
    line-height: 1.1;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.logged-in .profile-mini small {
    display: block;
    margin-top: 4px;
    color: #667085;
    font-size: 0.78rem;
    font-weight: 800;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.logged-in .profile-mini > div {
    min-width: 0;
    max-width: calc(100% - 54px);
    overflow: hidden;
  }

  body.logged-in .profile-mini .avatar {
    flex: 0 0 auto;
  }

  body.logged-in .app-sidebar nav {
    display: grid;
    gap: 8px;
  }

  body.logged-in .app-sidebar a {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    padding: 0 14px;
    border: 1px solid transparent;
    border-radius: 16px;
    color: #667085;
    background: transparent;
    font-size: 0.92rem;
    font-weight: 900;
    text-decoration: none;
    transition: background 150ms ease, color 150ms ease, border-color 150ms ease, transform 150ms ease;
  }

  body.logged-in .app-sidebar a:hover {
    border-color: #e3e5e8;
    background: #f7f8fa;
    color: #050505;
    transform: translateX(2px);
  }

  body.logged-in .app-sidebar a.active {
    border-color: #050505;
    background: #050505;
    color: #ffffff;
    box-shadow: 0 12px 24px rgba(5, 5, 5, 0.18);
  }

  body.logged-in .app-sidebar a.active .nav-icon {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
  }

body.logged-in .app-main {
    min-width: 0;
  }
}

/* Clean profile/security settings */
body.logged-in.settings-route .app-screen,
body.logged-in.settings-route .settings-list,
body.logged-in.settings-route .profile-hero-card,
body.logged-in.settings-route .kyc-status-card,
body.logged-in.settings-route .toggle-row-card,
body.logged-in.settings-route .settings-row {
  color: #050505;
}

body.logged-in.settings-route .section-heading h1,
body.logged-in.settings-route .section-heading p,
body.logged-in.settings-route .settings-list-header h3,
body.logged-in.settings-route .profile-name,
body.logged-in.settings-route .settings-label,
body.logged-in.settings-route .toggle-label,
body.logged-in.settings-route .kyc-level {
  color: #050505 !important;
}

body.logged-in.settings-route .profile-email,
body.logged-in.settings-route .settings-meta,
body.logged-in.settings-route .toggle-meta,
body.logged-in.settings-route .kyc-detail {
  color: #667085 !important;
}

body.logged-in.settings-route .settings-icon,
body.logged-in.settings-route .toggle-icon,
body.logged-in.settings-route .kyc-icon,
body.logged-in.settings-route .edit-icon {
  background: linear-gradient(145deg, #ffffff, #edf1f6);
  border: 1px solid #e4e7ec;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 10px 22px rgba(16, 24, 40, 0.06);
  color: #050505;
}

body.logged-in.settings-route .settings-icon svg,
body.logged-in.settings-route .toggle-icon svg,
body.logged-in.settings-route .kyc-icon svg,
body.logged-in.settings-route .edit-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.logged-in.settings-route .profile-badge.warning {
  background: #fff7ed;
  color: #9a3412;
}

body.logged-in.settings-route .profile-badge.verified {
  background: #ecfdf3;
  color: #067647;
}

body.logged-in.settings-route .toggle {
  min-width: 74px;
  min-height: 38px;
  border: 1px solid #e4e7ec;
  border-radius: 999px;
  background: #f2f4f7;
  color: #344054;
  font-size: 0.78rem;
  font-weight: 900;
  text-decoration: none;
}

body.logged-in.settings-route .toggle.active {
  border-color: #050505;
  background: #050505;
  color: #ffffff;
}

body.logged-in.settings-route .toggle.setup {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-color: #d0d5dd;
  background: #ffffff;
  color: #050505;
}

body.logged-in.settings-route .kyc-status-card.verified {
  border-color: #12b76a;
  background: #f6fef9;
}

body.logged-in.settings-route .kyc-status-card.verified .kyc-icon {
  color: #067647;
}

body.logged-in.settings-route .kyc-action,
body.logged-in.settings-route .settings-arrow {
  color: #050505;
  text-decoration: none;
}

body.logged-in.settings-route .sign-out-btn {
  background: #050505;
  color: #ffffff;
}

body.logged-in.settings-route .settings-row[role="button"]:focus-visible {
  outline: 3px solid rgba(5, 5, 5, 0.18);
  outline-offset: 3px;
}

.settings-edit-modal[hidden] {
  display: none;
}

.settings-edit-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
}

.settings-edit-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 5, 0.42);
  backdrop-filter: blur(10px);
}

.settings-edit-card {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  padding: 24px;
  border: 1px solid #e4e7ec;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  color: #050505;
  box-shadow: 0 28px 90px rgba(16, 24, 40, 0.18);
}

.settings-edit-header,
.settings-edit-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.settings-edit-header {
  margin-bottom: 18px;
}

.settings-edit-header h3 {
  margin: 4px 0 0;
  color: #050505;
  font-family: "Sora", sans-serif;
  font-size: 1.35rem;
}

.modal-close-light {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid #e4e7ec;
  border-radius: 999px;
  background: #f8fafc;
  color: #050505;
  font-size: 1.4rem;
  cursor: pointer;
}

.settings-edit-card label {
  color: #050505;
  font-weight: 900;
}

.settings-edit-card input {
  background: #ffffff;
  color: #050505;
}

.settings-edit-note {
  margin: 14px 0 18px;
  color: #667085;
  font-size: 0.9rem;
}

@media (max-width: 560px) {
  body.logged-in.settings-route .settings-row,
  body.logged-in.settings-route .toggle-row-card,
  body.logged-in.settings-route .kyc-status-card {
    align-items: flex-start;
    padding: 14px;
  }

  body.logged-in.settings-route .toggle-row-card,
  body.logged-in.settings-route .kyc-status-card {
    flex-wrap: wrap;
  }

  body.logged-in.settings-route .toggle,
  body.logged-in.settings-route .kyc-action {
    width: 100%;
  }

  .settings-edit-card {
    padding: 18px;
  }

  .settings-edit-header,
  .settings-edit-actions {
    align-items: stretch;
    flex-direction: column;
  }
}

/* Dedicated security, privacy, KYC, AI, and support pages */
body.logged-in.secure-flow-route .app-screen,
body.logged-in.secure-flow-route .vault-form,
body.logged-in.secure-flow-route .table-card,
body.logged-in.secure-flow-route .settings-list,
body.logged-in.secure-flow-route .settings-row,
body.logged-in.secure-flow-route .toggle-row-card {
  color: #050505;
}

body.logged-in.secure-flow-route .section-heading h1,
body.logged-in.secure-flow-route .section-heading p,
body.logged-in.secure-flow-route h2,
body.logged-in.secure-flow-route h3,
body.logged-in.secure-flow-route .settings-label,
body.logged-in.secure-flow-route .toggle-label,
body.logged-in.secure-flow-route .data-table td {
  color: #050505 !important;
}

body.logged-in.secure-flow-route .settings-meta,
body.logged-in.secure-flow-route .toggle-meta,
body.logged-in.secure-flow-route .muted-copy,
body.logged-in.secure-flow-route .secure-hero-card p,
body.logged-in.secure-flow-route .secure-step small,
body.logged-in.secure-flow-route .form-status {
  color: #667085 !important;
}

body.logged-in.secure-flow-route .section-heading {
  margin-bottom: 24px;
}

body.logged-in.secure-flow-route .section-heading h1 {
  max-width: 920px;
  font-size: clamp(2.35rem, 5.2vw, 3.75rem) !important;
  line-height: 0.98;
}

body.logged-in.secure-flow-route .section-heading p {
  max-width: 760px;
  font-size: clamp(0.98rem, 1.35vw, 1.12rem) !important;
  line-height: 1.55;
}

body.logged-in.secure-flow-route .app-topbar strong.mono {
  font-size: clamp(1.05rem, 1.9vw, 1.55rem);
  line-height: 1.1;
  letter-spacing: 0;
}

body.logged-in.secure-flow-route .profile-mini strong {
  max-width: 150px;
  overflow: hidden;
  font-size: 0.82rem;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.logged-in.secure-flow-route .profile-mini,
body.logged-in.secure-flow-route .profile-mini > div {
  min-width: 0;
}

body.logged-in.secure-flow-route .profile-mini .avatar {
  flex: 0 0 auto;
}

body.logged-in.secure-flow-route .secure-hero-card,
body.logged-in.secure-flow-route .security-score-panel,
body.logged-in.secure-flow-route .secure-step,
body.logged-in.secure-flow-route .ai-command-center,
body.logged-in.secure-flow-route .ai-chat-panel,
body.logged-in.secure-flow-route .ai-insight-panel,
body.logged-in.secure-flow-route .simple-list-item,
body.logged-in.secure-flow-route .security-action-row {
  border: 1px solid #e4e7ec;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 48px rgba(16, 24, 40, 0.07);
}

body.logged-in.secure-flow-route .secure-hero-card,
body.logged-in.secure-flow-route .ai-command-center {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 24px;
  margin-bottom: 18px;
}

body.logged-in.secure-flow-route .secure-hero-card h2,
body.logged-in.secure-flow-route .ai-command-center h2 {
  margin: 6px 0 8px;
  font-family: "Sora", sans-serif;
  font-size: clamp(1.35rem, 2.35vw, 2.05rem);
  line-height: 1.12;
}

body.logged-in.secure-flow-route .settings-list-header h3,
body.logged-in.secure-flow-route .table-card h3,
body.logged-in.secure-flow-route .form-section-title h3 {
  font-size: clamp(1.02rem, 1.5vw, 1.22rem);
  line-height: 1.25;
}

body.logged-in.secure-flow-route .settings-label,
body.logged-in.secure-flow-route .toggle-label,
body.logged-in.secure-flow-route .simple-list-item strong {
  font-size: 0.95rem;
  line-height: 1.25;
}

body.logged-in.secure-flow-route .settings-meta,
body.logged-in.secure-flow-route .toggle-meta,
body.logged-in.secure-flow-route .simple-list-item small {
  font-size: 0.76rem;
}

body.logged-in.secure-flow-route .secure-hero-icon,
body.logged-in.secure-flow-route .ai-orb,
body.logged-in.secure-flow-route .settings-icon,
body.logged-in.secure-flow-route .toggle-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 1px solid #e4e7ec;
  border-radius: 18px;
  background: linear-gradient(145deg, #ffffff, #eef2f7);
  color: #050505;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.9), 0 12px 24px rgba(16,24,40,0.08);
}

body.logged-in.secure-flow-route svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.logged-in.secure-flow-route .secure-hero-icon svg,
body.logged-in.secure-flow-route .ai-orb svg {
  width: 28px;
  height: 28px;
}

body.logged-in.secure-flow-route .settings-icon svg,
body.logged-in.secure-flow-route .toggle-icon svg {
  width: 20px;
  height: 20px;
}

body.logged-in.secure-flow-route .secure-progress-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}

body.logged-in.secure-flow-route .secure-step {
  padding: 16px;
}

body.logged-in.secure-flow-route .secure-step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: #f2f4f7;
  color: #667085;
  font-family: "IBM Plex Mono", monospace;
  font-weight: 900;
}

body.logged-in.secure-flow-route .secure-step strong {
  display: block;
  margin: 12px 0 5px;
  color: #050505;
}

body.logged-in.secure-flow-route .secure-step.active,
body.logged-in.secure-flow-route .secure-step.done {
  border-color: #050505;
}

body.logged-in.secure-flow-route .secure-step.active span,
body.logged-in.secure-flow-route .secure-step.done span {
  background: #050505;
  color: #ffffff;
}

body.logged-in.secure-flow-route .secure-form {
  max-width: none;
  margin-top: 18px;
}

body.logged-in.secure-flow-route .form-section-title {
  margin: 10px 0 14px;
}

body.logged-in.secure-flow-route .form-section-title h3 {
  margin: 4px 0 0;
}

body.logged-in.secure-flow-route .secure-note {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px;
  margin: 14px 0;
  border: 1px solid #e4e7ec;
  border-radius: 16px;
  background: #f8fafc;
}

body.logged-in.secure-flow-route .secure-note svg {
  width: 20px;
  height: 20px;
  color: #050505;
}

body.logged-in.secure-flow-route .secure-note p {
  margin: 0;
  color: #475467;
  font-size: 0.9rem;
}

body.logged-in.secure-flow-route .secure-two-col,
body.logged-in.secure-flow-route .ai-console-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.75fr);
  gap: 18px;
  margin-top: 18px;
}

body.logged-in.secure-flow-route .security-score-panel,
body.logged-in.secure-flow-route .security-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
}

body.logged-in.secure-flow-route .security-action-row {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) minmax(120px, max-content);
  align-items: center;
  min-height: 96px;
}

body.logged-in.secure-flow-route .settings-row,
body.logged-in.secure-flow-route .toggle-row-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) max-content;
  align-items: center;
  gap: 18px;
}

body.logged-in.secure-flow-route .settings-info,
body.logged-in.secure-flow-route .toggle-info {
  display: grid;
  min-width: 0;
  gap: 5px;
  overflow: hidden;
}

body.logged-in.secure-flow-route .settings-label,
body.logged-in.secure-flow-route .toggle-label {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

body.logged-in.secure-flow-route .settings-meta,
body.logged-in.secure-flow-route .toggle-meta {
  display: block;
  max-width: 100%;
  line-height: 1.45;
  white-space: normal;
  overflow-wrap: anywhere;
}

body.logged-in.secure-flow-route .security-action-row .button,
body.logged-in.secure-flow-route .security-action-row .toggle,
body.logged-in.secure-flow-route .security-action-row .status-pill {
  justify-self: end;
}

body.logged-in.secure-flow-route .security-score-panel strong {
  display: block;
  margin: 6px 0;
  color: #050505;
  font-family: "Sora", sans-serif;
  font-size: 1.9rem;
}

body.logged-in.secure-flow-route .score-ring {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  border: 10px solid #050505;
  border-radius: 50%;
  color: #050505;
  font-family: "IBM Plex Mono", monospace;
  font-weight: 900;
}

body.logged-in.secure-flow-route .status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: #f2f4f7;
  color: #344054;
  font-size: 0.78rem;
  font-weight: 900;
  white-space: nowrap;
}

body.logged-in.secure-flow-route .status-pill.warning {
  background: #fff7ed;
  color: #9a3412;
}

body.logged-in.secure-flow-route .status-pill.verified {
  background: #ecfdf3;
  color: #067647;
}

body.logged-in.secure-flow-route .simple-list {
  display: grid;
  gap: 10px;
}

body.logged-in.secure-flow-route .simple-list > p {
  margin: 0;
  color: #667085;
}

body.logged-in.secure-flow-route .simple-list-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  align-items: center;
  gap: 14px;
  padding: 14px;
}

body.logged-in.secure-flow-route .simple-list-item strong {
  display: block;
  color: #050505;
}

body.logged-in.secure-flow-route .simple-list-item small {
  display: block;
  margin-top: 4px;
  color: #667085;
  font-weight: 800;
}

body.logged-in.secure-flow-route .link-row {
  color: inherit;
  text-decoration: none;
}

body.logged-in.secure-flow-route .compact {
  min-height: 40px;
  padding: 0 16px;
}

body.logged-in.secure-flow-route .ai-chat-panel,
body.logged-in.secure-flow-route .ai-insight-panel {
  padding: 18px;
}

body.logged-in.secure-flow-route .ai-chat-log {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 360px;
  max-height: 460px;
  overflow: auto;
  padding: 14px;
  border: 1px solid #e4e7ec;
  border-radius: 18px;
  background: #f8fafc;
}

body.logged-in.secure-flow-route .ai-message {
  max-width: 82%;
  padding: 12px 14px;
  border-radius: 16px;
  background: #ffffff;
  color: #050505;
  box-shadow: 0 8px 18px rgba(16,24,40,0.05);
}

body.logged-in.secure-flow-route .ai-message.user {
  align-self: flex-end;
  background: #050505;
  color: #ffffff;
}

body.logged-in.secure-flow-route .ai-message p {
  margin: 0;
  color: inherit;
  font-size: 0.93rem;
  line-height: 1.55;
}

body.logged-in.secure-flow-route .ai-response-block {
  display: grid;
  gap: 10px;
}

body.logged-in.secure-flow-route .ai-response-block h4 {
  margin: 0;
  color: inherit;
  font-family: "Sora", sans-serif;
  font-size: 1rem;
  line-height: 1.25;
}

body.logged-in.secure-flow-route .ai-response-block p {
  margin: 0;
}

body.logged-in.secure-flow-route .ai-response-block ul,
body.logged-in.secure-flow-route .ai-response-block ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
}

body.logged-in.secure-flow-route .ai-response-block li {
  color: inherit;
  font-size: 0.9rem;
  line-height: 1.5;
}

body.logged-in.secure-flow-route .ai-message.typing span {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 4px;
  border-radius: 50%;
  background: #98a2b3;
  animation: aiTyping 900ms infinite ease-in-out;
}

body.logged-in.secure-flow-route .ai-message.typing span:nth-child(2) {
  animation-delay: 120ms;
}

body.logged-in.secure-flow-route .ai-message.typing span:nth-child(3) {
  animation-delay: 240ms;
}

@keyframes aiTyping {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.45; }
  40% { transform: translateY(-4px); opacity: 1; }
}

body.logged-in.secure-flow-route .ai-quick-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 12px 0;
}

body.logged-in.secure-flow-route .ai-quick-actions button {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid #e4e7ec;
  border-radius: 999px;
  background: #ffffff;
  color: #050505;
  font-weight: 900;
}

body.logged-in.secure-flow-route .ai-input-form {
  display: flex;
  gap: 10px;
}

body.logged-in.secure-flow-route .ai-input-form input {
  flex: 1;
}

body.logged-in.secure-flow-route .ai-watchlist-grid {
  display: grid;
  gap: 12px;
}

body.logged-in.secure-flow-route .ai-watch-item {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) max-content;
  align-items: center;
  gap: 16px;
  min-height: 118px;
  padding: 18px;
}

body.logged-in.secure-flow-route .ai-watch-item > .mono {
  width: auto;
  color: #98a2b3;
  font-size: 0.86rem;
  font-weight: 900;
  overflow-wrap: anywhere;
  text-align: left;
}

body.logged-in.secure-flow-route .ai-watch-item strong {
  display: block;
  color: #050505;
  font-size: 0.98rem;
  line-height: 1.25;
}

body.logged-in.secure-flow-route .ai-watch-item small {
  display: block;
  margin: 4px 0 8px;
  color: #8a93a3;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

body.logged-in.secure-flow-route .ai-watch-item p {
  max-width: 42ch;
  margin: 0;
  color: #667085;
  font-size: 0.9rem;
  line-height: 1.45;
}

body.logged-in.secure-flow-route .ai-watch-item .market-signal {
  justify-self: end;
  white-space: nowrap;
}

body.logged-in.secure-flow-route.admin-route .section-heading {
  max-width: 980px;
}

body.logged-in.admin-route {
  background:
    linear-gradient(135deg, rgba(248, 250, 252, 0.96) 0%, rgba(238, 242, 247, 0.92) 46%, rgba(245, 247, 250, 0.98) 100%),
    repeating-linear-gradient(90deg, rgba(16, 24, 40, 0.035) 0 1px, transparent 1px 72px);
}

body.logged-in.admin-route .dashboard-page-shell {
  width: min(1480px, 100%);
  max-width: none;
  padding: 22px 22px 72px;
}

body.logged-in.admin-route .admin-portal-shell {
  display: block;
  max-width: none;
  width: 100%;
  margin: 0;
}

body.logged-in.admin-route .admin-portal-main {
  width: 100%;
}

body.logged-in.admin-route .app-sidebar,
body.logged-in.admin-route .mobile-bottom-nav-app,
body.logged-in.admin-route .mobile-bottom-nav {
  display: none !important;
}

body.logged-in.admin-route .admin-portal-topbar {
  display: grid;
  grid-template-columns: minmax(240px, auto) minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  min-height: 92px;
  padding: 18px 20px;
  border: 1px solid #d9dee8;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 48px rgba(16, 24, 40, 0.08);
  backdrop-filter: blur(18px);
}

body.logged-in.admin-route .admin-portal-title {
  min-width: 0;
}

body.logged-in.admin-route .admin-portal-title h1 {
  margin: 2px 0 0;
  color: #050505;
  font-family: "Sora", sans-serif;
  font-size: clamp(1.45rem, 3vw, 2.6rem);
  letter-spacing: 0;
  line-height: 1;
}

body.logged-in.secure-flow-route .admin-screen {
  display: grid;
  gap: 20px;
}

body.logged-in.secure-flow-route .admin-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

body.logged-in.secure-flow-route .admin-metric-card,
body.logged-in.secure-flow-route .admin-panel,
body.logged-in.secure-flow-route .admin-action-card {
  border: 1px solid #e4e7ec;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 44px rgba(16, 24, 40, 0.06);
}

body.logged-in.secure-flow-route .admin-metric-card {
  padding: 18px;
}

body.logged-in.secure-flow-route .admin-metric-card span,
body.logged-in.secure-flow-route .admin-panel-head .muted-copy {
  display: block;
  color: #667085;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

body.logged-in.secure-flow-route .admin-metric-card strong {
  display: block;
  margin-top: 8px;
  color: #050505;
  font-size: clamp(1.45rem, 2.5vw, 2.1rem);
  line-height: 1;
}

body.logged-in.secure-flow-route .admin-tabs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 8px;
  border: 1px solid #e4e7ec;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
}

body.logged-in.secure-flow-route .admin-tabs button {
  min-height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #667085;
  font-weight: 900;
  white-space: nowrap;
}

body.logged-in.secure-flow-route .admin-tabs button.active {
  background: #050505;
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(16, 24, 40, 0.12);
}

body.logged-in.secure-flow-route .admin-panel {
  display: none;
  padding: 22px;
}

body.logged-in.secure-flow-route .admin-panel.active {
  display: grid;
  gap: 18px;
}

body.logged-in.secure-flow-route .admin-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

body.logged-in.secure-flow-route .admin-panel-head h3 {
  margin: 0;
  color: #050505;
  font-family: "Sora", sans-serif;
  font-size: 1.2rem;
}

body.logged-in.secure-flow-route .admin-panel-head input {
  width: min(420px, 100%);
  min-height: 44px;
}

body.logged-in.secure-flow-route .admin-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid #eef0f4;
  border-radius: 18px;
}

body.logged-in.secure-flow-route .admin-table-wrap .data-table {
  min-width: 760px;
  margin: 0;
}

body.logged-in.secure-flow-route .admin-action-list {
  display: grid;
  gap: 12px;
}

body.logged-in.secure-flow-route .admin-action-list > p {
  margin: 0;
  color: #667085;
  font-weight: 800;
}

body.logged-in.secure-flow-route .admin-action-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 16px;
  padding: 18px;
}

body.logged-in.secure-flow-route .admin-action-card strong {
  display: block;
  max-width: 100%;
  color: #050505;
  font-size: 1rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

body.logged-in.secure-flow-route .admin-action-card small {
  display: block;
  margin-top: 4px;
  color: #667085;
  font-weight: 800;
  overflow-wrap: anywhere;
}

body.logged-in.secure-flow-route .admin-action-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

body.logged-in.secure-flow-route .admin-wallet-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 18px;
  border: 1px solid #e4e7ec;
  border-radius: 22px;
  background: #ffffff;
}

body.logged-in.secure-flow-route .admin-wallet-form label {
  display: grid;
  gap: 8px;
  color: #050505;
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

body.logged-in.secure-flow-route .admin-wallet-form .span-2,
body.logged-in.secure-flow-route .admin-wallet-form .admin-check {
  grid-column: 1 / -1;
}

body.logged-in.secure-flow-route .admin-wallet-form .admin-check {
  display: flex;
  align-items: center;
  min-height: 44px;
  text-transform: none;
}

body.logged-in.secure-flow-route .wallet-admin-card {
  grid-template-columns: minmax(0, 1fr) auto auto;
}

body.logged-in.secure-flow-route .wallet-admin-card .mono {
  font-size: 0.92rem;
  line-height: 1.4;
}

body.logged-in.secure-flow-route .admin-metric-card small {
  display: block;
  margin-top: 8px;
  color: #667085;
  font-size: 0.76rem;
  font-weight: 800;
}

body.logged-in.secure-flow-route .admin-filter-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

body.logged-in.secure-flow-route .admin-filter-row input,
body.logged-in.secure-flow-route .admin-filter-row select {
  min-height: 40px;
  border: 1px solid #e4e7ec;
  border-radius: 12px;
  padding: 0 12px;
  background: #fff;
  color: #101828;
  font-weight: 800;
}

body.logged-in.secure-flow-route .admin-overview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

body.logged-in.secure-flow-route .admin-mini-stat {
  padding: 16px;
  border: 1px solid #eef0f4;
  border-radius: 14px;
  background: #fff;
}

body.logged-in.secure-flow-route .admin-mini-stat span {
  display: block;
  color: #667085;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

body.logged-in.secure-flow-route .admin-mini-stat strong {
  display: block;
  margin-top: 8px;
  color: #050505;
  font-size: 1.3rem;
}

body.logged-in.secure-flow-route .admin-chart-strip {
  display: flex;
  align-items: end;
  gap: 8px;
  height: 160px;
  padding: 18px;
  border: 1px solid #eef0f4;
  border-radius: 16px;
  background: #fff;
}

body.logged-in.secure-flow-route .admin-chart-strip span {
  flex: 1;
  min-width: 14px;
  border-radius: 8px 8px 2px 2px;
  background: linear-gradient(180deg, #111 0%, #667085 100%);
}

body.logged-in.secure-flow-route .admin-module-layout {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

body.logged-in.secure-flow-route .admin-module-rail {
  display: grid;
  gap: 12px;
}

body.logged-in.secure-flow-route .admin-module-rail article,
body.logged-in.secure-flow-route .admin-revenue-band {
  border: 1px solid #e4e7ec;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.96), rgba(248,250,252,0.92));
  box-shadow: 0 12px 32px rgba(16, 24, 40, 0.05);
  padding: 16px;
}

body.logged-in.secure-flow-route .admin-module-rail span,
body.logged-in.secure-flow-route .admin-revenue-band span {
  display: block;
  color: #667085;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.logged-in.secure-flow-route .admin-module-rail strong,
body.logged-in.secure-flow-route .admin-revenue-band strong {
  display: block;
  margin-top: 6px;
  color: #050505;
  font-size: 1rem;
  line-height: 1.25;
}

body.logged-in.secure-flow-route .admin-module-rail small {
  display: block;
  margin-top: 8px;
  color: #667085;
  font-weight: 700;
  line-height: 1.45;
}

body.logged-in.secure-flow-route .admin-module-main {
  display: grid;
  gap: 14px;
  min-width: 0;
}

body.logged-in.secure-flow-route .admin-overview-grid-large {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.logged-in.secure-flow-route .admin-revenue-band {
  display: grid;
  grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

body.logged-in.secure-flow-route .admin-chart-strip-compact {
  height: 118px;
  padding: 12px;
}

body.logged-in.secure-flow-route .admin-designed-form {
  border-radius: 16px;
  background:
    linear-gradient(180deg, #ffffff, #f8fafc);
}

body.logged-in.secure-flow-route .admin-designed-list {
  padding-top: 2px;
}

body.logged-in.secure-flow-route .admin-maintenance-toggle {
  min-height: 54px;
  padding: 0 14px;
  border: 1px solid #e4e7ec;
  border-radius: 12px;
  background: #f8fafc;
}

body.logged-in.secure-flow-route .admin-module-layout.ip-layout .admin-module-rail article:first-child {
  background: #101828;
  color: #fff;
}

body.logged-in.secure-flow-route .admin-module-layout.ip-layout .admin-module-rail article:first-child span,
body.logged-in.secure-flow-route .admin-module-layout.ip-layout .admin-module-rail article:first-child small {
  color: rgba(255,255,255,0.72);
}

body.logged-in.secure-flow-route .admin-module-layout.ip-layout .admin-module-rail article:first-child strong {
  color: #fff;
}

body.logged-in.secure-flow-route .admin-panel-head > div:first-child h3 {
  margin-top: 2px;
}

.admin-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 90;
  width: min(520px, 94vw);
  height: 100vh;
  overflow-y: auto;
  padding: 28px;
  border-left: 1px solid #e4e7ec;
  background: #fff;
  box-shadow: -24px 0 60px rgba(16, 24, 40, 0.18);
  transform: translateX(105%);
  transition: transform 180ms ease;
}

.admin-drawer.open {
  transform: translateX(0);
}

.admin-drawer h3,
.admin-modal-card h3 {
  margin: 8px 0 16px;
  color: #050505;
  font-family: "Sora", sans-serif;
}

.admin-detail-grid,
.admin-history-grid {
  display: grid;
  grid-template-columns: minmax(120px, auto) minmax(0, 1fr);
  gap: 10px 14px;
  padding: 16px;
  border: 1px solid #eef0f4;
  border-radius: 14px;
  background: #f9fafb;
}

.admin-detail-grid span,
.admin-history-grid span {
  color: #667085;
  font-size: 0.78rem;
  font-weight: 900;
}

.admin-detail-grid strong {
  color: #101828;
  overflow-wrap: anywhere;
}

.admin-doc-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

.admin-json {
  max-height: 300px;
  overflow: auto;
  padding: 14px;
  border: 1px solid #eef0f4;
  border-radius: 12px;
  background: #101828;
  color: #f9fafb;
  font-size: 0.76rem;
}

.admin-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  place-items: center;
  padding: 18px;
  background: rgba(16, 24, 40, 0.42);
}

.admin-modal.open {
  display: grid;
}

.admin-modal-card {
  position: relative;
  display: grid;
  gap: 14px;
  width: min(520px, 100%);
  padding: 24px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 26px 80px rgba(16, 24, 40, 0.24);
}

.admin-modal-card label {
  display: grid;
  gap: 8px;
  color: #101828;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-modal-card textarea,
.admin-modal-card input,
.admin-modal-card select {
  width: 100%;
  border: 1px solid #e4e7ec;
  border-radius: 12px;
  padding: 12px;
  font: inherit;
  font-weight: 700;
}

@media (max-width: 900px) {
  body.logged-in.secure-flow-route .secure-progress-grid,
  body.logged-in.secure-flow-route .secure-two-col,
  body.logged-in.secure-flow-route .ai-console-layout {
    grid-template-columns: 1fr;
  }

  body.logged-in.secure-flow-route .admin-metrics-grid,
  body.logged-in.secure-flow-route .admin-wallet-form {
    grid-template-columns: 1fr 1fr;
  }

  body.logged-in.secure-flow-route .admin-module-layout,
  body.logged-in.secure-flow-route .admin-revenue-band {
    grid-template-columns: 1fr;
  }

  body.logged-in.secure-flow-route .admin-overview-grid,
  body.logged-in.secure-flow-route .admin-overview-grid-large {
    grid-template-columns: 1fr 1fr;
  }

  body.logged-in.secure-flow-route .admin-action-card,
  body.logged-in.secure-flow-route .wallet-admin-card {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }

  body.logged-in.secure-flow-route .admin-action-buttons {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  body.logged-in.secure-flow-route .secure-hero-card,
  body.logged-in.secure-flow-route .ai-command-center,
  body.logged-in.secure-flow-route .security-score-panel,
  body.logged-in.secure-flow-route .security-action-row,
  body.logged-in.secure-flow-route .settings-row,
  body.logged-in.secure-flow-route .toggle-row-card,
  body.logged-in.secure-flow-route .simple-list-item {
    align-items: flex-start;
    grid-template-columns: 1fr;
  }

  body.logged-in.secure-flow-route .secure-hero-card,
  body.logged-in.secure-flow-route .ai-command-center,
  body.logged-in.secure-flow-route .security-score-panel {
    flex-direction: column;
  }

  body.logged-in.secure-flow-route .ai-input-form {
    flex-direction: column;
  }

  body.logged-in.secure-flow-route .ai-message {
    max-width: 100%;
  }

  body.logged-in.secure-flow-route .security-action-row .button,
  body.logged-in.secure-flow-route .security-action-row .toggle,
  body.logged-in.secure-flow-route .security-action-row .status-pill,
  body.logged-in.secure-flow-route .ai-watch-item .market-signal {
    justify-self: start;
  }

  body.logged-in.secure-flow-route .ai-watch-item {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  body.logged-in.secure-flow-route .score-ring {
    width: 82px;
    height: 82px;
  }

  body.logged-in.secure-flow-route .admin-metrics-grid,
  body.logged-in.secure-flow-route .admin-wallet-form {
    grid-template-columns: 1fr;
  }

  body.logged-in.secure-flow-route .admin-overview-grid,
  body.logged-in.secure-flow-route .admin-overview-grid-large {
    grid-template-columns: 1fr;
  }

  body.logged-in.secure-flow-route .admin-filter-row {
    width: 100%;
    justify-content: stretch;
  }

  body.logged-in.secure-flow-route .admin-filter-row input,
  body.logged-in.secure-flow-route .admin-filter-row select {
    width: 100%;
  }

  body.logged-in.secure-flow-route .admin-panel {
    padding: 16px;
    border-radius: 18px;
  }

  body.logged-in.secure-flow-route .admin-panel-head {
    align-items: flex-start;
    flex-direction: column;
  }

  body.logged-in.secure-flow-route .admin-tabs {
    border-radius: 18px;
  }

  body.logged-in.secure-flow-route .admin-tabs button {
    min-width: max-content;
  }
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   DARK MODE OVERRIDES â€” settings-route & secure-flow-route
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

/* â”€â”€ Settings Route â”€â”€ */
:root[data-theme="dark"] body.logged-in.settings-route .app-screen,
:root[data-theme="dark"] body.logged-in.settings-route .settings-list,
:root[data-theme="dark"] body.logged-in.settings-route .profile-hero-card,
:root[data-theme="dark"] body.logged-in.settings-route .kyc-status-card,
:root[data-theme="dark"] body.logged-in.settings-route .toggle-row-card,
:root[data-theme="dark"] body.logged-in.settings-route .settings-row {
  color: #E0E0E0;
}

:root[data-theme="dark"] body.logged-in.settings-route .section-heading h1,
:root[data-theme="dark"] body.logged-in.settings-route .section-heading p,
:root[data-theme="dark"] body.logged-in.settings-route .settings-list-header h3,
:root[data-theme="dark"] body.logged-in.settings-route .profile-name,
:root[data-theme="dark"] body.logged-in.settings-route .settings-label,
:root[data-theme="dark"] body.logged-in.settings-route .toggle-label,
:root[data-theme="dark"] body.logged-in.settings-route .kyc-level {
  color: #FFFFFF !important;
}

:root[data-theme="dark"] body.logged-in.settings-route .profile-email,
:root[data-theme="dark"] body.logged-in.settings-route .settings-meta,
:root[data-theme="dark"] body.logged-in.settings-route .toggle-meta,
:root[data-theme="dark"] body.logged-in.settings-route .kyc-detail {
  color: #CCCCCC !important;
}

:root[data-theme="dark"] body.logged-in.settings-route .settings-icon,
:root[data-theme="dark"] body.logged-in.settings-route .toggle-icon,
:root[data-theme="dark"] body.logged-in.settings-route .kyc-icon,
:root[data-theme="dark"] body.logged-in.settings-route .edit-icon {
  background: linear-gradient(145deg, #1E1E1E, #2D2D2D);
  border: 1px solid #2D2D2D;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 10px 22px rgba(0,0,0,0.2);
  color: #E0E0E0;
}

:root[data-theme="dark"] body.logged-in.settings-route .toggle {
  border-color: #2D2D2D;
  background: #2D2D2D;
  color: #CCCCCC;
}

:root[data-theme="dark"] body.logged-in.settings-route .toggle.active {
  border-color: #FFFFFF;
  background: #FFFFFF;
  color: #111;
}

:root[data-theme="dark"] body.logged-in.settings-route .toggle.setup {
  border-color: #2D2D2D;
  background: #1E1E1E;
  color: #E0E0E0;
}

:root[data-theme="dark"] body.logged-in.settings-route .kyc-status-card.verified {
  border-color: #2D2D2D;
  background: #1E1E1E;
}

:root[data-theme="dark"] body.logged-in.settings-route .kyc-status-card.verified .kyc-icon {
  color: #4CAF50;
}

:root[data-theme="dark"] body.logged-in.settings-route .kyc-action,
:root[data-theme="dark"] body.logged-in.settings-route .settings-arrow {
  color: #E0E0E0;
}

:root[data-theme="dark"] body.logged-in.settings-route .sign-out-btn {
  background: #450a0a;
  color: #FF6200;
}

:root[data-theme="dark"] body.logged-in.settings-route .profile-badge.warning {
  background: #422006;
  color: #FF6200;
}

:root[data-theme="dark"] body.logged-in.settings-route .profile-badge.verified {
  background: #052e16;
  color: #4CAF50;
}

:root[data-theme="dark"] body.logged-in.settings-route .app-screen,
:root[data-theme="dark"] body.logged-in.settings-route .settings-list,
:root[data-theme="dark"] body.logged-in.settings-route .profile-hero-card,
:root[data-theme="dark"] body.logged-in.settings-route .kyc-status-card,
:root[data-theme="dark"] body.logged-in.settings-route .toggle-row-card,
:root[data-theme="dark"] body.logged-in.settings-route .settings-row {
  color: #E0E0E0 !important;
}

:root[data-theme="dark"] body.logged-in.settings-route .section-heading h1,
:root[data-theme="dark"] body.logged-in.settings-route .section-heading p,
:root[data-theme="dark"] body.logged-in.settings-route .settings-list-header h3,
:root[data-theme="dark"] body.logged-in.settings-route .profile-name,
:root[data-theme="dark"] body.logged-in.settings-route .settings-label,
:root[data-theme="dark"] body.logged-in.settings-route .toggle-label,
:root[data-theme="dark"] body.logged-in.settings-route .kyc-level {
  color: #FFFFFF !important;
}

:root[data-theme="dark"] body.logged-in.settings-route .profile-email,
:root[data-theme="dark"] body.logged-in.settings-route .settings-meta,
:root[data-theme="dark"] body.logged-in.settings-route .toggle-meta,
:root[data-theme="dark"] body.logged-in.settings-route .kyc-detail {
  color: #AAAAAA !important;
}

:root[data-theme="dark"] body.logged-in.settings-route .settings-icon,
:root[data-theme="dark"] body.logged-in.settings-route .toggle-icon,
:root[data-theme="dark"] body.logged-in.settings-route .kyc-icon,
:root[data-theme="dark"] body.logged-in.settings-route .edit-icon {
  background: linear-gradient(145deg, #1E1E1E, #2D2D2D) !important;
  border: 1px solid #2D2D2D !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 10px 22px rgba(0,0,0,0.2) !important;
  color: #E0E0E0 !important;
}

:root[data-theme="dark"] body.logged-in.settings-route .settings-icon svg,
:root[data-theme="dark"] body.logged-in.settings-route .toggle-icon svg {
  color: #FFFFFF !important;
}

:root[data-theme="dark"] body.logged-in.settings-route .toggle {
  min-width: 74px;
  min-height: 38px;
  border: 1px solid #2D2D2D !important;
  border-radius: 999px;
  background: #2D2D2D !important;
  color: #CCCCCC !important;
  font-size: 0.78rem;
  font-weight: 900;
  text-decoration: none;
}

:root[data-theme="dark"] body.logged-in.settings-route .toggle.active {
  border-color: #FFFFFF !important;
  background: #FFFFFF !important;
  color: #111 !important;
}

:root[data-theme="dark"] body.logged-in.settings-route .toggle.setup {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-color: #2D2D2D !important;
  background: #1E1E1E !important;
  color: #E0E0E0 !important;
}

:root[data-theme="dark"] .settings-edit-card {
  background: #1E1E1E !important;
  border-color: #2D2D2D;
  color: #E0E0E0;
}

:root[data-theme="dark"] .settings-edit-header,
:root[data-theme="dark"] .settings-edit-header h3 {
  color: #FFFFFF;
}

:root[data-theme="dark"] .settings-edit-card label {
  color: #CCCCCC;
}

:root[data-theme="dark"] .settings-edit-card input,
:root[data-theme="dark"] .settings-edit-card select {
  background: #121212;
  border-color: #2D2D2D;
  color: #FFFFFF;
}

:root[data-theme="dark"] .settings-edit-card input:focus,
:root[data-theme="dark"] .settings-edit-card select:focus {
  border-color: #FFFFFF;
}

:root[data-theme="dark"] .settings-edit-actions .button-secondary {
  background: #2D2D2D;
  color: #CCCCCC;
}

:root[data-theme="dark"] .settings-edit-actions .button-primary {
  background: #FFFFFF;
  color: #111;
}

:root[data-theme="dark"] .modal-close-light {
  background: #2D2D2D;
  color: #CCCCCC;
}

:root[data-theme="dark"] .modal-close-light:hover {
  background: #E0E0E0;
  color: #111;
}

/* â”€â”€ Secure Flow Route â”€â”€ */
:root[data-theme="dark"] body.logged-in.secure-flow-route .app-screen,
:root[data-theme="dark"] body.logged-in.secure-flow-route .vault-form,
:root[data-theme="dark"] body.logged-in.secure-flow-route .table-card,
:root[data-theme="dark"] body.logged-in.secure-flow-route .settings-list,
:root[data-theme="dark"] body.logged-in.secure-flow-route .settings-row,
:root[data-theme="dark"] body.logged-in.secure-flow-route .toggle-row-card {
  color: #E0E0E0;
}

:root[data-theme="dark"] body.logged-in.secure-flow-route .section-heading h1,
:root[data-theme="dark"] body.logged-in.secure-flow-route .section-heading p,
:root[data-theme="dark"] body.logged-in.secure-flow-route h2,
:root[data-theme="dark"] body.logged-in.secure-flow-route h3,
:root[data-theme="dark"] body.logged-in.secure-flow-route .settings-label,
:root[data-theme="dark"] body.logged-in.secure-flow-route .toggle-label,
:root[data-theme="dark"] body.logged-in.secure-flow-route .data-table td {
  color: #FFFFFF !important;
}

:root[data-theme="dark"] body.logged-in.secure-flow-route .settings-meta,
:root[data-theme="dark"] body.logged-in.secure-flow-route .toggle-meta,
:root[data-theme="dark"] body.logged-in.secure-flow-route .muted-copy,
:root[data-theme="dark"] body.logged-in.secure-flow-route .secure-hero-card p,
:root[data-theme="dark"] body.logged-in.secure-flow-route .secure-step small,
:root[data-theme="dark"] body.logged-in.secure-flow-route .form-status {
  color: #CCCCCC !important;
}

:root[data-theme="dark"] body.logged-in.secure-flow-route .secure-hero-card,
:root[data-theme="dark"] body.logged-in.secure-flow-route .security-score-panel,
:root[data-theme="dark"] body.logged-in.secure-flow-route .secure-step,
:root[data-theme="dark"] body.logged-in.secure-flow-route .ai-command-center,
:root[data-theme="dark"] body.logged-in.secure-flow-route .ai-chat-panel,
:root[data-theme="dark"] body.logged-in.secure-flow-route .ai-insight-panel,
:root[data-theme="dark"] body.logged-in.secure-flow-route .simple-list-item,
:root[data-theme="dark"] body.logged-in.secure-flow-route .security-action-row {
  border-color: #2D2D2D;
  background: #1E1E1E;
  box-shadow: 0 18px 48px rgba(0,0,0,0.3);
}

:root[data-theme="dark"] body.logged-in.secure-flow-route .secure-hero-icon,
:root[data-theme="dark"] body.logged-in.secure-flow-route .ai-orb,
:root[data-theme="dark"] body.logged-in.secure-flow-route .settings-icon,
:root[data-theme="dark"] body.logged-in.secure-flow-route .toggle-icon {
  border-color: #2D2D2D;
  background: linear-gradient(145deg, #1E1E1E, #2D2D2D);
  color: #E0E0E0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 12px 24px rgba(0,0,0,0.2);
}

:root[data-theme="dark"] body.logged-in.secure-flow-route .settings-icon svg,
:root[data-theme="dark"] body.logged-in.secure-flow-route .toggle-icon svg {
  color: #CCCCCC;
}

:root[data-theme="dark"] body.logged-in.secure-flow-route .secure-step span {
  background: #2D2D2D;
  color: #CCCCCC;
}

:root[data-theme="dark"] body.logged-in.secure-flow-route .secure-step strong {
  color: #FFFFFF;
}

:root[data-theme="dark"] body.logged-in.secure-flow-route .secure-step.active,
:root[data-theme="dark"] body.logged-in.secure-flow-route .secure-step.done {
  border-color: #FFFFFF;
}

:root[data-theme="dark"] body.logged-in.secure-flow-route .secure-step.active span,
:root[data-theme="dark"] body.logged-in.secure-flow-route .secure-step.done span {
  background: #FFFFFF;
  color: #111;
}

:root[data-theme="dark"] body.logged-in.secure-flow-route .security-score-panel strong {
  color: #FFFFFF;
}

:root[data-theme="dark"] body.logged-in.secure-flow-route .secure-note {
  border-color: #2D2D2D;
  background: #121212;
}

:root[data-theme="dark"] body.logged-in.secure-flow-route .secure-note svg {
  color: #E0E0E0;
}

:root[data-theme="dark"] body.logged-in.secure-flow-route .secure-note p {
  color: #CCCCCC;
}

:root[data-theme="dark"] body.logged-in.secure-flow-route .security-action-row .button,
:root[data-theme="dark"] body.logged-in.secure-flow-route .security-action-row .toggle {
  background: #2D2D2D;
  border-color: #2D2D2D;
  color: #FFFFFF;
}

:root[data-theme="dark"] body.logged-in.secure-flow-route .security-action-row .button:hover,
:root[data-theme="dark"] body.logged-in.secure-flow-route .security-action-row .toggle:hover {
  background: #FFFFFF;
  color: #111;
}

/* â”€â”€ Settings Card Borders Dark â”€â”€ */
:root[data-theme="dark"] body.logged-in.settings-route .settings-list-header {
  border-color: #2D2D2D;
}

:root[data-theme="dark"] body.logged-in.settings-route .settings-row {
  border-color: #2D2D2D;
}

:root[data-theme="dark"] body.logged-in.secure-flow-route .settings-list-header {
  border-color: #2D2D2D;
}

:root[data-theme="dark"] body.logged-in.secure-flow-route .data-table td {
  border-color: #121212;
}

:root[data-theme="dark"] body.logged-in.secure-flow-route .data-table th {
  background: #121212;
  color: #CCCCCC;
  border-color: #2D2D2D;
}

/* â”€â”€ Whitelist Section Dark â”€â”€ */
:root[data-theme="dark"] body.logged-in.secure-flow-route .whitelist-section h3 {
  color: #FFFFFF;
}

:root[data-theme="dark"] body.logged-in.secure-flow-route .whitelist-section span {
  color: #CCCCCC;
}

:root[data-theme="dark"] body.logged-in.secure-flow-route .simple-list-item {
  border-color: #2D2D2D;
  background: #121212;
}

:root[data-theme="dark"] body.logged-in.secure-flow-route .simple-list-item strong {
  color: #FFFFFF;
}

:root[data-theme="dark"] body.logged-in.secure-flow-route .simple-list-item small {
  color: #CCCCCC;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg-primary: #f4f8ff;
  --bg-secondary: #e9f1fb;
  --bg-card: #ffffff;
  --border: #c9d8ea;
  --text-primary: #050505;
  --text-secondary: #52627a;
  --glass: rgba(255, 255, 255, 0.78);
  --shadow: 0 24px 70px rgba(29, 78, 216, 0.14);
}

/* Stable phone code dropdown for standalone signup page */
.phone-shell {
  position: relative;
  overflow: visible;
}

.phone-code-select-native {
  position: absolute;
  width: 1px !important;
  min-width: 1px !important;
  height: 1px !important;
  min-height: 1px !important;
  opacity: 0;
  pointer-events: none;
}

.phone-code-picker {
  position: relative;
  flex: 0 0 100px;
  min-width: 100px;
  z-index: 20;
}

.phone-code-button {
  width: 100%;
  height: 44px;
  padding: 0 28px 0 0;
  border: 0;
  background: transparent;
  color: #050505;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.98rem;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.phone-code-button::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 10px;
  width: 8px;
  height: 8px;
  border-right: 2px solid #7f8a9b;
  border-bottom: 2px solid #7f8a9b;
  transform: translateY(-65%) rotate(45deg);
  transition: transform 160ms ease;
}

.phone-code-picker.is-open .phone-code-button::after {
  transform: translateY(-35%) rotate(225deg);
}

.phone-code-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: -42px;
  width: min(300px, calc(100vw - 48px));
  max-height: 260px;
  display: none;
  overflow-y: auto;
  padding: 8px;
  border: 1px solid #dfe3ea;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
  z-index: 9999;
}

.phone-code-picker.is-open .phone-code-menu {
  display: grid;
  gap: 4px;
}

.phone-code-option {
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #111827;
  font: 800 0.86rem/1.25 "Plus Jakarta Sans", sans-serif;
  text-align: left;
  cursor: pointer;
}

.phone-code-option:hover,
.phone-code-option:focus-visible,
.phone-code-option[aria-selected="true"] {
  background: #f1f5f9;
  outline: none;
}

:root[data-theme="dark"] .phone-code-button {
  color: var(--text-primary);
}

:root[data-theme="dark"] .phone-code-menu {
  border-color: var(--border);
  background: #11151d;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}

:root[data-theme="dark"] .phone-code-option {
  color: var(--text-primary);
}

:root[data-theme="dark"] .phone-code-option:hover,
:root[data-theme="dark"] .phone-code-option:focus-visible,
:root[data-theme="dark"] .phone-code-option[aria-selected="true"] {
  background: rgba(255, 255, 255, 0.08);
}

@media (max-width: 520px) {
  .phone-code-picker {
    flex-basis: 82px;
    min-width: 82px;
  }

  .phone-code-menu {
    left: -36px;
    width: min(280px, calc(100vw - 32px));
  }
}


/* Signup phone verification states */
.phone-shell.is-invalid {
  border-color: #ef4444 !important;
  background: #fff7f7 !important;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.10) !important;
}

.phone-shell.is-valid {
  border-color: #10b981 !important;
  background: #f5fffb !important;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.10) !important;
}

.phone-shell.is-checking {
  border-color: #38bdf8 !important;
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.10) !important;
}

.phone-field-status[data-status="success"],
.phone-field-status[data-status="info"]:not(:empty) {
  opacity: 1;
}

.phone-field-status[data-status="success"] {
  color: #087443;
}

.phone-field-status[data-status="error"] {
  color: #b42318;
}

:root[data-theme="dark"] .phone-shell.is-invalid {
  background: rgba(127, 29, 29, 0.24) !important;
  border-color: #ef4444 !important;
}

:root[data-theme="dark"] .phone-shell.is-valid {
  background: rgba(6, 78, 59, 0.24) !important;
  border-color: #10b981 !important;
}
