/* ===================================================
   NOVA VESTA INVESTMENTS — PRIVATE-BANK STYLESHEET
   Deep navy ground, brushed-gold accent, classic serif
   display type. Built for trust over trend.
   ================================================= */
:root {
  /* Core navy palette — a true deep navy ground instead of near-black */
  --navy: #0a1120;
  --navy-soft: #0d1626;
  --panel: #111c33;
  --panel-2: #16233f;
  --border: #253355;
  --border-soft: #1d2947;

  /* Accent = brushed gold (from the Nova Vesta logo), with navy for solid brand blocks.
     Variable names kept for compatibility with the rest of this file. */
  --blue: #c9a227;
  --blue-dark: #9c7d1c;
  --cyan: #e8cb6a;
  --green: #c9a227;      /* primary accent reused where the app expects a "brand" accent */
  --green-dark: #9c7d1c;
  --brand-navy: #0a1a3d;
  --brand-navy-soft: #0f2456;
  --red: #e5564c;
  --amber: #e8b64c;
  --gold: #c9a227;

  --gray-50: #0d1626;
  --gray-100: #111c33;
  --gray-200: #253355;
  --gray-500: #8992ab;
  --gray-700: #d7dbe8;
  --text: #f3f2ec;
  --radius: 4px;
  --radius-lg: 14px;

  /* Functional (kept distinct from the accent, for money up/down) */
  --gain: #4fae74;
  --loss: #e5564c;

  /* Type: a characterful "old-style" serif for display, one modern grotesque
     for everything else. (--font-mono keeps its name for cascade compatibility
     but is a UI sans, used for labels / eyebrows / buttons / nav.) */
  --font-display: 'Fraunces', 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-mono: 'Plus Jakarta Sans', 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-body); color: var(--gray-700); background: var(--navy); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: var(--cyan); text-decoration: none; transition: color .2s; }
h1, h2, h3 { color: var(--text); line-height: 1.08; letter-spacing: 0; font-family: var(--font-display); font-weight: 600; }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--navy); }
::-webkit-scrollbar-thumb { background: var(--blue); border-radius: 3px; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.center { text-align: center; }
.muted { color: var(--gray-500); }
.small { font-size: 12px; }
.lede { font-size: 18px; color: var(--gray-500); max-width: 640px; }

/* Homepage signature palette (statement-card hero) */
:root {
  --paper: #f2ecdd;
  --paper-line: #d9c9a3;
  --ink-on-paper: #1a1f2e;
  --brass: #9c7d1c;
  --brass-bright: #c9a227;
}
.eyebrow { font-family: var(--font-mono); font-size: 13px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--blue); display: inline-flex; align-items: center; gap: 8px; }
.eyebrow::before { content: ''; width: 20px; height: 1px; background: var(--blue); display: inline-block; }

/* Navbar */
.navbar { border-bottom: 1px solid var(--border-soft); position: sticky; top: 0; background: rgba(10,10,10,.94); backdrop-filter: blur(14px); z-index: 10; }
.navbar-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; position: relative; }
.brand { font-family: var(--font-display); font-weight: 600; font-style: italic; font-size: 22px; letter-spacing: .3px; color: var(--text); display: inline-flex; align-items: center; gap: 10px; }
.brand::before { content: none; }
.brand-logo::before { content: none; }
/* Logo now has a transparent background, so it sits directly on the dark
   surface — no cream "chip" wrapper. The .logo-chip span is kept in markup
   for cascade stability but carries no box of its own. */
.logo-chip {
  display: inline-flex; align-items: center; justify-content: center;
  background: none; border-radius: 0; padding: 0; box-shadow: none;
}
.brand-logo img { height: 44px; width: auto; display: block; }
.footer-inner .brand-logo img { height: 96px; }
.admin-sidebar .brand-logo img { height: 46px; }
.nav-links { display: flex; flex-wrap: wrap; align-items: center; row-gap: 6px; gap: clamp(10px, 1.4vw, 20px); }
.nav-links a { font-family: var(--font-mono); font-size: 14px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--gray-500); }
.nav-links a.active, .nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; gap: 10px; align-items: center; }

/* Nav dropdowns ("Invest", "Company") — grouped sub-links behind a click
   toggle so the primary bar reads as a handful of items instead of ten. */
.nav-dropdown { position: relative; }
.nav-dropdown-toggle {
  display: inline-flex; align-items: center; gap: 5px;
  background: none; border: none; padding: 0; cursor: pointer;
  font-family: var(--font-mono); font-size: 14px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--gray-500);
}
.nav-dropdown-toggle .caret { font-size: 10px; line-height: 1; transition: transform .2s ease; }
.nav-dropdown-toggle:hover, .nav-dropdown-toggle.active { color: var(--text); }
.nav-dropdown.open .nav-dropdown-toggle .caret { transform: rotate(180deg); }
.nav-dropdown-menu {
  display: none; flex-direction: column; gap: 2px;
  position: absolute; top: calc(100% + 16px); left: 50%; transform: translateX(-50%);
  min-width: 190px; padding: 8px; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: 0 14px 32px rgba(0,0,0,.45); z-index: 20;
}
.nav-dropdown.open .nav-dropdown-menu { display: flex; }
.nav-dropdown-menu a { padding: 8px 10px; border-radius: 6px; font-size: 13px; white-space: nowrap; }
.nav-dropdown-menu a:hover, .nav-dropdown-menu a.active { color: var(--text); background: var(--panel-2); }

