@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=IBM+Plex+Sans:wght@400;500;600;700&family=Manrope:wght@500;600;700;800&display=swap");

:root {
  color-scheme: light;
  --royal: #2563eb;
  --navy: #071a3d;
  --emerald: #10b981;
  --sky: #38bdf8;
  --purple: #7c3aed;
  --night: #020617;
  --bg: #f8fafc;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-strong: #ffffff;
  --line: rgba(7, 26, 61, 0.1);
  --text: #071a3d;
  --muted: #5c6b82;
  --inverse: #f8fafc;
  --shadow: 0 24px 80px rgba(7, 26, 61, 0.12);
  --radius: 8px;
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #020617;
  --surface: rgba(7, 26, 61, 0.62);
  --surface-strong: #071a3d;
  --line: rgba(226, 232, 240, 0.14);
  --text: #f8fafc;
  --muted: #a7b4ca;
  --inverse: #020617;
  --shadow: 0 26px 100px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

[x-cloak] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", "IBM Plex Sans", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: 0;
  overflow-x: hidden;
}

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 24px;
  color: white;
  background:
    linear-gradient(135deg, rgba(2, 6, 23, 0.98), rgba(7, 26, 61, 0.96) 48%, rgba(15, 23, 42, 0.98)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0, rgba(255, 255, 255, 0.08) 1px, transparent 1px, transparent 72px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.055) 0, rgba(255, 255, 255, 0.055) 1px, transparent 1px, transparent 72px);
  opacity: 1;
  visibility: visible;
  transition: opacity 520ms ease, visibility 520ms ease;
}

.page-loader::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 42%, rgba(56, 189, 248, 0.18), transparent 34%),
    linear-gradient(115deg, rgba(37, 99, 235, 0.2), transparent 42%),
    linear-gradient(245deg, rgba(16, 185, 129, 0.13), transparent 34%);
  pointer-events: none;
}

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

.loader-panel {
  position: relative;
  width: min(100%, 420px);
  display: grid;
  justify-items: center;
  gap: 22px;
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(2, 6, 23, 0.46);
  box-shadow: 0 34px 120px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(26px);
}

.loader-icon-wrap {
  position: relative;
  width: 108px;
  height: 108px;
  display: grid;
  place-items: center;
}

.loader-icon-wrap img {
  width: 68px;
  height: 68px;
  border-radius: 20px;
  box-shadow: 0 20px 44px rgba(37, 99, 235, 0.32);
}

.loader-orbit,
.loader-ring {
  position: absolute;
  inset: 0;
  border-radius: 999px;
}

.loader-orbit {
  background: conic-gradient(from 0deg, transparent 0deg, rgba(56, 189, 248, 0.12) 80deg, #38bdf8 145deg, #10b981 220deg, transparent 300deg);
  animation: loaderSpin 1.35s linear infinite;
}

.loader-ring {
  inset: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 32px rgba(56, 189, 248, 0.14);
}

.loader-copy {
  display: grid;
  justify-items: center;
  gap: 10px;
  text-align: center;
}

.loader-copy img {
  height: 46px;
  width: auto;
}

.loader-copy span {
  color: rgba(248, 250, 252, 0.7);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
}

.loader-progress {
  width: min(100%, 250px);
  height: 4px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.13);
}

.loader-progress span {
  display: block;
  width: 42%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--royal), var(--sky), var(--emerald));
  animation: loaderProgress 1.25s ease-in-out infinite;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  background:
    linear-gradient(115deg, rgba(37, 99, 235, 0.12), transparent 26%),
    linear-gradient(245deg, rgba(16, 185, 129, 0.1), transparent 24%),
    repeating-linear-gradient(90deg, rgba(7, 26, 61, 0.045) 0, rgba(7, 26, 61, 0.045) 1px, transparent 1px, transparent 92px),
    repeating-linear-gradient(0deg, rgba(7, 26, 61, 0.035) 0, rgba(7, 26, 61, 0.035) 1px, transparent 1px, transparent 92px);
}

