:root {
  --bg: #040608;
  --bg-elevated: #0a0d10;
  --bg-card: #0d1114;
  --bg-card-hover: #11161a;
  --border: #1a1f24;
  --border-bright: #242b32;
  --fg: #e8edf0;
  --fg-muted: #6b7a83;
  --fg-subtle: #4a555c;
  --accent: #00e5b0;
  --accent-dim: rgba(0, 229, 176, 0.12);
  --accent-glow: rgba(0, 229, 176, 0.35);
  --danger: #ff4d6d;
  --danger-dim: rgba(255, 77, 109, 0.12);
  --warning: #ffb020;
  --warning-dim: rgba(255, 176, 32, 0.12);
  --info: #3b82f6;
  --info-dim: rgba(59, 130, 246, 0.12);
  --success: #00e5b0;
  --success-dim: rgba(0, 229, 176, 0.12);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.4);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.45);
  --shadow-lg: 0 20px 48px rgba(0,0,0,0.55);
  --shadow-glow: 0 0 32px var(--accent-glow);
  --topbar-h: 60px;
  --sidebar-w: 220px;
  --transition: 180ms cubic-bezier(0.34, 1.56, 0.64, 1);
  --font-ui: 'Space Grotesk', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 14px; scroll-behavior: smooth; }
body { font-family: var(--font-ui); background: var(--bg); color: var(--fg); line-height: 1.5; min-height: 100vh; overflow-x: hidden; }
body::before { content: ''; position: fixed; inset: 0; background: radial-gradient(ellipse 80% 60% at 90% -10%, rgba(0,229,176,0.06), transparent), radial-gradient(ellipse 60% 50% at -10% 110%, rgba(124,77,255,0.04), transparent); pointer-events: none; z-index: -1; }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-bright); border-radius: 4px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--fg-subtle); }
::selection { background: var(--accent-dim); color: var(--fg); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }

.screen { display: none; }
.screen.active { display: block; animation: fadeIn 220ms var(--transition); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes scaleIn { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes pulseGlow { 0%, 100% { box-shadow: 0 8px 24px var(--accent-glow); } 50% { box-shadow: 0 12px 32px rgba(0,229,176,0.55); } }
@keyframes pulseDot { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

/* ===== LOGIN ===== */
.login-wrapper { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; position: relative; }
.login-wrapper::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 60% at 50% 0%, rgba(0,229,176,0.08), transparent 60%); pointer-events: none; }
.login-card { width: 100%; max-width: 420px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-lg), var(--shadow-glow); position: relative; animation: slideUp 400ms var(--transition); }
.login-bg { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(0,229,176,0.03) 0%, transparent 50%); }
.login-content { position: relative; padding: 48px 40px 40px; }
.login-header { text-align: center; margin-bottom: 36px; }
.brand { display: inline-flex; align-items: center; gap: 14px; }
.brand-icon { width: 56px; height: 56px; border-radius: 14px; background: linear-gradient(135deg, var(--accent) 0%, #00b8ff 100%); display: flex; align-items: center; justify-content: center; color: white; box-shadow: 0 8px 24px var(--accent-glow); animation: pulseGlow 3s ease-in-out infinite; }
.brand-icon svg { width: 28px; height: 28px; }
.brand-text h1 { font-size: 1.75rem; font-weight: 700; letter-spacing: -0.02em; background: linear-gradient(135deg, var(--fg) 0%, var(--accent) 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.subtitle { color: var(--fg-muted); font-size: 0.95rem; margin-top: 4px; }

.login-form { display: flex; flex-direction: column; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-label { display: flex; align-items: center; gap: 8px; font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--fg-subtle); }
.label-icon { width: 14px; height: 14px; opacity: 0.6; }
.input-wrapper { position: relative; }
.input-wrapper input { width: 100%; padding: 14px 16px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-md); color: var(--fg); font-family: var(--font-ui); font-size: 1rem; transition: border-color var(--transition), box-shadow var(--transition); }
.input-wrapper input::placeholder { color: var(--fg-subtle); }
.input-wrapper input:hover { border-color: var(--border-bright); }
.input-wrapper input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim); outline: none; }
.toggle-visibility { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); background: none; border: none; padding: 4px; color: var(--fg-subtle); cursor: pointer; display: flex; }
.toggle-visibility:hover { color: var(--fg); }
.toggle-visibility .eye-closed { display: none; }
.toggle-visibility[aria-pressed="true"] .eye-open { display: none; }
.toggle-visibility[aria-pressed="true"] .eye-closed { display: block; }
.toggle-visibility svg { width: 20px; height: 20px; }