/* Hamburger toggle — hidden on desktop, shown under the mobile breakpoint */
.nav-toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 30px; height: 30px; padding: 0; background: none; border: none; cursor: pointer; }
.nav-toggle span { display: block; width: 100%; height: 2px; background: var(--gray-700); border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Buttons — pill silhouette, a deliberate departure from the old sharp-cornered look */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 26px; border-radius: 999px; font-family: var(--font-mono); font-weight: 700; letter-spacing: .05em; text-transform: uppercase; font-size: 12.5px; cursor: pointer; border: 1px solid transparent; transition: all .25s cubic-bezier(.4,0,.2,1); }
.btn-primary { background: linear-gradient(135deg, var(--cyan), var(--blue)); color: #16130a; box-shadow: 0 6px 20px rgba(201,162,39,.25); }
.btn-primary:hover { background: linear-gradient(135deg, #f0dc94, var(--cyan)); transform: translateY(-2px); box-shadow: 0 10px 26px rgba(201,162,39,.4); }
.btn-outline { border-color: var(--gray-700); color: var(--gray-700); background: transparent; }
.btn-outline:hover { border-color: var(--text); color: var(--text); background: rgba(255,255,255,.04); }
.btn-ghost { color: var(--gray-700); border-color: var(--border); }
.btn-ghost:hover { color: var(--blue); border-color: var(--blue); }
.btn-plan-details { color: var(--cyan); border-color: var(--cyan); background: rgba(232,203,106,.1); }
.btn-plan-details:hover { color: #16130a; background: var(--cyan); border-color: var(--cyan); box-shadow: 0 6px 18px rgba(232,203,106,.3); }
.btn-block { display: flex; width: 100%; text-align: center; }
.btn-lg { padding: 16px 34px; font-size: 13.5px; }
.btn-sm { padding: 7px 16px; font-size: 11px; }
button.btn { font-family: var(--font-mono); }

/* Hero: split layout with a tilted "statement card" signature */
.hero {
  background: var(--navy);
  color: #fff; padding: 96px 0 0; position: relative; overflow: hidden;
  border-bottom: 1px solid var(--border-soft);
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(201,162,39,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,162,39,.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at 20% 30%, black, transparent 65%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 75% 20%, rgba(201,162,39,.1) 0%, transparent 55%);
  pointer-events: none;
}
.hero-inner { max-width: 700px; position: relative; z-index: 1; }
.hero-inner h1 { font-family: var(--font-display); font-weight: 600; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; position: relative; z-index: 1; }
.hero-copy h1 { font-family: var(--font-display); font-weight: 700; color: #fff; font-size: clamp(44px,6vw,72px); margin: 16px 0 18px; letter-spacing: -.5px; line-height: .95; }
.hero-copy h1 em { font-style: italic; font-weight: 600; color: var(--blue); }
.hero .lede { color: var(--gray-700); font-size: 17px; }
.hero-actions { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.scroll-cue { display: inline-flex; align-items: center; gap: 10px; margin-top: 44px; color: var(--gray-500); font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; }
.scroll-cue .line { width: 1px; height: 30px; background: linear-gradient(var(--blue), transparent); animation: scroll-cue-pulse 1.8s ease-in-out infinite; }
@keyframes scroll-cue-pulse { 0%, 100% { opacity: .3; } 50% { opacity: 1; } }

/* The statement card - a tilted, paper-toned passbook floating in the dark hero */
.hero-visual { position: relative; padding: 20px 10px 40px; }
.statement-card {
  background: var(--paper); color: var(--ink-on-paper); border-radius: 6px;
  padding: 28px 26px; max-width: 380px; margin: 0 auto;
  transform: rotate(-2.5deg);
  box-shadow: 0 30px 60px rgba(0,0,0,.55), 0 2px 0 var(--paper-line) inset;
  position: relative; z-index: 2;
  font-family: var(--font-mono);
}
.statement-card::after {
  content: '';
  position: absolute; inset: 10px -10px -14px 10px; z-index: -1;
  background: #e0d2ab; border-radius: 6px; transform: rotate(3deg);
}
.statement-head { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px dashed var(--paper-line); padding-bottom: 10px; margin-bottom: 14px; }
.statement-head .label { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #8a6a3a; }
.statement-balance-label { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #8a6a3a; margin-bottom: 4px; }
.statement-balance { font-size: 36px; font-weight: 600; letter-spacing: -.01em; font-family: var(--font-display); }
.statement-sparkline { display: block; margin: 14px 0 6px; }
.statement-rows { margin-top: 12px; border-top: 1px dashed var(--paper-line); padding-top: 10px; }
.statement-row { display: flex; justify-content: space-between; font-size: 14px; padding: 5px 0; }
.statement-row .asset { color: #6b5228; }
.statement-row .up { color: var(--gain); }
.statement-row .down { color: var(--loss); }
.statement-stamp {
  position: absolute; top: -14px; right: 18px; z-index: 3;
  font-family: var(--font-mono); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: #06170d; background: var(--blue); padding: 6px 12px; border-radius: 3px;
  transform: rotate(4deg); box-shadow: 0 8px 18px rgba(0,0,0,.35);
}

/* Trust strip */
.trust-strip { background: var(--panel); border-bottom: 1px solid var(--border-soft); padding: 36px 0; }
.trust-strip .container { display: flex; flex-wrap: wrap; gap: 28px 56px; justify-content: center; }
.trust-strip .trust-item { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.trust-strip .trust-item strong { font-family: var(--font-display); color: var(--blue); font-size: 34px; font-weight: 600; letter-spacing: .5px; }
.trust-strip .trust-item span.tag { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: var(--gray-500); }

.cta-band { background: var(--panel); padding: 64px 0; text-align: center; border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); position: relative; overflow: hidden; }
.cta-band::before { content: ''; position: absolute; top: -80px; right: -80px; width: 320px; height: 320px; background: radial-gradient(circle, rgba(201,162,39,.08) 0%, transparent 70%); pointer-events: none; }
.cta-band h2 { font-family: var(--font-display); font-size: clamp(32px,4vw,48px); position: relative; }

/* Listing rows */
.listing-row {
  display: flex; align-items: center; gap: 24px; padding: 22px 24px;
  background: var(--panel); border: 1px solid var(--border); border-left: 3px solid transparent; border-radius: var(--radius);
  margin-top: 12px; transition: border-color .2s, transform .2s, background .2s;
}
.listing-row:hover { border-color: var(--blue); border-left-color: var(--blue); background: var(--panel-2); transform: translateY(-1px); }
.listing-badge {
  width: 68px; height: 68px; border-radius: var(--radius); flex-shrink: 0;
  background: var(--navy-soft); border: 1px solid var(--border);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-family: var(--font-display); color: var(--blue);
}
.listing-badge .num { font-size: 24px; font-weight: 400; line-height: 1; }
.listing-badge .unit { font-size: 9px; font-family: var(--font-mono); font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--gray-500); margin-top: 2px; }
.listing-body { flex: 1; min-width: 0; }
.listing-body h3 { margin: 0 0 4px; font-size: 19px; font-family: var(--font-mono); font-weight: 700; color: var(--text); letter-spacing: 0; }
.listing-meta { font-size: 13px; color: var(--gray-500); }
.listing-actions { flex-shrink: 0; }

/* Tier cards */
.tier-card { text-align: center; padding: 34px 24px; }
.tier-card .tier-icon { font-size: 30px; display: block; margin-bottom: 10px; }
.tier-card .tier-name { font-family: var(--font-mono); font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gray-500); }
.tier-card .tier-price { font-family: var(--font-display); font-size: 40px; color: var(--blue); margin: 10px 0 18px; }
.tier-card .tier-price span { font-size: 14px; color: var(--gray-500); font-family: var(--font-mono); }
.tier-card.featured { border-color: var(--blue); box-shadow: 0 0 0 1px rgba(201,162,39,.3); }

/* Grids & cards */
.grid { display: grid; gap: 20px; margin-top: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; transition: border-color .2s, transform .2s, box-shadow .2s; }
.card:hover { border-color: var(--blue); }
.card.plan-card:hover, .card.company-card:hover, .card.property-card:hover { border-color: var(--blue); transform: translateY(-2px); }
.card-img { width: 100%; height: 160px; object-fit: cover; border-radius: 6px; margin-bottom: 10px; }
.stat { font-family: var(--font-display); font-size: 30px; font-weight: 600; color: var(--text); margin: 4px 0; }
.stat-cards .card { text-align: center; }
.certificate-card { max-width: 480px; margin: 24px auto 0; text-align: center; padding: 24px; }
.certificate-image { width: 100%; height: auto; border-radius: 6px; border: 1px solid var(--border-soft); display: block; }
.certificate-note { margin-top: 14px; font-size: 13px; }
.testimonial-card .stars { color: var(--gold); }

/* Forms */
.form-group { margin-bottom: 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.form-row { display: flex; gap: 14px; }
label { font-family: var(--font-mono); font-weight: 600; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--gray-500); }
input, select, textarea { padding: 11px 14px; border: 1px solid var(--border); border-radius: var(--radius); font-size: 15px; font-family: var(--font-body); width: 100%; background: var(--panel-2); color: var(--text); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); }
input::placeholder, textarea::placeholder { color: #555; }
.password-field { position: relative; display: flex; }
.password-field input[type="password"], .password-field input[type="text"] { padding-right: 42px; }
.password-toggle { position: absolute; top: 0; right: 0; height: 100%; width: 42px; display: flex; align-items: center; justify-content: center; background: transparent; border: none; padding: 0; color: var(--gray-500); cursor: pointer; }
.password-toggle:hover { color: var(--text); }
.auth-section { display: flex; justify-content: center; }
.auth-card { max-width: 440px; width: 100%; border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; background: var(--panel); }
.referral-link { display: flex; gap: 8px; }
.form-hint { font-size: 12px; color: var(--gray-500); margin-top: 5px; }

/* Alerts / badges */
.alert-stack { position: sticky; top: 68px; z-index: 20; display: flex; flex-direction: column; }
.alert { padding: 12px 20px; margin: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; }
.alert-success { background: #0f2e1c; color: #7fdba0; border-bottom: 1px solid #1a4a2c; }
.alert-error { background: #351212; color: #f19b96; border-bottom: 1px solid #5c1f1f; }
.alert-close { background: none; border: none; color: inherit; font-size: 18px; line-height: 1; cursor: pointer; opacity: .7; padding: 0 4px; }
.alert-close:hover { opacity: 1; }
.badge { display: inline-block; padding: 3px 11px; border-radius: 999px; font-size: 11px; font-family: var(--font-mono); font-weight: 700; letter-spacing: .04em; background: var(--panel-2); color: var(--gray-700); text-transform: uppercase; border: 1px solid var(--border); }
.badge-approved, .badge-completed { background: #0f2e1c; color: #7fdba0; border-color: #1a4a2c; }
.badge-pending { background: #362408; color: #f0c05a; border-color: #5c4715; }
.badge-rejected, .badge-failed { background: #351212; color: #f19b96; border-color: #5c1f1f; }
.badge-tier { background: #2a1508; color: var(--brass-bright); border-color: #4a2a10; }

/* Tables */
.table { width: 100%; border-collapse: collapse; margin-top: 10px; }
.table th, .table td { text-align: left; padding: 11px 10px; border-bottom: 1px solid var(--border-soft); font-size: 14px; }
.table th { color: var(--gray-500); font-weight: 700; text-transform: uppercase; font-size: 11px; font-family: var(--font-mono); letter-spacing: .05em; }
.list-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--border-soft); }

.address-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; margin-top: 12px; }
.address-card { background: var(--panel-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; }
.address-card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.address-label { font-family: var(--font-mono); font-weight: 700; letter-spacing: .03em; color: var(--text); font-size: 14px; }
.address-network { background: var(--panel); }
.address-value-row { display: flex; align-items: center; gap: 8px; background: var(--navy); border: 1px solid var(--border-soft); border-radius: 6px; padding: 8px 10px; }
.address-value { flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; font-family: var(--font-mono); font-size: 12.5px; color: var(--gray-700); scrollbar-width: none; }
.address-value::-webkit-scrollbar { display: none; }
.copy-address-btn { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; padding: 0; border-radius: 6px; border: 1px solid var(--border); background: var(--panel-2); color: var(--gray-700); cursor: pointer; transition: all .2s; }
.copy-address-btn:hover { color: var(--cyan); border-color: var(--cyan); }
.copy-address-btn.is-copied { color: var(--gain); border-color: var(--gain); }
.copy-address-btn svg { width: 15px; height: 15px; pointer-events: none; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.quick-actions { display: flex; gap: 10px; margin: 20px 0; }
.tabs { display: flex; gap: 16px; border-bottom: 1px solid var(--border-soft); margin-bottom: 16px; }
.tabs a { padding: 8px 0; color: var(--gray-500); font-family: var(--font-mono); font-weight: 700; text-transform: uppercase; font-size: 13px; letter-spacing: .04em; }
.tabs a.active { color: var(--blue); border-bottom: 2px solid var(--blue); }
.steps li { margin-bottom: 8px; }
.property-gallery { display: flex; gap: 10px; overflow-x: auto; margin: 16px 0; }
.property-gallery img { height: 200px; border-radius: 6px; }

/* Dashboard shell */
.dashboard-shell { display: flex; gap: 28px; padding: 32px 20px; align-items: flex-start; }
.sidebar { width: 220px; flex-shrink: 0; position: sticky; top: 100px; }
.sidebar-nav { display: flex; flex-direction: column; gap: 4px; }
.sidebar-nav a { padding: 10px 14px; border-radius: var(--radius); color: var(--gray-500); font-family: var(--font-mono); font-weight: 600; font-size: 13px; letter-spacing: .03em; text-transform: uppercase; }
.sidebar-nav a.active, .sidebar-nav a:hover { background: var(--panel); color: var(--blue); }
.sidebar-status { margin-top: 20px; padding: 14px; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); }
.dashboard-content { flex: 1; min-width: 0; }

/* Admin shell */
.admin-body { background: var(--navy-soft); }
.admin-shell { display: flex; min-height: 100vh; }
.admin-sidebar { width: 240px; background: var(--brand-navy); color: #fff; padding: 22px 16px; flex-shrink: 0; border-right: 1px solid var(--border-soft); }
.admin-sidebar .brand { color: #fff; font-weight: 400; margin-bottom: 22px; padding-left: 6px; }
.admin-sidebar nav { display: flex; flex-direction: column; gap: 2px; }
.admin-sidebar a { color: var(--gray-500); padding: 10px 12px; border-radius: var(--radius); font-family: var(--font-mono); font-size: 13px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; }
.admin-sidebar a:hover { background: rgba(201,162,39,.08); color: var(--text); }
.admin-main { flex: 1; padding: 32px; min-width: 0; }

/* Footer */
.site-footer { background: var(--navy-soft); color: var(--gray-500); padding: 52px 0 20px; margin-top: 40px; border-top: 1px solid var(--border-soft); }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 24px; }
.footer-inner a { display: block; color: var(--gray-500); padding: 4px 0; }
.footer-inner a:hover { color: var(--blue); }
.footer-inner .brand { color: #fff; }
.footer-inner h4 { font-family: var(--font-mono); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gray-700); margin-bottom: 12px; }
.footer-bottom { border-top: 1px solid var(--border-soft); margin-top: 24px; padding-top: 16px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* Live activity toast */
#activity-toast-root { position: fixed; bottom: 20px; left: 20px; z-index: 999; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.activity-toast {
  display: flex; align-items: center; gap: 10px;
  background: var(--panel); border: 1px solid var(--border); border-left: 3px solid var(--blue); border-radius: var(--radius);
  padding: 12px 16px; box-shadow: 0 8px 24px rgba(0,0,0,.45);
  font-size: 13px; color: var(--gray-700); max-width: 300px;
  opacity: 0; transform: translateY(12px); transition: opacity .35s ease, transform .35s ease;
}
.activity-toast.show { opacity: 1; transform: translateY(0); }
.activity-toast strong { color: var(--text); }
.activity-toast-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); flex-shrink: 0; box-shadow: 0 0 8px rgba(201,162,39,.7); }

/* Security / trust grid */
.security-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 20px; }
.security-grid .card { text-align: center; }
.security-icon { font-size: 28px; margin-bottom: 8px; display: block; }

/* FAQ accordion */
.faq-categories { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 28px; }
.faq-category-label { padding: 6px 14px; border-radius: 999px; background: var(--panel); border: 1px solid var(--border); font-size: 11px; font-family: var(--font-mono); font-weight: 700; color: var(--gray-500); text-transform: uppercase; letter-spacing: .06em; }
.faq-group { margin-bottom: 36px; }
.faq-group h2 { font-size: 15px; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--blue); margin-bottom: 4px; font-weight: 700; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); margin-top: 10px; background: var(--panel); overflow: hidden; }
.faq-question {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  padding: 16px 20px; font-weight: 600; color: var(--text); font-size: 15px;
  display: flex; justify-content: space-between; align-items: center; gap: 12px; font-family: var(--font-body);
}
.faq-question .faq-icon { color: var(--blue); font-size: 18px; transition: transform .2s; flex-shrink: 0; }
.faq-item.open .faq-question .faq-icon { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.faq-answer-inner { padding: 0 20px 18px; color: var(--gray-500); font-size: 14px; line-height: 1.7; }
.faq-item.open .faq-answer { max-height: 600px; }

/* Investment calculator */
.calculator-card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.calculator-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.calc-result { background: var(--navy-soft); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.calc-result-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--border-soft); font-size: 14px; }
.calc-result-row:last-child { border-bottom: none; }
.calc-result-row .label { color: var(--gray-500); }
.calc-result-row .value { font-weight: 700; color: var(--text); font-family: var(--font-mono); }
.calc-result-row.highlight .value { color: var(--blue); font-size: 22px; }
input[type=range] { -webkit-appearance: none; height: 4px; background: var(--border); border-radius: 2px; padding: 0; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: var(--blue); cursor: pointer; box-shadow: 0 0 8px rgba(201,162,39,.6); }

/* Section headers (centered titles/subtitles) */
.section-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.section-head h2 { margin-bottom: 10px; font-size: clamp(32px,4vw,48px); }
.section-head p { margin: 0 auto; }

/* Ticker avatar (company shares) */
.ticker-avatar {
  width: 44px; height: 44px; border-radius: var(--radius); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-weight: 700; font-size: 15px; color: #fff;
}
.ticker-avatar-lg { width: 56px; height: 56px; font-size: 19px; border-radius: 10px; }
.company-head { display: flex; align-items: center; gap: 14px; margin-bottom: 4px; }
.company-head .ticker { font-family: var(--font-mono); color: var(--gray-500); font-size: 13px; letter-spacing: .05em; }

/* Progress bar (shares sold) */
.progress-bar { background: var(--navy-soft); border: 1px solid var(--border); border-radius: 999px; height: 8px; overflow: hidden; margin: 8px 0; }
.progress-bar-fill { height: 100%; background: linear-gradient(90deg, var(--blue), var(--cyan)); border-radius: 999px; }
.progress-label { display: flex; justify-content: space-between; font-size: 12px; color: var(--gray-500); }

/* Pager */
.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border-soft); }
.pager-status { font-size: 13px; color: var(--gray-500); }
.pager-btn { padding: 7px 14px; border-radius: var(--radius); border: 1px solid var(--border); font-size: 13px; font-weight: 700; color: var(--gray-700); font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .03em; }
.pager-btn:hover { border-color: var(--blue); color: var(--blue); }
.pager-btn.disabled { pointer-events: none; opacity: .35; }

/* Card polish */
.card { box-shadow: 0 1px 2px rgba(0,0,0,.3); }
.card:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(0,0,0,.4); }

/* Table polish */
.table-wrap { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 4px 20px; overflow-x: auto; }
.table-wrap .table { margin-top: 6px; }
.table-wrap .table th { position: sticky; top: 0; background: var(--panel); }
.table tbody tr:hover { background: rgba(255,255,255,.02); }
.td-truncate { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.table-head-row { display: flex; justify-content: space-between; align-items: center; margin: 28px 0 4px; }
.table-head-row h2 { margin: 0; }

/* Admin shell polish */
.admin-sidebar .brand { display: flex; align-items: center; gap: 8px; font-size: 20px; letter-spacing: 1.5px; }
.admin-sidebar .brand-logo .admin-tag { font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gray-500); border: 1px solid var(--border-soft); border-radius: 4px; padding: 2px 6px; }
.admin-sidebar nav a { display: block; font-size: 13px; }
.admin-sidebar nav a.active { background: rgba(201,162,39,.12); color: var(--blue); }
.admin-sidebar nav a.nav-link-badge { display: flex; align-items: center; justify-content: space-between; }
.sidebar-badge { background: var(--blue); color: #06170d; font-family: var(--font-mono); font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 999px; line-height: 1.7; }
.admin-topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--border-soft); }
.admin-topbar h1 { margin: 0; }
.admin-stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 28px; }
.admin-stat-card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; transition: border-color .2s; }
.admin-stat-card:hover { border-color: var(--blue); }
.admin-stat-card .label { font-size: 11px; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--gray-500); font-weight: 700; }
.admin-stat-card .value { font-size: 30px; font-weight: 600; color: var(--text); margin-top: 4px; font-family: var(--font-display); }
.admin-stat-card .value.warn { color: var(--amber); }

