/* ══════════════════════════════════════════════════════════════════════════
   PRECISION & MATERIAL DESIGN SYSTEM (GitPulse)
   Apple-grade Dark Developer Aesthetic — Full Width Layout
   ══════════════════════════════════════════════════════════════════════════ */

:root {
  /* Color Tokens */
  --bg: #131315;
  --surface: #131315;
  --surface-low: #1b1b1d;
  --surface-card: #1f1f21;
  --surface-high: #2a2a2c;
  --surface-highest: #353437;
  --surface-hover: rgba(255, 255, 255, 0.05);

  --primary: #adc6ff;
  --primary-glow: rgba(173, 198, 255, 0.15);
  --primary-container: #4b8eff;
  --secondary: #c6c6c7;

  --text-primary: #e4e2e4;
  --text-secondary: #c1c6d7;
  --text-muted: #8b90a0;
  --text-outline: #414755;

  --border-hairline: rgba(255, 255, 255, 0.07);
  --border-glass: rgba(255, 255, 255, 0.12);
  --border-subtle: rgba(255, 255, 255, 0.04);

  --emerald-0: rgba(255, 255, 255, 0.04);
  --emerald-1: rgba(6, 78, 59, 0.85);
  --emerald-2: rgba(4, 120, 87, 0.9);
  --emerald-3: #10b981;
  --emerald-4: #34d399;

  --error: #ffb4ab;
  --error-bg: rgba(147, 0, 10, 0.2);
  --error-border: rgba(255, 180, 171, 0.2);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --max-width: 1440px;
}

/* ── Global Resets ── */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  background-color: var(--bg);
  color: var(--text-primary);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  background-color: var(--bg);
  overflow-x: hidden;
}

::selection {
  background: var(--primary-glow);
  color: var(--primary);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  background: none;
  border: none;
  font-family: inherit;
  color: inherit;
  cursor: pointer;
}

input {
  font-family: inherit;
  color: inherit;
}

.hidden {
  display: none !important;
}

/* ── Glassmorphism Surfaces ── */
.glass-panel {
  background: rgba(44, 44, 46, 0.45);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-glass);
}

.glass-substrate {
  background: rgba(28, 28, 30, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-hairline);
}

/* ══════════════════════════════════════════════════════════════════════════
   1. NAVBAR
   ══════════════════════════════════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 64px;
  background: rgba(19, 19, 21, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-hairline);
  z-index: 50;
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-name {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
  background: linear-gradient(90deg, #adc6ff 0%, #c6c6c7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-dev-profile {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 6px;
  border-radius: var(--radius-full);
  background: rgba(173, 198, 255, 0.08);
  border: 1px solid rgba(173, 198, 255, 0.2);
  color: var(--primary);
  font-size: 12px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.btn-dev-profile:hover {
  background: rgba(173, 198, 255, 0.18);
  border-color: var(--primary);
  transform: translateY(-1px);
}

.dev-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.dev-name {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
}

.btn-reviewer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-hairline);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.btn-reviewer:hover {
  background: var(--surface-hover);
  color: var(--text-primary);
  border-color: var(--border-glass);
}

.badge-verified {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: var(--radius-full);
  background: rgba(74, 222, 128, 0.12);
  color: #4ade80;
  border: 1px solid rgba(74, 222, 128, 0.25);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.btn-icon:hover {
  background: var(--surface-hover);
  color: var(--text-primary);
}

/* ══════════════════════════════════════════════════════════════════════════
   2. MAIN CONTAINER & HERO SEARCH
   ══════════════════════════════════════════════════════════════════════════ */
.main-container {
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  padding: 108px 32px 60px;
  display: flex;
  flex-direction: column;
  gap: 44px;
}

.hero-search {
  max-width: 780px;
  margin: 0 auto;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-title {
  font-size: 40px;
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 24px;
}

.search-form {
  width: 100%;
  position: relative;
}

.search-input-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 18px;
  color: var(--text-muted);
  pointer-events: none;
}

.search-input {
  width: 100%;
  height: 56px;
  background: rgba(27, 27, 29, 0.85);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 0 140px 0 52px;
  font-size: 15px;
  color: var(--text-primary);
  outline: none;
  transition: all 0.2s ease;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary), 0 12px 40px rgba(0, 0, 0, 0.35);
}

.search-input::placeholder {
  color: var(--text-muted);
}

