:root {
  --font-head: "Trebuchet MS", "Gill Sans", sans-serif;
  --font-body: "Segoe UI Variable", "Segoe UI", sans-serif;
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --shadow-soft: 0 30px 80px rgba(10, 17, 35, 0.25);
}

body[data-theme="dark"] {
  --bg-main: #091120;
  --bg-secondary: rgba(14, 24, 42, 0.78);
  --bg-elevated: rgba(20, 34, 58, 0.92);
  --text-main: #eef4ff;
  --text-muted: #9fb0d3;
  --line-soft: rgba(139, 168, 255, 0.14);
  --accent: #4cc9f0;
  --accent-alt: #ff7a59;
  --accent-strong: #a2ff7a;
  --input-fill-1: rgba(11, 18, 38, 0.92);
  --input-fill-2: rgba(29, 18, 52, 0.94);
  --input-border-1: rgba(124, 58, 237, 0.75);
  --input-border-2: rgba(76, 201, 240, 0.54);
  --input-glow: rgba(124, 58, 237, 0.28);
  --page-glow: radial-gradient(circle at top left, rgba(76, 201, 240, 0.22), transparent 34%), radial-gradient(circle at top right, rgba(255, 122, 89, 0.18), transparent 28%), linear-gradient(135deg, #091120 0%, #121c33 52%, #172440 100%);
}

body[data-theme="light"] {
  --bg-main: #eef4fb;
  --bg-secondary: rgba(255, 255, 255, 0.72);
  --bg-elevated: rgba(255, 255, 255, 0.94);
  --text-main: #12213e;
  --text-muted: #5f7094;
  --line-soft: rgba(26, 71, 153, 0.12);
  --accent: #1976d2;
  --accent-alt: #f97316;
  --accent-strong: #1db954;
  --input-fill-1: rgba(255, 255, 255, 0.95);
  --input-fill-2: rgba(240, 246, 255, 0.96);
  --input-border-1: rgba(25, 118, 210, 0.42);
  --input-border-2: rgba(249, 115, 22, 0.3);
  --input-glow: rgba(25, 118, 210, 0.18);
  --page-glow: radial-gradient(circle at top left, rgba(25, 118, 210, 0.18), transparent 32%), radial-gradient(circle at top right, rgba(249, 115, 22, 0.16), transparent 26%), linear-gradient(135deg, #f6fbff 0%, #eff5fb 52%, #e8f0f9 100%);
}

body[data-theme="aurora"] {
  --bg-main: #120f24;
  --bg-secondary: rgba(27, 17, 46, 0.78);
  --bg-elevated: rgba(34, 22, 58, 0.92);
  --text-main: #f6f0ff;
  --text-muted: #c8b7ea;
  --line-soft: rgba(234, 179, 255, 0.16);
  --accent: #7c3aed;
  --accent-alt: #06b6d4;
  --accent-strong: #facc15;
  --input-fill-1: rgba(28, 17, 52, 0.95);
  --input-fill-2: rgba(22, 31, 73, 0.96);
  --input-border-1: rgba(173, 103, 255, 0.82);
  --input-border-2: rgba(41, 213, 255, 0.58);
  --input-glow: rgba(145, 91, 255, 0.3);
  --page-glow: radial-gradient(circle at top left, rgba(124, 58, 237, 0.25), transparent 34%), radial-gradient(circle at top right, rgba(6, 182, 212, 0.18), transparent 28%), linear-gradient(135deg, #120f24 0%, #22153c 52%, #2d1a50 100%);
}

body.page-landing[data-theme="light"],
body.page-auth[data-theme="light"] {
  --bg-main: #121628;
  --bg-secondary: rgba(24, 29, 58, 0.82);
  --bg-elevated: rgba(31, 36, 70, 0.94);
  --text-main: #f8f1ff;
  --text-muted: #bdb6d8;
  --line-soft: rgba(255, 255, 255, 0.12);
  --accent: #ffb454;
  --accent-alt: #f97316;
  --accent-strong: #67ffb2;
  --input-fill-1: rgba(34, 24, 64, 0.96);
  --input-fill-2: rgba(27, 31, 70, 0.96);
  --input-border-1: rgba(255, 163, 71, 0.56);
  --input-border-2: rgba(112, 177, 255, 0.34);
  --input-glow: rgba(255, 163, 71, 0.18);
  --page-glow: radial-gradient(circle at top left, rgba(255, 179, 87, 0.18), transparent 34%), radial-gradient(circle at top right, rgba(127, 163, 255, 0.14), transparent 28%), linear-gradient(135deg, #111526 0%, #1c2143 52%, #271d40 100%);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--text-main);
  background: var(--page-glow);
  background-attachment: fixed;
}

body.chrome-hidden .site-shell {
  min-height: 100vh;
}

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

p {
  color: var(--text-muted);
  line-height: 1.65;
}

h1, h2, h3 {
  margin: 0 0 0.6rem;
  font-family: var(--font-head);
  line-height: 1.1;
}

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

.site-shell,
.admin-shell {
  min-height: 100vh;
}

.topbar,
.admin-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 2rem;
}

.brand,
.sidebar-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--accent), var(--accent-alt));
  color: white;
  font-weight: 700;
  box-shadow: 0 18px 28px rgba(0, 0, 0, 0.18);
}

