/* ==========================================================================
   GitHub Repo Analyzer — Design System & Stylesheet
   ========================================================================== */

:root {
  /* Color Palette */
  --bg-primary: #07090E;
  --bg-secondary: #0D111A;
  --bg-card: rgba(18, 24, 38, 0.7);
  --bg-card-hover: rgba(26, 34, 52, 0.85);
  --bg-input: rgba(13, 17, 26, 0.9);
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(99, 102, 241, 0.3);
  --border-card: rgba(255, 255, 255, 0.1);

  --text-primary: #F8FAFC;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  
  /* Brand Accents */
  --primary: #6366F1;
  --primary-glow: rgba(99, 102, 241, 0.4);
  --cyan: #06B6D4;
  --cyan-glow: rgba(6, 182, 212, 0.3);
  --emerald: #10B981;
  --amber: #F59E0B;
  --rose: #F43F5E;
  --blue: #3B82F6;
  --indigo: #818CF8;
  
  /* Typography */
  --font-main: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-heading: 'Outfit', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Dimensions & Radius */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --max-width: 1200px;
}

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

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-main);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

/* Ambient Background Glows */
.background-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}
.glow-1 {
  width: 500px;
  height: 500px;
  top: -100px;
  left: 10%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
}
.glow-2 {
  width: 600px;
  height: 600px;
  top: 300px;
  right: 5%;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.12) 0%, transparent 70%);
}
.glow-3 {
  width: 400px;
  height: 400px;
  bottom: 0;
  left: 30%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.08) 0%, transparent 70%);
}

.gradient-text {
  background: linear-gradient(135deg, #A5B4FC 0%, #38BDF8 50%, #818CF8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hidden {
  display: none !important;
}

/* Helper Text Colors */
.text-amber { color: var(--amber); }
.text-emerald { color: var(--emerald); }
.text-rose { color: var(--rose); }
.text-blue { color: var(--blue); }
.text-cyan { color: var(--cyan); }
.text-indigo { color: var(--indigo); }

/* ── Glassmorphism Cards ─────────────────────────────────────────────────── */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  transition: all 0.25s ease;
}

.glass-card:hover {
  border-color: rgba(255, 255, 255, 0.18);
}

/* ── Navbar ───────────────────────────────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 9, 14, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.85rem 1.5rem;
}
.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-primary);
}
.logo-icon-wrap {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--primary), var(--cyan));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: #fff;
  box-shadow: 0 0 16px var(--primary-glow);
}
.logo-text {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.logo-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
}
.logo-badge {
  font-size: 0.7rem;
  font-weight: 600;
  background: rgba(99, 102, 241, 0.18);
  border: 1px solid rgba(99, 102, 241, 0.4);
  color: #C7D2FE;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-full);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn-primary, .btn-secondary, .btn-icon {
  font-family: var(--font-main);
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}
.btn-primary {
  background: linear-gradient(135deg, #6366F1 0%, #4F46E5 100%);
  color: #fff;
  border: none;
  padding: 0.75rem 1.4rem;
  box-shadow: 0 4px 20px var(--primary-glow);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #4F46E5 0%, #4338CA 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px var(--primary-glow);
}
.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 0.65rem 1.2rem;
  font-size: 0.875rem;
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}
.btn-icon {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  font-size: 1.1rem;
}
.btn-icon:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* ── Main Layout ─────────────────────────────────────────────────────────── */
.main-content {
  flex: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
  width: 100%;
  position: relative;
  z-index: 1;
}

/* ── Hero Section ────────────────────────────────────────────────────────── */
.hero-section {
  text-align: center;
  padding: 2.5rem 0 3.5rem;
  max-width: 860px;
  margin: 0 auto;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.25);
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  color: #C7D2FE;
  margin-bottom: 1.5rem;
}
.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 10px var(--emerald);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}
.hero-title {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto 2.2rem;
}

/* Search Form */
.search-form {
  margin-bottom: 1.25rem;
}
.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--bg-input);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 0.45rem 0.5rem 0.45rem 1.25rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  transition: all 0.25s ease;
}
.search-input-wrapper:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 25px var(--primary-glow);
}
.search-icon {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-right: 0.75rem;
}
.search-input-wrapper input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--text-primary);
}
.search-input-wrapper input::placeholder {
  color: var(--text-muted);
}
.search-input-wrapper .btn-primary {
  padding: 0.8rem 1.6rem;
}

/* Sample chips */
.sample-chips {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.chips-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-right: 0.25rem;
}
.chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 0.3rem 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.chip:hover {
  background: rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.4);
  color: #fff;
  transform: translateY(-1px);
}

