/* ============================================================
   TheHedgeCrest — Design System
   Palette derived from brand mark: deep pine navy + crest green.
   Display: Fraunces (trust/gravitas) · UI: Manrope · Figures: Plus Jakarta Sans
   ============================================================ */

@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700&family=Manrope:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap");

:root {
  /* --- Brand palette (from logo) --- */
  --primary: #0f2c27; /* deep pine navy-teal */
  --primary-dark: #081813; /* darker pine, sidebar depths */
  --primary-tint: #163b33; /* raised surfaces on dark */
  --accent: #8dc63f; /* crest green */
  --accent-dark: #6ba02c; /* pressed / hover green */
  --accent-soft: #e9f5d9; /* light green wash */

  /* --- Neutrals --- */
  --background: #f6f7f3;
  --surface: #ffffff;
  --surface-sunken: #f0f2ed;
  --border: #e1e5dd;
  --border-strong: #c9d0c4;
  --text: #10201b;
  --text-muted: #5c6961;
  --text-faint: #8b968d;

  /* --- Semantic --- */
  --success: #2f9e56;
  --success-soft: #e4f5ea;
  --warning: #b0791a;
  --warning-soft: #fbf0dd;
  --danger: #c1443c;
  --danger-soft: #fbe7e5;
  --info: #2e6e9e;
  --info-soft: #e5f0f8;

  /* --- Type --- */
  --font-display: "Fraunces", Georgia, serif;
  --font-body:
    "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono:
    "Plus Jakarta Sans", "Manrope", -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;

  /* --- Layout --- */
  --sidebar-w: 264px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(15, 44, 39, 0.06);
  --shadow-md: 0 4px 16px rgba(15, 44, 39, 0.08);
  --shadow-lg: 0 12px 32px rgba(15, 44, 39, 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--background);
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font-family: inherit;
  cursor: pointer;
}
input,
select,
textarea {
  font-family: inherit;
}
::selection {
  background: var(--accent-soft);
  color: var(--primary);
}

:focus-visible {
  outline: 2px solid var(--accent-dark);
  outline-offset: 2px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  margin: 0;
  color: var(--text);
  letter-spacing: -0.01em;
}
.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

/* ============================================================
   DEMO BANNER — always present, non-removable by content
   ============================================================ */
.demo-banner {
  background: var(--primary);
  color: var(--accent-soft);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-align: center;
  padding: 7px 12px;
  position: sticky;
  top: 0;
  z-index: 200;
  border-bottom: 1px solid var(--accent);
}
.demo-banner strong {
  color: var(--accent);
  font-weight: 600;
}

/* ============================================================
   SIGNATURE MOTIF — ascending ledger bars (echoes the mark)
   Used as a structural divider between major sections.
   ============================================================ */
.ledger-rule {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 14px;
  margin: 0 0 18px 0;
}
.ledger-rule span {
  display: block;
  width: 3px;
  background: var(--accent);
  border-radius: 1px;
  opacity: 0.55;
}
.ledger-rule span:nth-child(1) {
  height: 30%;
}
.ledger-rule span:nth-child(2) {
  height: 50%;
}
.ledger-rule span:nth-child(3) {
  height: 70%;
}
.ledger-rule span:nth-child(4) {
  height: 100%;
  opacity: 1;
}
.ledger-rule span:nth-child(5) {
  height: 78%;
  opacity: 0.4;
  flex: 1;
}
.ledger-rule::after {
  content: "";
  flex: 1;
  border-top: 1px solid var(--border);
  margin-left: 8px;
}

/* ============================================================
   APP SHELL
   ============================================================ */
.app-shell {
  display: flex;
  min-height: 100vh;
  align-items: flex-start;
}

/* --- Sidebar (desktop) --- */
.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: var(--primary);
  color: #eaf2ec;
  min-height: 100vh;
  height: 100vh;
  max-height: 100vh;
  position: sticky;
  top: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  padding: 22px 16px;
}
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px 22px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 18px;
}
.sidebar-brand img {
  height: 30px;
  width: auto;
}
.sidebar-brand .brand-name {
  font-family: var(--font-display);
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.15;
  color: #fff;
}
.sidebar-brand .brand-sub {
  font-size: 9.5px;
  letter-spacing: 0.12em;
  color: var(--accent);
  text-transform: uppercase;
  font-family: var(--font-mono);
}

.nav-group-label {
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(234, 242, 236, 0.4);
  padding: 14px 12px 6px;
  font-family: var(--font-mono);
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: rgba(234, 242, 236, 0.78);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 2px;
  transition:
    background 0.15s,
    color 0.15s;
}
.nav-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.85;
}
.nav-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}
.nav-item.active {
  background: var(--primary-tint);
  color: #fff;
  box-shadow: inset 3px 0 0 var(--accent);
}
.sidebar-foot {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: var(--radius-sm);
}
.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  flex-shrink: 0;
}
.sidebar-user .u-name {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
}
.sidebar-user .u-role {
  font-size: 11px;
  color: rgba(234, 242, 236, 0.5);
}
.sidebar-logout {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  margin-top: 10px;
  padding: 10px 12px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: rgba(234, 242, 236, 0.68);
  font-size: 13px;
  text-align: left;
}
.sidebar-logout svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.sidebar-logout:hover {
  background: rgba(193, 68, 60, 0.16);
  color: #fff;
}

/* --- Main --- */
.main {
  flex: 1;
  min-width: 0;
  padding: 28px 34px 100px;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 26px;
  gap: 16px;
}
.topbar-greeting .eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 4px;
}
.topbar-greeting h1 {
  font-size: 26px;
}
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.topbar-profile {
  position: relative;
}
.topbar-avatar {
  cursor: pointer;
  border: 0;
  padding: 0;
}
.profile-menu {
  position: absolute;
  top: calc(100% + 9px);
  right: 0;
  z-index: 180;
  display: none;
  min-width: 158px;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
}
.topbar-profile.open .profile-menu {
  display: block;
}
.profile-menu a {
  display: block;
  padding: 9px 10px;
  border-radius: 4px;
  color: var(--text);
  font-size: 13px;
}
.profile-menu a:hover {
  background: var(--surface-sunken);
  color: var(--primary);
}

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  color: var(--text);
  transition:
    border-color 0.15s,
    transform 0.1s;
}
.icon-btn:hover {
  border-color: var(--border-strong);
}
.icon-btn:active {
  transform: scale(0.96);
}
.icon-btn svg {
  width: 19px;
  height: 19px;
}
.icon-btn .dot {
  position: absolute;
  top: 8px;
  right: 9px;
  width: 7px;
  height: 7px;
  background: var(--danger);
  border-radius: 50%;
  border: 1.5px solid var(--surface);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  transition:
    transform 0.1s,
    box-shadow 0.15s,
    background 0.15s;
  white-space: nowrap;
}
.btn:active {
  transform: scale(0.98);
}
.btn-primary {
  background: var(--accent);
  color: var(--primary-dark);
}
.btn-primary:hover {
  background: var(--accent-dark);
}
.btn-dark {
  background: var(--primary);
  color: #fff;
}
.btn-dark:hover {
  background: var(--primary-dark);
}
.btn-outline {
  background: var(--surface);
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-outline:hover {
  border-color: var(--primary);
}
.btn-ghost {
  background: transparent;
  color: var(--text-muted);
}
.btn-ghost:hover {
  background: var(--surface-sunken);
}
.btn-danger-outline {
  background: var(--danger-soft);
  color: var(--danger);
}
.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}
.btn-block {
  width: 100%;
}
.btn-sm {
  padding: 7px 12px;
  font-size: 12.5px;
}

/* ============================================================
   STAT CARDS
   ============================================================ */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
  position: relative;
  overflow: hidden;
}
.stat-card .stat-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}
.stat-card .stat-value {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.stat-card .stat-value .cents {
  color: var(--text-faint);
  font-size: 15px;
}
.stat-card .stat-delta {
  margin-top: 8px;
  font-size: 12px;
  font-family: var(--font-mono);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.stat-delta.up {
  color: var(--success);
}
.stat-delta.down {
  color: var(--danger);
}
.stat-delta.neutral {
  color: var(--text-faint);
}
.stat-card.featured {
  background: var(--primary);
  border-color: var(--primary);
}
.stat-card.featured .stat-label {
  color: rgba(234, 242, 236, 0.65);
}
.stat-card.featured .stat-value {
  color: #fff;
}
.stat-card.featured .stat-value .cents {
  color: rgba(234, 242, 236, 0.45);
}

/* ============================================================
   PANELS / CARDS
   ============================================================ */
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 12px;
}
.panel-head h3 {
  font-size: 17px;
}
.panel-head .sub {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 2px;
  font-family: var(--font-body);
}
.link-more {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.link-more:hover {
  color: var(--accent-dark);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 18px;
  align-items: start;
}

/* ============================================================
   PORTFOLIO CHART (canvas)
   ============================================================ */
.chart-wrap {
  position: relative;
}
.chart-legend {
  display: flex;
  gap: 18px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.chart-legend .item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  color: var(--text-muted);
}
.chart-legend .swatch {
  width: 9px;
  height: 9px;
  border-radius: 2px;
}

/* ============================================================
   ACTIVITY LIST
   ============================================================ */
.activity-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.activity-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.activity-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.activity-icon svg {
  width: 17px;
  height: 17px;
}
.activity-icon.deposit {
  background: var(--success-soft);
  color: var(--success);
}
.activity-icon.withdrawal {
  background: var(--warning-soft);
  color: var(--warning);
}
.activity-icon.investment {
  background: var(--info-soft);
  color: var(--info);
}
.activity-icon.return {
  background: var(--accent-soft);
  color: var(--accent-dark);
}
.activity-body {
  flex: 1;
  min-width: 0;
}
.activity-title {
  font-size: 13.5px;
  font-weight: 600;
}
.activity-desc {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 1px;
}
.activity-meta {
  text-align: right;
  flex-shrink: 0;
}
.activity-amount {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 13.5px;
}
.activity-amount.pos {
  color: var(--success);
}
.activity-amount.neg {
  color: var(--danger);
}
.activity-date {
  font-size: 11px;
  color: var(--text-faint);
  margin-top: 2px;
}

/* ============================================================
   MINI INVESTMENT CARD (dashboard)
   ============================================================ */
.mini-inv {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 15px;
}
.mini-inv-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.mini-inv-id {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-faint);
}
.mini-inv-plan {
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 2px;
}
.mini-inv-amt {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
}
.progress-bar {
  height: 6px;
  border-radius: 4px;
  background: var(--surface-sunken);
  overflow: hidden;
  margin-bottom: 8px;
}
.progress-bar > div {
  height: 100%;
  background: var(--accent);
  border-radius: 4px;
}
.mini-inv-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--text-muted);
}

