/* public_html/assets/css/main.css - Complete & Cleaned for Batch 4 */

/* --- GLOBAL STYLES & RESETS --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f7fa;
}

a {
    color: #0d6efd;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.container {
    width: 100%;
    margin: 0 auto;
    max-width: 1000px;
}

.back-link {
    display: inline-block;
    margin-bottom: 15px;
    font-size: 15px;
    color: #6c757d;
}

.back-link:hover {
    color: #5a6268;
}

/* --- AUTHENTICATION LAYOUT & FORMS (SUPERCHARGED) --- */
.auth-page {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.auth-container {
    background: #ffffff;
    padding: 30px 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 480px;
    text-align: center;
    border-top: 5px solid #0d6efd;
}

.auth-header {
    margin-bottom: 25px;
}

.auth-logo {
    max-width: 100px;
    margin-bottom: 15px;
}

.auth-header h1 {
    color: #333;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.auth-header p {
    color: #666;
    font-size: 16px;
}

.auth-form, .settings-form, .app-form {
    text-align: left;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
    width: 100%;
}

.form-group.half-width {
    width: 50%;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
    font-size: 14px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="tel"],
.form-group input[type="date"],
.form-group input[type="number"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ced4da;
    border-radius: 8px;
    font-size: 16px;
    color: #495057;
    background-color: #f8f9fa;
    transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.form-group select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
}


.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #86b7fe;
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.25);
}

.phone-input-group {
    display: flex;
}

.country-code-select {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    flex: 1 1 auto;
    width: 100%;
}

.phone-input-group input[type="tel"] {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-left: 0;
    flex: 1 1 auto;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #0d6efd;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    font-size: 14px;
}

.forgot-password-link {
    color: #0d6efd;
}

.auth-link {
    margin-top: 25px;
    font-size: 15px;
    color: #666;
}

.auth-link a {
    font-weight: 600;
    color: #0d6efd;
}

/* --- BUTTONS --- */
.btn {
    display: inline-block;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    border: none;
}

.btn-primary {
    background-color: #0d6efd;
    color: #ffffff;
    width: 100%;
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3);
}

.btn-primary:hover {
    background-color: #0b5ed7;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 110, 253, 0.4);
}

.btn-secondary {
    background-color: #6c757d;
    color: #ffffff;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

.btn-small {
    padding: 8px 15px;
    font-size: 14px;
    width: auto;
}

/* --- FLASH MESSAGES & ERRORS --- */
.flash-message {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    text-align: left;
    font-size: 15px;
    border: 1px solid transparent;
}

.flash-message.success {
    background-color: #d1e7dd;
    color: #0f5132;
    border-color: #badbcc;
}

.flash-message.error {
    background-color: #f8d7da;
    color: #842029;
    border-color: #f5c2c7;
}

.flash-message.info {
    background-color: #cff4fc;
    color: #055160;
    border-color: #b6effb;
}

.error-message {
    color: #dc3545;
    font-size: 13px;
    margin-top: 6px;
}

/* --- MAIN APP LAYOUT (DASHBOARD, ETC.) --- */
.app-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-header {
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    padding: 15px 25px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    color: #333;
    font-weight: 700;
    font-size: 20px;
}

.app-logo {
    max-width: 40px;
    height: auto;
    margin-right: 10px;
}

.app-name {
    display: none;
}

.main-nav .menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #0d6efd;
}

.main-nav .nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
    align-items: center;
}

.main-nav .nav-links li a {
    color: #555;
    font-weight: 500;
    padding: 5px 0;
    transition: color 0.2s ease-in-out;
}

.main-nav .nav-links li a:hover,
.main-nav .nav-links li a.active {
    color: #0d6efd;
    text-decoration: none;
}

.app-main-content {
    flex-grow: 1;
    padding: 30px 20px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.main-footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 20px;
    text-align: center;
    font-size: 14px;
    margin-top: auto;
}

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    margin-bottom: 25px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.section-title h2 {
    font-size: 24px;
    color: #333;
}

/* --- PAGE-SPECIFIC HEADERS --- */
.dashboard-header, .settings-header, .history-page-header, .send-page-header,
.receive-page-header, .exchange-page-header, .transaction-detail-header,
.deposit-page-header, .withdrawal-page-header, .bills-page-header {
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.dashboard-header h1, .settings-header h1, .history-page-header h1, .send-page-header h1,
.receive-page-header h1, .exchange-page-header h1, .transaction-detail-header h1,
.deposit-page-header h1, .withdrawal-page-header h1, .bills-page-header h1 {
    font-size: 28px;
    color: #0d6efd;
    margin-bottom: 10px;
}

.dashboard-header p, .settings-header p, .history-page-header p, .send-page-header p,
.receive-page-header p, .exchange-page-header p, .transaction-detail-header p,
.deposit-page-header p, .withdrawal-page-header p, .bills-page-header p {
    font-size: 16px;
    color: #666;
}

/* --- DASHBOARD & WALLETS --- */
.wallet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.wallet-card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 25px;
    display: flex;
    align-items: center;
    text-align: left;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    color: #333;
}

.wallet-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    text-decoration: none;
}

.wallet-icon {
    font-size: 36px;
    width: 60px;
    height: 60px;
    background-color: #e0f2ff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 20px;
    color: #0d6efd;
    font-weight: 700;
}

