/* ========================================
   EquipTrack — Design System
   Military-grade dark theme
   ======================================== */

:root {
  --bg-primary: #080c0a;
  --bg-secondary: #0d1310;
  --bg-surface: #131c18;
  --bg-surface-hover: #192520;
  --bg-surface-elevated: #1f2f28;
  --accent: #4ade80;
  --accent-dim: #22c55e;
  --accent-glow: rgba(74, 222, 128, 0.15);
  --amber: #f59e0b;
  --amber-dim: rgba(245, 158, 11, 0.15);
  --danger: #ef4444;
  --danger-dim: rgba(239, 68, 68, 0.15);
  --info: #3b82f6;
  --info-dim: rgba(59, 130, 246, 0.15);
  --text-primary: #e2e8f0;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border: #1e3a2f;
  --border-light: #2a4a3d;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --shadow: 0 4px 20px rgba(0,0,0,0.4);
  --transition: 180ms ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
  overflow-x: hidden;
  min-height: 100dvh;
}
a { color: var(--accent); text-decoration: none; cursor: pointer; }
input, select, textarea, button { font-family: inherit; font-size: inherit; }

/* ---- Pages ---- */
.page { display: none !important; }
.page.active { display: block !important; }
#app-shell.active { display: flex !important; }

/* ======== LANDING PAGE ======== */
.landing-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px;
  background: rgba(8,12,10,0.8);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.landing-nav-left {
  display: flex; align-items: center; gap: 10px; cursor: pointer;
}
.nav-logo-icon { color: var(--accent); }
.nav-logo-text { font-size: 1.2rem; font-weight: 800; letter-spacing: -0.5px; }
.landing-nav-right { display: flex; align-items: center; gap: 10px; }

