/* ============================================================
   Slimpay — Main Stylesheet
   Brand: #1A7A3C (green), NeurialGrotesk font
   ============================================================ */

@import url('font.css');

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --green:        #1A7A3C;
    --green-dark:   #145f2e;
    --green-light:  #E8F5ED;
    --green-mid:    #2D9B5A;
    --green-pale:   #f0faf4;
    --text:         #1A1A1A;
    --text-mid:     #4B5563;
    --text-light:   #9CA3AF;
    --border:       #E5E7EB;
    --bg:           #F7F9FB;
    --white:        #FFFFFF;
    --red:          #EF4444;
    --red-light:    #FEF2F2;
    --orange:       #F97316;
    --sidebar-w:    260px;
    --header-h:     68px;
    --radius:       12px;
    --radius-sm:    8px;
    --shadow:       0 1px 4px rgba(0,0,0,0.08), 0 4px 20px rgba(0,0,0,0.04);
    --shadow-md:    0 4px 16px rgba(0,0,0,0.12);
    --transition:   0.2s ease;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 300;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

a { text-decoration: none; color: var(--green); }
a:hover { color: var(--green-dark); }
img { max-width: 100%; display: block; }
input, select, textarea, button { font-family: inherit; }

/* ── Scrollbar ────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 10px; }

/* ── Typography ───────────────────────────────────────────── */
h1, h2, h3, h4, h5 { font-weight: 500; line-height: 1.3; }
h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.2rem; }
h4 { font-size: 1rem; }
.logo { font-size: 1.8rem; font-weight: 600; color: var(--green); letter-spacing: -0.5px; }

/* ── Utility ──────────────────────────────────────────────── */
.flex   { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.w-full { width: 100%; }
.text-green { color: var(--green); }
.text-red { color: var(--red); }
.text-mid { color: var(--text-mid); }
.text-light { color: var(--text-light); }
.font-bold { font-weight: 500; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.p-4 { padding: 1rem; }
.hidden { display: none !important; }

/* ── Layout ───────────────────────────────────────────────── */
.app-layout {
    display: flex;
    min-height: 100vh;
}

/* ── Sidebar ──────────────────────────────────────────────── */
.sidebar {
    width: var(--sidebar-w);
    background: var(--white);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; bottom: 0;
    z-index: 200;
    transition: transform var(--transition);
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar-logo {
    padding: 1.5rem 1.5rem 1rem;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.sidebar-logo .logo { font-size: 1.6rem; }

.sidebar-nav {
    flex: 1;
    padding: 1rem 0;
}

.nav-section-label {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-light);
    padding: 0.75rem 1.5rem 0.25rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.72rem 1.5rem;
    color: var(--text-mid);
    font-size: 0.9rem;
    font-weight: 300;
    border-radius: 0;
    transition: all var(--transition);
    position: relative;
    cursor: pointer;
}

.nav-item svg { width: 18px; height: 18px; flex-shrink: 0; opacity: 0.7; }

.nav-item:hover {
    background: var(--green-light);
    color: var(--green);
}

.nav-item:hover svg { opacity: 1; }

.nav-item.active {
    background: var(--green-light);
    color: var(--green);
    font-weight: 400;
}

.nav-item.active svg { opacity: 1; }

.nav-item.active::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: var(--green);
    border-radius: 0 4px 4px 0;
}

.sidebar-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border);
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--green-light);
    border: 2px solid var(--green);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--green);
    overflow: hidden;
    flex-shrink: 0;
}

.user-avatar img { width: 100%; height: 100%; object-fit: cover; }

.user-name { font-size: 0.85rem; font-weight: 400; color: var(--text); }
.user-email { font-size: 0.72rem; color: var(--text-light); }

/* ── Main Content ─────────────────────────────────────────── */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-w);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ── Top Header ───────────────────────────────────────────── */
.topbar {
    height: var(--header-h);
    background: var(--white);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.75rem;
    position: sticky;
    top: 0;
    z-index: 100;
    gap: 1rem;
}

