/*!***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ../../node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[2].use[1]!../../node_modules/next/dist/build/webpack/loaders/next-font-loader/index.js??ruleSet[1].rules[14].oneOf[2].use[2]!../../node_modules/next/font/google/target.css?{"path":"app/layout.tsx","import":"Inter","arguments":[{"subsets":["latin"],"display":"swap","variable":"--font-inter"}],"variableName":"inter"} ***!
  \***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/* cyrillic-ext */
@font-face {
  font-family: '__Inter_f367f3';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/_next/static/media/ba9851c3c22cd980-s.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: '__Inter_f367f3';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/_next/static/media/21350d82a1f187e9-s.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek-ext */
@font-face {
  font-family: '__Inter_f367f3';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/_next/static/media/c5fe6dc8356a8c31-s.woff2) format('woff2');
  unicode-range: U+1F00-1FFF;
}
/* greek */
@font-face {
  font-family: '__Inter_f367f3';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/_next/static/media/19cfc7226ec3afaa-s.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: '__Inter_f367f3';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/_next/static/media/df0a9ae256c0569c-s.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: '__Inter_f367f3';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/_next/static/media/8e9860b6e62d6359-s.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: '__Inter_f367f3';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/_next/static/media/e4af272ccee01ff0-s.p.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}@font-face {font-family: '__Inter_Fallback_f367f3';src: local("Arial");ascent-override: 90.49%;descent-override: 22.56%;line-gap-override: 0.00%;size-adjust: 107.06%
}.__className_f367f3 {font-family: '__Inter_f367f3', '__Inter_Fallback_f367f3';font-style: normal
}.__variable_f367f3 {--font-inter: '__Inter_f367f3', '__Inter_Fallback_f367f3'
}

/*!*********************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ../../node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[2]!../../node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[3]!./app/globals.css ***!
  \*********************************************************************************************************************************************************************************************************************************************************************/
/* ============================================================
   Design system — dark, restrained fintech palette.
   Dark is the default (trading terminals default dark); light is
   opt-in via the header toggle, see :root[data-theme="light"]
   below. Color is reserved for meaning: brand blue for
   actions/identity, green/red strictly for buy/sell and
   gains/losses, amber for caution.
   ============================================================ */

:root {
  /* Backgrounds — deep navy-black with a faint cool cast, not neutral gray */
  --bg-base: #090b12;
  --bg-surface: #11141d;
  --bg-surface-raised: #161a26;
  --bg-hover: #1b2030;
  --bg-input: #0c0e16;
  --bg-header: rgba(9, 11, 18, 0.78);

  /* Borders */
  --border: #22273a;
  --border-strong: #2d3348;

  /* Text */
  --text-primary: #f1f3f9;
  --text-secondary: #97a2ba;
  --text-tertiary: #5a6480;

  /* Brand — a single flat indigo. --brand-gradient is kept as a name so
     existing consumers keep working, but it now resolves to that one solid
     color rather than a two-stop blend. */
  --brand: #4f6bff;
  --brand-hover: #6c85ff;
  --brand-text: #93aaff;
  --brand-muted: rgba(79, 107, 255, 0.14);
  --brand-gradient: var(--brand);

  /* Semantic: buy/sell, gains/losses, status */
  --positive: #22c55e;
  --positive-text: #4ade80;
  --positive-muted: rgba(34, 197, 94, 0.13);
  --negative: #ef4444;
  --negative-text: #f87171;
  --negative-muted: rgba(239, 68, 68, 0.13);
  --warning: #f59e0b;
  --warning-text: #fbbf24;
  --warning-muted: rgba(245, 158, 11, 0.13);
  --info: #38bdf8;
  --info-text: #7dd3fc;
  --info-muted: rgba(56, 189, 248, 0.13);

  /* Radius */
  --radius-sm: 7px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 999px;

  /* Shadow — layered ambient + key for a sense of real depth */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.35);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.28), 0 2px 8px rgba(0, 0, 0, 0.24);
  --shadow-md: 0 2px 6px rgba(0, 0, 0, 0.28), 0 12px 32px rgba(0, 0, 0, 0.38);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.32), 0 28px 64px rgba(0, 0, 0, 0.52);
  --shadow-glow-brand: 0 4px 24px rgba(79, 107, 255, 0.35);
  --shadow-glow-positive: 0 4px 20px rgba(34, 197, 94, 0.25);

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Type */
  --font-sans: var(--font-inter), -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  color-scheme: dark;
}

/* Light theme — opt-in via the header toggle (persisted to localStorage,
   applied as data-theme on <html> before paint, see layout.tsx). Dark stays
   the default for everyone who hasn't chosen — no behavior change for
   existing users. Brand/semantic hues are kept identical across themes;
   only surfaces, borders, text, and shadow weight change. */
:root[data-theme="light"] {
  --bg-base: #f6f7fb;
  --bg-surface: #ffffff;
  --bg-surface-raised: #f1f3f9;
  --bg-hover: #e7eaf3;
  --bg-input: #ffffff;
  --bg-header: rgba(255, 255, 255, 0.78);

  --border: #e1e4ee;
  --border-strong: #cbd0e0;

  --text-primary: #12141c;
  --text-secondary: #4d5468;
  --text-tertiary: #848da3;

  --shadow-xs: 0 1px 2px rgba(23, 30, 55, 0.06);
  --shadow-sm: 0 1px 2px rgba(23, 30, 55, 0.05), 0 2px 8px rgba(23, 30, 55, 0.06);
  --shadow-md: 0 2px 6px rgba(23, 30, 55, 0.05), 0 12px 28px rgba(23, 30, 55, 0.08);
  --shadow-lg: 0 8px 16px rgba(23, 30, 55, 0.06), 0 24px 48px rgba(23, 30, 55, 0.1);

  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html,
body {
  padding: 0;
  margin: 0;
}

body {
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color 0.2s var(--ease-out), color 0.2s var(--ease-out);
}

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

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

p {
  margin: 0;
}

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

::selection {
  background: var(--brand-muted);
  color: var(--text-primary);
}

/* ---------- Layout ---------- */

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  /* Safety net against horizontal scroll from decorative bleed (the hero
     orb's negative inset, the rotated glass panel's widened bounding box).
     `clip` rather than `hidden` on purpose: `hidden` would turn this into a
     scroll container and break the sticky site header, whereas `clip`
     doesn't create one. Sources of overflow are also fixed at their origin
     below, so browsers without `clip` support still behave. */
  overflow-x: clip;
}

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  padding: 0 24px;
}