.search-controls {
  position: absolute;
  right: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-clear {
  color: var(--text-muted);
  padding: 4px;
  display: flex;
  align-items: center;
  transition: color 0.15s ease;
}

.btn-clear:hover {
  color: var(--text-primary);
}

.kbd-hint {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  padding: 3px 6px;
  background: var(--surface-highest);
  border: 1px solid var(--border-hairline);
  border-radius: 4px;
  color: var(--text-muted);
}

.btn-search {
  padding: 7px 16px;
  background: var(--primary-glow);
  color: var(--primary);
  border: 1px solid rgba(173, 198, 255, 0.25);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.btn-search:hover {
  background: rgba(173, 198, 255, 0.25);
}

.btn-search:active {
  transform: scale(0.97);
}

.presets-row {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 13px;
}

.presets-label {
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.preset-pill {
  padding: 6px 14px;
  background: var(--surface-card);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-full);
  color: var(--secondary);
  font-size: 13px;
  transition: all 0.2s ease;
}

.preset-pill:hover {
  color: var(--text-primary);
  border-color: var(--border-glass);
  background: var(--surface-high);
}

.history-row {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
}

.history-icon {
  color: var(--text-muted);
}

.history-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.history-chip {
  padding: 4px 10px;
  background: rgba(42, 42, 44, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-size: 12px;
  transition: all 0.15s ease;
}

.history-chip:hover {
  color: var(--text-primary);
  background: var(--surface-highest);
}

.btn-clear-history {
  color: var(--text-muted);
  font-size: 11px;
  padding: 2px 6px;
  transition: color 0.15s ease;
}

.btn-clear-history:hover {
  color: var(--error);
}

/* ══════════════════════════════════════════════════════════════════════════
   3. DASHBOARD GRID & STATES
   ══════════════════════════════════════════════════════════════════════════ */
.dashboard-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 32px;
  align-items: start;
  width: 100%;
}

/* ── Profile Card (Left Column) ── */
.profile-card {
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.profile-glow {
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 220px;
  height: 220px;
  background: var(--primary-glow);
  filter: blur(60px);
  pointer-events: none;
}

.avatar-box {
  width: 128px;
  height: 128px;
  border-radius: var(--radius-full);
  overflow: hidden;
  border: 2px solid var(--border-glass);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
  margin-bottom: 24px;
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-name {
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.user-login {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.user-bio {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
}

.stats-box {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 16px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 24px;
}

.stat-col {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-number {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
}

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

.stat-divider {
  width: 1px;
  height: 24px;
  background: var(--border-subtle);
}

.meta-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 13.5px;
}

.meta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--secondary);
}

.meta-row svg {
  color: var(--text-muted);
  flex-shrink: 0;
}

.meta-link {
  transition: color 0.15s ease;
}

.meta-link:hover {
  color: var(--primary);
}

.meta-link:hover svg {
  color: var(--primary);
}

/* Highlights Section */
.highlights-box {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.highlights-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.highlights-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.badge-pro {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.28);
  color: #d8b4fe;
  font-size: 12px;
  font-weight: 500;
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.15);
}

.badge-hireable {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.28);
  color: #6ee7b7;
  font-size: 12px;
  font-weight: 500;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.15);
}

.dot-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #34d399;
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.3); }
}

/* ── Heatmap & Repos (Right Column) ── */
.col-repos {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* Heatmap Card */
.heatmap-card {
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.heatmap-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 12px;
}

.heatmap-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.heatmap-total {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--text-muted);
}

.heatmap-count {
  color: #34d399;
  font-weight: 600;
}

.heatmap-scroll {
  overflow-x: auto;
  padding-bottom: 8px;
}

.heatmap-grid {
  display: flex;
  gap: 3.5px;
  min-width: 640px;
}

.heatmap-week {
  display: flex;
  flex-direction: column;
  gap: 3.5px;
}

.heatmap-day {
  width: 11px;
  height: 11px;
  border-radius: 2px;
  cursor: pointer;
  transition: transform 0.1s ease, filter 0.1s ease;
}

.heatmap-day:hover {
  transform: scale(1.35);
  z-index: 10;
}

/* Emerald Levels */
.cell-level-0 { background: var(--emerald-0); border: 1px solid rgba(255, 255, 255, 0.05); }
.cell-level-1 { background: var(--emerald-1); border: 1px solid rgba(16, 185, 129, 0.2); }
.cell-level-2 { background: var(--emerald-2); }
.cell-level-3 { background: var(--emerald-3); }
.cell-level-4 { background: var(--emerald-4); box-shadow: 0 0 8px rgba(52, 211, 153, 0.4); }

.heatmap-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-subtle);
  padding-top: 10px;
  font-size: 11px;
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-muted);
}

.heatmap-legend {
  display: flex;
  align-items: center;
  gap: 6px;
}

.legend-scale {
  display: flex;
  align-items: center;
  gap: 3px;
}

.legend-scale span {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  display: inline-block;
}

/* Repos Header & Grid */
.repos-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.repos-title {
  font-size: 22px;
  font-weight: 600;
  color: var(--text-primary);
}