/* Dashboard shell polish */
.sidebar-nav a { font-size: 13px; }
.dashboard-content h1 { margin-bottom: 4px; }
.wallet-balance-card { background: linear-gradient(135deg, var(--panel), var(--panel-2)); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; position: relative; overflow: hidden; }
.wallet-balance-card::before { content: ''; position: absolute; top: -60px; right: -60px; width: 220px; height: 220px; background: radial-gradient(circle, rgba(201,162,39,.1) 0%, transparent 70%); pointer-events: none; }
.wallet-balance-card .value { font-family: var(--font-display); font-size: 36px; font-weight: 600; color: var(--text); position: relative; }

/* Inbox (admin messaging) */
.inbox-shell { display: grid; grid-template-columns: 340px 1fr; gap: 0; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; min-height: 60vh; }
.inbox-list { border-right: 1px solid var(--border-soft); overflow-y: auto; max-height: 78vh; }
.inbox-row { display: block; padding: 16px 18px; border-bottom: 1px solid var(--border-soft); transition: background .2s; }
.inbox-row:hover, .inbox-row.active { background: var(--panel-2); }
.inbox-row .subject { color: var(--text); font-weight: 700; font-size: 14px; margin-bottom: 3px; }
.inbox-row .snippet { color: var(--gray-500); font-size: 13px; }
.inbox-row .meta { font-family: var(--font-mono); font-size: 11px; color: var(--gray-500); text-transform: uppercase; letter-spacing: .04em; margin-top: 4px; }
.inbox-thread { padding: 24px 28px; }
.inbox-bubble { background: var(--navy-soft); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 14px; }
.inbox-bubble.outbound { border-left: 3px solid var(--blue); }

