/* ===== RESET ===== */
* { margin:0; padding:0; box-sizing:border-box; }
:root {
    --primary: #6C63FF;
    --primary-dark: #5A52D5;
    --secondary: #FF6B6B;
    --success: #2ECC71;
    --warning: #F39C12;
    --dark: #1A1A2E;
    --gray: #636E72;
    --light: #F8F9FA;
    --white: #FFFFFF;
    --shadow: 0 20px 60px rgba(108,99,255,0.2);
    --radius: 16px;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #0F0C29, #302B63, #24243E);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}

/* ===== PARTICLES ===== */
.particles-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}
.particle {
    position: absolute;
    background: rgba(108,99,255,0.15);
    border-radius: 50%;
    animation: float 15s infinite alternate ease-in-out;
}
@keyframes float {
    0% { transform: translateY(0) rotate(0deg) scale(1); }
    100% { transform: translateY(-200px) rotate(360deg) scale(1.5); }
}

/* ===== CONTAINER ===== */
.container {
    position: relative;
    z-index: 1;
    max-width: 500px;
    width: 100%;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 30px 25px;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 30px 80px rgba(0,0,0,0.5);
    animation: slideUp 0.6s ease;
}
@keyframes slideUp {
    from { opacity:0; transform:translateY(40px) scale(0.95); }
    to { opacity:1; transform:translateY(0) scale(1); }
}

/* ===== LOGO ===== */
.logo-section {
    text-align: center;
    margin-bottom: 25px;
}
.logo-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 32px;
    color: white;
    box-shadow: 0 10px 30px rgba(108,99,255,0.3);
}
.logo-section h1 {
    font-size: 28px;
    font-weight: 900;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.logo-section .subtitle {
    color: rgba(255,255,255,0.6);
    font-size: 14px;
    letter-spacing: 2px;
}

/* ===== ALERTS ===== */
.alert {
    padding: 14px 18px;
    border-radius: 12px;
    margin-bottom: 15px;
    font-weight: 500;
    animation: slideIn 0.4s ease;
    transition: all 0.3s;
}
.alert-error { background: rgba(255,107,107,0.15); color: #FF6B6B; border-left: 4px solid #FF6B6B; }
.alert-success { background: rgba(46,204,113,0.15); color: #2ECC71; border-left: 4px solid #2ECC71; }
@keyframes slideIn {
    from { opacity:0; transform:translateX(-20px); }
    to { opacity:1; transform:translateX(0); }
}

/* ===== TABS ===== */
.tab-container {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    background: rgba(255,255,255,0.05);
    padding: 5px;
    border-radius: 12px;
}
.tab-btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    background: transparent;
    color: rgba(255,255,255,0.6);
    transition: all 0.3s;
}
.tab-btn.active {
    background: rgba(108,99,255,0.3);
    color: white;
    box-shadow: 0 4px 20px rgba(108,99,255,0.2);
}
.tab-btn:hover:not(.active) {
    color: white;
}

/* ===== FORMS ===== */
.auth-form {
    display: none;
}
.auth-form.active {
    display: block;
}
.input-group {
    position: relative;
    margin-bottom: 14px;
}
.input-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255,255,255,0.4);
}
.input-group input {
    width: 100%;
    padding: 14px 15px 14px 45px;
    background: rgba(255,255,255,0.05);
    border: 2px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    color: white;
    font-size: 15px;
    transition: all 0.3s;
}
.input-group input:focus {
    border-color: var(--primary);
    outline: none;
    background: rgba(255,255,255,0.08);
    box-shadow: 0 0 0 4px rgba(108,99,255,0.1);
}
.input-group input::placeholder {
    color: rgba(255,255,255,0.3);
}