.brand strong,
.sidebar-brand strong {
  display: block;
  font-size: 1rem;
}

.brand small,
.sidebar-brand small {
  display: block;
  color: var(--text-muted);
}

.topnav,
.sidebar-nav {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.topnav a,
.topnav-dropdown > summary,
.sidebar-dropdown > summary,
.sidebar-nav a,
.theme-chip {
  padding: 0.72rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
}

.topnav a.is-active,
.topnav-dropdown > summary.is-active,
.sidebar-dropdown > summary.is-active,
.sidebar-nav a.is-active,
.theme-chip.is-active {
  background: linear-gradient(135deg, var(--accent), var(--accent-alt));
  border-color: transparent;
  color: white;
}

.topnav-dropdown {
  position: relative;
}

.topnav-dropdown > summary {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  list-style: none;
  cursor: pointer;
  color: var(--text-main);
}

.topnav-dropdown > summary::-webkit-details-marker {
  display: none;
}

.topnav-dropdown > summary::marker {
  content: "";
}

.topnav-dropdown > summary::after {
  content: "▾";
  font-size: 0.75rem;
  opacity: 0.85;
}

.topnav-dropdown[open] > summary::after {
  transform: rotate(180deg);
}

.topnav-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.55rem);
  left: 0;
  z-index: 20;
  display: grid;
  gap: 0.45rem;
  min-width: 260px;
  padding: 0.65rem;
  border-radius: 20px;
  border: 1px solid var(--line-soft);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-soft);
}

.topnav-dropdown-menu a {
  width: 100%;
}

.theme-switcher {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.topbar-panel {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: auto;
}

.topbar-toggle {
  display: none;
  padding: 0.72rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  cursor: pointer;
}

.theme-chip {
  cursor: pointer;
}

.page-shell,
.admin-main {
  padding: 0 2rem 2rem;
}

.page-shell-landing,
.page-shell-auth {
  padding: 1.2rem 2rem 2rem;
}

.hero-card,
.card,
.metric-card,
.table-shell,
.form-shell,
.content-panel,
.glass-card {
  background: var(--bg-secondary);
  border: 1px solid var(--line-soft);
  backdrop-filter: blur(24px);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
}

.hero-card {
  padding: 2rem;
  overflow: hidden;
  position: relative;
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: auto -10% -30% auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.16), transparent 60%);
}

.hero-front::before,
.auth-stage::before,
.trade-board::before {
  content: "";
  position: absolute;
  inset: 1.2rem;
  border-radius: calc(var(--radius-xl) - 8px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

.hero-grid,
.landing-grid,
.stats-grid,
.dashboard-grid,
.content-grid,
.field-grid,
.panel-grid,
.auth-layout,
.ticker-grid,
.signal-grid,
.auth-mini-grid {
  display: grid;
  gap: 1.2rem;
}

.hero-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.landing-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.9fr);
  align-items: stretch;
}

.stats-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.dashboard-grid {
  grid-template-columns: 1.6fr 1fr;
  align-items: start;
}

.content-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.field-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.panel-grid {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.reports-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 1.2rem;
  align-items: start;
}

.reports-sidebar {
  position: sticky;
  top: 1.2rem;
}

.reports-nav-shell {
  padding: 1.2rem;
}

.reports-nav {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 1rem;
}

.reports-nav a {
  display: block;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--line-soft);
  color: var(--text-main);
  text-decoration: none;
  background: rgba(9, 17, 32, 0.45);
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.reports-nav a:hover,
.reports-nav a:focus-visible {
  transform: translateX(2px);
  border-color: rgba(76, 201, 240, 0.45);
  background: rgba(18, 31, 54, 0.85);
}

.reports-nav a.is-active {
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent), var(--accent-alt));
  color: white;
}

.reports-stack {
  display: grid;
  gap: 1.2rem;
}

.report-section {
  scroll-margin-top: 1.2rem;
}

.auth-layout {
  grid-template-columns: minmax(0, 1fr) minmax(380px, 0.95fr);
  align-items: stretch;
}

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

.signal-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1rem;
}

.auth-mini-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 1.2rem;
}

.metric-card,
.card,
.form-shell,
.content-panel,
.table-shell {
  padding: 1.3rem;
}

.metric-card .value {
  font-size: 2rem;
  color: var(--text-main);
  font-family: var(--font-head);
}

.hero-copy {
  max-width: 42rem;
}

.hero-actions {
  margin-top: 1.2rem;
}

