:root {
    --purple-900: #3f1f9d;
    --purple-700: #5a34c7;
    --purple-500: #7b56e8;
    --bg-soft: #f4f6fb;
    --text-main: #1f2430;
    --text-muted: #6d7385;
    --success: #198754;
    --danger: #dc3545;
    --card: #ffffff;
    --radius: 16px;
    --bottom-nav-height: 84px;
}

* {
    box-sizing: border-box;
}

body.user-body {
    margin: 0;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-main);
    background: var(--bg-soft);
}

a {
    color: inherit;
    text-decoration: none;
}

.user-shell {
    min-height: 100vh;
    width: 100%;
    padding-bottom: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom));
}

.auth-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    background: linear-gradient(180deg, #2f72b8 0%, #94b8e3 40%, #d7e7f6 100%);
    padding: 14px 12px 108px;
}

.auth-theme-strip {
    width: min(760px, 100%);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(10, 51, 98, .28);
    margin-bottom: 14px;
}

.auth-theme-strip .dash-slider-track {
    height: 188px;
}

.auth-card {
    width: min(460px, 100%);
    background: rgba(255, 255, 255, .95);
    border-radius: 18px;
    padding: 26px 20px 20px;
    box-shadow: 0 16px 36px rgba(11, 48, 93, .22);
    border: 1px solid rgba(188, 207, 233, .75);
}

.auth-card .form-group label {
    color: #5a85bf;
    font-size: 16px;
}

.auth-card input {
    border: 2px solid #0a5ba8;
    border-radius: 14px;
    min-height: 58px;
    font-size: 18px;
    color: #0b4d8f;
}

.auth-card .btn-primary {
    background: #0a4f95;
    border-radius: 14px;
    min-height: 56px;
    font-size: 22px;
    font-weight: 500;
}

.auth-title {
    text-align: center;
    margin: 0 0 18px;
    font-size: 42px;
    font-weight: 700;
    color: #0a4f95;
}

.form-group {
    margin-bottom: 12px;
}

label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    color: var(--text-muted);
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid #ccd3e0;
    border-radius: 10px;
    padding: 11px 12px;
    font-size: 14px;
    background: #fff;
}

textarea {
    min-height: 90px;
    resize: vertical;
}

.btn {
    border: 0;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-full {
    width: 100%;
}

.btn-primary {
    background: var(--purple-700);
    color: #fff;
}

.btn-outline {
    border: 1px solid var(--purple-700);
    color: var(--purple-700);
    background: #fff;
}

.btn-muted {
    background: #d8deeb;
    color: #293041;
}

.auth-foot {
    text-align: center;
    margin-top: 14px;
    color: #446f99;
    font-size: 16px;
}

.auth-foot a {
    color: #0a4f95;
    font-weight: 600;
}

.alert {
    margin: 12px auto;
    width: min(760px, calc(100% - 20px));
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 14px;
}

.alert-success {
    background: #def7e7;
    color: #0f5132;
}

.alert-error {
    background: #f8d7da;
    color: #842029;
}

.frozen-banner {
    width: min(1060px, calc(100% - 20px));
    margin: 14px auto 0;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 14px;
    align-items: center;
    padding: 16px 18px;
    border-radius: 22px;
    color: #fff;
    background:
        linear-gradient(135deg, rgba(188, 27, 70, .92), rgba(122, 31, 98, .9)),
        radial-gradient(circle at 0% 0%, rgba(255, 255, 255, .18), transparent 42%);
    border: 1px solid rgba(255, 221, 230, .34);
    box-shadow: 0 18px 34px rgba(102, 16, 49, .28);
}

.frozen-banner.is-dismissed {
    display: none;
}

.frozen-banner.is-attention {
    animation: frozenBannerPulse .48s ease;
}

.frozen-banner-mark {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .18);
    border: 1px solid rgba(255, 255, 255, .22);
    display: grid;
    place-items: center;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18);
}

.frozen-banner-mark span {
    position: relative;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    border: 2px solid currentColor;
}

.frozen-banner-mark span::before,
.frozen-banner-mark span::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background: currentColor;
    border-radius: 999px;
}

.frozen-banner-mark span::before {
    top: 3px;
    width: 2px;
    height: 9px;
}

.frozen-banner-mark span::after {
    bottom: 3px;
    width: 3px;
    height: 3px;
}

.frozen-banner-copy {
    min-width: 0;
}

.frozen-banner-kicker {
    display: inline-block;
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(255, 234, 240, .82);
}

.frozen-banner-copy h2 {
    margin: 0;
    font-size: clamp(20px, 3vw, 28px);
    line-height: 1.12;
}

.frozen-banner-copy p {
    margin: 8px 0 0;
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 245, 248, .96);
}

.frozen-banner-copy small {
    display: block;
    margin-top: 8px;
    font-size: 12px;
    line-height: 1.5;
    color: rgba(255, 228, 235, .82);
}

.frozen-banner-close {
    min-width: 102px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 999px;
    background: rgba(255, 255, 255, .14);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    padding: 12px 16px;
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18);
}

