/* ─────────────────────────────────────────────────────────
   Build Challenge — Design System
   Accent: #F59E0B (amber/gold)  •  Dark theme matching TA agents
   ───────────────────────────────────────────────────────── */

:root {
  --bg: #0A0A0A;
  --bg-elevated: #111111;
  --bg-card: #141414;
  --bg-input: #0F0F0F;
  --accent: #F59E0B;
  --accent-dim: rgba(245, 158, 11, 0.12);
  --accent-glow: rgba(245, 158, 11, 0.25);
  --accent-bright: #FBBF24;
  --purple: #A78BFA;
  --text: #F0F0F0;
  --text-muted: #999999;
  --text-dim: #555555;
  --border: #1E1E1E;
  --border-light: #2A2A2A;
  --success: #3FB950;
  --error: #F85149;
  --info: #60A5FA;
  --font-display: 'Cormorant Garamond', 'Georgia', serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
}

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

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ── Scrollbar ─────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 3px; }

/* ── Header ────────────────────────────────────────────── */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  height: 56px;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.logo {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text);
}
.logo span { color: var(--accent); }

.header-links {
  display: flex;
  gap: 24px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dim);
}
.header-links a:hover { color: var(--text-muted); }
.header-links a.active { color: var(--accent); }

/* ── Hero Section ──────────────────────────────────────── */
.hero {
  text-align: center;
  padding: 80px 32px 48px;
  max-width: 720px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: 100px;
  background: var(--accent-dim);
  border: 1px solid rgba(245, 158, 11, 0.2);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 16px;
  line-height: 1.15;
}

.hero-sub {
  font-size: 16px;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 36px;
}

.hero-search {
  position: relative;
  max-width: 520px;
  margin: 0 auto 40px;
}

.hero-search .search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
}

.hero-search input {
  width: 100%;
  padding: 14px 20px 14px 48px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  background: var(--bg-elevated);
  color: var(--text);
  font-size: 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.hero-search input::placeholder { color: var(--text-dim); }
.hero-search input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.hero-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
}

.hero-stat { text-align: center; }
.hero-stat-num {
  display: block;
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  font-family: var(--font-mono);
}
.hero-stat-label {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}
.hero-stat-divider {
  width: 1px;
  height: 32px;
  background: var(--border-light);
}

/* ── View Toggle ───────────────────────────────────────── */
.view-toggle-bar {
  display: flex;
  justify-content: center;
  gap: 4px;
  padding: 8px 32px;
  margin-bottom: 8px;
}

.view-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 24px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
  background: transparent;
  border: 1px solid var(--border);
  transition: all 0.2s;
}
.view-toggle:hover { color: var(--text-muted); border-color: var(--border-light); }
.view-toggle.active {
  color: var(--bg);
  background: var(--accent);
  border-color: var(--accent);
}

/* ── Filter Section ────────────────────────────────────── */
.filter-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px 24px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-end;
}

.filter-group { display: flex; flex-direction: column; gap: 6px; }
.filter-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}

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

.filter-chip {
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  transition: all 0.2s;
}
.filter-chip:hover { border-color: var(--border-light); color: var(--text); }
.filter-chip.active {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: var(--accent);
}

.filter-sort { margin-left: auto; }

.filter-select {
  padding: 6px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  font-size: 12px;
}

/* ── Results Section ───────────────────────────────────── */
.results-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px 48px;
}

.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.results-count {
  font-size: 13px;
  color: var(--text-muted);
}

/* ── Challenge Card Grid ───────────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.challenge-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.15s, box-shadow 0.2s;
}
.challenge-card:hover {
  border-color: var(--accent-glow);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.cc-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.cc-badges { display: flex; gap: 6px; flex-wrap: wrap; }

.cc-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.cc-badge.status-open { background: rgba(63, 185, 80, 0.12); color: #3FB950; }
.cc-badge.status-in_review { background: rgba(245, 158, 11, 0.12); color: #F59E0B; }
.cc-badge.status-awarded { background: rgba(96, 165, 250, 0.12); color: #60A5FA; }
.cc-badge.status-completed { background: rgba(167, 139, 250, 0.12); color: #A78BFA; }

.cc-badge.diff-medium { background: rgba(96, 165, 250, 0.12); color: #60A5FA; }
.cc-badge.diff-hard { background: rgba(245, 158, 11, 0.12); color: #F59E0B; }
.cc-badge.diff-expert { background: rgba(248, 81, 73, 0.12); color: #F85149; }

.cc-budget {
  font-size: 16px;
  font-weight: 700;
  color: var(--accent);
  font-family: var(--font-mono);
  white-space: nowrap;
}

.cc-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1.3;
}

.cc-company {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.cc-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cc-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.cc-tag {
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-dim);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}

.cc-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-dim);
}

.cc-meta { display: flex; gap: 16px; }
.cc-meta-item { display: flex; align-items: center; gap: 4px; }

.cc-applicants {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--text-muted);
}

/* Countdown timer on cards */
.cc-countdown {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
}
.cc-countdown.expiring { color: var(--error); }