/* Feature split: photo alongside copy, used on marketing/education pages */
.feature-split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; margin: 48px 0; }
.feature-split.reverse .feature-split-media { order: 2; }
.feature-split-media img {
  width: 100%; height: 320px; object-fit: cover; border-radius: var(--radius);
  border: 1px solid var(--border); display: block;
}
.feature-split-copy h2 { margin-top: 0; }
.certificate-media { background: var(--panel-2); border-radius: var(--radius); border: 1px solid var(--border); padding: 12px; }
.certificate-media img { height: 320px; object-fit: contain; border: none; background: transparent; }
.cert-card-img { width: 100%; height: 150px; object-fit: contain; background: var(--panel-2); border-radius: 6px; border: 1px solid var(--border-soft); margin-bottom: 14px; padding: 6px; }
.cert-card h3 { margin-bottom: 8px; }

/* Page banner: single wide photo under the hero copy on inner pages */
.page-banner { margin: 8px 0 40px; }
.page-banner img {
  width: 100%; height: 260px; object-fit: cover; border-radius: var(--radius);
  border: 1px solid var(--border); display: block;
}

@media (max-width: 900px) {
  .section { padding: 44px 0; }
  .grid-4, .grid-3, .grid-2, .calculator-grid, .security-grid, .stats-bar, .hero-grid, .admin-stat-grid, .feature-split { grid-template-columns: 1fr; }
  .feature-split.reverse .feature-split-media { order: 0; }
  .feature-split-media img, .page-banner img { height: 220px; }
  .feature-split { gap: 20px; margin: 24px 0; }
  .table-head-row { flex-direction: column; align-items: flex-start; gap: 8px; }
  .pager { flex-direction: column; gap: 8px; }
  .hero-visual { order: -1; }
  .dashboard-shell { flex-direction: column; }
  .sidebar { width: 100%; position: static; }
  .admin-shell { flex-direction: column; }
  .admin-sidebar { width: 100%; }
  .inbox-shell { grid-template-columns: 1fr; }

  .nav-toggle { display: flex; order: 3; }
  .nav-actions { order: 2; }
  .nav-actions .btn { padding: 8px 14px; font-size: 11px; }
  .nav-links {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--navy-soft); border-bottom: 1px solid var(--border-soft);
    padding: 12px 20px 18px; box-shadow: 0 16px 30px rgba(0,0,0,.4);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 0; width: 100%; }
  .nav-dropdown { width: 100%; }
  .nav-dropdown-toggle { width: 100%; justify-content: space-between; padding: 10px 0; }
  .nav-dropdown-menu {
    position: static; transform: none; display: none;
    width: 100%; margin: 0 0 4px; padding: 0 0 0 14px;
    background: transparent; border: none; box-shadow: none;
  }
  .nav-dropdown.open .nav-dropdown-menu { display: flex; }
}
@media (max-width: 480px) {
  .nav-actions .btn { padding: 7px 10px; font-size: 10px; }
}
/* country-phone-picker.css
   Matches existing tokens: --panel-2, --border, --blue, --radius, --text, --gray-500, --font-body
   Append to public/css/style.css or load as a separate stylesheet after style.css. */