[data-theme="dark"] body::before {
  background:
    linear-gradient(115deg, rgba(37, 99, 235, 0.25), transparent 28%),
    linear-gradient(245deg, rgba(124, 58, 237, 0.16), transparent 28%),
    repeating-linear-gradient(90deg, rgba(226, 232, 240, 0.055) 0, rgba(226, 232, 240, 0.055) 1px, transparent 1px, transparent 88px),
    repeating-linear-gradient(0deg, rgba(226, 232, 240, 0.045) 0, rgba(226, 232, 240, 0.045) 1px, transparent 1px, transparent 88px);
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.site-shell {
  min-height: 100svh;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(22px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-logo {
  height: 48px;
  width: auto;
}

.logo-dark-mode {
  display: none;
}

[data-theme="dark"] .logo-light-mode {
  display: none;
}

[data-theme="dark"] .logo-dark-mode {
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.54);
  border-radius: 999px;
}

[data-theme="dark"] .nav-links {
  background: rgba(7, 26, 61, 0.52);
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.nav-link:hover {
  color: var(--text);
  background: rgba(37, 99, 235, 0.1);
  transform: translateY(-1px);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logout-form,
.mobile-logout-form {
  margin: 0;
}

.nav-logout-form {
  display: inline-flex;
}

.logout-link {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.icon-btn {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.icon-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(37, 99, 235, 0.38);
  box-shadow: 0 14px 36px rgba(37, 99, 235, 0.16);
}

.btn {
  position: relative;
  min-height: 46px;
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0 20px;
  font-weight: 800;
  color: var(--text);
  background: var(--surface);
  box-shadow: none;
  cursor: pointer;
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

.btn::after {
  content: "";
  position: absolute;
  inset: auto auto 50% 50%;
  width: 0;
  height: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  transform: translate(-50%, 50%);
  transition: width 260ms ease, height 260ms ease;
}

.btn:active::after {
  width: 240px;
  height: 240px;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 46px rgba(37, 99, 235, 0.16);
}

.btn-primary {
  color: white;
  background: linear-gradient(135deg, var(--royal), var(--sky));
}

.btn-dark {
  color: white;
  background: linear-gradient(135deg, var(--night), var(--navy));
  border-color: rgba(255, 255, 255, 0.12);
}

.btn-ghost {
  border-color: var(--line);
  color: var(--text);
  background: color-mix(in srgb, var(--surface) 86%, transparent);
}

.mobile-toggle {
  display: none;
}

button[data-theme-toggle]::before,
.mobile-toggle::before {
  content: "";
  display: block;
  color: currentColor;
}

button[data-theme-toggle]::before {
  width: 18px;
  height: 18px;
  border: 2px solid currentColor;
  border-radius: 999px;
  box-shadow: 7px -5px 0 -4px currentColor;
}

.mobile-toggle::before {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor;
}

button[data-theme-toggle] > i,
button[data-theme-toggle] > svg,
.mobile-toggle > i,
.mobile-toggle > svg {
  display: none;
}

.mobile-panel {
  display: none;
  padding: 0 0 16px;
}

.hero {
  position: relative;
  min-height: calc(100svh - 76px);
  padding: 72px 0 32px;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  color: white;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  background-image: linear-gradient(90deg, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0.48), rgba(2, 6, 23, 0.86)), var(--hero-image);
  background-size: cover;
  background-position: center;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.18), transparent 35%),
    linear-gradient(315deg, rgba(16, 185, 129, 0.16), transparent 33%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0, rgba(255, 255, 255, 0.08) 1px, transparent 1px, transparent 76px);
  animation: gridDrift 14s linear infinite;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr minmax(380px, 520px);
  align-items: end;
  gap: 56px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(56, 189, 248, 0.32);
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.12);
  color: #bfdbfe;
  font-size: 13px;
  font-weight: 800;
}

.hero h1,
.page-hero h1 {
  margin: 24px 0 0;
  max-width: 780px;
  font-family: "Manrope", "Inter", system-ui, sans-serif;
  font-size: 72px;
  line-height: 0.95;
  letter-spacing: 0;
}

.hero .lead,
.page-hero .lead {
  max-width: 760px;
  margin: 24px 0 0;
  color: rgba(248, 250, 252, 0.8);
  font-size: 20px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 34px;
}

.proof-item {
  min-width: 126px;
}

.proof-value {
  display: block;
  font-size: 22px;
  font-weight: 900;
}

.proof-label {
  display: block;
  color: rgba(248, 250, 252, 0.66);
  font-size: 13px;
  font-weight: 700;
}

.hero-stack {
  position: relative;
  min-height: 560px;
}

.dashboard-preview {
  position: absolute;
  inset: auto 0 0 auto;
  width: min(100%, 520px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(2, 6, 23, 0.66);
  box-shadow: 0 34px 120px rgba(2, 6, 23, 0.58);
  backdrop-filter: blur(24px);
  overflow: hidden;
  animation: floatLift 7s ease-in-out infinite;
}

.preview-topbar {
  height: 44px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.28);
}

.preview-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 14px;
  padding: 18px;
}

.chart-panel,
.mini-panel,
.glass-panel {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.075);
  backdrop-filter: blur(20px);
}

