html,
body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

body:has(.main-layout-doc-scroll) {
    padding-top: var(--layout-header-h, 140px);
}

.navbar-top-bar {
    background-color: #0064a6;
    color: white;
}

.main-header-row {
    background-color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 40, 72, 0.10);
}

*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    max-width: 100%;
}

html:has(.empty-shell),
html:has(.empty-shell) body {
    background: transparent !important;
    overflow-x: hidden;
}

@media (max-width: 767px) {
    html:has(.rz-body),
    html:has(.rz-body) body {
        height: 100%;
        overflow: hidden;
    }

    .rz-body {
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .rz-body::-webkit-scrollbar {
        display: none;
    }
}

a,
.btn-link {
    color: #006bb7;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

/* Suppress Blazor built-in loading indicators — skeleton placeholders handle perceived load */
#blazor-loading-indicator,
.loading-progress,
.loading-progress-text {
    display: none !important;
}

/* ── Reconnect modal — global (unscoped) so framework JS class toggles work ── */

/* Hide all body states by default */
.rc-body {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
    animation: rc-fadeIn 0.3s ease;
}

/* Show correct body per dialog state */
#components-reconnect-modal.components-reconnect-show      .components-reconnect-first-attempt-visible,
#components-reconnect-modal.components-reconnect-retrying  .components-reconnect-repeated-attempt-visible,
#components-reconnect-modal.components-reconnect-failed    .components-reconnect-failed-visible,
#components-reconnect-modal.components-reconnect-paused    .components-pause-visible,
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible {
    display: flex;
}

/* Pulse ring colour per state */
#components-reconnect-modal.components-reconnect-retrying  .rc-pulse-dot { background: #d97706; }
#components-reconnect-modal.components-reconnect-retrying  .rc-pulse-ring-inner { border-color: rgba(217,119,6,0.25); }
#components-reconnect-modal.components-reconnect-failed    .rc-pulse-dot { background: #c62828; }
#components-reconnect-modal.components-reconnect-failed    .rc-pulse-ring-inner { border-color: rgba(198,40,40,0.2); animation: none; }
#components-reconnect-modal.components-reconnect-paused    .rc-pulse-dot { background: #d97706; }
#components-reconnect-modal.components-reconnect-resume-failed .rc-pulse-dot { background: #c62828; }
#components-reconnect-modal.components-reconnect-resume-failed .rc-pulse-ring-inner { animation: none; }

/* Dialog shell */
#components-reconnect-modal {
    background: linear-gradient(160deg, #052767 0%, #0a3d8a 100%);
    width: 21rem;
    margin: 20vh auto;
    padding: 0;
    border: none;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(5, 39, 103, 0.45), 0 0 0 1px rgba(255,255,255,0.08);
    opacity: 0;
    overflow: hidden;
    animation: rc-fadeOut 0.4s both;
}

#components-reconnect-modal[open] {
    animation: rc-slideUp 0.5s cubic-bezier(.05, .89, .25, 1.02) 0.05s,
               rc-fadeIn  0.3s ease-in-out 0.05s;
    animation-fill-mode: both;
}

#components-reconnect-modal::backdrop {
    background: rgba(5, 39, 103, 0.5);
    backdrop-filter: blur(4px);
    animation: rc-fadeIn 0.3s ease-in-out;
    opacity: 1;
}

/* Card layout */
.rc-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem 2rem 1.75rem;
}

/* Brand strip */
.rc-brand {
    background: rgba(255,255,255,0.08);
    border-radius: 10px;
    padding: 0.6rem 1.25rem;
    width: 100%;
    display: flex;
    justify-content: center;
}

.rc-brand img {
    height: 32px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.92;
}

/* Pulse ring animation */
.rc-pulse-ring {
    position: relative;
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rc-pulse-ring-inner {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid rgba(100,160,255,0.3);
    animation: rc-pulse 1.8s ease-out infinite;
}

.rc-pulse-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #4a9eff;
    box-shadow: 0 0 0 6px rgba(74,158,255,0.2), 0 0 20px rgba(74,158,255,0.4);
    animation: rc-breathe 2s ease-in-out infinite;
    transition: background 0.4s, box-shadow 0.4s;
}

/* Typography */
.rc-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.01em;
}

.rc-title--amber { color: #fbbf24; }
.rc-title--red   { color: #f87171; }

.rc-sub {
    margin: 0;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.65);
    line-height: 1.55;
}

.rc-sub strong { color: rgba(255,255,255,0.9); }

/* Action button */
.rc-action-btn {
    margin-top: 0.5rem;
    border: none;
    background: rgba(255,255,255,0.15);
    color: #ffffff;
    padding: 0.55rem 1.75rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: 0.02em;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.2);
    transition: background 0.2s, transform 0.15s;
}

.rc-action-btn:hover  { background: rgba(255,255,255,0.25); transform: translateY(-1px); }
.rc-action-btn:active { background: rgba(255,255,255,0.12); transform: translateY(0); }

/* Keyframes */
@keyframes rc-pulse {
    0%   { transform: scale(1);   opacity: 0.8; }
    70%  { transform: scale(1.6); opacity: 0; }
    100% { transform: scale(1.6); opacity: 0; }
}

@keyframes rc-breathe {
    0%, 100% { transform: scale(1);    opacity: 1; }
    50%       { transform: scale(0.88); opacity: 0.8; }
}

@keyframes rc-slideUp {
    from { transform: translateY(28px) scale(0.96); }
    to   { transform: translateY(0)    scale(1); }
}

@keyframes rc-fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes rc-fadeOut {
    from { opacity: 1; }
    to   { opacity: 0; }
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "An error has occurred."
}

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating>.form-control-plaintext::placeholder,
.form-floating>.form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating>.form-control-plaintext:focus::placeholder,
.form-floating>.form-control:focus::placeholder {
    text-align: start;
}

.rz-body {
    padding: 1.5rem 2rem !important;
}

@media (max-width: 768px) {
    .rz-body {
        padding: 1rem !important;
    }
}

:root {
    --rz-sidebar-toggle-margin-inline-end: 0 !important;
    --rz-text-display-h2-color: #77c149 !important;
    --rz-text-display-h3-color: #77c149 !important;
    --rz-text-display-h4-color: #77c149 !important;
    --rz-text-display-h5-color: #77c149 !important;
    --rz-text-h5-color: #77c149 !important;
    --rz-primary: rgb(5, 39, 103) !important;
    --rz-dialog-mask-zindex: 1300 !important;
    --rz-dialog-zindex: 1301 !important;

    --z-sticky:            800;
    --z-mobile-overlay:    850;
    --z-header:            900;
    --z-panel:            1000;
    --z-footer:           1030;
    --z-sidebar:          1050;
    --z-bottom-nav-overlay: 1065;
    --z-bottom-nav:       1070;
    --z-dropdown:         1100;
    --z-loading:          9000;
    --z-toast:           10000;
    --z-error:           10010;
}

.rz-header.mobile {
    padding-left: 13px !important;
}

@media screen and (max-width: 576px) {
    :root {
        /* --rz-layout-body-padding: 0 !important; */
        --rz-tabs-padding: 0 !important;
        /* --rz-card-padding: 0 !important; */
    }
}


.rz-tabview-nav {
    overflow-x: auto;
    overflow-y: hidden;
}

.fit-content-dropdown {
    width: auto !important;
    min-width: 120px;
}

.fit-content-dropdown .rz-dropdown-panel {
    min-width: max-content !important;
}


.rz-form-field {
    width: 100% !important;
}


.doc-viewer {
    position: fixed;
    right: 0;
    top: 60px;
    width: 40%;
    height: calc(100vh - 60px);
    background: white;
    border-left: 1px solid #ddd;
    z-index: var(--z-panel);
    display: flex;
    flex-direction: column;
}

.doc-header {
    display: flex;
    justify-content: space-between;
    padding: 8px;
    border-bottom: 1px solid #eee;
}

.doc-frame {
    flex: 1;
    border: none;
}

/* ── Pull-to-refresh indicator ──────────────────────────────────────── */
#ptr-indicator {
    position: fixed;
    top: 56px;
    left: 50%;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: var(--z-panel);
    pointer-events: none;
    opacity: 0;
    transform: translateX(-50%) translateY(-48px);
    --ptr-progress: 0;
}

#ptr-indicator::after {
    content: '';
    position: absolute;
    inset: 5px;
    border: 3px solid #f3f3f3;
    border-top-color: #0047AB;
    border-radius: 50%;
    animation: ptr-spin 0.7s linear infinite;
}

#ptr-indicator.ptr-active {
    opacity: calc(var(--ptr-progress) * 1);
    transform: translateX(-50%) translateY(calc(-48px + (var(--ptr-progress) * 64px)));
}

@keyframes ptr-spin {
    to { transform: rotate(360deg); }
}

.spinner-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.8); /* semi-transparent white */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: var(--z-loading);
}

.spinner {
  width: 60px;
  height: 60px;
  border: 6px solid #f3f3f3; /* light gray background */
  border-top: 6px solid #0047AB; /* primary brand color (blue) */
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Spin animation */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ── Mobile page title ───────────────────────────────────────────────── */
.mobile-page-title {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.2;
    color: var(--rz-text-color);
    margin: 0;
    padding: 4px 4px 8px;
}

/* ── Mobile menu list (shared: ContainerMobile, ContactDetailsMobile, AffordabilityMobile) ── */
.mobile-menu-section-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--rz-text-tertiary-color, #9e9e9e);
    padding: 0 4px;
    margin: 0 0 0.5rem 0;
}

.mobile-menu-group {
    background: var(--rz-base-background-color, #ffffff);
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.07), 0 4px 12px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

.mobile-menu-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    text-decoration: none;
    color: inherit;
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
}

.mobile-menu-row:active {
    background-color: rgba(0, 0, 0, 0.04);
}

.mobile-menu-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 20px;
}

.mobile-menu-label {
    flex: 1;
    font-size: 0.9375rem;
    font-weight: 500;
    line-height: 1.3;
}

