/**
 * So-Mobile Dashboard — Design System v3
 * Premium SaaS dark theme with vibrant accents
 * Font: Inter · Icons: Font Awesome 6
 */

/* ============================================
   CSS Variables
   ============================================ */
:root {
    /* Brand colors — vivid */
    --primary: #7C3AED;
    --primary-light: #A78BFA;
    --primary-dark: #6D28D9;
    --primary-glow: rgba(124,58,237,0.4);
    --secondary: #06B6D4;
    --secondary-light: #22D3EE;
    --accent: #F59E0B;
    --accent-light: #FBBF24;
    --success: #10B981;
    --success-light: #34D399;
    --danger: #EF4444;
    --danger-light: #F87171;
    --warning: #F59E0B;
    --pink: #EC4899;
    --pink-light: #F472B6;

    /* Surfaces — rich dark with blue undertone */
    --bg-base: #0C0F1D;
    --bg-surface: #131625;
    --bg-card: rgba(23,27,45,0.8);
    --bg-card-solid: #171B2D;
    --bg-elevated: #1E2340;
    --bg-hover: rgba(124,58,237,0.08);
    --border: rgba(148,163,184,0.1);
    --border-light: rgba(148,163,184,0.18);
    --border-glow: rgba(124,58,237,0.3);

    /* Text */
    --text-primary: #F1F5F9;
    --text-secondary: #94A3B8;
    --text-muted: #64748B;
    --text-link: #A78BFA;

    /* Font */
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Radius */
    --radius-xs: 6px;
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
    --shadow: 0 4px 16px rgba(0,0,0,0.3);
    --shadow-lg: 0 16px 48px rgba(0,0,0,0.4);
    --shadow-glow: 0 0 30px var(--primary-glow);
    --shadow-glow-sm: 0 0 15px rgba(124,58,237,0.2);

    /* Transitions */
    --transition: all 0.2s cubic-bezier(.4,0,.2,1);
    --transition-slow: all 0.35s cubic-bezier(.4,0,.2,1);
    --transition-bounce: all 0.3s cubic-bezier(.34,1.56,.64,1);

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #7C3AED, #06B6D4);
    --gradient-warm: linear-gradient(135deg, #F59E0B, #EC4899);
    --gradient-cool: linear-gradient(135deg, #06B6D4, #10B981);
    --gradient-card: linear-gradient(145deg, rgba(23,27,45,0.9), rgba(23,27,45,0.4));
    --gradient-mesh: radial-gradient(at 20% 80%, rgba(124,58,237,0.08) 0%, transparent 50%),
                     radial-gradient(at 80% 20%, rgba(6,182,212,0.06) 0%, transparent 50%),
                     radial-gradient(at 50% 50%, rgba(236,72,153,0.04) 0%, transparent 60%);
}

/* ============================================
   Reset & Base
   ============================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
    font-family: var(--font);
    color: var(--text-primary);
    background: var(--bg-base);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
a { color: var(--text-link); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-light); }
img { max-width: 100%; height: auto; }
::selection { background: var(--primary); color: white; }

/* ============================================
   Typography
   ============================================ */
h1,h2,h3,h4,h5,h6 { font-weight: 600; line-height: 1.3; color: var(--text-primary); }
h1 { font-size: 1.75rem; letter-spacing: -0.03em; }
h2 { font-size: 1.375rem; letter-spacing: -0.02em; }
h3 { font-size: 1.125rem; }
h4 { font-size: 1rem; }
.fw-bold { font-weight: 600; }
.text-muted { color: var(--text-muted) !important; }
.text-success { color: var(--success-light) !important; }
.text-danger { color: var(--danger-light) !important; }
.text-warning { color: var(--accent-light) !important; }
.text-info { color: var(--secondary-light) !important; }
.text-primary { color: var(--primary-light) !important; }
.text-center { text-align: center; }
.text-end { text-align: right; }
small, .small { font-size: 0.8125rem; }
code { font-family: 'JetBrains Mono', 'Fira Code', monospace; font-size: 0.8125rem; padding: 3px 8px; background: rgba(124,58,237,0.1); border-radius: var(--radius-xs); color: var(--primary-light); border: 1px solid rgba(124,58,237,0.15); }
pre { white-space: pre-wrap; }

/* ============================================
   Grid System
   ============================================ */
.row { display: flex; flex-wrap: wrap; margin: -0.5rem; }
.row > [class*="col-"] { padding: 0.5rem; }
.g-3 { --gutter: 0.75rem; }
.g-3 > [class*="col-"] { padding: var(--gutter); }
.g-4 { --gutter: 1rem; }
.g-4 > [class*="col-"] { padding: var(--gutter); }
.col-4 { width: 33.333%; }
.col-12 { width: 100%; }

@media (min-width: 768px) {
    .col-md-3 { width: 25%; }
    .col-md-4 { width: 33.333%; }
    .col-md-5 { width: 41.666%; }
    .col-md-6 { width: 50%; }
    .col-md-8 { width: 66.666%; }
}
@media (min-width: 992px) {
    .col-lg-3 { width: 25%; }
    .col-lg-4 { width: 33.333%; }
    .col-lg-6 { width: 50%; }
    .col-lg-8 { width: 66.666%; }
}

/* ============================================
   Spacing utilities
   ============================================ */
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mx-1 { margin-left: 0.25rem; margin-right: 0.25rem; }
.p-3 { padding: 1rem; }
.p-4 { padding: 1.5rem; }
.py-3 { padding-top: 1rem; padding-bottom: 1rem; }
.py-4 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-5 { padding-top: 3rem; padding-bottom: 3rem; }

/* ============================================
   Flex utilities
   ============================================ */
.d-flex { display: flex; }
.d-none { display: none; }
.d-inline-flex { display: inline-flex; }
.flex-fill { flex: 1 1 auto; }
.flex-wrap { flex-wrap: wrap; }
.align-items-center { align-items: center; }
.align-items-end { align-items: flex-end; }
.justify-content-between { justify-content: space-between; }
.justify-content-center { justify-content: center; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 1rem; }
.w-100 { width: 100%; }

/* ============================================
   Cards — Glassmorphism
   ============================================ */
.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    border-bottom: 1px solid var(--border);
    background: rgba(255,255,255,0.015);
}
.card-header h3 { font-size: 0.9375rem; font-weight: 600; margin: 0; }
.card-body { padding: 22px; }
.card-footer {
    padding: 14px 22px;
    border-top: 1px solid var(--border);
    background: rgba(255,255,255,0.015);
}
.sticky-top { position: sticky; top: 1rem; }

/* ============================================
   Buttons — Vibrant
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    font-family: var(--font);
    font-size: 0.8125rem;
    font-weight: 600;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-bounce);
    text-decoration: none;
    white-space: nowrap;
    line-height: 1.5;
    position: relative;
    overflow: hidden;
}
.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(255,255,255,0.1), transparent);
    pointer-events: none;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn i { font-size: 0.875rem; }

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #9333EA);
    color: white;
    box-shadow: 0 4px 15px rgba(124,58,237,0.3);
}
.btn-primary:hover { box-shadow: 0 8px 25px rgba(124,58,237,0.4); color: white; }

.btn-secondary {
    background: var(--bg-elevated);
    color: var(--text-secondary);
    border: 1px solid var(--border-light);
}
.btn-secondary:hover { background: var(--bg-hover); color: var(--text-primary); border-color: var(--border-glow); }

.btn-success {
    background: linear-gradient(135deg, #059669, var(--success-light));
    color: white;
    box-shadow: 0 4px 15px rgba(16,185,129,0.3);
}
.btn-danger {
    background: linear-gradient(135deg, #DC2626, var(--danger-light));
    color: white;
    box-shadow: 0 4px 15px rgba(239,68,68,0.3);
}

.btn-outline {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-light);
}
.btn-outline::after { display: none; }
.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary-light);
    background: rgba(124,58,237,0.08);
    box-shadow: var(--shadow-glow-sm);
}

.btn-outline-primary {
    background: transparent;
    color: var(--primary-light);
    border: 1px solid rgba(124,58,237,0.3);
}
.btn-outline-primary::after { display: none; }
.btn-outline-primary:hover {
    background: rgba(124,58,237,0.1);
    border-color: var(--primary);
    box-shadow: var(--shadow-glow-sm);
}

.btn-outline-danger {
    background: transparent;
    color: var(--danger-light);
    border: 1px solid rgba(239,68,68,0.3);
}
.btn-outline-danger::after { display: none; }
.btn-outline-danger:hover {
    background: rgba(239,68,68,0.1);
    border-color: var(--danger);
}

.btn-outline-secondary {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-light);
}
.btn-outline-secondary::after { display: none; }
.btn-outline-secondary:hover {
    border-color: var(--text-muted);
    color: var(--text-primary);
    background: rgba(100,116,139,0.08);
}

.btn-sm { padding: 6px 12px; font-size: 0.75rem; border-radius: var(--radius-xs); }
.btn-lg { padding: 13px 28px; font-size: 0.9375rem; border-radius: var(--radius); }
.btn-block { width: 100%; }

/* ============================================
   Forms — Clean with glow
   ============================================ */
.form-label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-secondary);
}
.form-label i { margin-right: 6px; color: var(--primary-light); }