.frozen-prompt {
    position: fixed;
    inset: 0;
    z-index: 320;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(18, 24, 41, .48);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.frozen-prompt.is-open {
    display: flex;
}

.frozen-prompt-dialog {
    width: min(520px, 100%);
    border-radius: 26px;
    padding: 22px;
    color: #14213b;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .92), rgba(247, 250, 255, .9)),
        radial-gradient(circle at 0% 0%, rgba(255, 208, 221, .2), transparent 40%);
    border: 1px solid rgba(233, 208, 218, .85);
    box-shadow: 0 22px 44px rgba(17, 31, 67, .24);
}

.frozen-prompt-top {
    border-radius: 20px;
    padding: 18px;
    background: linear-gradient(135deg, rgba(255, 241, 245, .92), rgba(255, 247, 250, .9));
    border: 1px solid rgba(237, 213, 222, .92);
}

.frozen-prompt-kicker {
    display: inline-block;
    margin-bottom: 8px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: #b4235a;
}

.frozen-prompt-top h2 {
    margin: 0;
    font-size: 26px;
    line-height: 1.12;
    color: #1c2742;
}

.frozen-prompt-top p {
    margin: 10px 0 0;
    font-size: 14px;
    line-height: 1.65;
    color: #4f5a71;
}

.frozen-prompt-actions {
    margin-top: 16px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.frozen-guard-target {
    cursor: not-allowed !important;
}

.frozen-page-wrap {
    display: grid;
    place-items: center;
    min-height: calc(100vh - 40px);
}

.frozen-page-card {
    width: min(760px, 100%);
    padding: 28px 24px;
    border-radius: 28px;
}

.frozen-page-header {
    padding: 22px;
    border-radius: 24px;
    color: #fff;
    background:
        linear-gradient(135deg, rgba(191, 30, 74, .94), rgba(128, 45, 112, .92)),
        radial-gradient(circle at 0% 0%, rgba(255, 255, 255, .22), transparent 42%);
    box-shadow: 0 20px 36px rgba(99, 18, 53, .24);
}

.frozen-page-eyebrow {
    display: inline-block;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: rgba(255, 232, 238, .82);
}

.frozen-page-header h1 {
    margin: 0;
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.08;
}

.frozen-page-header p {
    margin: 10px 0 0;
    max-width: 60ch;
    font-size: 15px;
    line-height: 1.7;
    color: rgba(255, 244, 247, .95);
}

.frozen-page-grid {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.frozen-page-panel {
    padding: 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, .42);
    border: 1px solid rgba(214, 225, 244, .86);
}

.frozen-page-panel h2 {
    margin: 0 0 10px;
    font-size: 16px;
    color: #1f2f53;
}

.frozen-page-panel p {
    margin: 0;
    font-size: 14px;
    line-height: 1.65;
    color: #31405d;
}

.frozen-page-meta {
    margin: 0;
    display: grid;
    gap: 12px;
}

.frozen-page-meta div {
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .52);
    border: 1px solid rgba(218, 229, 247, .92);
}

.frozen-page-meta dt {
    margin: 0 0 6px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #6a7791;
}

.frozen-page-meta dd {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #1b2740;
}

.frozen-page-actions {
    margin-top: 18px;
    display: flex;
    justify-content: flex-end;
}

.frozen-page-logout {
    min-width: 160px;
}

.is-frozen-account .dash-action-btn,
.is-frozen-account .dash-menu-card,
.is-frozen-account .wallet-modern-action-btn,
.is-frozen-account .wallet-modern-withdraw-btn,
.is-frozen-account .setting-btn-blue,
.is-frozen-account .apply-loan-submit,
.is-frozen-account .btn-primary,
.is-frozen-account .btn-outline,
.is-frozen-account .status-item,
.is-frozen-account .bottom-nav a,
.is-frozen-account .section-card form,
.is-frozen-account .inline-buttons .btn,
.is-frozen-account .auth-card form button {
    filter: saturate(.72);
}

@keyframes frozenBannerPulse {
    0% {
        transform: translateY(0);
        box-shadow: 0 18px 34px rgba(102, 16, 49, .28);
    }

    50% {
        transform: translateY(-2px);
        box-shadow: 0 24px 42px rgba(102, 16, 49, .34);
    }

    100% {
        transform: translateY(0);
        box-shadow: 0 18px 34px rgba(102, 16, 49, .28);
    }
}

.mobile-wrap {
    max-width: 460px;
    margin: 0 auto;
    padding: 14px 12px calc(var(--bottom-nav-height) + 28px + env(safe-area-inset-bottom));
}

.mobile-header {
    background: linear-gradient(155deg, #4b2db7, #6c43d5);
    color: #fff;
    border-radius: 20px;
    padding: 16px;
    margin-bottom: 12px;
}

.profile-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #fff;
    color: var(--purple-700);
    font-weight: 700;
    display: grid;
    place-items: center;
}

.profile-meta {
    flex: 1;
    margin-left: 10px;
}

.profile-meta h3 {
    margin: 0;
    font-size: 18px;
}

.profile-meta p {
    margin: 3px 0 0;
    font-size: 13px;
    opacity: .9;
}

.bell {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .24);
    display: grid;
    place-items: center;
}

.balance-card {
    background: #fff;
    color: #1f2430;
    border-radius: 16px;
    padding: 14px;
}

.balance-card h4 {
    margin: 0;
    font-size: 13px;
    color: #6f768a;
}

.balance-card strong {
    display: block;
    margin-top: 4px;
    font-size: 26px;
}

