/* =========================================================
   Vault Banking UI — Professional Bank Design
   Inspired by ENBD / major institutional banks
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
  --radius:    8px;
  --radius-lg: 12px;
  --ease:      cubic-bezier(.22, 1, .36, 1);

  --sidebar-w: 260px;

  /* Brand */
  --primary:        #0CC268;
  --primary-dark:   #09a356;
  --primary-mid:    #0ecc6e;
  --primary-hover:  #0dd472;
  --primary-gradient: linear-gradient(131deg, #0CC268 18.97%, #14DE7A 96.72%);
  --primary-border: rgba(90, 11, 77, 0.02);
  --accent:         #C9A84C;
  --accent-light:   #F6EED4;
  --accent-hover:   #B8922E;

  /* Surfaces */
  --bg:       #EEF1F6;
  --surface:  #FFFFFF;
  --surface2: #F5F7FA;

  /* Text */
  --text:     #1A2635;
  --muted:    #5C6B7A;
  --muted2:   #8A9BAC;

  /* Borders */
  --border:   #D0D9E6;
  --border2:  #E4EAF2;

  /* Status */
  --success:  #006B4F;
  --success-bg: #E6F4F0;
  --danger:   #C0021B;
  --danger-bg: #FDECEA;

  /* Shadows */
  --shadow:   0 2px 12px rgba(0, 30, 70, .10);
  --shadow2:  0 1px  4px rgba(0, 30, 70, .08);
  --shadow3:  0 4px 20px rgba(0, 30, 70, .13);
}


/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html, body {
  min-height: 100%;
  margin: 0;
}

body {
  font-family: "Plus Jakarta Sans", "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 15.5px;
  font-weight: 500;
  line-height: 1.5;
  background: linear-gradient(180deg, #ffffff 0%, #f4f6fa 12%, var(--bg) 40%) fixed;
  background-color: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

input, select, textarea {
  font-family: inherit;
  font-size: 15.5px;
  font-weight: 500;
}

a {
  color: var(--primary-mid);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

.no-scroll { overflow: hidden; }

/* Remove the animated orbs — banks don't have them */
.bg-orbs { display: none; }

/* =========================================================
   LAYOUT: Sidebar + Content
   ========================================================= */
.layout {
  min-height: 100vh;
  display: flex;
}

/* =========================================================
   SIDEBAR (desktop)
   ========================================================= */
.sidebar {
  width: var(--sidebar-w);
  flex: 0 0 var(--sidebar-w);

  background: var(--primary-gradient);
  border-right: none;

  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;

  display: flex;
  flex-direction: column;
}


.sidebar-inner {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 0 0 20px;
}

/* Logo */
.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 22px 20px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, .10);
  margin-bottom: 8px;
}

.sidebar-logo .emoji {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(201, 168, 76, 0.45);
}

.sidebar-logo .title {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.sidebar-logo .title .name {
  font-size: 18.7px;
  font-weight: 800;
  letter-spacing: -.1px;
  background: linear-gradient(90deg, #ffffff 20%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sidebar-logo .title .sub {
  font-size: 12.1px;
  color: rgba(255, 255, 255, .50);
  letter-spacing: .2px;
}

/* Nav */
.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 4px 12px;
  flex: 1;
}

.sidebar-section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .38);
  padding: 14px 8px 6px;
}

.side-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 6px;
  color: rgba(255, 255, 255, .78);
  text-decoration: none;
  font-size: 14.9px;
  font-weight: 500;
  transition: background .15s, color .15s;
  border: none;
  background: transparent;
}

.side-link:hover {
  background: rgba(255, 255, 255, .10);
  color: #FFFFFF;
  text-decoration: none;
}

.side-link.muted {
  color: rgba(255, 255, 255, .50);
}

.side-link.danger {
  color: #FF8A8A;
}

.side-link-pill {
  margin-left: auto;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 9px;
  border-radius: 99px;
  background: rgba(255,255,255,.12);
  color: rgba(255,255,255,.65);
  letter-spacing: .2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100px;
}

.side-link.danger:hover {
  background: rgba(255, 80, 80, .14);
  color: #FFAAAA;
}

/* Spacer + footer */
.sidebar-spacer { flex: 1; }

.sidebar-footer {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 0 12px;
  border-top: 1px solid rgba(255, 255, 255, .10);
  padding-top: 14px;
  margin-top: 12px;
}

.logout-btn {
  flex: 1;
  font-size: 14.9px;
  font-weight: 600;
}


/* =========================================================
   MOBILE TOPBAR
   ========================================================= */
.mobile-topbar {
  display: none;
  position: sticky;
  top: 0;
  z-index: 60;
  background: #ffffff;
  box-shadow: 0 2px 12px rgba(0, 30, 70, .08);
  padding: 0 16px;
  height: 76px;
}

.mobile-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  width: 100%;
}

.mobile-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--primary);
}

.brand-logo {
  color: var(--primary);
  flex-shrink: 0;
  filter: drop-shadow(0 1px 3px rgba(14, 169, 93, 0.25));
}

.mobile-brand .txt {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -.3px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-dark) 60%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.topbar-logout {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  color: var(--danger);
  text-decoration: none;
  border: 1px solid rgba(192, 2, 27, .22);
  background: var(--danger-bg);
  transition: background .15s, color .15s;
  flex-shrink: 0;
}

.topbar-logout:hover {
  background: #FADDDB;
  color: var(--danger);
}

/* =========================================================
   MOBILE BOTTOM NAV
   ========================================================= */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 60;
  background: #ffffff;
  box-shadow: 0 -1px 0 rgba(0,0,0,.07), 0 -4px 20px rgba(0,0,0,.07);
  padding-bottom: env(safe-area-inset-bottom);
}

.bottom-nav-inner {
  display: flex;
  align-items: stretch;
  height: 76px;
}

.bottom-nav-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9BAAB8;
  text-decoration: none;
  border: none;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: color .15s;
}

.bottom-nav-btn:hover,
.bottom-nav-btn.active {
  color: var(--primary);
}

