/* Finora — Plax/Avo-inspired private-markets theme (original) */

:root {
  --bg: #07111a;
  --bg-elevated: #0d1b28;
  --bg-soft: #122536;
  --surface: #ffffff;
  --surface-muted: #f3f6f8;
  --ink: #0c1a24;
  --ink-inv: #eef4f7;
  --muted: #5c6b76;
  --muted-inv: #9aadb8;
  --line: #dde5eb;
  --line-dark: #1a3042;
  --accent: #1a9b8e;
  --accent-ink: #fff;
  --accent-soft: rgba(26, 155, 142, 0.14);
  --accent-bright: #2dd4bf;
  --brand: #1a9b8e;
  --brand-ink: #0f766e;
  --brand-soft: var(--accent-soft);
  --gold: #c9a66b;
  --pos: #0f8a5f;
  --neg: #c44b3c;
  --danger: #c44b3c;
  --danger-bg: #fceeed;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(12, 26, 36, 0.04), 0 12px 32px rgba(12, 26, 36, 0.06);
  --font: "Plus Jakarta Sans", system-ui, sans-serif;
  --display: "Fraunces", "Times New Roman", serif;
  --container: 1140px;
  --header-h: 76px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body {
  margin: 0;
  min-height: 100%;
}

body.site {
  font-family: var(--font);
  color: var(--ink);
  background: var(--surface-muted);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}

a {
  color: var(--brand-ink);
  text-decoration: none;
  font-weight: 600;
}

a:hover { text-decoration: underline; text-underline-offset: 3px; }

h1, h2, h3 {
  font-family: var(--display);
  letter-spacing: -0.02em;
  line-height: 1.18;
  margin: 0;
  font-weight: 600;
}

h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.2rem; font-family: var(--font); font-weight: 700; letter-spacing: -0.01em; }

.muted { color: var(--muted); }
.small { font-size: 0.8125rem; }
.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

/* ——— Logo ——— */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none !important;
  font-weight: 700;
}
.logo-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background:
    linear-gradient(145deg, var(--accent-bright) 0%, var(--accent) 55%, #0f766e 100%);
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.2);
}
.logo-mark::after {
  content: "";
  position: absolute;
  inset: 8px 7px 8px 14px;
  border-right: 2.5px solid rgba(255,255,255,.92);
  border-bottom: 2.5px solid rgba(255,255,255,.92);
  transform: skewX(-12deg);
  opacity: 0.95;
}
.logo-text {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-transform: none;
}