.chart-panel {
  min-height: 270px;
  padding: 18px;
}

.chart-bars {
  height: 168px;
  display: grid;
  grid-template-columns: repeat(18, 1fr);
  gap: 5px;
  align-items: end;
  margin-top: 28px;
}

.chart-bars span {
  min-height: 24px;
  border-radius: 99px 99px 3px 3px;
  background: linear-gradient(180deg, #38bdf8, #2563eb);
  animation: barPulse 3.2s ease-in-out infinite;
}

.chart-bars span:nth-child(3n) {
  background: linear-gradient(180deg, #10b981, #047857);
  animation-delay: 220ms;
}

.chart-bars span:nth-child(4n) {
  background: linear-gradient(180deg, #a78bfa, #7c3aed);
  animation-delay: 440ms;
}

.mini-stack {
  display: grid;
  gap: 14px;
}

.mini-panel {
  padding: 16px;
  min-height: 128px;
}

.token-row,
.asset-row,
.transaction-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.token-row:last-child,
.asset-row:last-child,
.transaction-row:last-child {
  border-bottom: 0;
}

.ticker-shell {
  position: relative;
  z-index: 2;
  margin-top: 40px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(2, 6, 23, 0.58);
  overflow: hidden;
  backdrop-filter: blur(18px);
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: tickerMove 28s linear infinite;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  white-space: nowrap;
  color: white;
}

.ticker-change {
  color: #86efac;
  font-weight: 900;
}

.section {
  padding: 112px 0;
}

.section-tight {
  padding: 72px 0;
}

.section-dark {
  color: white;
  background: linear-gradient(135deg, #020617, #071a3d 48%, #111827);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 32px;
  margin-bottom: 40px;
}

.section-kicker {
  color: var(--royal);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.section-title {
  margin: 10px 0 0;
  max-width: 780px;
  font-family: "Manrope", "Inter", system-ui, sans-serif;
  font-size: 48px;
  line-height: 1.04;
  letter-spacing: 0;
}

.section-copy {
  max-width: 560px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.section-dark .section-copy,
.section-dark .muted {
  color: rgba(248, 250, 252, 0.68);
}

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

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.feature-card,
.instrument-card,
.news-card,
.pricing-card,
.trader-card,
.testimonial-card,
.academy-card,
.stat-card,
.admin-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 20px 64px rgba(7, 26, 61, 0.07);
  overflow: hidden;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.feature-card:hover,
.instrument-card:hover,
.news-card:hover,
.pricing-card:hover,
.trader-card:hover,
.testimonial-card:hover,
.academy-card:hover,
.stat-card:hover {
  transform: translateY(-6px);
  border-color: rgba(37, 99, 235, 0.32);
  box-shadow: var(--shadow);
}

.feature-image,
.instrument-image,
.news-image {
  height: 190px;
  width: 100%;
  object-fit: cover;
}

.feature-body,
.instrument-body,
.news-body,
.pricing-body,
.trader-body,
.testimonial-body,
.academy-body,
.stat-body {
  padding: 22px;
}

.icon-chip {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  color: white;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--royal), var(--sky));
  box-shadow: 0 16px 34px rgba(37, 99, 235, 0.22);
}

.instrument-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.muted {
  color: var(--muted);
}

.positive {
  color: var(--emerald);
}

.negative {
  color: #f43f5e;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 12px;
}

.stat-card {
  padding: 22px;
  text-align: center;
}

.stat-value {
  display: block;
  font-size: 34px;
  line-height: 1;
  font-weight: 900;
  color: var(--royal);
}

.stat-label {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.platform-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 48px;
  align-items: center;
}

.device-wall {
  position: relative;
  min-height: 500px;
}

.device {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(2, 6, 23, 0.76);
  box-shadow: 0 34px 110px rgba(0, 0, 0, 0.38);
  overflow: hidden;
}

.device-laptop {
  width: 86%;
  left: 0;
  top: 44px;
}

.device-tablet {
  width: 42%;
  right: 4%;
  top: 0;
}

.device-phone {
  width: 24%;
  right: 12%;
  bottom: 18px;
}

.device img,
.device-screen {
  width: 100%;
  min-height: 180px;
  object-fit: cover;
}

.device-screen {
  padding: 18px;
  background: linear-gradient(135deg, rgba(7, 26, 61, 0.98), rgba(37, 99, 235, 0.32));
}

.platform-list {
  display: grid;
  gap: 14px;
}

.platform-item {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
}

.tradingview-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
}

.tv-card {
  min-height: 440px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-strong);
  overflow: hidden;
}

[data-theme="dark"] .tv-card {
  background: rgba(7, 26, 61, 0.8);
}

.copy-stage {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: center;
}

.trader-list {
  display: grid;
  gap: 16px;
}

.trader-card {
  display: grid;
  grid-template-columns: 86px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 16px;
}

.avatar {
  width: 72px;
  height: 72px;
  border-radius: 999px;
  object-fit: cover;
}

.risk-meter {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.22);
  overflow: hidden;
}

.risk-meter span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--emerald), #f59e0b, #f43f5e);
}

