/* ==========================================================================
   Benjee Comm — Shared Design System
   One stylesheet, used by every page, so the app reads like one product
   instead of a dozen hand-styled pages.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@500;600&display=swap');

:root {
    /* Brand */
    --brand: #FFCD00;
    --brand-dark: #E6B800;
    --ink: #0B0D12;
    --ink-soft: #14171F;

    /* Neutrals */
    --surface: #F7F7F9;
    --surface-alt: #FFFFFF;
    --border: #E7E7EC;
    --border-strong: #D6D6DE;
    --text: #14171F;
    --text-muted: #6B7080;
    --text-faint: #9A9EAC;

    /* Semantic */
    --success: #0FA968;
    --success-bg: #E9F9F1;
    --error: #E2483D;
    --error-bg: #FDECEA;
    --warning: #C77D00;
    --warning-bg: #FFF3DE;
    --info: #2F6FED;
    --info-bg: #EBF2FE;

    /* Elevation */
    --shadow-sm: 0 1px 2px rgba(16, 18, 27, 0.06), 0 1px 1px rgba(16, 18, 27, 0.04);
    --shadow-md: 0 4px 16px rgba(16, 18, 27, 0.08);
    --shadow-lg: 0 12px 40px rgba(16, 18, 27, 0.16);

    /* Radius */
    --r-sm: 6px;
    --r-md: 10px;
    --r-lg: 16px;
    --r-full: 999px;

    /* Type */
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', 'SF Mono', Consolas, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font-body);
    background: var(--surface);
    color: var(--text);
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 { font-weight: 700; letter-spacing: -0.01em; color: var(--ink); }

.mono { font-family: var(--font-mono); }

/* ---------- Layout shells ---------- */

.app-shell { min-height: 100vh; }

.app-container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

.app-container--narrow { max-width: 760px; }

/* ---------- Top navbar (customer-facing) ---------- */

.topbar {
    background: var(--surface-alt);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.topbar-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 16px;
    color: var(--ink);
}

.brand-mark {
    width: 34px;
    height: 34px;
    border-radius: var(--r-md);
    background: var(--ink);
    color: var(--brand);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
    flex-shrink: 0;
}

.brand-tag {
    background: var(--brand);
    color: var(--ink);
    font-size: 10px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.02em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    padding: 8px 12px;
    border-radius: var(--r-sm);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    transition: all 0.15s;
}

.nav-link:hover { color: var(--ink); background: var(--surface); }
.nav-link.active { color: var(--ink); background: var(--surface); }

.nav-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-left: 12px;
    margin-left: 4px;
    border-left: 1px solid var(--border);
}

.nav-user-name { font-size: 13px; font-weight: 600; color: var(--text); }

/* ---------- Admin shell (sidebar + topbar) ---------- */

.admin-shell {
    display: grid;
    grid-template-columns: 248px 1fr;
    min-height: 100vh;
}

.admin-sidebar {
    background: var(--ink);
    color: rgba(255,255,255,0.86);
    padding: 22px 14px;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.admin-sidebar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 10px 24px;
    font-weight: 800;
    font-size: 15px;
    color: white;
}

.admin-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.admin-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--r-sm);
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,0.6);
    transition: all 0.15s;
}

.admin-nav-link:hover { background: rgba(255,255,255,0.06); color: white; }

.admin-nav-link.active {
    background: var(--brand);
    color: var(--ink);
}

.admin-nav-spacer { flex: 1; }

.admin-nav-logout {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.admin-topbar {
    background: var(--surface-alt);
    border-bottom: 1px solid var(--border);
    padding: 16px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-topbar h1 { font-size: 17px; }

.admin-main { padding: 28px 30px 60px; }

@media (max-width: 860px) {
    .admin-shell { grid-template-columns: 1fr; }
    .admin-sidebar { display: none; }
    .admin-main { padding: 20px 16px 48px; }
}

/* ---------- Page headers ---------- */

.page-head {
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    flex-wrap: wrap;
}

.page-title { font-size: 24px; margin-bottom: 4px; }
.page-subtitle { color: var(--text-muted); font-size: 13.5px; }

.back-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.back-link:hover { color: var(--ink); }

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

.card {
    background: var(--surface-alt);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 24px;
}

.card + .card { margin-top: 20px; }

.card-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 18px;
    color: var(--ink);
}

.card-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
}
.card-title-row .card-title { margin-bottom: 0; }

/* ---------- Stat cards ---------- */

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--surface-alt);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 18px 20px;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: var(--brand);
}

.stat-card.stat--success::before { background: var(--success); }
.stat-card.stat--error::before { background: var(--error); }
.stat-card.stat--info::before { background: var(--info); }
.stat-card.stat--warning::before { background: var(--warning); }

.stat-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-faint);
    margin-bottom: 8px;
}

.stat-value { font-size: 24px; font-weight: 800; color: var(--ink); }

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 20px;
    border-radius: var(--r-md);
    font-size: 13.5px;
    font-weight: 700;
    font-family: inherit;
    border: none;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: all 0.15s;
    line-height: 1;
}

.btn-primary { background: var(--brand); color: var(--ink); }
.btn-primary:hover { background: var(--brand-dark); transform: translateY(-1px); box-shadow: var(--shadow-sm); }

.btn-dark { background: var(--ink); color: white; }
.btn-dark:hover { background: var(--ink-soft); }

.btn-outline { background: transparent; color: var(--text); border: 1px solid var(--border-strong); }
.btn-outline:hover { background: var(--surface); }

.btn-danger { background: var(--error); color: white; }
.btn-danger:hover { background: #C93B31; }

.btn-ghost { background: transparent; color: var(--text-muted); }
.btn-ghost:hover { color: var(--ink); background: var(--surface); }

.btn-sm { padding: 7px 12px; font-size: 12px; border-radius: var(--r-sm); }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none !important; }

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

