:root {
    --primary-blue: #007bff;
    --primary-blue-dark: #0056b3;
    --danger-red: #dc3545;
    --brand-red: #ef4444;
    --success-green: #28a745;
    --warning-orange: #ffc107;
    --info-purple: #6f42c1;
    --dark-gray: #343a40;
    --text: #1f2937;
    --muted: #6b7280;
    --line: #e5e7eb;
    --surface: #ffffff;
    --page: #f8f9fa;
    --soft-blue: #e3f2fd;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 8px 15px rgba(0, 0, 0, 0.1);
    --radius: 12px;
}

.add-money-hero {
    background: linear-gradient(110deg, #16a34a 0%, #1fbf75 45%, #c8f7dd 100%);
}

.add-money-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin: 0 0 1.5rem;
}

.add-money-step {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    min-height: 74px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
    padding: 1rem;
    color: var(--muted);
}

.add-money-step span {
    display: inline-grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 999px;
    background: #eef2ff;
    color: var(--primary-blue);
    font-weight: 900;
}

.add-money-step strong {
    color: var(--text);
}

.add-money-step.active {
    border-color: rgba(0, 123, 255, 0.35);
    box-shadow: 0 8px 18px rgba(0, 123, 255, 0.12);
}

.add-money-step.active span,
.add-money-step.complete span {
    background: var(--primary-blue);
    color: white;
}

.add-money-step.complete {
    border-color: rgba(40, 167, 69, 0.35);
}

.add-money-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.55fr);
    gap: 1.5rem;
    align-items: start;
    width: 100%;
    min-width: 0;
}

.add-money-layout > *,
.add-money-steps > *,
.pay-emi-split > * {
    min-width: 0;
}

.add-money-layout.single {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.48fr);
}

.add-money-card,
.add-money-info-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.add-money-card {
    padding: 1.4rem;
}

.add-money-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.add-money-card-header .loan-icon {
    width: 48px;
    height: 48px;
    color: var(--success-green);
}

.add-money-card-header h2,
.add-money-info-card h2 {
    margin: 0;
    color: #0f172a;
}

.add-money-card-header p,
.add-money-info-card p {
    margin: 0.2rem 0 0;
    color: var(--muted);
}

.add-money-form {
    display: grid;
    gap: 1.15rem;
}

.add-money-field {
    display: grid;
    gap: 0.45rem;
    color: #0f172a;
    font-weight: 800;
}

.add-money-field input,
.add-money-field textarea {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    background: #fff;
    padding: 0.9rem 1rem;
    color: var(--text);
}

.add-money-field small {
    color: var(--muted);
    font-weight: 500;
}

.money-input {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    background: #fff;
}

.money-input span {
    display: grid;
    min-width: 58px;
    place-items: center;
    border-right: 1px solid #d1d5db;
    background: #f8fafc;
    color: #0f172a;
    font-weight: 900;
}

.money-input input {
    border: 0;
    border-radius: 0;
}

.payment-method-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.9rem;
    margin: 0;
    border: 0;
    padding: 0;
}

.payment-method-grid legend {
    grid-column: 1 / -1;
    margin-bottom: 0.1rem;
    color: #0f172a;
    font-weight: 900;
}

.payment-method-grid label {
    cursor: pointer;
}

.payment-method-grid input {
    position: absolute;
    opacity: 0;
}

.payment-method-grid label > span {
    display: grid;
    min-height: 138px;
    align-content: center;
    justify-items: center;
    gap: 0.45rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    padding: 1rem;
    text-align: center;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.payment-method-grid label:hover > span,
.payment-method-grid input:checked + span {
    border-color: var(--primary-blue);
    box-shadow: 0 10px 20px rgba(0, 123, 255, 0.12);
    transform: translateY(-1px);
}

.payment-method-grid .loan-icon {
    width: 34px;
    height: 34px;
    color: var(--primary-blue);
}

.payment-method-grid strong {
    color: #0f172a;
}

.payment-method-grid small {
    color: var(--muted);
}

.add-money-side-stack {
    display: grid;
    gap: 1rem;
}

.add-money-info-card {
    display: grid;
    justify-items: center;
    gap: 0.45rem;
    padding: 1.4rem;
    text-align: center;
}

.add-money-info-card .loan-icon {
    width: 42px;
    height: 42px;
    color: var(--primary-blue);
}

.payment-status-strip {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-height: 56px;
    margin-bottom: 1.25rem;
    border: 1px solid #fde68a;
    border-radius: 10px;
    background: #fffbeb;
    padding: 0.85rem 1rem;
    color: #92400e;
    font-weight: 800;
}

.payment-status-strip .loan-icon {
    width: 24px;
    height: 24px;
}

.payment-status-strip strong {
    margin-left: auto;
    color: #b45309;
    font-size: 1.15rem;
}

.payment-qr-grid {
    display: grid;
    grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
    gap: 1.25rem;
    align-items: stretch;
    margin-bottom: 1.25rem;
}

.payment-qr-box {
    display: grid;
    min-height: 300px;
    place-items: center;
    border: 1px dashed #bfdbfe;
    border-radius: var(--radius);
    background: #f8fbff;
    padding: 1rem;
}

.payment-qr-box img {
    width: min(100%, 280px);
    height: auto;
    border-radius: 8px;
}

.payment-qr-empty {
    display: grid;
    justify-items: center;
    gap: 0.45rem;
    color: var(--muted);
    text-align: center;
}

.payment-qr-empty .loan-icon {
    width: 44px;
    height: 44px;
    color: var(--muted);
}

.payment-details-list {
    display: grid;
    gap: 0.85rem;
    align-content: start;
}

.payment-details-list div {
    position: relative;
    display: grid;
    gap: 0.25rem;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    padding: 0.85rem 1rem;
}

.payment-details-list span {
    color: var(--muted);
    font-size: 0.9rem;
}

.payment-details-list strong {
    color: #0f172a;
    word-break: break-word;
}

.copy-chip {
    position: absolute;
    top: 0.72rem;
    right: 0.72rem;
    border: 0;
    border-radius: 999px;
    background: #e0f2fe;
    color: #0369a1;
    cursor: pointer;
    padding: 0.25rem 0.7rem;
    font-size: 0.82rem;
    font-weight: 900;
}

.payment-proof-form {
    border-top: 1px solid var(--line);
    padding-top: 1.25rem;
}

.payment-expired {
    border-color: #fecaca;
}

.payment-expired .payment-status-strip {
    border-color: #fecaca;
    background: #fef2f2;
    color: var(--danger-red);
}

@media (max-width: 900px) {
    .add-money-layout,
    .add-money-layout.single {
        grid-template-columns: 1fr;
    }

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

    .payment-qr-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .add-money-steps {
        grid-template-columns: 1fr;
    }

    .add-money-card {
        padding: 1rem;
    }

    .add-money-card-header {
        align-items: flex-start;
    }

    .payment-method-grid {
        grid-template-columns: 1fr;
    }

    .payment-status-strip {
        align-items: flex-start;
        flex-direction: column;
    }

    .payment-status-strip strong {
        margin-left: 0;
    }
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--page);
    color: var(--text);
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    max-width: 100%;
    overflow-x: hidden;
}

html {
    max-width: 100%;
    overflow-x: hidden;
}

a {
    color: var(--primary-blue);
    text-decoration: none;
}

a:hover {
    color: var(--primary-blue-dark);
}

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

.auth-page {
    min-height: 100vh;
    display: flex;
    background:
        radial-gradient(circle at 12% 14%, rgba(0, 123, 255, 0.14) 0, rgba(0, 123, 255, 0) 32%),
        radial-gradient(circle at 86% 78%, rgba(239, 68, 68, 0.10) 0, rgba(239, 68, 68, 0) 28%),
        linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.brand-link {
    display: inline-flex;
    align-items: baseline;
    gap: 0.35rem;
    font-size: clamp(1.5rem, 4vw, 2.6rem);
    font-weight: 800;
    color: var(--primary-blue);
}

.brand-link strong {
    color: var(--brand-red);
}

.brand-link.compact {
    font-size: 1.5rem;
    white-space: nowrap;
}

.auth-shell {
    width: min(1120px, calc(100% - 2rem));
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.85fr);
    align-items: center;
    gap: 3rem;
    margin: 0 auto;
    padding: 2rem 0;
}

.auth-visual {
    display: grid;
    align-content: center;
    gap: 1.5rem;
    min-height: 600px;
}

.auth-logo {
    justify-self: start;
    font-size: 2.6rem;
}

.auth-copy {
    max-width: 560px;
}

.auth-eyebrow {
    display: inline-flex;
    margin-bottom: 0.75rem;
    color: var(--brand-red);
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
}

.auth-copy h1 {
    margin: 0;
    color: #0f172a;
    font-size: 3.15rem;
    line-height: 1.08;
}

.auth-copy p {
    max-width: 430px;
    margin: 1rem 0 0;
    color: var(--muted);
    font-size: 1.05rem;
}

.finance-visual {
    position: relative;
    width: min(520px, 100%);
    min-height: 260px;
}

.visual-panel {
    position: absolute;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-hover);
    padding: 1rem;
}

.visual-panel-main {
    left: 0;
    top: 0;
    width: 78%;
    min-height: 180px;
}

.visual-panel-side {
    right: 0;
    top: 44px;
    width: 36%;
    border-color: #bbf7d0;
}

.visual-panel-red {
    right: 8%;
    bottom: 0;
    width: 34%;
    border-color: #fecaca;
}

.visual-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    color: var(--muted);
    font-weight: 700;
}

.visual-row strong,
.visual-panel strong {
    color: var(--success-green);
}

.visual-panel-red strong {
    color: var(--brand-red);
}

.visual-amount {
    margin-top: 1rem;
    color: var(--primary-blue-dark);
    font-size: 2rem;
    font-weight: 900;
}

.visual-bars {
    display: grid;
    gap: 0.65rem;
    margin-top: 1.25rem;
}

.visual-bars span {
    display: block;
    height: 10px;
    border-radius: 999px;
    background: #dbeafe;
}

.visual-bars span:nth-child(2) {
    width: 72%;
    background: #dcfce7;
}

.visual-bars span:nth-child(3) {
    width: 48%;
    background: #fee2e2;
}

.auth-points {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.auth-points span {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.75);
    color: var(--dark-gray);
    padding: 0.45rem 0.9rem;
    font-weight: 800;
}

.auth-content {
    width: min(100%, 440px);
    justify-self: end;
}

.auth-card,
.card,
.stat-card,
.hero-panel {
    background: var(--surface);
    border: none;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.auth-card {
    padding: 2.25rem;
    animation: slide-up 0.45s ease-out;
}

.diagnostic-card {
    width: min(760px, calc(100vw - 2rem));
    margin-left: 50%;
    transform: translateX(-50%);
}

@keyframes slide-up {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

.auth-card h1,
.page-heading h1,
.hero-panel h1 {
    margin: 0 0 0.5rem;
    color: var(--text);
}

.auth-card h2 {
    margin: 1.5rem 0 0.75rem;
    font-size: 1.1rem;
}

.auth-card p,
.page-heading p,
.hero-panel p,
.muted {
    color: var(--muted);
}

.diagnostic-table {
    margin-top: 1rem;
}

.diagnostic-heading {
    color: var(--text);
}

.diagnostic-alert {
    margin-top: 1rem;
}

.auth-links {
    margin-top: 1.25rem;
    text-align: center;
}

.auth-card-polished {
    width: 100%;
    padding: clamp(1.5rem, 4vw, 2.4rem);
}

.auth-card-heading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 1.75rem;
    text-align: left;
}

.auth-card-heading > div {
    min-width: 0;
}

.auth-card-heading h1,
.auth-card-heading p {
    margin: 0;
}

.auth-card-heading p {
    margin-top: 0.35rem;
    line-height: 1.5;
}

.auth-heading-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    color: var(--primary-blue);
}

.auth-heading-icon svg,
.auth-password-toggle svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.auth-field {
    display: grid;
    gap: 0.55rem;
}

.auth-field-label {
    color: #1f2937;
    font-weight: 800;
}

.auth-card-polished input[type="text"],
.auth-card-polished input[type="password"] {
    min-height: 54px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #f8fafc;
    padding: 0.85rem 1rem;
    color: #0f172a;
}

.auth-card-polished input:focus {
    border-color: var(--primary-blue);
    outline: 3px solid rgba(0, 123, 255, 0.14);
}

.auth-card-polished input:user-invalid {
    border-color: #ef4444;
}

.auth-password-wrap {
    position: relative;
    display: block;
}

.auth-password-wrap input {
    width: 100%;
    padding-right: 3.4rem !important;
}

.auth-password-toggle {
    position: absolute;
    top: 50%;
    right: 0.6rem;
    width: 40px;
    height: 40px;
    border: 0;
    background: transparent;
    color: #64748b;
    padding: 0.6rem;
    transform: translateY(-50%);
    cursor: pointer;
}

.auth-password-toggle:hover,
.auth-password-toggle:focus-visible {
    color: var(--primary-blue);
}

.auth-card-polished .btn {
    min-height: 52px;
}

.auth-trust-note,
.auth-security-note {
    margin: 1.25rem 0 0 !important;
    color: #64748b !important;
    font-size: 0.88rem;
    line-height: 1.55;
    text-align: center;
}

.auth-otp-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.55rem;
}

.auth-card-polished .auth-otp-grid input {
    width: 100%;
    min-width: 0;
    min-height: 58px;
    padding: 0.4rem;
    text-align: center;
    font-size: 1.35rem;
    font-weight: 900;
}

@media (max-width: 520px) {
    .auth-card-heading {
        align-items: flex-start;
    }

    .auth-card-heading h1 {
        font-size: 1.75rem;
    }

    .auth-otp-grid {
        gap: 0.35rem;
    }

    .auth-card-polished .auth-otp-grid input {
        min-height: 52px;
        font-size: 1.15rem;
    }
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 1.1rem;
    min-height: 72px;
    padding: 0.75rem 1.25rem;
    background: var(--surface);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.topbar-menu {
    display: flex;
    align-items: center;
    gap: 0.15rem;
    flex: 1;
    min-width: 0;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 42px;
    padding: 0.55rem 0.7rem;
    color: var(--dark-gray);
    font-weight: 600;
    border-radius: 8px;
    white-space: nowrap;
    border: 1px solid transparent;
    transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-blue);
    background: var(--soft-blue);
}

.nav-link.active {
    border-color: #bfdbfe;
    font-weight: 800;
}

.nav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 19px;
    height: 19px;
    flex: 0 0 19px;
    color: currentColor;
}

.nav-icon svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
    padding: 0.55rem;
}

.nav-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: var(--dark-gray);
}

.profile-menu {
    position: relative;
    margin-left: auto;
    flex: 0 0 auto;
}

.profile-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 0;
    background: transparent;
    color: var(--dark-gray);
    cursor: pointer;
    font-weight: 700;
    min-height: 42px;
    padding: 0.35rem 0.25rem;
    white-space: nowrap;
    max-width: 240px;
}