.main-content {
  flex: 1 1;
  padding: 40px 0 80px;
}

@media (max-width: 560px) {
  .container,
  .container-narrow {
    padding: 0 16px;
  }
  .main-content {
    padding-top: 24px;
  }
}

/* The marketing homepage runs wider than the app's 1080px reading width —
   it's a layout-led page (hero grid, feature/pricing cards) rather than a
   column of text. Sections that need to stay narrow (FAQ, centered intros)
   set their own max-width inline, which still wins over this. */
@media (min-width: 861px) {
  .home-page .container {
    max-width: 1280px;
  }
}

.stack {
  display: flex;
  flex-direction: column;
}

.row {
  display: flex;
  align-items: center;
}

.gap-xs {
  gap: 6px;
}
.gap-sm {
  gap: 12px;
}
.gap-md {
  gap: 20px;
}
.gap-lg {
  gap: 32px;
}

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

.spread {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

@media (max-width: 640px) {
  .spread {
    flex-wrap: wrap;
    row-gap: 10px;
  }
}

/* ---------- Typography ---------- */

.text-xs {
  font-size: 0.75rem;
}
.text-sm {
  font-size: 0.875rem;
}
.text-lg {
  font-size: 1.125rem;
}
.text-xl {
  font-size: 1.5rem;
}

.muted {
  color: var(--text-secondary);
}
.faint {
  color: var(--text-tertiary);
}
.mono {
  font-family: var(--font-mono);
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.positive {
  color: var(--positive-text);
}
.negative {
  color: var(--negative-text);
}

/* Kept as a class name for the emphasis span in headings; now a solid
   brand colour rather than a clipped gradient fill. */
.text-gradient {
  color: var(--brand-text);
}

.link-accent {
  color: var(--brand-text);
  font-weight: 600;
  transition: color 0.15s var(--ease-out);
}
.link-accent:hover {
  color: var(--brand-hover);
  text-decoration: underline;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 18px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s var(--ease-out), border-color 0.15s var(--ease-out),
    opacity 0.15s var(--ease-out), transform 0.15s var(--ease-out), box-shadow 0.15s var(--ease-out);
  white-space: nowrap;
}

.btn:active:not(:disabled) {
  transform: scale(0.97);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--brand-gradient);
  color: #ffffff;
  box-shadow: var(--shadow-glow-brand);
}
.btn-primary:hover:not(:disabled) {
  filter: brightness(1.08);
  box-shadow: 0 6px 28px rgba(79, 107, 255, 0.45);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--bg-surface-raised);
  border-color: var(--border-strong);
  color: var(--text-primary);
}
.btn-secondary:hover:not(:disabled) {
  background: var(--bg-hover);
  border-color: var(--border-strong);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}
.btn-ghost:hover:not(:disabled) {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.btn-danger {
  background: var(--negative-muted);
  color: var(--negative-text);
  border-color: rgba(239, 68, 68, 0.3);
}
.btn-danger:hover:not(:disabled) {
  background: rgba(239, 68, 68, 0.2);
}

.btn-sm {
  height: 32px;
  padding: 0 12px;
  font-size: 0.8rem;
}

.btn-block {
  width: 100%;
}

/* ---------- Cards & surfaces ---------- */

.card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.card-compact {
  padding: 16px;
}

.card-elevated {
  background: var(--bg-surface-raised);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-lg);
}

.card-interactive {
  cursor: pointer;
  transition: transform 0.2s var(--ease-out), border-color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}
.card-interactive:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

.tile {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-xs);
  transition: transform 0.2s var(--ease-out), border-color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}
.tile:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}

/* ---------- Forms ---------- */

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

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

.input,
select.input {
  height: 42px;
  padding: 0 14px;
  background: var(--bg-input);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.15s var(--ease-out), box-shadow 0.15s var(--ease-out);
  width: 100%;
}

.input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-muted);
}

.input::placeholder {
  color: var(--text-tertiary);
}

.checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  cursor: pointer;
}

.checkbox-label input {
  accent-color: var(--brand);
  width: 16px;
  height: 16px;
}

.form-error {
  background: var(--negative-muted);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: var(--negative-text);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.85rem;
}

.banner-success {
  background: var(--positive-muted);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: var(--positive-text);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.85rem;
}

.banner-info {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--info-muted);
  color: var(--text-secondary);
  font-size: 0.82rem;
  line-height: 1.55;
}
.banner-warning {
  background: var(--warning-muted);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: var(--warning-text);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.85rem;
}

/* ---------- Badges ---------- */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}

.badge-buy {
  background: var(--positive-muted);
  color: var(--positive-text);
  border: 1px solid rgba(34, 197, 94, 0.25);
}
.badge-sell {
  background: var(--negative-muted);
  color: var(--negative-text);
  border: 1px solid rgba(239, 68, 68, 0.25);
}
/* Leveraged direction badges. Deliberately not the spot green/red: a long
   that can be liquidated must not look like a spot buy at a glance. Violet and
   amber read as "leveraged" as a pair, while the ▲/▼ glyph still carries the
   direction, so the distinction survives for anyone who can't rely on hue. */