.hero-statline {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.trade-board {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.ticker-card,
.signal-card,
.auth-mini-card,
.surface-card {
  position: relative;
  overflow: hidden;
}

.ticker-card,
.signal-card,
.auth-mini-card {
  padding: 1rem;
  border-radius: calc(var(--radius-lg) - 2px);
  border: 1px solid var(--line-soft);
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
  min-height: 110px;
}

.ticker-card strong,
.signal-card strong,
.auth-mini-card strong {
  display: block;
  font-size: 1.05rem;
  line-height: 1.35;
}

.ticker-card small {
  display: block;
  margin-top: 0.75rem;
  color: var(--text-muted);
}

.ticker-value,
.signal-label {
  display: inline-flex;
  margin: 0.3rem 0 0.85rem;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.auth-stage,
.auth-shell {
  min-height: 100%;
}

.auth-stage {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-stage-admin {
  background: linear-gradient(180deg, rgba(18, 31, 52, 0.82), rgba(15, 25, 43, 0.9));
}

.auth-shell h2 {
  margin-bottom: 1.15rem;
}

.field-note {
  color: var(--text-muted);
  font-size: 0.84rem;
}

.landing-strip {
  margin-top: 1.4rem;
}

.surface-card {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02)),
    var(--bg-secondary);
}

.landing-studio,
.auth-studio {
  position: relative;
  overflow: hidden;
  border-radius: 36px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    radial-gradient(circle at 15% 15%, rgba(136, 193, 255, 0.28), transparent 24%),
    radial-gradient(circle at 80% 18%, rgba(210, 121, 255, 0.18), transparent 20%),
    linear-gradient(135deg, rgba(11, 18, 41, 0.98), rgba(18, 28, 67, 0.94));
  box-shadow: 0 35px 90px rgba(7, 12, 28, 0.42);
}

.landing-studio {
  padding: 1.5rem 1.75rem 1.35rem;
  min-height: calc(100vh - 3rem);
}

.auth-studio {
  padding: 1.3rem;
  min-height: calc(100vh - 3rem);
}

.landing-topbar,
.auth-studio-topbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.landing-brand .brand-mark {
  width: 44px;
  height: 44px;
}

.landing-nav,
.landing-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.landing-nav a,
.landing-login-pill {
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.04);
}

.landing-login-pill {
  background: #ffffff;
  color: #111827;
  font-weight: 700;
}

.landing-theme-switcher .theme-chip {
  min-width: 74px;
}

.landing-body {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(380px, 1.06fr);
  gap: 1.6rem;
  align-items: center;
  min-height: 68vh;
  padding: 2.8rem 1.1rem 1.8rem;
}

.landing-copy-side {
  max-width: 35rem;
  padding-left: 0.55rem;
}

.landing-title {
  font-size: clamp(3.4rem, 7vw, 5.8rem);
  line-height: 0.94;
  letter-spacing: -0.04em;
  max-width: 8.5ch;
  margin-bottom: 1rem;
}

.landing-copy {
  font-size: 1.2rem;
  max-width: 30rem;
  margin-bottom: 1.4rem;
}

.landing-cta-row {
  align-items: center;
}

.landing-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 0.95rem 1.65rem;
  border-radius: 999px;
  background: #ffffff;
  color: #111827;
  font-weight: 700;
  box-shadow: 0 18px 32px rgba(13, 19, 45, 0.28);
}

.landing-ghost-link {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 0.85rem 1rem;
  color: var(--text-muted);
}

.landing-visual-side {
  position: relative;
  min-height: 620px;
}

.landing-hero-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.96;
  pointer-events: none;
}

.landing-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
  opacity: 0.7;
  pointer-events: none;
}

.landing-glow-a {
  width: 360px;
  height: 360px;
  left: 28%;
  top: 18%;
  background: rgba(126, 88, 255, 0.3);
}

.landing-glow-b {
  width: 240px;
  height: 240px;
  right: 18%;
  top: 10%;
  background: rgba(255, 255, 255, 0.18);
}

.landing-glow-c {
  width: 300px;
  height: 300px;
  right: 12%;
  bottom: 10%;
  background: rgba(220, 103, 255, 0.16);
}

.landing-orb {
  position: absolute;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, rgba(255,255,255,0.95), rgba(225,196,255,0.66) 24%, rgba(114,95,255,0.72) 50%, rgba(16,21,49,0.96) 82%);
  box-shadow: inset -40px -55px 120px rgba(14, 12, 48, 0.7), 0 25px 70px rgba(6, 11, 32, 0.42);
}

.landing-orb-main {
  width: 440px;
  height: 440px;
  right: 120px;
  top: 88px;
}

.landing-orb-back {
  width: 320px;
  height: 320px;
  left: 25px;
  top: 120px;
  opacity: 0.92;
}

.landing-orb-small {
  width: 250px;
  height: 250px;
  right: 110px;
  bottom: 34px;
  opacity: 0.82;
}

.floating-card {
  position: absolute;
  z-index: 3;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(180deg, rgba(255,255,255,0.16), rgba(255,255,255,0.06));
  backdrop-filter: blur(26px);
  box-shadow: 0 25px 60px rgba(10, 16, 34, 0.26);
  color: #f7f7ff;
}

.floating-card strong {
  display: block;
  font-size: 1.95rem;
  line-height: 1;
}

.floating-card small,
.floating-label {
  color: rgba(247, 247, 255, 0.76);
}

.floating-balance {
  top: 60px;
  right: 90px;
  width: 250px;
  padding: 1.2rem 1.3rem;
}

.floating-range {
  left: 32px;
  top: 300px;
  width: 430px;
  padding: 1.15rem 1.3rem;
}

.floating-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.floating-row strong {
  font-size: 1.4rem;
}

.floating-bar {
  margin-top: 1rem;
  height: 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  overflow: hidden;
}

.floating-bar span {
  display: block;
  width: 46%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(255,255,255,0.95), rgba(139,169,255,0.8));
}

.floating-coin {
  left: 52px;
  bottom: 58px;
  width: 230px;
  padding: 1.15rem 1.2rem;
}

.floating-spot {
  right: 34px;
  bottom: 46px;
  width: 280px;
  padding: 1.2rem 1.2rem 1rem;
}