.error-message { min-height: 20px; color: var(--danger); font-size: 0.85rem; opacity: 0; transition: opacity var(--transition); }
.error-message:not(:empty) { opacity: 1; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 20px; border-radius: var(--radius-md); font-family: var(--font-ui); font-weight: 600; font-size: 0.9rem; border: none; cursor: pointer; transition: transform var(--transition), box-shadow var(--transition), background var(--transition), opacity var(--transition); white-space: nowrap; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary { background: linear-gradient(135deg, var(--accent) 0%, #00b8ff 100%); color: #040608; box-shadow: 0 4px 16px var(--accent-glow); }
.btn-primary:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 8px 24px var(--accent-glow); }
.btn-full { width: 100%; }
.btn-ghost { background: transparent; color: var(--fg); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--bg-card-hover); border-color: var(--border-bright); }
.btn-danger { background: var(--danger-dim); color: var(--danger); border: 1px solid rgba(255,77,109,0.3); }
.btn-sm { padding: 8px 12px; font-size: 0.8rem; }
.btn .btn-loader { display: none; }
.btn.loading .btn-text { display: none; }
.btn.loading .btn-loader { display: flex; }
.spinner { width: 20px; height: 20px; animation: spin 0.8s linear infinite; }

.login-footer { margin-top: 32px; text-align: center; }
.login-footer p { color: var(--fg-subtle); font-size: 0.8rem; margin-bottom: 12px; }
.footer-links { display: flex; align-items: center; justify-content: center; gap: 12px; font-size: 0.8rem; color: var(--fg-muted); }
.footer-links a { color: var(--fg-muted); text-decoration: none; }
.footer-links a:hover { color: var(--accent); }
.footer-links .divider { width: 1px; height: 14px; background: var(--border); }

/* ===== TOPBAR ===== */
.topbar { position: fixed; top: 0; left: 0; right: 0; height: var(--topbar-h); background: rgba(6,9,12,0.92); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; padding: 0 20px; z-index: 100; gap: 16px; }
.topbar-left { display: none; align-items: center; gap: 14px; }
.brand-compact { display: flex; align-items: center; gap: 10px; }
.brand-compact .brand-icon { width: 36px; height: 36px; border-radius: 10px; }
.brand-compact .brand-icon svg { width: 18px; height: 18px; }
.brand-name { font-weight: 700; font-size: 1.1rem; background: linear-gradient(135deg, var(--fg) 0%, var(--accent) 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

.topbar-nav { display: flex; align-items: center; gap: 4px; }
.nav-item { display: flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: var(--radius-md); color: var(--fg-muted); text-decoration: none; font-weight: 500; font-size: 0.88rem; transition: color var(--transition), background var(--transition); position: relative; white-space: nowrap; }
.nav-item svg { width: 18px; height: 18px; flex-shrink: 0; }
.nav-item:hover { color: var(--fg); background: var(--bg-card); }
.nav-item.active { color: var(--accent); background: var(--accent-dim); }
.nav-item.active::before { content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 60%; height: 3px; background: var(--accent); border-radius: 0 0 3px 3px; }
.nav-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px; background: var(--danger); color: white; font-size: 0.65rem; font-weight: 700; border-radius: 999px; }

.topbar-right { display: flex; align-items: center; gap: 10px; }
.icon-btn { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: var(--radius-md); background: transparent; border: 1px solid var(--border); color: var(--fg-muted); cursor: pointer; transition: all var(--transition); }
.icon-btn:hover { color: var(--fg); background: var(--bg-card); border-color: var(--border-bright); }
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn .sun-icon { display: none; }
.icon-btn .moon-icon { display: block; }

.user-menu { position: relative; }
.user-avatar-btn { display: flex; align-items: center; gap: 9px; padding: 6px 12px 6px 6px; border-radius: var(--radius-md); background: transparent; border: 1px solid var(--border); cursor: pointer; }
.user-avatar-btn:hover { background: var(--bg-card); border-color: var(--border-bright); }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, var(--accent) 0%, #00b8ff 100%); display: flex; align-items: center; justify-content: center; color: #040608; }
.avatar svg { width: 15px; height: 15px; }
.username { font-weight: 600; font-size: 0.88rem; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chevron { width: 15px; height: 15px; color: var(--fg-subtle); }

.dropdown { position: absolute; top: calc(100% + 8px); right: 0; min-width: 220px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; animation: scaleIn 160ms var(--transition); z-index: 200; }
.dropdown.hidden { display: none; }
.dropdown-header { display: flex; align-items: center; gap: 12px; padding: 16px; border-bottom: 1px solid var(--border); }
.dropdown-avatar { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, var(--accent) 0%, #00b8ff 100%); display: flex; align-items: center; justify-content: center; color: #040608; }
.dropdown-avatar svg { width: 19px; height: 19px; }
.dropdown-name { font-weight: 600; display: block; }
.dropdown-role { font-size: 0.72rem; color: var(--fg-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.dropdown-divider { height: 1px; background: var(--border); }
.dropdown-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px 16px; background: none; border: none; color: var(--fg); font-family: var(--font-ui); font-size: 0.9rem; cursor: pointer; transition: background var(--transition); text-align: left; }
.dropdown-item:hover { background: var(--bg-card-hover); color: var(--accent); }
.dropdown-item svg { width: 17px; height: 17px; }

/* ===== LAYOUT ===== */
.layout { display: flex; min-height: 100vh; padding-top: var(--topbar-h); }
.sidebar { width: var(--sidebar-w); background: var(--bg-elevated); border-right: 1px solid var(--border); position: fixed; top: var(--topbar-h); bottom: 0; left: 0; overflow-y: auto; z-index: 50; }
.sidebar-nav { padding: 16px 12px; display: flex; flex-direction: column; gap: 4px; }
.sidebar-nav .nav-item { padding: 11px 13px; }
.sidebar-nav .nav-item.active::after { content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 3px; height: 55%; background: var(--accent); border-radius: 0 3px 3px 0; }
.sidebar-nav .nav-item.active::before { display: none; }
.sidebar-footer { padding: 16px; border-top: 1px solid var(--border); }
.sidebar-status { display: flex; align-items: center; gap: 8px; font-size: 0.8rem; color: var(--fg-muted); }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--fg-subtle); }
.status-dot.online { background: var(--success); box-shadow: 0 0 8px var(--success); animation: pulseDot 2s ease-in-out infinite; }
.sidebar-version { display: block; color: var(--fg-subtle); font-size: 0.7rem; font-family: var(--font-mono); margin-top: 6px; }

.content { flex: 1; margin-left: var(--sidebar-w); padding: 32px; min-height: calc(100vh - var(--topbar-h)); }

.page { display: none; animation: fadeIn 220ms var(--transition); }
.page-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 28px; flex-wrap: wrap; }
.page-header h2 { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; }
.page-header p { color: var(--fg-muted); margin-top: 4px; }
.page-actions { display: flex; gap: 12px; }

.card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 24px; transition: border-color var(--transition); }
.card:hover { border-color: var(--border-bright); }
.card-header { padding: 18px 24px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.card-header h3 { font-size: 1.02rem; font-weight: 600; }
.card-body { padding: 24px; }
.card-footer { padding: 14px 24px; border-top: 1px solid var(--border); background: var(--bg-elevated); display: flex; justify-content: center; }

.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 18px; margin-bottom: 24px; }
.stat-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px; display: flex; align-items: flex-start; gap: 15px; transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition); position: relative; overflow: hidden; }
.stat-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--accent), #00b8ff, #7c4dff); background-size: 200% 100%; opacity: 0; transition: opacity var(--transition); }
.stat-card:hover { border-color: var(--accent); transform: translateY(-4px); box-shadow: var(--shadow-md), 0 0 24px var(--accent-glow); }
.stat-card:hover::before { opacity: 1; animation: shimmer 2s linear infinite; }
.stat-icon { width: 46px; height: 46px; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.stat-icon svg { width: 23px; height: 23px; }
.stat-icon.total { background: var(--info-dim); color: var(--info); }
.stat-icon.active { background: var(--success-dim); color: var(--success); }
.stat-icon.expired { background: var(--warning-dim); color: var(--warning); }
.stat-icon.banned { background: var(--danger-dim); color: var(--danger); }
.stat-icon.pending { background: var(--warning-dim); color: var(--warning); }
.stat-icon.users { background: var(--info-dim); color: var(--info); }
.stat-content { flex: 1; min-width: 0; }
.stat-value { font-size: 1.9rem; font-weight: 700; font-family: var(--font-mono); line-height: 1.1; }
.stat-label { color: var(--fg-muted); font-size: 0.84rem; margin-top: 3px; }
.stat-trend { font-size: 0.73rem; font-weight: 600; margin-top: 7px; }
.stat-trend.up { color: var(--success); }
.stat-trend.down { color: var(--danger); }

.table-wrapper { overflow-x: auto; border-radius: var(--radius-md); }
table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
thead { background: var(--bg-elevated); }
th { padding: 13px 15px; text-align: left; font-weight: 600; color: var(--fg-muted); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; border-bottom: 1px solid var(--border); white-space: nowrap; }
td { padding: 13px 15px; border-bottom: 1px solid var(--border); vertical-align: middle; }
tbody tr { transition: background var(--transition); }
tbody tr:hover td { background: var(--bg-card-hover); }
tbody tr:last-child td { border-bottom: none; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; font-size: 0.68rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.badge-active { background: var(--success-dim); color: var(--success); }
.badge-pending { background: var(--warning-dim); color: var(--warning); }
.badge-expired { background: var(--warning-dim); color: var(--warning); }
.badge-banned { background: var(--danger-dim); color: var(--danger); }
.badge-all { background: var(--info-dim); color: var(--info); }
.code { font-family: var(--font-mono); font-size: 0.79rem; background: var(--bg); padding: 2px 8px; border-radius: 4px; border: 1px solid var(--border); }
.mono { font-family: var(--font-mono); font-size: 0.83rem; color: var(--fg-muted); }

.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; margin-bottom: 18px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label { font-size: 0.78rem; font-weight: 600; color: var(--fg-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.form-field input, .form-field select, .form-field textarea { padding: 11px 14px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-md); color: var(--fg); font-family: var(--font-ui); font-size: 0.92rem; transition: border-color var(--transition), box-shadow var(--transition); }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim); outline: none; }
.form-field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7a83' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/polyline%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 17px; padding-right: 38px; }
.form-field textarea { min-height: 90px; resize: vertical; }
.form-hint { font-size: 0.74rem; color: var(--fg-subtle); }

.toggle-switch { position: relative; display: inline-flex; }
.toggle-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.toggle-switch .slider { width: 50px; height: 27px; background: var(--border); border-radius: 999px; position: relative; cursor: pointer; border: 1px solid var(--border); display: block; }
.toggle-switch .slider::before { content: ''; position: absolute; top: 2px; left: 2px; width: 21px; height: 21px; background: white; border-radius: 50%; transition: transform var(--transition); box-shadow: 0 2px 6px rgba(0,0,0,0.3); }
.toggle-switch input:checked + .slider { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 12px var(--accent-glow); }
.toggle-switch input:checked + .slider::before { transform: translateX(23px); }

.tabs { display: flex; gap: 4px; background: var(--bg); border-radius: var(--radius-md); padding: 4px; border: 1px solid var(--border); }
.tab-btn { padding: 9px 18px; background: none; border: none; color: var(--fg-muted); font-family: var(--font-ui); font-weight: 500; font-size: 0.88rem; border-radius: var(--radius-sm); cursor: pointer; transition: all var(--transition); }
.tab-btn:hover { color: var(--fg); background: var(--bg-card); }
.tab-btn.active { color: var(--accent); background: var(--accent-dim); }

.modal-container { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(0,0,0,0.6); backdrop-filter: blur(4px); }
.modal { position: relative; width: 100%; max-width: 520px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); overflow: hidden; animation: scaleIn 220ms var(--transition); }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--border); }
.modal-header h3 { font-size: 1.08rem; font-weight: 600; }
.modal-close { width: 34px; height: 34px; border-radius: var(--radius-md); background: transparent; border: 1px solid var(--border); color: var(--fg-muted); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.modal-close:hover { color: var(--danger); border-color: var(--danger); }
.modal-close svg { width: 17px; height: 17px; }
.modal-body { padding: 24px; }
.modal-footer { display: flex; justify-content: flex-end; gap: 12px; padding: 15px 24px; border-top: 1px solid var(--border); background: var(--bg-elevated); }

.toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 2000; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.toast { display: flex; align-items: flex-start; gap: 12px; padding: 15px 18px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); min-width: 280px; pointer-events: auto; animation: slideUp 300ms var(--transition); }
.toast-icon { width: 23px; height: 23px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.toast-icon svg { width: 20px; height: 20px; }
.toast-success .toast-icon { color: var(--success); }
.toast-error .toast-icon { color: var(--danger); }
.toast-warning .toast-icon { color: var(--warning); }
.toast-info .toast-icon { color: var(--info); }
.toast-content { flex: 1; }
.toast-title { font-weight: 600; font-size: 0.88rem; }
.toast-message { font-size: 0.84rem; color: var(--fg-muted); margin-top: 2px; }
.toast-close { background: none; border: none; color: var(--fg-subtle); cursor: pointer; }
.toast-close:hover { color: var(--fg); }
.toast-close svg { width: 15px; height: 15px; }

.empty-state { display: flex; flex-direction: column; align-items: center; padding: 56px 24px; text-align: center; color: var(--fg-muted); }
.empty-state svg { width: 70px; height: 70px; opacity: 0.3; margin-bottom: 18px; }
.empty-state h3 { font-size: 1.05rem; color: var(--fg); margin-bottom: 7px; }
.empty-state p { font-size: 0.88rem; max-width: 300px; }

.pagination { display: flex; align-items: center; justify-content: center; gap: 7px; }
.page-btn { min-width: 34px; height: 34px; padding: 0 8px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-md); background: var(--bg-card); border: 1px solid var(--border); color: var(--fg-muted); cursor: pointer; font-family: var(--font-ui); }
.page-btn:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.page-btn.active { background: var(--accent); border-color: var(--accent); color: #040608; }
.page-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.page-info { color: var(--fg-subtle); font-size: 0.83rem; margin: 0 6px; }

.flex { display: flex; }
.items-center { align-items: center; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.w-full { width: 100%; }
.hidden { display: none !important; }

@media (max-width: 1024px) {
  .sidebar { transform: translateX(-100%); transition: transform var(--transition); }
  .sidebar.open { transform: none; }
  .content { margin-left: 0; }
  .topbar-nav { display: none; }
  .topbar-left { display: flex; }
}
@media (max-width: 640px) {
  .login-content { padding: 32px 24px 28px; }
  .content { padding: 20px 16px; }
  .stats-grid { grid-template-columns: 1fr; }
  .modal { margin: 12px; }
  .toast-container { left: 16px; right: 16px; bottom: 16px; }
  .toast { min-width: 0; }
  .page-header { flex-direction: column; }
  .brand-name { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