/* ============================================================
   BADGES
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.badge::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}
.badge-completed {
  background: var(--success-soft);
  color: var(--success);
}
.badge-active {
  background: var(--info-soft);
  color: var(--info);
}
.badge-pending {
  background: var(--warning-soft);
  color: var(--warning);
}
.badge-processing {
  background: var(--warning-soft);
  color: var(--warning);
}
.badge-failed,
.badge-rejected {
  background: var(--danger-soft);
  color: var(--danger);
}
.badge-matured {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

/* ============================================================
   PLANS GRID
   ============================================================ */
.plans-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.search-input {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  min-width: 240px;
}
.search-input svg {
  width: 16px;
  height: 16px;
  color: var(--text-faint);
  flex-shrink: 0;
}
.search-input input {
  border: none;
  outline: none;
  background: none;
  font-size: 13.5px;
  flex: 1;
  color: var(--text);
}
.filter-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.chip {
  padding: 7px 13px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
}
.chip.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.active-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.plan-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  transition:
    box-shadow 0.15s,
    border-color 0.15s;
}
.plan-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}
.plan-card.featured {
  border: 1.5px solid var(--accent);
}
.plan-card .ribbon {
  position: absolute;
  top: 0;
  right: 22px;
  background: var(--accent);
  color: var(--primary-dark);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 0 0 6px 6px;
}
.plan-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
.plan-name {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
}
.plan-risk {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 3px;
}
.plan-return {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 14px 0;
  border-top: 1px dashed var(--border);
  border-bottom: 1px dashed var(--border);
}
.plan-return .value {
  font-family: var(--font-mono);
  font-size: 30px;
  font-weight: 600;
  color: var(--accent-dark);
}
.plan-return .label {
  font-size: 12px;
  color: var(--text-muted);
}
.plan-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 14px;
}
.plan-spec .k {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  margin-bottom: 2px;
}
.plan-spec .v {
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 600;
}
.plan-desc {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ============================================================
   MODAL / DRAWER — investment flow
   ============================================================ */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 24, 19, 0.55);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 500;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}
.overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.modal {
  background: var(--surface);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 460px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  transform: translateY(12px) scale(0.98);
  transition: transform 0.18s ease;
}
.overlay.open .modal {
  transform: translateY(0) scale(1);
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--surface);
  z-index: 2;
}
.modal-head h3 {
  font-size: 16px;
}
.modal-close {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}
.modal-close:hover {
  background: var(--surface-sunken);
}
.modal-body {
  padding: 22px;
}
.modal-foot {
  padding: 16px 22px 22px;
  display: flex;
  gap: 10px;
}

.step-indicator {
  display: flex;
  gap: 6px;
  margin-bottom: 20px;
}
.step-indicator .dot {
  height: 4px;
  flex: 1;
  border-radius: 2px;
  background: var(--border);
}
.step-indicator .dot.done {
  background: var(--accent);
}

.field {
  margin-bottom: 16px;
}
.field label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 7px;
  color: var(--text);
}
.field .hint {
  font-size: 11.5px;
  color: var(--text-faint);
  margin-top: 6px;
}
.field .error-msg {
  font-size: 12px;
  color: var(--danger);
  margin-top: 6px;
  display: none;
  align-items: center;
  gap: 5px;
}
.field.has-error .error-msg {
  display: flex;
}
.field.has-error input {
  border-color: var(--danger);
  background: var(--danger-soft);
}

.amount-input-wrap {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 2px 14px;
  background: var(--surface);
}
.amount-input-wrap .currency {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--text-faint);
  margin-right: 6px;
}
.amount-input-wrap input {
  border: none;
  outline: none;
  background: none;
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 600;
  width: 100%;
  padding: 12px 0;
  color: var(--text);
}
.amount-input-wrap.error {
  border-color: var(--danger);
}

.summary-list {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 15px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.summary-row:last-child {
  border-bottom: none;
}
.summary-row .k {
  color: var(--text-muted);
}
.summary-row .v {
  font-family: var(--font-mono);
  font-weight: 600;
}
.summary-row.total {
  background: var(--surface-sunken);
}
.summary-row.total .v {
  font-size: 16px;
  color: var(--accent-dark);
}

.confirm-banner {
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 16px;
  color: var(--primary-dark);
}
.confirm-banner strong {
  font-family: var(--font-mono);
}

.success-state {
  text-align: center;
  padding: 16px 6px 6px;
}
.success-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--success-soft);
  color: var(--success);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.success-icon svg {
  width: 28px;
  height: 28px;
}
.success-state h3 {
  font-size: 18px;
  margin-bottom: 6px;
}
.success-state p {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 18px;
}
.success-ref {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  background: var(--surface-sunken);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  display: inline-block;
  margin-bottom: 18px;
}

.slider-quick {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.slider-quick button {
  flex: 1;
  padding: 7px 4px;
  font-size: 11.5px;
  font-weight: 600;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text-muted);
}
.slider-quick button:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
}

/* ============================================================
   NOTIFICATION PANEL
   ============================================================ */
.notif-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 340px;
  max-width: 88vw;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 300;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition:
    opacity 0.15s ease,
    transform 0.15s ease;
  max-height: 420px;
  overflow-y: auto;
}
.notif-panel.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.notif-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--surface);
}
.notif-panel-head h4 {
  font-size: 14px;
}
.notif-panel-head button {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  background: none;
  border: none;
}
.notif-row {
  display: flex;
  gap: 11px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.notif-row:last-child {
  border-bottom: none;
}
.notif-row.unread {
  background: var(--accent-soft);
}
.notif-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  flex-shrink: 0;
  background: var(--surface-sunken);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}
.notif-icon svg {
  width: 15px;
  height: 15px;
}
.notif-title {
  font-size: 13px;
  font-weight: 700;
}
.notif-text {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
  line-height: 1.4;
}
.notif-time {
  font-size: 10.5px;
  color: var(--text-faint);
  margin-top: 5px;
  font-family: var(--font-mono);
}
.topbar-actions {
  position: relative;
}

/* ============================================================
   EMPTY / TOAST
   ============================================================ */
.empty-state {
  text-align: center;
  padding: 50px 20px;
}
.empty-state .icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  color: var(--text-faint);
}
.empty-state h4 {
  font-size: 15px;
  margin-bottom: 6px;
}
.empty-state p {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 18px;
}