.field { margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

label {
    display: block;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 7px;
}

.hint { font-size: 12px; color: var(--text-faint); margin-top: 6px; line-height: 1.4; }

/* ---------- Transaction PIN: boxed input (registration / profile) ---------- */

.pin-setup-group { margin-bottom: 18px; padding-top: 4px; }
.pin-setup-label { display: flex; flex-direction: column; gap: 3px; }
.pin-setup-sub { font-size: 11.5px; font-weight: 500; color: var(--text-faint); }

.pin-boxes { display: flex; gap: 10px; margin-top: 8px; }
/* .pin-boxes .pin-box (not just .pin-box) is intentional: these are real
   <input type="tel"> elements, and the generic `input[type="tel"]` rule
   further down this file carries higher CSS specificity than a bare
   class selector, so a plain `.pin-box { font-size: 24px }` was silently
   losing that fight and the boxes were rendering at ~13.5-16px. Below
   16px, iOS/Android auto-zoom the whole page in on focus — so every time
   focus auto-advanced to the next box while entering a PIN, the page
   visibly "zoomed in". Nesting the selector under .pin-boxes raises its
   specificity above input[type="tel"] so the intended 24px actually wins
   and focus never triggers the zoom. */
.pin-boxes .pin-box {
    width: 52px;
    height: 58px;
    text-align: center;
    font-size: 24px;
    font-weight: 800;
    font-family: var(--font-mono);
    border: 1.5px solid var(--border);
    border-radius: var(--r-md);
    background: var(--surface);
    color: var(--text);
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
    -webkit-text-security: disc;
}
.pin-boxes .pin-box:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(255, 205, 0, 0.18);
    background: var(--surface-alt);
}
.pin-box.filled { border-color: var(--brand-dark); }
.pin-box.pin-error { border-color: var(--error); animation: pin-shake 0.35s ease; }

@keyframes pin-shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-6px); }
    40% { transform: translateX(6px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
}

/* ---------- Transaction PIN: confirm pad modal (checkout) ----------
   Redesigned as a dark, branded "secure confirm" screen — the same
   pattern used by Kuda/Opay/Paystack: pulling PIN entry out of the
   light app chrome and onto its own high-contrast surface signals
   "this step matters" and reads as a lot more professional than a
   plain white sheet. All the state-machine logic in app.js is
   untouched — this only changes how each state looks. ---- */

.pinpad-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(5, 6, 10, 0.82);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    z-index: 1000;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
    transform: translateZ(0); /* forces its own compositing layer so mobile browsers paint it immediately on insert */
    -webkit-transform: translateZ(0);
}
.pinpad-overlay.active { display: flex; animation: pinpad-fade-in 0.2s ease; }

@keyframes pinpad-fade-in { from { opacity: 0; } to { opacity: 1; } }