.badge-long {
  background: color-mix(in srgb, #8b5cf6 16%, transparent);
  color: #a78bfa;
  border: 1px solid color-mix(in srgb, #8b5cf6 40%, transparent);
  font-weight: 700;
}
.badge-short {
  background: color-mix(in srgb, #f97316 16%, transparent);
  color: #fb923c;
  border: 1px solid color-mix(in srgb, #f97316 40%, transparent);
  font-weight: 700;
}
/* The multiplier on every figure below it — reads as a unit, not decoration. */
.badge-leverage {
  background: color-mix(in srgb, var(--warning) 18%, transparent);
  color: var(--warning-text);
  border: 1px solid color-mix(in srgb, var(--warning) 45%, transparent);
  font-weight: 700;
  letter-spacing: 0.01em;
}

:root:not([data-theme="dark"]) .badge-long {
  color: #6d28d9;
}
:root:not([data-theme="dark"]) .badge-short {
  color: #c2410c;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .badge-long {
    color: #a78bfa;
  }
  :root:not([data-theme="light"]) .badge-short {
    color: #fb923c;
  }
}
:root[data-theme="dark"] .badge-long {
  color: #a78bfa;
}
:root[data-theme="dark"] .badge-short {
  color: #fb923c;
}

.badge-neutral {
  background: var(--bg-hover);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.badge-warning {
  background: var(--warning-muted);
  color: var(--warning-text);
  border: 1px solid rgba(245, 158, 11, 0.25);
}
.badge-info {
  background: var(--info-muted);
  color: var(--info-text);
  border: 1px solid rgba(56, 189, 248, 0.25);
}
.badge-brand {
  background: var(--brand-muted);
  color: var(--brand-text);
  border: 1px solid rgba(79, 107, 255, 0.25);
}

/* ---------- Tables ---------- */

.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

table.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  min-width: 560px;
}

.data-table thead th {
  text-align: left;
  padding: 12px 16px;
  color: var(--text-tertiary);
  font-weight: 600;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--border);
  background: var(--bg-surface-raised);
  white-space: nowrap;
}

.data-table tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  transition: background-color 0.1s var(--ease-out);
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

.data-table tbody tr:hover td {
  background: var(--bg-hover);
}

/* ---------- Empty / loading states ---------- */

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  padding: 56px 24px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  color: var(--text-secondary);
}

.empty-state-icon {
  font-size: 1.75rem;
  margin-bottom: 4px;
  opacity: 0.7;
}

.spinner {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--border-strong);
  border-top-color: var(--brand);
  animation: spin 0.7s linear infinite;
  flex-shrink: 0;
}

.loading-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 32px 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
  justify-content: center;
}

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

.skeleton {
  background: linear-gradient(90deg, var(--bg-surface-raised) 25%, var(--bg-hover) 37%, var(--bg-surface-raised) 63%);
  background-size: 400% 100%;
  animation: skeleton-loading 1.4s ease infinite;
  border-radius: var(--radius-sm);
}

@keyframes skeleton-loading {
  0% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0 50%;
  }
}

/* ---------- Settings rows + toggle switch ---------- */

.settings-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.settings-row:last-child {
  border-bottom: none;
}

.switch {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 24px;
  flex-shrink: 0;
}
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}
.switch-track {
  position: absolute;
  inset: 0;
  background: var(--bg-hover);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  transition: background-color 0.15s ease, border-color 0.15s ease;
  cursor: pointer;
}
.switch-track::before {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  left: 2px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--text-secondary);
  border-radius: 50%;
  transition: transform 0.15s ease, background-color 0.15s ease;
}
.switch input:checked + .switch-track {
  background: var(--brand-muted);
  border-color: var(--brand);
}
.switch input:checked + .switch-track::before {
  transform: translate(18px, -50%);
  background: var(--brand);
}
.switch input:disabled + .switch-track {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ---------- Checkout (custom-built payment UI) ---------- */

.checkout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  grid-gap: 24px;
  gap: 24px;
  align-items: start;
}
@media (max-width: 800px) {
  .checkout-grid {
    grid-template-columns: 1fr;
  }
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
}
.feature-item-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--positive-muted);
  color: var(--positive-text);
  font-size: 0.7rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.price-display {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.price-display .amount {
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.trust-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--text-tertiary);
}
.trust-row-icon {
  flex-shrink: 0;
  opacity: 0.85;
}

.divider {
  height: 1px;
  background: var(--border);
  border: none;
  margin: 0;
}

.currency-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  grid-gap: 10px;
  gap: 10px;
}

.currency-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 14px 10px;
  background: var(--bg-surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s var(--ease-out), background-color 0.15s var(--ease-out),
    transform 0.15s var(--ease-out), box-shadow 0.15s var(--ease-out);
}
.currency-chip:hover:not(:disabled) {
  border-color: var(--border-strong);
  background: var(--bg-hover);
  transform: translateY(-1px);
}
.currency-chip:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.currency-chip.selected {
  border-color: var(--brand);
  background: var(--brand-muted);
  box-shadow: 0 0 0 3px var(--brand-muted);
}
.currency-chip .ticker {
  font-family: var(--font-mono);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-primary);
}
.currency-chip .chain-label {
  font-size: 0.66rem;
  font-weight: 500;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.payment-panel {
  animation: fade-in-up 0.35s var(--ease-out);
}

.fade-in-up {
  animation: fade-in-up 0.5s var(--ease-out);
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.qr-box {
  display: inline-flex;
  padding: 14px;
  background: #ffffff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  line-height: 0;
}

.address-box {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
}
.address-box .value {
  flex: 1 1;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-primary);
  word-break: break-all;
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg-surface-raised);
  color: var(--text-secondary);
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.15s var(--ease-out);
}
.copy-btn:hover {
  border-color: var(--border-strong);
  color: var(--text-primary);
  background: var(--bg-hover);
}
.copy-btn.copied {
  border-color: rgba(34, 197, 94, 0.4);
  background: var(--positive-muted);
  color: var(--positive-text);
}

.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
}

.pulse-dot {
  position: relative;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}
.pulse-dot::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.35;
  animation: pulse-ring 1.6s var(--ease-out) infinite;
}
@keyframes pulse-ring {
  0% {
    transform: scale(0.6);
    opacity: 0.45;
  }
  70% {
    transform: scale(1.8);
    opacity: 0;
  }
  100% {
    transform: scale(1.8);
    opacity: 0;
  }
}