.toast-stack {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 800;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.toast {
  background: var(--primary);
  color: #fff;
  padding: 13px 18px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 260px;
  transform: translateX(20px);
  opacity: 0;
  animation: toastIn 0.25s ease forwards;
}
.toast.success {
  background: var(--primary);
}
.toast .dot-ok {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}
@keyframes toastIn {
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* ============================================================
  AUTHENTICATION
  ============================================================ */
/* ============================================================
  AUTH PAGES
  ============================================================ */
.auth-body {
  min-height: 100vh;
  background: var(--background);
  color: var(--text);
}
.auth-body .landing-header {
  background: rgba(8, 24, 19, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}
.auth-body.landing-menu-open {
  overflow: hidden;
}
.auth-layout {
  min-height: 100vh;
  padding-top: 76px;
  display: grid;
  grid-template-columns: minmax(340px, 0.82fr) minmax(480px, 1.18fr);
  box-sizing: border-box;
}
.auth-aside {
  padding: 52px 8vw 44px 7vw;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #fff;
  background: var(--primary);
  position: relative;
  overflow: hidden;
}
.auth-aside::after {
  content: "";
  position: absolute;
  width: 390px;
  height: 390px;
  right: -170px;
  bottom: -170px;
  border: 1px solid rgba(141, 198, 63, 0.25);
  border-radius: 50%;
  box-shadow:
    0 0 0 32px rgba(141, 198, 63, 0.04),
    0 0 0 64px rgba(141, 198, 63, 0.035);
  pointer-events: none;
}
.auth-brand {
  display: inline-flex;
  align-items: center;
  width: max-content;
}
.auth-brand img {
  height: 42px;
  width: auto;
  object-fit: contain;
}
.auth-aside-copy {
  margin: auto 0;
  max-width: 430px;
  position: relative;
  z-index: 1;
}
.auth-aside-copy .eyebrow,
.auth-heading .eyebrow {
  color: var(--accent-dark);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.auth-aside-copy .eyebrow {
  color: var(--accent);
}
.auth-aside-copy h1 {
  color: #fff;
  font-size: clamp(32px, 3.8vw, 52px);
  line-height: 1.06;
  margin-bottom: 18px;
  font-weight: 500;
}
.auth-aside-copy p {
  color: rgba(234, 242, 236, 0.7);
  max-width: 370px;
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
}
.auth-aside-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(234, 242, 236, 0.5);
  font-size: 11px;
  font-family: var(--font-mono);
  position: relative;
  z-index: 1;
  margin-top: 28px;
}
.auth-mark {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.08em;
}
.auth-main {
  background: var(--background);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 6vw;
  min-height: calc(100vh - 76px);
  box-sizing: border-box;
}
.auth-card {
  width: 100%;
  max-width: 440px;
}
.auth-heading {
  margin-bottom: 24px;
}
.auth-heading h2 {
  font-size: 28px;
  margin-bottom: 7px;
  font-weight: 600;
}
.auth-heading p {
  color: var(--text-muted);
  font-size: 13px;
  margin: 0;
}
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.auth-form .field {
  margin-bottom: 14px;
}
.auth-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.field-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 5px;
}
.auth-form label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 5px;
}
.auth-form input {
  width: 100%;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  outline: none;
  padding: 11px 12px;
  font-size: 14px;
  box-sizing: border-box;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
.auth-form input:focus {
  border-color: var(--accent-dark);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.auth-submit {
  margin-top: 8px;
  padding: 12px 18px;
  font-size: 13.5px;
  font-weight: 700;
}
.auth-link {
  color: var(--primary);
  font-weight: 700;
  font-size: 12px;
}
.auth-link:hover {
  color: var(--accent-dark);
}
.auth-error {
  min-height: 18px;
  color: var(--danger);
  font-size: 12px;
  margin: 0 0 4px;
}
.auth-notice {
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 12.5px;
  margin: 0 0 16px;
}
.auth-notice.is-success {
  background: var(--success-soft);
  color: var(--success);
}
.auth-notice.is-error {
  background: var(--danger-soft, rgba(220, 38, 38, 0.08));
  color: var(--danger);
}
.auth-switch {
  text-align: center;
  color: var(--text-muted);
  font-size: 12.5px;
  margin: 22px 0 0;
}
.auth-demo-note {
  text-align: center;
  color: var(--text-faint);
  font: 10.5px var(--font-mono);
  margin: 24px 0 0;
}
.auth-mobile-brand {
  display: none !important;
}
.auth-success {
  text-align: center;
}
.auth-success-icon {
  width: 54px;
  height: 54px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--success-soft);
  color: var(--success);
  font: 700 24px var(--font-mono);
}
.auth-success h2 {
  font-size: 28px;
  margin-bottom: 8px;
}
.auth-success p {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.6;
  margin: 0 0 24px;
}
.auth-success .eyebrow {
  color: var(--accent-dark);
  font: 10.5px var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

/* ============================================================
  REFERRALS
  ============================================================ */
.referral-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 28px;
  margin-bottom: 18px;
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.referral-hero .eyebrow {
  color: var(--accent);
  font: 10.5px var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.referral-hero h2 {
  color: #fff;
  font-size: 30px;
  margin-bottom: 8px;
}
.referral-hero p {
  max-width: 570px;
  color: rgba(234, 242, 236, 0.7);
  font-size: 13px;
  margin: 0;
}
.referral-reward {
  min-width: 190px;
  padding-left: 22px;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.referral-reward span {
  color: rgba(234, 242, 236, 0.65);
  font-size: 11px;
}
.referral-reward strong {
  color: var(--accent);
  font-size: 23px;
}
.referral-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
  align-items: start;
}
.referral-share-panel {
  background: var(--surface-sunken);
}
.referral-code-label {
  color: var(--text-faint);
  font: 10px var(--font-mono);
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}
.referral-code {
  color: var(--primary);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}
.referral-link-wrap {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.referral-link-wrap input {
  min-width: 0;
  flex: 1;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 9px 10px;
  color: var(--text-muted);
  background: var(--surface);
  font: 11px var(--font-mono);
}
.referral-feedback {
  min-height: 18px;
  color: var(--success);
  font-size: 11.5px;
  margin-top: 9px;
}
.referral-steps {
  display: flex;
  flex-direction: column;
  gap: 17px;
}
.referral-steps > div {
  display: grid;
  grid-template-columns: 32px 1fr;
  column-gap: 11px;
}
.referral-steps span {
  grid-row: span 2;
  color: var(--accent-dark);
  font: 600 11px var(--font-mono);
  padding-top: 2px;
}
.referral-steps strong {
  font-size: 13px;
}
.referral-steps small {
  color: var(--text-muted);
  font-size: 11.5px;
  margin-top: 2px;
}
.referral-list-panel {
  padding-bottom: 8px;
}
.referral-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
}
.referral-row:last-child {
  border-bottom: none;
}
.referral-person {
  display: flex;
  align-items: center;
  gap: 10px;
}
.referral-person .avatar {
  width: 34px;
  height: 34px;
  font-size: 12px;
}
.referral-person strong,
.referral-person span,
.referral-status small {
  display: block;
}
.referral-person strong {
  font-size: 13px;
}
.referral-person span,
.referral-status small {
  color: var(--text-faint);
  font-size: 11px;
  margin-top: 2px;
}
.referral-status {
  text-align: right;
}

/* ============================================================
  FUND FLOWS
  ============================================================ */
.fund-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 18px;
  align-items: start;
}
.fund-card {
  padding: 28px;
}
.fund-heading {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin-bottom: 24px;
}
.fund-heading h2 {
  font-size: 21px;
  margin-bottom: 5px;
}
.fund-heading p,
.fund-info p {
  color: var(--text-muted);
  font-size: 13px;
  margin: 0;
}
.fund-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font: 600 22px var(--font-mono);
  flex-shrink: 0;
}
.deposit-icon {
  background: var(--success-soft);
  color: var(--success);
}
.withdraw-icon {
  background: var(--warning-soft);
  color: var(--warning);
}
.balance-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: var(--surface-sunken);
  border-radius: var(--radius-sm);
  padding: 13px 15px;
  margin-bottom: 23px;
  color: var(--text-muted);
  font-size: 12px;
}
.balance-strip strong {
  color: var(--text);
  font-size: 16px;
}
.fund-text-input {
  width: 100%;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  padding: 11px 12px;
  font-size: 13px;
  outline: none;
}
.fund-text-input:focus {
  border-color: var(--accent-dark);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.optional {
  color: var(--text-faint);
  font-weight: 400;
}
.fund-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.fund-error {
  min-height: 19px;
  color: var(--danger);
  font-size: 12px;
  margin: 0 0 5px;
}
.fund-success {
  text-align: center;
  padding: 25px 8px 5px;
}
.fund-success .auth-success-icon {
  margin-bottom: 15px;
}
.fund-success h2 {
  font-size: 22px;
  margin-bottom: 7px;
}
.fund-success p {
  color: var(--text-muted);
  font-size: 13px;
  margin: 0 0 22px;
}
.fund-info {
  padding: 22px;
}
.fund-info h3 {
  font-size: 17px;
  margin-bottom: 8px;
}
.fund-info .summary-list {
  margin-top: 19px;
}
.fund-note {
  background: var(--accent-soft);
  color: var(--primary-dark);
  border-radius: var(--radius-sm);
  padding: 12px;
  font-size: 11.5px;
  line-height: 1.5;
  margin-top: 16px;
}

/* ============================================================
  ACCOUNT SETTINGS
  ============================================================ */
.account-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}
.account-heading h2 {
  font-size: 24px;
  margin-bottom: 3px;
}
.account-heading p {
  color: var(--text-muted);
  font-size: 12.5px;
  margin: 0;
}
.account-avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: var(--primary-dark);
  font: 600 20px var(--font-display);
}
.account-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
  align-items: start;
}
.settings-form .field {
  margin-bottom: 16px;
}
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.settings-input {
  width: 100%;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  padding: 11px 12px;
  font-size: 13px;
  outline: none;
}
.settings-input:focus {
  border-color: var(--accent-dark);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
textarea.settings-input {
  resize: vertical;
  min-height: 110px;
}
.field-hint {
  color: var(--text-faint);
  display: block;
  font-size: 11px;
  margin-top: 5px;
}
.settings-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 6px;
  min-height: 36px;
}
.settings-feedback {
  color: var(--success);
  font-size: 11.5px;
  margin-right: auto;
}
.account-side-panel h3 {
  font-size: 17px;
  margin-bottom: 17px;
}
.account-status {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: var(--success-soft);
  padding: 13px;
  border-radius: var(--radius-sm);
  margin-bottom: 18px;
}
.status-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--success);
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
}
.account-status strong {
  display: block;
  font-size: 13px;
}
.account-status p {
  color: var(--text-muted);
  font-size: 11.5px;
  margin: 2px 0 0;
}
.security-options .setting-toggle + .setting-toggle {
  border-top: 1px solid var(--border);
}
.setting-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 16px 0;
  cursor: pointer;
}
.setting-toggle > span:first-child {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.setting-toggle strong {
  font-size: 13px;
}
.setting-toggle small {
  color: var(--text-muted);
  font-size: 11.5px;
}
.setting-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.toggle-ui {
  width: 38px;
  height: 22px;
  border-radius: 12px;
  background: var(--border-strong);
  padding: 3px;
  flex-shrink: 0;
  transition: background 0.15s;
}
.toggle-ui::after {
  content: "";
  display: block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s;
}
.setting-toggle input:checked + .toggle-ui {
  background: var(--accent-dark);
}
.setting-toggle input:checked + .toggle-ui::after {
  transform: translateX(16px);
}
.security-session {
  border-top: 1px solid var(--border);
  padding-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.security-session strong {
  display: block;
  font-size: 13px;
}
.security-session small {
  display: block;
  color: var(--text-muted);
  font-size: 11px;
  margin-top: 3px;
}
.notification-settings {
  margin-bottom: 18px;
}
.notification-inbox-row {
  display: flex;
  gap: 11px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.notification-inbox-row:last-child {
  border-bottom: none;
  padding-bottom: 2px;
}
.notification-inbox-row.unread {
  background: var(--accent-soft);
  margin: 0 -22px;
  padding-left: 22px;
  padding-right: 22px;
}
.support-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  padding: 26px 28px;
  margin-bottom: 18px;
  border-radius: var(--radius-md);
  background: var(--primary);
  color: #fff;
}
.support-hero .eyebrow {
  color: var(--accent);
  font: 10.5px var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 7px;
}
.support-hero h2 {
  color: #fff;
  font-size: 29px;
  margin-bottom: 6px;
}
.support-hero p {
  color: rgba(234, 242, 236, 0.7);
  font-size: 13px;
  margin: 0;
}
.support-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: start;
}
.faq-list details {
  border-bottom: 1px solid var(--border);
  padding: 13px 0;
}
.faq-list details:last-child {
  border-bottom: none;
}
.faq-list summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  list-style: none;
}
.faq-list summary::-webkit-details-marker {
  display: none;
}
.faq-list summary::after {
  content: "+";
  float: right;
  color: var(--accent-dark);
  font: 600 16px var(--font-mono);
}
.faq-list details[open] summary::after {
  content: "−";
}
.faq-list p {
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.55;
  margin: 9px 0 2px;
}

