
/* =========================================================
   FINAGROW CUSTOMER PORTAL
   Restored shared responsive stylesheet
   Covers: header, dashboard, profile, auth, financial position
   ========================================================= */

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #101828;
    background: #f7f9fc;
    line-height: 1.5;
    font-size: 15px;
}

a { color: inherit; }

button,
input,
select,
textarea { font: inherit; }

img { max-width: 100%; }

.customer-container {
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto;
}

/* =========================
   TOP HEADER
   ========================= */
.customer-topbar {
    height: 74px;
    background: #fff;
    border-bottom: 1px solid #e4e7ec;
    position: relative;
    z-index: 20;
}

.topbar-inner {
    height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.customer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #101828;
    text-decoration: none;
    min-width: 0;
}

.brand-symbol {
    width: 44px;
    height: 44px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, #155eef, #4f46e5);
    box-shadow: 0 8px 20px rgba(21, 94, 239, .20);
    flex: 0 0 auto;
}

.customer-brand strong {
    display: block;
    font-size: 18px;
    line-height: 1.05;
    letter-spacing: .01em;
}

.customer-brand small {
    display: block;
    color: #667085;
    font-size: 11px;
    margin-top: 3px;
}

.topbar-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mini-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #eaf1ff;
    color: #155eef;
    font-weight: 800;
}

.topbar-user-text strong,
.topbar-user-text small {
    display: block;
}