.bottom-nav-locked {
  opacity: 0.38;
  pointer-events: none;
}

.bottom-nav-menu {
  color: #9BAAB8;
}

.bottom-nav-menu:hover {
  color: var(--primary);
}

/* =========================================================
   MOBILE DRAWER
   ========================================================= */
.overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .45);
  z-index: 80;
}
.overlay.open { display: block; }

.drawer {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(var(--sidebar-w), 88vw);
  z-index: 90;
  background: var(--primary-gradient);
  box-shadow: var(--shadow3);
  transform: translate3d(110%, 0, 0);
  transition: transform .22s var(--ease);
  overflow-y: auto;
}

.drawer.open { transform: translate3d(0, 0, 0); }

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 16px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, .10);
}

.drawer-close {
  width: 38px;
  height: 38px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, .20);
  background: rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .80);
  cursor: pointer;
  font-size: 17.6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* =========================================================
   MAIN CONTENT
   ========================================================= */
.content {
  flex: 1;
  min-width: 0;
  padding: 24px 28px 48px;
  max-width: 1200px;
  display: flex;
  flex-direction: column;
}


/* =========================================================
   TYPOGRAPHY UTILITIES
   ========================================================= */
.h1 {
  font-size: 24.2px;
  font-weight: 700;
  margin: 0 0 4px;
  color: var(--text);
  letter-spacing: -.2px;
}

.h2 {
  font-size: 14.3px;
  color: var(--muted);
  margin: 0 0 20px;
  font-weight: 400;
}

.small  { font-size: 13.2px; color: var(--muted); }
.mono   { font-family: "SFMono-Regular", "Cascadia Code", Consolas, monospace; }

.section-title {
  font-size: 15.4px;
  font-weight: 700;
  color: var(--text);
  margin: 20px 0 12px;
}

/* =========================================================
   CARDS
   ========================================================= */
.card {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow2);
}

.bank-card {
  padding: 18px 20px;
  transition: box-shadow .18s, border-color .18s;
}

.bank-card:hover {
  box-shadow: var(--shadow);
  border-color: var(--border);
}

.bank-card .label {
  font-size: 13.2px;
  color: var(--muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .6px;
  margin-bottom: 8px;
}

.bank-card .value {
  font-size: 28.6px;
  font-weight: 700;
  color: var(--primary);
}

/* =========================================================
   GRID
   ========================================================= */
.grid   { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 0 10px 26px; }

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 14.3px;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  transition: background .14s, border-color .14s, box-shadow .14s, color .14s;
  white-space: nowrap;
}

.btn:hover {
  background: var(--surface2);
  border-color: var(--border);
  box-shadow: var(--shadow2);
  text-decoration: none;
}

.btn:active { opacity: .92; }

.btn.success {
  background: var(--primary-gradient);
  border: 1px solid var(--primary-border);
  color: #FFFFFF;
}

.btn.success:hover {
  background: var(--primary-gradient);
  border: 1px solid var(--primary-border);
  box-shadow: 0 2px 10px rgba(12, 194, 104, .40);
  opacity: .92;
}

.btn.danger {
  background: var(--danger-bg);
  border-color: rgba(192, 2, 27, .30);
  color: var(--danger);
}

.btn.danger:hover {
  background: #FADDDB;
  border-color: var(--danger);
}

/* =========================================================
   FORMS & INPUTS
   ========================================================= */
.form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.input {
  width: 100%;
  padding: 9px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 16px;
  font-family: inherit;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
@media (min-width: 768px) {
  .input { font-size: 14.9px; }
}

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

.input:focus {
  border-color: var(--primary-mid);
  box-shadow: 0 0 0 3px rgba(0, 75, 150, .12);
}

.input:disabled {
  background: var(--surface2);
  color: var(--muted);
  cursor: not-allowed;
}

.input-error {
  border-color: var(--danger) !important;
  box-shadow: 0 0 0 3px rgba(220, 53, 69, .12) !important;
}

.field-error {
  margin-top: 5px;
  font-size: 12.5px;
  color: var(--danger);
}

/* =========================================================
   TABLES
   ========================================================= */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border2);
  background: var(--surface);
  box-shadow: var(--shadow2);
}

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

.table th {
  padding: 11px 14px;
  text-align: left;
  font-size: 12.1px;
  font-weight: 700;
  letter-spacing: .7px;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--surface2);
  border-bottom: 1px solid var(--border2);
}

.table td {
  padding: 12px 14px;
  font-size: 14.3px;
  border-bottom: 1px solid var(--border2);
  vertical-align: top;
  word-break: break-word;
  overflow-wrap: anywhere;
}

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

.table tr:hover td {
  background: var(--surface2);
}

.table-input { width: 100%; min-width: 0; box-sizing: border-box; }

/* =========================================================
   TOASTS / NOTIFICATIONS
   ========================================================= */
.toasts {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: min(480px, calc(100% - 32px));
  z-index: 120;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  padding: 12px 16px;
  border-radius: var(--radius);
  background: var(--primary-gradient);
  color: #FFFFFF;
  font-size: 14.3px;
  font-weight: 500;
  box-shadow: var(--shadow3);
  border-left: 4px solid var(--accent);
  animation: toastIn .2s var(--ease) both;
}

@keyframes toastIn {
  from { opacity: 0; transform: translate3d(0, -10px, 0); }
  to   { opacity: 1; transform: translate3d(0, 0, 0); }
}

.toast.hide {
  opacity: 0;
  transform: translate3d(0, -6px, 0);
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}

/* =========================================================
   AUTH / LOGIN
   ========================================================= */
.auth-wrap {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: #ffffff;
}

.auth-split {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 24px 64px rgba(0,0,0,.13), 0 4px 16px rgba(0,0,0,.07);
  overflow: hidden;
}