.profile-name {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 0.75rem);
    min-width: 210px;
    display: none;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow-hover);
    padding: 0.35rem 0;
    overflow: hidden;
}

.profile-dropdown.open {
    display: grid;
}

.profile-dropdown a {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.85rem 1rem;
    color: var(--text);
    font-weight: 600;
}

.profile-dropdown a:hover {
    background: var(--page);
}

.profile-dropdown a:last-child {
    border-top: 1px solid var(--line);
}

.page-shell {
    width: min(1320px, calc(100% - 2rem));
    margin: 1.5rem auto 3rem;
}

.page-heading {
    margin: 0 0 1.25rem;
}

.hero-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: clamp(1.25rem, 4vw, 2rem);
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary-blue), var(--soft-blue));
    color: white;
}

.hero-panel h1,
.hero-panel p {
    color: white;
}

.wallet-hero {
    background: linear-gradient(135deg, var(--success-green), #20c997);
}

.score-hero {
    background: linear-gradient(135deg, var(--info-purple), var(--primary-blue));
}

.dashboard-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--primary-blue) 0%, #0067d8 45%, #dbeafe 100%);
    color: white;
    padding: clamp(1.5rem, 4vw, 2.35rem);
    box-shadow: var(--shadow);
}

.dashboard-hero h1 {
    margin: 0;
    color: white;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.1;
}

.dashboard-hero p {
    margin: 0.8rem 0 0;
    color: white;
    font-size: 1.1rem;
}

.dashboard-hero .dashboard-icon {
    width: 62px;
    height: 62px;
    color: rgba(255, 255, 255, 0.9);
    flex: 0 0 62px;
}

.dashboard-emi-alert {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: 0 0 1.5rem;
    border-left: 4px solid #e11d48;
    border-radius: 8px;
    background: #fff1f2;
    color: #0f172a;
    padding: 1rem 1.1rem;
    box-shadow: var(--shadow);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.dashboard-emi-alert.is-hiding {
    opacity: 0;
    transform: translateY(-6px);
}

.dashboard-emi-alert-content {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-width: 0;
}

.dashboard-emi-alert-content .dashboard-icon {
    width: 24px;
    height: 24px;
    color: #0f172a;
    flex: 0 0 24px;
}

.dashboard-emi-alert p {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem 0.85rem;
    margin: 0;
}

.dashboard-emi-alert strong,
.dashboard-emi-alert span {
    white-space: nowrap;
}

.dashboard-alert-close {
    position: relative;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    cursor: pointer;
}

.dashboard-alert-close:hover {
    background: rgba(15, 23, 42, 0.08);
}

.dashboard-alert-close span {
    position: absolute;
    left: 10px;
    top: 18px;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: #475569;
}

.dashboard-alert-close span:first-child {
    transform: rotate(45deg);
}

.dashboard-alert-close span:last-child {
    transform: rotate(-45deg);
}

.dashboard-panel {
    margin-bottom: 1.5rem;
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.dashboard-panel-header {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-height: 58px;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-dark));
    color: white;
}

.dashboard-panel-header h2 {
    margin: 0;
    color: white;
    font-size: 1.2rem;
}

.dashboard-panel-header .dashboard-icon {
    color: white;
}

.dashboard-panel-body,
.quick-view-body {
    padding: 1.25rem;
}

.quick-view-body {
    display: grid;
    gap: 1rem;
    align-items: start;
}

.quick-view-body strong,
.quick-view-body span {
    display: block;
}

.quick-view-body strong {
    color: #0057ff;
    font-size: 1rem;
}

.quick-view-body span {
    margin-top: 0.45rem;
    color: var(--text);
}

.quick-view-body .btn {
    width: fit-content;
    min-width: 170px;
}

.quick-view-title {
    display: grid;
    gap: 0.25rem;
}

.quick-loan-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.quick-loan-card {
    display: grid;
    gap: 1rem;
    border: 1px solid #dbeafe;
    border-left: 4px solid var(--primary-blue);
    border-radius: var(--radius);
    background: linear-gradient(135deg, #ffffff, #f8fbff);
    padding: 1rem;
    box-shadow: 0 3px 8px rgba(15, 23, 42, 0.06);
}

.quick-loan-top,
.quick-loan-footer {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.quick-loan-top .badge {
    display: inline-flex;
    flex: 0 0 auto;
    margin-top: 0;
}

.quick-loan-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.quick-loan-card span,
.quick-loan-footer span {
    margin-top: 0;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
}

.quick-loan-card strong {
    margin-top: 0.1rem;
    color: #0f172a;
    font-size: 1rem;
    line-height: 1.25;
    word-break: break-word;
}

.quick-loan-footer {
    align-items: center;
    border-top: 1px solid var(--line);
    padding-top: 0.85rem;
}

.quick-loan-footer .btn {
    min-width: 140px;
}

.dashboard-stat-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.dashboard-stat {
    display: grid;
    place-items: center;
    gap: 0.5rem;
    min-height: 170px;
    border-left: 4px solid var(--primary-blue);
    border-radius: var(--radius);
    background: white;
    padding: 1.25rem 1rem;
    text-align: center;
    box-shadow: var(--shadow);
}

.dashboard-stat strong {
    color: #0f172a;
    font-size: clamp(1.45rem, 2.5vw, 2rem);
    line-height: 1.1;
}

.dashboard-stat span {
    color: var(--text);
}

.dashboard-stat.accent-blue strong,
.dashboard-stat.accent-blue .dashboard-icon {
    color: var(--primary-blue);
}

.dashboard-stat.accent-green strong,
.dashboard-stat.accent-green .dashboard-icon {
    color: #00843d;
}

.dashboard-stat.accent-orange strong,
.dashboard-stat.accent-orange .dashboard-icon {
    color: #f0ad00;
}

.dashboard-stat.accent-purple strong,
.dashboard-stat.accent-purple .dashboard-icon {
    color: #19bde0;
}

.dashboard-stat.accent-dark .dashboard-icon {
    color: var(--dark-gray);
}

.accent-purple {
    border-left-color: var(--info-purple);
}

.accent-dark {
    border-left-color: var(--dark-gray);
}

.dashboard-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: currentColor;
}

.dashboard-icon svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.score-meter {
    display: block;
    width: min(150px, 100%);
    height: 8px;
    border-radius: 999px;
    background: #e5e7eb;
    overflow: hidden;
}

.score-meter i {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--success-green), var(--warning-orange), var(--primary-blue));
}

.dashboard-table table {
    min-width: 960px;
}

.dashboard-scroll-table {
    scrollbar-width: thin;
    scrollbar-color: #94a3b8 #f1f5f9;
}

.dashboard-scroll-table table {
    min-width: 920px;
}

.dashboard-table th {
    background: #1f2429;
    color: white;
    font-size: 0.92rem;
}

.dashboard-table tbody tr:nth-child(odd) {
    background: #f3f4f6;
}

.dashboard-table tbody tr:hover {
    background: #eaf3ff;
}

.danger-text {
    color: #e11d48;
}

.btn-small {
    min-height: 38px;
    padding: 0.45rem 1rem;
    font-size: 0.92rem;
}

.btn .dashboard-icon {
    width: 16px;
    height: 16px;
    margin-right: 0.35rem;
}

.dashboard-action {
    margin-top: 1.25rem;
}

.dashboard-empty {
    display: grid;
    justify-items: center;
    gap: 0.65rem;
    min-height: 180px;
    padding: 2rem 1rem;
    text-align: center;
}

.dashboard-empty h3,
.dashboard-empty p {
    margin: 0;
}

.dashboard-empty h3 {
    color: var(--text);
}

.dashboard-empty p {
    max-width: 640px;
    color: var(--muted);
}

.dashboard-empty .dashboard-icon {
    width: 52px;
    height: 52px;
    color: var(--dark-gray);
}

.success-empty h3,
.success-empty .dashboard-icon {
    color: #00843d;
}

.loan-page-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1.75rem;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--primary-blue) 0%, #4da3ff 52%, #dbeafe 100%);
    color: white;
    padding: clamp(1.5rem, 4vw, 2.2rem);
    box-shadow: var(--shadow);
}

.loan-page-hero h1 {
    margin: 0;
    color: white;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.1;
}

.loan-page-hero p {
    margin: 0.65rem 0 0;
    color: white;
    font-size: 1.05rem;
}

.loan-page-hero .loan-icon {
    width: 62px;
    height: 62px;
    color: rgba(255, 255, 255, 0.9);
    flex: 0 0 62px;
}

.loan-summary-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.loan-summary-card {
    display: grid;
    justify-items: center;
    gap: 0.55rem;
    min-height: 220px;
    border-left: 4px solid var(--primary-blue);
    border-radius: var(--radius);
    background: white;
    padding: 1.35rem 1rem;
    text-align: center;
    box-shadow: var(--shadow);
}

.loan-summary-card .loan-icon {
    width: 48px;
    height: 48px;
}

.loan-summary-card strong {
    color: #0f172a;
    font-size: 2rem;
    line-height: 1;
}

.loan-summary-card > span,
.loan-summary-footer span {
    color: var(--text);
}

.loan-summary-card b {
    font-size: 1.05rem;
}

.loan-summary-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    width: 100%;
    margin-top: 0.3rem;
}

.loan-summary-green {
    border-left-color: #16a34a;
}

.loan-summary-green .loan-icon,
.loan-summary-green strong,
.loan-summary-green b {
    color: #00843d;
}

.loan-summary-cyan {
    border-left-color: var(--info-purple);
}

.loan-summary-cyan .loan-icon,
.loan-summary-cyan strong,
.loan-summary-cyan b {
    color: #19bde0;
}

.loan-summary-red {
    border-left-color: #e11d48;
}

.loan-summary-red .loan-icon,
.loan-summary-red strong,
.loan-summary-red b {
    color: #e11d48;
}

.loan-summary-yellow {
    border-left-color: #f0ad00;
}

.loan-summary-yellow .loan-icon,
.loan-summary-yellow strong,
.loan-summary-yellow b {
    color: #f0ad00;
}

.loan-summary-blue {
    border-left-color: #2563eb;
}

.loan-summary-blue .loan-icon,
.loan-summary-blue strong,
.loan-summary-blue b {
    color: #2563eb;
}

.loan-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    color: currentColor;
}

.loan-icon svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dashboard-panel-header .loan-icon {
    color: white;
}

.loan-details-table table {
    min-width: 1100px;
}

.loan-row-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    white-space: nowrap;
}

.loan-row-actions .btn {
    min-width: 0;
    min-height: 34px;
    padding: 0.38rem 0.7rem;
    border-radius: 999px;
    font-size: 0.82rem;
}

.loan-row-actions .btn + .btn {
    border-left-width: 1px;
    border-radius: 999px;
}

.loan-row-actions .loan-foreclose-action {
    padding-inline: 0.75rem;
}

.loan-row-actions .loan-icon {
    width: 14px;
    height: 14px;
    margin-right: 0.25rem;
}

.loan-overview-card {
    margin-bottom: 1.5rem;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.loan-overview-card-header {
    padding: 1.2rem 1.35rem;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-dark));
    color: white;
}

.loan-overview-card-header h2 {
    margin: 0;
    color: white;
    font-size: 1.25rem;
}

.loan-overview-card-body {
    padding: 1.35rem;
    background: linear-gradient(135deg, #16a34a, #22c7a5);
    color: white;
}

.loan-overview-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
}

.loan-overview-list h3 {
    margin: 0 0 0.8rem;
    color: white;
    font-size: 1.05rem;
}

.loan-overview-list p {
    margin: 0 0 0.95rem;
    color: white;
}

.loan-overview-list .badge {
    background: var(--primary-blue);
    color: white;
}

.loan-overview-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.2rem;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.24);
}

.loan-overview-stats article {
    display: grid;
    gap: 0.45rem;
    justify-items: center;
    text-align: center;
}

.loan-overview-stats span {
    color: white;
    font-weight: 800;
}

.loan-overview-stats strong {
    color: white;
    font-size: 1.6rem;
    line-height: 1;
}

.loan-overview-stats .loan-outstanding {
    color: #facc15;
}

.loan-progress-track {
    width: min(320px, 100%);
    height: 16px;
    border: 1px solid rgba(15, 23, 42, 0.45);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.75);
    overflow: hidden;
}

.loan-progress-track span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #15803d;
}

.loan-overview-emi-table table {
    min-width: 1080px;
}

.loan-print-row {
    display: grid;
    justify-items: center;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 1.25rem;
}

.loan-print-tip {
    margin: 0;
    color: var(--dark-gray);
    font-size: 0.9rem;
    text-align: center;
}

.loan-print-row .btn .loan-icon,
.loan-overview-actions .btn .loan-icon,
.borrower-back-link .loan-icon {
    width: 18px;
    height: 18px;
    margin-right: 0.45rem;
}

.loan-overview-help {
    margin-bottom: 1.5rem;
    border-radius: var(--radius);
    background: white;
    padding: 1.35rem;
    text-align: center;
    box-shadow: var(--shadow);
}

.loan-overview-help h2 {
    margin: 0 0 1rem;
    font-size: 1.1rem;
}

.loan-overview-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.borrower-back-link {
    margin-bottom: 1rem;
}

.loan-print-document {
    display: none;
}

.loan-panel-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 1.35rem;
}

.closed-loan-footer {
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    padding-top: 0.15rem;
}

.closed-loan-footer > span {
    color: var(--text);
    line-height: 1.5;
}

.closed-loan-footer .btn {
    flex: 0 0 auto;
    width: auto;
    min-height: 36px;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    font-size: 0.86rem;
}

@media (max-width: 680px) {
    .closed-loan-footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.75rem;
    }

    .closed-loan-footer .btn {
        width: auto;
    }
}

.emi-page-hero {
    margin-bottom: 2rem;
}

.emi-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.35rem;
}

.emi-summary-card {
    display: grid;
    gap: 0.75rem;
    min-height: 126px;
    border-radius: var(--radius);
    background: white;
    padding: 1.35rem;
    box-shadow: var(--shadow);
}

.emi-summary-label {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-weight: 800;
}

.emi-summary-label .loan-icon {
    width: 20px;
    height: 20px;
}

.emi-summary-card strong {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    line-height: 1;
}

.emi-summary-success .emi-summary-label,
.emi-summary-success strong {
    color: #00843d;
}

.emi-summary-warning .emi-summary-label,
.emi-summary-warning strong {
    color: #f0ad00;
}

.emi-filter-tabs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin: 0 0 1.35rem;
}

.emi-filter-tabs button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 48px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #0f172a;
    padding: 0.6rem 1.15rem;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
}

.emi-filter-tabs button:hover {
    background: #eaf3ff;
    color: var(--primary-blue);
}

.emi-filter-tabs button.active {
    background: linear-gradient(135deg, var(--primary-blue), #0057ff);
    color: white;
    box-shadow: 0 8px 18px rgba(0, 87, 255, 0.25);
}

.emi-filter-tabs span {
    display: inline-grid;
    place-items: center;
    min-width: 22px;
    height: 22px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.08);
    padding: 0 0.35rem;
    font-size: 0.78rem;
}

