/* ================================================================
   VTU Pay — assets/css/style.css
   Shared stylesheet · Bootstrap-compatible

   COLORS: this file no longer declares any hex/rgba values.
   All colors live in colors.css — load it BEFORE this file:
     <link rel="stylesheet" href="<?= BASE_URL ?>/assets/css/colors.css">
     <link rel="stylesheet" href="<?= BASE_URL ?>/assets/css/style.css">
   Edit the palette in colors.css only, never here.
   ================================================================ */

/* ── Google Fonts ──────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=DM+Sans:wght@300;400;500&display=swap');

/* ── Non-color design tokens ──────────────────────────────────── */
:root {
    /* Layout */
    --sidebar-width: 260px;
    --topbar-height: 64px;

    /* Typography */
    --font-heading: 'Plus Jakarta Sans', sans-serif;
    --font-body:    'DM Sans', sans-serif;

    /* Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    /* Transition */
    --transition: .2s ease;
}

/* ── Base Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    font-size: .9375rem;
    line-height: 1.6;
    color: var(--ash-800);
    background-color: var(--ash-100);
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

h1,h2,h3,h4,h5,h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--ash-900);
    line-height: 1.3;
}

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-dark); }
img { max-width: 100%; }

/* ── Scrollbar ──────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--ash-100); }
::-webkit-scrollbar-thumb { background: var(--ash-400); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--ash-500); }

/* ================================================================
   AUTH LAYOUT
   ================================================================ */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: stretch;
}

/* Left branding panel */
.auth-brand-panel {
    flex: 0 0 45%;
    background: linear-gradient(145deg, var(--ash-900) 0%, var(--ash-800) 60%, var(--ash-950) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 3rem 2.5rem;
    position: relative;
    overflow: hidden;
}
.auth-brand-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, var(--accent-a18) 0%, transparent 55%),
        radial-gradient(circle at 80% 80%, var(--accent-a12) 0%, transparent 50%);
}
.auth-brand-panel::after {
    content: '';
    position: absolute;
    bottom: -80px; right: -80px;
    width: 320px; height: 320px;
    border-radius: 50%;
    border: 2px solid var(--white-a06);
}

.auth-brand-inner {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 380px;
}

.brand-logo {
    width: 72px; height: 72px;
    background: var(--accent);
    border-radius: var(--radius-xl);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 8px 24px var(--accent-a35);
}
.brand-logo i { font-size: 2rem; color: var(--color-white); }

.brand-name {
    font-family: var(--font-heading);
    font-size: 2rem; font-weight: 800;
    color: var(--color-white); letter-spacing: -.5px; margin-bottom: .5rem;
}
.brand-tagline {
    font-size: .9375rem; color: var(--ash-400);
    line-height: 1.5; margin-bottom: 2.5rem;
}

.brand-features { list-style: none; padding: 0; margin: 0; text-align: left; }
.brand-features li {
    display: flex; align-items: center; gap: .75rem;
    color: var(--ash-300); font-size: .875rem;
    padding: .5rem 0;
    border-bottom: 1px solid var(--white-a06);
}
.brand-features li:last-child { border-bottom: none; }
.brand-features li i {
    flex-shrink: 0;
    width: 28px; height: 28px;
    background: var(--accent-a20);
    border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
    color: var(--accent-light); font-size: .8rem;
}

/* Right form panel */
.auth-form-panel {
    flex: 1;
    display: flex; align-items: center; justify-content: center;
    padding: 2.5rem 1.5rem;
    background: var(--ash-50);
    overflow-y: auto;
}

.auth-card { width: 100%; max-width: 440px; }
.auth-card-header { margin-bottom: 2rem; }
.auth-card-header h2 { font-size: 1.625rem; margin-bottom: .375rem; }
.auth-card-header p { color: var(--ash-600); font-size: .9rem; margin: 0; }

/* Auth divider */
.auth-divider {
    display: flex; align-items: center; gap: .75rem;
    margin: 1rem 0; color: var(--ash-400); font-size: .78rem;
}
.auth-divider::before, .auth-divider::after {
    content: ''; flex: 1; height: 1px; background: var(--ash-200);
}

.auth-footer-note { text-align: center; font-size: .875rem; color: var(--ash-600); margin-top: 1.5rem; }
.auth-footer-note a { color: var(--accent); font-weight: 600; }

/* ── Floating orbs ─────────────────────────────────────────────── */
.auth-orb {
    position: absolute; border-radius: 50%;
    background: radial-gradient(circle, var(--accent-a22) 0%, transparent 70%);
    pointer-events: none;
    animation: orb-float linear infinite;
}
.auth-orb-1 { width: 340px; height: 340px; top: -80px;  left: -80px;  animation-duration: 18s; }
.auth-orb-2 { width: 260px; height: 260px; bottom: -60px; right: -60px; animation-duration: 22s; animation-delay: -6s; }
.auth-orb-3 { width: 180px; height: 180px; top: 45%; left: 55%;       animation-duration: 15s; animation-delay: -3s; }
@keyframes orb-float {
    0%   { transform: translate(0,0) scale(1); }
    33%  { transform: translate(18px,-22px) scale(1.05); }
    66%  { transform: translate(-14px,16px) scale(.96); }
    100% { transform: translate(0,0) scale(1); }
}

/* ── Brand logo variants ────────────────────────────────────────── */
.brand-logo-wrap { margin: 0 auto 1.5rem; display: flex; align-items: center; justify-content: center; }
.brand-logo-img  { width: 120px; height: 120px; object-fit: contain; border-radius: 20px; box-shadow: 0 8px 32px var(--black-a25); filter: drop-shadow(0 4px 12px var(--accent-a30)); }

.mobile-brand-logo-img { width: 42px; height: 42px; object-fit: contain; border-radius: 10px; }
.mobile-brand-icon { width: 42px; height: 42px; background: var(--accent); border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.mobile-brand-icon i { font-size: .95rem; color: var(--color-white); }
.mobile-brand-name { font-family: var(--font-heading); font-weight: 800; font-size: 1.1rem; color: var(--ash-900); }

/* Brand logo ring — reuses ud-ring animation */
.brand-logo-ring {
    position: relative;
    display: flex; align-items: center; justify-content: center;
    width: 110px; height: 110px;
    margin: 0 auto .85rem;
}
.brand-logo-ring .ud-ring-1     { width: 124px; height: 124px; }
.brand-logo-ring .ud-ring-2     { width: 152px; height: 152px; }
.brand-logo-ring .ud-icon-circle { width: 110px; height: 110px; overflow: hidden; }
.brand-logo-img-ring { width: 72px; height: 72px; object-fit: contain; border-radius: 50%; display: block; }

.brand-logo-ring-sm { width: 68px; height: 68px; margin: 0 auto .4rem; }
.brand-logo-ring-sm .ud-ring-1      { width: 80px;  height: 80px; }
.brand-logo-ring-sm .ud-ring-2      { width: 96px;  height: 96px; }
.brand-logo-ring-sm .ud-icon-circle { width: 68px;  height: 68px; }
.brand-logo-ring-sm .brand-logo-img-ring { width: 44px; height: 44px; }

/* ── App store badges ───────────────────────────────────────────── */
.app-badges { margin-top: 2.5rem; }
.app-badges-label { font-size: .75rem; color: var(--ash-500); text-align: center; margin-bottom: .65rem; letter-spacing: .04em; text-transform: uppercase; }
.app-badges-row   { display: flex; gap: .65rem; justify-content: center; flex-wrap: wrap; }
.app-badge {
    display: flex; align-items: center; gap: .55rem;
    padding: .5rem .9rem;
    background: var(--white-a08); border: 1.5px solid var(--white-a14);
    border-radius: 10px; color: var(--color-white); text-decoration: none;
    transition: background .2s, border-color .2s, transform .2s;
    min-width: 130px; cursor: default; opacity: .85;
}
.app-badge:hover { background: var(--white-a14); border-color: var(--white-a28); color: var(--color-white); transform: translateY(-2px); }
.app-badge-icon    { width: 22px; height: 22px; flex-shrink: 0; fill: currentColor; }
.app-badge-icon-fa { font-size: 1.4rem; flex-shrink: 0; }
.app-badge-text    { display: flex; flex-direction: column; line-height: 1.2; font-size: .82rem; font-weight: 700; }
.app-badge-text small { font-size: .65rem; color: var(--white-a60); }

/* ── Social auth ────────────────────────────────────────────────── */
.social-auth-row { display: flex; flex-direction: column; gap: .6rem; margin-bottom: 1rem; }
.btn-social {
    display: flex; align-items: center; gap: .75rem; width: 100%;
    padding: .65rem 1rem; border-radius: var(--radius-md);
    font-size: .9rem; font-weight: 600;
    cursor: not-allowed; opacity: .75;
    border: 1.5px solid var(--ash-300); background: var(--color-white); color: var(--ash-800);
    transition: background .15s, border-color .15s;
    position: relative;
}
.btn-social:disabled { pointer-events: none; }
.social-icon    { width: 20px; height: 20px; flex-shrink: 0; }
.social-icon-fa { font-size: 1.15rem; flex-shrink: 0; color: var(--ash-900); }
.soon-chip {
    margin-left: auto; font-size: .65rem; font-weight: 700;
    background: var(--accent-bg); color: var(--accent);
    border: 1px solid var(--accent); border-radius: 20px; padding: .1rem .5rem; letter-spacing: .03em;
}

/* Social circle buttons */
.social-circle-row { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-bottom: 1.25rem; }
.social-circle-btn {
    width: 48px; height: 48px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    text-decoration: none; border: 2px solid transparent;
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
    position: relative; flex-shrink: 0;
}
.social-circle-btn:hover  { transform: translateY(-3px) scale(1.08); box-shadow: 0 8px 20px var(--black-a18); filter: brightness(1.08); }
.social-circle-btn:active { transform: translateY(0) scale(.97); }
.social-circle-facebook { background: var(--facebook-blue); border-color: var(--facebook-blue); box-shadow: 0 4px 12px var(--facebook-blue-a35); }
.social-circle-facebook i { color: var(--color-white); font-size: 1.2rem; }
.social-circle-facebook:hover { box-shadow: 0 8px 22px var(--facebook-blue-a45); }
.social-circle-google { background: var(--color-white); border-color: var(--ash-300); box-shadow: 0 4px 12px var(--black-a10); }
.social-circle-google svg { display: block; }
.social-circle-google:hover { border-color: var(--ash-400); box-shadow: 0 8px 22px var(--black-a15); }
.social-circle-apple { background: var(--color-black); border-color: var(--color-black); box-shadow: 0 4px 12px var(--black-a30); }
.social-circle-apple i { color: var(--color-white); font-size: 1.3rem; line-height: 1; }
.social-circle-apple:hover { box-shadow: 0 8px 22px var(--black-a42); }

/* ── Register success screen ────────────────────────────────────── */
.reg-success-screen { text-align: center; padding: 1.5rem 0; animation: fadeInUp .5s ease both; }
.reg-success-icon {
    width: 72px; height: 72px;
    background: var(--accent-bg); border: 2px solid var(--accent); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1.25rem;
    animation: reg-success-pop .5s cubic-bezier(.34,1.56,.64,1) both;
}
.reg-success-icon i { font-size: 2rem; color: var(--accent); }
@keyframes reg-success-pop { 0% { transform: scale(0); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
.reg-success-title { font-size: 1.5rem; font-weight: 800; color: var(--ash-900); margin-bottom: .4rem; }
.reg-success-sub   { color: var(--ash-500); font-size: .9rem; line-height: 1.6; margin-bottom: 1.5rem; }
.reg-redirect-bar-wrap { height: 6px; background: var(--ash-100); border-radius: 10px; overflow: hidden; margin-bottom: .5rem; }
.reg-redirect-bar  { height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--accent-darker)); border-radius: 10px; transition: width 4s linear; }
.reg-redirect-label { font-size: .78rem; color: var(--ash-400); margin-bottom: 0; }

/* Brand panel stagger */
.auth-brand-inner .fade-in-up:nth-child(1) { animation-delay: .05s; }
.auth-brand-inner .fade-in-up:nth-child(2) { animation-delay: .15s; }
.auth-brand-inner .fade-in-up:nth-child(3) { animation-delay: .25s; }
.auth-brand-inner .fade-in-up:nth-child(4) { animation-delay: .35s; }
.auth-brand-inner .fade-in-up:nth-child(5) { animation-delay: .45s; }

/* ── Register step progress ─────────────────────────────────────── */
.reg-steps { display: flex; align-items: center; justify-content: center; gap: 0; margin-bottom: 1.5rem; }
.reg-step  { display: flex; flex-direction: column; align-items: center; gap: .3rem; position: relative; z-index: 1; }
.reg-step-circle {
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--ash-200); color: var(--ash-500);
    font-size: .8rem; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    transition: background .3s, color .3s, box-shadow .3s;
}
.reg-step.active .reg-step-circle { background: var(--accent); color: var(--color-white); box-shadow: 0 0 0 4px var(--accent-a18); }
.reg-step.done   .reg-step-circle { background: var(--success); color: var(--color-white); }
.reg-step-label { font-size: .68rem; color: var(--ash-500); font-weight: 600; white-space: nowrap; transition: color .3s; }
.reg-step.active .reg-step-label  { color: var(--accent); }
.reg-step.done   .reg-step-label  { color: var(--success); }
.reg-step-line { flex: 1; height: 2px; background: var(--ash-200); min-width: 40px; max-width: 80px; margin-bottom: 1.2rem; transition: background .3s; }
.reg-step-line.done { background: var(--success); }