.memo-callout {
  display: flex;
  gap: 10px;
  padding: 12px 14px;
  background: var(--warning-muted);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  color: var(--warning-text);
  line-height: 1.5;
}

/* ---------- Disclaimer ---------- */

.disclaimer {
  background: var(--bg-surface-raised);
  border: 1px solid var(--border);
  border-left: 3px solid var(--warning);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

/* ---------- Signal card bits ---------- */

.confidence-bar {
  height: 6px;
  border-radius: 999px;
  background: var(--bg-hover);
  overflow: hidden;
}
.confidence-bar-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.3s ease;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.78rem;
  color: var(--text-secondary);
  background: var(--bg-surface-raised);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}
.chip strong {
  color: var(--text-primary);
  font-weight: 600;
}
/* The one chip that answers "what does being wrong cost me" — given a warning
   tint so it reads before the position size next to it, without shouting. */
.chip-risk {
  border-color: color-mix(in srgb, var(--warning) 45%, var(--border));
  background: color-mix(in srgb, var(--warning) 10%, var(--bg-surface-raised));
}
.chip-risk strong {
  color: var(--warning);
}
/* Margin is the cash actually posted and the most a liquidation takes, so it
   carries weight the notional chip beside it deliberately doesn't. */
.chip-margin strong {
  color: var(--text-primary);
  font-weight: 700;
}
.chip-margin {
  border-color: color-mix(in srgb, var(--text-primary) 22%, var(--border));
}
.chip-liquidation {
  border-color: color-mix(in srgb, var(--negative) 40%, var(--border));
  background: color-mix(in srgb, var(--negative) 8%, var(--bg-surface-raised));
}
.chip-liquidation strong {
  color: var(--negative-text);
}

/* Sections rather than one interleaved list. The futures band is tinted and
   rail-marked so the boundary is visible while scrolling — the point is that a
   reader never carries spot assumptions onto a leveraged card. */
/* Collapsed by default so a settings page stays a form — the explanation is
   available to anyone who wants it, in one place, rather than spread across
   every field's helper text. */
details.card > summary {
  list-style: none;
  color: var(--text-secondary);
}
details.card > summary::-webkit-details-marker {
  display: none;
}
details.card > summary::before {
  content: "▸ ";
  color: var(--text-tertiary, var(--text-secondary));
}
details.card[open] > summary::before {
  content: "▾ ";
}

/* Unread count on the header bell. Positioned on the button itself so it
   tracks the icon rather than the header layout. */
.notification-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: var(--radius-full);
  background: var(--negative);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
}
.icon-btn {
  position: relative;
}
.notification-list {
  max-height: 320px;
  overflow-y: auto;
}
.notification-item {
  padding: 8px 12px;
  border-top: 1px solid var(--border);
}
.notification-item a {
  color: inherit;
  text-decoration: none;
}
/* A left rail rather than a background wash: it survives both themes and
   doesn't fight the dropdown's own surface colour. */
.notification-item-unread {
  border-left: 2px solid var(--accent, var(--warning));
  background: color-mix(in srgb, var(--warning) 6%, transparent);
}

.signal-section + .signal-section {
  margin-top: 32px;
}
.signal-section-futures {
  border-left: 3px solid color-mix(in srgb, var(--warning) 55%, transparent);
  background: color-mix(in srgb, var(--warning) 5%, transparent);
  border-radius: var(--radius-sm);
  padding: 16px 16px 18px 14px;
}

.signal-card {
  transition: border-color 0.2s var(--ease-out), transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}
.signal-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ---------- Site header ---------- */

.site-header {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bg-header);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--border);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-primary);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--brand-gradient);
  color: #fff;
  font-weight: 800;
  font-size: 0.85rem;
  flex-shrink: 0;
  box-shadow: var(--shadow-glow-brand);
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s var(--ease-out), border-color 0.15s var(--ease-out);
}
.nav-link:hover {
  color: var(--text-primary);
}
.nav-link.active {
  color: var(--text-primary);
  border-bottom-color: var(--brand);
}

.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg-surface-raised);
  color: var(--text-secondary);
  font-size: 1rem;
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color 0.15s var(--ease-out), border-color 0.15s var(--ease-out), transform 0.15s var(--ease-out);
}
.theme-toggle-btn:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
  transform: translateY(-1px);
}

.language-select {
  height: 36px;
  padding: 0 10px;
  background: var(--bg-surface-raised);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  outline: none;
  transition: border-color 0.15s var(--ease-out), color 0.15s var(--ease-out);
}
.language-select:hover {
  color: var(--text-primary);
  border-color: var(--border-strong);
}
.language-select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-muted);
}

/* Flag-only square, sized to sit flush beside .theme-toggle-btn (36px). The
   native dropdown arrow is suppressed so the flag can sit centered. */
.language-select-compact {
  width: 36px;
  height: 36px;
  padding: 0;
  text-align: center;
  text-align-last: center;
  font-size: 1rem;
  -moz-appearance: none;
       appearance: none;
  -webkit-appearance: none;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  color: var(--text-tertiary);
  font-size: 0.8rem;
}

/* ---------- Site header: desktop nav + mobile bottom tab bar ---------- */

/* Nav links sit left, right after the logo — the icon cluster
   (theme/notifications/profile) is pushed to the far right via
   margin-left: auto on .site-header-icons. Desktop only; replaced by
   .mobile-tab-bar below the header-icons breakpoint. */
.site-header-nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Public/marketing menu variant — its items are .site-menu-trigger buttons
   which carry their own horizontal padding, so they need far less gap than
   the bare in-app .nav-link text links. */
.site-header-public-nav {
  gap: 2px;
}

.site-header-icons {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

/* ---------- Logged-out mobile menu (hamburger + dropdown panel) ---------- */

/* Hidden on desktop — the inline theme/log-in/sign-up controls in
   .site-header-icons are shown there instead. The two swap at 860px. */
.site-header-mobile-menu {
  display: none;
  position: relative;
  margin-left: auto;
}

/* Deliberately chrome-free: no background, no border, no hover fill —
   just the bold glyph itself (see IconMenu in components/icons.tsx). */
.mobile-menu-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  line-height: 0;
}