.form-control, .form-select {
    width: 100%;
    padding: 10px 14px;
    font-family: var(--font);
    font-size: 0.875rem;
    color: var(--text-primary);
    background: rgba(12,15,29,0.6);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    outline: none;
    line-height: 1.5;
    backdrop-filter: blur(4px);
}
.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(124,58,237,0.15), 0 0 20px rgba(124,58,237,0.1);
    background: rgba(12,15,29,0.8);
}
.form-control::placeholder { color: var(--text-muted); }
.form-control:disabled { opacity: 0.4; cursor: not-allowed; }

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394A3B8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}
textarea.form-control { min-height: 100px; resize: vertical; }
.form-control-sm { padding: 6px 10px; font-size: 0.8125rem; }
.form-select-sm { padding: 6px 10px; font-size: 0.8125rem; }
.form-check { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.form-check-input { accent-color: var(--primary); width: 16px; height: 16px; }
.form-check-label { font-size: 0.875rem; cursor: pointer; }

.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; margin-bottom: 6px; font-size: 0.875rem; font-weight: 500; color: var(--text-secondary); }

.password-wrapper { position: relative; }
.password-wrapper .form-control { padding-right: 44px; }
.password-toggle { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); background: none; border: none; color: var(--text-muted); cursor: pointer; }