.emi-filter-tabs button.active span {
    background: rgba(255, 255, 255, 0.22);
}

.emi-table table {
    min-width: 1540px;
}

.emi-table th,
.emi-table td {
    white-space: nowrap;
}

.emi-table tbody tr.emi-row-late {
    background: #fee2e2;
}

.emi-table tbody tr.emi-row-late:nth-child(odd) {
    background: #f8d2d6;
}

.emi-table tbody tr.emi-row-unpaid {
    background: #fff7ed;
}

.loan-overview-emi-table tbody tr.emi-row-late {
    background: #fee2e2;
}

.loan-overview-emi-table tbody tr.emi-row-unpaid {
    background: #fff7ed;
}

.emi-total-due {
    color: #e11d48;
    font-weight: 900;
}

.emi-pay-now {
    min-width: 132px;
}

.emi-pay-now .loan-icon,
.emi-paid-action .loan-icon {
    width: 16px;
    height: 16px;
    margin-right: 0.35rem;
}

.emi-paid-action {
    display: inline-flex;
    align-items: center;
    color: #00843d;
    font-weight: 800;
    white-space: nowrap;
}

.emi-filter-empty[hidden],
.emi-hidden {
    display: none;
}

.dashboard-empty .loan-icon {
    width: 52px;
    height: 52px;
    color: var(--dark-gray);
}

.wallet-page-hero {
    margin-bottom: 1.75rem;
}

.loan-page-hero.add-money-hero {
    background: linear-gradient(110deg, #16a34a 0%, #1fbf75 45%, #c8f7dd 100%);
}

.loan-page-hero.add-money-hero .loan-icon {
    color: rgba(255, 255, 255, 0.92);
}

.wallet-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 0.95fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.wallet-balance-card {
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 1.05rem;
    min-height: 420px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, #16a34a, #20c997);
    color: white;
    padding: clamp(1.3rem, 4vw, 2rem);
    text-align: center;
    box-shadow: var(--shadow);
}

.wallet-balance-card > .loan-icon {
    width: 64px;
    height: 64px;
    color: rgba(255, 255, 255, 0.92);
}

.wallet-balance-card > strong {
    color: white;
    font-size: clamp(2.2rem, 6vw, 3.2rem);
    line-height: 1;
}

.wallet-balance-card > span {
    color: white;
    font-size: 1.2rem;
}

.wallet-balance-alert {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    width: 100%;
    border: 1px solid #f0ad00;
    border-radius: 8px;
    background: #fff3cd;
    color: #111827;
    padding: 1rem;
}

.wallet-balance-alert p {
    margin: 0;
}

.wallet-balance-alert .loan-icon {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
}

.wallet-balance-ok {
    border-color: rgba(187, 247, 208, 0.9);
    background: rgba(240, 253, 244, 0.95);
}

.wallet-balance-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
    width: 100%;
    margin-top: 0.3rem;
}

.wallet-balance-metrics div {
    display: grid;
    gap: 0.25rem;
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.14);
    padding: 0.85rem;
}

.wallet-balance-metrics span,
.wallet-balance-metrics small {
    color: rgba(255, 255, 255, 0.86);
}

.wallet-balance-metrics strong {
    color: white;
    font-size: 1.05rem;
}

.wallet-action-stack {
    display: grid;
    gap: 1rem;
}

.wallet-action-card {
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 0.65rem;
    min-height: 170px;
    border-radius: var(--radius);
    background: white;
    padding: 1.25rem;
    text-align: center;
    box-shadow: var(--shadow);
}

.wallet-action-card .loan-icon {
    width: 42px;
    height: 42px;
}

.wallet-action-card h2,
.wallet-action-card p {
    margin: 0;
}

.wallet-action-green .loan-icon,
.wallet-action-green h2 {
    color: #00843d;
}

.wallet-action-blue .loan-icon,
.wallet-action-blue h2 {
    color: #0057ff;
}

.wallet-action-cyan .loan-icon,
.wallet-action-cyan h2 {
    color: #19bde0;
}

.wallet-disabled-action {
    min-width: 150px;
}

.wallet-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.wallet-summary-card {
    display: grid;
    gap: 0.35rem;
    border-left: 4px solid var(--primary-blue);
    border-radius: var(--radius);
    background: white;
    padding: 1rem;
    box-shadow: var(--shadow);
}

.wallet-summary-card span {
    color: var(--muted);
    font-weight: 800;
}

.wallet-summary-card strong {
    color: #0f172a;
    font-size: 1.05rem;
    line-height: 1.25;
    word-break: break-word;
}

.wallet-filter-tabs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin: 0 0 1.2rem;
}

.wallet-filter-tabs button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 42px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #0f172a;
    padding: 0.55rem 1rem;
    font-weight: 800;
    cursor: pointer;
}

.wallet-filter-tabs button:hover {
    background: #eaf3ff;
    color: var(--primary-blue);
}

.wallet-filter-tabs button.active {
    background: linear-gradient(135deg, var(--primary-blue), #0057ff);
    color: white;
    box-shadow: 0 8px 18px rgba(0, 87, 255, 0.22);
}

.wallet-filter-tabs span {
    display: inline-grid;
    place-items: center;
    min-width: 22px;
    height: 22px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.08);
    padding: 0 0.35rem;
    font-size: 0.78rem;
}

.wallet-filter-tabs button.active span {
    background: rgba(255, 255, 255, 0.22);
}

.wallet-table table {
    min-width: 1000px;
}

.wallet-type-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 6px;
    padding: 0.35rem 0.65rem;
    font-weight: 900;
    white-space: nowrap;
}

.wallet-type-success {
    background: #dcfce7;
    color: #00843d;
}

.wallet-type-danger {
    background: #ffe4e6;
    color: #e11d48;
}

.wallet-type-muted {
    background: #f3f4f6;
    color: #4b5563;
}

.wallet-amount {
    font-weight: 900;
}

.wallet-amount-credit {
    color: #00843d;
}

.wallet-amount-debit {
    color: #111827;
}

.wallet-filter-empty[hidden],
.wallet-hidden {
    display: none;
}

.pay-emi-hero {
    margin-bottom: 1.75rem;
}

.pay-emi-details-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

.pay-emi-detail-list {
    display: grid;
    gap: 0.95rem;
}

.pay-emi-detail-list p {
    margin: 0;
    color: #111827;
    font-size: 1rem;
}

.pay-emi-total {
    color: #e11d48;
    font-size: clamp(1.8rem, 4vw, 2.35rem);
    font-weight: 900;
    line-height: 1;
}

.pay-emi-action-grid {
    display: grid;
    grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1.1fr);
    gap: 1.5rem;
    align-items: stretch;
    margin-bottom: 1.5rem;
    width: 100%;
    min-width: 0;
}

.pay-emi-action-grid > * {
    min-width: 0;
}

.pay-emi-wallet-card {
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 0.5rem;
    min-height: 100%;
    border-radius: var(--radius);
    background: linear-gradient(135deg, #16a34a, #20c997);
    color: white;
    padding: clamp(1.8rem, 5vw, 3rem);
    text-align: center;
    box-shadow: var(--shadow);
}

.pay-emi-wallet-card .loan-icon {
    width: 58px;
    height: 58px;
    color: rgba(255, 255, 255, 0.92);
}

.pay-emi-wallet-card h2,
.pay-emi-wallet-card p {
    margin: 0;
    color: white;
}

.pay-emi-wallet-card strong {
    color: white;
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1;
}

.pay-emi-wallet-card p {
    color: #fff3cd;
    font-weight: 800;
}

.pay-emi-payment-panel .dashboard-panel-body {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
}

.pay-emi-payment-panel {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.pay-emi-form {
    display: grid;
    gap: 1.1rem;
    width: min(100%, 560px);
}

.pay-emi-form .input-with-actions {
    grid-template-columns: auto minmax(0, 1fr) auto;
}

.pay-emi-submit {
    width: 100%;
    min-height: 58px;
    font-size: 1.1rem;
    white-space: nowrap;
}

.pay-emi-submit span {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pay-emi-submit .loan-icon {
    width: 20px;
    height: 20px;
    margin-right: 0.45rem;
}

.pay-emi-bottom-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.pay-emi-bottom-actions .btn .loan-icon {
    width: 18px;
    height: 18px;
    margin-right: 0.45rem;
}

.apply-loan-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1.75rem;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--primary-blue) 0%, #4da3ff 52%, #dbeafe 100%);
    color: white;
    padding: clamp(1.5rem, 4vw, 2.2rem);
    box-shadow: var(--shadow);
}

.apply-loan-hero h1 {
    margin: 0;
    color: white;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.1;
}

.apply-loan-hero p {
    max-width: 920px;
    margin: 0.75rem 0 0;
    color: white;
    font-size: 1.05rem;
}

.apply-loan-hero .apply-icon {
    width: 62px;
    height: 62px;
    color: rgba(255, 255, 255, 0.9);
    flex: 0 0 62px;
}

.apply-loan-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 0.95fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.loan-application-card {
    display: grid;
    justify-items: center;
    gap: 0.9rem;
    border-radius: var(--radius);
    background: #7342c8;
    color: white;
    padding: clamp(1.2rem, 3vw, 2rem);
    box-shadow: var(--shadow);
}

.loan-application-card h2 {
    margin: 0;
    color: white;
}

.loan-application-card > .apply-icon {
    width: 50px;
    height: 50px;
    color: white;
}

.loan-apply-form {
    display: grid;
    gap: 1.2rem;
    width: 100%;
}

.loan-apply-form label {
    display: grid;
    gap: 0.45rem;
    color: white;
    text-align: center;
}

.loan-field-group {
    display: grid;
    gap: 0.6rem;
    text-align: center;
}

.field-label,
.tenure-label-text {
    color: white;
    font-weight: 800;
}

.field-help,
.loan-field-group .field-help {
    margin: 0;
    color: #111827;
    font-weight: 500;
}

.loan-apply-form label > span,
.apply-secure-note {
    color: #111827;
    font-weight: 500;
}

.loan-apply-form label > .tenure-label-text {
    color: white;
    font-weight: 800;
}

.loan-type-selector {
    position: relative;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 34px;
    align-items: center;
    gap: 0.5rem;
}

.loan-type-grid {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(150px, calc((100% - 1.5rem) / 3));
    gap: 0.75rem;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-behavior: smooth;
    scroll-snap-type: inline mandatory;
    scrollbar-width: none;
    padding: 0.2rem 0 0.65rem;
}

.loan-type-grid::-webkit-scrollbar {
    display: none;
}

.loan-type-scroll {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.96);
    color: #1264c4;
    font: 700 1.7rem/1 Arial, sans-serif;
    cursor: pointer;
    box-shadow: 0 5px 14px rgba(15, 23, 42, 0.16);
}

.loan-type-scroll:hover:not(:disabled) {
    background: #eff6ff;
}

.loan-type-scroll:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.8);
    outline-offset: 2px;
}

.loan-type-scroll:disabled {
    opacity: 0.35;
    cursor: default;
}

.loan-apply-form .loan-type-option {
    position: relative;
    display: block;
    color: #111827;
    text-align: left;
    cursor: pointer;
    scroll-snap-align: start;
}

@media (max-width: 700px) {
    .loan-type-selector {
        grid-template-columns: 30px minmax(0, 1fr) 30px;
        gap: 0.35rem;
    }

    .loan-type-scroll {
        width: 30px;
        height: 30px;
        font-size: 1.45rem;
    }

    .loan-type-grid {
        grid-auto-columns: minmax(145px, 78%);
    }
}

.loan-type-option input,
.repayment-toggle input {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: 0 !important;
    padding: 0 !important;
    opacity: 0 !important;
    appearance: none !important;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    overflow: hidden;
    pointer-events: none;
}

.loan-type-option span {
    display: grid;
    gap: 0.22rem;
    min-height: 76px;
    padding: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    background: white;
    color: #111827;
    box-shadow: 0 8px 18px rgba(17, 24, 39, 0.08);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.loan-type-option strong {
    color: #111827;
    line-height: 1.25;
}

.loan-type-option small {
    color: #475569;
    line-height: 1.35;
}

.loan-type-option input:checked + span {
    border-color: #22c55e;
    background: #f0fdf4;
    box-shadow: inset 4px 0 0 #16a34a, 0 12px 24px rgba(22, 163, 74, 0.18);
}

.loan-type-option:hover span {
    transform: translateY(-1px);
}

.loan-type-option input:focus-visible + span,
.repayment-toggle input:focus-visible + span {
    outline: 3px solid rgba(255, 255, 255, 0.75);
    outline-offset: 2px;
}

.loan-type-option input:disabled + span {
    opacity: 0.55;
    cursor: not-allowed;
}

.repayment-toggle {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.35rem;
    padding: 0.35rem;
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.2);
}

.loan-apply-form .repayment-toggle label {
    position: relative;
    display: block;
    cursor: pointer;
}

.repayment-toggle span {
    display: grid;
    place-items: center;
    min-height: 42px;
    border-radius: 999px;
    color: white;
    font-weight: 800;
}

.repayment-toggle input:checked + span {
    background: white;
    color: #5b21b6;
    box-shadow: 0 10px 20px rgba(17, 24, 39, 0.16);
}

.repayment-toggle input:disabled + span {
    opacity: 0.55;
    cursor: not-allowed;
}

.loan-apply-form select,
.loan-apply-form input {
    border-color: rgba(255, 255, 255, 0.45);
    background: white;
}

.input-with-actions {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    overflow: hidden;
    border-radius: 8px;
}

.input-with-actions .input-prefix,
.input-with-actions button,
.input-with-actions input {
    min-height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 0;
}

.input-with-actions .input-prefix {
    display: inline-grid;
    place-items: center;
    min-width: 44px;
    background: #f8fafc;
    color: #111827;
}

.input-with-actions input {
    border-left: 0;
}

.input-with-actions button {
    background: #6d35d1;
    color: #e9d5ff;
    padding: 0 0.9rem;
    cursor: pointer;
}

.input-with-actions button:hover {
    background: #5b21b6;
    color: white;
}

.apply-submit {
    width: 100%;
    min-height: 58px;
    margin-top: 0.3rem;
}

.apply-submit .apply-icon,
.apply-secure-note .apply-icon {
    width: 18px;
    height: 18px;
    margin-right: 0.4rem;
}

.apply-secure-note {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.15rem;
    margin: 0;
    text-align: center;
}

.apply-side-stack {
    display: grid;
    gap: 1rem;
    align-content: start;
}

.apply-side-card,
.apply-process-card {
    display: grid;
    justify-items: center;
    gap: 0.75rem;
    min-height: 185px;
    border-radius: var(--radius);
    background: white;
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow);
}

.apply-side-card h2,
.apply-process-card h2,
.apply-side-card p {
    margin: 0;
}

.apply-side-card p {
    color: var(--text);
}

.apply-side-card .apply-icon {
    width: 42px;
    height: 42px;
}