.cp-field {
  position: relative;
  width: 100%;
}

/* Closed control — looks like the site's existing input/select */
.cp-select,
.cp-dial-select {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel-2);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  cursor: pointer;
  user-select: none;
}
.cp-select:focus,
.cp-dial-select:focus {
  outline: none;
  border-color: var(--blue);
}
.cp-select .cp-label {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cp-caret {
  color: var(--gray-500);
  flex-shrink: 0;
}
.cp-flag {
  font-size: 16px;
  line-height: 1;
  flex-shrink: 0;
}

/* Phone row: dial-code picker + number input side by side */
.cp-phone-row {
  display: flex;
  gap: 8px;
}
.cp-dial-select {
  flex: 0 0 auto;
  min-width: 92px;
  justify-content: space-between;
}
.cp-dial-select .cp-dial {
  font-family: var(--font-mono);
}
.cp-number {
  flex: 1;
  min-width: 0;
}

/* Dropdown panel */
.cp-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 40;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}
.cp-dropdown.open {
  display: block;
}
.cp-search {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--border-soft);
  border-radius: 0;
  background: var(--panel-2);
  padding: 10px 14px;
  font-size: 14px;
  color: var(--text);
}
.cp-search:focus {
  outline: none;
  border-color: var(--border-soft);
}
.cp-options {
  max-height: 230px;
  overflow-y: auto;
}
.cp-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
}
.cp-option:hover,
.cp-option.active {
  background: var(--panel-2);
}
.cp-option-dial {
  margin-left: auto;
  color: var(--gray-500);
  font-family: var(--font-mono);
  font-size: 12px;
}
.cp-empty {
  padding: 12px 14px;
  color: var(--gray-500);
  font-size: 13px;
}