.topbar-left { display: flex; align-items: center; gap: 1rem; }

.page-title {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text);
}

.topbar-search {
    display: flex;
    align-items: center;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.5rem 0.9rem;
    gap: 0.5rem;
    min-width: 240px;
    transition: border-color var(--transition);
}

.topbar-search:focus-within { border-color: var(--green); }

.topbar-search svg { width: 16px; height: 16px; color: var(--text-light); flex-shrink: 0; }

.topbar-search input {
    border: none;
    background: transparent;
    font-size: 0.875rem;
    color: var(--text);
    width: 100%;
    outline: none;
}

.topbar-search input::placeholder { color: var(--text-light); }

.topbar-right { display: flex; align-items: center; gap: 0.75rem; }

.icon-btn {
    width: 38px; height: 38px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--white);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: all var(--transition);
    position: relative;
}

.icon-btn:hover { background: var(--green-light); border-color: var(--green); }
.icon-btn svg { width: 18px; height: 18px; color: var(--text-mid); }

.notif-dot {
    position: absolute;
    top: 7px; right: 7px;
    width: 8px; height: 8px;
    background: var(--red);
    border-radius: 50%;
    border: 2px solid white;
}

.menu-btn { display: none; }

/* ── Page Content ─────────────────────────────────────────── */
.page-content {
    flex: 1;
    padding: 1.75rem;
    max-width: 1200px;
    width: 100%;
}

/* ── Cards ────────────────────────────────────────────────── */
.card {
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
}

.card-title { font-size: 0.95rem; font-weight: 500; }
.card-body { padding: 1.5rem; }

/* ── Wallet Balance Card ──────────────────────────────────── */
.wallet-card {
    background: linear-gradient(135deg, var(--green) 0%, var(--green-mid) 60%, #3db870 100%);
    border-radius: var(--radius);
    padding: 1.75rem;
    color: white;
    position: relative;
    overflow: hidden;
}

.wallet-card::before {
    content: '';
    position: absolute;
    top: -40px; right: -40px;
    width: 180px; height: 180px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
}

.wallet-card::after {
    content: '';
    position: absolute;
    bottom: -60px; right: 40px;
    width: 220px; height: 220px;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
}

.wallet-label { font-size: 0.8rem; opacity: 0.8; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 0.4rem; }
.wallet-balance { font-size: 2.2rem; font-weight: 600; letter-spacing: -0.5px; margin-bottom: 1.25rem; }

.wallet-bank {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255,255,255,0.15);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    backdrop-filter: blur(6px);
}

.wallet-bank-icon {
    width: 36px; height: 36px;
    background: rgba(255,255,255,0.25);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
}

.wallet-bank-icon svg { width: 18px; height: 18px; color: white; }
.wallet-bank-info { flex: 1; }
.wallet-bank-name { font-size: 0.7rem; opacity: 0.8; }
.wallet-bank-number { font-size: 0.95rem; font-weight: 500; letter-spacing: 0.05em; }

.copy-btn {
    background: none; border: none; cursor: pointer;
    color: white; opacity: 0.7;
    transition: opacity var(--transition);
    padding: 0.25rem;
}
.copy-btn:hover { opacity: 1; }
.copy-btn svg { width: 15px; height: 15px; }

/* ── Quick Actions / Shortcuts ────────────────────────────── */
.shortcuts-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.75rem;
}

.shortcut-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 0.5rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    color: var(--text-mid);
    font-size: 0.8rem;
    text-align: center;
}