.currency-symbol { font-size: 28px; }
.wallet-details { flex-grow: 1; }
.wallet-details h3 { font-size: 18px; margin-bottom: 5px; color: #333; }
.wallet-card .balance { font-size: 24px; font-weight: 700; color: #198754; margin-bottom: 5px; }
.wallet-card small { font-size: 13px; color: #888; }
.wallet-actions .arrow-icon { font-size: 28px; color: #0d6efd; margin-left: 15px; }
.activity-list p, .no-data-message {
    color: #666;
    font-style: italic;
    text-align: center;
    padding: 30px;
    background-color: #fcfcfc;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* --- TRANSACTION HISTORY --- */
.transaction-filters {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
}
.transaction-list {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    overflow-x: auto;
    margin-bottom: 30px;
}
.transaction-list table { width: 100%; border-collapse: collapse; }
.transaction-list th, .transaction-list td { padding: 15px; text-align: left; border-bottom: 1px solid #eee; }
.transaction-list th { background-color: #f8f9fa; font-weight: 600; color: #555; white-space: nowrap; }
.transaction-list tbody tr:last-child td { border-bottom: none; }
.transaction-list tbody tr:hover { background-color: #f0f8ff; }
.amount { font-weight: 600; white-space: nowrap; }
.amount.positive { color: #198754; }
.amount.negative { color: #dc3545; }
.type-sent { color: #dc3545; }
.type-received { color: #198754; }
.type-exchange { color: #0d6efd; }
.status-badge { display: inline-block; padding: 5px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; text-transform: uppercase; text-align: center; min-width: 80px; }
.status-completed { background-color: #d1e7dd; color: #0f5132; }
.status-pending, .status-processing { background-color: #fff3cd; color: #664d03; }
.status-failed, .status-cancelled, .status-reversed { background-color: #f8d7da; color: #842029; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 15px; margin-top: 20px; margin-bottom: 30px; }
.pagination a, .pagination span { padding: 10px 15px; border-radius: 6px; border: 1px solid #ddd; color: #0d6efd; transition: background-color 0.2s; }
.pagination a:hover { background-color: #e9ecef; text-decoration: none; }
.pagination span { background-color: #f8f9fa; color: #555; border-color: #f0f0f0; }

/* --- DEPOSIT, WITHDRAW, BILLS, EXCHANGE, RECEIVE PAGES --- */
.payment-method-section, .recipient-details-section, .settings-section {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    padding: 30px;
    margin-top: 30px;
    margin-bottom: 30px;
}
.payment-method-section h2, .recipient-details-section h2, .settings-section h2,
.payment-method-section h3, .recipient-details-section h3 {
    font-size: 22px; color: #333; margin-bottom: 25px; padding-bottom: 15px; border-bottom: 1px solid #f0f0f0;
}
.payment-method-section h3, .recipient-details-section h3 {
    font-size: 18px; color: #0d6efd; border-bottom: none; padding-bottom: 0; margin-top: 20px; margin-bottom: 15px;
}
.exchange-summary { background-color: #e9f5ff; border: 1px solid #a8d5ff; border-radius: 8px; padding: 25px; margin-top: 30px; margin-bottom: 30px; }
.exchange-summary h3 { color: #0d6efd; font-size: 20px; margin-bottom: 15px; }
.exchange-summary p { font-size: 16px; color: #333; margin-bottom: 8px; }
.exchange-summary p span { font-weight: 600; color: #000; }
.available-balance-message { font-size: 14px; color: #666; margin-top: 5px; padding-left: 5px; }
.receive-options-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-bottom: 40px; }
.receive-card { background-color: #ffffff; border-radius: 12px; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08); padding: 30px; text-align: center; }
.receive-card h3 { color: #0d6efd; font-size: 22px; margin-bottom: 15px; }
.copy-input-group { display: flex; margin-top: 15px; border: 1px solid #ddd; border-radius: 6px; overflow: hidden; }
.copy-input-group input { border: none; flex-grow: 1; padding: 10px 15px; font-size: 15px; background-color: #f9f9f9; color: #333; }
.copy-input-group button { background-color: #0d6efd; color: #ffffff; border: none; padding: 10px 15px; cursor: pointer; font-weight: 600; }
.biller-selection-form { background-color: #ffffff; padding: 25px 30px; border-radius: 8px; margin-bottom: 30px; }
.biller-details-card { background-color: #e0f2ff; border: 1px solid #a8d5ff; border-radius: 8px; padding: 25px; margin-bottom: 30px; }
.biller-details-card h2 { color: #0d6efd; font-size: 22px; }
.biller-payment-form { background-color: #ffffff; padding: 30px; border-radius: 8px; }
.transaction-details-card { background-color: #ffffff; border-radius: 8px; padding: 30px; margin-bottom: 30px; }
.detail-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px dashed #f0f0f0; }
.detail-label { font-weight: 600; color: #555; }
.detail-value { text-align: right; }
.detail-row-group { margin-top: 30px; padding-top: 20px; border-top: 1px solid #eee; }
.detail-row-group h3 { font-size: 18px; color: #0d6efd; margin-bottom: 15px; }

/* --- RESPONSIVE ADJUSTMENTS --- */
@media (max-width: 768px) {
    .main-nav .nav-links {
        display: none; flex-direction: column; position: absolute; top: 70px; left: 0; width: 100%;
        background-color: #ffffff; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); padding: 15px 0; z-index: 999;
    }
    .main-nav .nav-links.active { display: flex; }
    .main-nav .nav-links li { width: 100%; text-align: center; margin-bottom: 10px; }
    .main-nav .nav-links li:last-child { margin-bottom: 0; }
    .main-nav .nav-links li a { padding: 10px 0; display: block; }
    .main-nav .nav-links li .btn-secondary { width: calc(100% - 40px); margin: 0 20px; }
    .main-nav .menu-toggle { display: block; }
    .app-name { display: inline-block; }
    .wallet-grid, .receive-options-grid { grid-template-columns: 1fr; }
    .transaction-filters { flex-direction: column; align-items: flex-start; }
    .transaction-filters select { width: 100%; max-width: none; }
}

@media (max-width: 500px) {
    .auth-container { padding: 20px; border-top-width: 4px; }
    .auth-header h1 { font-size: 24px; }
    .form-row { flex-direction: column; gap: 0; }
    .form-group.half-width { width: 100%; }
    .phone-input-group { flex-direction: column; gap: 0; }
    .phone-input-group .country-code-select { border-radius: 8px; border-bottom: none; border-bottom-right-radius: 0; border-bottom-left-radius: 0; }
    .phone-input-group input[type="tel"] { border-radius: 8px; border-top-left-radius: 0; border-top-right-radius: 0; border-left: 1px solid #ced4da; }
    .dashboard-header h1, .settings-header h1, .history-page-header h1 { font-size: 26px; }
}
/* ... (at the very end of the file, add this new section) ... */

/* --- PRINT STYLES --- */
@media print {
    body.app-page {
        background-color: #ffffff;
    }

    .main-header,
    .main-footer,
    .transaction-detail-header .back-link,
    .transaction-detail-header .header-actions,
    .flash-message {
        display: none !important;
    }

    .app-main-content {
        padding: 0;
        margin: 0;
        max-width: 100%;
    }

    .transaction-details-card {
        box-shadow: none;
        border: 1px solid #ccc;
        border-radius: 0;
        padding: 20px;
    }

    .transaction-detail-header h1 {
        display: none; /* Hide the on-screen header */
    }

    .receipt-header {
        display: block !important; /* Ensure the receipt-specific header is visible */
        text-align: center;
        margin-bottom: 30px;
        border-bottom: 2px solid #000;
        padding-bottom: 20px;
    }

    .receipt-logo {
        max-width: 150px;
        margin-bottom: 10px;
    }

    a {
        text-decoration: none;
        color: #000;
    }

    .btn {
        display: none;
    }
    /* public_html/assets/css/admin.css */

/* Basic Reset & Variables */
:root {
    --primary-color: #3498db;
    --secondary-color: #2c3e50;
    --light-bg: #ecf0f1;
    --sidebar-bg: #2c3e50;
    --sidebar-text: #ecf0f1;
    --sidebar-active-bg: #34495e;
    --header-bg: #ffffff;
    --card-bg: #ffffff;
    --text-color: #34495e;
    --border-color: #dfe4e8;
    --success-color: #2ecc71;
    --danger-color: #e74c3c;
    --warning-color: #f39c12;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; background-color: var(--light-bg); color: var(--text-color); font-size: 14px; }
a { text-decoration: none; color: var(--primary-color); }

/* Main Layout */
.admin-wrapper { display: flex; min-height: 100vh; }
.sidebar { width: 240px; background-color: var(--sidebar-bg); color: var(--sidebar-text); flex-shrink: 0; display: flex; flex-direction: column; }
.main-content { flex-grow: 1; display: flex; flex-direction: column; }

/* Sidebar */
.sidebar-header { padding: 20px; text-align: center; border-bottom: 1px solid var(--sidebar-active-bg); }
.sidebar-header .logo { font-size: 20px; font-weight: 700; color: #ffffff; }
.sidebar-nav ul { list-style: none; margin-top: 20px; }
.sidebar-nav ul li a { display: block; padding: 15px 20px; color: var(--sidebar-text); transition: background-color 0.2s; border-left: 3px solid transparent; }
.sidebar-nav ul li a:hover, .sidebar-nav ul li a.active { background-color: var(--sidebar-active-bg); border-left-color: var(--primary-color); }

/* Header */
.main-header { display: flex; justify-content: space-between; align-items: center; background-color: var(--header-bg); padding: 15px 30px; border-bottom: 1px solid var(--border-color); }
.header-left h1 { font-size: 24px; font-weight: 600; }
.header-right { display: flex; align-items: center; gap: 20px; }
.user-info { text-align: right; }
.user-info span { font-weight: 600; }
.user-info small { color: #7f8c8d; display: block; }
.logout-btn { background-color: var(--danger-color); color: #fff; padding: 8px 15px; border-radius: 5px; font-weight: 500; }

/* Content Body */
.content-body { padding: 30px; }
.flash-message { padding: 15px; margin-bottom: 20px; border-radius: 5px; }
.flash-message.success { background-color: #d4edda; color: #155724; }
.flash-message.error { background-color: #f8d7da; color: #721c24; }

/* Dashboard Stats */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; margin-bottom: 30px; }
.stat-card { background-color: var(--card-bg); padding: 25px; border-radius: 8px; box-shadow: 0 2px 4px rgba(0,0,0,0.05); }
.stat-card h3 { font-size: 16px; color: #7f8c8d; margin-bottom: 10px; }
.stat-card p { font-size: 36px; font-weight: 700; }
.stat-card p.warning { color: var(--warning-color); }
.stat-card a { margin-top: 15px; display: inline-block; font-weight: 500; }

/* Tables */
.table-container { background-color: var(--card-bg); border-radius: 8px; box-shadow: 0 2px 4px rgba(0,0,0,0.05); padding: 20px; }
.table-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px 15px; text-align: left; border-bottom: 1px solid var(--border-color); }
th { background-color: #f9fafb; font-weight: 600; }
tbody tr:hover { background-color: #f5f7fa; }

/* Status Badges */
.status-badge { display: inline-block; padding: 4px 10px; border-radius: 20px; font-size: 11px; font-weight: 600; text-transform: uppercase; }
.status-badge.status-verified, .status-badge.status-active, .status-badge.status-approved { background-color: #d4edda; color: #155724; }
.status-badge.status-pending { background-color: #fff3cd; color: #856404; }
.status-badge.status-rejected, .status-badge.status-suspended { background-color: #f8d7da; color: #721c24; }
.status-badge.status-not_submitted { background-color: #e2e3e5; color: #495057; }

/* User Detail Page */
.user-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-bottom: 30px; }
.detail-card { background-color: var(--card-bg); border-radius: 8px; padding: 25px; box-shadow: 0 2px 4px rgba(0,0,0,0.05); }
.detail-card h3 { font-size: 18px; margin-bottom: 20px; border-bottom: 1px solid var(--border-color); padding-bottom: 10px; }
.detail-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 14px; }
.detail-row span:first-child { font-weight: 600; color: #7f8c8d; }
.status-form { margin-top: 20px; padding-top: 15px; border-top: 1px solid var(--border-color); display: flex; align-items: center; gap: 10px; }
.status-form select { padding: 5px; border-radius: 4px; }

.kyc-docs-card { grid-column: 1 / -1; }
.kyc-document { display: flex; justify-content: space-between; align-items: flex-start; padding: 15px; border: 1px solid var(--border-color); border-radius: 5px; margin-bottom: 15px; }
.kyc-document h4 { margin-bottom: 5px; }
.kyc-document p { font-size: 13px; color: #7f8c8d; }
.doc-actions { display: flex; gap: 10px; }
.reject-form { display: flex; flex-direction: column; gap: 5px; }
.reject-form textarea { padding: 5px; border-radius: 4px; border: 1px solid #ccc; }

/* Buttons */
.btn { padding: 8px 12px; font-size: 13px; font-weight: 500; border-radius: 5px; cursor: pointer; border: 1px solid transparent; }
.btn-success { background-color: var(--success-color); color: #fff; }
.btn-danger { background-color: var(--danger-color); color: #fff; }
.btn-secondary { background-color: #95a5a6; color: #fff; }

.pagination { display: flex; justify-content: center; gap: 10px; margin-top: 20px; }

    
}
/* ... (at the very end of the file, add this new section and modify the @media blocks) ... */

/* --- NEW: Mobile Footer Navigation --- */
.mobile-nav {
    display: none; /* Hidden on desktop */
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background-color: #ffffff;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.1);
    z-index: 1000;
    justify-content: space-around;
    align-items: center;
}
.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    flex-grow: 1;
    padding: 5px 0;
}
.mobile-nav-item.active {
    color: var(--primary-color, #0d6efd);
}
.mobile-nav-item span {
    font-size: 11px;
    margin-top: 2px;
}
.mobile-nav-item.primary-action {
    transform: translateY(-15px);
    background-color: var(--primary-color, #0d6efd);
    color: #ffffff;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.4);
    flex-grow: 0;
}
.mobile-nav-item.primary-action:hover {
    color: #ffffff;
    background-color: var(--primary-hover, #0b5ed7);
}
.app-page {
    padding-bottom: 60px; /* Add padding to body to prevent content from being hidden by mobile nav */
}

/* --- HEADER MODIFICATIONS --- */
.main-nav {
    flex-grow: 1;
    display: flex;
    justify-content: center;
}
.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}
.header-icon-link {
    color: #6c757d;
    display: flex;
    align-items: center;
}
.header-icon-link:hover, .header-icon-link.active {
    color: var(--primary-color, #0d6efd);
}

/* --- RESPONSIVE ADJUSTMENTS (MODIFY) --- */
@media (max-width: 768px) {
    .main-header {
        position: static; /* No longer sticky on mobile */
    }
    .main-nav .nav-links {
        display: none; /* Hide top nav links on mobile */
    }
    .header-right .btn-small {
        display: none; /* Hide logout button from top right on mobile */
    }
    .mobile-nav {
        display: flex; /* Show mobile footer nav */
    }
    .main-footer {
        display: none; /* Hide the standard footer on mobile */
    }
}
/* ... (at the end of the file, add this new section) ... */

/* --- Advanced Bill Payment Styles --- */
.form-label {
    display: block;
    margin-bottom: 15px;
    font-weight: 600;
    color: #333;
    font-size: 18px;
}
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}
.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background-color: #ffffff;
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    text-align: center;
}
.category-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-color: var(--primary-color, #0d6efd);
}
.category-item-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 10px;
    color: var(--primary-color, #0d6efd);
}
.category-item span {
    font-weight: 600;
    color: #374151;
}
.category-item-placeholder {
    height: 120px;
    background-color: #f0f2f5;
    border-radius: 12px;
    animation: pulse 1.5s infinite ease-in-out;
}
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}
.payment-summary {
    margin: 20px 0;
    padding: 15px;
    background-color: #f8f9fa;
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 8px;
}
.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 15px;
}
.summary-row.total {
    font-weight: 700;
    font-size: 18px;
    border-top: 2px solid var(--border-color, #e5e7eb);
    margin-top: 10px;
    padding-top: 10px;
}
.summary-row span:last-child {
    font-weight: 600;
}
/* ... (at the very end of the file, add this new section) ... */

/* --- NEW: Advanced Bill Payment Styles --- */
.form-label {
    display: block;
    margin-bottom: 15px;
    font-weight: 600;
    color: #555;
    font-size: 16px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 12px;
    border: 1px solid var(--border-color, #e5e7eb);
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    text-align: center;
}

.category-item:hover, .category-item.active {
    border-color: var(--primary-color, #0d6efd);
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.25);
    transform: translateY(-3px);
}

.category-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 10px;
    color: var(--primary-color, #0d6efd);
}

.category-item span {
    font-weight: 600;
    font-size: 14px;
}

.category-item-placeholder {
    height: 120px;
    background-color: #f0f2f5;
    border-radius: 12px;
    animation: pulse 1.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .5; }
}

.payment-summary {
    background-color: #f8f9fa;
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
    margin-bottom: 20px;
}
.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 15px;
}
.summary-row.total {
    font-weight: 700;
    font-size: 18px;
    border-top: 1px solid var(--border-color, #e5e7eb);
    margin-top: 10px;
    padding-top: 10px;
}
/* --- NEW: Supercharged Authentication V2 Layout & Forms --- */

.auth-page-v2 {
    margin: 0;
    padding: 0;
    overflow: hidden; /* Prevent scrollbars from the wrapper */
}

.auth-wrapper {
    display: flex;
    width: 100%;
    height: 100vh;
}

/* Branding side (left) */
.auth-branding {
    width: 45%;
    background: #111827; /* Dark gray */
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
    position: relative;
    overflow: hidden;
}

/* Animated background effect */
.auth-branding::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        #3b82f6, #60a5fa, #93c5fd, #60a5fa, #3b82f6, transparent, transparent, #3b82f6
    );
    animation: rotate 15s linear infinite;
    opacity: 0.1;
}

@keyframes rotate {
    100% {
        transform: rotate(1turn);
    }
}

.branding-content {
    text-align: center;
    animation: fadeIn 1s ease-in-out;
    z-index: 1;
}

.branding-logo {
    max-width: 120px;
    margin-bottom: 24px;
    filter: brightness(0) invert(1); /* Make logo white */
}

.branding-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.branding-content p {
    font-size: 1.1rem;
    color: #d1d5db; /* Lighter gray */
    max-width: 400px;
    line-height: 1.6;
    margin-bottom: 32px;
}

.feature-pills {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.feature-pills span {
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 9999px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Form side (right) */
.auth-form-container {
    width: 55%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    background-color: #ffffff;
    animation: slideInFromRight 0.8s ease-in-out;
}

.form-header {
    text-align: center;
    margin-bottom: 24px;
}
.form-header h1 {
    font-size: 2rem;
    color: #1f2937;
    font-weight: 700;
    margin-bottom: 8px;
}
.form-header p {
    font-size: 1rem;
    color: #6b7280;
}

.auth-form {
    width: 100%;
    max-width: 400px;
}
.form-content {
    width: 100%;
}

.input-wrapper {
    position: relative;
}
.input-wrapper svg {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"] {
    padding-left: 45px; /* Make space for the icon */
}

/* (You can keep most of your existing .form-group, .btn, .flash-message styles here) */

/* --- Mobile View & Animations --- */
@media (max-width: 992px) {
    .auth-branding {
        display: none; /* Hide branding side on tablets and mobile */
    }
    .auth-form-container {
        width: 100%;
        animation: fadeIn 0.8s ease-in-out;
    }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInFromRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Ensure the rest of your form styles from previous batches are present */
/* For example: .form-group, .btn, .flash-message, etc. */
/* I am including them here for completeness */
.form-group { margin-bottom: 20px; width: 100%; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; color: #555; font-size: 14px; }
.form-group input[type="text"], .form-group input[type="email"], .form-group input[type="password"], .form-group input[type="tel"], .form-group select { width: 100%; padding: 12px 15px; border: 1px solid #ced4da; border-radius: 8px; font-size: 16px; color: #495057; background-color: #f8f9fa; transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out; }
.form-group input:focus, .form-group select:focus { outline: none; border-color: #86b7fe; background-color: #fff; box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.25); }
.form-actions { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; font-size: 14px; }
.checkbox-group { display: flex; align-items: center; gap: 8px; }
.btn-primary { background-color: #0d6efd; color: #ffffff; width: 100%; box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3); }
.btn-primary:hover { background-color: #0b5ed7; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(13, 110, 253, 0.4); }
.auth-link { margin-top: 25px; font-size: 15px; color: #666; text-align: center;}
.auth-link a { font-weight: 600; color: #0d6efd; }
.flash-message { padding: 15px 20px; margin-bottom: 20px; border-radius: 8px; font-weight: 500; text-align: left; }
.flash-message.success { background-color: #d1e7dd; color: #0f5132; border: 1px solid #badbcc; }
.flash-message.error { background-color: #f8d7da; color: #842029; border: 1px solid #f5c2c7; }
.error-message { color: #dc3545; font-size: 13px; margin-top: 6px; }
/* ... (at the very end of the file, add this new style) ... */

/* --- "More" Page Logout Link Style --- */
.logout-link .option-icon {
    color: var(--danger-text, #842029);
}
.logout-link .option-details h3 {
    color: var(--danger-text, #842029);
}
/* ... (at the very end of the file, add this new section) ... */

/* --- Static Page Styles (About, Terms, Support) --- */
.static-page-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color, #e5e7eb);
}
.static-page-header h1 {
    font-size: 36px;
    color: var(--primary-color, #0d6efd);
    margin-bottom: 10px;
}
.static-page-header p {
    font-size: 18px;
    color: #6c757d;
}
.static-page-content {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.static-page-content h2 {
    font-size: 24px;
    margin-top: 20px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}
.static-page-content h2:first-child {
    margin-top: 0;
}
.static-page-content p {
    margin-bottom: 15px;
    line-height: 1.7;
}
.static-page-content ul {
    margin-left: 20px;
    margin-bottom: 15px;
}
.static-page-content li {
    margin-bottom: 10px;
}

/* Support Page Specific */
.support-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}
.faq-section h3, .contact-form-section h3 {
    font-size: 22px;
    margin-bottom: 20px;
}
.faq-item {
    margin-bottom: 20px;
}
.faq-item h4 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--primary-color, #0d6efd);
}
.contact-form-section .app-form {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* Footer Links */
.footer-links {
    margin-bottom: 10px;
}
.footer-links a {
    color: #bdc3c7;
    margin: 0 10px;
    font-size: 13px;
}
.footer-links a:hover {
    color: #ffffff;
}

@media (max-width: 768px) {
    .support-grid {
        grid-template-columns: 1fr;
    }
    .main-footer {
        display: block; /* Ensure footer is visible on mobile now */
    }
}
/* --- NEW: Supercharged Authentication Layout & Forms (V2) --- */
.auth-page {
    background-color: #f3f4f6; /* Fallback */
    overflow: hidden; /* Prevent scrollbars from layout shift */
}

.auth-wrapper {
    display: flex;
    width: 100vw;
    height: 100vh;
}

.auth-brand-panel {
    width: 45%;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    text-align: center;
}

.brand-content {
    max-width: 400px;
}

.brand-logo {
    max-width: 120px;
    margin-bottom: 30px;
}

.brand-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.brand-content p {
    font-size: 1rem;
    color: #e5e7eb;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.brand-features {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 2rem;
}

.feature-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 15px;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
}

.onboarding-carousel {
    display: none; /* Hidden on desktop */
}

.auth-form-panel {
    width: 55%;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.auth-container {
    width: 100%;
    max-width: 420px;
    text-align: left;
}

.auth-header {
    margin-bottom: 25px;
    text-align: left;
}

.auth-header h1 {
    color: #111827;
    font-size: 2rem;
    font-weight: 700;
}

.auth-header p {
    color: #6b7280;
    font-size: 1rem;
    margin-top: 8px;
}

.install-btn {
    width: 100%;
    margin-bottom: 20px;
    background-color: #e5e7eb;
    color: #374151;
    font-weight: 600;
    box-shadow: none;
}

.install-btn:hover {
    background-color: #d1d5db;
    transform: translateY(0);
    box-shadow: none;
}

/* --- Mobile View Overhaul --- */
@media (max-width: 768px) {
    .auth-wrapper {
        flex-direction: column;
    }
    
    .auth-brand-panel {
        width: 100%;
        min-height: 300px;
        height: 40vh;
        border-radius: 0 0 25px 25px;
        padding: 20px;
    }
    
    .brand-content h1, .brand-content p, .brand-features {
        display: none; /* Hide desktop text on mobile */
    }
    
    .onboarding-carousel {
        display: block; /* Show carousel on mobile */
        margin-top: 1rem;
    }
    .carousel-slide {
        display: none;
    }
    .carousel-slide.active {
        display: block;
    }
    .carousel-slide h2 { font-size: 1.5rem; margin-bottom: 0.5rem; }
    .carousel-slide p { font-size: 0.9rem; color: #d1d5db; }
    
    .carousel-dots {
        text-align: center;
        margin-top: 1.5rem;
    }
    .dot {
        height: 8px;
        width: 8px;
        margin: 0 5px;
        background-color: rgba(255, 255, 255, 0.4);
        border-radius: 50%;
        display: inline-block;
        transition: background-color 0.6s ease;
    }
    .dot.active {
        background-color: #ffffff;
    }

    .auth-form-panel {
        width: 100%;
        height: 60vh;
        align-items: flex-start;
        padding-top: 30px;
    }
    .auth-container {
        padding: 0 20px;
    }
}
/* ... (at the very end of the file, replace the old intro styles with these) ... */

/* --- NEW: Supercharged PWA Intro Screen --- */
.intro-page {
    background-color: #ffffff;
    display: block; /* Override flex from auth-page */
    padding: 0;
}

.intro-wrapper {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* Desktop View: Left Panel */
.intro-desktop-panel {
    width: 45%;
    flex-shrink: 0;
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 60px;
}
.intro-desktop-panel .logo {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 40px;
}
.intro-desktop-panel h1 {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}
.intro-desktop-panel .subtitle {
    font-size: 18px;
    line-height: 1.6;
    opacity: 0.9;
    max-width: 400px;
    margin-bottom: 30px;
}
.features-list {
    list-style: none;
    padding: 0;
}
.features-list li {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 99px;
    padding: 10px 20px;
    margin-bottom: 10px;
    display: inline-block;
    font-weight: 500;
}

/* Desktop View: Right Panel (contains the mobile view) */
.intro-mobile-panel {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f3f4f6;
}
.intro-container {
    width: 100%;
    max-width: 400px; /* Simulate phone width */
    height: 80%;
    max-height: 700px;
    background-color: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Swiper and Slides (for mobile and desktop's mobile preview) */
.swiper-container {
    width: 100%;
    flex-grow: 1;
}
.swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
}
.intro-slide-content {
    text-align: center;
    padding: 20px 30px;
}
.intro-image {
    max-width: 100%;
    height: 220px;
    margin-bottom: 30px;
}
.intro-title {
    font-size: 22px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}
.intro-text {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
}
.swiper-pagination-bullet {
    background: #ccc;
    opacity: 1;
}
.swiper-pagination-bullet-active {
    background: var(--primary-color, #0d6efd);
}

/* Action Buttons */
.intro-actions {
    padding: 20px 30px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.intro-actions .btn {
    width: 100%;
    padding: 14px;
    font-size: 16px;
}
.intro-actions .btn-secondary {
    background-color: transparent;
    color: var(--primary-color, #0d6efd);
    border: none;
    box-shadow: none;
}
.intro-actions .btn-secondary:hover {
    background-color: #e9ecef;
}

/* Mobile Responsiveness */
@media (max-width: 992px) {
    .intro-desktop-panel {
        display: none; /* Hide left panel on tablets and below */
    }
    .intro-wrapper {
        justify-content: center;
        align-items: center;
        background: #f3f4f6;
    }
    .intro-container {
        height: 90%;
        max-height: 800px;
    }
}

@media (max-width: 500px) {
    .intro-wrapper {
        padding: 0;
        background: #ffffff;
    }
    .intro-container {
        width: 100%;
        height: 100vh;
        max-width: none;
        border-radius: 0;
        box-shadow: none;
    }
}
/* ... (at the very end of the file, add this new section) ... */

/* --- NEW: Dashboard Recent Activity List --- */
.activity-list table {
    width: 100%;
    border-collapse: collapse;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.activity-list td {
    padding: 15px;
    border-bottom: 1px solid var(--border-color, #e5e7eb);
}
.activity-list tr:last-child td {
    border-bottom: none;
}
.activity-date {
    font-weight: 500;
    color: var(--text-light, #6b7280);
    width: 15%;
}
.activity-description {
    font-weight: 600;
}
.activity-amount {
    font-weight: 600;
    text-align: right;
    width: 20%;
}
.activity-status {
    text-align: center;
    width: 15%;
}
.activity-details {
    text-align: right;
    width: 5%;
}
.activity-details a {
    font-size: 24px;
    font-weight: bold;
}
.info-message {
    padding: 20px;
    background-color: #e9ecef;
    border-radius: 8px;
    text-align: center;
    color: #495057;
    margin-bottom: 20px;
}
/* ... (at the very end of the file, add this new section) ... */

/* --- Add Wallet Page Styles --- */
.add-wallet-header {
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}
.add-wallet-header h1 {
    font-size: 28px;
    color: var(--primary-color, #0d6efd);
    margin-bottom: 10px;
}
.add-wallet-header p {
    font-size: 16px;
    color: #666;
}

.app-form-container {
    max-width: 600px;
    margin: 0 auto;
    background-color: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.form-info-message {
    font-size: 14px;
    color: #6c757d;
    margin-top: 10px;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 6px;
}
/* ... (at the very end of the file, add this new section) ... */

/* --- NEW: Advanced Bill Payment Styles --- */
.form-label {
    display: block;
    margin-bottom: 15px;
    font-weight: 600;
    color: #555;
    font-size: 16px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 12px;
    border: 1px solid var(--border-color, #e5e7eb);
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    text-align: center;
}

.category-item:hover, .category-item.active {
    border-color: var(--primary-color, #0d6efd);
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.25);
    transform: translateY(-3px);
}

.category-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 10px;
    color: var(--primary-color, #0d6efd);
}

.category-item span {
    font-weight: 600;
    font-size: 14px;
}

.category-item-placeholder {
    height: 120px;
    background-color: #f0f2f5;
    border-radius: 12px;
    animation: pulse 1.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .5; }
}

.payment-summary {
    background-color: #f8f9fa;
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
    margin-bottom: 20px;
}
.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 15px;
}
.summary-row.total {
    font-weight: 700;
    font-size: 18px;
    border-top: 1px solid var(--border-color, #e5e7eb);
    margin-top: 10px;
    padding-top: 10px;
}
/* ... (at the very end of the file, add these styles) ... */

/* Phone Verification Page Styles */
.resend-options {
    margin-top: 25px;
    text-align: center;
    color: #666;
}
.resend-options p {
    margin-bottom: 15px;
}
.resend-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}
.resend-buttons .btn {
    width: auto;
    flex-grow: 1;
}
.btn.btn-success {
    background-color: #198754;
    color: #fff;
}
.btn.btn-success:hover {
    background-color: #157347;
}

/* Auth Form Divider */
.form-divider {
    border: none;
    border-top: 1px solid #e5e7eb;
    margin: 25px 0;
}

/* Mobile Responsiveness for Auth Forms */
@media (max-width: 500px) {
    .auth-container {
        padding: 20px;
        border-top-width: 4px;
        margin-top: 20px;
        margin-bottom: 20px;
    }
    .auth-header h1 {
        font-size: 24px;
    }
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    .form-group.half-width {
        width: 100%;
    }
    /* Make country code dropdown and phone input stack on smallest screens */
    .phone-input-group {
        flex-direction: column;
        gap: 10px;
    }
    .country-code-select {
        border-radius: 8px !important;
    }
    .phone-input-group input[type="tel"] {
        border-radius: 8px !important;
        border-left: 1px solid #ced4da;
    }
}
/* Ensure auth page allows scrolling on mobile */
@media (max-width: 500px) {
    .auth-page {
        min-height: 0; /* Remove fixed viewport height */
        height: auto; /* Allow natural height */
        overflow-y: auto; /* Enable vertical scrolling */
        padding-bottom: 20px; /* Add padding to ensure button is not cut off */
    }
    .auth-container {
        padding: 20px;
        max-height: none; /* Remove max height restriction */
        overflow: visible; /* Ensure content isn't clipped */
    }
    .form-group {
        margin-bottom: 15px; /* Reduce spacing for mobile */
    }
    .btn-primary {
        width: 100%; /* Ensure button spans full width */
        margin-top: 15px; /* Add space above button */
    }
}
/* ... (at the end of the file, add these new styles) ... */

/* Transaction Detail Header Actions */
.transaction-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Allow wrapping on small screens */
}
.header-actions {
    display: flex;
    gap: 10px;
}

/* Receipt Card Header */
.receipt-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}
.receipt-logo {
    max-width: 120px;
    margin-bottom: 10px;
}
.receipt-header h2 {
    font-size: 24px;
    color: var(--text-color);
}

/* Styles for when html2canvas is capturing the element */
.transaction-details-card.capturing {
    box-shadow: none;
    border: 1px solid var(--border-color);
}
/* ... (at the end of the file, add these new styles) ... */

/* --- VERIFICATION PROMPT ON DASHBOARD --- */
.verification-prompt {
    background-color: var(--warning-bg);
    color: var(--warning-text);
    border: 1px solid #ffe58f;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}
.prompt-icon svg {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}
.prompt-text h3 {
    font-size: 18px;
    margin-bottom: 5px;
}
.prompt-text p {
    margin: 0;
}
.verification-prompt .btn {
    width: auto;
    margin-left: auto;
    flex-shrink: 0;
}

/* --- TRANSACTION PIN MODAL --- */
.modal {
    display: none;
    position: fixed;
    z-index: 1050;
    left: 0; top: 0;
    width: 100%; height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
}
.modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 400px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}
.modal-close {
    color: #aaa;
    position: absolute;
    top: 10px; right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}
.modal-content h3 {
    margin-bottom: 10px;
    font-size: 20px;
}
.modal-content p {
    margin-bottom: 20px;
    color: var(--text-light);
}
.modal-content input[type="password"] {
    text-align: center;
    font-size: 24px;
    letter-spacing: 1em;
}
/* ... (at the end of the file, add these new styles) ... */

/* --- DASHBOARD TABS --- */
.dashboard-tabs {
    display: flex;
    gap: 10px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 30px;
}
.tab-link {
    background: none;
    border: none;
    padding: 15px 20px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    color: var(--text-light);
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease-in-out;
}
.tab-link:hover {
    color: var(--text-color);
}
.tab-link.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}
.tab-content {
    display: none;
}
.tab-content.active {
    display: block;
}

/* --- BILL PAYMENT WORKFLOW --- */
.bill-payment-workflow h4 {
    font-size: 18px;
    color: var(--text-color);
    margin-bottom: 20px;
}
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}
.category-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}
.category-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.25);
    transform: translateY(-2px);
}
.category-item.active {
    border-color: var(--primary-color);
    background-color: #eef2ff;
    font-weight: 600;
}
.category-icon {
    margin-bottom: 10px;
}
.category-icon svg {
    width: 32px;
    height: 32px;
    color: var(--primary-color);
}

/* --- ACTIVITY LIST ON DASHBOARD --- */
.activity-list table {
    width: 100%;
    border-collapse: collapse;
}
.activity-list td {
    padding: 15px 10px;
    border-bottom: 1px solid var(--border-color);
}
.activity-list tr:last-child td {
    border-bottom: none;
}
.activity-date {
    font-weight: 500;
    color: var(--text-light);
}
.activity-description {
    font-weight: 500;
}
.activity-amount {
    text-align: right;
    font-weight: 600;
}
.activity-details a {
    font-size: 20px;
    font-weight: bold;
    display: block;
    text-align: center;
}

/* ... (at the end of the main.css file) ... */

/* --- BILL PAYMENT CATEGORIES (DASHBOARD) --- */
.bill-categories-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.bill-category-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.bill-category-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.provider-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    flex-grow: 1; /* Allows this to take up space, pushing button to bottom */
}

.provider-pill {
    background-color: #e9ecef;
    color: #495057;
    padding: 4px 10px;
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 500;
}

.bill-category-card .btn {
    width: 100%;
    margin-top: auto; /* Pushes button to the bottom */
}
/* ... (at the end of the file, add these new styles) ... */

/* --- CRYPTO WALLETS PAGE --- */
.crypto-header {
    margin-bottom: 30px;
    text-align: center;
}
.crypto-header h1 { font-size: 32px; color: var(--primary-color); margin-bottom: 10px; }
.crypto-header p { font-size: 18px; color: #666; }
.crypto-card .wallet-icon { background-color: #f8f9fa; border: 1px solid #dee2e6; }
.crypto-card .currency-symbol { font-size: 20px; font-weight: bold; color: #000; }
.crypto-card .balance { font-size: 20px; }

/* Modal Styles (can be reused) */
.modal {
    display: none; position: fixed; z-index: 1001; left: 0; top: 0;
    width: 100%; height: 100%; overflow: auto; background-color: rgba(0,0,0,0.5);
}
.modal-content {
    background-color: #fefefe; margin: 15% auto; padding: 25px;
    border-radius: 8px; width: 90%; max-width: 500px; position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}
.modal-close {
    color: #aaa; float: right; font-size: 28px; font-weight: bold; cursor: pointer;
}
#deposit-address-content { text-align: center; }
#deposit-address-content .qr-code { max-width: 200px; margin: 20px auto; display: block; }
#deposit-address-content .copy-input-group { margin-top: 15px; }
.deposit-warning {
    background-color: var(--warning-bg); color: var(--warning-text);
    padding: 15px; border-radius: 6px; font-size: 14px; text-align: left;
    margin-top: 20px;
}
.loader {
    border: 4px solid #f3f3f3; border-radius: 50%; border-top: 4px solid var(--primary-color);
    width: 40px; height: 40px; animation: spin 1s linear infinite; margin: 20px auto;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
/* ... (at the end of the file, add these new styles) ... */

/* --- DASHBOARD TABS --- */
.dashboard-tabs {
    display: flex;
    gap: 10px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 30px;
    overflow-x: auto; /* Allow horizontal scroll on mobile */
    -webkit-overflow-scrolling: touch;
}
.tab-link {
    background: none;
    border: none;
    padding: 15px 20px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    color: var(--text-light);
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease-in-out;
    white-space: nowrap; /* Prevent tab names from wrapping */
}
.tab-link:hover { color: var(--text-color); }
.tab-link.active { color: var(--primary-color); border-bottom-color: var(--primary-color); }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* --- CRYPTO WALLETS ON DASHBOARD --- */
.crypto-card .wallet-icon {
    background-color: #f8f9fa; /* Lighter background for crypto */
    border: 1px solid #dee2e6;
}
.crypto-card .currency-symbol {
    font-size: 20px;
    font-weight: bold;
    color: #000;
}
.crypto-card .balance {
    font-size: 20px;
}
.crypto-card .btn {
    width: 100%;
}

/* --- BILL PAYMENT CATEGORIES (DASHBOARD) --- */
.bill-categories-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); /* Adjusted for smaller cards */
    gap: 24px;
}
.bill-category-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 20px; /* Reduced padding */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center; /* Center items */
    text-align: center;
}
.bill-category-card h3 {
    font-size: 16px; /* Smaller font for card title */
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 10px;
    flex-grow: 1; /* Push providers and button down */
}
.provider-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Center pills */
    gap: 5px; /* Smaller gap */
    margin-bottom: 15px;
}
.provider-pill {
    background-color: #e9ecef;
    color: #495057;
    padding: 3px 8px; /* Smaller padding */
    border-radius: 9999px;
    font-size: 11px; /* Smaller font */
    font-weight: 500;
    white-space: nowrap;
}
.bill-category-card .btn {
    width: 100%;
    margin-top: auto;
    font-size: 13px; /* Smaller button */
    padding: 8px;
}

/* --- RECENT ACTIVITY LIST ON DASHBOARD --- */
.activity-list table { width: 100%; border-collapse: collapse; }
.activity-list td { padding: 15px 10px; border-bottom: 1px solid var(--border-color); }
.activity-list tr:last-child td { border-bottom: none; }
.activity-date { font-weight: 500; color: var(--text-light); }
.activity-description { font-weight: 500; }
.activity-amount { text-align: right; font-weight: 600; }
.activity-details a { font-size: 20px; font-weight: bold; display: block; text-align: center; }

/* --- RESPONSIVE ADJUSTMENTS --- */
@media (max-width: 500px) {
    .dashboard-tabs { gap: 5px; } /* Smaller gap for tabs on very small screens */
    .tab-link { padding: 10px 12px; font-size: 14px; }
    .bill-categories-container { grid-template-columns: 1fr; } /* Stack categories vertically */
}
.bills-page-header {
    text-align: center;
    margin-bottom: 20px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.category-item {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    padding: 20px;
    text-align: center;
    transition: transform 0.2s;
}

.category-item:hover {
    transform: translateY(-5px);
}

.category-icon {
    font-size: 40px;
    margin-bottom: 10px;
}

.btn-primary {
    background: linear-gradient(to right, #007bff, #0056b3);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.btn-primary:hover {
    opacity: 0.9;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .category-grid {
        grid-template-columns: 1fr;
    }
}
/* ... (at the very end of the file, add these new styles) ... */

/* --- BILL PAYMENT WORKFLOW --- */
.bill-payment-workflow {
    background-color: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 30px;
}
.bill-payment-workflow h4 {
    font-size: 18px;
    color: var(--text-color);
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}
.category-grid, .biller-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}
.category-item, .biller-item {
    background-color: var(--light-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px 10px; /* Adjusted padding */
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100px;
}
.category-item:hover, .biller-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.25);
    transform: translateY(-2px);
}
.category-item.active, .biller-item.active {
    border-color: var(--primary-color);
    background-color: #eef2ff; /* Light blue background for active */
    font-weight: 600;
}
.category-icon, .biller-icon {
    margin-bottom: 10px;
}
.category-icon svg, .biller-icon svg {
    width: 32px;
    height: 32px;
    color: var(--primary-color);
}
.biller-item span {
    font-weight: 500;
    font-size: 14px;
}
.category-item-placeholder {
    background-color: #e0e0e0;
    border-radius: 8px;
    min-height: 100px;
    animation: pulse 1.5s infinite ease-in-out;
}
.loader {
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
@keyframes pulse {
    0% { opacity: 0.5; }
    50% { opacity: 1; }
    100% { opacity: 0.5; }
}

/* Payment Summary in Modal */
.payment-summary {
    background-color: var(--info-bg);
    border: 1px solid #91c7ee;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
    margin-bottom: 20px;
}
.payment-summary .summary-row {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    font-size: 15px;
}
.payment-summary .summary-row.total {
    font-weight: 700;
    font-size: 18px;
    border-top: 1px dashed #a8d5ff;
    margin-top: 10px;
    padding-top: 10px;
}

/* Modal specific styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
    display: flex; /* Use flex to center modal content */
    align-items: center;
    justify-content: center;
}
.modal-content {
    background-color: #fefefe;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    width: 90%;
    max-width: 450px;
    position: relative;
    text-align: left;
}
.modal-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    top: 10px;
    right: 20px;
}
.modal-close:hover,
.modal-close:focus {
    color: #333;
    text-decoration: none;
}
.modal-content h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--primary-color);
}
#modal-summary-content {
    margin-bottom: 20px;
    background-color: var(--light-bg);
    padding: 15px;
    border-radius: 8px;
}
#modal-summary-content .summary-row {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    font-size: 15px;
}
#modal-summary-content .summary-row.total {
    font-weight: 700;
    font-size: 18px;
    border-top: 1px dashed var(--border-color);
    margin-top: 10px;
    padding-top: 10px;
}
#modal-summary-content .summary-row span:first-child {
    color: var(--text-light);
}

/* Responsive for Bills */
@media (max-width: 500px) {
    .category-grid, .biller-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); /* Smaller grid items */
        gap: 15px;
    }
    .category-item, .biller-item {
        min-height: 80px;
        padding: 15px 5px;
    }
    .category-icon svg {
        width: 24px;
        height: 24px;
    }
    .modal-content {
        padding: 20px;
    }
}
/* ... (at the end of the file, add these new styles) ... */

/* --- BILL PAYMENT WORKFLOW --- */
.bill-payment-workflow h4 {
    font-size: 18px;
    color: var(--text-color);
    margin-bottom: 20px;
}
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}
.category-item, .biller-item, .product-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100px; /* Ensure consistent height */
}
.category-item:hover, .biller-item:hover, .product-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.25);
    transform: translateY(-2px);
}
.category-item.active, .biller-item.active, .product-item.active {
    border-color: var(--primary-color);
    background-color: #eef2ff;
    font-weight: 600;
}
.category-icon, .biller-icon { /* Reusing category-icon for biller if needed */
    margin-bottom: 10px;
}
.category-icon svg, .biller-icon svg {
    width: 32px;
    height: 32px;
    color: var(--primary-color);
}
.category-item-placeholder {
    background-color: #e0e0e0;
    border-radius: 8px;
    min-height: 100px;
    animation: pulse 1.5s infinite ease-in-out;
}
@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

.biller-grid { /* For displaying billers as cards */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}
.product-grid { /* For displaying products as cards */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}
.product-item p {
    font-size: 13px;
    color: var(--text-light);
}
.product-item .price {
    font-weight: 700;
    color: var(--primary-color);
    margin-top: 5px;
}

.payment-summary {
    background-color: var(--info-bg);
    border: 1px solid var(--primary-color);
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
    margin-bottom: 20px;
}
.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    font-size: 15px;
}
.summary-row.total {
    font-weight: 700;
    font-size: 18px;
    border-top: 1px solid var(--border-color);
    padding-top: 10px;
    margin-top: 10px;
}
/* ... (at the end of the file, add/modify these styles) ... */

/* --- NEW: Input Wrapper with Icons --- */
.input-wrapper {
    position: relative;
}

.input-wrapper svg {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #adb5bd;
}

.input-wrapper input,
.input-wrapper select {
    padding-left: 45px;
}

/* --- NEW: Improved Phone Number Input --- */
.phone-input-group {
    /* This style is now used for the input with the static code display */
    position: relative;
}

.phone-code-display {
    position: absolute;
    left: 1px;
    top: 1px;
    bottom: 1px;
    background-color: #e9ecef;
    border-right: 1px solid #ced4da;
    display: flex;
    align-items: center;
    padding: 0 15px;
    font-weight: 500;
    color: #495057;
    border-radius: 8px 0 0 8px;
}

.phone-input-group input[type="tel"] {
    padding-left: 80px; /* Adjust based on the width of your country code display */
}

/* --- Adjustments for mobile view --- */
@media (max-width: 500px) {
    .phone-input-group {
        /* No changes needed, the new single-field approach works better on mobile */
    }
}