.chart-bars {
  display: flex;
  align-items: end;
  gap: 0.55rem;
  min-height: 92px;
  margin: 1rem 0 0.85rem;
}

.chart-bars span {
  width: 12px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(82,103,255,1), rgba(115,140,255,0.35));
}

.chart-bars span:nth-child(1) { height: 22px; }
.chart-bars span:nth-child(2) { height: 34px; }
.chart-bars span:nth-child(3) { height: 48px; }
.chart-bars span:nth-child(4) { height: 62px; }
.chart-bars span:nth-child(5) { height: 78px; }
.chart-bars span:nth-child(6) { height: 86px; }
.chart-bars span:nth-child(7) { height: 64px; }
.chart-bars span:nth-child(8) { height: 30px; }

.mini-tags {
  position: absolute;
  top: 146px;
  right: 6px;
  z-index: 3;
  display: grid;
  gap: 0.8rem;
}

.mini-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.85rem 1rem;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,0.14), rgba(255,255,255,0.06));
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.88);
  backdrop-filter: blur(18px);
}

.landing-metrics {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
  padding: 1.2rem 0.55rem 0.35rem;
}

.landing-metric {
  padding: 1rem 0;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.landing-metric + .landing-metric {
  padding-left: 1.2rem;
  border-left: 1px solid rgba(255,255,255,0.08);
}

.landing-metric strong {
  display: block;
  font-size: 3rem;
  line-height: 1;
  margin-bottom: 0.45rem;
}

.landing-metric span {
  color: var(--text-muted);
}

.landing-stage {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  gap: 1.35rem;
  margin-top: 1.5rem;
  scroll-margin-top: 1.2rem;
}

.landing-stage-reverse {
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
}

.landing-stage-copy,
.landing-stage-visual,
.landing-callout {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  border: 1px solid rgba(255,255,255,0.08);
  background:
    radial-gradient(circle at 20% 20%, rgba(139, 104, 255, 0.14), transparent 32%),
    linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02)),
    var(--bg-secondary);
  box-shadow: 0 30px 74px rgba(8, 12, 28, 0.28);
}

.landing-stage-copy::before,
.landing-stage-visual::before,
.landing-callout::before {
  content: "";
  position: absolute;
  inset: 1rem;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.04);
  pointer-events: none;
}

.landing-stage-copy,
.landing-stage-visual {
  min-height: 440px;
}

.landing-stage-copy {
  padding: 1.75rem;
}

.landing-stage-copy h2 {
  font-size: clamp(2.35rem, 4.4vw, 4.1rem);
  line-height: 0.98;
  max-width: 10.5ch;
  margin-bottom: 1rem;
}

.landing-stage-copy p {
  max-width: 35rem;
}

.landing-bullet-grid {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.15rem;
}

.landing-bullet-card {
  padding: 1rem 1.05rem;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}

.landing-bullet-card strong {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.landing-stage-visual {
  padding: 1.45rem;
  display: grid;
  gap: 1rem;
  align-content: start;
}

.landing-stage-futures {
  background:
    radial-gradient(circle at 72% 18%, rgba(255, 255, 255, 0.14), transparent 22%),
    radial-gradient(circle at 78% 76%, rgba(104, 78, 255, 0.24), transparent 22%),
    linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02)),
    var(--bg-secondary);
}

.landing-stage-signals {
  background:
    radial-gradient(circle at 16% 24%, rgba(69, 196, 255, 0.12), transparent 24%),
    radial-gradient(circle at 84% 82%, rgba(140, 84, 255, 0.22), transparent 22%),
    linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02)),
    var(--bg-secondary);
}

.landing-stage-metrics {
  background:
    radial-gradient(circle at 80% 20%, rgba(255, 186, 93, 0.12), transparent 24%),
    radial-gradient(circle at 12% 74%, rgba(82, 118, 255, 0.18), transparent 24%),
    linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02)),
    var(--bg-secondary);
}

.stage-panel,
.metric-summary-card,
.metric-stat-card,
.signal-step {
  position: relative;
  z-index: 2;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(180deg, rgba(255,255,255,0.1), rgba(255,255,255,0.04));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}

.stage-panel {
  padding: 1.3rem 1.35rem;
}

.stage-panel strong,
.metric-summary-card strong {
  display: block;
  font-size: 2rem;
  line-height: 1.02;
  margin-bottom: 0.45rem;
}

.stage-kicker {
  display: inline-flex;
  margin-bottom: 0.7rem;
  color: var(--accent);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.stage-progress {
  margin-top: 1rem;
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.18);
  overflow: hidden;
}

.stage-progress span {
  display: block;
  width: 72%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(255,255,255,0.96), rgba(131, 185, 255, 0.82));
}

.stage-mini-grid,
.metric-stat-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.stage-mini-card,
.metric-stat-card {
  padding: 1.05rem;
}

.stage-mini-card small,
.metric-stat-card small {
  display: inline-flex;
  margin-bottom: 0.55rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
}

.stage-mini-card strong,
.metric-stat-card strong {
  display: block;
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 0.3rem;
}

.stage-mini-card span,
.metric-stat-card span {
  color: var(--text-muted);
}

.signal-flow {
  display: grid;
  gap: 0.95rem;
}

.signal-step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem 1.05rem;
}

.signal-step span {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(124,58,237,0.9), rgba(6,182,212,0.9));
  color: #fff;
  font-weight: 700;
  flex: 0 0 auto;
}

