/* Admin dashboard styles */
.admin-container {
    padding: 30px;
    max-width: 1200px;
    margin: auto;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--bg-tertiary);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.stat-card .stat-label {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.stat-card .stat-value {
    font-size: 28px;
    font-weight: bold;
    color: var(--accent);
}

.admin-section {
    background: var(--bg-tertiary);
    border-radius: 12px;
    border: 1px solid var(--border);
    margin-bottom: 20px;
    overflow: hidden;
}

.admin-section-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-section-header h3 {
    font-size: 16px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}

.admin-table th {
    background: var(--bg-secondary);
    font-weight: 600;
    color: var(--text-secondary);
}

.admin-table tr:hover {
    background: var(--bg-secondary);
}

.status-success { color: var(--success); }
.status-pending { color: var(--warning); }
.status-failed { color: var(--danger); }

.admin-btn {
    padding: 6px 12px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 13px;
    margin-right: 4px;
}

.admin-btn.danger {
    background: var(--danger);
    color: white;
}

.admin-btn.primary {
    background: var(--accent);
    color: white;
}

.admin-btn.secondary {
    background: #444;
    color: white;
}

/* Payment page */
.payment-container {
    max-width: 500px;
    margin: 40px auto;
    padding: 30px;
    text-align: center;
}

.payment-card {
    background: var(--bg-tertiary);
    padding: 30px;
    border-radius: 16px;
    border: 1px solid var(--border);
    margin-bottom: 20px;
}

.payment-amount {
    font-size: 48px;
    font-weight: bold;
    color: var(--accent);
    margin: 20px 0;
}

.payment-bundle {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.pay-btn {
    width: 100%;
    padding: 16px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
}

.pay-btn:hover {
    background: var(--accent-hover);
}

.pay-btn:disabled {
    background: #555;
    cursor: not-allowed;
}

.payment-history {
    max-width: 800px;
    margin: 30px auto;
}

.payment-history table {
    width: 100%;
}

/* Toast notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 2000;
}

.toast {
    padding: 14px 20px;
    border-radius: 10px;
    margin-bottom: 10px;
    color: white;
    font-size: 14px;
    animation: slideIn 0.3s ease;
    max-width: 350px;
}

.toast.success { background: var(--success); }
.toast.error { background: var(--danger); }
.toast.info { background: #3b82f6; }

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

/* Mobile admin/payment */
@media(max-width: 768px) {
    .admin-container {
        padding: 16px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .stat-card {
        padding: 14px;
    }

    .stat-card .stat-value {
        font-size: 22px;
    }

    .admin-table {
        font-size: 13px;
    }

    .admin-table th,
    .admin-table td {
        padding: 8px 10px;
    }

    .payment-container {
        padding: 16px;
        margin: 20px auto;
    }

    .payment-card {
        padding: 20px;
    }

    .payment-amount {
        font-size: 36px;
    }
}

@media(max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .stat-card .stat-label {
        font-size: 11px;
    }

    .stat-card .stat-value {
        font-size: 18px;
    }

    .admin-table th:nth-child(n+4),
    .admin-table td:nth-child(n+4) {
        display: none;
    }
}