/* ── Challenge Detail Modal ────────────────────────────── */
.challenge-modal { position: fixed; inset: 0; z-index: 200; display: flex; justify-content: flex-end; }
.challenge-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.6); backdrop-filter: blur(4px); }
.challenge-panel {
  position: relative;
  width: 680px;
  max-width: 100%;
  height: 100%;
  overflow-y: auto;
  background: var(--bg);
  border-left: 1px solid var(--border);
  animation: slideInRight 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.cp-close {
  position: sticky;
  top: 0;
  display: flex;
  justify-content: flex-end;
  padding: 16px 24px;
  background: rgba(10,10,10,0.9);
  backdrop-filter: blur(8px);
  z-index: 10;
}
.cp-close button {
  font-size: 13px;
  color: var(--text-muted);
  padding: 6px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  transition: all 0.2s;
}
.cp-close button:hover { color: var(--text); border-color: var(--border-light); }

.cp-header {
  padding: 0 24px 24px;
}

.cp-badges { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }

.cp-title {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 8px;
}

.cp-company { font-size: 14px; color: var(--text-muted); margin-bottom: 16px; }

.cp-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.cp-stat {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  text-align: center;
}
.cp-stat-val {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
  font-family: var(--font-mono);
}
.cp-stat-label {
  display: block;
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 2px;
}

.cp-section {
  padding: 0 24px 24px;
}

.cp-section-title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.cp-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-muted);
}

.cp-req-list {
  list-style: none;
  padding: 0;
}
.cp-req-list li {
  position: relative;
  padding: 8px 0 8px 20px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  border-bottom: 1px solid rgba(30,30,30,0.5);
}
.cp-req-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--accent-dim);
  border: 1px solid var(--accent-glow);
}

/* Sub-bounties timeline */
.cp-milestones { display: flex; flex-direction: column; gap: 0; }

.cp-milestone {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.cp-ms-time {
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--text-dim);
}

.cp-ms-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.cp-ms-value {
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--accent);
}

.cp-ms-status {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  border-radius: 100px;
}
.cp-ms-status.ms-open { background: rgba(63,185,80,0.12); color: #3FB950; }
.cp-ms-status.ms-awarded { background: rgba(96,165,250,0.12); color: #60A5FA; }
.cp-ms-status.ms-completed { background: rgba(167,139,250,0.12); color: #A78BFA; }

/* Tech stack tags */
.cp-tech-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.cp-tech-tag {
  padding: 5px 12px;
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 500;
  font-family: var(--font-mono);
  color: var(--text-muted);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}

/* Interaction & Legal */
.cp-info-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 8px;
}
.cp-info-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-bottom: 4px;
}
.cp-info-value {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

.cp-legal-list {
  list-style: none;
  padding: 0;
}
.cp-legal-list li {
  padding: 6px 0;
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.cp-legal-list li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-dim);
  border: 1px solid var(--accent);
  flex-shrink: 0;
}

/* Apply CTA */
.cp-apply {
  padding: 24px;
  position: sticky;
  bottom: 0;
  background: rgba(10,10,10,0.95);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--border);
  display: flex;
  gap: 12px;
  align-items: center;
}

.cp-apply .btn-primary {
  flex: 1;
}

/* ── Buttons ───────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  color: #000;
  background: var(--accent);
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}
.btn-primary:hover { background: var(--accent-bright); }
.btn-primary:active { transform: scale(0.98); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--border-light);
  cursor: pointer;
  transition: all 0.2s;
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

.btn-lg { padding: 14px 32px; font-size: 15px; }

.btn-sm { padding: 6px 14px; font-size: 12px; }

/* ── Provider Section ──────────────────────────────────── */
.provider-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px 48px;
}

.provider-hero {
  text-align: center;
  padding: 32px 0 48px;
}
.provider-hero h2 {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 400;
  margin-bottom: 12px;
}
.provider-hero p {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

.provider-benefits {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 48px;
}

.provider-benefit {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: border-color 0.2s;
}
.provider-benefit:hover { border-color: var(--accent-glow); }

.pb-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  background: var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--accent);
}