/* ── Loading / Stepper Section ───────────────────────────────────────────── */
.loading-section {
  max-width: 720px;
  margin: 1rem auto 3rem;
}
.loading-card {
  padding: 2rem;
}
.loading-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}
.spinner-ring {
  width: 44px;
  height: 44px;
  border: 3px solid rgba(99, 102, 241, 0.2);
  border-top-color: var(--primary);
  border-right-color: var(--cyan);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  flex-shrink: 0;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
.loading-titles {
  flex: 1;
}
.loading-titles h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
}
.loading-repo-text {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--cyan);
}
.time-estimate {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* Progress bar */
.progress-bar-container {
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 1.75rem;
}
.progress-bar-fill {
  height: 100%;
  width: 5%;
  background: linear-gradient(90deg, var(--primary), var(--cyan));
  border-radius: var(--radius-full);
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 12px var(--cyan-glow);
}

/* Stepper items */
.stepper-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.step-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  opacity: 0.4;
  transition: all 0.3s ease;
}
.step-item.active {
  opacity: 1;
}
.step-item.done {
  opacity: 0.9;
}
.step-indicator {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  flex-shrink: 0;
  margin-top: 0.1rem;
}
.step-item.active .step-indicator {
  color: var(--cyan);
  background: rgba(6, 182, 212, 0.15);
}
.step-item.done .step-indicator {
  color: var(--emerald);
  background: rgba(16, 185, 129, 0.15);
}
.step-content {
  display: flex;
  flex-direction: column;
}
.step-title {
  font-weight: 600;
  font-size: 0.95rem;
}
.step-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ── Error State ─────────────────────────────────────────────────────────── */
.error-section {
  max-width: 720px;
  margin: 1rem auto 3rem;
}
.error-card {
  padding: 1.5rem 2rem;
  border-color: rgba(244, 63, 94, 0.3);
  background: rgba(244, 63, 94, 0.06);
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.error-icon {
  font-size: 2rem;
  color: var(--rose);
}
.error-info {
  flex: 1;
}
.error-info h3 {
  font-size: 1.1rem;
  color: var(--rose);
  margin-bottom: 0.25rem;
}
.error-info p {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* ── Results Section ─────────────────────────────────────────────────────── */
.results-section {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  animation: fadeIn 0.4s ease;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Repo Header Card */
.repo-header-card {
  padding: 1.75rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.repo-main-info {
  flex: 1;
  min-width: 280px;
}
.repo-title-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}
.repo-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
}
.repo-external-link {
  font-size: 0.8rem;
  color: var(--cyan);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.6rem;
  background: rgba(6, 182, 212, 0.1);
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}
.repo-external-link:hover {
  background: rgba(6, 182, 212, 0.2);
}
.repo-description {
  color: var(--text-secondary);
  font-size: 0.95rem;
}
.repo-metrics-grid {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.metric-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.5rem 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.metric-pill i {
  font-size: 1.1rem;
}
.metric-value {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
}
.metric-label {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* Scorecard Grid */
.scorecard-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 1.5rem;
}
@media (max-width: 900px) {
  .scorecard-grid { grid-template-columns: 1fr; }
}

/* Overall Score Card */
.overall-score-card {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}
.card-tag {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

/* SVG Radial Gauge */
.gauge-container {
  position: relative;
  width: 160px;
  height: 160px;
  margin-bottom: 1.5rem;
}
.score-gauge {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.gauge-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 12;
}
.gauge-fill {
  fill: none;
  stroke: var(--emerald);
  stroke-width: 12;
  stroke-linecap: round;
  stroke-dasharray: 440;
  stroke-dashoffset: 440;
  transition: stroke-dashoffset 1.2s cubic-bezier(0.4, 0, 0.2, 1), stroke 0.5s ease;
}
.gauge-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}
.score-number {
  font-family: var(--font-heading);
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1;
}
.score-max {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.grade-banner {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}
.grade-pill {
  padding: 0.2rem 0.8rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.1rem;
}
.grade-a { background: rgba(16, 185, 129, 0.15); color: #34D399; border: 1px solid rgba(16, 185, 129, 0.4); }
.grade-b { background: rgba(59, 130, 246, 0.15); color: #60A5FA; border: 1px solid rgba(59, 130, 246, 0.4); }
.grade-c { background: rgba(245, 158, 11, 0.15); color: #FBBF24; border: 1px solid rgba(245, 158, 11, 0.4); }
.grade-d, .grade-f { background: rgba(244, 63, 94, 0.15); color: #FB7185; border: 1px solid rgba(244, 63, 94, 0.4); }

.score-timestamp {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Executive Summary Card */
.summary-card {
  padding: 2rem;
  display: flex;
  flex-direction: column;
}
.executive-summary-text {
  font-size: 0.95rem;
  color: var(--text-primary);
  line-height: 1.7;
  margin-bottom: 1.75rem;
}
.strengths-issues-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
@media (max-width: 650px) {
  .strengths-issues-row { grid-template-columns: 1fr; }
}
.mini-list-card {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}
.mini-list-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.mini-list-header h4 {
  font-size: 0.9rem;
  font-weight: 700;
}
.bullet-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.bullet-list li {
  font-size: 0.83rem;
  color: var(--text-secondary);
  position: relative;
  padding-left: 1.1rem;
  line-height: 1.5;
}
.bullet-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--text-muted);
}

/* ── Section Titles ──────────────────────────────────────────────────────── */
.section-title-wrap {
  margin-top: 1rem;
}
.title-with-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.section-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.section-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

/* ── 8-Category Cards Grid ───────────────────────────────────────────────── */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1.25rem;
}
.category-card {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.cat-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}
.cat-title-group {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.cat-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}
.cat-name {
  font-weight: 700;
  font-size: 0.95rem;
}
.cat-grade-badge {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.85rem;
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-sm);
}

.cat-meter-wrap {
  margin-bottom: 0.85rem;
}
.cat-meter-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  margin-bottom: 0.35rem;
}
.cat-score-text {
  font-weight: 700;
}
.cat-progress-track {
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.cat-progress-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 0.8s ease;
}

.cat-summary {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.cat-accordion-toggle {
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.75rem;
  padding: 0.35rem 0.65rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  transition: all 0.2s ease;
}
.cat-accordion-toggle:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
}
.cat-accordion-content {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.78rem;
}

/* ── Prioritized Recommendations List ────────────────────────────────────── */
.filter-pills {
  display: flex;
  gap: 0.35rem;
  background: rgba(0, 0, 0, 0.3);
  padding: 0.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}
.filter-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}
.filter-btn.active {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.recommendations-container {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.rec-item-card {
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  border-left: 4px solid var(--primary);
}
.rec-item-card.crit { border-left-color: var(--rose); }
.rec-item-card.high { border-left-color: var(--amber); }
.rec-item-card.med { border-left-color: var(--blue); }
.rec-item-card.low { border-left-color: var(--emerald); }

.rec-body {
  flex: 1;
}
.rec-meta-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.4rem;
  flex-wrap: wrap;
}
.priority-pill {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
}
.priority-pill.crit { background: rgba(244, 63, 94, 0.15); color: #FB7185; }
.priority-pill.high { background: rgba(245, 158, 11, 0.15); color: #FBBF24; }
.priority-pill.med { background: rgba(59, 130, 246, 0.15); color: #60A5FA; }
.priority-pill.low { background: rgba(16, 185, 129, 0.15); color: #34D399; }

.category-tag {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}
.effort-tag {
  font-size: 0.7rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  padding: 0.1rem 0.45rem;
  border-radius: var(--radius-sm);
}
.rec-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}
.rec-desc {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ── Export Hub ──────────────────────────────────────────────────────────── */
.export-card {
  padding: 1.75rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 1rem;
  border-color: rgba(99, 102, 241, 0.3);
}
.export-text h4 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}
.export-text p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.export-buttons {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* ── Modal ───────────────────────────────────────────────────────────────── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.modal-container {
  max-width: 620px;
  width: 100%;
  padding: 2rem;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}
.modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.modal-icon {
  width: 40px;
  height: 40px;
  background: rgba(99, 102, 241, 0.2);
  color: var(--primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}
.modal-title-wrap h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
}
.modal-title-wrap p {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.btn-close-modal {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.25rem;
}
.btn-close-modal:hover {
  color: #fff;
}
.modal-tabs {
  display: flex;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 1.25rem;
}
.modal-tab {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
}
.modal-tab.active {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}
.tab-pane {
  display: none;
}
.tab-pane.active {
  display: block;
}
.tab-instruction {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}
.code-block-wrapper {
  position: relative;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 1rem;
}
.code-block-wrapper pre {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #CBD5E1;
  overflow-x: auto;
  line-height: 1.5;
}
.btn-copy-code {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  cursor: pointer;
}
.btn-copy-code:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ── Toast Notification ──────────────────────────────────────────────────── */
.toast-notification {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--emerald);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  z-index: 200;
  animation: slideUp 0.3s ease;
}
.toast-notification i {
  color: var(--emerald);
}
@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ── Footer ──────────────────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border-subtle);
  background: rgba(7, 9, 14, 0.9);
  padding: 1.5rem;
  margin-top: auto;
}
.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(16, 185, 129, 0.1);
  color: #34D399;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.75rem;
}
.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--emerald);
}

/* ── Responsive adjustments ──────────────────────────────────────────────── */
@media (max-width: 768px) {
  .hero-title { font-size: 2rem; }
  .search-input-wrapper { flex-direction: column; padding: 0.75rem; gap: 0.75rem; }
  .search-input-wrapper input { width: 100%; }
  .search-input-wrapper .btn-primary { width: 100%; }
  .repo-header-card { flex-direction: column; align-items: flex-start; }
}