.balance-stats {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.balance-chip {
    background: #f5f6fc;
    border-radius: 12px;
    flex: 1;
    padding: 10px;
    text-align: center;
}

.balance-chip span {
    display: block;
    font-size: 12px;
    color: #798195;
}

.balance-chip b {
    font-size: 14px;
}

.menu-grid {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.menu-item {
    background: #fff;
    border-radius: 14px;
    padding: 12px 8px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(28, 36, 74, .06);
    font-size: 13px;
    font-weight: 600;
}

.dashboard-wrap {
    padding: 0 0 calc(var(--bottom-nav-height) + 18px + env(safe-area-inset-bottom));
    background: #d8d5e8;
    min-height: calc(100vh - 62px);
}

.dash-topbar {
    background: linear-gradient(145deg, #312a9f, #433cc7);
    color: #fff;
    padding: 18px 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 3px 14px rgba(21, 22, 64, .25);
}

.dash-profile-block {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dash-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 3px solid #d5d6f2;
    background: radial-gradient(circle at 32% 30%, #fff, #f2f2ff 70%);
    display: grid;
    place-items: center;
}

.dash-avatar span {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(160deg, #f3cc39, #d8a715);
}

.dash-avatar-icon {
    width: 30px;
    height: 30px;
    stroke: #f7f8ff;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dash-profile-meta {
    min-width: 0;
}

.dash-name,
.dash-phone {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dash-name {
    font-size: 18px;
    font-weight: 700;
    color: #0f1324;
}

.dash-phone {
    margin-top: 6px;
    font-size: 18px;
    color: rgba(230, 233, 255, .72);
}

.dash-name strong {
    font-weight: 700;
}

.dash-meta-icon {
    width: 20px;
    text-align: center;
    line-height: 1;
    color: rgba(240, 242, 255, .9);
}

.dash-icon {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dash-bell {
    color: #fff;
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    background: transparent;
}

.dash-content {
    padding: 14px;
    display: grid;
    gap: 14px;
}

.dash-balance-shell {
    background: #deddeb;
    border-radius: 18px;
    padding: 12px;
}

.dash-balance-primary {
    background: linear-gradient(130deg, #4c47de, #4b42dc);
    color: #fff;
    border-radius: 14px;
    padding: 18px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.dash-balance-primary h2 {
    margin: 0;
    font-size: 40px;
    letter-spacing: .3px;
}

.dash-balance-primary p {
    margin: 6px 0 0;
    color: rgba(255, 255, 255, .7);
    font-size: 16px;
}

.dash-balance-action {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    border: 2px solid rgba(255, 255, 255, .8);
    color: #fff;
    display: grid;
    place-items: center;
}

.dash-balance-action .dash-icon {
    width: 26px;
    height: 26px;
}

.dash-balance-stats {
    margin-top: 12px;
    border-top: 2px solid #c3c6e8;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dash-balance-stat {
    padding: 14px 10px 6px;
}

.dash-balance-stat:first-child {
    border-right: 2px solid #c3c6e8;
}

.dash-balance-stat h4 {
    margin: 0;
    color: #3e4558;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.dash-balance-stat strong {
    display: block;
    margin-top: 10px;
    color: #171d2b;
    font-size: 18px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.dot-blue {
    background: #5154eb;
}

.dot-red {
    background: #e84a57;
}

.dash-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.dash-action-btn {
    min-height: 72px;
    border-radius: 14px;
    background: linear-gradient(150deg, #4f4ae3, #3c46de);
    color: #fff;
    padding: 10px 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 18px rgba(61, 70, 209, .26);
}

.dash-action-btn-alt {
    background: linear-gradient(150deg, #5359f2, #5f45e5);
}

.dash-action-btn-soft {
    background: linear-gradient(150deg, #7081ff, #5b66e8);
}

.dash-action-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .2);
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.dash-action-svg {
    width: 18px;
    height: 18px;
    stroke: #fff;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dash-action-text {
    min-width: 0;
    display: grid;
}

.dash-action-text strong {
    font-size: 13px;
    line-height: 1.2;
    font-weight: 700;
}

.dash-action-text small {
    font-size: 10px;
    line-height: 1.2;
    opacity: .86;
}

.dash-menu-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.dash-menu-card {
    background: #fff;
    border-radius: 16px;
    min-height: 122px;
    padding: 14px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    color: #111626;
    box-shadow: 0 3px 14px rgba(28, 36, 74, .12);
}

.dash-menu-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #ecebff;
    color: #4b47e2;
    display: grid;
    place-items: center;
}

.dash-menu-svg {
    width: 26px;
    height: 26px;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

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

.dash-menu-card-wide {
    min-height: 110px;
}

.dash-menu-card-full {
    grid-column: 1 / -1;
}

.dash-menu-disabled {
    color: #22283a;
    cursor: default;
}

.dash-menu-logout {
    color: #de4957;
}

.dash-menu-logout .dash-menu-icon {
    background: #ffedf0;
    color: #de4957;
}

.dash-banner {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 3px 14px rgba(28, 36, 74, .12);
    position: relative;
}

.dash-banner img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    display: block;
}

.dash-slider-track {
    position: relative;
    height: 230px;
    overflow: hidden;
}

.dash-slider .dash-slide {
    display: none;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dash-slider .dash-slide.is-active {
    display: block;
}

.dash-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #fff;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    display: grid;
    place-items: center;
    text-shadow: 0 2px 5px rgba(14, 17, 34, .35);
}

.dash-slider-prev {
    left: 8px;
}

.dash-slider-next {
    right: 8px;
}

.dash-slider-dots {
    position: absolute;
    left: 50%;
    bottom: 8px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 6px;
}

.dash-slider-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .55);
    border: 0;
    padding: 0;
}

.dash-slider-dot.is-active {
    background: #fff;
}

.section-card {
    background: #fff;
    border-radius: 14px;
    padding: 16px;
    margin-top: 12px;
    box-shadow: 0 4px 16px rgba(32, 42, 71, .06);
}

.section-title {
    margin: 0 0 10px;
    font-size: 16px;
}

.info-header {
    background: linear-gradient(135deg, var(--purple-900), var(--purple-700));
    color: #fff;
    padding: 16px;
    border-radius: 0 0 16px 16px;
}

.status-grid {
    margin-top: 14px;
    display: grid;
    gap: 10px;
}

.status-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid #e8ebf3;
}

.badge {
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 999px;
    font-weight: 600;
}

.badge-success {
    background: #d1f3df;
    color: #136f3a;
}

.badge-pending {
    background: #f9e8bf;
    color: #8a6205;
}

.user-status-tag {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 10px;
    line-height: 1.2;
}

.user-status-text {
    font-weight: 700;
}

.user-status-tag.qs-primary {
    background: linear-gradient(145deg, #5468ff, #6951f0);
}

.user-status-tag.qs-info {
    background: linear-gradient(145deg, #0ea5a4, #1288b0);
}

.user-status-tag.qs-success {
    background: linear-gradient(145deg, #14b86a, #0f9b56);
}

.user-status-tag.qs-warning {
    background: linear-gradient(145deg, #f59e0b, #ea7b1c);
}

.user-status-tag.qs-danger {
    background: linear-gradient(145deg, #ef476f, #d72f57);
}

.user-status-text.qs-primary {
    color: #5b56f5;
}

.user-status-text.qs-info {
    color: #1293b4;
}

.user-status-text.qs-success {
    color: #169c57;
}

.user-status-text.qs-warning {
    color: #e57f15;
}

.user-status-text.qs-danger {
    color: #d53857;
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, #0b5baa, #0a4f95);
    box-shadow: 0 -6px 22px rgba(6, 31, 62, .24);
    padding: 9px 10px calc(9px + env(safe-area-inset-bottom));
    min-height: var(--bottom-nav-height);
}

.bottom-nav .inner {
    max-width: 460px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
}

.bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-align: center;
    font-size: 10px;
    padding: 4px 0 2px;
    border-radius: 10px;
    color: rgba(219, 234, 255, .9);
    font-weight: 700;
    letter-spacing: .02em;
}

.bottom-nav a .nav-ico {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    border: 2px solid rgba(215, 233, 255, .72);
    background: rgba(255, 255, 255, .07);
}

.bottom-nav a .nav-ico svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.bottom-nav a.active {
    background: rgba(255, 255, 255, .12);
    color: #fff;
}

.bottom-nav a.active .nav-ico {
    border-color: #fff;
    background: rgba(255, 255, 255, .2);
}

.loan-details dl {
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 10px;
}

.loan-details dt {
    color: #6e7487;
    font-size: 12px;
}

.loan-details dd {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
}

.progress-ring {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 8px auto 12px;
    background: conic-gradient(var(--purple-700) calc(var(--value) * 1%), #e8ecf8 0%);
    display: grid;
    place-items: center;
}

.progress-ring span {
    width: 86px;
    height: 86px;
    border-radius: 50%;
    background: #fff;
    display: grid;
    place-items: center;
    font-weight: 700;
    color: var(--purple-700);
}

.read-only-grid {
    display: grid;
    gap: 10px;
}

.read-only-grid .row {
    background: #f5f7fc;
    border-radius: 10px;
    padding: 10px;
}

.read-only-grid .row small {
    display: block;
    color: #7f8899;
    margin-bottom: 4px;
}

.read-only-grid .row strong {
    font-size: 14px;
}

.canvas-wrap {
    border: 1px dashed #bcc6dc;
    border-radius: 12px;
    padding: 8px;
}

#signaturePad {
    width: 100%;
    height: 220px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #ccd4e5;
}

.inline-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.file-preview {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.file-preview img {
    width: 100%;
    border-radius: 8px;
    border: 1px solid #d9deea;
    height: 120px;
    object-fit: cover;
}

.id-guide-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 12px;
}

.id-guide-card {
    width: 100%;
    text-align: left;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background: rgba(255, 255, 255, .5);
    border: 1px solid #d7e2f4;
    border-radius: 10px;
    padding: 8px;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.id-guide-card:hover {
    border-color: #6a9ad2;
    box-shadow: 0 8px 20px rgba(18, 54, 102, .16);
    transform: translateY(-1px);
}

.id-guide-card:focus-visible {
    outline: 2px solid #2a86de;
    outline-offset: 2px;
}

.id-guide-card small {
    display: block;
    color: #586a85;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 6px;
}

.id-guide-card img {
    width: 100%;
    height: 98px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid #d7deea;
    background: #f0f4fb;
}

.id-upload-preview {
    margin-top: 8px;
    border: 1px dashed #c8d4e8;
    border-radius: 10px;
    min-height: 110px;
    background: rgba(255, 255, 255, .45);
    display: grid;
    place-items: center;
    overflow: hidden;
}

.id-upload-preview img {
    width: 100%;
    height: 110px;
    object-fit: cover;
    display: none;
}

.id-upload-preview img.is-visible {
    display: block;
}

.apply-loan-wrap {
    max-width: 760px;
    padding: 24px 0 110px;
}

.apply-loan-header {
    background: linear-gradient(120deg, #5149e8, #4740da);
    border-radius: 24px;
    color: #fff;
    min-height: 96px;
    display: grid;
    place-items: center;
    margin-bottom: 22px;
    box-shadow: 0 8px 22px rgba(63, 68, 187, .24);
}

.apply-loan-header h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
}

.apply-loan-card {
    background: #dfdeec;
    border-radius: 20px;
    margin-top: 0;
    padding: 28px 22px 24px;
    box-shadow: 0 10px 24px rgba(39, 44, 86, .08);
}

.apply-loan-subtitle {
    margin: 2px 0 10px;
    text-align: center;
    color: #5149d8;
    font-size: 24px;
    font-weight: 500;
}

.apply-loan-range-copy {
    margin: 0 0 20px;
    text-align: center;
    color: #151923;
    font-size: 18px;
    line-height: 1.4;
}

.apply-loan-label {
    color: #101522;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}

.apply-loan-amount-input {
    background: #ececef;
    border-color: #cdd2dc;
    border-radius: 18px;
    color: #5f6574;
    font-size: 22px;
    min-height: 62px;
    padding: 14px 20px;
}

.apply-loan-range {
    margin-top: 16px;
    width: 100%;
    accent-color: #2876e8;
}

.apply-loan-range-labels {
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
    color: #191d2a;
    font-size: 17px;
}

.apply-loan-term-grid {
    margin-top: 16px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid #d4d8e5;
}

.apply-loan-term-btn {
    border: 0;
    min-height: 116px;
    background: linear-gradient(160deg, #4f4ae3, #413ed5);
    color: #fff;
    cursor: pointer;
    display: grid;
    place-items: center;
    font-weight: 700;
    border-right: 1px solid rgba(224, 228, 250, .55);
}

.apply-loan-term-btn:last-child {
    border-right: 0;
}

.apply-loan-term-btn strong {
    display: block;
    font-size: 19px;
    line-height: 1;
    margin-top: 2px;
}

.apply-loan-term-btn small {
    display: block;
    font-size: 14px;
    margin-top: 4px;
}

.apply-loan-term-btn.is-active {
    background: #efeff3;
    color: #4d48d7;
}

.apply-loan-summary {
    margin-top: 18px;
    display: grid;
    gap: 12px;
}

.apply-loan-summary-list {
    display: grid;
    gap: 12px;
}

.apply-loan-summary-row {
    display: grid;
    grid-template-columns: 1fr 16px auto;
    align-items: baseline;
    gap: 8px;
    color: #0f1320;
    font-size: 16px;
}

.apply-loan-summary-row b {
    font-size: 16px;
    font-weight: 700;
    white-space: nowrap;
}

.apply-loan-summary-row .colon {
    text-align: center;
}

.apply-loan-agreement {
    margin-top: 18px;
    text-align: center;
}

.apply-loan-agree-check {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 700;
    color: #131722;
}

.apply-loan-agree-check input {
    width: 20px;
    height: 20px;
    accent-color: #2876e8;
}

.apply-loan-read-btn {
    margin-top: 10px;
    border: 0;
    background: transparent;
    color: #4b45d9;
    font-size: 15px;
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
}

.apply-loan-submit {
    display: block;
    width: min(320px, 100%);
    margin: 18px auto 0;
    min-height: 56px;
    font-size: 18px;
    border-radius: 18px;
    background: linear-gradient(120deg, #5149e8, #4740da);
    box-shadow: 0 8px 18px rgba(59, 63, 194, .28);
}

.apply-loan-submit.is-disabled {
    opacity: .55;
    cursor: not-allowed;
}

.apply-loan-notice {
    margin-top: 30px;
}

.apply-loan-notice h4 {
    margin: 0 0 8px;
    color: #4b46d6;
    font-size: 24px;
}

.apply-loan-notice p {
    margin: 0;
    color: #181d2b;
    font-size: 18px;
    line-height: 1.45;
    font-style: italic;
}

.apply-loan-agreement-modal {
    position: fixed;
    inset: 0;
    z-index: 60;
    background: rgba(18, 22, 40, .55);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.apply-loan-agreement-modal.is-open {
    display: flex;
}

.apply-loan-agreement-dialog {
    width: min(760px, 100%);
    max-height: 86vh;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(20, 24, 45, .35);
}

.apply-loan-agreement-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid #e7eaf2;
}

.apply-loan-agreement-head h4 {
    margin: 0;
    font-size: 20px;
    color: #151927;
}

.apply-loan-agreement-close {
    border: 0;
    background: transparent;
    color: #69738c;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.apply-loan-agreement-body {
    padding: 16px 18px 18px;
    overflow: auto;
    max-height: calc(86vh - 58px);
}

.apply-loan-agreement-body ol {
    margin: 0;
    padding-left: 20px;
    color: #151927;
    line-height: 1.5;
    font-size: 14px;
}

.apply-loan-agreement-body li + li {
    margin-top: 10px;
}

@media (max-width: 420px) {
    .apply-loan-card {
        padding: 24px 16px 22px;
    }

    .apply-loan-subtitle {
        font-size: 21px;
    }

    .apply-loan-range-copy {
        font-size: 17px;
    }

    .apply-loan-amount-input {
        font-size: 20px;
    }

    .apply-loan-summary-row {
        grid-template-columns: 1fr 12px auto;
        font-size: 15px;
    }

    .apply-loan-summary-row b {
        font-size: 15px;
    }

    .apply-loan-notice p {
        font-size: 16px;
    }
}

.bank-info-wrap {
    max-width: 760px;
    padding: 24px 0 110px;
}

.bank-page-header {
    background: linear-gradient(120deg, #5149e8, #4740da);
    border-radius: 24px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 96px;
    margin-bottom: 22px;
    padding: 0 20px;
    box-shadow: 0 8px 22px rgba(63, 68, 187, .24);
}

.bank-page-header h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
}

.bank-back-link,
.bank-back-spacer {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
}

.bank-back-link {
    color: #fff;
    font-size: 26px;
    line-height: 1;
    font-weight: 600;
}

.bank-section-card {
    background: #dfdeec;
    border-radius: 20px;
    margin-top: 0;
    padding: 28px 22px 24px;
    box-shadow: 0 10px 24px rgba(39, 44, 86, .08);
}

.bank-user-lines {
    display: grid;
    gap: 14px;
    margin-bottom: 26px;
}

.bank-user-row {
    display: grid;
    grid-template-columns: 90px 1fr;
    align-items: center;
    gap: 12px;
}

.bank-user-row span {
    color: #131722;
    font-size: 17px;
    font-weight: 500;
}

.bank-user-row strong {
    color: #9aa0b0;
    font-size: 17px;
    font-weight: 500;
    text-align: left;
}

.bank-form .form-group {
    margin-bottom: 18px;
}

.bank-form label {
    color: #131722;
    margin-bottom: 9px;
    font-size: 18px;
    font-weight: 500;
}

.bank-form input {
    background: #ececef;
    border-color: #cdd2dc;
    border-radius: 10px;
    color: #5f6574;
    font-size: 16px;
    min-height: 56px;
    padding: 14px 16px;
}

.bank-form input::placeholder {
    color: #6a717f;
    opacity: 1;
}

.bank-note {
    margin: 8px 6px 22px;
    text-align: center;
    color: #161d2b;
    font-size: 16px;
    line-height: 1.45;
}

.bank-form .btn-primary {
    background: linear-gradient(90deg, #5149e8, #3e58eb);
    border-radius: 11px;
    min-height: 56px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: .2px;
    box-shadow: inset 0 0 0 1px rgba(144, 198, 247, .45);
}

.tone-success {
    color: #1f9f46;
}

.tone-warning {
    color: #e2574d;
}

.tone-danger {
    color: #c73a31;
}

.tone-info {
    color: #2f6fc7;
}

.wallet-modern-wrap {
    padding-top: 8px;
}

.wallet-modern-header,
.withdraw-modern-header {
    background: #1e2430;
    color: #fff;
    border-radius: 14px;
    min-height: 60px;
    display: grid;
    grid-template-columns: 40px 1fr 40px;
    align-items: center;
    padding: 0 10px;
    margin-bottom: 10px;
}

.wallet-modern-header h3,
.withdraw-modern-header h3 {
    margin: 0;
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: .2px;
}

.wallet-modern-back {
    color: #7ec0ff;
    font-size: 24px;
    text-align: left;
}

.wallet-modern-spacer {
    display: block;
}

.wallet-modern-card {
    background: #fff;
    border-radius: 14px;
    padding: 14px;
    box-shadow: 0 4px 16px rgba(32, 42, 71, .08);
}

.wallet-modern-top {
    display: grid;
    grid-template-columns: 1fr 122px;
    gap: 12px;
    align-items: start;
}

.wallet-modern-label {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    color: #171d28;
}

.wallet-modern-order {
    margin: 2px 0 4px;
    color: #2f6fc7;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.06;
    word-break: break-word;
}

.wallet-modern-date {
    margin: 0;
    color: #171d28;
    font-size: 15px;
    font-weight: 600;
}

.wallet-modern-actions {
    display: grid;
    gap: 8px;
}

.wallet-modern-action-btn {
    min-height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    padding: 8px 10px;
    text-align: center;
    background: #2b6dbc;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    border: 0;
}

.wallet-modern-action-btn-alt {
    background: #0f6ce0;
}

.wallet-modern-action-btn.is-disabled {
    background: #8ea5c5;
    cursor: not-allowed;
    pointer-events: none;
}

.wallet-modern-stats {
    margin-top: 12px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.wallet-modern-stat-box {
    background: #f8fafc;
    border: 1px solid #e4e9f3;
    border-radius: 10px;
    padding: 10px 8px;
    text-align: center;
}

.wallet-modern-stat-box strong {
    display: block;
    color: #1c222e;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.1;
}

.wallet-modern-stat-box strong small {
    font-size: .62em;
    font-weight: 600;
}

.wallet-modern-stat-box span {
    display: block;
    margin-top: 4px;
    color: #374051;
    font-size: 13px;
    font-weight: 600;
}

.wallet-modern-line {
    margin: 10px 0 0;
    font-size: 17px;
    line-height: 1.3;
    color: #161b26;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.wallet-modern-line-label {
    color: #161b26;
    font-weight: 600;
}

.wallet-modern-tone {
    font-weight: 700;
}

.wallet-modern-balance {
    margin-top: 14px;
    border-radius: 10px;
    background: linear-gradient(90deg, #0463c8, #1f80ea);
    color: #fff;
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    padding: 16px 12px;
    box-shadow: 0 6px 16px rgba(30, 92, 175, .25);
}

.wallet-modern-withdraw-btn {
    display: block;
    margin-top: 12px;
    border-radius: 999px;
    text-align: center;
    background: #2e66a6;
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    padding: 14px 12px;
    box-shadow: 0 8px 16px rgba(30, 92, 175, .2);
}

.withdraw-modern-wrap {
    padding-top: 8px;
}

.withdraw-modern-header {
    background: #eceff4;
    color: #4a95c9;
    box-shadow: 0 2px 10px rgba(24, 41, 64, .08);
}

.withdraw-modern-header .wallet-modern-back {
    color: #4a95c9;
}

.withdraw-modern-card {
    margin-top: 10px;
    background: #fff;
    border-radius: 14px;
    padding: 14px;
    box-shadow: 0 4px 16px rgba(32, 42, 71, .08);
}

.withdraw-modern-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.withdraw-modern-caption {
    margin: 0;
    color: #2f3f55;
    font-size: 15px;
    font-weight: 700;
}

.withdraw-modern-number {
    margin: 2px 0 0;
    color: #7a7f8f;
    font-size: 17px;
    font-weight: 600;
}

.withdraw-modern-status {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    text-align: right;
}

.withdraw-modern-status.user-status-tag {
    text-align: center;
    font-size: 12px;
    line-height: 1.25;
    max-width: 180px;
}

.withdraw-modern-divider {
    margin: 12px 0;
    border-top: 1px solid #e3e8f2;
}

.withdraw-modern-body {
    display: flex;
    align-items: center;
    gap: 10px;
}

.withdraw-modern-icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    border: 3px solid #1a7ed5;
    background: #24a0df;
    color: #fff;
    flex-shrink: 0;
}

.withdraw-modern-icon {
    font-size: 34px;
    font-weight: 700;
    line-height: 1;
}

.withdraw-modern-meta p {
    margin: 0;
    color: #5b6475;
    font-size: 14px;
    line-height: 1.5;
}

.withdraw-modern-meta p + p {
    margin-top: 3px;
}

.withdraw-modern-mark {
    margin-top: 10px;
    text-align: center;
    font-size: 66px;
    font-weight: 700;
    line-height: 1;
}

.status-message-card {
    margin-top: 12px;
}

.status-message-item {
    display: block;
    border-left: 4px solid currentColor;
}

.status-message-item.qs-primary {
    border-left-color: #5b56f5;
    background: rgba(84, 104, 255, .08);
}

.status-message-item.qs-info {
    border-left-color: #1293b4;
    background: rgba(18, 147, 180, .08);
}

.status-message-item.qs-success {
    border-left-color: #169c57;
    background: rgba(22, 156, 87, .08);
}

.status-message-item.qs-warning {
    border-left-color: #e57f15;
    background: rgba(229, 127, 21, .10);
}

.status-message-item.qs-danger {
    border-left-color: #d53857;
    background: rgba(213, 56, 87, .08);
}

.status-message-item strong {
    display: block;
    font-size: 14px;
    margin-bottom: 4px;
    color: #1f2f4f;
}

.status-message-item p {
    margin: 0;
    font-size: 13px;
    line-height: 1.45;
    color: #2b3e63;
}

.status-message-item small {
    display: block;
    margin-top: 6px;
    color: #727a8b;
}

.setting-page-wrap {
    padding-top: 8px;
}

.setting-page-header {
    background: linear-gradient(180deg, #0b5baa, #0a4f95);
    color: #fff;
    border-radius: 14px;
    min-height: 60px;
    display: grid;
    grid-template-columns: 40px 1fr 40px;
    align-items: center;
    padding: 0 10px;
    margin-bottom: 12px;
}

.setting-page-header h3 {
    margin: 0;
    text-align: center;
    font-size: 21px;
    font-weight: 700;
}

.setting-card {
    background: #f1f6ff;
    border: 1px solid #c9d9f5;
    border-radius: 16px;
    padding: 14px;
    box-shadow: 0 8px 18px rgba(29, 62, 109, .12);
}

.setting-account,
.setting-balance {
    margin: 0;
    color: #164a84;
    font-size: 15px;
}

.setting-balance {
    margin-top: 5px;
    margin-bottom: 12px;
}

.setting-btn {
    display: block;
    width: 100%;
    border-radius: 12px;
    text-align: center;
    padding: 13px 12px;
    font-size: 16px;
    font-weight: 700;
    margin-top: 9px;
}

.setting-btn-blue {
    background: #0a4f95;
    color: #fff;
}

.setting-btn-red {
    background: #b30404;
    color: #fff;
}

@media (max-width: 420px) {
    .frozen-banner {
        grid-template-columns: 1fr;
        justify-items: start;
        padding: 14px;
    }

    .frozen-banner-close {
        min-width: 0;
        width: 100%;
    }

    .frozen-prompt-dialog {
        padding: 16px;
        border-radius: 22px;
    }

    .frozen-prompt-top {
        padding: 15px;
        border-radius: 18px;
    }

    .frozen-prompt-actions {
        flex-direction: column;
    }

    .frozen-prompt-actions .btn,
    .frozen-prompt-actions a {
        width: 100%;
    }

    .frozen-page-card {
        padding: 20px 16px;
        border-radius: 22px;
    }

    .frozen-page-header,
    .frozen-page-panel,
    .frozen-page-meta div {
        border-radius: 18px;
    }

    .bank-section-card {
        padding: 24px 16px 22px;
    }

    .bank-user-row {
        grid-template-columns: 78px 1fr;
    }

    .bank-form label {
        font-size: 17px;
    }

    .bank-note {
        font-size: 15px;
    }

    .wallet-modern-top {
        grid-template-columns: 1fr;
    }

    .wallet-modern-actions {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .wallet-modern-action-btn {
        min-height: 40px;
        font-size: 12px;
        padding: 8px 5px;
    }
}
/* Responsive + visual polish */
.dash-balance-primary h2 {
    font-size: clamp(28px, 7vw, 46px);
}

.auth-title {
    font-size: clamp(34px, 8vw, 52px);
}

@media (max-width: 820px) {
    .frozen-page-grid {
        grid-template-columns: 1fr;
    }

    .mobile-wrap {
        padding: 12px 10px 110px;
    }

    .dash-topbar {
        padding: 14px 12px 18px;
    }

    .dash-avatar {
        width: 62px;
        height: 62px;
    }

    .dash-avatar span {
        width: 46px;
        height: 46px;
    }

    .dash-name,
    .dash-phone {
        font-size: 16px;
    }

    .dash-content {
        padding: 10px;
        gap: 10px;
    }

    .dash-actions {
        grid-template-columns: 1fr;
    }

    .dash-action-btn {
        min-height: 66px;
    }
}

@media (max-width: 520px) {
    .auth-page {
        padding: 10px 8px 108px;
    }

    .auth-theme-strip .dash-slider-track {
        height: 156px;
    }

    .auth-card {
        padding: 20px 14px 16px;
    }

    .auth-card input {
        min-height: 52px;
        font-size: 16px;
    }

    .auth-card .btn-primary {
        min-height: 50px;
        font-size: 20px;
    }
}

@media (min-width: 992px) {
    .frozen-banner {
        margin-top: 18px;
    }

    body.user-body {
        background:
            radial-gradient(1200px 520px at 6% -22%, rgba(33, 102, 197, .18), transparent 60%),
            radial-gradient(980px 460px at 100% 0%, rgba(92, 123, 232, .12), transparent 62%),
            #e9eff8;
    }

    .mobile-wrap {
        max-width: 1060px;
        padding: 16px 16px 128px;
    }

    .dashboard-wrap {
        max-width: 1060px;
        border-radius: 22px;
        overflow: hidden;
        box-shadow: 0 16px 34px rgba(21, 38, 71, .14);
        background: #d9d8ea;
        margin-top: 18px;
    }

    .dash-content {
        grid-template-columns: minmax(0, 1.35fr) minmax(0, .9fr);
        gap: 16px;
    }

    .dash-balance-shell,
    .dash-actions {
        grid-column: 1 / 2;
    }

    .dash-menu-grid {
        grid-column: 2 / 3;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        align-content: start;
    }

    .dash-menu-card {
        min-height: 112px;
    }

    .dash-banner {
        grid-column: 1 / -1;
    }

    .wallet-modern-wrap,
    .withdraw-modern-wrap,
    .setting-page-wrap,
    .bank-info-wrap,
    .apply-loan-wrap {
        max-width: 920px;
        margin: 0 auto;
    }

    .wallet-modern-card,
    .withdraw-modern-card,
    .setting-card,
    .section-card {
        box-shadow: 0 12px 26px rgba(17, 40, 83, .12);
    }

    .bottom-nav {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        width: min(620px, calc(100vw - 28px));
        border-radius: 18px 18px 0 0;
        border: 1px solid rgba(255, 255, 255, .2);
    }

    .bottom-nav .inner {
        max-width: none;
    }
}

@media (min-width: 1280px) {
    .auth-page {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 28px;
        padding: 20px 20px 36px;
    }

    .auth-theme-strip {
        width: min(640px, 54vw);
        margin-bottom: 0;
    }

    .auth-theme-strip .dash-slider-track {
        height: 340px;
    }

    .auth-card {
        width: min(470px, 38vw);
    }
}

/* ===== Liquid Glass Theme ===== */
:root {
    --glass-surface: rgba(255, 255, 255, .22);
    --glass-surface-strong: rgba(255, 255, 255, .3);
    --glass-border: rgba(255, 255, 255, .42);
    --glass-shadow: 0 12px 32px rgba(9, 35, 74, .2);
    --glass-glow: 0 0 0 1px rgba(255, 255, 255, .28) inset;
}

body.user-body {
    position: relative;
    overflow-x: hidden;
    background:
        radial-gradient(60rem 60rem at -12% -10%, rgba(140, 187, 255, .44), transparent 55%),
        radial-gradient(55rem 55rem at 110% -5%, rgba(107, 125, 255, .3), transparent 56%),
        radial-gradient(52rem 52rem at 50% 115%, rgba(57, 170, 255, .22), transparent 58%),
        linear-gradient(180deg, #e7f2ff 0%, #dbe9ff 42%, #e8f3ff 100%);
}

body.user-body::before,
body.user-body::after {
    content: '';
    position: fixed;
    z-index: 0;
    width: 38vmax;
    height: 38vmax;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(10px);
    opacity: .35;
}

body.user-body::before {
    top: -12vmax;
    left: -10vmax;
    background: radial-gradient(circle, rgba(106, 201, 255, .8), rgba(106, 201, 255, 0) 68%);
    animation: liquidBlobFloatA 16s ease-in-out infinite;
}

body.user-body::after {
    right: -10vmax;
    bottom: -14vmax;
    background: radial-gradient(circle, rgba(120, 142, 255, .72), rgba(120, 142, 255, 0) 66%);
    animation: liquidBlobFloatB 18s ease-in-out infinite;
}

@keyframes liquidBlobFloatA {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(24px, 20px, 0) scale(1.08); }
}

@keyframes liquidBlobFloatB {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(-20px, -22px, 0) scale(1.06); }
}

.user-shell {
    position: relative;
    z-index: 1;
}

.auth-card,
.section-card,
.dash-balance-shell,
.dash-menu-card,
.wallet-modern-card,
.withdraw-modern-card,
.setting-card,
.status-item,
.read-only-grid .row,
.bank-section-card,
.apply-loan-card,
.dash-banner,
.auth-theme-strip {
    position: relative;
    background: var(--glass-surface);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow), var(--glass-glow);
    backdrop-filter: blur(16px) saturate(145%);
    -webkit-backdrop-filter: blur(16px) saturate(145%);
}

.auth-card::before,
.section-card::before,
.dash-balance-shell::before,
.dash-menu-card::before,
.wallet-modern-card::before,
.withdraw-modern-card::before,
.setting-card::before,
.bank-section-card::before,
.apply-loan-card::before,
.auth-theme-strip::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(130deg, rgba(255, 255, 255, .32), rgba(255, 255, 255, .08) 45%, rgba(255, 255, 255, .18));
    mix-blend-mode: screen;
    opacity: .55;
}

.dash-topbar,
.setting-page-header,
.wallet-modern-header,
.withdraw-modern-header {
    background:
        linear-gradient(145deg, rgba(27, 83, 184, .78), rgba(61, 96, 227, .72)),
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, .24), transparent 55%);
    border: 1px solid rgba(183, 214, 255, .5);
    box-shadow: 0 14px 34px rgba(14, 38, 87, .28);
    backdrop-filter: blur(18px) saturate(145%);
    -webkit-backdrop-filter: blur(18px) saturate(145%);
}

.dash-topbar {
    border: 0;
}

.dash-balance-primary,
.wallet-modern-balance,
.wallet-modern-withdraw-btn,
.apply-loan-submit,
.bank-form .btn-primary,
.btn-primary {
    background:
        linear-gradient(135deg, rgba(48, 139, 255, .86), rgba(74, 84, 236, .9));
    border: 1px solid rgba(198, 225, 255, .45);
    box-shadow: 0 10px 26px rgba(23, 61, 138, .3), 0 0 0 1px rgba(255, 255, 255, .2) inset;
}

.dash-action-btn,
.wallet-modern-action-btn,
.setting-btn-blue {
    background:
        linear-gradient(145deg, rgba(67, 129, 241, .86), rgba(54, 104, 210, .88));
    border: 1px solid rgba(200, 226, 255, .42);
    box-shadow: 0 8px 20px rgba(26, 63, 132, .24), 0 0 0 1px rgba(255, 255, 255, .15) inset;
}

.setting-btn-red {
    background:
        linear-gradient(145deg, rgba(219, 56, 56, .9), rgba(162, 12, 12, .92));
    border: 1px solid rgba(255, 221, 221, .42);
}

.btn-outline {
    background: rgba(255, 255, 255, .28);
    border: 1px solid rgba(141, 174, 255, .5);
    color: #244b96;
    backdrop-filter: blur(10px) saturate(130%);
    -webkit-backdrop-filter: blur(10px) saturate(130%);
}

input,
select,
textarea {
    background: rgba(255, 255, 255, .44);
    border: 1px solid rgba(161, 193, 236, .9);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .4) inset;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    transform: none;
    z-index: 120;
    background:
        linear-gradient(180deg, rgba(20, 97, 184, .76), rgba(13, 71, 143, .78));
}

.bottom-nav a .nav-ico {
    background: rgba(255, 255, 255, .15);
    border-color: rgba(225, 238, 255, .75);
}

.bottom-nav a.active {
    background: rgba(255, 255, 255, .18);
}

.dash-menu-card,
.status-item,
.wallet-modern-stat-box {
    border-color: rgba(206, 223, 248, .9);
}

@media (prefers-reduced-motion: reduce) {
    body.user-body::before,
    body.user-body::after {
        animation: none;
    }
}

/* ===== Desktop Pro Layout ===== */
@media (min-width: 1200px) {
    .mobile-wrap {
        max-width: 1320px;
        padding: 22px 22px 132px;
    }

    .dashboard-wrap {
        max-width: 1320px;
        margin-top: 22px;
        border-radius: 26px;
    }

    .dash-topbar {
        padding: 22px 24px 26px;
    }

    .dash-profile-block {
        gap: 16px;
    }

    .dash-avatar {
        width: 82px;
        height: 82px;
    }

    .dash-avatar span {
        width: 62px;
        height: 62px;
    }

    .dash-content {
        grid-template-columns: minmax(0, 1.28fr) minmax(360px, .95fr);
        gap: 18px;
        padding: 18px;
    }

    .dash-balance-shell {
        padding: 16px;
        border-radius: 22px;
    }

    .dash-actions {
        gap: 12px;
    }

    .dash-action-btn {
        min-height: 82px;
        border-radius: 16px;
    }

    .dash-action-icon {
        width: 38px;
        height: 38px;
        border-radius: 12px;
    }

    .dash-action-svg {
        width: 20px;
        height: 20px;
    }

    .dash-action-text strong {
        font-size: 14px;
    }

    .dash-action-text small {
        font-size: 11px;
    }

    .dash-menu-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .dash-menu-card {
        min-height: 128px;
        border-radius: 18px;
        padding: 16px 10px;
    }

    .dash-menu-icon {
        width: 46px;
        height: 46px;
        border-radius: 14px;
    }

    .dash-menu-svg {
        width: 28px;
        height: 28px;
    }

    .dash-banner {
        border-radius: 20px;
    }

    .dash-banner img,
    .dash-slider-track {
        height: 320px;
    }

    .wallet-modern-wrap,
    .withdraw-modern-wrap,
    .setting-page-wrap,
    .bank-info-wrap,
    .apply-loan-wrap {
        max-width: 1120px;
    }

    .wallet-modern-header,
    .withdraw-modern-header,
    .setting-page-header {
        min-height: 68px;
        border-radius: 16px;
    }

    .wallet-modern-header h3,
    .withdraw-modern-header h3,
    .setting-page-header h3 {
        font-size: 24px;
    }

    .wallet-modern-card {
        border-radius: 18px;
        padding: 18px;
    }

    .wallet-modern-top {
        grid-template-columns: 1fr 210px;
        gap: 16px;
    }

    .wallet-modern-actions {
        gap: 10px;
    }

    .wallet-modern-action-btn {
        min-height: 44px;
        border-radius: 12px;
    }

    .wallet-modern-stats {
        margin-top: 14px;
        gap: 10px;
    }

    .wallet-modern-stat-box {
        border-radius: 12px;
        padding: 12px 10px;
    }

    .wallet-modern-balance {
        border-radius: 12px;
        min-height: 64px;
        display: grid;
        place-items: center;
    }

    .wallet-modern-withdraw-btn {
        min-height: 58px;
        display: grid;
        place-items: center;
        border-radius: 14px;
    }

    .withdraw-modern-wrap {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .withdraw-modern-wrap > .withdraw-modern-header,
    .withdraw-modern-wrap > .section-card {
        grid-column: 1 / -1;
    }

    .withdraw-modern-card {
        margin-top: 0;
    }

    .setting-card {
        border-radius: 18px;
        padding: 20px;
    }

    .setting-btn {
        min-height: 52px;
    }

    .auth-theme-strip .dash-slider-track {
        height: 360px;
    }
}

@media (min-width: 1600px) {
    .mobile-wrap,
    .dashboard-wrap {
        max-width: 1460px;
    }

    .dash-content {
        grid-template-columns: minmax(0, 1.35fr) minmax(420px, 1fr);
    }
}

@media (hover: hover) and (min-width: 1024px) {
    .dash-action-btn,
    .dash-menu-card,
    .wallet-modern-action-btn,
    .setting-btn,
    .withdraw-modern-card {
        transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
    }

    .dash-action-btn:hover,
    .wallet-modern-action-btn:hover,
    .setting-btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 14px 28px rgba(19, 60, 132, .26);
    }

    .dash-menu-card:hover,
    .withdraw-modern-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 16px 30px rgba(18, 49, 107, .2), var(--glass-glow);
        border-color: rgba(214, 231, 255, .92);
    }

    .bottom-nav a {
        transition: background .2s ease, color .2s ease;
    }

    .bottom-nav a:hover {
        background: rgba(255, 255, 255, .16);
        color: #fff;
    }
}