/* ── PIN boxes (register / set-pin) ────────────────────────────── */
.pin-boxes { display: flex; gap: .6rem; justify-content: center; margin-bottom: .25rem; }
.pin-box {
    width: 56px; height: 60px;
    border: 2px solid var(--ash-300); border-radius: 12px;
    background: var(--ash-50);
    font-size: 1.6rem; font-weight: 700; text-align: center;
    color: var(--ash-900); caret-color: var(--accent);
    transition: border-color .2s, box-shadow .2s;
    outline: none; -webkit-appearance: none; appearance: none;
}
.pin-box:focus    { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-a15); background: var(--color-white); }
.pin-box.filled   { border-color: var(--accent); }
.pin-box.is-invalid { border-color: var(--danger) !important; box-shadow: 0 0 0 3px var(--danger-a12) !important; }
.pin-group-label  { font-size: .8rem; font-weight: 600; color: var(--ash-600); text-align: center; margin-bottom: .6rem; }
.pin-security-note {
    background: var(--accent-bg); border: 1px solid var(--accent-a20);
    border-radius: 10px; padding: .75rem 1rem;
    font-size: .77rem; color: var(--ash-700); line-height: 1.6; margin-bottom: 1.25rem;
}
.pin-security-note i { color: var(--accent); }
.reg-back-link { display: inline-flex; align-items: center; gap: .35rem; font-size: .8rem; color: var(--ash-500); text-decoration: none; transition: color .2s; margin-bottom: 1rem; }
.reg-back-link:hover { color: var(--accent); }

/* ── OTP / PIN row (verify-otp, change-pin) ─────────────────────── */
.otp-inputs { display: flex; gap: .5rem; justify-content: center; margin: .5rem 0 1.25rem; }
.otp-box {
    width: 50px; height: 52px; text-align: center;
    font-size: 1.5rem; font-weight: 700;
    border: 2px solid var(--ash-300); border-radius: var(--radius-md);
    transition: border-color .15s;
}
.otp-box:focus { border-color: var(--accent); outline: none; box-shadow: none; }
.otp-box.err   { border-color: var(--danger); }

.pin-row { display: flex; gap: .6rem; justify-content: center; margin: .5rem 0 1.25rem; }
/* .pin-box is already defined above — shared */

@keyframes shake {
    0%,100% { transform: translateX(0); }
    20%,60%  { transform: translateX(-5px); }
    40%,80%  { transform: translateX(5px); }
}
.otp-inputs.shaking, .pin-row.shaking { animation: shake .35s ease; }

/* Expiry bar */
.expiry-bar-wrap { background: var(--ash-100); border-radius: 99px; height: 6px; margin: .4rem 0 1rem; overflow: hidden; }
.expiry-bar      { height: 100%; border-radius: 99px; background: var(--accent); transition: width 1s linear, background .5s; }
.expiry-bar.warn   { background: var(--warning-alt); }
.expiry-bar.danger { background: var(--danger); }
.expiry-text       { text-align: center; font-size: .78rem; color: var(--ash-500); margin-bottom: .2rem; }
.expiry-text.warn  { color: var(--warning-alt); font-weight: 600; }
.expiry-text.danger{ color: var(--danger); font-weight: 600; }

/* ================================================================
   FORM CONTROLS
   ================================================================ */
.form-label {
    font-family: var(--font-heading);
    font-size: .8125rem; font-weight: 600;
    color: var(--ash-700); letter-spacing: .02em;
    text-transform: uppercase; margin-bottom: .4rem;
}

.input-group-icon { position: relative; }
.input-group-icon .form-control { padding-left: 2.8rem; }
.input-group-icon .input-icon {
    position: absolute; left: .9rem; top: 50%; transform: translateY(-50%);
    color: var(--ash-500); font-size: .9rem;
    pointer-events: none; transition: color var(--transition); z-index: 5;
}
.input-group-icon:focus-within .input-icon { color: var(--accent); }

.input-group-icon .toggle-pw {
    position: absolute; right: .9rem; top: 50%; transform: translateY(-50%);
    color: var(--ash-500); background: none; border: none; padding: 0;
    font-size: .9rem; line-height: 1; cursor: pointer; z-index: 5;
    transition: color var(--transition);
}
.input-group-icon .toggle-pw:hover { color: var(--accent); }

.form-control {
    background: var(--color-white);
    border: 1.5px solid var(--ash-300);
    border-radius: var(--radius-md);
    padding: .65rem 1rem;
    font-size: .9375rem; color: var(--ash-800);
    transition: border-color var(--transition), box-shadow var(--transition);
    height: auto;
}
.form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-a15);
    outline: none; background: var(--color-white);
}
.form-control::placeholder { color: var(--ash-400); }
.form-control.is-invalid { border-color: var(--danger); }
.form-control.is-invalid:focus { box-shadow: 0 0 0 3px var(--danger-a15); }

.invalid-feedback { font-size: .8125rem; color: var(--danger); margin-top: .25rem; }

.form-check-input:checked { background-color: var(--accent); border-color: var(--accent); }
.form-check-input:focus   { box-shadow: 0 0 0 3px var(--accent-a15); }
.form-check-label { font-size: .875rem; color: var(--ash-700); }

/* Key input with eye toggle */
.key-wrap { position: relative; }
.key-wrap input { padding-right: 2.5rem; }
.eye-btn {
    position: absolute; right: .75rem; top: 50%; transform: translateY(-50%);
    background: none; border: none; padding: 0;
    color: var(--ash-400); cursor: pointer; font-size: .82rem; line-height: 1;
}
.eye-btn:hover { color: var(--accent); }

/* Current-value hint */
.cur-hint { display: flex; align-items: baseline; gap: .3rem; font-size: .72rem; color: var(--ash-500); margin-top: .3rem; }
.cur-hint code { font-family: monospace; font-size: .72rem; background: var(--ash-100); padding: .1rem .3rem; border-radius: 3px; }

/* Input loading spinner */
.input-loading { position: absolute; right: .75rem; top: 50%; transform: translateY(-50%); }

/* ================================================================
   BUTTONS
   ================================================================ */
.btn {
    font-family: var(--font-heading);
    font-weight: 600; border-radius: var(--radius-md);
    padding: .65rem 1.5rem; font-size: .9375rem;
    transition: all var(--transition); cursor: pointer;
    border: 2px solid transparent; line-height: 1.4;
}
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--color-white); box-shadow: 0 4px 12px var(--accent-a30); }
.btn-primary:hover, .btn-primary:focus { background: var(--accent-dark); border-color: var(--accent-dark); color: var(--color-white); box-shadow: 0 6px 18px var(--accent-a38); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }
.btn-outline-secondary { background: transparent; border-color: var(--ash-300); color: var(--ash-700); }
.btn-outline-secondary:hover { background: var(--ash-200); border-color: var(--ash-400); color: var(--ash-900); }
.btn-lg    { padding: .8rem 1.75rem; font-size: 1rem; }
.btn-block { width: 100%; }

/* ================================================================
   ALERTS
   ================================================================ */
.alert {
    border-radius: var(--radius-md); border: none;
    padding: .875rem 1.1rem; font-size: .9rem;
    display: flex; align-items: flex-start; gap: .65rem;
}
.alert i { flex-shrink: 0; margin-top: .1rem; font-size: 1rem; }
.alert-success { background: var(--accent-bg); color: var(--accent-dark); border: 1px solid var(--accent-a30); }
.alert-danger  { background: var(--danger-a08); color: var(--alert-danger-text); }
.alert-warning { background: var(--alert-warning-bg); color: var(--alert-warning-text); }
.alert-info    { background: var(--alert-info-bg); color: var(--alert-info-text); }