.mobile-menu-chevron {
    font-size: 18px;
    color: var(--rz-text-disabled-color, #bdbdbd);
    flex-shrink: 0;
}

.mobile-menu-divider {
    height: 1px;
    background: var(--rz-border-color, rgba(0, 0, 0, 0.07));
    margin-left: 68px;
}

.mobile-menu-divider--full {
    margin-left: 0;
}

.mobile-menu-section-label--spaced {
    margin-top: 1.25rem;
}

/* ── Mobile menu icon colour variants ────────────────────────────────── */
.mobile-menu-icon--purple  { background: #f3e8fd; color: #9c27b0; }
.mobile-menu-icon--blue    { background: #e8f0fe; color: #4285f4; }
.mobile-menu-icon--green   { background: #e6f4ea; color: #34a853; }
.mobile-menu-icon--orange  { background: #fff3e0; color: #fb8c00; }
.mobile-menu-icon--red     { background: #fce8e6; color: #ea4335; }
.mobile-menu-icon--amber   { background: #fef7e0; color: #f9ab00; }
.mobile-menu-icon--grey    { background: #e8eaed; color: #5f6368; }
.mobile-menu-icon--primary { background: color-mix(in srgb, var(--rz-primary, #77c149) 15%, transparent); color: var(--rz-primary, #77c149); }

.mobile-empty-state {
    padding: 16px;
    text-align: center;
    color: var(--rz-text-secondary-color, #6b7280);
}

/* ── Mobile detail cards — Contact Methods ──────────────────────────── */

.contact-method-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    gap: 12px;
}

.contact-method-row--primary {
    border-left: 3px solid var(--rz-primary, #77c149);
}

.contact-method-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.contact-method-type {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--rz-text-color);
}

.contact-method-content {
    font-size: 0.8125rem;
    color: var(--rz-text-secondary-color, #6b7280);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Mobile detail cards — Addresses ───────────────────────────────── */

.address-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    gap: 12px;
}

.address-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.address-type {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--rz-text-color);
}

.address-content {
    font-size: 0.8125rem;
    color: var(--rz-text-secondary-color, #6b7280);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Mobile detail cards — Bank Accounts ───────────────────────────── */

.bank-account-row {
    padding: 12px 16px;
}

.bank-account-name {
    display: block;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--rz-text-color);
    margin-bottom: 8px;
}

.bank-account-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.bank-account-detail-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.8125rem;
}

.bank-account-label {
    color: var(--rz-text-secondary-color, #6b7280);
}

.bank-account-value {
    font-weight: 500;
    color: var(--rz-primary, #1a8fd1);
}

/* ── Mobile detail cards — Employment ──────────────────────────────── */

.employment-row {
    padding: 12px 16px;
}

.employment-employer {
    display: block;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--rz-text-color);
    margin-bottom: 8px;
}

.employment-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.employment-detail-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.8125rem;
}

.employment-label {
    color: var(--rz-text-secondary-color, #6b7280);
}

.employment-value {
    font-weight: 500;
    color: var(--rz-primary, #1a8fd1);
}

/* ── Mobile detail cards — Authentication ───────────────────────────── */

.auth-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
}

.auth-row-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.auth-row-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--rz-text-color);
}

.auth-row-desc {
    font-size: 0.78rem;
    color: var(--rz-text-secondary-color, #6b7280);
    line-height: 1.3;
}

/* ── Mobile detail cards — Status ───────────────────────────────────── */

.status-progress-label {
    font-size: 0.8125rem;
    color: var(--rz-text-secondary-color, #6b7280);
    text-align: right;
    display: block;
    margin-top: 4px;
}

.status-rule-row {
    padding: 4px 0;
}

.status-loan-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
}

/* ── Mobile detail cards — Files ────────────────────────────────────── */

.file-mobile-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    -webkit-tap-highlight-color: transparent;
}

.file-mobile-row:active {
    background: rgba(0, 0, 0, 0.03);
}

.file-mobile-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #e8f0fe;
    color: #4285f4;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 20px;
}

.file-mobile-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
    min-width: 0;
}

.file-mobile-type {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--rz-text-color);
}

.file-mobile-name {
    font-size: 0.75rem;
    color: var(--rz-text-secondary-color, #6b7280);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-mobile-meta {
    font-size: 0.7rem;
    color: var(--rz-text-tertiary-color, #9e9e9e);
}

/* ── Mobile detail cards — Accounts ─────────────────────────────────── */

.acct-mobile-loan-card {
    padding: 14px 16px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.acct-mobile-loan-card:active {
    background: var(--rz-base-100, #f9fafb);
}

.acct-mobile-loan-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.acct-mobile-loan-number {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--rz-text-color);
}

.acct-mobile-loan-detail-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.8125rem;
    padding: 3px 0;
}

.acct-mobile-loan-label {
    color: var(--rz-text-secondary-color, #6b7280);
}

.acct-mobile-loan-value {
    font-weight: 500;
    color: var(--rz-text-color);
}

.acct-mobile-loan-value--highlight {
    font-weight: 700;
    color: #1a8fd1;
}

/* ── Mobile detail cards — Payslips ─────────────────────────────────── */

.payslip-card {
    padding: 14px 16px;
}

.payslip-month {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--rz-text-secondary-color, #6b7280);
    margin-bottom: 10px;
}

.payslip-detail-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.8125rem;
    padding: 3px 0;
}

.payslip-label {
    color: var(--rz-text-secondary-color, #6b7280);
}

.payslip-value {
    font-weight: 500;
}

.payslip-value--green { color: #2e7d32; font-weight: 700; }
.payslip-value--red   { color: #c62828; font-weight: 700; }

/* ── Mobile detail cards — Monthly Expenses ─────────────────────────── */

.expense-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    font-size: 0.875rem;
}

.expense-name {
    color: var(--rz-text-color);
}

.expense-amount {
    font-weight: 600;
    color: var(--rz-text-color);
}

.expense-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-top: 2px solid var(--rz-border-color, rgba(0,0,0,0.1));
    background: var(--rz-base-100, #f9fafb);
}

.expense-total-label {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--rz-text-color);
}

.expense-total-amount {
    font-size: 1rem;
    font-weight: 700;
    color: var(--rz-text-color);
}

/* ── Staff Assistance Banner ──────────────────────────────────────────── */

.assist-banner {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 0.375rem;
    padding: 0.5rem 0.875rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: #664d03;
}

.assist-banner__exit {
    margin-left: auto;
}

/* ── Customer Journey ─────────────────────────────────────────────────── */

.journey-page {
    min-height: 100vh;
    background: linear-gradient(160deg, #e8f4fd 0%, #f0f7ff 50%, #e8f0fb 100%) !important;
    padding: 0.75rem 1rem 2rem;
    margin: 0 !important;
}

.rz-body {
    background: linear-gradient(160deg, #e8f4fd 0%, #f0f7ff 50%, #e8f0fb 100%) !important;
}

.journey-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.journey-header-title {
    color: rgb(5, 39, 103) !important;
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
}

.journey-header-sub {
    color: #6b7280;
    font-size: 0.95rem;
}

.journey-content {
    max-width: 820px;
    margin: 0 auto;
    width: 100%;
    min-width: 0;
}

/* ── Request staff assistance FAB ─────────────────────────────────────── */

.rz-body:has(.journey-page) {
    transform: none !important;
    padding: 0 !important;
}

.journey-assist-fab.rz-button {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    z-index: var(--z-sticky);
    width: 3.5rem;
    height: 3.5rem;
    min-width: 3.5rem;
    padding: 0 !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #0d3a8c, #052767) !important;
    box-shadow: 0 6px 18px rgba(5, 39, 103, 0.35);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.journey-assist-fab.rz-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(5, 39, 103, 0.45);
    background: linear-gradient(135deg, #0f4aad, #0d3a8c) !important;
}

.journey-assist-fab.rz-button .rz-button-icon {
    margin: 0;
    font-size: 1.5rem;
}

@media (min-width: 769px) {
    .journey-assist-fab.rz-button {
        right: 2.25rem;
        bottom: 2.25rem;
    }
}

.journey-next-btn {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-top: 1rem;
}

.journey-cancel-btn.rz-button {
    background: transparent !important;
    border: 2px solid var(--rz-danger) !important;
    color: var(--rz-danger) !important;
    font-weight: 600 !important;
    border-radius: 6px !important;
}

.journey-cancel-btn.rz-button:hover {
    background: rgba(var(--rz-danger-rgb), 0.07) !important;
    border-color: var(--rz-danger) !important;
    color: var(--rz-danger) !important;
}

.journey-back-btn.rz-button {
    background: transparent !important;
    border: 2px solid #052767 !important;
    color: #052767 !important;
    font-weight: 600 !important;
    border-radius: 6px !important;
}

.journey-back-btn.rz-button:hover {
    background: rgba(5, 39, 103, 0.07) !important;
    border-color: #052767 !important;
    color: #052767 !important;
}

/* ── Journey mobile sticky progress bar ──────────────────────────────── */

.journey-mobile-progress {
    display: none;
}

@media (max-width: 768px) {
    .journey-desktop-only {
        display: none !important;
    }

    .journey-mobile-progress {
        display: block;
        position: sticky;
        top: 0;
        z-index: var(--z-sticky);
        background: rgb(5, 39, 103);
        border-radius: 10px 10px 0 0;
        padding: 0.7rem 1rem 0;
        margin-bottom: 0;
        cursor: pointer;
        box-shadow: 0 4px 16px rgba(5, 39, 103, 0.25);
        user-select: none;
    }

    .journey-step-card {
        border-radius: 0 0 12px 12px;
        border-top: none;
        border-left-width: 3px;
        padding: 0.75rem 0.75rem;
    }

    .step-section__body {
        padding: 0.75rem 0.75rem;
    }

    .step-section__body .rz-form-field,
    .step-section__body .rz-form-field .rz-form-field-content,
    .step-section__body .rz-textbox,
    .step-section__body .rz-inputtext,
    .step-section__body .rz-dropdown {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }

    .contact-mobile-row {
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: flex-start;
        gap: 0.4rem;
    }

    .contact-dialing-code {
        flex: 0 0 82px;
        width: 82px;
        min-width: 0;
    }

    .contact-mobile-number {
        flex: 1 1 0;
        min-width: 0;
    }

    .journey-mobile-progress__top {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.5rem;
        padding-bottom: 0.6rem;
    }

    .journey-mobile-progress__label {
        color: #ffffff;
        font-size: 0.85rem;
        font-weight: 600;
        line-height: 1.3;
        flex: 1;
    }

    .journey-mobile-progress__chevron {
        color: rgba(255, 255, 255, 0.7);
        font-size: 0.75rem;
        flex-shrink: 0;
    }

    .journey-mobile-progress__bar-track {
        height: 4px;
        background: rgba(255, 255, 255, 0.2);
        border-radius: 0 0 10px 10px;
        overflow: hidden;
        margin: 0 -1rem;
    }

    .journey-mobile-progress__bar-fill {
        height: 100%;
        background: #77c149;
        border-radius: 0 0 10px 10px;
        transition: width 0.4s ease;
    }

    /* ── Mobile overlay (full-width step list drop-down) ── */

    .journey-mobile-overlay {
        position: fixed;
        top: var(--layout-header-h, 64px);
        left: 0;
        right: 0;
        bottom: 0;
        z-index: var(--z-mobile-overlay);
        display: flex;
        flex-direction: column;
    }

    .journey-mobile-overlay__backdrop {
        flex: 1;
        background: rgba(0, 0, 0, 0.45);
    }

    .journey-mobile-overlay__inner {
        background: rgb(5, 39, 103);
        padding: 1rem 1.25rem 1.25rem;
        box-shadow: 0 8px 32px rgba(5, 39, 103, 0.4);
        max-height: 70vh;
        overflow-y: auto;
    }

    /* ── Mobile layout adjustments ── */

    .journey-layout {
        grid-template-columns: 1fr !important;
    }

    .journey-sidebar-panel {
        display: none !important;
    }

    .journey-page {
        margin: 0 !important;
        padding: 1rem 0.75rem 2rem;
    }

    .journey-content {
        max-width: 100%;
        padding: 0;
    }

    /* Lift the assist FAB clear of the fixed bottom nav (64px + safe area) so it
       stays visible in the bottom-right on mobile. */
    .journey-assist-fab.rz-button {
        bottom: calc(64px + env(safe-area-inset-bottom) + 1rem);
    }

    /* ── Mobile action bar — floating pill tray ── */
    .journey-next-btn {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 0.6rem;
        margin-top: 1.5rem;
        padding: 0.6rem 0.75rem;
        background: #ffffff;
        border-radius: 16px;
        box-shadow: 0 2px 12px rgba(5, 39, 103, 0.10), 0 1px 3px rgba(5, 39, 103, 0.06);
    }

    /* Cancel: far left, tiny and muted */
    .journey-next-btn .journey-cancel-btn.rz-button {
        order: -1;
        width: auto !important;
        flex-shrink: 0;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        color: #f43f5e !important;
        font-size: 0.72rem !important;
        font-weight: 500 !important;
        padding: 0.3rem 0.4rem !important;
        letter-spacing: 0.01em;
        border-radius: 8px !important;
    }

    .journey-next-btn .journey-cancel-btn.rz-button:hover {
        background: #fff1f3 !important;
        color: #e11d48 !important;
    }

    /* Back: pill ghost, equal size to Next */
    .journey-next-btn .journey-back-btn.rz-button {
        flex: 1 1 0 !important;
        width: auto !important;
        justify-content: center;
        background: #f1f4f9 !important;
        border: none !important;
        border-radius: 12px !important;
        color: #052767 !important;
        font-weight: 600 !important;
        font-size: 0.875rem !important;
        padding: 0.6rem 1rem !important;
        box-shadow: none !important;
        letter-spacing: 0.01em;
    }

    .journey-next-btn .journey-back-btn.rz-button:hover {
        background: #e2e8f4 !important;
    }

    /* Next: solid navy pill, equal size to Back */
    .journey-next-btn > .rz-button:not(.journey-cancel-btn):not(.journey-back-btn) {
        flex: 1 1 0 !important;
        justify-content: center;
        background: linear-gradient(135deg, #0d3a8c, #052767) !important;
        border: none !important;
        border-radius: 12px !important;
        color: #ffffff !important;
        font-weight: 700 !important;
        font-size: 0.875rem !important;
        padding: 0.6rem 1rem !important;
        box-shadow: 0 4px 14px rgba(5, 39, 103, 0.28) !important;
        letter-spacing: 0.02em;
    }

    .journey-next-btn > .rz-button:not(.journey-cancel-btn):not(.journey-back-btn):hover {
        background: linear-gradient(135deg, #0f4aad, #0d3a8c) !important;
        box-shadow: 0 6px 18px rgba(5, 39, 103, 0.38) !important;
    }

    .journey-next-btn.loan-confirmation-actions {
        flex-wrap: wrap;
    }

    .journey-next-btn.loan-confirmation-actions > .journey-confirm-btn.rz-button {
        order: -3;
        flex: 1 1 100% !important;
        width: 100% !important;
    }

    .journey-next-btn.loan-confirmation-actions .journey-back-btn.rz-button,
    .journey-next-btn.loan-confirmation-actions .journey-reject-btn.rz-button {
        order: -2;
        flex: 1 1 calc(50% - 0.3rem) !important;
        width: auto !important;
        justify-content: center;
    }

    .journey-next-btn.loan-confirmation-actions .journey-reject-btn.rz-button {
        background: #fff1f3 !important;
        border: none !important;
        border-radius: 12px !important;
        color: #e11d48 !important;
        font-weight: 600 !important;
        font-size: 0.875rem !important;
        padding: 0.6rem 1rem !important;
        box-shadow: none !important;
    }

    .journey-next-btn.loan-confirmation-actions .journey-reject-btn.rz-button:hover {
        background: #ffe4e9 !important;
        color: #be123c !important;
    }

    .journey-next-btn.loan-confirmation-actions > .journey-cancel-btn:not(.journey-reject-btn).rz-button {
        order: -1;
        flex: 1 1 100% !important;
        width: 100% !important;
        justify-content: center;
    }

}

/* ── Small phone overrides (≤ 480px) ────────────────────────────────── */

@media (max-width: 480px) {
    .rz-body {
        padding: 0.5rem !important;
    }

    .journey-page {
        padding: 0.5rem 0.5rem 2rem !important;
    }

    .journey-step-card {
        padding: 0.5rem !important;
    }

    .step-section__body {
        padding: 0.5rem !important;
    }

    .acct-metric-card {
        padding: 0.75rem 0.9rem;
        border-radius: 12px;
    }

    .acct-metric-value {
        font-size: 1.25rem;
    }

    .acct-dashboard-row {
        grid-template-columns: 1fr 1fr;
        gap: 0.4rem;
    }

    .acct-tab-header {
        flex-wrap: wrap;
        gap: 0.4rem;
    }

    .form-card {
        padding: 0.75rem;
        border-radius: 10px;
    }

    .step-form-title {
        font-size: 1.05rem;
    }
}

/* ── Journey Layout (sidebar + main) ─────────────────────────────────── */

.journey-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 1.5rem;
    align-items: start;
    max-width: 1100px;
    margin: 0 auto;
}

.journey-sidebar-panel {
    position: sticky;
    top: 1rem;
}

.journey-step-sidebar {
    background: rgb(5, 39, 103);
    border-radius: 12px;
    padding: 1.25rem 1rem;
}

.journey-step-sidebar__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.journey-step-sidebar__item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.4);
    padding: 0.3rem 0.4rem;
}

.journey-step-sidebar__item.completed {
    color: rgba(255, 255, 255, 0.6);
}

.journey-step-sidebar__item.current {
    color: #ffffff;
}

.journey-step-sidebar__icon {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 600;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.4);
    border: 1.5px solid rgba(255, 255, 255, 0.15);
}

.journey-step-sidebar__item.completed .journey-step-sidebar__icon {
    background: #77c149;
    color: #ffffff;
    border-color: #77c149;
}

.journey-step-sidebar__item.current .journey-step-sidebar__icon {
    background: #ffffff;
    color: rgb(5, 39, 103);
    font-weight: 700;
    border-color: #ffffff;
    font-size: 0.8rem;
}

.journey-step-sidebar__text {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}

.journey-step-sidebar__label {
    font-size: 0.875rem;
    line-height: 1.3;
}

.journey-step-sidebar__item.current .journey-step-sidebar__label {
    font-weight: 700;
}

.journey-step-sidebar__description {
    font-size: 0.75rem;
    line-height: 1.25;
    color: rgba(255, 255, 255, 0.45);
}

.journey-step-sidebar__item.current .journey-step-sidebar__description {
    color: rgba(255, 255, 255, 0.75);
}

.journey-step-sidebar__empty {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.45);
    padding: 0.5rem 0;
    margin: 0;
}

.journey-step-sidebar__item.clickable {
    padding: 0;
}

.journey-step-sidebar__btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.3rem 0.4rem;
    margin: 0;
    background: none;
    border: none;
    font: inherit;
    color: inherit;
    text-align: left;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.15s ease;
}

.journey-step-sidebar__btn:hover {
    background: rgba(255, 255, 255, 0.08);
}

.journey-step-sidebar__btn:focus-visible {
    outline: 2px solid #77c149;
    outline-offset: 1px;
}

/* ── Journey step content card ───────────────────────────────────────── */

.journey-step-card {
    background: #ffffff;
    border-radius: 12px;
    border-left: 4px solid #3a8fd4;
    padding: 1.25rem 1.5rem;
    width: 100%;
    box-shadow: 0 2px 12px rgba(5, 39, 103, 0.08);
}

/* ── Form Card ────────────────────────────────────────────────────────── */

.form-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(5, 39, 103, 0.18);
    width: 100%;
    max-width: 780px;
    margin: 0 auto;
    border-top: 4px solid #77c149;
}

.form-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: rgb(5, 39, 103);
    margin-bottom: 1.5rem;
}

@media (max-width: 576px) {
    .form-card {
        border-radius: 12px;
        padding: 1.25rem;
        box-shadow: 0 4px 16px rgba(5, 39, 103, 0.12);
    }

    .form-title {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }
}

/* ── Personal Details account page layout ────────────────────────────── */

.pd-account-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.pd-account-fields {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.pd-account-fields .rz-form-field {
    width: 100%;
}

.pd-account-fields .rz-form-field.rz-variant-outlined .rz-form-field-content {
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 10px !important;
    background: #f8fafc !important;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.pd-account-fields .rz-form-field.rz-variant-outlined:focus-within .rz-form-field-content {
    border-color: #3a8fd4 !important;
    box-shadow: 0 0 0 3px rgba(58, 143, 212, 0.12) !important;
    background: #ffffff !important;
}

.pd-account-fields .rz-form-field.rz-variant-outlined:focus-within .rz-form-field-label {
    color: #3a8fd4 !important;
}

.pd-account-fields .rz-form-field.rz-variant-outlined.rz-state-invalid .rz-form-field-content {
    border-color: #e50000 !important;
}

.pd-account-fields .rz-form-field.rz-variant-outlined.rz-state-invalid .rz-form-field-label {
    color: #e50000 !important;
}

.pd-account-fields .rz-messages-error {
    color: #e50000 !important;
    font-size: 0.8rem !important;
    margin-top: 0.25rem !important;
    display: block !important;
}

.pd-account-fields .rz-form-field.rz-variant-outlined .rz-textbox,
.pd-account-fields .rz-form-field.rz-variant-outlined .rz-inputtext {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.pd-account-fields .rz-form-field.rz-variant-outlined .rz-dropdown {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    width: 100% !important;
}

.pd-account-fields .rz-form-field.rz-variant-outlined .rz-dropdown .rz-dropdown-label,
.pd-account-fields .rz-form-field.rz-variant-outlined .rz-dropdown .rz-dropdown-trigger {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.pd-account-fields .rz-dropdown-panel {
    border-radius: 8px !important;
    box-shadow: 0 4px 16px rgba(5, 39, 103, 0.12) !important;
    border: 1px solid #e2e8f0 !important;
}

.pd-account-fields .rz-dropdown-item:hover { background: #f0f7ff !important; color: #052767 !important; }
.pd-account-fields .rz-dropdown-item.rz-state-highlight { background: #3a8fd4 !important; color: #ffffff !important; }

/* ── Journey step form (desktop) ─────────────────────────────────────── */

.journey-step-form {
    width: 100%;
}

/* ── Step sections -- */

.step-section {
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.step-section__header {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #3a8fd4;
    padding: 0.6rem 1rem;
    background: #f8fafc;
    border-bottom: 1.5px solid #e2e8f0;
    border-radius: 8px 8px 0 0;
}

.step-section__body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.step-section__body .rz-form-field {
    width: 100%;
}

.step-section__body .rz-form-field.rz-variant-outlined .rz-form-field-content {
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 10px !important;
    background: #f8fafc !important;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.step-section__body .rz-form-field.rz-variant-outlined:focus-within .rz-form-field-content {
    border-color: #3a8fd4 !important;
    box-shadow: 0 0 0 3px rgba(58, 143, 212, 0.12) !important;
    background: #ffffff !important;
}

.step-section__body .rz-form-field.rz-variant-outlined:focus-within .rz-form-field-label {
    color: #3a8fd4 !important;
}

.step-section__body .rz-form-field.rz-variant-outlined.rz-state-invalid .rz-form-field-content {
    border-color: #e50000 !important;
    box-shadow: 0 0 0 3px rgba(229, 0, 0, 0.1) !important;
}

.step-section__body .rz-form-field.rz-variant-outlined.rz-state-invalid .rz-form-field-label {
    color: #e50000 !important;
}

.step-section__body .rz-messages-error {
    color: #e50000 !important;
    font-size: 0.8rem !important;
    margin-top: 0.25rem !important;
    display: block !important;
}

.step-section__body .rz-form-field.rz-variant-outlined .rz-textbox,
.step-section__body .rz-form-field.rz-variant-outlined .rz-inputtext {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.step-section__body .rz-form-field.rz-variant-outlined .rz-dropdown {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    width: 100% !important;
}

.step-section__body .rz-form-field.rz-variant-outlined .rz-dropdown .rz-dropdown-label,
.step-section__body .rz-form-field.rz-variant-outlined .rz-dropdown .rz-dropdown-trigger {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.step-section__body .rz-dropdown-panel {
    border-radius: 8px !important;
    box-shadow: 0 4px 16px rgba(5, 39, 103, 0.12) !important;
    border: 1px solid #e2e8f0 !important;
}

.step-section__body .rz-dropdown-item:hover {
    background: #f0f7ff !important;
    color: #052767 !important;
}

.step-section__body .rz-dropdown-item.rz-state-highlight {
    background: #3a8fd4 !important;
    color: #ffffff !important;
}

/* ── Contact form specifics ──────────────────────────────────────────── */

.contact-mobile-row {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
}

.contact-dialing-code {
    flex: 0 0 82px;
    width: 82px;
    max-width: 82px;
    min-width: 0;
    overflow: hidden;
}

.contact-dialing-code .rz-form-field,
.contact-dialing-code .rz-form-field-content,
.contact-dialing-code .rz-dropdown {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
}

.rz-dropdown-panel:has(.rz-dropdown-items-wrapper[style*="--wide-popup"]) {
    min-width: 300px !important;
}

.contact-mobile-number {
    flex: 1 1 0;
    min-width: 0;
}

.step-field-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #052767;
    margin-bottom: 0.25rem;
    display: block;
}

.contact-autocomplete-container {
    width: 100%;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
    min-height: 46px;
    display: flex;
    align-items: stretch;
    overflow: hidden;
}

.contact-autocomplete-container:focus-within {
    border-color: #3a8fd4;
    box-shadow: 0 0 0 3px rgba(58, 143, 212, 0.12);
    background: #ffffff;
}

.contact-autocomplete-container gmp-place-autocomplete {
    width: 100%;
    flex: 1;
    min-width: 0;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

.contact-autocomplete-container gmp-place-autocomplete input {
    width: 100% !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 0.75rem !important;
    color: #1a1a1a !important;
}

.contact-address-hint,
.step-hint-text {
    font-size: 0.78rem;
    color: #7a95b0;
    margin: 0;
}

.contact-manual-toggle {
    background: none;
    border: none;
    padding: 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: #3a8fd4;
    cursor: pointer;
    text-align: left;
}

.contact-manual-toggle:hover {
    color: #052767;
}

.step-manual-fields {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.step-manual-fields .rz-form-field {
    width: 100%;
}

/* ── Marketing opt-ins ────────────────── */

.marketing-optins {
    margin: 0;
    font-size: 0.8rem;
}

.marketing-options-summary {
    list-style: none;
    cursor: pointer;
    color: #7a95b0;
    font-size: 0.78rem;
    padding: 0.4rem 0.25rem;
    user-select: none;
    transition: color 0.15s;
}

.marketing-options-summary::-webkit-details-marker {
    display: none;
}

.marketing-options-summary::before {
    content: "\203A"; /* › */
    display: inline-block;
    margin-right: 0.4rem;
    transition: transform 0.15s;
}

.marketing-optins[open] .marketing-options-summary::before {
    transform: rotate(90deg);
}

.marketing-options-summary:hover {
    color: #3a8fd4;
}

.marketing-options-body {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.25rem 0.25rem 0.5rem 0.9rem;
}

.marketing-options-hint {
    font-size: 0.75rem;
    color: #7a95b0;
    margin: 0 0 0.25rem;
}

.marketing-options-link {
    color: #3a8fd4;
    text-decoration: none;
}

.marketing-options-link:hover {
    text-decoration: underline;
}

.marketing-options-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #475569;
    cursor: pointer;
}

/* ── Monthly expenses grid ───────────────────────────────────────────── */

.expenses-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.expenses-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f4f8;
}

.expenses-row:last-child {
    border-bottom: none;
}

.expenses-row--error .expenses-row__input {
    border-color: #e50000 !important;
}

.expenses-row--error .expenses-row__label {
    color: #e50000;
}

.expenses-row__label {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    font-size: 0.875rem;
    color: #1e3a5f;
    font-weight: 500;
}

.expenses-row__hint {
    font-size: 0.75rem;
    font-weight: 300;
    font-style: italic;
    line-height: 1.3;
    color: var(--rz-text-secondary-color, #64748b);
}

.expenses-row__input {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    width: 180px;
    flex-shrink: 0;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
    padding: 0 0.5rem;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.expenses-row__input:focus-within {
    border-color: #3a8fd4;
    box-shadow: 0 0 0 3px rgba(58, 143, 212, 0.12);
    background: #ffffff;
}

.expenses-currency {
    font-size: 0.8rem;
    font-weight: 700;
    color: #7a95b0;
    flex-shrink: 0;
}

.expenses-numeric.rz-numeric {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    flex: 1;
}

.expenses-numeric.rz-numeric input {
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    color: #052767 !important;
    padding: 0.35rem 0 !important;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    text-align: right;
    width: 100% !important;
}

.expenses-numeric.rz-numeric .rz-numeric-up,
.expenses-numeric.rz-numeric .rz-numeric-down {
    display: none !important;
}

.pd-desktop-fields {
    width: 100%;
}

.pd-desktop-fields__grid {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.pd-desktop-fields .rz-form-field {
    width: 100%;
}

.pd-desktop-fields .rz-form-field.rz-variant-outlined .rz-form-field-content {
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 12px !important;
    background: #f8fafc !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.pd-desktop-fields .rz-form-field.rz-variant-outlined:focus-within .rz-form-field-content {
    border-color: #77c149 !important;
    box-shadow: 0 0 0 3px rgba(119, 193, 73, 0.12) !important;
    background: #ffffff !important;
}

.pd-desktop-fields .rz-form-field.rz-variant-outlined:focus-within .rz-form-field-label {
    color: #77c149 !important;
}

.pd-desktop-fields .rz-form-field.rz-variant-outlined.rz-state-invalid .rz-form-field-content {
    border-color: #e50000 !important;
    box-shadow: 0 0 0 3px rgba(229, 0, 0, 0.1) !important;
}

.pd-desktop-fields .rz-form-field.rz-variant-outlined.rz-state-invalid .rz-form-field-label {
    color: #e50000 !important;
}

.pd-desktop-fields .rz-messages-error {
    color: #e50000 !important;
    font-size: 0.8rem !important;
    margin-top: 0.25rem !important;
    display: block !important;
}

.pd-desktop-fields .rz-form-field.rz-variant-outlined .rz-textbox,
.pd-desktop-fields .rz-form-field.rz-variant-outlined .rz-inputtext {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.pd-desktop-fields .rz-form-field.rz-variant-outlined .rz-dropdown {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    width: 100% !important;
}

.pd-desktop-fields .rz-form-field.rz-variant-outlined .rz-dropdown .rz-dropdown-label {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.pd-desktop-fields .rz-form-field.rz-variant-outlined .rz-dropdown .rz-dropdown-trigger {
    background: transparent !important;
    border: none !important;
}

.pd-desktop-fields .rz-dropdown-panel {
    border-radius: 8px !important;
    box-shadow: 0 4px 16px rgba(5, 39, 103, 0.12) !important;
    border: 1px solid #e2e8f0 !important;
}

.pd-desktop-fields .rz-dropdown-item:hover {
    background: #f0f7ff !important;
    color: #052767 !important;
}

.pd-desktop-fields .rz-dropdown-item.rz-state-highlight {
    background: #77c149 !important;
    color: #ffffff !important;
}


/* ── Personal Details — mobile step layout ───────────────────────────── */

.step-form-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #052767 !important;
    margin: 0 0 0.875rem 0;
}

.pd-identity-card {
    background: #eaf3fb;
    border: 1.5px solid #c8dff0;
    border-radius: 10px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.pd-identity-card__header {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.875rem;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: #3a6ea5;
    text-transform: uppercase;
}

.pd-identity-card-icon {
    font-size: 0.75rem;
    color: #3a6ea5;
}

.pd-identity-card-body {
    padding: 0 0.875rem 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.pd-identity-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 0.3rem 0;
    border-bottom: 1px solid rgba(200, 223, 240, 0.6);
}

.pd-identity-row:last-child {
    border-bottom: none;
}

.pd-identity-row-label {
    font-size: 0.8rem;
    color: #5a7a9a;
    flex-shrink: 0;
    margin-right: 1rem;
}

.pd-identity-row-value {
    font-size: 0.8rem;
    font-weight: 700;
    color: #052767;
    text-align: right;
}

.pd-mobile-fields {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.pd-mobile-fields .rz-form-field {
    width: 100%;
}

/* ── Form Fields ──────────────────────────────────────────────────────── */

.form-card .rz-stack {
    gap: 1.25rem;
}

.form-card .rz-form-field {
    width: 100%;
}

/* Outlined field border and background */
.form-card .rz-form-field.rz-variant-outlined .rz-form-field-content {
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 12px !important;
    background: #f8fafc !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

/* Focus state — green border + glow */
.form-card .rz-form-field.rz-variant-outlined:focus-within .rz-form-field-content {
    border-color: #77c149 !important;
    box-shadow: 0 0 0 3px rgba(119, 193, 73, 0.12) !important;
    background: #ffffff !important;
}

/* Label turns green on focus */
.form-card .rz-form-field.rz-variant-outlined:focus-within .rz-form-field-label {
    color: #77c149 !important;
}

/* Validation error state */
.form-card .rz-form-field.rz-variant-outlined.rz-state-invalid .rz-form-field-content {
    border-color: #e50000 !important;
    box-shadow: 0 0 0 3px rgba(229, 0, 0, 0.1) !important;
}

.form-card .rz-form-field.rz-variant-outlined.rz-state-invalid .rz-form-field-label {
    color: #e50000 !important;
}

.form-card .rz-messages-error {
    color: #e50000 !important;
    font-size: 0.8rem !important;
    margin-top: 0.25rem !important;
    display: block !important;
}

/* Strip borders off inner inputs — the field content wrapper handles it */
.form-card .rz-form-field.rz-variant-outlined .rz-textbox,
.form-card .rz-form-field.rz-variant-outlined .rz-inputtext {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* Dropdown internals */
.form-card .rz-form-field.rz-variant-outlined .rz-dropdown {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    width: 100% !important;
}

.form-card .rz-form-field.rz-variant-outlined .rz-dropdown .rz-dropdown-label {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.form-card .rz-form-field.rz-variant-outlined .rz-dropdown .rz-dropdown-trigger {
    background: transparent !important;
    border: none !important;
}

/* Dropdown popup panel */
.form-card .rz-dropdown-panel {
    border-radius: 8px !important;
    box-shadow: 0 4px 16px rgba(5, 39, 103, 0.12) !important;
    border: 1px solid #e2e8f0 !important;
}

.form-card .rz-dropdown-item:hover {
    background: #f0f7ff !important;
    color: #052767 !important;
}

.form-card .rz-dropdown-item.rz-state-highlight {
    background: #77c149 !important;
    color: #ffffff !important;
}

/* ── Auth Pages (Login, Register, ForgotPassword, etc.) ──────────────── */

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, #e8f4fd 0%, #f0f7ff 50%, #e8f0fb 100%);
    padding: 2rem 1rem;
    position: relative;
    overflow: hidden;
}

/* Subtle dot-grid texture */
.auth-page::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 22px 22px, rgba(5,39,103,0.04) 1.5px, transparent 0),
        radial-gradient(circle at 66px 66px, rgba(5,39,103,0.04) 1.5px, transparent 0);
    background-size: 88px 88px;
    pointer-events: none;
}

/* Green glow orb bottom-right */
.auth-page::after {
    content: '';
    position: absolute;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(119, 193, 73, 0.15) 0%, transparent 70%);
    bottom: -160px;
    right: -160px;
    pointer-events: none;
}

.auth-card {
    display: flex;
    width: 100%;
    max-width: 780px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(5, 39, 103, 0.18), 0 2px 8px rgba(5, 39, 103, 0.08);
    position: relative;
    z-index: 1;
    animation: auth-card-in 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes auth-card-in {
    from { opacity: 0; transform: translateY(24px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0)   scale(1);    }
}

.auth-brand-panel {
    flex: 0 0 42%;
    background: linear-gradient(160deg, #031d52 0%, #052767 50%, #0d3d80 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3.5rem 2.25rem;
    text-align: center;
    gap: 1rem;
    position: relative;
    overflow: hidden;
}

/* Inner glow blob on brand panel */
.auth-brand-panel::before {
    content: '';
    position: absolute;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(119, 193, 73, 0.14) 0%, transparent 70%);
    top: -60px;
    left: -60px;
    pointer-events: none;
}

.auth-brand-panel::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
    bottom: -40px;
    right: -40px;
    pointer-events: none;
}

.auth-brand-logo {
    width: 120px;
    height: auto;
    filter: brightness(0) invert(1);
    opacity: 0.92;
    margin-bottom: 0.25rem;
    position: relative;
    z-index: 1;
}

.auth-brand-divider {
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #77c149, rgba(119,193,73,0.3));
    border-radius: 2px;
    position: relative;
    z-index: 1;
}

.auth-brand-title {
    color: #ffffff;
    font-size: 1.65rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.25;
    position: relative;
    z-index: 1;
}

.auth-brand-sub {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.875rem;
    margin: 0;
    line-height: 1.55;
    position: relative;
    z-index: 1;
}


.auth-form-panel {
    flex: 1;
    background: #ffffff;
    padding: 2.25rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 0;
    overflow-y: auto;
    max-height: 90vh;
}

.auth-form-panel .rz-stack {
    gap: 0.85rem;
}

.auth-form-panel .rz-form-field {
    width: 100%;
}

.auth-form-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #052767;
    margin: 0 0 1.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.auth-form-title-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, #052767, #1a5c9a);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.05rem;
    flex-shrink: 0;
}

.auth-form-panel .rz-form-field.rz-variant-outlined .rz-form-field-content {
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 12px !important;
    background: #f8fafc !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.auth-form-panel .rz-form-field.rz-variant-outlined:focus-within .rz-form-field-content {
    border-color: #77c149 !important;
    box-shadow: 0 0 0 3px rgba(119, 193, 73, 0.12) !important;
    background: #ffffff !important;
}

.auth-form-panel .rz-form-field.rz-variant-outlined:focus-within .rz-form-field-label {
    color: #77c149 !important;
}

.auth-form-panel .rz-form-field.rz-variant-outlined.rz-state-invalid .rz-form-field-content {
    border-color: #e50000 !important;
    box-shadow: 0 0 0 3px rgba(229, 0, 0, 0.1) !important;
}

.auth-form-panel .rz-form-field.rz-variant-outlined .rz-textbox,
.auth-form-panel .rz-form-field.rz-variant-outlined .rz-inputtext {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 10px !important;
}

.auth-form-panel .rz-form-field.rz-variant-outlined .rz-dropdown,
.auth-form-panel .rz-form-field.rz-variant-outlined .rz-dropdown .rz-dropdown-label,
.auth-form-panel .rz-form-field.rz-variant-outlined .rz-dropdown .rz-dropdown-trigger {
    border-radius: 10px !important;
}

.auth-form-panel .rz-messages-error {
    color: #e50000 !important;
    font-size: 0.8rem !important;
    margin-top: 0.25rem !important;
    display: block !important;
}

.auth-remember-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.auth-remember-row input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #052767;
    cursor: pointer;
}

.auth-remember-row label {
    font-size: 0.875rem;
    color: #4a5568;
    cursor: pointer;
}

.auth-submit-btn {
    width: 100%;
    margin-top: 0.25rem;
}

.auth-submit-btn.rz-button.rz-button-md {
    background: linear-gradient(90deg, #052767 0%, #77c149 100%) !important;
    border-color: transparent !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    letter-spacing: 0.02em !important;
    padding: 0.75rem 1.5rem !important;
    box-shadow: 0 4px 14px rgba(5, 39, 103, 0.28) !important;
    transition: all 0.2s ease !important;
}

.auth-submit-btn.rz-button.rz-button-md:hover {
    background: linear-gradient(90deg, #0a3d8a 0%, #5aa030 100%) !important;
    border-color: transparent !important;
    box-shadow: 0 6px 20px rgba(5, 39, 103, 0.38) !important;
    transform: translateY(-1px) !important;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0.25rem 0;
    color: #a0aec0;
    font-size: 0.8rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

.auth-links {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.auth-links a,
.auth-links .rz-link {
    color: #1a5c9a !important;
    font-size: 0.875rem !important;
    text-decoration: none !important;
    transition: color 0.15s ease !important;
}

.auth-links a:hover,
.auth-links .rz-link:hover {
    color: #77c149 !important;
}

.grecaptcha-badge {
    visibility: hidden;
}

.recaptcha-disclosure {
    margin-top: 0.75rem;
    font-size: 0.75rem;
    line-height: 1.3;
    color: #a0aec0;
    text-align: center;
}

.recaptcha-disclosure a {
    color: #1a5c9a;
    text-decoration: none;
}

.recaptcha-disclosure a:hover {
    text-decoration: underline;
}

/* Native form inputs (Login — SSR plain form) */
.auth-native-stack {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.auth-native-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.auth-native-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #4a5568;
    letter-spacing: 0.02em;
}

.auth-native-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-native-input {
    width: 100%;
    padding: 0.65rem 0.9rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    font-size: 0.95rem;
    color: #1a202c;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    outline: none;
    box-sizing: border-box;
}

.auth-native-input-wrap .auth-native-input {
    padding-right: 2.75rem;
}

.auth-native-input:focus {
    border-color: #77c149;
    box-shadow: 0 0 0 3px rgba(119, 193, 73, 0.12);
    background: #ffffff;
}

.auth-pw-toggle {
    position: absolute;
    right: 0.65rem;
    background: none;
    border: none;
    cursor: pointer;
    color: #94a3b8;
    display: flex;
    align-items: center;
    padding: 0.25rem;
    transition: color 0.15s ease;
}

.auth-pw-toggle:hover { color: #052767; }

.auth-native-submit {
    width: 100%;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(90deg, #052767 0%, #77c149 100%);
    border: none;
    border-radius: 12px;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(5, 39, 103, 0.28);
    transition: all 0.2s ease;
    font-family: inherit;
    margin-top: 0.25rem;
}

.auth-native-submit:hover {
    background: linear-gradient(90deg, #0a3d8a 0%, #5aa030 100%);
    box-shadow: 0 6px 20px rgba(5, 39, 103, 0.38);
    transform: translateY(-1px);
}

/* Google / external login button */
.auth-google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    padding: 0.65rem 1rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    background: #ffffff;
    color: #374151;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    font-family: inherit;
}

.auth-google-btn:hover {
    border-color: #052767;
    box-shadow: 0 2px 8px rgba(5, 39, 103, 0.1);
    background: #f8fafc;
}

@media (max-width: 640px) {
    .auth-page {
        align-items: flex-start;
        padding: 0;
        min-height: 100dvh;
    }

    .auth-card {
        flex-direction: column;
        border-radius: 0;
        box-shadow: none;
        min-height: 100dvh;
        width: 100%;
        max-width: 100%;
        animation: none;
    }

    /* Compact horizontal brand strip on mobile */
    .auth-brand-panel {
        flex: none;
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        padding: 1rem 1.25rem;
        gap: 0.75rem;
        text-align: left;
    }

    .auth-brand-panel::before,
    .auth-brand-panel::after {
        display: none;
    }

    .auth-brand-logo {
        width: 64px;
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .auth-brand-divider {
        display: none;
    }

    .auth-brand-title {
        font-size: 1rem;
        font-weight: 700;
        margin: 0;
    }

    .auth-brand-sub {
        display: none;
    }

    /* Form panel takes remaining height and scrolls */
    .auth-form-panel {
        flex: 1;
        padding: 1.5rem 1.25rem;
        padding-bottom: calc(1.5rem + env(safe-area-inset-bottom));
        max-height: none;
        overflow-y: auto;
    }

    .auth-form-title {
        font-size: 1.25rem;
        margin-bottom: 1.25rem;
    }

    .auth-submit-btn.rz-button.rz-button-md {
        padding: 0.65rem 1rem !important;
        font-size: 0.95rem !important;
    }
}

/* ── Account Dashboard Summary ───────────────────────────────────────── */

.acct-dashboard-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.25rem;
}

@media (max-width: 1024px) {
    .acct-dashboard-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .acct-dashboard-row { grid-template-columns: 1fr 1fr; gap: 0.65rem; }
}

.acct-dashboard-row.acct-dashboard-row--spaced {
    grid-template-columns: 1fr;
}

.acct-metric-card {
    background: linear-gradient(135deg, #1a8fd1, #0d6fa8);
    border-radius: 20px;
    padding: 1.2rem 1.35rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(26,143,209,0.32), 0 12px 28px rgba(26,143,209,0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    animation: havenCardIn 0.45s ease-out both;
}

.acct-metric-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(26,143,209,0.42), 0 20px 44px rgba(26,143,209,0.26);
}

.acct-metric-card--green {
    background: linear-gradient(135deg, #77c149, #4a9020);
    box-shadow: 0 4px 12px rgba(74,144,32,0.32), 0 12px 28px rgba(74,144,32,0.18);
}

.acct-metric-card--green:hover {
    box-shadow: 0 8px 20px rgba(74,144,32,0.42), 0 20px 44px rgba(74,144,32,0.26);
}

.acct-metric-card--amber {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    box-shadow: 0 4px 12px rgba(217,119,6,0.32), 0 12px 28px rgba(217,119,6,0.18);
}

.acct-metric-card--amber:hover {
    box-shadow: 0 8px 20px rgba(217,119,6,0.42), 0 20px 44px rgba(217,119,6,0.26);
}

.acct-metric-card--danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    box-shadow: 0 4px 12px rgba(220,38,38,0.32), 0 12px 28px rgba(220,38,38,0.18);
}

.acct-metric-card--danger:hover {
    box-shadow: 0 8px 20px rgba(220,38,38,0.42), 0 20px 44px rgba(220,38,38,0.26);
}

.acct-metric-card--journey {
    background: linear-gradient(135deg, #1a8fd1 0%, #0d6fa8 100%);
    box-shadow: 0 4px 12px rgba(26,143,209,0.32), 0 12px 28px rgba(26,143,209,0.18);
    text-decoration: none;
    cursor: pointer;
}

.acct-metric-card--journey:hover {
    box-shadow: 0 8px 20px rgba(26,143,209,0.42), 0 20px 44px rgba(26,143,209,0.26);
    color: inherit;
    text-decoration: none;
}

.acct-metric-value--sm {
    font-size: 1.35rem;
    overflow-wrap: anywhere;
}

.acct-metric-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: rgba(255,255,255,0.75);
}

.acct-metric-value {
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
}

.acct-metric-sub {
    font-size: 11px;
    color: rgba(255,255,255,0.82);
    margin-top: 0.1rem;
}

.acct-metric-icon {
    font-size: 2.75rem;
    position: absolute;
    bottom: -0.2rem;
    right: 0.6rem;
    opacity: 0.13;
    color: #fff;
    pointer-events: none;
}

.acct-metric-icon--cal {
    bottom: 0.5rem;
    right: 0.65rem;
    opacity: 0.4;
}

.acct-metric-icon--cal svg {
    width: 2.5rem;
    height: 2.5rem;
    display: block;
}

.acct-metric-cal {
    position: absolute;
    bottom: 0.5rem;
    right: 0.65rem;
    width: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 6px;
    overflow: hidden;
    background: rgba(255,255,255,0.92);
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    opacity: 0.28;
    pointer-events: none;
    line-height: 1;
}

.acct-metric-cal-month {
    width: 100%;
    text-align: center;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: #fff;
    background: rgba(0,0,0,0.4);
    padding: 2px 0;
}

.acct-metric-cal-day {
    font-size: 1.4rem;
    font-weight: 800;
    color: #4a9020;
    padding: 0.1rem 0 0.15rem;
}

/* Ring progress row */
.acct-ring-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 900px) {
    .acct-ring-row { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
    .acct-ring-row { grid-template-columns: 1fr; }
}

.acct-ring-card {
    background: #fff;
    border-radius: 20px;
    padding: 1.15rem 1.35rem;
    display: flex;
    align-items: center;
    gap: 1.1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.04), 0 10px 28px rgba(26,143,209,0.10), 0 32px 56px rgba(26,143,209,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    animation: havenCardIn 0.45s ease-out both;
}

.acct-ring-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.05), 0 16px 36px rgba(26,143,209,0.14), 0 40px 64px rgba(26,143,209,0.07);
}

.acct-ring-wrap {
    position: relative;
    width: 68px;
    height: 68px;
    flex-shrink: 0;
}

.acct-ring-svg {
    width: 68px;
    height: 68px;
    transform: rotate(-90deg);
}

.acct-ring-track {
    fill: none;
    stroke: #eef2f8;
    stroke-width: 7;
}

.acct-ring-fill {
    fill: none;
    stroke-width: 7;
    stroke-linecap: round;
    transition: stroke-dasharray 0.7s cubic-bezier(0.4,0,0.2,1);
}

.acct-ring-fill--blue  { stroke: #1a8fd1; }
.acct-ring-fill--green { stroke: #77c149; }
.acct-ring-fill--amber { stroke: #f59e0b; }

.acct-ring-label-wrap {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
    color: #0d2b6e;
}

.acct-ring-info { flex: 1; }

.acct-ring-title {
    font-size: 13px;
    font-weight: 700;
    color: #0d2b6e;
    margin-bottom: 0.15rem;
}

.acct-ring-detail {
    font-size: 11.5px;
    color: #6b7280;
    line-height: 1.4;
}

/* Entry animation for dashboard cards */
@keyframes havenCardIn {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

.acct-delay-1 { animation-delay: 0.04s; }
.acct-delay-2 { animation-delay: 0.09s; }
.acct-delay-3 { animation-delay: 0.14s; }
.acct-delay-4 { animation-delay: 0.19s; }
.acct-delay-5 { animation-delay: 0.24s; }
.acct-delay-6 { animation-delay: 0.29s; }

/* ── Customer Account Navbar Override ────────────────────────────────── */
/* Applied when body.customer-account-layout is set by CustomerLayout    */

body.customer-account-layout .navbar-top-bar {
    background: linear-gradient(90deg, #052767 0%, #0a3d8a 60%, #2a7a18 100%);
    border-bottom: 1px solid rgba(119, 193, 73, 0.25);
}

body.customer-account-layout .navbar-top-item a {
    color: rgba(255, 255, 255, 0.92);
    opacity: 1;
}

body.customer-account-layout .navbar-top-item a:hover {
    color: #a8e063;
    opacity: 1;
}

body.customer-account-layout .navbar-top-badge {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.8rem;
    letter-spacing: 0.02em;
}

body.customer-account-layout .main-header-row {
    background: linear-gradient(135deg, #031d52 0%, #052767 60%, #073580 100%);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.28);
    border-bottom: 2px solid rgba(119, 193, 73, 0.35);
}

/* Logo size cap */
body.customer-account-layout .header-logo-link .rz-image,
body.customer-account-layout .header-logo-link img {
    height: 38px;
    width: auto;
}

/* Nav link colours for dark layout are handled by body.customer-account-layout .customer-top-nav__item rules below */

body.customer-account-layout .header-auth-btn {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.30);
    color: rgba(255, 255, 255, 0.88);
}

body.customer-account-layout .header-auth-btn:hover {
    background: #77c149;
    border-color: #77c149;
    color: #ffffff;
}

body.customer-account-layout .header-action-link {
    color: rgba(255, 255, 255, 0.88);
}

body.customer-account-layout .header-action-link:hover {
    background: rgba(255, 255, 255, 0.10);
    color: #a8e063;
}

/* ── Skeleton / placeholder loading state ────────────────────────────── */

@keyframes acct-shimmer {
    0%   { background-position: -600px 0; }
    100% { background-position:  600px 0; }
}

.acct-skel {
    border-radius: 6px;
    background: linear-gradient(90deg, #e8edf2 25%, #f4f6f8 50%, #e8edf2 75%);
    background-size: 600px 100%;
    animation: acct-shimmer 1.4s ease-in-out infinite;
}

.acct-skel--icon   { width: 32px;  height: 32px; border-radius: 50%; margin-bottom: 0.5rem; }
.acct-skel--label  { width: 60%;   height: 12px; margin-bottom: 0.4rem; }
.acct-skel--value  { width: 45%;   height: 22px; margin-bottom: 0.3rem; }
.acct-skel--sub    { width: 75%;   height: 11px; }
.acct-skel--ring   { width: 72px;  height: 72px; border-radius: 50%; }
.acct-skel--title  { width: 40%;   height: 18px; margin-bottom: 0.75rem; }
.acct-skel--line   { width: 80%;   height: 13px; margin-bottom: 0.5rem; }
.acct-skel--tab    { width: 72px;  height: 32px; border-radius: 6px; }
.acct-skel--content-title { width: 220px; height: 20px; margin-bottom: 1rem; }
.acct-skel--content-row   { width: 100%;  height: 44px; margin-bottom: 0.5rem; border-radius: 4px; }

.acct-skeleton-dashboard-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

.acct-skeleton-metric-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
    display: flex;
    flex-direction: column;
}

.acct-skeleton-loan-row {
    display: flex;
    gap: 1.5rem;
    background: #fff;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
    align-items: center;
}

.acct-skeleton-loan-left  { flex-shrink: 0; }
.acct-skeleton-loan-details { flex: 1; display: flex; flex-direction: column; }

.acct-skeleton-tabs {
    display: flex;
    gap: 0.5rem;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 0.75rem;
    margin-bottom: 1.25rem;
}

.acct-skeleton-content {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
}

/* Active loan / next payment row */
.acct-loan-row {
    display: flex;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(5,39,103,0.06);
    margin-bottom: 1rem;
}

.acct-loan-countdown {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    padding: 0.75rem 1.25rem;
    background: linear-gradient(135deg, #1a8fd1, #0d6fa8);
    color: #fff;
    flex-shrink: 0;
    gap: 0.35rem;
}

.acct-loan-countdown--urgent {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.acct-loan-countdown--overdue {
    background: linear-gradient(135deg, #ef4444, #b91c1c);
}

/* SVG ring wrapper */
.acct-ring-wrap {
    position: relative;
    width: 72px;
    height: 72px;
    flex-shrink: 0;
}

.acct-ring-wrap svg {
    transform: rotate(-90deg);
    width: 100%;
    height: 100%;
}

/* Track (background circle) */
.acct-ring-track {
    fill: none;
    stroke: rgba(255,255,255,0.2);
    stroke-width: 7;
}

/* Arc (foreground) */
.acct-ring-arc {
    fill: none;
    stroke: rgba(255,255,255,0.9);
    stroke-width: 7;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.6s ease;
}

/* Number + label centered inside the ring via absolute overlay */
.acct-ring-inner {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    pointer-events: none;
}

.acct-loan-countdown-number {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1;
}

.acct-loan-countdown-label {
    font-size: 0.58rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    opacity: 0.9;
    text-align: center;
    max-width: 90px;
    word-break: break-word;
    line-height: 1.3;
}

.acct-loan-details {
    flex: 1;
    padding: 1rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    justify-content: center;
}

.acct-loan-detail-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: rgb(5,39,103);
    margin-bottom: 0.2rem;
}

.acct-loan-detail-row {
    display: flex;
    gap: 0.5rem;
    align-items: baseline;
    font-size: 0.85rem;
}

.acct-loan-detail-label {
    color: #6b7280;
    min-width: 130px;
}

.acct-loan-detail-value {
    color: #111827;
    font-weight: 500;
}

/* ── Auth section cards ───────────────────────────────────────────────── */

.acct-auth-section {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 1px 4px rgba(5,39,103,0.06);
}

.acct-auth-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.acct-auth-section-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.acct-auth-desc {
    margin: 0.75rem 0 0;
    font-size: 0.875rem;
    color: #6b7280;
}

/* ── Account tab header (title + action button) ──────────────────────── */

.acct-tab-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.acct-tab-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: rgb(5, 39, 103);
}

/* ── Account grid (dark header table style) ──────────────────────────── */

/* Override Radzen CSS custom properties — no specificity fights */
.acct-grid {
    /* Header */
    --rz-grid-header-background-color: rgb(5, 39, 103);
    --rz-grid-header-color: #ffffff;
    --rz-grid-header-font-size: 0.72rem;
    --rz-grid-header-font-weight: 700;
    --rz-grid-header-text-transform: uppercase;
    --rz-grid-header-cell-border: none;
    --rz-grid-header-cell-border-bottom: none;
    --rz-grid-sort-icon-color: rgba(255,255,255,0.55);
    /* Cells */
    --rz-grid-cell-padding: 0.65rem 1rem;
    --rz-grid-cell-color: #1a1a2e;
    --rz-grid-cell-font-size: 0.875rem;
    --rz-grid-bottom-cell-border: 1px solid #e8edf4;
    --rz-grid-right-cell-border: none;
    /* Row backgrounds — kill stripe, set clean white */
    --rz-grid-background-color: #ffffff;
    --rz-grid-stripe-background-color: #ffffff;
    --rz-grid-stripe-odd-background-color: #ffffff;
    --rz-grid-hover-background-color: #f4f7fb;
    --rz-grid-hover-color: #1a1a2e;
    /* Border / shadow */
    --rz-grid-border: 1px solid #e2e8f0;
    --rz-grid-border-radius: 10px;
    --rz-grid-shadow: 0 1px 4px rgba(5,39,103,0.06);
    --rz-grid-data-border-shadow: none;
}

/* ── Bank Account Statements section ────────────────────────────────── */

.acct-statements-section {
    margin-top: 1rem;
}

.acct-statements-dropdown {
    width: 360px;
    margin-bottom: 1rem;
}

/* Dropdown selected / highlighted item — subtle navy tint with left accent instead of solid green */
.rz-dropdown-panel .rz-dropdown-item.rz-state-highlight {
    background: #eef2f9 !important;
    color: #052767 !important;
    border-left: 3px solid #052767;
    font-weight: 600;
}

/* Hover state — light glint */
.rz-dropdown-panel .rz-dropdown-item:hover:not(.rz-state-highlight) {
    background: #f4f7fb !important;
    color: #1a1a2e !important;
}

/* Tooltip suppression — hides the default cell value tooltip */
.acct-grid .rz-cell-data {
    overflow: visible;
    white-space: normal;
    text-overflow: unset;
}

/* Loan repaid inline progress bar */
.acct-repaid-bar {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.acct-repaid-track {
    flex: 1;
    min-width: 60px;
    height: 6px;
    background: #e8edf4;
    border-radius: 99px;
    overflow: hidden;
}

.acct-repaid-fill {
    height: 100%;
    width: var(--repaid-w, 0%);
    border-radius: 99px;
    background: linear-gradient(90deg, #052767, #77c149);
    transition: width 0.5s ease;
}

.acct-repaid-pct {
    font-size: 11px;
    color: #6b7280;
    white-space: nowrap;
}

/* Account manage tab icon colours — inactive */
.rz-tabview-nav li:nth-child(1) .rzi { color: #1a73e8; }  /* Status     – blue       */
.rz-tabview-nav li:nth-child(2) .rzi { color: #5c6bc0; }  /* Personal   – indigo     */
.rz-tabview-nav li:nth-child(3) .rzi { color: #78909c; }  /* Accounts   – blue-grey  */
.rz-tabview-nav li:nth-child(4) .rzi { color: #e53935; }  /* Contact    – red        */
.rz-tabview-nav li:nth-child(5) .rzi { color: #6d4c41; }  /* Employment – brown      */
.rz-tabview-nav li:nth-child(6) .rzi { color: #546e7a; }  /* Bank       – grey       */
.rz-tabview-nav li:nth-child(7) .rzi { color: #f9a825; }  /* Files      – amber      */
.rz-tabview-nav li:nth-child(8) .rzi { color: #1e88e5; }  /* Afford.    – blue       */
.rz-tabview-nav li:nth-child(9) .rzi { color: #f59e0b; }  /* Auth       – gold       */

/* Active tab — keep coloured icon, it reads fine on the light gradient */
.rz-tabview-nav li.rz-tabview-selected .rzi { color: inherit; }

/* Collapsible loan group cards */
.acct-collapsible-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
    gap: 1rem;
    padding: 12px 16px;
}

.acct-collapsible-header:hover {
    opacity: 0.85;
}

.acct-collapsible-header-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    min-width: 0;
}

.acct-collapsible-header-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.acct-collapsible-section-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 8px 16px 4px;
    border-top: 1px solid #f1f5f9;
    margin-top: 0.5rem;
}

/* Profile readiness card */
.acct-readiness-card {
    background: linear-gradient(135deg, #e8f4fd 0%, #f0f7e8 100%);
    border: 1px solid #d0e8f5;
    border-radius: 10px;
    padding: 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

/* Status tab layout */
.acct-status-body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0.25rem 0;
}

.acct-status-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 1rem 1.25rem;
}

.acct-status-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.25rem;
    font-size: 0.875rem;
    color: rgb(5, 39, 103);
}

.acct-status-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.7rem 0;
    border-top: 1px solid #f1f5f9;
}

.acct-status-row-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    min-width: 0;
    font-size: 0.9rem;
    font-weight: 500;
}

.acct-status-row-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Circle icon wrapper */
.acct-rule-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    flex-shrink: 0;
    font-size: 1rem;
}

.acct-rule-icon--green {
    background: #dcfce7;
    color: #16a34a;
}

.acct-rule-icon--amber {
    background: #fef9c3;
    color: #d97706;
}

.acct-rule-icon--red {
    background: #fee2e2;
    color: #dc2626;
}

/* Status badges */
.acct-status-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 0.25rem 0.65rem;
    border-radius: 99px;
    white-space: nowrap;
}

.acct-status-badge--complete {
    background: #dcfce7;
    color: #16a34a;
    border: 1px solid #86efac;
}

.acct-status-badge--warning {
    background: #fef9c3;
    color: #92400e;
    border: 1px solid #fde68a;
}

.acct-status-badge--danger {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

/* ── Communication Chat Shell (WhatsApp & SMS) ───────────────────────── */

.comm-chat-shell {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(5, 39, 103, 0.15);
    border: 1px solid #e2e8f0;
    background: #ffffff;
}

.comm-chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 1.25rem;
    background: linear-gradient(135deg, #052767 0%, #0a3d8f 100%);
    border-bottom: 3px solid #77c149;
}

.comm-chat-header-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.comm-chat-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(119, 193, 73, 0.2);
    border: 2px solid #77c149;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #77c149;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.comm-chat-header-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.comm-chat-header-title {
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.01em;
}

.comm-chat-header-sub {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.65);
    display: flex;
    align-items: center;
    gap: 5px;
}

.comm-chat-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #77c149;
    box-shadow: 0 0 0 2px rgba(119, 193, 73, 0.3);
    flex-shrink: 0;
}

.comm-chat-body {
    background: #f0f4f8;
    background-image:
        radial-gradient(circle at 20px 20px, rgba(5,39,103,0.03) 1px, transparent 0),
        radial-gradient(circle at 60px 60px, rgba(5,39,103,0.03) 1px, transparent 0);
    background-size: 80px 80px;
}

/* Input area */
.comm-chat-body .rz-chat-input {
    background: #ffffff !important;
    border-top: 1px solid #e2e8f0 !important;
    padding: 0.75rem 1rem !important;
}

/* Pill textarea */
.comm-chat-body .rz-chat-textarea {
    border-radius: 24px !important;
    border: 1.5px solid #e2e8f0 !important;
    background: #f8fafc !important;
    padding: 0.5rem 1rem !important;
    resize: none !important;
    transition: border-color 0.15s, box-shadow 0.15s !important;
}

.comm-chat-body .rz-chat-textarea:focus {
    border-color: #77c149 !important;
    box-shadow: 0 0 0 3px rgba(119, 193, 73, 0.12) !important;
    outline: none !important;
    background: #ffffff !important;
}

/* Circular green send button */
.comm-chat-body .rz-chat-send-btn {
    background: #77c149 !important;
    border-color: #77c149 !important;
    border-radius: 50% !important;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    padding: 0 !important;
    box-shadow: 0 2px 8px rgba(119, 193, 73, 0.4) !important;
    transition: background 0.15s, transform 0.1s !important;
}

.comm-chat-body .rz-chat-send-btn:hover {
    background: #5ea832 !important;
    border-color: #5ea832 !important;
    transform: scale(1.07) !important;
}

/* ── Communication Panel Shell (Push Notifications & Consents) ───────── */

.comm-panel-shell {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(5, 39, 103, 0.15);
    border: 1px solid #e2e8f0;
    background: #ffffff;
}

.comm-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 1.25rem;
    background: linear-gradient(135deg, #052767 0%, #0a3d8f 100%);
    border-bottom: 3px solid #77c149;
}

.comm-panel-header-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.comm-panel-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(119, 193, 73, 0.2);
    border: 2px solid #77c149;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #77c149;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.comm-panel-body {
    padding: 1.25rem;
    background: #ffffff;
}

/* Empty state */
.comm-panel-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 3rem 1rem;
    text-align: center;
}

.comm-panel-empty-title {
    font-size: 1rem;
    font-weight: 700;
    color: #374151;
}

.comm-panel-empty-sub {
    font-size: 0.875rem;
    color: #9ca3af;
    max-width: 320px;
}

/* ── Push Notification Status Badges ─────────────────────────────────── */

.pn-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0.2rem 0.65rem;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.pn-badge-sent {
    background: #dcfce7;
    color: #166534;
    box-shadow: 0 0 0 1px #bbf7d0;
}

.pn-badge-failed {
    background: #fee2e2;
    color: #991b1b;
    box-shadow: 0 0 0 1px #fecaca;
}

.pn-badge-pending {
    background: #fef9c3;
    color: #854d0e;
    box-shadow: 0 0 0 1px #fde68a;
}

.pn-badge-default {
    background: #f1f5f9;
    color: #475569;
    box-shadow: 0 0 0 1px #e2e8f0;
}

/* ── Consent Cards ────────────────────────────────────────────────────── */

.consent-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    border: 1.5px solid #e2e8f0;
    background: #f8fafc;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.consent-card-name {
    font-size: 0.975rem;
    font-weight: 700;
    color: #052767;
    min-width: 120px;
}

.consent-card-methods {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.consent-method {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0.3rem 0.75rem;
    border-radius: 99px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1.5px solid transparent;
    transition: background 0.15s;
}

.consent-method-on {
    background: #dcfce7;
    border-color: #bbf7d0;
    color: #166534;
}

.consent-method-off {
    background: #f1f5f9;
    border-color: #e2e8f0;
    color: #94a3b8;
}

.consent-method-icon {
    font-size: 0.95rem !important;
}

.consent-method-label {
    white-space: nowrap;
}

/* ── Account Manage Pages ─────────────────────────────────────────────── */

.rz-body .rz-card.rz-variant-filled {
    background: #ffffff !important;
    border-radius: 16px !important;
    border-top: 4px solid #77c149 !important;
    box-shadow: 0 8px 32px rgba(5, 39, 103, 0.12) !important;
    border-left: none !important;
    border-right: none !important;
    border-bottom: none !important;
}

.rz-body .rz-card.rz-variant-outlined {
    background: #f8fafc !important;
    border-radius: 12px !important;
    border: 1.5px solid #e2e8f0 !important;
    box-shadow: none !important;
}

.rz-body .rz-card.rz-variant-filled strong {
    color: rgb(5, 39, 103);
    font-size: 0.95rem;
}
/* ── DataGrid (account manage tables) ────────────────────────────────── */

.rz-body {
    --rz-grid-header-background-color: rgb(5, 39, 103);
    --rz-grid-header-color: #ffffff;
    --rz-grid-header-font-weight: 600;
    --rz-grid-header-text-transform: uppercase;
    --rz-grid-header-font-size: 0.8rem;
}

.rz-body .rz-grid-table {
    border: none !important;
}

.rz-body .rz-grid-table thead th {
    background: rgb(5, 39, 103) !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    font-size: 0.8rem !important;
    border: none !important;
}

.rz-body .rz-grid-table thead th .rz-column-title {
    color: #ffffff !important;
}

.rz-body .rz-grid-table tbody tr {
    border-bottom: 1px solid #f0f4f8 !important;
    transition: background 0.15s ease;
}

.rz-body .rz-grid-table tbody tr:hover {
    background: #f0f7ff !important;
}

.rz-body .rz-grid-table tbody td {
    border: none !important;
    font-size: 0.9rem !important;
    color: #374151 !important;
}

.rz-body .rz-grid-table tbody tr:last-child {
    border-bottom: none !important;
}

/* ── Account page buttons ─────────────────────────────────────────────── */

.rz-body .rz-button.rz-button-md.rz-primary:hover,
.rz-body .rz-button.rz-button-sm.rz-primary:hover {
    background: #77c149 !important;
    border-color: #77c149 !important;
}

/* ── Progress bar ─────────────────────────────────────────────────────── */

.rz-body .rz-progressbar {
    height: 14px !important;
    border-radius: 99px !important;
    background: #e2e8f0 !important;
    overflow: hidden !important;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.08) !important;
}

.rz-body .rz-progressbar-value {
    background: linear-gradient(90deg, rgb(5, 39, 103) 0%, #77c149 100%) !important;
    border-radius: 99px !important;
    position: relative !important;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.rz-body .rz-progressbar-value::after {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: linear-gradient(180deg, rgba(255,255,255,0.25) 0%, transparent 100%) !important;
    border-radius: 99px !important;
}

/* ── Rule status badges ───────────────────────────────────────────────── */

.rz-body .rz-badge {
    font-size: 0.7rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.06em !important;
    padding: 0.25rem 0.75rem !important;
    text-transform: uppercase !important;
    width: fit-content !important;
    display: inline-flex !important;
    border-radius: 99px !important;
}

.rz-body .rz-badge.rz-badge-success {
    background: #dcfce7 !important;
    color: #166534 !important;
    box-shadow: 0 0 0 1px #bbf7d0 !important;
}

.rz-body .rz-badge.rz-badge-warning {
    background: #fef9c3 !important;
    color: #854d0e !important;
    box-shadow: 0 0 0 1px #fde68a !important;
}

.rz-body .rz-badge.rz-badge-danger {
    background: #fee2e2 !important;
    color: #991b1b !important;
    box-shadow: 0 0 0 1px #fecaca !important;
}

.rz-body .rz-button.rz-secondary {
    border-radius: 8px !important;
}

.rz-body .rz-button.rz-secondary:hover {
    color: #ffffff !important;
}

/* ── Incomplete journey alert banner ─────────────────────────────────── */

.rz-alert.rz-warning.rz-variant-flat {
    background: linear-gradient(135deg, #1b6ec2 0%, #2d9cdb 100%) !important;
    border: none !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 16px rgba(5, 39, 103, 0.2) !important;
    padding: 0.875rem 1.25rem !important;
}

.rz-alert.rz-warning.rz-variant-flat,
.rz-alert.rz-warning.rz-variant-flat .rz-alert-icon,
.rz-alert.rz-warning.rz-variant-flat .rz-text,
.rz-alert.rz-warning.rz-variant-flat .rzi,
.rz-alert.rz-warning.rz-variant-flat p,
.rz-alert.rz-warning.rz-variant-flat span,
.rz-alert.rz-warning.rz-variant-flat * {
    color: #ffffff !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.15) !important;
}

.rz-alert.rz-warning.rz-variant-flat a {
    color: #77c149 !important;
    text-shadow: none !important;
    font-weight: 600 !important;
    text-decoration: none !important;
}

.rz-alert.rz-warning.rz-variant-flat a:hover {
    color: #ffffff !important;
}

/* ── Select Loan Product Step ─────────────────────────────────────────── */

/* Affordability banner */
.affordability-banner {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem 1.5rem;
    border-radius: 10px;
    background: linear-gradient(135deg, #052767 0%, #0a3d8f 100%);
    box-shadow: 0 4px 16px rgba(5, 39, 103, 0.25);
}

.affordability-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: rgba(119, 193, 73, 0.2);
    flex-shrink: 0;
    color: #77c149;
    font-size: 1.3rem;
}

.affordability-text {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.affordability-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.affordability-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: #77c149;
    line-height: 1.2;
}

/* Product cards */
.product-card {
    padding: 1.25rem 1.5rem;
    border-radius: 10px;
    cursor: pointer;
    border: 2px solid #e2e8f0;
    border-left: 4px solid #e2e8f0;
    background: #ffffff;
    box-shadow: 0 1px 4px rgba(5, 39, 103, 0.06);
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.product-card:hover {
    border-color: #052767;
    border-left-color: #052767;
    box-shadow: 0 4px 12px rgba(5, 39, 103, 0.12);
}

.product-card.selected {
    border: 2px solid #052767;
    border-top: 4px solid #77c149 !important;
    border-left: 4px solid #77c149 !important;
    background: #f5f8ff;
    box-shadow: 0 4px 16px rgba(5, 39, 103, 0.14);
}

.product-name {
    font-size: 1rem;
    font-weight: 700;
    color: #052767;
    margin: 0;
}

.product-description {
    font-size: 0.8rem;
    color: #6b7280;
    margin: 0.2rem 0 0 0;
}

.product-range {
    font-size: 0.9rem;
    font-weight: 600;
    color: #052767;
    margin: 0;
    white-space: nowrap;
}

.product-term {
    font-size: 0.78rem;
    color: #6b7280;
    margin: 0.15rem 0 0 0;
    white-space: nowrap;
    text-align: right;
}

.product-selector {
    width: 1.35rem;
    height: 1.35rem;
    min-width: 1.35rem;
    min-height: 1.35rem;
    border-radius: 50%;
    border: 2px solid #cbd5e1;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.15s, background 0.15s;
}

.product-selector.selected {
    border-color: #77c149;
    background: #77c149;
}

/* Configure section */
.configure-section {
    padding: 1.75rem 1.5rem;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 6px 24px rgba(5, 39, 103, 0.12);
    border-top: 4px solid #77c149;
}

/* Dropdown panel popup — global (Radzen renders panel on document body) */
.rz-dropdown-panel {
    border-radius: 10px !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 8px 24px rgba(5, 39, 103, 0.14) !important;
    overflow: hidden !important;
}

.rz-dropdown-filter-container {
    padding: 0.5rem 0.75rem !important;
    border-bottom: 1px solid #e2e8f0 !important;
    background: #f8faff !important;
}

.rz-dropdown-filter {
    border-radius: 6px !important;
    border: 1px solid #e2e8f0 !important;
    padding: 0.35rem 0.6rem !important;
    font-size: 0.875rem !important;
    color: #052767 !important;
    width: 100% !important;
    background: #ffffff !important;
    box-sizing: border-box !important;
}

.rz-dropdown-filter:focus {
    outline: none !important;
    border-color: #77c149 !important;
    box-shadow: 0 0 0 3px rgba(119, 193, 73, 0.12) !important;
}

.rz-dropdown-item {
    padding: 0.65rem 1rem !important;
    font-size: 0.9rem !important;
    color: #1e293b !important;
    transition: background 0.1s !important;
}

.rz-dropdown-item:hover {
    background: #e4edfb !important;
    color: #052767 !important;
    font-weight: 500 !important;
    border-left: 3px solid #052767 !important;
    padding-left: calc(1rem - 3px) !important;
}

.rz-dropdown-item.rz-state-highlight {
    background: #77c149 !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    border-left: 3px solid #4a8a1a !important;
    padding-left: calc(1rem - 3px) !important;
}

/* Dropdown panel scrollbar — target all descendants */
.rz-dropdown-panel,
.rz-dropdown-panel *  {
    scrollbar-width: thin !important;
    scrollbar-color: #cbd5e1 transparent !important;
}

.rz-dropdown-panel::-webkit-scrollbar,
.rz-dropdown-panel *::-webkit-scrollbar {
    width: 4px !important;
}

.rz-dropdown-panel::-webkit-scrollbar-track,
.rz-dropdown-panel *::-webkit-scrollbar-track {
    background: transparent !important;
}

.rz-dropdown-panel::-webkit-scrollbar-thumb,
.rz-dropdown-panel *::-webkit-scrollbar-thumb {
    background: #cbd5e1 !important;
    border-radius: 99px !important;
}

.rz-dropdown-panel::-webkit-scrollbar-thumb:hover,
.rz-dropdown-panel *::-webkit-scrollbar-thumb:hover {
    background: #052767 !important;
}

.configure-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #052767;
    margin: 0 0 1.25rem 0;
}

/* Green focus states for configure section fields */
.configure-section .rz-form-field.rz-variant-outlined:focus-within .rz-form-field-content {
    border-color: #77c149 !important;
    box-shadow: 0 0 0 3px rgba(119, 193, 73, 0.12) !important;
}

.configure-section .rz-form-field.rz-variant-outlined:focus-within .rz-form-field-label {
    color: #77c149 !important;
}

/* Repayment date display */
.term-field-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.term-field-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: #6b7280;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.term-field-sublabel {
    font-size: 0.7rem;
    font-weight: 500;
    color: #9ca3af;
    text-transform: none;
    letter-spacing: 0;
    margin-left: 0.25rem;
}

.repayment-date-display {
    padding: 0.85rem 1rem;
    border-radius: 8px;
    border: 2px solid #e2e8f0;
    background: #f8faff;
    font-size: 1.1rem;
    font-weight: 700;
    color: #052767;
}

.term-option-card {
    padding: 0.85rem 1rem;
    border-radius: 8px;
    border: 2px solid #e2e8f0;
    background: #ffffff;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.term-option-card:hover {
    border-color: #052767;
    box-shadow: 0 4px 12px rgba(5, 39, 103, 0.1);
}

.term-option-card.selected {
    border-color: #77c149;
    background: #f5f8ff;
    box-shadow: 0 4px 14px rgba(5, 39, 103, 0.12);
}

.term-option-date {
    font-size: 1.05rem;
    font-weight: 700;
    color: #052767;
}

.term-option-term {
    font-size: 0.78rem;
    font-weight: 500;
    color: #6b7280;
}

/* Loan reason — discouraged interaction */
.loan-reason-field--muted {
    opacity: 0.6;
    filter: grayscale(0.4);
    transition: opacity 0.15s;
}

.loan-reason-field--muted:hover,
.loan-reason-field--muted:focus-within {
    opacity: 1;
    filter: none;
}

/* Principal amount field */
.principal-field-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.principal-field-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: #6b7280;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.principal-input-wrap {
    display: flex;
    align-items: center;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.principal-input-wrap:focus-within {
    border-color: #77c149;
    box-shadow: 0 0 0 3px rgba(119, 193, 73, 0.12);
}

.principal-prefix {
    padding: 0 0.75rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: #052767;
    background: #f8faff;
    border-right: 2px solid #e2e8f0;
    align-self: stretch;
    display: flex;
    align-items: center;
}

.principal-input-wrap .rz-numeric {
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

.principal-input-wrap .rz-numeric input {
    font-size: 1.2rem !important;
    font-weight: 700 !important;
    color: #052767 !important;
    padding: 0.6rem 0.75rem !important;
    border: none !important;
    box-shadow: none !important;
}

.principal-range-bar {
    height: 5px;
    border-radius: 99px;
    background: #e2e8f0;
    overflow: hidden;
    margin-top: 0.15rem;
}

.principal-range-fill {
    height: 100%;
    background: linear-gradient(90deg, #77c149, #4a8a1a);
    border-radius: 99px;
    transition: width 0.2s ease;
}

.principal-range-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.72rem;
    color: #9ca3af;
}

.loan-summary-card {
    padding: 1.5rem;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 6px 24px rgba(5, 39, 103, 0.12);
    border-top: 4px solid #77c149;
}

.loan-summary-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.loan-summary-product {
    font-size: 1.1rem;
    font-weight: 700;
    color: #052767;
    margin: 0;
}

.loan-summary-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: #052767;
    margin: 0;
}

.loan-summary-rows {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.loan-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    padding: 0.4rem 0;
}

.loan-summary-row--total {
    border-top: 1px solid #e2e8f0;
    margin-top: 0.5rem;
    padding-top: 0.75rem;
    font-weight: 700;
}

.loan-summary-label {
    font-size: 0.85rem;
    color: #6b7280;
}

.loan-summary-value {
    font-size: 0.95rem;
    color: #1f2937;
    font-weight: 600;
    text-align: right;
}

.loan-summary-row--total .loan-summary-label,
.loan-summary-row--total .loan-summary-value {
    color: #052767;
    font-size: 1rem;
}

@media (max-width: 576px) {
    .affordability-banner {
        padding: 1rem;
    }

    .affordability-amount {
        font-size: 1.25rem;
    }

    .product-card {
        padding: 1rem;
    }

    .configure-section {
        padding: 1.25rem 1rem;
    }

    .loan-summary-card {
        padding: 1.25rem 1rem;
    }

    .loan-summary-amount {
        font-size: 1.25rem;
    }

    .cal-grid {
        padding: 0.4rem 0.3rem 0.5rem;
        gap: 1px;
    }

    .cal-day {
        font-size: 0.78rem;
        padding: 0.35rem 0.05rem;
    }
}

/* ── Loan status badges (LoanDetailsDialog — dynamic class names need global scope) ── */
.ld-status-badge {
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    padding: 0.2rem 0.65rem;
    text-transform: uppercase;
    white-space: nowrap;
}

.ld-status-in-application          { background: #e8f0fe; color: #1a56db; }
.ld-status-approved                 { background: #def7ec; color: #057a55; }
.ld-status-pending-disbursement     { background: #fef3c7; color: #b45309; }
.ld-status-disbursement-in-progress { background: #fef3c7; color: #b45309; }
.ld-status-disbursed                { background: #d1fae5; color: #065f46; }
.ld-status-active                   { background: #d1fae5; color: #065f46; }
.ld-status-settled                  { background: #e5e7eb; color: #374151; }
.ld-status-declined                 { background: #fee2e2; color: #b91c1c; }
.ld-status-defaulted                { background: #fde8d8; color: #9a3412; }
.ld-status-cancelled                { background: #e5e7eb; color: #374151; }
.ld-status-written-off              { background: #f3e8ff; color: #6b21a8; }

/* ── Blazor error UI ─────────────────────────────────────────────────── */

#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: var(--z-error);
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

/* ── Desktop header — top contact bar ───────────────────────────────── */

.navbar-top-bar {
    background-color: #0064a6;
    color: white;
    padding: 12px 20px;
    font-size: 14px;
}

.navbar-top-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-top-left {
    display: flex;
    gap: 25px;
}

.navbar-top-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.navbar-top-item a {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: opacity 0.3s ease;
}

.navbar-top-item a:hover {
    color: white;
    text-decoration: none;
    opacity: 0.8;
}

.navbar-top-item i {
    margin-right: 4px;
}

.navbar-top-right {
    display: flex;
    align-items: center;
}

.navbar-top-badge {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ── Desktop header — main row ───────────────────────────────────────── */

.main-header-row {
    display: flex;
    align-items: center;
    padding: 0 24px;
    height: 64px;
    background-color: #ffffff;
    gap: 24px;
    box-shadow: 0 2px 8px rgba(0,40,72,0.10);
}

.header-logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
    margin-right: 8px;
    overflow: hidden;
    max-height: 64px;
}

.header-logo-link img {
    max-height: 44px;
    width: auto;
}

.header-nav-area {
    flex: 1;
    display: flex;
    align-items: center;
    height: 100%;
}

/* ── Customer top nav (plain links, no Radzen menu) ──────────────────── */
.customer-top-nav {
    display: flex;
    align-items: center;
    height: 100%;
    gap: 0;
}

.customer-top-nav__item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 16px;
    height: 64px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #002848;
    text-decoration: none;
    border-bottom: 3px solid transparent;
    transition: color 0.15s, border-color 0.15s;
    white-space: nowrap;
}

.customer-top-nav__item:hover {
    color: #0064a6;
    border-bottom-color: #0064a6;
    text-decoration: none;
}

.customer-top-nav__item.active {
    color: #0064a6;
    border-bottom-color: #0064a6;
}

/* Dark layout variant (customer-account-layout body class) */
body.customer-account-layout .customer-top-nav__item {
    color: rgba(255, 255, 255, 0.88);
    border-bottom-color: transparent;
}

body.customer-account-layout .customer-top-nav__item:hover {
    color: #a8e063;
    border-bottom-color: #77c149;
    text-decoration: none;
}

body.customer-account-layout .customer-top-nav__item.active {
    color: #a8e063;
    border-bottom-color: #77c149;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.header-action-link {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #002848;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
}

.header-action-link:hover {
    background: #f0f4f8;
    color: #0064a6;
    text-decoration: none;
}

.header-action-link--primary {
    background: #0064a6;
    color: #ffffff !important;
}

.header-action-link--primary:hover {
    background: #0078c8;
    color: #ffffff !important;
}

.staff-sidebar-toggle {
    margin-right: 12px;
}

.version-footer-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: var(--z-footer);
    background-color: #ffffff;
    color: #555;
    padding: 4px 16px;
    font-size: 0.8rem;
    border-top: none;
}

.version-footer-bar a {
    color: #555;
}

.tru-id-method-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem;
    border: 2px solid var(--rz-border-color);
    border-radius: 8px;
    cursor: pointer;
    min-width: 220px;
    max-width: 280px;
    flex: 1;
    position: relative;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.tru-id-method-card:hover {
    border-color: var(--rz-primary);
    box-shadow: 0 4px 12px rgba(0,0,0,0.14);
}

.tru-id-method-card-badge {
    position: absolute;
    top: -0.65rem;
    right: 0.75rem;
    background: var(--rz-success);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.15rem 0.55rem;
    border-radius: 4px;
    letter-spacing: 0.03em;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.rz-notification {
    z-index: var(--z-toast) !important;
}

.rz-data-row.row-primary {
    background-color: var(--rz-success-lighter, #e6f4ea);
    border-left: 3px solid var(--rz-success, #34a853);
}