.timeline {
  position: relative;
  display: grid;
  gap: 18px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.cta-band {
  position: relative;
  padding: 70px;
  border-radius: var(--radius);
  color: white;
  background: linear-gradient(135deg, #071a3d, #2563eb 48%, #7c3aed);
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.12) 0, rgba(255, 255, 255, 0.12) 1px, transparent 1px, transparent 68px),
    linear-gradient(135deg, transparent, rgba(56, 189, 248, 0.2));
  opacity: 0.7;
}

.cta-band > * {
  position: relative;
}

.page-hero {
  position: relative;
  color: white;
  min-height: 620px;
  display: flex;
  align-items: end;
  padding: 120px 0 78px;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: linear-gradient(90deg, rgba(2, 6, 23, 0.88), rgba(2, 6, 23, 0.46), rgba(2, 6, 23, 0.88)), var(--page-image);
  background-position: center;
  background-size: cover;
}

.content-blocks {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: start;
}

.sticky-summary {
  position: sticky;
  top: 112px;
}

.section-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 24px;
  margin-bottom: 18px;
}

.auth-layout {
  min-height: calc(100svh - 76px);
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 0.8fr);
}

.auth-visual {
  position: relative;
  color: white;
  padding: 64px;
  display: flex;
  align-items: end;
  background-image: linear-gradient(180deg, rgba(2, 6, 23, 0.28), rgba(2, 6, 23, 0.92)), var(--auth-image);
  background-size: cover;
  background-position: center;
}

.auth-card {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 28px;
}

.auth-panel,
.form-panel {
  width: min(100%, 520px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 28px;
  box-shadow: var(--shadow);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.form-row {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.form-row label {
  font-size: 13px;
  font-weight: 900;
  color: var(--text);
}

.form-control {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface-strong) 86%, transparent);
  color: var(--text);
  padding: 10px 12px;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.auth-panel input,
.auth-panel select,
.auth-panel textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface-strong) 86%, transparent);
  color: var(--text);
  padding: 10px 12px;
}