/* Full-screen overlay — covers the header too, hence its own brand row and
   close button inside .mobile-menu-panel-header. */
.mobile-menu-panel {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  background: var(--bg-base);
  animation: fade-in-up 0.15s var(--ease-out);
}

.mobile-menu-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 16px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.mobile-menu-panel-body {
  flex: 1 1;
  overflow-y: auto;
  padding: 20px 16px;
}

.mobile-menu-panel-footer {
  padding: 16px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}
.mobile-menu-panel-footer .language-select {
  width: 100%;
}

/* Auth buttons sit at the top of the panel body, above the menu links. */
.mobile-menu-actions {
  display: flex;
  gap: 12px;
  padding-bottom: 20px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
/* Share the row evenly whether that's Log in + Sign up, or the single
   "Go to portfolio" link a signed-in visitor sees on the homepage. */
.mobile-menu-actions .btn {
  flex: 1 1;
  justify-content: center;
}

.mobile-menu-links {
  display: flex;
  flex-direction: column;
}
.mobile-menu-links a {
  display: block;
  padding: 12px 10px;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-primary);
}
.mobile-menu-links a:hover {
  background: var(--bg-hover);
}
.mobile-menu-links .mobile-menu-sublink {
  padding-left: 22px;
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.mobile-menu-group-label {
  display: block;
  padding: 12px 10px 4px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-tertiary);
}

@media (max-width: 860px) {
  /* Swap the inline guest controls for the hamburger. Only the logged-out
     header collapses this way — a logged-in user already has the bottom
     tab bar plus the profile menu, so their icon cluster stays inline. */
  .site-header-icons-guest {
    display: none;
  }
  .site-header-mobile-menu {
    display: block;
  }
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg-surface-raised);
  color: var(--text-secondary);
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.15s var(--ease-out), color 0.15s var(--ease-out), transform 0.15s var(--ease-out);
  position: relative;
}
.icon-btn:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
  transform: translateY(-1px);
}

.icon-btn-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
  border: 2px solid var(--bg-surface-raised);
}

.mobile-tab-bar {
  display: none;
}

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

  .mobile-tab-bar {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 25;
    background: var(--bg-header);
    backdrop-filter: blur(14px) saturate(1.4);
    -webkit-backdrop-filter: blur(14px) saturate(1.4);
    border-top: 1px solid var(--border);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px));
  }

  .main-content {
    padding-bottom: 96px;
  }
}

.mobile-tab-bar-item {
  flex: 1 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 6px 2px;
  color: var(--text-tertiary);
  font-size: 0.65rem;
  font-weight: 500;
}
.mobile-tab-bar-item span:first-child {
  font-size: 1.15rem;
  line-height: 1;
}
.mobile-tab-bar-item.active {
  color: var(--brand-text);
}

/* ---------- Admin: left sidebar layout ---------- */

.admin-shell {
  display: flex;
  min-height: 100vh;
}

.admin-sidebar {
  width: 240px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg-surface);
  border-right: 1px solid var(--border);
  padding: 20px 14px;
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.admin-sidebar-brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.admin-sidebar-brand {
  padding: 0 10px;
}

.admin-sidebar-close {
  display: none;
}

.admin-mobile-topbar {
  display: none;
}

.admin-sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 45;
}

.admin-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  flex: 1 1;
}

.admin-sidebar-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.admin-sidebar-group-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
  padding: 0 10px;
  margin-bottom: 6px;
}

.admin-sidebar-link {
  display: flex;
  align-items: center;
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.86rem;
  font-weight: 500;
  transition: background-color 0.12s var(--ease-out), color 0.12s var(--ease-out);
}
.admin-sidebar-link:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}
.admin-sidebar-link.active {
  background: var(--brand-muted);
  color: var(--brand-text);
  font-weight: 600;
}

.admin-sidebar-footer {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.admin-main {
  flex: 1 1;
  min-width: 0;
  max-width: 1200px;
  padding: 40px 40px 80px;
}

@media (max-width: 860px) {
  .admin-shell {
    flex-direction: column;
  }

  /* The sidebar keeps the exact same vertical, grouped layout as desktop —
     it just lives off-canvas until the hamburger in .admin-mobile-topbar
     opens it, instead of being replaced by a different mobile nav style. */
  .admin-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 260px;
    max-width: 82vw;
    height: 100vh;
    transform: translateX(-100%);
    transition: transform 0.2s var(--ease-out);
    z-index: 50;
    box-shadow: var(--shadow-lg);
  }
  .admin-sidebar.open {
    transform: translateX(0);
  }
  .admin-sidebar-close {
    display: inline-flex;
  }

  .admin-mobile-topbar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 30;
    background: var(--bg-header);
    backdrop-filter: blur(14px) saturate(1.4);
    -webkit-backdrop-filter: blur(14px) saturate(1.4);
  }

  .admin-main {
    max-width: none;
    padding: 24px 16px 56px;
  }
}

/* ---------- Quiz ---------- */

.quiz-option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 16px 18px;
  background: var(--bg-surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.4;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s var(--ease-out), background-color 0.15s var(--ease-out),
    transform 0.15s var(--ease-out), box-shadow 0.15s var(--ease-out);
}
.quiz-option:hover {
  border-color: var(--border-strong);
  background: var(--bg-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
.quiz-option:active {
  transform: scale(0.99);
}
.quiz-option.selected {
  border-color: var(--brand);
  background: var(--brand-muted);
  box-shadow: 0 0 0 3px var(--brand-muted);
}

.trader-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  font-size: 2.6rem;
  background: var(--brand-gradient);
  box-shadow: var(--shadow-glow-brand);
  flex-shrink: 0;
}

.readiness-meter {
  display: flex;
  gap: 8px;
}

.readiness-segment {
  flex: 1 1;
  text-align: center;
  padding: 10px 8px;
  border-radius: var(--radius-sm);
  background: var(--bg-hover);
  border: 1px solid var(--border);
  color: var(--text-tertiary);
  font-size: 0.8rem;
  font-weight: 600;
  transition: background 0.2s var(--ease-out), color 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
}
.readiness-segment.active {
  background: var(--brand-gradient);
  color: #fff;
  border-color: transparent;
  box-shadow: var(--shadow-glow-brand);
}

/* ---------- FAQ accordion ---------- */

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.faq-chevron {
  flex-shrink: 0;
  color: var(--text-tertiary);
  transition: transform 0.2s var(--ease-out);
}
.faq-item.open .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 20px 18px;
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.65;
}

