@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
    /* Aligned with boldwealth.ca design system */
    --navy: #12161e;
    --navy-mid: #0c141f;
    --navy-deep: #040910;
    --sky-blue: #2e8dbf;
    --sky-blue-pale: #ebf4fa;
    --sky-blue-light: #c9e0f0;
    --steel-blue: #2e3b55;
    --gold: #c9a84c;
    --gold-light: #e8c97a;
    --gold-pale: #faf4e6;
    --cream: #f5f7fa;
    --text: #12161e;
    --text-muted: #565b66;
    --border: #d1d5db;
    --success: #2d7a4f;
    --danger: #b91c1c;
    --white: #ffffff;
    --radius: 0.75rem;
    --radius-input: 5px;
    --radius-pill: 2.5rem;
    --shadow: 0 4px 24px rgba(4,9,16,0.08);
    --font-base: 15px;
    --font-heading: 'Manrope', sans-serif;
    --font-body: 'Manrope', sans-serif;
}

/* ── FONT SIZE TIERS ── */
.font-normal {
    --font-base: 16px;
}

.font-medium {
    --font-base: 19px;
}

.font-large {
    --font-base: 22px;
}

.font-xlarge {
    --font-base: 26px;
}

.font-medium .field-label {
    font-size: 17px;
}

.font-large .field-label {
    font-size: 20px;
}

.font-xlarge .field-label {
    font-size: 24px;
}

.font-medium .field-input,
.font-medium .field-input option,
.font-medium select.field-input {
    font-size: 18px;
}

.font-large .field-input,
.font-large .field-input option,
.font-large select.field-input {
    font-size: 21px;
    padding: 14px 14px;
}

.font-xlarge .field-input,
.font-xlarge .field-input option,
.font-xlarge select.field-input {
    font-size: 25px;
    padding: 16px 14px;
}

.font-medium .radio-label {
    font-size: 18px;
}

.font-large .radio-label {
    font-size: 21px;
}

.font-xlarge .radio-label {
    font-size: 25px;
}

.font-medium .kyc-card-header h1 {
    font-size: 30px;
}

.font-large .kyc-card-header h1 {
    font-size: 34px;
}

.font-xlarge .kyc-card-header h1 {
    font-size: 40px;
}

.font-medium .kyc-card-header p,
.font-medium .info-box,
.font-medium .form-section p {
    font-size: 17px;
}

.font-large .kyc-card-header p,
.font-large .info-box,
.font-large .form-section p {
    font-size: 20px;
}

.font-xlarge .kyc-card-header p,
.font-xlarge .info-box,
.font-xlarge .form-section p {
    font-size: 24px;
}

.font-medium .section-title {
    font-size: 21px;
}

.font-large .section-title {
    font-size: 24px;
}

.font-xlarge .section-title {
    font-size: 28px;
}

.font-medium .btn-primary,
.font-medium .btn-secondary {
    font-size: 17px;
}

.font-large .btn-primary,
.font-large .btn-secondary {
    font-size: 20px;
    padding: 14px 30px;
}

.font-xlarge .btn-primary,
.font-xlarge .btn-secondary {
    font-size: 23px;
    padding: 16px 34px;
}

.font-medium .nav-label {
    font-size: 15px;
}

.font-large .nav-label {
    font-size: 16px;
}

.font-xlarge .nav-label {
    font-size: 18px;
}

/* ── FONT SIZE BAR (inside form card) ── */
.font-size-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 0;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.font-size-bar-label {
    font-size: 13px;
    color: var(--text-muted);
    margin-right: auto;
    display: flex;
    align-items: center;
    gap: 6px;
}

    .font-size-bar-label svg {
        opacity: 0.5;
    }

.font-size-bar-btn {
    border: 1.5px solid var(--border);
    background: var(--white);
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 6px;
    font-family: var(--font-body);
    font-weight: 600;
    transition: all 0.15s;
    line-height: 1;
    min-width: 40px;
    text-align: center;
}

    .font-size-bar-btn:hover {
        border-color: var(--sky-blue);
        color: var(--text);
    }

    .font-size-bar-btn.active {
        background: var(--navy);
        border-color: var(--navy);
        color: var(--white);
    }

    .font-size-bar-btn.fs-normal {
        font-size: 13px;
        padding: 6px 10px;
    }

    .font-size-bar-btn.fs-medium {
        font-size: 16px;
        padding: 5px 10px;
    }

    .font-size-bar-btn.fs-large {
        font-size: 19px;
        padding: 4px 10px;
    }

    .font-size-bar-btn.fs-xlarge {
        font-size: 22px;
        padding: 3px 10px;
    }