.shortcut-btn:hover {
    border-color: var(--green);
    background: var(--green-pale);
    color: var(--green);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.shortcut-icon {
    width: 44px; height: 44px;
    border-radius: 12px;
    background: var(--green-light);
    display: flex; align-items: center; justify-content: center;
}

.shortcut-icon svg { width: 22px; height: 22px; color: var(--green); }

/* ── Section Header ───────────────────────────────────────── */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.section-title { font-size: 1rem; font-weight: 500; }

.view-all-link {
    font-size: 0.825rem;
    color: var(--green);
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.view-all-link svg { width: 14px; height: 14px; }

/* ── Transaction List ─────────────────────────────────────── */
.txn-list { display: flex; flex-direction: column; }

.txn-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.9rem 1.5rem;
    border-bottom: 1px solid var(--border);
    transition: background var(--transition);
}

.txn-item:last-child { border-bottom: none; }
.txn-item:hover { background: var(--bg); }

.txn-icon {
    width: 42px; height: 42px;
    border-radius: 12px;
    background: var(--green-light);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}

.txn-icon svg { width: 20px; height: 20px; color: var(--green); }
.txn-icon.debit { background: var(--red-light); }
.txn-icon.debit svg { color: var(--red); }

.txn-info { flex: 1; min-width: 0; }
.txn-desc { font-size: 0.875rem; font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.txn-date { font-size: 0.75rem; color: var(--text-light); margin-top: 0.1rem; }

.txn-right { text-align: right; }
.txn-amount { font-size: 0.9rem; font-weight: 500; }
.txn-amount.credit { color: var(--green); }
.txn-amount.debit  { color: var(--red); }

.badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.7rem;
    font-weight: 400;
    padding: 0.15rem 0.6rem;
    border-radius: 20px;
    margin-top: 0.2rem;
}

.badge-success { background: var(--green-light); color: var(--green); }
.badge-pending { background: #FFF7ED; color: var(--orange); }
.badge-error   { background: var(--red-light); color: var(--red); }

/* ── Forms ────────────────────────────────────────────────── */
.form-box {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 1.1rem;
}

.form-box label {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text-mid);
}

.form-box input,
.form-box select,
.form-box textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    color: var(--text);
    background: var(--white);
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
    appearance: none;
}

.form-box input:focus,
.form-box select:focus,
.form-box textarea:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(26, 122, 60, 0.1);
}

.form-box input.error,
.form-box select.error { border-color: var(--red); }

.field-error { font-size: 0.775rem; color: var(--red); }

.form-box select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239CA3AF' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2.5rem;
}

/* Network tab selector */
.network-tabs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.network-tab {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.9rem;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.82rem;
    transition: all var(--transition);
    background: var(--white);
}

.network-tab:hover { border-color: var(--green); }
.network-tab.active { border-color: var(--green); background: var(--green-light); color: var(--green); font-weight: 400; }
.network-tab img { width: 22px; height: 22px; border-radius: 4px; }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 400;
    cursor: pointer;
    transition: all var(--transition);
    border: none;
    line-height: 1;
    white-space: nowrap;
}

.btn-primary {
    background: var(--green);
    color: white;
}

.btn-primary:hover { background: var(--green-dark); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(26,122,60,0.3); }
.btn-primary:active { transform: translateY(0); }

.btn-outline {
    background: transparent;
    color: var(--green);
    border: 1.5px solid var(--green);
}

.btn-outline:hover { background: var(--green-light); }

.btn-ghost {
    background: transparent;
    color: var(--text-mid);
    border: 1.5px solid var(--border);
}

.btn-ghost:hover { background: var(--bg); }

.btn-danger {
    background: var(--red);
    color: white;
}

.btn-danger:hover { background: #dc2626; }

.btn-full { width: 100%; }
.btn-lg { padding: 0.9rem 2rem; font-size: 1rem; }
.btn-sm { padding: 0.45rem 0.9rem; font-size: 0.8rem; }

.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none !important; box-shadow: none !important; }

/* ── Auth pages ───────────────────────────────────────────── */
.auth2__container {
    display: flex;
    min-height: 100vh;
    background: var(--bg);
}

.auth2__form {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem;
    max-width: 520px;
}

