/* ============================================
   ADMIN PANEL - UPGRADED DESIGN
   ============================================ */

:root {
    --admin-accent: var(--accent);
    --admin-accent-hover: #c084fc;
    --admin-success: #22c55e;
    --admin-warning: #f59e0b;
    --admin-danger: #ef4444;
    --admin-info: #38bdf8;
    --glass-bg: var(--bg-card);
    --glass-border: var(--border-card);
    --card-bg: var(--bg-card);
}

/* Admin Badge */
.admin-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-card);
    color: var(--text-secondary);
    padding: 6px 12px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid var(--border-card);
}

.admin-badge i {
    color: var(--admin-accent);
}

/* Stats Row */
.admin-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.admin-stat-box {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 20px 24px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.admin-stat-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--admin-accent), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.admin-stat-box:hover::before {
    opacity: 1;
}

.admin-stat-box:hover {
    transform: translateY(-2px);
    border-color: rgba(168, 85, 247, 0.35);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.admin-stat-box .stat-icon {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    opacity: 0.8;
}

.admin-stat-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.admin-stat-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -1px;
    color: #ffffff;
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.admin-stat-value .trend {
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 500;
}

.admin-stat-value .trend.up {
    background: rgba(16, 185, 129, 0.15);
    color: var(--admin-success);
}

.admin-stat-value .trend.down {
    background: rgba(239, 68, 68, 0.15);
    color: var(--admin-danger);
}

/* Quick Actions Bar */
.quick-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.quick-action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border-card);
    border-radius: 10px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.quick-action-btn:hover {
    background: rgba(168, 85, 247, 0.1);
    border-color: rgba(168, 85, 247, 0.35);
    color: var(--text-primary);
}

.quick-action-btn i {
    font-size: 14px;
}

/* Settings Panel */
.settings-panel {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 24px;
}

.settings-header {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.settings-title {
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
}

.settings-title i {
    color: var(--admin-accent);
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.support-account-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    align-items: end;
}

.support-account-form > div:last-child {
    grid-column: span 2;
}

.setting-card {
    background: var(--bg-input);
    border: 1px solid var(--border-card);
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s ease;
}

.setting-card:hover {
    border-color: var(--border-subtle);
    background: rgba(255, 255, 255, 0.04);
}

.setting-card.wide {
    grid-column: span 2;
}

.setting-info {
    flex: 1;
}

.setting-title {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 2px;
    color: #e5e7eb;
}

.setting-desc {
    font-size: 12px;
    color: #6b7280;
}

/* Toggle Switch - Improved */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
    flex-shrink: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
    border-radius: 26px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: #6b7280;
    transition: all 0.3s ease;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background: linear-gradient(135deg, var(--admin-accent), #8b5cf6);
    border-color: transparent;
}

input:checked + .toggle-slider:before {
    transform: translateX(22px);
    background-color: #fff;
}

/* Table Container */
.admin-table-container {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 24px;
}

.table-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.02);
}

.table-title {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}

/* Search Box */
.search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-input);
    border: 1px solid var(--border-card);
    border-radius: 10px;
    padding: 10px 14px;
    transition: all 0.2s;
}

.search-box:focus-within {
    border-color: var(--admin-accent);
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.12);
}

.search-box i {
    color: #6b7280;
    font-size: 14px;
}

.search-box input {
    background: none;
    border: none;
    outline: none;
    color: #ffffff;
    font-family: inherit;
    font-size: 13px;
    width: 200px;
}

.search-box input::placeholder {
    color: #4b5563;
}

/* Users Table */
.users-table {
    width: 100%;
    border-collapse: collapse;
}

.users-table th,
.users-table td {
    text-align: left;
    padding: 14px 20px;
    border-bottom: 1px solid var(--glass-border);
}

.users-table th {
    font-size: 11px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(255, 255, 255, 0.02);
}

.users-table td {
    font-size: 13px;
    color: #d1d5db;
}

.users-table tbody tr {
    transition: background 0.15s;
}

.users-table tbody tr:hover {
    background: rgba(99, 102, 241, 0.05);
}

.users-table tr:last-child td {
    border-bottom: none;
}

