@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300&display=swap');

:root {
  --bg: #0a0e0f;
  --bg2: #111618;
  --bg3: #1a2022;
  --surface: #1e2628;
  --surface2: #252d30;
  --border: #2a3438;
  --text: #e8f0f2;
  --text2: #8fa3aa;
  --text3: #4a6570;
  --accent: #00e5a0;
  --accent2: #00b87a;
  --accent-glow: rgba(0,229,160,0.15);
  --urgent: #ff4d6d;
  --urgent-bg: rgba(255,77,109,0.12);
  --soon: #ffb800;
  --soon-bg: rgba(255,184,0,0.12);
  --blue: #4d9fff;
  --blue-bg: rgba(77,159,255,0.12);
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
  --transition: 0.2s cubic-bezier(0.4,0,0.2,1);
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

[data-theme="light"] {
  --bg: #f0f5f4;
  --bg2: #e8efed;
  --bg3: #dce6e3;
  --surface: #ffffff;
  --surface2: #f5faf8;
  --border: #d0ddd9;
  --text: #0d1f1c;
  --text2: #3d5a54;
  --text3: #7a9e97;
  --accent: #00a372;
  --accent2: #007a55;
  --accent-glow: rgba(0,163,114,0.12);
  --urgent: #d63355;
  --urgent-bg: rgba(214,51,85,0.1);
  --soon: #c48a00;
  --soon-bg: rgba(196,138,0,0.1);
  --blue: #2b7dd4;
  --blue-bg: rgba(43,125,212,0.1);
  --shadow: 0 4px 24px rgba(0,0,0,0.1);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  font-size: 15px;
  transition: background var(--transition), color var(--transition);
}

/* ─── NOISE TEXTURE OVERLAY ─── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

/* ─── NAVBAR ─── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10,14,15,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background var(--transition);
}
[data-theme="light"] .navbar {
  background: rgba(240,245,244,0.88);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nav-logo .logo-icon {
  width: 36px;
  height: 36px;
  background: var(--accent);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 0 20px var(--accent-glow);
}
.nav-logo .logo-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--text);
  letter-spacing: -0.5px;
}
.nav-logo .logo-tag {
  font-size: 0.68rem;
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 0.05em;
  display: block;
  line-height: 1;
  margin-top: 1px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}
.nav-links a {
  text-decoration: none;
  color: var(--text2);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}
.nav-links a:hover, .nav-links a.active {
  color: var(--text);
  background: var(--surface);
}
.nav-links a.active { color: var(--accent); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-notif {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  color: var(--text2);
  transition: all var(--transition);
}
.btn-notif:hover { border-color: var(--accent); color: var(--accent); }
.notif-badge {
  position: absolute;
  top: 6px; right: 6px;
  width: 8px; height: 8px;
  background: var(--urgent);
  border-radius: 50%;
  border: 2px solid var(--bg);
}

.btn-theme {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  color: var(--text2);
  transition: all var(--transition);
}
.btn-theme:hover { border-color: var(--accent); color: var(--accent); }

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 20px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #0a0e0f;
  box-shadow: 0 0 20px var(--accent-glow);
}
.btn-primary:hover {
  background: var(--accent2);
  transform: translateY(-1px);
  box-shadow: 0 4px 24px var(--accent-glow);
}
.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-glow);
}
.btn-danger {
  background: var(--urgent-bg);
  color: var(--urgent);
  border: 1px solid rgba(255,77,109,0.3);
}
.btn-danger:hover {
  background: var(--urgent);
  color: #fff;
}
.btn-sm { padding: 6px 14px; font-size: 0.82rem; }
.btn-lg { padding: 13px 28px; font-size: 1rem; font-weight: 600; }
.btn-full { width: 100%; justify-content: center; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none !important; }

/* ─── BADGES ─── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.badge-available { background: rgba(0,229,160,0.15); color: var(--accent); }
.badge-claimed { background: var(--blue-bg); color: var(--blue); }
.badge-collected { background: rgba(100,200,100,0.12); color: #64c864; }
.badge-expired { background: var(--surface); color: var(--text3); }
.badge-urgent { background: var(--urgent-bg); color: var(--urgent); }
.badge-soon { background: var(--soon-bg); color: var(--soon); }

/* ─── CARDS ─── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.card:hover {
  border-color: rgba(0,229,160,0.3);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  transform: translateY(-2px);
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  right: 0; height: 2px;
  background: transparent;
  transition: background var(--transition);
}
.card:hover::before { background: linear-gradient(90deg, var(--accent), transparent); }

/* ─── FOOD LISTING CARD ─── */
.listing-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.listing-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
}
.listing-card-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.3;
}
.listing-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--text2);
}
.listing-card-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}
.listing-impact {
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
}
.listing-card-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.25rem;
}
.countdown {
  font-size: 0.82rem;
  font-weight: 600;
  font-family: var(--font-display);
  padding: 3px 10px;
  border-radius: 6px;
  background: var(--surface2);
  color: var(--text2);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  letter-spacing: 0.03em;
}
.countdown.urgent { background: var(--urgent-bg); color: var(--urgent); }
.countdown.soon { background: var(--soon-bg); color: var(--soon); }

