/* ==========================================================================
   VTU SaaS design system
   Plain CSS so the app ships without a build step. Rebrand a deployment by
   changing the --brand* variables below.
   ========================================================================== */

:root {
    --brand: #4f46e5;
    --brand-600: #4338ca;
    --brand-700: #3730a3;
    --brand-50: #eef2ff;
    --brand-100: #e0e7ff;
    --brand-grad: linear-gradient(135deg, #1e1b4b 0%, #4338ca 50%, #7c3aed 100%);
    --brand-glow: rgba(79, 70, 229, .45);

    --bg: #f4f5f9;
    --surface: #ffffff;
    --surface-2: #f7f8fb;
    --border: #e7e9f0;
    --border-strong: #d5d9e4;
    --ink: #0f172a;
    --ink-2: #334155;
    --muted: #64748b;
    --faint: #94a3b8;

    --success: #059669; --success-bg: #ecfdf5; --success-bd: #a7f3d0;
    --warning: #b45309; --warning-bg: #fffbeb; --warning-bd: #fde68a;
    --danger: #dc2626;  --danger-bg: #fef2f2;  --danger-bd: #fecaca;

    --radius-sm: 10px;
    --radius: 14px;
    --radius-lg: 20px;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, .04);
    --shadow: 0 1px 3px rgba(15, 23, 42, .06), 0 12px 32px -16px rgba(15, 23, 42, .18);
    --shadow-lg: 0 28px 56px -24px var(--brand-glow);
    --ring: 0 0 0 4px rgba(79, 70, 229, .18);

    --font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
    --sidebar-w: 260px;

    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root {
        --brand: #6366f1;
        --brand-600: #818cf8;
        --brand-700: #a5b4fc;
        --brand-50: rgba(99, 102, 241, .14);
        --brand-100: rgba(99, 102, 241, .24);
        --brand-glow: rgba(79, 70, 229, .35);

        --bg: #0a0d16;
        --surface: #111624;
        --surface-2: #0d121e;
        --border: #1e2536;
        --border-strong: #2a3347;
        --ink: #e8ebf3;
        --ink-2: #c4cad8;
        --muted: #8b94a8;
        --faint: #5d667a;

        --success: #34d399; --success-bg: rgba(16, 185, 129, .12); --success-bd: rgba(16, 185, 129, .3);
        --warning: #fbbf24; --warning-bg: rgba(245, 158, 11, .12); --warning-bd: rgba(245, 158, 11, .3);
        --danger: #f87171;  --danger-bg: rgba(239, 68, 68, .12);  --danger-bd: rgba(239, 68, 68, .3);

        --shadow: 0 1px 3px rgba(0, 0, 0, .3), 0 12px 32px -16px rgba(0, 0, 0, .6);
        --ring: 0 0 0 4px rgba(99, 102, 241, .28);

        color-scheme: dark;
    }
}

/* --- Base ---------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.5;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4, p, ul, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
img, svg { display: block; }
[x-cloak] { display: none !important; }

.icon { width: 20px; height: 20px; flex-shrink: 0; }
.icon-sm { width: 16px; height: 16px; }
.icon-lg { width: 24px; height: 24px; }
.icon-xl { width: 30px; height: 30px; }

.link { color: var(--brand); font-weight: 600; }
.link:hover { text-decoration: underline; }
.muted { color: var(--muted); }
.text-sm { font-size: 13px; }
.text-success { color: var(--success); }
.mono { font-family: var(--mono); }
.nowrap { white-space: nowrap; }

.stack { display: flex; flex-direction: column; gap: var(--gap, 20px); }
.stack-sm { --gap: 12px; }
.row { display: flex; align-items: center; gap: 12px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.grid-2 { display: grid; gap: 20px; }
@media (min-width: 900px) { .grid-2 { grid-template-columns: 1fr 1fr; align-items: start; } }

@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* --- App shell ----------------------------------------------------------- */

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 30;
    width: var(--sidebar-w);
    display: none;
    flex-direction: column;
    padding: 22px 14px;
    background: var(--surface);
    border-right: 1px solid var(--border);
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; letter-spacing: -.02em; }
.logo-mark {
    width: 36px; height: 36px;
    display: grid; place-items: center;
    border-radius: 11px;
    background: var(--brand-grad);
    color: #fff;
    font-size: 16px;
    box-shadow: 0 6px 16px -6px var(--brand-glow);
}
.sidebar .logo { padding: 0 10px; margin-bottom: 28px; }
.nav-label {
    padding: 0 12px; margin: 18px 0 6px;
    font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    color: var(--faint);
}
.nav-link {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 12px;
    border-radius: 11px;
    font-size: 14px; font-weight: 600;
    color: var(--ink-2);
    transition: background .15s, color .15s;
}
.nav-link .icon { color: var(--faint); transition: color .15s; }
.nav-link:hover { background: var(--surface-2); color: var(--ink); }
.nav-link.is-active { background: var(--brand-50); color: var(--brand); }
.nav-link.is-active .icon { color: var(--brand); }
.sidebar-foot { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--border); }