.auth2__form .logo { margin-bottom: 2.5rem; font-size: 2rem; }

.auth2__form__text { margin-bottom: 2rem; }
.auth2__form__text h3 { font-size: 1.6rem; font-weight: 500; margin-bottom: 0.4rem; }
.auth2__form__text p  { color: var(--text-light); font-size: 0.95rem; }

.auth__btn {
    width: 100%;
    padding: 0.9rem;
    background: var(--green);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 400;
    cursor: pointer;
    transition: all var(--transition);
    margin-top: 0.5rem;
    font-family: inherit;
}

.auth__btn:hover { background: var(--green-dark); box-shadow: 0 4px 16px rgba(26,122,60,0.25); transform: translateY(-1px); }

.auth__disclaimer {
    display: block;
    font-size: 0.825rem;
    color: var(--text-light);
    margin-bottom: 0.75rem;
}

.auth__disclaimer a { color: var(--green); font-weight: 400; }

.auth2__ads {
    flex: 1;
    background: linear-gradient(145deg, var(--green) 0%, #3aac67 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.auth2__ads::before {
    content: '';
    position: absolute;
    top: -100px; right: -100px;
    width: 400px; height: 400px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
}

.auth2__ads figure {
    position: relative;
    z-index: 1;
    text-align: center;
}

.auth2__ads__text {
    color: white;
    text-align: center;
    position: relative;
    z-index: 1;
    margin-bottom: 2rem;
}

.auth2__ads__text h2 { font-size: 1.8rem; font-weight: 600; margin-bottom: 0.75rem; }
.auth2__ads__text p  { opacity: 0.85; font-size: 1rem; }

/* ── PIN Input ────────────────────────────────────────────── */
.pin-container {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    margin: 1.5rem 0;
}

.pin-input {
    width: 52px; height: 56px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    text-align: center;
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text);
    outline: none;
    transition: border-color var(--transition);
    background: var(--bg);
}

.pin-input:focus { border-color: var(--green); background: white; box-shadow: 0 0 0 3px rgba(26,122,60,0.1); }
.pin-input.filled { border-color: var(--green); background: var(--green-light); }

/* ── Modal ────────────────────────────────────────────────── */
.modal__overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(3px);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.modal__overlay.is-open { opacity: 1; }

.modal__container {
    background: var(--white);
    border-radius: var(--radius) var(--radius) 0 0;
    width: 100%;
    max-width: 480px;
    max-height: 95vh;
    overflow-y: auto;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
    padding-bottom: 2rem;
}

.modal__overlay.is-open .modal__container { transform: translateY(0); }

.modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    background: white;
    z-index: 1;
}

.modal__title { font-size: 1rem; font-weight: 500; }

.modal__close {
    width: 32px; height: 32px;
    border-radius: 50%;
    border: 1.5px solid var(--border);
    background: none;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all var(--transition);
}

.modal__close:hover { background: var(--bg); }
.modal__close svg { width: 16px; height: 16px; }

.modal__content { padding: 1.5rem; }

/* ── Confirm transaction modal ────────────────────────────── */
.confirm-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.875rem;
}

.confirm-row:last-child { border-bottom: none; }
.confirm-row .label { color: var(--text-light); }
.confirm-row .value { font-weight: 400; color: var(--text); }
.confirm-row .value.amount { font-size: 1.1rem; font-weight: 500; color: var(--green); }

/* ── Success Screen ───────────────────────────────────────── */
.success-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2.5rem 1.5rem;
}