.auth-top {
  padding: 32px 36px 24px;
  background: linear-gradient(135deg, #0a7040 0%, #0ea95d 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}

.auth-left-logo-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.auth-left-logo-name {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.3px;
}

.auth-right {
  padding: 32px 36px 36px;
}

.auth-right-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -.5px;
  margin-bottom: 4px;
}

.auth-right-sub {
  font-size: 13.5px;
  color: var(--muted);
  margin-bottom: 26px;
}

.auth-form .field {
  margin-bottom: 18px;
}

.auth-submit {
  width: 100%;
  padding: 13px;
  font-size: 15.4px;
  font-weight: 700;
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-badges {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.auth-badge {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted);
}

/* =========================================================
   PILL / BADGE
   ========================================================= */
.pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 12.7px;
  font-weight: 700;
  background: var(--accent-light);
  color: var(--accent-hover);
  border: 1px solid rgba(201, 168, 76, .35);
}

/* =========================================================
   USER DASHBOARD — HERO CARD
   ========================================================= */
.hero-card {
  padding: 18px 14px;
  margin: 0 10px 26px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-left: 2.5px solid rgba(255, 255, 255, 0.4);
  border-right: 2.5px solid rgba(255, 255, 255, 0.4);
  background: var(--primary-gradient);
  box-shadow:
    10px 10px 24px rgba(8, 137, 74, 0.45),
    -4px -4px 12px rgba(255, 255, 255, 0.35);
}

.hero-top {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.hero-title {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.hero-greeting {
  font-size: 12.7px;
  font-weight: 700;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  letter-spacing: 1.1px;
}

.hero-name {
  font-size: 40px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -.4px;
  line-height: 1.15;
}

.hero-sub { margin-top: 4px; }

.hero-meta {
  display: flex;
  gap: 10px;
  flex-wrap: nowrap;
}

.hero-kv {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.97);
  background: linear-gradient(145deg, #ffffff 0%, #eef2f9 12%, #c8d4e6 40%, #d8e4f2 62%, #f5f8fd 80%, #e8edf5 100%);
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 0.95),
    inset 0 -1px 1px rgba(150, 170, 205, 0.18);
  overflow: hidden;
}

.hero-val {
  font-size: 14.9px;
  font-weight: 700;
  color: var(--text) !important;
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.hero-item {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.97);
  background: linear-gradient(145deg, #ffffff 0%, #eef2f9 12%, #c8d4e6 40%, #d8e4f2 62%, #f5f8fd 80%, #e8edf5 100%);
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 0.95),
    inset 0 -1px 1px rgba(150, 170, 205, 0.18);
}

.hero-big {
  font-size: 15.4px;
  font-weight: 600;
  margin-top: 4px;
  color: var(--text) !important;
}

.hero-top .small { color: rgba(255,255,255,0.72); }
.hero-top .hero-sub { color: rgba(255,255,255,0.72); }
.hero-kv .small { color: var(--muted); }
.hero-item .small { color: var(--muted); }

/* =========================================================
   PAYOUT CARD
   ========================================================= */
.payout-card {
  padding: 24px;
  margin: 0 10px 26px;
  border: 1px solid rgba(18, 217, 117, 0.3);
  border-left: 3px solid var(--primary);
  border-right: 3px solid var(--primary);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow:
    7px 7px 18px rgba(18, 217, 117, 0.18),
    -4px -4px 12px rgba(255, 255, 255, 0.92),
    -5px 0 0 rgba(18, 217, 117, 0.08),
    5px 0 0 rgba(18, 217, 117, 0.08);
}

.payout-head {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 6px;
}

.payout-title {
  font-size: 13.2px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--muted);
}

.payout-title-icon {
  display: flex;
  align-items: center;
  color: var(--accent);
  flex-shrink: 0;
}

.payout-amount {
  font-size: 59.4px;
  font-weight: 400;
  color: var(--text);
  letter-spacing: -.8px;
  line-height: 1.1;
  margin: 6px 0 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.amount-currency {
  font-size: 1.15em;
  line-height: 1;
}

.payout-subtitle {
  font-size: 13.2px;
  color: var(--muted);
  margin-bottom: 18px;
}

.payout-actions {
  display: flex;
  flex-direction: row;
  gap: 10px;
  margin-top: 18px;
  padding-top: 18px;
}

.payout-actions .btn {
  flex: 1;
  text-align: center;
  justify-content: center;
}

.payout-mini {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--border2);
}

.mini-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.97);
  background: linear-gradient(145deg, #ffffff 0%, #eef2f9 12%, #c8d4e6 40%, #d8e4f2 62%, #f5f8fd 80%, #e8edf5 100%);
  box-shadow:
    5px 5px 13px rgba(120, 148, 180, 0.58),
    -3px -3px 8px rgba(255, 255, 255, 1),
    inset 0 1px 2px rgba(255, 255, 255, 0.95),
    inset 0 -1px 1px rgba(150, 170, 205, 0.18);
}

.mini-val {
  font-size: 16.5px;
  font-weight: 700;
  color: var(--text);
}

/* =========================================================
   FULL CALENDAR CARD (payout date)
   ========================================================= */
.cal-card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1.5px solid var(--border);
}

.cal-full-card {
  padding: 14px;
  display: flex;
  flex-direction: column;
  background: linear-gradient(145deg, #ffffff 0%, #eef2f9 12%, #c8d4e6 40%, #d8e4f2 62%, #f5f8fd 80%, #e8edf5 100%);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow:
    10px 10px 24px rgba(120, 148, 180, 0.68),
    -5px -5px 14px rgba(255, 255, 255, 1),
    inset 0 1px 3px rgba(255, 255, 255, 0.95),
    inset 0 -1px 2px rgba(150, 170, 205, 0.22);
}

.cal-month-label {
  text-align: center;
  font-size: 17.6px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
  letter-spacing: .3px;
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
  margin-bottom: 12px;
}

.cal-dow {
  text-align: center;
  font-size: 12.1px;
  font-weight: 700;
  color: var(--muted2);
  text-transform: uppercase;
  letter-spacing: .3px;
  padding: 4px 0;
}

.cal-cell {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  font-size: 16.5px;
  font-weight: 500;
  color: var(--text);
  border-radius: 50%;
  cursor: default;
}

.cal-cell.cal-target {
  background: var(--primary-gradient);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(14, 169, 93,.45);
}

.cal-cell.cal-past {
  color: var(--muted2);
  opacity: 0.35;
}

.cal-wrapper {
  position: relative;
  min-height: 200px;
}

.cal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(238, 242, 249, 0.88);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  text-align: center;
  z-index: 2;
  width: 100%;
  box-sizing: border-box;
}