/* ── HEADER FONT TOGGLE (remove — now in form) ── */
.font-toggle {
    display: none;
}

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

body {
    font-family: var(--font-body);
    font-size: var(--font-base);
    background: var(--cream);
    color: var(--text);
    min-height: 100vh;
}

/* ── GATE SCREEN ── */
.gate-screen {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--navy);
    padding: 40px 20px;
}

.gate-card {
    background: var(--white);
    border-radius: 16px;
    padding: 48px 40px;
    max-width: 460px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: cardIn 0.6s ease-out;
}

@keyframes cardIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Brand Logo */
.brand-logo {
    margin-bottom: 32px;
}

    .brand-logo .logo-img {
        height: 40px;
        width: auto;
        display: block;
        margin-bottom: 6px;
    }

.brand-subtitle {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

/* Headings */
.gate-card h1 {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 12px;
}

.gate-description {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 32px;
}

/* Client Info Box */
.client-info-box {
    background: var(--sky-blue-pale);
    border: 1px solid var(--sky-blue-light);
    border-radius: var(--radius);
    padding: 16px 20px;
    margin-bottom: 28px;
}

    .client-info-box .info-label {
        font-size: 11px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        color: var(--text-muted);
        margin-bottom: 4px;
    }

    .client-info-box .info-value {
        font-family: var(--font-heading);
        font-size: 16px;
        font-weight: 600;
        color: var(--navy);
    }

/* Form Fields */
.form-group {
    margin-bottom: 20px;
}

.field-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}

.field-input {
    width: 100%;
    padding: .8rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-input);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text);
    background: transparent;
    min-height: 3.1rem;
    line-height: 1.4;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

    .field-input:focus {
        border-color: var(--steel-blue);
        box-shadow: 0 0 0 3px rgba(46,141,191,0.12);
    }

    .field-input::placeholder {
        color: #b8b8b8;
    }

.field-textarea {
    resize: vertical;
    min-height: 80px;
}

select.field-input {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

/* DOB Row */
.dob-row {
    display: flex;
    gap: 12px;
}

    .dob-row .form-group {
        flex: 1;
    }

/* Error Message */
.error-message {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff1f2;
    border: 1px solid #fca5a5;
    color: var(--danger);
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 20px;
    animation: shakeIn 0.3s ease-out;
}

@keyframes shakeIn {
    0%, 100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-6px);
    }

    75% {
        transform: translateX(6px);
    }
}

/* Primary Button */
.btn-primary {
    width: 100%;
    padding: .8rem 1.8rem;
    background: var(--navy-deep);
    color: var(--white);
    border: 1px solid var(--navy);
    border-radius: var(--radius-pill);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

    .btn-primary:hover:not(:disabled) {
        border-color: var(--sky-blue);
        background: var(--sky-blue);
        color: var(--navy-deep);
    }

    .btn-primary:active:not(:disabled) {
        transform: translateY(0);
    }

    .btn-primary:disabled {
        opacity: 0.7;
        cursor: not-allowed;
    }

/* Spinner */
.spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

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

/* Secure Badge */
.login-mode-switch {
    text-align: center;
    margin-top: 16px;
    font-size: 13px;
    color: var(--text-muted);
}

    .login-mode-switch a {
        color: var(--sky-blue);
        text-decoration: none;
        font-weight: 500;
        cursor: pointer;
    }

        .login-mode-switch a:hover {
            color: var(--navy);
            text-decoration: underline;
        }

/* Resume Draft Prompt */
.resume-prompt {
    background: var(--sky-blue-pale);
    border: 1px solid var(--sky-blue);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 20px;
    text-align: center;
}

.resume-prompt-icon {
    margin-bottom: 12px;
}

.resume-prompt-text {
    font-size: 15px;
    color: var(--text);
    line-height: 1.5;
    margin-bottom: 16px;
}

.resume-prompt-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

    .resume-prompt-buttons .btn-primary,
    .resume-prompt-buttons .btn-secondary {
        width: 100%;
        justify-content: center;
    }

.secure-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 24px;
    font-size: 12px;
    color: var(--text-muted);
}