/* ——— Header ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 17, 26, 0.88);
  backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid rgba(255,255,255,.06);
  color: var(--ink-inv);
}
.site-header__inner {
  width: min(100% - 40px, var(--container));
  margin: 0 auto;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 6px 20px;
  flex-wrap: wrap;
}
.site-nav a {
  color: var(--muted-inv);
  font-size: 0.875rem;
  font-weight: 560;
  text-decoration: none;
  transition: color .2s ease;
}
.site-nav a:hover,
.site-nav a.active { color: #fff; }
.nav-logout { margin: 0; display: inline; }
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius-sm);
  background: transparent;
  padding: 10px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}

/* ——— Buttons ——— */
.btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 11px 22px;
  font: inherit;
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  text-decoration: none !important;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn.block { width: 100%; }
.btn.sm { padding: 8px 14px; font-size: 0.8rem; }
.btn.lg { padding: 14px 28px; font-size: 0.95rem; }
.btn.accent {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(26, 155, 142, 0.28);
}
.btn.accent:hover { background: #158a7e; border-color: #158a7e; }
.btn.ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.28);
}
.btn.ghost:hover { border-color: #fff; background: rgba(255,255,255,.06); }
.btn.primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(26, 155, 142, 0.22);
}
.btn:not(.accent):not(.ghost):not(.primary) {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

/* ——— Hero ——— */
.hero {
  position: relative;
  background: var(--bg);
  color: var(--ink-inv);
  min-height: min(92vh, 780px);
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 72px 0 88px;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 88% 12%, rgba(45, 212, 191, 0.18), transparent 55%),
    radial-gradient(ellipse 50% 45% at 8% 88%, rgba(201, 166, 107, 0.1), transparent 50%),
    radial-gradient(ellipse 70% 50% at 50% 50%, rgba(13, 27, 40, 0.4), transparent 70%),
    linear-gradient(165deg, #07111a 0%, #0a1a28 45%, #0d2233 100%);
  pointer-events: none;
}
.hero__bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 20%, transparent 75%);
  opacity: 0.7;
  animation: grid-drift 40s linear infinite;
}
.hero__bg::after {
  content: "";
  position: absolute;
  width: 480px;
  height: 480px;
  right: -60px;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 50%;
  border: 1px solid rgba(45, 212, 191, 0.15);
  box-shadow:
    inset 0 0 0 40px rgba(45, 212, 191, 0.03),
    inset 0 0 0 80px rgba(45, 212, 191, 0.02);
  animation: orbit-soft 18s ease-in-out infinite alternate;
}
@keyframes grid-drift {
  from { background-position: 0 0, 0 0; }
  to { background-position: 64px 32px, 32px 64px; }
}
@keyframes orbit-soft {
  from { transform: translateY(-52%) scale(1); opacity: 0.7; }
  to { transform: translateY(-48%) scale(1.06); opacity: 1; }
}
.hero__content { position: relative; z-index: 1; max-width: 640px; }
.hero__brand {
  font-family: var(--display);
  font-size: clamp(3.2rem, 9vw, 5.6rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 0.95;
  margin: 0 0 20px;
  background: linear-gradient(120deg, #fff 20%, var(--accent-bright) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: brand-in 0.9s ease both;
}
.hero h1.hero__headline {
  font-family: var(--font);
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.35;
  margin: 0 0 16px;
  color: var(--ink-inv);
  max-width: 28rem;
  animation: fade-up 0.8s ease 0.12s both;
}
.eyebrow {
  display: inline-block;
  margin: 0 0 22px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-bright);
  animation: fade-up 0.7s ease both;
}
.hero__lead {
  margin: 0 0 32px;
  max-width: 32rem;
  color: var(--muted-inv);
  font-size: 1.05rem;
  animation: fade-up 0.8s ease 0.2s both;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  animation: fade-up 0.8s ease 0.28s both;
}
@keyframes brand-in {
  from { opacity: 0; transform: translateY(16px); filter: blur(4px); }
  to { opacity: 1; transform: none; filter: none; }
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* ——— Ticker ——— */
.ticker {
  background: var(--bg-elevated);
  color: #fff;
  overflow: hidden;
  border-block: 1px solid var(--line-dark);
  padding: 14px 0;
}
.ticker__track {
  display: flex;
  gap: 32px;
  width: max-content;
  animation: ticker 30s linear infinite;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.ticker__track span:nth-child(even) { color: var(--accent-bright); }
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ——— Sections ——— */
.section { padding: 88px 0; }
.section--dark {
  background:
    radial-gradient(ellipse 60% 50% at 20% 0%, rgba(26, 155, 142, 0.12), transparent 55%),
    var(--bg);
  color: var(--ink-inv);
}
.section-head { margin-bottom: 40px; max-width: 38rem; }
.section-head.light p { color: var(--muted-inv); }
.section-head em {
  font-style: italic;
  font-family: var(--display);
  color: var(--accent-bright);
  font-weight: 500;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.feature {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  border-top: 2px solid var(--accent);
  padding-top: 20px;
}
.feature__n {
  display: block;
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.5rem;
  color: var(--accent);
  margin-bottom: 12px;
}
.feature p { color: var(--muted); margin: 10px 0 0; font-size: 0.95rem; }
.session-panel {
  background: linear-gradient(160deg, var(--bg-elevated), var(--bg-soft));
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: border-color .25s ease, transform .25s ease;
}
.session-panel:hover {
  border-color: rgba(45, 212, 191, 0.35);
  transform: translateY(-2px);
}
.session-panel .label { color: var(--accent-bright); }
.session-panel__time {
  font-family: var(--display);
  font-size: 2.1rem;
  font-weight: 500;
  margin: 10px 0 14px;
}
.session-panel p { color: var(--muted-inv); margin: 0; }

.split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}
.check-list {
  margin: 20px 0 28px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}
.check-list li {
  padding-left: 28px;
  position: relative;
  color: var(--muted);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.4em;
  width: 14px;
  height: 14px;
  border-radius: 3px;
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 3px var(--accent);
}
.stat-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  display: grid;
  gap: 4px;
  box-shadow: var(--shadow);
}
.stat-card:first-child { grid-column: 1 / -1; }
.stat-card strong {
  font-family: var(--display);
  font-size: 2.1rem;
  font-weight: 500;
  color: var(--ink);
}

.cta-band {
  background:
    radial-gradient(ellipse 50% 80% at 90% 50%, rgba(45, 212, 191, 0.22), transparent 55%),
    linear-gradient(120deg, #07111a, #0d2233);
  color: #fff;
  padding: 72px 0;
}
.cta-band__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.cta-band h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  max-width: 18ch;
}

/* ——— Footer ——— */
.site-footer {
  background: #050c12;
  color: var(--muted-inv);
  padding-top: 56px;
}
.site-footer__inner {
  width: min(100% - 40px, var(--container));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer-brand p { max-width: 28rem; line-height: 1.6; }
.footer-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.footer-cols h5 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
}
.footer-cols a {
  display: block;
  color: var(--muted-inv);
  margin-bottom: 10px;
  font-weight: 500;
  text-decoration: none;
}
.footer-cols a:hover { color: var(--accent-bright); }
.site-footer__legal {
  border-top: 1px solid var(--line-dark);
  padding: 18px 0 28px;
}
.site-footer__legal p {
  width: min(100% - 40px, var(--container));
  margin: 0 auto;
  font-size: 0.75rem;
  color: #5a6a76;
}

/* ——— Auth ——— */
.auth-wrap {
  min-height: calc(100dvh - var(--header-h));
  display: grid;
  place-items: center;
  padding: 48px 16px;
  background:
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(26, 155, 142, 0.1), transparent 50%),
    radial-gradient(ellipse 40% 30% at 0% 100%, rgba(201, 166, 107, 0.08), transparent 45%),
    var(--surface-muted);
}
.auth-card {
  width: min(100%, 420px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 2px);
  box-shadow: var(--shadow);
  padding: 36px 32px;
}
.brand-lg {
  margin: 0 0 6px;
  font-family: var(--display);
  font-size: 2.1rem;
  font-weight: 600;
}
.auth-card > .muted { margin: 0 0 24px; }
.auth-foot {
  margin: 22px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ——— App shell ——— */
.app-shell {
  width: min(100% - 40px, var(--container));
  margin: 32px auto 72px;
  display: grid;
  gap: 20px;
}
.app-shell h1.page-title {
  font-size: clamp(1.7rem, 3vw, 2.15rem);
  margin: 0;
  font-weight: 600;
}
.app-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 20px;
  align-items: start;
}
.app-grid > .stack {
  display: grid;
  gap: 20px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 22px;
}
.balance-card {
  background:
    linear-gradient(145deg, #0d1b28 0%, #07111a 50%, #0a2a2a 100%);
  border: 1px solid var(--line-dark);
  color: var(--ink-inv);
  position: relative;
  overflow: hidden;
}
.balance-card::before {
  content: "";
  position: absolute;
  right: -40px;
  top: -40px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(45, 212, 191, 0.2), transparent 65%);
  pointer-events: none;
}
.balance-card .label { color: rgba(238, 244, 247, 0.7); }
.balance-card .amount {
  font-family: var(--display);
  font-size: clamp(2.1rem, 4vw, 2.9rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 8px 0 16px;
  line-height: 1.1;
  position: relative;
}
.balance-card .sub {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  font-size: 0.8125rem;
  color: rgba(238, 244, 247, 0.75);
  position: relative;
}
.balance-card .sub strong { color: #fff; }
.balance-card .btn {
  background: rgba(255,255,255,.1);
  border-color: transparent;
  color: #fff;
}

.label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.session-time {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 6px 0 2px;
}
.countdown {
  font-variant-numeric: tabular-nums;
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--accent);
  margin-bottom: 14px;
}

.row-between {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.field {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}
.field span {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font: inherit;
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.alert {
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 0.9rem;
  font-weight: 600;
}
.alert.error { background: var(--danger-bg); color: var(--danger); }
.alert.success { background: #e6f7f1; color: var(--pos); }

.list { list-style: none; margin: 0; padding: 0; }
.list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.list-item:first-child { border-top: 0; padding-top: 0; }
.item-title { font-weight: 700; font-size: 0.9375rem; }
.item-sub { color: var(--muted); font-size: 0.75rem; margin-top: 2px; }
code.share-id {
  font-family: ui-monospace, "Cascadia Code", "Segoe UI Mono", Consolas, monospace;
  font-size: 0.85em;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: var(--accent-soft);
  color: var(--brand-ink);
  padding: 2px 7px;
  border-radius: 4px;
  white-space: nowrap;
}
.item-amount {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.item-amount.pos { color: var(--pos); }
.item-amount.neg { color: var(--neg); }
.empty { color: var(--muted); padding: 8px 0 0; font-size: 0.9rem; }

/* Progress investments */
.steps {
  margin: 10px 0 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 6px;
}
.invest-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.invest-card {
  padding: 16px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #fff, #f8fafb);
}
.invest-card .row-between { margin-bottom: 8px; }
.progress-meta { margin: 4px 0 10px; align-items: center; }
.status-pill {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--brand-ink);
}
.phase-wait .status-pill { background: #f3eee4; color: #6b5420; }
.phase-ready .status-pill { background: #e6f7f1; color: var(--pos); }
.progress-track {
  height: 7px;
  border-radius: 4px;
  background: #e4eaee;
  overflow: hidden;
}
.progress-track.thin { height: 5px; margin-top: 6px; }
.progress-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent-bright), var(--accent));
  transition: width .4s ease;
}
.progress-fill.sellout {
  background: linear-gradient(90deg, var(--gold), #8a6d2f);
}
.progress-labels { margin: 6px 0 0; align-items: flex-start; }
.invest-detail { margin: 8px 0 0; }
.sellout-bar {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
}

.icon-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted-inv);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
}
.icon-btn:hover { color: #fff; background: rgba(255,255,255,.08); }

/* ——— Profile / help ——— */
.profile-hero {
  display: grid;
  gap: 22px;
  background:
    linear-gradient(135deg, #0d1b28 0%, #07111a 55%, #0a2a2a 100%);
  border: 1px solid var(--line-dark);
  color: var(--ink-inv);
}
.profile-hero__main {
  display: flex;
  align-items: center;
  gap: 16px;
}
.avatar {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.35rem;
  background: linear-gradient(145deg, var(--accent-bright), var(--accent));
  color: #fff;
  flex-shrink: 0;
}
.profile-name { color: #fff; margin: 0 0 4px; }
.profile-hero .muted { color: var(--muted-inv) !important; }
.profile-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,.1);
}
.profile-stats .label { color: rgba(238, 244, 247, 0.65); }
.profile-stats strong {
  display: block;
  margin-top: 4px;
  font-size: 1.05rem;
}
.profile-stats .pos { color: var(--accent-bright); }

.quick-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.quick-links.stacked { grid-template-columns: 1fr; }
.quick-link {
  display: grid;
  gap: 2px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none !important;
  color: inherit;
  box-shadow: var(--shadow);
  transition: border-color .15s ease, transform .15s ease;
}
.quick-link:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.quick-link span {
  font-weight: 700;
  font-family: var(--font);
}
.quick-link em {
  font-style: normal;
  color: var(--muted);
  font-size: 0.8rem;
}

.page-hero {
  background: var(--bg);
  color: var(--ink-inv);
  padding: 72px 0 56px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 60% at 90% 20%, rgba(45, 212, 191, 0.2), transparent 55%);
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  margin: 0 0 12px;
  font-weight: 600;
}

.help-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 24px;
  align-items: start;
}
.faq-list { display: grid; gap: 10px; }
.faq {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 4px 16px;
  box-shadow: var(--shadow);
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  padding: 14px 0;
  list-style: none;
  font-family: var(--font);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  float: right;
  color: var(--accent);
  font-weight: 800;
}
.faq[open] summary::after { content: "–"; }
.faq p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.92rem;
}
.help-aside h2 { margin-bottom: 6px; }

@media (max-width: 900px) {
  .profile-stats,
  .quick-links,
  .help-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 560px) {
  .profile-stats,
  .quick-links {
    grid-template-columns: 1fr;
  }
  .hero__bg::after { display: none; }
}

.admin-wrap { max-width: 960px; margin: 24px auto; padding: 0 16px 48px; }
.admin-brand { font-family: var(--display); font-weight: 600; }

@media (max-width: 900px) {
  .grid-3, .grid-2, .split, .app-grid, .site-footer__inner {
    grid-template-columns: 1fr;
  }
  .nav-toggle { display: flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: #0a1622;
    border-bottom: 1px solid var(--line-dark);
    padding: 16px;
    flex-direction: column;
    align-items: stretch;
  }
  .site-nav.open { display: flex; }
  .site-nav .btn { width: 100%; }
}

/* ——— Signed-in app chrome — Bankapp / Mobile InvestmentUIUX style ——— */
body.app-mode {
  --app-max: 420px;
  --header-h: 56px;
  --surface-muted: #eef2f5;
  background: #0a1218;
  min-height: 100dvh;
}

body.app-mode.drawer-open {
  overflow: hidden;
}

/* Compact top app bar */
.app-bar {
  position: sticky;
  top: 0;
  z-index: 60;
  width: min(100%, var(--app-max));
  margin-inline: auto;
  background: #07111a;
  border-bottom: 1px solid var(--line-dark);
  color: var(--ink-inv);
}
.app-bar__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  gap: 10px;
}
.app-bar__brand {
  flex: 1;
  justify-content: center;
}
.app-bar__brand .logo-text { font-size: 1.15rem; }
.app-bar__menu {
  appearance: none;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 10px;
  background: rgba(255,255,255,.06);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 10px;
  cursor: pointer;
}
.app-bar__menu span {
  display: block;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}
