:root {
    --primary: #0a8f3c;
    --primary-dark: #067a31;
    --primary-light: #e8f5ec;
    --accent: #f7b731;
    --bg: #f4f6f9;
    --card: #ffffff;
    --text: #1a1a2e;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    --border: #e5e7eb;
    --success: #10b981;
    --error: #ef4444;
    --info: #3b82f6;
    --shadow: 0 2px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --radius: 14px;
    --radius-sm: 10px;
    --radius-xs: 8px;
    --transition: all 0.25s ease;
    --mtn: #ffcc00;
    --airtel: #ed1c24;
    --glo: #00a651;
    --nine: #006b3f;
    --nav-height: 60px;
    --topnav-height: 56px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    max-width: 480px;
    margin: 0 auto;
    position: relative;
    overflow-x: hidden;
}

.hidden { display: none !important; }

/* ============ SCROLLBAR ============ */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 4px; }

/* ============ AUTH PAGES ============ */
.auth-page {
    display: none;
    min-height: 100vh;
    padding: 40px 24px 32px;
    background: linear-gradient(180deg, #0a8f3c 0%, #067a31 40%, var(--bg) 40%);
}
.auth-page.active { display: block; }

.auth-header { text-align: center; margin-bottom: 32px; }

.auth-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}
.logo-icon {
    width: 64px;
    height: 64px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.25);
}
.auth-logo h1 {
    color: #fff;
    font-size: 26px;
    font-weight: 700;
}
.auth-logo h1 span { color: var(--accent); }
.auth-subtitle { color: rgba(255,255,255,0.85); font-size: 14px; margin-top: 4px; }

.auth-card {
    background: var(--card);
    border-radius: var(--radius);
    padding: 28px 24px;
    box-shadow: var(--shadow-lg);
}
.auth-card h2 {
    font-size: 20px;
    margin-bottom: 20px;
}

.auth-divider {
    text-align: center;
    margin: 20px 0;
    position: relative;
}
.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border);
}
.auth-divider span {
    background: var(--card);
    padding: 0 16px;
    color: var(--text-light);
    font-size: 13px;
    position: relative;
}
.auth-switch {
    text-align: center;
    font-size: 14px;
    color: var(--text-secondary);
}
.auth-switch a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

/* ============ FORM ELEMENTS ============ */
.form-group {
    margin-bottom: 16px;
}
.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}
.input-wrapper {
    display: flex;
    align-items: center;
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-xs);
    padding: 0 14px;
    transition: var(--transition);
    position: relative;
}
.input-wrapper:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(10,143,60,0.1);
}
.input-wrapper svg {
    color: var(--text-light);
    flex-shrink: 0;
}
.input-wrapper input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 13px 12px;
    font-size: 15px;
    color: var(--text);
    outline: none;
    font-family: inherit;
    width: 100%;
}
.input-wrapper input::placeholder { color: var(--text-light); }

.toggle-password {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 4px;
    display: flex;
}

.amount-input {
    gap: 4px;
}
.currency-symbol {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
}

.form-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 13px;
}
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
}
.checkbox-label input { accent-color: var(--primary); }
.forgot-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.select-wrapper {
    position: relative;
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-xs);
    overflow: hidden;
}
.select-wrapper:focus-within {
    border-color: var(--primary);
}
.select-wrapper select {
    width: 100%;
    padding: 13px 14px;
    border: none;
    background: transparent;
    font-size: 15px;
    color: var(--text);
    outline: none;
    font-family: inherit;
    appearance: none;
    cursor: pointer;
}

.radio-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.radio-card {
    display: flex;
    align-items: center;
    padding: 14px;
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}
.radio-card.active {
    border-color: var(--primary);
    background: var(--primary-light);
}
.radio-card input { display: none; }
.radio-content h4 { font-size: 14px; font-weight: 600; }
.radio-content p { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }

/* ============ BUTTONS ============ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 24px;
    border: none;
    border-radius: var(--radius-xs);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}
.btn-primary {
    background: var(--primary);
    color: #fff;
}
.btn-primary:hover { background: var(--primary-dark); }
.btn-primary:active { transform: scale(0.98); }
.btn-full { width: 100%; }
.btn-lg { padding: 16px; font-size: 16px; border-radius: var(--radius-sm); }
.btn-sm { padding: 8px 16px; font-size: 13px; border-radius: var(--radius-xs); }
.btn-fund {
    background: rgba(255,255,255,0.15);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.25);
    backdrop-filter: blur(10px);
    font-size: 14px;
    padding: 10px 20px;
}
.btn-fund:hover { background: rgba(255,255,255,0.25); }

/* ============ AMOUNT CHIPS ============ */
.amount-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}
.chip {
    padding: 8px 16px;
    background: var(--primary-light);
    color: var(--primary);
    border: 1.5px solid transparent;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}