/* Radio Buttons */
.radio-group {
    display: flex;
    gap: 16px;
    margin-top: 6px;
}

.radio-group-vertical {
    flex-direction: column;
    gap: 8px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 10px 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius-input);
    background: transparent;
    transition: all 0.15s;
    font-size: 1rem;
    color: var(--text);
}

    .radio-option:hover {
        border-color: var(--sky-blue);
        background: var(--sky-blue-pale);
    }

    .radio-option input[type="radio"] {
        accent-color: var(--sky-blue);
        width: 16px;
        height: 16px;
        margin: 0;
    }

        .radio-option input[type="radio"]:checked + .radio-label {
            font-weight: 600;
            color: var(--navy);
        }

    .radio-option:has(input:checked) {
        border-color: var(--sky-blue);
        background: var(--sky-blue-pale);
    }

/* ── DEBT CARDS ── */
.debt-card {
    background: var(--cream);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 16px;
    position: relative;
    animation: cardIn 0.3s ease-out;
}

.debt-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.debt-card-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.collapse-chevron {
    transition: transform 0.2s;
    flex-shrink: 0;
    color: var(--text-muted);
}

    .collapse-chevron.expanded {
        transform: rotate(90deg);
    }

.debt-card-summary {
    font-size: 14px;
    color: var(--text-muted);
    margin-left: 8px;
}

.debt-card-title {
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    color: var(--navy);
}

.debt-ownership-badge {
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    flex-shrink: 0;
}

    .debt-ownership-badge.joint {
        background: #e0edff;
        color: #1a5aa8;
    }

    .debt-ownership-badge.sole {
        background: #f0f0f0;
        color: #666;
    }

.debt-card-body {
    margin-top: 20px;
    animation: cardIn 0.2s ease-out;
}

.btn-remove {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.15s;
}

    .btn-remove:hover {
        color: var(--danger);
        background: #fff1f2;
    }

.btn-add {
    width: 100%;
    padding: 16px;
    background: var(--sky-blue);
    border: 2px solid var(--sky-blue);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.15s;
    margin-top: 8px;
    margin-bottom: 24px;
}

    .btn-add:hover {
        background: #257aab;
        border-color: #257aab;
        color: #fff;
    }

.field-hint {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

.info-box {
    background: var(--sky-blue-pale);
    border: 1px solid var(--sky-blue-light);
    border-radius: 8px;
    padding: 16px 20px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text);
    margin-bottom: 20px;
}

    .info-box strong {
        color: var(--navy);
    }

.info-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--sky-blue-pale);
    border: 1px solid var(--sky-blue-light);
    border-radius: 6px;
    cursor: pointer;
    color: var(--navy);
    padding: 6px 14px;
    margin-top: 8px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    transition: background 0.15s ease, border-color 0.15s ease;
}

    .info-more-btn:hover {
        background: var(--sky-blue-light);
        border-color: var(--sky-blue);
    }

    .info-more-btn svg {
        flex-shrink: 0;
    }

/* ── Income Spinner ── */
.income-spinner {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0;
    border: 2px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    max-width: 480px;
    width: 100%;
    background: #fff;
    transition: border-color 0.15s ease;
}

    .income-spinner:focus-within {
        border-color: var(--sky-blue);
    }

.spinner-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 56px;
    width: 56px;
    border: none;
    background: var(--sky-blue-pale);
    color: var(--navy);
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.12s ease;
}

    .spinner-btn:hover:not(:disabled) {
        background: var(--sky-blue-light);
    }

    .spinner-btn:active:not(:disabled) {
        background: var(--sky-blue);
        color: #fff;
    }

    .spinner-btn:disabled {
        opacity: 0.35;
        cursor: not-allowed;
    }