/* ================================================================
   MISC HELPERS
   ================================================================ */
.text-accent  { color: var(--accent) !important; }
.text-muted   { color: var(--ash-500) !important; }
.fw-semibold  { font-weight: 600; }
.small        { font-size: .8125rem; }
.txn-amount   { white-space: nowrap; font-weight: 600; }

.divider-text { display: flex; align-items: center; gap: .75rem; color: var(--ash-500); font-size: .8125rem; margin: 1.25rem 0; }
.divider-text::before, .divider-text::after { content: ''; flex: 1; height: 1px; background: var(--ash-300); }

.spinner-border-sm { width: 1rem; height: 1rem; }

/* ================================================================
   DASHBOARD LAYOUT
   ================================================================ */
.app-layout { display: flex; min-height: 100vh; }

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: var(--ash-900);
    flex-shrink: 0;
    display: flex; flex-direction: column;
    position: fixed; top: 0; left: 0; bottom: 0;
    z-index: 200;
    transition: transform var(--transition);
    overflow-y: auto;
}
.sidebar-brand {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--white-a07);
    display: flex; align-items: center; gap: .75rem;
}
.sidebar-brand .logo-icon {
    width: 38px; height: 38px;
    background: var(--accent); border-radius: 8px;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.sidebar-brand .logo-icon i { color: var(--color-white); font-size: 1rem; }
.sidebar-brand .brand-text  { font-family: var(--font-heading); font-weight: 800; font-size: 1.125rem; color: var(--color-white); letter-spacing: -.3px; }
.sidebar-nav { flex: 1; padding: 1rem 0; }
.nav-section-title { padding: .5rem 1.5rem .25rem; font-size: .6875rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ash-600); }
.sidebar-nav .nav-link {
    display: flex; align-items: center; gap: .75rem;
    padding: .625rem 1.5rem;
    color: var(--ash-400); font-size: .875rem; font-weight: 500;
    border-radius: 0; transition: all var(--transition); position: relative;
}
.sidebar-nav .nav-link i    { width: 20px; text-align: center; font-size: .9rem; flex-shrink: 0; }
.sidebar-nav .nav-link:hover { color: var(--color-white); background: var(--white-a06); }
.sidebar-nav .nav-link.active { color: var(--color-white); background: var(--accent-a15); }
.sidebar-nav .nav-link.active::before {
    content: ''; position: absolute; left: 0; top: 0; bottom: 0;
    width: 3px; background: var(--accent); border-radius: 0 3px 3px 0;
}

/* Main content */
.main-content { margin-left: var(--sidebar-width); flex: 1; display: flex; flex-direction: column; min-width: 0; }

/* Topbar */
.topbar {
    height: var(--topbar-height); background: var(--color-white);
    border-bottom: 1px solid var(--ash-200);
    display: flex; align-items: center; padding: 0 1.75rem; gap: 1rem;
    position: sticky; top: 0; z-index: 100; box-shadow: var(--shadow-sm);
}
.topbar-left  { flex: 1; display: flex; align-items: center; gap: .75rem; }
.topbar-right { display: flex; align-items: center; gap: .75rem; }
.btn-hamburger { display: none; background: none; border: none; color: var(--ash-700); font-size: 1.2rem; cursor: pointer; padding: .25rem; }
.page-title { font-family: var(--font-heading); font-size: 1rem; font-weight: 700; color: var(--ash-800); margin: 0; }
.topbar-avatar {
    width: 36px; height: 36px; border-radius: 50%; background: var(--ash-200);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-heading); font-weight: 700; font-size: .875rem; color: var(--ash-700); cursor: pointer;
}

/* Content body */
.content-body { padding: 1.75rem; flex: 1; }

/* Sidebar overlay */
.sidebar-overlay { display: none; position: fixed; inset: 0; background: var(--black-a45); z-index: 199; }

/* ================================================================
   CARDS
   ================================================================ */
.card { background: var(--color-white); border: 1px solid var(--ash-200); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); }
.card-header {
    background: transparent; border-bottom: 1px solid var(--ash-200);
    padding: 1.1rem 1.5rem;
    font-family: var(--font-heading); font-weight: 700; font-size: .9375rem; color: var(--ash-800);
}
.card-body { padding: 1.5rem; }

.stat-card {
    border-radius: var(--radius-lg); padding: 1.375rem 1.5rem;
    background: var(--color-white); border: 1px solid var(--ash-200); box-shadow: var(--shadow-card);
    display: flex; align-items: center; gap: 1rem;
}
.stat-card-icon {
    width: 52px; height: 52px; border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center; font-size: 1.25rem; flex-shrink: 0;
}
.stat-card-icon.accent  { background: var(--accent-bg); color: var(--accent); }
.stat-card-icon.success { background: var(--success-a10);  color: var(--success); }
.stat-card-icon.warning { background: var(--warning-a10); color: var(--warning); }
.stat-card-icon.danger  { background: var(--danger-a10);  color: var(--danger); }
.stat-card-body { flex: 1; min-width: 0; }
.stat-label { font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--ash-500); margin-bottom: .2rem; }
.stat-value { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 800; color: var(--ash-900); line-height: 1; margin-bottom: 0; }

/* ================================================================
   TABLES
   ================================================================ */
.table-card { border-radius: var(--radius-lg); overflow: hidden; }
.table { margin: 0; font-size: .875rem; }
.table thead th {
    background: var(--ash-100); color: var(--ash-600);
    font-family: var(--font-heading); font-size: .75rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .06em;
    border-bottom: 1px solid var(--ash-200); padding: .75rem 1rem;
}
.table tbody td { padding: .875rem 1rem; border-bottom: 1px solid var(--ash-100); vertical-align: middle; color: var(--ash-700); }
.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr:hover td { background: var(--ash-50); }

/* ================================================================
   BADGES
   ================================================================ */
.badge-status {
    display: inline-flex; align-items: center; gap: .3rem;
    padding: .25rem .65rem; border-radius: 20px;
    font-size: .75rem; font-weight: 600; font-family: var(--font-heading);
}
.badge-status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .7; }
.badge-success { background: var(--success-a10);  color: var(--success); }
.badge-danger  { background: var(--danger-a10);  color: var(--danger); }
.badge-warning { background: var(--warning-a10);  color: var(--warning-text); }
.badge-info    { background: var(--info-a10); color: var(--info); }
.badge-ash     { background: var(--ash-200);      color: var(--ash-600); }

/* ================================================================
   LOADING / ANIMATIONS
   ================================================================ */
.page-loader { position: fixed; inset: 0; background: var(--ash-50); display: flex; align-items: center; justify-content: center; z-index: 9999; transition: opacity .4s, visibility .4s; }
.page-loader.hidden { opacity: 0; visibility: hidden; }

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}
.fade-in-up              { animation: fadeInUp .35s ease both; }
.fade-in-up:nth-child(2) { animation-delay: .05s; }
.fade-in-up:nth-child(3) { animation-delay: .1s; }
.fade-in-up:nth-child(4) { animation-delay: .15s; }

@keyframes slideUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes popIn {
    from { opacity: 0; transform: scale(.4); }
    to   { opacity: 1; transform: scale(1); }
}

/* ================================================================
   ADMIN / GATEWAY TABS
   ================================================================ */
.gw-tabs { display: flex; border-bottom: 2px solid var(--ash-200); overflow-x: auto; scrollbar-width: none; background: var(--ash-50); }
.gw-tabs::-webkit-scrollbar { display: none; }
.gw-tab {
    display: flex; align-items: center; gap: .5rem;
    padding: .85rem 1.35rem; font-size: .84rem; font-weight: 600;
    color: var(--ash-500); background: transparent; border: none;
    border-bottom: 2.5px solid transparent; margin-bottom: -2px;
    cursor: pointer; white-space: nowrap;
    transition: color .15s, border-color .15s, background .15s;
}
.gw-tab:hover  { color: var(--accent); background: var(--accent-bg); }
.gw-tab.active { color: var(--accent); border-bottom-color: var(--accent); background: var(--color-white); }
.gw-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ash-300); flex-shrink: 0; transition: background .15s; }
.gw-dot.on { background: var(--success); }

.gw-panel { display: none; padding: 1.75rem 2rem; }
.gw-panel.active { display: block; }

.sec-label {
    font-size: .69rem; font-weight: 700; letter-spacing: .09em;
    text-transform: uppercase; color: var(--ash-400);
    margin: 1.5rem 0 .8rem;
    display: flex; align-items: center; gap: .4rem;
}
.sec-label::after   { content: ''; flex: 1; height: 1px; background: var(--ash-200); }
.sec-label:first-child { margin-top: 0; }

.status-row {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: .9rem 1.1rem; background: var(--ash-50);
    border: 1.5px solid var(--ash-200); border-radius: var(--radius-md);
}
.save-bar {
    display: flex; align-items: center; justify-content: space-between;
    padding-top: 1.25rem; margin-top: 1.25rem; border-top: 1px solid var(--ash-200);
}
.step-badge {
    display: inline-flex; align-items: center; justify-content: center;
    width: 22px; height: 22px; background: var(--accent); color: var(--color-white);
    border-radius: 50%; font-size: .7rem; font-weight: 700; margin-right: .4rem;
}
.step-info { display: flex; align-items: flex-start; gap: .75rem; }
.step-info-icon {
    flex-shrink: 0; width: 28px; height: 28px;
    background: var(--accent); color: var(--color-white); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: .75rem; font-weight: 700;
}

/* ================================================================
   SERVICE CARDS (old layout — kept for fallback compatibility)
   ================================================================ */
.service-card {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 1.25rem .75rem; border: 2px solid var(--ash-200);
    border-radius: var(--radius-md); text-decoration: none; color: var(--ash-800);
    transition: all .2s; position: relative;
}
.service-card i    { font-size: 1.5rem; color: var(--accent); margin-bottom: .5rem; }
.service-card span { font-size: .75rem; font-weight: 600; text-align: center; }
.service-card:hover { border-color: var(--accent); background: var(--accent-bg); transform: translateY(-2px); }
.service-card-disabled { opacity: .6; cursor: not-allowed; }
.service-card-disabled:hover { transform: none; border-color: var(--ash-200); background: transparent; }
.coming-soon-badge { position: absolute; top: .25rem; right: .25rem; background: var(--warning); color: var(--color-white); font-size: .6rem; padding: .125rem .375rem; border-radius: var(--radius-sm); }