.topbar-user-text strong { font-size: 13px; }
.topbar-user-text small { color: #667085; font-size: 11px; }

.topbar-logout,
.login-link {
    color: #155eef;
    text-decoration: none;
}

.topbar-logout {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    font-size: 19px;
}

.topbar-logout:hover { background: #f2f4f7; }

.login-link {
    font-weight: 700;
    font-size: 13px;
}

/* =========================
   GLOBAL CUSTOMER CONTENT
   ========================= */
main { min-height: calc(100vh - 130px); }

.eyebrow {
    display: inline-block;
    color: #155eef;
    font-size: 11px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: .13em;
}

.customer-footer {
    background: #fff;
    border-top: 1px solid #e4e7ec;
    padding: 22px 0;
    color: #667085;
    font-size: 12px;
}

.customer-footer .customer-container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

/* =========================
   DASHBOARD
   ========================= */
.dashboard-wrap {
    padding-top: 38px;
    padding-bottom: 55px;
}

.customer-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 35px;
    padding: 34px;
    margin-bottom: 24px;
    border-radius: 24px;
    color: #fff;
    background: linear-gradient(135deg, #155eef 0%, #357af0 100%);
    box-shadow: 0 20px 45px rgba(21, 94, 239, .16);
}

.customer-hero .eyebrow { color: #dbe8ff; }

.customer-hero h1 {
    margin: 8px 0 8px;
    color: #fff;
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.08;
    font-weight: 800;
}

.customer-hero p {
    margin: 0;
    max-width: 720px;
    color: #edf4ff;
    font-size: 15px;
}

.profile-progress {
    min-width: 210px;
    padding: 20px;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 16px;
    background: rgba(255,255,255,.12);
}

.profile-progress span,
.profile-progress strong {
    display: block;
}

.profile-progress span { font-size: 12px; color: #e6efff; }
.profile-progress strong { font-size: 25px; margin: 3px 0 10px; }

.profile-progress > div {
    height: 7px;
    background: rgba(255,255,255,.25);
    border-radius: 20px;
    overflow: hidden;
}

.profile-progress i {
    display: block;
    height: 100%;
    background: #fff;
    border-radius: inherit;
}

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

.module-card {
    min-height: 245px;
    padding: 23px;
    display: flex;
    flex-direction: column;
    position: relative;
    background: #fff;
    border: 1px solid #e4e7ec;
    border-radius: 18px;
    text-decoration: none;
    box-shadow: 0 8px 25px rgba(16,24,40,.045);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.module-card:hover {
    transform: translateY(-3px);
    border-color: #c8d7ff;
    box-shadow: 0 16px 35px rgba(16,24,40,.08);
}

.module-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-size: 21px;
    margin-bottom: 28px;
}

.module-icon.blue { color: #155eef; background: #eaf1ff; }
.module-icon.purple { color: #6941c6; background: #f4ebff; }
.module-icon.green { color: #039855; background: #e9fbf2; }
.module-icon.orange { color: #f79009; background: #fff4e5; }

.module-copy span {
    color: #667085;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .09em;
}

.module-copy h2 {
    margin: 5px 0 7px;
    font-size: 23px;
    line-height: 1.15;
    color: #101828;
}

.module-copy p {
    margin: 0;
    color: #667085;
    font-size: 13px;
    line-height: 1.6;
}

.module-arrow {
    position: absolute;
    right: 20px;
    top: 22px;
    color: #98a2b3;
}

.profile-card {
    margin-top: 22px;
    padding: 24px;
    background: #fff;
    border: 1px solid #e4e7ec;
    border-radius: 18px;
    box-shadow: 0 8px 25px rgba(16,24,40,.045);
}

.panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 17px;
    border-bottom: 1px solid #eef0f3;
}

.panel-head h2 {
    margin: 5px 0 0;
    font-size: 20px;
}

.verified-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    color: #027a48;
    background: #ecfdf3;
    border: 1px solid #abefc6;
    border-radius: 20px;
    padding: 7px 11px;
    font-size: 11px;
    font-weight: 800;
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    padding-top: 20px;
}

.profile-grid span,
.profile-grid strong {
    display: block;
}

.profile-grid span {
    color: #667085;
    font-size: 11px;
    margin-bottom: 4px;
}

.profile-grid strong { font-size: 14px; }

/* =========================
   AUTH PAGES
   ========================= */
.auth-page {
    min-height: calc(100vh - 74px);
    display: grid;
    place-items: center;
    padding: 45px 20px;
    background: linear-gradient(180deg, #f7f9fc, #f3f6fb);
}

.auth-card {
    width: min(100%, 500px);
    padding: 35px;
    background: #fff;
    border: 1px solid #e4e7ec;
    border-radius: 22px;
    box-shadow: 0 18px 50px rgba(16,24,40,.08);
}

.auth-card-wide { width: min(100%, 720px); }
.otp-card { width: min(100%, 460px); }

.auth-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.auth-icon {
    width: 46px;
    height: 46px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    color: #155eef;
    background: #eaf1ff;
    font-size: 20px;
}

.auth-card h1 {
    margin: 0 0 8px;
    font-size: 31px;
    line-height: 1.15;
    font-weight: 800;
}

.auth-intro {
    color: #667085;
    margin: 0 0 25px;
    font-size: 14px;
}

.auth-form .field { margin-bottom: 17px; }

.field label {
    display: block;
    margin-bottom: 7px;
    color: #344054;
    font-size: 12px;
    font-weight: 700;
}

.field label b,
.field label em {
    color: #f04438;
    font-style: normal;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    color: #101828;
    background: #fff;
    border: 1px solid #d0d5dd;
    border-radius: 10px;
    outline: none;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: #155eef;
    box-shadow: 0 0 0 3px rgba(21,94,239,.08);
}

.field small {
    display: block;
    margin-top: 5px;
    color: #98a2b3;
    font-size: 11px;
}

.phone-input {
    display: flex;
    align-items: center;
    overflow: hidden;
    border: 1px solid #d0d5dd;
    border-radius: 10px;
    background: #fff;
}

.phone-input:focus-within {
    border-color: #155eef;
    box-shadow: 0 0 0 3px rgba(21,94,239,.08);
}

.phone-input span {
    padding: 0 12px;
    color: #667085;
    font-weight: 700;
    border-right: 1px solid #eaecf0;
}

.phone-input input {
    border: 0;
    box-shadow: none !important;
    border-radius: 0;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 18px;
}

.form-grid .full { grid-column: 1 / -1; }

.btn-primary-lg,
.btn-outline-lg,
.btn-secondary-lg {
    min-height: 44px;
    padding: 10px 17px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.btn-primary-lg {
    color: #fff;
    border: 0;
    background: linear-gradient(135deg,#155eef,#1046b7);
    box-shadow: 0 8px 18px rgba(21,94,239,.17);
}

.btn-outline-lg {
    color: #155eef;
    border: 1px solid #b2c5f8;
    background: #fff;
}

.btn-secondary-lg {
    color: #344054;
    border: 1px solid #d0d5dd;
    background: #fff;
}

.w-100 { width: 100%; }

.soft-alert {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 12px 13px;
    border-radius: 11px;
    margin-bottom: 17px;
    font-size: 13px;
}

.soft-alert.danger {
    color: #b42318;
    background: #fef3f2;
    border: 1px solid #fecdca;
}

.soft-alert.success {
    color: #027a48;
    background: #ecfdf3;
    border: 1px solid #abefc6;
}

.dev-otp {
    padding: 15px;
    margin-bottom: 18px;
    text-align: center;
    background: #fff7e6;
    border: 1px solid #fedf89;
    border-radius: 12px;
}

.dev-otp small,
.dev-otp strong,
.dev-otp span { display: block; }

.dev-otp small { color: #b54708; font-weight: 800; }
.dev-otp strong { margin: 4px 0; font-size: 25px; letter-spacing: .15em; }
.dev-otp span { color: #667085; font-size: 11px; }

.auth-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 23px 0 15px;
    color: #98a2b3;
    font-size: 11px;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    height: 1px;
    flex: 1;
    background: #eaecf0;
}

.back-home {
    display: block;
    margin-top: 18px;
    color: #667085;
    text-align: center;
    text-decoration: none;
    font-size: 12px;
}

.consent-note,
.secure-note {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin: 18px 0;
    padding: 12px;
    color: #475467;
    background: #f8fbff;
    border: 1px solid #dbe7ff;
    border-radius: 10px;
    font-size: 11px;
}

.step-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
}

.step-indicator span {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #f2f4f7;
    color: #667085;
    font-weight: 800;
}

.step-indicator span.active {
    color: #fff;
    background: #155eef;
}

.step-indicator i {
    width: 30px;
    height: 1px;
    background: #d0d5dd;
}

.auth-heading-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.otp-input-wrap { margin-bottom: 16px; }

.otp-input {
    width: 100%;
    height: 58px;
    text-align: center;
    font-size: 25px;
    font-weight: 800;
    letter-spacing: .25em;
    border: 1px solid #d0d5dd;
    border-radius: 12px;
}

.otp-help {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 15px;
    color: #667085;
    font-size: 11px;
}

.otp-help a { color: #155eef; text-decoration: none; font-weight: 700; }

/* =========================
   PROFILE PAGE
   ========================= */
.profile-page {
    padding: 28px 0 52px;
    background: linear-gradient(180deg,#f7f9fc,#f5f7fb);
    min-height: calc(100vh - 74px);
}

.profile-page .customer-container {
    width: min(1180px, calc(100% - 40px));
    margin: auto;
}

.profile-breadcrumb {
    display: flex;
    gap: 9px;
    margin-bottom: 19px;
    font-size: 12px;
    color: #98a2b3;
}

.profile-breadcrumb a {
    color: #667085;
    font-weight: 700;
    text-decoration: none;
}

.profile-breadcrumb strong { color: #344054; }

.profile-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    margin-bottom: 20px;
}

.profile-hero h1 {
    font-size: 32px !important;
    font-weight: 800 !important;
    margin: 5px 0 6px !important;
}

.profile-hero p {
    margin: 0;
    color: #667085;
    font-size: 13px;
}

.profile-identity {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 1px solid #e4e7ec;
    border-radius: 14px;
    padding: 10px 14px;
}

.profile-avatar {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #eaf1ff;
    color: #155eef;
    font-weight: 800;
}

.profile-identity strong,
.profile-identity span { display: block; }

.profile-identity strong { font-size: 13px; }
.profile-identity div span { font-size: 11px; color: #667085; }

.profile-layout-polished {
    display: grid;
    grid-template-columns: minmax(0,1fr) 300px;
    gap: 16px;
}

.profile-edit-card {
    padding: 25px 27px !important;
    background: #fff;
    border: 1px solid #e4e7ec;
    border-radius: 18px;
    box-shadow: 0 8px 26px rgba(16,24,40,.035);
}

.profile-card-head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding-bottom: 19px;
    border-bottom: 1px solid #eef0f3;
}

.profile-card-head h2 {
    font-size: 20px !important;
    font-weight: 800 !important;
    margin: 5px 0 4px !important;
}

.profile-card-head p {
    font-size: 12px;
    color: #667085;
    margin: 0;
}

.profile-form-polished { padding-top: 20px; }

.form-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 13px;
    color: #344054;
    font-size: 12px;
    font-weight: 800;
}

.form-section-title::after {
    content: "";
    height: 1px;
    background: #eef0f3;
    flex: 1;
}

.contact-title { margin-top: 7px; }

.form-grid-polished {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 16px;
}

.form-grid-polished .full { grid-column: 1 / -1; }

.profile-form-polished .field { margin-bottom: 15px; }

.profile-form-polished .field label {
    display: block;
    color: #344054;
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 6px;
}

.input-wrap {
    height: 44px;
    display: flex;
    align-items: center;
    border: 1px solid #d0d5dd;
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
}

.input-wrap:focus-within {
    border-color: #155eef;
    box-shadow: 0 0 0 3px rgba(21,94,239,.08);
}

.input-wrap > i {
    color: #98a2b3;
    margin-left: 12px;
}

.input-wrap input,
.input-wrap select {
    width: 100%;
    height: 42px;
    border: 0 !important;
    outline: 0 !important;
    background: transparent !important;
    padding: 0 11px;
    color: #101828;
    font: 500 13px Inter,system-ui,sans-serif;
    box-shadow: none !important;
}

.select-wrap { position: relative; }
.select-wrap select { appearance: none; }

.select-wrap::after {
    content: "▼";
    position: absolute;
    right: 12px;
    color: #667085;
    font-size: 8px;
    pointer-events: none;
}

.locked-input {
    background: #f8fafc;
    border-color: #eaecf0;
}

.locked-input input { color: #667085 !important; }

.lock-icon {
    display: grid;
    place-items: center;
    width: 29px;
    height: 29px;
    margin-right: 7px;
    border-radius: 7px;
    background: #eef2f6;
    color: #98a2b3;
    font-size: 10px;
}

.profile-form-polished .field small {
    display: block;
    color: #98a2b3;
    font-size: 10px;
    margin-top: 5px;
}

.profile-form-footer {
    display: flex;
    justify-content: flex-end;
    gap: 9px;
    padding-top: 18px;
    border-top: 1px solid #eef0f3;
}

.profile-sidebar {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.side-panel {
    background: #fff;
    border: 1px solid #e4e7ec;
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 7px 22px rgba(16,24,40,.035);
}

.side-panel-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    margin-bottom: 12px;
}

.side-panel-icon.green { background: #e9fbf2; color: #039855; }
.side-panel-icon.blue { background: #eaf1ff; color: #155eef; }

.side-panel h3 {
    font-size: 15px !important;
    font-weight: 800 !important;
    margin: 5px 0 6px !important;
}

.side-panel p {
    color: #667085;
    font-size: 12px;
    line-height: 1.65;
    margin: 0;
}

.security-status {
    margin-top: 13px;
    padding: 9px;
    border: 1px solid #abefc6;
    background: #ecfdf3;
    color: #027a48;
    border-radius: 9px;
    font-size: 11px;
    font-weight: 800;
}

.side-panel-top {
    display: flex;
    justify-content: space-between;
}

.completion-badge {
    font-size: 10px;
    font-weight: 800;
    color: #155eef;
    background: #eaf1ff;
    border-radius: 20px;
    padding: 5px 8px;
}

.mini-progress {
    height: 5px;
    background: #eaecf0;
    border-radius: 20px;
    overflow: hidden;
    margin: 13px 0;
}

.mini-progress span {
    display: block;
    height: 100%;
    background: #155eef;
}

.side-panel a {
    font-size: 11px;
    color: #155eef;
    font-weight: 800;
    text-decoration: none;
}

.privacy-panel {
    display: flex;
    gap: 9px;
    background: #f8fbff;
    border-color: #dbe7ff;
}

.privacy-panel > i { color: #155eef; }
.privacy-panel strong { display: block; font-size: 11px; }
.privacy-panel p { font-size: 10px; }

/* =========================
   FINANCIAL POSITION
   ========================= */
.fp-page {
    padding: 30px 0 55px;
    background: #f7f9fc;
    min-height: calc(100vh - 74px);
}

.fp-container {
    width: min(1180px, calc(100% - 40px));
    margin: auto;
}

.fp-topbar,
.fp-actions,
.fp-card-head,
.fp-complete-row,
.fp-result-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.fp-topbar { margin-bottom: 22px; }

.fp-topbar h1,
.fp-result-hero h1 {
    margin: 6px 0;
    font-size: clamp(28px,4vw,40px);
    line-height: 1.12;
    font-weight: 800;
}

.fp-topbar p,
.fp-result-hero p {
    color: #667085;
    margin: 0;
}

.fp-stepper {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 22px;
    overflow-x: auto;
}

.fp-step {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #98a2b3;
    white-space: nowrap;
    font-size: 12px;
    font-weight: 700;
}

.fp-step-number {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #eaecf0;
    color: #667085;
}

.fp-step.highlight { color: #155eef; }
.fp-step.highlight .fp-step-number { color: #fff; background: #155eef; }

.fp-card {
    margin-bottom: 18px;
    padding: 25px;
    background: #fff;
    border: 1px solid #e4e7ec;
    border-radius: 18px;
    box-shadow: 0 8px 26px rgba(16,24,40,.035);
}

.fp-card-head {
    padding-bottom: 17px;
    border-bottom: 1px solid #eef0f3;
    margin-bottom: 18px;
}

.fp-card-head h2 {
    margin: 5px 0 4px;
    font-size: 20px;
}

.fp-card-head p {
    margin: 0;
    color: #667085;
    font-size: 12px;
}

.fp-form { margin-top: 5px; }

.fp-common-grid,
.fp-band-grid {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 16px;
}

.fp-field { margin-bottom: 15px; }
.fp-field.grow { min-width: 0; }

.fp-field label {
    display: block;
    color: #344054;
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 6px;
}

.fp-field input,
.fp-field select {
    width: 100%;
    min-height: 44px;
    border: 1px solid #d0d5dd;
    border-radius: 10px;
    padding: 9px 11px;
    background: #fff;
}

.fp-input-prefix {
    display: flex;
    align-items: center;
    border: 1px solid #d0d5dd;
    border-radius: 10px;
    overflow: hidden;
}

.fp-input-prefix span {
    padding: 0 12px;
    color: #667085;
    background: #f8fafc;
    border-right: 1px solid #eaecf0;
}

.fp-input-prefix input {
    border: 0;
    border-radius: 0;
}

.fp-repeat-list { display: grid; gap: 10px; }

.fp-repeat-row {
    display: grid;
    grid-template-columns: minmax(0,1fr) 160px 160px 45px;
    gap: 10px;
    align-items: end;
    padding: 12px;
    background: #f8fafc;
    border: 1px solid #eaecf0;
    border-radius: 12px;
}

.fp-repeat-row.liability-row {
    grid-template-columns: minmax(0,1fr) 160px 160px 45px;
}

.fp-remove {
    width: 42px;
    height: 42px;
    border: 1px solid #fecdca;
    border-radius: 9px;
    color: #b42318;
    background: #fff;
    cursor: pointer;
}

.fp-btn {
    min-height: 42px;
    padding: 9px 15px;
    border-radius: 10px;
    border: 1px solid #d0d5dd;
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

.fp-btn.primary {
    color: #fff;
    border-color: #155eef;
    background: #155eef;
}

.fp-btn.secondary {
    color: #344054;
    background: #fff;
}

.fp-add {
    border: 0;
    color: #155eef;
    background: #eaf1ff;
}

.fp-alert {
    padding: 12px 14px;
    margin-bottom: 18px;
    border-radius: 11px;
    font-size: 13px;
}

.fp-alert.danger {
    color: #b42318;
    background: #fef3f2;
    border: 1px solid #fecdca;
}

.fp-alert.success {
    color: #027a48;
    background: #ecfdf3;
    border: 1px solid #abefc6;
}

.fp-result-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 18px;
}

.fp-result-hero {
    padding: 30px;
    border-radius: 22px;
    color: #fff;
    background: linear-gradient(135deg,#155eef,#357af0);
}

.fp-result-hero .fp-eyebrow { color: #dbe8ff; }
.fp-result-hero p { color: #edf4ff; }

.fp-result-score {
    min-width: 170px;
    padding: 20px;
    text-align: center;
    border-radius: 16px;
    background: rgba(255,255,255,.13);
    border: 1px solid rgba(255,255,255,.2);
}

.fp-result-score strong {
    display: block;
    font-size: 38px;
    line-height: 1;
}

.fp-result-comment { margin-top: 18px; }

.fp-comment-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: #fff;
}

.fp-card.simple { padding: 22px; }

.fp-card-head.simple { margin-bottom: 14px; }

.fp-breakdown-card,
.fp-bands-card,
.fp-result-card { min-width: 0; }

.fp-donut-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12px;
}

.fp-donut {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: conic-gradient(#155eef 0 50%, #f79009 50% 80%, #12b76a 80% 100%);
    display: grid;
    place-items: center;
}

.fp-donut-center {
    width: 115px;
    height: 115px;
    border-radius: 50%;
    background: #fff;
    display: grid;
    place-items: center;
    text-align: center;
}

.fp-donut-center strong { display: block; font-size: 22px; }
.fp-donut-center span { color: #667085; font-size: 10px; }

.fp-legend { display: grid; gap: 8px; }
.fp-legend > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

.income-dot,.expense-dot,.saving-dot {
    width: 9px;
    height: 9px;
    display: inline-block;
    border-radius: 50%;
    margin-right: 7px;
}

.income-dot { background: #155eef; }
.expense-dot { background: #f79009; }
.saving-dot { background: #12b76a; }

.fp-position-meter { margin-top: 20px; }

.fp-meter-track {
    display: grid;
    grid-template-columns: repeat(6,1fr);
    height: 18px;
    border-radius: 10px;
    overflow: hidden;
}

.fp-meter-segment { position: relative; }
.fp-meter-segment.very-poor,
.fp-meter-segment.poor { background: #f04438; }
.fp-meter-segment.average { background: #fdb022; }
.fp-meter-segment.good { background: #12b76a; }
.fp-meter-segment.very-good,
.fp-meter-segment.excellent { background: #039855; }

.fp-meter-marker {
    width: 3px;
    height: 30px;
    background: #101828;
    margin-top: -24px;
    position: relative;
}

.fp-meter-labels {
    display: grid;
    grid-template-columns: repeat(6,1fr);
    gap: 4px;
    margin-top: 7px;
    font-size: 9px;
    color: #667085;
    text-align: center;
}

.fp-measure-table {
    width: 100%;
    border-collapse: collapse;
}

.fp-measure-table th,
.fp-measure-table td {
    padding: 10px;
    border-bottom: 1px solid #eef0f3;
    text-align: left;
    font-size: 12px;
}

.fp-measure-table th { color: #667085; }

.fp-chip {
    display: inline-flex;
    padding: 5px 8px;
    border-radius: 20px;
    background: #f2f4f7;
    color: #344054;
    font-size: 10px;
    font-weight: 800;
}

.fp-secure {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #027a48;
    background: #ecfdf3;
    border: 1px solid #abefc6;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 11px;
}

/* =========================
   RESPONSIVE
   ========================= */
@media (max-width: 1000px) {
    .module-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .profile-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .profile-layout-polished { grid-template-columns: 1fr; }
    .profile-sidebar { display: grid; grid-template-columns: 1fr 1fr; }
    .privacy-panel { grid-column: 1 / -1; }
    .fp-result-layout { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
    .customer-container,
    .profile-page .customer-container,
    .fp-container {
        width: min(100% - 28px, 680px);
    }

    .customer-topbar,
    .topbar-inner { height: 68px; }

    .brand-symbol { width: 40px; height: 40px; }
    .customer-brand strong { font-size: 16px; }

    .customer-hero {
        flex-direction: column;
        align-items: stretch;
        padding: 25px;
    }

    .profile-progress { min-width: 0; }

    .module-grid { grid-template-columns: 1fr; }
    .module-card { min-height: 190px; }

    .profile-grid { grid-template-columns: 1fr; }
    .panel-head { align-items: flex-start; flex-direction: column; }

    .form-grid,
    .form-grid-polished,
    .fp-common-grid,
    .fp-band-grid {
        grid-template-columns: 1fr;
    }

    .form-grid .full,
    .form-grid-polished .full { grid-column: auto; }

    .profile-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .profile-identity { width: 100%; }

    .profile-sidebar {
        grid-template-columns: 1fr;
    }

    .privacy-panel { grid-column: auto; }

    .profile-card-head,
    .auth-heading-row,
    .fp-topbar,
    .fp-card-head,
    .fp-result-actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .fp-repeat-row,
    .fp-repeat-row.liability-row {
        grid-template-columns: 1fr;
    }

    .fp-remove { width: 100%; }

    .fp-result-score { width: 100%; }

    .customer-footer .customer-container {
        flex-direction: column;
    }
}

@media (max-width: 520px) {
    .customer-container,
    .profile-page .customer-container,
    .fp-container {
        width: calc(100% - 22px);
    }

    .dashboard-wrap,
    .profile-page,
    .fp-page { padding-top: 20px; }

    .customer-hero h1 { font-size: 31px; }
    .customer-hero p { font-size: 13px; }

    .auth-card {
        padding: 24px 18px;
        border-radius: 17px;
    }

    .auth-card h1 { font-size: 26px; }

    .auth-heading-row { gap: 12px; }

    .profile-edit-card,
    .fp-card { padding: 18px !important; }

    .profile-form-footer {
        justify-content: stretch;
    }

    .profile-form-footer a,
    .profile-form-footer button {
        flex: 1;
    }

    .fp-actions {
        width: 100%;
        flex-wrap: wrap;
    }

    .fp-actions .fp-btn { flex: 1; }

    .fp-meter-labels {
        font-size: 7px;
    }
}

@media (max-width: 380px) {
    .topbar-user-text { display: none !important; }
    .customer-brand small { display: none; }
    .customer-brand strong { font-size: 15px; }
    .customer-hero { padding: 20px; }
}
