@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ========================================
   DESIGN TOKENS — LIGHT THEME
   ======================================== */
:root {
  --bg: #f0f2f5;
  --bg-subtle: #e8eaed;
  --card: rgba(255, 255, 255, 0.82);
  --card-solid: #ffffff;
  --border: rgba(0, 0, 0, 0.06);
  --border-hover: rgba(14, 165, 233, 0.35);
  --accent: #0ea5e9;
  --accent-hover: #0284c7;
  --accent-glow: rgba(14, 165, 233, 0.25);
  --accent-subtle: rgba(14, 165, 233, 0.08);
  --text: #111827;
  --text-secondary: #6b7280;
  --text-muted: #9ca3af;
  --red: #ef4444;
  --red-hover: #dc2626;
  --green-accent: #10b981;
  --input: rgba(0, 0, 0, 0.03);
  --input-focus: #ffffff;
  --dropdown-bg: #ffffff;
  --header-bg: rgba(255, 255, 255, 0.72);
  --header-text: #111827;
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.06), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.06), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 0 20px rgba(14, 165, 233, 0.15);
  --gradient-card: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(255,255,255,0.6));
  --gradient-accent: linear-gradient(135deg, #0ea5e9, #06b6d4);
  --gradient-accent-hover: linear-gradient(135deg, #0284c7, #0891b2);
  --blur-amount: 20px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --radius-full: 9999px;
}

/* ========================================
   DESIGN TOKENS — DARK THEME
   ======================================== */
body.dark {
  --bg: #0a0a0f;
  --bg-subtle: #121218;
  --card: rgba(22, 22, 30, 0.72);
  --card-solid: #16161e;
  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(56, 189, 248, 0.4);
  --accent: #38bdf8;
  --accent-hover: #7dd3fc;
  --accent-glow: rgba(56, 189, 248, 0.25);
  --accent-subtle: rgba(56, 189, 248, 0.08);
  --text: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --red: #f87171;
  --red-hover: #ef4444;
  --green-accent: #34d399;
  --input: rgba(255, 255, 255, 0.04);
  --input-focus: rgba(255, 255, 255, 0.08);
  --dropdown-bg: #1e1e2a;
  --header-bg: rgba(10, 10, 15, 0.82);
  --header-text: #f1f5f9;
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 30px rgba(56, 189, 248, 0.12);
  --gradient-card: linear-gradient(135deg, rgba(22,22,30,0.9), rgba(22,22,30,0.5));
  --gradient-accent: linear-gradient(135deg, #38bdf8, #22d3ee);
  --gradient-accent-hover: linear-gradient(135deg, #7dd3fc, #67e8f9);
  --blur-amount: 24px;
}

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

* {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

/* ========================================
   BODY
   ======================================== */
body {
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(14, 165, 233, 0.07), transparent),
    radial-gradient(ellipse 60% 40% at 80% 50%, rgba(139, 92, 246, 0.04), transparent);
}
body.dark {
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(56, 189, 248, 0.08), transparent),
    radial-gradient(ellipse 60% 40% at 80% 50%, rgba(139, 92, 246, 0.06), transparent);
}

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-hover); }

/* ========================================
   GLASSMORPHISM CARDS
   ======================================== */
.glass {
  background: var(--gradient-card);
  backdrop-filter: blur(var(--blur-amount));
  -webkit-backdrop-filter: blur(var(--blur-amount));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
  animation: cardFadeIn 0.5s ease-out both;
}
.glass::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  opacity: 0.6;
}
body.dark .glass::before {
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
}
.glass:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

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

/* ========================================
   HEADER
   ======================================== */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 32px;
  background: var(--header-bg);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  color: var(--header-text);
  flex-wrap: wrap;
  gap: 12px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo h1 {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--header-text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo span {
  font-size: 11px;
  color: var(--text-muted);
  display: block;
  margin-top: 2px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* ========================================
   STAT PILLS
   ======================================== */
.stats { display: flex; gap: 10px; flex-wrap: wrap; }
.pill {
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--input);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
  letter-spacing: 0.2px;
}
.pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px currentColor;
  animation: dotPulse 2s ease-in-out infinite;
}
@keyframes dotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.6; transform: scale(0.85); }
}

/* ========================================
   NAVIGATION BUTTONS
   ======================================== */