.signal-step strong {
  display: block;
  font-size: 1.08rem;
  margin-bottom: 0.2rem;
}

.signal-step.is-active {
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 0 0 1px rgba(124,58,237,0.18);
}

.stage-panel-compact {
  align-self: end;
}

.metric-summary-card {
  padding: 1.35rem;
}

.metric-bars {
  display: flex;
  align-items: end;
  gap: 0.65rem;
  min-height: 120px;
  margin-top: 1.15rem;
}

.metric-bars span {
  width: 14px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(89, 116, 255, 1), rgba(116, 145, 255, 0.32));
}

.metric-bars span:nth-child(1) { height: 28px; }
.metric-bars span:nth-child(2) { height: 42px; }
.metric-bars span:nth-child(3) { height: 58px; }
.metric-bars span:nth-child(4) { height: 76px; }
.metric-bars span:nth-child(5) { height: 94px; }
.metric-bars span:nth-child(6) { height: 68px; }
.metric-bars span:nth-child(7) { height: 36px; }

.landing-section-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 1.35rem;
  margin-top: 1.4rem;
}

.landing-section-grid-alt {
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
}

.landing-section-card,
.landing-callout {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02)),
    var(--bg-secondary);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 32px;
  box-shadow: 0 28px 72px rgba(8, 12, 28, 0.28);
}

.landing-section-card {
  padding: 1.7rem;
}

.landing-section-copy h2,
.landing-callout h2 {
  font-size: clamp(2rem, 3.6vw, 3rem);
  margin-bottom: 0.85rem;
}

.landing-feature-stack,
.landing-metric-panel {
  display: grid;
  gap: 1rem;
}

.landing-feature-card,
.landing-metric-card {
  padding: 1.25rem 1.3rem;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.03));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}

.landing-feature-card strong,
.landing-metric-card strong {
  display: block;
  font-size: 1.22rem;
  margin-bottom: 0.35rem;
}

.landing-metric-card span {
  display: inline-flex;
  margin-bottom: 0.45rem;
  color: var(--accent);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.landing-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.landing-chip {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.65rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.05);
  color: var(--text-main);
}

.landing-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: 1.4rem;
  padding: 1.6rem 1.8rem;
}

.landing-callout-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.auth-studio-grid {
  display: grid;
  grid-template-columns: minmax(420px, 1.02fr) minmax(340px, 0.86fr);
  gap: 1.35rem;
  align-items: stretch;
  min-height: calc(100vh - 8rem);
}

.auth-visual-panel,
.auth-form-panel {
  position: relative;
  z-index: 2;
  border-radius: 30px;
  border: 1px solid rgba(255,255,255,0.12);
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  overflow: hidden;
}

.auth-visual-panel {
  min-height: 680px;
  background:
    radial-gradient(circle at 25% 18%, rgba(145, 198, 255, 0.2), transparent 25%),
    linear-gradient(180deg, rgba(80, 110, 212, 0.28), rgba(32, 40, 88, 0.22));
  display: grid;
  place-items: center;
}

.auth-visual-art {
  width: min(92%, 700px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 26px 38px rgba(11, 16, 34, 0.22));
}

.auth-form-panel {
  padding: 2.2rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-form-panel-wide {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.auth-wave {
  display: inline-flex;
  margin: 0 0 0.4rem;
  color: rgba(255,255,255,0.88);
  font-weight: 700;
  font-size: 1rem;
}

.auth-form-panel h1 {
  font-size: clamp(2.3rem, 4vw, 3.2rem);
  line-height: 1.05;
  margin-bottom: 0.8rem;
}

.auth-caption {
  margin-bottom: 1.3rem;
}

.auth-form-panel .field input,
.auth-form-panel .field select {
  min-height: 56px;
  border-radius: 18px;
}

.auth-form-panel .button-ghost {
  min-width: 88px;
}

.auth-form-actions {
  margin-top: 0.65rem;
}

.auth-submit {
  width: 100%;
  min-height: 58px;
  font-size: 1.05rem;
  font-weight: 700;
}

.auth-bottom-note {
  margin-top: 1.35rem;
  color: rgba(255,255,255,0.72);
}

.auth-bottom-note a {
  color: #68ff9f;
  font-weight: 700;
}

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

.auth-field-span {
  grid-column: 1 / -1;
}

.shape-orb,
.shape-ring,
.shape-bar,
.shape-pill,
.shape-core {
  position: absolute;
}

.shape-core {
  width: 280px;
  height: 280px;
  left: 50%;
  top: 52%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, rgba(255,255,255,0.94), rgba(156, 203, 255, 0.68) 28%, rgba(97, 138, 255, 0.72) 52%, rgba(223, 83, 232, 0.78) 72%, rgba(17, 30, 79, 0.98) 100%);
  box-shadow: 0 35px 80px rgba(17, 24, 56, 0.4);
}

.shape-orb {
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.92), rgba(142,193,255,0.4) 45%, rgba(41,72,214,0.88) 100%);
  box-shadow: 0 22px 50px rgba(13, 22, 55, 0.25);
}

.shape-orb-a {
  width: 100px;
  height: 100px;
  left: 42px;
  top: 96px;
}

