:root {
  --bg-primary: #0a0e27;
  --bg-secondary: #0f1535;
  --card-bg: rgba(20, 28, 60, 0.6);
  --card-border: rgba(100, 200, 255, 0.15);
  --accent-primary: #00d9ff;
  --accent-secondary: #ff006e;
  --accent-glow: rgba(0, 217, 255, 0.2);
  --text-primary: #f0f4f8;
  --text-secondary: #a0aac0;
  --success: #00ff88;
  --danger: #ff3366;
  --warning: #ffaa00;
  --gold: #ffd700;
  --radius: 16px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body[data-theme="cosmic-purple"] {
  --bg-primary: #1a0a2e;
  --bg-secondary: #16213e;
  --card-border: rgba(188, 85, 255, 0.15);
  --accent-primary: #bc55ff;
  --accent-secondary: #ff006e;
  --accent-glow: rgba(188, 85, 255, 0.2);
}

body[data-theme="sunset-fire"] {
  --bg-primary: #2a1810;
  --bg-secondary: #3d2314;
  --card-border: rgba(255, 140, 0, 0.15);
  --accent-primary: #ff8c00;
  --accent-secondary: #ff3366;
  --accent-glow: rgba(255, 140, 0, 0.2);
}

body[data-theme="forest-green"] {
  --bg-primary: #0a2818;
  --bg-secondary: #0f3d20;
  --card-border: rgba(0, 255, 136, 0.15);
  --accent-primary: #00ff88;
  --accent-secondary: #00d9ff;
  --accent-glow: rgba(0, 255, 136, 0.2);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto Mono', sans-serif;
}

html, body {
  width: 100%;
  height: 100%;
}

body {
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background 0.5s ease;
}

.hidden { display: none !important; }

/* World-frozen visual cue for non-admins */
body.world-frozen .dashboard-grid {
  filter: grayscale(0.35);
}
body.world-frozen::before {
  content: "🧊 The Citadel has frozen the network";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1500;
  text-align: center;
  padding: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  background: var(--warning);
  color: #000;
}

.glass-card {
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: var(--transition);
}

.glass-card:hover {
  border-color: rgba(100, 200, 255, 0.3);
  box-shadow: 0 12px 48px rgba(0, 217, 255, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* ========== NOTIFICATIONS ========== */
#notification-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 400px;
}

.notification {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  animation: slideInRight 0.3s ease;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(20px);
}

.notification.success { border-color: var(--success); }
.notification.error { border-color: var(--danger); }
.notification.warning { border-color: var(--warning); }
.notification.info { border-color: var(--accent-primary); }

.notification-icon { font-size: 1.2rem; flex-shrink: 0; }
.notification-content { flex: 1; }
.notification-title { font-weight: 600; font-size: 0.9rem; color: var(--text-primary); }
.notification-message { font-size: 0.8rem; color: var(--text-secondary); margin-top: 4px; }
.notification-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 1rem;
  padding: 0;
  flex-shrink: 0;
}

@keyframes slideInRight {
  from { transform: translateX(400px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
@keyframes slideOutRight {
  to { transform: translateX(400px); opacity: 0; }
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}
@keyframes glow {
  0%, 100% { box-shadow: 0 0 10px var(--accent-primary); }
  50% { box-shadow: 0 0 20px var(--accent-primary); }
}
@keyframes popIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* ========== AUTH ========== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 14, 39, 0.95);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  padding: 16px;
}

.auth-card {
  width: 100%;
  max-width: 380px;
  padding: 40px;
  text-align: center;
  animation: popIn 0.3s ease;
}

.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.brand h2 {
  font-size: 1.6rem;
  letter-spacing: 1px;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pulse-dot {
  width: 12px;
  height: 12px;
  background: var(--accent-primary);
  border-radius: 50%;
  animation: pulse 2s infinite;
  box-shadow: 0 0 12px var(--accent-primary);
  flex-shrink: 0;
}

.subtitle {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-bottom: 24px;
  line-height: 1.4;
}

.input-group { margin-bottom: 16px; }

input, select, textarea {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  color: var(--text-primary);
  outline: none;
  font-size: 0.9rem;
  transition: var(--transition);
}

input:focus, select:focus, textarea:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 16px var(--accent-glow);
  background: rgba(255, 255, 255, 0.08);
}

.remember-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 12px;
  cursor: pointer;
}

.remember-check input { width: auto; }

/* ========== BUTTONS ========== */
.btn {
  width: 100%;
  padding: 12px 16px;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.9rem;
}

.btn:active { transform: scale(0.97); }

.btn-primary {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: #000;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 20px var(--accent-glow); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  border: 1px solid var(--card-border);
}
.btn-secondary:hover { background: rgba(255, 255, 255, 0.15); border-color: var(--accent-primary); }

.btn-danger {
  background: rgba(255, 51, 102, 0.15);
  color: var(--danger);
  border: 1px solid var(--danger);
}
.btn-danger:hover { background: rgba(255, 51, 102, 0.25); }

.btn-small { width: auto; padding: 8px 16px; font-size: 0.8rem; }

.btn-icon {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 1.2rem;
  padding: 0;
  transition: var(--transition);
}
.btn-icon:hover { color: var(--danger); }

.btn-min {
  background: none;
  border: none;
  color: #000;
  font-weight: bold;
  cursor: pointer;
  padding: 0;
  font-size: 1.2rem;
  line-height: 1;
}

/* ========== NAVBAR ========== */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  margin: 16px;
  gap: 16px;
  flex-wrap: wrap;
}

