/* ===== Reset & Design Tokens ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { overscroll-behavior: none; }
:root {
    --bg-1: #07080d;
    --bg-2: #0d1220;
    --bg-3: #111827;
    --surface: rgba(255,255,255,0.03);
    --surface-hover: rgba(255,255,255,0.06);
    --glass-border: rgba(255,255,255,0.08);
    --glass-border-hover: rgba(255,255,255,0.14);
    --text: #e4e7ef;
    --text-dim: #6b7280;
    --text-muted: #4b5563;
    --accent-1: #4f8cff;
    --accent-2: #7c5cfc;
    --accent-grad: linear-gradient(135deg, #4f8cff, #7c5cfc);
    --success: #34c759;
    --warning: #ff9f0a;
    --danger: #ff453a;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-pill: 9999px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --mono: 'SF Mono', 'Fira Code', 'Cascadia Code', 'Consolas', monospace;
    --blur: blur(20px);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
    --shadow-md: 0 8px 32px rgba(0,0,0,0.4);
    --shadow-glow: 0 0 20px rgba(79,140,255,0.15);
}

body {
    font-family: var(--font);
    background: var(--bg-1);
    background: linear-gradient(180deg, var(--bg-1) 0%, var(--bg-2) 40%, var(--bg-3) 100%);
    color: var(--text);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    overscroll-behavior: none;
}
body::before {
    content: '';
    position: fixed;
    top: -30%; left: -20%;
    width: 70%; height: 70%;
    background: radial-gradient(circle, rgba(79,140,255,0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}
body::after {
    content: '';
    position: fixed;
    bottom: -30%; right: -20%;
    width: 60%; height: 60%;
    background: radial-gradient(circle, rgba(124,92,252,0.05) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}
a { color: var(--accent-1); text-decoration: none; }

/* ===== Glass Card ===== */
.glass-card {
    background: var(--surface);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 28px;
    position: relative;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.glass-card:hover {
    border-color: var(--glass-border-hover);
    box-shadow: var(--shadow-sm);
}
.glass-card-lift:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ===== Logo ===== */
.app-logo { height: 48px; }

/* ===== Login / Signup ===== */
.login-container {
    display: flex; align-items: center; justify-content: center;
    min-height: 100vh; position: relative; z-index: 1;
}
.login-box {
    background: var(--surface);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 44px 40px;
    width: 400px;
    text-align: center;
    position: relative;
    animation: slideInUp 0.5s ease;
}
.login-box::before {
    content: '';
    position: absolute;
    top: -80px; left: 50%; transform: translateX(-50%);
    width: 160px; height: 160px;
    background: radial-gradient(circle, rgba(79,140,255,0.12) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.login-box h1 { font-size: 26px; margin-bottom: 4px; font-weight: 700; }
.login-box .subtitle { color: var(--text-dim); margin-bottom: 28px; font-size: 14px; }

/* ===== Forms ===== */
.form-group { margin-bottom: 16px; text-align: left; }
.form-group label { display: block; font-size: 13px; color: var(--text-dim); margin-bottom: 6px; font-weight: 500; }
input[type="text"], input[type="password"], input[type="tel"], input[type="number"], input[type="email"], select, textarea {
    width: 100%;
    padding: 10px 14px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: var(--font);
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
input:focus, select:focus, textarea:focus {
    border-color: var(--accent-1);
    box-shadow: 0 0 0 3px rgba(79,140,255,0.1);
}
.form-row { display: flex; gap: 12px; }
.form-row .form-group { flex: 1; }

/* ===== Buttons ===== */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 10px 20px;
    border: none; border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 14px; font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
    position: relative;
}
.btn:disabled { opacity: 0.35; cursor: not-allowed; }
.btn-primary {
    background: var(--accent-grad);
    color: #fff;
    box-shadow: 0 4px 15px rgba(79,140,255,0.25);
}
.btn-primary:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(79,140,255,0.35);
}
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover:not(:disabled) { background: #2ab34a; transform: translateY(-1px); }
.btn-warning { background: var(--warning); color: #000; }
.btn-warning:hover:not(:disabled) { background: #e68f09; transform: translateY(-1px); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover:not(:disabled) { background: #e03d33; transform: translateY(-1px); }
.btn-cancel { background: transparent; border: 1px solid var(--danger); color: var(--danger); }
.btn-cancel:hover:not(:disabled) { background: var(--danger); color: #fff; }
.btn-outline { background: transparent; border: 1px solid var(--glass-border); color: var(--text-dim); }
.btn-outline:hover { border-color: var(--accent-1); color: var(--text); }
.btn-full { width: 100%; }
.btn-sm { padding: 6px 12px; font-size: 12px; }

/* ===== Alert ===== */
.alert { padding: 10px 14px; border-radius: var(--radius-sm); margin-bottom: 16px; font-size: 13px; }
.alert-error { background: rgba(255,69,58,0.1); border: 1px solid rgba(255,69,58,0.3); color: var(--danger); }
.alert-success { background: rgba(52,199,89,0.1); border: 1px solid rgba(52,199,89,0.3); color: var(--success); }

/* ===== App Layout ===== */
.app-container { max-width: 840px; margin: 0 auto; padding: 0 16px; position: relative; z-index: 1; }
.app-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 0; border-bottom: 1px solid var(--glass-border);
}
.app-header h1 { font-size: 20px; font-weight: 700; }
.header-right { display: flex; align-items: center; gap: 12px; }
.username { color: var(--text-dim); font-size: 14px; }

/* Connection indicator */
.connection-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--danger);
    display: inline-block;
    transition: background 0.3s;
}
.connection-dot.connected { background: var(--success); }

/* ===== Balance Widget ===== */
.balance-widget {
    background: var(--accent-grad);
    border-radius: var(--radius-lg);
    padding: 24px 28px;
    margin: 20px 0;
    position: relative;
    overflow: hidden;
    color: #fff;
}
.balance-widget::before {
    content: '';
    position: absolute;
    top: -50%; right: -30%;
    width: 200px; height: 200px;
    background: radial-gradient(circle, rgba(255,255,255,0.12) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.balance-widget.low-balance {
    animation: pulse-danger 2s infinite;
}
.balance-header {
    display: flex; justify-content: space-between; align-items: flex-start;
    margin-bottom: 12px;
}
.balance-label { font-size: 13px; opacity: 0.8; font-weight: 500; }
.balance-amount {
    font-size: 36px; font-weight: 800;
    font-family: var(--mono);
    letter-spacing: -1px;
    line-height: 1;
}
.balance-meta {
    display: flex; gap: 24px; margin-top: 12px;
    font-size: 12px; opacity: 0.75;
}
.balance-meta span { display: flex; align-items: center; gap: 4px; }

/* ===== Stats Grid ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}
.stat-card {
    background: var(--surface);
    backdrop-filter: var(--blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 18px 16px;
    position: relative;
    overflow: hidden;
    animation: slideInUp 0.4s ease backwards;
}
.stat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: var(--accent-grad);
}
.stat-card:nth-child(1) { animation-delay: 0.05s; }
.stat-card:nth-child(2) { animation-delay: 0.1s; }
.stat-card:nth-child(3) { animation-delay: 0.15s; }
.stat-card:nth-child(4) { animation-delay: 0.2s; }
.stat-label { font-size: 12px; color: var(--text-dim); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.5px; }
.stat-value {
    font-size: 24px; font-weight: 700;
    font-family: var(--mono);
    background: var(--accent-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.stat-sub { font-size: 11px; color: var(--text-muted); margin-top: 4px; }

/* ===== Dialer Panel ===== */
.dialer-panel { padding: 24px 0; text-align: center; }
.dialer-card {
    background: var(--surface);
    backdrop-filter: var(--blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
}

/* Phone input */
.phone-section { margin-bottom: 28px; }
.input-group {
    display: flex; gap: 8px;
    max-width: 420px; margin: 0 auto;
}
.input-group input { flex: 1; text-align: center; font-size: 18px; letter-spacing: 1px; }
.input-group .btn { min-width: 90px; font-size: 16px; }

/* Caller ID */
.callerid-section { margin-bottom: 16px; }
.callerid-group {
    max-width: 420px; margin: 0 auto;
    align-items: center;
}
.callerid-label {
    font-size: 12px; color: var(--text-dim); white-space: nowrap;
    margin-right: 4px;
}
.callerid-group input {
    flex: 1; font-size: 14px; text-align: center; letter-spacing: 0.5px;
    padding: 8px 12px;
}
.callerid-status { font-size: 12px; white-space: nowrap; min-width: 50px; }
.callerid-status.active { color: var(--accent-1); }
.callerid-status.success { color: var(--success); }
.callerid-status.error { color: var(--danger); }

/* Digit boxes */
.digit-section { margin-bottom: 24px; }
.digit-boxes {
    display: flex; justify-content: center; gap: 12px;
    margin-bottom: 8px;
}
.digit-box {
    width: 58px; height: 72px;
    background: var(--surface);
    border: 2px solid var(--glass-border);
    border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center;
    font-size: 30px; font-weight: 700;
    font-family: var(--mono);
    transition: all 0.3s ease;
    backdrop-filter: var(--blur);
}
.digit-box.filled {
    border-color: var(--accent-1);
    background: rgba(79,140,255,0.08);
    box-shadow: 0 0 16px rgba(79,140,255,0.2), inset 0 0 12px rgba(79,140,255,0.05);
    animation: digitReveal 0.4s ease;
}
.digit-box.active {
    border-color: var(--warning);
    animation: digitBlink 1s infinite;
}

@keyframes digitReveal {
    0% { transform: scale(0.8) rotateX(40deg); opacity: 0.5; }
    60% { transform: scale(1.05) rotateX(-5deg); }
    100% { transform: scale(1) rotateX(0); opacity: 1; }
}
@keyframes digitBlink {
    0%, 100% { border-color: var(--warning); }
    50% { border-color: var(--glass-border); }
}
.attempt-info { font-size: 13px; color: var(--text-dim); }

/* Status */
.status-section { margin-bottom: 24px; }
.status-text {
    font-size: 15px; color: var(--text-dim);
    padding: 8px 16px;
    display: inline-block;
}
.status-text.active { color: var(--accent-1); }
.status-text.success { color: var(--success); }
.status-text.error { color: var(--danger); }

/* Action buttons */
.action-section { margin-bottom: 16px; }
.decision-buttons {
    display: flex; justify-content: center; gap: 12px;
    margin-bottom: 12px;
}
.decision-buttons .btn { min-width: 130px; padding: 12px 24px; font-size: 15px; border-radius: var(--radius-md); }

/* ===== Tab Nav (Pill style) ===== */
.tab-section { border-top: 1px solid var(--glass-border); padding-top: 20px; margin-top: 8px; }
.tab-nav {
    display: inline-flex;
    background: var(--surface);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-pill);
    padding: 3px;
    margin-bottom: 20px;
}
.tab-pill {
    padding: 8px 20px;
    background: transparent;
    border: none;
    border-radius: var(--radius-pill);
    color: var(--text-dim);
    cursor: pointer;
    font-family: var(--font);
    font-size: 13px;
    font-weight: 500;
    transition: all 0.25s ease;
}
.tab-pill.active {
    background: var(--accent-grad);
    color: #fff;
    box-shadow: 0 2px 8px rgba(79,140,255,0.3);
}
.tab-pill:hover:not(.active) { color: var(--text); }

/* ===== Data Table ===== */
.table-wrapper { overflow-x: auto; }
.data-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
.data-table th {
    text-align: left; padding: 10px 12px;
    color: var(--text-dim); font-weight: 600;
    border-bottom: 1px solid var(--glass-border);
    position: sticky; top: 0;
    background: var(--bg-2);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.data-table td {
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.data-table tr:hover td { background: var(--surface-hover); }

/* ===== Audio Grid ===== */
.audio-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.audio-card {
    background: var(--surface);
    backdrop-filter: var(--blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 16px;
}
.audio-card h4 { font-size: 14px; margin-bottom: 8px; text-transform: capitalize; }
.audio-card .audio-status { font-size: 12px; color: var(--text-dim); margin-bottom: 8px; }
.audio-card .audio-status.uploaded { color: var(--success); }
.audio-card .audio-status.missing { color: var(--danger); }
.audio-card .audio-actions { display: flex; gap: 8px; margin-top: 8px; }

/* ===== Admin Panel ===== */
.admin-panel { padding: 20px 0; }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.section-header h2 { font-size: 18px; font-weight: 600; }

/* Admin search/filter bar */
.filter-bar {
    display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap;
}
.filter-bar input, .filter-bar select {
    padding: 8px 12px;
    font-size: 13px;
    max-width: 250px;
}

/* ===== Modal ===== */
.modal-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    display: flex; align-items: center; justify-content: center;
    z-index: 1000;
}
.modal-content {
    background: var(--bg-2);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 28px;
    width: 520px; max-width: 92vw;
    animation: slideInUp 0.3s ease;
}
.modal-content h3 { margin-bottom: 16px; font-weight: 600; }
.modal-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 16px; }

.checkbox { display: flex; align-items: center; gap: 6px; font-size: 13px; cursor: pointer; }
.checkbox input { width: auto; }

/* ===== Status Badges ===== */
.badge {
    padding: 3px 10px; border-radius: var(--radius-pill); font-size: 11px; font-weight: 600;
}
.badge-success { background: rgba(52,199,89,0.15); color: var(--success); }
.badge-danger { background: rgba(255,69,58,0.15); color: var(--danger); }
.badge-warning { background: rgba(255,159,10,0.15); color: var(--warning); }
.badge-info { background: rgba(79,140,255,0.15); color: var(--accent-1); }

/* ===== Toast Notification ===== */
.toast-container {
    position: fixed; bottom: 24px; right: 24px;
    z-index: 9999;
    display: flex; flex-direction: column; gap: 8px;
}
.toast-notification {
    background: var(--bg-2);
    backdrop-filter: var(--blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 14px 20px;
    color: var(--text);
    font-size: 13px;
    box-shadow: var(--shadow-md);
    animation: slideInUp 0.3s ease;
    min-width: 240px;
    max-width: 360px;
}
.toast-notification.toast-success { border-left: 3px solid var(--success); }
.toast-notification.toast-info { border-left: 3px solid var(--accent-1); }
.toast-notification.toast-warning { border-left: 3px solid var(--warning); }
.toast-notification.toast-error { border-left: 3px solid var(--danger); }

/* ===== Plan Cards ===== */
.plans-page { padding: 24px 0; text-align: center; }
.plans-header { margin-bottom: 32px; }
.plans-header h2 { font-size: 26px; margin-bottom: 8px; font-weight: 700; }
.plans-header p { color: var(--text-dim); }

.plans-grid {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 16px; margin-bottom: 32px;
}
.plan-card {
    background: var(--surface);
    backdrop-filter: var(--blur);
    border: 2px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 28px 20px;
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
}
.plan-card:hover {
    border-color: var(--accent-1);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}
.plan-card.popular { border-color: var(--accent-1); }
.plan-badge {
    position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
    background: var(--accent-grad); color: #fff; padding: 3px 14px;
    border-radius: var(--radius-pill); font-size: 10px; font-weight: 700; letter-spacing: 1px;
}
.plan-duration { font-size: 18px; font-weight: 600; margin-bottom: 10px; }
.plan-price {
    font-size: 38px; font-weight: 800; margin-bottom: 10px;
    font-family: var(--mono);
    background: var(--accent-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.plan-desc { font-size: 13px; color: var(--text-dim); margin-bottom: 18px; }

/* ===== Topup Cards ===== */
.topup-section { margin-top: 16px; padding-top: 24px; border-top: 1px solid var(--glass-border); }
.topup-section h2 { font-size: 22px; margin-bottom: 8px; font-weight: 700; text-align: center; }
.topup-section p { color: var(--text-dim); font-size: 14px; margin-bottom: 20px; text-align: center; }

.topup-grid {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 14px; margin-bottom: 24px;
}
.topup-card {
    background: var(--surface);
    backdrop-filter: var(--blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 22px 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease;
}
.topup-card:hover {
    border-color: var(--accent-2);
    transform: translateY(-2px);
    box-shadow: 0 0 16px rgba(124,92,252,0.15);
}
.topup-credit { font-size: 22px; font-weight: 700; font-family: var(--mono); color: var(--text); margin-bottom: 6px; }
.topup-price { font-size: 14px; color: var(--text-dim); margin-bottom: 12px; }

/* ===== Payment Status ===== */
.status-page {
    display: flex; align-items: center; justify-content: center;
    min-height: 60vh; padding: 24px 0;
}
.status-card {
    background: var(--surface);
    backdrop-filter: var(--blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 48px 40px;
    text-align: center; max-width: 480px; width: 100%;
    animation: slideInUp 0.4s ease;
}
.status-icon { margin-bottom: 24px; }
.status-card h2 { font-size: 22px; margin-bottom: 8px; }
.status-card p { color: var(--text-dim); margin-bottom: 16px; }
.status-details { font-size: 13px; color: var(--text-dim); margin-bottom: 20px; }
.status-actions { margin-top: 20px; }
.icon-check { font-size: 48px; color: var(--success); }
.icon-wait { font-size: 48px; color: var(--warning); }
.icon-fail { font-size: 48px; color: var(--danger); }

/* Spinners */
.spinner {
    width: 20px; height: 20px; border: 2px solid var(--glass-border);
    border-top-color: var(--accent-1); border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
.spinner-lg {
    width: 48px; height: 48px; border: 3px solid var(--glass-border);
    border-top-color: var(--accent-1); border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto;
}
.payment-notice {
    display: flex; align-items: center; justify-content: center; gap: 12px;
    padding: 16px; color: var(--text-dim);
}

/* ===== Settings Tab ===== */
.settings-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.settings-card {
    background: var(--surface);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 18px;
}
.settings-card h4 { font-size: 13px; color: var(--text-dim); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.5px; }
.settings-value { font-size: 15px; font-weight: 500; }

/* ===== System Health Indicators ===== */
.health-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}
.health-card {
    background: var(--surface);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 20px;
    text-align: center;
}
.health-indicator {
    width: 12px; height: 12px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 6px;
}
.health-indicator.healthy { background: var(--success); box-shadow: 0 0 8px rgba(52,199,89,0.5); }
.health-indicator.unhealthy { background: var(--danger); box-shadow: 0 0 8px rgba(255,69,58,0.5); }

/* ===== Animations ===== */
@keyframes slideInUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse-danger {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255,69,58,0.3); }
    50% { box-shadow: 0 0 0 10px rgba(255,69,58,0); }
}
@keyframes digitPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* ===== Activity Feed ===== */
.activity-feed { max-height: 360px; overflow-y: auto; }
.activity-item {
    display: flex; gap: 12px; align-items: flex-start;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    font-size: 13px;
}
.activity-item:last-child { border-bottom: none; }
.activity-dot {
    width: 8px; height: 8px; border-radius: 50%;
    margin-top: 5px; flex-shrink: 0;
}
.activity-time { color: var(--text-muted); font-size: 11px; margin-top: 2px; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .plans-grid { grid-template-columns: repeat(2, 1fr); }
    .topup-grid { grid-template-columns: repeat(2, 1fr); }
    .settings-grid { grid-template-columns: 1fr; }
    .health-grid { grid-template-columns: 1fr 1fr; }
    .app-container { max-width: 100%; }
    .balance-amount { font-size: 28px; }
}

@media (max-width: 480px) {
    .digit-box { width: 46px; height: 58px; font-size: 24px; }
    .digit-boxes { gap: 8px; }
    .decision-buttons { flex-direction: column; align-items: center; }
    .audio-grid { grid-template-columns: 1fr; }
    .form-row { flex-direction: column; gap: 0; }
    .plans-grid { grid-template-columns: 1fr; }
    .topup-grid { grid-template-columns: 1fr 1fr; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .balance-meta { flex-direction: column; gap: 6px; }
    .tab-nav { flex-wrap: wrap; border-radius: var(--radius-md); }
    .login-box { padding: 32px 24px; width: 92vw; }
    .health-grid { grid-template-columns: 1fr; }
    .filter-bar { flex-direction: column; }
    .filter-bar input, .filter-bar select { max-width: 100%; }
}