.shape-orb-b {
  width: 82px;
  height: 82px;
  right: 86px;
  bottom: 118px;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.96), rgba(255,155,214,0.58) 45%, rgba(230,55,164,0.92) 100%);
}

.shape-orb-c {
  width: 74px;
  height: 74px;
  left: 86px;
  bottom: 78px;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.96), rgba(246, 208, 255, 0.62) 48%, rgba(203, 87, 255, 0.92) 100%);
}

.shape-ring {
  border-radius: 50%;
  border: 10px solid rgba(110, 140, 255, 0.75);
}

.shape-ring-a {
  width: 212px;
  height: 212px;
  left: 130px;
  top: 150px;
}

.shape-ring-b {
  width: 132px;
  height: 132px;
  right: 88px;
  top: 250px;
  border-color: rgba(255, 146, 223, 0.72);
}

.shape-bar,
.shape-pill {
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.6), rgba(99,132,255,0.7));
  box-shadow: 0 20px 40px rgba(17, 24, 56, 0.22);
}

.shape-bar-a {
  width: 210px;
  height: 26px;
  top: 68px;
  left: 214px;
}

.shape-bar-b {
  width: 172px;
  height: 24px;
  bottom: 146px;
  left: 52px;
}

.shape-bar-c {
  width: 188px;
  height: 24px;
  bottom: 168px;
  right: 78px;
}

.shape-pill-a {
  width: 142px;
  height: 44px;
  top: 42px;
  left: 166px;
  background: linear-gradient(180deg, rgba(255,205,242,0.92), rgba(230, 110, 193, 0.84));
}

.shape-pill-b {
  width: 98px;
  height: 38px;
  right: 132px;
  top: 178px;
}

.shape-pill-c {
  width: 124px;
  height: 42px;
  left: 82px;
  top: 246px;
  background: linear-gradient(180deg, rgba(255,205,242,0.92), rgba(230, 110, 193, 0.84));
}

.eyebrow {
  margin: 0 0 0.5rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.76rem;
  color: var(--accent);
}

.button-row {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.pagination-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.pagination-bar .field-note {
  margin: 0;
}

.pagination-links {
  margin-left: auto;
}

.button,
.button-secondary,
.button-ghost,
.button-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 46px;
  padding: 0.85rem 1.2rem;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
}

.button {
  background: linear-gradient(135deg, var(--accent), var(--accent-alt));
  color: white;
}

.button-secondary {
  background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
  color: var(--text-main);
  border: 1px solid var(--line-soft);
}

.button-ghost {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--line-soft);
}

.button-danger {
  background: linear-gradient(135deg, #ef4444, #f97316);
  color: white;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--line-soft);
  color: var(--text-muted);
  font-size: 0.85rem;
}

.tag.good {
  color: #8ff7be;
}

.tag.warn {
  color: #ffd479;
}

.tag.bad {
  color: #ff9f9f;
}

.field {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.field label {
  color: var(--text-main);
  font-weight: 600;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 54px;
  padding: 0.95rem 1.05rem;
  border-radius: 22px;
  border: 1px solid transparent;
  background:
    linear-gradient(180deg, var(--input-fill-1), var(--input-fill-2)) padding-box,
    linear-gradient(135deg, var(--input-border-1), var(--input-border-2), rgba(255, 255, 255, 0.18)) border-box;
  color: var(--text-main);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -12px 22px rgba(8, 12, 33, 0.08),
    0 14px 34px rgba(6, 11, 30, 0.16);
  outline: none;
  transition:
    box-shadow 180ms ease,
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.field textarea {
  min-height: 130px;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--text-muted);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 0 0 4px var(--input-glow),
    0 18px 42px rgba(6, 11, 30, 0.26);
  transform: translateY(-1px);
}

.field .button-row {
  flex-wrap: nowrap;
  align-items: stretch;
}

.field .button-row input {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
}

.field .button-row .button-ghost {
  flex: 0 0 auto;
  min-width: 92px;
  min-height: 54px;
  padding-inline: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03)),
    linear-gradient(135deg, rgba(124,58,237,0.16), rgba(6,182,212,0.08));
  color: var(--text-main);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 12px 26px rgba(6, 11, 30, 0.16);
}

.field .button-row .button-ghost:hover {
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.1),
    0 16px 32px rgba(6, 11, 30, 0.2);
}

.symbol-choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
}

.symbol-choice {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 54px;
  padding: 0.9rem 1rem;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
  cursor: pointer;
  overflow: hidden;
}

.symbol-choice input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.symbol-choice span {
  position: relative;
  z-index: 1;
  color: var(--text-main);
  font-weight: 600;
}

.symbol-choice:has(input:checked) {
  border-color: rgba(76, 201, 240, 0.45);
  background:
    linear-gradient(135deg, rgba(124,58,237,0.36), rgba(6,182,212,0.22)),
    linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
  box-shadow: 0 14px 28px rgba(10, 16, 34, 0.2);
}

