/* ============================================
   GITHUB PROFILE VIEWER
   Retro-Futuristic Terminal Aesthetic
   Syne + JetBrains Mono
   ============================================ */

:root {
  /* Core palette */
  --bg-void:        #060b10;
  --bg-base:        #080d14;
  --bg-surface:     #0d1520;
  --bg-elevated:    #111d2b;
  --bg-hover:       #162233;

  /* Borders */
  --border-dim:     #0f2030;
  --border-default: #1a3348;
  --border-bright:  #1e4060;

  /* Green accent system */
  --green:          #00ff88;
  --green-dim:      #00cc6a;
  --green-muted:    #00ff8833;
  --green-glow:     rgba(0, 255, 136, 0.15);
  --green-faint:    rgba(0, 255, 136, 0.06);

  /* Amber accent */
  --amber:          #ffb347;
  --amber-dim:      #cc8a2a;
  --amber-muted:    rgba(255, 179, 71, 0.15);

  /* Blue accent */
  --blue:           #4fc3f7;
  --blue-muted:     rgba(79, 195, 247, 0.12);

  /* Text */
  --text-primary:   #c8e6c9;
  --text-secondary: #5a8a6a;
  --text-muted:     #2a5040;
  --text-bright:    #e8f5e9;
  --text-dim:       #1a3a28;

  /* Heatmap levels */
  --heat-0: #0d1a14;
  --heat-1: #0a3d20;
  --heat-2: #0d6b35;
  --heat-3: #00aa55;
  --heat-4: #00ff88;

  /* Misc */
  --radius-sm:  4px;
  --radius-md:  6px;
  --radius-lg:  10px;
  --font-mono:  'JetBrains Mono', monospace;
  --font-display: 'Syne', sans-serif;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-mono);
  background: var(--bg-void);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: var(--border-bright); border-radius: 99px; }

/* ── Scanlines ── */
.scanlines {
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.08) 2px,
    rgba(0, 0, 0, 0.08) 4px
  );
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: multiply;
}

/* ── Background grid ── */
.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--border-dim) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-dim) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

/* ── All content above bg ── */
.site-header, .search-section, .error-panel,
.loading-panel, .results, .site-footer {
  position: relative;
  z-index: 1;
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
  border-bottom: 1px solid var(--border-default);
  background: rgba(6, 11, 16, 0.9);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--text-bright);
}

.logo-bracket { color: var(--text-muted); }
.logo-accent {
  color: var(--green);
  animation: blink 1.2s step-end infinite;
}

.header-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green), 0 0 16px var(--green-muted);
  animation: pulse 2s ease-in-out infinite;
}

.status-text {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--text-secondary);
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px var(--green); }
  50%       { opacity: 0.5; box-shadow: 0 0 4px var(--green); }
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* ============================================
   SEARCH
   ============================================ */
.search-section {
  padding: 64px 32px 48px;
  max-width: 1100px;
  margin: 0 auto;
}

.search-wrap {
  max-width: 640px;
}

.search-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.search-box {
  display: flex;
  align-items: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-box:focus-within {
  border-color: var(--green-dim);
  box-shadow: 0 0 0 3px var(--green-muted), 0 0 20px var(--green-faint);
}

.search-prompt {
  padding: 0 14px;
  font-size: 13px;
  color: var(--green);
  white-space: nowrap;
  border-right: 1px solid var(--border-default);
  height: 52px;
  display: flex;
  align-items: center;
  background: var(--bg-elevated);
  letter-spacing: 0.02em;
}

.search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-bright);
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 400;
  padding: 0 16px;
  height: 52px;
  caret-color: var(--green);
}

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

.search-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 20px;
  height: 52px;
  background: var(--green);
  border: none;
  color: var(--bg-void);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s;
  white-space: nowrap;
  flex-shrink: 0;
}

.search-btn:hover {
  background: #33ffaa;
  box-shadow: 0 0 20px var(--green-muted);
}

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

.search-hint {
  margin-top: 10px;
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.search-hint kbd {
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: 3px;
  padding: 1px 5px;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-secondary);
}

/* ============================================
   ERROR / LOADING
   ============================================ */
.error-panel, .loading-panel {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px 48px;
}

.error-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: rgba(255, 60, 60, 0.06);
  border: 1px solid rgba(255, 60, 60, 0.2);
  border-radius: var(--radius-md);
}

.error-code {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: #ff6b6b;
  background: rgba(255, 60, 60, 0.1);
  padding: 3px 10px;
  border-radius: 3px;
}

.error-msg {
  font-size: 13px;
  color: #ff9999;
}

.loading-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
}

.loading-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 20px;
}

.loading-bars span {
  width: 3px;
  background: var(--green);
  border-radius: 2px;
  animation: barBounce 0.8s ease-in-out infinite;
}