/* ============================================================
  INVESTMENT DETAIL
  ============================================================ */
.detail-back-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.detail-reference {
  color: var(--text-faint);
  font-size: 11px;
}
.detail-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 28px;
  margin-bottom: 18px;
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.detail-hero .eyebrow {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 7px;
}
.detail-hero h2 {
  color: #fff;
  font-size: 30px;
  margin-bottom: 8px;
}
.detail-hero p {
  color: rgba(234, 242, 236, 0.7);
  font-size: 13px;
  max-width: 620px;
  margin: 0;
}
.detail-hero .badge {
  margin-top: 2px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--accent);
}
.detail-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}
.detail-positive {
  color: var(--success);
}
.detail-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 18px;
  align-items: start;
}
.detail-progress-value {
  color: var(--accent-dark);
  font-size: 16px;
}
.detail-progress-track {
  height: 10px;
  background: var(--surface-sunken);
  border-radius: 6px;
  overflow: hidden;
  margin: 4px 0 9px;
}
.detail-progress-track div {
  height: 100%;
  background: var(--accent);
  border-radius: 6px;
}
.detail-progress-foot {
  display: flex;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 12px;
  margin-bottom: 22px;
}
.detail-summary-list {
  border-radius: var(--radius-sm);
}
.detail-timeline {
  position: relative;
  padding: 2px 0 4px 4px;
}
.detail-timeline::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 13px;
  bottom: 20px;
  width: 1px;
  background: var(--border-strong);
}
.timeline-item {
  display: flex;
  gap: 13px;
  position: relative;
  padding-bottom: 22px;
}
.timeline-item:last-child {
  padding-bottom: 8px;
}
.timeline-marker {
  width: 24px;
  height: 24px;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text-faint);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  flex-shrink: 0;
  z-index: 1;
}
.timeline-item.complete .timeline-marker {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent-dark);
  font-weight: 700;
}
.timeline-item strong {
  display: block;
  font-size: 13px;
  margin: 2px 0 2px;
}
.timeline-item small {
  display: block;
  color: var(--text-muted);
  font-size: 11.5px;
  line-height: 1.45;
}
.detail-note {
  border-top: 1px solid var(--border);
  margin-top: 12px;
  padding-top: 15px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.detail-note strong {
  font-size: 12px;
}
.detail-note span {
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.5;
}
.detail-not-found {
  max-width: 560px;
  margin: 70px auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

/* ============================================================
  INVESTMENT HISTORY
  ============================================================ */
.history-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.history-intro .eyebrow {
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 5px;
}
.history-intro h2 {
  font-size: 22px;
}
.history-stat-grid {
  margin-bottom: 18px;
}
.history-panel {
  padding: 0;
  overflow: hidden;
}
.history-toolbar {
  padding: 18px 22px;
  margin: 0;
  border-bottom: 1px solid var(--border);
}
.history-select {
  min-width: 150px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  background: var(--surface);
  color: var(--text);
  font: 600 12.5px var(--font-body);
}
.history-table-wrap {
  overflow-x: auto;
}
.history-table-head,
.history-row {
  min-width: 700px;
  display: grid;
  grid-template-columns: 2fr 1.15fr 1.15fr 1.15fr 1.2fr;
  align-items: center;
  gap: 16px;
  padding: 12px 22px;
}
.history-table-head {
  background: var(--surface-sunken);
  color: var(--text-faint);
  font: 600 10.5px var(--font-mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.history-row {
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  transition: background 0.15s;
}
.history-row:last-child {
  border-bottom: none;
}
.history-row:hover {
  background: var(--accent-soft);
}
.history-investment {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.history-id {
  color: var(--text-faint);
  font-size: 10.5px;
}
.history-investment strong {
  font-size: 13.5px;
}
.history-date {
  color: var(--text-muted);
  font-size: 12px;
}
.history-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 22px;
  border-top: 1px solid var(--border);
}
.history-pagination .p-controls {
  display: flex;
  gap: 5px;
}
.history-pagination .p-info {
  color: var(--text-muted);
  font-size: 12px;
}
.transaction-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.transaction-list {
  overflow-x: auto;
}
.transaction-row {
  min-width: 760px;
  display: grid;
  grid-template-columns: 40px minmax(210px, 1fr) 135px 125px 155px;
  align-items: center;
  gap: 12px;
  padding: 15px 22px;
  border-bottom: 1px solid var(--border);
}
.transaction-row:last-child {
  border-bottom: none;
}
.transaction-row:hover {
  background: var(--surface-sunken);
}
.transaction-row .activity-icon {
  width: 38px;
  height: 38px;
}
.transaction-kind {
  color: var(--text-muted);
  font-size: 12px;
}
.transaction-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}
.transaction-intro {
  margin-bottom: 18px;
}

/* ============================================================
   MOBILE
   ============================================================ */
.mobile-topbar {
  display: none;
}
.bottom-nav {
  display: none;
}
.mobile-menu-toggle,
.mobile-menu-close,
#mobileNavBackdrop {
  display: none;
}
.desktop-nav-toggle {
  display: none;
}

@media (max-width: 1080px) {
  .stat-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .plans-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .sidebar {
    display: flex;
    position: fixed;
    z-index: 310;
    inset: 0 auto 0 0;
    width: min(82vw, 300px);
    min-height: 100vh;
    transform: translateX(-105%);
    transition: transform 0.2s ease;
    box-shadow: var(--shadow-lg);
  }
  .sidebar.mobile-nav-open {
    transform: translateX(0);
  }
  .mobile-menu-close {
    display: flex;
    margin-left: auto;
    width: 30px;
    height: 30px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: rgba(234, 242, 236, 0.75);
    font-size: 25px;
    line-height: 1;
  }
  .mobile-menu-close:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
  }
  #mobileNavBackdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 300;
    background: rgba(8, 24, 19, 0.48);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
  }
  #mobileNavBackdrop.open {
    opacity: 1;
    pointer-events: auto;
  }
  .mobile-nav-lock {
    overflow: hidden;
  }
  .app-shell {
    display: block;
  }
  .main {
    padding: 0 16px 32px;
  }
  .mobile-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 68px;
    margin: 0 -16px 20px;
    padding: 12px 16px;
    position: sticky;
    top: 0;
    z-index: 140;
    background: rgba(246, 247, 243, 0.96);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(8px);
  }
  .mobile-menu-toggle {
    display: flex;
    width: 40px;
    height: 40px;
    padding: 10px;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--primary);
  }
  .mobile-menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
  }
  .mobile-topbar .brand {
    order: 2;
    flex: 1;
  }
  .mobile-topbar > div:last-child {
    order: 3;
  }
  .mobile-topbar .brand {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .mobile-topbar .brand img {
    height: 24px;
  }
  .mobile-topbar .brand-name {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 14px;
    color: var(--text);
  }
  .topbar {
    display: none;
  }
  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .stat-card .stat-value {
    font-size: 18px;
  }
  .plans-grid,
  .active-grid {
    grid-template-columns: 1fr;
  }
  .auth-layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-top: 68px;
  }
  .auth-aside {
    display: none;
  }
  .auth-main {
    min-height: calc(100vh - 68px);
    padding: 32px 20px 44px;
    align-items: center;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
  }
  .auth-card {
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
  }
  .detail-layout {
    grid-template-columns: 1fr;
  }
  .detail-hero {
    padding: 22px;
  }
  .history-intro {
    align-items: flex-start;
    flex-direction: column;
  }

  .bottom-nav {
    display: none !important;
  }
}

@media (min-width: 861px) {
  .sidebar {
    transition:
      width 0.2s ease,
      padding 0.2s ease,
      transform 0.2s ease;
  }
  .mobile-menu-close {
    display: flex;
    margin-left: auto;
    width: 30px;
    height: 30px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: rgba(234, 242, 236, 0.75);
    font-size: 25px;
    line-height: 1;
  }
  .mobile-menu-close:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
  }
  .sidebar.desktop-nav-collapsed {
    width: 0;
    padding-left: 0;
    padding-right: 0;
    overflow: hidden;
  }
  .desktop-nav-toggle {
    position: fixed;
    top: 82px;
    left: 12px;
    z-index: 250;
    width: 38px;
    height: 38px;
    padding: 9px;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--primary);
    box-shadow: var(--shadow-sm);
  }
  .desktop-nav-toggle.visible {
    display: flex;
  }
  .desktop-nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
  }
}