.success-icon {
    width: 80px; height: 80px;
    border-radius: 50%;
    background: var(--green-light);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1.25rem;
    animation: scaleIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.success-icon svg { width: 40px; height: 40px; color: var(--green); }

@keyframes scaleIn {
    from { transform: scale(0); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}

.success-title { font-size: 1.2rem; font-weight: 500; margin-bottom: 0.4rem; }
.success-sub { color: var(--text-light); font-size: 0.875rem; margin-bottom: 1.5rem; }
.txn-id-tag {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.6rem 1.2rem;
    font-size: 0.8rem;
    color: var(--text-mid);
    margin-bottom: 2rem;
    font-family: monospace;
}

/* ── Billers grid ─────────────────────────────────────────── */
.billers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}

.biller-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.biller-card:hover {
    border-color: var(--green);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.biller-logo {
    width: 48px; height: 48px;
    border-radius: 10px;
    background: var(--green-light);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--green);
}

.biller-logo img { width: 100%; height: 100%; object-fit: cover; }

.biller-info { min-width: 0; }
.biller-name { font-size: 0.875rem; font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.biller-desc { font-size: 0.75rem; color: var(--text-light); margin-top: 0.15rem; }

/* ── School cards ─────────────────────────────────────────── */
.schools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
}

.school-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    transition: all var(--transition);
}

.school-card:hover {
    border-color: var(--green);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.school-card-header {
    background: var(--green-light);
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.school-logo {
    width: 52px; height: 52px;
    border-radius: 10px;
    background: var(--white);
    border: 2px solid var(--green);
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem; font-weight: 600;
    color: var(--green);
    overflow: hidden;
    flex-shrink: 0;
}

.school-logo img { width: 100%; height: 100%; object-fit: cover; }

.school-card-body { padding: 1rem 1.25rem 1.25rem; }

.school-type-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    background: var(--green-light);
    color: var(--green);
    text-transform: capitalize;
    margin-bottom: 0.5rem;
}

.star-rating {
    display: flex; align-items: center; gap: 0.25rem;
    font-size: 0.78rem; color: var(--text-light);
}

.star-rating svg { width: 12px; height: 12px; color: #F59E0B; fill: currentColor; }

/* ── Stats row ────────────────────────────────────────────── */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.stat-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
}

.stat-label { font-size: 0.78rem; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.5rem; }
.stat-value { font-size: 1.5rem; font-weight: 600; color: var(--text); }
.stat-value.green { color: var(--green); }

/* ── Virtual Meter ────────────────────────────────────────── */
.meter-table-wrapper { overflow-x: auto; }

table.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

table.data-table th {
    text-align: left;
    padding: 0.75rem 1rem;
    background: var(--bg);
    color: var(--text-light);
    font-weight: 400;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

table.data-table td {
    padding: 0.9rem 1rem;
    border-bottom: 1px solid var(--border);
    color: var(--text);
}

table.data-table tr:last-child td { border-bottom: none; }
table.data-table tr:hover td { background: var(--bg); }

/* ── Pagination ───────────────────────────────────────────── */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 1rem;
}

.page-btn {
    width: 36px; height: 36px;
    border-radius: 8px;
    border: 1.5px solid var(--border);
    background: white;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all var(--transition);
    color: var(--text-mid);
}

.page-btn:hover, .page-btn.active {
    background: var(--green);
    border-color: var(--green);
    color: white;
}

/* ── Filter / Search bar ──────────────────────────────────── */
.filter-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}

.search-field {
    flex: 1;
    min-width: 200px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: 10px;
    padding: 0.6rem 0.9rem;
    transition: border-color var(--transition);
}

.search-field:focus-within { border-color: var(--green); }
.search-field svg { width: 15px; height: 15px; color: var(--text-light); flex-shrink: 0; }
.search-field input { border: none; background: transparent; font-size: 0.875rem; outline: none; color: var(--text); width: 100%; }