.apply-side-card:first-child h2,
.apply-side-card:first-child .apply-icon {
    color: #00843d;
}

.apply-side-card:nth-child(2) h2,
.apply-side-card:nth-child(2) .apply-icon {
    color: #19bde0;
}

.apply-process-card {
    justify-items: start;
    min-height: auto;
    text-align: left;
}

.apply-process-card h2 {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.apply-process-card .apply-icon {
    width: 22px;
    height: 22px;
}

.apply-process-card ul {
    margin: 0;
    padding-left: 1.25rem;
}

.recent-applications-panel .dashboard-panel-header .apply-icon {
    color: white;
}

.apply-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    color: currentColor;
}

.apply-icon svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.eyebrow {
    margin: 0 0 0.35rem;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.hero-badge {
    display: grid;
    gap: 0.2rem;
    min-width: 130px;
    padding: 1rem;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.18);
    text-align: center;
}

.hero-badge span {
    font-size: 1.3rem;
    font-weight: 800;
}

.stat-grid,
.grid {
    display: grid;
    gap: 1rem;
}

.stat-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 1rem;
}

.two-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 1rem;
}

.stat-card {
    padding: 1.25rem;
    border-left: 4px solid var(--primary-blue);
    transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card:hover,
.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.stat-card strong {
    display: block;
    margin-top: 0.35rem;
    font-size: clamp(1.45rem, 3vw, 2rem);
}

.stat-label {
    display: block;
    color: var(--muted);
    font-weight: 700;
    font-size: 0.9rem;
}

.accent-blue { border-left-color: var(--primary-blue); }
.accent-green { border-left-color: var(--success-green); }
.accent-orange { border-left-color: var(--warning-orange); }
.accent-red { border-left-color: var(--danger-red); }

.card {
    margin-bottom: 1rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    color: white;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-dark));
    border-radius: var(--radius) var(--radius) 0 0;
}

.card-header h2 {
    margin: 0;
    font-size: 1.05rem;
}

.card > :not(.card-header) {
    padding: 1.25rem;
}

.highlight-card {
    background: linear-gradient(135deg, #ffffff, #f0f9ff);
}

.large-money {
    display: block;
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--success-green);
}

.form-stack,
.form-grid {
    display: grid;
    gap: 1rem;
}

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

.span-2,
.form-actions,
.quick-buttons {
    grid-column: 1 / -1;
}

label {
    display: grid;
    gap: 0.45rem;
    color: #475569;
    font-weight: 700;
    font-size: 0.92rem;
}

input,
select,
textarea {
    width: 100%;
    min-height: 46px;
    border: 2px solid var(--line);
    border-radius: 10px;
    background: #f8fafc;
    color: var(--text);
    padding: 0.8rem 0.9rem;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

textarea {
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.12);
    background: white;
}

input[readonly],
input:disabled,
select:disabled,
textarea:disabled,
button:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.form-actions,
.quick-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border: 1px solid transparent;
    border-radius: 25px;
    padding: 0.65rem 1.25rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-dark));
    color: white;
}

.btn-primary:hover {
    color: white;
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.26);
}

.btn-outline {
    background: white;
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}

.btn-secondary {
    background: #6b7280;
    border-color: #4b5563;
    color: white;
}

.btn-secondary:hover {
    color: white;
    box-shadow: 0 8px 22px rgba(75, 85, 99, 0.2);
}

.btn-light {
    background: white;
    color: var(--primary-blue);
}

.btn-success {
    background: #dcfce7;
    border-color: #00843d;
    color: #00843d;
}

.btn-success:hover {
    color: #00843d;
    box-shadow: 0 8px 22px rgba(22, 163, 74, 0.18);
}

.btn-info {
    background: #cffafe;
    border-color: #19bde0;
    color: #075985;
}

.btn-info:hover {
    color: #075985;
    box-shadow: 0 8px 22px rgba(6, 182, 212, 0.18);
}

.btn-warning {
    background: #ffc107;
    border-color: #f0ad00;
    color: #111827;
}

.btn-warning:hover {
    color: #111827;
    box-shadow: 0 8px 22px rgba(240, 173, 0, 0.2);
}

.btn-danger {
    background: #fee2e2;
    border-color: #e11d48;
    color: #be123c;
}

.btn-danger:hover {
    color: #be123c;
    box-shadow: 0 8px 22px rgba(225, 29, 72, 0.16);
}

.btn-muted {
    background: #f3f4f6;
    border-color: #d1d5db;
    color: #4b5563;
    cursor: not-allowed;
}

.btn-muted:hover {
    transform: none;
    color: #4b5563;
    box-shadow: none;
}

.full-width {
    width: 100%;
}

.alert {
    margin-bottom: 1rem;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    padding: 1rem;
    font-weight: 600;
}

.alert-success {
    color: #166534;
    border-color: #bbf7d0;
    background: #dcfce7;
}

.alert-danger {
    color: #991b1b;
    border-color: #fecaca;
    background: #fee2e2;
}

.alert-warning {
    color: #7c2d12;
    border-color: #fde68a;
    background: #fffbeb;
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: capitalize;
    white-space: nowrap;
}

.badge-success { background: #dcfce7; color: #166534; }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-danger { background: #fee2e2; color: #991b1b; }
.badge-primary { background: #dbeafe; color: #1d4ed8; }
.badge-info { background: #cffafe; color: #0e7490; }
.badge-muted { background: #f3f4f6; color: #4b5563; }

.kyc-status-strip,
.wallet-kyc-alert {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.9rem;
    margin-bottom: 1.5rem;
    border-radius: var(--radius);
    background: #e9eef4;
    padding: 1.1rem;
    text-align: center;
}

.wallet-kyc-alert {
    justify-content: space-between;
    border: 1px solid #fde68a;
    background: #fffbeb;
    text-align: left;
}

.kyc-status-strip .loan-icon,
.wallet-kyc-alert .loan-icon {
    width: 30px;
    height: 30px;
    color: var(--primary-blue-dark);
    flex: 0 0 30px;
}

.wallet-kyc-alert .loan-icon {
    color: #b45309;
}

.kyc-status-strip h2,
.kyc-status-strip p,
.wallet-kyc-alert h2,
.wallet-kyc-alert p {
    margin: 0;
}

.wallet-kyc-alert h2 {
    font-size: 1rem;
}

.wallet-kyc-alert p {
    color: var(--muted);
}

.kyc-verified-card,
.kyc-review-card {
    display: grid;
    justify-items: center;
    gap: 0.85rem;
    width: min(100%, 860px);
    margin: 0 auto 1.5rem;
    border-radius: var(--radius);
    background: white;
    padding: clamp(1.5rem, 4vw, 2.4rem);
    text-align: center;
    box-shadow: var(--shadow);
}

.kyc-review-card.rejected {
    border: 1px solid #fecaca;
    background: #fff7f7;
}

.kyc-verified-card > .loan-icon,
.kyc-review-card > .loan-icon {
    width: 54px;
    height: 54px;
    color: var(--success-green);
}

.kyc-review-card > .loan-icon {
    color: #f0ad00;
}

.kyc-review-card.rejected > .loan-icon {
    color: #e11d48;
}

.kyc-verified-card h2,
.kyc-review-card h2,
.kyc-verified-card p,
.kyc-review-card p {
    margin: 0;
}

.kyc-verified-card h2 {
    color: #00843d;
}

.kyc-document-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.8rem;
    width: 100%;
    margin-top: 0.65rem;
}

.kyc-document-grid div {
    display: grid;
    gap: 0.35rem;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #f8fafc;
    padding: 0.95rem;
    text-align: left;
}

.kyc-document-grid span {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
}

.kyc-document-grid strong {
    color: var(--text);
    word-break: break-word;
}

.kyc-contact-note {
    color: #00a6c8;
    font-weight: 800;
}

.kyc-admin-note {
    border-radius: 10px;
    background: #fee2e2;
    padding: 0.8rem 1rem;
    color: #991b1b;
    font-weight: 700;
}

.kyc-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 1.5rem;
    align-items: start;
    margin-bottom: 1.5rem;
}

.kyc-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.kyc-form-grid .wide {
    grid-column: 1 / -1;
}

.kyc-form-grid small {
    color: var(--muted);
    font-weight: 500;
}

.kyc-form-grid .btn {
    gap: 0.5rem;
    min-height: 56px;
    border-radius: 999px;
}

.kyc-form-grid .loan-icon {
    width: 20px;
    height: 20px;
}

.kyc-wizard { display: grid; gap: 1.35rem; }
.kyc-stepper { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 0; padding: 0; list-style: none; }
.kyc-stepper li { position: relative; display: grid; justify-items: center; gap: .4rem; color: var(--muted); font-size: .78rem; }
.kyc-stepper li::before { position: absolute; z-index: 0; top: 17px; left: 0; width: 100%; height: 2px; background: var(--line); content: ""; }
.kyc-stepper li:first-child::before { left: 50%; width: 50%; }
.kyc-stepper li:last-child::before { width: 50%; }
.kyc-stepper li span { z-index: 1; display: grid; width: 36px; height: 36px; place-items: center; border: 2px solid var(--line); border-radius: 50%; background: white; font-weight: 900; }
.kyc-stepper li.is-active, .kyc-stepper li.is-complete { color: var(--primary-blue); }
.kyc-stepper li.is-active span, .kyc-stepper li.is-complete span { border-color: var(--primary-blue); background: var(--primary-blue); color: white; }
.kyc-step-panel { display: grid; gap: 1.25rem; }
.kyc-step-panel[hidden] { display: none !important; }
.kyc-step-heading { display: grid; gap: .25rem; border-bottom: 1px solid var(--line); padding-bottom: 1rem; }
.kyc-step-heading span { color: var(--primary-blue); font-size: .75rem; font-weight: 900; text-transform: uppercase; }
.kyc-step-heading h3, .kyc-step-heading p { margin: 0; }
.kyc-form-grid textarea { min-height: 88px; resize: vertical; }
.kyc-same-address { display: flex !important; align-items: center; grid-template-columns: auto 1fr; }
.kyc-same-address input, .kyc-consent input { width: 20px; height: 20px; }
.kyc-step-actions { display: flex; justify-content: flex-end; gap: .75rem; }
.kyc-step-actions .btn { width: auto; min-width: 150px; }
.kyc-review-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; margin: 0; }
.kyc-review-summary div { border: 1px solid var(--line); border-radius: 8px; background: #f8fafc; padding: .85rem; }
.kyc-review-summary dt { color: var(--muted); font-size: .76rem; font-weight: 800; }
.kyc-review-summary dd { margin: .25rem 0 0; color: var(--text); font-weight: 800; overflow-wrap: anywhere; }
.kyc-consent { display: flex; align-items: flex-start; gap: .75rem; border-left: 3px solid var(--primary-blue); background: #eff6ff; padding: 1rem; }

.kyc-rule-stack {
    display: grid;
    gap: 1rem;
}

.kyc-rule-stack article {
    display: grid;
    justify-items: center;
    gap: 0.65rem;
    border-radius: var(--radius);
    background: white;
    padding: 1.25rem;
    text-align: center;
    box-shadow: var(--shadow);
}

.kyc-rule-stack .loan-icon {
    width: 38px;
    height: 38px;
    color: var(--primary-blue);
}

.kyc-rule-stack h2,
.kyc-rule-stack p {
    margin: 0;
}

.kyc-rule-stack p {
    color: var(--muted);
}

.support-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.35rem;
}

.support-stat-card {
    display: grid;
    justify-items: center;
    gap: 0.45rem;
    min-height: 150px;
    border-left: 4px solid var(--primary-blue);
    border-radius: var(--radius);
    background: white;
    padding: 1.2rem;
    text-align: center;
    box-shadow: var(--shadow);
}

.support-stat-card .loan-icon {
    width: 38px;
    height: 38px;
    color: var(--primary-blue);
}

.support-stat-card strong {
    color: var(--text);
    font-size: clamp(1.45rem, 3vw, 2rem);
    line-height: 1.1;
}

.support-stat-card span:not(.loan-icon) {
    color: var(--muted);
    font-weight: 800;
}

.support-stat-card.open {
    border-left-color: var(--success-green);
}

.support-stat-card.open .loan-icon,
.support-stat-card.open strong {
    color: var(--success-green);
}

.support-stat-card.progress {
    border-left-color: var(--primary-blue);
}

.support-stat-card.resolved {
    border-left-color: #19bde0;
}

.support-stat-card.resolved .loan-icon,
.support-stat-card.resolved strong {
    color: #19bde0;
}

.support-stat-card.latest {
    border-left-color: var(--warning-orange);
}

.support-stat-card.latest strong {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
}

.support-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
    gap: 1.5rem;
    align-items: start;
    margin-bottom: 1.5rem;
}

.support-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.support-form small {
    color: var(--muted);
    font-weight: 500;
}

.support-category-field {
    display: grid;
    gap: 0.45rem;
    min-width: 0;
    position: relative;
    font-weight: 700;
}

.support-native-select {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.support-category-select {
    position: relative;
}

.support-category-trigger {
    width: 100%;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.65rem 0.85rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    color: var(--text);
    cursor: pointer;
    text-align: left;
}

.support-category-trigger:focus-visible,
.support-category-trigger[aria-expanded="true"] {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(8, 124, 255, 0.14);
    outline: 0;
}

.support-category-current {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.support-category-current .loan-icon,
.support-category-option-icon .loan-icon {
    color: var(--primary-blue);
    width: 22px;
    height: 22px;
}

.support-category-chevron {
    width: 9px;
    height: 9px;
    border-right: 2px solid #52647c;
    border-bottom: 2px solid #52647c;
    transform: rotate(45deg) translateY(-2px);
    transition: transform 160ms ease;
}

.support-category-trigger[aria-expanded="true"] .support-category-chevron {
    transform: rotate(225deg) translate(-2px, -2px);
}

.support-category-menu {
    position: absolute;
    z-index: 30;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    padding: 0.4rem;
    border: 1px solid #d7e0ec;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 16px 34px rgba(15, 35, 65, 0.16);
}

.support-category-menu[hidden] {
    display: none;
}

.support-category-menu > button {
    width: 100%;
    min-height: 54px;
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) 24px;
    align-items: center;
    gap: 0.65rem;
    padding: 0.55rem 0.65rem;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--text);
    cursor: pointer;
    text-align: left;
}

.support-category-menu > button:hover,
.support-category-menu > button:focus-visible {
    background: #edf6ff;
    outline: 0;
}

.support-category-menu > button[aria-selected="true"] {
    background: #e6f3ff;
    color: #006ee6;
}

.support-category-menu > button > span:nth-child(2) {
    display: grid;
    gap: 2px;
}

.support-category-menu small {
    font-size: 0.75rem;
}

.support-category-check {
    visibility: hidden;
    color: var(--primary-blue);
    font-size: 1rem;
}

.support-category-menu > button[aria-selected="true"] .support-category-check {
    visibility: visible;
}

.support-priority-field {
    display: grid;
    gap: 0.45rem;
    min-width: 0;
    font-weight: 700;
}

.support-priority-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.4rem;
    padding: 0.35rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #f5f8fc;
}