@media (max-width: 480px) {
  .stat-grid {
    grid-template-columns: 1fr 1fr;
  }
  .plan-specs {
    grid-template-columns: 1fr 1fr;
  }
  .detail-stat-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .detail-hero {
    flex-direction: column;
    gap: 14px;
  }
  .detail-hero h2 {
    font-size: 25px;
  }
  .detail-reference {
    display: none;
  }
  .history-toolbar {
    align-items: stretch;
    flex-direction: column;
  }
  .history-select {
    width: 100%;
  }
  .transaction-filters {
    width: 100%;
    flex-direction: column;
  }
  .history-pagination {
    align-items: flex-start;
    flex-direction: column;
  }
  .referral-hero {
    align-items: flex-start;
    flex-direction: column;
    padding: 22px;
  }
  .referral-reward {
    min-width: 0;
    padding: 13px 0 0;
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    width: 100%;
  }
  .referral-layout {
    grid-template-columns: 1fr;
  }
  .referral-link-wrap {
    flex-direction: column;
  }
  .referral-link-wrap .btn {
    width: 100%;
  }
  .fund-layout {
    grid-template-columns: 1fr;
  }
  .fund-card {
    padding: 22px;
  }
  .fund-form-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .account-layout,
  .support-layout {
    grid-template-columns: 1fr;
  }
  .settings-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .support-hero {
    align-items: flex-start;
    flex-direction: column;
    padding: 22px;
  }
  .support-hero .btn {
    width: 100%;
  }
  .account-heading h2 {
    font-size: 21px;
  }
  .auth-main {
    padding: 24px 16px 40px;
  }
  .auth-heading h2 {
    font-size: 24px;
  }
  .auth-form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .auth-form input {
    font-size: 15px;
    padding: 12px 14px;
  }
  .auth-submit {
    padding: 13px 18px;
    font-size: 14px;
  }
  .auth-switch {
    margin-top: 18px;
  }
  .auth-demo-note {
    margin-top: 20px;
  }
}

/* ============================================================
   KYC VERIFICATION
   ============================================================ */
.kyc-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 22px;
  margin-bottom: 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface);
}
.kyc-banner-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 17px;
}
.kyc-banner-body {
  flex: 1;
  min-width: 0;
}
.kyc-banner-body strong {
  display: block;
  font-size: 13.5px;
}
.kyc-banner-body p {
  color: var(--text-muted);
  font-size: 11.5px;
  margin: 3px 0 0;
}
.kyc-banner .btn {
  white-space: nowrap;
}
.kyc-banner.warning {
  border-color: var(--warning);
  background: var(--warning-soft);
}
.kyc-banner.warning .kyc-banner-icon {
  background: var(--warning);
  color: #fff;
}
.kyc-banner.info {
  border-color: var(--info);
  background: var(--info-soft);
}
.kyc-banner.info .kyc-banner-icon {
  background: var(--info);
  color: #fff;
}
.kyc-banner.danger {
  border-color: var(--danger);
  background: var(--danger-soft);
}
.kyc-banner.danger .kyc-banner-icon {
  background: var(--danger);
  color: #fff;
}
.kyc-status-card {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 13px;
  border-radius: var(--radius-sm);
  margin-bottom: 18px;
}
.kyc-status-card.notstarted {
  background: var(--surface-sunken);
}
.kyc-status-card.pending {
  background: var(--warning-soft);
}
.kyc-status-card.verified {
  background: var(--success-soft);
}
.kyc-status-card.rejected {
  background: var(--danger-soft);
}
.kyc-status-card strong {
  display: block;
  font-size: 13px;
}
.kyc-status-card p {
  color: var(--text-muted);
  font-size: 11.5px;
  margin: 2px 0 0;
}
.kyc-upload-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.kyc-upload {
  position: relative;
  padding: 16px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-sm);
  text-align: center;
  background: var(--surface);
}
.kyc-upload input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.kyc-upload strong {
  display: block;
  font-size: 12px;
}
.kyc-upload small {
  display: block;
  color: var(--text-muted);
  font-size: 10.5px;
  margin-top: 5px;
}
.kyc-upload.has-file {
  border-style: solid;
  border-color: var(--accent-dark);
}
.kyc-doc-note {
  color: var(--text-faint);
  font-size: 10.5px;
  margin-top: 10px;
}
@media (max-width: 640px) {
  .kyc-banner {
    flex-direction: column;
    align-items: flex-start;
  }
  .kyc-upload-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   PUBLIC LANDING PAGE
   ============================================================ */
.landing-body {
  background: #f4f3ee;
  color: #17231f;
  overflow-x: hidden;
}
.landing-body h1,
.landing-body h2,
.landing-body h3 {
  letter-spacing: -0.025em;
}
.landing-container {
  width: min(1180px, calc(100% - 64px));
  margin: 0 auto;
}
.landing-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  color: #f9f8f2;
  transition:
    background 0.25s,
    border-color 0.25s,
    backdrop-filter 0.25s;
}
.landing-header.is-scrolled {
  background: rgba(8, 24, 19, 0.94);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}
.landing-header-inner {
  width: min(1280px, calc(100% - 64px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 30px;
}
.landing-logo img {
  width: auto;
  height: 37px;
  object-fit: contain;
}
.landing-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 26px;
}
.landing-nav a {
  color: rgba(249, 248, 242, 0.72);
  font-size: 11.5px;
  font-weight: 600;
  transition: color 0.15s;
}
.landing-nav a:hover {
  color: #fff;
}
.landing-nav-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: 9px;
  padding-left: 22px;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}
.landing-login {
  color: #fff !important;
}
.landing-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 13px 18px;
  background: #c7a95d;
  color: #10201b;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
  border: 1px solid #c7a95d;
  transition:
    background 0.15s,
    transform 0.15s;
}
.landing-button:hover {
  background: #d8bd76;
  transform: translateY(-2px);
}
.landing-button span,
.landing-text-link span {
  font-size: 16px;
  line-height: 0;
}
.landing-button-small {
  padding: 10px 14px;
}
.landing-menu-button {
  display: none;
}
.landing-hero {
  min-height: 760px;
  padding: 150px 0 72px;
  display: flex;
  align-items: center;
  position: relative;
  background: #0b211c;
  color: #f9f8f2;
  overflow: hidden;
}
.landing-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.14;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.15) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: linear-gradient(
    to right,
    transparent,
    #000 32%,
    #000 75%,
    transparent
  );
}
.landing-hero::after {
  content: "";
  position: absolute;
  width: 700px;
  height: 700px;
  right: -300px;
  top: 140px;
  border: 1px solid rgba(199, 169, 93, 0.18);
  transform: rotate(45deg);
}
.landing-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  position: relative;
  z-index: 1;
}
.landing-overline {
  color: #a99158;
  font: 10.5px var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.landing-hero .landing-overline {
  color: #c7a95d;
  margin-bottom: 20px;
}
.landing-hero h1 {
  max-width: 610px;
  color: #f8f6ed;
  font-size: clamp(48px, 6.2vw, 82px);
  line-height: 1.02;
  font-weight: 500;
}
.landing-hero h1 em,
.section-intro h2 em,
.about-copy h2 em,
.landing-final-cta h2 em {
  color: #c7a95d;
  font-style: normal;
}
.landing-hero-copy > p {
  max-width: 480px;
  color: rgba(249, 248, 242, 0.68);
  font-size: 15px;
  line-height: 1.7;
  margin: 25px 0 28px;
}
.landing-hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}
.landing-text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #17372e;
  font-size: 12px;
  font-weight: 800;
}
.landing-text-link:hover {
  color: #a37f32;
}
.landing-hero .landing-text-link {
  color: #f9f8f2;
}
.landing-hero .landing-text-link:hover {
  color: #c7a95d;
}
.landing-trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 48px;
  color: rgba(249, 248, 242, 0.62);
  font: 10.5px var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.landing-trust-list i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  margin-right: 5px;
  border: 1px solid #c7a95d;
  color: #c7a95d;
  border-radius: 50%;
  font-style: normal;
  font-size: 9px;
}
.crest-visual {
  min-height: 460px;
  position: relative;
  background: linear-gradient(
    135deg,
    rgba(20, 55, 46, 0.9),
    rgba(8, 24, 19, 0.3)
  );
  border: 1px solid rgba(199, 169, 93, 0.25);
}
.crest-visual canvas {
  display: block;
  width: 100%;
}
.visual-caption {
  position: absolute;
  bottom: 18px;
  left: 20px;
  right: 20px;
  display: flex;
  justify-content: space-between;
  color: rgba(249, 248, 242, 0.5);
  font: 9px var(--font-mono);
  letter-spacing: 0.1em;
}
.landing-scroll-cue {
  position: absolute;
  bottom: 25px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(249, 248, 242, 0.48);
  font: 9px var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transform: rotate(-90deg) translateX(-50%);
  transform-origin: left center;
}
.landing-scroll-cue i {
  display: block;
  width: 42px;
  border-top: 1px solid #c7a95d;
}
.landing-trust-band {
  background: #e7e5dc;
  border-bottom: 1px solid #d7d4c8;
}
.trust-grid {
  display: grid;
  grid-template-columns: 1.3fr repeat(4, 1fr);
}
.trust-intro,
.trust-item {
  min-height: 154px;
  padding: 30px 20px;
  border-right: 1px solid #d1cec1;
}
.trust-intro {
  padding-left: 0;
}
.trust-intro strong {
  display: block;
  margin-top: 12px;
  font: 500 20px/1.15 var(--font-display);
}
.trust-item span,
.problem-card span,
.why-item span,
.step-item > span {
  color: #aa8a48;
  font: 10px var(--font-mono);
}
.trust-item h3 {
  font-size: 16px;
  margin: 18px 0 6px;
}
.trust-item p {
  color: #5f6962;
  font-size: 11.5px;
  line-height: 1.55;
  margin: 0;
}
.landing-section {
  padding: 125px 0;
}
.landing-problem {
  background: #f4f3ee;
}
.section-intro {
  max-width: 650px;
}
.section-intro h2 {
  font-size: clamp(36px, 4.5vw, 57px);
  line-height: 1.06;
  font-weight: 500;
  margin: 14px 0 18px;
}
.section-intro p {
  color: #5f6962;
  font-size: 14px;
  line-height: 1.7;
  max-width: 560px;
  margin: 0;
}
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 72px;
  border-top: 1px solid #d7d4c8;
  border-bottom: 1px solid #d7d4c8;
}
.problem-card {
  min-height: 205px;
  padding: 25px 24px 25px 0;
  border-right: 1px solid #d7d4c8;
}
.problem-card + .problem-card {
  padding-left: 24px;
}
.problem-card:last-child {
  border-right: 0;
}
.problem-card h3 {
  font-size: 21px;
  margin: 34px 0 9px;
}
.problem-card p {
  color: #69736c;
  font-size: 12.5px;
  line-height: 1.65;
  max-width: 250px;
  margin: 0;
}
.section-transition {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  margin-top: 70px;
  padding-left: 23%;
}
.section-transition span {
  color: #a99158;
  font: 10px var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.section-transition strong {
  font: 500 26px var(--font-display);
}
.landing-dark {
  background: #0b211c;
  color: #f9f8f2;
}
.landing-assets {
  background: #fff;
}
.asset-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 65px;
  border-top: 1px solid #d7d4c8;
  border-bottom: 1px solid #d7d4c8;
}
.asset-card {
  min-height: 190px;
  padding: 25px 24px 25px 0;
  border-right: 1px solid #d7d4c8;
}
.asset-card + .asset-card {
  padding-left: 24px;
}
.asset-card:last-child {
  border-right: 0;
}
.asset-card span {
  color: #aa8a48;
  font: 10px var(--font-mono);
}
.asset-card h3 {
  font-size: 20px;
  margin: 30px 0 9px;
}
.asset-card p {
  color: #69736c;
  font-size: 12.5px;
  line-height: 1.6;
  margin: 0;
  max-width: 230px;
}
.landing-calculator {
  background: #e7e5dc;
}
.calculator-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 70px;
  align-items: center;
}
.calculator-grid .landing-disclaimer {
  margin-top: 18px;
}
.calculator-card {
  background: #f8f7f1;
  border: 1px solid #c9c6b9;
  box-shadow: 20px 20px 0 rgba(23, 55, 46, 0.08);
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.calculator-field label {
  display: block;
  color: #8b928a;
  font: 10px var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}
.calculator-field select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d7d4c8;
  background: #fff;
  font-size: 13px;
  color: #17372e;
  font-family: inherit;
}
.calculator-field input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
}
.calculator-value {
  margin-top: 8px;
  font: 600 16px var(--font-mono);
  color: #17372e;
}
.calculator-result {
  padding: 18px 0;
  border-top: 1px dashed #d7d4c8;
  border-bottom: 1px dashed #d7d4c8;
}
.calculator-result > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.calculator-result > div > span {
  color: #a99158;
  font: 10px var(--font-mono);
  text-transform: uppercase;
}
.calculator-result strong {
  font: 600 30px var(--font-mono);
  color: var(--accent-dark);
}
.calculator-result dl {
  margin: 14px 0 0;
  display: grid;
  gap: 8px;
}
.calculator-result dl div {
  display: flex;
  justify-content: space-between;
}
.calculator-result dt {
  color: #8b928a;
  font-size: 11px;
}
.calculator-result dd {
  color: #23332c;
  font: 11px var(--font-mono);
  margin: 0;
}
@media (max-width: 900px) {
  .asset-grid {
    grid-template-columns: 1fr 1fr;
  }
  .asset-card:nth-child(2n) {
    border-right: 0;
  }
  .calculator-grid {
    grid-template-columns: 1fr;
    gap: 55px;
  }
}
@media (max-width: 540px) {
  .asset-grid {
    grid-template-columns: 1fr;
  }
  .asset-card {
    border-right: 0 !important;
    border-bottom: 1px solid #d7d4c8;
    padding-left: 0 !important;
  }
  .asset-card:last-child {
    border-bottom: 0;
  }
  .calculator-card {
    padding: 20px;
  }
}
.section-intro-light p {
  color: rgba(249, 248, 242, 0.62);
}
.section-intro-light h2 {
  color: #f9f8f2;
}
.section-intro-light .landing-overline {
  color: #c7a95d;
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 75px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}
.step-item {
  padding: 22px 23px 0 0;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}