/* ================================================================
   NETWORK SELECTOR
   ================================================================ */
.net-logo-circle {
    width: 32px; height: 32px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: .52rem; font-weight: 900; color: var(--color-white);
    flex-shrink: 0; letter-spacing: -.3px; text-align: center; line-height: 1.1;
}
.net-logo-circle.sm      { width: 34px; height: 34px; font-size: .54rem; }
.net-logo-circle.mtn     { background: var(--network-mtn); color: var(--near-black); }
.net-logo-circle.airtel  { background: var(--network-airtel); }
.net-logo-circle.glo     { background: var(--network-glo); }
.net-logo-circle.mobile9 { background: var(--network-9mobile); }
.net-logo-circle.none    { background: var(--ash-300); color: var(--ash-600); font-size: .5rem; }
.net-chevron.open        { transform: rotate(180deg); }

#phoneNumber:focus { box-shadow: none; border-color: var(--accent); }
#netPhoneWrap.focused #netSelector { border-color: var(--accent); }
#netPhoneWrap.focused #phoneNumber { border-color: var(--accent); }

.net-dropdown {
    position: absolute; top: calc(100% + 6px); left: 0;
    min-width: 140px; background: var(--color-white);
    border: 1.5px solid var(--ash-200); border-radius: var(--radius-md);
    box-shadow: 0 8px 24px var(--black-a10); z-index: 9999;
    overflow: hidden; display: none;
}
.net-dropdown.open { display: block; }
.net-option { display: flex; align-items: center; gap: .65rem; padding: .55rem .85rem; cursor: pointer; transition: background .12s; }
.net-option:hover           { background: var(--ash-50); }
.net-option.active          { background: var(--accent-bg); }
.net-option[data-active="0"]{ opacity: .5; }
.net-option-badge { font-size: .58rem; background: var(--danger); color: var(--color-white); padding: .1rem .35rem; border-radius: 4px; margin-left: auto; }
.net-opt-name { font-size: .78rem; font-weight: 700; color: var(--ash-700); }

.net-detected, .net-unavailable { display: none; align-items: center; gap: .3rem; font-size: .73rem; margin-top: .35rem; padding-left: .25rem; }
.net-detected.show    { display: flex; color: var(--success); }
.net-unavailable.show { display: flex; color: var(--danger); }

/* ================================================================
   SERVICE-PAGE COMPONENTS
   ================================================================ */
.plan-summary-card { background: var(--accent-bg); border: 2px solid var(--accent); border-radius: var(--radius-md); padding: 1rem 1.1rem; }

.quick-amt-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: .5rem; }
.quick-amt-btn {
    padding: .5rem .25rem; border: 1.5px solid var(--ash-200); border-radius: var(--radius-md);
    background: var(--color-white); font-size: .8rem; font-weight: 700; color: var(--ash-700);
    cursor: pointer; transition: border-color .15s, background .15s, color .15s; text-align: center;
}
.quick-amt-btn:hover  { border-color: var(--accent); color: var(--accent); }
.quick-amt-btn.active { border-color: var(--accent); background: var(--accent-bg); color: var(--accent); }

.meter-type-card {
    display: flex; flex-direction: column; align-items: center; gap: .35rem;
    padding: .75rem 1.5rem; border: 2px solid var(--ash-200); border-radius: var(--radius-md);
    cursor: pointer; transition: all .2s; flex: 1; text-align: center;
}
.meter-type-card i              { font-size: 1.3rem; color: var(--ash-400); }
.meter-type-card span           { font-size: .8rem; font-weight: 600; color: var(--ash-700); }
.meter-type-card.active         { border-color: var(--accent); background: var(--accent-bg); }
.meter-type-card.active i       { color: var(--accent); }
.meter-type-card.active span    { color: var(--accent); }