.user-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.table-user-avatar {
    width: 34px;
    height: 34px;
    background: linear-gradient(135deg, var(--admin-accent), #8b5cf6);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 13px;
    color: #fff;
}

/* Plan Badges */
.plan-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.plan-free {
    background: rgba(107, 114, 128, 0.15);
    color: #9ca3af;
}

.plan-starter {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
}

.plan-professional {
    background: rgba(139, 92, 246, 0.15);
    color: #a78bfa;
}

.plan-enterprise {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
}

/* Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-active {
    background: rgba(16, 185, 129, 0.12);
    color: var(--admin-success);
}

.status-active::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--admin-success);
    border-radius: 50%;
}

.status-banned {
    background: rgba(239, 68, 68, 0.12);
    color: var(--admin-danger);
}

.status-banned::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--admin-danger);
    border-radius: 50%;
}

/* Action Buttons */
.action-btn {
    padding: 7px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: #9ca3af;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    margin-right: 6px;
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    transform: translateY(-1px);
}

.action-btn.primary {
    background: var(--admin-accent);
    border: none;
    color: #000;
}

.action-btn.primary:hover {
    filter: brightness(1.1);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.action-btn.delete {
    border-color: rgba(239, 68, 68, 0.3);
}

.action-btn.delete:hover {
    background: rgba(239, 68, 68, 0.15);
    color: var(--admin-danger);
}

.action-btn.ban {
    border-color: rgba(245, 158, 11, 0.3);
}

.action-btn.ban:hover {
    background: rgba(245, 158, 11, 0.15);
    color: var(--admin-warning);
}

.action-btn.unban {
    border-color: rgba(16, 185, 129, 0.3);
}

.action-btn.unban:hover {
    background: rgba(16, 185, 129, 0.15);
    color: var(--admin-success);
}

/* Search Panel */
.search-panel {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 16px 20px;
    margin: 16px 20px;
}

.search-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.search-panel-title {
    font-size: 13px;
    font-weight: 600;
    color: #9ca3af;
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-panel-title i {
    color: var(--admin-accent);
}

.search-filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.filter-group label {
    font-size: 11px;
    font-weight: 500;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-group input,
.filter-group select {
    background: var(--bg-input);
    border: 1px solid var(--border-card);
    border-radius: 8px;
    padding: 9px 12px;
    font-family: inherit;
    font-size: 13px;
    color: #ffffff;
    outline: none;
    transition: all 0.2s ease;
}

.filter-group input:focus,
.filter-group select:focus {
    border-color: var(--admin-accent);
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.12);
}

.filter-group input::placeholder {
    color: #4b5563;
}

.filter-group select {
    cursor: pointer;
}

.filter-group select option {
    background: #0f0f14;
    color: #ffffff;
}

.search-actions {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    align-items: center;
}

.clear-btn {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: #9ca3af;
    font-family: inherit;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.clear-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.search-results-info {
    font-size: 12px;
    color: #6b7280;
    margin-left: auto;
}

.search-results-info strong {
    color: #e5e7eb;
}

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 28px;
    width: 100%;
    max-width: 440px;
    animation: modalIn 0.25s ease-out;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #fff;
}

.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: #9ca3af;
    margin-bottom: 6px;
}

.form-input,
.form-select {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border-card);
    border-radius: 10px;
    padding: 12px 14px;
    font-family: inherit;
    font-size: 14px;
    color: #ffffff;
    outline: none;
    transition: all 0.2s ease;
}

.form-input:focus,
.form-select:focus {
    border-color: var(--admin-accent);
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.12);
}

.form-select {
    cursor: pointer;
}

.form-select option {
    background: #0f0f14;
    color: #ffffff;
}

.modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 24px;
}

.modal-btn {
    flex: 1;
    padding: 12px;
    border-radius: 10px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal-btn.cancel {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: #9ca3af;
}

.modal-btn.cancel:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.modal-btn.save {
    background: var(--admin-accent);
    border: none;
    color: #000;
}

.modal-btn.save:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

/* Toast */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    background: linear-gradient(135deg, rgba(25, 25, 35, 0.98), rgba(15, 15, 20, 0.98));
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    animation: toastIn 0.3s ease-out;
}

.toast.success {
    border-left: 3px solid var(--admin-success);
}

.toast.error {
    border-left: 3px solid var(--admin-danger);
}

.toast.warning {
    border-left: 3px solid var(--admin-warning);
}

.toast i {
    font-size: 16px;
}

.toast.success i { color: var(--admin-success); }
.toast.error i { color: var(--admin-danger); }
.toast.warning i { color: var(--admin-warning); }

.toast-message {
    font-size: 13px;
    color: #e5e7eb;
}

@keyframes toastIn {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes toastOut {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0; transform: translateX(20px); }
}

/* Loading Spinner */
.loading-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px;
}

.spinner {
    width: 36px;
    height: 36px;
    border: 3px solid var(--glass-border);
    border-top-color: var(--admin-accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 50px 30px;
}

.empty-icon {
    width: 70px;
    height: 70px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.empty-icon i {
    font-size: 28px;
    color: var(--admin-accent);
}

.empty-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #e5e7eb;
}

.empty-desc {
    font-size: 13px;
    color: #6b7280;
}

/* Login Screen */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.login-box {
    width: 100%;
    max-width: 380px;
    text-align: center;
}

.login-logo {
    width: 56px;
    height: 56px;
    margin-bottom: 20px;
    border-radius: 14px;
}

.login-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 6px;
    color: #fff;
}

.login-subtitle {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 28px;
}

.login-tabs {
    display: flex;
    gap: 6px;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 10px;
    padding: 4px;
    margin-bottom: 18px;
}