.step-item + .step-item {
  padding-left: 23px;
}
.step-item:last-child {
  border-right: 0;
}
.step-item h3 {
  color: #f9f8f2;
  font-size: 18px;
  margin: 48px 0 10px;
}
.step-item p {
  color: rgba(249, 248, 242, 0.58);
  font-size: 12px;
  line-height: 1.6;
  max-width: 180px;
}
.section-heading-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 25px;
}
.landing-plans {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 60px;
}
.landing-plan {
  min-height: 375px;
  display: flex;
  flex-direction: column;
  padding: 22px;
  background: #fff;
  border: 1px solid #dddcd3;
  position: relative;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.landing-plan:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(23, 35, 31, 0.1);
}
.landing-plan.is-featured {
  border: 1.5px solid #c7a95d;
}
.plan-kicker {
  position: absolute;
  top: 0;
  right: 18px;
  padding: 5px 9px;
  background: #c7a95d;
  color: #15251f;
  font: 9px var(--font-mono);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.landing-plan-top {
  display: flex;
  justify-content: space-between;
  color: #a99158;
  font: 10px var(--font-mono);
  text-transform: uppercase;
}
.plan-index {
  color: #b6b8ae;
}
.landing-plan h3 {
  font-size: 23px;
  margin: 55px 0 10px;
}
.landing-plan p {
  color: #69736c;
  font-size: 12px;
  line-height: 1.6;
  margin: 0;
}
.landing-plan dl {
  display: grid;
  gap: 10px;
  margin: 26px 0;
  padding: 15px 0;
  border-top: 1px dashed #d7d4c8;
  border-bottom: 1px dashed #d7d4c8;
}
.landing-plan dl div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.landing-plan dt {
  color: #8b928a;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.landing-plan dd {
  color: #23332c;
  font: 11px var(--font-mono);
  margin: 0;
}
.landing-plan-link {
  margin-top: auto;
  color: #17372e;
  font-size: 12px;
  font-weight: 800;
}
.landing-plan-link span {
  color: #aa8a48;
  font-size: 16px;
  margin-left: 7px;
}
.landing-disclaimer {
  color: #8b928a;
  font-size: 10.5px;
  line-height: 1.5;
  margin: 28px 0 0;
}
.landing-preview-section {
  background: #e7e5dc;
}
.preview-grid {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 70px;
  align-items: center;
}
.preview-grid .section-intro .landing-text-link {
  margin-top: 30px;
}
.dashboard-preview {
  background: #f8f7f1;
  border: 1px solid #c9c6b9;
  box-shadow: 20px 20px 0 rgba(23, 55, 46, 0.08);
}
.preview-bar {
  height: 33px;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 12px;
  border-bottom: 1px solid #d9d7cc;
  background: #f0eee7;
}
.preview-bar span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #c7a95d;
  opacity: 0.8;
}
.preview-bar small {
  margin-left: 12px;
  color: #8b928a;
  font: 9px var(--font-mono);
}
.preview-content {
  padding: 24px;
}
.preview-greeting span,
.preview-chart > span,
.preview-activity > span {
  color: #a99158;
  font: 8px var(--font-mono);
  letter-spacing: 0.08em;
}
.preview-greeting strong {
  display: block;
  font: 500 20px var(--font-display);
  margin-top: 5px;
}
.preview-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin: 25px 0;
}
.preview-stats div {
  padding: 12px;
  background: #fff;
  border: 1px solid #e1dfd6;
}
.preview-stats small {
  display: block;
  color: #8b928a;
  font-size: 9px;
}
.preview-stats strong {
  display: block;
  color: #17372e;
  font: 600 13px var(--font-mono);
  margin-top: 7px;
}
.preview-chart {
  padding: 16px;
  background: #fff;
  border: 1px solid #e1dfd6;
}
.preview-chart svg {
  display: block;
  width: 100%;
  height: 145px;
  margin-top: 12px;
}
.preview-chart path {
  fill: none;
  stroke: #aa8a48;
  stroke-width: 2;
}
.preview-chart .preview-line-secondary {
  stroke: #d8d6ca;
  stroke-width: 1;
  stroke-dasharray: 4 5;
}
.preview-activity {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
.preview-activity i {
  display: block;
  height: 8px;
  background: #e5e3da;
  width: 88%;
}
.preview-activity i:nth-child(3) {
  width: 72%;
}
.preview-activity i:nth-child(4) {
  width: 81%;
}
.security-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 100px;
}
.security-list {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}
.security-item {
  display: flex;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}
