/* =============================================
   REZENITH — GLOBAL STYLES
   Dark · Glassmorphism · Purple Accent
   ============================================= */

/* ---------- CSS Variables ---------- */
:root {
  --bg-dark:       #07070f;
  --bg-mid:        #0d0d1a;
  --bg-surface:    #12121f;
  --glass-bg:      rgba(18, 18, 31, 0.65);
  --glass-inner:   rgba(255,255,255,0.04);
  --glass-border:  rgba(130, 80, 255, 0.18);
  --glass-blur:    18px;

  --accent:        #8b5cf6;
  --accent-bright: #a78bfa;
  --accent-dim:    #6d28d9;
  --accent-glow:   rgba(139, 92, 246, 0.35);
  --accent-glow-s: rgba(139, 92, 246, 0.12);

  --discord:       #5865F2;
  --danger:        #ef4444;
  --warning:       #f59e0b;
  --success:       #22c55e;
  --info:          #3b82f6;

  --text-primary:  #f1f0ff;
  --text-muted:    #8b8aab;
  --text-dim:      #4e4d6e;

  --sidebar-w:     260px;
  --radius:        14px;
  --radius-sm:     8px;
  --transition:    0.22s ease;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { display: block; }
button { cursor: pointer; font-family: inherit; }
input, textarea, select {
  font-family: inherit;
  background: transparent;
  border: none;
  outline: none;
  color: inherit;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(139,92,246,0.35); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ---------- Utility ---------- */
.hidden { display: none !important; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-2 { gap: 8px; }
.gap-4 { gap: 16px; }
.mt-4 { margin-top: 16px; }

/* =============================================
   PARTICLES CANVAS
   ============================================= */
#particles-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* =============================================
   GLASS EFFECT
   ============================================= */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
}

.glass-inner {
  background: var(--glass-inner);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-sm);
}

/* =============================================
   LOGIN PAGE
   ============================================= */
.login-page {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.login-glow {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(139,92,246,0.18) 0%, transparent 70%);
  pointer-events: none;
}

.login-card {
  max-width: 420px;
  width: 100%;
  border-radius: 24px;
  padding: 48px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  animation: fadeSlideUp 0.6s ease;
}

.login-card::before {
  content: '';
  position: absolute;
  top: -60px; left: -60px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(139,92,246,0.15), transparent 70%);
  pointer-events: none;
}

.login-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 32px;
}

.logo-icon {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, var(--accent-dim), var(--accent));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #fff;
  box-shadow: 0 0 24px var(--accent-glow);
}

.logo-icon.small {
  width: 34px; height: 34px;
  border-radius: 10px;
  font-size: 15px;
}

.logo-text {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #fff 30%, var(--accent-bright));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.login-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}

.login-subtitle {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 32px;
}

.btn-discord {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--discord);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: var(--radius);
  width: 100%;
  transition: all var(--transition);
  box-shadow: 0 4px 24px rgba(88,101,242,0.35);
}

.btn-discord:hover {
  background: #4752c4;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(88,101,242,0.5);
}

.btn-discord i { font-size: 18px; }

.login-footer {
  margin-top: 24px;
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.6;
}

/* =============================================
   DASHBOARD LAYOUT
   ============================================= */
.dashboard {
  display: flex;
  min-height: 100vh;
  position: relative;
  z-index: 10;
}

/* ---------- Sidebar ---------- */
.sidebar {
  width: var(--sidebar-w);
  min-height: 100vh;
  border-radius: 0;
  border-top: none;
  border-bottom: none;
  border-left: none;
  position: fixed;
  top: 0; left: 0;
  display: flex;
  flex-direction: column;
  z-index: 100;
  transition: width var(--transition), transform var(--transition);
  overflow: hidden;
}

.sidebar.collapsed { width: 72px; }
.sidebar.collapsed .sidebar-nav .nav-item span,
.sidebar.collapsed .server-info .guild-details,
.sidebar.collapsed .sidebar-user .user-details,
.sidebar.collapsed .nav-section-label,
.sidebar.collapsed .logo-text { display: none; }