.cal-overlay-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}

.cal-overlay-text {
  font-size: 13px;
  color: var(--muted2);
  line-height: 1.5;
}

.cal-locked-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
  padding: 24px 16px;
  flex: 1;
}

.cal-locked-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}

.cal-locked-text {
  font-size: 13px;
  color: var(--muted2);
  line-height: 1.5;
}

/* Toast notification */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 24px;
  border-radius: 24px;
  font-size: 14.9px;
  font-weight: 600;
  z-index: 9999;
  box-shadow: 0 4px 16px rgba(0,0,0,.18);
  transition: opacity .4s;
}

.toast-success {
  background: var(--primary-gradient);
  color: #fff;
}

.toast-hide { opacity: 0; }

/* Payout countdown timer */
.payout-countdown {
  background: linear-gradient(145deg, #f0f4fb 0%, #dde4ee 60%, #edf1f7 100%);
  border-radius: 10px;
  border: 1px solid rgba(160, 185, 210, .4);
  box-shadow: 3px 3px 8px rgba(0,0,0,.07), -2px -2px 6px rgba(255,255,255,.9);
  padding: 12px 14px 14px;
  margin-bottom: 16px;
  text-align: center;
}
.countdown-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 11.6px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .7px;
  color: var(--muted);
  margin-bottom: 10px;
}
.countdown-units {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  min-width: 42px;
}
.countdown-num {
  font-size: 28.6px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  letter-spacing: -.5px;
  font-variant-numeric: tabular-nums;
}
.countdown-lbl {
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: var(--muted);
}
.countdown-sep {
  font-size: 24.2px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 14px;
  align-self: flex-start;
  margin-top: 2px;
}

/* Branch location modal */
.branch-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 30, 60, 0.55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.branch-modal-card {
  background: linear-gradient(145deg, #f8fafc 0%, #dde4ee 55%, #edf1f7 100%);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,30,60,.35), 0 4px 16px rgba(0,0,0,.12);
  border: 1px solid rgba(160, 185, 210, .45);
  width: 100%;
  max-width: 680px;
  max-height: 92vh;
  overflow-y: auto;
  padding: 28px 24px 24px;
}
.branch-modal-head {
  text-align: center;
  margin-bottom: 18px;
}
.branch-modal-title {
  font-size: 20.9px;
  font-weight: 800;
  color: var(--primary);
  margin: 0 0 6px;
  letter-spacing: -.3px;
}
.branch-modal-sub {
  font-size: 14.3px;
  color: var(--muted);
  margin: 0;
}
.branch-map-wrap {
  background: #dde8f5;
  border-radius: 10px;
  overflow: hidden;
  border: 1.5px solid rgba(160, 185, 210, .5);
  box-shadow: inset 0 1px 4px rgba(0,0,0,.06);
  margin-bottom: 14px;
  line-height: 0;
}
.branch-map-wrap svg {
  display: block;
  width: 100%;
  height: auto;
}
.selected-city-display {
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(14, 169, 93,.10);
  border: 1.5px solid rgba(14, 169, 93,.25);
  border-radius: 8px;
  padding: 9px 14px;
  margin-bottom: 14px;
  font-size: 14.9px;
  font-weight: 700;
  color: var(--primary);
}
.branch-modal-actions { display: flex; flex-direction: column; gap: 0; }
.ob-btn-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* Locked nav links during onboarding */
.side-link-locked {
  opacity: 0.35;
  pointer-events: none;
  cursor: not-allowed;
  user-select: none;
}

/* =========================================================
   Onboarding screens (verify info + terms)
   ========================================================= */
.ob-wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: 28px 16px 56px;
}