.loading-bars span:nth-child(1) { animation-delay: 0s;    height: 8px; }
.loading-bars span:nth-child(2) { animation-delay: 0.1s;  height: 14px; }
.loading-bars span:nth-child(3) { animation-delay: 0.2s;  height: 20px; }
.loading-bars span:nth-child(4) { animation-delay: 0.3s;  height: 14px; }
.loading-bars span:nth-child(5) { animation-delay: 0.4s;  height: 8px; }

@keyframes barBounce {
  0%, 100% { transform: scaleY(0.4); opacity: 0.4; }
  50%       { transform: scaleY(1);   opacity: 1; }
}

.loading-text {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--text-secondary);
}

.blink { animation: blink 0.8s step-end infinite; }

/* ============================================
   RESULTS LAYOUT
   ============================================ */
.results {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px 80px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  animation: fadeUp 0.4s ease;
}

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

/* ============================================
   PROFILE SECTION
   ============================================ */
.profile-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
}

.profile-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.avatar {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-md);
  display: block;
  filter: saturate(0.8) contrast(1.1);
  border: 2px solid var(--border-bright);
}

.avatar-ring {
  position: absolute;
  inset: -4px;
  border-radius: calc(var(--radius-md) + 4px);
  border: 1px solid var(--green-dim);
  opacity: 0.4;
  animation: ringPulse 3s ease-in-out infinite;
}

@keyframes ringPulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50%       { opacity: 0.8; transform: scale(1.02); }
}

.profile-info { flex: 1; min-width: 0; }

.profile-name-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.profile-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--text-bright);
  letter-spacing: -0.3px;
  line-height: 1.2;
}

.profile-link {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--green-dim);
  text-decoration: none;
  border: 1px solid var(--green-dim);
  padding: 3px 8px;
  border-radius: 3px;
  transition: all 0.15s;
  white-space: nowrap;
}

.profile-link:hover {
  background: var(--green-muted);
  color: var(--green);
  border-color: var(--green);
}

.profile-login {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 10px;
  letter-spacing: 0.03em;
}

.profile-bio {
  font-size: 12px;
  color: var(--text-primary);
  line-height: 1.6;
  margin-bottom: 14px;
  opacity: 0.8;
}

.profile-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  color: var(--text-secondary);
  letter-spacing: 0.03em;
}

.meta-item svg { opacity: 0.6; flex-shrink: 0; }

.meta-link {
  color: var(--blue);
  text-decoration: none;
  font-size: 10px;
}

.meta-link:hover { text-decoration: underline; }

/* ── Stats grid ── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.stat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 16px 18px 14px;
  transition: border-color 0.2s, background 0.2s;
  animation: statIn 0.4s ease both;
}

.stat-card:hover {
  border-color: var(--border-bright);
  background: var(--bg-elevated);
}

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

.stat-card:nth-child(1) { animation-delay: 0.05s; }
.stat-card:nth-child(2) { animation-delay: 0.10s; }
.stat-card:nth-child(3) { animation-delay: 0.15s; }
.stat-card:nth-child(4) { animation-delay: 0.20s; }
.stat-card:nth-child(5) { animation-delay: 0.25s; }
.stat-card:nth-child(6) { animation-delay: 0.30s; }

.stat-value {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  color: var(--green);
  letter-spacing: -0.5px;
  line-height: 1;
  margin-bottom: 4px;
  text-shadow: 0 0 20px var(--green-muted);
}

.stat-label {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.stat-bar {
  height: 2px;
  background: var(--border-dim);
  border-radius: 99px;
  overflow: hidden;
}

.stat-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--green-dim), var(--green));
  border-radius: 99px;
  width: 0%;
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 6px var(--green-muted);
}

/* ============================================
   SECTION BLOCKS
   ============================================ */
.section-block {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-dim);
  background: var(--bg-elevated);
}

.section-title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-bright);
}

.title-prefix {
  color: var(--text-muted);
  margin-right: 8px;
  font-weight: 400;
}