/* Scrollbar styling to match dark theme (optional, webkit only) */
.cp-options::-webkit-scrollbar {
  width: 6px;
}
.cp-options::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

/* Google Translate widget — docked bottom-left of the viewport, styled to
   sit quietly on the dark theme. Google injects its own iframe/select
   markup we can't fully restyle, so this trims the parts that clash. */
.lang-switcher {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 40;
  display: flex;
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 4px 8px;
  box-shadow: 0 10px 26px rgba(0,0,0,.4);
}
.goog-te-gadget {
  font-family: var(--font-body) !important;
  color: var(--gray-500) !important;
  font-size: 12px !important;
}
.goog-te-gadget .goog-te-combo {
  background: var(--panel-2);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 6px 8px;
  font-size: 13px;
}
/* Google adds a full-width banner + top-margin on <body> when a translation
   is active; suppress both so the layout doesn't jump. */
.goog-te-banner-frame.skiptranslate {
  display: none !important;
}
body {
  top: 0 !important;
}

/* ---------- Investment plan details modal ---------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.65);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 100;
}
.modal-backdrop[hidden] { display: none; }
.modal {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.modal h3 { margin: 0 0 8px; font-size: 22px; }
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: transparent;
  border: none;
  color: var(--gray-500);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
}
.modal-close:hover { color: var(--text); }

.modal-term-toggle, .calc-term-toggle .modal-term-toggle {
  display: flex;
  gap: 8px;
  margin: 16px 0;
}
.modal-term-btn {
  flex: 1;
  padding: 9px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--panel-2);
  color: var(--gray-500);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all .2s ease;
}
.modal-term-btn.active {
  border-color: var(--blue);
  color: var(--text);
  background: rgba(201,162,39,.12);
}

.modal-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 16px;
  margin: 16px 0;
  padding: 14px;
  background: var(--panel-2);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
}
.modal-stat { display: flex; flex-direction: column; gap: 2px; }
.modal-stat .label { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--gray-500); font-family: var(--font-mono); }
.modal-stat .value { font-size: 15px; color: var(--text); font-weight: 600; }

.modal-result {
  margin-top: 14px;
  border-top: 1px solid var(--border-soft);
  padding-top: 12px;
}
.modal-result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
}
.modal-result-row .label { color: var(--gray-500); font-size: 13px; }
.modal-result-row .value { font-weight: 600; color: var(--text); }
.modal-result-row.highlight .value { color: var(--blue); font-size: 18px; }

/* Short/long term radio selector on the invest form */
.term-toggle {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 4px;
}
.term-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 12.5px;
  color: var(--gray-500);
  cursor: pointer;
}
.term-option input { width: auto; margin: 0; }
.term-option:has(input:checked) { border-color: var(--blue); color: var(--text); }