.pinpad-sheet {
    position: relative;
    width: 100%;
    max-width: 400px;
    background:
        radial-gradient(120% 140% at 50% 0%, rgba(255,205,0,0.10), transparent 55%),
        linear-gradient(180deg, #14171F 0%, #0B0D12 100%);
    border: 1px solid rgba(255,255,255,0.06);
    border-bottom: none;
    border-radius: 28px 28px 0 0;
    padding: 14px 26px 32px;
    box-shadow: 0 -20px 60px rgba(0,0,0,0.45);
    animation: pinpad-slide-up 0.32s cubic-bezier(.2,.8,.2,1);
    overflow: hidden;
}
/* faint top sheen so the dark card doesn't look flat */
.pinpad-sheet::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,205,0,0.5), transparent);
}
@media (min-width: 640px) {
    .pinpad-sheet { border: 1px solid rgba(255,255,255,0.08); border-radius: 24px; margin-bottom: 40px; }
}
@keyframes pinpad-slide-up { from { transform: translateY(28px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.pinpad-handle { width: 36px; height: 4px; background: rgba(255,255,255,0.16); border-radius: 4px; margin: 0 auto 16px; }

.pinpad-lock {
    width: 46px; height: 46px; border-radius: 50%;
    margin: 0 auto 14px;
    background: linear-gradient(155deg, var(--brand), var(--brand-dark));
    box-shadow: 0 6px 20px rgba(255,205,0,0.25);
    display: flex; align-items: center; justify-content: center;
}
.pinpad-lock svg { width: 20px; height: 20px; stroke: var(--ink); }

.pinpad-title { font-size: 15px; font-weight: 700; text-align: center; color: rgba(255,255,255,0.65); letter-spacing: 0.02em; text-transform: uppercase; font-size: 11.5px; }
.pinpad-amount { font-size: 30px; font-weight: 900; text-align: center; margin: 6px 0 4px; color: #FFFFFF; letter-spacing: -0.01em; }
.pinpad-sub { font-size: 12.5px; color: rgba(255,255,255,0.45); text-align: center; margin-bottom: 24px; }

.pinpad-dots { display: flex; justify-content: center; gap: 18px; margin-bottom: 30px; }
.pinpad-dot {
    width: 14px; height: 14px; border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,0.28);
    background: transparent;
    box-shadow: none;
    transition: all 0.18s cubic-bezier(.3,1.4,.4,1);
}
.pinpad-dot.filled {
    background: var(--brand);
    border-color: var(--brand);
    box-shadow: 0 0 0 5px rgba(255,205,0,0.16);
    transform: scale(1.08);
}
.pinpad-dot.pinpad-error {
    background: var(--error);
    border-color: var(--error);
    box-shadow: 0 0 0 5px rgba(226,72,61,0.2);
}

.pinpad-dots.shake { animation: pin-shake 0.4s ease; }

.pinpad-keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pinpad-key {
    height: 64px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 50%;
    background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 1px 2px rgba(0,0,0,0.3);
    font-size: 21px;
    font-weight: 700;
    font-family: var(--font-mono);
    color: #FFFFFF;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    transition: background 0.08s ease, transform 0.08s ease, border-color 0.08s ease, box-shadow 0.08s ease;
}
/* Driven from JS on pointerdown/up rather than relying on :active, which
   several mobile browsers apply late (or not at all) for touch input —
   this is what made presses feel unresponsive. */
.pinpad-key:active,
.pinpad-key.pinpad-key-pressed {
    background: rgba(255,205,0,0.14);
    border-color: rgba(255,205,0,0.35);
    transform: scale(0.94);
}
.pinpad-key.pinpad-key-ghost { background: transparent; border-color: transparent; box-shadow: none; cursor: default; }
.pinpad-key.pinpad-key-ghost:active,
.pinpad-key.pinpad-key-ghost.pinpad-key-pressed { background: transparent; border-color: transparent; transform: none; }
.pinpad-key-backspace { font-size: 18px; color: rgba(255,255,255,0.55); }

.pinpad-status {
    display: none;
    align-items: center;
    gap: 8px;
    text-align: left;
    font-size: 12.5px;
    font-weight: 700;
    color: #FF9C93;
    background: rgba(226,72,61,0.14);
    border: 1px solid rgba(226,72,61,0.3);
    border-radius: var(--r-md);
    padding: 10px 12px;
    margin: 2px 0 18px;
}
.pinpad-status svg { width: 17px; height: 17px; flex-shrink: 0; }
.pinpad-status-active .pinpad-status { display: flex; animation: pinpad-status-in 0.18s ease; }
@keyframes pinpad-status-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }

.pinpad-cancel {
    display: block; margin: 20px auto 0;
    background: none; border: none;
    color: rgba(255,255,255,0.4);
    font-size: 12.5px; font-weight: 700;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: color 0.15s ease;
}
.pinpad-cancel:hover, .pinpad-cancel:active { color: rgba(255,255,255,0.7); }

/* ---- Verifying state: shown the instant the 4th digit lands, while the
   PIN is actually being checked against the server. This is deliberately
   neutral (a spinner, not a checkmark) — the pad used to show a green
   "PIN confirmed" the moment 4 digits were typed, even when the PIN
   turned out to be wrong, which read as a false success. Now nothing
   claims success until the server has actually said so. ---- */
.pinpad-verifying-active .pinpad-keys,
.pinpad-verifying-active .pinpad-cancel { display: none; }
.pinpad-verifying { display: none; flex-direction: column; align-items: center; gap: 16px; padding: 22px 0 8px; }
.pinpad-verifying-active .pinpad-verifying { display: flex; }
.pinpad-verifying-spinner {
    width: 34px; height: 34px; border-radius: 50%;
    border: 3px solid rgba(255,255,255,0.12); border-top-color: var(--brand);
    animation: page-loading-spin 0.7s linear infinite;
}
.pinpad-verifying-text { font-size: 13.5px; font-weight: 700; color: rgba(255,255,255,0.55); letter-spacing: 0.01em; }

/* ---- PIN confirmed state: only shown once the server has actually
   validated the PIN and the purchase succeeded — see confirmPurchaseWithPin
   in app.js. ---- */
.pinpad-confirming .pinpad-keys,
.pinpad-confirming .pinpad-cancel { display: none; }
.pinpad-confirm {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 34px 0 18px;
}
.pinpad-confirming .pinpad-confirm { display: flex; }
.pinpad-confirm-check {
    position: relative;
    width: 104px; height: 104px; border-radius: 50%;
    background: linear-gradient(155deg, #12C285, var(--success));
    box-shadow: 0 0 0 10px rgba(15,169,104,0.14), 0 10px 30px rgba(15,169,104,0.35);
    display: flex; align-items: center; justify-content: center;
    animation: pinpad-check-pop 0.4s cubic-bezier(.2,.9,.3,1.2);
}
/* expanding ring that fades out behind the check, so success reads as an
   active confirmation instead of a static badge */
.pinpad-confirm-check::after {
    content: '';
    position: absolute; inset: 0; border-radius: 50%;
    border: 2px solid var(--success);
    animation: pinpad-check-ring 0.6s ease-out 0.05s;
}
.pinpad-confirm-check svg { width: 50px; height: 50px; stroke: white; position: relative; z-index: 1; }
.pinpad-confirm-check svg path {
    stroke-dasharray: 24; stroke-dashoffset: 24;
    animation: pinpad-check-draw 0.3s ease-out 0.2s forwards;
}
@keyframes pinpad-check-pop { from { transform: scale(0.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes pinpad-check-draw { to { stroke-dashoffset: 0; } }
@keyframes pinpad-check-ring {
    from { transform: scale(1); opacity: 0.9; }
    to { transform: scale(1.55); opacity: 0; }
}
.pinpad-confirm-text { font-size: 19px; font-weight: 800; color: #FFFFFF; }
.pinpad-confirm-sub { font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.5); margin-top: -12px; }

/* ---- Full-page loading veil: shown the instant a confirmed purchase
   form actually submits, so there's never a blank/frozen-looking gap
   between "PIN confirmed" and the new page finishing its round trip. ---- */
.page-loading-overlay {
    display: none;
    position: fixed; inset: 0; z-index: 1100;
    background: rgba(11, 13, 18, 0.88);
    align-items: center; justify-content: center;
    flex-direction: column; gap: 16px;
}
.page-loading-overlay.active { display: flex; animation: pinpad-fade-in 0.15s ease; }
.page-loading-spinner {
    width: 34px; height: 34px; border-radius: 50%;
    border: 3px solid rgba(255,255,255,0.25);
    border-top-color: var(--brand);
    animation: page-loading-spin 0.7s linear infinite;
}
@keyframes page-loading-spin { to { transform: rotate(360deg); } }
.page-loading-text { color: white; font-size: 13.5px; font-weight: 700; }

/* ---- Toast: enhances the server-rendered flash alert with a slide-down
   entrance + auto-dismiss instead of a static banner that's easy to miss. ---- */
.toast-wrap { position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 1200; width: min(92vw, 420px); }
.toast-wrap .alert { box-shadow: var(--shadow-lg); animation: toast-in 0.32s cubic-bezier(.2,.8,.2,1); }
@keyframes toast-in { from { transform: translateY(-16px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.toast-wrap .alert.toast-leaving { animation: toast-out 0.22s ease-in forwards; }
@keyframes toast-out { to { transform: translateY(-16px); opacity: 0; } }

/* ---------- Install-to-homescreen prompt ---------- */

.install-prompt {
    position: fixed;
    left: 14px;
    right: 14px;
    bottom: 14px;
    z-index: 900;
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--surface-alt);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-lg);
    padding: 14px;
    max-width: 420px;
    margin: 0 auto;
    transform: translateY(120%);
    opacity: 0;
    transition: transform 0.28s cubic-bezier(.2,.8,.2,1), opacity 0.28s ease;
    pointer-events: none;
}
.install-prompt.active { transform: translateY(0); opacity: 1; pointer-events: auto; }

.install-prompt-icon {
    flex-shrink: 0;
    width: 44px; height: 44px;
    border-radius: var(--r-md);
    overflow: hidden;
    background: var(--surface);
}
.install-prompt-icon img { display: block; width: 100%; height: 100%; object-fit: cover; }

.install-prompt-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.install-prompt-text strong { font-size: 13.5px; }
.install-prompt-text span { font-size: 12px; color: var(--text-muted); line-height: 1.35; }

.install-prompt-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.install-prompt-dismiss {
    background: none; border: none; color: var(--text-faint); font-size: 20px; line-height: 1;
    cursor: pointer; padding: 4px 6px; touch-action: manipulation;
}

@media (max-width: 480px) {
    .install-prompt { align-items: flex-start; }
    .install-prompt-actions { flex-direction: column; align-items: flex-end; gap: 8px; }
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 11px 13px;
    border: 1px solid var(--border-strong);
    border-radius: var(--r-md);
    font-size: 13.5px;
    font-family: inherit;
    color: var(--text);
    background: var(--surface-alt);
    touch-action: manipulation;
    transition: border-color 0.15s, box-shadow 0.15s;
}

/* iOS Safari auto-zooms the whole page on focus for any input whose
   computed font-size is under 16px. 13.5px was tripping that on every
   phone/amount field. Bumping just the mobile size to 16px stops the
   zoom without changing how inputs look on desktop. */
@media (max-width: 640px) {
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="password"],
    input[type="number"],
    select,
    textarea {
        font-size: 16px;
    }
}

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

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(255, 205, 0, 0.18);
}

input:disabled { background: var(--surface); color: var(--text-faint); }

input[type="checkbox"] { width: auto; cursor: pointer; accent-color: var(--brand); }

.checkbox-row { display: flex; align-items: center; gap: 9px; margin-bottom: 16px; }
.checkbox-row label { margin-bottom: 0; font-weight: 600; }

/* ---------- Alerts / flash messages ---------- */

.alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 13px 16px;
    border-radius: var(--r-md);
    font-size: 13.5px;
    font-weight: 500;
    margin-bottom: 18px;
    border: 1px solid transparent;
}

.alert-success { background: var(--success-bg); color: #0A7A4C; border-color: rgba(15,169,104,0.25); }
.alert-error { background: var(--error-bg); color: #B23227; border-color: rgba(226,72,61,0.25); }
.alert-info { background: var(--info-bg); color: #2255C4; border-color: rgba(47,111,237,0.25); }
.alert-warning { background: var(--warning-bg); color: #8F5E00; border-color: rgba(199,125,0,0.25); }

/* Icon replaces the old raw ✓ / ✕ text glyphs, which render as a different
   emoji per OS/browser (a flat check on some, a bubbly colour emoji on
   others) — inconsistent glyph rendering is a big part of what reads as
   "unpolished" in a finance app. A single drawn SVG looks the same
   everywhere and sits on the message's own baseline instead of floating. */
.alert-icon { flex-shrink: 0; width: 19px; height: 19px; margin-top: 1px; }
.alert-icon svg { width: 100%; height: 100%; display: block; }
.alert-text { flex: 1; line-height: 1.45; }

/* ---------- Badges / pills ---------- */

.badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border-radius: var(--r-full);
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.badge-success, .badge-completed, .badge-active, .badge-resolved { background: var(--success-bg); color: #0A7A4C; }
.badge-error, .badge-failed, .badge-suspended { background: var(--error-bg); color: #B23227; }
.badge-warning, .badge-pending, .badge-in_progress { background: var(--warning-bg); color: #8F5E00; }
.badge-info, .badge-open { background: var(--info-bg); color: #2255C4; }
.badge-neutral, .badge-closed { background: var(--surface); color: var(--text-muted); }

/* ---------- Tables ---------- */

.table-wrap { overflow-x: auto; }

table { width: 100%; border-collapse: collapse; font-size: 13px; }

thead th {
    text-align: left;
    padding: 10px 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--text-faint);
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

tbody td {
    padding: 14px 12px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--surface); }

.cell-muted { color: var(--text-faint); font-size: 11.5px; margin-top: 2px; }
.cell-strong { font-weight: 700; color: var(--ink); }

/* ---------- Data Plan cards (redesigned) ---------- */

.plans-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.plans-toolbar-title { font-size: 12.5px; color: var(--text-faint); }
.plans-toolbar-title strong { color: var(--text); font-weight: 700; }

.plans-view-toggle {
    display: inline-flex;
    gap: 2px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    padding: 3px;
}

.plans-view-toggle button {
    border: none;
    background: none;
    font-family: inherit;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--text-muted);
    padding: 6px 12px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.15s;
}

.plans-view-toggle button.active { background: var(--surface-alt); color: var(--ink); box-shadow: var(--shadow-sm); }

.data-plans-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.data-plans-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 1080px) {
    .data-plans-grid, .data-plans-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 780px) {
    .data-plans-grid, .data-plans-grid.cols-3 { grid-template-columns: repeat(3, 1fr); gap: 8px; }
}
@media (max-width: 460px) {
    .data-plans-grid, .data-plans-grid.cols-3 { grid-template-columns: repeat(3, 1fr); gap: 6px; }
}

.plan-card {
    position: relative;
    background: var(--surface-alt);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 12px 12px 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    cursor: pointer;
    transition: transform 0.16s cubic-bezier(.2,.8,.2,1), box-shadow 0.16s ease, border-color 0.16s ease;
    overflow: hidden;
}

.plan-card::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: linear-gradient(90deg, var(--brand), var(--brand-dark));
    opacity: 0;
    transition: opacity 0.16s ease;
}

.plan-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-strong);
}

.plan-card:hover::before { opacity: 1; }

.plan-card.is-monthly { border-color: #F0DFA3; }

.plan-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.plan-icon {
    width: 28px;
    height: 28px;
    border-radius: var(--r-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, var(--brand), var(--brand-dark));
    color: var(--ink);
    flex-shrink: 0;
}

.plan-icon svg { width: 14px; height: 14px; }

.plan-tag {
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 3px 6px;
    border-radius: var(--r-full);
    white-space: nowrap;
}

.plan-tag.tag-monthly { background: #FFF3DE; color: var(--warning); }
.plan-tag.tag-gifting { background: #FCE9F3; color: #C23B8C; }
.plan-tag.tag-share { background: var(--info-bg); color: var(--info); }
.plan-tag.tag-sme { background: var(--surface); color: var(--text-muted); }

.plan-body { flex: 1; }

.plan-size {
    font-size: 16px;
    font-weight: 800;
    color: var(--ink);
    letter-spacing: -0.01em;
    line-height: 1.15;
}

.plan-name-full {
    font-size: 10px;
    color: var(--text-faint);
    margin-top: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.plan-validity {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 10.5px;
    font-weight: 600;
    color: var(--text-muted);
    margin-top: 4px;
}

.plan-validity svg { width: 11px; height: 11px; flex-shrink: 0; }

.plan-price-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding-top: 6px;
    border-top: 1px dashed var(--border);
}

.plan-price {
    font-size: 14.5px;
    font-weight: 800;
    color: var(--ink);
    font-family: var(--font-mono);
}

.plan-actions {
    display: flex;
    align-items: center;
    gap: 5px;
}

.plan-icon-btn {
    width: 24px;
    height: 24px;
    border-radius: var(--r-sm);
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s;
    flex-shrink: 0;
}

.plan-icon-btn svg { width: 12px; height: 12px; }

.plan-icon-btn:hover { color: var(--ink); background: var(--surface-alt); border-color: var(--border-strong); transform: translateY(-1px); }
.plan-icon-btn.gift-btn:hover { color: var(--warning); border-color: #F0DFA3; }
.plan-icon-btn.share-btn:hover { color: var(--info); border-color: #C4D8FB; }

.plan-buy-btn {
    flex: 1;
    padding: 6px 8px;
    font-size: 11px;
    border-radius: var(--r-sm);
}

@media (max-width: 460px) {
    .plan-size { font-size: 15px; }
    .plan-price { font-size: 13px; }
}

@media (max-width: 480px) {
    .plan-card { padding: 8px 7px 7px; gap: 6px; border-radius: var(--r-sm); }
    .plan-card-head { gap: 4px; }
    .plan-icon { width: 22px; height: 22px; }
    .plan-icon svg { width: 11px; height: 11px; }
    .plan-tag { font-size: 7.5px; padding: 2px 5px; letter-spacing: 0.01em; }
    .plan-size { font-size: 13px; }
    .plan-name-full { font-size: 8.5px; }
    .plan-validity { font-size: 8.5px; gap: 2px; margin-top: 2px; }
    .plan-validity svg { width: 8px; height: 8px; }
    .plan-price-row { padding-top: 5px; }
    .plan-price { font-size: 12px; }
    .plan-actions { flex-wrap: wrap; gap: 4px; }
    .plan-icon-btn { width: 20px; height: 20px; }
    .plan-icon-btn svg { width: 10px; height: 10px; }
    .plan-buy-btn { flex-basis: 100%; order: 3; padding: 5px 6px; font-size: 10px; }
}

/* ---------- Empty state ---------- */

.empty-state {
    text-align: center;
    padding: 48px 20px;
    color: var(--text-faint);
    font-size: 13.5px;
}

/* ---------- Modal ---------- */

.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(11, 13, 18, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    transform: translateZ(0); /* forces its own compositing layer so mobile browsers paint it reliably on show */
    -webkit-transform: translateZ(0);
}

.modal-overlay.active { display: flex; }

.modal-box {
    background: var(--surface-alt);
    border-radius: var(--r-lg);
    padding: 26px;
    max-width: 460px;
    width: 100%;
    box-shadow: var(--shadow-lg);
    max-height: 90vh;
    overflow-y: auto;
}

.modal-title { font-size: 17px; font-weight: 700; margin-bottom: 18px; }
.modal-actions { display: flex; gap: 10px; margin-top: 20px; }
.modal-actions .btn { flex: 1; }

/* ---------- Tabs ---------- */

.tabs {
    display: flex;
    gap: 4px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 4px;
    margin-bottom: 22px;
    width: fit-content;
}

.tab-btn {
    padding: 8px 18px;
    border-radius: var(--r-sm);
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.15s;
}

.tab-btn.active { background: var(--surface-alt); color: var(--ink); box-shadow: var(--shadow-sm); }

.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ---------- Filter bar ---------- */

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

.filter-bar input, .filter-bar select { width: auto; min-width: 140px; }

/* ---------- Pagination ---------- */

.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 22px; }

.pagination a, .pagination span {
    padding: 7px 13px;
    border-radius: var(--r-sm);
    border: 1px solid var(--border);
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text);
}

.pagination a:hover { background: var(--surface); }
.pagination .active { background: var(--ink); border-color: var(--ink); color: white; }

/* ---------- Utility ---------- */

.text-success { color: var(--success) !important; }
.text-error { color: var(--error) !important; }
.text-muted { color: var(--text-muted) !important; }
.text-right { text-align: right; }
.font-mono { font-family: var(--font-mono); }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }

@media (max-width: 640px) {
    .field-row { grid-template-columns: 1fr; }
    .page-head { align-items: flex-start; }
}

/* ==========================================================================
   Customer app shell — sidebar (desktop) + bottom tab bar (mobile)
   ========================================================================== */

.customer-shell {
    display: grid;
    grid-template-columns: 240px 1fr;
    min-height: 100vh;
}

.customer-sidebar {
    background: var(--ink);
    color: rgba(255,255,255,0.86);
    padding: 20px 14px 18px;
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.customer-sidebar-top { padding: 4px 8px 22px; }
.customer-sidebar .brand { color: white; }

.customer-nav { display: flex; flex-direction: column; gap: 2px; }

.customer-nav-link {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 12px;
    border-radius: var(--r-md);
    font-size: 13.5px;
    font-weight: 600;
    color: rgba(255,255,255,0.62);
    transition: all 0.15s;
}

.customer-nav-link .nav-icon { width: 18px; height: 18px; flex-shrink: 0; }
.customer-nav-link:hover { background: rgba(255,255,255,0.07); color: white; }
.customer-nav-link.active { background: var(--brand); color: var(--ink); }

.customer-nav-spacer { flex: 1; }

.sidebar-balance {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--r-md);
    padding: 14px;
    margin: 10px 2px;
}
.sidebar-balance-label { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 700; opacity: 0.55; margin-bottom: 6px; }
.sidebar-balance-amount { font-size: 18px; font-weight: 800; color: var(--brand); margin-bottom: 10px; letter-spacing: -0.01em; }

.customer-sidebar-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 8px 4px;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 4px;
}
.customer-sidebar-user-name { font-size: 13px; font-weight: 700; color: white; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.customer-main { padding: 30px 34px 60px; min-width: 0; }

.customer-topbar-mobile { display: none; }

.icon-btn {
    width: 32px; height: 32px; border-radius: var(--r-sm);
    display: flex; align-items: center; justify-content: center;
    background: transparent; border: none; cursor: pointer; color: inherit; opacity: 0.7;
    transition: all 0.15s; flex-shrink: 0;
}
.icon-btn svg { width: 17px; height: 17px; }
.icon-btn:hover { opacity: 1; background: rgba(255,255,255,0.08); }
.customer-topbar-mobile .icon-btn:hover, .customer-sidebar-user .icon-btn:hover { background: rgba(255,255,255,0.1); }

.avatar {
    border-radius: 50%; background: var(--brand); color: var(--ink);
    display: flex; align-items: center; justify-content: center; font-weight: 800; flex-shrink: 0;
}
.avatar-sm { width: 30px; height: 30px; font-size: 12.5px; }

.bottom-nav { display: none; }

@media (max-width: 860px) {
    .customer-shell { grid-template-columns: 1fr; }
    .customer-sidebar { display: none; }

    .customer-topbar-mobile {
        display: flex;
        justify-content: space-between;
        align-items: center;
        background: var(--surface-alt);
        border-bottom: 1px solid var(--border);
        padding: 12px 16px;
        position: sticky;
        top: 0;
        z-index: 100;
    }
    .customer-topbar-mobile-right { display: flex; align-items: center; gap: 10px; }
    .topbar-balance-chip {
        background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-full);
        padding: 5px 12px; font-size: 12px; font-weight: 700; color: var(--ink);
    }
    .customer-topbar-mobile .icon-btn { color: var(--text-muted); }

    .customer-main { padding: 20px 16px 90px; }

    .bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0; left: 0; right: 0;
        background: var(--surface-alt);
        border-top: 1px solid var(--border);
        padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
        z-index: 100;
        box-shadow: 0 -2px 12px rgba(16,18,27,0.06);
    }
    .bottom-nav-link {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 3px;
        padding: 6px 2px;
        border-radius: var(--r-sm);
        color: var(--text-faint);
        font-size: 10.5px;
        font-weight: 700;
    }
    .bottom-nav-link svg { width: 20px; height: 20px; }
    .bottom-nav-link.active { color: var(--ink); }
    .bottom-nav-link.active svg { color: var(--brand-dark); stroke-width: 2.4; }
}

/* ---------- Modern balance card (gradient, used on dashboard/profile) ---------- */

.balance-card {
    background: var(--ink);
    background-image: radial-gradient(circle at 90% 0%, rgba(255,205,0,0.14), transparent 55%),
                       radial-gradient(circle at 0% 100%, rgba(255,255,255,0.05), transparent 45%);
    color: white;
    padding: 26px 28px;
    border-radius: var(--r-lg);
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}
.balance-label { font-size: 12px; opacity: 0.65; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 700; margin-bottom: 8px; }
.balance-amount { font-size: 38px; font-weight: 800; color: var(--brand); margin-bottom: 20px; letter-spacing: -0.02em; }
.balance-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.balance-actions .btn-outline { background: rgba(255,255,255,0.07); color: white; border-color: rgba(255,255,255,0.18); }
.balance-actions .btn-outline:hover { background: rgba(255,255,255,0.13); }

/* ---------- Animated alerts ---------- */

@keyframes alert-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
.alert { animation: alert-in 0.25s ease-out; }

/* ---------- Skeleton / loading shimmer (optional use) ---------- */

@keyframes shimmer { 0% { background-position: -200px 0; } 100% { background-position: calc(200px + 100%) 0; } }
.skeleton {
    background: linear-gradient(90deg, var(--surface) 25%, var(--border) 37%, var(--surface) 63%);
    background-size: 400% 100%;
    animation: shimmer 1.4s ease infinite;
    border-radius: var(--r-sm);
}

/* ==========================================================================
   Landing page (index.php) — header, hero, features, footer
   ========================================================================== */

.lp-header {
    background: var(--ink);
    position: sticky;
    top: 0;
    z-index: 200;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.lp-header-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.lp-brand { display: flex; align-items: center; gap: 10px; color: white; font-weight: 800; font-size: 17px; }
.lp-brand-mark {
    width: 36px; height: 36px; border-radius: var(--r-md);
    background: var(--brand); color: var(--ink);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.lp-nav { display: flex; align-items: center; gap: 6px; }
.lp-nav a {
    color: rgba(255,255,255,0.72); font-size: 13.5px; font-weight: 600;
    padding: 8px 14px; border-radius: var(--r-sm); transition: all 0.15s;
}
.lp-nav a:hover { color: white; background: rgba(255,255,255,0.08); }
.lp-header-actions { display: flex; align-items: center; gap: 10px; }
.lp-header-actions .btn-outline { background: transparent; color: white; border-color: rgba(255,255,255,0.25); }
.lp-header-actions .btn-outline:hover { background: rgba(255,255,255,0.08); }
.lp-nav-toggle { display: none; background: none; border: none; color: white; cursor: pointer; padding: 6px; }

/* Hero */
.lp-hero {
    background: var(--ink);
    background-image: radial-gradient(circle at 15% 10%, rgba(255,205,0,0.14), transparent 45%),
                       radial-gradient(circle at 90% 30%, rgba(255,205,0,0.08), transparent 40%);
    color: white;
    padding: 70px 24px 90px;
    position: relative;
    overflow: hidden;
}
.lp-hero-inner {
    max-width: 1180px; margin: 0 auto;
    display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center;
}
.lp-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255,205,0,0.12); color: var(--brand);
    border: 1px solid rgba(255,205,0,0.25);
    font-size: 12px; font-weight: 700; letter-spacing: 0.02em;
    padding: 6px 12px; border-radius: var(--r-full); margin-bottom: 20px;
}
.lp-hero h1 { font-size: 42px; line-height: 1.14; letter-spacing: -0.02em; margin-bottom: 18px; }
.lp-hero h1 span { color: var(--brand); }
.lp-hero p.lp-lead { font-size: 16px; line-height: 1.6; color: rgba(255,255,255,0.72); max-width: 480px; margin-bottom: 30px; }
.lp-hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 36px; }
.lp-hero-ctas .btn { padding: 13px 24px; font-size: 14.5px; }
.lp-hero-ctas .btn-outline { background: transparent; color: white; border-color: rgba(255,255,255,0.25); }
.lp-hero-ctas .btn-outline:hover { background: rgba(255,255,255,0.08); }
.lp-hero-stats { display: flex; gap: 30px; flex-wrap: wrap; }
.lp-hero-stat-num { font-size: 22px; font-weight: 800; color: var(--brand); }
.lp-hero-stat-label { font-size: 12px; color: rgba(255,255,255,0.6); margin-top: 2px; }
.lp-hero-art { position: relative; }
.lp-hero-art svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 20px 50px rgba(0,0,0,0.45)); }

/* Trust / logo band */
.lp-trust {
    background: var(--surface-alt); border-bottom: 1px solid var(--border);
    padding: 18px 24px;
}
.lp-trust-inner {
    max-width: 1180px; margin: 0 auto;
    display: flex; align-items: center; justify-content: center; gap: 34px; flex-wrap: wrap;
    color: var(--text-muted); font-size: 13px; font-weight: 600;
}
.lp-trust-inner span { display: flex; align-items: center; gap: 8px; }
.lp-trust-inner svg { color: var(--success); flex-shrink: 0; }

/* Generic section */
.lp-section { padding: 76px 24px; }
.lp-section-inner { max-width: 1180px; margin: 0 auto; }
.lp-section-head { text-align: center; max-width: 620px; margin: 0 auto 48px; }
.lp-kicker { font-size: 12.5px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--brand-dark); margin-bottom: 10px; }
.lp-section-head h2 { font-size: 30px; letter-spacing: -0.01em; margin-bottom: 12px; }
.lp-section-head p { color: var(--text-muted); font-size: 15px; line-height: 1.6; }

/* Feature grid */
.lp-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.lp-feature-card {
    background: var(--surface-alt); border: 1px solid var(--border); border-radius: var(--r-lg);
    padding: 26px; transition: transform 0.18s, box-shadow 0.18s;
}
.lp-feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.lp-feature-icon {
    width: 46px; height: 46px; border-radius: var(--r-md);
    background: rgba(255,205,0,0.15); color: var(--brand-dark);
    display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.lp-feature-card h3 { font-size: 16px; margin-bottom: 8px; }
.lp-feature-card p { font-size: 13.5px; color: var(--text-muted); line-height: 1.55; }

/* How it works */
.lp-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; position: relative; }
.lp-step { text-align: center; padding: 0 12px; }
.lp-step-num {
    width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: var(--brand);
    display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 16px;
    margin: 0 auto 16px;
}
.lp-step h3 { font-size: 16px; margin-bottom: 8px; }
.lp-step p { font-size: 13.5px; color: var(--text-muted); line-height: 1.55; max-width: 260px; margin: 0 auto; }

/* Discount / pricing callout */
.lp-band {
    background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.lp-band-inner {
    max-width: 1180px; margin: 0 auto; padding: 60px 24px;
    display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
}
.lp-band h2 { font-size: 26px; margin-bottom: 14px; letter-spacing: -0.01em; }
.lp-band p { color: var(--text-muted); font-size: 14.5px; line-height: 1.6; margin-bottom: 18px; }
.lp-band ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.lp-band ul li { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--text); }
.lp-band ul li svg { color: var(--success); flex-shrink: 0; }
.lp-price-card {
    background: var(--ink); border-radius: var(--r-lg); padding: 30px; color: white; text-align: center;
    box-shadow: var(--shadow-lg);
}
.lp-price-card .lp-price-big { font-size: 44px; font-weight: 800; color: var(--brand); letter-spacing: -0.02em; }
.lp-price-card .lp-price-sub { font-size: 13px; color: rgba(255,255,255,0.65); margin-top: 4px; margin-bottom: 22px; }

/* CTA banner */
.lp-cta {
    background: var(--brand);
    padding: 56px 24px;
}
.lp-cta-inner {
    max-width: 820px; margin: 0 auto; text-align: center;
}
.lp-cta h2 { font-size: 28px; color: var(--ink); margin-bottom: 10px; letter-spacing: -0.01em; }
.lp-cta p { color: rgba(11,13,18,0.75); font-size: 15px; margin-bottom: 26px; }
.lp-cta .btn-dark { padding: 13px 26px; font-size: 14.5px; }

/* Footer */
.lp-footer { background: var(--ink); color: rgba(255,255,255,0.6); padding: 56px 24px 26px; }
.lp-footer-inner { max-width: 1180px; margin: 0 auto; }
.lp-footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 40px; }
.lp-footer-brand { display: flex; align-items: center; gap: 10px; color: white; font-weight: 800; font-size: 16px; margin-bottom: 12px; }
.lp-footer-desc { font-size: 13.5px; line-height: 1.6; max-width: 280px; }
.lp-footer-col h4 { color: white; font-size: 13px; font-weight: 700; margin-bottom: 14px; letter-spacing: 0.01em; }
.lp-footer-col a { display: block; color: rgba(255,255,255,0.6); font-size: 13.5px; margin-bottom: 10px; transition: color 0.15s; }
.lp-footer-col a:hover { color: var(--brand); }
.lp-footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08); padding-top: 22px;
    display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
    font-size: 12.5px; color: rgba(255,255,255,0.45);
}