.app-bar__avatar {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(45, 212, 191, 0.12);
  color: var(--accent-bright);
  text-decoration: none !important;
}

/* Side drawer (no bottom nav) */
.app-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(5, 12, 18, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}
.app-drawer-backdrop.show {
  opacity: 1;
  pointer-events: auto;
}
.app-drawer {
  position: fixed;
  top: 0;
  z-index: 80;
  width: min(86vw, 300px);
  height: 100dvh;
  background: #07111a;
  color: #fff;
  left: max(0px, calc(50% - var(--app-max) / 2));
  transform: translateX(-105%);
  transition: transform .25s ease;
  display: flex;
  flex-direction: column;
  padding: 18px 16px 24px;
  box-sizing: border-box;
  box-shadow: 8px 0 32px rgba(0,0,0,.25);
}
.app-drawer.open {
  transform: translateX(0);
}
.app-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.app-drawer__close {
  appearance: none;
  border: 0;
  background: rgba(255,255,255,.08);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}
.app-drawer__nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.app-drawer__nav a {
  color: var(--muted-inv);
  text-decoration: none !important;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 14px;
  border-radius: 10px;
}
.app-drawer__nav a:hover,
.app-drawer__nav a.active {
  background: rgba(26, 155, 142, 0.16);
  color: #fff;
}
.app-drawer__foot { margin-top: auto; }
.app-drawer__foot .btn.ghost {
  width: 100%;
  border-color: rgba(255,255,255,.25);
}