/* ─── LAYOUT ─── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.page-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 1.5rem;
  padding: 1.5rem 0;
  min-height: calc(100vh - 64px);
  position: relative;
  z-index: 1;
}
@media (max-width: 900px) {
  .page-layout { grid-template-columns: 1fr; }
  .map-panel { height: 300px; }
}

/* ─── MAP PANEL ─── */
.map-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  position: sticky;
  top: 80px;
  height: calc(100vh - 100px);
  display: flex;
  flex-direction: column;
}
.map-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.88rem;
  font-weight: 600;
}
.map-body {
  flex: 1;
  position: relative;
  background: var(--bg3);
  overflow: hidden;
}
.map-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.6;
}
.map-dots-container {
  position: absolute;
  inset: 0;
}
.map-dot {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 0 12px currentColor;
}
.map-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid currentColor;
  opacity: 0.4;
  animation: pulse 2s infinite;
}
.map-dot.urgent { background: var(--urgent); color: var(--urgent); }
.map-dot.soon { background: var(--soon); color: var(--soon); }
.map-dot.available { background: var(--accent); color: var(--accent); }
.map-dot.claimed { background: var(--blue); color: var(--blue); }
.map-dot:hover { transform: translate(-50%, -50%) scale(1.4); }

.map-legend {
  padding: 0.75rem 1.25rem;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 1rem;
  font-size: 0.75rem;
  color: var(--text2);
}
.map-legend-item { display: flex; align-items: center; gap: 5px; }
.map-legend-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
}

/* ─── FEED PANEL ─── */
.feed-panel { display: flex; flex-direction: column; gap: 1rem; }

.feed-controls {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.search-bar {
  position: relative;
}
.search-bar input {
  width: 100%;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 9px 14px 9px 38px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.88rem;
  outline: none;
  transition: border-color var(--transition);
}
.search-bar input::placeholder { color: var(--text3); }
.search-bar input:focus { border-color: var(--accent); }
.search-bar .search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text3);
  font-size: 15px;
  pointer-events: none;
}
.filter-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.filter-chip {
  padding: 5px 14px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text2);
  font-family: var(--font-body);
  font-size: 0.8rem;
  cursor: pointer;
  transition: all var(--transition);
}
.filter-chip:hover, .filter-chip.active {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-glow);
}
select.filter-select {
  padding: 5px 28px 5px 12px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--surface2);
  color: var(--text2);
  font-family: var(--font-body);
  font-size: 0.8rem;
  cursor: pointer;
  outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%238fa3aa'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  transition: all var(--transition);
}
select.filter-select:focus { border-color: var(--accent); }

.feed-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.25rem 0;
}
.feed-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}
.feed-count {
  font-size: 0.8rem;
  color: var(--text3);
}
.listings-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* ─── EMPTY STATE ─── */
.empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--text3);
}
.empty-state .empty-icon { font-size: 2.5rem; margin-bottom: 0.75rem; }
.empty-state h3 { font-family: var(--font-display); color: var(--text2); margin-bottom: 0.5rem; }