.spinner-value {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    color: var(--navy);
    padding: 14px 12px;
    user-select: none;
    letter-spacing: -0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Font-size overrides for the spinner */
.font-medium .spinner-value {
    font-size: 18px;
}

.font-medium .spinner-btn {
    min-width: 60px;
    width: 60px;
}

.font-large .spinner-value {
    font-size: 20px;
}

.font-large .spinner-btn {
    min-width: 64px;
    width: 64px;
}

.font-xlarge .spinner-value {
    font-size: 22px;
}

.font-xlarge .spinner-btn {
    min-width: 68px;
    width: 68px;
}

.conditional-field {
    margin-left: 16px;
    padding-left: 16px;
    border-left: 3px solid var(--sky-blue);
    margin-bottom: 20px;
    animation: cardIn 0.2s ease-out;
}

.warning-message {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #fff8e6;
    border: 1px solid var(--gold);
    color: #7a6520;
    padding: 14px 18px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 20px;
    animation: cardIn 0.3s ease-out;
}

    .warning-message svg {
        flex-shrink: 0;
        margin-top: 2px;
        color: var(--gold);
    }

.no-debts-message {
    text-align: center;
    padding: 32px 20px;
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 16px;
}

/* Account Cards */
.account-card {
    background: var(--cream);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 16px;
    animation: cardIn 0.3s ease-out;
}

.account-card-header {
    margin-bottom: 16px;
}

.account-card-title {
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 4px;
}

.account-card-type {
    font-size: .85rem;
    font-weight: 500;
    color: var(--text-muted);
    background: var(--white);
    padding: 2px 10px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border);
}

.loading-message {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 40px 20px;
    color: var(--text-muted);
    font-size: 15px;
}

/* ── KYC APP LAYOUT ── */
.app-header {
    background: var(--navy);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    height: 56px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    object-fit: contain;
    background: rgba(255,255,255,0.1);
    padding: 4px;
}

.header-brand-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 16px;
    color: var(--white);
}

    .header-brand-name span {
        font-weight: 400;
        opacity: 0.7;
    }

.header-client {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
}

    .header-client strong {
        color: var(--white);
    }

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.app-body {
    display: flex;
    min-height: calc(100vh - 56px);
}

/* Sidebar */
.sidebar {
    width: 260px;
    background: var(--white);
    border-right: 1px solid var(--border);
    padding: 28px 0;
    flex-shrink: 0;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.15s;
    border-left: 3px solid transparent;
}

    .nav-item:hover {
        background: var(--sky-blue-pale);
        color: var(--text);
    }

    .nav-item.active {
        background: var(--sky-blue-pale);
        color: var(--navy);
        font-weight: 600;
        border-left-color: var(--sky-blue);
    }

.nav-number {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--cream);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
}

.nav-item.active .nav-number {
    background: var(--sky-blue);
    color: var(--white);
}

.nav-item.completed {
    color: var(--success);
}

    .nav-item.completed .nav-number {
        background: var(--success);
        color: var(--white);
    }

.nav-label {
    white-space: nowrap;
}

.nav-item.disabled {
    color: var(--border);
    cursor: default;
    pointer-events: none;
    opacity: 0.5;
}

    .nav-item.disabled .nav-number {
        background: var(--cream);
        color: var(--border);
    }

    .nav-item.disabled:hover {
        background: transparent;
        color: var(--border);
    }

/* Main Content */
.kyc-main {
    flex: 1;
    padding: 32px 40px;
    background: var(--cream);
    overflow-y: auto;
}

.kyc-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    max-width: 900px;
    width: 100%;
    padding: 40px;
    animation: cardIn 0.4s ease-out;
}

/* On very wide screens, let it breathe even more */
@media (min-width: 1400px) {
    .kyc-card {
        max-width: 1000px;
        padding: 48px 56px;
    }
}

@media (min-width: 1800px) {
    .kyc-card {
        max-width: 1100px;
    }
}

.kyc-card-header h1 {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 8px;
}

.kyc-card-header p {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 32px;
}

/* Form Sections */
.form-section {
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border);
}

    .form-section:last-of-type {
        border-bottom: none;
        margin-bottom: 0;
        padding-bottom: 0;
    }

