:root {
  --blue: #0758b7;
  --deep-blue: #063d83;
  --navy: #0b1f35;
  --line: #dce4ee;
  --soft: #f6f8fb;
  --panel: #fff;
  --text: #111827;
  --muted: #647083;
  --success: #0b7a3b;
  --danger: #b3261e;
  --gold: #b8872d;
  --teal: #0f766e;
  --premium-shadow: 0 10px 30px rgba(15, 33, 57, .1);
  --soft-shadow: 0 2px 10px rgba(15, 33, 57, .07);
  --glass-bg: rgba(255, 255, 255, .78);
  --glass-strong: rgba(255, 255, 255, .9);
  --glass-line: rgba(190, 204, 222, .64);
}

* { box-sizing: border-box; }
html { overflow-x: hidden; }
body { margin: 0; color: var(--text); background: #f8f9fc; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; letter-spacing: 0; overflow-x: hidden; }
a { color: #074f9f; text-decoration: none; }
button, input, select, textarea { font: inherit; }
input:focus, select:focus, textarea:focus { outline: 0; border-color: #0a4d91; box-shadow: 0 0 0 1px rgba(10, 77, 145, .45); }
.topbar { height: 72px; background: linear-gradient(90deg, #003b86, #0759b8); color: #fff; display: flex; align-items: center; justify-content: space-between; padding: 0 28px; }
.brand { display: flex; align-items: center; gap: 13px; font-size: 24px; font-weight: 700; white-space: nowrap; }
.brand span { font-weight: 400; }
.mark { width: 28px; height: 28px; border: 3px solid #fff; display: inline-grid; place-items: center; }
.mark:before { content: ""; width: 10px; height: 10px; background: #fff; }
.nav-actions { display: flex; align-items: center; gap: 28px; font-weight: 700; }
.icon { width: 32px; height: 32px; display: inline-grid; place-items: center; border-radius: 50%; }
.badge { position: relative; }
.badge:after { content: "5"; position: absolute; right: -4px; top: -5px; width: 18px; height: 18px; border-radius: 50%; background: #e02020; color: #fff; display: grid; place-items: center; font-size: 11px; }
.app-topbar { height: 84px; padding: 0 22px; box-shadow: 0 1px 0 rgba(0,0,0,.08); }
.app-brand { gap: 22px; }
.brand-lockup { display: flex; align-items: center; gap: 13px; color: #fff; font-size: 26px; line-height: 1; }
.brand-lockup strong { font-weight: 800; letter-spacing: .5px; }
.brand-lockup span:last-child { font-weight: 400; }
.brand-logo-image, .login-logo-image { display: block; object-fit: contain; object-position: left center; filter: drop-shadow(0 3px 8px rgba(0,0,0,.22)); }
.brand-logo-image { width: clamp(156px, 19vw, 250px); height: 56px; }
.login-logo-image { width: clamp(216px, 28vw, 360px); height: 72px; }
.business-lockup-text { min-height: 30px; display: inline-flex; align-items: center; padding: 0 10px; border-left: 1px solid rgba(255,255,255,.32); color: #fff; font-size: 15px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.top-icon-button, .company-switcher, .profile-button { border: 0; background: transparent; color: #fff; cursor: pointer; padding: 0; }
.top-icon-button { width: 38px; height: 38px; display: grid; place-items: center; }
.top-icon-button svg, .company-switcher svg, .profile-button svg { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.top-icon-button svg { width: 30px; height: 30px; }
.notification-button { position: relative; }
.notification-button:after { content: attr(data-count); position: absolute; right: 2px; top: 1px; width: 19px; height: 19px; border-radius: 50%; background: #e02020; color: #fff; display: grid; place-items: center; font-size: 11px; font-weight: 800; }
.notification-button[data-count="0"]:after { display: none; }
.company-switcher { min-width: 164px; max-width: 220px; display: grid; grid-template-columns: minmax(0, 1fr) 22px; align-items: center; gap: 8px; text-align: left; font-weight: 800; line-height: 1.1; font-size: 16px; }
.company-switcher span { overflow-wrap: anywhere; }
.company-switcher svg { width: 21px; height: 21px; }
.profile-button { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: #0752ad; }
.profile-button svg { width: 28px; height: 28px; stroke-width: 2; }
.header-panel { position: fixed; top: 88px; right: 22px; z-index: 40; width: min(380px, calc(100vw - 32px)); background: #fff; color: var(--text); border: 1px solid var(--line); box-shadow: 0 16px 36px rgba(15, 33, 57, .2); padding: 16px; animation: loginFadeDown .16s ease-out both; }
.header-panel[hidden] { display: none; }
.header-panel label { display: grid; gap: 8px; font-weight: 800; }
.header-panel input[type="search"] { min-height: 46px; border: 1px solid #aeb7c3; padding: 0 12px; outline: 0; }
.header-panel input[type="search"]:focus { border-color: #0a4d91; box-shadow: 0 0 0 1px #0a4d91; }
.search-results { display: grid; gap: 6px; margin-top: 14px; max-height: 280px; overflow: auto; }
.search-results a, .company-panel a, .profile-panel a, .notification-item, .viewport-toggle-button { display: grid; gap: 4px; padding: 11px 10px; border: 1px solid transparent; color: #174e8f; font-weight: 700; }
.search-results a:hover, .company-panel a:hover, .profile-panel a:hover, .notification-item:hover, .viewport-toggle-button:hover { background: #f5f9ff; border-color: #d9e7fa; }
.search-results p, .empty-menu-text { margin: 0; color: var(--muted); }
.panel-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding-bottom: 12px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.panel-title-row span { color: var(--muted); font-size: 13px; font-weight: 700; }
.notification-item span { width: max-content; min-height: 22px; display: inline-flex; align-items: center; background: #eef5ff; color: #174e8f; padding: 0 7px; font-size: 12px; }
.notification-item strong { color: var(--text); }
.notification-item small { color: var(--muted); }
.notification-item.read { opacity: .62; }
.mark-read-button { width: 100%; min-height: 36px; margin: 0 0 8px; border: 1px solid #c9d8eb; background: #f5f9ff; color: #174e8f; font-weight: 800; cursor: pointer; }
.menu-logout { width: 100%; min-height: 42px; border: 1px solid #0a4d91; background: #fff; color: #0a4d91; font-weight: 800; cursor: pointer; }
.maintenance-notice { min-height: 42px; display: flex; align-items: center; justify-content: center; padding: 9px 18px; background: #fff8e6; border-bottom: 1px solid #efd79d; color: #6b4b00; font-weight: 800; text-align: center; }
.login-maintenance-notice { width: min(720px, calc(100vw - 32px)); justify-self: center; border: 1px solid rgba(239,215,157,.75); box-shadow: 0 4px 14px rgba(0,0,0,.18); }
.viewport-toggle-button { width: 100%; min-height: 44px; background: transparent; cursor: pointer; text-align: left; font: inherit; }
.login-page { min-height: 100vh; color: #fff; background-color: #122033; background-image: linear-gradient(180deg, rgba(16, 32, 51, .44), rgba(6, 21, 39, .5)), url("https://images.unsplash.com/photo-1500534314209-a25ddb2bd429?auto=format&fit=crop&w=2200&q=85"); background-position: center; background-size: cover; display: grid; grid-template-rows: 92px minmax(0, 1fr) 76px; overflow-x: hidden; animation: loginBackgroundDrift 24s ease-in-out infinite alternate; }
.login-header { height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 clamp(18px, 3vw, 42px); animation: loginFadeDown .58s ease-out both; }
.login-brand { color: #fff; display: flex; align-items: center; gap: 14px; font-size: clamp(22px, 2.1vw, 30px); line-height: 1; white-space: nowrap; }
.login-brand strong { font-weight: 800; letter-spacing: 1px; }
.login-brand span:last-child { font-weight: 400; }
.login-mark { width: 32px; height: 32px; border: 4px solid #fff; display: inline-grid; place-items: center; }
.login-mark:before { content: ""; width: 11px; height: 11px; background: #fff; display: block; }
.login-utility { display: flex; align-items: center; gap: clamp(14px, 2vw, 28px); font-size: clamp(14px, 1.35vw, 18px); font-weight: 700; }
.login-utility a { color: #fff; transition: opacity .18s ease, transform .18s ease; }
.login-utility a:hover { opacity: .82; transform: translateY(-1px); }
.login-utility span { width: 2px; height: 25px; background: rgba(255,255,255,.85); }
.login-main { align-self: stretch; display: grid; grid-template-rows: minmax(520px, auto) auto; justify-items: center; align-content: center; row-gap: clamp(20px, 3vh, 32px); padding: 10px clamp(16px, 3vw, 32px) 16px; }
.login-card { width: min(552px, calc(100vw - 32px)); background: rgba(255,255,255,.92); color: var(--text); border: 1px solid rgba(255,255,255,.62); border-radius: 6px; box-shadow: 0 18px 45px rgba(0,0,0,.26); backdrop-filter: blur(20px) saturate(1.18); -webkit-backdrop-filter: blur(20px) saturate(1.18); padding: clamp(30px, 4vw, 36px) clamp(24px, 4vw, 40px) 0; overflow: hidden; animation: loginCardIn .54s cubic-bezier(.2, .85, .25, 1) .08s both; }
.login-card h1 { margin: 0 0 12px; font-size: 30px; line-height: 1.12; font-weight: 800; }
.login-card p { margin: 0 0 29px; color: var(--muted); font-size: 17px; }
.field { margin-bottom: 22px; }
.field label { display: block; font-weight: 700; margin-bottom: 10px; }
.signin-form { margin-bottom: 14px; }
.login-input { height: 52px; border: 1px solid #aeb7c3; display: grid; grid-template-columns: 48px minmax(0, 1fr) 48px; align-items: center; background: #fff; transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.login-input:focus-within { border-color: #0a4d91; box-shadow: 0 0 0 1px #0a4d91; transform: translateY(-1px); }
.login-input input { width: 100%; border: 0; outline: 0; color: var(--text); font-size: 17px; min-width: 0; }
.login-input input::placeholder { color: #7c8492; }
.login-input svg { width: 20px; height: 20px; fill: none; stroke: #526071; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.login-input-action { display: grid; place-items: center; }
.login-input-action svg { width: 20px; height: 20px; fill: none; stroke: #5c6572; stroke-width: 1.7; }
.login-input-icon { display: grid; place-items: center; }
.password-field { margin-bottom: 18px; }
.show-password { display: block; margin: 9px 0 0 auto; padding: 0; color: #1f5597; background: transparent; border: 0; font-weight: 700; font-size: 15px; cursor: pointer; transition: color .18s ease, transform .18s ease; }
.show-password:hover { color: #003f8f; transform: translateY(-1px); }
.btn { min-height: 48px; border-radius: 4px; border: 1px solid #0a4d91; background: #fff; color: #0a4d91; padding: 0 22px; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease, border-color .16s ease; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 7px 16px rgba(15, 33, 57, .12); }
.btn-primary { width: 100%; background: #075bd8; color: #fff; border-color: #075bd8; }
.signin-button { min-height: 50px; font-size: 18px; margin-top: 6px; transition: background-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.signin-button:hover { background: #064fbd; box-shadow: 0 7px 16px rgba(7, 91, 216, .24); transform: translateY(-1px); }
.signin-button:active { transform: translateY(0); box-shadow: none; }
.btn-dark { background: #073d78; color: #fff; border-color: #073d78; }
.login-links { margin: 12px 0 0; }
.login-action-row { display: grid; grid-template-columns: 38px minmax(0, 1fr) 24px; align-items: center; gap: 12px; min-height: 66px; border-top: 1px solid var(--line); color: #174e8f; font-size: 16px; transition: background-color .18s ease, padding-left .18s ease; }
.login-action-row:hover { background: #f7faff; padding-left: 4px; }
.login-row-icon { width: 29px; height: 29px; display: grid; place-items: center; background: #f0f4fa; }
.login-row-icon svg { width: 20px; height: 20px; fill: none; stroke: #174e8f; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.login-row-arrow { display: grid; place-items: center; justify-self: end; }
.login-row-arrow svg { width: 22px; height: 22px; fill: none; stroke: #174e8f; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.login-help { width: min(552px, calc(100vw - 32px)); display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 16px; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.25); animation: loginFadeUp .54s ease-out .18s both; }
.help-icon { width: 34px; height: 34px; display: grid; place-items: center; }
.help-icon svg { width: 34px; height: 34px; fill: none; stroke: #fff; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.login-help h2 { font-size: 18px; margin: 0 0 9px; }
.login-help p { margin: 0 0 22px; font-size: 14px; font-weight: 700; }
.security-button { min-height: 42px; min-width: 210px; border: 1px solid rgba(255,255,255,.75); color: #fff; border-radius: 4px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 0 18px; font-weight: 700; background: rgba(19, 35, 53, .22); transition: background-color .18s ease, transform .18s ease; }
.security-button:hover { background: rgba(255,255,255,.14); transform: translateY(-1px); }
.security-button svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
.login-footer { align-self: end; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 clamp(18px, 3vw, 42px) 28px; font-weight: 700; font-size: 14px; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.25); animation: loginFadeUp .54s ease-out .24s both; }
.login-footer nav { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.login-footer a { color: #fff; transition: opacity .18s ease; }
.login-footer a:hover { opacity: .82; }
.footer-viewport-toggle { width: auto; min-height: auto; padding: 0; border: 0; color: #fff; background: transparent; text-shadow: inherit; }
.footer-viewport-toggle:hover { background: transparent; border-color: transparent; opacity: .82; }
.simple-page { min-height: 100vh; display: grid; place-items: start center; padding: 64px 20px; background: #f5f7fb; }
.simple-panel { width: min(640px, 100%); background: #fff; border: 1px solid var(--line); box-shadow: 0 8px 28px rgba(20, 35, 55, .12); padding: 34px; }
.simple-panel h1 { margin: 14px 0 12px; }
.simple-panel p { color: var(--muted); line-height: 1.55; }
.simple-back { font-weight: 700; }
.simple-input { grid-template-columns: 1fr; padding: 0 14px; }
.enroll-page { min-height: 100vh; color: #fff; background-color: #122033; background-image: linear-gradient(180deg, rgba(16, 32, 51, .48), rgba(6, 21, 39, .58)), url("https://images.unsplash.com/photo-1500534314209-a25ddb2bd429?auto=format&fit=crop&w=2200&q=85"); background-position: center; background-size: cover; overflow-x: hidden; }
.enroll-header { animation: loginFadeDown .58s ease-out both; }
.enroll-shell { width: min(1180px, calc(100vw - 32px)); margin: 0 auto; padding: 28px 0 56px; display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 28px; align-items: start; }
.enroll-hero { position: sticky; top: 28px; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.25); animation: loginFadeUp .54s ease-out both; }
.enroll-hero .simple-back { color: #fff; }
.enroll-hero h1 { font-size: 38px; line-height: 1.08; margin: 22px 0 14px; }
.enroll-hero p { font-size: 17px; line-height: 1.55; margin: 0; }
.trust-list { display: grid; gap: 10px; margin-top: 26px; }
.trust-list span { display: flex; align-items: center; min-height: 40px; border: 1px solid rgba(255,255,255,.45); background: rgba(8, 24, 42, .28); border-radius: 4px; padding: 0 14px; font-weight: 700; }
.trust-list span:before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #8ed0ff; margin-right: 10px; }
.enroll-card { background: rgba(255,255,255,.9); color: var(--text); border: 1px solid rgba(255,255,255,.62); border-radius: 6px; box-shadow: 0 18px 45px rgba(0,0,0,.24); backdrop-filter: blur(20px) saturate(1.18); -webkit-backdrop-filter: blur(20px) saturate(1.18); padding: 26px; animation: loginCardIn .54s cubic-bezier(.2, .85, .25, 1) .08s both; }
.stepper { list-style: none; margin: 0 0 24px; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); border: 1px solid var(--line); background: #f8fafc; }
.stepper li { min-height: 62px; display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--muted); font-weight: 700; border-right: 1px solid var(--line); }
.stepper li:last-child { border-right: 0; }
.stepper span { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; border: 1px solid #aab5c4; background: #fff; font-size: 13px; }
.stepper li.active { color: #074f9f; background: #eef5ff; }
.stepper li.active span, .stepper li.complete span { color: #fff; background: #075bd8; border-color: #075bd8; }
.stepper li.complete { color: var(--text); }
.enrollment-form { display: grid; gap: 22px; margin-top: 0; }
.form-step { display: none; animation: loginFadeUp .28s ease-out both; }
.form-step.active { display: block; }
.step-heading { margin-bottom: 20px; }
.step-heading h2 { margin: 0 0 7px; font-size: 23px; }
.step-heading p { margin: 0; color: var(--muted); }
.form-section { border: 1px solid var(--line); background: #fbfcfe; padding: 22px; }
.form-section h2 { font-size: 19px; margin: 0 0 18px; }
.form-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.form-grid label, .choice-row label, .consent-line { display: grid; gap: 8px; font-weight: 700; color: var(--text); }
.form-grid input, .form-grid select {
  width: 100%;
  min-height: 44px;
  border: 1px solid #b6bfcc;
  background: #fff;
  padding: 0 12px;
  color: var(--text);
  border-radius: 3px;
}
.form-grid input[type="file"] { padding: 10px 12px; height: auto; }
.form-grid input:focus, .form-grid select:focus { outline: 0; border-color: #0a4d91; box-shadow: 0 0 0 1px #0a4d91; }
.form-grid .wide { grid-column: span 3; }
.choice-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.choice-row label, .consent-line { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); padding: 14px; }
.enrollment-type label { align-items: flex-start; min-height: 92px; transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.enrollment-type label:hover { border-color: #8db4e6; box-shadow: 0 5px 14px rgba(9, 55, 105, .08); transform: translateY(-1px); }
.enrollment-type span { display: grid; gap: 6px; }
.enrollment-type small { color: var(--muted); font-weight: 400; line-height: 1.4; }
.form-note { margin: 14px 0 0; font-size: 14px; }
.step-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding-top: 22px; }
.step-actions [hidden] { display: none; }
.review-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.review-item { border: 1px solid var(--line); background: #fbfcfe; padding: 13px; display: grid; gap: 6px; }
.review-item span { color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; }
.review-item strong { color: var(--text); overflow-wrap: anywhere; }
.recovery-page { min-height: 100vh; color: #fff; background-color: #122033; background-image: linear-gradient(180deg, rgba(16, 32, 51, .46), rgba(6, 21, 39, .58)), url("https://images.unsplash.com/photo-1500534314209-a25ddb2bd429?auto=format&fit=crop&w=2200&q=85"); background-position: center; background-size: cover; overflow-x: hidden; display: grid; grid-template-rows: 92px 1fr; }
.recovery-header { animation: loginFadeDown .58s ease-out both; }
.recovery-shell { width: min(980px, calc(100vw - 32px)); margin: 0 auto; padding: 34px 0 64px; display: grid; grid-template-columns: minmax(0, 580px) 320px; gap: 28px; align-items: center; }
.recovery-card { background: rgba(255,255,255,.9); color: var(--text); border: 1px solid rgba(255,255,255,.62); border-radius: 6px; box-shadow: 0 18px 45px rgba(0,0,0,.24); backdrop-filter: blur(20px) saturate(1.18); -webkit-backdrop-filter: blur(20px) saturate(1.18); padding: clamp(28px, 4vw, 40px); animation: loginCardIn .54s cubic-bezier(.2, .85, .25, 1) .08s both; }
.recovery-card .simple-back { display: inline-block; margin-bottom: 24px; }
.recovery-icon { width: 48px; height: 48px; display: grid; place-items: center; background: #eef5ff; color: #174e8f; margin-bottom: 18px; }
.recovery-icon svg { width: 28px; height: 28px; fill: none; stroke: #174e8f; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.recovery-card h1 { font-size: 32px; line-height: 1.12; margin: 0 0 12px; }
.recovery-card p { color: var(--muted); font-size: 17px; line-height: 1.55; margin: 0 0 24px; }
.recovery-form { display: grid; gap: 20px; }
.recovery-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.recovery-options label { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; border: 1px solid var(--line); background: #fbfcfe; padding: 15px; cursor: pointer; transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.recovery-options label:hover { border-color: #8db4e6; box-shadow: 0 5px 14px rgba(9, 55, 105, .08); transform: translateY(-1px); }
.recovery-options span { display: grid; gap: 7px; color: var(--text); }
.recovery-options svg { width: 22px; height: 22px; fill: none; stroke: #174e8f; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.recovery-options small { color: var(--muted); line-height: 1.4; }
.recovery-input { grid-template-columns: 48px minmax(0, 1fr); }
.recovery-assurance { color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.25); animation: loginFadeUp .54s ease-out .18s both; }
.recovery-assurance > div { width: 54px; height: 54px; border: 1px solid rgba(255,255,255,.55); background: rgba(8, 24, 42, .28); display: grid; place-items: center; margin-bottom: 18px; }
.recovery-assurance svg { width: 32px; height: 32px; fill: none; stroke: #fff; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.recovery-assurance h2 { font-size: 24px; margin: 0 0 10px; }
.recovery-assurance p { line-height: 1.55; font-weight: 700; margin: 0 0 22px; }
.admin-login-page { min-height: 100vh; color: #fff; background-color: #081625; background-image: radial-gradient(circle at 20% 20%, rgba(7, 89, 184, .34), transparent 32%), linear-gradient(135deg, rgba(5, 16, 30, .88), rgba(12, 34, 55, .84)), url("https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=2200&q=85"); background-position: center; background-size: cover; overflow-x: hidden; display: grid; grid-template-rows: 92px 1fr; }
.admin-login-header { animation: loginFadeDown .58s ease-out both; }
.admin-login-shell { width: min(980px, calc(100vw - 32px)); margin: 0 auto; padding: 34px 0 64px; display: grid; grid-template-columns: minmax(0, 540px) 340px; gap: 30px; align-items: center; }
.admin-login-card { background: rgba(255,255,255,.9); color: var(--text); border-radius: 6px; box-shadow: 0 18px 45px rgba(0,0,0,.3); padding: clamp(28px, 4vw, 42px); animation: loginCardIn .54s cubic-bezier(.2, .85, .25, 1) .08s both; border: 1px solid rgba(255,255,255,.62); border-top: 5px solid #075bd8; backdrop-filter: blur(20px) saturate(1.18); -webkit-backdrop-filter: blur(20px) saturate(1.18); }
.admin-login-badge { width: 54px; height: 54px; display: grid; place-items: center; background: #eef5ff; margin-bottom: 18px; }
.admin-login-badge svg { width: 32px; height: 32px; fill: none; stroke: #174e8f; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.admin-eyebrow { display: inline-flex; align-items: center; min-height: 28px; padding: 0 10px; margin-bottom: 14px; background: #eef5ff; color: #174e8f; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.admin-login-card h1 { margin: 0 0 12px; font-size: 32px; line-height: 1.12; }
.admin-login-card p { color: var(--muted); font-size: 17px; line-height: 1.55; margin: 0 0 18px; }
.admin-warning { border-left: 4px solid #075bd8; background: #f5f9ff; color: var(--text); padding: 12px 14px; margin-bottom: 24px; font-weight: 700; }
.admin-login-links { margin-top: 18px; border-top: 1px solid var(--line); }
.admin-action-row { min-height: 62px; display: grid; grid-template-columns: 36px minmax(0, 1fr) 22px; align-items: center; gap: 12px; color: #174e8f; border-bottom: 1px solid var(--line); transition: background-color .18s ease, padding-left .18s ease; }
.admin-action-row:hover { background: #f7faff; padding-left: 4px; }
.admin-action-row span { width: 30px; height: 30px; display: grid; place-items: center; background: #f0f4fa; }
.admin-action-row svg { width: 20px; height: 20px; fill: none; stroke: #174e8f; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.admin-action-row em { display: grid; place-items: center; font-style: normal; }
.admin-action-row em svg { stroke-width: 2.2; }
.admin-login-assurance { color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.25); animation: loginFadeUp .54s ease-out .18s both; }
.admin-login-assurance > div { width: 56px; height: 56px; border: 1px solid rgba(255,255,255,.48); background: rgba(8, 24, 42, .34); display: grid; place-items: center; margin-bottom: 18px; }
.admin-login-assurance svg { width: 34px; height: 34px; fill: none; stroke: #fff; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.admin-login-assurance h2 { font-size: 24px; margin: 0 0 10px; }
.admin-login-assurance p { line-height: 1.55; font-weight: 700; margin: 0 0 18px; }
.admin-login-assurance ul { display: grid; gap: 10px; padding: 0; margin: 0; list-style: none; }
.admin-login-assurance li { min-height: 38px; display: flex; align-items: center; border: 1px solid rgba(255,255,255,.38); background: rgba(8, 24, 42, .28); padding: 0 13px; font-weight: 700; }
.admin-login-assurance li:before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #8ed0ff; margin-right: 10px; }
.app-shell { display: grid; grid-template-columns: 214px minmax(0, 1fr); min-height: calc(100vh - 72px); transition: grid-template-columns .18s ease; }
.sidebar-collapsed .app-shell { grid-template-columns: 74px 1fr; }
.dashboard-page { background: #f7f8fb; }
.sidebar { min-width: 0; background: linear-gradient(180deg, #102941, #0d2136); color: #fff; padding-top: 10px; overflow-x: hidden; overflow-y: auto; }
.side-link { width: 100%; min-width: 0; display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 18px; color: #fff; font-weight: 700; border: 0; background: transparent; cursor: pointer; white-space: nowrap; text-align: left; line-height: 1.2; }
.side-link svg { width: 18px; height: 18px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.side-link span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.side-link.active { background: #074f9f; }
.side-link:hover { background: rgba(255,255,255,.08); }
.side-link.active:hover { background: #074f9f; }
.sidebar-collapsed .side-link { justify-content: center; padding: 0; }
.sidebar-collapsed .side-link span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sidebar-logout { margin-top: 10px; }
.content { min-width: 0; padding: 26px 38px 48px; }
.subtle-top { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 13px; margin-bottom: 22px; }
.page-title { font-size: 26px; margin: 0 0 24px; }
.section-title { font-size: 21px; margin: 0 0 12px; }
.panel { background: var(--glass-bg); border: 1px solid var(--glass-line); border-radius: 6px; box-shadow: var(--soft-shadow); backdrop-filter: blur(18px) saturate(1.16); -webkit-backdrop-filter: blur(18px) saturate(1.16); }
.panel:hover { box-shadow: var(--premium-shadow); }
.dashboard-content { padding: 0 36px 46px; }
.dashboard-page-head { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 18px; color: var(--muted); border-bottom: 1px solid #e4e8ef; margin: 0 -36px 22px; padding: 0 36px; font-size: 13px; }
.dashboard-page-head .page-title { margin: 0; }
.dashboard-toolbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 14px; }
.dashboard-tools { display: flex; align-items: center; gap: 28px; padding-top: 6px; margin-left: auto; }
.link-tool { min-height: 36px; border: 0; background: transparent; color: #174e8f; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; cursor: pointer; padding: 0 2px; }
.link-tool:hover { color: #003f8f; text-decoration: underline; text-underline-offset: 3px; }
.link-tool svg, .metric-label svg, .metric-note svg, .tasks a svg, .compact-action svg, .floating-action-menu svg, .withdraw-form button svg, .withdraw-panel-head svg, .withdraw-card-head svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.account-filter { width: 258px; min-height: 38px; border: 1px solid var(--line); background: #fff; color: var(--text); padding: 0 13px; }
.dashboard-customizer { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; border: 1px solid #c9d8eb; background: #f5f9ff; padding: 12px 14px; margin: 0 0 14px; }
.dashboard-customizer label { display: flex; align-items: center; gap: 7px; font-weight: 700; color: #174e8f; }
.balance-grid { display: grid; grid-template-columns: 1fr 1fr 330px; }
.overview-card { margin-bottom: 14px; }
.metric { padding: 28px 36px; border-right: 1px solid var(--line); }
.metric-label { color: var(--muted); font-size: 14px; margin-bottom: 14px; display: flex; align-items: center; gap: 7px; }
.metric-value { font-size: 30px; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.metric-note { color: var(--muted); margin-top: 10px; display: flex; align-items: center; gap: 7px; }
.tasks { padding: 24px 28px; background: rgba(242, 246, 252, .72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.tasks h3 { margin: 0 0 16px; font-size: 18px; }
.tasks a { display: block; margin: 13px 0; }
.overview-actions { background: #fff; }
.tasks-title { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 0; background: transparent; padding: 0; color: var(--text); font-weight: 800; cursor: pointer; margin-bottom: 10px; }
.tasks-title svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; }
.task-links { display: grid; gap: 8px; }
.task-links.collapsed { display: none; }
.tasks-collapsed .tasks-title { margin-bottom: 0; }
.tasks a, .task-links a, .floating-action-menu a { display: flex; align-items: center; gap: 10px; color: #174e8f; font-weight: 700; min-height: 28px; }
.table { width: 100%; border-collapse: collapse; background: rgba(255,255,255,.74); }
.table th { text-align: left; font-size: 12px; color: var(--muted); padding: 13px 10px; border-bottom: 1px solid var(--line); }
.table td { padding: 13px 10px; border-bottom: 1px solid #e8ecf2; vertical-align: middle; }
.table tr.selected { background: #edf1f7; }
.table-count { margin: 16px 0 5px 10px; color: #334155; }
.accounts-table-wrap { overflow-x: auto; }
.accounts-overview-table th:nth-child(3), .accounts-overview-table th:nth-child(4), .accounts-overview-table td:nth-child(3), .accounts-overview-table td:nth-child(4), .ledger-table td:last-child, .ledger-table th:last-child { text-align: right; }
.selected-account-panel { margin-top: 22px; }
.restricted-section { opacity: .74; }
.selected-account-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.selected-account-head h2 { margin: 0 0 4px; color: #174e8f; font-size: 21px; }
.selected-account-head small { color: #334155; font-weight: 700; }
.restricted-pill, .restricted-inline { display: inline-flex; align-items: center; min-height: 22px; margin-left: 8px; padding: 0 7px; border: 1px solid #c5d7ee; background: #eef5ff; color: #174e8f; font-style: normal; font-size: 12px; font-weight: 800; }
.restricted-row a { color: #526071; }
.selected-account-panel { position: relative; }
.selected-account-head { position: relative; z-index: 25; }
.inline-actions { position: relative; z-index: 30; }
.compact-action { min-height: 40px; gap: 9px; }
.compact-action svg { stroke: #fff; }
.restricted-action { opacity: .72; cursor: not-allowed; }
.floating-action-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 120; width: 240px; background: #fff; border: 1px solid var(--line); box-shadow: 0 12px 24px rgba(15, 33, 57, .18); padding: 10px; }
.ledger-panel { padding: 0; overflow: hidden; }
.ledger-panel > strong { display: block; margin-bottom: 4px; }
.account-details-card { border-color: #dfe6ef; box-shadow: 0 2px 7px rgba(15, 33, 57, .06); overflow-x: auto; }
.account-details-card-head { min-height: 42px; display: flex; align-items: center; padding: 0 20px; border-bottom: 1px solid #edf1f6; background: #fff; }
.account-details-card-head strong { font-size: 15px; }
.account-details-card .table th { padding: 11px 18px; }
.account-details-card .table td { padding: 11px 18px; }
.ledger-table { table-layout: fixed; min-width: 520px; }
.ledger-description-col { width: auto; }
.ledger-balance-col { width: 220px; }
.ledger-table th:last-child, .ledger-table td:last-child { white-space: nowrap; font-variant-numeric: tabular-nums; }
.withdraw-panel { position: relative; margin-top: 22px; padding: 24px; overflow: hidden; background: linear-gradient(135deg, rgba(248,251,255,.82), rgba(238,245,255,.72)); border-color: rgba(216,229,245,.78); box-shadow: 0 10px 26px rgba(15, 33, 57, .1); backdrop-filter: blur(18px) saturate(1.12); -webkit-backdrop-filter: blur(18px) saturate(1.12); }
.withdraw-panel:before, .withdraw-card:before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: #075bd8; }
.withdraw-panel-head { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 14px; align-items: start; margin-bottom: 18px; }
.withdraw-panel-head > span, .withdraw-card-head > span { width: 42px; height: 42px; display: grid; place-items: center; background: #fff; border: 1px solid #c9d8eb; color: #174e8f; box-shadow: 0 2px 6px rgba(15, 33, 57, .06); }
.withdraw-panel .section-title, .withdraw-card .section-title { margin-bottom: 7px; }
.withdraw-panel p { color: var(--muted); margin: 0; line-height: 1.5; }
.withdraw-form { display: grid; grid-template-columns: 180px minmax(220px, 260px) auto minmax(120px, 1fr); gap: 14px; align-items: end; padding-top: 16px; border-top: 1px solid rgba(23, 78, 143, .14); }
.withdraw-form label { display: grid; gap: 7px; font-weight: 700; }
.withdraw-form input, .withdraw-form select { min-height: 44px; border: 1px solid #b6bfcc; background: #fff; padding: 0 11px; border-radius: 3px; }
.withdraw-form input:focus, .withdraw-form select:focus { outline: 0; border-color: #0a4d91; box-shadow: 0 0 0 1px #0a4d91; }
.withdraw-form [data-withdraw-status], .withdraw-form > span { color: var(--success); font-weight: 800; align-self: center; }
.statement-page { background: #eef2f7; padding: 28px; }
.statement-sheet { width: min(980px, 100%); margin: 0 auto; background: #fff; border: 1px solid var(--line); padding: 30px; }
.unauthorized-modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; background: rgba(248, 249, 252, .72); padding: 24px; }
.unauthorized-modal[hidden] { display: none; }
.unauthorized-dialog { width: min(460px, 100%); position: relative; display: grid; justify-items: center; gap: 12px; text-align: center; background: transparent; color: #101828; padding: 18px; }
.unauthorized-lock { width: 78px; height: 78px; color: #0b1f3a; display: grid; place-items: center; }
.unauthorized-lock svg { width: 78px; height: 78px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.unauthorized-lock circle { stroke-width: 1.5; }
.unauthorized-dialog h2 { margin: 4px 0 0; font-size: 26px; }
.unauthorized-dialog p { margin: 0 0 6px; }
.modal-open { overflow: hidden; }
.account-header { display: grid; grid-template-columns: 72px 1fr auto; align-items: center; gap: 22px; margin-bottom: 28px; }
.avatar { width: 68px; height: 68px; border-radius: 50%; background: #0752ad; color: #fff; display: grid; place-items: center; font-size: 34px; }
.avatar svg { width: 42px; height: 42px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.avatar svg.filled-account-icon { fill: currentColor; stroke: none; }
.account-detail-page { background: #f7f8fb; }
.account-detail-content { padding-top: 0; }
.personal-trust-detail-content { padding-left: 34px; padding-right: 34px; }
.detail-topline { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 18px; color: var(--muted); border-bottom: 1px solid #e4e8ef; margin: 0 -38px 24px; padding: 0 38px; font-size: 13px; }
.back-to-accounts { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; color: #174e8f; font-weight: 800; }
.back-to-accounts svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.account-hero { position: relative; z-index: 25; display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; align-items: center; gap: 22px; margin-bottom: 28px; animation: loginFadeUp .28s ease-out both; }
.personal-trust-hero { margin-bottom: 26px; }
.account-hero-title h1 { margin: 0 0 8px; font-size: 26px; line-height: 1.16; color: #111827; }
.account-hero-title small { color: #334155; font-weight: 700; font-size: 15px; }
.account-hero-actions { position: relative; z-index: 30; display: flex; align-items: center; gap: 12px; }
.print-button svg, .more-actions-button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.more-actions-button svg { stroke: #fff; }
.detail-balance-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) 300px; margin-bottom: 20px; animation: loginFadeUp .32s ease-out .04s both; }
.personal-trust-balance-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) 305px; min-height: 170px; }
.client-trust-balance-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) 320px; }
.detail-balance-grid .metric { min-height: 158px; }
.personal-trust-balance-grid .metric { padding: 30px 24px; }
.personal-trust-balance-grid .metric-value { font-size: 30px; }
.personal-trust-balance-grid .metric-note { margin-top: 16px; }
.detail-actions-panel { background: rgba(242, 246, 252, .72); }
.personal-trust-balance-grid .detail-actions-panel { background: rgba(238, 245, 255, .78); padding: 24px 24px; }
.detail-actions-panel .tasks-title svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.detail-tabs { margin-top: 22px; animation: loginFadeUp .32s ease-out .08s both; }
.detail-two-col { animation: loginFadeUp .32s ease-out .12s both; }
.personal-trust-main-grid { grid-template-columns: minmax(0, 1.38fr) minmax(280px, .78fr); gap: 24px; align-items: start; }
.detail-activity-panel { padding: 22px; min-width: 0; overflow: auto; }
.personal-trust-main-grid .detail-activity-panel { padding: 22px 22px 18px; }
.personal-trust-main-grid .section-title { font-size: 17px; margin-bottom: 18px; }
.personal-trust-main-grid .activity-table th { padding-top: 10px; padding-bottom: 10px; }
.personal-trust-main-grid .activity-table td { padding-top: 18px; padding-bottom: 18px; }
.activity-table th:nth-child(4), .activity-table th:nth-child(5), .activity-table td:nth-child(4), .activity-table td:nth-child(5) { text-align: right; }
.center-action { text-align: center; margin: 22px 0 0; }
.withdraw-card { position: relative; align-self: start; border: 1px solid #d8e5f5; box-shadow: 0 4px 14px rgba(15, 33, 57, .08); overflow: hidden; }
.personal-trust-main-grid .withdraw-card { background: linear-gradient(135deg, rgba(248,251,255,.82), rgba(238,245,255,.72)); min-height: 188px; padding: 26px 24px 26px 28px; backdrop-filter: blur(18px) saturate(1.12); -webkit-backdrop-filter: blur(18px) saturate(1.12); }
.withdraw-card-head { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 13px; align-items: center; margin-bottom: 12px; }
.withdraw-card p { color: var(--muted); line-height: 1.45; margin: 0 0 24px; }
.personal-trust-main-grid .withdraw-card p { margin-bottom: 28px; }
.withdraw-card .btn { background: #fff; }
.withdraw-card .btn:hover { background: #f5f9ff; }
.withdraw-card .btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.trust-ledger-detail-panel { padding: 0; overflow: hidden; animation: loginFadeUp .32s ease-out .12s both; }
.trust-ledger-detail-panel > strong { display: block; margin-bottom: 6px; font-size: 15px; }
.trust-ledger-detail-panel .ledger-table th:last-child,
.trust-ledger-detail-panel .ledger-table td:last-child { text-align: right; }
.tabs { display: flex; gap: 24px; border-bottom: 1px solid var(--line); margin-top: 24px; overflow-x: auto; scrollbar-width: thin; }
.tab { padding: 0 0 12px; font-weight: 700; color: #174e8f; }
.tab.active { border-bottom: 4px solid #075bd8; }
.two-col { display: grid; grid-template-columns: 1.3fr .75fr; gap: 24px; }
.accounts-select-page { background: #f7f8fb; min-height: 100vh; }
.accounts-shell .account-select-wrap { width: min(1090px, 100%); }
.select-wrap { max-width: 1090px; margin: 56px auto; padding: 0 30px; }
.account-select-wrap { padding-bottom: 44px; }
.account-select-heading { margin-bottom: 36px; }
.account-select-heading .page-title { margin: 0 0 14px; font-size: 31px; line-height: 1.12; font-weight: 500; color: #101828; }
.account-select-heading p { margin: 0; color: #222b39; font-size: 16px; }
.account-list { display: grid; gap: 20px; }
.account-card { display: grid; grid-template-columns: 98px minmax(0, 1fr) 290px 32px; align-items: center; min-height: 146px; margin: 0; padding: 22px 30px; border-radius: 4px; color: var(--text); }
.account-select-card { border-color: rgba(219, 228, 240, .74); background: rgba(255,255,255,.82); box-shadow: 0 12px 30px rgba(15, 33, 57, .1); backdrop-filter: blur(18px) saturate(1.14); -webkit-backdrop-filter: blur(18px) saturate(1.14); transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease; }
.account-select-card:hover { border-color: #c6d6ec; box-shadow: 0 8px 18px rgba(15, 33, 57, .14); transform: translateY(-1px); }
.account-card-icon { width: 82px; height: 82px; border-radius: 50%; background: #0752ad; color: #fff; display: grid; place-items: center; }
.account-card-icon svg { width: 50px; height: 50px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.account-card-icon svg.filled-account-icon { fill: currentColor; stroke: none; }
.sidebar-anchor { display: block; height: 0; overflow: hidden; scroll-margin-top: 96px; }
.account-card-main { display: grid; gap: 14px; min-width: 0; }
.account-card-main strong { font-size: 21px; line-height: 1.25; color: #111827; }
.account-card-main small { font-size: 15px; color: #111827; }
.account-card-main em { width: max-content; min-height: 24px; display: inline-flex; align-items: center; border: 1px solid #c5d7ee; background: #eef5ff; color: #174e8f; padding: 0 8px; font-style: normal; font-weight: 700; font-size: 12px; }
.restricted-account { position: relative; }
.restricted-account:after { content: ""; position: absolute; inset: 0; border: 2px solid rgba(23, 78, 143, .12); pointer-events: none; }
.account-card-balance { display: grid; gap: 10px; }
.account-card-balance small { color: #1f2937; font-size: 15px; }
.account-card-balance strong { color: #111827; font-size: 28px; line-height: 1; font-weight: 500; }
.account-card-arrow { color: #0752ad; justify-self: end; display: grid; place-items: center; }
.account-card-arrow svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.selector-help { margin-top: 70px; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 18px; align-items: start; color: #111827; }
.selector-help-icon { width: 44px; height: 44px; color: #174e8f; display: grid; place-items: center; }
.selector-help-icon svg { width: 44px; height: 44px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.selector-help h2 { font-size: 21px; margin: 7px 0 12px; }
.selector-help p { margin: 0 0 42px; font-size: 16px; }
.manage-accounts-button { min-width: 206px; min-height: 54px; font-size: 16px; }
.empty-account-state { padding: 30px; }
.empty-account-state h2 { margin: 0 0 10px; }
.empty-account-state p { color: var(--muted); margin: 0 0 20px; }
.alert { padding: 13px 15px; margin-bottom: 20px; border: 1px solid #f1b8b8; background: #fff5f5; color: var(--danger); }
.success { border-color: #abd9bf; background: #f0fff5; color: var(--success); }
.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.admin-section-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.admin-section-header p { margin: 0; color: var(--muted); }
.admin-create-account { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; align-items: end; padding: 16px; margin-bottom: 22px; border: 1px solid var(--line); border-radius: 6px; background: #fbfcfe; }
.admin-create-account label { display: grid; gap: 7px; font-size: 12px; font-weight: 800; color: var(--muted); text-transform: uppercase; }
.admin-create-account input, .admin-create-account select { width: 100%; min-height: 40px; border: 1px solid #b6bfcc; border-radius: 4px; background: #fff; color: var(--text); padding: 0 10px; text-transform: none; }
.admin-create-account .admin-check { min-height: 40px; display: flex; align-items: center; gap: 8px; color: var(--text); text-transform: none; }
.admin-create-account .admin-check input { width: auto; min-height: 0; }
.mini-form { display: grid; grid-template-columns: repeat(5, minmax(90px, 1fr)) auto; gap: 8px; align-items: end; }
.mini-form input, .mini-form select { width: 100%; min-height: 38px; border: 1px solid var(--line); padding: 0 9px; }
.logout-form { margin: 0; }
.logout-button { color: #fff; background: transparent; border: 0; font-weight: 700; cursor: pointer; }
.admin-dashboard-page { background: #f3f6fa; }
.admin-topbar { position: sticky; top: 0; z-index: 50; height: 70px; background: linear-gradient(90deg, rgba(7,26,45,.96), rgba(10,49,93,.94) 58%, rgba(11,79,145,.92)); box-shadow: 0 1px 0 rgba(255,255,255,.08), 0 10px 28px rgba(7, 26, 45, .18); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.admin-menu-button { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.18); border-radius: 6px; background: rgba(255,255,255,.08); color: #fff; cursor: pointer; transition: background-color .16s ease, transform .16s ease; }
.admin-menu-button:hover, .admin-profile-button:hover { background: rgba(255,255,255,.14); transform: translateY(-1px); }
.admin-menu-button svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.admin-logo-image { width: clamp(142px, 16vw, 230px); height: 52px; }
.admin-actions { position: relative; }
.admin-profile-button { min-height: 46px; display: grid; grid-template-columns: 36px minmax(0, 1fr) 18px; align-items: center; gap: 10px; border: 1px solid rgba(255,255,255,.18); border-radius: 6px; background: rgba(255,255,255,.08); color: #fff; padding: 5px 10px 5px 6px; cursor: pointer; text-align: left; transition: background-color .16s ease, transform .16s ease; }
.admin-avatar { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.92); color: #0a315d; }
.admin-avatar svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.admin-profile-copy { min-width: 0; display: grid; gap: 2px; line-height: 1; }
.admin-profile-copy strong, .admin-profile-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-profile-copy small { color: rgba(255,255,255,.76); font-size: 12px; text-transform: capitalize; }
.admin-profile-button > svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.admin-profile-panel { top: 74px; right: 22px; }
.admin-shell { display: grid; grid-template-columns: 286px minmax(0, 1fr); min-height: calc(100vh - 70px); }
.admin-sidebar-collapsed .admin-shell { grid-template-columns: 74px minmax(0, 1fr); }
.admin-sidebar { position: sticky; top: 70px; height: calc(100vh - 70px); overflow-y: auto; padding: 22px 14px; background: linear-gradient(180deg, #091d32, #102943); color: #fff; border-right: 1px solid rgba(255,255,255,.08); }
.admin-sidebar-head { display: grid; gap: 5px; padding: 0 12px 18px; margin-bottom: 14px; border-bottom: 1px solid rgba(255,255,255,.1); }
.admin-sidebar-head strong { font-size: 18px; line-height: 1.2; }
.admin-sidebar-head span { width: max-content; max-width: 100%; min-height: 24px; display: inline-flex; align-items: center; padding: 0 8px; background: rgba(184, 135, 45, .18); border: 1px solid rgba(184, 135, 45, .45); color: #ffe3aa; font-size: 12px; font-weight: 800; text-transform: uppercase; }
.admin-side-nav { display: grid; gap: 4px; }
.admin-side-nav > span { margin: 15px 12px 6px; color: #a8b6c7; font-size: 11px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.admin-side-nav a { min-height: 42px; display: flex; align-items: center; gap: 11px; padding: 0 12px; border-radius: 6px; color: #eaf2fb; font-weight: 800; line-height: 1.1; transition: background-color .16s ease, transform .16s ease, color .16s ease; }
.admin-side-nav a svg { width: 19px; height: 19px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.85; stroke-linecap: round; stroke-linejoin: round; }
.admin-side-nav a:hover { background: rgba(255,255,255,.08); transform: translateX(2px); }
.admin-side-nav a.active { background: #fff; color: #0b315b; box-shadow: 0 8px 20px rgba(0,0,0,.18); }
.admin-sidebar-collapsed .admin-sidebar { padding-left: 10px; padding-right: 10px; }
.admin-sidebar-collapsed .admin-sidebar-head strong, .admin-sidebar-collapsed .admin-sidebar-head span, .admin-sidebar-collapsed .admin-side-nav > span { display: none; }
.admin-sidebar-collapsed .admin-side-nav a { justify-content: center; padding: 0; font-size: 0; }
.admin-sidebar-collapsed .admin-side-nav a svg { margin: 0; }
.admin-dashboard { padding: 30px clamp(20px, 3vw, 42px) 56px; }
.admin-page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 22px; margin-bottom: 22px; }
.admin-page-head .page-title { margin-bottom: 8px; font-size: 30px; letter-spacing: 0; }
.admin-page-head p { margin: 0; color: var(--muted); line-height: 1.45; }
.admin-tab-panel { display: none; }
.admin-tab-panel[hidden] { display: none !important; }
.admin-tab-panel.active { display: block; animation: loginFadeUp .2s ease-out both; }
.admin-metrics { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin-bottom: 20px; }
.admin-metrics.active { display: grid; }
.admin-metric { position: relative; padding: 18px; display: grid; gap: 8px; min-height: 128px; overflow: hidden; }
.admin-metric:before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: linear-gradient(180deg, var(--gold), var(--teal)); }
.admin-metric span { color: var(--muted); font-size: 13px; font-weight: 800; text-transform: uppercase; }
.admin-metric strong { font-size: 25px; line-height: 1.1; overflow-wrap: anywhere; }
.admin-metric small { color: var(--muted); line-height: 1.35; }
.admin-section { padding: 22px; margin-top: 0; scroll-margin-top: 92px; }
.admin-section > p { color: var(--muted); }
.admin-control-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 12px; align-items: end; padding: 16px; margin-bottom: 20px; border: 1px solid var(--line); border-radius: 6px; background: #fbfcfe; }
.admin-control-grid label, .admin-inline-form label, .admin-password-form label { display: grid; gap: 7px; font-size: 12px; font-weight: 800; color: var(--muted); text-transform: uppercase; }
.admin-control-grid input, .admin-control-grid select, .admin-inline-form input, .admin-inline-form select, .admin-password-form input { width: 100%; min-height: 38px; border: 1px solid #b6bfcc; background: #fff; color: var(--text); padding: 0 9px; text-transform: none; border-radius: 4px; }
.admin-table-scroll { width: 100%; overflow-x: auto; }
.admin-table { min-width: 980px; }
.admin-table small { color: var(--muted); }
.admin-inline-form { display: grid; grid-template-columns: repeat(3, minmax(105px, 1fr)) auto; gap: 8px; align-items: end; min-width: 520px; }
.account-admin-form { grid-template-columns: repeat(5, minmax(100px, 1fr)) auto; min-width: 850px; }
.activity-admin-form { grid-template-columns: repeat(4, minmax(100px, 1fr)) auto; min-width: 760px; }
.withdrawal-admin-form, .enrollment-admin-form { grid-template-columns: 150px minmax(180px, 1fr) auto; min-width: 420px; }
.admin-password-form { display: grid; grid-template-columns: minmax(160px, 1fr) auto; gap: 8px; align-items: end; min-width: 260px; }
.admin-form-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: end; }
.admin-form-grid label { display: grid; gap: 7px; font-size: 12px; font-weight: 800; color: var(--muted); text-transform: uppercase; }
.admin-form-grid input, .admin-form-grid select, .admin-form-grid textarea { width: 100%; min-height: 38px; border: 1px solid #b6bfcc; background: #fff; color: var(--text); padding: 0 9px; text-transform: none; border-radius: 4px; }
.admin-form-grid textarea { min-height: 118px; padding: 11px; resize: vertical; line-height: 1.45; }
.admin-form-grid .wide { grid-column: span 2; }
.admin-two-col { display: contents; }
.rate-card { display: grid; gap: 8px; margin-bottom: 18px; padding: 16px; border: 1px solid #c9d8eb; border-radius: 6px; background: linear-gradient(180deg, #fff, #f8fbff); }
.rate-card span { color: var(--muted); font-weight: 800; text-transform: uppercase; font-size: 12px; }
.rate-card strong { font-size: 32px; }
.rate-card small, .rate-card em { color: var(--muted); line-height: 1.45; }
.rate-card em { color: var(--danger); font-style: normal; font-weight: 800; }
.email-config-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.email-test-form { margin-top: 8px; padding-top: 18px; border-top: 1px solid var(--line); }

@keyframes loginCardIn {
  from { opacity: 0; transform: translateY(18px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes loginFadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes loginFadeDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes loginBackgroundDrift {
  from { background-position: center center; }
  to { background-position: center 46%; }
}

@media (max-height: 820px) and (min-width: 851px) {
  .login-page { grid-template-rows: 78px minmax(0, 1fr) 58px; }
  .login-header { height: 78px; }
  .login-main { row-gap: 18px; padding-top: 4px; }
  .login-card { padding-top: 28px; }
  .login-card p { margin-bottom: 20px; }
  .field { margin-bottom: 16px; }
  .login-action-row { min-height: 58px; }
  .login-help p { margin-bottom: 14px; }
  .login-footer { padding-bottom: 18px; }
}

@media (max-width: 1100px) {
  .login-footer { align-items: flex-start; flex-direction: column; }
  .login-footer nav { gap: 20px; }
  .enroll-shell { grid-template-columns: 1fr; }
  .enroll-hero { position: static; }
  .enroll-hero h1 { font-size: 32px; }
  .recovery-shell { grid-template-columns: 1fr; align-items: start; }
  .recovery-assurance { max-width: 580px; }
  .admin-login-shell { grid-template-columns: 1fr; align-items: start; }
  .admin-login-assurance { max-width: 580px; }
  .admin-shell { grid-template-columns: 236px minmax(0, 1fr); }
  .admin-sidebar { padding-left: 10px; padding-right: 10px; }
  .admin-create-account { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .detail-balance-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .personal-trust-balance-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .client-trust-balance-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-actions-panel { grid-column: span 2; }
  .personal-trust-main-grid { grid-template-columns: 1fr; }
  .admin-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .admin-control-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .admin-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-two-col { grid-template-columns: 1fr; }
  .email-config-grid { grid-template-columns: 1fr; }
}

@media (max-width: 850px) {
  .topbar { padding: 0 14px; }
  .brand { font-size: 18px; }
  .nav-actions { gap: 12px; font-size: 13px; }
  .app-topbar { height: 72px; min-height: 72px; gap: 10px; align-items: center; padding: 0 14px; flex-direction: row; }
  .app-brand { flex: 1 1 auto; min-width: 0; justify-content: flex-start; gap: 10px; }
  .brand-lockup { min-width: 0; font-size: 20px; gap: 9px; }
  .brand-logo-image { width: clamp(138px, 34vw, 190px); height: 46px; }
  .login-logo-image { width: clamp(190px, 46vw, 280px); height: 58px; }
  .business-lockup-text { min-height: 26px; padding-left: 8px; font-size: 12px; }
  .brand-lockup .mark { width: 24px; height: 24px; border-width: 3px; }
  .app-nav-actions { flex: 0 0 auto; width: auto; justify-content: flex-end; gap: 6px; }
  .top-icon-button { width: 34px; height: 34px; }
  .top-icon-button svg { width: 25px; height: 25px; }
  .company-switcher { min-width: 34px; max-width: 34px; width: 34px; height: 34px; display: grid; grid-template-columns: 1fr; place-items: center; overflow: hidden; }
  .company-switcher span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .company-switcher svg { width: 23px; height: 23px; }
  .profile-button { width: 36px; height: 36px; }
  .profile-button svg { width: 25px; height: 25px; }
  .header-panel { top: 76px; right: 12px; left: 12px; width: auto; }
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; inset: 72px auto 0 0; z-index: 35; width: min(280px, 84vw); transform: translateX(-100%); transition: transform .18s ease; box-shadow: 14px 0 34px rgba(0,0,0,.22); }
  .sidebar-open .sidebar { transform: translateX(0); }
  .sidebar-collapsed .app-shell { grid-template-columns: 1fr; }
  .sidebar-collapsed .side-link { justify-content: flex-start; padding: 0 22px; }
  .sidebar-collapsed .side-link span { position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: nowrap; }
  .side-link { min-height: 54px; padding: 0 22px; gap: 13px; }
  .side-link span { white-space: normal; overflow: visible; text-overflow: clip; }
  .content, .dashboard-content { padding: 22px 18px 38px; }
  .personal-trust-detail-content { padding-left: 18px; padding-right: 18px; }
  .account-detail-content { padding-top: 0; }
  .detail-topline { margin: 0 -18px 20px; padding: 0 18px; min-height: 62px; align-items: flex-start; justify-content: center; flex-direction: column; gap: 2px; }
  .account-hero { grid-template-columns: 62px minmax(0, 1fr); align-items: start; }
  .account-hero .avatar { width: 62px; height: 62px; }
  .account-hero .avatar svg { width: 38px; height: 38px; }
  .account-hero-actions { grid-column: 1 / -1; width: 100%; justify-content: flex-start; flex-wrap: wrap; }
  .detail-balance-grid { grid-template-columns: 1fr; }
  .personal-trust-balance-grid { grid-template-columns: 1fr; }
  .client-trust-balance-grid { grid-template-columns: 1fr; }
  .detail-actions-panel { grid-column: auto; }
  .detail-activity-panel { padding: 18px; }
  .dashboard-page-head { margin: -22px -18px 18px; padding: 11px 18px; min-height: 62px; align-items: flex-start; flex-direction: column; justify-content: center; gap: 4px; }
  .dashboard-toolbar { flex-direction: column; }
  .dashboard-tools { width: 100%; padding-top: 0; margin-left: 0; justify-content: flex-start; flex-wrap: wrap; gap: 14px; }
  .account-filter { width: min(100%, 280px); }
  .balance-grid, .two-col, .admin-grid { grid-template-columns: 1fr; }
  .metric { border-right: 0; border-bottom: 1px solid var(--line); padding: 24px 22px; }
  .withdraw-form { grid-template-columns: 1fr; }
  .select-wrap { margin: 34px auto; padding: 0 18px; }
  .account-select-heading { margin-bottom: 28px; }
  .account-card { grid-template-columns: 78px minmax(0, 1fr) 28px; gap: 14px; min-height: 132px; padding: 20px; }
  .account-card-icon { width: 66px; height: 66px; }
  .account-card-icon svg { width: 40px; height: 40px; }
  .account-card-balance { grid-column: 2 / 3; }
  .account-card-arrow { grid-column: 3; grid-row: 1 / span 2; }
  .selector-help { margin-top: 48px; }
  .selector-help p { margin-bottom: 26px; }
  .admin-create-account { grid-template-columns: 1fr 1fr; }
  .admin-topbar { position: relative; height: auto; min-height: 70px; align-items: flex-start; gap: 12px; padding-top: 14px; padding-bottom: 14px; }
  .admin-brand { align-items: flex-start; white-space: normal; line-height: 1.15; }
  .admin-actions { flex-wrap: wrap; justify-content: flex-end; }
  .admin-profile-copy { display: none; }
  .admin-profile-button { grid-template-columns: 36px 18px; }
  .admin-profile-panel { top: 76px; right: 12px; }
  .admin-shell { grid-template-columns: 1fr; min-height: auto; }
  .admin-sidebar-collapsed .admin-shell { grid-template-columns: 1fr; }
  .admin-sidebar { position: relative; top: auto; height: auto; padding: 12px 14px; overflow: visible; }
  .admin-sidebar-collapsed .admin-sidebar { display: none; }
  .admin-sidebar-head { grid-template-columns: 1fr auto; align-items: center; margin-bottom: 10px; padding: 0 6px 10px; }
  .admin-side-nav { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
  .admin-side-nav > span { display: none; }
  .admin-side-nav a { flex: 0 0 auto; min-height: 40px; padding: 0 12px; white-space: nowrap; }
  .admin-side-nav a:hover { transform: translateY(-1px); }
  .admin-dashboard { padding: 22px 18px 44px; }
  .admin-page-head { flex-direction: column; }
  .admin-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-control-grid { grid-template-columns: 1fr 1fr; }
  .email-config-grid { grid-template-columns: 1fr; }
  .mini-form { grid-template-columns: 1fr; }
  .login-page { grid-template-rows: auto 1fr auto; min-height: 100svh; animation: none; }
  .login-header { height: auto; padding: 22px 18px; align-items: flex-start; gap: 18px; flex-direction: column; }
  .login-brand { font-size: 22px; }
  .login-utility { gap: 13px; font-size: 14px; flex-wrap: wrap; }
  .login-main { align-content: start; padding: 10px 16px 24px; }
  .login-card { padding: 30px 24px 0; }
  .login-footer { padding: 0 18px 22px; align-items: flex-start; flex-direction: column; }
  .login-footer nav { gap: 16px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .wide { grid-column: auto; }
  .choice-row { grid-template-columns: 1fr; }
  .form-section { padding: 18px; }
  .enroll-shell { width: min(100% - 28px, 760px); padding-top: 10px; }
  .enroll-card { padding: 18px; }
  .stepper { grid-template-columns: 1fr; }
  .stepper li { justify-content: flex-start; padding: 0 14px; border-right: 0; border-bottom: 1px solid var(--line); }
  .stepper li:last-child { border-bottom: 0; }
  .review-grid { grid-template-columns: 1fr; }
  .recovery-page { grid-template-rows: auto 1fr; }
  .recovery-shell { width: min(100% - 28px, 620px); padding-top: 10px; }
  .recovery-options { grid-template-columns: 1fr; }
  .admin-login-page { grid-template-rows: auto 1fr; }
  .admin-login-shell { width: min(100% - 28px, 620px); padding-top: 10px; }
  .accounts-overview-table { min-width: 640px; }
  .activity-table { min-width: 620px; }
}

@media (max-width: 520px) {
  .top-icon-button { width: 34px; height: 34px; }
  .brand-lockup { font-size: 18px; white-space: nowrap; }
  .brand-lockup span:last-child { display: none; }
  .brand-lockup .business-lockup-text { display: inline-flex; }
  .app-nav-actions [data-menu-toggle="search-panel"] { display: none; }
  .profile-button { width: 36px; height: 36px; }
  .app-nav-actions { gap: 4px; }
  .notification-button:after { right: -1px; top: 0; }
  .ledger-table { min-width: 360px; }
  .ledger-balance-col { width: 145px; }
  .account-details-card .table th, .account-details-card .table td { padding-left: 12px; padding-right: 12px; }
  .metric { padding: 22px 18px; }
  .metric-value { font-size: 24px; }
  .metric-note { font-size: 13px; align-items: flex-start; }
  .tasks { padding: 20px 18px; }
  .task-links a, .floating-action-menu a { min-height: 34px; }
  .tabs { gap: 18px; }
  .tab { flex: 0 0 auto; }
  .floating-action-menu { left: 0; right: auto; width: min(260px, calc(100vw - 36px)); }
  .account-select-heading .page-title { font-size: 28px; }
  .account-hero-title h1 { font-size: 22px; }
  .account-hero-actions .btn { flex: 1 1 150px; }
  .detail-topline { font-size: 12px; }
  .back-to-accounts { min-height: 34px; }
  .account-card { grid-template-columns: 58px minmax(0, 1fr) 24px; padding: 18px 14px; }
  .account-card-icon { width: 54px; height: 54px; }
  .account-card-icon svg { width: 34px; height: 34px; }
  .account-card-main strong { font-size: 17px; }
  .account-card-balance strong { font-size: 23px; }
  .selector-help { grid-template-columns: 38px minmax(0, 1fr); }
  .selector-help-icon, .selector-help-icon svg { width: 38px; height: 38px; }
  .manage-accounts-button { width: 100%; }
  .admin-create-account { grid-template-columns: 1fr; }
  .admin-metrics { grid-template-columns: 1fr; }
  .admin-section { padding: 18px; }
  .admin-control-grid { grid-template-columns: 1fr; }
  .admin-form-grid { grid-template-columns: 1fr; }
  .admin-form-grid .wide { grid-column: auto; }
  .login-brand { gap: 10px; font-size: 19px; white-space: normal; }
  .login-brand { align-items: center; }
  .brand-lockup { gap: 8px; }
  .brand-logo-image { width: 132px; height: 42px; }
  .login-logo-image { width: 178px; height: 52px; }
  .business-lockup-text { font-size: 11px; }
  .login-mark { width: 26px; height: 26px; border-width: 3px; flex: 0 0 auto; }
  .login-utility span { height: 18px; }
  .login-card { width: 100%; border-radius: 4px; }
  .login-card h1 { font-size: 27px; }
  .login-card p { font-size: 15px; margin-bottom: 22px; }
  .login-input { grid-template-columns: 42px minmax(0, 1fr) 42px; }
  .login-input input { font-size: 16px; }
  .login-action-row { grid-template-columns: 34px minmax(0, 1fr) 20px; font-size: 15px; min-height: 62px; }
  .login-help { grid-template-columns: 34px minmax(0, 1fr); }
  .security-button { width: 100%; }
}

@media (max-width: 430px) {
  .app-topbar { padding: 0 10px; gap: 6px; }
  .brand-lockup { font-size: 16px; gap: 7px; }
  .brand-logo-image { width: 116px; height: 38px; }
  .login-logo-image { width: 156px; height: 48px; }
  .business-lockup-text { padding-left: 7px; }
  .brand-lockup .mark { width: 21px; height: 21px; }
  .top-icon-button { width: 32px; height: 32px; }
  .top-icon-button svg { width: 23px; height: 23px; }
  .company-switcher { display: none; }
  .profile-button { width: 34px; height: 34px; }
  .dashboard-page-head .page-title { font-size: 22px; }
  .section-title { font-size: 19px; }
  .account-filter { width: 100%; }
  .dashboard-tools .link-tool { min-height: 34px; }
  .detail-balance-grid .metric { min-height: auto; }
  .account-hero-actions .btn { min-width: 0; padding: 0 14px; }
}

@media (max-width: 360px) {
  .brand-lockup .mark { display: none; }
  .app-nav-actions { gap: 2px; }
  .side-link { padding: 0 18px; }
  .account-card-balance strong { font-size: 21px; }
}

@media print {
  .topbar, .sidebar, .dashboard-tools, .dashboard-customizer, .header-panel, .withdraw-panel, .floating-action-menu { display: none !important; }
  .app-shell { display: block; min-height: auto; }
  .content, .dashboard-content { padding: 0; }
  .dashboard-page-head { margin: 0 0 18px; padding: 0 0 12px; }
  .panel, .table { box-shadow: none; }
  body { background: #fff; }
}

/* Final responsive banking polish */
.dashboard-page,
.account-detail-page,
.accounts-select-page,
.admin-dashboard-page {
  background:
    linear-gradient(180deg, rgba(246, 249, 252, .96), rgba(238, 243, 249, .96)),
    linear-gradient(135deg, rgba(184, 135, 45, .08), rgba(15, 118, 110, .08));
}

.dashboard-page-head,
.detail-topline,
.dashboard-toolbar,
.account-select-heading {
  position: relative;
}

.dashboard-page-head,
.detail-topline {
  background: rgba(255,255,255,.54);
  backdrop-filter: blur(16px) saturate(1.08);
  -webkit-backdrop-filter: blur(16px) saturate(1.08);
}

.dashboard-toolbar {
  padding: 18px;
  border: 1px solid var(--glass-line);
  border-radius: 8px;
  background: rgba(255,255,255,.64);
  box-shadow: 0 8px 24px rgba(15, 33, 57, .06);
  backdrop-filter: blur(16px) saturate(1.1);
  -webkit-backdrop-filter: blur(16px) saturate(1.1);
}

.overview-card,
.detail-balance-grid,
.personal-trust-balance-grid,
.client-trust-balance-grid {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 14px 36px rgba(15, 33, 57, .09);
}

.metric {
  background: linear-gradient(180deg, rgba(255,255,255,.82), rgba(247,250,253,.72));
}

.metric-label {
  font-weight: 800;
}

.metric-value {
  color: #0d1f35;
  font-weight: 700;
  letter-spacing: 0;
}

.metric-note {
  width: max-content;
  max-width: 100%;
  min-height: 28px;
  padding: 0 9px;
  border: 1px solid rgba(184,135,45,.22);
  border-radius: 999px;
  background: rgba(184,135,45,.08);
  color: #5d4a22;
  font-weight: 800;
}

.accounts-overview-table tbody tr,
.admin-table tbody tr,
.activity-table tbody tr,
.ledger-table tbody tr {
  transition: background-color .16s ease, box-shadow .16s ease;
}

.accounts-overview-table tbody tr:hover,
.admin-table tbody tr:hover,
.activity-table tbody tr:hover,
.ledger-table tbody tr:hover {
  background: rgba(238,245,255,.7);
}

.accounts-overview-table a,
.selected-account-head h2,
.account-card-main strong {
  color: #0b407f;
}

.account-card {
  background:
    linear-gradient(120deg, rgba(255,255,255,.88), rgba(247,250,253,.76)),
    linear-gradient(135deg, rgba(184,135,45,.08), rgba(15,118,110,.06));
}

.account-card-icon,
.avatar {
  box-shadow: inset 0 -10px 18px rgba(0,0,0,.12), 0 10px 20px rgba(7,82,173,.16);
  background: linear-gradient(145deg, #064b9f, #092f68);
}

.selected-account-panel {
  padding: 20px;
  border: 1px solid var(--glass-line);
  border-radius: 8px;
  background: rgba(255,255,255,.54);
  box-shadow: 0 12px 30px rgba(15,33,57,.07);
  backdrop-filter: blur(16px) saturate(1.08);
  -webkit-backdrop-filter: blur(16px) saturate(1.08);
}

.account-details-card {
  background: rgba(255,255,255,.78);
}

.account-details-card-head {
  background: rgba(255,255,255,.7);
}

.tabs {
  margin-top: 18px;
}

.app-topbar {
  background: linear-gradient(90deg, rgba(5, 42, 93, .98), rgba(7, 88, 183, .96));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.sidebar {
  background: linear-gradient(180deg, rgba(9, 29, 50, .98), rgba(13, 33, 54, .96));
}

.panel,
.account-select-card,
.withdraw-card,
.withdraw-panel,
.login-card,
.admin-login-card,
.enroll-card,
.recovery-card {
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.account-select-card:hover,
.withdraw-card:hover,
.withdraw-panel:hover,
.admin-metric:hover {
  transform: translateY(-2px);
}

.login-input,
.form-grid input,
.form-grid select,
.admin-control-grid input,
.admin-control-grid select,
.admin-create-account input,
.admin-create-account select,
.admin-form-grid input,
.admin-form-grid textarea,
.admin-inline-form input,
.admin-inline-form select,
.admin-password-form input {
  background: rgba(255,255,255,.9);
}

.admin-dashboard-page .alert,
.dashboard-page .alert,
.account-detail-page .alert,
.accounts-select-page .alert {
  border-radius: 6px;
  box-shadow: 0 8px 20px rgba(15, 33, 57, .08);
}

@media (max-width: 760px) {
  .login-page,
  .admin-login-page,
  .recovery-page,
  .enroll-page {
    background-position: center;
  }

  .admin-login-shell,
  .recovery-shell,
  .enroll-shell {
    padding-bottom: 34px;
  }

  .admin-login-assurance,
  .recovery-assurance,
  .enroll-hero {
    display: none;
  }

  .admin-login-card,
  .recovery-card,
  .enroll-card,
  .login-card {
    box-shadow: 0 14px 34px rgba(0,0,0,.22);
  }

  .admin-table-scroll,
  .accounts-table-wrap,
  .detail-activity-panel,
  .account-details-card {
    -webkit-overflow-scrolling: touch;
  }

  .admin-table-scroll::after,
  .accounts-table-wrap::after,
  .detail-activity-panel::after {
    content: "";
    display: block;
    width: 1px;
    height: 1px;
  }

  .admin-section-header {
    display: grid;
    gap: 8px;
  }

  .admin-section-header p,
  .admin-page-head p {
    font-size: 14px;
  }
}

@media (max-width: 640px) {
  .login-header,
  .admin-login-header {
    padding: 18px 16px 12px;
  }

  .login-utility {
    width: 100%;
    gap: 10px;
    font-size: 13px;
  }

  .login-utility span {
    height: 16px;
  }

  .login-main {
    grid-template-rows: auto auto;
    row-gap: 18px;
  }

  .login-help {
    align-items: start;
    padding: 0 2px;
  }

  .login-footer {
    font-size: 12px;
  }

  .login-footer nav {
    gap: 12px 16px;
  }

  .admin-topbar {
    align-items: center;
  }

  .admin-brand {
    gap: 8px;
    font-size: 16px;
  }

  .admin-brand .mark {
    width: 22px;
    height: 22px;
    border-width: 3px;
  }

  .admin-menu-button {
    width: 36px;
    height: 36px;
  }

  .admin-dashboard {
    padding: 18px 14px 36px;
  }

  .admin-page-head .page-title {
    font-size: 24px;
  }

  .admin-side-nav a {
    min-height: 42px;
    font-size: 13px;
  }

  .admin-table {
    min-width: 840px;
  }

  .account-admin-form,
  .activity-admin-form {
    min-width: 720px;
  }

  .withdrawal-admin-form,
  .enrollment-admin-form {
    min-width: 360px;
  }

  .dashboard-content,
  .content {
    padding-left: 14px;
    padding-right: 14px;
  }

  .dashboard-page-head,
  .detail-topline {
    margin-left: -14px;
    margin-right: -14px;
    padding-left: 14px;
    padding-right: 14px;
  }
}

@media (max-width: 480px) {
  .login-brand strong,
  .brand-lockup strong,
  .admin-brand strong {
    letter-spacing: .2px;
  }

  .login-utility a {
    min-height: 28px;
    display: inline-flex;
    align-items: center;
  }

  .admin-brand span:last-child {
    display: none;
  }

  .admin-profile-button {
    padding-right: 7px;
  }

  .admin-profile-panel {
    left: 12px;
    right: 12px;
    width: auto;
  }

  .admin-section {
    padding: 16px;
  }

  .admin-metric {
    min-height: 112px;
  }

  .admin-metric strong {
    font-size: 22px;
  }

  .rate-card strong {
    font-size: 24px;
  }

  .account-card {
    border-radius: 6px;
  }

  .account-card-main {
    gap: 8px;
  }

  .account-card-balance small {
    font-size: 13px;
  }

  .account-hero {
    gap: 12px;
  }

  .account-hero-actions .btn,
  .compact-action {
    min-height: 42px;
  }

  .balance-grid,
  .detail-balance-grid {
    gap: 10px;
  }

  .metric {
    border: 1px solid var(--glass-line);
    border-radius: 6px;
    background: rgba(255,255,255,.72);
  }
}

@media (max-width: 380px) {
  .login-brand,
  .admin-brand,
  .brand-lockup {
    font-size: 15px;
  }

  .login-brand span:last-child {
    display: none;
  }

  .login-brand .business-lockup-text,
  .brand-lockup .business-lockup-text,
  .admin-brand .business-lockup-text {
    display: inline-flex;
  }

  .admin-menu-button,
  .top-icon-button,
  .profile-button {
    width: 32px;
    height: 32px;
  }

  .admin-avatar {
    width: 30px;
    height: 30px;
  }

  .admin-profile-button {
    grid-template-columns: 30px 16px;
    gap: 6px;
  }

  .login-card,
  .admin-login-card,
  .recovery-card,
  .enroll-card {
    padding-left: 18px;
    padding-right: 18px;
  }

  .login-action-row {
    gap: 9px;
  }

  .account-card {
    grid-template-columns: 50px minmax(0, 1fr) 20px;
    gap: 10px;
  }

  .admin-dashboard {
    padding-left: 10px;
    padding-right: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .001ms !important;
  }
}

/* Premium refinement pass */
:root {
  --lux-navy: #071a2d;
  --lux-blue: #0b4f9f;
  --lux-royal: #0f63c9;
  --lux-gold: #d2b16b;
  --lux-paper: #f4f7fb;
}

.app-topbar {
  height: 92px;
  padding: 0 30px;
  background:
    linear-gradient(90deg, rgba(6, 24, 43, .98), rgba(8, 59, 118, .96) 48%, rgba(14, 91, 184, .96)),
    radial-gradient(circle at 68% 0%, rgba(210,177,107,.24), transparent 32%);
  border-bottom: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 14px 38px rgba(4, 18, 35, .18);
}

.brand-lockup,
.login-brand {
  min-width: 0;
}

.brand-logo-image,
.login-logo-image,
.admin-logo-image {
  padding: 6px 10px;
  border: 1px solid rgba(255,255,255,.78);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(244,247,251,.94));
  box-shadow: 0 10px 24px rgba(0,0,0,.22), inset 0 0 0 1px rgba(210,177,107,.18);
  filter: none;
}

.brand-logo-image {
  width: clamp(190px, 22vw, 330px);
  height: 66px;
}

.login-logo-image {
  width: clamp(240px, 32vw, 430px);
  height: 82px;
}

.admin-logo-image {
  width: clamp(180px, 20vw, 310px);
  height: 62px;
}

.business-lockup-text {
  min-height: 44px;
  border-left-color: rgba(210,177,107,.58);
  color: #fff;
  font-size: 18px;
  letter-spacing: .12em;
}

.app-brand {
  gap: 28px;
}

.top-icon-button,
.company-switcher,
.profile-button,
.admin-menu-button,
.admin-profile-button {
  border-radius: 8px;
}

.top-icon-button {
  background: rgba(255,255,255,.06);
}

.top-icon-button:hover,
.company-switcher:hover,
.profile-button:hover {
  background: rgba(255,255,255,.14);
}

.profile-button {
  background: rgba(255,255,255,.96);
  color: var(--lux-blue);
  box-shadow: 0 10px 24px rgba(0,0,0,.16);
}

.company-switcher {
  min-height: 48px;
  padding: 0 12px;
  background: rgba(255,255,255,.06);
}

.sidebar {
  background:
    linear-gradient(180deg, rgba(6, 24, 43, .98), rgba(10, 35, 58, .98)),
    radial-gradient(circle at 0% 0%, rgba(210,177,107,.16), transparent 38%);
  border-right: 1px solid rgba(255,255,255,.08);
  box-shadow: 12px 0 30px rgba(7, 26, 45, .12);
}

.side-link {
  min-height: 58px;
  margin: 4px 10px;
  width: calc(100% - 20px);
  border-radius: 8px;
  font-size: 15px;
}

.side-link.active {
  background: linear-gradient(90deg, rgba(11,79,159,.98), rgba(15,99,201,.9));
  box-shadow: 0 10px 22px rgba(5, 38, 84, .24);
}

.side-link:hover {
  background: rgba(255,255,255,.1);
  transform: translateX(2px);
}

.accounts-select-page .app-shell,
.dashboard-page .app-shell,
.account-detail-page .app-shell {
  background:
    radial-gradient(circle at 94% 6%, rgba(15,99,201,.1), transparent 30%),
    radial-gradient(circle at 26% 88%, rgba(210,177,107,.12), transparent 34%),
    linear-gradient(180deg, #f7f9fc, #eef3f8);
}

.select-wrap {
  max-width: 1220px;
  margin: 0 auto;
  padding: 74px clamp(22px, 5vw, 70px) 54px;
}

.account-select-heading {
  margin-bottom: 34px;
  padding: 0 0 20px;
}

.account-select-heading .page-title {
  font-size: clamp(34px, 4vw, 54px);
  font-weight: 800;
  letter-spacing: -.01em;
  color: #0c172a;
}

.account-select-heading p {
  color: #475569;
  font-size: 18px;
}

.account-list {
  gap: 24px;
}

.account-card {
  position: relative;
  isolation: isolate;
  grid-template-columns: 112px minmax(0, 1fr) minmax(220px, 330px) 42px;
  min-height: 164px;
  padding: 28px 34px;
  border: 1px solid rgba(190,204,222,.82);
  border-radius: 10px;
  overflow: hidden;
  background:
    linear-gradient(120deg, rgba(255,255,255,.92), rgba(246,249,253,.84)),
    radial-gradient(circle at 92% 10%, rgba(15,99,201,.12), transparent 34%),
    radial-gradient(circle at 8% 100%, rgba(210,177,107,.13), transparent 36%);
  box-shadow: 0 22px 54px rgba(15, 33, 57, .12);
}

.account-card:before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: linear-gradient(180deg, var(--lux-gold), var(--lux-royal));
  opacity: .9;
  z-index: -1;
}

.account-card:after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 9px;
  background: linear-gradient(135deg, rgba(255,255,255,.56), transparent 42%);
  pointer-events: none;
  z-index: -1;
}

.account-select-card:hover {
  border-color: rgba(15,99,201,.42);
  box-shadow: 0 28px 70px rgba(15, 33, 57, .18);
  transform: translateY(-3px);
}

.account-card-icon {
  width: 86px;
  height: 86px;
  background: linear-gradient(145deg, #083f86, #061e40);
  box-shadow: inset 0 -12px 22px rgba(0,0,0,.16), 0 16px 26px rgba(7,82,173,.22);
}

.account-card-icon svg {
  width: 52px;
  height: 52px;
}

.account-card-main strong {
  color: #073b79;
  font-size: 24px;
  font-weight: 800;
}

.account-card-main small {
  color: #1f2937;
  font-weight: 700;
}

.account-card-main em,
.restricted-pill,
.restricted-inline {
  border-color: rgba(210,177,107,.48);
  background: rgba(210,177,107,.14);
  color: #6c5012;
}

.account-card-balance {
  justify-self: end;
  min-width: 0;
}

.account-card-balance small {
  color: #475569;
  font-weight: 800;
}

.account-card-balance strong {
  color: #081427;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -.01em;
}

.account-card-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(15,99,201,.08);
  color: #0b4f9f;
}

.selector-help {
  width: min(820px, 100%);
  margin-top: 72px;
  padding: 24px;
  border: 1px solid rgba(190,204,222,.72);
  border-radius: 10px;
  background: rgba(255,255,255,.58);
  box-shadow: 0 14px 40px rgba(15,33,57,.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.manage-accounts-button {
  background: rgba(255,255,255,.84);
}

.dashboard-toolbar,
.overview-card,
.selected-account-panel,
.account-details-card,
.withdraw-panel,
.detail-balance-grid,
.personal-trust-balance-grid,
.client-trust-balance-grid {
  border-radius: 10px;
  box-shadow: 0 18px 48px rgba(15,33,57,.1);
}

.dashboard-toolbar {
  margin-bottom: 20px;
}

.balance-grid {
  gap: 0;
  overflow: hidden;
}

.tasks {
  border-left: 1px solid rgba(190,204,222,.6);
}

.login-page,
.recovery-page,
.enroll-page {
  background-image:
    linear-gradient(135deg, rgba(5,16,30,.5), rgba(8,38,72,.48)),
    radial-gradient(circle at 16% 18%, rgba(210,177,107,.22), transparent 34%),
    url("https://images.unsplash.com/photo-1500534314209-a25ddb2bd429?auto=format&fit=crop&w=2200&q=85");
}

.admin-login-page {
  background-image:
    linear-gradient(135deg, rgba(5,16,30,.72), rgba(8,38,72,.62)),
    radial-gradient(circle at 18% 18%, rgba(210,177,107,.2), transparent 34%),
    url("https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=2200&q=85");
}

.login-card,
.admin-login-card,
.recovery-card,
.enroll-card {
  border-radius: 10px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 28px 70px rgba(0,0,0,.28);
}

.login-input {
  border-radius: 6px;
}

.login-action-row,
.admin-action-row {
  border-radius: 6px;
  padding: 0 8px;
}

@media (max-width: 1100px) {
  .brand-logo-image { width: 190px; }
  .account-card { grid-template-columns: 94px minmax(0, 1fr) minmax(180px, 270px) 38px; }
  .account-card-balance strong { font-size: 28px; }
}

@media (max-width: 850px) {
  .app-topbar { height: 76px; min-height: 76px; padding: 0 14px; }
  .brand-logo-image { width: 154px; height: 48px; padding: 5px 8px; }
  .business-lockup-text { min-height: 32px; font-size: 12px; }
  .select-wrap { padding-top: 40px; }
  .account-card { grid-template-columns: 72px minmax(0, 1fr) 32px; padding: 22px 18px; }
  .account-card-icon { width: 64px; height: 64px; }
  .account-card-icon svg { width: 40px; height: 40px; }
  .account-card-main strong { font-size: 19px; }
  .account-card-balance { justify-self: start; }
  .account-card-balance strong { font-size: 25px; }
  .selector-help { margin-top: 48px; padding: 20px; }
  .sidebar { inset: 76px auto 0 0; }
}

@media (max-width: 520px) {
  .brand-logo-image { width: 118px; height: 40px; padding: 4px 6px; }
  .login-logo-image { width: 190px; height: 58px; }
  .business-lockup-text { font-size: 10px; padding-left: 7px; }
  .account-select-heading .page-title { font-size: 32px; }
  .account-select-heading p { font-size: 16px; }
  .account-card { grid-template-columns: 56px minmax(0, 1fr) 28px; gap: 12px; padding: 18px 14px; }
  .account-card-icon { width: 52px; height: 52px; }
  .account-card-icon svg { width: 34px; height: 34px; }
  .account-card-main strong { font-size: 17px; }
  .account-card-balance strong { font-size: 22px; }
  .selector-help { grid-template-columns: 34px minmax(0, 1fr); }
}

@media (max-width: 380px) {
  .brand-logo-image { width: 94px; }
  .business-lockup-text { display: none !important; }
}

/* Direction reset: cleaner brand, auth, sidebar, and unfinished page flow */
.brand-logo-image,
.login-logo-image,
.admin-logo-image {
  display: none !important;
}

.brand-logo-icon {
  width: 42px;
  height: 42px;
  object-fit: contain;
  flex: 0 0 auto;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,.35)) drop-shadow(0 0 10px rgba(210,177,107,.18));
}

.login-logo-icon {
  width: 52px;
  height: 52px;
}

.admin-logo-icon {
  width: 42px;
  height: 42px;
}

.brand-wordmark {
  color: #fff;
  font-size: clamp(21px, 2.1vw, 30px);
  font-weight: 850 !important;
  line-height: 1;
  letter-spacing: .01em;
  text-shadow: 0 2px 10px rgba(0,0,0,.28);
}

.login-brand .brand-wordmark {
  font-size: clamp(26px, 3vw, 38px);
}

.business-lockup-text {
  min-height: 34px;
  padding: 0 0 0 14px;
  border-left: 1px solid rgba(210,177,107,.65);
  color: rgba(255,255,255,.92);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: .14em;
}

.app-topbar,
.admin-topbar {
  background:
    linear-gradient(90deg, #061827 0%, #082b53 44%, #0d56a8 100%),
    radial-gradient(circle at 70% 0%, rgba(210,177,107,.16), transparent 32%);
}

.login-page,
.recovery-page,
.enroll-page,
.admin-login-page {
  background-color: #071827;
  background-image:
    linear-gradient(135deg, rgba(4,14,26,.56), rgba(7,35,68,.52)),
    radial-gradient(circle at 18% 14%, rgba(210,177,107,.16), transparent 28%),
    url("https://images.unsplash.com/photo-1500534314209-a25ddb2bd429?auto=format&fit=crop&w=2200&q=85");
}

.admin-login-page {
  background-image:
    linear-gradient(135deg, rgba(4,14,26,.7), rgba(7,35,68,.58)),
    radial-gradient(circle at 18% 14%, rgba(210,177,107,.16), transparent 28%),
    url("https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=2200&q=85");
}

.login-header {
  padding-inline: clamp(18px, 4vw, 54px);
}

.login-card,
.admin-login-card,
.recovery-card,
.enroll-card,
.simple-panel {
  border: 1px solid rgba(225,232,242,.86);
  border-radius: 8px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 26px 70px rgba(0,0,0,.28);
}

.login-card {
  width: min(520px, calc(100vw - 32px));
  padding: 34px 38px 0;
}

.login-card h1,
.admin-login-card h1,
.recovery-card h1 {
  color: #0d1728;
  font-size: clamp(30px, 3vw, 40px);
  font-weight: 850;
  letter-spacing: -.01em;
}

.login-card p,
.admin-login-card p,
.recovery-card p {
  color: #516173;
  font-size: 16px;
}

.field label {
  color: #1d2939;
  font-size: 14px;
  font-weight: 850;
}

.login-input {
  height: 56px;
  border: 1px solid #c3ceda;
  border-radius: 6px;
  background: linear-gradient(180deg, #fff, #fbfcfe);
  grid-template-columns: 50px minmax(0, 1fr) 50px;
}

.login-input:focus-within {
  border-color: #0d56a8;
  box-shadow: 0 0 0 3px rgba(13,86,168,.12);
}

.login-input-icon {
  color: #0d56a8;
}

.login-input svg {
  stroke: currentColor;
}

.login-input input::placeholder {
  color: #8a96a6;
}

.show-password {
  color: #0b4f9f;
  font-weight: 850;
}

.signin-button,
.btn-primary {
  min-height: 54px;
  border-color: #0b4f9f;
  background: linear-gradient(180deg, #126bd1, #0a4f9e);
  box-shadow: 0 12px 24px rgba(13,86,168,.22);
  font-weight: 850;
}

.signin-button:hover,
.btn-primary:hover {
  background: linear-gradient(180deg, #1a74da, #0b4f9f);
}

.login-action-row,
.admin-action-row {
  min-height: 68px;
  margin-inline: -8px;
  padding-inline: 8px;
  color: #0b4f9f;
}

.login-action-row strong,
.admin-action-row strong {
  font-weight: 850;
}

.login-row-icon,
.admin-action-row span,
.recovery-icon,
.admin-login-badge {
  border-radius: 6px;
  background: #eef5ff;
  color: #0b4f9f;
}

.simple-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 14% 10%, rgba(210,177,107,.13), transparent 28%),
    linear-gradient(180deg, #f7f9fc, #eef3f8);
  padding: clamp(28px, 7vw, 80px) 18px;
}

.simple-panel {
  padding: clamp(26px, 5vw, 44px);
}

.simple-panel h1 {
  color: #0d1728;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 850;
}

.simple-panel p {
  color: #516173;
  font-size: 16px;
}

.sidebar {
  padding: 18px 12px;
}

.side-link {
  position: relative;
  min-height: 50px;
  margin: 3px 0;
  width: 100%;
  padding: 0 14px;
  border-radius: 8px;
  color: rgba(255,255,255,.84);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
  transition: transform .16s ease, background-color .16s ease, color .16s ease, box-shadow .16s ease;
}

.side-link svg {
  width: 20px;
  height: 20px;
  opacity: .92;
}

.side-link.active {
  color: #fff;
  background: linear-gradient(90deg, rgba(13,86,168,.96), rgba(21,112,209,.9));
  box-shadow: 0 12px 24px rgba(0,0,0,.18);
}

.side-link.active:before {
  content: "";
  position: absolute;
  left: -12px;
  top: 10px;
  bottom: 10px;
  width: 4px;
  border-radius: 0 999px 999px 0;
  background: var(--lux-gold);
}

.side-link:hover {
  color: #fff;
  background: rgba(255,255,255,.1);
  transform: translateX(2px);
}

.admin-sidebar {
  transition: transform .2s ease, width .2s ease, padding .2s ease;
}

.admin-side-nav a {
  min-height: 48px;
  border-radius: 8px;
  color: rgba(255,255,255,.84);
  font-size: 14px;
  font-weight: 800;
}

.admin-side-nav a.active {
  color: #fff;
  background: linear-gradient(90deg, rgba(13,86,168,.96), rgba(21,112,209,.9));
  box-shadow: 0 12px 24px rgba(0,0,0,.18);
}

.admin-side-nav a:hover {
  color: #fff;
  background: rgba(255,255,255,.1);
}

.admin-sidebar-collapsed .admin-shell {
  grid-template-columns: 82px minmax(0, 1fr);
}

.admin-sidebar-collapsed .admin-side-nav a {
  min-height: 48px;
}

@media (max-width: 850px) {
  .admin-sidebar {
    position: fixed;
    inset: 76px auto 0 0;
    z-index: 45;
    width: min(286px, 86vw);
    height: auto;
    transform: translateX(-105%);
    box-shadow: 20px 0 42px rgba(0,0,0,.28);
  }

  .admin-sidebar-open .admin-sidebar {
    transform: translateX(0);
  }

  .admin-sidebar-collapsed .admin-sidebar {
    display: block;
  }

  .admin-sidebar-open:before {
    content: "";
    position: fixed;
    inset: 76px 0 0;
    z-index: 44;
    background: rgba(5, 16, 30, .42);
  }

  .admin-side-nav {
    display: grid;
    overflow: visible;
  }

  .admin-side-nav > span {
    display: block;
  }

  .admin-side-nav a {
    flex: initial;
    white-space: normal;
  }

  .login-card {
    padding: 30px 24px 0;
  }
}

@media (max-width: 520px) {
  .brand-logo-icon {
    width: 34px;
    height: 34px;
  }

  .login-logo-icon {
    width: 42px;
    height: 42px;
  }

  .brand-wordmark {
    font-size: 20px;
  }

  .login-brand .brand-wordmark {
    font-size: 25px;
  }

  .business-lockup-text {
    min-height: 26px;
    padding-left: 9px;
    font-size: 10px;
  }

  .login-card h1,
  .admin-login-card h1,
  .recovery-card h1 {
    font-size: 28px;
  }
}

@media (max-width: 380px) {
  .business-lockup-text {
    display: none !important;
  }
}

/* BLUECREST private banking refinements */
.login-brand .brand-logo-icon,
.brand-lockup .brand-logo-icon,
.admin-brand .brand-logo-icon {
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .26));
}

.brand-wordmark {
  letter-spacing: 0;
}

.login-input-plain {
  grid-template-columns: minmax(0, 1fr);
  padding: 0 18px;
}

.login-input-premium {
  grid-template-columns: 52px minmax(0, 1fr);
  padding: 0;
  min-height: 58px;
  border-color: rgba(121, 139, 164, .72);
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,251,255,.96)),
    radial-gradient(circle at 16% 0%, rgba(215, 181, 106, .14), transparent 34%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.92), 0 8px 18px rgba(12, 30, 55, .055);
}

.login-input-password {
  grid-template-columns: 52px minmax(0, 1fr) 52px;
  padding-left: 0;
}

.login-input-plain input,
.login-input-premium input,
.login-input-password input {
  height: 100%;
  padding: 0 18px;
  color: #101b2e;
  font-size: 16px;
  font-weight: 650;
  letter-spacing: 0;
  background: transparent;
}

.premium-field-icon {
  width: 52px;
  height: 100%;
  color: #59687c;
  border-right: 1px solid rgba(137, 151, 171, .28);
  background:
    linear-gradient(180deg, #fbfdff, #f3f7fc),
    radial-gradient(circle at 50% 12%, rgba(215,181,106,.18), transparent 42%);
}

.premium-field-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.login-input:focus-within .premium-field-icon {
  color: #0b4f9f;
  background: #f0f6ff;
}

.login-input-premium:focus-within {
  border-color: #0b4f9f;
  background: linear-gradient(180deg, #fff, #f8fbff);
  box-shadow: 0 0 0 4px rgba(11, 79, 159, .11), 0 14px 24px rgba(12, 30, 55, .1);
}

.login-input-premium input::placeholder {
  color: #7a8798;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: .01em;
}

.login-input-premium:focus-within input::placeholder {
  color: #9aa5b4;
}

.password-eye-button {
  width: 52px;
  height: 100%;
  display: grid;
  place-items: center;
  border: 0;
  border-left: 1px solid rgba(137, 151, 171, .38);
  background: transparent;
  color: #455468;
  cursor: pointer;
  transition: color .16s ease, background-color .16s ease;
}

.password-eye-button:hover,
.password-eye-button:focus-visible {
  color: #0b4f9f;
  background: #f4f8fd;
  outline: 0;
}

.password-eye-button svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.password-eye-button .eye-closed {
  display: none;
}

.password-eye-button[data-visible="true"] .eye-open {
  display: none;
}

.password-eye-button[data-visible="true"] .eye-closed {
  display: block;
}

.login-page .show-password {
  display: none !important;
}

.login-action-row .login-row-icon {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(14, 83, 162, .12);
  background:
    linear-gradient(180deg, #f7fbff, #edf5ff),
    radial-gradient(circle at 50% 0%, rgba(215,181,106,.2), transparent 50%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 8px 14px rgba(16, 43, 79, .055);
}

.login-action-row .login-row-icon svg {
  width: 22px;
  height: 22px;
  stroke-width: 1.75;
}

.login-action-row:hover .login-row-icon {
  color: #073f84;
  border-color: rgba(14, 83, 162, .22);
  transform: translateY(-1px);
}

.login-page .login-header {
  height: auto;
  min-height: 178px;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 20px;
  padding: clamp(24px, 4vw, 42px) 18px 0;
}

.private-login-brand {
  align-items: center;
  gap: 18px;
  text-align: left;
}

.private-login-brand .login-logo-icon {
  width: clamp(58px, 7vw, 82px);
  height: clamp(58px, 7vw, 82px);
}

.private-brand-copy {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.private-brand-line {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.private-login-brand .brand-wordmark {
  color: #fff;
  font-family: ui-serif, Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 6vw, 64px);
  font-weight: 760;
  letter-spacing: .01em;
  text-transform: uppercase;
  text-shadow: 0 10px 28px rgba(0,0,0,.28);
}

.private-login-brand .business-lockup-text {
  min-height: 36px;
  padding-left: 20px;
  color: rgba(255,255,255,.9);
  font-size: clamp(12px, 1.5vw, 18px);
  font-weight: 700;
  letter-spacing: .13em;
}

.brand-tagline {
  color: rgba(255,255,255,.88);
  font-family: ui-serif, Georgia, "Times New Roman", serif;
  font-size: clamp(18px, 2.2vw, 27px);
  font-style: italic;
  letter-spacing: .01em;
  text-shadow: 0 8px 20px rgba(0,0,0,.26);
}

.login-page .login-utility {
  justify-content: center;
}

.brand-lockup .panel-private-line {
  max-width: 252px;
  font-size: clamp(10px, .9vw, 13px);
  line-height: 1.2;
  white-space: normal;
  letter-spacing: .11em;
}

.app-topbar .brand-wordmark {
  font-family: ui-serif, Georgia, "Times New Roman", serif;
  font-weight: 820;
}

/* Shared loading and premium notifications */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 22px;
  background:
    radial-gradient(circle at 50% 38%, rgba(13, 86, 168, .16), transparent 28%),
    rgba(5, 13, 25, .42);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
  backdrop-filter: blur(8px) saturate(1.08);
  -webkit-backdrop-filter: blur(8px) saturate(1.08);
}

.page-loader[aria-hidden="false"] {
  opacity: 1;
  pointer-events: auto;
}

.page-loader-card {
  width: min(360px, 100%);
  display: grid;
  justify-items: center;
  gap: 12px;
  text-align: center;
  padding: 28px 26px;
  border: 1px solid rgba(219, 228, 240, .78);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.96), rgba(246,250,255,.92)),
    radial-gradient(circle at 50% 0%, rgba(216,181,106,.18), transparent 42%);
  box-shadow: 0 26px 70px rgba(3, 15, 31, .3);
}

.page-loader-mark {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 3px solid rgba(12, 83, 167, .18);
  border-top-color: #0b5dbb;
  border-right-color: #d4a857;
  animation: apexSpin .78s linear infinite;
}

.page-loader-card strong {
  color: #101b2e;
  font-size: 18px;
  font-weight: 850;
}

.page-loader-card small {
  max-width: 260px;
  color: #5b687a;
  font-size: 13px;
  line-height: 1.45;
}

.button-spinner {
  width: 17px;
  height: 17px;
  display: inline-block;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-right-color: transparent;
  animation: apexSpin .72s linear infinite;
}

button.is-loading,
.btn.is-loading {
  cursor: wait;
  opacity: .88;
}

button.is-loading {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}

.toast-stack {
  position: fixed;
  z-index: 320;
  top: calc(74px + env(safe-area-inset-top));
  right: max(18px, env(safe-area-inset-right));
  width: min(410px, calc(100vw - 32px));
  display: grid;
  gap: 12px;
  pointer-events: none;
}

.premium-toast {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 34px;
  gap: 12px;
  align-items: start;
  padding: 15px 14px;
  border: 1px solid rgba(212, 223, 238, .82);
  border-left: 4px solid #0b5dbb;
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.97), rgba(246,250,255,.94)),
    radial-gradient(circle at 10% 0%, rgba(215,181,106,.18), transparent 42%);
  box-shadow: 0 18px 44px rgba(5, 21, 43, .18);
  transform: translateY(-8px) translateX(10px);
  opacity: 0;
  pointer-events: auto;
  transition: opacity .2s ease, transform .2s ease;
}

.premium-toast.show {
  opacity: 1;
  transform: translateY(0) translateX(0);
}

.premium-toast.error {
  border-left-color: #bd3b3b;
}

.premium-toast.success {
  border-left-color: #157a4f;
}

.toast-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #0b5dbb;
  background: #eef6ff;
  border: 1px solid rgba(13,86,168,.12);
}

.premium-toast.error .toast-icon {
  color: #a72c2c;
  background: #fff1f1;
  border-color: rgba(189,59,59,.14);
}

.premium-toast.success .toast-icon {
  color: #157a4f;
  background: #effaf5;
  border-color: rgba(21,122,79,.14);
}

.toast-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.toast-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
  padding-top: 2px;
}

.toast-copy strong {
  color: #111827;
  font-size: 14px;
  font-weight: 900;
}

.toast-copy small {
  color: #536174;
  font-size: 13px;
  line-height: 1.45;
}

.toast-close {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #6b7788;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.toast-close:hover,
.toast-close:focus-visible {
  color: #101b2e;
  background: #edf3fa;
  outline: 0;
}

@keyframes apexSpin {
  to { transform: rotate(360deg); }
}

@media (max-width: 640px) {
  .toast-stack {
    top: calc(66px + env(safe-area-inset-top));
    right: 12px;
    left: 12px;
    width: auto;
  }

  .premium-toast {
    grid-template-columns: 40px minmax(0, 1fr) 30px;
    padding: 13px 12px;
  }
}

@media (max-width: 380px) {
  .brand-lockup .panel-private-line,
  .private-login-brand .business-lockup-text {
    display: inline-flex !important;
    font-size: 8px;
    letter-spacing: .08em;
  }
}

/* Refined BLUECREST private lockup */
.private-login-brand {
  width: min(640px, calc(100vw - 40px));
  display: grid;
  grid-template-columns: clamp(46px, 9vw, 70px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(12px, 2vw, 20px);
}

.private-brand-copy {
  min-width: 0;
  width: 100%;
}

.private-brand-line {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, max-content) minmax(118px, 1fr);
  align-items: center;
  gap: clamp(12px, 2vw, 20px);
}

.private-login-brand .brand-wordmark,
.app-topbar .brand-wordmark {
  text-transform: uppercase;
}

.private-login-brand .brand-wordmark {
  min-width: 0;
  font-size: clamp(30px, 7vw, 54px);
  line-height: .9;
  white-space: nowrap;
}

.private-login-brand .private-trust-line {
  min-width: 0;
  max-width: 240px;
  min-height: auto;
  display: block !important;
  padding-left: clamp(11px, 1.8vw, 18px);
  line-height: 1.12;
  white-space: normal;
  overflow-wrap: normal;
  word-break: normal;
}

.private-login-brand .brand-tagline {
  max-width: min(100%, 460px);
  margin-top: 2px;
  font-size: clamp(16px, 4.3vw, 25px);
  line-height: 1.12;
}

.app-topbar .brand-lockup {
  min-width: 0;
  gap: 10px;
}

.app-topbar .brand-wordmark {
  font-size: clamp(17px, 2vw, 25px);
  line-height: 1;
  white-space: nowrap;
}

.app-topbar .panel-private-line {
  min-width: 92px;
  max-width: 188px;
  display: block !important;
  padding-left: 10px;
  line-height: 1.08;
  overflow-wrap: normal;
  word-break: normal;
}

@media (max-width: 560px) {
  .login-page .login-header {
    min-height: 160px;
    gap: 16px;
  }

  .private-login-brand {
    width: min(362px, calc(100vw - 34px));
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 10px;
  }

  .private-login-brand .login-logo-icon {
    width: 52px;
    height: 52px;
  }

  .private-brand-line {
    grid-template-columns: minmax(0, max-content) minmax(72px, 1fr);
    gap: 8px;
  }

  .private-login-brand .brand-wordmark {
    font-size: clamp(26px, 8.2vw, 34px);
    letter-spacing: .01em;
  }

  .private-login-brand .private-trust-line {
    max-width: 82px;
    padding-left: 8px;
    font-size: 8px;
    letter-spacing: .08em;
    line-height: 1.02;
  }

  .private-login-brand .brand-tagline {
    font-size: clamp(15px, 4.6vw, 19px);
    line-height: 1.05;
  }
}

@media (max-width: 380px) {
  .private-login-brand {
    grid-template-columns: 44px minmax(0, 1fr);
    width: min(326px, calc(100vw - 24px));
    gap: 8px;
  }

  .private-login-brand .login-logo-icon {
    width: 44px;
    height: 44px;
  }

  .private-brand-line {
    grid-template-columns: minmax(0, max-content) minmax(60px, 1fr);
    gap: 7px;
  }

  .private-login-brand .brand-wordmark {
    font-size: 25px;
  }

  .private-login-brand .private-trust-line {
    max-width: 66px;
    padding-left: 7px;
    font-size: 7px;
    letter-spacing: .07em;
  }

  .private-login-brand .brand-tagline {
    font-size: 14px;
  }
}

@media (max-width: 760px) {
  .app-topbar .brand-lockup {
    gap: 8px;
  }

  .app-topbar .brand-logo-icon {
    width: 32px;
    height: 32px;
  }

  .app-topbar .brand-wordmark {
    font-size: 17px;
  }

  .app-topbar .panel-private-line {
    min-width: 70px;
    max-width: 86px;
    padding-left: 8px;
    font-size: 7.5px;
    letter-spacing: .08em;
  }
}

@media (max-width: 430px) {
  .app-topbar .brand-logo-icon {
    width: 28px;
    height: 28px;
  }

  .app-topbar .brand-wordmark {
    font-size: 15px;
  }

  .app-topbar .panel-private-line {
    min-width: 58px;
    max-width: 64px;
    padding-left: 6px;
    font-size: 6.5px;
  }
}

/* Login header gold-accent lockup */
.login-page .login-header {
  min-height: clamp(238px, 27vh, 318px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(24px, 3.4vw, 38px);
  padding: clamp(34px, 5.2vw, 58px) 18px 0;
}

.login-page .private-login-brand {
  width: min(900px, calc(100vw - 42px));
  display: grid;
  grid-template-columns: clamp(72px, 10vw, 116px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(22px, 3vw, 34px);
  color: #fff;
}

.login-page .private-login-brand .login-logo-icon {
  width: clamp(72px, 10vw, 116px);
  height: clamp(72px, 10vw, 116px);
  object-fit: contain;
  filter: drop-shadow(0 12px 22px rgba(0,0,0,.32));
}

.login-page .private-brand-copy {
  display: grid;
  gap: 10px;
}

.login-page .private-brand-line {
  display: grid;
  grid-template-columns: minmax(0, max-content) minmax(156px, 244px);
  align-items: center;
  gap: clamp(22px, 3vw, 34px);
}

.login-page .private-login-brand .brand-wordmark {
  color: #fff;
  font-family: ui-serif, Georgia, "Times New Roman", serif;
  font-size: clamp(54px, 7.4vw, 96px);
  font-weight: 780;
  line-height: .88;
  letter-spacing: .045em;
  text-transform: uppercase;
  text-shadow: 0 14px 28px rgba(0,0,0,.34);
}

.login-page .private-login-brand .private-trust-line {
  display: block !important;
  max-width: 244px;
  min-height: auto;
  padding: 0 0 0 clamp(24px, 3vw, 34px);
  border-left: 3px solid rgba(218, 181, 102, .92);
  color: #e6c57a;
  font-size: clamp(20px, 2.2vw, 31px);
  font-weight: 850;
  line-height: 1.12;
  letter-spacing: .045em;
  text-transform: uppercase;
  white-space: normal;
  overflow-wrap: normal;
}

.login-page .brand-tagline {
  color: #e6c57a;
  font-family: ui-serif, Georgia, "Times New Roman", serif;
  font-size: clamp(23px, 3vw, 38px);
  font-style: italic;
  font-weight: 560;
  line-height: 1.08;
  letter-spacing: .01em;
  text-shadow: 0 10px 22px rgba(0,0,0,.32);
}

.login-page .login-utility {
  justify-content: center;
  gap: clamp(22px, 3vw, 42px);
  color: #fff;
  font-size: clamp(18px, 2vw, 27px);
  font-weight: 760;
  text-shadow: 0 8px 20px rgba(0,0,0,.28);
}

.login-page .login-utility span {
  width: 2px;
  height: 30px;
  background: rgba(255,255,255,.9);
}

@media (max-width: 640px) {
  .login-page .login-header {
    min-height: 222px;
    gap: 22px;
    padding: 30px 16px 0;
  }

  .login-page .private-login-brand {
    width: min(394px, calc(100vw - 30px));
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 14px;
  }

  .login-page .private-login-brand .login-logo-icon {
    width: 64px;
    height: 64px;
  }

  .login-page .private-brand-copy {
    gap: 8px;
  }

  .login-page .private-brand-line {
    grid-template-columns: minmax(0, max-content) minmax(82px, 1fr);
    gap: 11px;
  }

  .login-page .private-login-brand .brand-wordmark {
    font-size: clamp(35px, 10.4vw, 48px);
    letter-spacing: .025em;
  }

  .login-page .private-login-brand .private-trust-line {
    max-width: 92px;
    padding-left: 11px;
    border-left-width: 2px;
    font-size: clamp(10px, 2.65vw, 13px);
    line-height: 1.05;
    letter-spacing: .05em;
  }

  .login-page .brand-tagline {
    font-size: clamp(18px, 5vw, 23px);
    line-height: 1.02;
  }

  .login-page .login-utility {
    gap: 18px;
    font-size: 16px;
  }

  .login-page .login-utility span {
    height: 22px;
  }
}

@media (max-width: 390px) {
  .login-page .login-header {
    min-height: 210px;
    gap: 18px;
    padding-top: 26px;
  }

  .login-page .private-login-brand {
    grid-template-columns: 54px minmax(0, 1fr);
    width: min(354px, calc(100vw - 24px));
    gap: 11px;
  }

  .login-page .private-login-brand .login-logo-icon {
    width: 54px;
    height: 54px;
  }

  .login-page .private-brand-line {
    grid-template-columns: minmax(0, max-content) minmax(70px, 1fr);
    gap: 8px;
  }

  .login-page .private-login-brand .brand-wordmark {
    font-size: clamp(31px, 9.8vw, 38px);
  }

  .login-page .private-login-brand .private-trust-line {
    max-width: 74px;
    padding-left: 8px;
    font-size: 8.5px;
    letter-spacing: .045em;
  }

  .login-page .brand-tagline {
    font-size: 17px;
  }

  .login-page .login-utility {
    gap: 14px;
    font-size: 14px;
  }
}

/* Final login header composition */
.login-page .login-header {
  min-height: clamp(250px, 29vh, 330px);
  gap: clamp(24px, 3vw, 34px);
  padding: clamp(36px, 5vw, 58px) 18px 0;
}

.login-page .private-login-brand {
  width: min(940px, calc(100vw - 46px));
  display: grid;
  grid-template-columns: clamp(88px, 10vw, 122px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 3vw, 38px);
}

.brand-shield-frame {
  width: clamp(88px, 10vw, 122px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(242,209,138,.95), rgba(134,98,45,.92)) border-box;
  padding: 3px;
  box-shadow: 0 18px 34px rgba(0,0,0,.32);
}

.brand-shield-frame .login-logo-icon {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain;
  border-radius: 25px;
  filter: none !important;
}

.login-page .private-brand-copy {
  display: grid;
  gap: clamp(10px, 1.3vw, 16px);
}

.login-page .private-brand-line {
  display: grid;
  grid-template-columns: minmax(0, max-content) minmax(170px, 248px);
  align-items: center;
  column-gap: clamp(26px, 3.5vw, 46px);
}

.login-page .private-login-brand .brand-wordmark {
  font-size: clamp(58px, 7.2vw, 96px);
  line-height: .88;
  letter-spacing: .038em;
  white-space: nowrap;
}

.login-page .private-login-brand .private-trust-line {
  width: 100%;
  max-width: 248px;
  padding-left: clamp(24px, 3vw, 34px);
  border-left: 3px solid #dfbf73;
  color: #e8c679;
  font-size: clamp(21px, 2.1vw, 30px);
  line-height: 1.14;
  letter-spacing: .04em;
}

.login-page .brand-tagline {
  max-width: 660px;
  font-size: clamp(24px, 2.8vw, 38px);
  line-height: 1.08;
}

@media (max-width: 720px) {
  .login-page .login-header {
    min-height: 226px;
    padding-top: 30px;
    gap: 22px;
  }

  .login-page .private-login-brand {
    width: min(430px, calc(100vw - 30px));
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 14px;
  }

  .brand-shield-frame {
    width: 64px;
    padding: 2px;
    border-radius: 17px;
  }

  .brand-shield-frame .login-logo-icon {
    border-radius: 15px;
  }

  .login-page .private-brand-copy {
    gap: 7px;
  }

  .login-page .private-brand-line {
    grid-template-columns: minmax(0, max-content) 92px;
    column-gap: 12px;
  }

  .login-page .private-login-brand .brand-wordmark {
    font-size: clamp(35px, 10vw, 48px);
    letter-spacing: .018em;
  }

  .login-page .private-login-brand .private-trust-line {
    max-width: 92px;
    padding-left: 11px;
    border-left-width: 2px;
    font-size: clamp(10px, 2.7vw, 13px);
    line-height: 1.04;
    letter-spacing: .045em;
  }

  .login-page .brand-tagline {
    font-size: clamp(17px, 5vw, 23px);
    line-height: 1.05;
  }
}

@media (max-width: 390px) {
  .login-page .login-header {
    min-height: 210px;
    padding-top: 26px;
    gap: 18px;
  }

  .login-page .private-login-brand {
    width: min(354px, calc(100vw - 22px));
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 10px;
  }

  .brand-shield-frame {
    width: 54px;
    border-radius: 15px;
  }

  .brand-shield-frame .login-logo-icon {
    border-radius: 13px;
  }

  .login-page .private-brand-line {
    grid-template-columns: minmax(0, max-content) 76px;
    column-gap: 8px;
  }

  .login-page .private-login-brand .brand-wordmark {
    font-size: clamp(30px, 9.6vw, 37px);
  }

  .login-page .private-login-brand .private-trust-line {
    max-width: 76px;
    padding-left: 8px;
    font-size: 8px;
    letter-spacing: .04em;
  }

  .login-page .brand-tagline {
    font-size: 16px;
  }
}

/* Final winning header fit correction */
.login-page .private-login-brand {
  max-width: calc(100vw - 70px);
  grid-template-columns: clamp(78px, 11vw, 142px) minmax(0, 1fr) !important;
  justify-content: center;
}

.login-page .private-brand-copy {
  min-width: 0;
}

.login-page .private-brand-line {
  max-width: 100%;
  grid-template-columns: minmax(0, max-content) clamp(128px, 20vw, 238px) !important;
  column-gap: clamp(18px, 3.2vw, 46px);
}

.login-page .private-login-brand .brand-wordmark {
  min-width: 0;
  font-size: clamp(42px, 7vw, 94px);
}

.login-page .private-login-brand .private-trust-line {
  max-width: clamp(128px, 20vw, 238px);
  min-height: clamp(58px, 7vw, 104px);
  padding-left: clamp(16px, 2.9vw, 38px);
  font-size: clamp(14px, 2vw, 30px);
}

.login-page .brand-tagline {
  font-size: clamp(21px, 2.55vw, 37px);
}

@media (max-width: 920px) {
  .login-page .login-header {
    min-height: clamp(280px, 36vw, 320px);
    padding-top: clamp(34px, 5vw, 44px);
    gap: clamp(34px, 5vw, 48px);
  }

  .login-page .private-login-brand {
    width: min(760px, calc(100vw - 56px));
    max-width: calc(100vw - 56px);
    grid-template-columns: clamp(70px, 10vw, 96px) minmax(0, 1fr) !important;
    gap: clamp(18px, 3vw, 28px);
  }

  .login-page .brand-shield-frame {
    width: clamp(70px, 10vw, 96px);
  }

  .login-page .private-brand-copy {
    margin-top: clamp(5px, 1.4vw, 12px);
  }

  .login-page .private-brand-line {
    grid-template-columns: minmax(0, max-content) clamp(110px, 18vw, 158px) !important;
    column-gap: clamp(14px, 2.6vw, 24px);
  }

  .login-page .private-login-brand .brand-wordmark {
    font-size: clamp(44px, 7.1vw, 62px);
  }

  .login-page .private-login-brand .private-trust-line {
    min-height: clamp(48px, 6.3vw, 64px);
    max-width: clamp(110px, 18vw, 158px);
    padding-left: clamp(12px, 2vw, 18px);
    border-left-width: 2px;
    font-size: clamp(12px, 1.9vw, 17px);
    line-height: 1.05;
  }

  .login-page .brand-tagline {
    font-size: clamp(21px, 3.5vw, 30px);
  }
}

/* Reference header overflow correction */
.login-page .private-login-brand {
  max-width: calc(100vw - 70px);
  grid-template-columns: clamp(78px, 11vw, 142px) minmax(0, 1fr) !important;
  justify-content: center;
}

.login-page .private-brand-copy {
  min-width: 0;
}

.login-page .private-brand-line {
  max-width: 100%;
  grid-template-columns: minmax(0, max-content) clamp(128px, 20vw, 238px) !important;
  column-gap: clamp(18px, 3.2vw, 46px);
}

.login-page .private-login-brand .brand-wordmark {
  min-width: 0;
  font-size: clamp(42px, 7vw, 94px);
}

.login-page .private-login-brand .private-trust-line {
  max-width: clamp(128px, 20vw, 238px);
  min-height: clamp(58px, 7vw, 104px);
  padding-left: clamp(16px, 2.9vw, 38px);
  font-size: clamp(14px, 2vw, 30px);
}

.login-page .brand-tagline {
  font-size: clamp(21px, 2.55vw, 37px);
}

@media (max-width: 920px) {
  .login-page .login-header {
    min-height: clamp(280px, 36vw, 320px);
    padding-top: clamp(34px, 5vw, 44px);
    gap: clamp(34px, 5vw, 48px);
  }

  .login-page .private-login-brand {
    width: min(760px, calc(100vw - 56px));
    max-width: calc(100vw - 56px);
    grid-template-columns: clamp(70px, 10vw, 96px) minmax(0, 1fr) !important;
    gap: clamp(18px, 3vw, 28px);
  }

  .login-page .brand-shield-frame {
    width: clamp(70px, 10vw, 96px);
  }

  .login-page .private-brand-copy {
    margin-top: clamp(5px, 1.4vw, 12px);
  }

  .login-page .private-brand-line {
    grid-template-columns: minmax(0, max-content) clamp(110px, 18vw, 158px) !important;
    column-gap: clamp(14px, 2.6vw, 24px);
  }

  .login-page .private-login-brand .brand-wordmark {
    font-size: clamp(44px, 7.1vw, 62px);
  }

  .login-page .private-login-brand .private-trust-line {
    min-height: clamp(48px, 6.3vw, 64px);
    max-width: clamp(110px, 18vw, 158px);
    padding-left: clamp(12px, 2vw, 18px);
    border-left-width: 2px;
    font-size: clamp(12px, 1.9vw, 17px);
    line-height: 1.05;
  }

  .login-page .brand-tagline {
    font-size: clamp(21px, 3.5vw, 30px);
  }
}

/* Login header premium gold palette only */
.login-page {
  background:
    linear-gradient(180deg, rgba(4,18,31,.58), rgba(5,19,31,.72)),
    radial-gradient(circle at 28% 0%, rgba(223,191,115,.16), transparent 34%),
    linear-gradient(135deg, #061a2d 0%, #102b3d 46%, #071522 100%);
}

.login-page .login-header {
  background:
    linear-gradient(180deg, rgba(5,20,34,.9), rgba(18,35,47,.62) 58%, rgba(18,35,47,0));
}

.login-page .private-login-brand .brand-wordmark {
  color: #ffffff;
  text-shadow: 0 8px 24px rgba(0,0,0,.34);
}

.login-page .brand-tagline,
.login-page .private-login-brand .private-trust-line {
  color: #e8c679;
  text-shadow: 0 5px 18px rgba(0,0,0,.3);
}

.login-page .private-login-brand .private-trust-line {
  border-left-color: #e8c679;
}

.brand-shield-frame {
  background: transparent;
  box-shadow: 0 18px 34px rgba(0,0,0,.32);
  padding: 0;
}

.brand-shield-frame .login-logo-icon {
  filter: drop-shadow(0 14px 22px rgba(0,0,0,.32)) !important;
}

/* Reference login header layout */
.login-page .login-header {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  min-height: clamp(300px, 32vw, 370px);
  padding: clamp(38px, 4.6vw, 56px) clamp(22px, 4vw, 54px) 0;
  gap: clamp(42px, 5vw, 66px);
  background:
    linear-gradient(180deg, rgba(5,20,34,.95) 0%, rgba(15,34,48,.78) 58%, rgba(15,34,48,0) 100%);
}

.login-page .private-login-brand {
  width: min(940px, calc(100vw - 70px));
  max-width: calc(100vw - 70px);
  display: grid !important;
  grid-template-columns: clamp(78px, 11vw, 142px) minmax(0, 1fr);
  align-items: start;
  justify-content: center;
  gap: clamp(18px, 3.2vw, 44px);
}

.login-page .brand-shield-frame {
  width: clamp(78px, 11vw, 142px);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.login-page .brand-shield-frame .login-logo-icon {
  border-radius: 0;
}

.login-page .private-brand-copy {
  display: grid;
  min-width: 0;
  gap: clamp(10px, 1.35vw, 16px);
  margin-top: clamp(12px, 2vw, 22px);
}

.login-page .private-brand-line {
  display: grid !important;
  grid-template-columns: minmax(0, max-content) clamp(128px, 20vw, 238px);
  align-items: center;
  column-gap: clamp(18px, 3.2vw, 46px);
  max-width: 100%;
}

.login-page .private-login-brand .brand-wordmark {
  color: #ffffff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 7vw, 94px);
  font-weight: 700;
  line-height: .86;
  letter-spacing: .035em;
  text-transform: uppercase;
  white-space: nowrap;
}

.login-page .private-login-brand .private-trust-line {
  min-height: clamp(58px, 7vw, 104px);
  max-width: clamp(128px, 20vw, 238px);
  padding-left: clamp(16px, 2.9vw, 38px);
  border-left: 3px solid #e8c679;
  color: #e8c679;
  display: flex;
  align-items: center;
  font-size: clamp(14px, 2vw, 30px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: .035em;
  text-transform: uppercase;
}

.login-page .brand-tagline {
  color: #e8c679;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(21px, 2.55vw, 37px);
  font-style: italic;
  line-height: 1.05;
  max-width: 660px;
}

.login-page .login-utility {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 3.2vw, 36px);
  width: 100%;
  color: #ffffff;
  font-size: clamp(23px, 2.2vw, 30px);
  font-weight: 700;
  line-height: 1;
}

.login-page .login-utility a {
  color: #ffffff;
}

.login-page .login-utility span {
  display: block;
  width: 2px;
  height: clamp(26px, 2.8vw, 34px);
  background: rgba(255,255,255,.86);
}

@media (max-width: 720px) {
  .login-page .login-header {
    min-height: 268px;
    padding: 30px 16px 0;
    gap: 30px;
  }

  .login-page .private-login-brand {
    width: min(430px, calc(100vw - 30px));
    max-width: calc(100vw - 30px);
    grid-template-columns: 58px minmax(0, 1fr) !important;
    gap: 13px;
  }

  .login-page .brand-shield-frame {
    width: 58px;
  }

  .login-page .private-brand-copy {
    gap: 6px;
    margin-top: 2px;
  }

  .login-page .private-brand-line {
    grid-template-columns: minmax(0, max-content) 86px !important;
    column-gap: 10px;
    max-width: 100%;
  }

  .login-page .private-login-brand .brand-wordmark {
    font-size: clamp(28px, 10vw, 40px);
    letter-spacing: .018em;
  }

  .login-page .private-login-brand .private-trust-line {
    min-height: 42px;
    max-width: 86px;
    padding-left: 10px;
    border-left-width: 2px;
    font-size: clamp(9px, 2.8vw, 12px);
    line-height: 1.02;
    letter-spacing: .055em;
  }

  .login-page .brand-tagline {
    font-size: clamp(17px, 5.1vw, 22px);
    line-height: 1.05;
  }

  .login-page .login-utility {
    gap: 14px;
    font-size: clamp(14px, 3.6vw, 17px);
  }

  .login-page .login-utility span {
    width: 2px;
    height: 20px;
  }
}

@media (max-width: 390px) {
  .login-page .login-header {
    min-height: 250px;
    padding-top: 26px;
    gap: 27px;
  }

  .login-page .private-login-brand {
    width: min(354px, calc(100vw - 22px));
    max-width: calc(100vw - 22px);
    grid-template-columns: 48px minmax(0, 1fr) !important;
    gap: 10px;
  }

  .login-page .brand-shield-frame {
    width: 48px;
  }

  .login-page .private-brand-line {
    grid-template-columns: minmax(0, max-content) 66px !important;
    column-gap: 7px;
    max-width: 100%;
  }

  .login-page .private-login-brand .brand-wordmark {
    font-size: clamp(26px, 9.6vw, 34px);
  }

  .login-page .private-login-brand .private-trust-line {
    min-height: 36px;
    max-width: 66px;
    padding-left: 7px;
    font-size: 7px;
  }

  .login-page .brand-tagline {
    font-size: 16px;
  }
}