/* ── Alerts / Toasts ──────────────────────────────────────── */
.alert {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.alert-success { background: var(--green-light); color: var(--green-dark); border-left: 3px solid var(--green); }
.alert-error   { background: var(--red-light); color: #991b1b; border-left: 3px solid var(--red); }
.alert-info    { background: #EFF6FF; color: #1e40af; border-left: 3px solid #3b82f6; }

.toast-container {
    position: fixed;
    bottom: 1.5rem; right: 1.5rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toast {
    background: var(--text);
    color: white;
    padding: 0.8rem 1.2rem;
    border-radius: 10px;
    font-size: 0.875rem;
    display: flex; align-items: center; gap: 0.5rem;
    box-shadow: var(--shadow-md);
    animation: slideUp 0.3s ease;
    max-width: 320px;
}

.toast.success { background: var(--green); }
.toast.error   { background: var(--red); }

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

/* ── Settings page ────────────────────────────────────────── */
.settings-tabs {
    display: flex;
    border-bottom: 1px solid var(--border);
    margin-bottom: 1.5rem;
    gap: 0;
}

.settings-tab {
    padding: 0.75rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 300;
    color: var(--text-light);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all var(--transition);
}

.settings-tab.active, .settings-tab:hover {
    color: var(--green);
    border-bottom-color: var(--green);
}

/* ── Breadcrumb ───────────────────────────────────────────── */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.825rem;
    color: var(--text-light);
    margin-bottom: 1.25rem;
}

.breadcrumb a { color: var(--text-mid); }
.breadcrumb a:hover { color: var(--green); }
.breadcrumb svg { width: 14px; height: 14px; }
.breadcrumb .current { color: var(--text); }

/* ── Bills service grid ───────────────────────────────────── */
.bills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.bill-service-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    cursor: pointer;
    text-align: center;
    transition: all var(--transition);
    text-decoration: none;
    color: var(--text);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.bill-service-card:hover {
    border-color: var(--green);
    background: var(--green-pale);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.bill-service-icon {
    width: 60px; height: 60px;
    border-radius: 16px;
    background: var(--green-light);
    display: flex; align-items: center; justify-content: center;
}

.bill-service-icon svg { width: 28px; height: 28px; color: var(--green); }
.bill-service-name { font-size: 0.9rem; font-weight: 400; }
.bill-service-desc { font-size: 0.75rem; color: var(--text-light); }

/* ── Loading spinner ──────────────────────────────────────── */
.spinner {
    width: 20px; height: 20px;
    border: 2px solid rgba(26,122,60,0.2);
    border-top-color: var(--green);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.loading-overlay {
    position: absolute; inset: 0;
    background: rgba(255,255,255,0.8);
    display: flex; align-items: center; justify-content: center;
    border-radius: inherit;
    z-index: 10;
}

/* ── Empty state ──────────────────────────────────────────── */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 3rem 1.5rem;
    text-align: center;
    color: var(--text-light);
}

.empty-state svg { width: 56px; height: 56px; margin-bottom: 1rem; opacity: 0.4; }
.empty-state h4 { font-size: 1rem; color: var(--text-mid); margin-bottom: 0.4rem; }
.empty-state p { font-size: 0.875rem; }

/* ── Dashboard layout grid ────────────────────────────────── */
/* ── Shortcuts wrap ───────────────────────────────────────── */
.shortcuts-wrap { padding: 1.25rem; }

/* ── Side list (billers / schools in right column) ────────── */
.side-list-body { padding: 0.5rem 0; }

.side-list-item {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.75rem 1.25rem;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid var(--border);
    transition: background var(--transition);
}
.side-list-item:last-child { border-bottom: none; }
.side-list-item:hover { background: var(--bg); }

.side-list-logo {
    width: 40px; height: 40px;
    border-radius: 10px;
    background: var(--green-light);
    color: var(--green);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    font-size: 0.85rem;
    font-weight: 600;
}
.side-list-logo img { width: 100%; height: 100%; object-fit: cover; }
.side-list-logo.school-logo { background: #e8f5ed; color: var(--green); }

.side-list-arrow {
    width: 14px; height: 14px;
    color: var(--text-light);
    flex-shrink: 0;
    margin-left: auto;
    opacity: 0.5;
}
.side-list-item:hover .side-list-arrow { opacity: 1; color: var(--green); }

.side-empty {
    padding: 1rem 1.25rem;
    font-size: 0.85rem;
    color: var(--text-light);
}

/* ── Dashboard grid ───────────────────────────────────────── */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 1.5rem;
    align-items: start;
}

.dashboard-main { display: flex; flex-direction: column; gap: 1.5rem; }
.dashboard-side { display: flex; flex-direction: column; gap: 1.5rem; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1100px) {
    .dashboard-grid { grid-template-columns: 1fr; }
    .dashboard-side {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }
    .shortcuts-grid { grid-template-columns: repeat(5, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        box-shadow: var(--shadow-md);
    }
    .sidebar.open { transform: translateX(0); }
    .main-content { margin-left: 0; }
    .menu-btn { display: flex; }
    .topbar-search { display: none; }
    .page-content { padding: 1rem; }
    .auth2__ads { display: none; }
    .auth2__form { padding: 2rem 1.5rem; max-width: 100%; }

    /* wallet */
    .wallet-balance { font-size: 1.75rem; }
    .wallet-bank-number { font-size: 0.85rem; }

    /* shortcuts */
    .shortcuts-wrap { padding: 1rem; }
    .shortcuts-grid { grid-template-columns: repeat(5, 1fr); gap: 0.5rem; }
    .shortcut-btn { padding: 0.75rem 0.25rem; font-size: 0.72rem; gap: 0.35rem; }
    .shortcut-icon { width: 36px; height: 36px; border-radius: 10px; }
    .shortcut-icon svg { width: 16px; height: 16px; }

    /* transactions */
    .txn-item { padding: 0.75rem 1rem; gap: 0.75rem; }
    .txn-icon { width: 36px; height: 36px; border-radius: 10px; }
    .txn-icon svg { width: 17px; height: 17px; }
    .txn-desc { font-size: 0.825rem; }
    .txn-amount { font-size: 0.85rem; }

    /* side column — stack vertically on mobile */
    .dashboard-side { display: flex; flex-direction: column; gap: 1rem; }

    .stats-grid { grid-template-columns: 1fr; }
    .billers-grid { grid-template-columns: 1fr 1fr; }
    .schools-grid { grid-template-columns: 1fr; }
    .bills-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .page-content { padding: 0.75rem; }

    /* wallet */
    .wallet-card { padding: 1.25rem; }
    .wallet-balance { font-size: 1.5rem; margin-bottom: 1rem; }
    .wallet-bank { padding: 0.6rem 0.75rem; gap: 0.6rem; }
    .wallet-bank-icon { width: 30px; height: 30px; }
    .wallet-bank-icon svg { width: 15px; height: 15px; }
    .wallet-bank-name { font-size: 0.65rem; }
    .wallet-bank-number { font-size: 0.8rem; }

    /* shortcuts */
    .shortcuts-wrap { padding: 0.75rem; }
    .shortcuts-grid { grid-template-columns: repeat(5, 1fr); gap: 0.35rem; }
    .shortcut-btn { padding: 0.65rem 0.15rem; font-size: 0.65rem; gap: 0.3rem; }
    .shortcut-icon { width: 32px; height: 32px; border-radius: 8px; }
    .shortcut-icon svg { width: 15px; height: 15px; }

    /* transactions */
    .txn-item { padding: 0.65rem 0.875rem; }
    .txn-date { font-size: 0.7rem; }

    /* side list */
    .side-list-item { padding: 0.65rem 1rem; gap: 0.75rem; }
    .side-list-logo { width: 36px; height: 36px; font-size: 0.75rem; border-radius: 8px; }

    .billers-grid { grid-template-columns: 1fr; }
    .bills-grid { grid-template-columns: 1fr 1fr; }
    .topbar { padding: 0 1rem; }
}

/* ── Sidebar overlay for mobile ───────────────────────────── */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 199;
}

.sidebar-overlay.open { display: block; }