.support-priority-options button {
    min-width: 0;
    min-height: 58px;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 0.55rem;
    border: 1px solid transparent;
    border-radius: 6px;
    background: transparent;
    color: #40506a;
    cursor: pointer;
    text-align: left;
}

.support-priority-options button:hover,
.support-priority-options button:focus-visible {
    background: #fff;
    outline: 0;
}

.support-priority-options button[aria-checked="true"] {
    border-color: #9bcaff;
    background: #fff;
    color: #006ee6;
    box-shadow: 0 3px 9px rgba(15, 35, 65, 0.08);
}

.support-priority-options button > span:last-child {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.support-priority-options strong,
.support-priority-options small {
    overflow-wrap: anywhere;
}

.support-priority-options small {
    font-size: 0.69rem;
    line-height: 1.25;
}

.support-priority-dot {
    flex: 0 0 auto;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #8392a8;
}

.priority-high .support-priority-dot {
    background: #e89b00;
}

.priority-urgent .support-priority-dot {
    background: #df2947;
}

.support-priority-options button[aria-checked="true"] .support-priority-dot {
    box-shadow: 0 0 0 3px currentColor;
}

@media (max-width: 480px) {
    .support-priority-options {
        grid-template-columns: 1fr;
    }

    .support-priority-options button {
        min-height: 50px;
    }
}

.support-side-stack {
    display: grid;
    gap: 1rem;
}

.support-help-card {
    border-radius: var(--radius);
    background: white;
    padding: 1.25rem;
    box-shadow: var(--shadow);
}

.support-help-card h2,
.support-help-card p,
.support-help-card ul {
    margin: 0;
}

.support-help-card p {
    margin-top: 0.45rem;
    color: var(--muted);
}

.support-help-card ul {
    display: grid;
    gap: 0.5rem;
    padding-left: 1.1rem;
    color: var(--muted);
}

.support-help-card.compact {
    display: grid;
    gap: 0.55rem;
}

.support-help-card.compact .loan-icon {
    width: 42px;
    height: 42px;
    color: var(--primary-blue);
}

.support-shortcut-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

.support-shortcut-grid button {
    display: grid;
    justify-items: center;
    gap: 0.45rem;
    min-height: 112px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #f8fafc;
    color: var(--text);
    padding: 0.9rem;
    cursor: pointer;
    font: inherit;
    font-weight: 800;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s, background 0.2s;
}

.support-shortcut-grid button:hover,
.support-shortcut-grid button:focus-visible {
    border-color: var(--primary-blue);
    background: #eff6ff;
    box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.1);
    outline: none;
    transform: translateY(-1px);
}

.support-shortcut-grid .loan-icon {
    width: 34px;
    height: 34px;
    color: var(--primary-blue);
}

.support-ticket-panel {
    margin-bottom: 0;
}

.support-ticket-table table {
    min-width: 980px;
}

.support-ticket-table td:first-child strong {
    color: var(--text);
}

.profile-overview-layout {
    display: grid;
    grid-template-columns: minmax(320px, 0.5fr) minmax(0, 1fr);
    gap: 1.5rem;
    align-items: stretch;
    margin-bottom: 1.5rem;
}

.profile-identity-card {
    display: grid;
    justify-items: center;
    gap: 0.7rem;
    border-radius: var(--radius);
    background: linear-gradient(145deg, #6f42c1 0%, #8b5cf6 100%);
    color: white;
    padding: clamp(1.5rem, 4vw, 2.2rem);
    text-align: center;
    box-shadow: var(--shadow);
}

.profile-identity-card > .loan-icon {
    width: 84px;
    height: 84px;
    color: rgba(255, 255, 255, 0.92);
}

.profile-identity-card h2,
.profile-identity-card p {
    margin: 0;
    color: white;
}

.profile-identity-card h2 {
    font-size: clamp(1.65rem, 3vw, 2.1rem);
}

.profile-identity-card p,
.profile-identity-card small {
    color: rgba(255, 255, 255, 0.84);
}

.profile-identity-card strong {
    margin-top: 0.45rem;
    color: #ffc107;
    font-size: clamp(2.3rem, 4vw, 3.1rem);
    line-height: 1;
}

.profile-identity-card > span:not(.loan-icon) {
    color: white;
    font-weight: 900;
}

.profile-score-meter {
    width: min(300px, 100%);
    height: 9px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
}

.profile-score-meter i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #16a34a, #ffc107);
}

.profile-identity-card .btn {
    width: min(100%, 340px);
    gap: 0.45rem;
    margin-top: 0.5rem;
}

.profile-identity-card .btn .loan-icon {
    width: 19px;
    height: 19px;
}

.profile-action-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.profile-action-card {
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 0.55rem;
    min-height: 210px;
    border-radius: var(--radius);
    background: white;
    padding: 1.35rem;
    text-align: center;
    box-shadow: var(--shadow);
    color: var(--text);
    transition: transform 0.2s, box-shadow 0.2s;
}

.profile-action-card:hover {
    color: var(--text);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.profile-action-card .loan-icon {
    width: 44px;
    height: 44px;
    color: var(--primary-blue);
}

.profile-action-card h2,
.profile-action-card p {
    margin: 0;
}

.profile-action-card h2 {
    color: var(--primary-blue);
    font-size: 1.1rem;
}

.profile-action-card p {
    color: var(--muted);
}

.profile-action-card span:not(.loan-icon) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border-radius: 999px;
    background: var(--primary-blue);
    color: white;
    padding: 0.55rem 1.4rem;
    font-weight: 900;
}

.profile-action-card.success .loan-icon,
.profile-action-card.success h2 {
    color: #00843d;
}

.profile-action-card.success span:not(.loan-icon) {
    background: #00843d;
}

.profile-action-card.cyan .loan-icon,
.profile-action-card.cyan h2 {
    color: #19bde0;
}

.profile-action-card.cyan span:not(.loan-icon) {
    background: #19bde0;
    color: #0f172a;
}

.profile-action-card.wide {
    grid-column: 1 / -1;
    min-height: 170px;
}

.profile-info-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 0.7fr);
    gap: 1.5rem;
    align-items: start;
    margin-bottom: 1.5rem;
}

.profile-detail-list {
    display: grid;
    padding: 1rem 1.25rem;
}

.profile-detail-list div {
    display: grid;
    grid-template-columns: minmax(170px, 0.38fr) minmax(0, 1fr);
    gap: 1rem;
    align-items: center;
    min-height: 64px;
    border-bottom: 1px solid var(--line);
    padding: 0.7rem 0;
}

.profile-detail-list div:last-child {
    border-bottom: 0;
}

.profile-detail-list span:first-child {
    color: var(--text);
    font-weight: 900;
}

.profile-detail-list strong {
    color: var(--text);
    font-weight: 600;
    word-break: break-word;
}

.profile-detail-list strong small {
    display: block;
    margin-top: 0.35rem;
    color: var(--muted);
    font-weight: 600;
}

.profile-panel-actions {
    padding: 0 1.25rem 1.25rem;
}

.profile-edit-panel {
    scroll-margin-top: 90px;
}

.profile-edit-request-shell {
    display: grid;
    place-items: start center;
    margin-bottom: 1.5rem;
}

.profile-edit-request-card {
    width: min(100%, 860px);
}

.profile-edit-request-card .dashboard-panel-body {
    display: grid;
    gap: 1.45rem;
    padding: clamp(1.25rem, 4vw, 2rem);
}

.profile-current-box {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.8rem;
    width: min(100%, 560px);
    justify-self: center;
    border-radius: 10px;
    background: #e8edf3;
    padding: 1rem;
}

.profile-current-box .loan-icon {
    width: 24px;
    height: 24px;
    color: var(--primary-blue-dark);
}

.profile-current-box h3,
.profile-current-box p {
    margin: 0;
}

.profile-current-box p + p {
    margin-top: 0.45rem;
}

.profile-pending-request {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.85rem;
    width: min(100%, 620px);
    justify-self: center;
    border: 1px solid #fbbf24;
    border-radius: 10px;
    background: #fffbeb;
    padding: 1rem;
}

.profile-pending-request .loan-icon {
    width: 26px;
    height: 26px;
    color: #b45309;
}

.profile-pending-request h3,
.profile-pending-request p {
    margin: 0;
}

.profile-pending-request p {
    color: var(--dark-gray);
}

.profile-pending-request p + p {
    margin-top: 0.5rem;
}

.profile-pending-request .badge {
    margin-left: 0.5rem;
}

.profile-edit-request-form {
    display: grid;
    gap: 1.25rem;
    width: min(100%, 560px);
    justify-self: center;
}

.profile-edit-request-form small {
    color: var(--muted);
    font-weight: 500;
}

.profile-edit-request-form .btn {
    gap: 0.5rem;
    min-height: 58px;
    border-radius: 999px;
    font-size: 1.15rem;
}

.profile-edit-request-form .btn .loan-icon {
    width: 22px;
    height: 22px;
}

.profile-security-note {
    display: flex;
    justify-content: center;
    gap: 0.7rem;
    width: min(100%, 620px);
    justify-self: center;
    color: var(--muted);
    text-align: center;
}

.profile-security-note .loan-icon {
    width: 22px;
    height: 22px;
    color: var(--primary-blue-dark);
    flex: 0 0 22px;
}

.profile-security-note p {
    margin: 0;
}