/* ============================================
   Tables — Enhanced
   ============================================ */
.table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-responsive::-webkit-scrollbar { height: 5px; }
.table-responsive::-webkit-scrollbar-track { background: rgba(12,15,29,0.3); }
.table-responsive::-webkit-scrollbar-thumb { background: rgba(124,58,237,0.2); border-radius: 3px; }
.table-responsive::-webkit-scrollbar-thumb:hover { background: rgba(124,58,237,0.4); }
.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8125rem;
}
.table th {
    text-align: left;
    padding: 14px 18px;
    font-weight: 600;
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-light);
    background: rgba(124,58,237,0.03);
    white-space: nowrap;
}
.table td {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
    color: var(--text-secondary);
}
.table tbody tr { transition: var(--transition); }
.table tbody tr:hover {
    background: rgba(124,58,237,0.06);
}
.table-hover tbody tr:hover td { color: var(--text-primary); }

.data-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.data-table th { text-align: left; padding: 12px 16px; font-weight: 600; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); border-bottom: 1px solid var(--border-light); white-space: nowrap; }
.data-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.data-table tbody tr { transition: var(--transition); }
.data-table tbody tr:hover { background: rgba(124,58,237,0.05); }

/* ============================================
   Badges — Vivid with glow
   ============================================ */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}
