/* Home Page Specific Styles */

/* ─────────────────────────────────────────────────────────────
   How It Works Teaser (Index Page)
   ───────────────────────────────────────────────────────────── */
.how-teaser {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
}

@media (min-width: 768px) {
  .how-teaser {
    grid-template-columns: 1fr auto;
  }
}

.how-teaser-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.how-teaser-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.how-step {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(24, 225, 255, 0.08);
  border: 1px solid rgba(24, 225, 255, 0.2);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.9rem;
  color: var(--text, #e9f3f6);
}

.how-step-num {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--teal, #18e1ff), #0ea5e9);
  color: #000;
  font-weight: 700;
  border-radius: 50%;
  font-size: 0.8rem;
}

.how-step-text {
  font-weight: 500;
}

.how-teaser-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.how-teaser-card {
  max-width: 220px;
  flex-shrink: 0;
}

@media (max-width: 767px) {
  .how-teaser-card {
    display: none;
  }
}

/* ─────────────────────────────────────────────────────────────
   Scan Demo Video Section (How It Works Page)
   ───────────────────────────────────────────────────────────── */
.scan-demo-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
}

@media (min-width: 768px) {
  .scan-demo-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.scan-demo-media {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.scan-demo-frame {
  aspect-ratio: 16/9;
  background: linear-gradient(145deg, rgba(14, 19, 25, 0.95), rgba(24, 30, 38, 0.85));
  border: 2px dashed rgba(24, 225, 255, 0.3);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.scan-demo-frame:hover {
  border-color: rgba(24, 225, 255, 0.6);
}

.scan-demo-frame-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--muted, #9db2bf);
  text-align: center;
  padding: 20px;
}

.scan-demo-frame .badge {
  background: rgba(24, 225, 255, 0.15);
  border: 1px solid rgba(24, 225, 255, 0.4);
  color: var(--teal, #18e1ff);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.scan-demo-play {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--teal, #18e1ff), #0ea5e9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(24, 225, 255, 0.4);
  color: #000;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.scan-demo-frame:hover .scan-demo-play {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(24, 225, 255, 0.6);
}

.scan-demo-play svg {
  width: 28px;
  height: 28px;
  margin-left: 4px;
}

.scan-demo-caption {
  font-size: 0.85rem;
}

.scan-demo-note {
  font-size: 0.8rem;
  text-align: center;
  opacity: 0.7;
}

.scan-demo-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.scan-demo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

body {
  background-image:
    radial-gradient(circle at 16% 12%, rgba(24, 225, 255, 0.08), transparent 26%),
    radial-gradient(circle at 86% 8%, rgba(255, 106, 32, 0.07), transparent 22%),
    radial-gradient(circle at 50% 0%, #1a2025 0%, #0b0f12 60%);
  background-attachment: fixed;
}

.hero-marquee {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  padding: 0;
  min-height: clamp(280px, 52vw, 460px);
  background: linear-gradient(145deg, rgba(14, 19, 25, 0.92), rgba(9, 13, 18, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
  isolation: isolate;
}

.hero-marquee::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 25% 25%, rgba(24, 225, 255, 0.12), transparent 32%),
              radial-gradient(circle at 82% 18%, rgba(255, 106, 32, 0.12), transparent 30%);
  z-index: 0;
  pointer-events: none; /* let taps reach the CTA */
}

.hero-marquee::after {
  content: '';
  position: absolute;
  inset: 0;
  /* Much lighter gradient, only darkening the very bottom for text readability */
  background: linear-gradient(180deg, rgba(11, 15, 18, 0) 0%, rgba(11, 15, 18, 0.1) 60%, rgba(11, 15, 18, 0.8) 100%);
  z-index: 1;
  pointer-events: none; /* avoid blocking clicks on pills/CTAs */
}

.hero-images { position: absolute; inset: 0; height: 100%; overflow: hidden; z-index: 0; filter: saturate(1.1) brightness(0.9); }
.hero-images picture { position: absolute; inset: 0; }
.hero-images { pointer-events: none; }
.hero-images img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.8s ease-in-out; }
.hero-images img.is-active { opacity: 1; }
.hero-content { position: relative; z-index: 10; padding: clamp(18px, 3vw, 32px); pointer-events: auto; opacity: 1; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr); gap: clamp(16px, 3vw, 24px); align-items: stretch; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } }
.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 720px;
  align-items: center;
  text-align: center;
  margin: 0 auto;
}
.hero-labels { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; }
.hero-labels .badge { background: rgba(0, 0, 0, 0.5); border: 1px solid rgba(24, 225, 255, 0.25); border-radius: 999px; padding: 6px 12px; font-size: 0.75rem; letter-spacing: 0.02em; color: #ffffff; }
.hero-labels .badge.alt { background: rgba(0, 0, 0, 0.5); border-color: rgba(255, 255, 255, 0.12); color: #ffffff; }

.tagline {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  letter-spacing: 0.08em;
  margin: 0;
  text-transform: uppercase;
  color: #e9f3f6;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.8);
}

.word-scan {
  display: inline-block;
  animation: popBurstTeal 6s infinite ease-out;
  animation-delay: 0s;
}
.word-learn {
  display: inline-block;
  animation: popBurstOrange 6s infinite ease-out;
  animation-delay: 2s;
}
.word-collect {
  display: inline-block;
  animation: popBurstTeal 6s infinite ease-out;
  animation-delay: 4s;
}

/* 🔥 POP BURST Animation - Words scale up with explosive glow then settle */
@keyframes popBurstTeal {
  0% {
    transform: scale(1);
    text-shadow: 0 0 4px rgba(24, 225, 255, 0.2);
    color: #b0c4cd;
  }
  10% {
    transform: scale(1.35);
    text-shadow:
      0 0 30px rgba(24, 225, 255, 1),
      0 0 60px rgba(24, 225, 255, 0.8),
      0 0 100px rgba(24, 225, 255, 0.4);
    color: #ffffff;
  }
  20% {
    transform: scale(1.1);
    text-shadow:
      0 0 20px rgba(24, 225, 255, 0.9),
      0 0 40px rgba(24, 225, 255, 0.5);
    color: #ffffff;
  }
  30% {
    transform: scale(1);
    text-shadow: 0 0 15px rgba(24, 225, 255, 0.6);
    color: #e0f7ff;
  }
  100% {
    transform: scale(1);
    text-shadow: 0 0 4px rgba(24, 225, 255, 0.2);
    color: #b0c4cd;
  }
}

@keyframes popBurstOrange {
  0% {
    transform: scale(1);
    text-shadow: 0 0 4px rgba(255, 106, 32, 0.2);
    color: #b0c4cd;
  }
  10% {
    transform: scale(1.35);
    text-shadow:
      0 0 30px rgba(255, 106, 32, 1),
      0 0 60px rgba(255, 106, 32, 0.8),
      0 0 100px rgba(255, 106, 32, 0.4);
    color: #ffffff;
  }
  20% {
    transform: scale(1.1);
    text-shadow:
      0 0 20px rgba(255, 106, 32, 0.9),
      0 0 40px rgba(255, 106, 32, 0.5);
    color: #ffffff;
  }
  30% {
    transform: scale(1);
    text-shadow: 0 0 15px rgba(255, 106, 32, 0.6);
    color: #ffe8d9;
  }
  100% {
    transform: scale(1);
    text-shadow: 0 0 4px rgba(255, 106, 32, 0.2);
    color: #b0c4cd;
  }
}

.hero-subhead {
  margin: 0;
  font-size: 1.05rem;
  color: #e8eef0;
  font-weight: 500;
  line-height: 1.5;
  /* Override .card p padding so the subhead sits closer to the tagline */
  padding: 8px 16px;
  margin-top: 4px;
  background: rgba(24, 225, 255, 0.12);
  border-radius: 8px;
  border-left: 3px solid rgba(24, 225, 255, 0.6);
  -webkit-text-stroke: 0.5px #ff8c4a;
  text-stroke: 0.5px #ff8c4a;
  text-shadow:
    0 2px 4px rgba(0, 0, 0, 0.9),
    0 0 12px rgba(255, 106, 32, 0.6);
}
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; justify-content: center; }
.chip {
  background: rgba(0, 0, 0, 0.5);
  color: #e9f3f6;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: all 0.3s ease;
}
.chip:nth-child(1) {
  border-color: rgba(24, 225, 255, 0.6);
  box-shadow: 0 0 8px rgba(24, 225, 255, 0.4);
  animation: neonPulseTeal 6s infinite ease-in-out;
  animation-delay: 0s;
}
.chip:nth-child(2) {
  border-color: rgba(255, 106, 32, 0.6);
  box-shadow: 0 0 8px rgba(255, 106, 32, 0.4);
  animation: neonPulseOrange 6s infinite ease-in-out;
  animation-delay: 2s;
}
.chip:nth-child(3) {
  border-color: rgba(24, 225, 255, 0.6);
  box-shadow: 0 0 8px rgba(24, 225, 255, 0.4);
  animation: neonPulseTeal 6s infinite ease-in-out;
  animation-delay: 4s;
}

@keyframes neonPulseTeal {
  0%, 100% { box-shadow: 0 0 5px rgba(24, 225, 255, 0.3), inset 0 0 2px rgba(24, 225, 255, 0.1); border-color: rgba(24, 225, 255, 0.4); }
  50% { box-shadow: 0 0 15px rgba(24, 225, 255, 0.6), inset 0 0 6px rgba(24, 225, 255, 0.2); border-color: rgba(24, 225, 255, 0.9); }
}

@keyframes neonPulseOrange {
  0%, 100% { box-shadow: 0 0 5px rgba(255, 106, 32, 0.3), inset 0 0 2px rgba(255, 106, 32, 0.1); border-color: rgba(255, 106, 32, 0.4); }
  50% { box-shadow: 0 0 15px rgba(255, 106, 32, 0.6), inset 0 0 6px rgba(255, 106, 32, 0.2); border-color: rgba(255, 106, 32, 0.9); }
}

.scan-buttons { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin-top: 14px; }
.scan-buttons .btn {
  min-height: 48px;
  font-weight: 600;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  text-align: center;
}
.scan-buttons .btn-primary { background: linear-gradient(160deg, rgba(24, 225, 255, 0.2), rgba(24, 225, 255, 0.08)); border-color: rgba(24, 225, 255, 0.35); color: #e9f9fb; }
.scan-buttons .btn-secondary { background: rgba(255, 255, 255, 0.04); border-color: rgba(255, 255, 255, 0.1); }
.scan-buttons .btn-tertiary { background: rgba(24, 225, 255, 0.08); color: var(--teal, #00c8b4); border-color: rgba(24, 225, 255, 0.15); }

@media (max-width: 640px) {
  .scan-buttons {
    display: flex;
    justify-content: center;
  }
  .scan-buttons .btn {
    width: 100%;
    max-width: 320px;
    padding: 14px 20px;
    font-size: 16px;
  }
}

.hero-side-card {
  background: rgba(17, 22, 28, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.hero-side-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-weight: 600; color: #ffffff; font-size: 0.95rem; letter-spacing: 0.02em; }
.hero-pill { font-size: 12px; padding: 6px 10px; border-radius: 999px; background: rgba(24, 225, 255, 0.12); border: 1px solid rgba(24, 225, 255, 0.3); color: var(--teal); display: inline-flex; align-items: center; gap: 6px; }

/* Home hero: make the Create Account pill a bit larger */
#heroCTA.hero-pill {
  font-size: 15px;
  padding: 14px 24px;
  background: rgba(24, 225, 255, 0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(24, 225, 255, 0.5);
  color: #ffffff;
  box-shadow: 0 0 20px rgba(24, 225, 255, 0.25);
  opacity: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  z-index: 20;
  pointer-events: auto;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all 0.3s ease;
}

#heroCTA.hero-pill:hover {
  background: rgba(24, 225, 255, 0.25);
  box-shadow: 0 0 30px rgba(24, 225, 255, 0.4);
  transform: translateY(-2px);
}

#heroCTA.hero-pill:hover,
#heroCTA.hero-pill:focus-visible {
  background: linear-gradient(135deg, #18e1ff, #39bdf2);
  box-shadow: 0 0 25px rgba(24, 225, 255, 0.6);
  transform: translateY(-1px);
  border-color: #fff;
}

#heroCTA.hero-pill.teal {
  background: linear-gradient(135deg, rgba(0, 200, 180, 0.95), rgba(14, 165, 233, 0.9));
  color: #021010;
}
.hero-side-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.hero-stat { padding: 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.06); display: flex; flex-direction: column; gap: 2px; }
.hero-stat .num { font-size: 1.6rem; font-weight: 700; color: var(--teal, #00c8b4); }
.hero-stat .label { font-size: 0.8rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.hero-side-note { margin: 0; font-size: 0.85rem; color: var(--muted); }
.hero-side-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.hero-side-actions .btn {
  flex: 1;
  justify-content: center;
  text-align: center;
}
.steps-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); padding: 8px; }
.step-item { text-align: center; padding: 16px; background: rgba(255,255,255,0.03); border-radius: 12px; }
.step-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--teal), #0ea5e9);
  color: #000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(24, 225, 255, 0.4);
}
.step-icon svg { width: 36px; height: 36px; }
.step-title { font-size: 1.1rem; font-weight: 600; margin-bottom: 6px; }
.step-desc { font-size: 0.875rem; color: var(--muted, #9db2bf); }
.stat { text-align: center; padding: 12px; }
.stat .num { font-size: 1.75rem; font-weight: 700; color: var(--teal, #00c8b4); }
.car-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }



.feed-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
/* @media (min-width: 640px) { .feed-grid { grid-template-columns: repeat(2, 1fr); } } */
/* @media (min-width: 1024px) { .feed-grid { grid-template-columns: repeat(4, 1fr); } } */

/* chip-toggle styles now in unified.css - keeping page-specific skeleton for shimmer effect */
.banner-ad { background: linear-gradient(90deg, rgba(0,200,180,0.1), rgba(0,200,180,0.05)); border: 1px dashed rgba(0,200,180,0.3); }
.banner-ad__inner { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 16px; gap: 8px; }
.banner-ad__label { font-size: 0.75rem; color: var(--muted, #9db2bf); }
.banner-ad__cta { font-size: 0.875rem; color: var(--teal, #00c8b4); }
/* skeleton styles now in unified.css */
blockquote {
  border-left: 3px solid var(--teal, #00c8b4);
  padding-left: 12px;
  font-style: italic;
  transition: all 0.15s ease;
  position: relative;
}

blockquote:hover {
  border-left-color: var(--accent, #ff6a20);
  transform: translateX(4px);
}

/* Live Feed Hero Style Overrides */
.feed-item {
  display: block;
  padding: 0;
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #000;
}

.feed-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.feed-item:hover .feed-hero-img {
  transform: scale(1.05);
}

.feed-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
}

.feed-item .btn-glass {
    font-size: 0.75rem;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    border-radius: 999px;
    transition: all 0.2s ease;
}

.feed-item:hover .btn-glass {
    background: var(--teal);
    color: #000;
    border-color: var(--teal);
}

.location-info {
    margin-left: 12px;
    margin-bottom: 12px;
    font-size: 12px;
    font-style: italic;
    opacity: 0.8;
}

/* Quick Action Overrides for Home Page */
.quick-action.glass-action {
  background: rgba(17, 22, 28, 0.6) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-color: rgba(255, 255, 255, 0.08) !important;
  position: relative;
  overflow: hidden;
}

.quick-action.glass-action .action-emblem {
  position: absolute;
  top: -10px;
  right: -10px;
  opacity: 0.15;
  pointer-events: none;
  color: var(--teal);
  transition: opacity 0.2s ease;
  transform: rotate(15deg);
}

.quick-action.glass-action:hover .action-emblem {
  opacity: 0.3;
}

/* ─────────────────────────────────────────────────────────────
   Live Updates Widget (moved from inline styles in index.html)
   ───────────────────────────────────────────────────────────── */
.live-updates {
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 360px;
  max-height: 40vh;
  overflow: auto;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  background: var(--panel);
  border: 1px solid var(--line);
  z-index: 50;
  color: var(--text);
}

.live-updates header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  font-weight: 600;
  border-bottom: 1px solid var(--line);
}

.live-updates header button {
  border: none;
  background: none;
  cursor: pointer;
  color: var(--muted);
}

.live-updates ul {
  list-style: none;
  margin: 0;
  padding: 8px 12px;
}

.live-updates li {
  padding: 6px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 0.9rem;
}

.live-updates li:last-child {
  border-bottom: none;
}

.live-updates.is-collapsed ul {
  display: none;
}

.live-updates-admin {
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
}

.live-updates-admin .admin-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.85rem;
}

.live-updates-admin .admin-row strong {
  font-weight: 600;
  color: var(--text);
}

.live-updates-admin .admin-row span {
  color: var(--muted);
  text-align: right;
}

.live-updates-admin ul {
  list-style: none;
  margin: 8px 0 0 0;
  padding: 0;
}

.live-updates-admin li {
  padding: 4px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 0.82rem;
  color: var(--muted);
}

.live-updates-admin li:last-child {
  border-bottom: none;
}

@media (max-width: 768px) {
  .live-updates {
    display: none;
  }
}

/* ─────────────────────────────────────────────────────────────
   Chip Toggle Buttons (accessibility fix)
   ───────────────────────────────────────────────────────────── */
.chip-toggle {
  /* Reset button defaults */
  font-family: inherit;
  cursor: pointer;
}

/* Ensure section titles don't have extra margin when inline with filters */
#nearbyHeading {
  margin: 0;
}

/* ─────────────────────────────────────────────────────────────
   Community Section (Refreshed)
   ───────────────────────────────────────────────────────────── */
.community-section {
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.05) 0%, transparent 50%);
}

.community-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

@media (max-width: 640px) {
  .community-stats-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
}

.community-stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg, 1rem);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.community-stat-card:hover {
  transform: translateY(-4px);
  border-color: var(--teal);
}

.community-stat-icon {
  width: 2.5rem;
  height: 2.5rem;
  stroke: var(--teal, #14b8a6);
  margin-bottom: 0.75rem;
  opacity: 0.8;
}

.community-stat-value {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--teal, #14b8a6), #0ea5e9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.community-stat-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted, #71717a);
  margin-top: 0.25rem;
}

.community-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

/* ─────────────────────────────────────────────────────────────
   Testimonials Section (Refreshed)
   ───────────────────────────────────────────────────────────── */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

@media (max-width: 900px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

.testimonial-card {
  position: relative;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg, 1rem);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.testimonial-icon {
  width: 1.5rem;
  height: 1.5rem;
  fill: var(--teal, #14b8a6);
  opacity: 0.4;
  flex-shrink: 0;
}

.testimonial-card blockquote {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text, #e9f3f6);
  font-style: italic;
}

.testimonial-card cite {
  font-size: 0.8rem;
  font-style: normal;
  font-weight: 600;
  color: var(--muted, #71717a);
  margin-top: auto;
}

/* Light mode adjustments */
body.light-mode .testimonial-card {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.08);
}

body.light-mode .testimonial-card blockquote {
  color: var(--text, #1a202c);
}

/* Additional light mode contrast fixes */
body.light-mode .hero-labels .badge,
body.light-mode .hero-labels .badge.alt {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(0, 0, 0, 0.12);
  color: #334155;
}

body.light-mode .hero-copy h1,
body.light-mode .hero-title {
  color: #0f172a;
}

body.light-mode .hero-tagline {
  color: #334155;
}

body.light-mode .hero-cta-group .btn {
  color: #fff;
}

body.light-mode .hero-cta-group .btn-secondary {
  background: rgba(255, 255, 255, 0.9);
  color: #334155;
  border-color: rgba(0, 0, 0, 0.1);
}

body.light-mode .hero-cta-group .btn-secondary:hover {
  background: #fff;
  color: #0f172a;
}

body.light-mode .section-title,
body.light-mode .section-subtitle {
  color: #0f172a;
}

body.light-mode .section-description {
  color: #475569;
}

body.light-mode .feature-card,
body.light-mode .info-card {
  background: #fff;
  border-color: rgba(0, 0, 0, 0.08);
  color: #334155;
}

body.light-mode .feature-card h3,
body.light-mode .feature-title {
  color: #0f172a;
}

body.light-mode .feature-card p,
body.light-mode .feature-description {
  color: #475569;
}

/* Community stat cards - full light mode fix */
body.light-mode .community-stat-card {
  background: #0f172a !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

body.light-mode .community-stat-icon {
  stroke: #18e1ff;
}

body.light-mode .community-stat-value {
  background: linear-gradient(135deg, #18e1ff, #0ea5e9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

body.light-mode .community-stat-card .community-stat-label {
  color: #fff !important;
  opacity: 0.85;
}

/* Live Feed cards - keep dark for image contrast */
body.light-mode .feed-item {
  background: #0f172a;
  border-color: rgba(0, 0, 0, 0.1);
}

body.light-mode .feed-overlay {
  background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
}

body.light-mode .feed-item .btn-glass {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

body.light-mode .testimonial-author {
  color: #64748b;
}

body.light-mode .testimonial-card cite {
  color: #64748b;
}

body.light-mode .testimonial-icon {
  fill: #64748b;
}