.nav-brand { display: flex; align-items: center; gap: 12px; flex: 1; flex-wrap: wrap; }

.status-indicator {
  width: 10px;
  height: 10px;
  background: var(--success);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--success);
  animation: pulse 2s infinite;
  flex-shrink: 0;
}

.brand-title { font-weight: 700; letter-spacing: 0.5px; font-size: 1rem; white-space: nowrap; }

.node-badge {
  font-size: 0.7rem;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.05);
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid var(--card-border);
}

.nav-user { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }

.stat-pill { display: flex; flex-direction: column; align-items: flex-end; font-size: 0.7rem; gap: 2px; }
.stat-pill .label { color: var(--text-secondary); }
.stat-pill .value { font-weight: bold; color: var(--accent-primary); font-size: 0.9rem; }

.username-tag {
  font-weight: 600;
  border-left: 1px solid var(--card-border);
  padding-left: 12px;
  font-size: 0.9rem;
}

/* ========== DASHBOARD GRID ========== */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  padding: 0 16px 16px;
  flex-grow: 1;
  overflow-y: auto;
}

@media (min-width: 1024px) {
  .dashboard-grid { grid-template-columns: 1fr 1fr 1fr; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .dashboard-grid { grid-template-columns: 1fr 1fr; }
}

.column-left, .column-middle, .column-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.module-card {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 260px;
}

.module-header { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.module-header h3 { font-size: 1rem; font-weight: 600; letter-spacing: 0.5px; }

.badge {
  font-size: 0.65rem;
  color: var(--accent-primary);
  background: var(--accent-glow);
  padding: 4px 10px;
  border-radius: 8px;
  font-weight: 600;
  white-space: nowrap;
}

/* ========== CHAT ========== */
.chat-container {
  height: 220px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-right: 4px;
  flex: 1;
}

.chat-msg {
  background: rgba(255, 255, 255, 0.03);
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.85rem;
  line-height: 1.4;
  border-left: 3px solid var(--accent-primary);
  transition: var(--transition);
  word-break: break-word;
  animation: popIn 0.2s ease;
}
.chat-msg:hover { background: rgba(255, 255, 255, 0.06); }
.chat-msg .author { font-weight: 600; color: var(--accent-primary); margin-right: 6px; }
.chat-msg-admin { border-left-color: var(--gold); }
.chat-msg-admin .author { color: var(--gold); }

.chat-input-wrapper { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

.chat-fee-display {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  color: var(--accent-primary);
  background: rgba(0, 217, 255, 0.1);
  padding: 6px 10px;
  border-radius: 8px;
  white-space: nowrap;
}
.fee-label { color: var(--text-secondary); }
.fee-amount { font-weight: 600; }

/* ========== USERS LIST ========== */
.users-list-container { max-height: 300px; overflow-y: auto; flex: 1; }
.users-list { display: flex; flex-direction: column; gap: 8px; }

.user-item {
  background: rgba(255, 255, 255, 0.03);
  padding: 12px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition);
}
.user-item:hover { background: rgba(255, 255, 255, 0.06); border-color: var(--accent-primary); }

.user-status {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 6px var(--success);
  flex-shrink: 0;
}
.user-status.offline { background: var(--text-secondary); box-shadow: none; }

.user-info { flex: 1; min-width: 0; }
.user-name { font-weight: 600; color: var(--text-primary); }
.user-rank { color: var(--text-secondary); font-size: 0.75rem; margin-top: 2px; }
.user-credits { color: var(--accent-primary); font-weight: bold; white-space: nowrap; }

.active-users-count {
  font-size: 0.7rem;
  color: var(--success);
  background: rgba(0, 255, 136, 0.1);
  padding: 4px 10px;
  border-radius: 8px;
  white-space: nowrap;
}

.btn-toggle-users {
  background: none;
  border: none;
  color: var(--accent-primary);
  cursor: pointer;
  font-size: 0.9rem;
  padding: 0;
}

/* ========== EVENTS ========== */
.event-card {
  background: rgba(255, 255, 255, 0.03);
  padding: 14px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  animation: popIn 0.25s ease;
}

.event-title { font-weight: 600; font-size: 0.9rem; color: var(--text-primary); }
.event-desc { font-size: 0.8rem; color: var(--text-secondary); }
.event-meta { font-size: 0.75rem; color: var(--text-secondary); display: flex; justify-content: space-between; }

.vote-bar-container {
  height: 14px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  border: 1px solid var(--card-border);
}
.vote-bar.yes { background: var(--success); transition: width 0.4s ease; }
.vote-bar.no { background: var(--danger); transition: width 0.4s ease; }

.vote-stats { display: flex; justify-content: space-between; font-size: 0.75rem; color: var(--text-secondary); }
.vote-actions { display: flex; gap: 8px; }

.btn-vote {
  flex: 1;
  padding: 10px;
  font-size: 0.75rem;
  border: 1px solid;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 600;
}
.btn-vote-yes { border-color: var(--success); color: var(--success); }
.btn-vote-yes:hover:not(:disabled) { background: rgba(0, 255, 136, 0.1); }
.btn-vote-no { border-color: var(--danger); color: var(--danger); }
.btn-vote-no:hover:not(:disabled) { background: rgba(255, 51, 102, 0.1); }
.btn-vote:disabled { opacity: 0.5; cursor: not-allowed; }

.event-nav { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 0.85rem; }
.event-counter { color: var(--text-secondary); font-weight: 600; }

/* ========== QUIZ ========== */
.puzzle-prompt { font-size: 0.95rem; margin-bottom: 12px; line-height: 1.5; color: var(--text-primary); }
.puzzle-input-group { display: flex; gap: 8px; }
.puzzle-input-group input { flex: 1; }

.feedback-text {
  font-size: 0.8rem;
  margin-top: 10px;
  min-height: 18px;
  color: var(--text-secondary);
  font-weight: 500;
}
.feedback-text.success { color: var(--success); }
.feedback-text.error { color: var(--danger); }

.quiz-stats { display: flex; gap: 16px; font-size: 0.85rem; margin-top: 10px; color: var(--text-secondary); }
.quiz-stats strong { color: var(--accent-primary); }

/* ========== ECONOMY ========== */
.yield-display {
  background: rgba(255, 255, 255, 0.03);
  padding: 16px;
  border-radius: 10px;
  text-align: center;
  border: 1px solid var(--card-border);
  margin-bottom: 12px;
}
.yield-rate { display: block; font-size: 1.3rem; font-weight: bold; color: var(--accent-primary); margin-bottom: 4px; }
.yield-status { font-size: 0.75rem; color: var(--text-secondary); }

.economy-stats { display: flex; gap: 10px; margin-bottom: 12px; }
.stat-card {
  flex: 1;
  background: rgba(255, 255, 255, 0.03);
  padding: 12px;
  border-radius: 10px;
  text-align: center;
  border: 1px solid var(--card-border);
  min-width: 0;
}
.stat-label { display: block; font-size: 0.7rem; color: var(--text-secondary); margin-bottom: 6px; }
.stat-value { display: block; font-weight: bold; color: var(--accent-primary); font-size: 1.1rem; overflow-wrap: break-word; }

.transfer-box { display: flex; flex-direction: column; gap: 10px; }
.transfer-amount-group { display: flex; gap: 8px; align-items: center; }
.transfer-amount-group input { flex: 1; }

.transfer-fee-info {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  color: var(--accent-primary);
  background: rgba(0, 217, 255, 0.1);
  padding: 6px 10px;
  border-radius: 8px;
  white-space: nowrap;
}

.transfer-summary {
  background: rgba(255, 255, 255, 0.03);
  padding: 10px;
  border-radius: 8px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.transfer-summary strong { color: var(--text-primary); }

.input-inline { display: flex; gap: 8px; flex-wrap: wrap; }
.input-inline input, .input-inline select, .input-inline button { flex: 1; min-width: 90px; }

/* ========== BANK ========== */
.bank-box { display: flex; flex-direction: column; gap: 10px; }
.bank-form { display: flex; gap: 8px; }
.bank-form input { flex: 1; }
.bank-form button { width: auto; white-space: nowrap; }
.bank-divider {
  font-size: 0.7rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: center;
  padding: 4px 0;
  border-top: 1px solid var(--card-border);
  margin-top: 4px;
}

/* ========== LEADERBOARD ========== */
.leaderboard-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 400px;
  overflow-y: auto;
  flex: 1;
}

.leaderboard-item {
  background: rgba(255, 255, 255, 0.03);
  padding: 12px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition);
}
.leaderboard-item:hover { background: rgba(255, 255, 255, 0.06); }
.leaderboard-item.is-you { border-color: var(--accent-primary); background: rgba(0, 217, 255, 0.06); }

.rank-badge {
  width: 32px;
  height: 32px;
  background: var(--accent-primary);
  color: #000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.8rem;
  flex-shrink: 0;
}
.rank-badge.gold { background: #ffd700; }
.rank-badge.silver { background: #c0c0c0; color: #000; }
.rank-badge.bronze { background: #cd7f32; }

.leader-info { flex: 1; min-width: 0; }
.leader-name { font-weight: 600; color: var(--text-primary); overflow-wrap: break-word; }
.leader-score { color: var(--accent-primary); font-weight: bold; white-space: nowrap; }

.loading-text { text-align: center; color: var(--text-secondary); font-size: 0.8rem; padding: 20px; }

/* ========== ADMIN FAB ========== */
.admin-fab {
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  font-size: 1.3rem;
  cursor: pointer;
  z-index: 998;
  box-shadow: 0 8px 24px var(--accent-glow);
  transition: var(--transition);
}
.admin-fab:hover { transform: scale(1.08); }

/* ========== ADMIN PANEL ========== */
.admin-panel {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 95%;
  max-width: 500px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.4);
  z-index: 999;
  max-height: 80vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(20px);
}

.admin-header {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: #000;
  padding: 14px 16px;
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  border-radius: var(--radius) var(--radius) 0 0;
  z-index: 1;
}

.admin-body { padding: 16px; display: flex; flex-direction: column; gap: 12px; flex: 1; }

.admin-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  border-bottom: 1px solid var(--card-border);
  padding-bottom: 10px;
}

.admin-tab {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.8rem;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
  font-weight: 500;
  border-bottom: 2px solid transparent;
}
.admin-tab.active { color: var(--accent-primary); border-bottom-color: var(--accent-primary); }

/* Single source of truth for tab visibility: the .active class. */
.admin-tab-content {
  display: none;
  flex-direction: column;
  gap: 10px;
}
.admin-tab-content.active { display: flex; }

.admin-control-group { display: flex; flex-direction: column; gap: 6px; }
.admin-control-group label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.admin-control-group input[type="range"] { height: 4px; cursor: pointer; }

.admin-search { display: flex; gap: 8px; }
.admin-search input { flex: 1; }

.admin-users-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 400px;
  overflow-y: auto;
}

.admin-user-item {
  background: rgba(255, 255, 255, 0.03);
  padding: 10px;
  border-radius: 8px;
  font-size: 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border: 1px solid var(--card-border);
  gap: 8px;
  flex-wrap: wrap;
}

.admin-user-name { font-weight: bold; color: var(--accent-primary); }
.admin-user-info { color: var(--text-secondary); margin-top: 4px; }

.admin-user-actions { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }

.admin-balance-display {
  background: rgba(255, 255, 255, 0.03);
  padding: 12px;
  border-radius: 8px;
  text-align: center;
  font-weight: bold;
  color: var(--accent-primary);
  font-size: 1.2rem;
  border: 1px solid var(--accent-primary);
}

.admin-events-list { display: flex; flex-direction: column; gap: 8px; max-height: 300px; overflow-y: auto; }
.admin-event-item {
  background: rgba(255, 255, 255, 0.03);
  padding: 10px;
  border-radius: 8px;
  font-size: 0.75rem;
  border: 1px solid var(--card-border);
}

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.03); }
::-webkit-scrollbar-thumb { background: var(--accent-primary); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-secondary); }

/* ========== RESPONSIVE ========== */
@media (max-width: 600px) {
  .navbar { flex-direction: column; align-items: flex-start; padding: 12px; margin: 12px; }
  .nav-user { width: 100%; justify-content: space-between; }
  .module-card { min-height: 240px; }
  .admin-panel { width: 95vw; left: 2.5%; right: auto; max-width: none; }
  .admin-fab { left: 12px; bottom: 12px; }
}