/* ─── SKELETON ─── */
.skeleton {
  background: linear-gradient(90deg, var(--surface) 25%, var(--surface2) 50%, var(--surface) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.skeleton-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.skeleton-line { height: 14px; }
.skeleton-line.short { width: 40%; }
.skeleton-line.medium { width: 70%; }

/* ─── TOAST ─── */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.88rem;
  box-shadow: var(--shadow);
  animation: slideInToast 0.3s ease;
  min-width: 260px;
  max-width: 360px;
}
.toast.success { border-color: var(--accent); }
.toast.error { border-color: var(--urgent); }
.toast.warning { border-color: var(--soon); }
.toast .toast-icon { font-size: 16px; flex-shrink: 0; }
@keyframes slideInToast {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
@keyframes slideOutToast {
  from { transform: translateX(0); opacity: 1; }
  to { transform: translateX(120%); opacity: 0; }
}
.toast.removing { animation: slideOutToast 0.3s ease forwards; }

/* ─── NOTIFICATION PANEL ─── */
.notif-panel {
  position: absolute;
  top: 50px;
  right: 0;
  width: 300px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  z-index: 100;
  overflow: hidden;
  animation: fadeIn 0.2s ease;
}
.notif-panel-header {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  font-size: 0.88rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.notif-item {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text2);
  cursor: pointer;
  transition: background var(--transition);
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.notif-item:hover { background: var(--surface2); }
.notif-item:last-child { border-bottom: none; }
.notif-time { font-size: 0.75rem; color: var(--text3); margin-top: 2px; }

/* ─── POST FORM ─── */
.post-page {
  position: relative;
  z-index: 1;
  padding: 2rem 0;
}
.post-container {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.post-header {
  margin-bottom: 2rem;
}
.post-header h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.post-header p { color: var(--text2); }

.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}
.form-group {
  margin-bottom: 1.25rem;
}
.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text2);
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.form-input, .form-textarea, .form-select {
  width: 100%;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.92rem;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--text3); }
.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.form-textarea { resize: vertical; min-height: 100px; }
.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%238fa3aa'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-hint { font-size: 0.78rem; color: var(--text3); margin-top: 0.35rem; }

.impact-preview {
  background: var(--accent-glow);
  border: 1px solid rgba(0,229,160,0.25);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--accent);
  margin-bottom: 1.25rem;
}
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}
.category-btn {
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg2);
  color: var(--text2);
  font-family: var(--font-body);
  font-size: 0.8rem;
  cursor: pointer;
  text-align: center;
  transition: all var(--transition);
}
.category-btn:hover, .category-btn.selected {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-glow);
}
.category-btn .cat-emoji { display: block; font-size: 1.2rem; margin-bottom: 2px; }

/* ─── DETAILS PAGE ─── */
.details-page {
  position: relative;
  z-index: 1;
  padding: 2rem 0;
}
.details-container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.details-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text2);
  text-decoration: none;
  font-size: 0.88rem;
  margin-bottom: 1.5rem;
  transition: color var(--transition);
}
.details-back:hover { color: var(--accent); }

.details-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.details-hero {
  background: linear-gradient(135deg, var(--bg3) 0%, var(--surface2) 100%);
  padding: 2rem;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.details-category-badge {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 5px;
}
.details-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
}
.details-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}
.details-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  color: var(--text2);
}
.details-meta-item span { color: var(--text); font-weight: 500; }

.big-countdown {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}
.big-countdown .time-label { font-size: 0.78rem; color: var(--text3); text-transform: uppercase; letter-spacing: 0.05em; }
.big-countdown .time-value {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.big-countdown.urgent .time-value { color: var(--urgent); }
.big-countdown.soon .time-value { color: var(--soon); }

.details-body { padding: 1.5rem 2rem; }
.details-section { margin-bottom: 1.5rem; }
.details-section-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text3);
  margin-bottom: 0.75rem;
}
.details-section p { color: var(--text2); font-size: 0.92rem; }

.claim-section {
  border-top: 1px solid var(--border);
  padding: 1.5rem 2rem;
  background: var(--surface2);
}
.claim-status-claimed {
  background: var(--blue-bg);
  border: 1px solid rgba(77,159,255,0.3);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--blue);
  font-size: 0.92rem;
}
.rating-section {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}
.rating-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text2);
  cursor: pointer;
  font-size: 0.88rem;
  transition: all var(--transition);
}
.rating-btn:hover { border-color: var(--accent); color: var(--accent); }
.rating-btn.selected.positive { border-color: var(--accent); background: var(--accent-glow); color: var(--accent); }
.rating-btn.selected.negative { border-color: var(--urgent); background: var(--urgent-bg); color: var(--urgent); }

