@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700&display=swap');

:root {
  --bg: #f3f6f4;
  --bg-deep: #0c1f1a;
  --surface: #ffffff;
  --ink: #12211c;
  --muted: #5c7269;
  --line: #d5e0db;
  --brand: #0f6b4c;
  --brand-dark: #0a4d37;
  --accent: #c4a35a;
  --accent-soft: #f7efd9;
  --danger: #b42318;
  --success: #067647;
  --warn: #b54708;
  --radius: 14px;
  --shadow: 0 18px 50px rgba(12, 31, 26, 0.08);
  --font: 'DM Sans', system-ui, sans-serif;
  --display: 'Fraunces', Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  min-height: 100vh;
}
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }
img { max-width: 100%; display: block; }
h1,h2,h3,.display { font-family: var(--display); font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }

.container { width: min(1120px, calc(100% - 2rem)); margin-inline: auto; }
.container-sm { width: min(480px, calc(100% - 2rem)); margin-inline: auto; }

/* Public nav */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(243,246,244,.88);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 0; gap: 1rem;
}
.brand {
  font-family: var(--display); font-size: 1.35rem; font-weight: 700;
  color: var(--bg-deep); letter-spacing: -0.03em;
}
.brand span { color: var(--brand); }

/* Shared logo (all panels) */
.ov-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none !important;
  color: inherit;
}
.ov-logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: block;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(15, 107, 76, 0.35);
}
.ov-logo-text {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.03em;
  color: var(--bg-deep);
  line-height: 1;
}
.ov-logo-text span { color: var(--brand); }
.ov-logo-text-light { color: #fff; }
.ov-logo-text-light span { color: var(--accent); }
.sidebar-brand {
  padding: 0 .75rem 1.5rem;
  color: #fff;
}
.sidebar-brand .ov-logo-text { color: #fff; }
.sidebar-brand .ov-logo-text span { color: var(--accent); }
.auth-logo {
  display: inline-flex;
  margin-bottom: 1rem;
}
.nav-links { display: flex; gap: 1.25rem; align-items: center; flex-wrap: wrap; }
.nav-links a { color: var(--muted); font-weight: 500; font-size: .95rem; }
.nav-links a:hover { color: var(--ink); }
.nav-links a.btn { color: #fff; }
.nav-links a.btn:hover { color: #fff; }
.nav-links a.btn-primary { background: var(--brand); color: #fff; }
.nav-links a.btn-primary:hover { background: var(--brand-dark); color: #fff; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  border: none; border-radius: 999px; padding: .7rem 1.25rem;
  font-weight: 600; font-size: .92rem; cursor: pointer;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-accent { background: var(--accent); color: var(--bg-deep); }
.btn-ghost { background: transparent; border: 1px solid var(--line); color: var(--ink); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-sm { padding: .4rem .85rem; font-size: .82rem; }
.btn-block { width: 100%; }
.btn.is-loading {
  pointer-events: none;
  opacity: .82;
  transform: none !important;
  cursor: wait;
}
.btn.is-loading:hover { transform: none !important; }
.btn-spinner {
  width: .95em;
  height: .95em;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  display: inline-block;
  animation: btn-spin .65s linear infinite;
  flex-shrink: 0;
}
@keyframes btn-spin {
  to { transform: rotate(360deg); }
}
.page-action-loading {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  background: rgba(12, 31, 26, 0.35);
  backdrop-filter: blur(2px);
}
.page-action-loading[hidden] { display: none !important; }
.page-action-loading-box {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .75rem 1.25rem;
  box-shadow: var(--shadow);
  font-weight: 600;
  font-size: .92rem;
}
body.action-loading-open { cursor: wait; }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  background-color: #0c1f1a;
  background-image:
    linear-gradient(105deg, rgba(12, 31, 26, 0.88) 0%, rgba(12, 31, 26, 0.72) 45%, rgba(12, 31, 26, 0.42) 100%),
    url("../landing/images/hero.png");
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  color: #fff; min-height: 88vh; display: flex; align-items: center;
}
.hero::after {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; padding: 4.5rem 0 5rem; max-width: 640px; }
.hero .brand-mark {
  font-family: var(--display); font-size: clamp(2.4rem, 6vw, 3.8rem);
  margin: 0 0 .75rem; animation: rise .7s ease both;
}
.hero h1 {
  font-size: clamp(1.5rem, 3.5vw, 2.1rem); font-weight: 500;
  margin: 0 0 1rem; color: rgba(255,255,255,.92); animation: rise .7s .1s ease both;
}
.hero p { color: rgba(255,255,255,.78); font-size: 1.05rem; margin: 0 0 1.75rem; max-width: 36ch; animation: rise .7s .2s ease both; }
.hero-cta { display: flex; gap: .75rem; flex-wrap: wrap; animation: rise .7s .3s ease both; }
.hero .btn-accent { box-shadow: 0 8px 24px rgba(196,163,90,.35); }

@media (max-width: 768px) {
  .hero { background-position: center center; min-height: 70vh; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

.section { padding: 4rem 0; }
.section-title { font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 0 0 .5rem; }
.section-sub { color: var(--muted); margin: 0 0 2rem; max-width: 48ch; }

.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.plan-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.75rem; box-shadow: var(--shadow);
  transition: transform .2s ease;
}
.plan-card:hover { transform: translateY(-4px); }
.plan-card .tag {
  display: inline-block; background: var(--accent-soft); color: #7a5c1e;
  font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: .3rem .65rem; border-radius: 6px; margin-bottom: .85rem;
}
.plan-card h3 { margin: 0 0 .5rem; font-size: 1.35rem; }
.plan-card .highlight {
  font-family: var(--display); font-size: 1.5rem; color: var(--brand); margin: 1rem 0;
}
.plan-meta { list-style: none; padding: 0; margin: 1rem 0 0; }
.plan-meta li {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: .55rem 0; border-top: 1px solid var(--line); font-size: .92rem;
}
.plan-meta span { color: var(--muted); }

.steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem;
}
.step {
  text-align: center; padding: 1.5rem 1rem;
  background: linear-gradient(180deg, #fff, #f8faf9);
  border: 1px solid var(--line); border-radius: var(--radius);
}
.step-num {
  width: 42px; height: 42px; margin: 0 auto .75rem;
  border-radius: 50%; background: var(--brand); color: #fff;
  display: grid; place-items: center; font-weight: 700;
}

.site-footer {
  background: var(--bg-deep); color: rgba(255,255,255,.7);
  padding: 2.5rem 0; margin-top: 2rem; font-size: .9rem;
}
.site-footer a { color: #fff; }
.footer-grid { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

/* Auth */
.auth-page {
  min-height: 100vh; display: grid; place-items: center;
  background:
    radial-gradient(ellipse at top right, rgba(15,107,76,.12), transparent 50%),
    var(--bg);
  padding: 2rem 0;
}
.auth-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px); padding: 2rem;
  box-shadow: var(--shadow); width: min(440px, calc(100% - 2rem));
}
.auth-card h1 { margin: 0 0 .35rem; font-size: 1.75rem; }
.auth-card .sub { color: var(--muted); margin: 0 0 1.5rem; }

.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: .35rem; }
.form-control {
  width: 100%; padding: .7rem .9rem; border: 1px solid var(--line);
  border-radius: 10px; background: #fff; font: inherit; color: var(--ink);
}
.form-control:focus { outline: 2px solid rgba(15,107,76,.35); border-color: var(--brand); }
.form-hint { font-size: .8rem; color: var(--muted); margin-top: .3rem; }
.form-error { color: var(--danger); font-size: .82rem; margin-top: .3rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
textarea.form-control { min-height: 90px; resize: vertical; }

.alert {
  padding: .85rem 1rem; border-radius: 10px; margin-bottom: 1rem; font-size: .92rem;
}
.alert-success { background: #ecfdf3; color: var(--success); border: 1px solid #abefc6; }
.alert-error { background: #fef3f2; color: var(--danger); border: 1px solid #fecdca; }
.alert-info { background: #eff8ff; color: #175cd3; border: 1px solid #b2ddff; }

/* App shell */
.app-shell { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.sidebar {
  background: var(--bg-deep); color: #fff; padding: 1.5rem 1rem;
  display: flex; flex-direction: column; gap: .25rem;
}
.sidebar .brand { color: #fff; padding: 0 .75rem 1.5rem; }
.sidebar a {
  color: rgba(255,255,255,.72); padding: .65rem .85rem; border-radius: 10px;
  font-weight: 500; font-size: .92rem;
}
.sidebar a:hover, .sidebar a.active {
  background: rgba(255,255,255,.1); color: #fff;
}
.sidebar .spacer { flex: 1; }
.main { padding: 1.75rem; overflow-x: auto; }
.page-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap;
}
.page-head h1 { margin: 0; font-size: 1.65rem; }
.page-head p { margin: .25rem 0 0; color: var(--muted); }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.stat {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
}
.stat .label { color: var(--muted); font-size: .82rem; font-weight: 500; }
.stat .value { font-family: var(--display); font-size: 1.45rem; margin-top: .25rem; }
.stat-hint {
  margin-top: .35rem;
  font-size: .75rem;
  color: var(--brand);
  font-weight: 600;
  line-height: 1.3;
}

.panel {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.25rem; margin-bottom: 1.25rem;
}
.panel-title { font-size: 1.1rem; margin: 0 0 1rem; }

.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: .9rem; }
table.data th, table.data td {
  text-align: left; padding: .75rem .65rem; border-bottom: 1px solid var(--line);
}
table.data th { color: var(--muted); font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; }
table.data tr:hover td { background: #f8faf9; }

.badge {
  display: inline-block; padding: .2rem .55rem; border-radius: 999px;
  font-size: .75rem; font-weight: 600; text-transform: capitalize;
}
.badge-active, .badge-paid, .badge-credited_to_wallet, .badge-matured { background: #ecfdf3; color: var(--success); }
.badge-pending, .badge-pending_approval, .badge-pending_payment, .badge-approved { background: #fffaeb; color: var(--warn); }
.badge-rejected, .badge-cancelled, .badge-suspended, .badge-terminated { background: #fef3f2; color: var(--danger); }
.badge-principal_withdrawn { background: #f4f3ff; color: #5925dc; }

.filters {
  display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 1rem; align-items: end;
}
.filters .form-group { margin: 0; min-width: 140px; }

.table-toolbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 0 .85rem; gap: .75rem; flex-wrap: wrap;
}
.table-meta { margin: 0; color: var(--muted); font-size: .9rem; }

.pagination-wrap {
  margin-top: 1.25rem;
  display: flex;
  justify-content: center;
}
.pagination {
  display: flex; flex-wrap: wrap; gap: .35rem; list-style: none;
  padding: 0; margin: 0; align-items: center;
}
.pagination .page-item .page-link {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 36px; height: 36px; padding: 0 .7rem;
  border: 1px solid var(--line); border-radius: 10px;
  background: #fff; color: var(--ink); font-weight: 500; font-size: .88rem;
  text-decoration: none; transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.pagination .page-item .page-link:hover {
  background: #f3f6f4; border-color: var(--brand); color: var(--brand);
}
.pagination .page-item.active .page-link {
  background: var(--brand); border-color: var(--brand); color: #fff;
}
.pagination .page-item.disabled .page-link {
  opacity: .45; pointer-events: none; background: #f8faf9;
}

/* Payout receive method (Bank / UPI) */
.form-label-strong {
  display: block; font-weight: 700; font-size: .92rem; margin-bottom: .65rem;
}
.payout-method { margin-bottom: 1.25rem; }
.receive-toggle {
  display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin-bottom: 1rem;
}
.receive-option { cursor: pointer; margin: 0; }
.receive-option input { position: absolute; opacity: 0; pointer-events: none; }
.receive-card {
  display: block; padding: 1rem 1.1rem; border-radius: 12px;
  border: 1.5px solid var(--line); background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.receive-card strong { display: block; font-size: .98rem; color: var(--ink); margin-bottom: .2rem; }
.receive-card small { color: var(--muted); font-size: .82rem; }
.receive-option input:checked + .receive-card {
  border-color: var(--brand); background: #f3faf7;
  box-shadow: 0 0 0 3px rgba(15, 107, 76, .12);
}
.source-toggle {
  display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .9rem;
}
.chip-option { cursor: pointer; margin: 0; }
.chip-option input { position: absolute; opacity: 0; pointer-events: none; }
.chip-option span {
  display: inline-block; padding: .4rem .85rem; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; font-size: .85rem; font-weight: 600; color: var(--muted);
}
.chip-option input:checked + span {
  background: var(--brand); border-color: var(--brand); color: #fff;
}
.check-row {
  display: flex; align-items: center; gap: .55rem;
  margin: .35rem 0 .55rem; font-size: .9rem; color: var(--ink); cursor: pointer;
}
.check-row input { width: 16px; height: 16px; accent-color: var(--brand); }
.receive-panel { padding-top: .15rem; }

@media (max-width: 640px) {
  .receive-toggle { grid-template-columns: 1fr; }
}

.empty { text-align: center; padding: 2.5rem 1rem; color: var(--muted); }

.accelerator {
  background: linear-gradient(135deg, #0f6b4c, #145239);
  color: #fff; border-radius: var(--radius); padding: 1.35rem 1.5rem; margin-bottom: 1.25rem;
}
.accelerator h3 { margin: 0 0 .5rem; color: #fff; }
.progress-bar {
  height: 8px; background: rgba(255,255,255,.2); border-radius: 999px; overflow: hidden; margin: .75rem 0;
}
.progress-bar span { display: block; height: 100%; background: var(--accent); border-radius: 999px; }

.payment-box {
  background: #f8faf9; border: 1px dashed var(--brand); border-radius: var(--radius);
  padding: 1.25rem; margin-bottom: 1.25rem;
}
.qr-preview { max-width: 180px; border-radius: 10px; margin-top: .75rem; }

/* App modal (deposit details, etc.) */
.app-modal {
  position: fixed;
  inset: 0;
  z-index: 1050;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.app-modal.is-open { display: flex; }
.app-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 31, 26, 0.5);
  backdrop-filter: blur(2px);
}
.app-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  max-height: min(90vh, 900px);
  overflow: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow);
}
.app-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: var(--surface);
  z-index: 2;
}
.app-modal-header h2 {
  margin: 0;
  font-size: 1.25rem;
}
.app-modal-header .sub {
  margin: .25rem 0 0;
  color: var(--muted);
  font-size: .88rem;
}
.app-modal-close {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
  color: var(--muted);
}
.app-modal-close:hover { color: var(--ink); background: #f8faf9; }
.app-modal-body { padding: 1.25rem; }
.app-modal-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.25rem;
  align-items: start;
}
.app-modal-proof {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--accent-soft);
  aspect-ratio: 1;
}
.app-modal-proof img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.app-modal-proof-empty {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: .88rem;
}
.app-modal-amount {
  font-family: var(--display);
  font-size: 1.6rem;
  color: var(--brand);
  margin: 0 0 .75rem;
}
.app-modal-actions {
  display: none;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 1.15rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.app-modal-actions.is-visible { display: flex; }
body.app-modal-open { overflow: hidden; }
@media (max-width: 700px) {
  .app-modal-layout { grid-template-columns: 1fr; }
  .app-modal-proof { max-width: 280px; margin-inline: auto; }
}

/* Deposit approval cards — 4 per row */
.deposit-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.deposit-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.deposit-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.deposit-card.is-pending { border-color: var(--accent); }
.deposit-card-thumb {
  display: block;
  aspect-ratio: 1;
  background: var(--accent-soft);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.deposit-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.deposit-card-thumb .empty-thumb {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: .82rem;
  border: none;
  padding: 0;
}
.deposit-card-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: .65rem;
  min-width: 0;
}
.deposit-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .5rem;
}
.deposit-card-id {
  font-weight: 700;
  font-size: .88rem;
  word-break: break-all;
  line-height: 1.3;
}
.deposit-card-amount {
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--brand);
  line-height: 1.2;
}
.deposit-card-sub {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem .75rem;
  font-size: .78rem;
  color: var(--muted);
}
.deposit-card-meta {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--line);
}
.deposit-card-meta li {
  display: flex;
  justify-content: space-between;
  gap: .5rem;
  padding: .4rem 0;
  border-bottom: 1px solid var(--line);
  font-size: .8rem;
}
.deposit-card-meta li:last-child { border-bottom: none; }
.deposit-card-meta span {
  color: var(--muted);
  flex-shrink: 0;
}
.deposit-card-meta strong {
  text-align: right;
  word-break: break-word;
  font-weight: 600;
}
.deposit-card-actions {
  margin-top: auto;
  padding-top: .35rem;
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.deposit-card-actions .btn { width: 100%; }
.deposit-card-actions-row {
  display: flex;
  gap: .4rem;
}
.deposit-card-actions-row .btn { flex: 1; }

@media (max-width: 1400px) {
  .deposit-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1100px) {
  .deposit-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar {
    position: sticky; top: 0; z-index: 40;
    flex-direction: row; flex-wrap: wrap; gap: .35rem; padding: 1rem;
  }
  .sidebar .brand { width: 100%; padding-bottom: .5rem; }
  .sidebar .spacer { display: none; }
  .steps { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .deposit-grid { grid-template-columns: 1fr; }
}

/* Centered Bootstrap confirm toast */
.confirm-toast-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1080;
  background: rgba(12, 31, 26, 0.45);
  backdrop-filter: blur(2px);
}
.confirm-toast-container {
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  right: auto !important;
  bottom: auto !important;
  transform: translate(-50%, -50%);
  z-index: 1090;
  width: min(420px, calc(100vw - 2rem));
  margin: 0 !important;
  padding: 0 !important;
  pointer-events: none;
}
.confirm-toast-container .toast {
  pointer-events: auto;
}
.toast.confirm-toast {
  width: 100%;
  max-width: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--surface);
  color: var(--ink);
  opacity: 0;
  display: none;
  transition: opacity .15s linear;
}
.toast.confirm-toast.showing { opacity: 0; display: block; }
.toast.confirm-toast.show { opacity: 1; display: block; }
.toast.confirm-toast.hide { opacity: 0; display: block; }
.confirm-toast .toast-header {
  display: flex;
  align-items: center;
  padding: .7rem 1rem;
  background: #f8faf9;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--font);
  border-radius: var(--radius) var(--radius) 0 0;
}
.confirm-toast .toast-header strong,
.confirm-toast .toast-header .me-auto {
  margin-right: auto;
  font-family: var(--display);
  font-weight: 600;
}
.confirm-toast .btn-close {
  box-sizing: content-box;
  width: .75em;
  height: .75em;
  padding: .35em;
  color: var(--ink);
  background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%2312211c'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e") center/1em auto no-repeat;
  border: 0;
  border-radius: .25rem;
  opacity: .55;
  cursor: pointer;
}
.confirm-toast .btn-close:hover { opacity: 1; }
.confirm-toast .toast-body {
  padding: 1rem 1.1rem 1.1rem;
}
.confirm-toast-message {
  margin: 0 0 1rem;
  color: var(--ink);
  font-size: .95rem;
  line-height: 1.5;
}
.confirm-toast-actions {
  display: flex;
  justify-content: flex-end;
  gap: .5rem;
  flex-wrap: wrap;
}
body.confirm-toast-open { overflow: hidden; }

/* New Investment — homepage-style plan cards */
.invest-plan-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.invest-plan-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
  align-items: stretch;
}
.invest-plan-row.is-active {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 1fr);
}
.invest-amount-anchor {
  min-width: 0;
}
.invest-plan-card {
  position: relative;
  display: block;
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 18px;
  padding: 1.75rem 1.5rem 1.35rem;
  cursor: pointer;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
  overflow: hidden;
  height: 100%;
}
.invest-plan-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
}
.invest-plan-card.plan-a::before { background: linear-gradient(90deg, var(--brand), #34d399); }
.invest-plan-card.plan-b::before { background: linear-gradient(90deg, var(--accent), #e8d29a); }
.invest-plan-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.invest-plan-card.is-selected {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(15, 107, 76, 0.15), var(--shadow);
}
.invest-plan-card.plan-b.is-selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(196, 163, 90, 0.22), var(--shadow);
}
.invest-plan-radio {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.invest-plan-badge {
  position: absolute;
  top: 1rem; right: 1rem;
  background: linear-gradient(135deg, var(--accent), #a8863f);
  color: var(--bg-deep);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: .3rem .7rem;
  border-radius: 999px;
}
.invest-plan-code {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--brand);
  background: rgba(15, 107, 76, 0.1);
  padding: .3rem .7rem;
  border-radius: 8px;
  margin-bottom: .65rem;
}
.invest-plan-card.plan-b .invest-plan-code {
  color: #8a6a28;
  background: var(--accent-soft);
}
.invest-plan-card h3 {
  margin: 0 0 .4rem;
  font-size: 1.25rem;
}
.invest-plan-desc {
  color: var(--muted);
  font-size: .9rem;
  margin: 0 0 1rem;
  line-height: 1.5;
}
.invest-plan-highlight {
  display: flex;
  align-items: baseline;
  gap: .65rem;
  padding: .9rem 1rem;
  border-radius: 12px;
  background: rgba(15, 107, 76, 0.08);
  margin-bottom: 1rem;
  color: var(--muted);
  font-size: .88rem;
}
.invest-plan-card.plan-b .invest-plan-highlight {
  background: rgba(196, 163, 90, 0.14);
}
.invest-plan-return {
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--brand);
  line-height: 1;
}
.invest-plan-card.plan-b .invest-plan-return { color: #8a6a28; }
.invest-plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 .85rem;
  display: flex;
  flex-direction: column;
  gap: .7rem;
}
.invest-plan-features li {
  display: flex;
  gap: .65rem;
  align-items: flex-start;
}
.invest-plan-features i {
  color: var(--brand);
  margin-top: .15rem;
}
.invest-plan-card.plan-b .invest-plan-features i { color: var(--accent); }
.invest-plan-features strong {
  display: block;
  font-size: .9rem;
}
.invest-plan-features span {
  font-size: .82rem;
  color: var(--muted);
}
.invest-plan-select-hint {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  color: var(--brand);
}
.invest-plan-card.plan-b .invest-plan-select-hint { color: #8a6a28; }
.invest-plan-card.is-selected .invest-plan-select-hint::after {
  content: " · Selected";
}
.invest-amount-panel {
  margin: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.invest-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  align-items: center;
}
@media (max-width: 900px) {
  .invest-plan-row.is-active {
    grid-template-columns: 1fr;
  }
}
