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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f0f4f8;
    color: #333;
}

/* NAVBAR */
.navbar {
    background: linear-gradient(135deg, #1a237e, #283593);
    color: #fff;
    padding: 14px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.navbar .brand { font-size: 22px; font-weight: 700; letter-spacing: 1px; }
.navbar a { color: #fff; text-decoration: none; margin-left: 18px; font-size: 14px; }
.navbar a:hover { text-decoration: underline; }
.wallet-badge {
    background: #43a047;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
}

/* AUTH */
.auth-container {
    max-width: 430px;
    margin: 60px auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.1);
    overflow: hidden;
}
.auth-header {
    background: linear-gradient(135deg, #1a237e, #283593);
    color: #fff;
    padding: 30px;
    text-align: center;
}
.auth-header h2 { font-size: 26px; margin-bottom: 4px; }
.auth-header p { font-size: 13px; opacity: 0.8; }
.auth-body { padding: 30px; }
.tab-buttons { display: flex; margin-bottom: 24px; border-bottom: 2px solid #e8eaf6; }
.tab-btn {
    flex: 1;
    padding: 12px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: #666;
    transition: 0.2s;
}
.tab-btn.active { color: #1a237e; border-bottom: 3px solid #1a237e; }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* FORMS */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: #555; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: border 0.2s;
}
.form-group input:focus, .form-group select:focus {
    border-color: #1a237e;
    outline: none;
    box-shadow: 0 0 0 3px rgba(26,35,126,0.08);
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.2s;
}
.btn-primary { background: #1a237e; color: #fff; width: 100%; }
.btn-primary:hover { background: #283593; }
.btn-success { background: #2e7d32; color: #fff; }
.btn-success:hover { background: #388e3c; }
.btn-danger { background: #c62828; color: #fff; }
.btn-danger:hover { background: #d32f2f; }
.btn-warning { background: #f57f17; color: #fff; }
.btn-sm { padding: 6px 14px; font-size: 13px; }

/* ALERTS */
.alert {
    padding: 12px 18px;
    border-radius: 8px;
    margin-bottom: 18px;
    font-size: 14px;
    font-weight: 500;
}
.alert-success { background: #e8f5e9; color: #2e7d32; border-left: 4px solid #4caf50; }
.alert-danger  { background: #ffebee; color: #c62828; border-left: 4px solid #f44336; }
.alert-info    { background: #e3f2fd; color: #1565c0; border-left: 4px solid #2196f3; }
.alert-warning { background: #fff8e1; color: #e65100; border-left: 4px solid #ff9800; }

/* DASHBOARD */
.container { max-width: 1100px; margin: 30px auto; padding: 0 20px; }

.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 30px; }
.stat-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    text-align: center;
}
.stat-card .icon { font-size: 36px; margin-bottom: 10px; }
.stat-card .value { font-size: 28px; font-weight: 700; color: #1a237e; }
.stat-card .label { font-size: 13px; color: #888; margin-top: 4px; }

.card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    overflow: hidden;
    margin-bottom: 24px;
}
.card-header {
    background: linear-gradient(135deg, #1a237e, #283593);
    color: #fff;
    padding: 18px 24px;
    font-size: 17px;
    font-weight: 600;
}
.card-body { padding: 24px; }

/* SERVICE CARDS */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.service-card {
    background: #fff;
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    border: 2px solid transparent;
}
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(26,35,126,0.15);
    border-color: #1a237e;
}
.service-card .s-icon { font-size: 48px; margin-bottom: 14px; }
.service-card h3 { font-size: 18px; color: #1a237e; margin-bottom: 8px; }
.service-card p { font-size: 13px; color: #777; margin-bottom: 14px; }
.fee-badge {
    display: inline-block;
    background: #e8eaf6;
    color: #1a237e;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
}

/* TABLE */
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { background: #e8eaf6; color: #1a237e; padding: 12px 16px; text-align: left; }
td { padding: 12px 16px; border-bottom: 1px solid #f0f0f0; }
tr:hover td { background: #fafafa; }

/* RESULT BOX */
.result-box {
    background: linear-gradient(135deg, #e8f5e9, #f1f8e9);
    border: 2px solid #66bb6a;
    border-radius: 12px;
    padding: 24px;
    margin-top: 20px;
}
.result-box h3 { color: #2e7d32; margin-bottom: 14px; font-size: 18px; }
.result-item { display: flex; margin-bottom: 10px; }
.result-item .key { font-weight: 600; width: 160px; color: #555; }
.result-item .val { color: #1a237e; font-weight: 700; font-size: 16px; }

/* WALLET */
.add-money-form { max-width: 400px; }

/* SIDEBAR (Admin) */
.admin-layout { display: flex; min-height: 100vh; }
.sidebar {
    width: 240px;
    background: linear-gradient(180deg, #1a237e, #0d47a1);
    color: #fff;
    padding: 20px 0;
    flex-shrink: 0;
}
.sidebar .brand { padding: 10px 20px 24px; font-size: 20px; font-weight: 700; border-bottom: 1px solid rgba(255,255,255,0.1); }
.sidebar a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 22px;
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: 0.2s;
}
.sidebar a:hover, .sidebar a.active { background: rgba(255,255,255,0.15); color: #fff; }
.admin-content { flex: 1; padding: 30px; background: #f0f4f8; overflow-x: auto; }
.admin-content h2 { font-size: 22px; color: #1a237e; margin-bottom: 24px; }

/* STATUS BADGES */
.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}
.badge-success { background: #e8f5e9; color: #2e7d32; }
.badge-danger  { background: #ffebee; color: #c62828; }
.badge-warning { background: #fff8e1; color: #e65100; }

/* RECHARGE */
.amount-options { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.amount-opt {
    border: 2px solid #1a237e;
    color: #1a237e;
    padding: 8px 18px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: 0.2s;
}
.amount-opt:hover, .amount-opt.selected { background: #1a237e; color: #fff; }

@media (max-width: 700px) {
    .admin-layout { flex-direction: column; }
    .sidebar { width: 100%; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
}