.section-meta {
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* ============================================
   LANGUAGE MATRIX
   ============================================ */
.langs-wrap {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lang-row {
  display: grid;
  grid-template-columns: 100px 1fr 60px;
  align-items: center;
  gap: 14px;
  animation: fadeUp 0.3s ease both;
}

.lang-name {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: 0.03em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lang-bar-track {
  height: 6px;
  background: var(--border-dim);
  border-radius: 99px;
  overflow: hidden;
}

.lang-bar-fill {
  height: 100%;
  border-radius: 99px;
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.lang-pct {
  font-size: 10px;
  color: var(--text-secondary);
  text-align: right;
  letter-spacing: 0.03em;
}

/* ============================================
   HEATMAP
   ============================================ */
.heatmap-container {
  padding: 20px 24px 24px;
  overflow-x: auto;
}

.heatmap-months {
  display: flex;
  gap: 0;
  margin-bottom: 6px;
  padding-left: 0;
  min-width: 700px;
}

.month-label {
  font-size: 9px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  flex: 1;
  text-align: left;
}

.heatmap-grid {
  display: flex;
  gap: 3px;
  min-width: 700px;
}

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

.heatmap-cell {
  width: 11px;
  height: 11px;
  border-radius: 2px;
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.1s;
  position: relative;
}

.heatmap-cell:hover {
  transform: scale(1.4);
  z-index: 10;
}

.heatmap-cell[data-level="0"] { background: var(--heat-0); }
.heatmap-cell[data-level="1"] { background: var(--heat-1); }
.heatmap-cell[data-level="2"] { background: var(--heat-2); }
.heatmap-cell[data-level="3"] { background: var(--heat-3); }
.heatmap-cell[data-level="4"] { background: var(--heat-4); box-shadow: 0 0 4px var(--green-muted); }

.heatmap-legend {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  justify-content: flex-end;
}

.legend-label {
  font-size: 9px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

.legend-cells {
  display: flex;
  gap: 3px;
}

.legend-cell {
  width: 11px;
  height: 11px;
  border-radius: 2px;
}

.legend-cell[data-level="0"] { background: var(--heat-0); }
.legend-cell[data-level="1"] { background: var(--heat-1); }
.legend-cell[data-level="2"] { background: var(--heat-2); }
.legend-cell[data-level="3"] { background: var(--heat-3); }
.legend-cell[data-level="4"] { background: var(--heat-4); }

/* Tooltip */
.heatmap-cell::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-elevated);
  border: 1px solid var(--border-bright);
  color: var(--text-primary);
  font-size: 9px;
  padding: 4px 8px;
  border-radius: 3px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
  z-index: 100;
  letter-spacing: 0.03em;
}

.heatmap-cell:hover::after { opacity: 1; }

/* ============================================
   REPO CONTROLS
   ============================================ */
.repo-controls {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-dim);
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: rgba(13, 21, 32, 0.5);
}

.control-group { display: flex; flex-direction: column; gap: 8px; }

.control-label {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--text-muted);
}

.filter-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-input {
  flex: 1;
  min-width: 180px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 8px 12px;
  outline: none;
  transition: border-color 0.15s;
  caret-color: var(--green);
}

.filter-input::placeholder { color: var(--text-muted); }
.filter-input:focus { border-color: var(--green-dim); }

.filter-select {
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 8px 12px;
  outline: none;
  cursor: pointer;
  transition: border-color 0.15s;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%232a5040' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 28px;
}

.filter-select:focus { border-color: var(--green-dim); }

.sort-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.sort-btn {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.05em;
  padding: 6px 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s;
}

.sort-btn:hover {
  border-color: var(--border-bright);
  color: var(--text-primary);
}

.sort-btn.active {
  background: var(--green-muted);
  border-color: var(--green-dim);
  color: var(--green);
}

.repo-count-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  padding: 2px 10px;
  border-radius: 99px;
  letter-spacing: 0.05em;
}

/* ============================================
   REPO LIST
   ============================================ */
.repo-list {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.repo-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: start;
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
  animation: repoIn 0.25s ease both;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.repo-card:hover {
  border-color: var(--border-bright);
  background: var(--bg-hover);
  transform: translateX(3px);
}

@keyframes repoIn {
  from { opacity: 0; transform: translateX(-8px); }
  to   { opacity: 1; transform: translateX(0); }
}

.repo-main { min-width: 0; }

.repo-name-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.repo-name {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-bright);
  letter-spacing: -0.1px;
  text-decoration: none;
}

.repo-card:hover .repo-name { color: var(--green); }

.repo-badge {
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.1em;
  padding: 2px 7px;
  border-radius: 3px;
  text-transform: uppercase;
}

.repo-badge.fork     { background: var(--amber-muted); color: var(--amber); border: 1px solid rgba(255,179,71,0.2); }
.repo-badge.archived { background: rgba(100,100,100,0.1); color: #666; border: 1px solid #333; }
.repo-badge.template { background: var(--blue-muted); color: var(--blue); border: 1px solid rgba(79,195,247,0.2); }

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

.repo-footer {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.repo-stat {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

.repo-stat svg { opacity: 0.6; }

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

.repo-lang-name {
  font-size: 10px;
  color: var(--text-secondary);
}

.repo-updated {
  font-size: 9px;
  color: var(--text-muted);
  letter-spacing: 0.03em;
  margin-left: auto;
}

.repo-stars-big {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}

.stars-num {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  color: var(--amber);
  line-height: 1;
  text-shadow: 0 0 12px var(--amber-muted);
}

.stars-label {
  font-size: 8px;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.repo-empty {
  padding: 40px 24px;
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  border-top: 1px solid var(--border-dim);
  padding: 20px 32px;
  text-align: center;
  font-size: 9px;
  letter-spacing: 0.15em;
  color: var(--text-dim);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .profile-section { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 640px) {
  .search-section { padding: 40px 20px 32px; }
  .results { padding: 0 20px 60px; }
  .header-inner { padding: 0 20px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .profile-card { flex-direction: column; }
  .search-prompt { display: none; }
  .sort-btn { font-size: 9px; padding: 5px 10px; }
}