.login-tab {
    flex: 1;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
    padding: 8px 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.login-tab:hover {
    color: var(--text-secondary);
}

.login-tab.active {
    background: var(--admin-accent);
    color: #000;
}

.login-form {
    text-align: left;
}

.login-btn {
    width: 100%;
    padding: 14px;
    background: var(--admin-accent);
    border: none;
    border-radius: 12px;
    color: #000;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

.error-msg {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 10px;
    padding: 12px 14px;
    color: var(--admin-danger);
    font-size: 13px;
    margin-bottom: 16px;
    display: none;
}

.error-msg.show {
    display: block;
}

/* Tickets Split View */
.tickets-split-view {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 20px;
    min-height: 550px;
}

.ticket-list-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 14px;
    overflow: hidden;
    max-height: 550px;
    overflow-y: auto;
}

.ticket-chat-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    min-height: 550px;
}

/* Activity Log */
.activity-log {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
}

.activity-log-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.activity-log-title {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.activity-log-title i {
    color: var(--admin-accent);
}

.activity-log-content {
    max-height: 300px;
    overflow-y: auto;
}

.activity-item {
    padding: 12px 20px;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    gap: 12px;
    transition: background 0.15s;
}

.activity-item:hover {
    background: rgba(255, 255, 255, 0.02);
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
}

.activity-icon.user { background: rgba(59, 130, 246, 0.15); color: var(--admin-info); }
.activity-icon.search { background: rgba(139, 92, 246, 0.15); color: #a78bfa; }
.activity-icon.payment { background: rgba(16, 185, 129, 0.15); color: var(--admin-success); }
.activity-icon.security { background: rgba(239, 68, 68, 0.15); color: var(--admin-danger); }
.activity-icon.system { background: rgba(245, 158, 11, 0.15); color: var(--admin-warning); }

.activity-info {
    flex: 1;
    min-width: 0;
}

.activity-text {
    font-size: 13px;
    color: #d1d5db;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.activity-time {
    font-size: 11px;
    color: #6b7280;
}

/* System Health */
.system-health {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.health-item {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.health-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.health-indicator.good { background: var(--admin-success); box-shadow: 0 0 8px var(--admin-success); }
.health-indicator.warning { background: var(--admin-warning); box-shadow: 0 0 8px var(--admin-warning); }
.health-indicator.bad { background: var(--admin-danger); box-shadow: 0 0 8px var(--admin-danger); }

.health-label {
    font-size: 12px;
    color: #9ca3af;
}

.health-value {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    margin-left: auto;
}

/* Tabs */
.admin-tabs {
    display: flex;
    gap: 4px;
    background: rgba(0, 0, 0, 0.2);
    padding: 4px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.admin-tab {
    flex: 1;
    padding: 10px 16px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: #6b7280;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.admin-tab:hover {
    color: #9ca3af;
}

.admin-tab.active {
    background: var(--admin-accent);
    color: #fff;
}

/* Data Grid */
.data-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* Chart Placeholder */
.chart-container {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 20px;
    height: 280px;
    display: flex;
    flex-direction: column;
}

.chart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.chart-title {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}

.chart-body {
    flex: 1;
    display: flex;
    align-items: flex-end;
    gap: 8px;
    padding-bottom: 20px;
}

.chart-bar {
    flex: 1;
    background: linear-gradient(180deg, var(--admin-accent), rgba(99, 102, 241, 0.3));
    border-radius: 4px 4px 0 0;
    min-height: 20px;
    transition: height 0.5s ease;
}

/* Responsive */
@media (max-width: 1200px) {
    .admin-stats-row {
        grid-template-columns: repeat(2, 1fr);
    }
    .settings-grid {
        grid-template-columns: 1fr;
    }
    .setting-card.wide {
        grid-column: span 1;
    }
    .support-account-form {
        grid-template-columns: 1fr;
    }
    .support-account-form > div:last-child {
        grid-column: span 1;
    }
    .data-grid {
        grid-template-columns: 1fr;
    }
    .system-health {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .tickets-split-view {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .admin-stats-row {
        grid-template-columns: 1fr;
    }
    .quick-actions {
        flex-direction: column;
    }
    .quick-action-btn {
        justify-content: center;
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* API Keys Section */
.api-key-item {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.api-key-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.api-key-name {
    font-size: 13px;
    font-weight: 500;
    color: #e5e7eb;
}

.api-key-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: #6b7280;
    background: rgba(0, 0, 0, 0.3);
    padding: 4px 8px;
    border-radius: 4px;
}

/* Announcement Scheduler */
.announcement-preview {
    background: linear-gradient(90deg, var(--admin-accent), #8b5cf6);
    border-radius: 8px;
    padding: 12px 16px;
    margin-top: 12px;
    font-size: 13px;
    color: #fff;
}

/* Revenue Card */
.revenue-card {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(5, 150, 105, 0.05) 100%);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 16px;
    padding: 20px 24px;
}

.revenue-amount {
    font-family: 'JetBrains Mono', monospace;
    font-size: 32px;
    font-weight: 700;
    color: var(--admin-success);
}

.revenue-label {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