/* Auth modal (landing page sign in / register) */
.lp-auth-modal .modal-box { max-width: 420px; padding: 0; overflow-y: auto; overflow-x: hidden; max-height: 90vh; }
.lp-auth-head { background: var(--brand); padding: 26px 26px 20px; text-align: center; position: relative; }
.lp-auth-head .lp-auth-close {
    position: absolute; top: 14px; right: 14px; background: rgba(11,13,18,0.1); border: none;
    width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    color: var(--ink); cursor: pointer; font-size: 15px; line-height: 1;
}
.lp-auth-head .lp-auth-close:hover { background: rgba(11,13,18,0.18); }
.lp-auth-logo { color: var(--ink); margin-bottom: 8px; }
.lp-auth-wordmark { font-size: 18px; font-weight: 800; color: var(--ink); }
.lp-auth-tabs { display: flex; background: var(--surface); border-bottom: 1px solid var(--border); }
.lp-auth-tab {
    flex: 1; text-align: center; padding: 13px; font-size: 13.5px; font-weight: 700; color: var(--text-muted);
    cursor: pointer; border-bottom: 2px solid transparent; background: none; border-top: none; border-left: none; border-right: none;
}
.lp-auth-tab.active { color: var(--ink); border-bottom-color: var(--brand); background: var(--surface-alt); }
.lp-auth-body { padding: 26px; }