.nav-links { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.nav-btn {
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  position: relative;
}
.nav-btn:hover {
  background: var(--accent-subtle);
  color: var(--accent);
  border-color: transparent;
  transform: translateY(-1px);
}
.nav-btn.active {
  background: var(--accent-subtle);
  color: var(--accent);
  border-color: var(--border-hover);
  font-weight: 600;
}
.nav-btn.danger { color: var(--red); }
.nav-btn.danger:hover {
  background: rgba(239, 68, 68, 0.08);
  color: var(--red-hover);
}

/* ========================================
   THEME TOGGLE — DROPDOWN
   ======================================== */
.theme-switcher-dropdown {
  position: relative;
  display: inline-block;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--input);
  cursor: pointer;
  color: var(--text);
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.theme-toggle:hover {
  background: var(--input-focus);
}

.theme-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--dropdown-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 140px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 999;
}

.theme-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: none;
  background: transparent;
  border-radius: 6px;
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  text-align: left;
  width: 100%;
  transition: all 0.2s ease;
}

.theme-option:hover {
  background: var(--accent-subtle);
  color: var(--text);
}

.theme-switcher-dropdown svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ========================================
   PROFILE DROPDOWN
   ======================================== */
.profile-dropdown-container {
  position: relative;
  display: inline-block;
  margin-left: 10px;
}

.profile-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--input);
  cursor: pointer;
  padding: 2px;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.profile-toggle:hover {
  background: var(--input-focus);
  transform: scale(1.05);
}

.avatar-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}

.profile-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--dropdown-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  min-width: 240px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.95);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 999;
  overflow: hidden;
  transform-origin: top right;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: var(--card-solid);
  border-bottom: 1px solid var(--border);
}