/* E-PIN dropdown */
.epin-select-wrap { position: relative; user-select: none; }
.epin-select-trigger {
    display: flex; align-items: center; justify-content: space-between; gap: .5rem;
    padding: .6rem .85rem; border: 1.5px solid var(--ash-200); border-radius: var(--radius-md);
    background: var(--color-white); cursor: pointer; transition: border-color .15s, box-shadow .15s; min-height: 56px;
}
.epin-select-trigger:hover,
.epin-select-wrap.open .epin-select-trigger { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-a12); }
.epin-select-preview  { display: flex; align-items: center; gap: .75rem; flex: 1; min-width: 0; }
.epin-icon-placeholder { width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: .95rem; color: var(--color-white); background: var(--ash-300); }
.epin-select-placeholder { font-size: .85rem; color: var(--ash-400); }
.epin-chevron { color: var(--ash-400); font-size: .75rem; flex-shrink: 0; transition: transform .2s; }
.epin-chevron.open { transform: rotate(180deg); }
.epin-dropdown { position: absolute; top: calc(100% + 4px); left: 0; right: 0; background: var(--color-white); border: 1.5px solid var(--accent); border-radius: var(--radius-md); box-shadow: 0 8px 24px var(--black-a12); z-index: 200; overflow: hidden; display: none; }
.epin-dropdown.open { display: block; }
.epin-option { display: flex; align-items: center; gap: .75rem; padding: .7rem 1rem; cursor: pointer; transition: background .12s; position: relative; border-bottom: 1px solid var(--ash-100); }
.epin-option:last-child  { border-bottom: none; }
.epin-option:hover       { background: var(--ash-50); }
.epin-option.selected    { background: var(--accent-bg); }
.epin-option-check       { display: none; color: var(--accent); font-size: .95rem; flex-shrink: 0; margin-left: auto; }
.epin-option.selected .epin-option-check { display: block; }
.epin-card-icon  { width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: .95rem; color: var(--color-white); }
.epin-waec    { background: var(--epin-waec); }
.epin-neco    { background: var(--epin-neco); }
.epin-nabteb  { background: var(--epin-nabteb); }
.epin-jamb    { background: var(--epin-jamb); }
.epin-nbais   { background: var(--epin-nbais); }
.epin-default { background: var(--ash-500); }
.epin-card-body  { flex: 1; min-width: 0; }
.epin-card-label { margin: 0; font-size: .8rem; font-weight: 600; color: var(--ash-800); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.epin-card-price { margin: 0; font-size: .85rem; font-weight: 700; color: var(--accent); }

/* Quantity row */
.qty-row { display: flex; align-items: center; gap: 0; width: 100%; }
.qty-btn {
    width: 40px; height: 40px; border: 1.5px solid var(--ash-300); background: var(--color-white);
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    font-size: .8rem; color: var(--ash-700); transition: background .12s, border-color .12s;
}
.qty-btn:first-child { border-radius: var(--radius-md) 0 0 var(--radius-md); border-right: none; }
.qty-btn:last-child  { border-radius: 0 var(--radius-md) var(--radius-md) 0; border-left: none; }
.qty-btn:hover { background: var(--ash-50); border-color: var(--accent); }
.qty-input { flex: 1; text-align: center; border-radius: 0 !important; border-left: 1.5px solid var(--ash-300) !important; border-right: 1.5px solid var(--ash-300) !important; font-weight: 700; }
.qty-input:focus { box-shadow: none; border-color: var(--accent) !important; }

/* ================================================================
   FUND WALLET
   ================================================================ */
.monnify-bank-row {
    display: flex; align-items: center; gap: .85rem;
    padding: .85rem 1rem; border: 1.5px solid var(--ash-200);
    border-radius: var(--radius-md); background: var(--ash-50); margin-bottom: .6rem;
}
.monnify-bank-row:last-child { margin-bottom: 0; }
.bank-icon-circle { width: 38px; height: 38px; border-radius: 50%; background: var(--accent-bg); display: flex; align-items: center; justify-content: center; color: var(--accent); font-size: .9rem; flex-shrink: 0; }
.bank-acct-num { font-family: monospace; font-size: .95rem; font-weight: 700; letter-spacing: .03em; white-space: nowrap; }
.copy-acct-btn {
    margin-left: auto; flex-shrink: 0; background: transparent;
    border: 1.5px solid var(--ash-300); border-radius: var(--radius-sm);
    padding: .3rem .65rem; font-size: .78rem; cursor: pointer; color: var(--ash-600);
    transition: all .18s; white-space: nowrap;
}
.copy-acct-btn:hover  { border-color: var(--accent); color: var(--accent); }
.copy-acct-btn.copied { border-color: var(--success); color: var(--success); }

/* ================================================================
   PAYMENT RESULT PAGE
   ================================================================ */
.result-wrapper { min-height: 80vh; display: flex; align-items: center; justify-content: center; padding: 2rem 1rem; }
.result-card { width: 100%; max-width: 480px; border-radius: 1.25rem; overflow: hidden; box-shadow: 0 8px 40px var(--black-a12); animation: slideUp .45s cubic-bezier(.16,1,.3,1) both; }
.result-header { padding: 2.5rem 2rem 2rem; text-align: center; color: var(--color-white); }
.result-header h2 { font-size: 1.35rem; font-weight: 800; margin-bottom: .35rem; }
.result-header p  { font-size: .875rem; opacity: .88; margin: 0; }
.result-card.is-success  .result-header { background: linear-gradient(135deg,var(--result-success-from) 0%,var(--result-success-to) 100%); }
.result-card.is-failed   .result-header { background: linear-gradient(135deg,var(--result-failed-from) 0%,var(--result-failed-to) 100%); }
.result-card.is-already  .result-header { background: linear-gradient(135deg,var(--result-already-from) 0%,var(--result-already-to) 100%); }
.icon-circle { width: 90px; height: 90px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 1.25rem; font-size: 2.25rem; animation: popIn .5s .25s cubic-bezier(.34,1.56,.64,1) both; background: var(--white-a20); border: 3px solid var(--white-a50); color: var(--color-white); }
.amount-badge { display: inline-block; font-size: 2rem; font-weight: 900; letter-spacing: -.5px; margin: .5rem 0 0; }
.result-body  { background: var(--color-white); padding: 1.75rem 2rem 2rem; }
.info-row { display: flex; justify-content: space-between; align-items: center; padding: .65rem 0; border-bottom: 1px solid var(--ash-100); font-size: .85rem; }
.info-row:last-child   { border-bottom: none; }
.info-row .label       { color: var(--ash-500); }
.info-row .value       { font-weight: 600; color: var(--ash-800); }
.info-row .value.mono  { font-family: monospace; font-size: .8rem; }
.action-btn { display: flex; align-items: center; justify-content: center; gap: .5rem; width: 100%; padding: .8rem; border-radius: .75rem; font-weight: 700; font-size: .9rem; text-decoration: none; transition: all .2s; margin-top: .75rem; }
.action-btn.primary   { background: var(--accent); color: var(--color-white); border: none; }
.action-btn.primary:hover { opacity: .9; color: var(--color-white); }
.action-btn.secondary { background: transparent; color: var(--ash-700); border: 1.5px solid var(--ash-300); }
.action-btn.secondary:hover { background: var(--ash-50); }
.support-note { font-size: .775rem; color: var(--ash-500); text-align: center; margin-top: 1rem; }
.support-note a { color: inherit; text-decoration: underline; }
#confetti-canvas { position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 9999; }

/* ================================================================
   RECEIPT PAGE
   ================================================================ */
#receiptCard { animation: slideUp .45s cubic-bezier(.16,1,.3,1) both; }
.receipt-status-icon { animation: popIn .5s .25s cubic-bezier(.34,1.56,.64,1) both; }
.receipt-details { max-width: 500px; margin: 0 auto; }
.detail-row { display: flex; justify-content: space-between; align-items: center; padding: .75rem 0; border-bottom: 1px solid var(--ash-200); }
.detail-row:last-child { border-bottom: none; }
.detail-label { font-size: .875rem; color: var(--ash-600); font-weight: 500; }
.detail-value { font-size: .875rem; color: var(--ash-800); font-weight: 600; text-align: right; }

/* E-PIN receipt cards */
.epin-pins-section { max-width: 500px; margin: 0 auto 1rem; }
.epin-pins-header  { font-size: .82rem; font-weight: 700; color: var(--accent); background: var(--accent-bg); padding: .5rem .85rem; border-radius: var(--radius-sm); margin-bottom: .6rem; }
.epin-pin-card     { display: flex; align-items: center; gap: .6rem; background: var(--ash-50); border: 1px solid var(--ash-200); border-radius: var(--radius-sm); padding: .65rem 1rem; margin-bottom: .45rem; position: relative; }
.epin-pin-label    { font-size: .72rem; color: var(--ash-500); min-width: 36px; font-weight: 600; }
.epin-pin-value    { font-family: monospace; font-size: 1rem; font-weight: 700; letter-spacing: .08em; color: var(--ash-800); flex: 1; }
.epin-serial-value { font-size: .72rem; color: var(--ash-500); margin-left: .3rem; }
.epin-copy-btn     { background: none; border: none; cursor: pointer; color: var(--ash-500); font-size: .9rem; padding: .25rem; transition: color .15s; }
.epin-copy-btn:hover { color: var(--accent); }

/* ================================================================
   TRANSACTION HISTORY
   ================================================================ */
.th-hdr  { display: flex; align-items: center; gap: .75rem; margin-bottom: 1.1rem; }
.th-hdr h1 { font-size: 1.1rem; font-weight: 700; margin: 0; color: var(--ash-900); }
.th-badge  { margin-left: auto; font-size: .72rem; font-weight: 600; background: var(--accent-bg); color: var(--accent-dark); padding: .15rem .55rem; border-radius: 20px; }

.th-sw    { position: relative; margin-bottom: .85rem; }
.th-sw-ic { position: absolute; left: .9rem; top: 50%; transform: translateY(-50%); color: var(--ash-400); font-size: .85rem; pointer-events: none; }
.th-si    { width: 100%; padding: .55rem 2.4rem .55rem 2.3rem; border: 1.5px solid var(--ash-200); border-radius: var(--radius-xl); font-size: .875rem; background: var(--ash-50); color: var(--ash-800); outline: none; transition: border-color .15s; }
.th-si:focus { border-color: var(--accent); background: var(--color-white); }
.th-sx    { position: absolute; right: .75rem; top: 50%; transform: translateY(-50%); background: none; border: none; color: var(--ash-400); cursor: pointer; padding: .2rem .3rem; font-size: .8rem; display: none; }

.th-pills { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: .5rem; }
.th-pill  { display: inline-flex; align-items: center; gap: .3rem; padding: .28rem .8rem; border-radius: 20px; font-size: .775rem; font-weight: 600; cursor: pointer; border: 1.5px solid var(--ash-200); color: var(--ash-600); background: var(--color-white); transition: all .13s; white-space: nowrap; user-select: none; }
.th-pill:hover { border-color: var(--accent); color: var(--accent); }
.th-pill.act   { background: var(--accent); border-color: var(--accent); color: var(--color-white); }
.th-ps         { border-style: dashed; }
.th-ps.a-successful { background: var(--success-a10);  border-color: var(--success); color: var(--success); border-style: solid; }
.th-ps.a-failed     { background: var(--danger-a10);  border-color: var(--danger);  color: var(--danger);  border-style: solid; }
.th-ps.a-pending    { background: var(--warning-a12); border-color: var(--warning); color: var(--warning-text);        border-style: solid; }

.th-card  { background: var(--color-white); border-radius: var(--radius-md); box-shadow: 0 1px 4px var(--black-a07); overflow: hidden; }
.th-dsep  { font-size: .71rem; font-weight: 700; color: var(--ash-500); text-transform: uppercase; letter-spacing: .05em; padding: .45rem 1rem .3rem; background: var(--ash-50); border-bottom: 1px solid var(--ash-100); }
.th-row   { display: flex; align-items: center; gap: .85rem; padding: .8rem 1rem; text-decoration: none; color: inherit; border-bottom: 1px solid var(--ash-100); transition: background .11s; }
.th-row:last-child { border-bottom: none; }
.th-row:hover      { background: var(--ash-50); }

.th-icw { position: relative; flex-shrink: 0; }
.th-ic  { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .9rem; }
.th-ic.accent  { background: var(--accent-bg);           color: var(--accent); }
.th-ic.success { background: var(--success-a12);         color: var(--success); }
.th-ic.danger  { background: var(--danger-a10);          color: var(--danger); }
.th-ic.warning { background: var(--warning-a12);         color: var(--warning-text); }
.th-ic.info    { background: var(--info-a10);         color: var(--info); }
.th-ic.purple  { background: var(--purple-a10);         color: var(--color-purple); }
.th-ic.yellow  { background: var(--warning-a12);         color: var(--warning-text); }

.th-nd { position: absolute; bottom: -1px; right: -2px; width: 17px; height: 17px; border-radius: 50%; border: 2px solid var(--color-white); font-size: .44rem; font-weight: 800; display: flex; align-items: center; justify-content: center; color: var(--color-white); text-transform: uppercase; line-height: 1; }
.th-nd.mtn     { background: var(--network-mtn); color: var(--near-black); }
.th-nd.airtel  { background: var(--network-airtel); }
.th-nd.glo     { background: var(--network-glo); }
.th-nd.mobile9 { background: var(--network-9mobile); }
.th-nd.none    { background: var(--ash-300); }

.th-info { flex: 1; min-width: 0; }
.th-ttl  { font-size: .875rem; font-weight: 600; color: var(--ash-800); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.th-sub  { font-size: .75rem; color: var(--ash-500); margin-top: .08rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.th-ts   { font-size: .7rem; color: var(--ash-400); margin-top: .1rem; }
.th-rgt  { text-align: right; flex-shrink: 0; }
.th-amt  { font-size: .9rem; font-weight: 700; line-height: 1.2; }
.th-st   { font-size: .68rem; font-weight: 600; margin-top: .18rem; text-transform: uppercase; letter-spacing: .02em; }
.th-st.successful { color: var(--success); }
.th-st.failed     { color: var(--danger); }
.th-st.pending    { color: var(--warning-text); }
.th-st.refund     { color: var(--warning-text); }
.th-chv  { color: var(--ash-300); font-size: .68rem; flex-shrink: 0; }
.th-empty   { padding: 3rem 1rem; text-align: center; color: var(--ash-400); }
.th-empty i { font-size: 2.2rem; margin-bottom: .6rem; display: block; opacity: .25; }
.th-empty p { font-size: .875rem; margin: 0; }
.th-pg  { display: flex; justify-content: center; align-items: center; gap: .3rem; margin-top: 1rem; flex-wrap: wrap; }
.th-pgb { min-width: 34px; height: 34px; border-radius: var(--radius-sm); border: 1.5px solid var(--ash-200); background: var(--color-white); color: var(--ash-700); font-size: .78rem; font-weight: 600; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all .12s; }
.th-pgb:hover:not(.th-pgd):not(.th-pgc) { border-color: var(--accent); color: var(--accent); }
.th-pgb.th-pgc { background: var(--accent); border-color: var(--accent); color: var(--color-white); }
.th-pgb.th-pgd { opacity: .3; cursor: default; }

/* ================================================================
   DASHBOARD WIDGETS (balance card, VA, service cards)
   ================================================================ */
/* Balance card */
.db-bal-card { background: linear-gradient(135deg,var(--accent) 0%,var(--accent-darker) 100%); border-radius: var(--radius-lg); padding: .85rem 1.1rem; box-shadow: 0 4px 16px var(--accent-a28); }
.db-bal-top  { display: flex; align-items: center; justify-content: space-between; margin-bottom: .3rem; }
.db-bal-label { font-size: .68rem; font-weight: 700; color: var(--white-a70); display: flex; align-items: center; gap: .35rem; letter-spacing: .05em; text-transform: uppercase; }
.db-bal-eye  { background: var(--white-a15); border: none; border-radius: 50%; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; color: var(--white-a85); cursor: pointer; transition: background .15s; flex-shrink: 0; padding: 0; }
.db-bal-eye:hover { background: var(--white-a28); }
.db-bal-amt  { font-size: 1.55rem; font-weight: 800; color: var(--color-white); font-family: var(--font-heading); letter-spacing: -.5px; line-height: 1.2; margin-bottom: .4rem; }
.db-bal-hidden { letter-spacing: .12em; font-size: 1.35rem; }
.db-bal-meta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .35rem; }
.db-bal-meta > span { font-size: .66rem; color: var(--white-a52); }
.db-bal-fund { display: inline-flex; align-items: center; gap: .3rem; background: var(--white-a18); color: var(--color-white); border: 1px solid var(--white-a28); border-radius: var(--radius-xl); padding: .2rem .75rem; font-size: .72rem; font-weight: 700; text-decoration: none; transition: background .15s; }
.db-bal-fund:hover { background: var(--white-a28); color: var(--color-white); }

/* Welcome */
.db-greet-name { font-size: 1.05rem; font-weight: 700; color: var(--ash-900); margin-bottom: .05rem; font-family: var(--font-heading); }
.db-greet-sub  { font-size: .8rem; color: var(--ash-500); }

/* Virtual account cards */
.db-va-list { display: flex; flex-direction: row; gap: .65rem; overflow-x: auto; padding-bottom: .4rem; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.db-va-list::-webkit-scrollbar { display: none; }
.db-va-card { background: var(--color-white); border-radius: var(--radius-md); padding: .7rem .9rem; display: flex; align-items: center; justify-content: space-between; gap: .75rem; box-shadow: 0 1px 4px var(--black-a07); border: 1.5px solid var(--ash-100); transition: border-color .15s, box-shadow .15s; min-width: 260px; flex-shrink: 0; }
.db-va-card:hover { border-color: var(--accent); box-shadow: 0 2px 10px var(--accent-a12); }
.db-va-left  { display: flex; align-items: center; gap: .75rem; min-width: 0; }
.db-va-icon  { width: 38px; height: 38px; border-radius: 10px; background: var(--accent-bg); color: var(--accent); display: flex; align-items: center; justify-content: center; font-size: .85rem; flex-shrink: 0; }
.db-va-info  { min-width: 0; }
.db-va-bank  { font-size: .78rem; font-weight: 700; color: var(--accent-dark); margin-bottom: .05rem; }
.db-va-num   { font-size: 1rem; font-weight: 800; font-family: monospace; color: var(--ash-900); letter-spacing: .05em; line-height: 1.2; }
.db-va-name  { font-size: .68rem; color: var(--ash-500); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.db-va-charge { font-size: .64rem; color: var(--warning); margin-top: .1rem; font-weight: 600; }
.db-va-right { display: flex; flex-direction: column; align-items: flex-end; gap: .4rem; flex-shrink: 0; }
.db-va-active { display: inline-flex; align-items: center; gap: .3rem; font-size: .65rem; font-weight: 700; color: var(--success); background: var(--success-a10); border-radius: 20px; padding: .1rem .55rem; }
.db-va-dot   { width: 6px; height: 6px; border-radius: 50%; background: var(--success); flex-shrink: 0; }
.db-va-copy  { width: 30px; height: 30px; border-radius: 8px; border: 1.5px solid var(--ash-200); background: var(--color-white); color: var(--ash-500); display: flex; align-items: center; justify-content: center; font-size: .75rem; cursor: pointer; transition: all .15s; padding: 0; }
.db-va-copy:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-bg); }
.db-va-empty { background: var(--color-white); border: 2px dashed var(--ash-300); border-radius: var(--radius-md); padding: 1.5rem 1rem; text-align: center; color: var(--ash-400); }
.db-va-empty i { font-size: 1.6rem; display: block; margin-bottom: .5rem; opacity: .35; }
.db-va-empty p { font-size: .82rem; margin-bottom: .75rem; }

/* Service cards */
.db-svc-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: .6rem; }
@media (min-width: 480px) { .db-svc-grid { grid-template-columns: repeat(4,1fr); } }
@media (min-width: 768px) { .db-svc-grid { grid-template-columns: repeat(6,1fr); } }
.db-svc-card { display: flex; flex-direction: column; align-items: center; gap: .45rem; padding: .75rem .4rem; background: var(--color-white); border-radius: var(--radius-md); text-decoration: none; color: inherit; border: 1.5px solid var(--ash-100); box-shadow: 0 1px 4px var(--black-a06); transition: transform .15s, box-shadow .15s, border-color .15s; cursor: pointer; position: relative; overflow: hidden; }
.db-svc-card:hover  { transform: translateY(-2px); box-shadow: 0 6px 18px var(--black-a10); border-color: var(--ash-200); color: inherit; text-decoration: none; }
.db-svc-card:active { transform: translateY(0); }
.db-svc-icon  { width: 46px; height: 46px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.05rem; color: var(--color-white); box-shadow: 0 3px 10px var(--black-a18); flex-shrink: 0; }
.db-svc-label { font-size: .68rem; font-weight: 700; color: var(--ash-700); text-align: center; line-height: 1.25; letter-spacing: .01em; }
.db-svc-dim   { opacity: .55; }
.db-svc-soon  { position: absolute; top: 5px; right: 5px; font-size: .52rem; font-weight: 800; background: var(--warning); color: var(--color-white); border-radius: 5px; padding: .1rem .3rem; letter-spacing: .03em; text-transform: uppercase; }

/* ================================================================
   UNDER-DEVELOPMENT PAGE
   ================================================================ */
.ud-wrap { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; min-height: 65vh; padding: 2rem 1rem; }
.ud-icon-ring { position: relative; display: flex; align-items: center; justify-content: center; margin-bottom: 2rem; }
.ud-ring { position: absolute; border-radius: 50%; border: 2px solid var(--accent); animation: ud-pulse 2.4s ease-out infinite; opacity: 0; }
.ud-ring-1 { width: 90px;  height: 90px;  animation-delay: 0s; }
.ud-ring-2 { width: 120px; height: 120px; animation-delay: .8s; }
@keyframes ud-pulse { 0% { transform: scale(.7); opacity: .5; } 100% { transform: scale(1.2); opacity: 0; } }
.ud-icon-circle { width: 68px; height: 68px; border-radius: 50%; background: var(--accent-bg); border: 2px solid var(--accent); display: flex; align-items: center; justify-content: center; position: relative; z-index: 1; }
.ud-icon-circle i { font-size: 1.6rem; color: var(--accent); animation: ud-spin 6s linear infinite; }
@keyframes ud-spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
.ud-title    { font-size: 1.5rem; font-weight: 800; color: var(--ash-900); margin-bottom: .5rem; }
.ud-subtitle { font-size: .9rem; color: var(--ash-500); max-width: 360px; line-height: 1.6; margin-bottom: 2rem; }
.ud-progress-wrap  { width: 100%; max-width: 300px; margin-bottom: 2rem; }
.ud-progress-bar   { height: 6px; border-radius: 10px; background: var(--ash-100); overflow: hidden; margin-bottom: .4rem; }
.ud-progress-fill  { height: 100%; width: 0; border-radius: 10px; background: linear-gradient(90deg,var(--accent),var(--accent-darker)); animation: ud-fill 3s ease-in-out infinite alternate; }
@keyframes ud-fill { 0% { width: 20%; } 100% { width: 75%; } }
.ud-progress-label { font-size: .72rem; color: var(--ash-400); letter-spacing: .05em; }
.ud-actions { display: flex; gap: .75rem; flex-wrap: wrap; justify-content: center; }

/* ================================================================
   QUICK LOGIN (ql-*)
   ================================================================ */
body.ql-page { overflow: hidden; height: 100svh; }

@media (max-width: 991.98px) {
    body.ql-page .auth-form-panel { padding: 0; height: 100svh; overflow: hidden; align-items: stretch; justify-content: flex-start; }
}

.ql-card { display: flex; flex-direction: column; width: 100%; max-width: 420px; padding: 1.75rem 2rem 1.5rem; }
@media (max-width: 991.98px) {
    .ql-card { max-width: 100%; height: 100svh; padding: 0; border-radius: 0; overflow: hidden; }
}

.ql-mobile-header { display: flex; flex-direction: column; padding: clamp(.75rem,3vw,1rem) clamp(1rem,5vw,1.5rem); border-bottom: 1px solid var(--ash-200); background: var(--ash-50); flex-shrink: 0; gap: .65rem; }
@media (min-width: 992px) { .ql-mobile-header { display: none; } }

.ql-toprow    { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.ql-brand-wrap { display: flex; align-items: center; gap: .5rem; }
.ql-brand-logo-img { width: 28px; height: 28px; border-radius: 7px; object-fit: contain; flex-shrink: 0; }
.ql-brand-icon { width: 28px; height: 28px; background: var(--accent); border-radius: 7px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ql-brand-icon i { color: var(--color-white); font-size: .8rem; }
.ql-sysname   { font-family: var(--font-heading); font-weight: 800; font-size: .95rem; color: var(--ash-900); line-height: 1; }

.ql-switch-link { display: inline-flex; align-items: center; gap: .35rem; font-family: var(--font-heading); font-size: .8rem; font-weight: 700; color: var(--accent); white-space: nowrap; flex-shrink: 0; text-decoration: none; }
.ql-switch-link:hover { color: var(--accent-dark); }
.ql-switch-link i { font-size: .75rem; }

.ql-welcome-row   { display: flex; flex-direction: column; align-items: center; gap: .45rem; text-align: center; }
.ql-welcome-label { font-family: var(--font-heading); font-size: clamp(.78rem,2.5vw,.9rem); font-weight: 600; color: var(--ash-500); letter-spacing: .06em; text-transform: uppercase; margin: 0; }
.ql-email-pill    { display: inline-flex; align-items: center; gap: .45rem; background: var(--accent-bg); border: 1.5px solid var(--accent); border-radius: 50px; padding: .35rem .9rem; font-family: var(--font-heading); font-size: clamp(.78rem,2.5vw,.875rem); font-weight: 600; color: var(--accent-dark); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ql-email-pill i  { color: var(--accent); font-size: .8rem; flex-shrink: 0; }

.ql-desktop-header { display: none; margin-bottom: 1.5rem; }
@media (min-width: 992px) {
    .ql-desktop-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
    .ql-desktop-header .ql-switch-link { display: inline-flex; }
}

.ql-accounts-row { display: flex; align-items: center; justify-content: center; gap: .45rem; }
.ql-acc-dot {
    width: clamp(28px,7vw,34px); height: clamp(28px,7vw,34px); border-radius: 50%;
    background: var(--accent-bg); border: 2px solid var(--ash-300);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-heading); font-size: clamp(.58rem,1.8vw,.68rem); font-weight: 700; color: var(--ash-600);
    text-decoration: none; transition: all var(--transition); opacity: .5;
}
.ql-acc-dot.active { border-color: var(--accent); background: var(--accent); color: var(--color-white); opacity: 1; transform: scale(1.12); box-shadow: 0 2px 8px var(--accent-a30); }
.ql-acc-dot:hover:not(.active) { opacity: .8; border-color: var(--accent); }

.ql-error-wrap { padding: .5rem clamp(1rem,5vw,1.5rem) 0; flex-shrink: 0; }
.ql-error-wrap .alert { font-size: .83rem; padding: .6rem .9rem; animation: qlShake .35s ease; }
@keyframes qlShake { 0%,100% { transform: none; } 20%,60% { transform: translateX(-5px); } 40%,80% { transform: translateX(5px); } }

.ql-body { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: clamp(.4rem,1.5svh,.8rem) clamp(1rem,5vw,1.5rem) clamp(.3rem,1svh,.6rem); overflow: hidden; }

.ql-mode-hidden               { display: none !important; }
.ql-pin-mode                  { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; }
.ql-pin-mode.ql-mode-hidden   { display: none !important; }
.ql-pw-mode                   { display: none; flex-direction: column; justify-content: center; gap: .7rem; flex: 1; min-height: 0; }
.ql-pw-mode.ql-mode-active    { display: flex; }

.ql-mode-label { text-align: center; font-family: var(--font-heading); font-size: clamp(.68rem,2.2vw,.78rem); font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--ash-500); margin-bottom: clamp(.2rem,1svh,.45rem); flex-shrink: 0; }

.ql-pin-dots { display: flex; justify-content: center; gap: clamp(.55rem,2vw,.9rem); margin-bottom: clamp(.3rem,1svh,.6rem); flex-shrink: 0; }
.ql-pin-dot  { width: clamp(12px,3.2vw,15px); height: clamp(12px,3.2vw,15px); border-radius: 50%; border: 2px solid var(--ash-400); background: transparent; transition: background var(--transition), border-color var(--transition), transform .12s ease; }
.ql-pin-dot.filled { background: var(--accent); border-color: var(--accent); transform: scale(1.22); }
.ql-pin-dot.error  { background: var(--danger);  border-color: var(--danger); }

.ql-fp-row { display: flex; justify-content: center; margin-bottom: clamp(.2rem,.8svh,.45rem); flex-shrink: 0; }
.ql-fp-btn { display: inline-flex; align-items: center; gap: .4rem; background: var(--ash-100); border: 1.5px solid var(--ash-300); border-radius: 50px; padding: .35rem .9rem; font-family: var(--font-heading); font-size: clamp(.72rem,2.2vw,.8rem); font-weight: 600; color: var(--ash-600); cursor: pointer; transition: border-color var(--transition), background var(--transition), color var(--transition); }
.ql-fp-btn i { color: var(--accent); font-size: .95rem; }
.ql-fp-btn:hover { border-color: var(--accent); background: var(--accent-bg); color: var(--accent-dark); }

.ql-pin-mode .auth-divider { margin: clamp(.15rem,.7svh,.4rem) 0; flex-shrink: 0; }

.ql-numpad-area { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; }
.ql-numpad      { display: grid; grid-template-columns: repeat(3,1fr); grid-template-rows: repeat(4,minmax(0,1fr)); gap: clamp(5px,1.8vw,10px); flex: 1; min-height: 0; }
.ql-key { background: var(--color-white); border: 1.5px solid var(--ash-300); border-radius: var(--radius-md); color: var(--ash-800); font-family: var(--font-heading); font-size: clamp(.95rem,4vw,1.3rem); font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; -webkit-tap-highlight-color: transparent; user-select: none; min-height: 0; outline: none; }
.ql-key-action { color: var(--ash-500); font-size: clamp(.8rem,3vw,1.05rem); }

.ql-bottom-links { display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; padding-top: clamp(.3rem,1svh,.5rem); }
.ql-bottom-links a { font-family: var(--font-heading); font-size: clamp(.7rem,2.2vw,.8rem); font-weight: 600; color: var(--accent); }
.ql-bottom-links a:hover { color: var(--accent-dark); }

.ql-pw-footer { display: flex; align-items: center; justify-content: space-between; margin-top: .35rem; }

/* ================================================================
   PIN CARD PREVIEW  (epin receipt toolbar)
   — dynamic colours (pc-header bg etc.) are applied inline in PHP
   ================================================================ */
.pincard-toolbar { display: flex; gap: .6rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
#pinCardPreview  { max-width: 540px; margin: 0 auto; background: var(--color-white); border-radius: 12px; overflow: hidden; box-shadow: 0 4px 24px var(--black-a10); }
.pc-header       { color: var(--color-white); padding: 1.1rem 1.4rem .9rem; display: flex; align-items: center; gap: .75rem; }
.pc-header-logo  { font-size: 1.7rem; opacity: .9; }
.pc-header-text h3 { margin: 0; font-size: 1rem; font-weight: 800; letter-spacing: .02em; }
.pc-header-text p  { margin: 0; font-size: .75rem; opacity: .8; }
.pc-body  { padding: 1.2rem 1.4rem; }
.pc-meta  { display: flex; gap: 1.5rem; margin-bottom: 1rem; font-size: .78rem; color: var(--ash-600); }
.pc-meta span b { color: var(--ash-800); }
.pc-pins-grid { display: flex; flex-direction: column; gap: .5rem; }
.pc-pin-row   { border-radius: 8px; padding: .65rem 1rem; display: flex; align-items: center; gap: .8rem; }
.pc-pin-idx   { min-width: 28px; height: 28px; color: var(--color-white); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .72rem; font-weight: 700; flex-shrink: 0; }
.pc-pin-vals  { flex: 1; }
.pc-pin-num   { font-family: 'Courier New', monospace; font-size: 1.05rem; font-weight: 700; letter-spacing: .12em; color: var(--ash-900); word-break: break-all; }
.pc-pin-serial { font-size: .72rem; color: var(--ash-500); margin-top: .15rem; }
.pc-copy-btn  { background: none; border: none; cursor: pointer; font-size: .95rem; padding: .25rem .4rem; border-radius: 4px; transition: background .15s; }
.pc-footer    { text-align: center; padding: .85rem 1.4rem; font-size: .72rem; color: var(--ash-500); border-top: 1px solid var(--ash-200); }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 991.98px) {
    .auth-brand-panel { display: none; }
    .auth-form-panel  { padding: 2rem 1rem; }
    .sidebar { transform: translateX(-100%); z-index: 200; transition: transform .25s ease; }
    .sidebar.open { transform: translateX(0); box-shadow: 4px 0 24px var(--black-a25); }
    .sidebar.open + .sidebar-overlay { display: block; }
    .main-content { margin-left: 0 !important; }
    .btn-hamburger { display: flex; }
}

@media (min-width: 992px) {
    .sidebar          { transform: translateX(0) !important; transition: none; }
    .sidebar-overlay  { display: none !important; }
    .btn-hamburger    { display: none !important; }
}

@media (max-width: 575.98px) {
    .content-body { padding: 1rem; }
    .stat-value   { font-size: 1.2rem; }
    .auth-card    { max-width: 100%; }
    .result-body  { padding: 1.5rem 1.25rem 1.75rem; }
    .amount-badge { font-size: 1.65rem; }
}

@media (max-width: 480px) {
    .result-body  { padding: 1.5rem 1.25rem 1.75rem; }
    .amount-badge { font-size: 1.65rem; }
}

/* ── Print ──────────────────────────────────────────────────────── */
@media print {
    .pincard-toolbar, .app-layout .sidebar, .app-layout .header,
    .btn, #confetti-canvas,
    .content-body > div:first-child,
    #pinCardPreview .pc-copy-btn { display: none !important; }
    .app-layout .main-content { margin-left: 0 !important; }
    .card { border: none; box-shadow: none; }
    #pinCardPreview { box-shadow: none; border: 1px solid var(--ash-200); }
    body { background: var(--color-white); }
}


/* ================================================================
   PWA UI STYLES — Sufykhaan Digital Hub
   Splash, offline bar, update banner, install banners (Android & iOS).
   All tokens reference the site :root variables defined above —
   no separate hex values needed. Edit colours only in :root above.
   ================================================================ */

/* ── PWA component tokens (aliases to site :root) ─────────────── */
:root {
  --pwa-z:          99990;
  --pwa-radius-sm:  var(--radius-sm);
  --pwa-radius-md:  var(--radius-md);
  --pwa-radius-lg:  var(--radius-lg);
  --pwa-radius-xl:  var(--radius-xl);
  --pwa-shadow-sm:  var(--shadow-sm);
  --pwa-shadow-lg:  var(--shadow-lg);
  --pwa-transition: var(--transition);
  --pwa-font-head:  var(--font-heading);
  --pwa-font-body:  var(--font-body);
  --pwa-accent:       var(--accent);
  --pwa-accent-dark:  var(--accent-dark);
  --pwa-accent-light: var(--accent-light);
  --pwa-accent-bg:    var(--accent-bg);
  --pwa-hero-dark:    var(--pwa-hero-dark);
  --pwa-hero-darker:  var(--pwa-hero-darker);
  --pwa-surface:      var(--color-white);
  --pwa-surface-2:    var(--ash-50);
  --pwa-ash-100:      var(--ash-100);
  --pwa-ash-200:      var(--ash-200);
  --pwa-ash-300:      var(--ash-300);
  --pwa-ash-600:      var(--ash-600);
  --pwa-ash-700:      var(--ash-700);
  --pwa-ash-800:      var(--ash-800);
  --pwa-ash-900:      var(--ash-900);
  --pwa-danger:       var(--danger);
}

/* ── Splash Screen ────────────────────────────────────────────
   Dark teal/navy gradient matching the hero section          */
#pwa-splash {
  display: none;
  position: fixed;
  inset: 0;
  z-index: calc(var(--pwa-z) + 10);
  background:
    radial-gradient(ellipse at 0% 50%,  var(--pwa-blue-a28) 0%, transparent 55%),
    radial-gradient(ellipse at 100% 20%, var(--pwa-blue-light-a18) 0%, transparent 50%),
    linear-gradient(160deg, var(--pwa-accent-dark) 0%, var(--pwa-hero-dark) 55%, var(--pwa-ash-800) 100%);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  transition: opacity .4s ease;
}

/* Subtle grid overlay (matches hero::before) */
#pwa-splash::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--white-a025) 1px, transparent 1px),
    linear-gradient(90deg, var(--white-a025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
  pointer-events: none;
}

#pwa-splash .splash-logo {
  position: relative;
  z-index: 1;
  width: 88px;
  height: 88px;
  border-radius: 20px;
  object-fit: contain;
  box-shadow: 0 0 0 0 var(--pwa-blue-a45);
  animation: splashPulse 2s ease-in-out infinite;
}

#pwa-splash .splash-name {
  position: relative;
  z-index: 1;
  font-family: var(--pwa-font-head);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--color-white);
  letter-spacing: -.02em;
}