.user-chip { display: flex; align-items: center; gap: 10px; min-width: 0; }
.user-chip-text { min-width: 0; }
.user-chip-name { font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-chip-sub { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.avatar {
    width: 38px; height: 38px; flex-shrink: 0;
    display: grid; place-items: center;
    border-radius: 50%;
    background: var(--brand-grad);
    color: #fff;
    font-size: 14px; font-weight: 800;
}

.topbar {
    position: sticky; top: 0; z-index: 20;
    height: 64px;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 0 20px;
    background: color-mix(in srgb, var(--bg) 82%, transparent);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
}
.topbar-title { font-weight: 700; font-size: 15px; display: none; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.balance-pill {
    display: inline-flex; align-items: center; gap: 8px;
    height: 38px; padding: 0 14px 0 12px;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--border);
    font-size: 13px; font-weight: 700;
    font-variant-numeric: tabular-nums;
    transition: border-color .15s;
}
.balance-pill .icon { color: var(--brand); }
.balance-pill:hover { border-color: var(--border-strong); }

.dropdown { position: relative; }
.dropdown-toggle { padding: 0; border: 0; background: none; cursor: pointer; border-radius: 50%; }
.dropdown-toggle:focus-visible { outline: none; box-shadow: var(--ring); }
.menu {
    position: absolute; right: 0; top: calc(100% + 10px); z-index: 40;
    min-width: 240px;
    padding: 6px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    animation: rise .15s ease both;
}
.menu-head { padding: 10px 12px 12px; border-bottom: 1px solid var(--border); margin-bottom: 6px; }
.menu-item {
    display: flex; align-items: center; gap: 10px;
    width: 100%;
    padding: 10px 12px;
    border: 0; border-radius: 10px;
    background: none;
    font-size: 14px; font-weight: 600; text-align: left;
    color: var(--ink-2);
    cursor: pointer;
}
.menu-item .icon { color: var(--faint); }
.menu-item:hover { background: var(--surface-2); color: var(--ink); }
.menu-item.is-danger:hover { color: var(--danger); }
.menu-item.is-danger:hover .icon { color: var(--danger); }

.content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px 18px 120px;
    animation: rise .3s ease both;
}

.bottom-nav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    display: grid; grid-template-columns: repeat(5, 1fr);
    padding-bottom: env(safe-area-inset-bottom);
    background: color-mix(in srgb, var(--surface) 92%, transparent);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--border);
}
.bottom-nav a {
    display: flex; flex-direction: column; align-items: center; gap: 3px;
    padding: 10px 0 9px;
    font-size: 11px; font-weight: 700;
    color: var(--faint);
}
.bottom-nav a.is-active { color: var(--brand); }

@media (min-width: 1024px) {
    .sidebar { display: flex; }
    .main { margin-left: var(--sidebar-w); }
    .bottom-nav, .topbar .logo { display: none; }
    .topbar { padding: 0 40px; }
    .topbar-title { display: block; }
    .content { padding: 32px 40px 56px; }
}

/* --- Page header --------------------------------------------------------- */

.page-head {
    display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 16px;
    margin-bottom: 24px;
}
.page-title { font-size: 26px; line-height: 1.2; font-weight: 800; letter-spacing: -.025em; }
.page-sub { margin-top: 4px; color: var(--muted); }
.eyebrow { font-size: 14px; font-weight: 600; color: var(--muted); }
.back {
    display: inline-flex; align-items: center; gap: 6px;
    margin-bottom: 10px;
    font-size: 14px; font-weight: 600;
    color: var(--muted);
}
.back:hover { color: var(--ink); }
@media (min-width: 640px) { .page-title { font-size: 30px; } }