.sidebar-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 16px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
}

.sidebar-toggle-btn {
  margin-left: auto;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 16px;
  padding: 4px 6px;
  border-radius: 6px;
  transition: all var(--transition);
}
.sidebar-toggle-btn:hover { color: var(--accent-bright); background: var(--glass-inner); }

/* Server info block */
.server-info {
  margin: 12px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.guild-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  object-fit: cover;
  flex-shrink: 0;
  background: var(--bg-surface);
}

.guild-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.guild-status {
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.guild-status.online { color: var(--success); }
.guild-status i { font-size: 8px; }

/* Nav */
.sidebar-nav {
  flex: 1;
  padding: 8px;
  overflow-y: auto;
  overflow-x: hidden;
}

.nav-section-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  padding: 16px 12px 6px;
  white-space: nowrap;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-muted);
  transition: all var(--transition);
  white-space: nowrap;
  margin-bottom: 2px;
}

.nav-item i {
  width: 18px;
  text-align: center;
  font-size: 15px;
  flex-shrink: 0;
}

.nav-item:hover {
  background: rgba(139,92,246,0.1);
  color: var(--text-primary);
}

.nav-item.active {
  background: rgba(139,92,246,0.18);
  color: var(--accent-bright);
  border-left: 2px solid var(--accent);
}

.nav-item.danger { color: rgba(239,68,68,0.7); }
.nav-item.danger:hover { background: rgba(239,68,68,0.1); color: var(--danger); }

/* Sidebar user */
.sidebar-user {
  margin: 12px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.user-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-surface);
  flex-shrink: 0;
}

.user-name {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-tag { font-size: 11px; color: var(--text-dim); }

/* ---------- Main Content ---------- */
.main-content {
  flex: 1;
  margin-left: var(--sidebar-w);
  padding: 32px;
  transition: margin-left var(--transition);
  min-height: 100vh;
}

.main-content.expanded { margin-left: 72px; }

/* =============================================
   PAGE HEADER
   ============================================= */
.page-header {
  margin-bottom: 28px;
  animation: fadeSlideUp 0.4s ease;
}

.page-title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 4px;
}

.page-subtitle {
  font-size: 14px;
  color: var(--text-muted);
}

/* =============================================
   CARDS / STAT CARDS
   ============================================= */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.stat-card {
  border-radius: var(--radius);
  padding: 20px;
  position: relative;
  overflow: hidden;
  transition: all var(--transition);
  animation: fadeSlideUp 0.4s ease backwards;
}

.stat-card:hover { transform: translateY(-3px); }

.stat-card::after {
  content: '';
  position: absolute;
  bottom: 0; right: 0;
  width: 80px; height: 80px;
  background: radial-gradient(circle at center, var(--accent-glow-s), transparent 70%);
}

.stat-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  margin-bottom: 14px;
}