/* ---------- Closing CTA band ---------- */

.cta-band {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--brand-muted);
  padding: 56px 32px;
  text-align: center;
}

/* ---------- Ticker bar ---------- */

/* Sits as its own band below the hero (see app/page.tsx), so it needs a
   border on both edges — it used to be flush against the top of the page. */
.ticker-bar {
  overflow: hidden;
  background: var(--bg-surface-raised);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 9px 0;
}

.ticker-track {
  display: flex;
  width: max-content;
  gap: 36px;
  animation: ticker-scroll 26s linear infinite;
}
.ticker-bar:hover .ticker-track {
  animation-play-state: paused;
}

.ticker-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  white-space: nowrap;
  flex-shrink: 0;
}

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

@media (prefers-reduced-motion: reduce) {
  .ticker-track {
    animation: none;
    overflow-x: auto;
  }
}

/* ---------- Homepage typography + rhythm ----------
   These were inline styles, which no media query can override — moved here
   so they can scale fluidly instead of staying at desktop size on a phone. */

.hero-section {
  padding: 88px 0 0;
}

.hero-title {
  font-size: clamp(1.9rem, 7vw, 2.9rem);
  margin-top: 18px;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.section-title {
  font-size: clamp(1.4rem, 5vw, 1.85rem);
  margin-top: 12px;
  line-height: 1.2;
}

/* Vertical rhythm between homepage sections — 96px reads as a huge dead gap
   on a short phone screen. */
.home-section {
  margin-top: 96px;
}

/* Homepage card grids: one column below 620px so a 240px min-width can't
   force a squeeze on narrow phones. */
.home-page .grid-auto {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

@media (max-width: 860px) {
  .home-section {
    margin-top: 64px;
  }
  .hero-section {
    padding-top: 56px;
  }
}

@media (max-width: 620px) {
  .home-section {
    margin-top: 52px;
  }
  .hero-section {
    padding-top: 40px;
  }
  .home-page .grid-auto,
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  /* The hero's top padding is set inline on the section; this trims the
     runway beneath the header on small screens. */
  .home-page .hero-grid {
    gap: 36px;
  }
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
  .cta-band {
    padding: 28px 18px;
  }
}

/* ---------- Homepage pricing cards ---------- */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  grid-gap: 20px;
  gap: 20px;
  align-items: stretch;
}

.pricing-card {
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}
.pricing-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}
.pricing-card.featured {
  border-color: var(--brand);
  box-shadow: var(--shadow-glow-brand);
}

.pricing-amount {
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-top: 10px;
  line-height: 1.1;
}

.pricing-features {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ---------- Auth pages (log in / sign up / change password) ---------- */

.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 20px;
  position: relative;
  background: var(--bg-base);
}

/* Logo / wordmark centered above the card — the only site chrome on an auth
   page, and the way back to the homepage. Sized generously since it's the
   sole brand cue here. A `min-height` reserves the row so the card doesn't
   jump when the name/logo arrives from the client-side settings fetch. */
.auth-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  min-height: 46px;
  margin-bottom: 26px;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  transition: opacity 0.15s var(--ease-out);
}
.auth-brand:hover {
  opacity: 0.82;
}
.auth-brand img {
  height: 44px;
  width: auto;
  border-radius: 11px;
}
.auth-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
  font-size: 1.2rem;
  box-shadow: var(--shadow-glow-brand);
}

.auth-card-wrap {
  width: 100%;
  /* Wider than the old 400px so the card carries the page on its own
     rather than looking marooned in the middle of it. */
  max-width: 460px;
  margin: 0 auto;
}

.auth-card {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  padding: 40px 38px 38px;
}
/* Hairline brand gradient along the top edge — enough to lift the card off
   a flat surface without adding chrome that competes with the form. */
.auth-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 22px;
  right: 22px;
  height: 1px;
  border-radius: 1px;
  background: var(--brand);
  opacity: 0.75;
}

.auth-title {
  font-size: 1.45rem;
  letter-spacing: -0.025em;
  text-align: center;
}

.auth-subtitle {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.55;
  text-align: center;
  margin-top: 8px;
}

.auth-card-body {
  margin-top: 28px;
}

.auth-footer {
  text-align: center;
  margin-top: 22px;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.google-btn {
  gap: 10px;
}

/* "or" rule between the Google button and the email form. */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  color: var(--text-tertiary);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1 1;
  height: 1px;
  background: var(--border);
}

.auth-form-meta {
  display: flex;
  justify-content: flex-end;
  margin-top: -4px;
}

/* ---------- Settings tabs ---------- */

.settings-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--border);
  /* Scrolls rather than wrapping on narrow screens, so the tab row stays
     one line and the active tab is always reachable. */
  overflow-x: auto;
  scrollbar-width: none;
}
.settings-tabs::-webkit-scrollbar {
  display: none;
}

.settings-tab {
  flex-shrink: 0;
  padding: 10px 14px;
  border: none;
  background: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.15s var(--ease-out), border-color 0.15s var(--ease-out);
}
.settings-tab:hover {
  color: var(--text-primary);
}
.settings-tab.active {
  color: var(--brand-text);
  border-bottom-color: var(--brand);
  font-weight: 600;
}

/* Post-signup "where did you hear about us?" choices. */
.referral-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 8px;
  gap: 8px;
}
@media (max-width: 420px) {
  .referral-options {
    grid-template-columns: 1fr;
  }
}