/* ─── DASHBOARD PAGE ─── */
.dashboard-page {
  position: relative;
  z-index: 1;
  padding: 2rem 0;
}
.dashboard-header {
  margin-bottom: 2rem;
}
.dashboard-header h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  position: relative;
  overflow: hidden;
}
.stat-card::after {
  content: '';
  position: absolute;
  bottom: 0; right: 0;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--accent-glow);
  transform: translate(20px, 20px);
}
.stat-icon { font-size: 1.5rem; margin-bottom: 0.5rem; }
.stat-value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.25rem;
}
.stat-label { font-size: 0.8rem; color: var(--text2); }

.activity-section h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.activity-list { display: flex; flex-direction: column; gap: 0.75rem; }
.activity-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all var(--transition);
}
.activity-item:hover {
  border-color: var(--accent);
  transform: translateX(4px);
}
.activity-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.activity-dot.posted { background: var(--accent); }
.activity-dot.claimed { background: var(--blue); }
.activity-dot.delivered { background: var(--soon); }
.activity-info { flex: 1; }
.activity-info strong { font-weight: 600; font-size: 0.92rem; }
.activity-info p { font-size: 0.8rem; color: var(--text2); margin-top: 2px; }
.activity-time { font-size: 0.78rem; color: var(--text3); white-space: nowrap; }

/* ─── VOLUNTEER PAGE ─── */
.volunteer-page {
  position: relative;
  z-index: 1;
  padding: 2rem 0;
}
.volunteer-hero {
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface2) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.volunteer-hero-text h1 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}
.volunteer-hero-text p { color: var(--text2); max-width: 380px; }
.volunteer-stats {
  display: flex;
  gap: 1.5rem;
  flex-shrink: 0;
}
.vol-stat { text-align: center; }
.vol-stat-value {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--accent);
}
.vol-stat-label { font-size: 0.75rem; color: var(--text2); }

.volunteer-tasks { display: flex; flex-direction: column; gap: 1rem; }
.volunteer-task-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  transition: all var(--transition);
}
.volunteer-task-card:hover {
  border-color: rgba(0,229,160,0.3);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.route-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  padding-top: 4px;
}
.route-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.route-dot.pickup { background: var(--accent); }
.route-dot.dropoff { background: var(--urgent); }
.route-line {
  width: 2px;
  height: 30px;
  background: linear-gradient(to bottom, var(--accent), var(--urgent));
  border-radius: 2px;
}
.task-info { flex: 1; }
.task-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}
.task-route {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 0.75rem;
}
.task-route-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--text2);
}
.task-meta { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.task-actions { display: flex; flex-direction: column; gap: 0.5rem; align-items: flex-end; }

/* ─── ANIMATIONS ─── */
@keyframes pulse {
  0% { transform: scale(1); opacity: 0.4; }
  50% { transform: scale(1.3); opacity: 0.1; }
  100% { transform: scale(1); opacity: 0.4; }
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-in { animation: slideUp 0.3s ease both; }

/* ─── MOBILE ─── */
@media (max-width: 600px) {
  .navbar { padding: 0 1rem; }
  .form-row { grid-template-columns: 1fr; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .volunteer-hero { flex-direction: column; }
  .volunteer-stats { justify-content: center; }
  .filter-row { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
  .details-hero { padding: 1.25rem; }
  .details-body { padding: 1.25rem; }
  .claim-section { padding: 1.25rem; }
  .details-title { font-size: 1.4rem; }
}

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text3); }

/* ─── TABS ─── */
.tabs {
  display: flex;
  gap: 0.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.35rem;
  margin-bottom: 1.5rem;
}
.tab-btn {
  flex: 1;
  padding: 8px 12px;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text2);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}
.tab-btn.active {
  background: var(--accent);
  color: #0a0e0f;
  font-weight: 600;
}