.chip:hover {
    border-color: var(--primary);
}

/* ============ TOP NAV ============ */
.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    height: var(--topnav-height);
    background: var(--card);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}
.nav-left {
    display: flex;
    align-items: center;
    gap: 10px;
}
.nav-logo-sm {
    width: 34px;
    height: 34px;
    background: var(--primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    color: #fff;
}
.nav-brand {
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
}
.nav-brand span { color: var(--primary); }
.nav-right { display: flex; align-items: center; gap: 12px; }
.nav-btn {
    position: relative;
    background: none;
    border: none;
    color: var(--text);
    cursor: pointer;
    padding: 6px;
}
.badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--error);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.user-avatar {
    width: 34px;
    height: 34px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
}

/* ============ MAIN CONTENT ============ */
.main-content {
    padding-bottom: calc(var(--nav-height) + 20px);
    min-height: calc(100vh - var(--topnav-height));
}
.page { display: none; }
.page.active { display: block; }

/* ============ BALANCE CARD ============ */
.balance-card {
    margin: 16px;
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    min-height: 150px;
}
.balance-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #0a8f3c 0%, #056b2c 50%, #034d1e 100%);
}
.balance-bg::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    top: -60px;
    right: -40px;
}
.balance-bg::after {
    content: '';
    position: absolute;
    width: 120px;
    height: 120px;
    background: rgba(255,255,255,0.04);
    border-radius: 50%;
    bottom: -30px;
    left: 20px;
}
.balance-content {
    position: relative;
    padding: 24px;
    z-index: 1;
}
.balance-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}
.balance-label {
    color: rgba(255,255,255,0.75);
    font-size: 13px;
    margin-bottom: 4px;
}
.balance-amount {
    color: #fff;
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -0.5px;
}
.eye-toggle {
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
}