.section-title {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

/* Field Row (side-by-side) */
.field-row {
    display: flex;
    gap: 16px;
}

    .field-row .form-group {
        flex: 1;
    }

/* Navigation Buttons */
.kyc-nav-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.btn-nav {
    width: auto;
    padding: 12px 28px;
}

.btn-secondary {
    padding: .8rem 1.8rem;
    background: var(--white);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

    .btn-secondary:hover {
        border-color: var(--sky-blue);
        background: var(--sky-blue-pale);
        color: var(--navy);
    }

/* ── REVIEW & SUBMIT PAGE ── */
.review-changes-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    background: #fff8e1;
    border: 1px solid #f0d060;
    border-radius: var(--radius);
    font-size: 14px;
    color: #7a6200;
    margin-bottom: 24px;
}

.review-nochanges-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    background: #edf7ed;
    border: 1px solid #a8d5a8;
    border-radius: var(--radius);
    font-size: 14px;
    color: var(--success);
    margin-bottom: 24px;
}

.review-section {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 16px;
    overflow: hidden;
}

.review-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: var(--cream);
    cursor: pointer;
    transition: background 0.15s;
}

    .review-section-header:hover {
        background: #eef2f7;
    }

    .review-section-header h2 {
        font-family: var(--font-heading);
        font-size: 17px;
        font-weight: 600;
        color: var(--navy);
        margin: 0;
    }

.review-edit-link {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    font-weight: 500;
    color: var(--sky-blue);
    text-decoration: none;
    transition: color 0.15s;
}

    .review-edit-link:hover {
        color: var(--navy);
    }

.review-fields {
    padding: 12px 20px;
}

.review-field-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 10px 0;
    border-bottom: 1px solid #f0ece4;
    gap: 16px;
}

    .review-field-row:last-child {
        border-bottom: none;
    }

    .review-field-row.review-changed {
        background: #fffbeb;
        margin: 0 -20px;
        padding: 10px 20px;
        border-left: 3px solid var(--sky-blue);
    }

.review-field-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    min-width: 160px;
    flex-shrink: 0;
}

.review-field-value-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.review-field-value {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    text-align: right;
}

    .review-field-value.muted {
        color: var(--text-muted);
        font-style: italic;
        font-weight: 400;
    }

.review-field-original {
    font-size: 12px;
    color: var(--text-muted);
    font-style: italic;
    text-decoration: line-through;
}

.review-change-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    background: var(--sky-blue-pale);
    border: 1px solid var(--sky-blue);
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    color: var(--steel-blue);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Debt items in review */
.review-debts-list,
.review-accounts-list {
    padding: 12px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.review-debt-item {
    padding: 12px 16px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
}

    .review-debt-item.review-changed {
        border-left: 3px solid var(--sky-blue);
        background: #fffbeb;
    }

.review-debt-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.review-debt-type {
    font-weight: 600;
    font-size: 14px;
    color: var(--navy);
}

.review-debt-details {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 13px;
    color: var(--text-muted);
}

    .review-debt-details strong {
        color: var(--text);
    }

/* Account items in review */
.review-account-item {
    padding: 12px 16px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
}

.review-account-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--navy);
    margin-bottom: 4px;
}

.review-account-meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--text-muted);
}

    .review-account-meta strong {
        color: var(--text);
    }

.review-account-type {
    padding: 1px 8px;
    background: var(--cream);
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

/* Signature Section */
.review-signature-section {
    margin-top: 32px;
    padding-top: 28px;
    border-top: 2px solid var(--navy);
}

.signature-legal-text {
    font-size: 13px;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 20px;
    padding: 16px;
    background: var(--cream);
    border-radius: var(--radius);
    border-left: 3px solid var(--navy);
}

.signature-input {
    font-size: 18px !important;
    letter-spacing: 0.3px;
    padding: 14px 16px !important;
}

.signature-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px;
    background: var(--white);
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    margin-top: 16px;
}

.signature-preview-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.signature-preview-name {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 600;
    color: var(--navy);
    font-style: italic;
}

.signature-preview-date {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 6px;
}

/* Submit button */
.btn-submit {
    padding: 14px 32px !important;
    font-size: 16px !important;
    gap: 8px;
}

    .btn-submit.btn-loading {
        opacity: 0.7;
        cursor: not-allowed;
    }

/* Success state */
.review-success-card {
    text-align: center;
    padding: 60px 40px !important;
}

.success-icon {
    margin-bottom: 24px;
}

.review-success-card h1 {
    font-family: var(--font-heading);
    font-size: 28px;
    color: var(--navy);
    margin-bottom: 12px;
}