/* Step indicator */
.ob-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 28px;
}
.ob-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.ob-step-dot {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14.9px;
  font-weight: 700;
  border: 2px solid var(--primary);
  background: #fff;
  color: var(--primary);
  transition: background .2s, color .2s;
}
.ob-step-active .ob-step-dot {
  background: var(--primary-gradient);
  color: #fff;
}
.ob-step-done .ob-step-dot {
  background: #1a9e5c;
  border-color: #1a9e5c;
  color: #fff;
}
.ob-step-pending .ob-step-dot {
  border-color: var(--muted2);
  color: var(--muted);
}
.ob-step-lbl {
  font-size: 12.1px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .6px;
  white-space: nowrap;
}
.ob-step-active .ob-step-lbl { color: var(--primary); }
.ob-step-done .ob-step-lbl   { color: #1a9e5c; }
.ob-step-line {
  flex: 1;
  height: 2px;
  background: var(--muted2);
  margin: 0 10px;
  margin-bottom: 18px;
  min-width: 60px;
}
.ob-step-line-done { background: #1a9e5c; }

/* Card */
.ob-card {
  padding: 32px 28px 28px;
  border-left: 2.5px solid var(--primary);
  border-right: 2.5px solid var(--primary);
  text-align: center;
}
.ob-icon-wrap {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: linear-gradient(145deg, #f0f4fb 0%, #dde4ee 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  box-shadow: 4px 4px 10px rgba(0,0,0,.08), -2px -2px 8px #fff;
}
.ob-title {
  font-size: 24.2px;
  font-weight: 800;
  color: var(--primary);
  margin: 0 0 8px;
  letter-spacing: -.3px;
}
.ob-sub {
  font-size: 14.9px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 24px;
}

/* Info rows */
.ob-info-grid {
  background: linear-gradient(145deg, #f8fafc 0%, #dde4ee 55%, #edf1f7 100%);
  border-radius: 10px;
  border: 1px solid rgba(160,185,210,.35);
  box-shadow: 3px 3px 8px rgba(0,0,0,.07), -2px -2px 6px rgba(255,255,255,.9);
  overflow: hidden;
  margin-bottom: 24px;
  text-align: left;
}
.ob-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 16px;
  border-bottom: 1px solid rgba(160,185,210,.2);
  gap: 12px;
}
.ob-info-row:last-child { border-bottom: none; }
.ob-info-label {
  font-size: 12.7px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .5px;
  flex-shrink: 0;
}
.ob-info-val {
  font-size: 14.9px;
  font-weight: 600;
  color: var(--text);
  text-align: right;
}

/* Button */
.ob-btn-primary {
  width: 100%;
  padding: 14px 20px;
  font-size: 16.5px;
  font-weight: 700;
  background: var(--primary-gradient);
  color: #fff;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,54,107,.25);
  transition: background .15s, transform .1s, box-shadow .15s;
  margin-bottom: 14px;
}
.ob-btn-primary:hover {
  background: #00285a;
  box-shadow: 0 6px 18px rgba(0,54,107,.35);
  transform: translateY(-1px);
}
.ob-btn-primary:active { transform: translateY(0); }

/* Note */
.ob-note {
  font-size: 13.2px;
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

/* T&C scrollable box */
.ob-tc-box {
  background: linear-gradient(145deg, #f8fafc 0%, #dde4ee 55%, #edf1f7 100%);
  border-radius: 10px;
  border: 1px solid rgba(160,185,210,.35);
  box-shadow: 3px 3px 8px rgba(0,0,0,.07), -2px -2px 6px rgba(255,255,255,.9);
  padding: 20px 20px;
  max-height: 340px;
  overflow-y: auto;
  text-align: left;
  margin-bottom: 24px;
  scroll-behavior: smooth;
}
.ob-tc-box h3 {
  font-size: 13.8px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: .6px;
  margin: 18px 0 6px;
}
.ob-tc-box h3:first-child { margin-top: 0; }
.ob-tc-box p {
  font-size: 14.3px;
  color: var(--muted);
  line-height: 1.65;
  margin: 0 0 6px;
}

@media (max-width: 640px) {
  .ob-card { padding: 24px 16px 22px; }
  .ob-title { font-size: 20.9px; }
  .ob-step-line { min-width: 32px; }
}

.cal-date-pill {
  text-align: center;
  font-size: 12.7px;
  font-weight: 600;
  color: var(--primary);
  background: var(--accent-light);
  border: 1px solid rgba(201, 168, 76, .3);
  border-radius: 20px;
  padding: 4px 12px;
}

.cal-no-date {
  color: var(--muted);
  background: var(--surface2);
  border-color: var(--border2);
  font-weight: 400;
  font-style: italic;
}

.big {
  font-size: 22px;
  font-weight: 700;
  margin-top: 6px;
}

/* =========================================================
   CHECKLIST
   ========================================================= */
.checklist-card { padding: 20px !important; }

.checklist {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.check {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--border2);
  background: var(--surface2);
  font-size: 14.3px;
  font-weight: 500;
}

.check.ok {
  border-color: rgba(0, 107, 79, .25);
  background: var(--success-bg);
  color: var(--success);
}

.check.ok::before {
  content: "✓";
  display: inline-flex;
  width: 20px;
  height: 20px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--success);
  color: #FFFFFF;
  font-size: 12.1px;
  font-weight: 900;
  flex-shrink: 0;
}

.check.warn {
  border-color: rgba(201, 168, 76, .35);
  background: var(--accent-light);
  color: var(--accent-hover);
}

.check.warn::before {
  content: "!";
  display: inline-flex;
  width: 20px;
  height: 20px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent);
  color: #FFFFFF;
  font-size: 12.1px;
  font-weight: 900;
  flex-shrink: 0;
}

.check.lock {
  color: var(--muted);
}

.check.lock::before {
  content: "🔒";
  display: inline-flex;
  width: 20px;
  height: 20px;
  align-items: center;
  justify-content: center;
  font-size: 13.2px;
  flex-shrink: 0;
}

/* =========================================================
   QUICK ACTIONS
   ========================================================= */
.quick-card { padding: 20px; margin: 0 10px 0; }

.quick-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 16px;
  align-items: stretch;
}

.quick-btn {
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.97);
  background: linear-gradient(145deg, #ffffff 0%, #eef2f9 12%, #c8d4e6 40%, #d8e4f2 62%, #f5f8fd 80%, #e8edf5 100%);
  box-shadow:
    7px 7px 17px rgba(120, 148, 180, 0.65),
    -4px -4px 11px rgba(255, 255, 255, 1),
    inset 0 1px 2px rgba(255, 255, 255, 0.95),
    inset 0 -1px 1px rgba(150, 170, 205, 0.20);
  padding: 20px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 14.3px;
  font-family: inherit;
  cursor: not-allowed;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--primary);
  transition: box-shadow .2s;
}

.quick-btn .small {
  color: var(--muted);
  font-size: 12.7px;
}

.quick-note {
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.97);
  background: linear-gradient(145deg, #ffffff 0%, #eef2f9 12%, #c8d4e6 40%, #d8e4f2 62%, #f5f8fd 80%, #e8edf5 100%);
  box-shadow:
    7px 7px 17px rgba(120, 148, 180, 0.65),
    -4px -4px 11px rgba(255, 255, 255, 1),
    inset 0 1px 2px rgba(255, 255, 255, 0.95),
    inset 0 -1px 1px rgba(150, 170, 205, 0.20);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.quick-support {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

/* =========================================================
   SETTINGS / PROFILE
   ========================================================= */
.settings-card {
  padding: 22px;
  background: linear-gradient(145deg, #ffffff 0%, #eef2f9 12%, #c8d4e6 40%, #d8e4f2 62%, #f5f8fd 80%, #e8edf5 100%);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow:
    10px 10px 24px rgba(120, 148, 180, 0.68),
    -5px -5px 14px rgba(255, 255, 255, 1),
    inset 0 1px 3px rgba(255, 255, 255, 0.95),
    inset 0 -1px 2px rgba(150, 170, 205, 0.22);
}

.settings-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border2);
}

.settings-title {
  font-size: 16.5px;
  font-weight: 700;
  color: var(--text);
}

.pw-rules {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.pw-rule {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  color: var(--muted);
  transition: color .15s;
}
.pw-rule-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--border);
  flex-shrink: 0;
  transition: background .15s;
}
.pw-rule-ok { color: #0a9e56; }
.pw-rule-ok .pw-rule-dot { background: #0a9e56; }
.pw-rule-fail { color: var(--danger); }
.pw-rule-fail .pw-rule-dot { background: var(--danger); }

.settings-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 860px) {
  .settings-grid { grid-template-columns: 1fr 1fr; }
}

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

.field-label {
  font-size: 12.7px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .6px;
}

.field-box {
  padding: 9px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--border2);
  background: var(--surface2);
  font-size: 14.9px;
  color: var(--text);
  min-height: 38px;
}

/* =========================================================
   ASSET ALLOCATION
   ========================================================= */
.alloc-form  { display: flex; flex-direction: column; gap: 16px; }
.alloc-card  {
  padding: 22px;
  background: linear-gradient(145deg, #ffffff 0%, #eef2f9 12%, #c8d4e6 40%, #d8e4f2 62%, #f5f8fd 80%, #e8edf5 100%);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow:
    10px 10px 24px rgba(120, 148, 180, 0.68),
    -5px -5px 14px rgba(255, 255, 255, 1),
    inset 0 1px 3px rgba(255, 255, 255, 0.95),
    inset 0 -1px 2px rgba(150, 170, 205, 0.22);
}

.alloc-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.alloc-option {
  display: flex;
  gap: 12px;
  padding: 14px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.95);
  background: linear-gradient(145deg, #ffffff 0%, #eef2f9 12%, #c8d4e6 40%, #d8e4f2 62%, #f5f8fd 80%, #e8edf5 100%);
  cursor: pointer;
  align-items: flex-start;
  box-shadow:
    5px 5px 13px rgba(120, 148, 180, 0.55),
    -3px -3px 8px rgba(255, 255, 255, 1),
    inset 0 1px 2px rgba(255, 255, 255, 0.95),
    inset 0 -1px 1px rgba(150, 170, 205, 0.18);
  transition: box-shadow .14s, border-color .14s;
}

.alloc-option:has(input:checked) {
  border-color: var(--primary-mid);
  box-shadow:
    5px 5px 13px rgba(120, 148, 180, 0.55),
    -3px -3px 8px rgba(255, 255, 255, 1),
    inset 0 1px 2px rgba(255, 255, 255, 0.95),
    inset 0 0 0 1px var(--primary-mid);
}


.alloc-option input { margin-top: 3px; accent-color: var(--primary-mid); }

.alloc-body  { display: flex; flex-direction: column; gap: 3px; }
.alloc-name  { font-size: 14.9px; font-weight: 700; color: var(--text); }

.alloc-subtitle {
  font-size: 13.2px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: var(--muted);
  margin: 16px 0 8px;
}

.alloc-inline  { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 14px; }
.radio-row     { display: flex; gap: 8px; align-items: center; font-size: 14.3px; font-weight: 600; }
.radio-row input { accent-color: var(--primary-mid); }
.alloc-save    { width: 100%; margin-top: 14px; }

.split-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border2);
}

