/* Modern Auth — Register / Login / Dashboard helpers */
:root {
    --bg: #050A14;
    --ink: #EEF3F8;
    --muted: #8FA3B8;
    --cyan: #06B6D4;
    --gold: #FACC15;
    --line: rgba(148, 163, 184, 0.16);
    --font: 'Manrope', system-ui, sans-serif;
    --ui: 'Sora', sans-serif;
}

body.auth-body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font);
    color: var(--ink);
    background: #050A14;
    overflow-x: hidden;
}

.auth-stage {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 5.5rem 1.15rem 2.5rem;
}

.auth-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse at 20% 15%, rgba(6,182,212,.2), transparent 42%),
        radial-gradient(ellipse at 85% 85%, rgba(250,204,21,.1), transparent 40%),
        #050A14;
}
.auth-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: .35;
    animation: orbMove 12s ease-in-out infinite;
}
.auth-orb.a1 { width: 260px; height: 260px; background: #06B6D4; top: 8%; left: -60px; }
.auth-orb.a2 { width: 220px; height: 220px; background: #FACC15; bottom: 10%; right: -50px; animation-delay: -4s; }
@keyframes orbMove {
    0%, 100% { transform: translate(0,0); }
    50% { transform: translate(18px,-14px); }
}

/* ===== Register Card ===== */
.reg-card {
    width: min(100%, 420px);
    padding: 2rem 1.5rem 1.6rem;
    border-radius: 28px;
    border: 1px solid rgba(6,182,212,.28);
    background: linear-gradient(165deg, rgba(12,22,40,.92), rgba(7,14,26,.88));
    backdrop-filter: blur(18px);
    box-shadow:
        0 30px 80px rgba(0,0,0,.45),
        0 0 40px rgba(6,182,212,.08);
    text-align: center;
}

.reg-logo-wrap {
    width: 92px;
    height: 92px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    overflow: hidden;
    box-shadow:
        0 0 0 2px rgba(6,182,212,.55),
        0 0 0 5px rgba(250,204,21,.2),
        0 0 28px rgba(6,182,212,.4);
    animation: logoPulse 3s ease-in-out infinite;
}
.reg-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
@keyframes logoPulse {
    0%, 100% { box-shadow: 0 0 0 2px rgba(6,182,212,.45), 0 0 0 5px rgba(250,204,21,.15), 0 0 18px rgba(6,182,212,.3); }
    50% { box-shadow: 0 0 0 2px rgba(6,182,212,.8), 0 0 0 5px rgba(250,204,21,.35), 0 0 34px rgba(6,182,212,.55); }
}

.reg-title {
    margin: 0;
    font-family: var(--ui);
    font-weight: 800;
    font-size: 1.55rem;
    letter-spacing: -.02em;
}
.reg-sub {
    margin: .35rem 0 1.35rem;
    color: var(--muted);
    font-size: .9rem;
}

.reg-form { text-align: left; }
.reg-field { margin-bottom: .9rem; }

.reg-input {
    position: relative;
    display: flex;
    align-items: center;
    border-radius: 16px;
    border: 1px solid rgba(148,163,184,.2);
    background: rgba(0,0,0,.32);
    transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
}
.reg-input:focus-within {
    border-color: rgba(6,182,212,.65);
    background: rgba(6,182,212,.06);
    box-shadow: 0 0 0 4px rgba(6,182,212,.12), 0 0 24px rgba(6,182,212,.15);
}
.reg-ico {
    width: 48px;
    height: 52px;
    display: grid;
    place-items: center;
    color: var(--cyan);
    font-size: 1rem;
    flex-shrink: 0;
}
.reg-input input {
    flex: 1;
    border: 0;
    outline: none;
    background: transparent !important;
    color: #fff;
    font-family: var(--font);
    font-size: .95rem;
    font-weight: 500;
    padding: .95rem .4rem .95rem 0;
    min-width: 0;
    box-shadow: none !important;
}
.reg-input input::placeholder {
    color: #64748B;
    opacity: 1;
    font-weight: 500;
}
.reg-input input::-webkit-input-placeholder { color: #64748B; opacity: 1; }
.reg-input input::-moz-placeholder { color: #64748B; opacity: 1; }
.reg-input input:-ms-input-placeholder { color: #64748B; opacity: 1; }
.reg-input input:-webkit-autofill,
.reg-input input:-webkit-autofill:hover,
.reg-input input:-webkit-autofill:focus {
    -webkit-text-fill-color: #fff;
    caret-color: #fff;
    transition: background-color 9999s ease-in-out 0s;
    box-shadow: 0 0 0 1000px rgba(0,0,0,.32) inset !important;
}
.reg-eye {
    width: 46px;
    height: 52px;
    border: 0;
    background: transparent;
    color: #64748B;
    cursor: pointer;
    flex-shrink: 0;
}
.reg-eye:hover { color: var(--cyan); }

.reg-btn {
    position: relative;
    overflow: hidden;
    width: 100%;
    margin-top: .55rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .65rem;
    padding: 1.05rem 1.15rem;
    border: 0;
    font-family: var(--ui);
    font-weight: 750;
    font-size: clamp(.78rem, 2.8vw, .9rem);
    letter-spacing: .02em;
    cursor: pointer;
    color: #042F2E;
    background: linear-gradient(120deg, #0E7490, #06B6D4 45%, #67E8F9);
    box-shadow: 0 12px 30px rgba(6,182,212,.3);
    clip-path: polygon(14px 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
    transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
}
.reg-btn .btn-shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
    transform: translateX(-120%);
    animation: btnShine 3.2s ease-in-out infinite;
    pointer-events: none;
}
@keyframes btnShine {
    0%, 55% { transform: translateX(-120%); }
    75%, 100% { transform: translateX(120%); }
}
.reg-btn:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 0 34px rgba(6,182,212,.5), 0 14px 28px rgba(6,182,212,.28);
    filter: brightness(1.05);
}
.reg-btn:disabled { opacity: .65; cursor: wait; transform: none; filter: none; }
.reg-btn-gold {
    color: #1C1917;
    background: linear-gradient(120deg, #CA8A04, #FACC15 55%, #FEF08A);
    box-shadow: 0 12px 30px rgba(250,204,21,.25);
}
.reg-btn-gold:hover {
    box-shadow: 0 0 34px rgba(250,204,21,.5), 0 14px 28px rgba(250,204,21,.25);
}

/* Toast popup */
.ajt-toast-wrap {
    position: fixed;
    top: 1.1rem;
    right: 1.1rem;
    z-index: 100000;
    display: grid;
    gap: .65rem;
    width: min(360px, calc(100vw - 1.5rem));
    pointer-events: none;
}
.ajt-toast {
    pointer-events: auto;
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    padding: .95rem 1rem;
    border-radius: 16px;
    border: 1px solid rgba(6,182,212,.35);
    background: rgba(10, 18, 32, 0.96);
    backdrop-filter: blur(14px);
    box-shadow: 0 18px 40px rgba(0,0,0,.45);
    color: #E2E8F0;
    transform: translateX(110%);
    opacity: 0;
    animation: toastIn .4s ease forwards;
}
.ajt-toast.hide { animation: toastOut .35s ease forwards; }
.ajt-toast.ok { border-color: rgba(16,185,129,.45); }
.ajt-toast.err { border-color: rgba(239,68,68,.45); }
.ajt-toast-ico {
    width: 36px; height: 36px; border-radius: 50%;
    display: grid; place-items: center; flex-shrink: 0;
    background: rgba(6,182,212,.15); color: #06B6D4;
}
.ajt-toast.ok .ajt-toast-ico { background: rgba(16,185,129,.15); color: #34D399; }
.ajt-toast.err .ajt-toast-ico { background: rgba(239,68,68,.15); color: #F87171; }
.ajt-toast-body strong {
    display: block;
    font-family: var(--ui);
    font-size: .9rem;
    margin-bottom: .15rem;
}
.ajt-toast-body p {
    margin: 0;
    color: #94A3B8;
    font-size: .82rem;
    line-height: 1.4;
}
@keyframes toastIn {
    to { transform: translateX(0); opacity: 1; }
}
@keyframes toastOut {
    to { transform: translateX(110%); opacity: 0; }
}

.reg-remember {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    margin: .15rem 0 .85rem;
    color: var(--muted);
    font-size: .88rem;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
}
.reg-remember input {
    width: 16px;
    height: 16px;
    accent-color: var(--cyan);
}

.reg-foot {
    margin: 1.2rem 0 .55rem;
    text-align: center;
    color: var(--muted);
    font-size: .9rem;
}
.reg-foot a {
    color: var(--cyan);
    font-weight: 750;
}
.reg-foot a:hover { color: #67E8F9; }
.reg-home {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    color: var(--muted);
    font-size: .84rem;
    font-weight: 600;
}
.reg-home:hover { color: #fff; }

.auth-alert {
    display: none;
    margin-bottom: 1rem;
    padding: .75rem .9rem;
    border-radius: 12px;
    font-size: .88rem;
    text-align: left;
    border: 1px solid rgba(239,68,68,.35);
    background: rgba(239,68,68,.12);
    color: #fecaca;
}
.auth-alert.show { display: block; }
.auth-alert.ok {
    border-color: rgba(16,185,129,.35);
    background: rgba(16,185,129,.12);
    color: #a7f3d0;
}

/* Keep login page working with older classes */
.auth-card {
    position: relative;
    z-index: 1;
    width: min(100%, 440px);
    padding: 2rem 1.6rem 1.75rem;
    border-radius: 24px;
    border: 1px solid var(--line);
    background: rgba(10, 18, 32, 0.72);
    backdrop-filter: blur(18px);
    box-shadow: 0 30px 80px rgba(0,0,0,.45);
}
.auth-brand { text-align: center; margin-bottom: 1.5rem; }
.auth-brand img {
    height: 88px; width: 88px; object-fit: cover; border-radius: 50%;
    margin: 0 auto .85rem; display: block;
    box-shadow: 0 0 0 2px rgba(6,182,212,.5), 0 0 22px rgba(6,182,212,.3);
}
.auth-brand h1 { margin: 0; font-family: var(--ui); font-weight: 800; font-size: 1.55rem; }
.auth-brand p { margin: .4rem 0 0; color: var(--muted); font-size: .9rem; }
.auth-field { margin-bottom: 1rem; }
.auth-field label {
    display: block; font-size: .75rem; letter-spacing: .08em;
    text-transform: uppercase; color: var(--muted); margin-bottom: .4rem; font-weight: 600;
}
.auth-input { position: relative; }
.auth-input i.leading {
    position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
    color: var(--cyan); font-size: .9rem;
}
.auth-input input {
    width: 100%; border: 1px solid var(--line); background: rgba(0,0,0,.28);
    color: #fff; border-radius: 14px; padding: .9rem 2.7rem .9rem 2.55rem;
    font-size: .95rem; outline: none;
}
.auth-input input:focus {
    border-color: rgba(6,182,212,.55);
    box-shadow: 0 0 0 3px rgba(6,182,212,.15);
}
.auth-input .eye {
    position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
    border: 0; background: transparent; color: var(--muted); padding: .4rem; cursor: pointer;
}
.auth-row {
    display: flex; justify-content: space-between; align-items: center;
    gap: .75rem; margin: .25rem 0 1.1rem; flex-wrap: wrap;
}
.auth-check {
    display: inline-flex; align-items: center; gap: .55rem;
    color: var(--muted); font-size: .86rem; cursor: pointer;
}
.auth-check input { accent-color: var(--cyan); }
.auth-link { color: var(--gold); font-size: .86rem; font-weight: 600; }
.auth-submit {
    width: 100%; display: inline-flex; justify-content: center; align-items: center;
    gap: .55rem; padding: .95rem 1.2rem; border: 0; border-radius: 999px;
    font-weight: 700; font-size: .95rem;
    background: linear-gradient(120deg, #0891B2, #06B6D4 55%, #67E8F9);
    color: #042F2E; cursor: pointer;
}
.auth-submit:hover { box-shadow: 0 0 28px rgba(6,182,212,.45); }
.auth-submit:disabled { opacity: .65; cursor: wait; }
.auth-foot { text-align: center; margin: 1.25rem 0 0; color: var(--muted); font-size: .9rem; }
.auth-foot a { color: var(--cyan); font-weight: 700; }
.auth-back {
    position: absolute; top: 1.1rem; left: 1.1rem; z-index: 2;
    color: var(--muted); font-size: .88rem;
    display: inline-flex; align-items: center; gap: .4rem;
}

/* Dashboard bits used by dashboard.php */
body.dash-body {
    margin: 0; min-height: 100vh; font-family: var(--font);
    color: var(--ink); background: #050A14;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
}
.dash-bg {
    position: fixed; inset: 0; z-index: 0; pointer-events: none;
    background:
        radial-gradient(ellipse at 80% 0%, rgba(6,182,212,.14), transparent 40%),
        radial-gradient(ellipse at 10% 90%, rgba(250,204,21,.08), transparent 40%),
        #050A14;
}
.dash-wrap {
    position: relative; z-index: 1; width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: calc(var(--nav-h, 74px) + 1.25rem) 1.25rem 3rem;
    box-sizing: border-box;
}
.dash-hero {
    display: flex; justify-content: space-between; align-items: end;
    gap: 1rem; flex-wrap: wrap; margin-bottom: 1.75rem;
}
.dash-hero h1 {
    margin: 0; font-family: var(--ui); font-weight: 800;
    font-size: clamp(1.7rem, 4vw, 2.4rem);
}
.dash-hero p { margin: .4rem 0 0; color: var(--muted); }
.dash-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1rem; }
.dash-card {
    border: 1px solid var(--line); border-radius: 22px;
    background: rgba(10,18,32,.8); backdrop-filter: blur(14px); padding: 1.4rem 1.3rem;
}
.dash-card h2 { margin: 0 0 1rem; font-family: var(--ui); font-size: 1.05rem; font-weight: 750; }
.dash-balance {
    font-family: var(--ui); font-size: clamp(2rem, 5vw, 2.8rem); font-weight: 800;
    background: linear-gradient(100deg, #67E8F9, #06B6D4 45%, #FACC15);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.dash-meta { margin-top: 1rem; display: grid; gap: .65rem; }
.dash-meta div {
    display: flex; justify-content: space-between; gap: 1rem;
    padding: .7rem .8rem; border-radius: 12px;
    background: rgba(255,255,255,.03); border: 1px solid var(--line); font-size: .9rem;
}
.dash-meta span { color: var(--muted); }
.dash-actions { display: grid; gap: .7rem; }
.dash-actions a {
    display: flex; align-items: center; justify-content: space-between;
    padding: .95rem 1rem; border-radius: 14px; border: 1px solid var(--line);
    background: rgba(255,255,255,.03); color: #fff; font-weight: 600;
}
.dash-actions a:hover {
    border-color: rgba(6,182,212,.45); transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(6,182,212,.12);
}
.dash-actions .danger:hover {
    border-color: rgba(239,68,68,.45);
    box-shadow: 0 10px 28px rgba(239,68,68,.12);
}
.dash-note { margin-top: 1rem; color: var(--muted); font-size: .88rem; line-height: 1.55; }
.dash-clean {
    display: grid;
    place-items: center;
    min-height: calc(100vh - 74px);
    text-align: center;
}
.dash-welcome {
    max-width: 520px;
    padding: 2rem 1rem;
}
.dash-kicker {
    margin: 0 0 .65rem;
    font-family: var(--ui);
    font-size: .75rem;
    letter-spacing: .22em;
    color: var(--cyan);
    font-weight: 700;
}
.dash-welcome h1 {
    margin: 0 0 .75rem;
    font-family: var(--ui);
    font-weight: 800;
    font-size: clamp(1.8rem, 5vw, 2.6rem);
}
.dash-welcome p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

/* ===== Dashboard balance home (JazzCash-style purple card) ===== */
.dash-home {
    width: 100%;
    max-width: min(460px, 100%);
    margin-left: auto;
    margin-right: auto;
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
    padding-bottom: max(2rem, env(safe-area-inset-bottom));
}
.bal-hello {
    display: block;
    margin-bottom: clamp(1.1rem, 3.2vw, 1.4rem);
    min-width: 0;
    padding: clamp(.85rem, 2.8vw, 1.05rem) clamp(.9rem, 3vw, 1.1rem);
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,.08);
    background:
        linear-gradient(135deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
    box-shadow: 0 12px 30px rgba(0,0,0,.18);
    position: relative;
    overflow: hidden;
}
.bal-hello::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    border-radius: 20px 0 0 20px;
    background: linear-gradient(180deg, #9B7BFF, #6C4CE0);
}
.bal-hello.tone-morning::before { background: linear-gradient(180deg, #FDE68A, #F59E0B); }
.bal-hello.tone-afternoon::before { background: linear-gradient(180deg, #67E8F9, #06B6D4); }
.bal-hello.tone-evening::before { background: linear-gradient(180deg, #C4B5FD, #7C3AED); }
.bal-hello.tone-night::before { background: linear-gradient(180deg, #93C5FD, #312E81); }
.bal-hello-text {
    min-width: 0;
}
.bal-hello-greet {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: clamp(.78rem, 2.7vw, .88rem);
    font-weight: 650;
    color: #A5B4FC;
    letter-spacing: .02em;
}
.bal-hello.tone-morning .bal-hello-greet { color: #FCD34D; }
.bal-hello.tone-afternoon .bal-hello-greet { color: #67E8F9; }
.bal-hello.tone-evening .bal-hello-greet { color: #C4B5FD; }
.bal-hello.tone-night .bal-hello-greet { color: #93C5FD; }
.bal-hello-greet i {
    font-size: .95em;
}
.bal-hello h1 {
    margin: .28rem 0 0;
    font-family: var(--ui);
    font-weight: 750;
    font-size: clamp(1.05rem, 4.2vw, 1.28rem);
    letter-spacing: -.02em;
    color: rgba(255,255,255,.72);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.bal-hello h1 span {
    color: #fff;
    font-weight: 800;
}

.bal-card {
    position: relative;
    overflow: hidden;
    width: 100%;
    border-radius: clamp(18px, 4.5vw, 24px);
    padding: clamp(1.35rem, 4vw, 1.75rem) clamp(1rem, 3.5vw, 1.35rem) clamp(1.15rem, 3.5vw, 1.35rem);
    text-align: center;
    color: #fff;
    background: linear-gradient(180deg, #7B57E0 0%, #6A45D4 48%, #5B38C4 100%);
    box-shadow: 0 22px 50px rgba(91, 56, 196, .42);
}
.bal-account {
    margin: 0 0 clamp(.85rem, 3vw, 1.1rem);
    font-size: clamp(.84rem, 2.8vw, .95rem);
    font-weight: 500;
    color: rgba(255,255,255,.92);
    letter-spacing: .01em;
}
.bal-amount-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    margin-bottom: clamp(.85rem, 2.8vw, 1.05rem);
    position: relative;
    z-index: 2;
}
.bal-amount-wrap {
    min-width: 0;
}
.bal-amount {
    margin: 0;
    display: inline-flex;
    align-items: baseline;
    flex-wrap: wrap;
    justify-content: center;
    gap: .2rem;
    line-height: 1;
    font-family: var(--ui);
    color: #fff;
}
.bal-amount-mask {
    display: none !important;
}
.bal-amount-row.is-masked .bal-amount-real {
    display: none !important;
}
.bal-amount-row.is-masked .bal-amount-mask {
    display: inline-flex !important;
}
.bal-rs {
    font-size: clamp(1.15rem, 4.5vw, 1.55rem);
    font-weight: 600;
    margin-right: .15rem;
}
.bal-int {
    font-size: clamp(1.85rem, 8.5vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -.03em;
}
.bal-dec {
    font-size: clamp(.95rem, 3.8vw, 1.2rem);
    font-weight: 600;
    color: rgba(255,255,255,.55);
    margin-left: .05rem;
    align-self: flex-start;
    margin-top: .28em;
}
.bal-eye-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.28);
    background: rgba(255,255,255,.14);
    color: #fff;
    display: grid;
    place-items: center;
    padding: 0;
    cursor: pointer;
    flex-shrink: 0;
    font-size: .95rem;
    position: relative;
    z-index: 5;
    pointer-events: auto;
    transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
    -webkit-tap-highlight-color: transparent;
}
.bal-eye-btn i {
    pointer-events: none;
}
.bal-eye-btn:hover,
.bal-eye-btn:focus-visible {
    background: rgba(255,255,255,.24);
    transform: scale(1.06);
    outline: none;
}
.bal-eye-btn.is-hidden {
    background: rgba(0,0,0,.22);
}

.bal-ref-block {
    display: grid;
    gap: .55rem;
    margin: clamp(1rem, 3vw, 1.25rem) auto 0;
    max-width: 100%;
    text-align: left;
}
.bal-ref-item {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .7rem .75rem;
    border-radius: 14px;
    background: rgba(0,0,0,.18);
    border: 1px solid rgba(255,255,255,.14);
    min-width: 0;
}
.bal-ref-item.soft {
    background: rgba(255,255,255,.08);
}
.bal-ref-ico {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    color: #5B38C4;
    background: rgba(255,255,255,.92);
    font-size: .85rem;
}
.bal-ref-body {
    min-width: 0;
    flex: 1;
}
.bal-ref-body em {
    display: block;
    font-style: normal;
    font-size: .64rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: rgba(255,255,255,.65);
    margin-bottom: .15rem;
    font-weight: 600;
}
.bal-ref-body strong {
    display: block;
    font-size: clamp(.76rem, 2.7vw, .84rem);
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.bal-copy {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,.22);
    background: rgba(255,255,255,.12);
    color: #fff;
    cursor: pointer;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    position: relative;
    z-index: 5;
    pointer-events: auto;
    -webkit-tap-highlight-color: transparent;
}
.bal-copy i {
    pointer-events: none;
}
.bal-copy:active {
    transform: scale(.94);
}

.bal-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .55rem;
    max-width: 300px;
    margin: 0 auto;
}
.bal-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    min-height: 36px;
    padding: .45rem .7rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-family: var(--font);
    font-weight: 700;
    font-size: clamp(.75rem, 2.6vw, .82rem);
    position: relative;
    overflow: hidden;
    isolation: isolate;
    transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
    -webkit-tap-highlight-color: transparent;
    animation: balPillIn .55s ease both;
}
.bal-pill:nth-child(2) {
    animation-delay: .08s;
}
.bal-pill::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.28) 48%, transparent 66%);
    transform: translateX(-120%);
    animation: balPillShine 2.8s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}
.bal-pill > * {
    position: relative;
    z-index: 1;
}
.bal-pill:hover {
    transform: translateY(-2px) scale(1.02);
    filter: brightness(1.06);
}
.bal-pill-ico {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    font-size: .62rem;
}
.bal-pill-deposit {
    color: #ECFDF5;
    background: linear-gradient(135deg, #059669 0%, #10B981 55%, #34D399 100%);
    box-shadow: 0 8px 18px rgba(16, 185, 129, .32);
}
.bal-pill-deposit .bal-pill-ico {
    background: rgba(255,255,255,.22);
    color: #fff;
}
.bal-pill-withdraw {
    color: #EFF6FF;
    background: linear-gradient(135deg, #2563EB 0%, #3B82F6 55%, #60A5FA 100%);
    box-shadow: 0 8px 18px rgba(37, 99, 235, .32);
}
.bal-pill-withdraw .bal-pill-ico {
    background: rgba(255,255,255,.22);
    color: #fff;
}
@keyframes balPillIn {
    from { opacity: 0; transform: translateY(8px) scale(.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes balPillShine {
    0%, 55% { transform: translateX(-120%); }
    75% { transform: translateX(120%); }
    100% { transform: translateX(120%); }
}

.bal-pop {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: none;
    place-items: center;
    padding: 1.25rem;
    background: rgba(5, 10, 20, .58);
    backdrop-filter: blur(5px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .22s ease;
}
.bal-pop.is-open {
    display: grid;
    opacity: 1;
    pointer-events: auto;
}
.bal-pop-card {
    width: min(300px, 100%);
    text-align: center;
    padding: 1.4rem 1.2rem 1.15rem;
    border-radius: 22px;
    border: 1px solid rgba(123, 87, 224, .35);
    background: linear-gradient(165deg, #141B2D, #0C1220);
    box-shadow: 0 24px 60px rgba(0,0,0,.45);
    transform: translateY(10px) scale(.96);
    transition: transform .22s ease;
}
.bal-pop.is-open .bal-pop-card {
    transform: translateY(0) scale(1);
}
.bal-pop-ico {
    width: 56px;
    height: 56px;
    margin: 0 auto .85rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 1.45rem;
    color: #10B981;
    background: rgba(16, 185, 129, .14);
    box-shadow: 0 0 0 6px rgba(16, 185, 129, .08);
}
.bal-pop-card h3 {
    margin: 0 0 .35rem;
    font-family: var(--ui);
    font-size: 1.15rem;
    font-weight: 800;
    color: #fff;
}
.bal-pop-card p {
    margin: 0 0 1.1rem;
    color: var(--muted);
    font-size: .9rem;
    line-height: 1.45;
}
.bal-pop-ok {
    width: 100%;
    min-height: 44px;
    border: 0;
    border-radius: 999px;
    font-family: var(--ui);
    font-weight: 750;
    font-size: .92rem;
    color: #fff;
    cursor: pointer;
    background: linear-gradient(120deg, #7B57E0, #6C4CE0);
    box-shadow: 0 10px 24px rgba(108, 76, 224, .35);
}

/* ===== Quick menu under balance card ===== */
.dash-menu {
    margin-top: 1.25rem;
    width: 100%;
}
.dash-menu-title {
    margin: 0 0 .85rem;
    font-family: var(--ui);
    font-size: .78rem;
    font-weight: 750;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--muted);
}
.dash-menu-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .7rem;
}
.dash-menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: .55rem;
    min-height: 96px;
    padding: .85rem .45rem .75rem;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,.08);
    background:
        linear-gradient(160deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
    box-shadow: 0 10px 24px rgba(0,0,0,.16);
    text-align: center;
    transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
    animation: dashMenuIn .45s ease both;
}
.dash-menu-item:nth-child(1) { animation-delay: .02s; }
.dash-menu-item:nth-child(2) { animation-delay: .05s; }
.dash-menu-item:nth-child(3) { animation-delay: .08s; }
.dash-menu-item:nth-child(4) { animation-delay: .11s; }
.dash-menu-item:nth-child(5) { animation-delay: .14s; }
.dash-menu-item:nth-child(6) { animation-delay: .17s; }
.dash-menu-item:nth-child(7) { animation-delay: .2s; }
.dash-menu-item:hover {
    transform: translateY(-3px);
    border-color: rgba(6,182,212,.28);
    box-shadow: 0 14px 30px rgba(6,182,212,.12);
    color: #fff;
}
.dash-menu-ico {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-size: 1rem;
    color: #fff;
    box-shadow: 0 8px 18px rgba(0,0,0,.2);
}
.dash-menu-label {
    font-family: var(--font);
    font-size: .68rem;
    font-weight: 700;
    line-height: 1.25;
    color: rgba(244,247,251,.9);
}
.dash-menu-wide {
    grid-column: span 2;
    flex-direction: row;
    justify-content: center;
    gap: .7rem;
    min-height: 72px;
    padding: .85rem 1rem;
}
.dash-menu-wide .dash-menu-label {
    font-size: .8rem;
}

.tone-emerald .dash-menu-ico { background: linear-gradient(145deg, #059669, #34D399); }
.tone-sky .dash-menu-ico { background: linear-gradient(145deg, #0284C7, #38BDF8); }
.tone-violet .dash-menu-ico { background: linear-gradient(145deg, #6D28D9, #A78BFA); }
.tone-amber .dash-menu-ico { background: linear-gradient(145deg, #D97706, #FBBF24); color: #1F2937; }
.tone-cyan .dash-menu-ico { background: linear-gradient(145deg, #0E7490, #22D3EE); }
.tone-rose .dash-menu-ico { background: linear-gradient(145deg, #E11D48, #FB7185); }
.tone-teal .dash-menu-ico { background: linear-gradient(145deg, #0F766E, #2DD4BF); }
.tone-indigo .dash-menu-ico { background: linear-gradient(145deg, #4338CA, #818CF8); }
.tone-lime .dash-menu-ico { background: linear-gradient(145deg, #65A30D, #A3E635); color: #14532D; }
.tone-green .dash-menu-ico { background: linear-gradient(145deg, #15803D, #4ADE80); }

.dash-support {
    margin-top: 1.5rem;
    padding-bottom: .5rem;
}
.dash-support-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    max-width: 100%;
}
.dash-support-grid .dash-menu-item {
    min-height: 102px;
}

.help-docs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .7rem;
}
.help-doc-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    min-height: 96px;
    padding: .85rem .5rem;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,.09);
    background: linear-gradient(155deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
    color: #fff;
    font-family: var(--font);
    font-weight: 750;
    font-size: .82rem;
    cursor: pointer;
}
.help-doc-ico {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-size: 1rem;
    color: #fff;
}
.help-doc-btn.tone-amber .help-doc-ico {
    background: linear-gradient(145deg, #D97706, #FBBF24);
    color: #1F2937;
}
.help-doc-btn.tone-cyan .help-doc-ico {
    background: linear-gradient(145deg, #0E7490, #22D3EE);
}

/* ===== Account Live Statistics ===== */
.live-stats {
    margin-top: 1.35rem;
    width: 100%;
}
.live-stats-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin-bottom: .85rem;
}
.live-stats-head .dash-menu-title {
    margin: 0;
}
.live-stats-badge {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .28rem .7rem;
    border-radius: 999px;
    font-size: .68rem;
    font-weight: 750;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #6EE7B7;
    background: rgba(16, 185, 129, .12);
    border: 1px solid rgba(16, 185, 129, .28);
}
.live-stats-badge i {
    font-size: .45rem;
    color: #34D399;
    animation: livePulse 1.4s ease-in-out infinite;
}
.live-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .7rem;
}
.live-stat {
    display: flex;
    align-items: center;
    gap: .75rem;
    min-width: 0;
    padding: .9rem .85rem;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,.08);
    background:
        linear-gradient(145deg, rgba(255,255,255,.07), rgba(255,255,255,.02));
    box-shadow: 0 12px 28px rgba(0,0,0,.18);
    position: relative;
    overflow: hidden;
    animation: dashMenuIn .45s ease both;
}
.live-stat:nth-child(1) { animation-delay: .02s; }
.live-stat:nth-child(2) { animation-delay: .05s; }
.live-stat:nth-child(3) { animation-delay: .08s; }
.live-stat:nth-child(4) { animation-delay: .11s; }
.live-stat:nth-child(5) { animation-delay: .14s; }
.live-stat:nth-child(6) { animation-delay: .17s; }
.live-stat::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    border-radius: 18px 0 0 18px;
    background: currentColor;
    opacity: .85;
}
.live-stat-ico {
    width: 42px;
    height: 42px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    font-size: .95rem;
    color: #fff;
    box-shadow: 0 8px 18px rgba(0,0,0,.2);
}
.live-stat-body {
    min-width: 0;
    flex: 1;
}
.live-stat-body em {
    display: block;
    font-style: normal;
    font-size: .68rem;
    font-weight: 650;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: rgba(255,255,255,.55);
    margin-bottom: .2rem;
}
.live-stat-body strong {
    display: block;
    font-family: var(--ui);
    font-size: clamp(.92rem, 3.4vw, 1.05rem);
    font-weight: 800;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.live-stat.stat-deposit { color: #34D399; }
.live-stat.stat-deposit .live-stat-ico { background: linear-gradient(145deg, #059669, #34D399); }
.live-stat.stat-withdraw { color: #60A5FA; }
.live-stat.stat-withdraw .live-stat-ico { background: linear-gradient(145deg, #2563EB, #60A5FA); }
.live-stat.stat-pend-dep { color: #FBBF24; }
.live-stat.stat-pend-dep .live-stat-ico { background: linear-gradient(145deg, #D97706, #FBBF24); color: #1F2937; }
.live-stat.stat-pend-wd { color: #FB7185; }
.live-stat.stat-pend-wd .live-stat-ico { background: linear-gradient(145deg, #E11D48, #FB7185); }
.live-stat.stat-team { color: #22D3EE; }
.live-stat.stat-team .live-stat-ico { background: linear-gradient(145deg, #0E7490, #22D3EE); }
.live-stat.stat-commission { color: #A78BFA; }
.live-stat.stat-commission .live-stat-ico { background: linear-gradient(145deg, #6D28D9, #A78BFA); }

@keyframes livePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: .45; transform: scale(.75); }
}

button.dash-menu-item {
    width: 100%;
    font: inherit;
    color: inherit;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.support-pop {
    position: fixed;
    inset: 0;
    z-index: 3100;
    display: none;
    place-items: center;
    padding: 1.25rem;
    background: rgba(5, 10, 20, .62);
    backdrop-filter: blur(5px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .22s ease;
}
.support-pop.is-open {
    display: grid;
    opacity: 1;
    pointer-events: auto;
}
.support-pop-card {
    position: relative;
    width: min(420px, 100%);
    max-height: min(80vh, 640px);
    overflow: auto;
    text-align: center;
    padding: 1.35rem 1.15rem 1.2rem;
    border-radius: 22px;
    border: 1px solid rgba(6,182,212,.28);
    background: linear-gradient(165deg, #141B2D, #0C1220);
    box-shadow: 0 24px 60px rgba(0,0,0,.45);
    transform: translateY(10px) scale(.96);
    transition: transform .22s ease;
}
.support-pop.is-open .support-pop-card {
    transform: translateY(0) scale(1);
}
.support-pop-close {
    position: absolute;
    top: .75rem;
    right: .75rem;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 10px;
    background: rgba(255,255,255,.06);
    color: var(--muted);
    cursor: pointer;
}
.support-pop-close:hover {
    color: #fff;
    background: rgba(239,68,68,.2);
}
.support-pop-card h3 {
    margin: 0 0 .85rem;
    font-family: var(--ui);
    font-size: 1.15rem;
    font-weight: 800;
    color: #fff;
}
.support-pop-msg {
    margin: 0;
    color: var(--muted);
    font-size: .92rem;
    line-height: 1.5;
}
.support-pop-media {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.1);
    background: rgba(0,0,0,.25);
}
.support-pop-media img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 60vh;
    object-fit: contain;
}

/* ===== Promo too-late popup ===== */
.promo-late-emoji {
    font-size: 3rem;
    line-height: 1;
    margin: 0 auto .85rem;
    animation: promoLateBounce .55s ease;
}
@keyframes promoLateBounce {
    0% { transform: scale(.6); opacity: 0; }
    60% { transform: scale(1.08); opacity: 1; }
    100% { transform: scale(1); }
}
.promo-late-card h3 {
    color: #FACC15;
}

/* ===== App install popup ===== */
.app-install-pop {
    position: fixed;
    inset: 0;
    z-index: 3200;
    display: none;
    place-items: center;
    padding: 1.25rem;
    background: rgba(5, 10, 20, .62);
    backdrop-filter: blur(6px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .22s ease;
}
.app-install-pop.is-open {
    display: grid;
    opacity: 1;
    pointer-events: auto;
}
.app-install-card {
    width: min(340px, 100%);
    text-align: center;
    padding: 1.6rem 1.25rem 1.25rem;
    border-radius: 24px;
    border: 1px solid rgba(6,182,212,.3);
    background: linear-gradient(165deg, #151E33, #0B1220);
    box-shadow: 0 28px 70px rgba(0,0,0,.5);
    transform: translateY(12px) scale(.96);
    transition: transform .22s ease;
}
.app-install-pop.is-open .app-install-card {
    transform: translateY(0) scale(1);
}
.app-install-logo {
    width: 84px;
    height: 84px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    padding: .35rem;
    background: radial-gradient(circle at 35% 30%, rgba(6,182,212,.35), rgba(7,17,31,.95));
    box-shadow:
        0 0 0 2px rgba(6,182,212,.4),
        0 0 0 5px rgba(250,204,21,.15),
        0 12px 28px rgba(6,182,212,.3);
    overflow: hidden;
}
.app-install-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}
.app-install-card h3 {
    margin: 0 0 .4rem;
    font-family: var(--ui);
    font-size: 1.15rem;
    font-weight: 800;
    color: #fff;
}
.app-install-card > p {
    margin: 0 0 1.25rem;
    color: var(--muted);
    font-size: .9rem;
    line-height: 1.5;
}
.app-install-actions {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: .55rem;
}
.app-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    min-height: 44px;
    padding: .7rem .85rem;
    border-radius: 999px;
    border: 0;
    font-family: var(--ui);
    font-weight: 750;
    font-size: .88rem;
    cursor: pointer;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease;
}
.app-btn:hover {
    transform: translateY(-1px);
    color: inherit;
}
.app-btn-cancel {
    background: rgba(255,255,255,.08);
    color: #E2E8F0;
    border: 1px solid rgba(255,255,255,.12);
}
.app-btn-install {
    color: #042F2E;
    background: linear-gradient(120deg, #06B6D4, #67E8F9);
    box-shadow: 0 10px 24px rgba(6,182,212,.3);
}

/* ===== Help Center page ===== */
.help-page {
    width: 100%;
    max-width: min(460px, 100%);
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    box-sizing: border-box;
    overflow-x: clip;
}
.help-hero {
    text-align: center;
    margin-bottom: clamp(1rem, 3vw, 1.35rem);
    padding: clamp(.85rem, 3vw, 1.1rem) clamp(.8rem, 3vw, 1rem) clamp(.95rem, 3vw, 1.2rem);
    border-radius: clamp(16px, 4vw, 22px);
    border: 1px solid rgba(255,255,255,.08);
    background: linear-gradient(160deg, rgba(6,182,212,.12), rgba(255,255,255,.02));
    box-sizing: border-box;
}
.help-hero-ico {
    width: clamp(48px, 12vw, 58px);
    height: clamp(48px, 12vw, 58px);
    margin: 0 auto .75rem;
    border-radius: clamp(14px, 3.5vw, 18px);
    display: grid;
    place-items: center;
    font-size: clamp(1.05rem, 4vw, 1.3rem);
    color: #042F2E;
    background: linear-gradient(135deg, #67E8F9, #06B6D4);
    box-shadow: 0 12px 28px rgba(6,182,212,.28);
}
.help-kicker {
    margin: 0 0 .35rem;
    font-size: clamp(.64rem, 2.4vw, .72rem);
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--cyan);
    font-weight: 700;
}
.help-hero h1 {
    margin: 0 0 .45rem;
    font-family: var(--ui);
    font-weight: 800;
    font-size: clamp(1.25rem, 5.5vw, 1.75rem);
}
.help-hero p {
    margin: 0 auto;
    max-width: 34ch;
    color: var(--muted);
    font-size: clamp(.8rem, 3.2vw, .9rem);
    line-height: 1.55;
}
.help-grid {
    display: grid;
    gap: clamp(.7rem, 2.5vw, .85rem);
    text-align: left;
    width: 100%;
    min-width: 0;
}
/* Help Center - unified modern angled cards (Owner style for all) */
.hc-card {
    position: relative;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    text-align: left;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    font: inherit;
    color: inherit;
    cursor: default;
    box-sizing: border-box;
    overflow: hidden;
}
.hc-frame {
    position: absolute;
    inset: 0;
    border-radius: 20px;
    clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
    background: linear-gradient(125deg, var(--frame-a), var(--frame-b) 45%, var(--frame-c));
    box-shadow: 0 16px 36px color-mix(in srgb, var(--accent) 28%, transparent);
}
.hc-frame::after {
    content: '';
    position: absolute;
    inset: 1.6px;
    border-radius: 18px;
    clip-path: polygon(0 0, calc(100% - 18.5px) 0, 100% 18.5px, 100% 100%, 18.5px 100%, 0 calc(100% - 18.5px));
    background:
        radial-gradient(110% 80% at 0% 0%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 55%),
        linear-gradient(165deg, #1A1520, #0B1220);
}
.hc-inner {
    position: relative;
    z-index: 1;
    padding: clamp(.9rem, 3vw, 1.1rem) clamp(.85rem, 3vw, 1rem) clamp(.95rem, 3vw, 1.15rem);
    min-width: 0;
    box-sizing: border-box;
}
.hc-top {
    display: flex;
    align-items: center;
    gap: clamp(.55rem, 2.5vw, .85rem);
    margin-bottom: .55rem;
    min-width: 0;
}
.hc-top > div {
    min-width: 0;
    flex: 1;
}
.hc-ico {
    width: 50px;
    height: 50px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 14px;
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
    font-size: 1.15rem;
    color: var(--ico-fg, #fff);
    background: linear-gradient(145deg, var(--ico-a), var(--ico-b));
    box-shadow: 0 10px 22px color-mix(in srgb, var(--accent) 35%, transparent);
}
.hc-top em,
.hc-doc-text em {
    display: block;
    font-style: normal;
    font-size: .7rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--kicker, #94A3B8);
    margin-bottom: .2rem;
    font-weight: 750;
}
.hc-top strong,
.hc-doc-text strong {
    display: block;
    font-size: 1.02rem;
    font-weight: 800;
    color: #fff;
    word-break: break-word;
    font-family: var(--ui);
}
.hc-note {
    margin: 0 0 .9rem;
    font-size: .78rem;
    color: #94A3B8;
    line-height: 1.45;
}
.hc-btn {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: .45rem .55rem;
    width: 100%;
    max-width: 100%;
    min-height: 48px;
    padding: .8rem clamp(.65rem, 3vw, 1rem);
    overflow: hidden;
    border: 0;
    text-decoration: none;
    text-align: center;
    color: var(--btn-fg, #fff);
    font-family: var(--ui);
    font-weight: 800;
    font-size: clamp(.8rem, 3.2vw, .9rem);
    line-height: 1.25;
    box-sizing: border-box;
    clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
    background: linear-gradient(105deg, var(--btn-a), var(--btn-b) 45%, var(--btn-c));
    box-shadow: 0 12px 28px color-mix(in srgb, var(--accent) 32%, transparent);
    transition: filter .2s ease, transform .2s ease;
}
.hc-btn:hover {
    filter: brightness(1.06);
    transform: translateY(-2px);
    color: var(--btn-fg, #fff);
}
.hc-btn:active { transform: translateY(0); }
.hc-btn-glow {
    position: absolute;
    inset: -40% auto -40% -30%;
    width: 38%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.4), transparent);
    animation: hcShine 2.4s ease infinite;
    z-index: 0;
}
.hc-btn i,
.hc-btn span { position: relative; z-index: 1; }
@keyframes hcShine {
    0% { transform: translateX(0); }
    100% { transform: translateX(320%); }
}

/* Tone palettes */
.hc-card.tone-admin {
    --accent: #22C55E;
    --frame-a: #4ADE80; --frame-b: #16A34A; --frame-c: #14532D;
    --ico-a: #4ADE80; --ico-b: #15803D; --ico-fg: #052E16;
    --kicker: #86EFAC;
    --btn-a: #15803D; --btn-b: #22C55E; --btn-c: #4ADE80;
    --btn-fg: #052E16;
}
.hc-card.tone-owner {
    --accent: #F59E0B;
    --frame-a: #FBBF24; --frame-b: #D97706; --frame-c: #92400E;
    --ico-a: #FBBF24; --ico-b: #D97706; --ico-fg: #422006;
    --kicker: #FCD34D;
    --btn-a: #D97706; --btn-b: #F59E0B; --btn-c: #FBBF24;
    --btn-fg: #422006;
}
.hc-card.tone-group {
    --accent: #3B82F6;
    --frame-a: #60A5FA; --frame-b: #2563EB; --frame-c: #1E3A8A;
    --ico-a: #60A5FA; --ico-b: #1D4ED8; --ico-fg: #EFF6FF;
    --kicker: #93C5FD;
    --btn-a: #1D4ED8; --btn-b: #3B82F6; --btn-c: #60A5FA;
    --btn-fg: #EFF6FF;
}
.hc-card.tone-channel {
    --accent: #38BDF8;
    --frame-a: #7DD3FC; --frame-b: #0284C7; --frame-c: #0C4A6E;
    --ico-a: #38BDF8; --ico-b: #0369A1; --ico-fg: #F0F9FF;
    --kicker: #7DD3FC;
    --btn-a: #0369A1; --btn-b: #0EA5E9; --btn-c: #38BDF8;
    --btn-fg: #F0F9FF;
}
.hc-card.tone-fbr {
    --accent: #F59E0B;
    --frame-a: #FCD34D; --frame-b: #D97706; --frame-c: #78350F;
    --ico-a: #FBBF24; --ico-b: #B45309; --ico-fg: #422006;
    --kicker: #FCD34D;
}
.hc-card.tone-secp {
    --accent: #06B6D4;
    --frame-a: #67E8F9; --frame-b: #0891B2; --frame-c: #164E63;
    --ico-a: #22D3EE; --ico-b: #0E7490; --ico-fg: #083344;
    --kicker: #67E8F9;
}

/* FBR / SECP doc row */
.hc-docs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(.55rem, 2vw, .7rem);
    width: 100%;
    min-width: 0;
}
.hc-card.hc-doc {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}
.hc-doc-inner {
    display: flex;
    align-items: center;
    gap: clamp(.45rem, 2vw, .75rem);
    padding: clamp(.8rem, 2.8vw, 1rem) clamp(.65rem, 2.5vw, .9rem);
    min-height: clamp(76px, 22vw, 88px);
    box-sizing: border-box;
}
.hc-doc .hc-ico {
    width: 44px;
    height: 44px;
    font-size: 1.05rem;
}
.hc-doc-text {
    flex: 1;
    min-width: 0;
    text-align: left;
}
.hc-doc-text strong {
    font-size: .95rem;
}
.hc-doc-go {
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 10px;
    clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
    color: var(--ico-fg, #fff);
    background: linear-gradient(145deg, var(--ico-a), var(--ico-b));
    font-size: .85rem;
    transition: transform .2s ease, filter .2s ease;
}
.hc-card.hc-doc:hover .hc-doc-go {
    filter: brightness(1.08);
    transform: translateX(2px);
}

.help-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    margin: 0 auto clamp(1rem, 3vw, 1.25rem);
    padding: .75rem clamp(1rem, 4vw, 1.2rem);
    border-radius: 999px;
    font-weight: 700;
    font-size: clamp(.82rem, 3vw, .88rem);
    color: #E2E8F0;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.05);
    max-width: 100%;
    box-sizing: border-box;
    text-decoration: none;
}
.help-back:hover {
    color: #fff;
    border-color: rgba(6,182,212,.35);
    background: rgba(6,182,212,.1);
}

/* Help Center responsive */
@media (max-width: 480px) {
    .help-page.dash-home,
    .help-page {
        max-width: 100%;
        padding-left: max(.75rem, env(safe-area-inset-left));
        padding-right: max(.75rem, env(safe-area-inset-right));
    }
    .hc-ico {
        width: 44px;
        height: 44px;
        font-size: 1.05rem;
    }
    .hc-top strong,
    .hc-doc-text strong {
        font-size: .92rem;
    }
    .hc-note {
        font-size: .74rem;
        margin-bottom: .75rem;
    }
    .hc-btn {
        min-height: 46px;
        gap: .4rem;
    }
    .hc-btn .fa-arrow-right {
        display: none;
    }
    .hc-doc .hc-ico {
        width: 38px;
        height: 38px;
        font-size: .95rem;
    }
    .hc-doc-go {
        width: 30px;
        height: 30px;
        font-size: .75rem;
    }
    .hc-doc-text em {
        letter-spacing: .06em;
        font-size: .62rem;
    }
    .support-pop {
        padding: .75rem;
        align-items: end;
    }
    .support-pop-card {
        width: 100%;
        max-height: min(88vh, 640px);
        border-radius: 18px 18px 14px 14px;
        padding: 1.15rem .95rem 1rem;
    }
    .support-pop-media img {
        max-height: 55vh;
    }
}

@media (max-width: 360px) {
    .hc-docs {
        grid-template-columns: 1fr;
    }
    .hc-doc-inner {
        min-height: 72px;
    }
    .hc-frame {
        clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
    }
    .hc-frame::after {
        clip-path: polygon(0 0, calc(100% - 12.5px) 0, 100% 12.5px, 100% 100%, 12.5px 100%, 0 calc(100% - 12.5px));
    }
    .hc-btn {
        clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
        font-size: .78rem;
        padding: .75rem .55rem;
    }
}

@media (min-width: 640px) {
    .dash-home.help-page,
    .help-page.dash-home,
    .help-page {
        max-width: min(720px, 100%);
    }
    .help-page > .help-hero {
        margin-bottom: 1.15rem;
    }
    .help-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: .9rem;
    }
    .hc-docs {
        grid-column: 1 / -1;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: .85rem;
    }
}

@media (min-width: 768px) {
    .dash-home.help-page,
    .help-page.dash-home {
        max-width: min(720px, 100%);
    }
}

@media (min-width: 1024px) {
    .dash-home.help-page,
    .help-page.dash-home,
    .help-page {
        max-width: min(780px, 100%);
    }
}

@media (hover: none) and (pointer: coarse) {
    .hc-btn:hover {
        transform: none;
        filter: none;
    }
    .hc-btn:active {
        transform: scale(.985);
        filter: brightness(1.04);
    }
    .hc-card.hc-doc:hover .hc-doc-go {
        transform: none;
        filter: none;
    }
    .hc-card.hc-doc:active .hc-doc-go {
        transform: translateX(2px);
        filter: brightness(1.06);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hc-btn-glow {
        animation: none;
        display: none;
    }
}

@keyframes dashMenuIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.stub-page {
    display: grid;
    place-items: center;
    min-height: calc(100vh - var(--nav-h, 74px));
    text-align: center;
}
.stub-card {
    width: 100%;
    max-width: 360px;
    padding: 1.5rem 1.2rem;
    border-radius: 22px;
    border: 1px solid rgba(255,255,255,.08);
    background: rgba(10,18,32,.8);
}
.stub-ico {
    width: 56px;
    height: 56px;
    margin: 0 auto 1rem;
    border-radius: 16px;
    display: grid;
    place-items: center;
    font-size: 1.25rem;
    color: #042F2E;
    background: linear-gradient(135deg, #67E8F9, #06B6D4);
}
.stub-card h1 {
    margin: 0 0 .45rem;
    font-family: var(--ui);
    font-weight: 800;
    font-size: 1.35rem;
}
.stub-card p {
    margin: 0 0 1.25rem;
    color: var(--muted);
    font-size: .92rem;
}
.stub-back {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .75rem 1.2rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: .88rem;
    color: #042F2E;
    background: #fff;
}

/* ---------- Responsive breakpoints ---------- */
@media (max-width: 767.98px) {
    .dash-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .dash-wrap {
        padding-top: calc(var(--nav-h, 74px) + .85rem);
        padding-bottom: 1.75rem;
    }
    .bal-actions {
        max-width: 100%;
    }
    .dash-menu-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: .6rem;
    }
    .dash-menu-wide {
        grid-column: span 3;
    }
    .dash-menu-item {
        min-height: 90px;
        padding: .75rem .35rem .65rem;
        border-radius: 16px;
    }
    .dash-menu-ico {
        width: 40px;
        height: 40px;
        border-radius: 12px;
        font-size: .92rem;
    }
    .live-stat {
        padding: .8rem .7rem;
        gap: .6rem;
    }
    .live-stat-ico {
        width: 38px;
        height: 38px;
        border-radius: 12px;
        font-size: .88rem;
    }
}

@media (max-width: 360px) {
    .bal-actions {
        grid-template-columns: 1fr;
        max-width: 180px;
    }
    .bal-int {
        font-size: 1.65rem;
    }
    .dash-menu-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .dash-menu-wide {
        grid-column: span 2;
    }
}

@media (min-width: 768px) {
    .dash-home {
        max-width: 480px;
        padding-top: calc(var(--nav-h, 74px) + 1.75rem);
    }
    .bal-card {
        padding: 1.85rem 1.5rem 1.5rem;
    }
}

@media (min-width: 1024px) {
    .dash-home {
        max-width: 500px;
    }
}

@media (hover: none) and (pointer: coarse) {
    .bal-pill:hover {
        transform: none;
        filter: none;
    }
    .bal-pill:active {
        transform: scale(.97);
    }
}

@media (prefers-reduced-motion: reduce) {
    .bal-pill,
    .bal-pill::after,
    .bal-pop,
    .bal-pop-card,
    .dash-menu-item,
    .live-stat,
    .live-stats-badge i,
    .dep-plan-card,
    .dep-plan-shine,
    .dep-plan-btn,
    .dep-plan-btn-glow {
        animation: none !important;
        transition: none;
    }
}

/* ===== Deposit / Investment plans ===== */
.dep-page { padding-bottom: 2.5rem; }
.dep-ref-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .55rem 1rem;
    margin: 0 0 1.1rem;
    padding: .85rem 1rem;
    border-radius: 16px;
    border: 1px solid rgba(250,204,21,.28);
    background: linear-gradient(135deg, rgba(250,204,21,.12), rgba(6,182,212,.08));
}
.dep-ref-banner span {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    color: var(--muted);
    font-size: .82rem;
    font-weight: 700;
}
.dep-ref-banner strong {
    color: #FACC15;
    font-size: .92rem;
    font-weight: 800;
}
.dep-plan-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.15rem;
}
@media (min-width: 640px) {
    .dep-plan-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 980px) {
    .dep-plan-grid { grid-template-columns: 1fr 1fr 1fr; }
}

/* Shared modern frame shape for every plan */
.dep-plan-card {
    --dep-cut: 22px;
    position: relative;
    isolation: isolate;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    transition: transform .28s cubic-bezier(.22,1,.36,1);
}
.dep-plan-card:hover {
    transform: translateY(-6px);
    border-color: transparent;
}
.dep-plan-frame {
    position: absolute;
    inset: 0;
    z-index: 0;
    border-radius: 22px;
    clip-path: polygon(
        0 0,
        calc(100% - var(--dep-cut)) 0,
        100% var(--dep-cut),
        100% 100%,
        var(--dep-cut) 100%,
        0 calc(100% - var(--dep-cut))
    );
    background:
        linear-gradient(135deg, rgba(6,182,212,.95), rgba(250,204,21,.85), rgba(6,182,212,.95));
    box-shadow:
        0 18px 40px rgba(0,0,0,.35),
        0 0 0 1px rgba(6,182,212,.15);
}
.dep-plan-frame::after {
    content: '';
    position: absolute;
    inset: 2px;
    border-radius: 20px;
    clip-path: polygon(
        0 0,
        calc(100% - var(--dep-cut) + 1px) 0,
        100% calc(var(--dep-cut) - 1px),
        100% 100%,
        calc(var(--dep-cut) - 1px) 100%,
        0 calc(100% - var(--dep-cut) + 1px)
    );
    background:
        radial-gradient(120% 80% at 0% 0%, rgba(6,182,212,.22), transparent 55%),
        radial-gradient(100% 70% at 100% 100%, rgba(250,204,21,.14), transparent 50%),
        linear-gradient(165deg, #152038 0%, #0B1220 55%, #0A1424 100%);
}
.dep-plan-shine {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    border-radius: 22px;
    clip-path: polygon(
        0 0,
        calc(100% - var(--dep-cut)) 0,
        100% var(--dep-cut),
        100% 100%,
        var(--dep-cut) 100%,
        0 calc(100% - var(--dep-cut))
    );
    background: linear-gradient(
        115deg,
        transparent 35%,
        rgba(255,255,255,.12) 48%,
        transparent 62%
    );
    transform: translateX(-120%);
    opacity: 0;
    transition: transform .7s ease, opacity .3s ease;
}
.dep-plan-card:hover .dep-plan-shine {
    opacity: 1;
    transform: translateX(120%);
}
.dep-plan-inner {
    position: relative;
    z-index: 2;
    padding: 1.15rem 1.05rem 1.1rem;
    display: flex;
    flex-direction: column;
    gap: .95rem;
    min-height: 100%;
}
.dep-plan-badge {
    display: flex;
    align-items: center;
    gap: .65rem;
}
.dep-plan-badge span {
    flex: 0 0 auto;
    min-width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    font-family: var(--ui);
    font-size: .78rem;
    font-weight: 800;
    color: #0B1220;
    background: linear-gradient(145deg, #FACC15, #F59E0B);
    box-shadow: 0 8px 18px rgba(250,204,21,.28);
    clip-path: polygon(12% 0, 100% 0, 88% 100%, 0 100%);
}
.dep-plan-badge em {
    font-style: normal;
    font-family: var(--ui);
    font-size: 1.05rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -.01em;
}
.dep-plan-title {
    display: flex;
    flex-direction: column;
    gap: .1rem;
    min-width: 0;
}
.dep-plan-title small {
    font-size: .62rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #FACC15;
}
.dep-plan-title em {
    font-style: normal;
    font-family: var(--ui);
    font-size: 1.12rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -.01em;
    line-height: 1.15;
}
.dep-plan-price {
    margin: 0;
    padding: .85rem 1rem;
    border-radius: 16px;
    background: rgba(6,182,212,.08);
    border: 1px solid rgba(6,182,212,.2);
    clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
}
.dep-plan-price small {
    display: block;
    margin-bottom: .2rem;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(148,163,184,.9);
}
.dep-plan-price strong {
    display: block;
    font-family: var(--ui);
    font-size: 1.55rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.03em;
    background: linear-gradient(90deg, #67E8F9, #22D3EE 40%, #FACC15);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.dep-plan-stats {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: .5rem;
}
.dep-plan-stats li {
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .55rem .7rem;
    border-radius: 14px;
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.05);
}
.dep-plan-stats li i {
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 11px;
    font-size: .82rem;
    color: #22D3EE;
    background: rgba(6,182,212,.14);
}
.dep-plan-stats li div {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
}
.dep-plan-stats li span {
    color: var(--muted);
    font-size: .78rem;
    font-weight: 600;
}
.dep-plan-stats li strong {
    color: #fff;
    font-size: .9rem;
    font-weight: 800;
}
.dep-plan-stats li.is-total {
    border-color: rgba(250,204,21,.28);
    background: linear-gradient(90deg, rgba(250,204,21,.1), rgba(6,182,212,.06));
}
.dep-plan-stats li.is-total i {
    color: #0B1220;
    background: linear-gradient(145deg, #FACC15, #EAB308);
}
.dep-plan-stats li.is-total strong {
    color: #FACC15;
}

/* Angled brand CTA — same shape on every plan */
.dep-plan-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    width: 100%;
    min-height: 50px;
    margin-top: auto;
    padding: .85rem 1rem;
    border: 0;
    text-decoration: none;
    color: #041018;
    font-family: var(--ui);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    overflow: hidden;
    clip-path: polygon(14px 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
    background: linear-gradient(105deg, #06B6D4 0%, #22D3EE 42%, #FACC15 100%);
    box-shadow:
        0 12px 28px rgba(6,182,212,.35),
        inset 0 1px 0 rgba(255,255,255,.35);
    transition: transform .2s ease, filter .2s ease, box-shadow .2s ease;
}
.dep-plan-btn > span:last-child {
    position: relative;
    z-index: 1;
    white-space: nowrap;
}
.dep-plan-btn > i {
    position: relative;
    z-index: 1;
    font-size: .95rem;
}
.dep-plan-btn-glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 20%, rgba(255,255,255,.35) 50%, transparent 80%);
    transform: translateX(-110%);
    transition: transform .55s ease;
}
.dep-plan-btn:hover {
    transform: translateY(-1px) scale(1.01);
    filter: brightness(1.05);
    box-shadow:
        0 16px 34px rgba(6,182,212,.45),
        inset 0 1px 0 rgba(255,255,255,.4);
    color: #041018;
}
.dep-plan-btn:hover .dep-plan-btn-glow {
    transform: translateX(110%);
}
.dep-plan-btn:active {
    transform: translateY(0) scale(.99);
}
@media (max-width: 380px) {
    .dep-plan-btn {
        font-size: .68rem;
        letter-spacing: .02em;
        gap: .4rem;
        padding: .8rem .7rem;
    }
}

.dep-checkout-sum .tone-gold { color: #FACC15 !important; }
.dep-empty {
    text-align: center;
    color: var(--muted);
    padding: 1.5rem;
}
.dep-panel.is-hidden { display: none; }

/* Step indicator */
.dep-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    margin: 0 0 1.15rem;
}
.dep-step {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    color: var(--muted);
    font-size: .78rem;
    font-weight: 700;
}
.dep-step span {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(0,0,0,.25);
    font-size: .78rem;
    font-weight: 800;
    color: #94A3B8;
}
.dep-step.is-active span,
.dep-step.is-done span {
    color: #0B1220;
    border-color: transparent;
    background: linear-gradient(145deg, #22D3EE, #FACC15);
    box-shadow: 0 6px 16px rgba(6,182,212,.35);
}
.dep-step.is-active em { color: #fff; }
.dep-step.is-done em { color: #67E8F9; }
.dep-step-line {
    width: 42px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(6,182,212,.5), rgba(250,204,21,.5));
    opacity: .55;
}

/* Angled shell shared by method + pay */
.dep-shell {
    --cut: 22px;
    position: relative;
    isolation: isolate;
}
.dep-shell-frame {
    position: absolute;
    inset: 0;
    z-index: 0;
    border-radius: 22px;
    clip-path: polygon(
        0 0,
        calc(100% - var(--cut)) 0,
        100% var(--cut),
        100% 100%,
        var(--cut) 100%,
        0 calc(100% - var(--cut))
    );
    background: linear-gradient(135deg, rgba(6,182,212,.95), rgba(250,204,21,.8), rgba(6,182,212,.95));
    box-shadow: 0 18px 42px rgba(0,0,0,.35);
}
.dep-shell-frame::after {
    content: '';
    position: absolute;
    inset: 2px;
    border-radius: 20px;
    clip-path: polygon(
        0 0,
        calc(100% - var(--cut) + 1px) 0,
        100% calc(var(--cut) - 1px),
        100% 100%,
        calc(var(--cut) - 1px) 100%,
        0 calc(100% - var(--cut) + 1px)
    );
    background:
        radial-gradient(120% 80% at 0% 0%, rgba(6,182,212,.2), transparent 55%),
        radial-gradient(90% 70% at 100% 100%, rgba(250,204,21,.12), transparent 50%),
        linear-gradient(165deg, #152038, #0B1220 60%, #0A1424);
}
.dep-shell-inner {
    position: relative;
    z-index: 1;
    padding: 1.15rem 1.05rem 1.2rem;
}

.dep-mini-sum {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin-bottom: 1rem;
    padding: .85rem .95rem;
    border-radius: 16px;
    background: rgba(6,182,212,.08);
    border: 1px solid rgba(6,182,212,.2);
    clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
}
.dep-mini-sum small,
.dep-mini-amt small {
    display: block;
    font-size: .65rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: .15rem;
}
.dep-mini-sum strong {
    color: #fff;
    font-size: .95rem;
    font-weight: 800;
}
.dep-mini-amt { text-align: right; }
.dep-mini-amt strong {
    color: #FACC15;
    font-size: 1.15rem;
    font-weight: 800;
}

.dep-panel-title {
    margin: 0 0 .9rem;
    display: flex;
    align-items: center;
    gap: .5rem;
    font-family: var(--ui);
    font-size: 1rem;
    font-weight: 800;
    color: #fff;
}
.dep-panel-title i { color: #22D3EE; }

/* Method cards */
.dep-method-grid {
    display: grid;
    gap: .75rem;
}
.dep-method-card {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    text-align: left;
    color: inherit;
    transition: transform .22s ease;
}
.dep-method-card:hover { transform: translateY(-3px); }
.dep-method-card-frame {
    position: absolute;
    inset: 0;
    border-radius: 18px;
    clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
    background: linear-gradient(120deg, rgba(6,182,212,.55), rgba(250,204,21,.35), rgba(6,182,212,.45));
    opacity: .85;
    transition: opacity .2s ease, filter .2s ease;
}
.dep-method-card-frame::after {
    content: '';
    position: absolute;
    inset: 1.5px;
    border-radius: 16px;
    clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 15px, 100% 100%, 15px 100%, 0 calc(100% - 15px));
    background: linear-gradient(160deg, #121A2E, #0B1220);
}
.dep-method-card.is-selected .dep-method-card-frame,
.dep-method-card:hover .dep-method-card-frame {
    opacity: 1;
    filter: brightness(1.08);
    background: linear-gradient(120deg, #22D3EE, #FACC15, #06B6D4);
}
.dep-method-card-body {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: .85rem;
    padding: .95rem 1rem;
}
.dep-method-logo {
    width: 52px;
    height: 52px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(0,0,0,.25);
    overflow: hidden;
}
.dep-method-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 6px;
}
.dep-method-logo i {
    font-size: 1.25rem;
    color: #06B6D4;
}
.dep-method-meta {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: .15rem;
}
.dep-method-meta strong {
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
}
.dep-method-meta em {
    font-style: normal;
    font-size: .75rem;
    color: var(--muted);
}
.dep-method-arrow {
    color: #67E8F9;
    font-size: .85rem;
    opacity: .8;
}

/* Pay step */
.dep-back-method {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    margin-bottom: .95rem;
    padding: .45rem .75rem;
    border: 1px solid rgba(6,182,212,.25);
    border-radius: 999px;
    background: rgba(6,182,212,.08);
    color: #67E8F9;
    font-size: .78rem;
    font-weight: 700;
    cursor: pointer;
}
.dep-back-method:hover { background: rgba(6,182,212,.16); }

.dep-pay-hero {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas:
        "logo meta"
        "amt amt";
    gap: .75rem 1rem;
    margin-bottom: 1rem;
    padding: 1rem;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(6,182,212,.14), rgba(250,204,21,.08));
    border: 1px solid rgba(6,182,212,.22);
    clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
}
.dep-pay-logo {
    grid-area: logo;
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(0,0,0,.28);
}
.dep-pay-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 7px;
}
.dep-pay-logo i { font-size: 1.4rem; color: #06B6D4; }
.dep-pay-hero > div:nth-child(2) { grid-area: meta; align-self: center; }
.dep-pay-hero small {
    display: block;
    font-size: .65rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: .2rem;
}
.dep-pay-hero strong {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 800;
}
.dep-pay-amount {
    grid-area: amt;
    padding: .75rem .85rem;
    border-radius: 14px;
    background: rgba(0,0,0,.28);
    border: 1px solid rgba(250,204,21,.25);
    text-align: center;
}
.dep-pay-amount strong {
    display: block;
    font-size: 1.55rem;
    letter-spacing: -.02em;
    background: linear-gradient(90deg, #67E8F9, #FACC15);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.dep-pay-details {
    display: grid;
    gap: .55rem;
    margin-bottom: 1.1rem;
}
.dep-pay-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .75rem .85rem;
    border-radius: 14px;
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.06);
}
.dep-pay-row > span {
    color: var(--muted);
    font-size: .78rem;
    font-weight: 600;
}
.dep-pay-row strong {
    color: #fff;
    font-size: .92rem;
    font-weight: 800;
    word-break: break-all;
    text-align: right;
}
.dep-pay-row > div {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
}
.dep-copy-btn {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 10px;
    background: rgba(6,182,212,.16);
    color: #22D3EE;
    cursor: pointer;
}
.dep-copy-btn.is-copied {
    background: rgba(34,197,94,.2);
    color: #4ADE80;
}
.dep-pay-note {
    padding: .75rem .85rem;
    border-radius: 14px;
    background: rgba(250,204,21,.08);
    border: 1px dashed rgba(250,204,21,.3);
    color: #E2E8F0;
    font-size: .82rem;
    line-height: 1.45;
}

.dep-pay-form {
    display: grid;
    gap: .85rem;
}
.dep-pay-field span {
    display: flex;
    align-items: center;
    gap: .4rem;
    margin-bottom: .4rem;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--muted);
}
.dep-pay-field span i { color: #22D3EE; }
.dep-pay-field input[type="text"] {
    width: 100%;
    border: 1px solid rgba(6,182,212,.25);
    background: rgba(0,0,0,.28);
    color: #fff;
    border-radius: 14px;
    padding: .95rem 1rem;
    font-size: .95rem;
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}
.dep-pay-field input[type="text"]:focus {
    outline: none;
    border-color: rgba(6,182,212,.55);
    box-shadow: 0 0 0 3px rgba(6,182,212,.15);
}
.dep-upload-box {
    display: grid;
    place-items: center;
    gap: .25rem;
    min-height: 118px;
    padding: 1rem;
    cursor: pointer;
    border-radius: 16px;
    border: 1.5px dashed rgba(6,182,212,.4);
    background:
        radial-gradient(circle at 30% 20%, rgba(6,182,212,.12), transparent 55%),
        rgba(0,0,0,.22);
    clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
    transition: border-color .2s ease, background .2s ease;
}
.dep-upload-box:hover,
.dep-upload-box.has-file {
    border-color: rgba(250,204,21,.55);
    background:
        radial-gradient(circle at 30% 20%, rgba(250,204,21,.12), transparent 55%),
        rgba(0,0,0,.22);
}
.dep-upload-box i {
    font-size: 1.45rem;
    color: #22D3EE;
    margin-bottom: .15rem;
}
.dep-upload-box em {
    font-style: normal;
    color: #fff;
    font-size: .9rem;
    font-weight: 700;
    text-align: center;
    word-break: break-all;
}
.dep-upload-box small {
    color: var(--muted);
    font-size: .72rem;
}
.dep-pay-submit {
    margin-top: .15rem;
}
.dep-pay-view {
    margin-bottom: 1rem;
}
.dep-pay-view[hidden] {
    display: none !important;
}
.dep-pending-btn {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    min-height: 46px;
    border-radius: 999px;
    background: linear-gradient(105deg, #F59E0B, #FACC15) !important;
    color: #0B1220 !important;
    font-weight: 800;
}

/* Deposit history filters — simple bar */
.dh-filters {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    margin: 0 0 1.1rem;
    padding: .4rem;
    border-radius: 14px;
    background: rgba(0,0,0,.28);
    border: 1px solid rgba(255,255,255,.08);
}
.dh-filter {
    flex: 1 1 auto;
    min-width: calc(50% - .45rem);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    padding: .65rem .7rem;
    border-radius: 10px;
    text-decoration: none;
    color: #94A3B8;
    font-size: .82rem;
    font-weight: 700;
    background: transparent;
    border: 0;
    transition: background .15s ease, color .15s ease;
}
@media (min-width: 520px) {
    .dh-filter { min-width: 0; }
}
.dh-filter b {
    font-weight: 800;
    font-size: .75rem;
    min-width: 22px;
    height: 22px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    color: inherit;
}
.dh-filter:hover {
    color: #E2E8F0;
    background: rgba(255,255,255,.05);
}
.dh-filter.is-active {
    color: #0B1220;
    background: linear-gradient(105deg, #22D3EE, #FACC15);
}
.dh-filter.is-active b {
    background: rgba(0,0,0,.18);
    color: #0B1220;
}

.dh-list {
    display: grid;
    gap: .85rem;
}
.dh-card {
    padding: 1rem;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,.08);
    background: linear-gradient(165deg, #151E33, #0B1220);
}
.dh-card.tone-amber { border-color: rgba(251,191,36,.28); }
.dh-card.tone-green { border-color: rgba(74,222,128,.25); }
.dh-card.tone-red { border-color: rgba(248,113,113,.25); }
.dh-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin-bottom: .85rem;
}
.dh-status {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .3rem .65rem;
    border-radius: 8px;
    font-size: .72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.dh-card.tone-amber .dh-status {
    color: #FDE68A;
    background: rgba(245,158,11,.18);
}
.dh-card.tone-green .dh-status {
    color: #BBF7D0;
    background: rgba(34,197,94,.16);
}
.dh-card.tone-red .dh-status {
    color: #FECACA;
    background: rgba(239,68,68,.16);
}
.dh-amount {
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff;
}
.dh-meta {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: .4rem;
}
.dh-meta li {
    display: flex;
    justify-content: space-between;
    gap: .75rem;
    font-size: .84rem;
}
.dh-meta span { color: var(--muted); }
.dh-meta em {
    font-style: normal;
    color: #E2E8F0;
    font-weight: 700;
    text-align: right;
    word-break: break-word;
}
.dh-proof {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    margin-top: .85rem;
    padding: .5rem .8rem;
    border-radius: 10px;
    text-decoration: none;
    font-size: .8rem;
    font-weight: 750;
    color: #67E8F9;
    background: rgba(6,182,212,.1);
    border: 1px solid rgba(6,182,212,.22);
    font-family: inherit;
    cursor: pointer;
    transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
button.dh-proof {
    appearance: none;
    -webkit-appearance: none;
}
.dh-proof:hover {
    color: #A5F3FC;
    background: rgba(6,182,212,.16);
    border-color: rgba(6,182,212,.4);
    transform: translateY(-1px);
}

/* Modern payment proof lightbox */
.proof-pop {
    position: fixed;
    inset: 0;
    z-index: 3200;
    display: none;
    place-items: center;
    padding: max(.85rem, env(safe-area-inset-top)) 1rem max(1rem, env(safe-area-inset-bottom));
    background: rgba(3, 8, 18, .72);
    backdrop-filter: blur(8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .22s ease;
}
.proof-pop.is-open {
    display: grid;
    opacity: 1;
    pointer-events: auto;
}
.proof-pop-card {
    position: relative;
    width: min(440px, 100%);
    max-height: min(90vh, 720px);
    overflow: auto;
    padding: 1.2rem 1.05rem 1.1rem;
    border-radius: 22px;
    border: 1px solid rgba(6,182,212,.28);
    background:
        radial-gradient(120% 80% at 0% 0%, rgba(6,182,212,.16), transparent 50%),
        radial-gradient(90% 70% at 100% 100%, rgba(250,204,21,.1), transparent 45%),
        linear-gradient(165deg, #141B2D, #0C1220);
    box-shadow: 0 28px 70px rgba(0,0,0,.55);
    transform: translateY(12px) scale(.96);
    transition: transform .22s ease;
}
.proof-pop.is-open .proof-pop-card {
    transform: translateY(0) scale(1);
}
.proof-pop-close {
    position: absolute;
    top: .75rem;
    right: .75rem;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 12px;
    background: rgba(255,255,255,.06);
    color: #94A3B8;
    cursor: pointer;
    z-index: 2;
}
.proof-pop-close:hover {
    color: #fff;
    background: rgba(239,68,68,.22);
}
.proof-pop-head {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: .9rem;
    padding-right: 2.2rem;
    text-align: left;
}
.proof-pop-ico {
    width: 46px;
    height: 46px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 14px;
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
    color: #042F2E;
    font-size: 1.05rem;
    background: linear-gradient(145deg, #67E8F9, #06B6D4);
    box-shadow: 0 10px 22px rgba(6,182,212,.3);
}
.proof-pop-kicker {
    margin: 0 0 .15rem;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #67E8F9;
}
.proof-pop-head h3 {
    margin: 0;
    font-family: var(--ui);
    font-size: 1.05rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.25;
    word-break: break-word;
}
.proof-pop-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .5rem;
    margin-bottom: .95rem;
}
.proof-pop-meta span {
    display: grid;
    gap: .15rem;
    padding: .55rem .7rem;
    border-radius: 12px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.07);
    text-align: left;
}
.proof-pop-meta span.is-wide {
    grid-column: 1 / -1;
}
.proof-pop-meta em {
    font-style: normal;
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #64748B;
}
.proof-pop-meta b {
    font-size: .88rem;
    font-weight: 800;
    color: #F8FAFC;
    word-break: break-word;
}
.proof-pop-frame {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.1);
    background:
        linear-gradient(145deg, rgba(6,182,212,.08), rgba(0,0,0,.35)),
        #060B14;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
    min-height: 180px;
    display: grid;
    place-items: center;
}
.proof-pop-frame::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 16px;
    pointer-events: none;
    box-shadow: inset 0 0 0 1px rgba(6,182,212,.12);
}
.proof-pop-frame img {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    max-height: min(52vh, 420px);
    height: auto;
    object-fit: contain;
    background: transparent;
}
.proof-pop-open {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    width: 100%;
    margin-top: .95rem;
    min-height: 46px;
    padding: .75rem 1rem;
    text-decoration: none;
    font-family: var(--ui);
    font-size: .82rem;
    font-weight: 800;
    letter-spacing: .03em;
    color: #042F2E;
    clip-path: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
    background: linear-gradient(105deg, #06B6D4, #22D3EE 50%, #FACC15);
    box-shadow: 0 12px 28px rgba(6,182,212,.3);
}
.proof-pop-open:hover {
    filter: brightness(1.05);
    color: #042F2E;
}

@media (max-width: 480px) {
    .proof-pop {
        align-items: end;
        padding: .5rem .55rem max(.65rem, env(safe-area-inset-bottom));
    }
    .proof-pop-card {
        width: 100%;
        border-radius: 20px 20px 14px 14px;
        max-height: min(92vh, 760px);
    }
    .proof-pop-frame img {
        max-height: min(48vh, 360px);
    }
}
.dh-empty {
    text-align: center;
    padding: 2rem 1rem;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,.08);
    background: rgba(0,0,0,.18);
    margin-bottom: .5rem;
}
.dh-empty i {
    font-size: 1.8rem;
    margin-bottom: .75rem;
    display: block;
    color: #64748B;
}
.dh-empty p {
    margin: 0 0 1rem;
    color: var(--muted);
}

/* ========== Withdraw page (modern method shapes) ========== */
.wd-page { padding-bottom: 2.5rem; }

.wd-hero {
    background:
        radial-gradient(120% 90% at 10% 0%, rgba(37,99,235,.22), transparent 55%),
        radial-gradient(90% 70% at 100% 100%, rgba(96,165,250,.12), transparent 50%),
        linear-gradient(160deg, rgba(37,99,235,.14), rgba(255,255,255,.02));
    border-color: rgba(96,165,250,.18);
}
.wd-hero .help-kicker { color: #93C5FD; }
.wd-hero-ico {
    color: #EFF6FF !important;
    background: linear-gradient(135deg, #2563EB, #60A5FA) !important;
    box-shadow: 0 12px 28px rgba(37,99,235,.38) !important;
}

.wd-balance-chip {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: .75rem;
    margin: 0 0 1.15rem;
    padding: .95rem 1rem;
    position: relative;
    isolation: isolate;
    clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
    background: linear-gradient(135deg, rgba(37,99,235,.2), rgba(14,165,233,.08) 55%, rgba(37,99,235,.14));
    border: 1px solid rgba(96,165,250,.28);
    box-shadow: 0 14px 32px rgba(0,0,0,.22);
}
.wd-balance-chip small {
    display: block;
    font-size: .65rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #93C5FD;
    margin-bottom: .2rem;
}
.wd-balance-chip strong {
    color: #fff;
    font-size: 1.15rem;
    font-weight: 800;
    font-family: var(--ui);
}
.wd-balance-min { text-align: right; }
.wd-balance-min strong {
    color: #BFDBFE;
    font-size: .95rem;
}

.wd-steps .dep-step.is-active span,
.wd-steps .dep-step.is-done span {
    background: linear-gradient(145deg, #60A5FA, #2563EB);
    box-shadow: 0 6px 16px rgba(37,99,235,.4);
    color: #fff;
}
.wd-steps .dep-step.is-active em { color: #EFF6FF; }
.wd-steps .dep-step.is-done em { color: #93C5FD; }
.wd-steps .dep-step-line {
    background: linear-gradient(90deg, rgba(37,99,235,.55), rgba(96,165,250,.55));
}

.wd-shell {
    --cut: 24px;
    position: relative;
    isolation: isolate;
}
.wd-shell-frame {
    position: absolute;
    inset: 0;
    z-index: 0;
    border-radius: 24px;
    clip-path: polygon(
        0 0,
        calc(100% - var(--cut)) 0,
        100% var(--cut),
        100% 100%,
        var(--cut) 100%,
        0 calc(100% - var(--cut))
    );
    background: linear-gradient(135deg, #3B82F6, #1D4ED8 40%, #38BDF8 70%, #2563EB);
    box-shadow: 0 20px 48px rgba(37,99,235,.28), 0 18px 42px rgba(0,0,0,.35);
}
.wd-shell-frame::after {
    content: '';
    position: absolute;
    inset: 2px;
    border-radius: 22px;
    clip-path: polygon(
        0 0,
        calc(100% - var(--cut) + 1px) 0,
        100% calc(var(--cut) - 1px),
        100% 100%,
        calc(var(--cut) - 1px) 100%,
        0 calc(100% - var(--cut) + 1px)
    );
    background:
        radial-gradient(120% 80% at 0% 0%, rgba(59,130,246,.28), transparent 55%),
        radial-gradient(90% 70% at 100% 100%, rgba(14,165,233,.14), transparent 50%),
        linear-gradient(165deg, #121A2E, #0B1220 60%, #0A1424);
}
.wd-shell-inner {
    position: relative;
    z-index: 1;
    padding: 1.2rem 1.05rem 1.25rem;
}

.wd-panel-title i { color: #60A5FA !important; }

.wd-method-grid {
    display: grid;
    gap: .85rem;
}

.wd-method-card {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    text-align: left;
    color: inherit;
    transition: transform .25s cubic-bezier(.22,1,.36,1);
}
.wd-method-card:hover { transform: translateY(-4px) scale(1.01); }
.wd-method-card:active { transform: translateY(-1px) scale(.995); }

.wd-method-glow {
    position: absolute;
    inset: -2px;
    z-index: 0;
    border-radius: 20px;
    opacity: 0;
    filter: blur(12px);
    background: linear-gradient(120deg, rgba(59,130,246,.55), rgba(56,189,248,.35));
    transition: opacity .25s ease;
    pointer-events: none;
}
.wd-method-card:hover .wd-method-glow,
.wd-method-card.is-selected .wd-method-glow { opacity: .7; }

.wd-method-card-frame {
    position: absolute;
    inset: 0;
    z-index: 0;
    border-radius: 20px;
    clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
    background: linear-gradient(125deg, rgba(59,130,246,.65), rgba(14,165,233,.35), rgba(37,99,235,.5));
    opacity: .9;
    transition: opacity .2s ease, filter .2s ease, background .2s ease;
}
.wd-method-card-frame::after {
    content: '';
    position: absolute;
    inset: 1.6px;
    border-radius: 18px;
    clip-path: polygon(0 0, calc(100% - 18.5px) 0, 100% 18.5px, 100% 100%, 18.5px 100%, 0 calc(100% - 18.5px));
    background:
        linear-gradient(160deg, #152038 0%, #0B1220 55%, #0C1528 100%);
}
.wd-method-card.is-selected .wd-method-card-frame,
.wd-method-card:hover .wd-method-card-frame {
    opacity: 1;
    filter: brightness(1.1);
    background: linear-gradient(125deg, #60A5FA, #2563EB, #38BDF8);
}

.wd-method-card-body {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: .95rem;
    padding: 1.05rem 1.05rem;
}

.wd-method-logo {
    width: 58px;
    height: 58px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: #fff;
    box-shadow:
        0 10px 24px rgba(37,99,235,.28),
        0 0 0 1px rgba(255,255,255,.08);
    overflow: hidden;
    transition: transform .25s ease;
}
.wd-method-card:hover .wd-method-logo { transform: rotate(-4deg) scale(1.04); }
.wd-method-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 7px;
}
.wd-method-logo i {
    font-size: 1.35rem;
    color: #2563EB;
}

.wd-method-meta {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: .18rem;
}
.wd-method-meta strong {
    color: #fff;
    font-size: 1.05rem;
    font-weight: 800;
    font-family: var(--ui);
}
.wd-method-meta em {
    font-style: normal;
    font-size: .76rem;
    color: #94A3B8;
    font-weight: 600;
}

.wd-method-go {
    width: 36px;
    height: 36px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 12px;
    clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
    background: linear-gradient(145deg, rgba(59,130,246,.35), rgba(37,99,235,.2));
    color: #BFDBFE;
    font-size: .85rem;
    transition: transform .22s ease, background .22s ease, color .22s ease;
}
.wd-method-card:hover .wd-method-go,
.wd-method-card.is-selected .wd-method-go {
    transform: translateX(3px);
    background: linear-gradient(145deg, #3B82F6, #2563EB);
    color: #fff;
}

.wd-back-method {
    border-color: rgba(59,130,246,.3) !important;
    background: rgba(37,99,235,.1) !important;
    color: #93C5FD !important;
}
.wd-back-method:hover { background: rgba(37,99,235,.2) !important; }

.wd-form-hero {
    display: flex;
    align-items: center;
    gap: .9rem;
    margin-bottom: 1rem;
    padding: 1rem;
    border-radius: 18px;
    clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
    background: linear-gradient(135deg, rgba(37,99,235,.18), rgba(14,165,233,.08));
    border: 1px solid rgba(96,165,250,.22);
}
.wd-form-logo {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(0,0,0,.28);
    flex: 0 0 auto;
}
.wd-form-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 6px;
}
.wd-form-logo i {
    font-size: 1.3rem;
    color: #2563EB;
}
.wd-form-hero small {
    display: block;
    font-size: .65rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #93C5FD;
    margin-bottom: .15rem;
}
.wd-form-hero strong {
    color: #fff;
    font-size: 1.05rem;
    font-weight: 800;
}

.wd-form-hint {
    margin: 0 0 1rem;
    padding: .75rem .9rem;
    border-radius: 12px;
    font-size: .82rem;
    line-height: 1.5;
    color: #BFDBFE;
    background: rgba(37,99,235,.1);
    border: 1px solid rgba(96,165,250,.18);
}

.wd-form {
    display: grid;
    gap: .85rem;
}
.wd-field {
    display: grid;
    gap: .4rem;
}
.wd-field.is-hidden,
.wd-field[hidden] {
    display: none !important;
}
.wd-field > span {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .78rem;
    font-weight: 750;
    color: #CBD5E1;
}
.wd-field > span i { color: #60A5FA; }
.wd-field input {
    width: 100%;
    padding: .85rem 1rem;
    border-radius: 14px;
    border: 1px solid rgba(96,165,250,.22);
    background: rgba(0,0,0,.28);
    color: #fff;
    font-size: .95rem;
    font-weight: 600;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.wd-field input:focus {
    border-color: rgba(96,165,250,.55);
    box-shadow: 0 0 0 3px rgba(37,99,235,.2);
}
.wd-field input::placeholder { color: #64748B; font-weight: 500; }

.wd-amount-row {
    display: flex;
    gap: .55rem;
}
.wd-amount-row input { flex: 1; }
.wd-max-btn {
    flex: 0 0 auto;
    padding: 0 1rem;
    border-radius: 14px;
    border: 1px solid rgba(96,165,250,.35);
    background: linear-gradient(145deg, rgba(59,130,246,.25), rgba(37,99,235,.15));
    color: #BFDBFE;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .04em;
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}
.wd-max-btn:hover {
    background: linear-gradient(145deg, #3B82F6, #2563EB);
    color: #fff;
}

.wd-submit {
    margin-top: .35rem;
    background: linear-gradient(105deg, #2563EB, #3B82F6 50%, #60A5FA) !important;
}
.wd-submit .dep-plan-btn-glow {
    background: radial-gradient(circle, rgba(255,255,255,.35), transparent 65%) !important;
}

@media (max-width: 420px) {
    .wd-method-logo { width: 50px; height: 50px; border-radius: 15px; }
    .wd-method-meta strong { font-size: .98rem; }
    .wd-balance-chip strong { font-size: 1.05rem; }
}

.wd-lock-card {
    text-align: center;
    padding: 1.6rem 1.15rem 1.4rem;
    border-radius: 22px;
    clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 22px 100%, 0 calc(100% - 22px));
    background: linear-gradient(160deg, rgba(37,99,235,.16), rgba(15,23,42,.9));
    border: 1px solid rgba(96,165,250,.28);
    box-shadow: 0 18px 40px rgba(0,0,0,.28);
}
.wd-lock-ico {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    display: grid;
    place-items: center;
    border-radius: 20px;
    font-size: 1.4rem;
    color: #EFF6FF;
    background: linear-gradient(145deg, #2563EB, #60A5FA);
    box-shadow: 0 12px 28px rgba(37,99,235,.35);
}
.wd-lock-card h2 {
    margin: 0 0 .55rem;
    font-family: var(--ui);
    font-weight: 800;
    font-size: 1.25rem;
    color: #fff;
}
.wd-lock-card p {
    margin: 0 auto 1rem;
    max-width: 34ch;
    color: #94A3B8;
    font-size: .9rem;
    line-height: 1.55;
}
.wd-lock-card p strong { color: #BFDBFE; }

/* User flash alerts (withdraw / rewards) */
.stg-alert {
    padding: .85rem 1rem;
    border-radius: 14px;
    font-size: .88rem;
    font-weight: 650;
    line-height: 1.45;
}
.stg-alert.error {
    color: #FECACA;
    background: rgba(239,68,68,.14);
    border: 1px solid rgba(248,113,113,.3);
}
.stg-alert.success {
    color: #BBF7D0;
    background: rgba(34,197,94,.14);
    border: 1px solid rgba(74,222,128,.3);
}