.referral-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-surface-raised);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s var(--ease-out), background-color 0.15s var(--ease-out), color 0.15s var(--ease-out);
}
.referral-option:hover {
  border-color: var(--border-strong);
  color: var(--text-primary);
}
.referral-option.selected {
  border-color: var(--brand);
  background: var(--brand-muted);
  color: var(--brand-text);
}

/* 6-digit verification / TOTP code entry — wide tracking so the digits read
   as separate characters rather than one number. */
.otp-input {
  text-align: center;
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 1.5rem;
  letter-spacing: 0.4em;
  text-indent: 0.4em;
  padding-top: 12px;
  padding-bottom: 12px;
}

@media (max-width: 560px) {
  /* Tighter page gutters so the card itself claims more of the screen —
     previously it lost 32px of width to the page and another 40px to its
     own padding, which is what made it read as small on a phone. */
  .auth-page {
    padding: 28px 12px 40px;
    align-items: flex-start;
  }
  .auth-card {
    /* Only slightly tighter than desktop, not half of it. */
    padding: 32px 24px 30px;
    border-radius: 18px;
  }
  .auth-card-body {
    margin-top: 24px;
  }
  .auth-brand {
    min-height: 42px;
    margin-bottom: 22px;
    font-size: 1.1rem;
  }
  .auth-brand img,
  .auth-brand-mark {
    height: 40px;
    width: auto;
  }
  .auth-brand-mark {
    width: 40px;
    font-size: 1.1rem;
  }
  .auth-title {
    font-size: 1.35rem;
  }
}

/* ---------- Menu triggers + dropdown panels ----------
   Shared by the admin-editable public menu rendered inline in the header
   (see .site-header-public-nav / SiteHeader) and by the header's own
   dropdowns (ProfileMenu, NotificationBell). */

.site-menu-item {
  position: relative;
}

.site-menu-trigger {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: none;
  background: none;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.15s var(--ease-out), background-color 0.15s var(--ease-out);
}
.site-menu-trigger:hover,
.site-menu-item.open .site-menu-trigger {
  color: var(--text-primary);
  background: var(--bg-hover);
}

.site-menu-caret {
  font-size: 0.6rem;
  transition: transform 0.15s var(--ease-out);
}
.site-menu-item.open .site-menu-caret {
  transform: rotate(180deg);
}

.site-menu-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 200px;
  background: var(--bg-surface-raised);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 6px;
  z-index: 30;
  animation: fade-in-up 0.15s var(--ease-out);
}
.site-menu-dropdown a {
  display: block;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: background-color 0.12s var(--ease-out), color 0.12s var(--ease-out);
}
.site-menu-dropdown a:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.site-menu-dropdown-right {
  left: auto;
  right: 0;
}

.profile-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--brand-gradient);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}

.profile-menu-dropdown button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--text-secondary);
  background: none;
  border: none;
  cursor: pointer;
  transition: background-color 0.12s var(--ease-out), color 0.12s var(--ease-out);
}
.profile-menu-dropdown button:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

/* ---------- Hero: two-column layout + decorative visual ---------- */

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  grid-gap: 56px;
  gap: 56px;
  align-items: center;
  text-align: left;
}
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
@media (max-width: 900px) {
  .hero-actions {
    justify-content: center;
  }
}

.hero-visual-frame {
  position: relative;
}
.hero-visual-frame img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-lg);
}

/* The -60px bleed is what gives the hero glow its soft edge on desktop. On
   a phone the frame already spans the viewport, so that bleed lands
   off-screen and drags a horizontal scrollbar with it — pulled in tight
   below the mobile breakpoint, where the glow reads the same anyway. */
.hero-orb {
  position: absolute;
  inset: -60px;
  background: var(--brand-muted);
  filter: blur(10px);
  z-index: -1;
  opacity: 0.9;
  animation: orb-pulse 6s var(--ease-out) infinite;
}
@keyframes orb-pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.85;
  }
  50% {
    transform: scale(1.06);
    opacity: 1;
  }
}

.hero-glass-panel {
  position: relative;
  background: var(--bg-surface-raised);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-lg);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  transform: rotate(-1.2deg);
  transition: transform 0.4s var(--ease-out);
}
.hero-glass-panel:hover {
  transform: rotate(0deg) translateY(-3px);
}

.hero-ring {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.95rem;
  flex-shrink: 0;
}

/* ---------- How it works: step badges ---------- */

.step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--brand-gradient);
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  box-shadow: var(--shadow-glow-brand);
  flex-shrink: 0;
}

/* ---------- Mockup section: optional screenshot column ---------- */

.mockup-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-gap: 32px;
  gap: 32px;
  align-items: center;
}
@media (max-width: 800px) {
  .mockup-grid {
    grid-template-columns: 1fr;
  }
}

.mockup-screenshot {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-lg);
}
.mockup-screenshot img {
  display: block;
  width: 100%;
  height: auto;
}

/* ---------- Section texture (subtle dotted fade, decorative) ---------- */

.section-dotted {
  position: relative;
}
.section-dotted::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--border) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 700px 320px at 50% 0%, black, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 700px 320px at 50% 0%, black, transparent 75%);
  opacity: 0.5;
  pointer-events: none;
}

/* Mobile: neutralise the two things that push past the viewport edge —
   the hero orb's negative inset and the glass panel's rotation (a rotated
   box's bounding area is wider than its layout width). */
@media (max-width: 860px) {
  .hero-orb {
    inset: -12px;
  }
  .hero-glass-panel {
    transform: none;
  }
  .hero-glass-panel:hover {
    transform: translateY(-3px);
  }
}

/* ---------- Footer menu ---------- */

.footer-menu {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-menu a {
  font-size: 0.8rem;
  color: var(--text-secondary);
  transition: color 0.15s var(--ease-out);
}
.footer-menu a:hover {
  color: var(--text-primary);
}

/* ---------- Admin CMS: menu tree, page editor, image slots ---------- */

.menu-tree-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
}
.menu-tree-item.child {
  margin-left: 28px;
  background: var(--bg-surface-raised);
}