/* =====================================================================
   2026 LAYOUT REFRESH
   New type pairing (Fraunces + Plus Jakarta Sans), wider measure, and a
   proper app shell for the user + admin dashboards: sticky page-title bar,
   grouped collapsible sidebar, card-grid content, off-canvas drawer on
   small screens. Public marketing pages gain a full-width variant so the
   logged-out Properties / Company Shares views drop the dashboard rail.
   ===================================================================== */

/* ---- Type polish ---------------------------------------------------- */
body { font-feature-settings: "ss01", "cv05"; }
h1, h2, h3, h4 { font-optical-sizing: auto; }
h1 { letter-spacing: -.015em; }
.brand { font-style: italic; letter-spacing: .1px; }

/* ---- Container / vertical rhythm ---------------------------------- */
.container { max-width: 1200px; }
.section { padding: 84px 0; }
@media (max-width: 1024px) { .section { padding: 60px 0; } }

/* ---- Navbar: match the navy ground, give the logo a touch more room */
.navbar { background: color-mix(in srgb, var(--navy) 92%, transparent); }
.navbar-inner { height: 84px; }
.navbar .brand-logo img { height: 58px; }
.nav-links a, .nav-dropdown-toggle { letter-spacing: .04em; }
.alert-stack { top: 84px; }

/* ---- Footer: brand column + three link columns ------------------- */
.footer-inner { grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 32px; }
.footer-inner .footer-brand p { max-width: 340px; margin-top: 12px; }
@media (max-width: 900px) { .footer-inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-inner { grid-template-columns: 1fr; } }

/* ====================================================================
   SHARED APP-SHELL PRIMITIVES (user dashboard + admin)
   ==================================================================== */

/* Sticky page-title bar — the first <h1> in the content column is
   promoted to a topbar without needing markup changes in ~40 views. */
.dashboard-content > h1:first-child,
.dashboard-content > .flex-between:first-child,
.admin-main > .admin-topbar,
.admin-main > h1:first-child {
  position: sticky; z-index: 8;
  margin: -6px 0 20px; padding: 12px 0 12px;
  background: color-mix(in srgb, var(--navy) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-soft);
}
/* user dashboard sits under the 84px site navbar; admin has no navbar */
.dashboard-content > h1:first-child,
.dashboard-content > .flex-between:first-child { top: 84px; }
.admin-main > .admin-topbar,
.admin-main > h1:first-child {
  top: 0; margin: -32px -32px 24px; padding: 18px 32px 16px;
  background: color-mix(in srgb, var(--navy-soft) 90%, transparent);
}
.admin-main > h1:first-child { font-size: clamp(24px, 3vw, 32px); }
.dashboard-content > h1:first-child,
.dashboard-content > .flex-between:first-child h1 { font-size: clamp(23px, 3vw, 30px); }
.dashboard-content > .flex-between:first-child { align-items: center; }

/* Collapsible nav groups (used in both sidebars via <details class="nav-group">) */
.nav-group { border: 0; margin: 0; }
.nav-group + .nav-group { margin-top: 6px; }
.nav-group > summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 12px; border-radius: var(--radius);
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--gray-500);
}
.nav-group > summary::-webkit-details-marker { display: none; }
.nav-group > summary::after {
  content: "+"; font-size: 14px; font-weight: 600; opacity: .6;
}
.nav-group[open] > summary::after { content: "\2013"; }
.nav-group > summary:hover { color: var(--gray-700); }
.nav-group-items { display: flex; flex-direction: column; gap: 2px; padding: 2px 0 6px; }

/* Sidebar identity + account footer */
.sidebar-identity {
  display: flex; align-items: center; gap: 11px;
  padding: 12px; margin-bottom: 10px;
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-lg);
}
.sidebar-identity .avatar {
  width: 38px; height: 38px; flex-shrink: 0; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-weight: 700; font-size: 15px;
  color: var(--navy); background: linear-gradient(135deg, var(--cyan), var(--blue));
}
.sidebar-identity .who { min-width: 0; }
.sidebar-identity .who .name { color: var(--text); font-weight: 600; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-identity .who .sub { color: var(--gray-500); font-size: 11.5px; }
.sidebar-account { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--border-soft); }
.sidebar-account a.logout {
  display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: var(--radius);
  font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: .05em;
  text-transform: uppercase; color: var(--gray-500);
}
.sidebar-account a.logout:hover { color: var(--red); background: rgba(229,86,76,.08); }

/* Drawer plumbing (small screens) — button + backdrop injected by app.js.
   Docked top-left: clears the bottom-left activity toasts and the
   bottom-right language switcher. */
.drawer-toggle {
  display: none; position: fixed; z-index: 30; left: 12px; top: 96px;
  width: 44px; height: 44px; border-radius: var(--radius); border: 1px solid var(--border);
  background: var(--panel); color: var(--text); cursor: pointer;
  align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,.5);
}
.admin-body .drawer-toggle { top: 12px; }
.drawer-toggle svg { width: 22px; height: 22px; }
.drawer-backdrop {
  display: none; position: fixed; inset: 0; z-index: 24;
  background: rgba(4,8,16,.6); opacity: 0; transition: opacity .25s ease;
}
.drawer-backdrop.show { opacity: 1; }