.stat-icon.purple  { background: rgba(139,92,246,0.15); color: var(--accent-bright); }
.stat-icon.blue    { background: rgba(59,130,246,0.15); color: #60a5fa; }
.stat-icon.green   { background: rgba(34,197,94,0.15);  color: #4ade80; }
.stat-icon.orange  { background: rgba(245,158,11,0.15); color: #fbbf24; }
.stat-icon.red     { background: rgba(239,68,68,0.15);  color: #f87171; }

.stat-value {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.stat-change {
  font-size: 11px;
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 3px;
}

.stat-change.up   { color: var(--success); }
.stat-change.down { color: var(--danger); }

/* =============================================
   CONTENT CARDS
   ============================================= */
.card {
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
  animation: fadeSlideUp 0.4s ease backwards;
}

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

.card-title {
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-title i {
  color: var(--accent-bright);
  font-size: 14px;
}

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 600;
  border: none;
  transition: all var(--transition);
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-dim), var(--accent));
  color: #fff;
  box-shadow: 0 4px 16px var(--accent-glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 24px var(--accent-glow); }

.btn-ghost {
  background: var(--glass-inner);
  color: var(--text-muted);
  border: 1px solid rgba(255,255,255,0.08);
}
.btn-ghost:hover { color: var(--text-primary); background: rgba(255,255,255,0.06); }

.btn-danger {
  background: rgba(239,68,68,0.15);
  color: var(--danger);
  border: 1px solid rgba(239,68,68,0.25);
}
.btn-danger:hover { background: rgba(239,68,68,0.25); }

.btn-success {
  background: rgba(34,197,94,0.15);
  color: var(--success);
  border: 1px solid rgba(34,197,94,0.25);
}
.btn-success:hover { background: rgba(34,197,94,0.25); }

.btn-sm { padding: 6px 12px; font-size: 12px; border-radius: 6px; }

/* =============================================
   FORM ELEMENTS
   ============================================= */
.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 13.5px;
  color: var(--text-primary);
  transition: all var(--transition);
}

.form-control:focus {
  border-color: var(--accent);
  background: rgba(139,92,246,0.07);
  box-shadow: 0 0 0 3px var(--accent-glow-s);
}

.form-control::placeholder { color: var(--text-dim); }

textarea.form-control { resize: vertical; min-height: 100px; }

select.form-control option { background: var(--bg-surface); }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* =============================================
   TOGGLE / SWITCH
   ============================================= */
.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.toggle-row:last-child { border-bottom: none; }

.toggle-info { flex: 1; }
.toggle-title { font-size: 13.5px; font-weight: 600; margin-bottom: 3px; }
.toggle-desc { font-size: 12px; color: var(--text-muted); }

.toggle {
  position: relative;
  width: 42px;
  height: 24px;
  flex-shrink: 0;
}

.toggle input { opacity: 0; width: 0; height: 0; }

.toggle-slider {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.1);
  border-radius: 24px;
  cursor: pointer;
  transition: background var(--transition);
}

.toggle-slider::before {
  content: '';
  position: absolute;
  width: 18px; height: 18px;
  left: 3px; top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform var(--transition);
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.toggle input:checked + .toggle-slider { background: var(--accent); }
.toggle input:checked + .toggle-slider::before { transform: translateX(18px); }

/* =============================================
   TABLES
   ============================================= */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.data-table th {
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  color: var(--text-muted);
}

.data-table tbody tr:hover td { background: rgba(139,92,246,0.05); }

.data-table td:first-child,
.data-table th:first-child { color: var(--text-primary); font-weight: 600; }

/* =============================================
   BADGES
   ============================================= */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}

.badge-purple  { background: rgba(139,92,246,0.18); color: var(--accent-bright); }
.badge-green   { background: rgba(34,197,94,0.15);  color: #4ade80; }
.badge-red     { background: rgba(239,68,68,0.15);  color: #f87171; }
.badge-yellow  { background: rgba(245,158,11,0.15); color: #fbbf24; }
.badge-blue    { background: rgba(59,130,246,0.15); color: #60a5fa; }
.badge-gray    { background: rgba(255,255,255,0.08); color: var(--text-muted); }

/* =============================================
   TABS
   ============================================= */
.tabs {
  display: flex;
  gap: 4px;
  background: rgba(255,255,255,0.04);
  padding: 4px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  width: fit-content;
}

.tab-btn {
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  border: none;
  background: transparent;
  transition: all var(--transition);
}

.tab-btn.active {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 12px var(--accent-glow);
}

/* =============================================
   PROGRESS BARS
   ============================================= */
.progress-bar {
  height: 6px;
  background: rgba(255,255,255,0.08);
  border-radius: 10px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-dim), var(--accent-bright));
  border-radius: 10px;
  transition: width 0.6s ease;
}

/* =============================================
   BOT STATUS PAGE
   ============================================= */
.status-ring {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.status-ring-circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 3px solid rgba(139,92,246,0.2);
  border-top-color: var(--accent);
  border-right-color: var(--accent-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  position: relative;
}

.status-ring-pulse {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid var(--accent-glow);
  animation: pulse-ring 2.5s ease infinite;
}

/* =============================================
   EMBED BUILDER
   ============================================= */
.embed-preview {
  border-radius: var(--radius-sm);
  padding: 16px;
  background: #2b2d31;
  border-left: 4px solid var(--accent);
  position: relative;
}

.embed-preview-author { font-size: 12px; font-weight: 600; margin-bottom: 6px; opacity: 0.85; }
.embed-preview-title  { font-size: 16px; font-weight: 700; margin-bottom: 8px; color: #fff; }
.embed-preview-desc   { font-size: 13.5px; color: #dcddde; line-height: 1.6; }
.embed-preview-footer { font-size: 11px; color: #72767d; margin-top: 12px; padding-top: 8px; border-top: 1px solid rgba(255,255,255,0.06); }

.color-picker-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.color-swatch {
  width: 36px; height: 36px;
  border-radius: 8px;
  border: 2px solid rgba(255,255,255,0.1);
  cursor: pointer;
  transition: transform 0.15s ease;
}
.color-swatch:hover { transform: scale(1.1); }
.color-swatch.selected { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow-s); }

/* =============================================
   LEADERBOARD
   ============================================= */
.leaderboard-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.lb-rank {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-dim);
  width: 28px;
  text-align: center;
  flex-shrink: 0;
}
.lb-rank.gold   { color: #fbbf24; }
.lb-rank.silver { color: #94a3b8; }
.lb-rank.bronze { color: #b45309; }

.lb-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--bg-surface);
  object-fit: cover;
  flex-shrink: 0;
}

.lb-info { flex: 1; }
.lb-name  { font-size: 13.5px; font-weight: 600; margin-bottom: 4px; }
.lb-xp    { font-size: 12px; color: var(--text-dim); }

.lb-level {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-bright);
}

/* =============================================
   CHARTS (Pure CSS placeholders)
   ============================================= */
.chart-container {
  position: relative;
  height: 200px;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding-bottom: 24px;
}

.chart-bar {
  flex: 1;
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-dim) 100%);
  border-radius: 4px 4px 0 0;
  opacity: 0.8;
  transition: opacity var(--transition), transform var(--transition);
  position: relative;
  min-height: 4px;
}

.chart-bar:hover { opacity: 1; transform: scaleY(1.02); transform-origin: bottom; }

.chart-bar::after {
  content: attr(data-label);
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  color: var(--text-dim);
  white-space: nowrap;
}

.chart-bar-value {
  position: absolute;
  top: -22px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  opacity: 0;
  transition: opacity var(--transition);
}

.chart-bar:hover .chart-bar-value { opacity: 1; }

/* =============================================
   TOAST NOTIFICATIONS
   ============================================= */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: var(--radius);
  font-size: 13.5px;
  font-weight: 500;
  background: rgba(18,18,31,0.95);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  animation: slideInRight 0.3s ease;
  max-width: 320px;
}

.toast.success i { color: var(--success); }
.toast.error   i { color: var(--danger); }
.toast.info    i { color: var(--accent-bright); }
.toast.warning i { color: var(--warning); }

/* =============================================
   MODAL
   ============================================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(6px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fadeIn 0.2s ease;
}

.modal-box {
  border-radius: 20px;
  padding: 28px;
  max-width: 540px;
  width: 100%;
  animation: fadeSlideUp 0.3s ease;
}

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

.modal-header h3 { font-size: 17px; font-weight: 700; }

.modal-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 18px;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all var(--transition);
}
.modal-close:hover { color: var(--text-primary); background: var(--glass-inner); }

/* =============================================
   SECTION GRIDS
   ============================================= */
.section-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.section-grid.triple {
  grid-template-columns: 1fr 1fr 1fr;
}

.section-grid.left-heavy {
  grid-template-columns: 2fr 1fr;
}

/* =============================================
   TICKET CATEGORY CARDS
   ============================================= */
.ticket-category {
  border-radius: var(--radius);
  padding: 18px;
  transition: all var(--transition);
  cursor: pointer;
  border: 1px solid var(--glass-border);
}

.ticket-category:hover {
  border-color: var(--accent);
  background: rgba(139,92,246,0.05);
  transform: translateY(-2px);
}

.tc-icon {
  font-size: 22px;
  margin-bottom: 12px;
}

.tc-name  { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.tc-count { font-size: 12px; color: var(--text-muted); }

/* =============================================
   ANIMATIONS
   ============================================= */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(24px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes pulse-ring {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50%       { transform: scale(1.08); opacity: 0.15; }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.spinning { animation: spin 1.2s linear infinite; }

/* Stagger animation delays */
.stat-card:nth-child(1) { animation-delay: 0.05s; }
.stat-card:nth-child(2) { animation-delay: 0.1s; }
.stat-card:nth-child(3) { animation-delay: 0.15s; }
.stat-card:nth-child(4) { animation-delay: 0.2s; }
.stat-card:nth-child(5) { animation-delay: 0.25s; }
.stat-card:nth-child(6) { animation-delay: 0.3s; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .section-grid       { grid-template-columns: 1fr; }
  .section-grid.triple { grid-template-columns: 1fr 1fr; }
  .section-grid.left-heavy { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --sidebar-w: 0px; }

  .sidebar {
    transform: translateX(-260px);
    width: 260px;
  }

  .sidebar.mobile-open {
    transform: translateX(0);
    width: 260px;
  }

  .main-content { margin-left: 0; padding: 16px; }

  .stats-grid { grid-template-columns: 1fr 1fr; }
  .form-row   { grid-template-columns: 1fr; }
  .section-grid.triple { grid-template-columns: 1fr; }

  .login-card { padding: 32px 24px; }
}

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

/* =============================================
   MOBILE TOP BAR
   ============================================= */
.mobile-topbar {
  display: none;
  position: sticky;
  top: 0;
  z-index: 99;
  padding: 12px 16px;
  align-items: center;
  gap: 12px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  margin-bottom: 16px;
}

@media (max-width: 768px) {
  .mobile-topbar { display: flex; }
}

.mobile-menu-btn {
  background: transparent;
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 16px;
  transition: all var(--transition);
}
.mobile-menu-btn:hover { color: var(--accent-bright); }

/* =============================================
   MODERATION LOG
   ============================================= */
.mod-action {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.mod-icon {
  width: 34px; height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}

.mod-info { flex: 1; }
.mod-title   { font-size: 13.5px; font-weight: 600; margin-bottom: 3px; }
.mod-meta    { font-size: 12px; color: var(--text-dim); }

.mod-case {
  font-size: 11px;
  color: var(--text-dim);
  font-weight: 600;
  flex-shrink: 0;
}

/* =============================================
   WELCOME CARD PREVIEW
   ============================================= */
.welcome-card-preview {
  border-radius: var(--radius);
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  padding: 28px;
  display: flex;
  align-items: center;
  gap: 20px;
  position: relative;
  overflow: hidden;
}

.welcome-card-preview::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent-glow-s), transparent 60%);
}

.welcome-avatar {
  width: 70px; height: 70px;
  border-radius: 50%;
  border: 3px solid var(--accent);
  background: var(--bg-surface);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.welcome-text { position: relative; z-index: 1; }
.welcome-greeting { font-size: 22px; font-weight: 800; margin-bottom: 6px; }
.welcome-sub      { font-size: 13px; color: var(--text-muted); }

/* =============================================
   EMPTY STATES
   ============================================= */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  color: var(--text-dim);
  text-align: center;
}

.empty-state i    { font-size: 40px; margin-bottom: 16px; opacity: 0.4; }
.empty-state h3   { font-size: 16px; font-weight: 600; color: var(--text-muted); margin-bottom: 6px; }
.empty-state p    { font-size: 13px; max-width: 280px; }