/* ===== BUTTONS ===== */
.btn {
    padding: 14px 24px;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    font-size: 15px;
}
.btn-primary { background: linear-gradient(135deg, #667eea, #764ba2); color: white; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(108,99,255,0.3); }
.btn-success { background: linear-gradient(135deg, #2ECC71, #27AE60); color: white; }
.btn-success:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(46,204,113,0.3); }
.btn-buy { background: linear-gradient(135deg, #F39C12, #E67E22); color: white; }
.btn-buy:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(243,156,18,0.3); }
.btn-bulk { background: linear-gradient(135deg, #3498DB, #2980B9); color: white; padding: 12px 20px; }
.btn-bulk:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(52,152,219,0.3); }
.btn-deposit { background: linear-gradient(135deg, #9B59B6, #8E44AD); color: white; }
.btn-deposit:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(155,89,182,0.3); }
.btn-whatsapp { background: linear-gradient(135deg, #25D366, #128C7E); color: white; }
.btn-whatsapp:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(37,211,102,0.3); }
.btn-otp { background: linear-gradient(135deg, #667eea, #764ba2); color: white; padding: 8px 16px; font-size: 12px; width: auto; }
.btn-otp:hover { transform: scale(1.05); }
.btn-copy { background: rgba(255,255,255,0.08); color: white; padding: 8px 12px; font-size: 12px; width: auto; }
.btn-copy:hover { background: rgba(108,99,255,0.3); transform: scale(1.05); }
.btn-copy-all { background: rgba(46,204,113,0.2); color: #2ECC71; padding: 8px 16px; font-size: 12px; border: 1px solid rgba(46,204,113,0.2); border-radius: 8px; cursor: pointer; }
.btn-copy-all:hover { background: rgba(46,204,113,0.3); }
.btn-admin { background: rgba(255,255,255,0.08); color: white; }
.btn-admin:hover { background: rgba(255,255,255,0.15); }
.btn-logout { background: linear-gradient(135deg, #FF6B6B, #EE5A24); color: white; }
.btn-logout:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(255,107,107,0.3); }
.btn-copy-sm { background: rgba(255,255,255,0.08); color: white; padding: 4px 10px; font-size: 12px; border: none; border-radius: 6px; cursor: pointer; }
.btn-copy-sm:hover { background: rgba(108,99,255,0.3); }

/* ===== DASHBOARD ===== */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}
.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}
.avatar {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 30px;
}
.user-profile h2 {
    color: white;
    font-size: 18px;
}
.badge {
    color: #2ECC71;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}
.badge i { font-size: 8px; }

.balance-card {
    background: linear-gradient(135deg, rgba(108,99,255,0.2), rgba(118,75,162,0.2));
    padding: 12px 20px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid rgba(108,99,255,0.15);
}
.balance-card i {
    font-size: 24px;
    color: #667eea;
}
.balance-card small {
    color: rgba(255,255,255,0.6);
    font-size: 11px;
}
.balance-card h3 {
    color: white;
    font-size: 20px;
}

/* ===== SECTION CARDS ===== */
.section-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px;
    padding: 18px 20px;
    margin-bottom: 16px;
    transition: all 0.3s;
}
.section-card:hover {
    background: rgba(255,255,255,0.05);
    border-color: rgba(108,99,255,0.15);
}
.section-card h3 {
    color: white;
    font-size: 16px;
    margin-bottom: 14px;
}
.section-card h3 i {
    color: #667eea;
    margin-right: 8px;
}
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.purchase-grid {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.purchase-form {
    flex: 1;
    min-width: 140px;
}
.input-group-sm {
    display: flex;
    gap: 8px;
}
.input-group-sm input {
    flex: 1;
    padding: 10px 14px;
    background: rgba(255,255,255,0.05);
    border: 2px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    color: white;
    font-size: 14px;
    min-width: 60px;
}
.input-group-sm input:focus {
    border-color: var(--primary);
    outline: none;
}
.input-group-sm input::placeholder {
    color: rgba(255,255,255,0.3);
}

/* ===== NUMBERS ===== */
.numbers-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.number-card {
    background: rgba(255,255,255,0.03);
    padding: 12px 15px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    border: 1px solid rgba(255,255,255,0.04);
    transition: all 0.3s;
}
.number-card:hover {
    background: rgba(255,255,255,0.06);
    border-color: rgba(108,99,255,0.15);
}
.number-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.number {
    color: white;
    font-weight: 600;
    font-size: 15px;
}
.number i {
    color: #667eea;
    margin-right: 6px;
}
.token {
    color: rgba(255,255,255,0.4);
    font-size: 12px;
}
.token i {
    margin-right: 4px;
}
.number-actions {
    display: flex;
    gap: 6px;
}

/* ===== DEPOSIT ===== */
.deposit-card {
    background: rgba(155,89,182,0.05);
    border-color: rgba(155,89,182,0.1);
}
.deposit-info {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.payment-details {
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
    padding: 14px;
}
.payment-method {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}
.payment-method i {
    font-size: 24px;
    color: #25D366;
}
.payment-method strong {
    color: white;
}
.payment-method p {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    margin: 4px 0;
}
.payment-method .highlight {
    color: #F39C12;
    font-weight: 700;
}
.payment-method small {
    color: rgba(255,255,255,0.5);
    font-size: 13px;
}
.deposit-note {
    background: rgba(243,156,18,0.08);
    border-left: 4px solid #F39C12;
    padding: 12px 14px;
    border-radius: 8px;
    display: flex;
    gap: 10px;
}
.deposit-note i {
    color: #F39C12;
    font-size: 18px;
}
.deposit-note p {
    color: rgba(255,255,255,0.8);
    font-size: 13px;
    line-height: 1.5;
}
.deposit-note strong {
    color: white;
}
.file-upload {
    position: relative;
    background: rgba(255,255,255,0.03);
    border: 2px dashed rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}
.file-upload:hover {
    border-color: var(--primary);
    background: rgba(108,99,255,0.05);
}
.file-upload input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}
.file-upload i {
    font-size: 28px;
    color: rgba(255,255,255,0.3);
}
.file-upload span {
    display: block;
    color: rgba(255,255,255,0.5);
    font-size: 13px;
    margin-top: 4px;
}
.deposit-message {
    background: rgba(46,204,113,0.05);
    border-radius: 8px;
    padding: 10px 14px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}
.deposit-message i {
    color: #2ECC71;
    font-size: 16px;
    margin-top: 2px;
}
.deposit-message p {
    color: rgba(255,255,255,0.7);
    font-size: 13px;
}

/* ===== FOOTER ===== */
.dashboard-footer {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}
.dashboard-footer .btn {
    flex: 1;
    min-width: 120px;
    font-size: 14px;
    padding: 12px;
}

.auth-footer {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.05);
    display: flex;
    justify-content: space-between;
    color: rgba(255,255,255,0.4);
    font-size: 13px;
    flex-wrap: wrap;
    gap: 4px;
}
.auth-footer strong {
    color: rgba(255,255,255,0.7);
}
.auth-footer i {
    color: #25D366;
}

/* ===== EMPTY STATE ===== */
.empty-state {
    text-align: center;
    padding: 25px;
    color: rgba(255,255,255,0.4);
}
.empty-state i {
    font-size: 40px;
    color: rgba(255,255,255,0.08);
    margin-bottom: 8px;
}
.empty-state p {
    color: rgba(255,255,255,0.6);
    font-weight: 600;
}
.empty-state small {
    font-size: 13px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 480px) {
    .container { padding: 20px 15px; }
    .dashboard-header { flex-direction: column; align-items: stretch; }
    .balance-card { justify-content: center; }
    .purchase-grid { flex-direction: column; }
    .input-group-sm { flex-direction: column; }
    .number-card { flex-direction: column; align-items: stretch; }
    .number-actions { justify-content: flex-start; }
    .auth-footer { flex-direction: column; text-align: center; }
    .section-header { flex-direction: column; gap: 8px; align-items: stretch; }
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: rgba(255,255,255,0.03); }
::-webkit-scrollbar-thumb { background: linear-gradient(135deg, #667eea, #764ba2); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-dark); }