.bg-success { background: rgba(16,185,129,0.15); color: var(--success-light); border: 1px solid rgba(16,185,129,0.2); }
.bg-danger { background: rgba(239,68,68,0.15); color: var(--danger-light); border: 1px solid rgba(239,68,68,0.2); }
.bg-warning { background: rgba(245,158,11,0.15); color: var(--accent-light); border: 1px solid rgba(245,158,11,0.2); }
.bg-info { background: rgba(6,182,212,0.15); color: var(--secondary-light); border: 1px solid rgba(6,182,212,0.2); }
.bg-primary { background: rgba(124,58,237,0.15); color: var(--primary-light); border: 1px solid rgba(124,58,237,0.2); }
.bg-secondary { background: rgba(100,116,139,0.12); color: var(--text-muted); border: 1px solid rgba(100,116,139,0.15); }

/* Legacy badge-* aliases (Bootstrap 4 compat) */
.badge-success { background: rgba(16,185,129,0.15); color: var(--success-light); border: 1px solid rgba(16,185,129,0.2); }
.badge-danger  { background: rgba(239,68,68,0.15); color: var(--danger-light); border: 1px solid rgba(239,68,68,0.2); }
.badge-warning { background: rgba(245,158,11,0.15); color: var(--accent-light); border: 1px solid rgba(245,158,11,0.2); }
.badge-info    { background: rgba(6,182,212,0.15); color: var(--secondary-light); border: 1px solid rgba(6,182,212,0.2); }
.badge-primary { background: rgba(124,58,237,0.15); color: var(--primary-light); border: 1px solid rgba(124,58,237,0.2); }
.badge-secondary { background: rgba(100,116,139,0.12); color: var(--text-muted); border: 1px solid rgba(100,116,139,0.15); }

/* Status badges (used in dashboards, lists, admin views) */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}
.status-success { background: rgba(16,185,129,0.15); color: var(--success-light); border: 1px solid rgba(16,185,129,0.2); }
.status-danger  { background: rgba(239,68,68,0.15); color: var(--danger-light); border: 1px solid rgba(239,68,68,0.2); }
.status-warning { background: rgba(245,158,11,0.15); color: var(--accent-light); border: 1px solid rgba(245,158,11,0.2); }
.status-info    { background: rgba(6,182,212,0.15); color: var(--secondary-light); border: 1px solid rgba(6,182,212,0.2); }
.status-primary { background: rgba(124,58,237,0.15); color: var(--primary-light); border: 1px solid rgba(124,58,237,0.2); }
.status-secondary { background: rgba(100,116,139,0.12); color: var(--text-muted); border: 1px solid rgba(100,116,139,0.15); }