.profile-edit-request-actions {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.profile-edit-request-actions .btn {
    gap: 0.5rem;
    min-width: 190px;
}

.profile-edit-request-actions .loan-icon {
    width: 19px;
    height: 19px;
}

.password-hero {
    background: linear-gradient(110deg, var(--primary-blue) 0%, #6eaef7 48%, #dff1ff 100%);
}

.password-security-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(340px, 0.7fr);
    gap: 1.5rem;
    align-items: start;
    margin-bottom: 1.5rem;
}

.password-method-card,
.password-guidance-card,
.settings-security-card {
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.password-method-card {
    overflow: hidden;
    background: white;
}

.password-current-card {
    background: linear-gradient(135deg, #6f42c1, #8d5cf6);
    color: white;
}

.password-card-header {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.9rem;
    align-items: center;
    padding: 1.25rem 1.45rem;
}

.password-card-header .loan-icon {
    width: 36px;
    height: 36px;
}

.password-card-header h2,
.password-card-header p {
    margin: 0;
}

.password-card-header p {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.95rem;
}

.password-otp-card .password-card-header {
    color: var(--text);
    border-bottom: 1px solid var(--line);
}

.password-otp-card .password-card-header .loan-icon,
.password-otp-card .password-card-header h2 {
    color: var(--primary-blue);
}

.password-otp-card .password-card-header p {
    color: var(--muted);
}

.password-change-form {
    display: grid;
    gap: 1.05rem;
    padding: 0 1.45rem 1.45rem;
}

.password-current-card .password-change-form {
    padding-top: 0.25rem;
}

.password-change-form label {
    color: inherit;
}

.password-change-form small {
    color: rgba(255, 255, 255, 0.78);
    font-weight: 500;
}

.password-otp-card .password-change-form small {
    color: var(--muted);
}

.password-change-form .btn {
    gap: 0.5rem;
    min-height: 56px;
    border-radius: 999px;
    font-size: 1rem;
}

.password-change-form .btn .loan-icon {
    width: 20px;
    height: 20px;
}

.password-email-box,
.password-otp-status {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.75rem;
    margin: 0 1.45rem 1.05rem;
    border-radius: 10px;
    padding: 1rem;
}

.password-email-box {
    background: #eff6ff;
    color: var(--primary-blue-dark);
}

.password-email-box .loan-icon,
.password-otp-status .loan-icon {
    width: 24px;
    height: 24px;
}

.password-email-box strong,
.password-email-box span,
.password-otp-status strong,
.password-otp-status span {
    display: block;
}

.password-email-box span,
.password-otp-status span {
    color: var(--muted);
    overflow-wrap: anywhere;
}

.password-otp-status {
    border: 1px solid #facc15;
    background: #fffbeb;
    color: #92400e;
}

.password-change-form.compact {
    padding-bottom: 1.15rem;
}

.otp-entry-form {
    border-top: 1px solid var(--line);
    padding-top: 1.25rem;
}

.password-guidance-card {
    display: grid;
    gap: 0.7rem;
    background: #111827;
    color: white;
    padding: 1.25rem;
}

.password-guidance-card .loan-icon {
    width: 34px;
    height: 34px;
    color: #93c5fd;
}

.password-guidance-card h2,
.password-guidance-card p,
.password-guidance-card ul {
    margin: 0;
}

.password-guidance-card p,
.password-guidance-card li {
    color: #d1d5db;
}

.password-guidance-card ul {
    padding-left: 1.15rem;
}

.password-side-stack {
    display: grid;
    gap: 1.25rem;
}

.password-actions {
    margin-bottom: 1rem;
}

.settings-security-card {
    display: grid;
    gap: 0.75rem;
    border: 1px solid var(--line);
    background: #f8fafc;
    padding: 1rem;
}

.settings-security-card h3,
.settings-security-card p {
    margin: 0;
}

.settings-security-card p {
    color: var(--muted);
}

.settings-security-card .btn {
    width: fit-content;
}

.settings-hero {
    background: linear-gradient(110deg, var(--primary-blue) 0%, #6eaef7 48%, #dff1ff 100%);
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    align-items: start;
}

.settings-panel {
    display: grid;
    gap: 1.15rem;
    min-height: 100%;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: white;
    box-shadow: var(--shadow);
    padding: 1.25rem;
}

.settings-panel-head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.85rem;
    align-items: start;
}

.settings-panel-head .loan-icon {
    width: 34px;
    height: 34px;
    color: var(--primary-blue);
}

.settings-panel-head h2,
.settings-panel-head p {
    margin: 0;
}

.settings-panel-head p {
    color: var(--muted);
    font-size: 0.95rem;
}

.settings-status,
.settings-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    border-radius: 999px;
    padding: 0.25rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 900;
    white-space: nowrap;
}

.settings-status.on,
.settings-pill.success {
    background: #dcfce7;
    color: #047857;
}

.settings-status.off,
.settings-pill.muted {
    background: #f1f5f9;
    color: #64748b;
}

.settings-pill.warning {
    background: #fef3c7;
    color: #b45309;
}

.settings-option-list {
    display: grid;
    gap: 0.8rem;
}

.settings-option-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.8rem;
    align-items: center;
    border: 1px solid #dbeafe;
    border-radius: 10px;
    background: #f8fbff;
    padding: 0.9rem;
}

.settings-option-row.disabled {
    border-color: var(--line);
    background: #f8fafc;
}

.settings-option-row .loan-icon {
    width: 26px;
    height: 26px;
    color: var(--primary-blue);
}

.settings-option-row.disabled .loan-icon {
    color: #94a3b8;
}

.settings-option-row strong,
.settings-option-row span {
    display: block;
}

.settings-option-row div span {
    color: var(--muted);
    font-size: 0.9rem;
}

.settings-inline-form {
    display: grid;
    gap: 0.9rem;
}

.settings-inline-form small {
    color: var(--muted);
    font-weight: 500;
}

.settings-inline-form .btn {
    gap: 0.5rem;
    min-height: 50px;
    width: fit-content;
}

.settings-inline-form .btn .loan-icon {
    width: 19px;
    height: 19px;
}

.settings-mpin-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.settings-otp-box,
.settings-coming-soon {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.75rem;
    border-radius: 10px;
    padding: 0.95rem;
}

.settings-otp-box {
    border: 1px solid #facc15;
    background: #fffbeb;
}

.settings-coming-soon {
    border: 1px dashed #bfdbfe;
    background: #eff6ff;
}

.settings-otp-box .loan-icon,
.settings-coming-soon .loan-icon {
    width: 24px;
    height: 24px;
}

.settings-otp-box .loan-icon {
    color: #b45309;
}

.settings-otp-box strong,
.settings-otp-box span,
.settings-coming-soon strong,
.settings-coming-soon span {
    display: block;
}

.authenticator-setup-shell{display:grid;grid-template-columns:minmax(0,1fr) minmax(320px,.8fr);gap:20px;align-items:start}.authenticator-qr-card{text-align:center}.authenticator-qr{width:min(280px,100%);aspect-ratio:1;margin:22px auto;padding:16px;background:#fff;border:1px solid #d9e2ef}.authenticator-qr svg{display:block;width:100%;height:100%}.manual-secret{display:grid;gap:10px;justify-items:center}.manual-secret span{color:#52627a}.manual-secret code{max-width:100%;padding:12px;background:#eef4fb;border:1px solid #cfdaea;font-size:16px;word-break:break-all}.recovery-code-card{max-width:850px;margin:0 auto}.recovery-code-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:22px 0}.recovery-code-grid code{padding:14px;text-align:center;background:#f2f6fb;border:1px solid #d5dfec;font-size:17px;letter-spacing:1px}.recovery-code-actions{display:flex;justify-content:flex-end;gap:12px}.auth-recovery-panel{margin-top:16px;padding-top:16px;border-top:1px solid #dce4ef}.auth-recovery-panel[hidden]{display:none}

@media(max-width:760px){.authenticator-setup-shell{grid-template-columns:1fr}.recovery-code-grid{grid-template-columns:1fr}.recovery-code-actions{flex-direction:column}.recovery-code-actions .btn{width:100%}}

@media print{body:has(.recovery-code-card) *{visibility:hidden}body:has(.recovery-code-card) .recovery-code-card,body:has(.recovery-code-card) .recovery-code-card *{visibility:visible}body:has(.recovery-code-card) .recovery-code-card{position:absolute;inset:0;max-width:none;border:0;box-shadow:none}body:has(.recovery-code-card) .recovery-code-actions{display:none}}

.settings-otp-box span,
.settings-coming-soon span {
    color: var(--muted);
}

.password-shortcut-panel {
    border-left: 4px solid var(--primary-blue);
}

.two-factor-panel {
    border-left: 4px solid var(--info-purple);
}

.table-wrap {
    width: 100%;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 0.9rem 1rem;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: middle;
}

th {
    background: #f8fafc;
    color: var(--dark-gray);
    font-size: 0.86rem;
}

tbody tr:hover {
    background: #f8fafc;
}

.compact-list {
    display: grid;
    gap: 0.75rem;
}

.compact-row,
.action-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fbfdff;
}

.compact-row span {
    display: block;
    color: var(--muted);
    font-size: 0.9rem;
}

.action-list {
    display: grid;
    gap: 0.75rem;
}

.action-item {
    color: var(--text);
    font-weight: 700;
}

.action-item:hover {
    color: var(--primary-blue);
    border-color: var(--primary-blue);
}

.status-panel {
    display: grid;
    gap: 0.75rem;
}

.clean-list {
    margin: 0;
    padding-left: 1.25rem;
    color: var(--muted);
}

.clean-list li + li {
    margin-top: 0.5rem;
}

.empty-state {
    display: grid;
    place-items: center;
    text-align: center;
    gap: 0.75rem;
    min-height: 45vh;
    padding: 2rem;
}

.empty-state.compact {
    min-height: 220px;
}

.empty-icon {
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    border-radius: 999px;
    background: var(--soft-blue);
    color: var(--primary-blue);
    font-weight: 900;
}

.empty-mini {
    color: var(--muted);
    padding: 1rem;
    border: 1px dashed var(--line);
    border-radius: 10px;
    background: #fbfdff;
}

.check-row {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.check-row input {
    width: 18px;
    min-height: 18px;
}

.bril-lock-panel {
    display: grid;
    place-items: center;
    min-height: 560px;
    margin-bottom: 1.5rem;
    border: 1px solid #f0ad00;
    border-radius: var(--radius);
    background: linear-gradient(145deg, #ffc107 0%, #ffd95a 58%, #fff6c7 100%);
    box-shadow: var(--shadow-hover);
    padding: clamp(1.2rem, 4vw, 2rem);
}

.bril-lock-content {
    display: grid;
    justify-items: center;
    gap: 0.85rem;
    width: min(100%, 880px);
    color: #111827;
    text-align: center;
}

.bril-lock-content > .loan-icon {
    width: 76px;
    height: 76px;
    color: #2f2f22;
}

.bril-eyebrow {
    font-weight: 900;
    text-transform: uppercase;
}

.bril-lock-content h1 {
    margin: 0;
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.1;
}

.bril-lock-content p {
    max-width: 760px;
    margin: 0;
    font-size: 1.05rem;
}

.bril-default-score {
    color: #0f172a;
    font-size: clamp(3rem, 8vw, 5rem);
    line-height: 1;
}

.bril-score-caption {
    color: #4b5563;
    font-weight: 800;
}

.bril-gauge-wrap {
    display: grid;
    justify-items: center;
    gap: 0.85rem;
    width: min(100%, 720px);
    margin: 0.4rem 0 0.75rem;
}

.bril-gauge {
    --score-angle: 0deg;
    position: relative;
    width: min(100%, 520px);
    aspect-ratio: 2 / 1.08;
    overflow: hidden;
}

.bril-gauge::before,
.bril-gauge::after {
    position: absolute;
    left: 50%;
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
    content: "";
    transform: translateX(-50%);
}

.bril-gauge::before {
    bottom: 0;
    width: 100%;
    height: 100%;
    background: conic-gradient(from 270deg at 50% 100%, #dc2626 0deg 38.6deg, #f97316 38.6deg 72deg, #eab308 72deg 95.2deg, #14b8a6 95.2deg 115.8deg, #2563eb 115.8deg 141.5deg, #16a34a 141.5deg 180deg, transparent 180deg);
}

.bril-gauge::after {
    bottom: -1px;
    width: 64%;
    height: 64%;
    background: #fff;
}

.bril-gauge-needle {
    position: absolute;
    z-index: 3;
    bottom: 8%;
    left: 50%;
    width: 38%;
    height: 4px;
    border-radius: 4px;
    background: #172033;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.24);
    transform: rotate(calc(-90deg + var(--score-angle)));
    transform-origin: 0 50%;
    transition: transform 500ms ease;
}

.bril-gauge-pin {
    position: absolute;
    z-index: 4;
    bottom: calc(8% - 10px);
    left: calc(50% - 12px);
    width: 24px;
    height: 24px;
    border: 6px solid #172033;
    border-radius: 50%;
    background: #fff;
}

.bril-gauge-value {
    position: absolute;
    z-index: 5;
    bottom: 10%;
    left: 50%;
    display: grid;
    transform: translateX(-50%);
}

.bril-gauge-value strong {
    color: #0f172a;
    font-size: clamp(2.15rem, 8vw, 4rem);
    line-height: 0.9;
}

.bril-gauge-value span,
.bril-gauge-min,
.bril-gauge-max {
    color: #475569;
    font-weight: 800;
}

.bril-gauge-min,
.bril-gauge-max {
    position: absolute;
    z-index: 5;
    bottom: 1%;
    font-size: 0.82rem;
}

.bril-gauge-min { left: 1%; }
.bril-gauge-max { right: 1%; }

.bril-gauge-result {
    display: grid;
    gap: 0.15rem;
}

.bril-gauge-result strong {
    color: #0f172a;
    font-size: 1.25rem;
}

.bril-gauge-result span {
    color: #475569;
}

.bril-gauge-legend {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    width: 100%;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 8px;
    background: #fff;
}

.bril-gauge-legend > span {
    display: grid;
    gap: 0.15rem;
    min-width: 0;
    border-top: 5px solid currentColor;
    padding: 0.65rem 0.35rem;
    color: #334155;
    font-size: 0.78rem;
    font-weight: 900;
}

.bril-gauge-legend small {
    color: #64748b;
    font-size: 0.68rem;
    font-weight: 700;
}

.bril-gauge-legend .needs { border-top-color: #dc2626; }
.bril-gauge-legend .building { border-top-color: #f97316; }
.bril-gauge-legend .fair { border-top-color: #eab308; }
.bril-gauge-legend .good { border-top-color: #14b8a6; }
.bril-gauge-legend .very-good { border-top-color: #2563eb; }
.bril-gauge-legend .excellent { border-top-color: #16a34a; }

.bril-gauge-wrap.is-locked .bril-gauge {
    filter: saturate(0.45);
}

.bril-gauge-wrap.is-locked .bril-gauge-value strong {
    color: #475569;
}

.bril-plan-preview-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    width: min(100%, 760px);
    margin: 0.6rem 0;
}

.bril-plan-preview {
    display: grid;
    justify-items: center;
    gap: 0.45rem;
    min-height: 230px;
    border: 1px solid #f3f4f6;
    border-radius: var(--radius);
    background: #fff;
    color: #0f172a;
    padding: 1.4rem;
    box-shadow: var(--shadow);
}

.bril-plan-preview:hover {
    color: #0f172a;
    transform: translateY(-1px);
}

.bril-plan-preview.featured {
    border-color: #bbf7d0;
}

.bril-plan-preview .loan-icon {
    width: 42px;
    height: 42px;
    color: var(--primary-blue);
}

.bril-plan-preview.featured .loan-icon,
.bril-plan-preview.featured strong,
.bril-plan-preview.featured b {
    color: #00843d;
}

.bril-plan-preview b {
    color: var(--primary-blue);
    font-size: 2rem;
}

.bril-plan-preview small {
    color: var(--muted);
}

.bril-main-cta .loan-icon {
    width: 18px;
    height: 18px;
    margin-right: 0.35rem;
}

.bril-process-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.bril-process-grid article {
    display: grid;
    gap: 0.55rem;
    min-height: 180px;
    border-radius: var(--radius);
    background: #fff;
    padding: 1.2rem;
    box-shadow: var(--shadow);
}

.bril-process-grid .loan-icon {
    width: 36px;
    height: 36px;
    color: var(--primary-blue);
}

.bril-process-grid h2,
.bril-process-grid p {
    margin: 0;
}

.bril-process-grid p {
    color: var(--muted);
}

.bril-plan-hero {
    background: linear-gradient(135deg, #f59e0b 0%, #ffc107 45%, #fff3bf 100%);
}

.bril-score-hero {
    background: linear-gradient(135deg, #087cff 0%, #56a7f7 52%, #d7ebfc 100%);
}

.bril-plan-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.34fr);
    gap: 1.5rem;
    align-items: start;
    margin-bottom: 1.5rem;
}

.bril-plan-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}

.bril-plan-card,
.bril-wallet-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
}

.bril-plan-card {
    display: grid;
    gap: 0.75rem;
    padding: 1.4rem;
}

.bril-plan-card.selected {
    border-color: var(--primary-blue);
    box-shadow: 0 12px 26px rgba(0, 123, 255, 0.14);
}

.bril-plan-card.premium {
    border-color: #16a34a;
}

.bril-plan-icon .loan-icon {
    width: 48px;
    height: 48px;
    color: var(--primary-blue);
}

.bril-plan-card.premium .bril-plan-icon .loan-icon,
.bril-plan-card.premium h2,
.bril-plan-card.premium strong {
    color: #00843d;
}

.bril-plan-card > span {
    color: var(--muted);
    font-weight: 800;
}

.bril-plan-card h2,
.bril-plan-card p {
    margin: 0;
}

.bril-plan-card strong {
    color: var(--primary-blue);
    font-size: clamp(2.3rem, 6vw, 3.4rem);
    line-height: 1;
}

.bril-plan-card ul {
    display: grid;
    gap: 0.5rem;
    margin: 0.3rem 0;
    padding: 0;
    list-style: none;
}

.bril-plan-card li {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.bril-plan-card li .loan-icon {
    width: 18px;
    height: 18px;
    color: #16a34a;
    flex: 0 0 18px;
}

.bril-low-wallet {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    border: 1px solid #fde68a;
    border-radius: 10px;
    background: #fffbeb;
    padding: 0.8rem;
    color: #92400e;
    font-weight: 800;
}

.bril-low-wallet .loan-icon {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
}

.bril-wallet-card {
    display: grid;
    justify-items: center;
    gap: 0.6rem;
    padding: 1.4rem;
    text-align: center;
}

.bril-wallet-card .loan-icon {
    width: 48px;
    height: 48px;
    color: #16a34a;
}

.bril-wallet-card h2,
.bril-wallet-card p {
    margin: 0;
}

.bril-wallet-card strong {
    color: #00843d;
    font-size: 2rem;
}

.bril-benefit-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.bril-benefit-grid div {
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    padding: 1rem;
}

.bril-benefit-grid strong,
.bril-benefit-grid p {
    margin: 0;
}

.bril-benefit-grid p {
    margin-top: 0.35rem;
    color: var(--muted);
}

.bril-summary-hero {
    background: linear-gradient(135deg, #111827 0%, #2563eb 54%, #dbeafe 100%);
}

.bril-summary-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.65fr) minmax(280px, 0.35fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.bril-score-card,
.bril-subscription-card {
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
    padding: 1.5rem;
}

.bril-score-card {
    display: grid;
    gap: 0.7rem;
}

.bril-score-card span {
    color: #00843d;
    font-weight: 900;
}

.bril-score-card strong {
    color: #0f172a;
    font-size: clamp(4rem, 12vw, 7rem);
    line-height: 0.95;
}

.bril-score-card p,
.bril-subscription-card p {
    margin: 0;
    color: var(--muted);
}

.bril-score-meter {
    height: 14px;
    border-radius: 999px;
    background: #e5e7eb;
    overflow: hidden;
}

.bril-score-meter i {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #ef4444, #ffc107, #16a34a);
}

.bril-subscription-card {
    display: grid;
    justify-items: start;
    gap: 0.55rem;
}

.bril-subscription-card .loan-icon {
    width: 42px;
    height: 42px;
    color: var(--primary-blue);
}

.bril-subscription-card h2 {
    margin: 0;
}

.bril-subscription-card strong {
    color: #00843d;
    font-size: 1.6rem;
}

.bril-summary-grid {
    margin-bottom: 1.5rem;
}

.bril-insight-list {
    display: grid;
    gap: 0.75rem;
}

.bril-insight-list div {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #f8fafc;
    padding: 0.85rem;
}

.bril-insight-list .loan-icon {
    width: 20px;
    height: 20px;
    color: #f0ad00;
    flex: 0 0 20px;
}

.bril-account-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.bril-account-card {
    display: grid;
    justify-items: center;
    gap: 0.55rem;
    min-height: 180px;
    border-radius: var(--radius);
    background: #fff;
    padding: 1.35rem;
    text-align: center;
    box-shadow: var(--shadow);
}

.bril-account-card .loan-icon {
    width: 50px;
    height: 50px;
}

.bril-account-card h2 {
    margin: 0;
    color: #0f172a;
    font-size: 1.15rem;
}

.bril-account-card strong {
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1;
}

.bril-account-card.active .loan-icon,
.bril-account-card.active strong {
    color: #00843d;
}

.bril-account-card.closed .loan-icon,
.bril-account-card.closed strong {
    color: #475569;
}

.bril-account-card.default .loan-icon,
.bril-account-card.default strong {
    color: #f0ad00;
}

.bril-account-card.settlement .loan-icon,
.bril-account-card.settlement strong {
    color: #19bde0;
}

.bril-graph-panel .dashboard-panel-body {
    padding: 1.1rem;
}

.bril-graph-wrap {
    overflow-x: auto;
    border-radius: 10px;
    background: #fff;
}

.bril-graph-wrap svg {
    display: block;
    min-width: 860px;
    width: 100%;
    height: auto;
}

.bril-graph-grid {
    stroke: rgba(15, 23, 42, 0.12);
    stroke-width: 1;
}

.bril-graph-label {
    fill: #475569;
    font-size: 14px;
}

.bril-graph-line {
    fill: none;
    stroke: #29c3c7;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 4;
}

.bril-graph-dot {
    fill: #fff;
    stroke: #29c3c7;
    stroke-width: 3;
}

.bril-graph-labels {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    min-width: 860px;
    border-top: 1px solid var(--line);
    padding: 0.6rem 2.8rem 0.1rem;
    color: #475569;
    font-size: 0.82rem;
}

.bril-first-snapshot {
    display: grid;
    grid-template-columns: minmax(220px, 0.35fr) minmax(0, 1fr);
    gap: 1rem;
}

.bril-first-snapshot-score,
.bril-first-snapshot-copy {
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    box-shadow: var(--shadow);
}

.bril-first-snapshot-score {
    display: grid;
    justify-items: center;
    gap: 0.45rem;
    padding: 1.35rem 1rem;
    text-align: center;
}

.bril-first-snapshot-score .loan-icon {
    width: 44px;
    height: 44px;
    color: #19bde0;
}

.bril-first-snapshot-score span {
    color: #00843d;
    font-weight: 900;
}

.bril-first-snapshot-score strong {
    color: #0f172a;
    font-size: 3.15rem;
    line-height: 1;
}

.bril-first-snapshot-score small {
    color: #64748b;
    font-weight: 800;
}

.bril-first-snapshot-copy {
    display: grid;
    align-content: center;
    gap: 0.7rem;
    padding: 1.35rem;
}

.bril-first-snapshot-copy h3,
.bril-first-snapshot-copy p {
    margin: 0;
}

.bril-first-snapshot-copy p {
    color: #475569;
}

.bril-snapshot-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.bril-snapshot-meta span {
    border-radius: 999px;
    background: #e8f4ff;
    padding: 0.42rem 0.7rem;
    color: #005ce8;
    font-size: 0.86rem;
    font-weight: 900;
}

.bril-enquiry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1rem;
}

.bril-enquiry-card {
    display: grid;
    justify-items: center;
    gap: 0.45rem;
    min-height: 190px;
    border-radius: var(--radius);
    background: #fff;
    padding: 1.25rem;
    text-align: center;
    box-shadow: var(--shadow);
}

.bril-enquiry-card strong {
    color: #00843d;
    font-size: 2.5rem;
    line-height: 1;
}

.bril-enquiry-card h3,
.bril-enquiry-card p {
    margin: 0;
}

.bril-enquiry-card p {
    color: var(--muted);
}

.bril-payment-table table {
    min-width: 1480px;
}

.bril-table-note {
    margin: 1rem 0 0;
    color: var(--muted);
    text-align: center;
}

.bril-table-note a {
    font-weight: 800;
    text-decoration: underline;
}

.bril-change-list {
    display: grid;
    gap: 0.75rem;
}

.bril-change-list article {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(280px, 1.2fr);
    gap: 1rem;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    padding: 0.9rem 1rem;
}

.bril-change-list div {
    display: grid;
    gap: 0.2rem;
}

.bril-change-list div span {
    color: var(--muted);
    font-size: 0.9rem;
}

.bril-change-list div strong {
    color: #0f172a;
    font-size: 1.5rem;
    line-height: 1;
}

.bril-change-list p {
    margin: 0;
    color: var(--text);
}

@media (max-width: 1180px) {
    .apply-loan-layout {
        grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.8fr);
    }

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

    .loan-overview-columns {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

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

    .loan-overview-actions .btn {
        min-width: 240px;
    }

    .wallet-layout {
        grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.8fr);
    }

    .pay-emi-details-grid {
        grid-template-columns: 1fr;
    }

    .pay-emi-action-grid {
        grid-template-columns: 1fr;
    }

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

    .emi-table table {
        min-width: 1420px;
    }

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

    .dashboard-stat-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .bril-process-grid,
    .bril-account-grid,
    .bril-benefit-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .topbar {
        flex-wrap: wrap;
        gap: 0.65rem;
    }

    .nav-toggle {
        display: inline-block;
        margin-left: auto;
    }

    .topbar-menu {
        order: 5;
        display: none;
        flex-basis: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0.35rem;
        padding-top: 0.5rem;
    }

    .topbar-menu.open {
        display: flex;
    }

    .nav-link {
        justify-content: flex-start;
        width: 100%;
        border-radius: 8px;
        padding: 0.75rem 0.85rem;
    }

    .profile-menu {
        margin-left: 0;
    }
}

@media (max-width: 900px) {
    .auth-shell {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        min-height: auto;
        padding: 1.5rem 0 2rem;
    }

    .auth-visual {
        min-height: auto;
    }

    .auth-logo {
        font-size: 2.1rem;
    }

    .auth-copy h1 {
        font-size: 2.35rem;
    }

    .auth-content {
        width: min(100%, 520px);
        justify-self: center;
    }

    .stat-grid,
    .quick-loan-grid,
    .loan-summary-grid,
    .emi-summary-grid,
    .wallet-layout,
    .wallet-summary-grid,
    .dashboard-stat-grid,
    .bril-plan-layout,
    .bril-summary-layout,
    .bril-change-list article,
    .support-layout,
    .profile-overview-layout,
    .profile-info-layout,
    .password-security-layout,
    .settings-grid,
    .two-columns,
    .form-grid {
        grid-template-columns: 1fr;
    }

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

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

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

    .apply-loan-hero,
    .loan-page-hero {
        align-items: flex-start;
        flex-direction: column;
    }

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

    .kyc-layout {
        grid-template-columns: 1fr;
    }

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

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

    .apply-process-card {
        grid-column: 1 / -1;
    }

    .loan-summary-card {
        min-height: 190px;
    }

    .emi-summary-card {
        min-height: 112px;
    }

    .wallet-balance-card {
        min-height: 360px;
    }

    .wallet-action-stack {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .bril-wallet-card {
        justify-items: start;
        text-align: left;
    }

    .dashboard-emi-alert,
    .dashboard-emi-alert-content {
        align-items: flex-start;
    }

    .dashboard-emi-alert p {
        display: grid;
        gap: 0.25rem;
    }

    .dashboard-emi-alert strong,
    .dashboard-emi-alert span {
        white-space: normal;
    }

    .profile-button {
        gap: 0.35rem;
    }

    .profile-name {
        max-width: 150px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

@media (max-width: 720px) {
    .page-shell {
        width: min(100% - 1rem, 1320px);
        margin-top: 1rem;
    }

    .card-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .form-actions,
    .quick-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .bril-lock-panel {
        min-height: auto;
    }

    .bril-plan-preview-grid,
    .bril-plan-card-grid,
    .bril-account-grid,
    .bril-first-snapshot,
    .bril-process-grid,
    .bril-benefit-grid,
    .kyc-form-grid,
    .kyc-document-grid,
    .kyc-review-summary,
    .support-form,
    .support-shortcut-grid {
        grid-template-columns: 1fr;
    }

    .kyc-step-actions { flex-direction: column-reverse; }
    .kyc-step-actions .btn { width: 100%; }

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

    .bril-gauge-legend > span {
        min-height: 58px;
    }

    .kyc-status-strip,
    .wallet-kyc-alert {
        align-items: flex-start;
        flex-direction: column;
        text-align: left;
    }

    .wallet-kyc-alert .btn {
        width: 100%;
    }

    .support-stat-grid {
        grid-template-columns: 1fr;
    }

    .support-stat-card {
        min-height: 130px;
    }

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

    .profile-action-card,
    .profile-action-card.wide {
        min-height: 150px;
    }

    .profile-detail-list div {
        grid-template-columns: 1fr;
        gap: 0.35rem;
        align-items: start;
    }

    .profile-edit-request-actions {
        flex-direction: column;
    }

    .profile-edit-request-actions .btn {
        width: 100%;
    }

    .profile-current-box {
        grid-template-columns: 1fr;
        text-align: left;
    }

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

    .profile-pending-request .badge {
        display: inline-flex;
        margin: 0.4rem 0 0;
    }

    .profile-security-note {
        align-items: flex-start;
        text-align: left;
    }

    .password-card-header,
    .password-email-box,
    .password-otp-status {
        grid-template-columns: 1fr;
    }

    .settings-panel-head,
    .settings-option-row,
    .settings-otp-box,
    .settings-coming-soon,
    .settings-mpin-fields {
        grid-template-columns: 1fr;
    }

    .settings-panel-head {
        gap: 0.65rem;
    }

    .settings-status,
    .settings-pill {
        width: fit-content;
    }

    .settings-inline-form .btn {
        width: 100%;
    }

    .settings-security-card .btn {
        width: 100%;
    }

    .bril-account-card {
        min-height: 150px;
    }

    .bril-graph-labels {
        padding-inline: 2.2rem;
    }

    .dashboard-panel-header {
        align-items: flex-start;
        gap: 0.5rem;
        padding: 0.9rem 1rem;
    }

    .dashboard-panel-header h2 {
        font-size: 1rem;
    }

    .dashboard-table table {
        min-width: 0;
    }

    .support-ticket-table table {
        min-width: 0;
    }

    table,
    thead,
    tbody,
    th,
    td,
    tr {
        display: block;
    }

    thead {
        display: none;
    }

    tr {
        margin-bottom: 1rem;
        border: 1px solid var(--line);
        border-radius: 10px;
        background: white;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
        overflow: hidden;
    }

    td {
        display: flex;
        justify-content: space-between;
        gap: 1rem;
        border-bottom: 1px solid var(--line);
        text-align: right;
        word-break: break-word;
    }

    td::before {
        content: attr(data-label);
        color: var(--dark-gray);
        font-weight: 800;
        text-align: left;
    }

    td:last-child {
        border-bottom: 0;
    }

    .dashboard-table td {
        align-items: center;
    }

    .dashboard-scroll-table table {
        display: table;
        min-width: 900px;
    }

    .wallet-action-stack,
    .wallet-balance-metrics {
        grid-template-columns: 1fr;
    }

    .pay-emi-form .input-with-actions {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .pay-emi-form .input-with-actions button {
        grid-column: 1 / -1;
    }

    .pay-emi-bottom-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .pay-emi-bottom-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .wallet-filter-tabs button,
    .emi-filter-tabs button {
        flex: 1 1 auto;
    }

    .dashboard-scroll-table thead {
        display: table-header-group;
    }

    .dashboard-scroll-table tbody {
        display: table-row-group;
    }

    .dashboard-scroll-table tr {
        display: table-row;
        margin-bottom: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        overflow: visible;
    }

    .dashboard-scroll-table th,
    .dashboard-scroll-table td {
        display: table-cell;
        min-width: 110px;
        border-bottom: 1px solid var(--line);
        padding: 0.9rem 1rem;
        text-align: left;
        vertical-align: middle;
        white-space: nowrap;
        word-break: normal;
    }

    .dashboard-scroll-table td::before {
        content: none;
    }

    .dashboard-scroll-table td:first-child,
    .dashboard-scroll-table th:first-child {
        min-width: 76px;
    }

    .dashboard-scroll-table td:last-child {
        border-bottom: 1px solid var(--line);
    }

    .dashboard-scroll-table .btn {
        width: auto;
    }

    .loan-row-actions {
        width: max-content;
    }
}

@media (max-width: 480px) {
    .auth-shell {
        width: min(100% - 1rem, 1120px);
        gap: 1rem;
        padding: 1rem 0 1.25rem;
    }

    .auth-visual {
        gap: 1rem;
    }

    .auth-logo {
        font-size: 1.65rem;
    }

    .auth-copy h1 {
        font-size: 1.8rem;
        line-height: 1.15;
    }

    .auth-copy p {
        font-size: 0.95rem;
    }

    .finance-visual {
        display: grid;
        gap: 0.75rem;
        min-height: auto;
    }

    .visual-panel {
        position: static;
        width: 100%;
        min-height: auto;
        padding: 0.9rem;
    }

    .visual-panel-side,
    .visual-panel-red {
        display: none;
    }

    .visual-amount {
        font-size: 1.45rem;
    }

    .auth-card {
        padding: 1.25rem;
    }

    .topbar {
        gap: 0.6rem;
        padding: 0.65rem 0.75rem;
    }

    .brand-link.compact {
        font-size: 1.15rem;
    }

    .profile-name {
        display: none;
    }

    .profile-dropdown {
        right: -0.25rem;
        min-width: 190px;
    }

    .dashboard-hero {
        margin-bottom: 1rem;
        padding: 1.25rem;
    }

    .dashboard-hero p {
        font-size: 0.95rem;
    }

    .dashboard-stat {
        min-height: 145px;
    }

    .dashboard-panel {
        margin-bottom: 1rem;
    }

    .dashboard-panel-body,
    .quick-view-body {
        padding: 1rem;
    }

    .apply-loan-hero {
        margin-bottom: 1rem;
        padding: 1.25rem;
    }

    .apply-loan-hero p {
        font-size: 0.95rem;
    }

    .loan-application-card {
        padding: 1.15rem;
    }

    .input-with-actions {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .input-with-actions button {
        grid-column: span 1;
    }

    .apply-side-stack {
        grid-template-columns: 1fr;
    }

    .loan-page-hero {
        margin-bottom: 1rem;
        padding: 1.25rem;
    }

    .loan-page-hero p {
        font-size: 0.95rem;
    }

    .loan-summary-card {
        min-height: 170px;
    }

    .loan-summary-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .loan-summary-footer .btn,
    .loan-panel-actions .btn {
        width: 100%;
    }

    .loan-overview-card-body {
        padding: 1rem;
    }

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

    .loan-overview-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .loan-overview-actions .btn,
    .loan-print-row .btn,
    .borrower-back-link {
        width: 100%;
        justify-content: center;
    }

    .loan-panel-actions {
        justify-content: stretch;
    }

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

    .quick-loan-top,
    .quick-loan-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .quick-loan-footer .btn,
    .quick-view-body .btn {
        width: 100%;
    }
}

@media print {
    @page {
        size: A4 portrait;
        margin: 10mm;
    }

    html,
    body {
        width: 210mm;
        min-height: 297mm;
        background: white !important;
        color: #111827 !important;
        font-size: 9pt;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .topbar,
    .alert,
    .loan-page-hero,
    .loan-overview-card,
    .loan-overview-schedule,
    .loan-overview-help,
    .borrower-back-link {
        display: none !important;
    }

    .page-shell {
        width: auto !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
        background: white !important;
    }

    .loan-print-document {
        display: block !important;
        width: 100%;
        color: #111827;
        font-family: Arial, sans-serif;
    }

    .loan-print-header {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 12mm;
        margin-bottom: 6mm;
        padding-bottom: 4mm;
        border-bottom: 1px solid #111827;
        break-inside: avoid;
    }

    .loan-print-header h1 {
        margin: 0 0 2mm;
        color: #0066ff;
        font-size: 18pt;
        line-height: 1.1;
    }

    .loan-print-header h1 span {
        color: #ef4444;
    }

    .loan-print-header p {
        margin: 1mm 0;
        color: #111827;
        font-size: 9pt;
    }

    .loan-print-meta {
        display: grid;
        gap: 1mm;
        min-width: 48mm;
        color: #111827;
        font-size: 8pt;
        text-align: right;
    }

    .loan-print-meta strong {
        font-size: 11pt;
    }

    .loan-print-summary {
        width: 100%;
        margin-bottom: 5mm;
        border-collapse: collapse;
        table-layout: fixed;
        break-inside: avoid;
    }

    .loan-print-summary tbody,
    .loan-print-summary tr {
        display: table-row-group;
    }

    .loan-print-summary tr {
        display: table-row;
        margin: 0;
        border: 0;
        box-shadow: none;
    }

    .loan-print-summary td {
        display: table-cell;
        min-height: 13mm;
        padding: 2mm;
        border: 1px solid #d1d5db;
        text-align: left;
        vertical-align: top;
    }

    .loan-print-summary span,
    .loan-print-summary strong {
        display: block;
    }

    .loan-print-summary span {
        margin-bottom: 1mm;
        color: #4b5563;
        font-size: 7pt;
        text-transform: uppercase;
    }

    .loan-print-summary strong {
        color: #111827;
        font-size: 8pt;
        word-break: break-word;
    }

    .loan-print-summary td::before,
    .loan-print-tip {
        content: none !important;
        display: none !important;
    }

    .loan-print-document h2 {
        margin: 0 0 3mm;
        color: #111827;
        font-size: 12pt;
    }

    .loan-print-table {
        width: 100%;
        border-collapse: collapse;
        table-layout: fixed;
        font-size: 7.5pt;
    }

    .loan-print-table thead {
        display: table-header-group;
    }

    .loan-print-table tbody {
        display: table-row-group;
    }

    .loan-print-table tr {
        display: table-row;
        margin: 0;
        border: 0;
        box-shadow: none;
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .loan-print-table th,
    .loan-print-table td {
        display: table-cell;
        padding: 1.6mm 1.4mm;
        border: 1px solid #d1d5db;
        color: #111827;
        text-align: left;
        vertical-align: top;
        word-break: break-word;
        white-space: normal;
    }

    .loan-print-table th {
        background: #e5efff !important;
        color: #111827 !important;
        font-size: 7.5pt;
        font-weight: 800;
    }

    .loan-print-table td::before {
        content: none !important;
    }

    .loan-print-table th:nth-child(1),
    .loan-print-table td:nth-child(1) {
        width: 8mm;
        text-align: center;
    }

    .loan-print-table th:nth-child(8),
    .loan-print-table td:nth-child(8) {
        width: 21mm;
    }

    .loan-print-empty {
        margin: 4mm 0;
        color: #111827;
    }

    .loan-print-footer {
        margin-top: 5mm;
        padding-top: 3mm;
        border-top: 1px solid #d1d5db;
        color: #4b5563;
        font-size: 7pt;
        text-align: center;
        break-inside: avoid;
    }
}
.not-found-page {
    min-height: calc(100vh - 150px);
    display: grid;
    grid-template-columns: minmax(300px, 0.9fr) minmax(320px, 1.1fr);
    align-items: center;
    gap: clamp(2rem, 6vw, 6rem);
    max-width: 1180px;
    margin: 0 auto;
    padding: clamp(2rem, 7vw, 6rem) clamp(1rem, 4vw, 3rem);
}

.not-found-visual {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 330px;
    border-radius: 8px;
    overflow: hidden;
    background: #0b67c7;
    box-shadow: 0 24px 50px rgba(11, 103, 199, 0.2);
}

.not-found-code {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: clamp(5.8rem, 14vw, 10rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0;
    text-shadow: 0 8px 22px rgba(4, 38, 77, 0.24);
    animation: not-found-float 3.6s ease-in-out infinite;
}

.not-found-zero {
    position: relative;
    display: grid;
    place-items: center;
    width: 0.78em;
    height: 0.98em;
    margin: 0 0.05em;
    border: 0.12em solid #fff;
    border-radius: 50%;
    color: transparent;
}

.not-found-zero i {
    width: 0.16em;
    height: 0.16em;
    border-radius: 50%;
    background: #ef4444;
    box-shadow: 0 0 0 0.07em rgba(255, 255, 255, 0.9);
    animation: not-found-pulse 1.8s ease-out infinite;
}

.not-found-route {
    position: absolute;
    right: 8%;
    bottom: 13%;
    left: 8%;
    height: 24px;
}

.not-found-route-line {
    position: absolute;
    top: 11px;
    right: 0;
    left: 0;
    height: 2px;
    background: rgba(255, 255, 255, 0.48);
}

.not-found-route-marker {
    position: absolute;
    top: 4px;
    left: 0;
    width: 16px;
    height: 16px;
    border: 3px solid #fff;
    border-radius: 50%;
    background: #ef4444;
    animation: not-found-travel 4.5s ease-in-out infinite;
}

.not-found-copy {
    max-width: 590px;
}

.not-found-eyebrow {
    display: block;
    margin-bottom: 0.8rem;
    color: #ef4444;
    font-weight: 900;
}

.not-found-copy h1 {
    margin: 0;
    color: #111827;
    font-size: clamp(2.25rem, 6vw, 4.6rem);
    line-height: 1.04;
    letter-spacing: 0;
}

.not-found-copy p {
    max-width: 52ch;
    margin: 1.25rem 0 1.7rem;
    color: #475569;
    font-size: 1.08rem;
    line-height: 1.7;
}

.not-found-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.not-found-support {
    display: inline-block;
    margin-top: 1.4rem;
    color: #0b67c7;
    font-weight: 800;
}

@keyframes not-found-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

@keyframes not-found-pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.85); }
    70%, 100% { box-shadow: 0 0 0 0.18em rgba(255, 255, 255, 0); }
}

@keyframes not-found-travel {
    0%, 100% { left: 0; }
    50% { left: calc(100% - 16px); }
}

@media (max-width: 760px) {
    .not-found-page {
        min-height: auto;
        grid-template-columns: 1fr;
        gap: 2rem;
        padding-top: 1.5rem;
        text-align: center;
    }

    .not-found-visual {
        min-height: 240px;
    }

    .not-found-copy,
    .not-found-copy p {
        margin-right: auto;
        margin-left: auto;
    }

    .not-found-actions {
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .not-found-code,
    .not-found-zero i,
    .not-found-route-marker {
        animation: none;
    }
}
.foreclosure-panel{margin-top:24px}.foreclosure-panel form{display:grid;gap:14px}.foreclosure-panel textarea{min-height:100px}.foreclosure-status{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px;background:#f1f5f9;border-left:4px solid #087cff}.foreclosure-status div{display:grid;gap:4px}.foreclosure-quote{margin:18px 0;padding:18px;border:1px solid #d9e2ef;background:#fff}.foreclosure-quote dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.foreclosure-quote dl div{display:flex;justify-content:space-between;gap:12px;padding:10px;background:#f8fafc}.foreclosure-quote>strong{display:block;margin-top:14px;font-size:24px;color:#0f172a}@media(max-width:680px){.foreclosure-status{align-items:flex-start;flex-direction:column}.foreclosure-quote dl{grid-template-columns:1fr}}
.settlement-panel{margin-top:24px}.settlement-panel form{display:grid;gap:14px}.settlement-panel .foreclosure-status{border-left-color:#7c3aed}.settlement-panel .foreclosure-quote{border-radius:6px}.settlement-actions form{display:flex;flex-wrap:wrap;gap:10px}@media(max-width:680px){.settlement-actions form .btn{width:100%}}
/* Borrower notification center and personalised offers */
.notification-menu{position:relative;margin-left:auto}.notification-button{position:relative;width:42px;height:42px;border:1px solid #d8e2ef;background:#fff;border-radius:50%;display:grid;place-items:center;color:#17233b;cursor:pointer}.notification-button .nav-icon{margin:0}.notification-count{position:absolute;right:-3px;top:-4px;min-width:19px;height:19px;padding:0 5px;border-radius:10px;background:#e11d48;color:#fff;font-size:11px;font-weight:800;display:grid;place-items:center}.notification-dropdown{display:none;position:absolute;right:0;top:50px;width:min(380px,calc(100vw - 24px));background:#fff;border:1px solid #d8e2ef;box-shadow:0 14px 35px rgba(15,35,65,.16);z-index:50}.notification-dropdown.open{display:block}.notification-dropdown header{display:flex;justify-content:space-between;align-items:center;padding:14px 16px;border-bottom:1px solid #e6edf5}.notification-dropdown header a{color:#087cff;font-weight:700;font-size:13px}.mini-notification{display:block;padding:13px 16px;color:#17233b;border-bottom:1px solid #edf2f7;text-decoration:none}.mini-notification.is-unread{background:#eef7ff;border-left:3px solid #087cff}.mini-notification strong,.mini-notification span{display:block}.mini-notification span{margin-top:4px;color:#5b6980;font-size:13px;line-height:1.4}.notification-empty{padding:18px;color:#64748b;text-align:center}.notification-page,.offer-review{margin-top:24px;background:#fff;border:1px solid #d8e2ef;box-shadow:0 8px 22px rgba(15,35,65,.07)}.notification-page .section-heading,.offer-review>header{display:flex;justify-content:space-between;align-items:center;padding:22px 26px;border-bottom:1px solid #d8e2ef}.notification-row{display:grid;grid-template-columns:12px minmax(0,1fr) auto;gap:14px;align-items:center;padding:18px 26px;color:#17233b;text-decoration:none;border-bottom:1px solid #e7edf4}.notification-row.is-unread{background:#f0f7ff}.notification-row strong,.notification-row small{display:block}.notification-row small{margin-top:5px;color:#5b6980}.notification-row time{font-size:12px;color:#6b7890}.notification-dot{width:9px;height:9px;border-radius:50%;background:#c6d1df}.notification-row.is-unread .notification-dot{background:#087cff}.offer-review{max-width:1050px;margin-left:auto;margin-right:auto}.offer-review .eyebrow,.notification-page .eyebrow{font-size:12px;text-transform:uppercase;font-weight:800;color:#477093;letter-spacing:0}.offer-amount{text-align:center;padding:28px;background:#eef7ff}.offer-amount span,.offer-amount small{display:block;color:#5b6980}.offer-amount strong{display:block;margin:5px 0;font-size:38px;color:#087cff}.offer-term-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1px;background:#dbe5ef;border-block:1px solid #dbe5ef}.offer-term-grid>div{padding:20px;background:#fff}.offer-term-grid span,.offer-term-grid strong{display:block}.offer-term-grid span{font-size:13px;color:#64748b;margin-bottom:6px}.offer-notice{margin:22px;padding:16px;border-left:4px solid #f5b400;background:#fff8df;color:#5c4b17;line-height:1.5}.offer-actions{display:grid;grid-template-columns:1fr 1fr;gap:16px;padding:0 22px 24px}.offer-actions form{display:flex;gap:10px}.offer-actions form input[name=reason]{min-width:0;flex:1;padding:11px;border:1px solid #cbd7e5}.offer-actions .btn{white-space:nowrap}.status-pill{display:inline-flex;padding:6px 10px;background:#edf2f7;font-size:12px;font-weight:800;text-transform:capitalize}.status-published{background:#dcfce7;color:#087a3b}.status-accepted{background:#dbeafe;color:#075fc7}.status-declined,.status-expired,.status-cancelled{background:#fee2e2;color:#b42332}
@media(max-width:760px){.notification-menu{margin-left:0}.notification-dropdown{right:-58px}.notification-row{grid-template-columns:10px minmax(0,1fr)}.notification-row time{grid-column:2}.offer-term-grid{grid-template-columns:1fr 1fr}.offer-actions{grid-template-columns:1fr}.offer-actions form{flex-wrap:wrap}.offer-actions form input[name=reason]{flex-basis:100%}}
@media(max-width:480px){.offer-term-grid{grid-template-columns:1fr}.offer-amount strong{font-size:30px}.notification-page .section-heading,.offer-review>header,.notification-row{padding-left:16px;padding-right:16px}}

/* Polished borrower notification popover. */
.notification-dropdown{
    overflow:hidden;
    border-radius:12px;
    box-shadow:0 16px 40px rgba(15,35,65,.18);
}
.notification-dropdown header{
    gap:12px;
    padding:13px 14px;
    background:#fff;
}
.notification-dropdown header a{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:30px;
    padding:5px 11px;
    border:1px solid #b9d8ff;
    border-radius:999px;
    background:#eef7ff;
    color:#087cff;
    font-size:12px;
    font-weight:800;
    line-height:1;
    text-decoration:none;
    white-space:nowrap;
}
.notification-dropdown header a:hover,
.notification-dropdown header a:focus-visible{
    border-color:#087cff;
    background:#087cff;
    color:#fff;
    outline:none;
}
.mini-notification{
    transition:background-color .18s ease;
}
.mini-notification:last-child{
    border-bottom:0;
}
.mini-notification:hover,
.mini-notification:focus-visible{
    background:#f7fbff;
    outline:none;
}
.mini-notification.is-unread:hover,
.mini-notification.is-unread:focus-visible{
    background:#e2f2ff;
}
@media(max-width:760px){
    .notification-dropdown{
        right:-50px;
        width:min(360px,calc(100vw - 20px));
        border-radius:10px;
    }
}