.hero {
  min-height: 100dvh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 100px 24px 60px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(74,222,128,0.06) 0%, transparent 60%),
    linear-gradient(rgba(8,12,10,0.95), rgba(8,12,10,1)),
    repeating-linear-gradient(0deg, transparent, transparent 40px, rgba(74,222,128,0.02) 40px, rgba(74,222,128,0.02) 41px),
    repeating-linear-gradient(90deg, transparent, transparent 40px, rgba(74,222,128,0.02) 40px, rgba(74,222,128,0.02) 41px);
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 16px;
  background: var(--accent-glow);
  border: 1px solid rgba(74,222,128,0.2);
  border-radius: 30px;
  font-size: 0.78rem; font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 24px;
  animation: fadeScaleIn 0.6s ease;
}
.hero-title {
  font-size: clamp(2rem, 6vw, 3.6rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 18px;
  animation: fadeScaleIn 0.6s ease 0.1s both;
}
.hero-accent {
  background: linear-gradient(135deg, var(--accent), #34d399);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  max-width: 560px;
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 32px;
  animation: fadeScaleIn 0.6s ease 0.2s both;
}
.hero-actions {
  display: flex; gap: 12px; flex-wrap: wrap; justify-content: center;
  margin-bottom: 56px;
  animation: fadeScaleIn 0.6s ease 0.3s both;
}
.btn-lg { padding: 14px 32px; font-size: 1rem; border-radius: var(--radius-lg); }
.hero-features {
  display: flex; gap: 20px; flex-wrap: wrap; justify-content: center;
  max-width: 700px;
  animation: slideUp 0.6s ease 0.4s both;
}
.hero-feature {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: left;
  font-size: 0.85rem;
  transition: all var(--transition);
}
.hero-feature:hover { border-color: var(--accent-dim); transform: translateY(-2px); }
.hero-feature span { color: var(--text-muted); font-size: 0.78rem; }
.hero-feature-icon { font-size: 1.6rem; }

/* ======== AUTH PAGE ======== */
.auth-container {
  min-height: 100dvh;
  display: flex; align-items: center; justify-content: center;
  padding: 80px 20px 40px;
  background:
    linear-gradient(rgba(8,12,10,0.94), rgba(8,12,10,0.98)),
    repeating-linear-gradient(0deg, transparent, transparent 40px, rgba(74,222,128,0.02) 40px, rgba(74,222,128,0.02) 41px),
    repeating-linear-gradient(90deg, transparent, transparent 40px, rgba(74,222,128,0.02) 40px, rgba(74,222,128,0.02) 41px);
}
.auth-card {
  display: none;
  width: 100%; max-width: 420px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px 28px 28px;
  box-shadow: var(--shadow), 0 0 60px rgba(74,222,128,0.04);
  animation: fadeScaleIn 0.4s ease;
}
.auth-card.active { display: block; }
.auth-header { text-align: center; margin-bottom: 28px; }
.login-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 68px; height: 68px;
  border-radius: 50%;
  background: var(--accent-glow);
  color: var(--accent);
  margin-bottom: 14px;
  border: 1px solid rgba(74,222,128,0.2);
}
.signup-icon { background: var(--info-dim); color: var(--info); border-color: rgba(59,130,246,0.2); }
.auth-header h1 { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.3px; }
.auth-subtitle { color: var(--text-muted); font-size: 0.88rem; margin-top: 4px; }
.auth-toggle {
  text-align: center; margin-top: 20px; padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 0.85rem; color: var(--text-muted);
}

/* ======== FORMS ======== */
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block; font-size: 0.75rem; font-weight: 600;
  color: var(--text-secondary); margin-bottom: 5px;
  text-transform: uppercase; letter-spacing: 0.5px;
}
input, select, textarea {
  width: 100%; padding: 11px 14px;
  background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: var(--radius-md); color: var(--text-primary);
  outline: none; transition: border var(--transition), box-shadow var(--transition);
}
input:focus, select:focus, textarea:focus {
  border-color: var(--accent-dim);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
input::placeholder { color: var(--text-muted); }
textarea { resize: vertical; min-height: 70px; }
select {
  cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px;
}
.form-row { display: flex; gap: 12px; }
.form-row .form-group { flex: 1; }

/* ======== BUTTONS ======== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 20px; border: 1px solid transparent; border-radius: var(--radius-md);
  font-weight: 600; font-size: 0.88rem; cursor: pointer;
  transition: all var(--transition); white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #080c0a; border-color: var(--accent); }
.btn-primary:hover { background: #5ced92; box-shadow: 0 0 20px var(--accent-glow); }
.btn-primary:active { transform: scale(0.97); }
.btn-secondary { background: transparent; color: var(--text-primary); border-color: var(--border-light); }
.btn-secondary:hover { background: var(--bg-surface-hover); border-color: var(--text-muted); }
.btn-danger { background: var(--danger-dim); color: var(--danger); border-color: rgba(239,68,68,0.3); }
.btn-danger:hover { background: rgba(239,68,68,0.25); }
.btn-amber { background: var(--amber-dim); color: var(--amber); border-color: rgba(245,158,11,0.3); }
.btn-amber:hover { background: rgba(245,158,11,0.25); }
.btn-ghost { background: transparent; color: var(--text-secondary); padding: 8px; border-radius: var(--radius-sm); }
.btn-ghost:hover { color: var(--text-primary); background: var(--bg-surface-hover); }
.btn-full { width: 100%; }
.btn-sm { padding: 6px 12px; font-size: 0.8rem; }

/* ======== APP LAYOUT ======== */
#app-shell { flex-direction: column; min-height: 100dvh; }
#top-bar {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px;
  background: rgba(8,12,10,0.85); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.topbar-left { display: flex; align-items: center; gap: 10px; }
.app-logo { display: flex; align-items: center; justify-content: center; color: var(--accent); }
.app-name { font-size: 1.1rem; font-weight: 700; letter-spacing: -0.3px; }
.topbar-right { display: flex; align-items: center; gap: 12px; }
.user-info { display: none; }
.role-badge {
  display: inline-block; font-size: 0.65rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  padding: 2px 8px; border-radius: 20px;
  background: var(--accent-glow); color: var(--accent);
  border: 1px solid rgba(74,222,128,0.2);
}
#sidebar-nav { display: none; }
#main-content { flex: 1; padding: 16px; padding-bottom: 80px; overflow-y: auto; }

/* ======== BOTTOM NAV ======== */
#bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: stretch; justify-content: space-around;
  background: rgba(13,19,16,0.95); backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  padding: 6px 0; padding-bottom: max(6px, env(safe-area-inset-bottom));
}
.nav-item {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 8px 12px; color: var(--text-muted);
  font-size: 0.65rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px;
  border-radius: var(--radius-sm); transition: color var(--transition);
  cursor: pointer; text-decoration: none;
}
.nav-item:hover { color: var(--text-secondary); }
.nav-item.active { color: var(--accent); }

/* ======== CARDS ======== */
.card {
  background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.card:hover { border-color: var(--border-light); }
.card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.card-header h2 { font-size: 1rem; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.card-header h2 svg { color: var(--accent); }

/* ======== DASHBOARD QUICK ACTIONS ======== */
.quick-actions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 20px; }
.quick-action {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 20px 16px;
  background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  cursor: pointer; transition: all var(--transition);
  text-align: center;
}
.quick-action:hover { border-color: var(--accent-dim); transform: translateY(-2px); box-shadow: 0 4px 20px rgba(0,0,0,0.3); }
.quick-action-icon {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-md); font-size: 1.4rem;
}
.quick-action-icon.green { background: var(--accent-glow); }
.quick-action-icon.amber { background: var(--amber-dim); }
.quick-action-icon.blue { background: var(--info-dim); }
.quick-action-icon.red { background: var(--danger-dim); }
.quick-action-label { font-weight: 600; font-size: 0.85rem; }
.quick-action-desc { font-size: 0.72rem; color: var(--text-muted); }

