/* =====================================================================
 * VoltPay — main stylesheet
 * Design language taken from the mobile mockups:
 *   near-black surfaces, rounded 24px cards, a neon "volt" lime accent,
 *   and a green glass gradient for the cards.
 * ===================================================================== */

/* ---------- 1. Design tokens (change colours here) ---------- */
:root {
    --ink: #0b0b0c;          /* page background */
    --panel: #161618;        /* card background */
    --panel-2: #1f1f22;      /* raised element */
    --line: #2a2a2e;         /* borders */
    --text: #f4f4f5;
    --muted: #9a9aa3;
    --volt: #d4ff3a;         /* brand accent (lime) */
    --volt-dark: #b8e612;
    --mint: #7ee0b5;
    --sky: #7dd3fc;
    --danger: #ff5c5c;
    --success: #4ade80;
    --warning: #fbbf24;
    --radius: 24px;
    --card-gradient: linear-gradient(135deg, #2f8f5b 0%, #7ee0b5 45%, #3b6d8f 100%);
}

/* ---------- 2. Base ---------- */
html { scroll-behavior: smooth; overflow-x: hidden; }
.vp-section { overflow-x: clip; }
body {
    background: var(--ink);
    color: var(--text);
    font-family: 'Manrope', system-ui, sans-serif;
    overflow-x: hidden;
}
h1, h2, h3, h4, h5, .vp-display, .vp-logo { font-family: 'Sora', sans-serif; letter-spacing: -0.02em; }
a { color: inherit; text-decoration: none; }
.text-volt { color: var(--volt) !important; }
.text-secondary { color: var(--muted) !important; }
.bg-panel { background: var(--panel); }
::selection { background: var(--volt); color: var(--ink); }

/* custom scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #333; border-radius: 8px; }
::-webkit-scrollbar-track { background: transparent; }

/* scroll progress bar at the very top (width set by app.js) */
#scrollProgress { position: fixed; top: 0; left: 0; height: 3px; background: var(--volt); width: 0; z-index: 3000; transition: width .1s; }

/* ---------- 3. Buttons ---------- */
.vp-btn-volt {
    background: var(--volt); color: var(--ink); font-weight: 700;
    border-radius: 999px; padding: .7rem 1.4rem; border: none; transition: .25s;
}
.vp-btn-volt:hover { background: var(--volt-dark); color: var(--ink); transform: translateY(-2px); box-shadow: 0 10px 30px rgba(212,255,58,.25); }
.vp-btn-ghost {
    background: var(--panel-2); color: var(--text); border: 1px solid var(--line);
    border-radius: 999px; padding: .7rem 1.4rem; font-weight: 600; transition: .25s;
}
.vp-btn-ghost:hover { background: #2a2a2e; color: #fff; }
.vp-btn-white { background: #fff; color: var(--ink); border-radius: 999px; padding: .7rem 1.4rem; font-weight: 700; border: none; }
.vp-btn-white:hover { background: #e9e9e9; }

/* ---------- 4. Logo (full wordmark image from Admin → Branding) ---------- */
.vp-logo { display: inline-flex; align-items: center; gap: .55rem; font-weight: 800; font-size: 1.35rem; color: #fff !important; text-decoration: none; }
.vp-logo-lockup { display: inline-flex; align-items: center; gap: .55rem; line-height: 1; }
.vp-logo-mark { width: 36px; height: 36px; flex-shrink: 0; border-radius: 11px; background: var(--volt); color: var(--ink); display: grid; place-items: center; font-size: 1.1rem; }
.vp-logo-img { height: 36px; width: auto; max-width: 180px; flex-shrink: 0; object-fit: contain; background: transparent; }
.vp-logo-img.vp-logo-wordmark { height: 40px; width: auto; max-width: 210px; border-radius: 0; }
.vp-logo-text { white-space: nowrap; letter-spacing: -0.03em; }
@media (max-width: 575px) {
    .vp-logo { font-size: 1.15rem; gap: .4rem; }
    .vp-logo-mark { width: 32px; height: 32px; }
    .vp-logo-img.vp-logo-wordmark { height: 32px; max-width: 160px; }
}

/* ---------- 5. Public navbar ---------- */
.vp-nav { padding: 1.1rem 0; transition: .3s; }
.vp-nav.scrolled { background: rgba(11,11,12,.85); backdrop-filter: blur(14px); padding: .6rem 0; border-bottom: 1px solid var(--line); }
.vp-nav .nav-link { color: #cfcfd4 !important; font-weight: 500; }
.vp-nav .nav-link:hover { color: var(--volt) !important; }
@media (max-width: 991px) { .vp-nav { background: rgba(11,11,12,.95); backdrop-filter: blur(14px); } .vp-nav:has(.navbar-collapse.show), .vp-nav:has(.collapsing) { background: #0b0b0c; border-bottom: 1px solid var(--line); } }

/* ---------- 6. Generic surfaces ---------- */
.vp-card {
    background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 1.5rem; height: 100%; transition: .3s;
}
.vp-card.hoverable:hover { transform: translateY(-6px); border-color: rgba(212,255,58,.4); }
.vp-chip { display: inline-flex; align-items: center; gap: .4rem; background: var(--panel-2); border: 1px solid var(--line); border-radius: 999px; padding: .35rem .9rem; font-size: .85rem; color: #ddd; }
.vp-chip.volt { background: rgba(212,255,58,.12); color: var(--volt); border-color: rgba(212,255,58,.3); }
.vp-icon-circle { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--panel-2); font-size: 1.3rem; color: var(--volt); flex-shrink: 0; }
.vp-icon-circle.solid { background: var(--volt); color: var(--ink); }

/* ---------- 7. LANDING PAGE ---------- */
.vp-section { padding: 6rem 0; position: relative; }
.vp-section-title { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; }
.vp-eyebrow { color: var(--volt); text-transform: uppercase; letter-spacing: .15em; font-size: .8rem; font-weight: 700; }

/* hero */
.vp-hero { padding: 9rem 0 5rem; position: relative; overflow: hidden; }
.vp-hero::before {
    content: ""; position: absolute; width: 900px; height: 900px; border-radius: 50%;
    background: radial-gradient(circle, rgba(126,224,181,.25), transparent 60%);
    top: -300px; right: -250px; animation: floatBlob 12s ease-in-out infinite;
}
.vp-hero::after {
    content: ""; position: absolute; width: 600px; height: 600px; border-radius: 50%;
    background: radial-gradient(circle, rgba(212,255,58,.12), transparent 60%);
    bottom: -300px; left: -200px;
}
@keyframes floatBlob { 50% { transform: translate(-60px, 40px) scale(1.05); } }
.vp-hero h1 { font-size: clamp(2.6rem, 6vw, 4.8rem); font-weight: 800; line-height: 1.02; }
.vp-hero .highlight { color: var(--ink); background: var(--volt); padding: 0 .6rem; border-radius: 16px; display: inline-block; transform: rotate(-2deg); }
.vp-hero-stats .num { font-family: 'Sora'; font-size: 2rem; font-weight: 700; }

/* ===== Phone mockups (pure HTML/CSS versions of the design screenshots) ===== */
.vp-phone {
    width: 290px; height: 590px; background: #0e0e10; border-radius: 46px; padding: 14px;
    border: 2px solid #2b2b30; box-shadow: 0 40px 80px rgba(0,0,0,.6), inset 0 0 0 6px #050506;
    position: relative; margin: auto;
}
.vp-phone::before { /* the dynamic island */
    content: ""; position: absolute; top: 18px; left: 50%; transform: translateX(-50%);
    width: 90px; height: 26px; background: #000; border-radius: 20px; z-index: 3;
}
.vp-phone-screen { background: var(--ink); border-radius: 34px; height: 100%; overflow: hidden; padding: 46px 14px 14px; font-size: .78rem; position: relative; }
.vp-phone-status { position: absolute; top: 18px; left: 26px; right: 26px; display: flex; justify-content: space-between; font-size: .72rem; font-weight: 600; }
.vp-phone.tilt-l { transform: rotate(-6deg); }
.vp-phone.tilt-r { transform: rotate(6deg) translateY(40px); }
.vp-phone .mini-card { background: var(--panel); border-radius: 18px; padding: 12px; margin-bottom: 8px; }
.vp-phone .mini-row { display: flex; align-items: center; gap: 8px; background: var(--panel); border-radius: 14px; padding: 9px; margin-bottom: 6px; }
.vp-phone .mini-row .ic { width: 30px; height: 30px; border-radius: 10px; background: var(--panel-2); display: grid; place-items: center; }
.vp-phone .bnav { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); background: #222; border-radius: 999px; display: flex; gap: 6px; padding: 5px; }
.vp-phone .bnav span { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #2d2d31; }
.vp-phone .bnav span.on { background: #fff; color: #000; }
.float-y { animation: floatY 5s ease-in-out infinite; }
@keyframes floatY { 50% { transform: translateY(-14px); } }

/* ===== Bank card (the green glass "GP VISA" card from the mockup) ===== */
.vp-bank-card {
    border-radius: 22px; padding: 1.3rem; color: #fff; position: relative; overflow: hidden;
    aspect-ratio: 1.6 / 1; display: flex; flex-direction: column; justify-content: space-between;
    background: var(--card-gradient); box-shadow: 0 20px 50px rgba(0,0,0,.45); transition: .4s;
}
.vp-bank-card::after { /* glossy reflection */
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.25) 50%, transparent 65%);
    transform: translateX(-100%); transition: .8s;
}
.vp-bank-card:hover::after { transform: translateX(100%); }
.vp-bank-card.lime { background: linear-gradient(135deg, #d4ff3a, #9be22d 60%, #4f9d2a); color: var(--ink); }
.vp-bank-card.dark { background: linear-gradient(135deg, #2a2a2e, #111 70%); border: 1px solid #333; }
.vp-bank-card.ice  { background: linear-gradient(135deg, #f1fbff, #cfe8f5); color: #0b0b0c; }
.vp-bank-card.frozen { filter: grayscale(.9) brightness(.7); }
.vp-bank-card .brand { font-family: 'Sora'; font-weight: 800; font-style: italic; font-size: 1.3rem; }
.vp-bank-card .chip-pill { background: rgba(0,0,0,.25); border-radius: 999px; padding: .25rem .75rem; font-size: .8rem; }
.vp-bank-card .number { font-family: 'Sora'; letter-spacing: .15em; font-size: 1.05rem; }

/* features grid */
.vp-feature { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; height: 100%; transition: .35s; position: relative; overflow: hidden; }
.vp-feature:hover { border-color: var(--volt); transform: translateY(-8px); }
.vp-feature:hover .vp-icon-circle { background: var(--volt); color: var(--ink); }
.vp-feature.big { background: var(--volt); color: var(--ink); }
.vp-feature.big .text-secondary { color: #3d4a10 !important; }

/* image blocks with overlay */
.vp-img { width: 100%; border-radius: var(--radius); object-fit: cover; display: block; background: var(--card-gradient); }
.vp-img-wrap { position: relative; border-radius: var(--radius); overflow: hidden; }
.vp-img-wrap img { transition: transform .8s; }
.vp-img-wrap:hover img { transform: scale(1.06); }
.vp-img-badge { position: absolute; background: rgba(11,11,12,.8); backdrop-filter: blur(12px); border: 1px solid var(--line); border-radius: 18px; padding: .8rem 1rem; }
.img-fallback { display: grid !important; place-items: center; color: rgba(0,0,0,.45); font-size: 4rem; min-height: 260px; }

/* infinite logo marquee */
.vp-marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); }
.vp-marquee-track { display: flex; gap: 4rem; width: max-content; animation: marquee 30s linear infinite; }
.vp-marquee-track span { font-family: 'Sora'; font-size: 1.6rem; font-weight: 700; color: #55555d; white-space: nowrap; }
.vp-marquee-track span i { color: var(--volt); margin-right: .4rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* crypto ticker */
.vp-ticker { background: var(--volt); color: var(--ink); padding: .8rem 0; overflow: hidden; transform: rotate(-1.5deg); width: 104%; margin-left: -2%; }
.vp-ticker .vp-marquee-track span { color: var(--ink); font-size: 1.05rem; }

/* steps */
.vp-step-num { font-family: 'Sora'; font-size: 4rem; font-weight: 800; color: transparent; -webkit-text-stroke: 1.5px var(--volt); line-height: 1; }

/* account type pick cards (landing + register) */
.vp-acct { cursor: pointer; background: var(--panel); border: 2px solid var(--line); border-radius: 22px; padding: 1.4rem; height: 100%; transition: .25s; display: block; }
.vp-acct:hover { border-color: #555; }
.vp-acct input { display: none; }
.vp-acct.selected, .vp-acct:has(input:checked) { border-color: var(--volt); background: rgba(212,255,58,.06); }

/* pricing */
.vp-price { background: var(--panel); border: 1px solid var(--line); border-radius: 28px; padding: 2.2rem; height: 100%; }
.vp-price.popular { background: linear-gradient(160deg, #1d2410, var(--panel) 60%); border-color: var(--volt); position: relative; }
.vp-price .amount { font-family: 'Sora'; font-size: 3rem; font-weight: 800; }
.vp-price ul { list-style: none; padding: 0; }
.vp-price li { padding: .45rem 0; color: #cfcfd4; }
.vp-price li i { color: var(--volt); margin-right: .5rem; }

/* testimonials */
.vp-testi { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; height: 100%; }
.vp-testi img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }

/* faq accordion (Bootstrap override) */
.vp-faq .accordion-item { background: var(--panel); border: 1px solid var(--line); border-radius: 18px !important; margin-bottom: 12px; overflow: hidden; }
.vp-faq .accordion-button { background: var(--panel); color: #fff; font-weight: 600; box-shadow: none; padding: 1.25rem 1.5rem; }
.vp-faq .accordion-button:not(.collapsed) { color: var(--volt); }
.vp-faq .accordion-button::after { filter: invert(1); }
.vp-faq .accordion-body { color: var(--muted); }

/* CTA */
.vp-cta { background: var(--volt); color: var(--ink); border-radius: 40px; padding: 4rem; position: relative; overflow: hidden; }
.vp-cta::after { content: "\F46D"; font-family: 'bootstrap-icons'; position: absolute; right: -40px; bottom: -80px; font-size: 22rem; opacity: .12; }

/* footer */
.vp-footer { border-top: 1px solid var(--line); padding: 5rem 0 2rem; }
.vp-footer h6 { color: #fff; margin-bottom: 1rem; }
.vp-footer a { color: var(--muted); display: block; padding: .25rem 0; }
.vp-footer a:hover { color: var(--volt); }
.vp-social a { display: inline-grid !important; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--panel-2); margin-right: .4rem; }

/* back to top */
#toTop { position: fixed; right: 22px; bottom: 22px; width: 48px; height: 48px; border-radius: 50%; background: var(--volt); color: var(--ink); border: none; display: none; z-index: 999; font-size: 1.2rem; }

/* ---------- 8. AUTH pages ---------- */
.vp-auth { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.vp-auth-side { position: relative; overflow: hidden; }
.vp-auth-side img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vp-auth-side .overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,11,12,.2), rgba(11,11,12,.95)); display: flex; flex-direction: column; justify-content: flex-end; padding: 3rem; }
.vp-auth-form { padding: 3rem clamp(1.5rem, 5vw, 5rem); display: flex; flex-direction: column; justify-content: center; }
@media (max-width: 991px) { .vp-auth { grid-template-columns: 1fr; } .vp-auth-side { display: none; } }

/* form controls (dark) */
.vp-input, .form-control.vp-input, .form-select.vp-input {
    background: var(--panel-2); border: 1px solid var(--line); color: #fff; border-radius: 16px; padding: .85rem 1.1rem;
}
.vp-input:focus { background: var(--panel-2); color: #fff; border-color: var(--volt); box-shadow: 0 0 0 .2rem rgba(212,255,58,.15); }
.vp-input::placeholder { color: #6b6b73; }
.form-select.vp-input { background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23aaa' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e"); }
.form-select.vp-input { background-repeat: no-repeat; background-position: right 1rem center; background-size: 14px 10px; padding-right: 2.6rem; }
.form-select.vp-input option { background: var(--panel); }
.form-label { color: #c7c7cc; font-size: .9rem; font-weight: 600; }
.vp-amount-input { font-family: 'Sora'; font-size: 2.4rem; font-weight: 700; background: transparent; border: none; color: #fff; width: 100%; outline: none; }

/* ---------- 9. APP shell ---------- */
.vp-shell { display: flex; min-height: 100vh; }
/* Fixed sidebar: stays put while main content scrolls; own scrollbar if menu is long */
.vp-sidebar {
    width: 260px;
    flex-shrink: 0;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 60;
    height: 100vh;
    height: 100dvh;
    flex-direction: column;
    padding: 1.6rem 1.1rem;
    border-right: 1px solid var(--line);
    background: var(--ink);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}
.vp-sidebar::-webkit-scrollbar { width: 6px; }
.vp-sidebar::-webkit-scrollbar-thumb { background: #3a3a40; border-radius: 99px; }
.vp-sidebar::-webkit-scrollbar-track { background: transparent; }
.vp-side-link { display: flex; align-items: center; gap: .8rem; padding: .75rem 1rem; border-radius: 14px; color: #a9a9b1; font-weight: 600; margin-bottom: 2px; transition: .2s; }
.vp-side-link i { font-size: 1.1rem; }
.vp-side-link:hover { background: var(--panel); color: #fff; }
.vp-side-link.active { background: var(--volt); color: var(--ink); }
.vp-side-promo { background: var(--panel); border-radius: 18px; padding: 1rem; margin-top: 1rem; }
.vp-main { flex-grow: 1; min-width: 0; width: 100%; }
@media (min-width: 992px) {
    .vp-main { margin-left: 260px; width: calc(100% - 260px); }
}
.vp-topbar { display: flex; justify-content: space-between; align-items: center; padding: 1.1rem clamp(1rem, 3vw, 2rem); border-bottom: 1px solid var(--line); position: sticky; top: 0; background: rgba(11,11,12,.85); backdrop-filter: blur(14px); z-index: 50; }
.vp-content { padding: 1.8rem clamp(1rem, 3vw, 2rem) 7rem; }
.vp-greet { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 700; }
.vp-avatar { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; border: 2px solid var(--line); background: var(--card-gradient); }
.vp-icon-btn { width: 44px; height: 44px; border-radius: 50%; background: var(--panel); border: 1px solid var(--line); color: #fff; display: grid; place-items: center; }
.vp-icon-btn:hover { border-color: var(--volt); color: var(--volt); }
.vp-dot { position: absolute; top: 9px; right: 11px; width: 8px; height: 8px; background: var(--danger); border-radius: 50%; }
.vp-search { align-items: center; gap: .5rem; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: .5rem 1rem; }
.vp-search input { background: none; border: none; outline: none; color: #fff; width: 200px; }
.vp-dropdown { background: var(--panel) !important; border: 1px solid var(--line); border-radius: 18px; }

/* balance hero card */
.vp-balance { font-family: 'Sora'; font-size: clamp(2.2rem, 5vw, 3.2rem); font-weight: 700; }
.vp-balance .cents { color: #6b6b73; }
body.hide-balance .vp-money { filter: blur(9px); user-select: none; }

/* lime action panel (from the "Devon Lane" design) */
.vp-volt-panel { background: var(--volt); color: var(--ink); border-radius: 28px; padding: 1.6rem; }
.vp-volt-panel .vp-action { display: flex; flex-direction: column; align-items: center; gap: .4rem; font-weight: 600; font-size: .9rem; color: var(--ink); }
.vp-volt-panel .vp-action span.ic { width: 56px; height: 56px; border-radius: 50%; background: rgba(0,0,0,.08); display: grid; place-items: center; font-size: 1.35rem; transition: .2s; }
.vp-volt-panel .vp-action:hover span.ic { background: var(--ink); color: var(--volt); transform: translateY(-3px); }

/* quick tiles */
.vp-quick-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .4rem; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 1rem .5rem; text-align: center; font-size: .82rem; font-weight: 600; transition: .2s; height: 100%; }
.vp-quick-tile i { font-size: 1.4rem; color: var(--volt); }
.vp-quick-tile:hover { border-color: var(--volt); transform: translateY(-3px); }

/* transactions list — grid keeps labels readable next to large amounts */
.vp-tx {
    display: grid;
    grid-template-columns: auto minmax(5.75rem, 1fr) auto;
    align-items: center;
    gap: .65rem .85rem;
    background: var(--panel-2);
    border-radius: 18px;
    padding: .9rem 1rem;
    margin-bottom: .6rem;
    transition: .2s;
}
.vp-tx:hover { background: #26262a; }
.vp-tx .ic { width: 46px; height: 46px; border-radius: 14px; background: #2a2a2e; display: grid; place-items: center; font-size: 1.15rem; }
.vp-tx .title { font-weight: 600; }
.status-Success, .status-Paid, .status-Active, .status-Received { color: var(--success); }
.status-Pending { color: var(--warning); }
.status-Failed, .status-Overdue { color: var(--danger); }
.vp-badge { padding: .25rem .7rem; border-radius: 999px; font-size: .75rem; font-weight: 700; display: inline-flex; align-items: center; gap: .3rem; }
.vp-badge.Success, .vp-badge.Paid, .vp-badge.Active { background: rgba(74,222,128,.12); color: var(--success); }
.vp-badge.Pending { background: rgba(251,191,36,.12); color: var(--warning); }
.vp-badge.Failed, .vp-badge.Overdue { background: rgba(255,92,92,.12); color: var(--danger); }
.vp-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* tables */
.vp-table { --bs-table-bg: transparent; --bs-table-color: var(--text); --bs-table-border-color: var(--line); --bs-table-hover-bg: var(--panel-2); --bs-table-hover-color: #fff; }
.vp-table th { color: var(--muted); font-weight: 600; font-size: .85rem; }
.vp-table td { vertical-align: middle; padding: .9rem .5rem; }

/* segmented tabs (Assets | Liabilities style) */
.vp-seg { background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 5px; display: inline-flex; gap: 4px; flex-wrap: wrap; }
.vp-seg button, .vp-seg a { border: none; background: none; color: var(--muted); border-radius: 999px; padding: .55rem 1.2rem; font-weight: 600; }
.vp-seg .active { background: var(--panel-2); color: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.4); }

/* progress bar split (like 56% / 28% / 16% in the mockup) */
.vp-split { display: flex; height: 40px; border-radius: 999px; overflow: hidden; background: var(--panel-2); font-size: .8rem; font-weight: 700; }
.vp-split > div { display: flex; align-items: center; justify-content: flex-end; padding-right: .8rem; transition: width 1.2s ease; }

/* purpose chips (transfer page) */
.vp-purpose { cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: .35rem; background: var(--panel-2); border: 2px solid transparent; border-radius: 18px; padding: .9rem .4rem; font-size: .8rem; font-weight: 600; transition: .2s; text-align: center; height: 100%; }
.vp-purpose i { font-size: 1.35rem; }
.vp-purpose:hover { border-color: #444; }
.vp-purpose:has(input:checked) { border-color: var(--volt); background: rgba(212,255,58,.08); }
.vp-purpose input { display: none; }

/* contact avatars row */
.vp-contact { text-align: center; cursor: pointer; flex-shrink: 0; width: 72px; }
.vp-contact img, .vp-contact .ph { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 2px solid transparent; margin: auto; display: grid; place-items: center; background: var(--panel-2); font-weight: 700; }
.vp-contact.active img, .vp-contact.active .ph { border-color: var(--volt); }
.vp-contact small { display: block; margin-top: .3rem; color: var(--muted); font-size: .75rem; }

/* ---------- 10. RECEIPT ---------- */
.vp-receipt { max-width: 440px; margin: auto; background: #fff; color: #111; border-radius: 28px; overflow: hidden; position: relative; }
.vp-receipt-head { background: var(--ink); color: #fff; padding: 2rem; text-align: center; position: relative; }
.vp-receipt-head .tick { width: 72px; height: 72px; border-radius: 50%; background: var(--volt); color: var(--ink); display: grid; place-items: center; font-size: 2.2rem; margin: 0 auto 1rem; animation: pop .5s ease; }
.vp-receipt-head .tick.fail { background: var(--danger); color: #fff; }
.vp-receipt-head .tick.pend { background: var(--warning); }
@keyframes pop { 0% { transform: scale(0); } 80% { transform: scale(1.15); } }
.vp-receipt-body { padding: 1.6rem 2rem; }
.vp-receipt-row { display: flex; justify-content: space-between; padding: .55rem 0; border-bottom: 1px dashed #ddd; font-size: .92rem; }
.vp-receipt-row span:first-child { color: #777; }
.vp-receipt-row span:last-child { font-weight: 600; text-align: right; }
.vp-receipt-zig { height: 16px; background: radial-gradient(circle at 8px 0, transparent 8px, #fff 9px) repeat-x; background-size: 16px 16px; background-color: var(--ink); }
@media print {
    body * { visibility: hidden; }
    .vp-receipt, .vp-receipt * { visibility: visible; }
    .vp-receipt { position: absolute; top: 0; left: 0; right: 0; }
    .no-print { display: none !important; }
}

/* ---------- 11. Crypto / shares ---------- */
.vp-coin { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: .8rem; flex-shrink: 0; }
.up { color: var(--success) !important; }
.down { color: var(--danger) !important; }
.vp-wallet-addr { font-family: monospace; background: var(--panel-2); border-radius: 14px; padding: .8rem 1rem; word-break: break-all; font-size: .85rem; }
.vp-qr { background: #fff; padding: 14px; border-radius: 20px; display: inline-block; }

/* ---------- 12. Mobile bottom nav ---------- */
.vp-bottom-nav { position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); background: rgba(34,34,38,.92); backdrop-filter: blur(16px); border: 1px solid var(--line); border-radius: 999px; padding: 6px; display: flex; gap: 6px; z-index: 1000; box-shadow: 0 10px 40px rgba(0,0,0,.6); }
.vp-bottom-nav a { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; color: #bbb; font-size: 1.2rem; background: #2d2d31; }
.vp-bottom-nav a.active { background: #fff; color: var(--ink); }
.vp-offcanvas { background: var(--ink); color: #fff; border-radius: 28px 28px 0 0; border-top: 1px solid var(--line); }

/* modal (dark) */
.modal-content.vp-modal { background: var(--panel); color: #fff; border: 1px solid var(--line); border-radius: 28px; }
.vp-modal .modal-header, .vp-modal .modal-footer { border-color: var(--line); }

/* toast */
.vp-toast { background: var(--panel); color: #fff; border: 1px solid var(--line); border-radius: 16px; }

/* loader overlay for "processing payment" */
#vpLoader { position: fixed; inset: 0; background: rgba(11,11,12,.85); backdrop-filter: blur(6px); display: none; align-items: center; justify-content: center; flex-direction: column; z-index: 3000; }
#vpLoader .ring { width: 70px; height: 70px; border: 5px solid #333; border-top-color: var(--volt); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* PIN keypad */
.vp-pin-dots { display: flex; justify-content: center; gap: 14px; margin: 1rem 0 1.5rem; }
.vp-pin-dots span { width: 16px; height: 16px; border-radius: 50%; border: 2px solid #555; transition: .15s; }
.vp-pin-dots span.on { background: var(--volt); border-color: var(--volt); }
.vp-keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: 100%; max-width: 280px; margin: auto; }
.vp-keypad button { height: 60px; border-radius: 18px; border: none; background: var(--panel-2); color: #fff; font-size: 1.4rem; font-family: 'Sora'; }
.vp-keypad button:active { background: var(--volt); color: var(--ink); }

/* ---------- 13. Dropdown (mega) menus in the navbar ---------- */
.vp-mega { background: rgba(22,22,24,.97); backdrop-filter: blur(16px); border: 1px solid var(--line); border-radius: 20px; padding: .6rem; min-width: 320px; margin-top: .6rem !important; box-shadow: 0 25px 60px rgba(0,0,0,.6); }
.vp-mega-item { display: flex !important; gap: .8rem; align-items: center; border-radius: 14px; padding: .7rem .8rem !important; color: #e4e4e7 !important; white-space: normal; }
.vp-mega-item:hover, .vp-mega-item.active { background: var(--panel-2) !important; }
.vp-mega-item small { display: block; color: var(--muted); font-size: .78rem; }
.vp-mega-ic { width: 40px; height: 40px; border-radius: 12px; background: rgba(212,255,58,.1); color: var(--volt); display: grid; place-items: center; font-size: 1.1rem; flex-shrink: 0; }
.vp-mega-item:hover .vp-mega-ic { background: var(--volt); color: var(--ink); }
.vp-nav .dropdown-toggle::after { border: none; content: "\F282"; font-family: 'bootstrap-icons'; vertical-align: middle; font-size: .7rem; margin-left: .3rem; transition: .2s; }
.vp-nav .nav-link.active { color: var(--volt) !important; }
@media (min-width: 992px) {
    /* open dropdowns on hover on desktop */
    .vp-nav .dropdown:hover > .dropdown-menu { display: block; animation: dropIn .2s ease; }
    .vp-nav .dropdown:hover > .dropdown-toggle::after { transform: rotate(180deg); }
    .vp-nav .dropdown > .dropdown-menu::before { content: ""; position: absolute; top: -14px; left: 0; right: 0; height: 14px; } /* hover bridge */
}
@media (max-width: 991px) { .vp-mega { min-width: 0; background: var(--panel); } .vp-nav .navbar-collapse { max-height: 80vh; overflow-y: auto; } }
@keyframes dropIn { from { opacity: 0; transform: translateY(8px); } }

/* ---------- 14. PWA install banner ---------- */
.vp-pwa-banner { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 160%); width: min(440px, calc(100% - 24px)); background: var(--panel); border: 1px solid var(--line); border-radius: 22px; padding: .8rem 1rem; display: flex; align-items: center; gap: .8rem; z-index: 1900; box-shadow: 0 20px 50px rgba(0,0,0,.6); opacity: 0; visibility: hidden; transition: transform .5s cubic-bezier(.2,.9,.3,1.2), opacity .3s, visibility .3s; }
.vp-pwa-banner.show { transform: translate(-50%, 0); opacity: 1; visibility: visible; }
.vp-pwa-banner img { width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0; }
.vp-pwa-banner .btn { flex-shrink: 0; }
/* Phones: same card, stretched to the screen width, sitting above the home-indicator
   and above the floating bottom nav on dashboard pages */
@media (max-width: 991px) {
    .vp-pwa-banner { bottom: calc(14px + env(safe-area-inset-bottom)); width: calc(100% - 20px); padding: .75rem .8rem; gap: .65rem; border-radius: 20px; }
    .vp-app .vp-pwa-banner { bottom: calc(86px + env(safe-area-inset-bottom)); }
    .vp-pwa-banner img { width: 42px; height: 42px; }
    .vp-pwa-banner small { font-size: .75rem; line-height: 1.3; display: block; }
    .vp-pwa-banner .btn { padding: .45rem 1rem; }
    body:has(.vp-pwa-banner.show) #toTop { bottom: 110px; }
}

/* ---------- 15. Inner page hero (about, contact, loans, …) ---------- */
.vp-page-hero { padding: 9rem 0 4rem; position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.vp-page-hero::before { content: ""; position: absolute; width: 700px; height: 700px; border-radius: 50%; background: radial-gradient(circle, rgba(126,224,181,.18), transparent 60%); top: -320px; right: -200px; }
.vp-page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; }
.vp-breadcrumb { font-size: .85rem; color: var(--muted); }
.vp-breadcrumb a:hover { color: var(--volt); }
.vp-sticky-toc { position: sticky; top: 100px; }
.vp-sticky-toc a { display: flex; gap: .6rem; align-items: center; padding: .55rem .9rem; border-radius: 12px; color: var(--muted); font-weight: 600; font-size: .92rem; }
.vp-sticky-toc a:hover, .vp-sticky-toc a.active { background: var(--panel); color: var(--volt); }
.vp-loan { scroll-margin-top: 100px; }
.vp-kv { display: flex; justify-content: space-between; padding: .55rem 0; border-bottom: 1px dashed var(--line); font-size: .92rem; }
.vp-kv:last-child { border: 0; }
.vp-kv span:first-child { color: var(--muted); }
.vp-check li { list-style: none; padding: .3rem 0; }
.vp-check { padding-left: 0; }
.vp-check li::before { content: "\F26E"; font-family: 'bootstrap-icons'; color: var(--volt); margin-right: .55rem; }
.vp-compare th, .vp-compare td { text-align: center; }
.vp-compare th:first-child, .vp-compare td:first-child { text-align: left; }
.vp-timeline { border-left: 2px solid var(--line); padding-left: 1.6rem; }
.vp-timeline > div { position: relative; padding-bottom: 1.8rem; }
.vp-timeline > div::before { content: ""; position: absolute; left: calc(-1.6rem - 7px); top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--volt); box-shadow: 0 0 0 4px rgba(212,255,58,.2); }
.vp-map { border: 0; width: 100%; height: 100%; min-height: 320px; border-radius: var(--radius); filter: invert(.92) hue-rotate(180deg) saturate(.6); }
.vp-badge.Rejected, .vp-badge.frozen, .vp-badge.Closed { background: rgba(255,92,92,.12); color: var(--danger); }
.vp-badge.Answered, .vp-badge.active, .vp-badge.Paid { background: rgba(74,222,128,.12); color: var(--success); }
.vp-badge.Open, .vp-badge.admin { background: rgba(212,255,58,.12); color: var(--volt); }
.vp-badge.user { background: rgba(125,211,252,.12); color: var(--sky); }
.status-Rejected { color: var(--danger); }

/* ---------- 16. Branding: uploaded wordmark ---------- */
.navbar-brand .vp-logo-img.vp-logo-wordmark { height: 40px; max-height: 40px; width: auto; max-width: 210px; }
.rc-brand .vp-logo-img.vp-logo-wordmark { height: 28px; max-width: 150px; }
.st-brand .vp-logo-img.vp-logo-wordmark { height: 36px; max-width: 180px; }
.vp-shake { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }

/* ---------- 17. RECEIPT (paper style, also used for PDF / image download and printing) ---------- */
.rc {
    --rc-ink: #0b0b0c; --rc-muted: #6b7280; --rc-line: #e7e7ea; --rc-accent: var(--volt);
    position: relative; max-width: 480px; margin: 0 auto; background: #fff; color: var(--rc-ink);
    border-radius: 24px; overflow: hidden; font-family: 'Manrope', system-ui, sans-serif; box-shadow: 0 30px 80px rgba(0,0,0,.45);
}
.rc-head { color: #fff; display: flex; justify-content: space-between; align-items: center; padding: 18px 24px; }
.rc-brand { display: flex; align-items: center; gap: .5rem; font-family: 'Sora'; font-weight: 800; font-size: 1.1rem; }
.rc-brand .vp-logo-mark { width: 30px; height: 30px; border-radius: 9px; font-size: .95rem; }
.rc-brand .vp-logo-img { height: 30px; }
.rc-head-meta { text-align: right; font-size: .75rem; color: #a1a1aa; line-height: 1.4; }
.rc-head-meta span { color: #fff; font-weight: 600; }
.rc-hero { color: #fff; text-align: center; padding: 6px 24px 30px; }
.rc-icon { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 12px; display: grid; place-items: center; font-size: 1.9rem; background: var(--rc-accent); color: var(--rc-ink); }
.rc-icon-Pending { background: #fbbf24; } .rc-icon-Failed { background: #ff5c5c; color: #fff; }
.rc-kind { color: #a1a1aa; font-size: .9rem; }
.rc-amount { font-family: 'Sora'; font-size: 2.4rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; margin: 4px 0; }
.rc-sub { color: #d4d4d8; font-size: .9rem; margin-bottom: 8px; }
.rc-sub b { color: var(--rc-accent); }
.rc-pill { display: inline-block; padding: 4px 14px; border-radius: 99px; font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.rc-pill-Success { background: rgba(74,222,128,.15); color: #4ade80; } .rc-pill-Pending { background: rgba(251,191,36,.15); color: #fbbf24; } .rc-pill-Failed { background: rgba(255,92,92,.15); color: #ff8080; }
.rc-top { background: var(--rc-ink); }
.rc-tear { height: 12px; background: var(--rc-ink); display: flex; justify-content: space-between; overflow: hidden; padding: 0 2px; }
.rc-tear span { flex: 0 0 16px; height: 16px; border-radius: 50%; background: #fff; margin-top: 4px; }
.rc-body { padding: 8px 26px 6px; }
.rc-section { padding: 14px 0 8px; border-bottom: 1px solid var(--rc-line); }
.rc-section-title { font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; color: var(--rc-muted); margin-bottom: 6px; }
.rc-row { display: flex; justify-content: space-between; gap: 16px; padding: 5px 0; font-size: .88rem; }
.rc-row span { color: var(--rc-muted); flex-shrink: 0; }
.rc-row b { font-weight: 700; text-align: right; word-break: break-word; }
.rc-mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .02em; }
.rc-totals { background: #f6f7f2; border-radius: 16px; padding: 10px 16px; margin: 16px 0 6px; }
.rc-total { border-top: 1px dashed #cfd2c8; margin-top: 6px; padding-top: 10px; font-size: 1rem; }
.rc-total span { color: var(--rc-ink); font-weight: 700; }
.rc-total b { font-family: 'Sora'; font-size: 1.1rem; }
.rc-note { background: #f4f4f5; border-radius: 12px; padding: 10px 14px; font-size: .85rem; color: #3f3f46; margin-top: 10px; }
.rc-verify { position: relative; display: flex; gap: 14px; align-items: center; padding: 16px 0 10px; font-size: .8rem; color: var(--rc-muted); }
.rc-verify b { color: var(--rc-ink); }
.rc-qr { flex-shrink: 0; width: 84px; height: 84px; padding: 4px; border: 1px solid var(--rc-line); border-radius: 10px; background: #fff; }
.rc-qr img, .rc-qr canvas { width: 100% !important; height: 100% !important; }
.rc-barcode { display: flex; height: 30px; margin-top: 8px; overflow: hidden; }
.rc-barcode span { background: var(--rc-ink); display: inline-block; height: 100%; }
.rc-foot { background: #fafafa; border-top: 1px solid var(--rc-line); text-align: center; font-size: .7rem; color: #9ca3af; padding: 12px 20px; line-height: 1.5; }
.rc-stamp { position: absolute; right: 0; top: 8px; transform: rotate(-12deg); border: 3px solid; border-radius: 10px; padding: 0 10px; font-family: 'Sora'; font-weight: 800; font-size: 1.15rem; letter-spacing: .12em; opacity: .55; pointer-events: none; background: #fff; }
.rc-verify > div:last-child { padding-right: 96px; }
.rc-stamp-Success { color: #16a34a; } .rc-stamp-Pending { color: #d97706; } .rc-stamp-Failed { color: #dc2626; }
.rc-actions .btn { min-width: 140px; }
@media (max-width: 520px) { .rc { border-radius: 18px; } .rc-amount { font-size: 2rem; } .rc-body { padding: 6px 18px; } }

@media print {
    @page { size: A4; margin: 14mm; }
    body { background: #fff !important; }
    body * { visibility: hidden; }
    .rc, .rc * { visibility: visible; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .rc { position: absolute; left: 0; right: 0; top: 0; box-shadow: none; border: 1px solid #ddd; }
    .no-print, .vp-bottom-nav, .vp-pwa-banner, #toTop, #scrollProgress { display: none !important; }
}

/* ---------- 18. International transfer ---------- */
.vp-country { cursor: pointer; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; padding: .5rem .2rem; border-radius: 14px; background: rgba(0,0,0,.07); border: 2px solid transparent; height: 100%; color: var(--ink); line-height: 1.1; transition: .2s; }
.vp-country input { display: none; }
.vp-country small { font-size: .68rem; font-weight: 600; }
.vp-country b { font-size: .7rem; opacity: .7; }
.vp-country:has(input:checked) { background: var(--ink); color: var(--volt); border-color: var(--ink); }
.vp-quote { background: var(--ink); color: #fff; border-radius: 20px; padding: 6px; }
.vp-quote-row { display: flex; align-items: center; gap: 10px; background: var(--panel); border-radius: 16px; padding: 10px 14px; }
.vp-quote-row small { color: var(--muted); display: block; }
.vp-quote-row input { background: none; border: none; outline: none; color: #fff; font-family: 'Sora'; font-size: 1.8rem; font-weight: 700; width: 100%; }
.vp-quote-row select { background: var(--panel-2); color: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .5rem .8rem; font-weight: 700; }
.vp-quote-get { font-family: 'Sora'; font-size: 1.8rem; font-weight: 700; color: var(--volt); }
.vp-quote-cur { background: var(--panel-2); border-radius: 999px; padding: .5rem .9rem; font-weight: 700; white-space: nowrap; }
.vp-quote-mid { padding: 10px 18px; color: var(--muted); display: grid; gap: 4px; }
.vp-quote-mid b { color: #fff; margin-left: 4px; }

/* ---------- 19. Inbox + popups ---------- */
.vp-bell-count { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; border-radius: 99px; background: var(--danger); color: #fff; font-size: .68rem; font-weight: 800; display: grid; place-items: center; padding: 0 5px; border: 2px solid var(--ink); }
.vp-unread-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--volt); flex-shrink: 0; }
.vp-notif { display: flex; gap: 1rem; padding: 1rem; border-radius: 18px; background: var(--panel-2); margin-bottom: .6rem; border-left: 4px solid transparent; }
.vp-notif.unread { border-left-color: var(--volt); background: #202224; }
.vp-notif .ic { width: 46px; height: 46px; border-radius: 14px; background: #2a2a2e; display: grid; place-items: center; font-size: 1.2rem; flex-shrink: 0; }
.vp-popup .modal-content { background: var(--panel); color: #fff; border: 1px solid var(--line); border-radius: 28px; overflow: hidden; }
.vp-popup-hero { background: radial-gradient(circle at 30% 20%, rgba(212,255,58,.35), transparent 60%), linear-gradient(135deg, #12301f, #0b0b0c); padding: 2rem; text-align: center; }
.vp-popup-hero img { max-height: 160px; max-width: 100%; border-radius: 16px; object-fit: cover; }
.vp-popup-hero .big-ic { width: 76px; height: 76px; border-radius: 22px; margin: auto; display: grid; place-items: center; font-size: 2.2rem; background: var(--volt); color: var(--ink); }
.vp-quote-row input::-webkit-outer-spin-button, .vp-quote-row input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.vp-quote-row input[type=number] { -moz-appearance: textfield; }

/* ---------- 20. Transfer progress (1 → 100%) ---------- */
.vp-progress-overlay { position: fixed; inset: 0; background: rgba(11,11,12,.88); backdrop-filter: blur(8px); z-index: 3000; display: none; align-items: center; justify-content: center; padding: 16px; }
.vp-progress-overlay.show { display: flex; animation: fadeIn .25s; }
@keyframes fadeIn { from { opacity: 0; } }
.vp-progress-card { width: min(380px, 100%); background: var(--panel); border: 1px solid var(--line); border-radius: 28px; padding: 2rem 1.6rem; text-align: center; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.vp-progress-ring { width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 14px; display: grid; place-items: center; font-size: 1.6rem; color: var(--ink); background: var(--volt); animation: pulseRing 1.2s ease-in-out infinite; }
@keyframes pulseRing { 0%, 100% { box-shadow: 0 0 0 0 rgba(212,255,58,.45); } 50% { box-shadow: 0 0 0 16px rgba(212,255,58,0); } }
.vp-progress-pct { font-family: 'Sora'; font-size: 3rem; font-weight: 800; line-height: 1.1; margin: 6px 0 12px; }
.vp-progress-track { height: 12px; border-radius: 99px; background: var(--panel-2); overflow: hidden; }
.vp-progress-bar { height: 100%; width: 1%; border-radius: 99px; background: linear-gradient(90deg, var(--mint), var(--volt)); }
.vp-progress-step { margin-top: 12px; font-weight: 600; }
.vp-progress-overlay.done .vp-progress-ring { animation: none; background: var(--success); }

/* ---------- 21. Held for review ---------- */
.vp-hold-reason { margin-top: 4px; font-size: .72rem; color: var(--warning); max-width: 220px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vp-hold-box { background: rgba(251,191,36,.08); border: 1px solid rgba(251,191,36,.35); border-radius: 18px; padding: 1rem 1.2rem; }
.kyc-steps { display: flex; gap: .5rem; }
.kyc-steps > div { flex: 1; text-align: center; font-size: .78rem; color: var(--muted); }
.kyc-steps > div::before { content: ""; display: block; height: 6px; border-radius: 99px; background: var(--line); margin-bottom: 6px; }
.kyc-steps > div.on { color: #fff; }
.kyc-steps > div.on::before { background: var(--volt); }

/* Real KYC photo upload zones + live preview */
.kyc-upload {
    display: block; cursor: pointer; position: relative; overflow: hidden;
    border: 2px dashed var(--line); border-radius: 18px; background: var(--panel-2);
    min-height: 220px; transition: .2s;
}
.kyc-upload:hover, .kyc-upload:focus-within, .kyc-upload.has-file { border-color: var(--volt); border-style: solid; }
.kyc-upload input[type=file] {
    position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; z-index: -1;
}
.kyc-upload-empty {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: .4rem; min-height: 220px; padding: 1.5rem; text-align: center; color: var(--muted);
    pointer-events: none;
}
.kyc-upload-empty i { font-size: 2.2rem; color: var(--volt); }
.kyc-upload-empty b { color: #fff; font-weight: 700; }
.kyc-upload-empty small { font-size: .8rem; }
.kyc-upload-ready { position: relative; pointer-events: none; }
.kyc-upload-preview {
    display: block; width: 100%; min-height: 180px; max-height: 280px;
    object-fit: contain; background: #0a0a0b; border-radius: 0;
}
.kyc-upload-change {
    display: flex; align-items: center; justify-content: center; gap: .35rem;
    padding: .55rem .75rem; background: rgba(11,11,12,.85); color: var(--volt);
    font-size: .82rem; font-weight: 700; border-top: 1px solid var(--line);
}
.kyc-upload-selfie { max-width: 300px; }
.kyc-upload-selfie .kyc-upload-preview { max-height: 340px; min-height: 240px; object-fit: cover; aspect-ratio: 3/4; }

/* Admin review images */
.kyc-doc-img { width: 100%; max-height: 360px; object-fit: contain; border-radius: 14px; background: #111; display: block; border: 1px solid var(--line); }
.kyc-doc-link { display: block; }
.kyc-doc-missing {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .4rem;
    min-height: 160px; border-radius: 14px; background: var(--panel-2); color: var(--muted); border: 1px dashed var(--line);
}
.kyc-doc-missing i { font-size: 1.8rem; }

/* ---------- 22. Statement (paper style, printable) ---------- */
.st-paper { background: #fff; color: #111; border-radius: 22px; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.45); }
.st-head { background: var(--ink); color: #fff; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 18px 24px; flex-wrap: wrap; }
.st-brand { display: flex; align-items: center; gap: .5rem; font-family: 'Sora'; font-weight: 800; font-size: 1.15rem; }
.st-title { font-family: 'Sora'; font-weight: 700; font-size: 1.05rem; }
.st-sub { color: #a1a1aa; font-size: .85rem; }
.st-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; padding: 20px 24px 6px; }
.st-meta span, .st-summary span { display: block; font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #6b7280; }
.st-meta b { display: block; font-size: .95rem; overflow-wrap: anywhere; }
.st-meta small { color: #6b7280; }
.st-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; padding: 14px 24px; }
.st-summary > div { background: #f6f7f2; border-radius: 14px; padding: 12px 14px; min-width: 0; }
.st-summary b { font-family: 'Sora'; font-size: clamp(.95rem, 1.6vw, 1.2rem); overflow-wrap: anywhere; }
.st-in { color: #15803d !important; } .st-out { color: #b91c1c !important; }
.st-table-wrap { padding: 4px 24px 8px; overflow-x: auto; }
.st-table { width: 100%; border-collapse: collapse; font-size: .85rem; min-width: 520px; }
.st-table th { background: #0b0b0c; color: #fff; font-weight: 700; padding: 9px 10px; font-size: .78rem; white-space: nowrap; }
.st-table td { padding: 9px 10px; border-bottom: 1px solid #eee; vertical-align: top; }
.st-table td small { color: #8a8f98; font-size: .72rem; }
.st-table tbody tr:nth-child(even) td { background: #fafafa; }
.st-table tr.st-carry td { background: #f6faE6 !important; font-weight: 700; }
.st-foot { background: #fafafa; border-top: 1px solid #eee; color: #9ca3af; font-size: .72rem; text-align: center; padding: 12px 20px; line-height: 1.5; }
@media print {
    .st-paper, .st-paper * { visibility: visible; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .st-paper { position: absolute; left: 0; right: 0; top: 0; box-shadow: none; border-radius: 0; }
    .st-table { min-width: 0; }
}

/* ---------- 23. RESPONSIVE FIT — keep text, money, cards and buttons inside their boxes ---------- */
.min-w-0 { min-width: 0 !important; }                       /* lets long names shrink / truncate inside flex rows */
.vp-tx { min-width: 0; }
.vp-tx > .flex-grow-1 { min-width: 5.75rem; max-width: 100%; overflow: hidden; }
.vp-tx > .text-end { min-width: 0; max-width: 100%; justify-self: end; text-align: right; }
.vp-tx > .vp-badge, .vp-tx > .vp-chip, .vp-tx > .btn, .vp-tx > form { justify-self: end; }
/* labels: one line + ellipsis — never Cr/y/pt/o or Person/al */
.vp-tx .title,
.vp-tx .flex-grow-1 > small {
    display: block;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    overflow-wrap: normal !important;
    word-break: keep-all !important;
}
.vp-tx .text-end b, .vp-tx > b, .vp-tx .text-end .vp-money {
    white-space: nowrap !important;
    display: block;
    max-width: 42vw;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: clamp(.68rem, 2.4vw, .95rem);
}
.vp-kv { gap: .75rem; min-width: 0; align-items: flex-start; }
.vp-kv > * { min-width: 0; }
.vp-kv > span:first-child { flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vp-kv > span:last-child, .vp-kv > b { flex: 0 1 auto; text-align: right; white-space: nowrap; }
.vp-badge { white-space: nowrap; flex-shrink: 0; }

/* Admin settings · Latest emails */
.vp-email-log {
    display: flex; align-items: flex-start; justify-content: space-between;
    gap: .75rem; padding: .7rem 0; border-bottom: 1px dashed var(--line); min-width: 0;
}
.vp-email-log:last-child { border-bottom: 0; }
.vp-email-log-main { flex: 1 1 auto; min-width: 0; }
.vp-email-log-meta {
    flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; gap: .35rem;
}
@media (max-width: 420px) {
    .vp-email-log { flex-wrap: wrap; }
    .vp-email-log-meta { flex-direction: row; align-items: center; width: 100%; justify-content: space-between; }
}
.vp-card, .vp-volt-panel, .vp-feature { min-width: 0; overflow: hidden; }

/* Money: never break mid-number — shrink the font instead */
.vp-money, .vp-balance, .vp-stat-amt {
    white-space: nowrap !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
    line-height: 1.15;
}
.vp-balance { font-size: clamp(1.25rem, 4.5vw, 2.6rem); }
.vp-fit-money { font-family: 'Sora'; font-size: clamp(.9rem, 1.6vw, 1.45rem); line-height: 1.2; white-space: nowrap; }
.vp-card .fs-4.vp-money, .vp-card .fs-3.vp-money, .vp-card .fs-2.vp-money {
    font-size: clamp(.95rem, 3.2vw, 1.5rem) !important;
    white-space: nowrap !important;
}
/* Dashboard 2×2 Money In / Out / Investments / Crypto */
.vp-stat-card { container-type: inline-size; height: 100%; display: flex; flex-direction: column; }
.vp-stat-amt {
    font-family: 'Sora', sans-serif; font-weight: 700;
    font-size: clamp(.78rem, 7.5cqi, 1.35rem);
    margin: .55rem 0;
}
.vp-volt-panel .vp-display { font-size: clamp(1.15rem, 2.6vw, 2.2rem) !important; white-space: nowrap; }
.vp-bank-card .fs-2, .vp-bank-card .fs-3 { font-size: clamp(1.15rem, 2.4vw, 1.9rem) !important; white-space: nowrap; }
.vp-bank-card { container-type: inline-size; }
@container (max-width: 300px) { .vp-bank-card .brand { font-size: 1rem; } .vp-bank-card .number { font-size: .85rem; letter-spacing: .08em; } }
/* chip / button rows wrap instead of overflowing */
.d-flex:has(> .vp-chip.qbtn), .d-flex:has(> .vp-chip.quick-amt), .d-flex:has(> .vp-chip.quick-bill) { flex-wrap: wrap; }
.vp-seg { max-width: 100%; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
.vp-seg::-webkit-scrollbar { display: none; }
.vp-seg > * { white-space: nowrap; flex-shrink: 0; }
.vp-seg.w-100 > * { flex-shrink: 1; }
/* tables: never squash, scroll sideways inside their card instead */
.table-responsive { -webkit-overflow-scrolling: touch; }
.vp-table td, .vp-table th { white-space: nowrap; }
.vp-table td .text-truncate, .vp-table td small { white-space: normal; }
/* phones */
@media (max-width: 575.98px) {
    .vp-content { padding-left: 12px; padding-right: 12px; }
    .vp-card { padding: 1.1rem; border-radius: 20px; }
    .vp-tx {
        grid-template-columns: auto minmax(4.5rem, 1fr);
        grid-template-areas: "ic label" "ic meta";
        gap: .2rem .65rem;
        padding: .7rem .75rem;
    }
    .vp-tx > .ic, .vp-tx > .vp-coin { grid-area: ic; align-self: center; }
    .vp-tx > .flex-grow-1 { grid-area: label; min-width: 0; }
    .vp-tx > .text-end, .vp-tx > .vp-badge, .vp-tx > .vp-chip, .vp-tx > .btn, .vp-tx > form {
        grid-area: meta; justify-self: start; text-align: left; max-width: 100%;
    }
    .vp-tx .text-end b, .vp-tx .text-end .vp-money { max-width: 100%; font-size: clamp(.75rem, 3.6vw, .95rem); }
    .vp-tx .ic { width: 38px; height: 38px; font-size: 1rem; border-radius: 12px; }
    .vp-stat-amt { font-size: clamp(.72rem, 8cqi, 1.1rem); }
    .vp-topbar { padding: .75rem 12px; }
    .vp-greet { font-size: 1.5rem; }
    .vp-volt-panel { padding: 1.2rem; }
    .vp-volt-panel .vp-action span.ic { width: 46px; height: 46px; }
    .vp-amount-input { font-size: 1.8rem; }
    h2.fw-bold { font-size: 1.5rem; }
}
.vp-seg.w-100 > * { min-width: 0; padding-left: .6rem; padding-right: .6rem; }
.vp-card .d-flex > .btn.flex-fill { min-width: 0; padding-left: .35rem; padding-right: .35rem; }