.image-slot-card {
  display: grid;
  grid-template-columns: 160px 1fr;
  grid-gap: 20px;
  gap: 20px;
  align-items: start;
}
@media (max-width: 640px) {
  .image-slot-card {
    grid-template-columns: 1fr;
  }
}

.image-slot-preview {
  width: 160px;
  height: 100px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-input);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-tertiary);
  font-size: 0.7rem;
  text-align: center;
  flex-shrink: 0;
}
.image-slot-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.markdown-editor {
  width: 100%;
  min-height: 320px;
  padding: 14px;
  background: var(--bg-input);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.6;
  resize: vertical;
  outline: none;
  transition: border-color 0.15s var(--ease-out), box-shadow 0.15s var(--ease-out);
}
.markdown-editor:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-muted);
}

.page-content {
  color: var(--text-secondary);
  line-height: 1.75;
  font-size: 0.98rem;
}
.page-content h1,
.page-content h2,
.page-content h3 {
  color: var(--text-primary);
  margin-top: 1.6em;
  margin-bottom: 0.5em;
}
.page-content h1:first-child,
.page-content h2:first-child,
.page-content h3:first-child {
  margin-top: 0;
}
.page-content p {
  margin: 1em 0;
}
.page-content a {
  color: var(--brand-text);
  text-decoration: underline;
}
.page-content ul,
.page-content ol {
  margin: 1em 0;
  padding-left: 1.4em;
  list-style: revert;
}
.page-content li {
  margin: 0.35em 0;
}
.page-content code {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 6px;
  font-family: var(--font-mono);
  font-size: 0.85em;
}
.page-content strong {
  color: var(--text-primary);
}

/* ---------- Scrollbar (webkit) ---------- */

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-tertiary);
}

/* ---------- Modal (admin edit dialogs) ---------- */

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.55);
  overflow-y: auto;
}

.modal-panel {
  width: 100%;
  max-width: 460px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 24px;
  animation: fade-in-up 0.15s var(--ease-out);
}

/* ---------- Marketing icon treatment ---------- */

/* Rounded-square tile with a tinted brand wash — replaces the old solid
   gradient circle that held an emoji. Line icons need a lighter ground than
   an emoji did, or the stroke disappears into the fill. */
.feature-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: var(--brand-muted);
  border: 1px solid var(--border-strong);
  color: var(--brand-text);
  flex-shrink: 0;
  transition: border-color 0.2s var(--ease-out), transform 0.2s var(--ease-out), color 0.2s var(--ease-out);
}
.tile:hover .feature-badge,
.card:hover .feature-badge {
  border-color: var(--brand);
  color: var(--brand-hover);
  transform: translateY(-1px);
}

/* Inline check used in the trust bar and pricing feature lists. */
.trust-check {
  color: var(--positive-text);
  flex-shrink: 0;
}

/* "Not included" marker in a pricing feature row. */
.feature-dot {
  display: inline-block;
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  position: relative;
}
.feature-dot::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: var(--text-tertiary);
}

/* Feature/step tiles: lift the whole card, not just the icon. */
.home-page .tile {
  transition: border-color 0.2s var(--ease-out), transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}
.home-page .tile:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ============================================================
   Marketing surface refinements
   Scoped to .home-page so the app's denser UI is untouched.
   ============================================================ */

/* Inter benefits from tighter tracking at display sizes; the browser
   default is tuned for body text and reads loose on big headings. */
.home-page h1,
.home-page h2,
.home-page h3 {
  letter-spacing: -0.025em;
}

.hero-title {
  font-weight: 700;
}

/* Eyebrow as a pill rather than loose caps floating above a heading —
   gives each section a defined starting point. */
.home-page .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-strong);
  background: var(--bg-surface-raised);
  color: var(--text-secondary);
  font-size: 0.7rem;
  letter-spacing: 0.09em;
}
.home-page .eyebrow::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-muted);
}

/* Section intros get real breathing room between eyebrow, heading and body. */
.home-page .section-title {
  margin-top: 18px;
}

/* Softer, larger-radius cards with a light top sheen — reads closer to a
   product surface than a bordered box. */
.home-page .card,
.home-page .tile {
  border-radius: 16px;
  background: var(--bg-surface);
}
:root[data-theme="light"] .home-page .card,
:root[data-theme="light"] .home-page .tile {
  background: var(--bg-surface);
}

/* Trust bar: separated pills instead of a run-on row of ticks. */
.trust-bar-inner {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  padding: 20px 24px;
}
.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.3;
}

/* Closing CTA reads as a designed panel rather than a tinted rectangle. */
.cta-band {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  padding: 64px 32px;
}
/* The band's own flat brand tint carries it now — no overlay wash. */
.cta-band::before {
  display: none;
}
.cta-band > * {
  position: relative;
}

/* Pricing: give the live-trading plan real prominence rather than just a
   glow, and let its features breathe. */
.pricing-card {
  border-radius: 16px;
  padding: 28px 24px;
}
.pricing-card.featured {
  background: var(--brand-muted);
}

@media (max-width: 620px) {
  .cta-band {
    padding: 40px 20px;
    border-radius: 18px;
  }
  .trust-bar-inner {
    padding: 16px;
  }
}

/* ---------- Exchange IP whitelist notice ---------- */

.ip-notice {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--bg-surface-raised);
  padding: 16px 18px;
}

.ip-notice-value {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-input);
}
.ip-notice-value code {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
  word-break: break-all;
}

.ip-notice-steps {
  list-style: decimal;
  margin: 8px 0 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ip-notice-steps li {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* Selectable strategy rows (Admin → Strategy). Buttons rather than links:
   selection is local state, not navigation, so there's no URL to point at. */
.strategy-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  text-align: left;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  cursor: pointer;
  transition: background-color 0.12s var(--ease-out), border-color 0.12s var(--ease-out);
}
.strategy-row:hover {
  background: var(--bg-hover);
  border-color: var(--border-strong);
}
.strategy-row.selected {
  border-color: var(--brand);
  background: var(--brand-muted);
}
.strategy-row-main {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.strategy-row-name {
  font-weight: 600;
  font-size: 0.92rem;
}