#pwa-splash .splash-tag {
  position: relative;
  z-index: 1;
  font-family: var(--pwa-font-body);
  font-size: .8125rem;
  color: var(--white-a60);
}

#pwa-splash .splash-bar {
  position: relative;
  z-index: 1;
  width: 56px;
  height: 3px;
  background: var(--white-a12);
  border-radius: 99px;
  overflow: hidden;
  margin-top: .25rem;
}

#pwa-splash .splash-bar::after {
  content: '';
  display: block;
  height: 100%;
  width: 45%;
  background: linear-gradient(90deg, var(--pwa-accent), var(--pwa-accent-light));
  border-radius: 99px;
  animation: splashBar 1.1s ease-in-out infinite;
}

@keyframes splashPulse {
  0%,100% { transform: scale(1);    box-shadow: 0 0 0 0   var(--pwa-blue-a45); }
  50%      { transform: scale(1.04); box-shadow: 0 0 0 14px var(--pwa-blue-a00);  }
}
@keyframes splashBar {
  0%   { transform: translateX(-110%); }
  100% { transform: translateX(360%);  }
}

/* ── Offline Bar ──────────────────────────────────────────────*/
#pwa-offline-bar {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: var(--pwa-z);
  background: var(--pwa-danger);
  color: var(--color-white);
  font-family: var(--pwa-font-head);
  font-size: .8125rem;
  font-weight: 600;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .55rem 1rem;
  text-align: center;
  letter-spacing: .01em;
}