/* ======== STATS ======== */
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 20px; }
.stat-card {
  background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 16px; text-align: center;
  transition: all var(--transition);
}
.stat-card:hover { border-color: var(--border-light); transform: translateY(-2px); }
.stat-value { font-size: 2rem; font-weight: 700; font-family: var(--font-mono); line-height: 1.1; }
.stat-label { font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); margin-top: 4px; }
.stat-card.green .stat-value { color: var(--accent); }
.stat-card.amber .stat-value { color: var(--amber); }
.stat-card.red .stat-value { color: var(--danger); }
.stat-card.blue .stat-value { color: var(--info); }

/* ======== EQUIPMENT CARDS ======== */
.equip-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.equip-card {
  background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 16px;
  cursor: pointer; transition: all var(--transition);
  animation: slideUp 0.35s ease both;
}
.equip-card:hover { border-color: var(--accent-dim); transform: translateY(-2px); box-shadow: 0 4px 20px rgba(0,0,0,0.3); }
.equip-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.equip-icon {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-md); flex-shrink: 0;
}
.equip-icon.drone { background: var(--info-dim); color: var(--info); }
.equip-icon.radio { background: rgba(168,85,247,0.15); color: #a855f7; }
.equip-icon.vehicle { background: var(--amber-dim); color: var(--amber); }
.equip-icon.other { background: rgba(148,163,184,0.1); color: var(--text-secondary); }
.equip-info { flex: 1; min-width: 0; }
.equip-name { font-weight: 600; font-size: 0.95rem; margin-bottom: 2px; }
.equip-serial { font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-muted); }
.equip-meta { display: flex; align-items: center; gap: 12px; margin-top: 10px; flex-wrap: wrap; }
.equip-meta-item { display: flex; align-items: center; gap: 4px; font-size: 0.78rem; color: var(--text-secondary); }
.equip-meta-item svg { width: 14px; height: 14px; flex-shrink: 0; }

/* ======== BADGES ======== */
.status-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: 20px;
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
}
.status-badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.status-badge.available { background: rgba(74,222,128,0.12); color: var(--accent); }
.status-badge.available::before { background: var(--accent); box-shadow: 0 0 6px var(--accent); }
.status-badge.checked_out { background: var(--amber-dim); color: var(--amber); }
.status-badge.checked_out::before { background: var(--amber); box-shadow: 0 0 6px var(--amber); }
.status-badge.maintenance { background: var(--danger-dim); color: var(--danger); }
.status-badge.maintenance::before { background: var(--danger); box-shadow: 0 0 6px var(--danger); }
.type-badge { font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.4px; padding: 2px 8px; border-radius: 4px; }
.type-badge.drone { background: var(--info-dim); color: var(--info); }
.type-badge.radio { background: rgba(168,85,247,0.15); color: #a855f7; }
.type-badge.vehicle { background: var(--amber-dim); color: var(--amber); }
.type-badge.other { background: rgba(148,163,184,0.1); color: var(--text-secondary); }

/* ======== FILTERS ======== */
.filters-bar { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.filters-bar input, .filters-bar select { padding: 8px 12px; font-size: 0.85rem; flex: 1; min-width: 120px; }
.filters-bar input { min-width: 180px; }

/* ======== LOCATIONS ======== */
.location-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.location-cluster { background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; animation: slideUp 0.35s ease both; }
.location-header { display: flex; align-items: center; gap: 10px; padding: 14px 16px; background: var(--bg-surface-elevated); border-bottom: 1px solid var(--border); }
.location-header svg { color: var(--accent); flex-shrink: 0; }
.location-name { font-weight: 700; font-size: 0.95rem; }
.location-count { margin-left: auto; font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-muted); background: var(--bg-secondary); padding: 2px 8px; border-radius: 10px; }
.location-items { padding: 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.location-item { display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--radius-md); font-size: 0.82rem; cursor: pointer; transition: all var(--transition); }
.location-item:hover { border-color: var(--accent-dim); background: var(--bg-surface-hover); }

/* ======== LOGS ======== */
.log-list { display: flex; flex-direction: column; gap: 8px; }
.log-entry { display: flex; gap: 12px; padding: 14px 16px; background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius-lg); animation: slideUp 0.3s ease both; }
.log-icon { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 50%; flex-shrink: 0; }
.log-icon.check_out { background: var(--amber-dim); color: var(--amber); }
.log-icon.check_in { background: rgba(74,222,128,0.12); color: var(--accent); }
.log-body { flex: 1; min-width: 0; }
.log-action { font-weight: 600; font-size: 0.88rem; }
.log-detail { font-size: 0.8rem; color: var(--text-secondary); margin-top: 2px; }
.log-time { font-size: 0.72rem; color: var(--text-muted); font-family: var(--font-mono); margin-top: 4px; }