/* ====================================================================
   USER DASHBOARD SHELL
   ==================================================================== */
.dashboard-shell {
  display: grid; grid-template-columns: 244px minmax(0, 1fr);
  gap: 30px; align-items: start;
  max-width: 1280px; margin: 0 auto; padding: 32px 20px 60px;
}
.dashboard-shell .sidebar {
  width: auto; position: sticky; top: 100px;
  display: flex; flex-direction: column;
  max-height: calc(100dvh - 120px); overflow-y: auto;
  padding: 14px; background: var(--navy-soft);
  border: 1px solid var(--border-soft); border-radius: var(--radius-lg);
  scrollbar-width: thin;
}
.dashboard-shell .sidebar-nav { gap: 2px; }
.dashboard-shell .sidebar-nav a,
.nav-group-items a {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 12px; border-radius: var(--radius);
  font-family: var(--font-mono); font-weight: 600; font-size: 12.5px;
  letter-spacing: .02em; text-transform: none; color: var(--gray-500);
  border-left: 2px solid transparent;
}
.dashboard-shell .sidebar-nav a:hover,
.nav-group-items a:hover { background: var(--panel); color: var(--text); }
.dashboard-shell .sidebar-nav a.active,
.nav-group-items a.active {
  background: rgba(201,162,39,.1); color: var(--blue);
  border-left-color: var(--blue);
}
.dashboard-shell .sidebar-status {
  margin-top: 12px; background: var(--panel-2); border-color: var(--border-soft);
  border-radius: var(--radius-lg);
}
.dashboard-shell .sidebar-status p { margin: 4px 0; display: flex; justify-content: space-between; gap: 8px; }

/* Content column: cards on a tidy grid, richer stat tiles */
.dashboard-content { min-width: 0; }
.dashboard-content .card { border-radius: var(--radius-lg); }
.dashboard-content .grid { gap: 16px; }
.stat-cards .card { text-align: left; padding: 18px 20px; }
.stat-cards .card .muted { font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.stat-cards .card .stat { font-size: 26px; margin: 6px 0 0; }
.wallet-balance-card { border-radius: var(--radius-lg); }

/* Full-width variant — logged-out Properties / Company Shares */
.dashboard-shell--full {
  display: block; max-width: 1200px; padding-top: 40px;
}
.dashboard-shell--full .dashboard-content { width: 100%; }

@media (max-width: 960px) {
  .dashboard-shell { grid-template-columns: 1fr; gap: 0; padding-top: 20px; }
  .dashboard-shell .sidebar {
    position: fixed; left: 0; top: 0; z-index: 25;
    width: 290px; max-width: 86vw; height: 100dvh; max-height: none;
    border-radius: 0; border-width: 0 1px 0 0;
    transform: translateX(-100%); transition: transform .28s cubic-bezier(.4,0,.2,1);
  }
  .dashboard-shell .sidebar.is-open { transform: translateX(0); }
  .dashboard-content > h1:first-child,
  .dashboard-content > .flex-between:first-child { margin-top: -20px; }
  .drawer-toggle { display: flex; }
  .drawer-backdrop.show { display: block; }
}

/* ====================================================================
   ADMIN SHELL
   ==================================================================== */
.admin-sidebar {
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100dvh; overflow-y: auto;
  background: var(--brand-navy); scrollbar-width: thin;
}
.admin-sidebar .brand-logo {
  display: flex; align-items: center; gap: 10px;
  padding: 4px 6px 16px; margin-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.admin-sidebar .admin-tag {
  font-family: var(--font-mono); font-size: 10px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--cyan);
  border: 1px solid rgba(232,203,106,.35); border-radius: 4px; padding: 2px 6px;
}
.admin-sidebar nav { gap: 2px; }
.admin-sidebar nav a,
.admin-sidebar .nav-group-items a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 12px; border-radius: var(--radius);
  font-family: var(--font-mono); font-size: 12.5px; font-weight: 600;
  letter-spacing: .02em; text-transform: none; color: var(--gray-500);
  border-left: 2px solid transparent;
}
.admin-sidebar nav a:hover,
.admin-sidebar .nav-group-items a:hover { background: rgba(255,255,255,.05); color: #fff; }
.admin-sidebar nav a.active,
.admin-sidebar .nav-group-items a.active {
  background: rgba(201,162,39,.14); color: var(--blue); border-left-color: var(--blue);
}
.admin-sidebar .nav-group > summary { color: rgba(255,255,255,.4); }
.admin-sidebar .nav-group > summary:hover { color: rgba(255,255,255,.7); }
.admin-sidebar .sidebar-account { border-top-color: rgba(255,255,255,.08); }

.admin-main { padding: 32px; min-width: 0; }
.admin-topbar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: flex-start; }
.admin-topbar h1 { margin-right: auto; }
.admin-stat-grid { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.admin-stat-card { border-radius: var(--radius-lg); }

@media (max-width: 960px) {
  .admin-shell { display: block; }
  .admin-sidebar {
    position: fixed; left: 0; top: 0; z-index: 25;
    width: 290px; max-width: 86vw;
    transform: translateX(-100%); transition: transform .28s cubic-bezier(.4,0,.2,1);
  }
  .admin-sidebar.is-open { transform: translateX(0); }
  .admin-main { padding: 20px; }
  .admin-main > .admin-topbar,
  .admin-main > h1:first-child { margin: -20px -20px 20px; padding: 14px 20px; }
  .drawer-toggle { display: flex; }
  .drawer-backdrop.show { display: block; }
}

/* ---- Shared control polish (tables / forms / inputs) -------------- */
.table-wrap { border-radius: var(--radius-lg); }
.table th { letter-spacing: .06em; }
.table tbody tr { transition: background .15s ease; }
input, select, textarea { border-radius: var(--radius); transition: border-color .15s ease, box-shadow .15s ease; }
input:focus, select:focus, textarea:focus { box-shadow: 0 0 0 3px rgba(201,162,39,.15); }
.btn { border-radius: 999px; }