/* Mobile */
@media (max-width: 900px) {
    .lp-hero-inner { grid-template-columns: 1fr; }
    .lp-hero-art { order: -1; max-width: 320px; margin: 0 auto; }
    .lp-hero h1 { font-size: 32px; }
    .lp-features { grid-template-columns: 1fr 1fr; }
    .lp-steps { grid-template-columns: 1fr; gap: 36px; }
    .lp-band-inner { grid-template-columns: 1fr; }
    .lp-footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .lp-nav { display: none; }
    .lp-features { grid-template-columns: 1fr; }
    .lp-footer-top { grid-template-columns: 1fr; }
    .lp-header-actions .btn-sm { padding: 8px 12px; font-size: 12px; }
}

/* ==========================================================================
   Admin shell upgrade — branding, icon nav, topbar profile chip
   ========================================================================== */

.admin-sidebar {
    background: linear-gradient(180deg, #14171F 0%, #0B0D12 100%);
}

.admin-sidebar-brand {
    padding: 10px 10px 22px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    margin-bottom: 18px;
}
.admin-brand-name { font-size: 14.5px; font-weight: 800; color: white; line-height: 1.3; }
.admin-brand-tag { font-size: 10.5px; font-weight: 700; color: var(--brand); text-transform: uppercase; letter-spacing: 0.05em; margin-top: 2px; }

.admin-nav-section-label {
    font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em;
    color: rgba(255,255,255,0.32); padding: 14px 12px 8px;
}

.admin-nav-link { position: relative; }
.admin-nav-link svg { flex-shrink: 0; opacity: 0.85; }
.admin-nav-link.active svg { opacity: 1; }
.admin-nav-link.active {
    box-shadow: 0 4px 14px rgba(255,205,0,0.22);
}
.admin-nav-link:not(.active):not(.admin-nav-logout):not(.admin-nav-viewsite):hover svg { opacity: 1; }

.admin-nav-viewsite {
    color: rgba(255,255,255,0.5) !important;
    border: 1px dashed rgba(255,255,255,0.15);
    margin-bottom: 8px;
}
.admin-nav-viewsite:hover { color: white !important; border-color: rgba(255,255,255,0.3); background: rgba(255,255,255,0.05); }

.admin-nav-logout { color: rgba(226,72,61,0.75) !important; }
.admin-nav-logout:hover { background: rgba(226,72,61,0.12) !important; color: #FF8079 !important; }

/* Topbar profile chip */
.admin-topbar { padding: 14px 30px; gap: 16px; }
.admin-topbar h1 { font-size: 18px; letter-spacing: -0.01em; }

.admin-user-chip {
    display: flex; align-items: center; gap: 10px;
    padding: 6px 12px 6px 6px; border-radius: var(--r-full);
    background: var(--surface); border: 1px solid var(--border);
}
.admin-avatar {
    width: 32px; height: 32px; border-radius: 50%;
    background: var(--ink); color: var(--brand);
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 800; flex-shrink: 0;
}
.admin-user-name { font-size: 12.5px; font-weight: 700; color: var(--ink); line-height: 1.3; }
.admin-user-role { font-size: 10.5px; color: var(--text-faint); font-weight: 600; }

/* Stat cards with icon slot */
.stat-card { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.stat-card-icon {
    width: 36px; height: 36px; border-radius: var(--r-md);
    background: rgba(255,205,0,0.14); color: var(--brand-dark);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.stat-card.stat--success .stat-card-icon { background: var(--success-bg); color: var(--success); }
.stat-card.stat--error .stat-card-icon { background: var(--error-bg); color: var(--error); }
.stat-card.stat--info .stat-card-icon { background: var(--info-bg); color: var(--info); }
.stat-card.stat--warning .stat-card-icon { background: var(--warning-bg); color: var(--warning); }

@media (max-width: 860px) {
    .admin-user-role { display: none; }
}