/* ── Update Banner ───────────────────────────────────────────*/
#pwa-update-banner {
  display: none;
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: var(--pwa-z);
  width: calc(100% - 2rem);
  max-width: 440px;
  background: var(--pwa-hero-dark);
  border: 1px solid var(--pwa-blue-a32);
  border-radius: var(--pwa-radius-lg);
  box-shadow: var(--pwa-shadow-lg), 0 0 0 1px var(--pwa-blue-a14);
  padding: .875rem 1.25rem;
  font-family: var(--pwa-font-body);
  flex-direction: row;
  align-items: center;
  gap: .875rem;
  animation: pwaSlideDown .4s cubic-bezier(.34,1.56,.64,1);
}

/* Top accent line */
#pwa-update-banner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 2.5px;
  background: linear-gradient(90deg, var(--pwa-accent), var(--pwa-accent-light), transparent);
  border-radius: var(--pwa-radius-lg) var(--pwa-radius-lg) 0 0;
}

#pwa-update-banner .upd-text {
  flex: 1;
  color: var(--color-white);
  font-size: .875rem;
  font-weight: 500;
}

#pwa-update-banner .upd-text strong {
  display: block;
  font-family: var(--pwa-font-head);
  font-weight: 700;
  font-size: .9375rem;
  margin-bottom: .15rem;
  color: var(--pwa-accent-light);
}