/* ======== ADMIN TABLE ======== */
.admin-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.admin-table th, .admin-table td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--border); white-space: nowrap; }
.admin-table th { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; color: var(--text-muted); background: var(--bg-surface-elevated); position: sticky; top: 0; }
.admin-table tr:hover td { background: var(--bg-surface-hover); }
.admin-table .actions { display: flex; gap: 6px; }

/* ======== MODAL ======== */
#modal-overlay { position: fixed; inset: 0; z-index: 1000; background: rgba(0,0,0,0.6); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; padding: 20px; animation: fadeIn 0.2s ease; }
#modal-container { width: 100%; max-width: 500px; max-height: 90dvh; overflow-y: auto; background: var(--bg-surface); border: 1px solid var(--border-light); border-radius: var(--radius-xl); padding: 28px 24px; position: relative; animation: fadeScaleIn 0.25s ease; }
#modal-close-btn { position: absolute; top: 12px; right: 12px; z-index: 10; }
.modal-title { font-size: 1.2rem; font-weight: 700; margin-bottom: 20px; }
.modal-actions { display: flex; gap: 10px; margin-top: 24px; }
.modal-actions .btn { flex: 1; }

/* ======== TOAST ======== */
#toast-container { position: fixed; top: 16px; right: 16px; z-index: 2000; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast { padding: 12px 18px; border-radius: var(--radius-md); font-size: 0.85rem; font-weight: 500; pointer-events: auto; animation: slideInRight 0.3s ease; box-shadow: var(--shadow); border: 1px solid; max-width: 360px; }
.toast.success { background: rgba(74,222,128,0.1); color: var(--accent); border-color: rgba(74,222,128,0.3); }
.toast.error { background: rgba(239,68,68,0.1); color: var(--danger); border-color: rgba(239,68,68,0.3); }
.toast.info { background: rgba(59,130,246,0.1); color: var(--info); border-color: rgba(59,130,246,0.3); }
.toast.removing { animation: slideOutRight 0.3s ease forwards; }

/* ======== LOADING ======== */
#loading-overlay { position: fixed; inset: 0; z-index: 3000; background: rgba(8,12,10,0.7); display: flex; align-items: center; justify-content: center; }
.spinner { width: 40px; height: 40px; border: 3px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.7s linear infinite; }
.hidden { display: none !important; }

/* ======== MISC ======== */
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.empty-state svg { width: 48px; height: 48px; margin-bottom: 16px; opacity: 0.4; }
.empty-state p { font-size: 0.9rem; }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; gap: 12px; flex-wrap: wrap; }
.section-title { font-size: 1.15rem; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.section-title svg { color: var(--accent); }

/* ======== ANIMATIONS ======== */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeScaleIn { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }
@keyframes slideUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideInRight { from { opacity: 0; transform: translateX(60px); } to { opacity: 1; transform: translateX(0); } }
@keyframes slideOutRight { to { opacity: 0; transform: translateX(60px); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ======== RESPONSIVE ======== */
@media (min-width: 640px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .equip-grid { grid-template-columns: repeat(2, 1fr); }
  .location-grid { grid-template-columns: repeat(2, 1fr); }
  .quick-actions { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 900px) {
  html { font-size: 16px; }
  .user-info { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
  #user-display-name { font-weight: 600; font-size: 0.85rem; }
  #bottom-nav { display: none; }
  #sidebar-nav {
    display: flex; flex-direction: column;
    position: fixed; left: 0; top: 53px; bottom: 0;
    width: 200px; background: var(--bg-secondary);
    border-right: 1px solid var(--border);
    padding: 12px 8px; gap: 4px; z-index: 50;
  }
  #sidebar-nav .nav-item { flex-direction: row; justify-content: flex-start; padding: 10px 14px; font-size: 0.82rem; border-radius: var(--radius-md); gap: 10px; }
  #sidebar-nav .nav-item.active { background: var(--accent-glow); color: var(--accent); }
  #sidebar-nav .nav-item:hover { background: var(--bg-surface-hover); }
  #main-content { margin-left: 200px; padding: 24px; padding-bottom: 24px; max-width: 1100px; }
  #top-bar { padding: 12px 24px; }
  .equip-grid { grid-template-columns: repeat(3, 1fr); }
}