/* --- Cards --------------------------------------------------------------- */

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}
.card-pad { padding: 20px; }
.card-head {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--border);
}
.card-title { font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.card-sub { margin-top: 2px; font-size: 13px; color: var(--muted); }
@media (min-width: 640px) {
    .card-pad { padding: 28px; }
    .card-head { padding: 20px 24px; }
}

.section-title { font-size: 15px; font-weight: 700; margin-bottom: 12px; }

/* --- Buttons ------------------------------------------------------------- */

.btn {
    position: relative;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 44px; padding: 0 18px;
    border: 1px solid transparent; border-radius: 12px;
    font-size: 14px; font-weight: 700; white-space: nowrap;
    cursor: pointer;
    transition: background .15s, border-color .15s, box-shadow .15s, transform .1s, opacity .15s;
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: none; box-shadow: var(--ring); }
.btn:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; transform: none; }
.btn-lg { height: 52px; padding: 0 22px; font-size: 15px; border-radius: 14px; }
.btn-sm { height: 36px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
.btn-block { width: 100%; }

.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 10px 24px -12px var(--brand-glow); }
.btn-primary:hover:not(:disabled) { background: var(--brand-600); }
@media (prefers-color-scheme: dark) { .btn-primary:hover:not(:disabled) { background: #5558e8; } }
.btn-dark { background: var(--ink); color: var(--surface); }
.btn-dark:hover:not(:disabled) { opacity: .88; }
.btn-soft { background: var(--brand-50); color: var(--brand); }
.btn-soft:hover:not(:disabled) { background: var(--brand-100); }
.btn-ghost { background: var(--surface); border-color: var(--border); color: var(--ink-2); }
.btn-ghost:hover:not(:disabled) { border-color: var(--border-strong); color: var(--ink); }
.btn-white { background: #fff; color: #1e1b4b; }
.btn-white:hover { background: #eef2ff; }
.btn-glass { background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 255, 255, .2); }
.btn-glass:hover { background: rgba(255, 255, 255, .22); }

.btn.is-loading { color: transparent !important; pointer-events: none; }
.btn.is-loading > * { visibility: hidden; }
.btn.is-loading::after {
    content: "";
    position: absolute; top: 50%; left: 50%;
    width: 18px; height: 18px; margin: -9px 0 0 -9px;
    border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff;
    border-radius: 50%;
    animation: spin .7s linear infinite;
}
.btn-ghost.is-loading::after, .btn-soft.is-loading::after { border-color: var(--border-strong); border-top-color: var(--brand); }
.btn-dark.is-loading::after { border-color: color-mix(in srgb, var(--surface) 35%, transparent); border-top-color: var(--surface); }

.icon-btn {
    width: 38px; height: 38px; flex-shrink: 0;
    display: grid; place-items: center;
    border: 1px solid var(--border); border-radius: 10px;
    background: var(--surface);
    color: var(--ink-2);
    cursor: pointer;
    transition: border-color .15s, color .15s, background .15s;
}
.icon-btn:hover { border-color: var(--border-strong); color: var(--ink); }
.icon-btn.is-done { color: var(--success); border-color: var(--success-bd); background: var(--success-bg); }

/* --- Forms --------------------------------------------------------------- */

.field { display: block; min-width: 0; }
.label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.label-row .label { margin: 0; }
.input, .select {
    width: 100%; height: 50px;
    padding: 0 15px;
    border: 1.5px solid var(--border-strong); border-radius: 12px;
    background: var(--surface);
    color: var(--ink);
    font: inherit; font-size: 15px; font-weight: 500;
    transition: border-color .15s, box-shadow .15s;
}
.input::placeholder { color: var(--faint); font-weight: 400; }
.input:hover, .select:hover { border-color: color-mix(in srgb, var(--border-strong) 60%, var(--ink) 15%); }
.input:focus, .select:focus { outline: none; border-color: var(--brand); box-shadow: var(--ring); }
.input.is-invalid { border-color: var(--danger); }
.input.is-invalid:focus { box-shadow: 0 0 0 4px var(--danger-bg); }
.input[type=number] { -moz-appearance: textfield; }
.input[type=number]::-webkit-outer-spin-button,
.input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.select {
    appearance: none; -webkit-appearance: none;
    padding-right: 42px;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
}
.select-sm { height: 40px; width: auto; min-width: 150px; font-size: 14px; border-radius: 10px; border-width: 1px; }
.input-group { position: relative; }
.input-prefix {
    position: absolute; left: 15px; top: 50%; transform: translateY(-50%);
    font-weight: 700; color: var(--muted);
    pointer-events: none;
}
.input.has-prefix { padding-left: 36px; }
.input-amount { font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; }
.input-row { display: flex; gap: 8px; }
.input-row .btn { height: 50px; }
.input-pin {
    max-width: 220px;
    font-family: var(--mono);
    font-size: 22px; font-weight: 700;
    letter-spacing: .7em; text-indent: .7em; text-align: center;
}
.input-pin::placeholder { letter-spacing: .5em; }

.hint { margin-top: 7px; font-size: 13px; color: var(--muted); }
.hint-warn { color: var(--warning); }
.error { margin-top: 7px; font-size: 13px; font-weight: 500; color: var(--danger); }
.checkbox { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; color: var(--ink-2); cursor: pointer; }
.checkbox input { width: 18px; height: 18px; accent-color: var(--brand); }

/* Selectable cards: a visually hidden radio followed by .choice-body, or a
   button.choice-body toggled with .is-on. */
.choices { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.choices-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.choice { position: relative; display: block; cursor: pointer; }
.choice > input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.choice-body {
    position: relative;
    width: 100%; height: 100%;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
    padding: 14px 6px 12px;
    border: 1.5px solid var(--border); border-radius: var(--radius);
    background: var(--surface);
    font-size: 13px; font-weight: 700; text-align: center;
    color: var(--ink-2);
    cursor: pointer;
    transition: border-color .15s, background .15s, box-shadow .15s, transform .1s;
}
.choice:hover .choice-body, button.choice-body:hover { border-color: var(--border-strong); }
.choice > input:checked + .choice-body, .choice-body.is-on {
    border-color: var(--brand);
    background: var(--brand-50);
    color: var(--ink);
    box-shadow: inset 0 0 0 1px var(--brand);
}
.choice > input:focus-visible + .choice-body, button.choice-body:focus-visible { outline: none; box-shadow: var(--ring); }
.choice-tag {
    position: absolute; top: -9px; right: -4px;
    padding: 2px 7px;
    border-radius: 999px;
    background: var(--success); color: #fff;
    font-size: 10px; font-weight: 800;
}

.plans { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.plans-wide { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.plans-scroll { max-height: 360px; overflow-y: auto; padding: 10px 4px 4px; margin: -10px -4px -4px; }
.plan .choice-body { align-items: flex-start; justify-content: flex-start; gap: 2px; padding: 14px; text-align: left; }
.plan-name { font-size: 15px; font-weight: 800; color: var(--ink); line-height: 1.3; }
.plans-wide .plan-name { font-size: 14px; }
.plan-price { font-size: 14px; font-weight: 800; color: var(--brand); font-variant-numeric: tabular-nums; }
.plan-meta { font-size: 12px; font-weight: 600; color: var(--muted); }

.seg {
    display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px;
    padding: 4px;
    border: 1px solid var(--border); border-radius: 13px;
    background: var(--surface-2);
}
.seg > label { position: relative; display: block; }
.seg > label > input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg-item {
    display: block; width: 100%;
    padding: 9px 10px;
    border: 0; border-radius: 9px;
    background: none;
    font-size: 13px; font-weight: 700; text-align: center;
    color: var(--muted);
    cursor: pointer;
    transition: background .15s, color .15s;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.seg-item:hover { color: var(--ink); }
.seg > label > input:checked + .seg-item, .seg-item.is-on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(15, 23, 42, .1); }
.seg > label > input:focus-visible + .seg-item, .seg-item:focus-visible { outline: none; box-shadow: var(--ring); }

.quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.quick button {
    height: 34px; padding: 0 14px;
    border: 1px solid var(--border); border-radius: 999px;
    background: var(--surface-2);
    font-size: 13px; font-weight: 700;
    color: var(--ink-2);
    cursor: pointer;
    transition: border-color .15s, background .15s, color .15s;
}
.quick button:hover { border-color: var(--border-strong); color: var(--ink); }
.quick button.is-on { border-color: var(--brand); background: var(--brand-50); color: var(--brand); }

.verified {
    display: flex; align-items: center; gap: 10px;
    margin-top: 10px; padding: 12px 14px;
    border: 1px solid var(--success-bd); border-radius: 12px;
    background: var(--success-bg);
    font-size: 14px; font-weight: 700;
    color: var(--success);
}
.verified small { display: block; font-size: 11px; font-weight: 600; opacity: .8; text-transform: uppercase; letter-spacing: .06em; }

/* Brand marks for networks / cable providers. */
.brandmark {
    width: 42px; height: 42px; flex-shrink: 0;
    display: grid; place-items: center;
    border-radius: 50%;
    background: var(--mark, #64748b);
    color: var(--mark-ink, #fff);
    font-size: 11px; font-weight: 800; letter-spacing: -.02em;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06);
}
.brand-mtn { --mark: #ffcb05; --mark-ink: #1a1a1a; }
.brand-glo { --mark: #47b84a; }
.brand-airtel { --mark: #e40000; }
.brand-9mobile { --mark: #006b3f; }
.brand-dstv { --mark: #0095da; }
.brand-gotv { --mark: #2cb34a; }
.brand-startimes { --mark: #f7941d; }

/* --- Summary ------------------------------------------------------------- */

.summary {
    padding: 14px 16px;
    border: 1px solid var(--border); border-radius: var(--radius);
    background: var(--surface-2);
    font-size: 14px;
}
.summary-row { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; color: var(--ink-2); }
.summary-row > :last-child { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; text-align: right; }
.summary-row.total { margin-top: 8px; padding-top: 12px; border-top: 1px dashed var(--border-strong); font-size: 16px; font-weight: 800; color: var(--ink); }

/* --- Alerts & badges ------------------------------------------------------ */

.alert {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 14px 16px;
    border: 1px solid; border-radius: var(--radius);
    font-size: 14px; font-weight: 500;
    animation: rise .25s ease both;
}
.alert .icon { margin-top: 1px; }
.alert-body { flex: 1; min-width: 0; }
.alert-close { padding: 0; border: 0; background: none; color: inherit; opacity: .6; cursor: pointer; }
.alert-close:hover { opacity: 1; }
.alert-success { background: var(--success-bg); border-color: var(--success-bd); color: var(--success); }
.alert-danger { background: var(--danger-bg); border-color: var(--danger-bd); color: var(--danger); }
.alert-warning { background: var(--warning-bg); border-color: var(--warning-bd); color: var(--warning); }
.alert a { font-weight: 700; text-decoration: underline; }
.flash { margin-bottom: 20px; }

.badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 3px 10px 3px 8px;
    border-radius: 999px;
    font-size: 11.5px; font-weight: 700; white-space: nowrap;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-successful { background: var(--success-bg); color: var(--success); }
.badge-pending { background: var(--warning-bg); color: var(--warning); }
.badge-failed { background: var(--danger-bg); color: var(--danger); }
.badge-refunded { background: var(--surface-2); color: var(--muted); box-shadow: inset 0 0 0 1px var(--border); }

/* --- Service tones -------------------------------------------------------- */

.tone-airtime { --tone: #7c3aed; --tone-bg: #f3e8ff; }
.tone-data { --tone: #0284c7; --tone-bg: #e0f2fe; }
.tone-cable { --tone: #db2777; --tone-bg: #fce7f3; }
.tone-electricity { --tone: #d97706; --tone-bg: #fef3c7; }
.tone-wallet { --tone: var(--brand); --tone-bg: var(--brand-50); }
@media (prefers-color-scheme: dark) {
    .tone-airtime { --tone: #c4b5fd; --tone-bg: rgba(139, 92, 246, .16); }
    .tone-data { --tone: #7dd3fc; --tone-bg: rgba(14, 165, 233, .16); }
    .tone-cable { --tone: #f9a8d4; --tone-bg: rgba(236, 72, 153, .16); }
    .tone-electricity { --tone: #fcd34d; --tone-bg: rgba(245, 158, 11, .16); }
    .tone-wallet { --tone: #a5b4fc; }
}
.tile-icon {
    display: grid; place-items: center; flex-shrink: 0;
    width: 42px; height: 42px;
    border-radius: 12px;
    background: var(--tone-bg, var(--surface-2));
    color: var(--tone, var(--muted));
}
.tile-icon-lg { width: 48px; height: 48px; border-radius: 14px; }
.tile-icon-lg .icon { width: 22px; height: 22px; }
.tile-icon-round { border-radius: 50%; }

/* --- Dashboard ------------------------------------------------------------ */

.dash { display: grid; gap: 20px; }
@media (min-width: 960px) { .dash { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); } }

.balance {
    position: relative; overflow: hidden; isolation: isolate;
    display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
    min-height: 220px;
    padding: 24px;
    border-radius: 24px;
    background: var(--brand-grad);
    color: #fff;
    box-shadow: var(--shadow-lg);
}
.balance::before, .balance::after {
    content: ""; position: absolute; z-index: -1; border-radius: 50%;
}
.balance::before { width: 320px; height: 320px; right: -110px; top: -150px; background: radial-gradient(circle, rgba(255, 255, 255, .18), transparent 70%); }
.balance::after { width: 260px; height: 260px; left: -90px; bottom: -170px; background: radial-gradient(circle, rgba(167, 139, 250, .45), transparent 70%); }
.balance-label { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, .78); }
.balance-toggle { display: grid; place-items: center; padding: 4px; border: 0; border-radius: 8px; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; }
.balance-toggle:hover { background: rgba(255, 255, 255, .22); }
.balance-amount { margin-top: 8px; font-size: 34px; line-height: 1.1; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.balance-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.balance-meta { font-size: 12px; font-weight: 600; color: rgba(255, 255, 255, .65); }
@media (min-width: 640px) { .balance { padding: 28px; } .balance-amount { font-size: 42px; } }

.services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.service {
    display: flex; flex-direction: column; justify-content: space-between; gap: 18px;
    padding: 18px;
    border: 1px solid var(--border); border-radius: 18px;
    background: var(--surface);
    transition: transform .15s, box-shadow .15s, border-color .15s;
}
.service:hover { transform: translateY(-2px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.service-top { display: flex; align-items: flex-start; justify-content: space-between; }
.service-arrow { color: var(--faint); transition: transform .15s, color .15s; }
.service:hover .service-arrow { color: var(--ink); transform: translateX(2px); }
.service-title { font-size: 15px; font-weight: 700; }
.service-sub { font-size: 12.5px; color: var(--muted); }
@media (max-width: 540px) {
    .services { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
    .service { align-items: center; gap: 8px; padding: 12px 2px; border: 0; background: none; text-align: center; }
    .service:hover { transform: none; box-shadow: none; }
    .service-top { justify-content: center; }
    .service .tile-icon { width: 54px; height: 54px; border-radius: 16px; }
    .service-arrow, .service-sub { display: none; }
    .service-title { font-size: 12px; }
}

/* --- Bank accounts -------------------------------------------------------- */

.accounts { display: grid; gap: 12px; }
@media (min-width: 720px) { .accounts { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); } }
.acct {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 16px;
    border: 1px dashed var(--border-strong); border-radius: var(--radius);
    background: var(--surface-2);
}
.acct-bank { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.acct-number { margin: 2px 0; font-family: var(--mono); font-size: 21px; font-weight: 700; letter-spacing: .06em; }
.acct-name { font-size: 13px; color: var(--ink-2); }

/* --- Transactions --------------------------------------------------------- */

.tx-list { display: flex; flex-direction: column; }
.tx {
    display: flex; align-items: center; gap: 14px;
    padding: 14px 20px;
    transition: background .15s;
}
.tx + .tx { border-top: 1px solid var(--border); }
.tx:hover { background: var(--surface-2); }
.tx .tile-icon { width: 40px; height: 40px; border-radius: 50%; }
.tx-main { flex: 1; min-width: 0; }
.tx-title { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tx-sub { margin-top: 1px; font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tx-end { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.tx-amount { font-size: 14px; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tx-amount.is-void { color: var(--faint); text-decoration: line-through; }
@media (min-width: 640px) { .tx { padding: 14px 24px; } }

.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }

.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; font-size: 13px; color: var(--muted); }
.pager-links { display: flex; gap: 8px; }

.empty { padding: 48px 24px; text-align: center; }
.empty-icon {
    width: 56px; height: 56px;
    display: grid; place-items: center;
    margin: 0 auto 14px;
    border-radius: 16px;
    background: var(--surface-2);
    color: var(--faint);
    box-shadow: inset 0 0 0 1px var(--border);
}
.empty-title { font-weight: 700; }
.empty-text { margin-top: 4px; font-size: 14px; color: var(--muted); }
.empty .btn { margin-top: 18px; }

/* --- Purchase layout ------------------------------------------------------ */

.buy { display: grid; gap: 20px; align-items: start; }
@media (min-width: 1024px) { .buy { grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; } }
.buy-form { max-width: 640px; width: 100%; }

.mini-balance {
    position: relative; overflow: hidden;
    padding: 20px;
    border-radius: var(--radius-lg);
    background: var(--brand-grad);
    color: #fff;
    box-shadow: var(--shadow-lg);
}
.mini-balance::after { content: ""; position: absolute; width: 200px; height: 200px; right: -80px; top: -100px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .2), transparent 70%); }
.mini-balance-label { font-size: 12px; font-weight: 600; color: rgba(255, 255, 255, .75); }
.mini-balance-amount { margin: 4px 0 14px; font-size: 24px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }

.checklist { display: flex; flex-direction: column; gap: 12px; margin-top: 14px; }
.checklist li { display: flex; gap: 10px; font-size: 13.5px; color: var(--ink-2); }
.checklist .icon { margin-top: 2px; color: var(--success); }

.help { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); font-size: 13.5px; }
.help a { display: flex; align-items: center; gap: 8px; color: var(--ink-2); font-weight: 600; }
.help a:hover { color: var(--brand); }

.divider { height: 1px; background: var(--border); border: 0; margin: 0; }

/* --- Receipt -------------------------------------------------------------- */

.receipt { max-width: 520px; margin: 0 auto; }
.receipt .card { overflow: hidden; }
.receipt-head { padding: 32px 24px 24px; text-align: center; }
.status-icon {
    width: 68px; height: 68px;
    display: grid; place-items: center;
    margin: 0 auto 16px;
    border-radius: 50%;
}
.status-icon .icon { width: 30px; height: 30px; stroke-width: 2.5; }
.status-successful { background: var(--success-bg); color: var(--success); box-shadow: 0 0 0 8px color-mix(in srgb, var(--success-bg) 50%, transparent); }
.status-pending { background: var(--warning-bg); color: var(--warning); box-shadow: 0 0 0 8px color-mix(in srgb, var(--warning-bg) 50%, transparent); }
.status-failed, .status-refunded { background: var(--danger-bg); color: var(--danger); box-shadow: 0 0 0 8px color-mix(in srgb, var(--danger-bg) 50%, transparent); }
.receipt-amount { margin-top: 4px; font-size: 34px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.receipt-desc { margin-top: 6px; font-size: 14px; color: var(--muted); }
.receipt-head .badge { margin-top: 14px; }
.perforation { position: relative; height: 24px; }
.perforation::before, .perforation::after {
    content: ""; position: absolute; top: 0;
    width: 24px; height: 24px;
    border-radius: 50%;
    background: var(--bg);
    box-shadow: inset 0 0 0 1px var(--border);
}
.perforation::before { left: -13px; }
.perforation::after { right: -13px; }
.perforation span { position: absolute; left: 20px; right: 20px; top: 50%; border-top: 2px dashed var(--border); }
.receipt-body { padding: 4px 24px 24px; }
.dl-row { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; font-size: 14px; }
.dl-row + .dl-row { border-top: 1px solid var(--border); }
.dl-row dt { color: var(--muted); flex-shrink: 0; }
.dl-row dd { font-weight: 600; text-align: right; word-break: break-word; }
@media (max-width: 480px) {
    .dl-row-stack { flex-direction: column; gap: 4px; }
    .dl-row-stack dd { text-align: left; }
}
.token {
    margin-top: 16px; padding: 18px;
    border: 1.5px dashed var(--brand); border-radius: var(--radius);
    background: var(--brand-50);
    text-align: center;
}
.token-label { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); }
.token-value { margin: 6px 0 12px; font-family: var(--mono); font-size: 22px; font-weight: 700; letter-spacing: .1em; word-break: break-all; }
.receipt-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }

/* --- Auth ----------------------------------------------------------------- */

.auth { min-height: 100vh; display: grid; }
.auth-brand {
    position: relative; overflow: hidden; isolation: isolate;
    display: none; flex-direction: column; justify-content: space-between;
    padding: 44px 52px;
    background: var(--brand-grad);
    color: #fff;
}
.auth-brand::before { content: ""; position: absolute; z-index: -1; width: 640px; height: 640px; right: -260px; top: -240px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .14), transparent 65%); }
.auth-brand::after { content: ""; position: absolute; z-index: -1; width: 520px; height: 520px; left: -200px; bottom: -260px; border-radius: 50%; background: radial-gradient(circle, rgba(167, 139, 250, .5), transparent 65%); }
.auth-brand .logo-mark { background: rgba(255, 255, 255, .16); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
.auth-headline { max-width: 460px; font-size: 42px; line-height: 1.08; font-weight: 800; letter-spacing: -.035em; }
.auth-lead { max-width: 420px; margin-top: 16px; font-size: 16px; color: rgba(255, 255, 255, .75); }
.auth-features { display: flex; flex-direction: column; gap: 14px; margin-top: 32px; }
.auth-features li { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 600; }
.auth-features .tick { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; background: rgba(255, 255, 255, .14); }
.auth-mock {
    width: 100%; max-width: 380px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, .2); border-radius: 22px;
    background: rgba(255, 255, 255, .1);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .4);
}
.auth-mock-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.auth-mock-row + .auth-mock-row { border-top: 1px solid rgba(255, 255, 255, .12); }
.auth-mock-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .16); }
.auth-panel { display: flex; align-items: center; justify-content: center; padding: 40px 20px; }
.auth-card { width: 100%; max-width: 420px; animation: rise .3s ease both; }
.auth-card .logo { margin-bottom: 36px; }
.auth-title { font-size: 28px; font-weight: 800; letter-spacing: -.025em; }
.auth-sub { margin: 6px 0 28px; color: var(--muted); }
.auth-foot { margin-top: 24px; font-size: 14px; text-align: center; color: var(--muted); }
.form-grid { display: grid; gap: 20px; }
@media (min-width: 520px) { .form-grid-2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) {
    .auth { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .auth-brand { display: flex; }
    .auth-card .logo { display: none; }
}

.password { position: relative; }
.password .input { padding-right: 48px; }
.password-toggle {
    position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
    width: 38px; height: 38px;
    display: grid; place-items: center;
    border: 0; border-radius: 9px;
    background: none;
    color: var(--faint);
    cursor: pointer;
}
.password-toggle:hover { color: var(--ink); }

/* --- Modals / bottom sheets ------------------------------------------------ */

body.modal-open { overflow: hidden; }
.modal {
    position: fixed; inset: 0; z-index: 60;
    display: flex; align-items: flex-end; justify-content: center;
    background: rgba(8, 10, 24, .55);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    animation: fade-in .2s ease both;
}
.modal-panel {
    position: relative;
    width: 100%; max-width: 440px; max-height: 94vh; overflow-y: auto;
    padding: 8px 20px calc(20px + env(safe-area-inset-bottom));
    border-radius: 26px 26px 0 0;
    background: var(--surface);
    box-shadow: 0 -24px 60px -24px rgba(0, 0, 0, .4);
    animation: sheet-up .38s cubic-bezier(.2, .9, .3, 1) both;
}
.modal-panel::before { content: ""; display: block; width: 40px; height: 4px; margin: 4px auto 12px; border-radius: 4px; background: var(--border-strong); }
.modal-sm { max-width: 380px; text-align: center; }
@media (min-width: 640px) {
    .modal { align-items: center; padding: 20px; }
    .modal-panel { padding: 24px; border-radius: 26px; box-shadow: 0 40px 80px -24px rgba(0, 0, 0, .45); animation-name: modal-pop; }
    .modal-panel::before { display: none; }
}
@keyframes fade-in { from { opacity: 0; } }
@keyframes sheet-up { from { transform: translateY(60px); opacity: 0; } }
@keyframes modal-pop { from { transform: translateY(14px) scale(.96); opacity: 0; } }

.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.modal-title { font-size: 17px; font-weight: 800; letter-spacing: -.01em; }
.modal-text { margin-top: 6px; font-size: 14px; color: var(--muted); }
.modal-close {
    width: 36px; height: 36px;
    display: grid; place-items: center;
    border: 0; border-radius: 50%;
    background: var(--surface-2);
    color: var(--muted);
    cursor: pointer;
}
.modal-close:hover { color: var(--ink); background: var(--border); }
.modal-icon { width: 56px; height: 56px; margin: 6px auto 16px; border-radius: 18px; }
.modal-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; }
.modal-actions form { display: contents; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover:not(:disabled) { filter: brightness(.94); }

.confirm-hero { padding: 14px 0 18px; text-align: center; }
.confirm-hero .tile-icon { margin: 0 auto 12px; }
.confirm-total { font-size: 36px; line-height: 1.1; font-weight: 800; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.confirm-headline { margin-top: 6px; font-size: 13.5px; color: var(--muted); }
.confirm-rows { padding: 2px 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-2); }
.confirm-rows .dl-row { padding: 10px 0; font-size: 13.5px; }
.balance-check { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; padding: 0 4px; font-size: 13px; color: var(--muted); }
.balance-check strong { color: var(--ink); font-variant-numeric: tabular-nums; }
.insufficient { margin-top: 16px; padding: 16px; border: 1px solid var(--danger-bd); border-radius: var(--radius); background: var(--danger-bg); text-align: center; }
.insufficient p { margin-bottom: 14px; font-size: 14px; color: var(--danger); }

.pin-label { margin: 22px 0 14px; font-size: 14px; font-weight: 700; text-align: center; }
.pin-dots { display: flex; justify-content: center; gap: 18px; }
.pin-dot {
    width: 16px; height: 16px;
    border: 2px solid var(--border-strong); border-radius: 50%;
    transition: background .15s, border-color .15s, transform .15s;
}
.pin-dot.is-filled { background: var(--brand); border-color: var(--brand); transform: scale(1.12); }
.pin-dots.is-error .pin-dot { border-color: var(--danger); }
.pin-dots.is-error .pin-dot.is-filled { background: var(--danger); }
.pin-error { min-height: 20px; margin-top: 12px; font-size: 13px; font-weight: 600; text-align: center; color: var(--danger); }
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 6px 0 16px; }
.key {
    height: 56px;
    display: grid; place-items: center;
    border: 0; border-radius: 16px;
    background: var(--surface-2);
    font-size: 22px; font-weight: 700;
    color: var(--ink);
    cursor: pointer;
    user-select: none; -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
    transition: background .12s, transform .08s;
}
.key:hover { background: var(--brand-50); }
.key:active { transform: scale(.93); background: var(--brand-100); }
.key:focus-visible { outline: none; box-shadow: var(--ring); }
.key-muted { background: transparent; font-size: 13px; color: var(--muted); }
.pin-foot { margin-top: 12px; font-size: 12px; text-align: center; color: var(--faint); }

.processing { padding: 26px 0 10px; text-align: center; }
.spinner-ring {
    width: 76px; height: 76px;
    margin: 0 auto 20px;
    border: 4px solid var(--brand-100); border-top-color: var(--brand);
    border-radius: 50%;
    animation: spin .9s linear infinite;
}
.stages { display: flex; flex-direction: column; gap: 12px; max-width: 250px; margin: 24px auto 0; text-align: left; }
.stage { display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 600; color: var(--faint); transition: color .3s; }
.stage-dot {
    width: 22px; height: 22px; flex-shrink: 0;
    display: grid; place-items: center;
    border: 2px solid var(--border-strong); border-radius: 50%;
    color: #fff;
    transition: background .3s, border-color .3s;
}
.stage-dot .icon { width: 13px; height: 13px; stroke-width: 3; }
.stage.is-active { color: var(--ink); }
.stage.is-active .stage-dot { border-color: var(--brand); border-right-color: transparent; animation: spin .8s linear infinite; }
.stage.is-done { color: var(--success); }
.stage.is-done .stage-dot { background: var(--success); border-color: var(--success); }

/* --- Toasts --------------------------------------------------------------- */

.toasts {
    position: fixed; left: 50%; bottom: calc(86px + env(safe-area-inset-bottom)); z-index: 90;
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    transform: translateX(-50%);
    pointer-events: none;
}
@media (min-width: 1024px) { .toasts { bottom: 28px; } }
.toast {
    display: flex; align-items: center; gap: 8px;
    max-width: 90vw;
    padding: 10px 18px 10px 14px;
    border-radius: 999px;
    background: var(--ink);
    color: var(--surface);
    font-size: 13.5px; font-weight: 600;
    box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .35);
    animation: toast-in .25s cubic-bezier(.2, .9, .3, 1.2) both;
    transition: opacity .25s, transform .25s;
}
.toast::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #34d399; flex-shrink: 0; }
.toast-error::before { background: #f87171; }
.toast.is-leaving { opacity: 0; transform: translateY(8px); }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px) scale(.95); } }

/* --- Micro-interactions ----------------------------------------------------- */

.detect {
    display: inline-flex; align-items: center; gap: 6px;
    margin-top: 8px; padding: 4px 10px 4px 6px;
    border-radius: 999px;
    background: var(--brand-50);
    font-size: 12.5px; font-weight: 700;
    color: var(--brand);
    animation: rise .2s ease both;
}
.detect-warn { background: var(--warning-bg); color: var(--warning); }
.detect button { padding: 0; border: 0; background: none; color: inherit; font-weight: 800; text-decoration: underline; cursor: pointer; }

.verifying { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 13px; font-weight: 600; color: var(--muted); }
.verifying::before { content: ""; width: 14px; height: 14px; border: 2px solid var(--border-strong); border-top-color: var(--brand); border-radius: 50%; animation: spin .7s linear infinite; }

@media (prefers-reduced-motion: no-preference) {
    .shake { animation: shake .45s cubic-bezier(.36, .07, .19, .97) both; }
    .pin-dot.is-filled { animation: pop .22s ease; }
    .choice > input:checked + .choice-body .brandmark, .choice-body.is-on .brandmark { animation: pop .25s ease; }
    .status-icon.is-animated { animation: pop-in .55s cubic-bezier(.2, 1.4, .4, 1) both; }
    .status-icon.is-animated .icon > * { stroke-dasharray: 48; stroke-dashoffset: 48; animation: draw .5s .35s ease forwards; }
    .verified { animation: rise .25s ease both; }
}
@keyframes shake {
    10%, 90% { transform: translateX(-2px); }
    20%, 80% { transform: translateX(4px); }
    30%, 50%, 70% { transform: translateX(-8px); }
    40%, 60% { transform: translateX(8px); }
}
@keyframes pop { 0% { transform: scale(.6); } 60% { transform: scale(1.25); } 100% { transform: scale(1.1); } }
@keyframes pop-in { from { transform: scale(.3); opacity: 0; } }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* --- Print (receipts) ------------------------------------------------------ */

@media print {
    body { background: #fff; }
    .sidebar, .topbar, .bottom-nav, .no-print, .flash { display: none !important; }
    .main { margin: 0; }
    .content { padding: 0; animation: none; }
    .card { box-shadow: none; }
    .perforation::before, .perforation::after { display: none; }
}
