:root {
  --navy-950: #0a1426;
  --navy-900: #0e1b30;
  --navy-800: #14233c;
  --navy-700: #1b2c49;
  --accent: #1f5e8c;
  --accent-strong: #184a70;
  --accent-soft: #e8f1f8;
  --gold: #a8843c;
  --ink: #152238;
  --body-bg: #f5f7fa;
  --line: #e3e9f0;
  --muted: #5c6d84;
  --success: #17724b;
  --danger: #b3423f;
  --warn: #9a6b1f;
}

* { box-sizing: border-box; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--body-bg);
  -webkit-font-smoothing: antialiased;
  letter-spacing: 0.01em;
}

h1, h2, h3, h4, h5, h6 { font-weight: 700; }
.display-serif { font-family: 'Newsreader', Georgia, 'Times New Roman', serif; font-weight: 600; letter-spacing: -0.01em; }

.btn { border-radius: 0.25rem; font-weight: 600; font-size: 0.95rem; padding: 0.6rem 1.25rem; }
.btn-primary { background: var(--accent); border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-strong); border-color: var(--accent-strong); }
.btn-outline-primary { border-color: var(--accent); color: var(--accent); }
.btn-outline-primary:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-warning { background: #e8b64c; border-color: #e8b64c; color: #3a2c0c; }
.btn-warning:hover { background: #d9a436; border-color: #d9a436; color: #3a2c0c; }

.card { border-radius: 0.5rem; border: 1px solid var(--line); }
.form-control, .form-select { border-radius: 0.3rem; padding: 0.6rem 0.9rem; border-color: #ccd6e2; font-size: 0.95rem; }
.form-control:focus, .form-select:focus { border-color: var(--accent); box-shadow: 0 0 0 0.2rem rgba(31, 94, 140, 0.15); }
.form-text { font-size: 0.82rem; }

.section-pad { padding: 4.75rem 0; }
.section-muted { background: #eef2f6; }
.section-label {
  display: inline-flex; align-items: center; gap: 0.6rem;
  text-transform: uppercase; letter-spacing: 0.14em;
  font-size: 0.75rem; font-weight: 700; color: var(--accent);
}
.section-label::before { content: ''; width: 28px; height: 1px; background: var(--gold); }

.lead-copy { color: var(--muted); font-size: 1.05rem; line-height: 1.75; }

/* ---------- Public site / guest ---------- */
.guest-page { background: #ffffff; color: var(--ink); }

.topbar {
  background: var(--navy-950); color: #93a6c0;
  font-size: 0.8rem; padding: 0.45rem 0;
}
.topbar a { color: #c7d4e4; text-decoration: none; }
.topbar a:hover { color: #fff; }
.topbar .sep { color: #41557a; margin: 0 0.6rem; }

.corp-nav { background: rgba(255, 255, 255, 0.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(8px); }
.corp-nav .navbar-brand { color: var(--navy-900); font-weight: 800; letter-spacing: -0.01em; font-size: 1.15rem; }
.corp-nav .navbar-brand .brand-mark {
  display: inline-grid; place-items: center; width: 34px; height: 34px;
  background: var(--navy-900); color: #d9e4f2; border-radius: 6px; margin-right: 0.6rem; font-size: 1rem;
}
.corp-nav .nav-link { color: #33445b; font-weight: 500; font-size: 0.95rem; padding: 0.6rem 0.95rem; }
.corp-nav .nav-link:hover { color: var(--accent); }
.corp-nav .nav-link.active { color: var(--accent); }
.corp-nav .nav-link.active::after { content: ''; display: block; height: 2px; background: var(--accent); margin-top: 2px; }

.btn-corp { border: 1px solid #b8c4d4; color: var(--navy-900); background: transparent; font-weight: 600; }
.btn-corp:hover { border-color: var(--navy-900); color: var(--navy-900); }

/* Hero */
.hero-section {
  background: var(--navy-950); color: #e7eef7;
  padding: 5.5rem 0 3.5rem; position: relative; overflow: hidden;
}
.hero-section::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(760px 380px at 8% 12%, rgba(31,94,140,.5), transparent 62%),
    radial-gradient(640px 340px at 92% 20%, rgba(168,132,60,.22), transparent 60%);
}
.hero-overline {
  text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.74rem;
  font-weight: 700; color: #8fb1ce; margin-bottom: 1.1rem;
}
.hero-title { font-size: 3rem; line-height: 1.08; margin-bottom: 1.25rem; }
.hero-sub { color: #a7b9d0; font-size: 1.05rem; line-height: 1.7; max-width: 560px; }

.stat-strip { border-top: 1px solid rgba(255,255,255,.12); margin-top: 3.25rem; padding-top: 1.75rem; }
.stat-item .num { font-family: 'Newsreader', Georgia, serif; font-size: 1.9rem; font-weight: 600; color: #fff; }
.stat-item .lbl { color: #8fa3bf; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; }

.hero-aside { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.14); border-radius: 0.6rem; padding: 1.75rem; }
.hero-aside .row-label { color: #8fa3bf; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; }
.hero-aside .row-val { color: #fff; font-weight: 600; }
.hero-aside hr { border-color: rgba(255,255,255,0.12); }

/* About */
.firm-feature { display: flex; gap: 0.9rem; align-items: flex-start; }
.firm-feature .n { color: var(--gold); font-family: 'Newsreader', Georgia, serif; font-size: 1.4rem; font-weight: 600; line-height: 1; margin-top: 0.2rem; }
.firm-feature h6 { font-size: 0.95rem; }
.firm-feature p { color: var(--muted); font-size: 0.9rem; }

.role-card { border: 1px solid var(--line); border-radius: 0.5rem; padding: 1.25rem; background: #fff; height: 100%; }
.role-card .initials {
  width: 46px; height: 46px; border-radius: 50%; background: var(--navy-900);
  color: #d9e4f2; display: grid; place-items: center; font-weight: 700; font-size: 0.9rem; margin-bottom: 0.8rem;
}
.role-card h6 { font-size: 0.9rem; margin-bottom: 0.25rem; }
.role-card .t { color: var(--accent); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.07em; }

/* Programs */
.program-card {
  background: #fff; border: 1px solid var(--line); border-radius: 0.5rem;
  padding: 1.5rem; height: 100%; display: flex; flex-direction: column;
  transition: box-shadow .2s ease, border-color .2s ease; position: relative;
}
.program-card:hover { border-color: #b9c8d8; box-shadow: 0 14px 40px rgba(14,27,48,.10); }
.program-card .accent-bar { position: absolute; top: 0; left: 0; right: 0; height: 3px; }
.program-card.tier-1 .accent-bar { background: #7f95a8; }
.program-card.tier-2 .accent-bar { background: #3f6f8f; }
.program-card.tier-3 .accent-bar { background: #a8843c; }
.program-card.tier-4 .accent-bar { background: #5d5a87; }
.program-card.tier-5 .accent-bar { background: #264a63; }
.program-card .tier-tag { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--accent); }
.program-card h4 { font-family: 'Newsreader', Georgia, serif; font-size: 1.35rem; }
.program-card .rate-block { border-bottom: 1px solid var(--line); padding: 0.8rem 0; margin-bottom: 0.8rem; }
.program-card .rate-block .rate { font-size: 1.7rem; font-weight: 700; color: var(--navy-900); }
.program-card .rate-block .rate small { font-size: 0.8rem; color: var(--muted); font-weight: 500; }
.program-spec { list-style: none; padding: 0; margin: 0 0 1.1rem; }
.program-spec li { display: flex; justify-content: space-between; gap: 0.75rem; padding: 0.4rem 0; border-bottom: 1px dashed #e2e8f0; font-size: 0.88rem; color: var(--muted); }
.program-spec li span:last-child { color: var(--ink); font-weight: 600; }
.program-note { font-size: 0.8rem; color: var(--muted); margin-top: 0.6rem; }

/* Approach */
.step-card { border-left: 3px solid var(--line); padding-left: 1.25rem; }
.step-card .step-no { font-family: 'Newsreader', Georgia, serif; font-size: 1.5rem; font-weight: 600; color: var(--gold); }
.step-card h5 { font-size: 1rem; margin-top: 0.35rem; }
.step-card p { color: var(--muted); font-size: 0.9rem; line-height: 1.6; }

/* Integrity band */
.integrity-band { background: var(--navy-950); color: #cfdcec; }
.integrity-item { text-align: left; padding: 1.25rem; }
.integrity-item .ic { color: #8fb1ce; font-size: 1.15rem; margin-bottom: 0.6rem; }
.integrity-item h6 { color: #fff; font-size: 0.95rem; }
.integrity-item p { color: #8fa3bf; font-size: 0.85rem; margin: 0; }

/* Contact */
.office-card { border: 1px solid var(--line); background: #fff; border-radius: 0.5rem; padding: 1.4rem; height: 100%; }
.office-card .city { font-family: 'Newsreader', Georgia, serif; font-size: 1.25rem; font-weight: 600; }
.office-card p { color: var(--muted); font-size: 0.9rem; margin: 0; line-height: 1.7; }

/* Footer */
.site-footer { background: var(--navy-950); color: #93a6c0; padding: 3.5rem 0 0; font-size: 0.9rem; }
.site-footer h6 { color: #e7eef7; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1.1rem; }
.site-footer .brand { color: #fff; font-weight: 800; font-size: 1.1rem; }
.site-footer .footer-links { list-style: none; padding: 0; margin: 0; }
.site-footer .footer-links li { margin-bottom: 0.55rem; }
.site-footer .footer-links a { color: #93a6c0; text-decoration: none; }
.site-footer .footer-links a:hover { color: #fff; }
.asset-chip { background: #1a2c47; border: 1px solid rgba(255,255,255,.14); padding: .35rem .8rem; border-radius: 999px; font-size: .78rem; color: #c7d4e4; }
.footer-risk {
  border-top: 1px solid rgba(255,255,255,.1); padding: 1.4rem 0 1rem; color: #6f829c; font-size: 0.8rem; line-height: 1.65;
}
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 1.1rem 0; font-size: 0.8rem; }

/* Guest auth panels */
.guest-panel { background: #fff; border: 1px solid var(--line); border-radius: 0.6rem; box-shadow: 0 18px 50px rgba(14,27,48,.10); }
.guest-panel h2 { color: var(--navy-900); font-family: 'Newsreader', Georgia, serif; }
.guest-panel .form-label { color: #33445b; font-weight: 600; font-size: 0.88rem; }

.page-hero { background: #fff; border-bottom: 1px solid var(--line); padding: 3.5rem 0 2.5rem; }
.page-hero h1 { font-family: 'Newsreader', Georgia, serif; font-size: 2.4rem; color: var(--navy-900); }
.page-hero .crumbs { color: var(--muted); font-size: 0.85rem; margin-bottom: 0.75rem; }
.page-hero .crumbs a { color: var(--accent); text-decoration: none; }

.prose { color: #33445b; line-height: 1.8; font-size: 0.98rem; }
.prose h3 { font-family: 'Newsreader', Georgia, serif; color: var(--navy-900); font-size: 1.4rem; margin-top: 2rem; }
.prose strong { color: var(--ink); }

/* ---------- Client app ---------- */
.app-page { background: var(--body-bg); }
.app-navbar { background: var(--navy-950); }
.app-navbar .navbar-brand { color: #fff; font-weight: 800; letter-spacing: -0.01em; }
.app-navbar .nav-link { color: #aebdd2; font-size: 0.94rem; }
.app-navbar .nav-link:hover, .app-navbar .nav-link.active { color: #fff; }

.stat-card { border: 0; border-radius: 0.5rem; box-shadow: 0 4px 18px rgba(14,27,48,.06); }
.stat-card .card-header { border-bottom: 1px solid var(--line); }
.s-icon { width: 46px; height: 46px; border-radius: 8px; display: grid; place-items: center; color: #fff; font-size: 1.15rem; }
.bg-brand-grad { background: linear-gradient(135deg, #1f5e8c 0%, #2d4a6b 100%); }

.wallet-box { background: #f4f7fa; border: 1px solid var(--line); border-radius: 0.5rem; padding: 1rem; }
.wallet-addr { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: #eaf0f6; border-radius: 0.35rem; padding: 0.6rem 0.8rem; word-break: break-all; font-size: 0.85rem; }

.table > :not(caption) > * > * { padding: 0.8rem 0.9rem; }
.table thead th { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: #64748b; background: #f4f7fa; }

/* ---------- Admin ---------- */
.admin-page { background: #eef1f5; }
.admin-shell { min-height: 100vh; }
.admin-sidebar { width: 250px; background: var(--navy-950); color: #aebdd2; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.admin-sidebar .brand, .admin-topbar .brand { color: #fff; font-weight: 800; text-decoration: none; display: block; font-size: 1.1rem; }
.admin-sidebar ul.nav a { display: flex; align-items: center; color: #aebdd2; padding: 0.65rem 1.25rem; text-decoration: none; font-size: 0.94rem; }
.admin-sidebar ul.nav a:hover { color: #fff; }
.admin-sidebar ul.nav a.active { color: #fff; background: linear-gradient(135deg, #1f5e8c 0%, #173f5f 100%); border-radius: 0.35rem; margin: 0 0.5rem; padding-left: 0.75rem; }
.admin-main { min-width: 0; }
.admin-topbar { background: var(--navy-950); padding-bottom: 0; }
.panel { background: #fff; border: 0; border-radius: 0.5rem; box-shadow: 0 4px 14px rgba(14,27,48,.05); }

.stat-tile .val { font-size: 1.5rem; font-weight: 800; color: var(--navy-900); }
.stat-tile .lbl { color: #64748b; font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.05em; }

.toast { border-radius: 0.5rem; }

/* ---------- Live market prices ---------- */
.up { color: #1a9e63; }
.down { color: #d9544a; }
.up-flash { color: #34c98a; }
.down-flash { color: #f2685a; }

.price-ticker { background: var(--navy-950); border-bottom: 1px solid rgba(255,255,255,.12); padding: .55rem 0; overflow: hidden; white-space: nowrap; }
.price-ticker .ticker-track { display: inline-flex; gap: 2.5rem; animation: ticker 48s linear infinite; min-width: max-content; }
.price-ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-item { display: inline-flex; gap: .55rem; align-items: baseline; font-size: .85rem; color: #8fa3bf; }
.ticker-item .t-sym { font-weight: 700; color: #e7eef7; }
.ticker-item .t-price { font-variant-numeric: tabular-nums; color: #fff; }
.ticker-item .up, .ticker-item .down { font-weight: 600; }
.ticker-item .up { color: #34c98a; }
.ticker-item .down { color: #f2685a; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.coin-card { background: #fff; border: 1px solid var(--line); border-radius: .5rem; padding: 1rem 1.1rem; height: 100%; transition: box-shadow .2s ease, border-color .2s ease; }
.coin-card:hover { border-color: #b9c8d8; box-shadow: 0 10px 28px rgba(14,27,48,.08); }
.coin-card .sym { font-weight: 700; color: var(--navy-900); font-size: 1.05rem; }
.coin-card .name { color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; }
.coin-card .px { font-size: 1.4rem; font-weight: 700; color: var(--navy-900); font-variant-numeric: tabular-nums; }
.coin-card .chg { font-size: .85rem; font-weight: 600; }

.px-chip { background: #fff; border: 1px solid var(--line); border-radius: .45rem; padding: .55rem .85rem; display: flex; align-items: baseline; gap: .6rem; }
.px-chip .sym { font-weight: 700; color: var(--navy-900); font-size: .9rem; }
.px-chip .name { color: var(--muted); font-size: .75rem; }
.px-chip .num { font-weight: 600; color: var(--navy-900); font-variant-numeric: tabular-nums; }
.px-chip .up, .px-chip .down { font-weight: 700; font-size: .82rem; }

.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #34c98a; display: inline-block; animation: pulse 1.6s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

@media (max-width: 991.98px) {
  .hero-section { padding-top: 3.5rem; }
  .hero-title { font-size: 2.2rem; }
  .section-pad { padding: 3.25rem 0; }
}

/* Portfolio hero (client dashboard) */
.portfolio-hero {
  background: linear-gradient(135deg, #0f2038 0%, #132c4d 55%, #1c3a63 100%);
  border: 1px solid rgba(120, 160, 220, .18);
  border-radius: .85rem;
  color: #e7eef7;
  padding: 1.5rem 1.5rem 1.35rem;
}
.portfolio-hero .display-serif { color: #fff; font-variant-numeric: tabular-nums; }
.alloc-bar { display: flex; height: 10px; border-radius: 8px; overflow: hidden; background: rgba(255,255,255,.12); }
.legend-dot { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: .35rem; }

/* Ops strip (admin) */
.ops-item { padding: .4rem .2rem; }
.ops-item .ops-label { text-transform: uppercase; letter-spacing: .06em; font-size: .72rem; color: var(--muted); margin-bottom: .2rem; }
.ops-item .ops-val { font-size: 1.15rem; font-weight: 700; color: var(--navy-900); font-variant-numeric: tabular-nums; }
.ops-item .ops-sub { font-size: .76rem; color: var(--muted); }

/* Notifications */
.notif-menu .dropdown-item { white-space: normal; padding: .6rem 1rem; }
.notif-menu .dropdown-item + .dropdown-item { border-top: 1px solid #eef1f5; }
.notif-ico { color: var(--brand); }
.notif-unread { background: #f2f6ff; }
.notif-ico-lg {
  width: 38px; height: 38px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(59,130,246,.1); color: var(--brand); font-size: 1rem; flex: 0 0 auto;
}