.profile-avatar-large {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 20px;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.profile-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.profile-name {
  color: var(--text);
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-email {
  color: var(--text-muted);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-body {
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: transparent;
}

.profile-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.detail-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.detail-value {
  font-size: 13px;
  color: var(--text);
  font-weight: 500;
}

.profile-footer {
  padding: 8px;
  border-top: 1px solid var(--border);
  background: var(--card-solid);
}

.logout-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px;
  border-radius: var(--radius-sm);
  border: none;
  background: transparent;
  color: var(--red);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.logout-btn:hover {
  background: var(--red-hover);
  color: white;
}

/* ========================================
   LAYOUT
   ======================================== */
main {
  padding: 32px;
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 28px;
  min-height: 0;
  max-width: 1600px;
  margin: 0 auto;
}
main.full { grid-template-columns: 1fr; }

/* ========================================
   FORM ELEMENTS
   ======================================== */
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
.form-group label span { color: var(--red); }

input, select, textarea {
  width: 100%;
  padding: 11px 14px;
  background: var(--input);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.02);
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--input-focus);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

select option { background: var(--dropdown-bg); color: var(--text); padding: 8px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ========================================
   BUTTONS — PREMIUM GRADIENT STYLE
   ======================================== */
.btn {
  width: 100%;
  padding: 12px 22px;
  background: var(--gradient-accent);
  border: none;
  color: white;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.2px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 14px var(--accent-glow);
  text-align: center;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transition: left 0.5s ease;
}
.btn:hover {
  background: var(--gradient-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--accent-glow);
}
.btn:hover::before {
  left: 100%;
}
.btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px var(--accent-glow);
}

.btn-sm {
  padding: 9px 18px;
  font-size: 13px;
  width: auto;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.btn-red {
  background: linear-gradient(135deg, #ef4444, #f87171);
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.25);
}
.btn-red:hover {
  background: linear-gradient(135deg, #dc2626, #ef4444);
  box-shadow: 0 8px 25px rgba(239, 68, 68, 0.35);
}

.btn-green {
  background: linear-gradient(135deg, #10b981, #34d399);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.25);
}
.btn-green:hover {
  background: linear-gradient(135deg, #059669, #10b981);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.35);
}

/* ========================================
   WORKER CHIPS
   ======================================== */
.worker-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.chip {
  padding: 7px 14px;
  background: var(--input);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
  color: var(--text-secondary);
}
.chip:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-subtle);
  transform: translateY(-1px);
}
.chip.sel {
  background: var(--gradient-accent);
  border-color: transparent;
  color: white;
  box-shadow: 0 3px 10px var(--accent-glow);
  transform: translateY(-1px);
}

/* ========================================
   TABLES
   ======================================== */
.tbl-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: var(--shadow-sm);
}
table { width: 100%; border-collapse: collapse; min-width: 800px; text-align: left; }
th {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  white-space: nowrap;
  background: var(--input);
}
td {
  padding: 14px 16px;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
tr:last-child td { border-bottom: none; }
tr { transition: background-color 0.2s; }
tr:hover td { background: var(--accent-subtle); }

/* ========================================
   MODAL
   ======================================== */
.modal-bg {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 999;
  padding: 20px;
  overflow-y: auto;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.modal-bg.show { display: flex; opacity: 1; }
.modal {
  width: 100%;
  max-width: 480px;
  padding: 32px;
  text-align: left;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.modal-bg.show .modal {
  transform: translateY(0) scale(1);
}
.modal h3 {
  margin-bottom: 8px;
  font-size: 22px;
  font-weight: 800;
  text-align: center;
  letter-spacing: -0.3px;
}
.modal .modal-sub {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 24px;
  text-align: center;
  font-weight: 500;
}
.modal-btns { display: flex; gap: 12px; justify-content: center; margin-top: 24px; }
.modal-btns .btn { width: auto; padding: 10px 24px; }

/* ========================================
   ADMIN GRID & ITEMS
   ======================================== */
.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 20px;
}
.admin-item {
  display: flex;
  flex-direction: column;
  padding: 24px;
  background: var(--gradient-card);
  backdrop-filter: blur(var(--blur-amount));
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-lg);
  gap: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.admin-item::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 80px;
  height: 80px;
  background: radial-gradient(circle, var(--accent-subtle), transparent 70%);
  border-radius: 50%;
  transform: translate(30%, -30%);
  opacity: 0;
  transition: opacity 0.4s;
}
.admin-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl), var(--shadow-glow);
  border-color: var(--border-hover);
}
.admin-item:hover::after { opacity: 1; }
.admin-item .name { font-size: 16px; font-weight: 700; }
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  background: var(--accent-subtle);
  color: var(--accent);
}

.section-title {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  letter-spacing: -0.3px;
}

/* ========================================
   LOGIN PAGE
   ======================================== */
.login-container {
  max-width: 420px;
  margin: 80px auto;
  padding: 40px;
  background: var(--gradient-card);
  backdrop-filter: blur(var(--blur-amount));
  -webkit-backdrop-filter: blur(var(--blur-amount));
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  animation: cardFadeIn 0.5s ease-out both;
}
.login-container h2 {
  text-align: center;
  margin-bottom: 28px;
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 26px;
  letter-spacing: -0.5px;
  color: var(--text);
}

/* ========================================
   DECORATIVE — WATERMARK & CURSOR
   ======================================== */
.watermark {
  position: fixed;
  bottom: 5%;
  right: 3%;
  font-size: 100px;
  font-weight: 900;
  opacity: 0.02;
  pointer-events: none;
  letter-spacing: -2px;
}
body.dark .watermark { opacity: 0.03; }

.cursor-follower {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.12;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  filter: blur(60px);
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s, opacity 0.3s;
}

/* ========================================
   PAGE-LOAD STAGGERED ANIMATIONS
   ======================================== */
main > *:nth-child(1) { animation-delay: 0.05s; }
main > *:nth-child(2) { animation-delay: 0.12s; }
main > *:nth-child(3) { animation-delay: 0.19s; }
main > *:nth-child(4) { animation-delay: 0.26s; }

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
  main { grid-template-columns: 1fr; padding: 20px; }
}
@media (max-width: 768px) {
  header { flex-direction: column; align-items: flex-start; padding: 14px 18px; }
  .nav-links { width: 100%; justify-content: flex-start; margin-top: 10px; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 5px; scrollbar-width: none; }
  .nav-links::-webkit-scrollbar { display: none; }
  main { padding: 14px; }
  .glass { padding: 20px; }
  .row { grid-template-columns: 1fr; }
  .admin-grid { grid-template-columns: 1fr; }
  .theme-switcher { order: 0; flex-shrink: 0; }
}

/* ========================================
   UTILITY
   ======================================== */
.pill, .chip, .stats {
  user-select: none;
  -webkit-user-select: none;
  cursor: default;
}