@media (max-width: 900px) {
  .alloc-options { grid-template-columns: 1fr; }
}

/* =========================================================
   PAYOUT PAGE
   ========================================================= */
.po-hero-card {
  margin: 0 10px 26px;
  padding: 24px 26px 20px;
  background: #ffffff;
  border: 2px solid var(--accent);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 20px rgba(201, 168, 76, .15), var(--shadow);
}

.po-hero-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.po-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.po-dollar-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #e6f4ee;
  color: #16a34a;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.po-title {
  font-size: 16.5px;
  font-weight: 700;
  color: var(--text);
}

.po-status-pill {
  font-size: 12.7px;
  font-weight: 600;
  color: var(--accent-hover);
  border: 1.5px solid var(--accent);
  border-radius: 20px;
  padding: 3px 12px;
  white-space: nowrap;
}

.po-amount {
  font-size: 50.6px;
  font-weight: 400;
  color: var(--text);
  letter-spacing: -.5px;
  line-height: 1.1;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 3px;
}

.po-progress-track {
  height: 11px;
  background: #e5e7eb;
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 8px;
}

.po-progress-fill {
  height: 100%;
  background: var(--primary-gradient);
  border-radius: 99px;
  transition: width .4s var(--ease);
}

.po-step-label { color: var(--muted); }

/* Breakdown card */
.po-breakdown-card {
  margin: 0 10px 26px;
  padding: 22px 24px;
  background: #ffffff;
  border: 1px solid var(--border2);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.po-breakdown-title {
  font-size: 17.6px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 18px;
}

.po-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border2);
}
.po-row-last { border-bottom: none; }