.link-view-all {
  font-size: 13px;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color 0.15s ease;
}

.link-view-all:hover {
  color: #d8e2ff;
}

.repos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.repo-card {
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 168px;
  transition: all 0.2s ease;
}

.repo-card:hover {
  background: rgba(42, 42, 44, 0.5);
  border-color: var(--border-glass);
  transform: translateY(-2px);
}

.repo-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.repo-name {
  font-size: 15.5px;
  font-weight: 600;
  color: var(--primary);
  word-break: break-word;
}

.repo-card:hover .repo-name {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.repo-badge {
  font-size: 10px;
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-muted);
  border: 1px solid var(--border-hairline);
  padding: 2px 6px;
  border-radius: 4px;
  flex-shrink: 0;
}

.repo-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 18px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.repo-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: auto;
}

.repo-lang {
  display: flex;
  align-items: center;
  gap: 6px;
}

.lang-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.repo-stat {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* CTA Card */
.repo-card-cta {
  border: 1px dashed var(--border-hairline);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 168px;
  color: var(--text-muted);
  transition: all 0.2s ease;
}

.repo-card-cta:hover {
  border-color: var(--border-glass);
  color: var(--text-primary);
  background: var(--surface-hover);
}

.repo-card-cta svg {
  margin-bottom: 8px;
}

/* ══════════════════════════════════════════════════════════════════════════
   4. SKELETON SHIMMER ANIMATION
   ══════════════════════════════════════════════════════════════════════════ */
.skeleton-shimmer {
  position: relative;
  overflow: hidden;
  background-color: var(--surface-high);
  border-radius: var(--radius-sm);
}

.skeleton-shimmer::after {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  transform: translateX(-100%);
  background-image: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0,
    rgba(255, 255, 255, 0.05) 20%,
    rgba(255, 255, 255, 0.1) 60%,
    rgba(255, 255, 255, 0)
  );
  animation: shimmer 1.8s infinite;
  content: '';
}

@keyframes shimmer {
  100% {
    transform: translateX(100%);
  }
}

.skeleton-card {
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.skeleton-avatar {
  width: 128px;
  height: 128px;
  border-radius: var(--radius-full);
  margin-bottom: 20px;
}

.skeleton-line-lg { width: 180px; height: 24px; margin-bottom: 8px; }
.skeleton-line-md { width: 140px; height: 18px; }
.skeleton-line-sm { width: 100px; height: 14px; }
.skeleton-line-xs { width: 60px; height: 12px; }

.skeleton-box-bio { width: 100%; height: 50px; margin: 16px 0; }

.skeleton-stats-row {
  display: flex;
  width: 100%;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 16px;
}

.skeleton-stat-item { flex: 1; height: 36px; }

.skeleton-meta-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.skeleton-meta-line { width: 85%; height: 16px; }

.skeleton-heatmap-box {
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.skeleton-heatmap-header {
  display: flex;
  justify-content: space-between;
}

.skeleton-heatmap-grid { width: 100%; height: 75px; }

.skeleton-repos-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.skeleton-repo-card { height: 168px; border-radius: var(--radius-md); }

/* ══════════════════════════════════════════════════════════════════════════
   5. ERROR STATE
   ══════════════════════════════════════════════════════════════════════════ */
.error-wrapper {
  position: relative;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: 480px;
  margin: 0 auto;
}

.error-glow {
  position: absolute;
  width: 320px;
  height: 320px;
  background: var(--primary-glow);
  filter: blur(100px);
  pointer-events: none;
}

.error-icon-box {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-full);
  background: var(--surface-card);
  border: 1px solid var(--border-hairline);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.error-code {
  font-size: 56px;
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.error-title {
  font-size: 22px;
  font-weight: 400;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.error-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 28px;
}

.error-actions {
  display: flex;
  gap: 12px;
}

.btn-action {
  padding: 9px 20px;
  border-radius: var(--radius-full);
  background: #1c1c1e;
  border: 1px solid var(--border-hairline);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-action:hover {
  background: #2c2c2e;
  border-color: var(--border-glass);
}

.btn-action:active {
  transform: scale(0.97);
}

.error-meta {
  margin-top: 36px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  gap: 8px;
}

.error-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--error);
}

/* ══════════════════════════════════════════════════════════════════════════
   6. REVIEWER HUB DRAWER
   ══════════════════════════════════════════════════════════════════════════ */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  z-index: 90;
  opacity: 1;
  transition: opacity 0.25s ease;
}

.drawer-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 480px;
  height: 100%;
  background: #0e0e10;
  border-left: 1px solid var(--border-glass);
  z-index: 100;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  transform: translateX(0);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.5);
}