.form-control:focus {
  border-color: rgba(37, 99, 235, 0.64);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.dashboard-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: calc(100svh - 76px);
  min-width: 0;
}

.sidebar {
  border-right: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  padding: 24px 16px;
}

.sidebar-nav {
  display: grid;
  gap: 6px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: var(--radius);
  color: var(--muted);
  font-weight: 800;
}

.sidebar-link:hover,
.sidebar-link.active {
  color: var(--text);
  background: rgba(37, 99, 235, 0.1);
}

.workspace {
  padding: 28px;
  min-width: 0;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 22px;
  align-items: start;
}

.widget {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 22px;
  box-shadow: 0 18px 54px rgba(7, 26, 61, 0.06);
}

.wallet-card {
  position: relative;
  min-height: 230px;
  border-radius: var(--radius);
  padding: 26px;
  color: white;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(2, 6, 23, 0.92), rgba(37, 99, 235, 0.86) 48%, rgba(124, 58, 237, 0.78)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.12) 0, rgba(255, 255, 255, 0.12) 1px, transparent 1px, transparent 64px);
  box-shadow: 0 34px 90px rgba(37, 99, 235, 0.22);
}

.wallet-card::after {
  content: "";
  position: absolute;
  inset: -40% auto -40% -30%;
  width: 45%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.24), transparent);
  transform: rotate(18deg);
  animation: shine 6s ease-in-out infinite;
}

.card-chip {
  width: 54px;
  height: 42px;
  border-radius: 8px;
  background: linear-gradient(135deg, #f8fafc, #94a3b8);
  opacity: 0.9;
}

.workspace-tabs {
  display: flex;
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  width: max-content;
}

.tab {
  flex: 0 0 auto;
  border: 0;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-weight: 900;
  cursor: pointer;
}

.tab.active {
  color: white;
  background: var(--royal);
}

.upload-drop {
  border: 1px dashed rgba(37, 99, 235, 0.45);
  border-radius: var(--radius);
  padding: 26px;
  background: rgba(37, 99, 235, 0.08);
  text-align: center;
}

.payment-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 1.1fr);
  gap: 22px;
  align-items: stretch;
}

.payment-card,
.review-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.payment-card {
  display: grid;
  place-items: center;
  gap: 22px;
  padding: 28px;
  text-align: center;
}

.qr-frame {
  position: relative;
  display: grid;
  place-items: center;
  width: min(100%, 330px);
  aspect-ratio: 1;
  border-radius: var(--radius);
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(226, 232, 240, 0.9)),
    linear-gradient(135deg, rgba(37, 99, 235, 0.2), rgba(56, 189, 248, 0.12));
}

.qr-frame::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  border: 1px solid rgba(56, 189, 248, 0.42);
  pointer-events: none;
}

.qr-frame img {
  width: 100%;
  max-width: 280px;
  border-radius: 6px;
}

.payment-reference h2 {
  margin: 12px 0 0;
  font-size: 34px;
}

.copy-box {
  display: grid;
  gap: 12px;
  margin: 18px 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(37, 99, 235, 0.08);
}

.copy-box code {
  display: block;
  color: var(--text);
  white-space: normal;
  overflow-wrap: anywhere;
  font-size: 14px;
  line-height: 1.5;
}

.review-stage {
  min-height: calc(100svh - 180px);
  display: grid;
  place-items: center;
  align-content: center;
  gap: 18px;
}

.review-orb {
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  color: white;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--royal), var(--sky));
  box-shadow: 0 24px 70px rgba(37, 99, 235, 0.28);
}

.review-orb svg {
  width: 40px;
  height: 40px;
}

.review-card {
  width: min(100%, 680px);
  padding: 24px;
}

.kyc-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.kyc-step {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  background: rgba(37, 99, 235, 0.12);
  color: var(--royal);
}

.status-pill.approved,
.status-pill.completed,
.status-pill.active {
  color: #047857;
  background: rgba(16, 185, 129, 0.13);
}

.status-pill.rejected,
.status-pill.failed {
  color: #be123c;
  background: rgba(244, 63, 94, 0.13);
}