body.app-mode .app-shell {
  width: min(100%, var(--app-max));
  margin: 0 auto;
  padding: 14px 14px 36px;
  min-height: calc(100dvh - var(--header-h));
  background: var(--surface-muted);
  gap: 12px;
  box-sizing: border-box;
}

body.app-mode .app-shell h1.page-title,
body.app-mode .app-shell h2 {
  font-family: var(--font);
  font-weight: 700;
  letter-spacing: -0.02em;
}
body.app-mode .app-shell h1.page-title { font-size: 1.25rem; }
body.app-mode .app-shell h2 { font-size: 1.05rem; }

body.app-mode .app-grid {
  grid-template-columns: 1fr;
  gap: 12px;
}

body.app-mode .card {
  padding: 16px;
  border-radius: 16px;
  border: 0;
  box-shadow: 0 2px 12px rgba(12, 26, 36, 0.06);
}

body.app-mode .balance-card,
body.app-mode .app-hero-card {
  border-radius: 20px;
  padding: 20px 18px;
}

.app-hero-card__greet {
  font-size: 0.85rem;
  color: rgba(238, 244, 247, 0.75);
  margin-bottom: 10px;
  font-weight: 500;
}

body.app-mode .balance-card .amount {
  font-size: 2.05rem;
  margin: 4px 0 12px;
}