/* ============ QUICK ACTIONS ============ */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 20px 12px;
}
.section-header h3 { font-size: 16px; font-weight: 700; }
.view-all {
    font-size: 13px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding: 0 16px;
}
.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 8px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}
.action-btn:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}
.action-btn:active { transform: scale(0.96); }
.action-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.airtime-icon { background: #e0f2fe; color: #0284c7; }
.data-icon { background: #fef3c7; color: #d97706; }
.cable-icon { background: #ede9fe; color: #7c3aed; }
.electricity-icon { background: #fce7f3; color: #db2777; }
.action-btn span { font-size: 12px; font-weight: 600; color: var(--text-secondary); }

/* ============ SERVICES GRID ============ */
.services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 0 16px;
}
.service-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
}
.service-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
}
.service-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.betting-bg { background: #fef3c7; color: #d97706; }
.education-bg { background: #dbeafe; color: #2563eb; }
.recharge-bg { background: #d1fae5; color: #059669; }
.fund-bg { background: #fce7f3; color: #db2777; }
.service-card h4 { font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.service-card p { font-size: 11px; color: var(--text-secondary); }

/* ============ PROMO BANNER ============ */
.promo-banner {
    margin: 16px;
    border-radius: var(--radius);
    overflow: hidden;
    background: linear-gradient(135deg, #f7b731 0%, #f5a623 100%);
    padding: 24px;
    position: relative;
}
.promo-banner::after {
    content: '';
    position: absolute;
    width: 100px;
    height: 100px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    top: -20px;
    right: -10px;
}
.promo-tag {
    display: inline-block;
    background: rgba(0,0,0,0.1);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    color: #000;
    letter-spacing: 1px;
    margin-bottom: 8px;
}
.promo-content h3 {
    font-size: 17px;
    font-weight: 700;
    color: #000;
    margin-bottom: 6px;
    position: relative;
}
.promo-content p {
    font-size: 13px;
    color: rgba(0,0,0,0.7);
    margin-bottom: 14px;
    position: relative;
}
.promo-content .btn {
    background: #000;
    color: #fff;
    position: relative;
}

/* ============ TRANSACTIONS ============ */
.transactions-list {
    padding: 0 16px;
}
.transaction-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}
.transaction-item:last-child { border-bottom: none; }
.tx-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.tx-airtime { background: #e0f2fe; color: #0284c7; }
.tx-data { background: #fef3c7; color: #d97706; }
.tx-cable { background: #ede9fe; color: #7c3aed; }
.tx-electricity { background: #fce7f3; color: #db2777; }
.tx-fund { background: #d1fae5; color: #059669; }
.tx-betting { background: #fef3c7; color: #d97706; }
.tx-details { flex: 1; min-width: 0; }
.tx-details h4 { font-size: 14px; font-weight: 600; }
.tx-details p { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }
.tx-date { font-size: 11px; color: var(--text-light); margin-top: 2px; display: block; }
.tx-amount { font-size: 14px; font-weight: 700; white-space: nowrap; }
.tx-debit { color: var(--error); }
.tx-credit { color: var(--success); }

/* ============ PAGE HEADER ============ */
.page-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    background: var(--card);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: var(--topnav-height);
    z-index: 99;
}
.page-header h2 { font-size: 17px; font-weight: 700; }
.back-btn {
    background: none;
    border: none;
    color: var(--text);
    cursor: pointer;
    padding: 6px;
    display: flex;
}
.page-body { padding: 16px; }

/* ============ NETWORK SELECTOR ============ */
.network-selector {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}
.network-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 14px 8px;
    background: var(--card);
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}
.network-btn.active {
    border-color: var(--primary);
    background: var(--primary-light);
}
.network-btn span { font-size: 11px; font-weight: 600; color: var(--text-secondary); }
.network-logo {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
    color: #fff;
}
.mtn-logo { background: var(--mtn); color: #000; }
.airtel-logo { background: var(--airtel); }
.glo-logo { background: var(--glo); }
.nine-logo { background: var(--nine); }
.cable-logo {
    width: 52px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
    color: #fff;
}
.dstv-logo { background: #1a1a2e; }
.gotv-logo { background: #006b3f; }
.star-logo { background: #d42027; }
.cable-selector { grid-template-columns: repeat(3, 1fr); }

/* ============ DATA PLANS ============ */
.data-plans {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 320px;
    overflow-y: auto;
    padding-right: 4px;
}
.data-plan-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: var(--bg);
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}
.data-plan-card:hover { border-color: var(--primary); }
.data-plan-card.selected {
    border-color: var(--primary);
    background: var(--primary-light);
}
.plan-badge {
    position: absolute;
    top: -8px;
    right: 12px;
    background: var(--accent);
    color: #000;
    font-size: 9px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}
.plan-info h4 { font-size: 16px; font-weight: 700; }
.plan-info p { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }
.plan-price { font-size: 16px; font-weight: 700; color: var(--primary); }

/* ============ DISCOUNT BANNER ============ */
.discount-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--primary-light);
    border-radius: var(--radius-xs);
    margin-bottom: 20px;
    font-size: 13px;
    color: var(--primary-dark);
}

/* ============ FUND METHODS ============ */
.fund-methods {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}
.fund-method-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
    background: var(--card);
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}
.fund-method-card.active {
    border-color: var(--primary);
    background: var(--primary-light);
}
.method-icon {
    width: 50px;
    height: 50px;
    background: var(--bg);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.fund-detail-section { display: none; }
.fund-detail-section.active { display: block; }

.bank-details-card {
    background: var(--card);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
}
.bank-details-card h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
}
.bank-info { margin-bottom: 16px; }
.bank-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}
.bank-row:last-child { border-bottom: none; }
.bank-row span { font-size: 13px; color: var(--text-secondary); }
.bank-row strong { font-size: 14px; }
.copy-field {
    display: flex;
    align-items: center;
    gap: 8px;
}
.copy-btn {
    background: var(--primary-light);
    border: none;
    color: var(--primary);
    padding: 6px;
    border-radius: 6px;
    cursor: pointer;
}
.bank-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    background: #fffbeb;
    border-radius: var(--radius-xs);
    font-size: 12px;
    color: #92400e;
}
.bank-note svg { flex-shrink: 0; margin-top: 2px; }

.ussd-code-box {
    background: var(--bg);
    padding: 16px;
    border-radius: var(--radius-sm);
    text-align: center;
    margin-bottom: 16px;
}
.ussd-code-box p { font-size: 13px; color: var(--text-secondary); margin-bottom: 8px; }
.ussd-code-box h3 {
    font-size: 18px;
    font-family: monospace;
    color: var(--primary);
    margin-bottom: 12px;
    word-break: break-all;
}

/* ============ FILTER TABS ============ */
.filter-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 12px;
    margin-bottom: 8px;
}
.filter-tab {
    padding: 8px 18px;
    background: var(--card);
    border: 1.5px solid var(--border);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
    font-family: inherit;
}
.filter-tab.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* ============ PROFILE ============ */
.profile-header {
    text-align: center;
    padding: 20px 0 24px;
}
.profile-avatar {
    width: 72px;
    height: 72px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin: 0 auto 12px;
}
.profile-header h3 { font-size: 20px; font-weight: 700; }
.profile-header p { font-size: 14px; color: var(--text-secondary); margin-top: 2px; }
.profile-id {
    display: inline-block;
    background: var(--bg);
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 8px;
}

.profile-balance-card {
    background: var(--card);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}
.profile-balance-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}
.profile-balance-row:last-child { border-bottom: none; }
.profile-balance-row span { font-size: 13px; color: var(--text-secondary); }
.profile-balance-row strong { font-size: 16px; }

.profile-menu {
    background: var(--card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.profile-menu-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
    color: var(--text);
    transition: var(--transition);
}
.profile-menu-item:last-child { border-bottom: none; }
.profile-menu-item:hover { background: var(--bg); }
.menu-icon {
    width: 40px;
    height: 40px;
    background: var(--bg);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
}
.profile-menu-item span { flex: 1; font-size: 14px; font-weight: 500; }
.profile-menu-item svg:last-child { color: var(--text-light); }

/* ============ NOTIFICATIONS ============ */
.notification-list { padding: 0; }
.notification-item {
    display: flex;
    gap: 12px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}
.notification-item.unread { position: relative; }
.notif-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.notif-success { background: #d1fae5; color: var(--success); }
.notif-info { background: #dbeafe; color: var(--info); }
.notif-content h4 { font-size: 14px; font-weight: 600; }
.notif-content p { font-size: 13px; color: var(--text-secondary); margin-top: 4px; }
.notif-time { font-size: 11px; color: var(--text-light); margin-top: 6px; display: block; }

/* ============ BOTTOM NAV ============ */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    background: var(--card);
    border-top: 1px solid var(--border);
    padding: 6px 0;
    z-index: 200;
    height: var(--nav-height);
}
.nav-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 6px 12px;
    transition: var(--transition);
    font-family: inherit;
}
.nav-tab span { font-size: 10px; font-weight: 600; }
.nav-tab.active { color: var(--primary); }
.nav-tab.fab { position: relative; top: -14px; }
.fab-icon {
    width: 52px;
    height: 52px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 4px 16px rgba(10,143,60,0.4);
    transition: var(--transition);
}
.nav-tab.fab:active .fab-icon { transform: scale(0.92); }

/* ============ TOAST ============ */
.toast {
    position: fixed;
    top: -80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    transition: top 0.4s cubic-bezier(0.68,-0.55,0.27,1.55);
}
.toast.show { top: 20px; }
.toast-content {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    background: #065f46;
    color: #fff;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}

/* ============ MODAL ============ */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.modal.show { display: flex; }
.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
}
.modal-content {
    position: relative;
    background: var(--card);
    border-radius: var(--radius);
    padding: 32px 24px;
    max-width: 360px;
    width: 100%;
    text-align: center;
    animation: modalIn 0.3s ease;
}
@keyframes modalIn {
    from { opacity: 0; transform: scale(0.9) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}
.modal-icon.success { background: #d1fae5; color: var(--success); }
.modal-content h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.modal-content p { font-size: 14px; color: var(--text-secondary); margin-bottom: 20px; }
.modal-details {
    background: var(--bg);
    border-radius: var(--radius-xs);
    padding: 14px;
    margin-bottom: 20px;
    text-align: left;
    font-size: 13px;
}
.modal-details .detail-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
}

/* ============ ANIMATIONS ============ */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.page.active { animation: fadeIn 0.3s ease; }

/* ============ RESPONSIVE ============ */
@media (min-width: 481px) {
    body { border-left: 1px solid var(--border); border-right: 1px solid var(--border); }
}
@media (max-width: 360px) {
    .quick-actions { gap: 6px; }
    .action-btn { padding: 12px 6px; }
    .action-icon { width: 40px; height: 40px; }
    .balance-amount { font-size: 26px; }
    .amount-chips { gap: 6px; }
    .chip { padding: 6px 12px; font-size: 12px; }
}