.po-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: #ffffff;
}
.po-icon-blue  { background: #6366f1; }
.po-icon-gold  { background: #f59e0b; }
.po-icon-green { background: #10b981; }

.po-info { flex: 1; min-width: 0; }
.po-row-name { font-size: 15.4px; font-weight: 700; color: var(--text); }
.po-row-sub  { color: var(--muted); margin-top: 2px; }

.po-row-amount {
  font-size: 18.7px;
  font-weight: 800;
  color: var(--text);
  white-space: nowrap;
}

/* Holdings card */
.po-holdings-card {
  margin: 0 10px 26px;
  background: #ffffff;
  border: 1px solid var(--border2);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.payout-stock-row {
  padding: 10px 4px;
}

.po-breakdown-divider {
  height: 1px;
  background: var(--border);
  margin: 6px 0 14px;
}

.po-breakdown-section-title {
  font-size: 13.2px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--muted);
  margin-bottom: 8px;
  padding: 0 4px;
}

.po-holdings-title {
  font-size: 17.6px;
  font-weight: 700;
  color: var(--text);
  padding: 20px 22px 14px;
  border-bottom: 1px solid var(--border2);
}

.po-holding-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 22px;
  border-bottom: 1px solid var(--border2);
}
.po-holding-row:last-child,
.po-holding-row-last { border-bottom: none; }

.po-holding-info { flex: 1; min-width: 0; }
.po-holding-name { font-size: 16px; font-weight: 700; color: var(--text); }
.po-holding-sub  { font-size: 13.2px; color: var(--muted); margin-top: 2px; }

.po-sparkline { flex-shrink: 0; display: block; overflow: visible; }

.po-holding-pill {
  background: #3cb371;
  color: #ffffff;
  font-size: 15.4px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 10px;
  white-space: nowrap;
  flex-shrink: 0;
  min-width: 72px;
  text-align: center;
}

/* =========================================================
   SUPPORT PAGE
   ========================================================= */
.sup-card {
  margin: 0 10px 26px;
  padding: 24px 26px;
  background: #ffffff;
  border: 1px solid var(--border2);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.sup-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.sup-card-title {
  font-size: 18.7px;
  font-weight: 700;
  color: var(--text);
}

.sup-available-pill {
  background: #16a34a;
  color: #fff;
  font-size: 12.7px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 20px;
  letter-spacing: .3px;
}

.sup-avatar-wrap {
  margin-bottom: 10px;
}

.sup-avatar-img {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border2);
}

.sup-avatar-fallback {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--primary-gradient);
  color: #fff;
  font-size: 24.2px;
  font-weight: 700;
  display: grid;
  place-items: center;
  border: 2px solid var(--border2);
}

.sup-agent-name {
  font-size: 16.5px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.sup-divider {
  border-top: 1px solid var(--border2);
  margin-bottom: 14px;
}

.sup-desc {
  color: var(--muted);
  margin: 0 0 14px;
}

.sup-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.sup-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.6px;
  font-weight: 700;
  letter-spacing: .5px;
  padding: 4px 10px;
  border-radius: 20px;
}

.sup-badge-green {
  color: #16a34a;
  border: 1.5px solid #16a34a;
}

.sup-badge-blue {
  color: #6366f1;
  border: 1.5px solid #6366f1;
}

.sup-icon-sm { flex-shrink: 0; }

.sup-handle-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  padding: 9px 14px;
  margin-bottom: 16px;
  width: fit-content;
  min-width: 200px;
}

.sup-handle-text {
  font-size: 14.9px;
  color: var(--muted);
}

.sup-tg-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #3b4db8;
  color: #fff;
  font-size: 14.9px;
  font-weight: 700;
  padding: 12px 22px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background .15s;
}

.sup-tg-btn:hover {
  background: #2d3d9e;
  text-decoration: none;
  color: #fff;
}

/* =========================================================
   LEARN MORE
   ========================================================= */
.learn-top-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 16px 0 24px;
}

.learn-box {
  background: linear-gradient(145deg, #ffffff 0%, #eef2f9 12%, #c8d4e6 40%, #d8e4f2 62%, #f5f8fd 80%, #e8edf5 100%);
  border: 1px solid rgba(255, 255, 255, 0.95);
  padding: 18px 20px;
  border-radius: var(--radius-lg);
  box-shadow:
    7px 7px 17px rgba(120, 148, 180, 0.65),
    -4px -4px 11px rgba(255, 255, 255, 1),
    inset 0 1px 2px rgba(255, 255, 255, 0.95),
    inset 0 -1px 1px rgba(150, 170, 205, 0.20);
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.learn-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  background: var(--primary-gradient);
  border: none;
  font-size: 18.7px;
  flex-shrink: 0;
}

.learn-box-body h3 { margin: 0 0 4px; font-size: 15.4px; color: var(--text); }
.learn-box-body p  { margin: 0; }

.learn-accordion details {
  background: linear-gradient(145deg, #ffffff 0%, #eef2f9 12%, #c8d4e6 40%, #d8e4f2 62%, #f5f8fd 80%, #e8edf5 100%);
  border: 1px solid rgba(255, 255, 255, 0.95);
  margin-bottom: 8px;
  border-radius: var(--radius);
  padding: 14px 18px;
  box-shadow:
    7px 7px 17px rgba(120, 148, 180, 0.65),
    -4px -4px 11px rgba(255, 255, 255, 1),
    inset 0 1px 2px rgba(255, 255, 255, 0.95),
    inset 0 -1px 1px rgba(150, 170, 205, 0.20);
}

.learn-accordion summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 14.9px;
  list-style: none;
  color: var(--text);
}

.learn-accordion summary::-webkit-details-marker { display: none; }
.learn-content { margin-top: 10px; line-height: 1.65; font-size: 14.9px; }

.learn-warning {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #FFF8E1;
  border: 1px solid rgba(201, 168, 76, .45);
  color: #5D4037;
  padding: 10px 14px;
  border-radius: var(--radius);
  margin-bottom: 10px;
  font-size: 14.3px;
  font-weight: 600;
}


.learn-warning .warn-icon,
.learn-warning .warn-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent);
  border: none;
  font-size: 14.3px;
  color: #FFFFFF;
  flex-shrink: 0;
}

