:root {
    --navy: #073b49;
    --navy-deep: #052b36;
    --teal: #078b8c;
    --teal-soft: #dff4ef;
    --blue-soft: #e5f2fc;
    --green: #238667;
    --green-soft: #e5f4ec;
    --amber: #c87b15;
    --amber-soft: #fff1d9;
    --red: #b42318;
    --red-soft: #fff0ed;
    --cream: #f6f5ee;
    --white: #fff;
    --ink: #163840;
    --muted: #667c80;
    --line: #dce6e2;
    --shadow: 0 22px 60px rgba(5, 43, 54, .12);
}

* { box-sizing: border-box; }
html { min-height: 100%; }
body { margin: 0; min-height: 100vh; color: var(--ink); background: var(--cream); font-family: Inter, "Segoe UI", Arial, sans-serif; line-height: 1.5; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
.skip-link { position: fixed; top: -60px; left: 16px; z-index: 100; padding: 10px 16px; background: var(--navy); color: #fff; }
.skip-link:focus { top: 12px; }

.auth-shell { display: grid; min-height: 100vh; grid-template-columns: minmax(390px, .9fr) minmax(540px, 1.1fr); }
.auth-brand { position: relative; display: flex; min-height: 100vh; flex-direction: column; justify-content: space-between; overflow: hidden; padding: 54px clamp(42px, 6vw, 100px); color: #fff; background: var(--navy-deep); }
.auth-brand::before { position: absolute; right: -25%; bottom: -10%; width: 520px; height: 520px; content: ""; border: 90px solid rgba(80, 203, 190, .12); border-radius: 50%; }
.auth-brand::after { position: absolute; right: 16%; bottom: 14%; width: 180px; height: 180px; content: ""; border-radius: 50% 50% 50% 12%; background: rgba(214, 237, 132, .92); transform: rotate(35deg); }
.brand-lockup, .mobile-brand, .dashboard-brand { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 13px; text-decoration: none; }
.brand-lockup img, .mobile-brand img, .dashboard-brand img { border-radius: 50%; background: #fff; object-fit: contain; }
.brand-lockup span, .mobile-brand span, .dashboard-brand span { display: flex; flex-direction: column; gap: 3px; }
.brand-lockup strong, .mobile-brand strong, .dashboard-brand strong { font-size: 15px; letter-spacing: .13em; }
.brand-lockup small, .mobile-brand small, .dashboard-brand small { color: #b7d0d2; font-size: 8px; font-weight: 700; letter-spacing: .18em; }
.auth-message { position: relative; z-index: 1; max-width: 560px; margin: auto 0; }
.eyebrow, .step-label { color: var(--teal); font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.auth-message .eyebrow { color: #75d9cf; }
.auth-message h1 { margin: 22px 0 28px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(48px, 5.5vw, 82px); font-weight: 400; letter-spacing: -.045em; line-height: .98; }
.auth-message h1 em { color: #d9eb8a; font-weight: 400; }
.auth-message p { max-width: 460px; color: #b8ced0; font-size: 17px; }
.trust-row { position: relative; z-index: 1; display: flex; gap: 26px; color: #c3d7d8; font-size: 12px; }
.trust-row i { display: inline-flex; width: 21px; height: 21px; align-items: center; justify-content: center; margin-right: 6px; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; color: #78d8ce; font-style: normal; }
.auth-card { display: grid; min-height: 100vh; place-items: center; padding: 55px clamp(28px, 7vw, 110px); background: #fafaf6; }
.auth-card-inner { width: min(100%, 530px); }
.mobile-brand { display: none; color: var(--navy); }
.mobile-brand small { color: var(--muted); }
.auth-card h2 { margin: 9px 0 8px; color: var(--navy); font-family: Georgia, "Times New Roman", serif; font-size: 42px; font-weight: 400; letter-spacing: -.035em; }
.card-intro { margin: 0 0 30px; color: var(--muted); }
.message { margin: 0 0 20px; padding: 13px 15px; border: 1px solid; border-radius: 10px; font-size: 13px; }
.message-error { border-color: #f2b6ae; color: #8b261d; background: var(--red-soft); }
.message-success { border-color: #b8ddcc; color: #17664e; background: var(--green-soft); }
.portal-form { display: grid; gap: 19px; }
.portal-form label { display: grid; gap: 7px; color: var(--navy); font-size: 13px; font-weight: 700; }
.portal-form label small { color: var(--muted); font-weight: 400; }
.portal-form input { width: 100%; min-height: 52px; padding: 12px 15px; border: 1px solid #cbdad6; border-radius: 9px; outline: 0; background: #fff; color: var(--ink); }
.portal-form input:focus { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(7, 139, 140, .1); }
.portal-form input::placeholder { color: #9bacae; }
.field-pair { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
.pin-field { position: relative; }
.pin-field input { padding-right: 72px; letter-spacing: .22em; }
.pin-toggle { position: absolute; top: 50%; right: 8px; padding: 7px 9px; border: 0; color: var(--teal); background: transparent; font-size: 12px; font-weight: 800; transform: translateY(-50%); cursor: pointer; }
.primary-button { display: flex; min-height: 54px; align-items: center; justify-content: space-between; margin-top: 3px; padding: 14px 18px; border: 0; border-radius: 9px; color: #fff; background: var(--teal); font-weight: 800; cursor: pointer; transition: background .2s, transform .2s; }
.primary-button:hover { background: #087777; transform: translateY(-1px); }
.privacy-note { margin: -6px 0 0; color: var(--muted); font-size: 11px; }
.auth-switch { margin: 22px 0 0; text-align: center; color: var(--muted); font-size: 13px; }
.auth-switch a { color: var(--teal); font-weight: 800; }
.support-note { display: flex; gap: 12px; align-items: center; margin-top: 30px; padding-top: 25px; border-top: 1px solid var(--line); }
.support-note > span { display: inline-flex; width: 34px; height: 34px; flex: 0 0 auto; align-items: center; justify-content: center; border-radius: 50%; color: var(--teal); background: var(--teal-soft); font-weight: 900; }
.support-note p { margin: 0; color: var(--muted); font-size: 12px; }
.support-note strong { color: var(--navy); font-size: 13px; }
.support-note a { color: var(--teal); }

.dashboard-page { background: #f4f6f3; }
.dashboard-shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.portal-header { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid rgba(7,59,73,.09); background: rgba(255,255,255,.94); backdrop-filter: blur(15px); }
.header-row { display: flex; min-height: 76px; align-items: center; justify-content: space-between; }
.dashboard-brand { color: var(--navy); }
.dashboard-brand strong { font-size: 16px; letter-spacing: .05em; }
.dashboard-brand small { color: var(--muted); letter-spacing: .13em; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-actions form { margin: 0; }
.install-button, .signout-button { min-height: 39px; padding: 9px 14px; border: 1px solid #cddbd7; border-radius: 99px; color: var(--navy); background: #fff; font-size: 12px; font-weight: 800; cursor: pointer; }
.install-button { color: #fff; border-color: var(--teal); background: var(--teal); }
.install-button span { margin-right: 5px; }
.dashboard-main { padding-top: 42px; padding-bottom: 36px; }
.welcome-row { display: flex; align-items: end; justify-content: space-between; margin-bottom: 28px; }
.welcome-row h1 { margin: 6px 0 3px; color: var(--navy); font-family: Georgia, "Times New Roman", serif; font-size: clamp(35px, 5vw, 54px); font-weight: 400; letter-spacing: -.045em; }
.welcome-row p { margin: 0; color: var(--muted); font-size: 13px; }
.sync-status { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; }
.sync-status > span { width: 7px; height: 7px; border-radius: 50%; background: #37a77e; box-shadow: 0 0 0 4px rgba(55,167,126,.12); }
.account-alert { margin-bottom: 20px; padding: 14px 16px; border: 1px solid #f0c1bb; border-radius: 10px; color: #8b261d; background: var(--red-soft); font-size: 13px; }
.balance-card { position: relative; display: flex; min-height: 235px; justify-content: space-between; overflow: hidden; padding: 42px 45px; border-radius: 20px; color: #fff; background: var(--navy); box-shadow: 0 18px 50px rgba(5,43,54,.18); }
.balance-card::after { position: absolute; right: -80px; bottom: -120px; width: 370px; height: 370px; content: ""; border: 62px solid rgba(80,203,190,.12); border-radius: 50%; }
.balance-card.has-credit { background: #17654f; }
.balance-main, .balance-side { position: relative; z-index: 1; }
.balance-label { display: block; margin-bottom: 5px; color: #abd1d4; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.balance-main > strong { display: block; margin: 4px 0 4px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(42px, 6vw, 66px); font-weight: 400; letter-spacing: -.04em; }
.balance-main p { margin: 0; color: #c0d6d8; font-size: 13px; }
.balance-side { display: flex; align-items: flex-end; flex-direction: column; justify-content: space-between; }
.bill-status { display: inline-flex; padding: 7px 11px; border-radius: 99px; color: #d7f8ef; background: rgba(90,212,186,.14); font-size: 10px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.balance-side > a { color: #aee5dc; font-size: 12px; font-weight: 800; }
.metrics-grid { display: grid; gap: 16px; margin: 18px 0; grid-template-columns: repeat(3, 1fr); }
.metric-card { display: flex; min-width: 0; gap: 14px; align-items: center; padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.metric-icon { display: inline-flex; width: 46px; height: 46px; flex: 0 0 auto; align-items: center; justify-content: center; border-radius: 13px; font-size: 21px; }
.metric-icon.blue { color: #2676a8; background: var(--blue-soft); }
.metric-icon.green { color: var(--green); background: var(--green-soft); }
.metric-icon.amber { color: var(--amber); background: var(--amber-soft); }
.metric-card div { min-width: 0; }
.metric-card span:not(.metric-icon), .metric-card small { display: block; color: var(--muted); font-size: 11px; }
.metric-card strong { display: block; overflow: hidden; margin: 2px 0; color: var(--navy); font-size: 20px; text-overflow: ellipsis; white-space: nowrap; }
.content-grid, .history-grid { display: grid; gap: 18px; margin-top: 18px; grid-template-columns: minmax(0, 1.65fr) minmax(300px, .75fr); }
.history-grid { grid-template-columns: 1fr 1fr; }
.panel { padding: 28px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.panel-heading { display: flex; align-items: start; justify-content: space-between; margin-bottom: 22px; }
.panel-heading p { margin: 0 0 4px; }
.panel-heading h2 { margin: 0; color: var(--navy); font-family: Georgia, "Times New Roman", serif; font-size: 28px; font-weight: 400; letter-spacing: -.025em; }
.bill-number { padding: 5px 8px; border-radius: 5px; color: var(--muted); background: #f1f4f2; font-size: 9px; font-weight: 800; letter-spacing: .08em; }
.bill-breakdown { margin: 0; }
.bill-breakdown > div { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px dashed #e2e8e5; }
.bill-breakdown dt { color: var(--muted); font-size: 12px; }
.bill-breakdown dd { margin: 0; color: var(--navy); font-size: 12px; font-weight: 800; }
.bill-breakdown .bill-total { margin-top: 5px; padding: 14px 0 8px; border: 0; }
.bill-breakdown .bill-total dt, .bill-breakdown .bill-total dd { color: var(--navy); font-size: 17px; }
.meter-strip { display: grid; align-items: center; margin-top: 18px; padding: 16px; border-radius: 11px; background: #f3f7f5; grid-template-columns: 1fr auto 1fr 1fr; }
.meter-strip span { display: flex; min-width: 0; flex-direction: column; }
.meter-strip small { color: var(--muted); font-size: 9px; text-transform: uppercase; }
.meter-strip strong { color: var(--navy); font-size: 14px; }
.meter-strip i { padding: 0 18px; color: var(--teal); font-style: normal; }
.account-details { margin: 0; }
.account-details > div { padding: 11px 0; border-bottom: 1px solid #edf1ef; }
.account-details dt { color: var(--muted); font-size: 10px; text-transform: uppercase; }
.account-details dd { margin: 2px 0 0; color: var(--navy); font-size: 13px; font-weight: 800; overflow-wrap: anywhere; }
.connection-status { color: var(--green); }
.support-link { display: grid; gap: 11px; align-items: center; margin-top: 22px; padding: 15px; border-radius: 11px; color: var(--navy); background: var(--teal-soft); text-decoration: none; grid-template-columns: 34px 1fr auto; }
.support-link > span:first-child { display: inline-flex; width: 34px; height: 34px; align-items: center; justify-content: center; border-radius: 50%; color: #fff; background: var(--teal); font-weight: 900; }
.support-link span:nth-child(2) { display: flex; flex-direction: column; }
.support-link small { color: var(--muted); font-size: 10px; font-weight: 400; }
.support-link i { color: var(--teal); font-style: normal; }
.activity-list { border-top: 1px solid #edf1ef; }
.activity-row { display: grid; gap: 12px; align-items: center; padding: 15px 0; border-bottom: 1px solid #edf1ef; grid-template-columns: 46px 1fr auto; }
.activity-row:last-child { border-bottom: 0; padding-bottom: 0; }
.activity-date { display: flex; width: 42px; height: 42px; align-items: center; justify-content: center; flex-direction: column; border-radius: 9px; color: var(--navy); background: #f2f5f3; line-height: 1.1; }
.activity-date strong { font-size: 13px; }
.activity-date small { color: var(--muted); font-size: 9px; }
.activity-detail, .activity-amount { display: flex; min-width: 0; flex-direction: column; }
.activity-detail strong, .activity-amount strong { overflow: hidden; color: var(--navy); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.activity-detail small, .activity-amount small { color: var(--muted); font-size: 9px; }
.activity-amount { align-items: flex-end; text-align: right; }
.activity-amount .status-paid, .activity-amount .status-partial, .activity-amount .status-pending, .activity-amount .status-due { font-weight: 800; text-transform: uppercase; }
.status-paid { color: var(--green) !important; }
.status-partial { color: var(--amber) !important; }
.status-pending { color: #4e7580 !important; }
.status-due { color: var(--red) !important; }
.payment-mark { display: inline-flex; width: 42px; height: 42px; align-items: center; justify-content: center; border-radius: 50%; color: var(--green); background: var(--green-soft); font-weight: 900; }
.empty-state { padding: 35px 10px; text-align: center; color: var(--muted); }
.empty-state strong { color: var(--navy); }
.empty-state p { margin: 5px 0 0; font-size: 12px; }
.empty-state.compact { padding: 25px 5px; }
.dashboard-footer { display: flex; justify-content: space-between; margin-top: 28px; padding: 22px 3px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.dashboard-footer p { margin: 0; }

@media (max-width: 900px) {
    .auth-shell { grid-template-columns: 1fr; }
    .auth-brand { display: none; }
    .auth-card { padding: 38px 22px; }
    .mobile-brand { display: inline-flex; margin-bottom: 54px; }
    .content-grid, .history-grid { grid-template-columns: 1fr; }
}

@media (max-width: 650px) {
    .dashboard-shell { width: min(100% - 28px, 1180px); }
    .header-row { min-height: 66px; }
    .dashboard-brand img { width: 44px; height: 44px; }
    .dashboard-brand small { display: none; }
    .install-button { width: 39px; overflow: hidden; padding: 9px 11px; white-space: nowrap; }
    .install-button span { margin-right: 20px; }
    .signout-button { padding: 8px 11px; }
    .dashboard-main { padding-top: 28px; }
    .welcome-row { display: block; }
    .sync-status { margin-top: 13px; }
    .balance-card { min-height: 272px; flex-direction: column; padding: 30px 24px; }
    .balance-main > strong { font-size: 46px; }
    .balance-side { align-items: flex-start; gap: 25px; }
    .metrics-grid { overflow-x: auto; margin-right: -14px; padding-right: 14px; grid-template-columns: repeat(3, 245px); scroll-snap-type: x mandatory; }
    .metric-card { scroll-snap-align: start; }
    .panel { padding: 22px 18px; }
    .field-pair { grid-template-columns: 1fr; }
    .meter-strip { gap: 12px; grid-template-columns: 1fr auto 1fr; }
    .meter-strip span:last-child { padding-top: 11px; border-top: 1px solid #dde7e2; grid-column: 1 / 4; }
    .history-grid { gap: 14px; }
    .dashboard-footer { align-items: flex-start; flex-direction: column; gap: 6px; }
}

@media (max-width: 420px) {
    .auth-card { place-items: start; }
    .mobile-brand { margin-bottom: 40px; }
    .auth-card h2 { font-size: 36px; }
    .activity-row { grid-template-columns: 42px minmax(0, 1fr) auto; }
    .activity-amount strong { max-width: 105px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

/* Modern portal refresh */
.auth-page {
    background:
        radial-gradient(circle at 8% 5%, rgba(94, 225, 208, .2), transparent 28%),
        linear-gradient(135deg, #052f3b, #075b68 48%, #eef7f4 48%);
}
.auth-shell { background: transparent; }
.auth-brand {
    background:
        radial-gradient(circle at 78% 18%, rgba(99, 224, 207, .18), transparent 23%),
        linear-gradient(145deg, #042b36 0%, #064956 58%, #076b73 100%);
}
.auth-brand::before {
    right: -18%;
    bottom: -15%;
    width: 620px;
    height: 620px;
    border: 1px solid rgba(255, 255, 255, .12);
    box-shadow:
        0 0 0 70px rgba(89, 208, 197, .06),
        0 0 0 140px rgba(89, 208, 197, .04);
}
.auth-brand::after {
    right: 11%;
    bottom: 10%;
    width: 145px;
    height: 145px;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 50% 50% 50% 8%;
    background: linear-gradient(145deg, #daf18f, #9edb7b);
    box-shadow: 0 24px 60px rgba(3, 34, 42, .32);
}
.brand-lockup img {
    border: 5px solid rgba(255, 255, 255, .16);
    box-shadow: 0 14px 40px rgba(0, 0, 0, .22);
}
.auth-message h1 {
    max-width: 650px;
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: clamp(48px, 5vw, 76px);
    font-weight: 750;
    letter-spacing: -.06em;
}
.auth-message h1 em { font-style: normal; }
.trust-row { gap: 10px; }
.trust-row span {
    padding: 9px 13px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 99px;
    background: rgba(255, 255, 255, .07);
    backdrop-filter: blur(8px);
}
.trust-row i { border: 0; background: rgba(117, 217, 207, .14); }
.auth-card {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 100% 0, rgba(7, 139, 140, .1), transparent 30%),
        linear-gradient(150deg, #f8fbf9, #edf5f2);
}
.auth-card::before {
    position: absolute;
    top: -120px;
    right: -100px;
    width: 320px;
    height: 320px;
    content: "";
    border: 1px solid rgba(7, 139, 140, .12);
    border-radius: 50%;
    box-shadow: 0 0 0 45px rgba(7, 139, 140, .035);
}
.auth-card-inner {
    position: relative;
    z-index: 1;
    width: min(100%, 560px);
    padding: 46px;
    border: 1px solid rgba(255, 255, 255, .85);
    border-radius: 28px;
    background: rgba(255, 255, 255, .9);
    box-shadow: 0 30px 80px rgba(5, 43, 54, .13);
    backdrop-filter: blur(18px);
}
.step-label {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 99px;
    background: #e4f6f1;
    font-size: 9px;
}
.auth-card h2 {
    margin-top: 14px;
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 42px;
    font-weight: 760;
    letter-spacing: -.05em;
}
.card-intro { max-width: 420px; margin-bottom: 28px; }
.portal-form { gap: 17px; }
.portal-form label { gap: 8px; font-size: 12px; letter-spacing: .01em; }
.portal-form input {
    min-height: 58px;
    padding: 14px 16px;
    border: 0;
    border-radius: 14px;
    background: #f2f7f5;
    box-shadow: inset 0 0 0 1px #d7e5e0;
    transition: background .2s, box-shadow .2s, transform .2s;
}
.portal-form input:focus {
    border-color: transparent;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(7, 139, 140, .12), inset 0 0 0 1px var(--teal);
}
.pin-toggle { right: 11px; padding: 9px 11px; border-radius: 9px; }
.pin-toggle:hover { background: #e4f4ef; }
.primary-button {
    min-height: 58px;
    margin-top: 5px;
    padding: 15px 19px;
    border-radius: 14px;
    background: linear-gradient(135deg, #079b98, #08737d);
    box-shadow: 0 15px 32px rgba(7, 139, 140, .24);
}
.primary-button:hover {
    background: linear-gradient(135deg, #068b89, #075f6a);
    box-shadow: 0 18px 36px rgba(7, 139, 140, .3);
}
.auth-switch { margin-top: 24px; }
.support-note {
    margin-top: 26px;
    padding: 15px;
    border: 1px solid #d9ebe5;
    border-radius: 15px;
    background: #f1f8f5;
}
.support-note > span {
    width: 38px;
    height: 38px;
    background: linear-gradient(145deg, #d7f3eb, #e8f7f2);
}

.dashboard-page {
    background:
        radial-gradient(circle at 90% 0, rgba(7, 139, 140, .09), transparent 30%),
        #f2f6f3;
}
.portal-header { border-bottom-color: rgba(7, 59, 73, .06); box-shadow: 0 8px 28px rgba(5, 43, 54, .04); }
.balance-card {
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 28px;
    background:
        radial-gradient(circle at 88% 15%, rgba(104, 230, 211, .2), transparent 26%),
        linear-gradient(135deg, #053845, #076b72);
    box-shadow: 0 24px 60px rgba(5, 43, 54, .2);
}
.balance-card.has-credit {
    background:
        radial-gradient(circle at 88% 15%, rgba(198, 240, 146, .18), transparent 26%),
        linear-gradient(135deg, #124d40, #19826a);
}
.metric-card, .panel {
    border-color: rgba(220, 230, 226, .8);
    box-shadow: 0 12px 35px rgba(5, 43, 54, .055);
}
.metric-card { border-radius: 19px; }
.metric-icon { border-radius: 15px; }
.panel { border-radius: 22px; }

@media (max-width: 900px) {
    .auth-page {
        background:
            radial-gradient(circle at 85% 4%, rgba(117, 217, 207, .24), transparent 24%),
            linear-gradient(180deg, #063d49 0, #08717a 210px, #eef5f2 210px);
    }
    .auth-card {
        min-height: 100vh;
        align-items: start;
        padding: 104px 18px 28px;
        background: transparent;
    }
    .auth-card::before {
        top: -145px;
        right: -125px;
        width: 350px;
        height: 350px;
        border-color: rgba(255, 255, 255, .12);
        box-shadow: 0 0 0 55px rgba(255, 255, 255, .035);
    }
    .auth-card-inner {
        width: min(100%, 540px);
        margin: 0 auto;
        padding: 62px 24px 24px;
        border-radius: 30px;
        background: rgba(255, 255, 255, .97);
        box-shadow: 0 28px 70px rgba(4, 43, 54, .22);
    }
    .mobile-brand {
        display: flex;
        width: fit-content;
        align-items: center;
        flex-direction: column;
        gap: 10px;
        margin: -112px auto 28px;
        text-align: center;
    }
    .mobile-brand img {
        width: 78px;
        height: 78px;
        border: 6px solid #fff;
        box-shadow: 0 16px 35px rgba(5, 43, 54, .22);
    }
    .mobile-brand span { align-items: center; }
    .mobile-brand strong { color: var(--navy); font-size: 14px; }
    .mobile-brand small { color: var(--teal); }
}

@media (max-width: 650px) {
    .dashboard-main { padding-top: 24px; }
    .balance-card { border-radius: 24px; }
    .metric-card, .panel { border-radius: 19px; }
}

@media (max-width: 420px) {
    .auth-card { padding: 96px 14px 22px; }
    .auth-card-inner { padding: 59px 20px 20px; border-radius: 27px; }
    .mobile-brand { margin-top: -104px; margin-bottom: 24px; }
    .mobile-brand img { width: 72px; height: 72px; }
    .auth-card h2 { font-size: 36px; }
    .card-intro { margin-bottom: 24px; font-size: 14px; }
    .portal-form input, .primary-button { min-height: 56px; }
    .support-note { margin-top: 22px; }
}