.provider-benefit h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
}
.provider-benefit p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Provider Registration Form */
.provider-register {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px;
  margin-bottom: 48px;
}
.provider-register h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}
.provider-register > p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.provider-form { display: flex; flex-direction: column; gap: 20px; }

.pf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.pf-field { display: flex; flex-direction: column; gap: 6px; }
.pf-field label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}
.pf-field input,
.pf-field select,
.pf-field textarea {
  padding: 10px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-input);
  color: var(--text);
  font-size: 14px;
  transition: border-color 0.2s;
}
.pf-field input:focus,
.pf-field select:focus,
.pf-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
.pf-field textarea { resize: vertical; }

.provider-challenges h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}

/* ── How It Works ──────────────────────────────────────── */
.how-it-works {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 32px;
  text-align: center;
}
.how-it-works h2 {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 400;
  margin-bottom: 48px;
}

.hiw-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: left;
}

.hiw-step {
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  position: relative;
}
.hiw-step::after {
  content: '→';
  position: absolute;
  right: -16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: var(--text-dim);
}
.hiw-step:last-child::after { content: none; }

.hiw-num {
  font-family: var(--font-mono);
  font-size: 32px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 12px;
  opacity: 0.6;
}
.hiw-step h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
}
.hiw-step p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── Post CTA ──────────────────────────────────────────── */
.post-cta {
  padding: 80px 32px;
  text-align: center;
  border-top: 1px solid var(--border);
}
.post-cta-content {
  max-width: 640px;
  margin: 0 auto;
}
.post-cta h2 {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 400;
  margin-bottom: 16px;
}
.post-cta p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 32px;
}
.post-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
}

/* ── Create Challenge Modal ────────────────────────────── */
.create-modal { position: fixed; inset: 0; z-index: 250; display: flex; align-items: center; justify-content: center; }
.create-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.7); backdrop-filter: blur(4px); }
.create-container {
  position: relative;
  width: 720px;
  max-width: 95%;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  animation: fadeInUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.create-header {
  padding: 32px 32px 0;
}
.create-header h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}
.create-header p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.create-form {
  padding: 0 32px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cf-field { display: flex; flex-direction: column; gap: 6px; }
.cf-field label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}
.cf-field input,
.cf-field select,
.cf-field textarea {
  padding: 10px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-input);
  color: var(--text);
  font-size: 14px;
}
.cf-field input:focus,
.cf-field select:focus,
.cf-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
.cf-field textarea { resize: vertical; }
.cf-field .cf-hint {
  font-size: 11px;
  color: var(--text-dim);
}

.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.cf-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

/* ── Empty State ───────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 64px 32px;
  color: var(--text-dim);
}
.empty-state svg { margin-bottom: 16px; opacity: 0.5; }
.empty-state h3 { font-size: 18px; margin-bottom: 8px; color: var(--text-muted); }
.empty-state p { font-size: 14px; }

/* ── Footer ────────────────────────────────────────────── */
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 32px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-dim);
}
.footer-links { display: flex; gap: 20px; }
.footer-links a:hover { color: var(--text-muted); }

/* ── Toast ─────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 24px;
  font-size: 13px;
  color: var(--text);
  opacity: 0;
  transition: all 0.3s;
  z-index: 300;
  pointer-events: none;
}
.toast.visible { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.success { border-color: var(--success); }
.toast.error { border-color: var(--error); }

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 1024px) {
  .card-grid { grid-template-columns: 1fr; }
  .provider-benefits { grid-template-columns: repeat(2, 1fr); }
  .hiw-grid { grid-template-columns: repeat(2, 1fr); }
  .hiw-step::after { content: none; }
  .cp-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .header { padding: 0 16px; }
  .header-links { display: none; }
  .hero { padding: 48px 16px 32px; }
  .hero h1 { font-size: 36px; }
  .hero-stats { flex-direction: column; gap: 16px; }
  .hero-stat-divider { width: 32px; height: 1px; }
  .filter-section { padding: 0 16px 16px; }
  .filter-bar { flex-direction: column; gap: 12px; }
  .filter-sort { margin-left: 0; }
  .results-section { padding: 0 16px 32px; }
  .provider-benefits { grid-template-columns: 1fr; }
  .hiw-grid { grid-template-columns: 1fr; }
  .pf-row { grid-template-columns: 1fr; }
  .cf-row { grid-template-columns: 1fr; }
  .challenge-panel { width: 100%; }
  .view-toggle-bar { flex-direction: column; align-items: stretch; padding: 8px 16px; }
  .post-cta-buttons { flex-direction: column; align-items: center; }
  .provider-register { padding: 24px; }
}

/* ── Reduced Motion ────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