.security-item h3 {
  color: #f9f8f2;
  font-size: 17px;
  margin: 0 0 6px;
}
.security-item p {
  color: rgba(249, 248, 242, 0.58);
  font-size: 12px;
  line-height: 1.5;
  margin: 0;
}
.security-item > span {
  color: #c7a95d;
  font: 10px var(--font-mono);
}
.landing-transparency {
  background: #f4f3ee;
}
.transparency-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 100px;
}
.transparency-flow {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.transparency-flow div {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid #d7d4c8;
}
.transparency-flow span {
  color: #aa8a48;
  font: 10px var(--font-mono);
}
.transparency-flow strong {
  font: 500 21px var(--font-display);
}
.transparency-flow i {
  color: #aa8a48;
  font-style: normal;
  margin: 3px 0 3px 5px;
}
.landing-why {
  background: #e7e5dc;
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 65px;
  border-top: 1px solid #d1cec1;
}
.why-item {
  padding: 22px 25px 26px 0;
  border-bottom: 1px solid #d1cec1;
  border-right: 1px solid #d1cec1;
}
.why-item:nth-child(3n + 2),
.why-item:nth-child(3n + 3) {
  padding-left: 25px;
}
.why-item:nth-child(3n) {
  border-right: 0;
}
.why-item h3 {
  font-size: 18px;
  margin: 35px 0 8px;
}
.why-item p {
  color: #69736c;
  font-size: 12px;
  line-height: 1.55;
  margin: 0;
  max-width: 230px;
}
.landing-about {
  background: #f4f3ee;
}
.about-grid {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 80px;
}
.about-copy {
  max-width: 720px;
}
.about-copy h2 {
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1.05;
  font-weight: 500;
  margin: 0 0 24px;
}
.about-copy p {
  max-width: 550px;
  color: #69736c;
  font-size: 14px;
  line-height: 1.75;
  margin: 0;
}
.about-copy .landing-text-link {
  margin-top: 30px;
}
.landing-faq-section {
  background: #e7e5dc;
}
.faq-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 100px;
}
.landing-faq {
  border-top: 1px solid #cfcbbd;
}
.landing-faq details {
  border-bottom: 1px solid #cfcbbd;
  padding: 19px 0;
}
.landing-faq summary {
  cursor: pointer;
  list-style: none;
  font: 500 18px var(--font-display);
}
.landing-faq summary::-webkit-details-marker {
  display: none;
}
.landing-faq summary::after {
  content: "+";
  float: right;
  color: #aa8a48;
  font: 500 20px var(--font-mono);
}
.landing-faq details[open] summary::after {
  content: "−";
}
.landing-faq p {
  max-width: 600px;
  color: #69736c;
  font-size: 12.5px;
  line-height: 1.65;
  margin: 12px 30px 0 0;
}
.landing-final-cta {
  padding: 135px 0;
  background: #0b211c;
  color: #f9f8f2;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.landing-final-cta::before {
  content: "";
  position: absolute;
  width: 700px;
  height: 700px;
  left: 50%;
  top: 50%;
  border: 1px solid rgba(199, 169, 93, 0.2);
  transform: translate(-50%, -50%) rotate(45deg);
}
.final-cta-inner {
  position: relative;
  z-index: 1;
}
.landing-final-cta .landing-overline {
  color: #c7a95d;
}
.landing-final-cta h2 {
  max-width: 750px;
  margin: 18px auto;
  color: #f9f8f2;
  font-size: clamp(40px, 5vw, 66px);
  line-height: 1.04;
  font-weight: 500;
}
.landing-final-cta p {
  color: rgba(249, 248, 242, 0.62);
  font-size: 14px;
  margin: 0 auto 30px;
}
.landing-text-link-light {
  color: #f9f8f2;
}
.landing-footer {
  background: #081813;
  color: #f9f8f2;
  padding: 65px 0 25px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 60px;
  padding-bottom: 55px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
}
.landing-footer .landing-logo img {
  height: 34px;
}
.landing-footer p {
  color: rgba(249, 248, 242, 0.5);
  font-size: 12px;
  margin: 12px 0 0;
}
.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 170px);
  gap: 25px;
}
.footer-links div {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.footer-links strong {
  color: #c7a95d;
  font: 10px var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 5px;
}
.footer-links a {
  color: rgba(249, 248, 242, 0.58);
  font-size: 11.5px;
}
.footer-links a:hover {
  color: #fff;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  padding-top: 20px;
  color: rgba(249, 248, 242, 0.42);
  font: 9.5px var(--font-mono);
  line-height: 1.5;
}
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.65s ease,
    transform 0.65s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
.scroll-top-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 99;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #0b211c;
  color: #c7a95d;
  border: 1px solid rgba(199, 169, 93, 0.4);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease,
    visibility 0.25s ease,
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease,
    box-shadow 0.15s ease;
}
.scroll-top-btn svg {
  width: 18px;
  height: 18px;
  display: block;
}
.scroll-top-btn:hover {
  background: #c7a95d;
  color: #0b211c;
  border-color: #c7a95d;
  box-shadow: 0 6px 20px rgba(199, 169, 93, 0.35);
  transform: translateY(-2px);
}
.scroll-top-btn:focus-visible {
  outline: 2px solid #c7a95d;
  outline-offset: 3px;
}
.scroll-top-btn.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.scroll-top-btn.is-visible:hover {
  transform: translateY(-2px);
}
@media (max-width: 900px) {
  .landing-container,
  .landing-header-inner {
    width: min(100% - 36px, 680px);
  }
  .landing-nav {
    position: absolute;
    top: 76px;
    left: 18px;
    right: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 18px 18px;
    background: #0b211c;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: var(--shadow-lg);
  }
  .landing-nav.is-open {
    display: flex;
  }
  .landing-nav a {
    padding: 12px 0;
  }
  .landing-nav-actions {
    display: flex;
    margin: 6px 0 0;
    padding: 12px 0 0;
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
  }
  .landing-menu-button {
    display: flex;
    margin-left: auto;
    width: 40px;
    height: 40px;
    padding: 10px;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #fff;
  }
  .landing-menu-button span {
    width: 18px;
    height: 2px;
    background: currentColor;
  }
  .landing-body.landing-menu-open {
    overflow: hidden;
  }
  .landing-hero {
    min-height: auto;
    padding: 135px 0 80px;
  }
  .landing-hero-grid,
  .preview-grid,
  .security-grid,
  .transparency-grid,
  .faq-grid,
  .about-grid {
    grid-template-columns: 1fr;
    gap: 55px;
  }
  .crest-visual {
    min-height: 390px;
  }
  .trust-grid {
    grid-template-columns: 1fr 1fr;
  }
  .trust-intro {
    grid-column: 1/-1;
    border-bottom: 1px solid #d1cec1;
  }
  .trust-item:nth-child(2n) {
    border-right: 0;
  }
  .landing-section {
    padding: 75px 0;
  }
  .problem-grid,
  .steps-grid,
  .landing-plans {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    border: 0;
  }
  .problem-card,
  .step-item {
    border: 1px solid #d7d4c8;
    padding: 20px !important;
    min-height: 180px;
  }
  .step-item {
    border-color: rgba(255, 255, 255, 0.2);
  }
  .section-transition {
    padding-left: 0;
    align-items: flex-start;
    flex-direction: column;
  }
  .landing-plans {
    gap: 12px;
  }
  .landing-plan {
    min-height: 340px;
  }
  .why-grid {
    grid-template-columns: 1fr 1fr;
  }
  .why-item:nth-child(3n) {
    border-right: 1px solid #d1cec1;
  }
  .why-item:nth-child(2n) {
    border-right: 0;
    padding-left: 25px;
  }
  .footer-top {
    flex-direction: column;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 8px;
  }
}
@media (max-width: 540px) {
  .landing-container,
  .landing-header-inner {
    width: calc(100% - 32px);
  }
  .landing-header-inner {
    min-height: 68px;
  }
  .landing-logo img {
    height: 31px;
  }
  .landing-hero h1 {
    font-size: 46px;
  }
  .landing-hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }
  .landing-hero-actions .landing-button {
    width: 100%;
  }
  .landing-hero .landing-text-link {
    justify-content: center;
  }
  .landing-trust-list {
    gap: 12px;
    line-height: 1.6;
  }
  .crest-visual {
    min-height: 310px;
  }
  .trust-grid,
  .problem-grid,
  .steps-grid,
  .landing-plans,
  .why-grid {
    grid-template-columns: 1fr;
  }
  .trust-intro {
    grid-column: auto;
  }
  .trust-item,
  .trust-item:nth-child(2n) {
    border-right: 0;
    border-bottom: 1px solid #d1cec1;
    min-height: 125px;
  }
  .trust-item:last-child {
    border-bottom: 0;
  }
  .problem-card,
  .step-item {
    min-height: 150px;
  }
  .section-heading-row {
    align-items: flex-start;
    flex-direction: column;
  }
  .landing-plan {
    min-height: 0;
  }
  .preview-content {
    padding: 14px;
  }
  .preview-stats {
    grid-template-columns: 1fr;
  }
  .preview-stats strong {
    font-size: 12px;
  }
  .why-item,
  .why-item:nth-child(2n),
  .why-item:nth-child(3n) {
    border-right: 0;
    padding: 20px 0;
  }
  .footer-links {
    grid-template-columns: 1fr 1fr;
    gap: 30px 18px;
  }
  .landing-final-cta {
    padding: 95px 0;
  }
  .footer-bottom {
    font-size: 9px;
  }
  .scroll-top-btn {
    bottom: 20px;
    right: 18px;
    width: 40px;
    height: 40px;
  }
  .scroll-top-btn svg {
    width: 16px;
    height: 16px;
  }
}

/* ============================================================
  ADMIN DASHBOARD
  ============================================================ */
