:root {
  --navy: #062653;
  --navy-2: #021a3d;
  --gold: #c9982f;
  --gold-2: #e2b451;
  --ink: #0d1b2f;
  --muted: #5d6b7e;
  --line: #dbe2ec;
  --soft: #f6f8fb;
  --white: #fff;
}

/* Premium mobile app portal refresh */
:root {
  --client-navy: #071b33;
  --client-navy-2: #0a2540;
  --client-gold: #c69a3d;
  --client-amber: #e2bb65;
  --client-bg: #f4f6f8;
  --client-muted: #64748b;
  --client-green: #18a66a;
  --client-red: #c33d32;
}

.client-portal-body {
  min-height: 100vh;
  background: radial-gradient(circle at 50% 0%, rgba(198,154,61,.16), transparent 32%), linear-gradient(180deg, #eef2f5 0%, #f7f8fb 52%, #eceff3 100%);
  color: #122033;
  font-family: Inter, Arial, Helvetica, sans-serif;
}

.client-app-shell {
  width: min(100%, 640px);
  min-height: 100vh;
  margin: 0 auto;
  background: linear-gradient(180deg, rgba(255,255,255,.62), rgba(245,247,250,.94)), #f6f8fb;
  box-shadow: 0 0 0 1px rgba(7,27,51,.08), 0 30px 90px rgba(7,27,51,.18);
}

.client-main { padding: 18px 16px 96px; }

.client-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  min-height: 82px;
  padding: 13px 16px;
  overflow: hidden;
  background: radial-gradient(circle at 14% 20%, rgba(226,187,101,.22), transparent 25%), linear-gradient(120deg, #071b33 0%, #0b315a 60%, #163f55 100%);
  color: #fff;
  box-shadow: 0 16px 34px rgba(7,27,51,.26);
}

.client-logo {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 1px solid rgba(226,187,101,.32);
  border-radius: 18px;
  background: rgba(255,255,255,.97);
  box-shadow: 0 12px 26px rgba(0,0,0,.18);
  overflow: hidden;
}

.client-logo img { width: 42px; height: 42px; object-fit: contain; }
.client-brand-copy { min-width: 0; }
.client-topbar strong { display: block; overflow: hidden; color: #fff; font-family: "Playfair Display", Georgia, serif; font-size: 1.22rem; line-height: 1.05; text-overflow: ellipsis; white-space: nowrap; }
.client-topbar small { display: block; margin-top: 4px; color: rgba(255,255,255,.72); font-size: .76rem; font-weight: 700; letter-spacing: .02em; line-height: 1.15; }
.client-install-btn { border: 1px solid rgba(226,187,101,.34); border-radius: 999px; background: rgba(255,255,255,.1); color: #fff; padding: 8px 11px; font: inherit; font-size: .72rem; font-weight: 900; }

.client-top-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  gap: 4px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 14px;
  background: rgba(255,255,255,.1);
}

.client-top-icon span { display: block; width: 18px; height: 2px; border-radius: 999px; background: #fff; }

.client-card, .client-hero-card {
  border: 1px solid rgba(7,27,51,.08);
  border-radius: 24px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 18px 48px rgba(7,27,51,.1);
  padding: 20px;
  margin-bottom: 16px;
}

.client-hero-card { position: relative; overflow: hidden; }
.client-hero-card::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 88% 15%, rgba(198,154,61,.16), transparent 28%); }
.client-hero-card > * { position: relative; }

.client-hero-card h1, .client-card h1, .client-card h2 {
  color: var(--client-navy);
  font-family: Inter, Arial, sans-serif;
  letter-spacing: -.02em;
}

.client-hero-card h1 { margin-top: 4px; text-align: left; text-transform: none; font-size: 1.22rem; line-height: 1.15; }
.client-card h1 { font-size: 1.55rem; }
.client-card h2 { margin-bottom: 16px; text-align: left; font-size: 1.18rem; }
.client-scope-row, .client-page-head { align-items: center; }
.client-scope-row small, .client-page-head small { color: var(--client-muted); font-size: .76rem; letter-spacing: .04em; text-transform: uppercase; }

.client-toggle { border-color: rgba(7,27,51,.08); background: #f5f7fa; padding: 4px; }
.client-toggle a, .client-chip { border-radius: 999px; padding: 8px 12px; font-size: .75rem; }
.client-toggle a.active, .client-chip { background: var(--client-navy); color: #fff; }

.client-summary-split { gap: 12px; margin: 18px 0 20px; }
.client-summary-split > div { border: 1px solid rgba(7,27,51,.08); border-radius: 20px; background: #f8fafc; padding: 14px 12px; }
.client-summary-split > div + div { border-left: 1px solid rgba(7,27,51,.08); }
.client-summary-split span, .mini-total-row span, .detail-metric-grid span { color: var(--client-muted); font-size: .78rem; font-weight: 700; }
.client-summary-split strong { color: var(--client-navy); font-size: 1.35rem; letter-spacing: -.02em; }
.client-summary-split strong.positive, .holding-card em, .daily-move.positive { color: var(--client-green); }
.client-summary-split strong.negative, .daily-move.negative { color: var(--client-red); }
.client-summary-split em { border-radius: 999px; background: #e7f8ef; color: var(--client-green); padding: 6px 10px; font-size: .72rem; }
.client-summary-split em.negative { background: #fdecea; color: var(--client-red); }

.client-allocation { grid-template-columns: minmax(0, 1fr) 148px; gap: 16px; }
.client-bucket-list { gap: 10px; }
.client-bucket-list div { border-left-width: 5px; border-radius: 14px; background: #f8fafc; padding: 10px 12px; }
.client-bucket-list strong { color: var(--client-navy); }
.client-donut { width: 142px; height: 142px; box-shadow: inset 0 0 0 1px rgba(7,27,51,.08), 0 18px 42px rgba(7,27,51,.1); }
.client-donut::after { inset: 29%; box-shadow: inset 0 0 0 1px rgba(7,27,51,.08); }

.holding-card {
  grid-template-columns: 52px minmax(0, 1fr) 22px;
  border-left: 0;
  border-bottom: 0;
  border-radius: 18px;
  background: #f8fafc;
  padding: 13px;
  margin-bottom: 10px;
  box-shadow: inset 0 0 0 1px rgba(7,27,51,.07);
  transition: transform .18s ease, box-shadow .18s ease;
}
.holding-card:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px rgba(198,154,61,.35), 0 14px 34px rgba(7,27,51,.08); }
.fund-badge { width: 44px; height: 44px; border-radius: 15px; border-color: rgba(198,154,61,.22); background: linear-gradient(145deg, #fff, #fff8e8); color: var(--client-navy); }
.holding-main strong { color: #122033; font-size: .95rem; }
.holding-main span { color: var(--client-navy); font-size: 1.05rem; }
.holding-main em { background: #e6f7ef; color: var(--client-green); padding: 4px 9px; }
.holding-card b { align-self: center; color: var(--client-navy); font-size: 1.7rem; }

.client-quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 0; background: transparent; box-shadow: none; border: 0; }
.client-quick-grid a { min-height: 96px; border: 1px solid rgba(7,27,51,.08); border-radius: 20px; background: #fff; box-shadow: 0 12px 30px rgba(7,27,51,.08); }
.mini-total-row, .detail-metric-grid div { border-color: rgba(7,27,51,.08); border-radius: 18px; background: #f8fafc; }
.transaction-card, .ticket-card { border-color: rgba(7,27,51,.08); border-radius: 18px; box-shadow: 0 12px 28px rgba(7,27,51,.07); }

.client-filter-form select, .client-filter-form input, .client-filter-form button, .client-support-form input, .client-support-form select, .client-support-form textarea, .client-login-card input, .client-card input, .client-card select, .client-card textarea {
  border-radius: 16px;
  border-color: rgba(7,27,51,.12);
  min-height: 48px;
}

.client-bottom-nav {
  width: min(100%, 640px);
  border: 1px solid rgba(7,27,51,.08);
  border-bottom: 0;
  border-radius: 24px 24px 0 0;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(18px);
  box-shadow: 0 -16px 38px rgba(7,27,51,.14);
}
.client-bottom-nav a { min-height: 76px; color: #8a94a3; font-weight: 700; }
.client-bottom-nav a span { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 12px; font-size: 1rem; }
.client-bottom-nav a.active { color: #315bff; }
.client-bottom-nav a.active span { background: rgba(49,91,255,.1); }
.client-bottom-nav a.active::after { left: 24%; right: 24%; height: 4px; background: linear-gradient(90deg, #315bff, var(--client-gold)); }

.client-login-screen {
  min-height: 100vh;
  padding: 28px 16px;
  background: radial-gradient(circle at top left, rgba(226,187,101,.24), transparent 32%), linear-gradient(135deg, #071b33 0%, #0b315a 56%, #173f52 100%);
}
.client-login-card { width: min(100%, 440px); border: 1px solid rgba(255,255,255,.16); border-radius: 30px; background: rgba(255,255,255,.96); padding: 28px; box-shadow: 0 30px 90px rgba(0,0,0,.3); }
.client-login-card img { width: 280px; margin-bottom: 20px; }
.client-login-card h1 { color: var(--client-navy); font-family: "Playfair Display", Georgia, serif; font-size: 2rem; }
.client-login-card p, .client-login-card small { color: var(--client-muted); }
.client-login-card .btn-primary { border-radius: 999px; background: var(--client-navy); min-height: 50px; }
.client-link { color: var(--client-navy); font-weight: 900; }

@media (max-width: 430px) {
  .client-main { padding-left: 12px; padding-right: 12px; }
  .client-topbar { grid-template-columns: 48px minmax(0,1fr) auto auto; gap: 9px; min-height: 74px; padding: 11px 12px; }
  .client-logo { width: 46px; height: 46px; border-radius: 16px; }
  .client-logo img { width: 37px; height: 37px; }
  .client-topbar strong { font-size: 1rem; }
  .client-topbar small { font-size: .68rem; }
  .client-top-icon { width: 38px; height: 38px; border-radius: 13px; }
  .client-card, .client-hero-card { border-radius: 22px; padding: 16px; }
  .client-summary-split { grid-template-columns: 1fr; }
  .client-summary-split > div + div { border-left: 1px solid rgba(7,27,51,.08); }
  .client-allocation { grid-template-columns: 1fr; }
  .client-donut { width: 170px; height: 170px; }
  .client-quick-grid { grid-template-columns: 1fr; }
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: linear-gradient(180deg,#fff 0%,#f8fbff 45%,#fff 100%); font-family: Arial, Helvetica, sans-serif; }
a { color: inherit; text-decoration: none; }
.container { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.grid { display: grid; gap: 18px; }
.site-header { position: sticky; top: 0; z-index: 40; border-bottom: 1px solid rgba(219,226,236,.85); background: rgba(255,255,255,.9); backdrop-filter: blur(14px); box-shadow: 0 10px 28px rgba(6,38,83,.05); }
.nav { display: flex; min-height: 82px; align-items: center; justify-content: space-between; gap: 28px; }
.brand-mark img { display: block; width: 220px; max-width: 100%; height: auto; }
.brand-mark { position: relative; display: inline-flex; align-items: center; overflow: hidden; border-radius: 8px; flex: 0 0 auto; }
.brand-mark.logo-animated img, .footer-logo.logo-animated { animation: logoFloat 5.8s ease-in-out infinite; filter: drop-shadow(0 10px 18px rgba(201,152,47,.12)); }
.brand-mark.logo-animated::after { content: ""; position: absolute; inset: 0; width: 36%; transform: translateX(-140%) skewX(-18deg); background: linear-gradient(90deg,transparent,rgba(255,255,255,.72),transparent); animation: logoShine 4.8s ease-in-out infinite; pointer-events: none; }
.nav-links { display: flex; align-items: center; justify-content: flex-end; gap: 14px; color: var(--navy); font-size: .9rem; font-weight: 700; line-height: 1.2; flex: 1 1 auto; }
.nav-links a { white-space: nowrap; }
.nav-links a:not(.btn) { border-radius: 999px; padding: 9px 10px; }
.nav-links a:not(.btn):hover { background: #eef4fb; }
.nav-links .btn { min-height: 44px; padding: 10px 16px; border-radius: 8px; }
.menu-toggle { display: none; border: 1px solid var(--line); border-radius: 999px; background: var(--white); color: var(--navy); padding: 10px 14px; font-weight: 900; box-shadow: 0 8px 18px rgba(6,38,83,.08); }
.btn { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 8px; padding: 11px 18px; font-weight: 800; cursor: pointer; }
.btn-primary { background: var(--navy); color: var(--white); box-shadow: 0 14px 28px rgba(6,38,83,.2); }
.btn-gold { background: linear-gradient(135deg, var(--gold), var(--gold-2)); color: var(--white); }
.btn-outline { border-color: var(--gold); background: var(--white); color: var(--navy); }
.btn-danger { background: #b42318; color: var(--white); }
.muted { color: var(--muted); line-height: 1.6; }
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); background: linear-gradient(90deg,#fff 0%,rgba(255,255,255,.97) 32%,rgba(255,255,255,.72) 53%,rgba(255,255,255,.08) 100%), url("/assets/images/home-hero-bg.png") center right / cover no-repeat; }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 120px; background: linear-gradient(180deg,rgba(255,255,255,0),#fff); pointer-events: none; }
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, .9fr) minmax(340px, 430px); gap: 44px; align-items: center; min-height: 650px; padding: 64px 0 86px; }
.hero-copy-block { max-width: 680px; }
h1, h2, h3, .serif { font-family: Georgia, "Times New Roman", serif; }
h1 { margin: 0; max-width: 650px; color: var(--navy-2); font-size: clamp(2.35rem, 5vw, 4.35rem); line-height: .98; letter-spacing: 0; }
.section-title { margin: 0 0 14px; color: var(--navy-2); font-size: clamp(2rem, 4vw, 3rem); line-height: 1.08; }
.section-copy, .hero p { color: var(--muted); font-size: 1.05rem; line-height: 1.7; }
.hero p { max-width: 610px; font-size: 1.16rem; }
.eyebrow { display: inline-flex; width: fit-content; align-items: center; gap: 8px; margin-bottom: 14px; border: 1px solid rgba(201,152,47,.34); border-radius: 999px; background: rgba(255,255,255,.78); color: #8b650f; padding: 8px 13px; font-size: .78rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.eyebrow.center { display: flex; margin-left: auto; margin-right: auto; }
.trust-row { display: flex; gap: 14px; align-items: center; margin: 26px 0; color: var(--navy); font-weight: 700; }
.trust-avatar { display: grid; width: 52px; height: 52px; place-items: center; flex: 0 0 auto; border-radius: 50%; background: var(--navy); color: var(--gold-2); box-shadow: 0 14px 28px rgba(6,38,83,.18); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; max-width: 560px; margin-top: 28px; }
.hero-metrics span { border: 1px solid rgba(219,226,236,.85); border-radius: 8px; background: rgba(255,255,255,.72); padding: 12px 14px; box-shadow: 0 10px 25px rgba(6,38,83,.07); }
.hero-metrics strong, .hero-metrics small { display: block; }
.hero-metrics small { margin-top: 4px; color: var(--muted); font-size: .78rem; line-height: 1.3; }
.card { border: 1px solid rgba(219,226,236,.92); border-radius: 8px; background: rgba(255,255,255,.96); padding: 24px; box-shadow: 0 22px 55px rgba(6,38,83,.12); }
.lead-card { align-self: center; border-top: 6px solid var(--navy); }
.lead-card h3 { margin: 0; color: var(--navy-2); font-size: 1.55rem; }
.field { display: grid; gap: 7px; }
.field span { color: var(--navy); font-size: .88rem; font-weight: 800; }
input, select, textarea { width: 100%; border: 1px solid var(--line); border-radius: 8px; background: var(--white); color: var(--ink); padding: 12px 13px; font: inherit; }
textarea { min-height: 110px; resize: vertical; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.span-2 { grid-column: 1 / -1; }
.section { padding: 72px 0; }
.trust-strip, .why-row, .kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.trust-strip { margin-top: -48px; position: relative; z-index: 2; align-items: stretch; }
.trust-item, .why-item, .kpi, .dashboard-card { border: 1px solid var(--line); border-radius: 8px; background: var(--white); padding: 20px; }
.trust-item, .why-item { box-shadow: 0 16px 36px rgba(6,38,83,.08); }
.trust-item { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 12px 14px; align-content: start; min-height: 126px; padding: 22px; }
.trust-item span { display: inline-grid; width: 38px; height: 38px; place-items: center; grid-row: 1 / span 2; border-radius: 50%; background: linear-gradient(135deg,#fff7e4,#eac76d); color: var(--navy); font-size: .75rem; font-weight: 900; box-shadow: inset 0 0 0 1px rgba(201,152,47,.28); }
.trust-item strong { display: block; color: var(--navy-2); font-size: .98rem; line-height: 1.25; }
.trust-item .section-copy { margin: 0; font-size: .9rem; line-height: 1.45; }
.why-item { transition: transform .18s ease, box-shadow .18s ease; }
.why-item:hover { transform: translateY(-3px); box-shadow: 0 22px 46px rgba(6,38,83,.12); }
.kpi { display: grid; gap: 9px; align-content: center; min-height: 92px; }
.kpi small { display: block; color: var(--muted); font-size: .82rem; line-height: 1.25; }
.kpi strong { display: block; color: var(--navy-2); font-size: 1.65rem; line-height: 1; font-weight: 900; }
.why-icon { display: grid; width: 58px; height: 58px; place-items: center; border-radius: 50%; background: #f6ead2; color: var(--navy); }
.action-rail { background: var(--navy); color: var(--white); padding: 26px 0; }
.action-rail-inner { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; }
.rail-item { display: flex; align-items: center; gap: 12px; border-right: 1px solid rgba(255,255,255,.22); padding: 10px; }
.rail-item small { display: block; color: rgba(255,255,255,.78); line-height: 1.4; }
.page-intro { max-width: 760px; margin-bottom: 28px; }
.page-shell { display: grid; grid-template-columns: minmax(0, .9fr) minmax(300px, .45fr); gap: 28px; align-items: start; }
.profile-card p { margin: 0 0 10px; }
.contact-layout { align-items: start; }
.site-footer { border-top: 1px solid rgba(219,226,236,.9); background: linear-gradient(180deg,#f8fafc 0%,#eef4fa 54%,#e8f0f8 100%); color: #32445b; padding: 48px 0 22px; font-size: .94rem; line-height: 1.65; }
.footer-grid { display: grid; grid-template-columns: 1.35fr .9fr .8fr; gap: 28px; align-items: start; }
.footer-logo { width: 270px; max-width: 100%; height: auto; margin-bottom: 14px; }
.footer-brand p, .footer-credentials p, .footer-contact p, .footer-disclaimer p { margin: 0 0 10px; }
.footer-brand strong, .footer-credentials strong, .footer-contact strong { color: var(--navy-2); }
.footer-credentials h3, .footer-contact h3, .footer-disclaimer h3 { margin: 0 0 12px; color: var(--navy-2); font-family: Arial, Helvetica, sans-serif; font-size: .92rem; letter-spacing: .08em; text-transform: uppercase; }
.footer-credentials span { display: inline-flex; border-radius: 999px; background: #f6ead2; color: #7b570c; padding: 6px 10px; font-weight: 900; }
.footer-contact a:not(.footer-admin-link) { color: var(--navy); font-weight: 900; }
.footer-admin-link { color: var(--muted); font-size: .86rem; text-decoration: underline; }
.footer-disclaimer { grid-column: 1 / -1; border: 1px solid rgba(201,152,47,.28); border-radius: 8px; background: rgba(255,255,255,.72); padding: 18px 20px; }
.footer-disclaimer p { color: #43556b; font-size: .88rem; line-height: 1.7; }
.footer-bottom { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; border-top: 1px solid rgba(6,38,83,.12); padding-top: 18px; color: var(--muted); font-size: .84rem; }
@keyframes logoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}
@keyframes logoShine {
  0%, 52% { transform: translateX(-140%) skewX(-18deg); opacity: 0; }
  62% { opacity: .8; }
  84%, 100% { transform: translateX(320%) skewX(-18deg); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .brand-mark.logo-animated img, .footer-logo.logo-animated, .brand-mark.logo-animated::after { animation: none; }
}
@media (max-width: 1220px) {
  .nav { gap: 16px; }
  .brand-mark img { width: 190px; }
  .nav-links { gap: 7px; font-size: .82rem; }
  .nav-links a:not(.btn) { padding: 8px 7px; }
  .nav-links .btn { padding: 9px 12px; }
}
.admin-shell { display: grid; min-height: 100vh; grid-template-columns: 270px minmax(0,1fr); background: #f4f7fb; }
.admin-shell.sidebar-collapsed { grid-template-columns: 78px minmax(0,1fr); }
.sidebar { position: relative; display: flex; flex-direction: column; gap: 16px; background: linear-gradient(180deg,#061f47,#02152f); color: var(--white); padding: 18px 14px; transition: width .2s ease; }
.sidebar-toggle { position: absolute; top: 12px; right: -14px; z-index: 3; display: grid; width: 28px; height: 28px; place-items: center; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; background: var(--gold); color: var(--navy-2); font-size: 1.1rem; line-height: 1; font-weight: 900; cursor: pointer; box-shadow: 0 8px 18px rgba(0,0,0,.18); }
.admin-sidebar-logo { width: 220px; max-width: 100%; height: auto; }
.sidebar nav { display: grid; gap: 6px; }
.sidebar a { display: flex; min-height: 42px; align-items: center; border-radius: 8px; color: rgba(255,255,255,.86); padding: 10px 14px; font-weight: 800; }
.sidebar a.active, .sidebar a:hover { background: linear-gradient(135deg,var(--gold),#ad7e1c); color: var(--white); }
.sidebar-security { margin-top: auto; border: 1px solid rgba(255,255,255,.18); border-radius: 8px; padding: 14px; background: rgba(255,255,255,.05); }
.sidebar-collapsed .admin-sidebar-logo { width: 50px; height: 50px; object-fit: cover; object-position: left center; }
.sidebar-collapsed .sidebar-text, .sidebar-collapsed .sidebar-security { display: none; }
.sidebar-collapsed .sidebar { align-items: center; padding: 18px 10px; }
.sidebar-collapsed .sidebar nav { width: 100%; }
.sidebar-collapsed .sidebar a { justify-content: center; min-height: 46px; padding: 10px 6px; font-size: 0; }
.sidebar-collapsed .sidebar a::first-letter { font-size: 0; }
.sidebar-collapsed .sidebar a::before { content: attr(data-short); font-size: .9rem; font-weight: 900; }
.admin-main { padding: 22px; min-width: 0; }
.admin-main .kpi-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.admin-main .kpi-grid .kpi { min-height: 108px; align-content: center; padding: 20px 22px; }
.admin-main .kpi-grid .kpi-aum { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 22px; min-height: 104px; }
.admin-main .kpi-grid .kpi-aum small { font-size: .92rem; }
.admin-main .kpi-grid .kpi-aum strong { font-size: 2rem; white-space: nowrap; }
.aum-side { display: flex; align-items: stretch; justify-content: flex-end; gap: 12px; flex-wrap: wrap; text-align: right; }
.aum-mini-metric { display: grid; min-width: 168px; gap: 5px; border: 1px solid rgba(219,226,236,.9); border-radius: 14px; background: #f8fbff; color: #617089; padding: 10px 13px; font-size: .82rem; }
.aum-mini-metric b { color: #617089; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.admin-main .kpi-grid .kpi-aum .aum-mini-metric strong { color: #001f49; font-family: Arial, Helvetica, sans-serif; font-size: 1rem; line-height: 1; }
.aum-day-change { display: inline-flex; min-width: 210px; align-items: center; justify-content: center; border-radius: 14px; color: #fff; font-style: normal; font-size: .95rem; font-weight: 900; padding: 10px 14px; white-space: nowrap; box-shadow: 0 12px 24px rgba(6,38,83,.12); }
.aum-day-change.positive { background: #19a974; }
.aum-day-change.negative { background: #d64545; }
.aum-day-change.neutral { background: #718096; }
.admin-topbar { display: flex; justify-content: space-between; align-items: center; gap: 22px; margin-bottom: 22px; flex-wrap: wrap; }
.admin-topbar h1 { font-family: Arial, Helvetica, sans-serif; font-size: 1.5rem; }
.dashboard-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 20px; }
.dashboard-grid-roomy { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; align-items: start; }
.dashboard-grid > *, .dashboard-grid-roomy > * { min-width: 0; }
.dashboard-card-wide { grid-column: 1 / -1; }
.dashboard-card { margin-bottom: 18px; min-width: 0; }
.dashboard-card h2 { margin: 0 0 20px; color: var(--navy-2); line-height: 1.15; }
.dashboard-card .admin-topbar { margin-bottom: 22px; }
.business-overview-card { margin-top: 20px; padding: 22px; overflow: hidden; }
.business-overview-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.business-overview-head h2 { margin: 0 0 14px; font-family: Arial, Helvetica, sans-serif; font-size: 1.25rem; color: #1b2636; }
.business-tabs { display: flex; flex-wrap: wrap; gap: 28px; color: #8a919b; font-size: .95rem; }
.business-tabs a { position: relative; padding-bottom: 4px; color: #8a919b; }
.business-tabs a.active { color: #315bff; }
.business-tabs a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 999px; background: #315bff; }
.business-tabs a:hover { color: var(--navy); }
.business-controls { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.business-controls select { width: auto; min-width: 108px; min-height: 34px; border-radius: 4px; padding: 5px 8px; background: #fff; color: #4d5561; font-size: .9rem; }
.vertical-chart { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 10px; min-height: 330px; padding: 26px 0 12px; }
.chart-y-axis { display: grid; grid-template-rows: repeat(6, 1fr); color: #3f4650; font-size: .86rem; text-align: right; padding-top: 2px; padding-bottom: 40px; }
.chart-y-axis span { transform: translateY(-50%); }
.chart-plot { position: relative; min-width: 0; }
.chart-grid-line { position: relative; display: block; height: calc((100% - 40px) / 5); border-top: 1px dashed rgba(120,132,148,.35); }
.chart-grid-line:last-of-type { border-bottom: 1px dashed rgba(120,132,148,.35); }
.chart-bars { position: absolute; inset: 0 0 0 0; display: grid; grid-template-columns: repeat(var(--bar-count, 3), minmax(42px, 1fr)); align-items: end; gap: clamp(14px, 3vw, 62px); padding: 0 5% 0 5%; overflow-x: auto; overflow-y: hidden; }
.vertical-bar-item { position: relative; display: grid; height: calc(100% - 40px); align-items: end; justify-items: center; align-self: start; }
.vertical-bar { width: min(38px, 70%); min-height: 4px; border-radius: 6px 6px 0 0; background: linear-gradient(180deg,#49cfa0,#29af83); box-shadow: 0 10px 22px rgba(41,175,131,.18); z-index: 2; }
.vertical-bar-value { position: absolute; left: 50%; top: 8px; z-index: 8; display: grid; gap: 3px; min-width: 190px; transform: translateX(-50%) translateY(-4px); border: 1px solid rgba(255,255,255,.18); border-radius: 8px; background: var(--navy); color: #fff; padding: 9px 11px; font-size: .76rem; font-weight: 800; line-height: 1.25; text-align: left; white-space: nowrap; opacity: 0; pointer-events: none; box-shadow: 0 14px 28px rgba(6,38,83,.24); transition: opacity .14s ease, transform .14s ease; }
.vertical-bar-value strong { color: #fff; font-size: .82rem; }
.vertical-bar-value span { color: rgba(255,255,255,.88); }
.vertical-bar-item:hover .vertical-bar-value, .vertical-bar-item:focus .vertical-bar-value, .vertical-bar-item:focus-within .vertical-bar-value, .vertical-bar-item.show-tip .vertical-bar-value { opacity: 1; transform: translateX(-50%) translateY(0); }
.vertical-bar-label { position: absolute; top: calc(100% + 12px); color: #303640; font-size: .86rem; transform: rotate(-48deg); transform-origin: left top; white-space: nowrap; }
.allocation-chart-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-top: 20px; }
.company-allocation-grid, .fund-allocation-row { grid-template-columns: minmax(0, 1fr); }
.allocation-card { padding: 20px 22px; }
.fund-allocation-card .bar-chart { gap: 18px; }
.fund-allocation-card .bar-row { grid-template-columns: minmax(260px, 1.4fr) minmax(280px, 2fr) minmax(130px, auto); gap: 12px 18px; }
.fund-allocation-card .bar-track { grid-column: auto; height: 20px; }
.fund-allocation-card .bar-label { font-size: .88rem; }
.fund-allocation-card .bar-value { font-size: .88rem; }
.chart-card-head { align-items: flex-start; margin-bottom: 18px; }
.chart-card-head h2 { margin-bottom: 6px; }
.chart-card-head .btn { min-height: 40px; padding: 9px 14px; white-space: nowrap; }
.bar-chart { display: grid; gap: 16px; }
.bar-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 7px 16px; align-items: end; }
.bar-label { color: var(--navy-2); font-size: .86rem; font-weight: 850; line-height: 1.25; overflow-wrap: anywhere; }
.bar-track { grid-column: 1 / -1; height: 18px; border: 1px solid rgba(219,226,236,.95); border-radius: 999px; background: #edf3f9; overflow: hidden; box-shadow: inset 0 1px 2px rgba(6,38,83,.05); }
.bar-fill { height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--navy), var(--gold)); }
.bar-fill.fund-bar { background: linear-gradient(90deg, #0b4f8f, #d4a12a); }
.bar-value { color: var(--navy); font-size: .86rem; font-weight: 900; text-align: right; white-space: nowrap; }
.empty-chart { border: 1px dashed rgba(6,38,83,.18); border-radius: 8px; background: #f8fbff; color: var(--muted); padding: 16px; font-size: .9rem; line-height: 1.45; }
.donut-layout { display: grid; grid-template-columns: minmax(190px, 240px) minmax(0, 1fr); gap: 22px; align-items: center; }
.donut-chart { position: relative; aspect-ratio: 1; width: min(100%, 240px); border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(6,38,83,.08), 0 18px 38px rgba(6,38,83,.12); }
.donut-chart::after { content: ""; position: absolute; inset: 18%; border-radius: 50%; background: var(--white); box-shadow: inset 0 0 0 1px rgba(219,226,236,.85); }
.donut-hole { position: absolute; inset: 24%; z-index: 2; display: grid; place-content: center; gap: 5px; text-align: center; color: var(--navy-2); }
.donut-hole span { color: var(--muted); font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.donut-hole strong { color: var(--navy-2); font-size: 1.05rem; line-height: 1.15; }
.donut-legend { display: grid; gap: 9px; min-width: 0; }
.donut-legend-row { position: relative; display: grid; grid-template-columns: 12px minmax(0, 1fr) auto auto; gap: 9px; align-items: center; border: 1px solid rgba(219,226,236,.8); border-radius: 8px; background: #fbfdff; padding: 9px 10px; outline: none; }
.donut-legend-row:hover, .donut-legend-row:focus { border-color: rgba(201,152,47,.7); box-shadow: 0 10px 22px rgba(6,38,83,.08); }
.donut-dot { width: 10px; height: 10px; border-radius: 50%; box-shadow: 0 0 0 3px rgba(6,38,83,.04); }
.donut-label { color: var(--navy-2); font-size: .82rem; font-weight: 850; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.donut-legend-row strong { color: var(--navy); font-size: .82rem; white-space: nowrap; }
.donut-legend-row em { color: var(--muted); font-size: .8rem; font-style: normal; font-weight: 800; white-space: nowrap; }
.donut-tooltip { position: absolute; left: 18px; bottom: calc(100% + 8px); z-index: 10; display: grid; gap: 4px; min-width: 230px; max-width: 320px; border: 1px solid rgba(255,255,255,.18); border-radius: 8px; background: var(--navy); color: #fff; padding: 10px 12px; font-size: .78rem; line-height: 1.3; opacity: 0; pointer-events: none; transform: translateY(4px); box-shadow: 0 16px 32px rgba(6,38,83,.24); transition: opacity .14s ease, transform .14s ease; }
.donut-tooltip b { font-size: .84rem; color: #fff; }
.donut-tooltip span { color: rgba(255,255,255,.88); }
.donut-legend-row:hover .donut-tooltip, .donut-legend-row:focus .donut-tooltip, .donut-legend-row.show-tip .donut-tooltip { opacity: 1; transform: translateY(0); }
.toolbar { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: flex-end; }
.toolbar .btn { min-width: 150px; }
.filter-panel { display: grid; grid-template-columns: repeat(6, minmax(120px, 1fr)); gap: 14px; align-items: end; }
.filter-actions { display: flex; gap: 10px; align-items: center; }
.filter-actions .btn { min-height: 44px; }
.report-metric-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.report-metric-grid > div { display: grid; gap: 6px; border: 1px solid var(--line); border-radius: 8px; background: #fbfdff; padding: 16px; }
.report-metric-grid span { color: var(--muted); font-size: .82rem; font-weight: 800; }
.report-metric-grid strong { color: var(--navy-2); font-size: 1.15rem; line-height: 1.2; }
.report-center-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; align-items: start; }
.report-group { display: grid; gap: 10px; border: 1px solid var(--line); border-radius: 8px; background: #fbfdff; padding: 16px; min-width: 0; }
.report-group h3 { margin: 0 0 4px; color: var(--navy-2); font-size: 1.02rem; }
.report-link { display: grid; gap: 4px; border: 1px solid rgba(219,226,236,.9); border-radius: 8px; background: var(--white); padding: 12px; color: var(--ink); }
.report-link:hover { border-color: rgba(201,152,47,.65); box-shadow: 0 12px 22px rgba(6,38,83,.06); }
.report-link strong { color: var(--navy-2); font-size: .94rem; }
.report-link span { color: var(--muted); font-size: .82rem; line-height: 1.45; }
.export-toolbar { justify-content: flex-start; }
.row-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.row-actions form { margin: 0; }
.row-actions .btn { min-height: 40px; padding: 8px 14px; }
.quick-actions-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0 0 16px; min-width: 0; }
.quick-actions-grid .btn { width: 100%; min-height: 48px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; background: var(--white); }
table { width: 100%; border-collapse: collapse; font-size: .88rem; }
th, td { border-bottom: 1px solid var(--line); padding: 12px 14px; text-align: left; vertical-align: top; }
th { color: var(--navy); font-size: .78rem; text-transform: uppercase; }
.compact-table { font-size: .82rem; }
.compact-table th, .compact-table td { padding: 10px 12px; vertical-align: middle; }
.clients-table-wrap { overflow-x: auto; }
.clients-table { min-width: 1180px; table-layout: auto; }
.clients-table th, .clients-table td { white-space: nowrap; }
.clients-table .client-name-cell { min-width: 190px; white-space: normal; line-height: 1.25; }
.clients-table .amount-cell { min-width: 120px; font-weight: 800; color: var(--navy-2); }
.table-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; min-width: 230px; }
.table-actions form { margin: 0; }
.table-actions .btn { min-height: 36px; padding: 8px 12px; font-size: .82rem; }
.nowrap-actions { flex-wrap: nowrap; min-width: 260px; }
.nowrap-actions .btn { min-width: 76px; padding: 8px 12px; min-height: 36px; }
.client-portfolio-card { padding: 22px; }
.client-portfolio-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.client-portfolio-head h2 { margin: 0 0 12px; }
.client-meta-row { display: flex; flex-wrap: nowrap; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.client-meta-row span { display: inline-flex; min-height: 36px; align-items: center; gap: 7px; flex: 0 0 auto; border: 1px solid rgba(219,226,236,.95); border-radius: 8px; background: #f8fbff; color: #23354f; padding: 8px 10px; font-size: .82rem; white-space: nowrap; }
.client-meta-row strong { color: var(--navy); font-size: .68rem; letter-spacing: .05em; text-transform: uppercase; }
.portfolio-table-wrap { max-width: 100%; overflow-x: auto; }
.portfolio-table { min-width: 2150px; table-layout: auto; font-size: .8rem; }
.portfolio-table th, .portfolio-table td { padding: 9px 10px; vertical-align: middle; white-space: nowrap; }
.portfolio-table th { position: sticky; top: 0; z-index: 2; background: #f8fbff; }
.portfolio-table th:first-child, .portfolio-table td:first-child { position: sticky; left: 0; z-index: 3; min-width: 360px; max-width: 360px; background: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; box-shadow: 1px 0 0 var(--line); }
.portfolio-table th:first-child { z-index: 4; background: #f8fbff; }
.portfolio-table td:nth-child(n+4), .portfolio-table th:nth-child(n+4) { text-align: right; }
.portfolio-table tbody tr:hover td { background: #f8fbff; }
.portfolio-table tbody tr:hover td:first-child { background: #f8fbff; }
.portfolio-table tbody tr:last-child th { background: #fff8e7; color: var(--navy-2); }
.portfolio-gain-positive { color: #087a4b; font-weight: 900; }
.portfolio-gain-negative { color: #c43232; font-weight: 900; }
.portfolio-report-builder { margin: 18px 0 18px; border: 1px solid rgba(6,38,83,.12); border-radius: 10px; background: linear-gradient(180deg,#fff,#f8fbff); padding: 18px; box-shadow: 0 12px 28px rgba(6,38,83,.06); }
.report-builder-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 16px; border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.report-builder-head h2, .report-builder-head h3 { margin: 0 0 5px; color: var(--navy-2); font-size: 1.55rem; }
.report-builder-head p, .report-note { margin: 0; color: var(--muted); font-size: .86rem; line-height: 1.45; }
.report-builder-icons { display: flex; gap: 8px; flex: 0 0 auto; }
.report-builder-icons form { margin: 0; }
.icon-btn { display: inline-flex; min-width: 42px; min-height: 38px; align-items: center; justify-content: center; border: 1px solid rgba(6,38,83,.18); border-radius: 8px; background: #fff; color: var(--navy); font-weight: 900; text-decoration: none; cursor: pointer; }
.icon-btn:hover { border-color: var(--gold); color: var(--gold-dark); }
.portfolio-report-form { display: grid; gap: 14px; }
.report-form-row { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 14px; align-items: center; }
.report-form-row:has(.report-field) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.report-label { color: var(--navy); font-weight: 800; }
.segmented-control { display: inline-flex; width: fit-content; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #eef3f9; }
.segmented-control label { cursor: pointer; }
.segmented-control input { position: absolute; opacity: 0; pointer-events: none; }
.segmented-control span { display: block; padding: 9px 15px; color: #34455d; font-weight: 800; }
.segmented-control input:checked + span { background: var(--navy); color: #fff; }
.report-field { display: grid; gap: 6px; }
.report-field span { color: var(--navy); font-size: .76rem; font-weight: 850; text-transform: uppercase; letter-spacing: .04em; }
.report-field input { width: 100%; }
.report-options-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 14px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.report-options-grid label { display: flex; align-items: center; gap: 8px; color: #17263e; font-weight: 700; }
.report-options-grid input { width: 16px; height: 16px; accent-color: #2fc8af; }
.report-actions { display: flex; gap: 10px; justify-content: flex-end; }
.report-note { border-left: 3px solid var(--gold); background: #fffaf0; padding: 10px 12px; color: #5e4c23; }
.portfolio-launcher-card { max-width: 1180px; margin-left: auto; margin-right: auto; }
.portfolio-launcher-card .breadcrumb-line { margin: 0 0 10px; color: #99a6b8; font-size: .82rem; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.portfolio-launcher-form select { width: 100%; }
.portfolio-scope-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 900px) {
  .report-builder-head, .report-form-row, .report-form-row:has(.report-field) { grid-template-columns: 1fr; display: grid; }
  .report-options-grid { grid-template-columns: 1fr; }
  .report-actions { justify-content: stretch; flex-direction: column; }
}
.allocation-table-wrap table { min-width: 1700px; }
.allocation-input-table input, .allocation-input-table select { min-width: 110px; padding: 9px 10px; }
.allocation-input-table td:nth-child(1) input { min-width: 210px; }
.allocation-input-table td:nth-child(2) input { min-width: 320px; }
.scheme-live-data { min-width: 240px; color: var(--muted); font-size: .78rem; line-height: 1.45; }
.scheme-live-data strong, .scheme-live-data small { display: block; }
.scheme-live-data strong { color: var(--navy-2); font-size: .82rem; }
.fund-picker-backdrop { position: fixed; inset: 0; z-index: 90; display: none; align-items: flex-start; justify-content: center; padding: 72px 16px 24px; background: rgba(4,22,48,.34); }
.fund-picker-backdrop.open { display: flex; }
.fund-picker-panel { width: min(720px, 100%); max-height: min(76vh, 680px); overflow: hidden; border: 1px solid rgba(6,38,83,.18); border-radius: 10px; background: #fff; box-shadow: 0 28px 70px rgba(6,38,83,.26); }
.fund-picker-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.fund-picker-head strong { color: var(--navy-2); font-size: 1.05rem; }
.fund-picker-close { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--navy); font-weight: 900; cursor: pointer; }
.fund-picker-search { padding: 14px 18px; border-bottom: 1px solid var(--line); }
.fund-picker-search input { width: 100%; }
.fund-picker-list { max-height: 430px; overflow-y: auto; padding: 8px; }
.fund-picker-option { width: 100%; border: 0; border-radius: 8px; background: #fff; padding: 11px 12px; text-align: left; color: var(--navy); cursor: pointer; }
.fund-picker-option:hover, .fund-picker-option:focus { outline: none; background: #edf4ff; }
.fund-picker-option small { display: block; margin-top: 3px; color: var(--muted); }
.fund-picker-empty { padding: 18px; color: var(--muted); }
.proposal-document { background: #eef3f9; padding: 18px; }
.proposal-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; margin-bottom: 14px; }
.proposal-page { max-width: 1120px; margin: 0 auto; border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 34px; color: #18253a; box-shadow: 0 24px 60px rgba(6,38,83,.12); }
.proposal-cover { border-bottom: 2px solid rgba(201,152,47,.28); margin-bottom: 24px; padding-bottom: 18px; }
.proposal-cover img { width: 260px; max-width: 100%; height: auto; margin-bottom: 18px; }
.proposal-cover h2 { margin: 0 0 10px; color: var(--navy-2); font-size: 2.2rem; }
.proposal-disclaimer { border-left: 4px solid var(--gold); background: #fff9ea; padding: 12px 14px; color: #5c4a21; }
.proposal-page h3 { margin: 28px 0 12px; color: var(--navy-2); font-size: 1.25rem; }
.proposal-page .table-wrap { overflow-x: visible; }
.proposal-page table { min-width: 0; table-layout: auto; font-size: .74rem; }
.proposal-page th, .proposal-page td { padding: 7px 8px; vertical-align: middle; overflow-wrap: anywhere; }
.proposal-page th { line-height: 1.15; }
.proposal-page .table-wrap table { min-width: 0; }
.nav-performance-list { display: grid; gap: 10px; }
.nav-performance-card { display: grid; grid-template-columns: minmax(230px, 1.35fr) minmax(220px, .9fr) minmax(260px, 1.05fr); gap: 14px; align-items: stretch; border: 1px solid rgba(219,226,236,.95); border-radius: 10px; background: linear-gradient(180deg,#fff,#f8fbff); padding: 14px; box-shadow: 0 10px 24px rgba(6,38,83,.05); }
.nav-fund-main { display: grid; gap: 4px; }
.nav-fund-main strong { color: var(--navy-2); font-size: .9rem; line-height: 1.25; }
.nav-fund-main span { color: var(--muted); font-size: .78rem; font-weight: 800; }
.nav-fund-main small { color: #6d7888; font-size: .76rem; line-height: 1.35; }
.nav-fund-values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.nav-fund-values div, .return-chip-grid span { border: 1px solid rgba(219,226,236,.82); border-radius: 8px; background: #fff; padding: 8px 9px; }
.nav-fund-values span, .return-chip-grid small { display: block; color: var(--muted); font-size: .66rem; font-weight: 850; text-transform: uppercase; letter-spacing: .04em; }
.nav-fund-values strong, .return-chip-grid strong { display: block; margin-top: 3px; color: var(--navy-2); font-size: .82rem; line-height: 1.15; white-space: nowrap; }
.return-chip-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.return-chip-grid span { text-align: center; padding: 7px 5px; }
.return-chip-grid strong { font-size: .74rem; }
.proposal-footer { margin-top: 28px; border-top: 1px solid var(--line); padding-top: 14px; color: var(--navy); font-size: .86rem; text-align: center; }
.fund-data-hint { border: 1px dashed rgba(201,152,47,.55); border-radius: 8px; padding: 10px 12px; background: #fffaf0; color: #5b4922; }
@media print {
  @page { size: A4 landscape; margin: 6mm; }
  body { background: #fff; }
  .no-print, .sidebar, .admin-topbar, .whatsapp-float, .client-portfolio-head .toolbar { display: none !important; }
  .admin-shell { display: block; background: #fff; }
  .admin-main { width: 100% !important; max-width: none !important; padding: 0 !important; overflow: visible !important; }
  .client-portfolio-card { width: 100% !important; max-width: none !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; padding: 0 !important; page-break-inside: auto; }
  .client-portfolio-head { display: block; margin-bottom: 6px; }
  .client-portfolio-head h2 { margin: 0 0 5px; font-size: 1rem; }
  .client-meta-row { display: flex; flex-wrap: wrap; gap: 4px; overflow: visible; padding: 0; }
  .client-meta-row span { min-height: 0; border-radius: 4px; padding: 3px 5px; font-size: .53rem; }
  .client-meta-row strong { font-size: .46rem; }
  .client-portfolio-card > .muted { margin: 5px 0 7px; color: #46556d; font-size: .52rem; line-height: 1.2; }
  .portfolio-table-wrap { overflow: visible !important; border: 0 !important; }
  .portfolio-table { width: 100% !important; min-width: 0 !important; table-layout: fixed; border-collapse: collapse; font-size: .43rem; }
  .portfolio-table th, .portfolio-table td { padding: 2px 2.5px; line-height: 1.08; white-space: normal; overflow-wrap: anywhere; word-break: normal; }
  .portfolio-table th { position: static; background: #eef5ff !important; color: #062653; }
  .portfolio-table th:first-child, .portfolio-table td:first-child { position: static; min-width: 0; max-width: none; width: 17%; background: transparent; white-space: normal; box-shadow: none; }
  .portfolio-table th:first-child { background: #eef5ff !important; }
  .portfolio-table td:first-child { font-size: .42rem; }
  .portfolio-table th:nth-child(2), .portfolio-table td:nth-child(2) { width: 7%; }
  .portfolio-table th:nth-child(3), .portfolio-table td:nth-child(3) { width: 6%; }
  .portfolio-table th:nth-child(4), .portfolio-table td:nth-child(4),
  .portfolio-table th:nth-child(7), .portfolio-table td:nth-child(7),
  .portfolio-table th:nth-child(8), .portfolio-table td:nth-child(8),
  .portfolio-table th:nth-child(11), .portfolio-table td:nth-child(11),
  .portfolio-table th:nth-child(13), .portfolio-table td:nth-child(13),
  .portfolio-table th:nth-child(14), .portfolio-table td:nth-child(14),
  .portfolio-table th:nth-child(15), .portfolio-table td:nth-child(15) { width: 6.1%; }
  .portfolio-table th:nth-child(5), .portfolio-table td:nth-child(5),
  .portfolio-table th:nth-child(9), .portfolio-table td:nth-child(9) { width: 5.5%; }
  .portfolio-table th:nth-child(6), .portfolio-table td:nth-child(6),
  .portfolio-table th:nth-child(10), .portfolio-table td:nth-child(10),
  .portfolio-table th:nth-child(16), .portfolio-table td:nth-child(16),
  .portfolio-table th:nth-child(17), .portfolio-table td:nth-child(17) { width: 4.6%; }
  .portfolio-table th:nth-child(12), .portfolio-table td:nth-child(12) { width: 5.4%; }
  .portfolio-table tbody tr { page-break-inside: avoid; }
  .proposal-document { padding: 0; background: #fff; border: 0; }
  .proposal-page { max-width: none; border: 0; border-radius: 0; box-shadow: none; padding: 16mm 12mm; }
  .proposal-page h2 { font-size: 1.45rem; }
  .proposal-page h3 { break-after: avoid; }
  .proposal-page p { font-size: .78rem; line-height: 1.35; }
  .proposal-page .table-wrap { overflow: visible; border-radius: 4px; }
  .proposal-page table { width: 100%; min-width: 0 !important; table-layout: fixed; page-break-inside: auto; font-size: .58rem; }
  .proposal-page th, .proposal-page td { padding: 3.5px 4px; line-height: 1.18; word-break: break-word; overflow-wrap: anywhere; }
  .proposal-page h3 { margin: 13px 0 7px; font-size: .98rem; }
  .nav-performance-list { gap: 6px; }
  .nav-performance-card { grid-template-columns: 1.35fr .88fr 1.05fr; gap: 7px; border-radius: 5px; padding: 7px; box-shadow: none; page-break-inside: avoid; }
  .nav-fund-main strong { font-size: .64rem; line-height: 1.14; }
  .nav-fund-main span, .nav-fund-main small { font-size: .55rem; }
  .nav-fund-values { gap: 4px; }
  .nav-fund-values div, .return-chip-grid span { border-radius: 4px; padding: 4px; }
  .nav-fund-values span, .return-chip-grid small { font-size: .46rem; letter-spacing: 0; }
  .nav-fund-values strong { font-size: .56rem; white-space: normal; }
  .return-chip-grid { gap: 3px; }
  .return-chip-grid strong { font-size: .52rem; white-space: normal; }
  .proposal-cover { margin-bottom: 12px; padding-bottom: 10px; }
  .proposal-cover img { width: 170px; margin-bottom: 10px; }
  .proposal-page tr { page-break-inside: avoid; page-break-after: auto; }
  .proposal-footer { position: fixed; left: 12mm; right: 12mm; bottom: 8mm; background: #fff; }
}
.status { display: inline-flex; border-radius: 6px; background: #e9f1ff; color: var(--navy); padding: 4px 8px; font-size: .76rem; font-weight: 800; }
.status.DONE, .status.MEETING_DONE, .status.INVESTMENT_STARTED { background: #e9f8ef; color: #19714a; }
.status.OVERDUE, .status.NOT_INTERESTED { background: #fdecea; color: #a7352d; }
.login-page { display: grid; min-height: 100vh; place-items: center; background: #f6f8fb; padding: 24px; }
.login-card { width: min(100%, 460px); }
.login-logo { display: block; width: 330px; max-width: 100%; margin: 0 auto 18px; }
.flash { border-radius: 8px; background: #eaf8ef; color: #15613e; padding: 12px; }
.error { color: #b42318; }
.whatsapp-float { position: fixed; right: 18px; bottom: 18px; z-index: 20; width: 58px; height: 58px; display: grid; place-items: center; border-radius: 999px; background: #128c7e; color: #fff; box-shadow: 0 14px 34px rgba(0,0,0,.18); transition: transform .18s ease, box-shadow .18s ease; }
.whatsapp-float:hover { transform: translateY(-2px); box-shadow: 0 18px 42px rgba(0,0,0,.22); }
.whatsapp-float svg { width: 31px; height: 31px; display: block; fill: currentColor; }
.health-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.health-item { border: 1px solid var(--line); border-radius: 8px; padding: 16px; background: #fff; display: grid; gap: 6px; }
.health-item span { color: #19714a; font-weight: 800; }
.health-item.bad { border-color: #f1b8b2; background: #fff8f7; }
.health-item.bad span { color: #b42318; }

.client-portal-body { min-height: 100vh; background: #e9e9e9; color: #18253a; font-family: Arial, Helvetica, sans-serif; }
.client-app-shell { width: min(100%, 620px); min-height: 100vh; margin: 0 auto; background: #ececec; box-shadow: 0 0 0 1px rgba(6,38,83,.08), 0 24px 80px rgba(6,38,83,.16); }
.client-main { padding: 14px 14px 92px; }
.client-topbar { position: sticky; top: 0; z-index: 50; display: grid; grid-template-columns: 58px minmax(0, 1fr) auto 46px; gap: 10px; align-items: center; min-height: 78px; padding: 10px 12px; background: linear-gradient(120deg,#062653 0%,#0b72b7 58%,#28cbd0 100%); color: #fff; box-shadow: 0 8px 22px rgba(6,38,83,.26); overflow: hidden; }
.client-topbar strong, .client-topbar small { display: block; line-height: 1.16; min-width: 0; }
.client-topbar strong { overflow: hidden; color: #fff; font-family: Georgia, 'Times New Roman', serif; font-size: 1.02rem; letter-spacing: .02em; text-overflow: ellipsis; white-space: nowrap; }
.client-topbar small { margin-top: 3px; color: rgba(255,255,255,.84); font-size: .72rem; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; }
.client-brand-copy { min-width: 0; }
.client-logo { display: grid; width: 52px; height: 52px; place-items: center; border: 1px solid rgba(255,255,255,.55); border-radius: 50%; background: rgba(255,255,255,.96); box-shadow: 0 10px 24px rgba(0,0,0,.14); overflow: hidden; }
.client-logo img { width: 44px; max-height: 44px; object-fit: contain; }
.client-install-btn { min-height: 34px; border: 1px solid rgba(255,255,255,.46); border-radius: 999px; background: rgba(255,255,255,.16); color: #fff; padding: 7px 11px; font: inherit; font-size: .74rem; font-weight: 900; cursor: pointer; white-space: nowrap; box-shadow: none; }
.client-install-btn:hover { background: rgba(255,255,255,.24); }
.client-top-icon { display: grid; width: 38px; height: 38px; place-items: center; align-content: center; justify-self: end; gap: 4px; border: 1px solid rgba(255,255,255,.32); border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; padding: 0; }
.client-top-icon span { display: block; width: 17px; height: 2px; border-radius: 999px; background: #fff; }
.client-bottom-nav { position: fixed; left: 50%; bottom: 0; z-index: 60; display: grid; grid-template-columns: repeat(5, 1fr); width: min(100%, 620px); transform: translateX(-50%); border-top: 1px solid rgba(6,38,83,.12); background: rgba(255,255,255,.96); box-shadow: 0 -8px 26px rgba(6,38,83,.12); }
.client-bottom-nav a { position: relative; display: grid; min-height: 72px; place-items: center; align-content: center; gap: 3px; color: #88919e; font-size: .74rem; text-align: center; }
.client-bottom-nav a span { font-size: 1.25rem; line-height: 1; }
.client-bottom-nav a small { font-size: .68rem; line-height: 1.15; }
.client-bottom-nav a.active { color: #5973ef; }
.client-bottom-nav a.active::after { content: ""; position: absolute; left: 16%; right: 16%; bottom: 0; height: 4px; border-radius: 999px 999px 0 0; background: #5973ef; }
.client-card, .client-hero-card { border: 1px solid rgba(219,226,236,.88); border-radius: 3px; background: #fff; box-shadow: 0 2px 8px rgba(6,38,83,.14); padding: 18px 16px; margin-bottom: 14px; }
.client-hero-card h1, .client-card h1, .client-card h2 { margin: 0; color: #18253a; font-family: Arial, Helvetica, sans-serif; letter-spacing: .01em; }
.client-hero-card h1 { margin-top: 5px; font-size: 1.12rem; text-align: center; text-transform: uppercase; }
.client-card h1 { font-size: 1.35rem; }
.client-card h2 { margin-bottom: 14px; font-size: 1.16rem; text-align: center; }
.client-scope-row, .client-page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.client-scope-row small, .client-page-head small { display: block; color: #6a7382; font-size: .8rem; font-weight: 800; }
.client-toggle { display: inline-flex; border: 1px solid #dbe2ec; border-radius: 999px; background: #f8fbff; padding: 3px; }
.client-toggle a, .client-chip { border-radius: 999px; color: #667085; padding: 7px 10px; font-size: .75rem; font-weight: 900; white-space: nowrap; }
.client-toggle a.active, .client-chip { background: #062653; color: #fff; }
.client-summary-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: stretch; margin: 18px 0; }
.client-summary-split > div { display: grid; gap: 7px; align-content: center; text-align: center; }
.client-summary-split > div + div { border-left: 1px solid #cfd6df; }
.client-summary-split span, .mini-total-row span, .detail-metric-grid span { color: #5b6573; font-size: .8rem; }
.client-summary-split strong { color: #1b2430; font-size: 1.38rem; line-height: 1; }
.client-summary-split strong.positive, .holding-card em { color: #24b979; }
.client-summary-split strong.negative { color: #c43d32; }
.client-summary-split em { display: inline-flex; width: fit-content; justify-self: center; border-radius: 999px; background: #24c981; color: #fff; padding: 5px 12px; font-style: normal; font-size: .76rem; font-weight: 900; }
.client-summary-split em.daily-move { min-width: 104px; justify-content: center; letter-spacing: .01em; }
.client-summary-split em.daily-move.positive { background: #24c981; }
.client-summary-split em.daily-move.negative { background: #dc3f3f; }
.client-summary-split em.daily-move.neutral { background: #718096; }
.client-allocation { display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 14px; align-items: center; margin-top: 8px; }
.client-bucket-list { display: grid; gap: 11px; }
.client-bucket-list div { display: grid; grid-template-columns: minmax(82px, .8fr) minmax(0, 1fr); gap: 12px; align-items: center; border-left: 4px solid var(--bucket-color); padding-left: 8px; }
.client-bucket-list span, .client-bucket-list small { display: block; }
.client-bucket-list span { color: #475467; font-weight: 800; }
.client-bucket-list small { color: #98a2b3; font-weight: 500; }
.client-bucket-list strong { font-size: 1rem; color: #1d2939; }
.client-donut { width: 138px; height: 138px; border-radius: 50%; position: relative; justify-self: center; }
.client-donut::after { content: ""; position: absolute; inset: 27%; border-radius: 50%; background: #fff; }
.as-on { margin: 12px 0 0; color: #8a94a3; font-size: .78rem; text-align: center; }
.holding-card { display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; gap: 11px; align-items: center; border-left: 4px solid #2d9ff0; border-bottom: 1px solid rgba(219,226,236,.86); background: #fff; padding: 12px 6px; }
.holding-card:last-child { border-bottom: 0; }
.fund-badge { display: grid; width: 44px; height: 44px; place-items: center; border: 1px solid #dbe2ec; border-radius: 6px; background: linear-gradient(135deg,#fff,#eef4ff); color: #062653; font-weight: 900; }
.holding-main { min-width: 0; }
.holding-main strong, .holding-main span, .holding-main small { display: block; }
.holding-main strong { color: #1d2939; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.holding-main span { margin-top: 7px; color: #101828; font-size: 1.04rem; font-weight: 900; }
.holding-main em { display: inline-flex; margin-left: 8px; border-radius: 999px; background: #dff8ec; padding: 4px 10px; font-size: .72rem; font-style: normal; }
.holding-main small { margin-top: 6px; color: #667085; line-height: 1.45; }
.holding-card b { color: #111827; font-size: 2rem; line-height: 1; }
.client-quick-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; padding: 0; overflow: hidden; }
.client-quick-grid a { display: grid; min-height: 92px; place-items: center; border: 1px solid #e5e7eb; color: #334155; padding: 14px; text-align: center; font-weight: 800; }
.mini-total-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; border: 1px solid #e5e7eb; border-radius: 8px; background: #f8fbff; padding: 12px; margin: 14px 0; }
.mini-total-row strong { color: #062653; font-size: 1.1rem; }
.portfolio-list-card { border-left-color: #5973ef; }
.detail-metric-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 16px 0; }
.detail-metric-grid div { display: grid; gap: 5px; border: 1px solid #e5e7eb; border-radius: 8px; background: #f8fbff; padding: 12px; min-width: 0; }
.detail-metric-grid strong { color: #062653; overflow-wrap: anywhere; }
.client-filter-form, .client-support-form { display: grid; gap: 10px; margin: 12px 0 16px; }
.client-filter-form { grid-template-columns: 1fr 1fr; }
.client-filter-form select, .client-filter-form input, .client-filter-form button { min-height: 44px; }
.client-filter-form select { grid-column: 1 / -1; }
.client-filter-form button { grid-column: 1 / -1; }
.transaction-list { display: grid; gap: 10px; }
.transaction-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 7px 10px; border: 1px solid #e5e7eb; border-radius: 8px; background: #fff; padding: 12px; }
.transaction-card strong, .transaction-card span, .transaction-card small { display: block; }
.transaction-card b { color: #062653; white-space: nowrap; }
.transaction-card span { grid-column: 1 / -1; color: #1d2939; font-weight: 800; }
.transaction-card small { color: #667085; }
.client-alert { border-radius: 8px; background: #eaf8ef; color: #15613e; padding: 10px 12px; margin-bottom: 12px; font-weight: 800; }
.client-alert.error { background: #fdecea; color: #a7352d; }
.ticket-card { display: grid; gap: 5px; border: 1px solid #e5e7eb; border-radius: 8px; background: #fff; padding: 12px; margin-bottom: 10px; }
.ticket-card strong { color: #062653; }
.ticket-card span, .ticket-card small { color: #667085; line-height: 1.45; }
.message-thread { display: grid; gap: 10px; margin: 14px 0; }
.message-bubble { width: min(86%, 520px); border-radius: 12px; padding: 12px; }
.message-bubble.client { justify-self: end; background: #eaf3ff; color: #153a67; }
.message-bubble.admin { justify-self: start; background: #fff7e4; color: #5c4615; }
.message-bubble p { margin: 8px 0; line-height: 1.45; }
.message-bubble small { color: inherit; opacity: .72; }
.admin-message-thread .message-bubble { width: min(92%, 760px); }
.client-login-screen { display: grid; min-height: 100vh; place-items: center; padding: 24px 14px; background: linear-gradient(120deg,#6578f3,#34d7dc); }
.client-login-card { width: min(100%, 430px); border-radius: 14px; background: rgba(255,255,255,.96); padding: 24px; box-shadow: 0 24px 70px rgba(6,38,83,.28); }
.client-login-card img { display: block; width: 260px; max-width: 100%; margin: 0 auto 16px; }
.client-login-card h1 { margin: 0 0 8px; color: #062653; font-family: Georgia, "Times New Roman", serif; text-align: center; }
.client-login-card p, .client-login-card small { display: block; color: #667085; line-height: 1.55; text-align: center; }
.client-login-card form { display: grid; gap: 12px; margin: 18px 0; }
.profile-grid { grid-template-columns: 1fr; }
.client-pin-reset { margin: 18px 0; border: 1px solid #dbe6f2; border-radius: 12px; background: #f8fbff; padding: 14px; }
.client-pin-reset h2 { margin: 0 0 6px; color: #062653; font-size: 1.05rem; text-align: left; }
.client-alert { border-radius: 10px; padding: 10px 12px; font-size: .86rem; font-weight: 800; }
.client-alert.success { background: #e8fff3; color: #087a42; border: 1px solid #b7f0d1; }
.client-alert.error { background: #fff1f0; color: #b42318; border: 1px solid #ffd0cc; }
.client-link { color: #0b5bd3; font-weight: 900; text-decoration: none; }
.client-link:hover { text-decoration: underline; }
@media (max-width: 430px) {
  .client-main { padding-left: 10px; padding-right: 10px; }
  .client-topbar { grid-template-columns: 50px minmax(0, 1fr) auto 42px; gap: 8px; min-height: 70px; padding: 9px 10px; }
  .client-logo { width: 48px; height: 48px; }
  .client-logo img { width: 40px; max-height: 40px; }
  .client-topbar strong { font-size: .9rem; }
  .client-topbar small { font-size: .66rem; }
  .client-install-btn { max-width: 76px; padding: 6px 9px; font-size: .68rem; }
  .client-top-icon { width: 36px; height: 36px; }
  .client-hero-card, .client-card { padding-left: 12px; padding-right: 12px; }
  .client-summary-split strong { font-size: 1.15rem; }
  .client-allocation { grid-template-columns: 1fr; }
  .client-donut { width: 180px; height: 180px; }
}
@media (max-width: 920px) {
  .hero-inner, .form-grid, .page-shell { grid-template-columns: 1fr; }
  .hero { background-position: 64% top; }
  .hero-inner { min-height: auto; padding: 50px 0 70px; }
  .lead-card { max-width: 560px; }
  .admin-shell { display: block; }
  .trust-strip, .why-row, .kpi-grid, .action-rail-inner { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .admin-main .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-main .kpi-grid .kpi-aum { grid-column: 1 / -1; }
  .dashboard-grid, .dashboard-grid-roomy, .health-grid { grid-template-columns: minmax(0, 1fr); }
  .allocation-chart-grid { grid-template-columns: minmax(0, 1fr); }
  .filter-panel { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .report-metric-grid, .report-center-grid { grid-template-columns: minmax(0,1fr); }
  .dashboard-card-wide { grid-column: auto; }
  .quick-actions-grid { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: sticky; top: 0; z-index: 30; padding: 12px; gap: 10px; }
  .sidebar-toggle { top: 14px; right: 14px; }
  .admin-sidebar-logo { width: 190px; }
  .sidebar nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .sidebar a { min-height: 38px; justify-content: center; padding: 9px 10px; font-size: .86rem; text-align: center; }
  .sidebar-security { display: none; }
  .sidebar-collapsed .sidebar { min-height: 74px; overflow: hidden; align-items: flex-start; }
  .sidebar-collapsed .admin-sidebar-logo { width: 56px; height: 46px; object-fit: cover; object-position: left center; }
  .sidebar-collapsed .sidebar nav { display: none; }
  .admin-main { padding: 16px 12px 28px; }
  .admin-topbar { gap: 12px; margin-bottom: 16px; }
  .admin-topbar h1 { font-size: 1.35rem; }
  .dashboard-card { padding: 16px; margin-bottom: 14px; }
  .dashboard-card h2 { font-size: 1.65rem; margin-bottom: 14px; }
  .business-overview-head { display: grid; }
  .business-controls { justify-content: flex-start; }
  .table-wrap { width: 100%; }
  .table-wrap table { min-width: 680px; }
  .row-actions { flex-wrap: nowrap; }
  .row-actions .btn { min-height: 38px; padding: 8px 12px; }
}
@media (max-width: 620px) {
  .container { width: min(100% - 28px, 1180px); }
  .site-header { position: sticky; }
  .nav { min-height: 72px; align-items: center; flex-wrap: wrap; gap: 10px; }
  .brand-mark img { width: 184px; }
  .menu-toggle { display: inline-flex; margin-left: auto; }
  .nav-links { display: none; width: 100%; align-items: stretch; gap: 8px; padding: 8px 0 14px; }
  .nav-links.open { display: grid; }
  .nav-links a, .nav-links .btn { width: 100%; min-height: 44px; justify-content: center; }
  .nav-links a:not(.btn) { border: 1px solid var(--line); background: #fff; }
  .trust-strip, .why-row, .kpi-grid, .action-rail-inner { grid-template-columns: 1fr; }
  .admin-main .kpi-grid { grid-template-columns: 1fr; }
  .admin-main .kpi-grid .kpi-aum { display: grid; align-content: center; }
  .admin-main .kpi-grid .kpi-aum strong { font-size: 1.6rem; }
  .aum-side { justify-content: flex-start; text-align: left; }
  .aum-mini-metric { width: 100%; }
  .aum-day-change { min-width: 0; width: 100%; }
  .section { padding: 48px 0; }
  .hero { background: linear-gradient(180deg,rgba(255,255,255,.96) 0%,rgba(255,255,255,.88) 54%,rgba(255,255,255,.98) 100%), url("/assets/images/home-hero-bg.png") center top / cover no-repeat; }
  .hero-inner { min-height: auto; padding: 34px 0 52px; gap: 24px; }
  .hero-copy-block { max-width: none; }
  .eyebrow { font-size: .68rem; padding: 7px 10px; }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .hero-metrics { grid-template-columns: 1fr; margin-top: 20px; }
  .trust-row { align-items: flex-start; }
  .trust-avatar { width: 44px; height: 44px; }
  .card { padding: 18px; }
  .lead-card h3 { font-size: 1.3rem; }
  .trust-strip { margin-top: 0; padding-top: 18px; }
  .trust-item, .why-item { padding: 18px; }
  .kpi-grid { gap: 12px; }
  .kpi { min-height: 82px; padding: 16px; }
  .kpi strong { font-size: 1.45rem; }
  .admin-topbar { align-items: stretch; }
  .admin-topbar h1, .admin-topbar h2 { width: 100%; }
  .toolbar { width: 100%; justify-content: stretch; }
  .toolbar .btn { flex: 1 1 150px; min-width: 0; }
  .filter-panel { grid-template-columns: 1fr; }
  .filter-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .filter-actions .btn { width: 100%; }
  .form-grid { gap: 12px; }
  input, select, textarea { min-height: 44px; }
  .dashboard-card h2 { font-size: 1.45rem; }
  .business-overview-card { padding: 16px; }
  .business-tabs { gap: 18px; font-size: .88rem; }
  .business-controls { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); width: 100%; gap: 8px; }
  .business-controls select { width: 100%; min-width: 0; font-size: .82rem; }
  .vertical-chart { grid-template-columns: 42px minmax(0,1fr); min-height: 280px; }
  .chart-bars { gap: 18px; padding: 0 4%; }
  .vertical-bar { width: 30px; }
  .vertical-bar-label { font-size: .78rem; }
  .allocation-card { padding: 16px; }
  .donut-layout { grid-template-columns: 1fr; justify-items: center; }
  .donut-chart { width: min(76vw, 230px); }
  .donut-legend { width: 100%; }
  .donut-legend-row { grid-template-columns: 12px minmax(0, 1fr) auto; }
  .donut-legend-row em { grid-column: 2 / -1; }
  .chart-card-head { align-items: stretch; }
  .fund-allocation-card .bar-row { grid-template-columns: minmax(0, 1fr); gap: 7px; }
  .fund-allocation-card .bar-track { grid-column: 1 / -1; height: 14px; }
  .bar-row { grid-template-columns: minmax(0, 1fr); gap: 7px; }
  .bar-value { text-align: left; }
  .bar-track { height: 14px; }
  .quick-actions-grid { gap: 10px; }
  h1 { font-size: 2.25rem; line-height: 1.06; }
  .section-title { font-size: 1.9rem; }
  .hero p { font-size: 1rem; }
  .action-rail { padding: 18px 0; }
  .rail-item { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.16); padding: 14px 4px; }
  .footer-logo { width: 240px; }
  .footer-grid { grid-template-columns: 1fr; gap: 20px; }
  .footer-disclaimer, .footer-bottom { grid-column: auto; }
  .footer-bottom { display: grid; }
  .whatsapp-float { right: 12px; bottom: 12px; width: 52px; height: 52px; }
  .whatsapp-float svg { width: 28px; height: 28px; }
}

/* Final premium client portal override. Keep this block at the end so it wins over legacy shared styles. */
.client-portal-body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 15% 0%, rgba(215, 169, 71, .16), transparent 30%),
    radial-gradient(circle at 90% 12%, rgba(46, 203, 205, .22), transparent 28%),
    linear-gradient(135deg, #eef4fb 0%, #f8fafc 48%, #edf6f4 100%);
  color: #12213a;
  font-family: "Inter", Arial, Helvetica, sans-serif;
}

.client-app-shell {
  width: min(100%, 640px);
  min-height: 100vh;
  margin: 0 auto;
  background: rgba(248, 251, 255, .9);
  box-shadow: 0 28px 90px rgba(8, 24, 45, .18);
  overflow: hidden;
  position: relative;
}

.client-main {
  padding: 18px 16px 98px;
}

.client-topbar {
  min-height: 78px;
  padding: 12px 16px;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  background:
    linear-gradient(135deg, rgba(5, 30, 68, .98), rgba(11, 79, 113, .96) 48%, rgba(32, 185, 192, .92)),
    radial-gradient(circle at 20% 0%, rgba(214, 167, 67, .28), transparent 36%);
  color: #fff;
  box-shadow: 0 18px 42px rgba(6, 38, 83, .24);
}

.client-logo {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .98);
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.65), 0 12px 28px rgba(0,0,0,.18);
  overflow: hidden;
}

.client-logo img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.client-brand-copy {
  min-width: 0;
}

.client-topbar strong {
  display: block;
  font-size: 1.02rem;
  line-height: 1.1;
  letter-spacing: -.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.client-topbar small {
  display: block;
  margin-top: 3px;
  color: rgba(255,255,255,.82);
  font-size: .74rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.client-install-btn {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 999px;
  background: rgba(255,255,255,.16);
  color: #fff;
  font-weight: 800;
}

.client-top-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  gap: 4px;
  background: rgba(255,255,255,.13);
  border: 1px solid rgba(255,255,255,.2);
}

.client-top-icon span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 99px;
  background: #fff;
}

.client-card,
.client-hero-card,
.client-holding-card,
.client-ticket,
.client-login-card {
  border: 1px solid rgba(16, 42, 75, .08);
  border-radius: 24px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 18px 50px rgba(10, 35, 65, .1);
}

.client-card,
.client-hero-card {
  padding: 20px;
  margin-bottom: 16px;
}

.client-card h1,
.client-card h2,
.client-hero-card h1,
.client-hero-card h2 {
  color: #0a2142;
  font-family: "Playfair Display", Georgia, serif;
  letter-spacing: -.02em;
}

.client-summary-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: center;
}

.client-summary-split > div {
  padding: 14px;
  border-radius: 20px;
  background: linear-gradient(180deg, #f8fbff, #eef6ff);
  text-align: center;
}

.client-summary-split strong {
  display: block;
  color: #6a7890;
  font-weight: 700;
  font-size: .77rem;
}

.client-summary-split b {
  display: block;
  margin-top: 8px;
  color: #071c39;
  font-size: clamp(1.45rem, 5vw, 2rem);
  letter-spacing: -.04em;
}

.client-summary-split em,
.client-gain-pill,
.client-day-change {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  padding: 7px 12px;
  border-radius: 999px;
  background: #20bf7a;
  color: #fff;
  font-style: normal;
  font-weight: 900;
  font-size: .78rem;
  box-shadow: 0 10px 22px rgba(32,191,122,.23);
}

.client-gain-pill.is-loss,
.client-day-change.is-loss {
  background: #d9534f;
  box-shadow: 0 10px 22px rgba(217,83,79,.22);
}

.client-allocation-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 188px;
  gap: 18px;
  align-items: center;
}

.client-allocation-list {
  display: grid;
  gap: 10px;
}

.client-allocation-item {
  display: grid;
  grid-template-columns: 4px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.client-allocation-item i {
  width: 4px;
  height: 40px;
  border-radius: 99px;
}

.client-allocation-item strong,
.client-allocation-item b {
  color: #17263f;
}

.client-donut {
  width: 178px;
  height: 178px;
  border-radius: 50%;
  background: conic-gradient(#2d9cec 0 98%, #f5a142 98% 100%);
  position: relative;
  margin: 0 auto;
  filter: drop-shadow(0 18px 26px rgba(45,156,236,.14));
}

.client-donut::after {
  content: "";
  position: absolute;
  inset: 43px;
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(6,38,83,.05);
}

.client-holding-card {
  padding: 16px;
  margin-bottom: 12px;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.client-holding-card .holding-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(135deg, #edf5ff, #fff8ea);
  color: #0a2a57;
  display: grid;
  place-items: center;
  font-weight: 900;
}

.client-holding-card h3,
.client-holding-card strong {
  margin: 0;
  color: #13223a;
  font-size: .98rem;
  line-height: 1.28;
}

.client-holding-card p,
.client-holding-card small {
  color: #6a7890;
}

.client-bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(100%, 640px);
  height: 78px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 9px 10px 10px;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(18px);
  border-top: 1px solid rgba(16,42,75,.09);
  box-shadow: 0 -18px 50px rgba(6,38,83,.12);
  z-index: 50;
}

.client-bottom-nav a {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 4px;
  min-width: 0;
  border-radius: 16px;
  color: #7b879b;
  font-size: .7rem;
  font-weight: 800;
  text-decoration: none;
}

.client-bottom-nav a strong {
  font-size: 1.08rem;
  line-height: 1;
}

.client-bottom-nav a.active {
  color: #0a4ed5;
  background: #eef5ff;
}

.client-login-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 22px;
  background:
    radial-gradient(circle at 14% 12%, rgba(215, 169, 71, .26), transparent 28%),
    linear-gradient(135deg, #061d3d, #0d3f67 54%, #1eb8c1);
}

.client-login-card {
  width: min(100%, 440px);
  border-radius: 30px;
  padding: 28px;
}

.client-login-card img {
  display: block;
  width: min(280px, 82%);
  margin: 0 auto 18px;
}

.client-login-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 18px;
  color: #061f3f;
  text-align: left;
}

.client-login-brand img {
  flex: 0 0 auto;
  width: 54px !important;
  height: 54px !important;
  max-width: none;
  margin: 0 !important;
  object-fit: contain;
  filter: saturate(1.14) contrast(1.12);
}

.client-login-brand span {
  display: grid;
  gap: 1px;
  font-family: Inter, "Plus Jakarta Sans", Arial, Helvetica, sans-serif;
  line-height: .86;
  letter-spacing: .08em;
  text-transform: uppercase;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

.client-login-brand strong,
.client-login-brand em {
  display: block;
  color: #061f3f;
  font-style: normal;
  font-size: clamp(1.35rem, 6vw, 1.74rem);
  font-weight: 950;
}

.client-login-brand em {
  color: #b37824;
  font-size: clamp(.98rem, 4.6vw, 1.18rem);
  letter-spacing: .18em;
}

.client-login-logo,
.client-login-card img.client-login-logo {
  display: block;
  width: min(326px, 92%) !important;
  height: auto !important;
  max-height: none !important;
  margin: 0 auto 18px !important;
  object-fit: contain;
  filter: none;
  transform: none;
  -webkit-transform: none;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: auto;
}

.client-login-card h1 {
  text-align: center;
  color: #0a2142;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 2rem;
}

.client-login-card p,
.client-login-card small {
  text-align: center;
  color: #64748b;
}

.client-filter-form select,
.client-filter-form input,
.client-filter-form button,
.client-support-form input,
.client-support-form select,
.client-support-form textarea,
.client-login-card input,
.client-card input,
.client-card select,
.client-card textarea {
  min-height: 48px;
  border-radius: 16px;
  border: 1px solid #dbe5f0;
  background: #fff;
  color: #12213a;
}

.client-card .btn,
.client-login-card .btn-primary,
.client-filter-form button {
  min-height: 48px;
  border-radius: 999px;
  background: #062653;
  color: #fff;
  font-weight: 900;
  box-shadow: 0 14px 30px rgba(6,38,83,.2);
}

@media (max-width: 430px) {
  .client-main {
    padding: 14px 12px 94px;
  }

  .client-topbar {
    grid-template-columns: 50px minmax(0, 1fr) auto;
    min-height: 72px;
    padding: 10px 12px;
  }

  .client-logo {
    width: 48px;
    height: 48px;
    border-radius: 16px;
  }

  .client-logo img {
    width: 43px;
    height: 43px;
  }

  .client-install-btn {
    display: none !important;
  }

  .client-topbar strong {
    font-size: .98rem;
  }

  .client-summary-split,
  .client-allocation-grid {
    grid-template-columns: 1fr;
  }

  .client-holding-card {
    grid-template-columns: 44px minmax(0, 1fr) 22px;
    padding: 14px;
  }

  .client-holding-card .holding-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
  }

  .client-donut {
    width: 154px;
    height: 154px;
  }

  .client-donut::after {
    inset: 38px;
  }
}

/* Client portal header polish: clearer crest and right-aligned menu/profile control. */
.client-topbar {
  grid-template-columns: 58px minmax(0, 1fr) 44px;
  gap: 12px;
  padding: 10px 14px;
}

.client-install-btn {
  display: none !important;
}

.client-logo {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #fffaf0 100%);
  border: 1px solid rgba(214, 167, 67, .38);
  box-shadow: 0 10px 24px rgba(6, 38, 83, .2);
}

.client-logo img {
  width: 52px;
  height: 52px;
  max-height: none;
  object-fit: contain;
  filter: contrast(1.16) saturate(1.18);
}

.client-top-icon {
  grid-column: 3;
  justify-self: end;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border-radius: 15px;
}

@media (max-width: 430px) {
  .client-topbar {
    grid-template-columns: 54px minmax(0, 1fr) 42px;
    gap: 10px;
    padding: 9px 12px;
  }

  .client-logo {
    width: 52px;
    height: 52px;
    border-radius: 17px;
  }

  .client-logo img {
    width: 49px;
    height: 49px;
  }

  .client-top-icon {
    width: 40px;
    height: 40px;
    justify-self: end;
  }
}

/* Full horizontal logo header. */
.client-topbar {
  grid-template-columns: minmax(0, 1fr) 42px;
  min-height: 74px;
  padding: 10px 14px 10px 18px;
}

.client-logo.client-logo-full {
  width: min(230px, calc(100vw - 104px));
  height: 54px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  justify-self: start;
  overflow: visible;
}

.client-logo.client-logo-full img {
  width: 100%;
  height: 54px;
  max-height: 54px;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .18)) contrast(1.08) saturate(1.08);
}

.client-brand-copy {
  display: none;
}

.client-top-icon {
  grid-column: 2;
  justify-self: end;
}

@media (max-width: 430px) {
  .client-topbar {
    grid-template-columns: minmax(0, 1fr) 40px;
    min-height: 70px;
    padding: 9px 12px 9px 16px;
  }

  .client-logo.client-logo-full {
    width: min(210px, calc(100vw - 90px));
    height: 50px;
  }

  .client-logo.client-logo-full img {
    height: 50px;
    max-height: 50px;
  }
}

.daily-move,
.daily-move.positive,
.daily-move.negative,
.client-summary-split em.daily-move,
.client-summary-split em.daily-move.positive,
.client-summary-split em.daily-move.negative {
  color: #ffffff !important;
}

/* Final client home polish: logo contrast, readable movement pill, contained interactive allocation chart. */
.client-topbar {
  overflow: hidden;
}

.client-logo.client-logo-full {
  width: min(250px, calc(100vw - 112px)) !important;
  height: 66px !important;
  padding: 0 !important;
  display: flex;
  align-items: center;
}

.client-logo.client-logo-full img {
  width: 100% !important;
  height: 64px !important;
  max-height: 64px !important;
  object-fit: contain;
  object-position: left center;
  filter:
    brightness(0)
    invert(1)
    brightness(1.05)
    contrast(1.04)
    drop-shadow(0 0 10px rgba(236, 190, 89, .28))
    drop-shadow(0 7px 16px rgba(0, 0, 0, .28)) !important;
}

.client-scope-row h1,
.client-hero-card .client-scope-row h1 {
  font-family: Inter, "Plus Jakarta Sans", Arial, Helvetica, sans-serif !important;
  font-size: clamp(1.28rem, 4.4vw, 1.85rem) !important;
  font-weight: 900 !important;
  line-height: 1.05 !important;
  letter-spacing: -.02em !important;
  text-transform: uppercase;
}

.daily-move,
.daily-move.positive,
.daily-move.negative,
.daily-move.neutral,
.client-summary-split em.daily-move,
.client-summary-split em.daily-move.positive,
.client-summary-split em.daily-move.negative,
.client-summary-split em.daily-move.neutral {
  color: #ffffff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .18);
}

.client-allocation {
  grid-template-columns: minmax(0, 1fr) minmax(116px, 150px) !important;
  gap: 12px !important;
  align-items: center !important;
  overflow: visible !important;
}

.client-bucket-list {
  min-width: 0;
}

.client-donut {
  width: clamp(116px, 22vw, 150px) !important;
  height: clamp(116px, 22vw, 150px) !important;
  max-width: 100%;
  justify-self: center;
  position: relative;
  z-index: 3;
  cursor: help;
  outline: none;
}

.client-donut::before {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 12px);
  transform: translate(-50%, 8px);
  width: min(260px, 76vw);
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(7, 27, 51, .96);
  color: #ffffff;
  font: 800 .76rem/1.4 Inter, Arial, sans-serif;
  box-shadow: 0 16px 36px rgba(7, 27, 51, .24);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
  z-index: 8;
  white-space: normal;
}

.client-donut:hover::before,
.client-donut:focus-visible::before {
  opacity: 1;
  transform: translate(-50%, 0);
}

.client-donut:hover,
.client-donut:focus-visible {
  box-shadow: inset 0 0 0 1px rgba(7, 27, 51, .08), 0 18px 42px rgba(45, 159, 240, .22);
}

@media (max-width: 760px) {
  .client-logo.client-logo-full {
    width: min(228px, calc(100vw - 96px)) !important;
    height: 58px !important;
  }

  .client-logo.client-logo-full img {
    height: 56px !important;
    max-height: 56px !important;
  }

  .client-allocation {
    grid-template-columns: minmax(0, 1fr) minmax(108px, 136px) !important;
  }

  .client-donut {
    width: clamp(108px, 30vw, 136px) !important;
    height: clamp(108px, 30vw, 136px) !important;
  }
}

@media (max-width: 430px) {
  .client-login-card {
    padding: 26px 22px;
  }

  .client-login-brand {
    gap: 10px;
    margin-bottom: 20px;
  }

  .client-login-brand img {
    width: 50px !important;
    height: 50px !important;
  }

  .client-login-logo,
  .client-login-card img.client-login-logo {
    width: min(318px, 96%) !important;
    margin-bottom: 20px !important;
  }

  .client-logo.client-logo-full {
    width: min(224px, calc(100vw - 88px)) !important;
  }

  .client-allocation {
    grid-template-columns: 1fr !important;
    justify-items: center;
    overflow: visible !important;
  }

  .client-bucket-list {
    width: 100%;
  }

  .client-donut {
    width: 176px !important;
    height: 176px !important;
  }

  .client-donut::before {
    bottom: auto;
    top: calc(100% + 10px);
    transform: translate(-50%, -8px);
  }

  .client-donut:hover::before,
  .client-donut:focus-visible::before {
    transform: translate(-50%, 0);
  }
}

/* Market index snapshot on client home. */
.client-market-card {
  margin: 0 0 14px;
  padding: 16px 18px 14px;
  border: 1px solid rgba(219, 226, 236, .92);
  border-radius: 20px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 14px 34px rgba(7, 27, 51, .08);
}

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

.client-market-head h2 {
  margin: 0;
  color: #14213a;
  font-family: Inter, Arial, Helvetica, sans-serif;
  font-size: 1.16rem;
  font-weight: 900;
  letter-spacing: -.02em;
}

.client-market-head span {
  color: #18253a;
  font-size: .9rem;
  font-weight: 900;
}

.client-market-grid {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  padding: 3px 3px 8px;
  border-radius: 18px;
  background: transparent;
  border: 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(20, 33, 58, .22) transparent;
}

.client-market-grid::-webkit-scrollbar {
  height: 4px;
}

.client-market-grid::-webkit-scrollbar-thumb {
  border-radius: 99px;
  background: rgba(20, 33, 58, .22);
}

.client-market-index {
  display: grid;
  gap: 3px;
  justify-items: center;
  flex: 0 0 138px;
  scroll-snap-align: start;
  padding: 12px 8px;
  text-align: center;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  border: 1px solid rgba(219, 226, 236, .8);
}

.client-market-index + .client-market-index {
  border-left: 1px solid rgba(219, 226, 236, .8);
}

.client-market-index strong {
  color: #0b1730;
  font-size: .95rem;
  font-weight: 950;
  letter-spacing: .02em;
  white-space: nowrap;
}

.client-market-index b {
  color: #030712;
  font-size: clamp(1.34rem, 5.7vw, 1.78rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: .01em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.client-market-index em {
  font-style: normal;
  font-size: clamp(.84rem, 3.9vw, 1.02rem);
  font-weight: 900;
  letter-spacing: .01em;
  line-height: 1.18;
  font-variant-numeric: tabular-nums;
  white-space: normal;
}

.client-market-index em.positive {
  color: #15956c;
}

.client-market-index em.negative {
  color: #d33d3d;
}

.client-market-card p,
.client-market-empty {
  margin: 10px 0 0;
  color: #7a8798;
  font-size: .72rem;
  font-weight: 700;
  text-align: center;
}

@media (max-width: 380px) {
  .client-market-card {
    padding: 14px 12px 12px;
  }

  .client-market-grid {
    gap: 7px;
  }

  .client-market-index {
    flex-basis: 132px;
  }
}

/* Public homepage repair: keep after shared/client styles so the premium home layout wins. */
.site-header {
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(18px);
}

.hero {
  min-height: auto;
  border-bottom: 1px solid rgba(219,226,236,.8);
  background:
    linear-gradient(90deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.94) 34%, rgba(255,255,255,.62) 58%, rgba(255,255,255,.24) 100%),
    url("/assets/images/home-hero-bg.png") center right / cover no-repeat !important;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 18%, rgba(198,154,61,.12), transparent 28%),
    linear-gradient(180deg, rgba(250,248,243,0) 72%, #fff 100%);
  pointer-events: none;
}

.hero::after {
  height: 120px;
  background: linear-gradient(180deg, rgba(255,255,255,0), #fff);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(360px, 520px);
  gap: 58px;
  align-items: center;
  min-height: 660px;
  padding: 66px 0 92px;
}

.hero-copy-block {
  max-width: 690px;
}

.hero h1 {
  max-width: 640px;
  color: var(--navy-2);
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: clamp(2.45rem, 4.45vw, 4.05rem);
  line-height: 1.02;
  letter-spacing: -.02em;
}

.hero h1 span {
  display: block;
  color: #163d36;
}

.hero p {
  max-width: 620px;
  color: #526174;
  font-size: 1.1rem;
  line-height: 1.74;
}

.trust-logo {
  overflow: hidden;
  background: #fff;
  padding: 7px;
  box-shadow: 0 16px 34px rgba(7,27,51,.16), inset 0 0 0 1px rgba(198,154,61,.22);
}

.trust-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero-metrics span {
  min-height: 86px;
  border-radius: 18px;
  background: rgba(255,255,255,.84);
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 44px rgba(7,27,51,.08);
}

.wealth-widget {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.74);
  border-radius: 32px;
  background: rgba(255,255,255,.7);
  padding: 20px;
  box-shadow: 0 34px 90px rgba(7,27,51,.2);
  backdrop-filter: blur(18px);
}

.wealth-widget::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.82), rgba(255,255,255,.38));
  pointer-events: none;
}

.wealth-widget > * {
  position: relative;
  z-index: 1;
}

.widget-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-radius: 24px 24px 0 0;
  background: #071b33;
  color: #fff;
  padding: 22px;
}

.widget-topline span {
  color: rgba(255,255,255,.68);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.widget-topline strong {
  border-radius: 999px;
  background: rgba(198,154,61,.18);
  color: #f5d88d;
  padding: 7px 11px;
  font-size: .78rem;
}

.growth-card {
  background: #071b33;
  color: #fff;
  padding: 0 22px 24px;
}

.growth-copy {
  display: grid;
  gap: 5px;
  padding: 6px 0 18px;
}

.growth-copy small {
  color: rgba(255,255,255,.6);
  font-size: .74rem;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.growth-copy strong {
  font-size: 1.32rem;
}

.growth-bars {
  display: flex;
  align-items: end;
  gap: 14px;
  height: 232px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.035));
  padding: 24px;
}

.growth-bars i {
  display: block;
  flex: 1;
  height: var(--h);
  border-radius: 15px 15px 5px 5px;
  background: linear-gradient(180deg, #f5d88d, #c69a3d);
  box-shadow: 0 16px 34px rgba(198,154,61,.2);
}

.growth-bars i:nth-child(-n+2) {
  background: rgba(255,255,255,.24);
}

.widget-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  border-radius: 0 0 24px 24px;
  background: #071b33;
  padding: 0 22px 22px;
}

.widget-grid span {
  border-radius: 18px;
  background: rgba(255,255,255,.08);
  color: #fff;
  padding: 14px;
}

.widget-grid small,
.widget-grid strong {
  display: block;
}

.widget-grid small {
  color: rgba(255,255,255,.58);
  font-size: .72rem;
}

.widget-grid strong {
  margin-top: 4px;
  font-size: .92rem;
}

.wealth-widget > p {
  margin: 14px 8px 0;
  color: #607085;
  font-size: .78rem;
  line-height: 1.55;
}

.action-rail {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 16% 0%, rgba(198,154,61,.16), transparent 24%),
    linear-gradient(135deg, #071b33 0%, #092848 52%, #041326 100%);
  padding: 34px 0;
}

.action-rail-inner {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.rail-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 8px 14px;
  min-height: 132px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 20px;
  background: rgba(255,255,255,.055);
  padding: 18px;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.rail-item:hover {
  transform: translateY(-3px);
  border-color: rgba(198,154,61,.45);
  background: rgba(255,255,255,.08);
}

.rail-item span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  grid-row: 1 / span 2;
  border: 1px solid rgba(198,154,61,.55);
  border-radius: 50%;
  color: #f5d88d;
  font-size: .76rem;
  font-weight: 900;
}

.rail-item strong {
  color: #fff;
  line-height: 1.15;
}

.rail-item small {
  display: block;
  color: rgba(255,255,255,.78);
  line-height: 1.45;
}

.footer-logo-light {
  display: block;
  max-width: 320px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255,255,255,.92);
}

@media (max-width: 980px) {
  .hero-inner {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 30px;
    padding: 46px 0 66px;
  }

  .hero {
    background:
      linear-gradient(180deg, rgba(255,255,255,.96), rgba(255,255,255,.9) 48%, rgba(255,255,255,.98) 100%),
      url("/assets/images/home-hero-bg.png") center top / cover no-repeat !important;
  }

  .action-rail-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .hero h1 {
    font-size: clamp(2.1rem, 10vw, 3rem);
    line-height: 1.05;
  }

  .hero p {
    font-size: 1rem;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .wealth-widget {
    border-radius: 24px;
    padding: 12px;
  }

  .widget-topline,
  .growth-card,
  .widget-grid {
    padding-left: 16px;
    padding-right: 16px;
  }

  .growth-bars {
    height: 180px;
    gap: 9px;
    padding: 18px;
  }

  .widget-grid,
  .action-rail-inner {
    grid-template-columns: 1fr;
  }

  .rail-item {
    min-height: auto;
  }
}

/* Public process section: organized bento cards for the "why" area. */
#why {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 18%, rgba(198,154,61,.12), transparent 24%),
    radial-gradient(circle at 90% 22%, rgba(9,40,72,.08), transparent 25%),
    linear-gradient(180deg, #ffffff 0%, #f7fafc 100%);
}

#why::before {
  content: "";
  position: absolute;
  inset: 34px auto auto 50%;
  width: min(520px, 46vw);
  height: min(520px, 46vw);
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(198,154,61,.1), rgba(9,40,72,.04));
  filter: blur(4px);
  pointer-events: none;
}

#why .container {
  position: relative;
  z-index: 1;
}

.process-head {
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(300px, .52fr);
  gap: 24px 48px;
  align-items: end;
  margin-bottom: 30px;
}

.process-head .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

.process-head .section-title {
  max-width: 780px;
  margin-bottom: 0;
}

.process-head .section-copy {
  margin: 0;
  font-size: 1rem;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: minmax(220px, auto);
  gap: 18px;
}

.bento-card {
  position: relative;
  overflow: hidden;
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
  min-height: 220px;
  border: 1px solid rgba(219,226,236,.92);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.96), rgba(248,251,255,.92));
  padding: 24px;
  box-shadow: 0 18px 48px rgba(7,27,51,.08);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.bento-card::after {
  content: "";
  position: absolute;
  inset: auto -20% -42% 38%;
  height: 180px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(198,154,61,.2), transparent 68%);
  pointer-events: none;
}

.bento-card:hover {
  transform: translateY(-5px);
  border-color: rgba(198,154,61,.46);
  box-shadow: 0 26px 62px rgba(7,27,51,.12);
}

.bento-large {
  grid-column: span 2;
  grid-row: span 2;
  min-height: 458px;
  color: #fff;
  background:
    radial-gradient(circle at 86% 12%, rgba(198,154,61,.22), transparent 30%),
    linear-gradient(145deg, #071b33 0%, #092848 58%, #143c35 100%);
}

.bento-privacy {
  grid-column: span 2;
  background:
    radial-gradient(circle at 92% 18%, rgba(198,154,61,.18), transparent 28%),
    linear-gradient(180deg, #fffdf8, #ffffff);
}

.bento-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(198,154,61,.55);
  border-radius: 50%;
  color: #9b7117;
  background: rgba(255,248,231,.82);
  font-size: .8rem;
  font-weight: 900;
  letter-spacing: .04em;
}

.bento-large .bento-icon {
  color: #f6d989;
  background: rgba(255,255,255,.08);
}

.bento-card h3 {
  margin: 0;
  color: var(--navy-2);
  font-size: clamp(1.28rem, 2vw, 1.65rem);
  line-height: 1.12;
}

.bento-large h3 {
  color: #fff;
  font-size: clamp(1.8rem, 3vw, 2.45rem);
}

.bento-card .section-copy {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #5b6a7d;
  font-size: .98rem;
  line-height: 1.62;
}

.bento-large .section-copy {
  color: rgba(255,255,255,.8);
  font-size: 1.05rem;
}

.process-list {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.process-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.9);
  padding: 11px 12px;
  font-weight: 800;
}

.process-list li::before {
  content: "";
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #f5d88d;
  box-shadow: 0 0 0 5px rgba(245,216,141,.12);
}

@media (max-width: 980px) {
  .process-head {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .bento-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bento-large,
  .bento-privacy {
    grid-column: span 2;
    grid-row: auto;
    min-height: 260px;
  }
}

@media (max-width: 620px) {
  #why {
    padding-top: 52px;
  }

  .process-head {
    gap: 14px;
    margin-bottom: 22px;
  }

  .bento-grid,
  .bento-large,
  .bento-privacy {
    grid-template-columns: 1fr;
    grid-column: auto;
  }

  .bento-card,
  .bento-large {
    min-height: auto;
    border-radius: 18px;
    padding: 20px;
  }
}

/* Admin dashboard final override: keep Business Overview and Company-wise pie in one row. */
.dashboard-chart-pair {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, .82fr);
  gap: 20px;
  align-items: stretch;
  margin-top: 20px;
}

.dashboard-chart-pair > .dashboard-card {
  min-width: 0;
  margin: 0;
}

.dashboard-chart-pair .business-overview-card,
.dashboard-chart-pair .company-allocation-card {
  padding: 18px;
}

.dashboard-chart-pair .business-overview-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 14px;
}

.dashboard-chart-pair .business-overview-head h2,
.dashboard-chart-pair .chart-card-head h2 {
  font-size: 1.22rem;
  margin-bottom: 8px;
}

.dashboard-chart-pair .business-tabs {
  gap: 18px;
  font-size: .88rem;
}

.dashboard-chart-pair .business-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
}

.dashboard-chart-pair .business-controls select {
  width: 100%;
  min-width: 0;
  min-height: 40px;
  font-size: .8rem;
}

.dashboard-chart-pair .vertical-chart {
  min-height: 282px;
  grid-template-columns: 44px minmax(0, 1fr);
}

.dashboard-chart-pair .chart-bars {
  gap: clamp(14px, 4vw, 42px);
  overflow-x: auto;
  padding: 0 10px 34px;
}

.dashboard-chart-pair .vertical-bar {
  width: 34px;
}

.dashboard-chart-pair .vertical-bar-label {
  font-size: .76rem;
}

.company-allocation-card .chart-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.company-allocation-card .chart-card-head .muted {
  margin: 0;
  font-size: .84rem;
}

.company-allocation-card .chart-card-head .btn {
  min-height: 38px;
  padding: 8px 12px;
  white-space: nowrap;
}

.company-allocation-card .donut-layout {
  grid-template-columns: minmax(130px, 178px) minmax(0, 1fr);
  gap: 14px;
}

.company-allocation-card .donut-chart {
  width: min(100%, 178px);
}

.company-allocation-card .donut-legend {
  max-height: 286px;
  overflow: auto;
  padding-right: 4px;
}

.company-allocation-card .donut-legend-row {
  grid-template-columns: 12px minmax(0, 1fr) auto auto;
  gap: 8px;
  min-height: 34px;
  padding: 8px 10px;
}

.company-allocation-card .donut-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .dashboard-chart-pair {
    grid-template-columns: minmax(0, 1fr);
  }

  .company-allocation-card .donut-layout {
    grid-template-columns: minmax(190px, 240px) minmax(0, 1fr);
  }
}

@media (max-width: 620px) {
  .dashboard-chart-pair {
    gap: 14px;
  }

  .dashboard-chart-pair .business-controls,
  .company-allocation-card .donut-layout {
    grid-template-columns: 1fr;
  }

  .dashboard-chart-pair .vertical-chart {
    min-height: 260px;
  }

  .company-allocation-card .chart-card-head {
    display: grid;
  }

  .company-allocation-card .donut-chart {
    justify-self: center;
  }
}

/* Admin dashboard: fund-wise investment report row polish. */
.fund-allocation-row {
  margin-top: 20px;
}

.fund-allocation-card {
  overflow: hidden;
}

.fund-allocation-card .chart-card-head {
  align-items: flex-start;
  border-bottom: 1px solid rgba(219,226,236,.75);
  margin-bottom: 14px;
  padding-bottom: 14px;
}

.fund-allocation-card .chart-card-head h2 {
  margin-bottom: 5px;
  font-size: 1.38rem;
}

.exposure-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.exposure-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid rgba(219,226,236,.95);
  border-radius: 999px;
  background: #f7fbff;
  padding: 4px;
}

.fund-allocation-card .exposure-switch .exposure-tab {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #52667f;
  font-size: .82rem;
  font-weight: 900;
  padding: 8px 13px;
  white-space: nowrap;
}

.fund-allocation-card .exposure-switch .exposure-tab.active {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 10px 22px rgba(6,38,83,.18);
}

.fund-investment-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid rgba(201,152,47,.26);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255,248,229,.96), rgba(255,255,255,.98));
  color: var(--navy-2);
  margin: 0 0 14px;
  padding: 10px 14px;
}

.fund-investment-summary span {
  color: var(--muted);
  font-size: .8rem;
  font-weight: 850;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.fund-investment-summary strong {
  color: var(--navy-2);
  font-size: 1.05rem;
}

.fund-investment-list {
  display: grid;
  gap: 10px;
}

.fund-allocation-card .fund-investment-row {
  display: grid;
  grid-template-columns: 42px minmax(240px, 1.25fr) minmax(260px, 1.8fr) 70px minmax(120px, auto);
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(219,226,236,.82);
  border-radius: 12px;
  background: linear-gradient(135deg, #fff, #f8fbff);
  padding: 11px 12px;
}

.fund-rank {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 10px;
  background: #eef5ff;
  color: var(--navy-2);
  font-size: .76rem;
  font-weight: 950;
}

.fund-allocation-card .fund-name {
  color: var(--navy-2);
  font-size: .9rem;
  font-weight: 900;
  line-height: 1.25;
}

.fund-allocation-card .fund-name small {
  display: block;
  margin-top: 4px;
  color: #718096;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .02em;
}

.fund-allocation-card .bar-track {
  height: 14px;
  border: 1px solid rgba(6,38,83,.08);
  background: #eaf2fb;
}

.fund-allocation-card .fund-percent {
  color: #34516f;
  font-size: .84rem;
  font-weight: 900;
  text-align: right;
  white-space: nowrap;
}

.fund-allocation-card .bar-value {
  display: grid;
  justify-items: end;
  gap: 5px;
  color: var(--navy-2);
  font-size: .9rem;
  font-weight: 950;
  text-align: right;
  white-space: nowrap;
}

.fund-allocation-card .bar-value strong {
  color: var(--navy-2);
  font-size: .95rem;
  line-height: 1.1;
}

.fund-daily-change {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  border-radius: 999px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: .72rem;
  font-weight: 900;
  line-height: 1;
  padding: 5px 8px;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(6,38,83,.12);
}

.fund-daily-change.positive {
  background: #19a974;
  color: #fff;
}

.fund-daily-change.negative {
  background: #d64545;
  color: #fff;
}

.fund-daily-change.neutral {
  background: #eef2f7;
  color: #64748b;
}

.admin-page-topbar {
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.admin-topbar-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-left: auto;
}

.mapping-bell {
  position: relative;
  display: inline-grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(219,226,236,.95);
  border-radius: 16px;
  background: #fff;
  color: var(--navy-2);
  box-shadow: 0 12px 28px rgba(7,27,51,.08);
  transition: transform .18s ease, border-color .18s ease, background .18s ease, color .18s ease;
}

.mapping-bell:hover {
  transform: translateY(-1px);
  border-color: rgba(201,152,47,.42);
}

.mapping-bell-icon,
.mapping-bell-icon svg {
  display: block;
  width: 22px;
  height: 22px;
}

.mapping-bell-icon svg {
  fill: currentColor;
}

.mapping-bell.has-alert {
  border-color: rgba(214,69,69,.35);
  background: #d64545;
  color: #fff;
  box-shadow: 0 16px 32px rgba(214,69,69,.2);
}

.mapping-bell.has-alert sup {
  position: absolute;
  top: -8px;
  right: -8px;
  display: grid;
  min-width: 22px;
  height: 22px;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #b91c1c;
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: .72rem;
  font-weight: 900;
  line-height: 1;
  padding: 0 5px;
  box-shadow: 0 8px 18px rgba(185,28,28,.28);
}

.mapping-bell.is-clear {
  background: #f8fbff;
  color: #64748b;
}

@media (max-width: 1080px) {
  .fund-allocation-card .fund-investment-row {
    grid-template-columns: 38px minmax(0, 1fr) 72px minmax(110px, auto);
  }

  .fund-allocation-card .bar-track {
    grid-column: 2 / -1;
    width: 100%;
  }
}

@media (max-width: 620px) {
  .fund-allocation-card .chart-card-head,
  .exposure-actions,
  .fund-investment-summary {
    display: grid;
  }

  .exposure-switch {
    width: 100%;
  }

  .exposure-switch a {
    flex: 1;
    justify-content: center;
  }

  .fund-allocation-card .fund-investment-row {
    grid-template-columns: 34px minmax(0, 1fr) auto;
    gap: 8px;
    padding: 10px;
  }

  .fund-allocation-card .fund-name {
    font-size: .82rem;
  }

  .fund-allocation-card .bar-track {
    grid-column: 2 / -1;
    height: 12px;
  }

  .fund-allocation-card .fund-percent {
    grid-column: 2;
    text-align: left;
  }

  .fund-allocation-card .bar-value {
    grid-column: 3;
    font-size: .84rem;
  }

  .fund-daily-change {
    font-size: .68rem;
    padding: 4px 7px;
  }
}

/* Public framework redesign: dark glass fintech language, compliance-safe. */
:root {
  --framework-navy: #071b33;
  --framework-navy-2: #0a2540;
  --framework-emerald: #10b981;
  --framework-gold: #c69a3d;
  --framework-azure: #4f8cc9;
}

.premium-hero {
  color: #e8eef6;
  background:
    radial-gradient(circle at 16% 8%, rgba(16,185,129,.18), transparent 30%),
    radial-gradient(circle at 88% 70%, rgba(79,140,201,.18), transparent 28%),
    linear-gradient(135deg, #071b33 0%, #0a2540 55%, #05101f 100%) !important;
}

.premium-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7,27,51,.96), rgba(7,27,51,.82) 48%, rgba(7,27,51,.45)),
    url("/assets/images/home-hero-bg.png") center right / cover no-repeat;
  opacity: .82;
  pointer-events: none;
}

.premium-hero::after {
  background: linear-gradient(180deg, rgba(7,27,51,0), #071b33);
}

.premium-hero .hero-inner {
  min-height: 700px;
  grid-template-columns: minmax(0, .9fr) minmax(360px, 520px);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  border: 1px solid rgba(198,154,61,.35);
  border-radius: 999px;
  background: rgba(255,255,255,.07);
  color: #f3d58a;
  padding: 8px 13px;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
}

.hero-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--framework-emerald);
  box-shadow: 0 0 0 6px rgba(16,185,129,.12);
}

.premium-hero h1 {
  color: #fff;
  font-size: clamp(2.35rem, 4.2vw, 3.95rem);
}

.premium-hero h1 span {
  color: #d8e6ef;
}

.premium-hero .hero p {
  color: rgba(232,238,246,.78);
}

.premium-hero .trust-row {
  color: #fff;
}

.premium-hero .trust-logo {
  background: rgba(255,255,255,.96);
}

.premium-hero .btn-primary {
  background: linear-gradient(135deg, var(--framework-emerald), #2f87c9);
  box-shadow: 0 18px 44px rgba(16,185,129,.2);
}

.premium-hero .btn-outline {
  border-color: rgba(198,154,61,.42);
  background: rgba(255,255,255,.08);
  color: #fff;
  backdrop-filter: blur(12px);
}

.premium-hero .hero-metrics span {
  border-color: rgba(255,255,255,.12);
  background: rgba(255,255,255,.08);
  color: #fff;
  box-shadow: 0 20px 46px rgba(0,0,0,.18);
}

.premium-hero .hero-metrics small {
  color: rgba(232,238,246,.7);
}

.premium-hero .wealth-widget {
  border-color: rgba(255,255,255,.16);
  background: rgba(255,255,255,.08);
  box-shadow: 0 34px 90px rgba(0,0,0,.28);
}

.premium-hero .wealth-widget::before {
  background: linear-gradient(135deg, rgba(255,255,255,.12), rgba(255,255,255,.03));
}

.premium-process {
  background: linear-gradient(180deg, #071b33 0%, #0a2540 100%) !important;
}

.premium-process .section-title,
.premium-process .bento-card h3 {
  color: #fff;
}

.premium-process .section-copy {
  color: rgba(232,238,246,.72);
}

.premium-process .bento-card {
  border-color: rgba(255,255,255,.12);
  background: linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
  color: #fff;
  backdrop-filter: blur(14px);
}

.premium-process .bento-large {
  background:
    radial-gradient(circle at 82% 18%, rgba(198,154,61,.24), transparent 30%),
    linear-gradient(145deg, #0b315a 0%, #071b33 62%, #103c35 100%);
}

.premium-process .bento-privacy {
  background:
    radial-gradient(circle at 92% 18%, rgba(198,154,61,.18), transparent 28%),
    linear-gradient(135deg, rgba(255,255,255,.1), rgba(255,255,255,.04));
}

.action-rail {
  border-top: 1px solid rgba(255,255,255,.08);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

@media (max-width: 980px) {
  .premium-hero .hero-inner {
    grid-template-columns: 1fr;
    min-height: auto;
  }
}

@media (max-width: 620px) {
  .premium-hero h1 {
    font-size: clamp(2rem, 10vw, 2.8rem);
  }
}

/* Public calculator hub */
.calculator-page {
  background:
    radial-gradient(circle at 12% 0%, rgba(198, 154, 61, .12), transparent 28%),
    linear-gradient(180deg, #f8fbff 0%, #fff 48%, #f5f8fc 100%);
}

.calculator-hero {
  padding-top: 64px;
}

.calculator-shell {
  display: grid;
  gap: 24px;
}

.calculator-intro {
  max-width: 920px;
}

.calculator-disclaimer {
  margin-top: 18px;
  border: 1px solid rgba(198, 154, 61, .28);
  border-radius: 16px;
  background: #fff8e8;
  color: #5f470e;
  padding: 14px 16px;
  line-height: 1.55;
}

.calculator-grid {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.calculator-tabs {
  display: grid;
  gap: 10px;
  position: sticky;
  top: 104px;
}

.calculator-tab {
  text-align: left;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  padding: 16px;
  color: var(--navy);
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(6, 38, 83, .06);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
}

.calculator-tab span {
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: #eef5ff;
  color: var(--navy-2);
  font-weight: 900;
  font-size: .74rem;
}

.calculator-tab strong {
  font-size: .96rem;
}

.calculator-tab small {
  color: var(--muted);
  line-height: 1.35;
}

.calculator-tab.active {
  border-color: rgba(198, 154, 61, .55);
  background: linear-gradient(135deg, #071b33, #0a2540);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 20px 46px rgba(7, 27, 51, .18);
}

.calculator-tab.active span {
  background: rgba(198, 154, 61, .2);
  color: #f3d58a;
}

.calculator-tab.active small {
  color: rgba(255, 255, 255, .72);
}

.calculator-card {
  padding: 0;
  overflow: hidden;
}

.calculator-card-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  background: linear-gradient(135deg, #071b33, #0a2540);
  color: #fff;
  padding: 24px;
}

.calculator-card-head small {
  color: #f3d58a;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.calculator-card-head h2 {
  margin: 6px 0 8px;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.8rem;
}

.calculator-card-head p {
  margin: 0;
  color: rgba(255, 255, 255, .76);
  line-height: 1.55;
}

#calcBadge {
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  padding: 8px 12px;
  color: #fff;
  font-size: .78rem;
  font-weight: 900;
}

.calculator-panel {
  display: none;
  padding: 24px;
}

.calculator-panel.active {
  display: block;
}

.calculator-results {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 0 24px 24px;
}

.result-card {
  border: 1px solid rgba(219, 226, 236, .9);
  border-radius: 18px;
  background: #f8fbff;
  padding: 18px;
}

.result-card span {
  display: block;
  color: var(--muted);
  font-size: .8rem;
  font-weight: 800;
  margin-bottom: 7px;
}

.result-card strong {
  display: block;
  color: var(--navy-2);
  font-size: 1.45rem;
  line-height: 1.15;
  font-weight: 950;
}

.primary-result {
  background: linear-gradient(135deg, #fff8e8, #fff);
  border-color: rgba(198, 154, 61, .34);
}

.primary-result strong {
  color: #8a620f;
  font-size: 1.7rem;
}

.calculator-note {
  margin: 0 24px 24px;
  border-top: 1px solid rgba(219, 226, 236, .8);
  color: var(--muted);
  padding-top: 16px;
  line-height: 1.55;
}

.loan-illustration {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px dashed rgba(198, 154, 61, .38);
}

.loan-illustration div {
  min-height: 132px;
  border: 1px solid rgba(219, 226, 236, .9);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 248, 232, .78), rgba(255, 255, 255, .95));
  padding: 14px;
  display: grid;
  gap: 8px;
  align-content: start;
}

.loan-illustration span {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #071b33;
  color: #f3d58a;
  font-size: .72rem;
  font-weight: 900;
}

.loan-illustration strong {
  color: var(--navy-2);
  font-size: .92rem;
  line-height: 1.25;
}

.loan-illustration em {
  color: #0f7a51;
  font-style: normal;
  font-weight: 900;
  font-size: .95rem;
}

.calculator-lead {
  display: grid;
  grid-template-columns: minmax(0, .7fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.calculator-lead h2 {
  margin: 0 0 10px;
  color: var(--navy-2);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
}

.calculator-lead .eyebrow {
  margin-bottom: 14px;
}

@media (max-width: 980px) {
  .calculator-grid {
    grid-template-columns: 1fr;
  }

  .calculator-tabs {
    position: static;
    display: flex;
    overflow-x: auto;
    padding-bottom: 6px;
    scroll-snap-type: x proximity;
  }

  .calculator-tab {
    min-width: 230px;
    scroll-snap-align: start;
  }

  .calculator-results,
  .calculator-lead {
    grid-template-columns: 1fr;
  }

  .loan-illustration {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .calculator-hero {
    padding-top: 42px;
  }

  .calculator-tabs {
    margin-left: -12px;
    margin-right: -12px;
    padding-left: 12px;
    padding-right: 12px;
  }

  .calculator-card-head {
    display: grid;
    padding: 20px;
  }

  .calculator-card-head h2 {
    font-size: 1.45rem;
  }

  .calculator-panel {
    padding: 18px;
  }

  .calculator-results {
    grid-template-columns: 1fr;
    padding: 0 18px 18px;
  }

  .calculator-note {
    margin: 0 18px 18px;
  }

  .result-card strong,
  .primary-result strong {
    font-size: 1.35rem;
  }

  .loan-illustration {
    grid-template-columns: 1fr;
  }
}