.success-message {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 32px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.success-details {
    background: var(--cream);
    border-radius: var(--radius);
    padding: 20px 24px;
    max-width: 360px;
    margin: 0 auto;
}

.success-detail-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
}

    .success-detail-row:first-child {
        border-bottom: 1px solid var(--border);
    }

.detail-label {
    color: var(--text-muted);
}

.detail-value {
    font-weight: 600;
    color: var(--text);
}

    .detail-value.call-required {
        color: var(--danger);
    }

    .detail-value.no-call {
        color: var(--success);
    }

/* ── RESPONSIVE ── */
@media (max-width: 520px) {
    .gate-card {
        padding: 36px 24px;
    }

        .gate-card h1 {
            font-size: 22px;
        }

    .dob-row {
        flex-direction: column;
        gap: 0;
    }
}

@media (max-width: 768px) {
    .sidebar {
        display: none;
    }

    .kyc-main {
        padding: 20px 16px;
    }

    .kyc-card {
        padding: 28px 20px;
    }

    .field-row {
        flex-direction: column;
        gap: 0;
    }

    .app-header {
        padding: 0 16px;
    }

    .header-client {
        display: none;
    }

    .review-field-row {
        flex-direction: column;
        gap: 4px;
    }

    .review-field-value-wrapper {
        align-items: flex-start;
    }

    .review-field-value {
        text-align: left;
    }

    .review-field-row.review-changed {
        margin: 0 -20px;
        padding: 10px 20px;
    }

    .review-debt-details {
        flex-direction: column;
        gap: 4px;
    }

    .review-account-meta {
        flex-direction: column;
        gap: 4px;
    }

    .signature-preview-name {
        font-size: 22px;
    }

    .review-success-card {
        padding: 40px 20px !important;
    }

    .income-spinner {
        max-width: 100%;
    }

        .income-spinner .spinner-btn {
            min-width: 44px;
            width: 44px;
        }

    .spinner-control {
        max-width: 100%;
    }

        .spinner-control .spinner-btn {
            min-width: 40px;
            width: 40px;
            height: 40px;
        }
}

/* ── BLAZOR OVERRIDES ── */
h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

/* ── NET WORTH PAGE ── */
.networth-section {
    margin-bottom: 28px;
}

.networth-section-title {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.currency-display {
    display: flex;
    align-items: center;
    gap: 6px;
    max-width: 320px;
}

.currency-prefix {
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    color: var(--navy);
}

.currency-readonly {
    background: var(--cream) !important;
    color: var(--navy) !important;
    font-weight: 600;
    cursor: default;
}

.currency-editable {
    font-weight: 500;
}

.spinner-control {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 12px;
    max-width: 360px;
    width: 100%;
}

.spinner-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    border: 1.5px solid var(--border);
    background: var(--white);
    color: var(--navy);
    cursor: pointer;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

    .spinner-btn:hover:not(:disabled) {
        border-color: var(--sky-blue);
        background: var(--sky-blue-pale);
    }

    .spinner-btn:active:not(:disabled) {
        transform: scale(0.95);
    }

    .spinner-btn:disabled {
        opacity: 0.35;
        cursor: not-allowed;
    }

.spinner-value {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 4px;
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 600;
    color: var(--navy);
    justify-content: center;
    padding: 8px 16px;
    background: var(--cream);
    border-radius: var(--radius-input);
    border: 1px solid var(--border);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.networth-total-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--navy);
    color: var(--white);
    padding: 16px 24px;
    border-radius: 10px;
    margin: 24px 0;
}

.networth-total-label {
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 500;
}

.networth-total-value {
    font-family: var(--font-body);
    font-size: 22px;
    font-weight: 700;
    color: var(--sky-blue-light);
}

    .networth-total-value.negative {
        color: #ef4444;
    }

.networth-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 28px 0;
}

/* Font-size overrides for net worth */
.font-medium .networth-total-value {
    font-size: 24px;
}

.font-large .networth-total-value {
    font-size: 26px;
}

.font-xlarge .networth-total-value {
    font-size: 28px;
}

/* ═══════════════════════════════════════════════════
   BOOKING UI — add to app.css
   ═══════════════════════════════════════════════════ */

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

.booking-section .btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