.channel-badge { display: inline-flex; align-items: center; gap: 5px; padding: 5px 12px; border-radius: var(--radius-full); font-size: 0.7rem; font-weight: 600; text-transform: uppercase; }
.channel-sms { background: rgba(124,58,237,0.12); color: var(--primary-light); border: 1px solid rgba(124,58,237,0.2); }
.channel-rcs { background: rgba(6,182,212,0.12); color: var(--secondary-light); border: 1px solid rgba(6,182,212,0.2); }
.channel-whatsapp { background: rgba(16,185,129,0.12); color: var(--success-light); border: 1px solid rgba(16,185,129,0.2); }
.channel-email { background: rgba(245,158,11,0.12); color: var(--accent-light); border: 1px solid rgba(245,158,11,0.2); }
.channel-voice { background: rgba(239,68,68,0.12); color: var(--danger-light); border: 1px solid rgba(239,68,68,0.2); }
.channel-hlr { background: rgba(59,130,246,0.12); color: #60a5fa; border: 1px solid rgba(59,130,246,0.2); }

/* ============================================
   Stats Grid & KPI Cards
   ============================================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 16px;
}
.stat-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: var(--transition-slow);
    position: relative;
    overflow: hidden;
}
.stat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition);
}
.stat-card::after {
    content: '';
    position: absolute;
    top: -50%; right: -50%;
    width: 100%; height: 100%;
    background: radial-gradient(circle, rgba(124,58,237,0.06) 0%, transparent 70%);
    opacity: 0;
    transition: var(--transition-slow);
}
.stat-card:hover {
    border-color: var(--border-glow);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.2), var(--shadow-glow-sm);
}
.stat-card:hover::before { opacity: 1; }
.stat-card:hover::after { opacity: 1; }

.stat-icon {
    width: 50px; height: 50px;
    border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.125rem;
    color: white;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}
.stat-info { display: flex; flex-direction: column; min-width: 0; position: relative; z-index: 1; }
.stat-value { font-size: 1.5rem; font-weight: 700; line-height: 1.2; color: var(--text-primary); }
.stat-label { font-size: 0.75rem; color: var(--text-muted); margin-top: 3px; }

/* ============================================
   Progress bars
   ============================================ */
.progress {
    height: 8px;
    background: rgba(148,163,184,0.08);
    border-radius: var(--radius-full);
    overflow: hidden;
}
.progress-bar {
    height: 100%;
    border-radius: var(--radius-full);
    transition: width 0.8s cubic-bezier(.4,0,.2,1);
    position: relative;
}
.progress-bar::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: shimmer 2s infinite;
}
@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}
.progress-bar.bg-success { background: linear-gradient(90deg, #059669, var(--success-light)); }
.progress-bar.bg-danger { background: linear-gradient(90deg, #DC2626, var(--danger-light)); }
.progress-bar.bg-info { background: linear-gradient(90deg, #0891B2, var(--secondary-light)); }
.progress-bar.bg-secondary { background: var(--text-muted); }

/* ============================================
   Alerts
   ============================================ */
.alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px;
    border-radius: var(--radius);
    font-size: 0.8125rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    line-height: 1.5;
    backdrop-filter: blur(8px);
}
.alert i { font-size: 1rem; flex-shrink: 0; margin-top: 1px; }
.alert-success { background: rgba(16,185,129,0.1); border-color: rgba(16,185,129,0.2); color: var(--success-light); }
.alert-danger { background: rgba(239,68,68,0.1); border-color: rgba(239,68,68,0.2); color: var(--danger-light); }
.alert-warning { background: rgba(245,158,11,0.1); border-color: rgba(245,158,11,0.2); color: var(--accent-light); }
.alert-info { background: rgba(6,182,212,0.1); border-color: rgba(6,182,212,0.2); color: var(--secondary-light); }

/* ============================================
   Dropdowns
   ============================================ */
.dropdown { position: relative; display: inline-block; }
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 6px;
    min-width: 200px;
    background: var(--bg-card-solid);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg), 0 0 1px rgba(255,255,255,0.05);
    z-index: 1000;
    padding: 6px;
    animation: fadeDown 0.2s ease;
}
.dropdown-menu.show { display: block; }
.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    font-size: 0.8125rem;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}
.dropdown-item:hover { background: rgba(124,58,237,0.1); color: var(--text-primary); }
.dropdown-item i { width: 16px; text-align: center; font-size: 0.875rem; color: var(--text-muted); }
.dropdown-item:hover i { color: var(--primary-light); }

@keyframes fadeDown {
    from { opacity: 0; transform: translateY(-8px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ============================================
   Pagination
   ============================================ */
.pagination-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex-wrap: wrap;
}
.pagination-wrapper a, .pagination-wrapper span {
    display: flex; align-items: center; justify-content: center;
    min-width: 36px; height: 36px;
    padding: 0 10px;
    border-radius: var(--radius-sm);
    font-size: 0.8125rem;
    color: var(--text-secondary);
    border: 1px solid var(--border);
    transition: var(--transition);
    text-decoration: none;
}
.pagination-wrapper a:hover { border-color: var(--primary); color: var(--primary-light); background: rgba(124,58,237,0.06); }

/* ============================================
   Page Header
   ============================================ */
.page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}
.page-header h1 { margin-bottom: 4px; }
.page-header-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ============================================
   Auth Pages — Premium glass
   ============================================ */
.auth-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-base);
    padding: 2rem;
    position: relative;
    overflow: hidden;
}
.auth-body::before {
    content: '';
    position: absolute;
    top: -30%; left: -20%;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(124,58,237,0.15) 0%, transparent 70%);
    animation: float 8s ease-in-out infinite;
}
.auth-body::after {
    content: '';
    position: absolute;
    bottom: -30%; right: -20%;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(6,182,212,0.12) 0%, transparent 70%);
    animation: float 10s ease-in-out infinite reverse;
}
@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, -30px); }
}