.drawer-header {
  position: sticky;
  top: 0;
  background: rgba(14, 14, 16, 0.95);
  backdrop-filter: blur(16px);
  padding: 24px;
  border-bottom: 1px solid var(--border-hairline);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 10;
}

.drawer-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
}

.drawer-subtitle {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.btn-close-drawer {
  color: var(--text-muted);
  padding: 4px;
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
}

.btn-close-drawer:hover {
  color: var(--text-primary);
  background: var(--surface-hover);
}

.drawer-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-hairline);
}

.drawer-tab {
  flex: 1;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-bottom: 2px solid transparent;
  transition: all 0.15s ease;
}

.drawer-tab:hover {
  color: var(--text-primary);
}

.drawer-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.drawer-tab-content {
  padding: 24px;
  display: none;
  flex-direction: column;
  gap: 20px;
}

.drawer-tab-content.active {
  display: flex;
}

/* Checklist Tab */
.badge-status-all {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: var(--radius-md);
  background: rgba(74, 222, 128, 0.08);
  border: 1px solid rgba(74, 222, 128, 0.2);
}

.status-title {
  font-size: 14px;
  font-weight: 600;
  color: #4ade80;
}

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

.checklist-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--text-secondary);
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  transition: background 0.15s ease;
}

.checklist-item:hover {
  background: var(--surface-hover);
}

.checklist-item svg {
  flex-shrink: 0;
  margin-top: 2px;
}

/* Telemetry Tab */
.telemetry-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
}

.telemetry-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.telemetry-empty {
  text-align: center;
  padding: 48px 16px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

.telemetry-card {
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  background: var(--surface-card);
  border: 1px solid var(--border-hairline);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.telemetry-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.telemetry-endpoint {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  color: var(--primary);
  word-break: break-all;
}

.telemetry-status {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
}

.status-200 { background: rgba(74, 222, 128, 0.15); color: #4ade80; }
.status-404 { background: rgba(255, 180, 171, 0.15); color: var(--error); }
.status-403 { background: rgba(255, 181, 149, 0.15); color: #ffb595; }

.telemetry-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-muted);
}

/* Architecture Tab */
.arch-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.arch-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.tech-card {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--surface-card);
  border: 1px solid var(--border-hairline);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tech-card strong {
  font-size: 13px;
  color: var(--text-primary);
}

.tech-card span {
  font-size: 11px;
  color: var(--text-muted);
}

.file-tree-code {
  background: #09090b;
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-sm);
  padding: 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--text-secondary);
  overflow-x: auto;
}

.arch-box {
  padding: 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-secondary);
}

.arch-list {
  margin-top: 8px;
  padding-left: 18px;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ══════════════════════════════════════════════════════════════════════════
   7. INTERACTIVE ONBOARDING TOUR (GUIDED WALKTHROUGH)
   ══════════════════════════════════════════════════════════════════════════ */
.tour-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: auto;
}

.tour-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.tour-highlight {
  position: relative !important;
  z-index: 210 !important;
  box-shadow: 0 0 0 4px var(--primary), 0 0 35px rgba(173, 198, 255, 0.45) !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.tour-tooltip {
  position: absolute;
  z-index: 220;
  width: 320px;
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  transition: top 0.3s cubic-bezier(0.16, 1, 0.3, 1), left 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.tour-arrow {
  position: absolute;
  width: 14px;
  height: 14px;
  background: rgba(44, 44, 46, 0.95);
  border-left: 1px solid var(--border-glass);
  border-top: 1px solid var(--border-glass);
  transform: rotate(45deg);
}

.tour-arrow-top {
  top: -8px;
  left: 24px;
}

.tour-arrow-bottom {
  bottom: -8px;
  left: 24px;
  transform: rotate(225deg);
}

.tour-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tour-step-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: var(--primary-glow);
  color: var(--primary);
  border: 1px solid rgba(173, 198, 255, 0.25);
  font-weight: 500;
}

.tour-btn-skip {
  font-size: 11px;
  color: var(--text-muted);
  transition: color 0.15s ease;
}

.tour-btn-skip:hover {
  color: var(--text-primary);
}

.tour-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

.tour-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.tour-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
}

.tour-hint {
  font-size: 10.5px;
  color: var(--text-muted);
}

.tour-btn-next {
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: #00285c;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.15s ease;
}

.tour-btn-next:hover {
  background: #d8e2ff;
  transform: translateY(-1px);
}

.tour-btn-next:active {
  transform: scale(0.97);
}

/* ══════════════════════════════════════════════════════════════════════════
   8. RESPONSIVE BREAKPOINTS
   ══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 32px;
  }

  .repos-grid {
    grid-template-columns: 1fr;
  }

  .btn-reviewer-text {
    display: none;
  }

  .kbd-hint {
    display: none;
  }

  .main-container {
    padding: 96px 16px 40px;
  }
}