.footer {
  border-top: 1px solid var(--line);
  padding: 70px 0 34px;
  background: color-mix(in srgb, var(--surface) 72%, transparent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr repeat(4, 1fr);
  gap: 34px;
}

.footer a {
  display: block;
  color: var(--muted);
  font-weight: 700;
  margin-top: 10px;
}

.messages {
  position: fixed;
  right: 22px;
  top: 92px;
  z-index: 80;
  display: grid;
  gap: 10px;
}

.message {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-strong);
  color: var(--text);
  box-shadow: var(--shadow);
  padding: 14px 16px;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

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

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

@keyframes barPulse {
  0%, 100% { transform: scaleY(0.82); opacity: 0.78; }
  50% { transform: scaleY(1); opacity: 1; }
}

@keyframes gridDrift {
  from { background-position: 0 0, 0 0, 0 0; }
  to { background-position: 0 0, 0 0, 76px 0; }
}

@keyframes shine {
  0%, 68% { transform: translateX(0) rotate(18deg); opacity: 0; }
  78% { opacity: 1; }
  100% { transform: translateX(340%) rotate(18deg); opacity: 0; }
}

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

@keyframes loaderProgress {
  0% { transform: translateX(-110%); }
  55% { transform: translateX(82%); }
  100% { transform: translateX(250%); }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    transition-duration: 1ms !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 1100px) {
  .nav-links {
    display: none;
  }

  .mobile-toggle {
    display: inline-grid;
  }

  .mobile-panel {
    display: block;
  }

  .mobile-panel[hidden] {
    display: none;
  }

  .mobile-panel .nav-link {
    display: flex;
    border-radius: var(--radius);
  }

  .hero-inner,
  .platform-stage,
  .copy-stage,
  .content-blocks,
  .dashboard-grid,
  .tradingview-grid,
  .auth-layout,
  .payment-grid {
    grid-template-columns: 1fr;
  }

  .hero-stack {
    min-height: 440px;
  }

  .dashboard-preview {
    left: 0;
    margin: auto;
  }

  .stat-grid,
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .dashboard-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: sticky;
    top: 76px;
    z-index: 20;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    overflow-x: auto;
    scrollbar-width: none;
  }

  .sidebar::-webkit-scrollbar {
    display: none;
  }

  .sidebar-nav {
    display: flex;
    min-width: max-content;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

  .nav-inner {
    min-height: 68px;
  }

  .brand-logo {
    height: 42px;
    max-width: 210px;
  }

  .nav-actions .btn-ghost {
    display: none;
  }

  .nav-actions .btn-primary {
    display: none;
  }

  .nav-actions .nav-logout-form {
    display: none;
  }

  .loader-panel {
    padding: 28px 22px;
  }

  .loader-icon-wrap {
    width: 96px;
    height: 96px;
  }

  .loader-icon-wrap img {
    width: 60px;
    height: 60px;
  }

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

  .hero-inner {
    gap: 30px;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 48px;
    line-height: 1;
  }

  .hero .lead,
  .page-hero .lead {
    font-size: 17px;
  }

  .hero-actions,
  .section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .preview-grid {
    grid-template-columns: 1fr;
  }

  .hero-stack {
    min-height: auto;
    margin-top: 8px;
  }

  .dashboard-preview {
    position: relative;
    inset: auto;
  }

  .section {
    padding: 72px 0;
  }

  .section-title {
    font-size: 34px;
  }

  .grid-3,
  .grid-4,
  .stat-grid,
  .form-grid,
  .kyc-steps {
    grid-template-columns: 1fr;
  }

  .trader-card {
    grid-template-columns: 62px 1fr;
  }

  .trader-card .btn {
    grid-column: 1 / -1;
  }

  .avatar {
    width: 58px;
    height: 58px;
  }

  .device-wall {
    min-height: 360px;
  }

  .cta-band {
    padding: 34px;
  }

  .auth-visual {
    min-height: 360px;
    padding: 28px;
  }

  .workspace {
    padding: 18px 12px;
  }

  .workspace-tabs {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .workspace-tabs::-webkit-scrollbar {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}