.action-cell {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.action-cell form {
  margin: 0;
}

.table-shell {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: 0.85rem 0.6rem;
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
  vertical-align: top;
}

.data-table th {
  color: var(--text-muted);
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.pnl-positive {
  color: #32d583;
  font-weight: 600;
}

.pnl-negative {
  color: #f97066;
  font-weight: 600;
}

.pnl-zero {
  color: var(--text-muted);
  font-weight: 600;
}

.flash-stack {
  display: grid;
  gap: 0.8rem;
  margin-bottom: 1.2rem;
}

.flash {
  padding: 0.95rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--line-soft);
  background: var(--bg-elevated);
}

.flash-success {
  border-color: rgba(52, 211, 153, 0.38);
}

.flash-error {
  border-color: rgba(248, 113, 113, 0.38);
}

.flash-warning {
  border-color: rgba(251, 191, 36, 0.38);
}

.flash-info {
  border-color: rgba(56, 189, 248, 0.38);
}

.list-plain {
  display: grid;
  gap: 0.75rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.list-plain li {
  padding: 0.9rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--line-soft);
  background: rgba(255,255,255,0.03);
}

.mini-table {
  display: grid;
  gap: 0.6rem;
}

.mini-row {
  display: grid;
  grid-template-columns: minmax(80px, 1fr) minmax(110px, 1fr) minmax(120px, 1.4fr);
  gap: 0.6rem;
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--line-soft);
  background: rgba(255,255,255,0.04);
  font-size: 0.9rem;
}

.mini-row span {
  white-space: nowrap;
}

.mini-row.mini-head {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.74rem;
  color: var(--text-muted);
  background: rgba(255,255,255,0.02);
}

.site-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  padding: 1rem 2rem 2rem;
  color: var(--text-muted);
}

.site-footer-copy {
  display: grid;
  gap: 0.2rem;
}

.site-footer-copy p {
  margin: 0;
}

.site-footer-copy a {
  color: var(--accent);
}

.admin-shell {
  display: grid;
  grid-template-columns: 260px 1fr;
}

.admin-shell.admin-shell-top {
  display: block;
}

.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 2rem 0;
}

.admin-main.admin-main-wide {
  padding-top: 0.6rem;
}

.admin-sidebar {
  min-height: 100vh;
  padding: 1.5rem 1rem;
  border-right: 1px solid var(--line-soft);
  background: rgba(0, 0, 0, 0.18);
}

.sidebar-nav {
  margin-top: 1.4rem;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: stretch;
}

.sidebar-dropdown {
  display: grid;
  gap: 0.55rem;
  width: 100%;
}

.sidebar-dropdown > summary {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.72rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  cursor: pointer;
  list-style: none;
}

.sidebar-dropdown > summary::-webkit-details-marker {
  display: none;
}

.sidebar-dropdown > summary::marker {
  content: "";
}

.sidebar-dropdown > summary::after {
  content: "▾";
  margin-left: auto;
  font-size: 0.75rem;
  opacity: 0.85;
  transition: transform 0.18s ease;
}

.sidebar-dropdown[open] > summary::after {
  transform: rotate(180deg);
}

.sidebar-dropdown-menu {
  display: grid;
  gap: 0.55rem;
  padding-left: 1rem;
  width: 100%;
}

.sidebar-dropdown-menu a {
  display: block;
  width: 100%;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
}