.auth-container { width: 100%; max-width: 420px; position: relative; z-index: 1; }
.auth-card {
    background: rgba(23,27,45,0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    position: relative;
}
.auth-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}
.auth-logo { text-align: center; margin-bottom: 2rem; }
.auth-logo img { height: 48px; margin-bottom: 0.5rem; }
.auth-logo h1 {
    font-size: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.auth-title { font-size: 1.5rem; text-align: center; margin-bottom: 0.5rem; }
.auth-subtitle { text-align: center; color: var(--text-secondary); font-size: 0.875rem; margin-bottom: 1.5rem; }
.auth-form { margin-top: 1.5rem; }
.auth-links { text-align: center; margin-top: 1.25rem; }
.auth-links a { font-size: 0.875rem; color: var(--text-secondary); }
.auth-links a:hover { color: var(--primary-light); }
.auth-footer { text-align: center; margin-top: 1.5rem; color: var(--text-muted); font-size: 0.75rem; }
.otp-input { text-align: center; font-size: 1.75rem; font-weight: 700; letter-spacing: 12px; padding: 16px; }

/* ============================================
   Error Pages
   ============================================ */
.error-body { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--bg-base); text-align: center; padding: 2rem; }
.error-container { max-width: 500px; }
.error-code {
    font-size: 8rem; font-weight: 700; line-height: 1; margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.error-container h2 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.error-container p { color: var(--text-secondary); margin-bottom: 2rem; }

/* ============================================
   File upload zone
   ============================================ */
.file-upload-zone {
    border: 2px dashed var(--border-light);
    border-radius: var(--radius-lg);
    padding: 48px 24px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-slow);
    background: rgba(124,58,237,0.02);
}
.file-upload-zone:hover {
    border-color: var(--primary);
    background: rgba(124,58,237,0.06);
    box-shadow: inset 0 0 40px rgba(124,58,237,0.04);
}
.file-upload-zone i { font-size: 2.5rem; color: var(--primary-light); margin-bottom: 14px; display: block; opacity: 0.6; }
.file-upload-zone:hover i { opacity: 1; }

/* ============================================
   Color pickers
   ============================================ */
.color-picker-group { display: flex; align-items: center; gap: 10px; }
.color-picker-group input[type="color"] { width: 42px; height: 42px; border: 2px solid var(--border-light); border-radius: var(--radius-sm); cursor: pointer; padding: 3px; background: var(--bg-base); }

/* ============================================
   Empty state
   ============================================ */
.empty-state { text-align: center; padding: 4rem 1.5rem; color: var(--text-muted); }
.empty-state i { font-size: 3.5rem; margin-bottom: 1.25rem; display: block; background: var(--gradient-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; opacity: 0.4; }
.empty-state p { font-size: 0.9375rem; margin-bottom: 1.5rem; }

/* ============================================
   Misc utilities
   ============================================ */
.rounded { border-radius: var(--radius-sm); }
.fa-3x { font-size: 3rem; }
.overflow-hidden { overflow: hidden; }

/* ============================================
   Scrollbar — Subtle
   ============================================ */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(124,58,237,0.2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(124,58,237,0.35); }

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
    .page-header { flex-direction: column; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .auth-card { padding: 1.5rem; }
    h1 { font-size: 1.375rem; }
}
@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr; }
}