.admin-body {
  background: #eef0eb;
  color: var(--text);
}
.admin-shell {
  display: flex;
  min-height: 100vh;
}
.admin-sidebar {
  width: 250px;
  flex: 0 0 250px;
  min-height: 100vh;
  height: 100vh;
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  padding: 22px 15px;
  background: var(--primary-dark);
  color: #eaf2ec;
}
.admin-brand {
  display: flex;
  align-items: center;
  padding: 5px 8px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 17px;
}
.admin-brand img {
  width: auto;
  height: 33px;
}
.admin-close {
  display: none;
}
.admin-label {
  color: rgba(234, 242, 236, 0.4);
  font: 10px var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 15px 12px 7px;
}
.admin-nav {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: rgba(234, 242, 236, 0.7);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 2px;
}
.admin-nav span {
  width: 18px;
  color: var(--accent);
  font: 18px var(--font-mono);
  text-align: center;
}
.admin-nav:hover,
.admin-nav.active {
  color: #fff;
  background: var(--primary-tint);
}
.admin-nav.active {
  box-shadow: inset 3px 0 0 var(--accent);
}
.admin-nav b {
  margin-left: auto;
  padding: 2px 6px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--primary-dark);
  font: 10px var(--font-mono);
}
.admin-sidebar-foot {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 15px 10px;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12px;
}
.admin-sidebar-foot strong,
.admin-sidebar-foot small {
  display: block;
}
.admin-sidebar-foot small {
  color: rgba(234, 242, 236, 0.48);
  font-size: 10px;
  margin-top: 2px;
}
.admin-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(141, 198, 63, 0.12);
}
.admin-main {
  min-width: 0;
  flex: 1;
  padding: 30px 38px 70px;
}
.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
}
.admin-eyebrow {
  color: var(--text-faint);
  font: 10px var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 5px;
}
.admin-topbar h1 {
  font-size: 27px;
}
.admin-top-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.admin-live {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--text-muted);
  font: 11px var(--font-mono);
}
.admin-live i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-dark);
}
.admin-avatar {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--primary);
  color: var(--accent);
  font: 600 12px var(--font-mono);
}
.admin-menu {
  display: none;
}
.admin-welcome {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding: 25px 28px;
  margin-bottom: 18px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-md);
}
.admin-welcome > div span {
  color: var(--accent);
  font: 10px var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.admin-welcome h2 {
  color: #fff;
  font-size: 28px;
  margin: 8px 0 5px;
}
.admin-welcome p {
  color: rgba(234, 242, 236, 0.65);
  font-size: 12.5px;
  margin: 0;
}
.admin-primary {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  padding: 11px 15px;
  background: var(--accent);
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 700;
  border-radius: var(--radius-sm);
}
.admin-primary span {
  font-size: 17px;
}
.admin-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}
.admin-metrics article {
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.admin-metrics span,
.admin-metrics small {
  display: block;
  color: var(--text-muted);
  font-size: 11px;
}
.admin-metrics strong {
  display: block;
  color: var(--text);
  font-size: 20px;
  margin: 10px 0 7px;
}
.admin-metrics small {
  color: var(--text-faint);
  font-size: 10.5px;
}
.admin-grid-top {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
  margin-bottom: 18px;
}
.admin-panel {
  padding: 21px 22px;
  margin-bottom: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.admin-grid-top .admin-panel {
  margin-bottom: 0;
}
.admin-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 18px;
}
.admin-panel-head h3 {
  font-size: 17px;
}
.admin-panel-head p {
  color: var(--text-muted);
  font-size: 11.5px;
  margin: 3px 0 0;
}
.admin-panel-head a {
  color: var(--primary);
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
}
.admin-count {
  padding: 5px 8px;
  background: var(--warning-soft);
  color: var(--warning);
  border-radius: 14px;
  font: 10px var(--font-mono);
  white-space: nowrap;
}
.admin-plan-bar {
  margin-bottom: 18px;
}
.admin-plan-bar:last-child {
  margin-bottom: 0;
}
.admin-plan-bar > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 7px;
}
.admin-plan-bar span {
  font-size: 12px;
}
.admin-plan-bar strong {
  color: var(--text-muted);
  font-size: 11px;
}
.admin-bar-track {
  height: 7px;
  background: var(--surface-sunken);
  border-radius: 5px;
  overflow: hidden;
}
.admin-bar-track i {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: 5px;
}
.admin-queue-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.admin-queue-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.admin-queue-icon {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: var(--surface-sunken);
  color: var(--primary);
  font: 600 17px var(--font-mono);
}
.admin-queue-icon.deposit {
  color: var(--success);
  background: var(--success-soft);
}
.admin-queue-icon.withdrawal {
  color: var(--warning);
  background: var(--warning-soft);
}
.admin-queue-row > div:nth-child(2),
.admin-transaction-row > div:nth-child(2) {
  flex: 1;
  min-width: 0;
}
.admin-queue-row strong,
.admin-transaction-row strong {
  display: block;
  font-size: 12px;
}
.admin-queue-row small,
.admin-transaction-row small {
  display: block;
  overflow: hidden;
  color: var(--text-muted);
  font-size: 10.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 2px;
}
.admin-review-button {
  padding: 6px 9px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--primary);
  font-size: 10.5px;
  font-weight: 700;
}
.admin-review-button:hover,
.admin-review-button.reviewed {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.admin-review-button:disabled {
  cursor: default;
}
.admin-search {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.admin-search span {
  color: var(--text-faint);
  font-size: 17px;
}
.admin-search input {
  width: 135px;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 11px;
}
.admin-table {
  overflow-x: auto;
}
.admin-table-head,
.admin-table-row {
  min-width: 680px;
  display: grid;
  grid-template-columns: 2fr 1.1fr 1.1fr 1.2fr 50px;
  align-items: center;
  gap: 14px;
  padding: 11px 0;
}
.admin-table-head {
  color: var(--text-faint);
  border-bottom: 1px solid var(--border);
  font: 10px var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.admin-table-row {
  font-size: 12px;
}
.admin-user-cell {
  display: flex;
  align-items: center;
  gap: 9px;
}
.admin-avatar-small {
  width: 31px;
  height: 31px;
  font-size: 10px;
}
.admin-user-cell strong,
.admin-user-cell small {
  display: block;
}
.admin-user-cell small {
  color: var(--text-muted);
  font-size: 10px;
  margin-top: 2px;
}
.admin-status {
  display: inline-block;
  padding: 3px 7px;
  border-radius: 12px;
  font: 10px var(--font-mono);
}
.admin-status.active {
  color: var(--success);
  background: var(--success-soft);
}
.admin-muted {
  color: var(--text-muted);
  font-size: 11px;
}
.admin-row-link {
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
}
.admin-no-results {
  padding: 20px 0;
  color: var(--text-muted);
  font-size: 12px;
}
.admin-activity-list {
  overflow-x: auto;
}
.admin-transaction-row {
  min-width: 680px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.admin-transaction-row:last-child {
  border-bottom: 0;
}
.admin-transaction-row > .admin-muted {
  width: 125px;
}
.admin-transaction-row > .mono {
  width: 100px;
  text-align: right;
  font-size: 11.5px;
}
.admin-positive {
  color: var(--success);
}
.admin-disclaimer {
  display: flex;
  gap: 12px;
  padding: 13px 15px;
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  color: var(--primary-dark);
  font-size: 10.5px;
  line-height: 1.5;
}
.admin-disclaimer strong {
  white-space: nowrap;
}
.admin-backdrop {
  display: none;
}
@media (max-width: 900px) {
  .admin-sidebar {
    position: fixed;
    z-index: 310;
    inset: 0 auto 0 0;
    width: min(82vw, 280px);
    transform: translateX(-105%);
    transition: transform 0.2s ease;
    box-shadow: var(--shadow-lg);
  }
  .admin-sidebar.open {
    transform: translateX(0);
  }
  .admin-close {
    display: block;
    margin-left: auto;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 25px;
  }
  .admin-backdrop {
    display: block;
    position: fixed;
    z-index: 300;
    inset: 0;
    background: rgba(8, 24, 19, 0.48);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
  }
  .admin-backdrop.open {
    opacity: 1;
    pointer-events: auto;
  }
  .admin-menu-lock {
    overflow: hidden;
  }
  .admin-main {
    padding: 20px 18px 45px;
  }
  .admin-menu {
    display: flex;
    width: 38px;
    height: 38px;
    padding: 9px;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
  }
  .admin-menu span {
    width: 18px;
    height: 2px;
    background: var(--primary);
  }
  .admin-topbar {
    justify-content: flex-start;
  }
  .admin-topbar > div:nth-child(2) {
    flex: 1;
  }
  .admin-top-actions {
    margin-left: auto;
  }
  .admin-grid-top {
    grid-template-columns: 1fr;
  }
  .admin-metrics {
    grid-template-columns: 1fr 1fr;
  }
  .admin-welcome {
    align-items: flex-start;
    flex-direction: column;
  }
  .admin-primary {
    width: 100%;
    justify-content: center;
  }
}
@media (max-width: 480px) {
  .admin-main {
    padding-left: 14px;
    padding-right: 14px;
  }
  .admin-topbar h1 {
    font-size: 23px;
  }
  .admin-live {
    display: none;
  }
  .admin-welcome {
    padding: 21px;
  }
  .admin-welcome h2 {
    font-size: 24px;
  }
  .admin-metrics {
    gap: 8px;
  }
  .admin-metrics article {
    padding: 14px;
  }
  .admin-metrics strong {
    font-size: 16px;
  }
  .admin-panel {
    padding: 18px 16px;
  }
  .admin-panel-head {
    flex-direction: column;
  }
  .admin-search {
    width: 100%;
  }
  .admin-search input {
    flex: 1;
    width: auto;
  }
}

/* ============================================================
   MARKET STATUS BANNER
   ============================================================ */
.market-status {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 18px;
  margin-bottom: 20px;
  transition: border-color 0.3s, background 0.3s;
}

.market-status-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.market-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #94a3b8;
  flex-shrink: 0;
  position: relative;
}

/* Open state */
.market-status.open {
  border-color: rgba(34, 197, 94, 0.35);
  background: linear-gradient(
    90deg,
    rgba(34, 197, 94, 0.06),
    rgba(34, 197, 94, 0.01)
  );
}
.market-status.open .market-dot {
  background: #22c55e;
  animation: marketPulse 2s infinite;
}
.market-status.open .market-text strong {
  color: #16a34a;
}

/* Closed state */
.market-status.closed {
  border-color: var(--border);
}
.market-status.closed .market-dot {
  background: #94a3b8;
}

/* Pulse animation */
@keyframes marketPulse {
  0%   { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55); }
  70%  { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.market-text {
  font-size: 13.5px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  line-height: 1.5;
}
.market-text strong {
  color: var(--text);
  font-weight: 600;
}
.market-sep {
  color: var(--text-faint);
}

@media (max-width: 480px) {
  .market-status { padding: 10px 14px; }
  .market-text   { font-size: 12.5px; }
}

.badge-queued { background: #f59e0b; color: #fff; }

.plan-card.locked {
  position: relative;
  opacity: 0.65;
  filter: grayscale(0.45);
}

.plan-card.locked .plan-return .value {
  color: var(--text-muted);
}

.plan-card.locked .btn-primary,
.plan-card.locked .btn-primary:disabled {
  background: var(--surface-2, #2a2a2a);
  color: var(--text-muted);
  cursor: not-allowed;
  opacity: 0.9;
}

.plan-card.locked .btn-primary:hover {
  background: var(--surface-2, #2a2a2a);
}

.ribbon-locked {
  background: #6b7280 !important;
  color: #fff !important;
  letter-spacing: 0.02em;
}