/* Quick action strip — Bankapp style */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.quick-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 6px;
  background: #fff;
  border-radius: 14px;
  text-decoration: none !important;
  color: var(--ink);
  font-size: 0.7rem;
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(12, 26, 36, 0.05);
  transition: transform .15s ease;
}
.quick-action:hover { transform: translateY(-2px); color: var(--ink); }
.quick-action__icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--brand-ink);
  font-size: 1.05rem;
  font-weight: 700;
}

.profit-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}
.profit-row strong {
  display: block;
  margin-top: 4px;
  font-size: 1.1rem;
}

body.app-mode .session-card .countdown {
  font-size: 1.65rem;
  margin: 6px 0 14px;
}

body.app-mode .auth-wrap {
  width: min(100%, var(--app-max));
  margin-inline: auto;
  background: var(--surface-muted);
  min-height: calc(100dvh - var(--header-h));
  padding: 24px 14px;
}

body.app-mode .page-hero {
  width: min(100%, var(--app-max));
  margin-inline: auto;
  padding: 28px 16px 20px;
}
body.app-mode .page-hero h1 { font-size: 1.55rem; }

body.app-mode .help-grid {
  width: min(100% - 28px, var(--app-max));
  margin: 0 auto 40px;
  grid-template-columns: 1fr;
  box-sizing: border-box;
}

body.app-mode .profile-stats {
  grid-template-columns: 1fr 1fr;
}

body.app-mode .quick-links {
  grid-template-columns: 1fr 1fr;
}