.pwa-btn-update {
  background: var(--pwa-accent);
  color: var(--color-white);
  border: none;
  border-radius: var(--pwa-radius-md);
  padding: .5rem 1.1rem;
  font-family: var(--pwa-font-head);
  font-size: .8125rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--pwa-transition), transform var(--pwa-transition);
  flex-shrink: 0;
}
.pwa-btn-update:hover  { background: var(--pwa-accent-dark); }
.pwa-btn-update:active { transform: scale(.97); }

/* ── Android/Desktop Install Banner ─────────────────────────*/
#pwa-install-banner {
  display: none;
  position: fixed;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: var(--pwa-z);
  width: calc(100% - 2rem);
  max-width: 480px;
  background: var(--pwa-surface);
  border: 1px solid var(--pwa-ash-200);
  border-radius: var(--pwa-radius-xl);
  box-shadow: var(--pwa-shadow-lg);
  padding: 1.125rem 1.25rem;
  font-family: var(--pwa-font-body);
  flex-direction: row;
  align-items: center;
  gap: 1rem;
  animation: pwaSlideUp .4s cubic-bezier(.34,1.56,.64,1);
  /* Accent top stripe */
  overflow: hidden;
}

#pwa-install-banner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--pwa-accent), var(--pwa-accent-light));
}

#pwa-install-banner .inst-icon {
  width: 50px; height: 50px;
  border-radius: 12px;
  object-fit: contain;
  flex-shrink: 0;
  border: 1px solid var(--pwa-ash-200);
}

#pwa-install-banner .inst-text { flex: 1; min-width: 0; }

#pwa-install-banner .inst-text strong {
  display: block;
  font-family: var(--pwa-font-head);
  font-size: .9375rem;
  font-weight: 800;
  color: var(--pwa-ash-900);
  margin-bottom: .2rem;
}

#pwa-install-banner .inst-text span {
  display: block;
  font-size: .8125rem;
  color: var(--pwa-ash-600);
  line-height: 1.4;
}

#pwa-install-banner .inst-actions {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  flex-shrink: 0;
}

.pwa-btn-install {
  background: var(--pwa-accent);
  color: var(--color-white);
  border: none;
  border-radius: var(--pwa-radius-md);
  padding: .52rem 1.15rem;
  font-family: var(--pwa-font-head);
  font-size: .875rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 4px 14px var(--pwa-blue-a35);
  transition: all var(--pwa-transition);
}
.pwa-btn-install:hover  { background: var(--pwa-accent-dark); box-shadow: 0 6px 20px var(--pwa-blue-a45); transform: translateY(-1px); }
.pwa-btn-install:active { transform: scale(.97); }

.pwa-btn-dismiss {
  background: transparent;
  color: var(--pwa-ash-600);
  border: 1px solid var(--pwa-ash-300);
  border-radius: var(--pwa-radius-md);
  padding: .45rem 1.15rem;
  font-family: var(--pwa-font-head);
  font-size: .8125rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--pwa-transition);
}
.pwa-btn-dismiss:hover { color: var(--pwa-ash-900); border-color: var(--pwa-ash-400); background: var(--pwa-ash-100); }

/* ── iOS Install Banner ──────────────────────────────────────*/
#pwa-ios-banner {
  display: none;
  position: fixed;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: var(--pwa-z);
  width: calc(100% - 2rem);
  max-width: 480px;
  background: var(--pwa-surface);
  border: 1px solid var(--pwa-ash-200);
  border-radius: var(--pwa-radius-xl);
  box-shadow: var(--pwa-shadow-lg);
  padding: 1.25rem;
  font-family: var(--pwa-font-body);
  flex-direction: column;
  gap: 1rem;
  animation: pwaSlideUp .4s cubic-bezier(.34,1.56,.64,1);
  overflow: hidden;
}

/* Arrow pointing down to Share button */
#pwa-ios-banner::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 16px; height: 16px;
  background: var(--pwa-surface);
  border-right: 1px solid var(--pwa-ash-200);
  border-bottom: 1px solid var(--pwa-ash-200);
}

/* Accent top stripe */
#pwa-ios-banner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--pwa-accent), var(--pwa-accent-light));
}

#pwa-ios-banner .ios-head {
  display: flex;
  align-items: center;
  gap: .875rem;
}

#pwa-ios-banner .ios-logo {
  width: 46px; height: 46px;
  border-radius: 11px;
  object-fit: contain;
  border: 1px solid var(--pwa-ash-200);
  flex-shrink: 0;
}

#pwa-ios-banner .ios-title { flex: 1; }
#pwa-ios-banner .ios-title strong {
  display: block;
  font-family: var(--pwa-font-head);
  font-size: .9375rem;
  font-weight: 800;
  color: var(--pwa-ash-900);
  margin-bottom: .15rem;
}
#pwa-ios-banner .ios-title small {
  color: var(--pwa-ash-600);
  font-size: .8125rem;
}

#pwa-ios-banner .ios-close {
  width: 28px; height: 28px;
  background: var(--pwa-ash-100);
  border: none;
  border-radius: 50%;
  color: var(--pwa-ash-600);
  font-size: .9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--pwa-transition);
}
#pwa-ios-banner .ios-close:hover { background: var(--pwa-ash-200); color: var(--pwa-ash-900); }

#pwa-ios-banner .ios-divider {
  height: 1px;
  background: var(--pwa-ash-100);
  margin: 0 -.25rem;
}

#pwa-ios-banner .ios-steps {
  display: flex;
  flex-direction: column;
  gap: .625rem;
}

#pwa-ios-banner .ios-step {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
}

#pwa-ios-banner .ios-step-num {
  width: 24px; height: 24px;
  background: var(--pwa-accent-bg);
  color: var(--pwa-accent-dark);
  border-radius: 50%;
  font-family: var(--pwa-font-head);
  font-size: .75rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: .1rem;
}

#pwa-ios-banner .ios-step p {
  color: var(--pwa-ash-700);
  font-size: .8375rem;
  line-height: 1.5;
  margin: 0;
}

#pwa-ios-banner .ios-step p strong {
  color: var(--pwa-ash-900);
  font-weight: 700;
}

.ios-share-chip {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: var(--pwa-accent);
  color: var(--color-white);
  border-radius: 5px;
  padding: 1px 6px;
  font-size: .72rem;
  font-weight: 700;
  font-family: var(--pwa-font-head);
  vertical-align: middle;
  margin: 0 1px;
}

/* ── Standalone safe-area padding ────────────────────────────*/
.pwa-standalone body {
  padding-top:    env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
  padding-left:   env(safe-area-inset-left);
  padding-right:  env(safe-area-inset-right);
}

/* ── Animations ──────────────────────────────────────────────*/
@keyframes pwaSlideUp {
  from { opacity: 0; transform: translateX(-50%) translateY(20px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0);    }
}
@keyframes pwaSlideDown {
  from { opacity: 0; transform: translateX(-50%) translateY(-20px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0);     }
}

/* ── Mobile: full-width bottom sheet ────────────────────────*/
@media (max-width: 500px) {
  #pwa-install-banner,
  #pwa-ios-banner {
    bottom: 0;
    left: 0; right: 0;
    transform: none;
    width: 100%;
    max-width: 100%;
    border-radius: var(--pwa-radius-xl) var(--pwa-radius-xl) 0 0;
    padding-bottom: calc(1.25rem + env(safe-area-inset-bottom));
    animation: pwaSheetUp .38s cubic-bezier(.34,1.4,.64,1);
  }

  #pwa-ios-banner::after { display: none; }

  @keyframes pwaSheetUp {
    from { opacity: 0; transform: translateY(100%); }
    to   { opacity: 1; transform: translateY(0);    }
  }
}