@media (max-width: 1024px) {
  .learn-top-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   RESPONSIVE MOBILE TABLE (admin investments)
   ========================================================= */
.row-edit-form  { display: contents; }
.actions-cell form { margin: 0; }

@media (max-width: 720px) {
  .table-responsive thead { display: none; }

  .table-responsive,
  .table-responsive tbody,
  .table-responsive tr,
  .table-responsive td {
    display: block;
    width: 100%;
  }

  .table-responsive tr {
    margin-bottom: 12px;
    padding: 14px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border2);
    background: var(--surface);
    box-shadow: var(--shadow2);
  }

  .table-responsive td {
    border: none;
    padding: 8px 0;
  }

  .table-responsive td::before {
    content: attr(data-label);
    display: block;
    font-size: 12.1px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: var(--muted);
    margin-bottom: 4px;
  }

  .row-edit-form { display: block; }

  .actions-cell {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding-top: 12px;
    border-top: 1px solid var(--border2);
    margin-top: 6px;
  }

  .actions-cell .btn { width: auto; }
}

/* =========================================================
   DESKTOP / MOBILE BREAKPOINTS
   ========================================================= */
@media (max-width: 1023px) {
  .sidebar          { display: none; }
  .mobile-topbar    { display: flex; }
  .bottom-nav       { display: block; }
  .content          { padding: 16px 4px calc(76px + env(safe-area-inset-bottom) + 16px); }
  .grid             { grid-template-columns: 1fr 1fr; }
  .hero-grid        { grid-template-columns: 1fr 1fr; }
  .grid-2           { grid-template-columns: 1fr; }
  .quick-grid       { grid-template-columns: 1fr; }
  .cal-locked .cal-locked-state { padding: 16px; }
  .payout-amount    { font-size: 44px; }
  .hero-card,
  .payout-card,
  .grid-2,
  .quick-card,
  .po-hero-card,
  .po-breakdown-card,
  .po-holdings-card,
  .sup-card         { margin-left: 4px; margin-right: 4px; margin-bottom: 16px; }
}

@media (max-width: 640px) {
  .content       { padding: 16px 4px calc(76px + env(safe-area-inset-bottom) + 16px); }
  .grid          { grid-template-columns: 1fr; }
  .hero-grid     { grid-template-columns: 1fr; }
  .payout-amount { font-size: 37.4px; }
}

@media (min-width: 1024px) {
  .overlay,
  .drawer,
  .mobile-topbar,
  .bottom-nav { display: none !important; }
  .hero-card,
  .payout-card,
  .grid-2,
  .quick-card,
  .po-hero-card,
  .po-breakdown-card,
  .po-holdings-card,
  .sup-card   { margin-left: 10px; margin-right: 10px; }
}

@media (min-width: 721px) {
  .table-wrap { overflow-x: hidden; }
}

/* =========================================================
   TABLE OVERFLOW FIXES
   ========================================================= */
.table-wrap          { max-width: 100%; }
.table .actions-cell { white-space: normal !important; }
.table .btn          { max-width: 100%; }

/* =========================================================
   MISC OVERRIDES / PADDING FIXES
   ========================================================= */
.main-content   { padding: 28px 32px 48px; }

.overview-header,
.payout-card,
.quick-actions { padding: 24px; }

.overview-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 16px;
  margin-bottom: 16px;
}

.payout-grid       { gap: 16px !important; }
.payout-date-card,
.checklist-card    { padding: 20px !important; }
.payout-date-card h3,
.checklist-card h3 { margin-top: 0; }

.checklist-list    { padding: 0; margin: 10px 0 0; list-style: none; }
.checklist-item    { padding: 10px 12px; border-radius: var(--radius); }

.quick-actions,
.quick-actions-card { padding: 20px !important; }
.quick-actions-grid { gap: 16px !important; }
.quick-actions .card,
.quick-actions-card .card { padding: 16px !important; }
.quick-actions .btn,
.quick-actions-card .btn  { margin-top: 8px; }

.user-overview,
.overview-wrap,
.overview-grid { overflow-x: hidden; }

@media (max-width: 1024px) {
  .main-content  { padding: 20px; }
  .overview-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .main-content      { padding: 16px; }
  .overview-header,
  .payout-card,
  .quick-actions     { padding: 18px; }
}

@media (max-width: 900px) {
  .payout-grid { grid-template-columns: 1fr !important; }
}

/* =========================================================
   ADMIN DASHBOARD
   ========================================================= */
.admin-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  padding: 7px 12px 7px 8px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: color .15s, border-color .15s;
  margin-bottom: 4px;
}
.admin-back-btn:hover {
  color: var(--text);
  border-color: var(--muted);
  text-decoration: none;
}

.admin-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 22px;
}

.admin-header-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.admin-stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  box-shadow: var(--shadow1);
}

.admin-stat-label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 6px;
}

.admin-stat-val {
  font-size: 28px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -.5px;
}

.admin-table-card {
  padding: 0;
  overflow: hidden;
}

.admin-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.admin-card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.admin-form-card {
  padding: 24px;
}

.admin-form-card .admin-card-head {
  margin: -24px -24px 20px;
  padding: 16px 24px;
}

.admin-form-section-title {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .6px;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.admin-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.admin-checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface2);
  cursor: pointer;
}

.admin-checkbox-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
  cursor: pointer;
  flex-shrink: 0;
}

.admin-checkbox-row label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
}

@media (max-width: 640px) {
  .admin-stats-row  { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .admin-stat-card  { padding: 12px 14px; }
  .admin-stat-val   { font-size: 22px; }
  .admin-two-col    { grid-template-columns: 1fr; }
  .admin-form-card  { padding: 16px; }
  .admin-form-card .admin-card-head { margin: -16px -16px 16px; padding: 12px 16px; }
  .admin-page-header { flex-direction: column; align-items: flex-start; }
  .admin-header-actions { display: flex; width: 100%; gap: 8px; }
  .admin-header-actions .btn { flex: 1; justify-content: center; text-align: center; }
  .admin-back-btn { margin-left: 4px; }
  .admin-table-card,
  .admin-form-card { margin-left: 4px; margin-right: 4px; }
  .admin-stats-row { margin-left: 4px; margin-right: 4px; }
}

@media (max-width: 1023px) {
  .h1, .h2 { margin-left: 10px; }
  .admin-page-header { margin-left: 10px; margin-right: 10px; }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  .toast,
  .drawer,
  .btn,
  .side-link,
  .card { transition: none; }
}