.sidebar-nav-group {
  margin: 0.6rem 0 0.15rem;
  padding: 0 0.4rem;
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.empty-state {
  padding: 1.25rem;
  border-radius: var(--radius-md);
  border: 1px dashed var(--line-soft);
  color: var(--text-muted);
}

.report-fee-header,
.report-fee-cell {
  background: rgba(255, 205, 86, 0.2) !important;
  color: #ffd76b;
  font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(255, 214, 102, 0.08);
}

.reports-layout-single {
  grid-template-columns: minmax(0, 1fr);
}

@media (max-width: 980px) {
  .dashboard-grid,
  .landing-grid,
  .auth-layout,
  .admin-shell,
  .reports-layout {
    grid-template-columns: 1fr;
  }

  .admin-topbar {
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1rem 0;
  }

  .signal-grid,
  .auth-mini-grid {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
  }

  .reports-sidebar {
    display: none;
  }

  .landing-topbar,
  .auth-studio-topbar,
  .landing-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .landing-body,
  .auth-studio-grid,
  .landing-metrics {
    grid-template-columns: 1fr;
  }

  .landing-stage,
  .landing-stage-reverse,
  .landing-section-grid,
  .landing-section-grid-alt {
    grid-template-columns: 1fr;
  }

  .landing-visual-side {
    min-height: 560px;
  }

  .mini-tags {
    position: static;
    margin-top: 1rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .landing-metric + .landing-metric {
    padding-left: 0;
    border-left: 0;
  }

  .stats-grid,
  .content-grid,
  .field-grid,
  .panel-grid,
  .ticker-grid,
  .signal-grid {
    grid-template-columns: 1fr;
  }

  .stage-mini-grid,
  .metric-stat-row {
    grid-template-columns: 1fr;
  }

  .landing-callout,
  .payment-request-top,
  .payment-public-brand {
    flex-direction: column;
    align-items: stretch;
  }

  .payment-request-grid,
  .payment-public-grid,
  .payment-detail-grid {
    grid-template-columns: 1fr;
  }
}

.payment-request-shell,
.payment-public-card {
  padding: 1.5rem;
}

.payment-request-card,
.payment-public-card {
  display: grid;
  gap: 1.2rem;
}

.payment-request-top,
.payment-public-brand {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.payment-request-actions,
.payment-public-note-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.payment-request-grid,
.payment-public-grid {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.payment-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.payment-qr-card,
.payment-detail-card,
.payment-public-transaction {
  padding: 1rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.04);
}

.payment-qr-card {
  text-align: center;
}

.payment-qr-card img {
  display: block;
  width: min(100%, 240px);
  margin: 0 auto 0.8rem;
  padding: 0.75rem;
  border-radius: 24px;
  background: #ffffff;
}

.payment-detail-card,
.payment-public-transaction {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.payment-detail-card span,
.payment-public-transaction span {
  color: var(--text-muted);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.payment-detail-card strong,
.payment-detail-card a,
.payment-public-transaction a {
  word-break: break-word;
}

.payment-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  width: fit-content;
  padding: 0.38rem 0.8rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.payment-status-pill.is-info {
  background: rgba(76, 201, 240, 0.16);
  color: #7be3ff;
}

.payment-status-pill.is-warning {
  background: rgba(255, 185, 0, 0.16);
  color: #ffd36e;
}

.payment-status-pill.is-success {
  background: rgba(84, 214, 44, 0.16);
  color: #9cff7a;
}

.payment-status-pill.is-danger {
  background: rgba(255, 95, 95, 0.16);
  color: #ff9d9d;
}

.button-inline {
  width: auto;
  margin-top: 0.35rem;
  padding: 0.5rem 0.8rem;
}

.payment-public-shell {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 1.5rem 1rem 3rem;
}

.payment-public-layout {
  width: min(940px, 100%);
}

.payment-public-card {
  background: var(--bg-secondary);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(24px);
}

.payment-public-brand {
  justify-content: flex-start;
}

.payment-public-brand p {
  margin: 0.2rem 0 0;
}

.payment-public-form {
  display: grid;
  gap: 1rem;
}

@media (max-width: 720px) {
  .topbar,
  .admin-toolbar,
  .page-shell,
  .admin-main,
  .site-footer {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .topbar,
  .admin-toolbar {
    align-items: center;
    flex-wrap: wrap;
  }

  .topnav,
  .theme-switcher,
  .button-row {
    width: 100%;
  }

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

  .topnav a,
  .topnav-dropdown,
  .topnav-dropdown > summary,
  .topnav-dropdown-menu,
  .theme-chip,
  .button,
  .button-secondary,
  .button-ghost,
  .button-danger {
    width: 100%;
  }

  .page-shell-landing,
  .page-shell-auth {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .topbar-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
  }

  .topbar-panel {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    margin-left: 0;
    gap: 0.85rem;
  }

  .topbar-panel.is-open {
    display: flex;
  }

  .topnav {
    flex-direction: column;
    gap: 0.75rem;
  }

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

  .topnav-dropdown-menu {
    position: static;
    min-width: 0;
    margin-top: 0.55rem;
  }

  .landing-studio,
  .auth-studio {
    min-height: auto;
    padding: 1rem;
    border-radius: 28px;
  }

  .landing-nav,
  .landing-theme-switcher,
  .landing-actions,
  .landing-login-pill,
  .landing-cta-row,
  .auth-studio-topbar .theme-switcher {
    width: 100%;
  }

  .landing-nav a,
  .landing-login-pill,
  .landing-cta,
  .landing-ghost-link {
    width: 100%;
    justify-content: center;
  }

  .landing-title {
    max-width: none;
    font-size: clamp(2.7rem, 13vw, 4rem);
  }

  .landing-copy-side {
    padding-left: 0;
  }

  .landing-visual-side,
  .auth-visual-panel,
  .landing-stage-copy,
  .landing-stage-visual {
    min-height: 420px;
  }

  .floating-balance,
  .floating-range,
  .floating-coin,
  .floating-spot {
    position: relative;
    inset: auto;
    width: auto;
    margin-bottom: 1rem;
  }

  .mini-tags {
    grid-template-columns: 1fr;
  }

  .landing-callout-actions,
  .landing-chip-row {
    width: 100%;
  }

  .landing-chip,
  .landing-callout-actions .landing-cta,
  .landing-callout-actions .landing-ghost-link {
    width: 100%;
    justify-content: center;
  }

  .auth-signup-grid {
    grid-template-columns: 1fr;
  }

  .shape-core {
    width: 210px;
    height: 210px;
  }

  .shape-ring-a {
    width: 150px;
    height: 150px;
    left: 88px;
    top: 126px;
  }

  .shape-ring-b {
    width: 92px;
    height: 92px;
    right: 42px;
    top: 232px;
  }

  .shape-bar-a {
    width: 140px;
    left: 146px;
  }

  .shape-bar-b,
  .shape-bar-c {
    width: 132px;
  }

  .shape-pill-a {
    width: 104px;
    left: 120px;
  }

  .metric-card,
  .card,
  .form-shell,
  .content-panel,
  .table-shell,
  .auth-form-panel,
  .auth-visual-panel,
  .landing-stage-copy,
  .landing-stage-visual,
  .landing-callout {
    padding: 1rem;
  }

  .field .button-row {
    flex-direction: column;
  }

  .field .button-row .button-ghost {
    width: 100%;
  }

  .data-table {
    min-width: 780px;
  }

  .payment-request-actions,
  .payment-public-note-grid {
    width: 100%;
  }

  .payment-request-actions .button,
  .payment-request-actions .button-secondary,
  .payment-public-form .button,
  .payment-public-form .button-secondary {
    width: 100%;
  }

  .auth-visual-art {
    width: min(96%, 460px);
  }
}
