/* ============================================================ */
/* AQUAQUEST — PAGE STYLES                                       */
/* Explore · Sites · Site Detail · Observation                   */
/* Complete · Fixed · Fresh                                      */
/* ============================================================ */

/* ============================================================ */
/* 1. EXPLORE HERO (Home page only)                              */
/* ============================================================ */
.explore-hero {
  background: linear-gradient(135deg, var(--pc-card) 0%, var(--pc-paper) 100%);
  border-radius: var(--pc-radius);
  padding: 22px;
  margin-bottom: 16px;
  box-shadow: var(--pc-shadow-md);
  position: relative;
  overflow: hidden;
  min-height: 140px;
}

.explore-hero::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.18), transparent 70%);
  pointer-events: none;
}

.explore-hero::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: 30%;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14, 58, 76, 0.08), transparent 70%);
  pointer-events: none;
}

.explore-hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.explore-greeting {
  font-family: 'Caveat', cursive;
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--pc-text);
  margin-bottom: 6px;
  line-height: 1.1;
  letter-spacing: 0.3px;
}

.explore-sub {
  font-size: 13.5px;
  color: var(--pc-text-2);
  margin-bottom: 14px;
  line-height: 1.45;
  max-width: 280px;
}

.explore-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--pc-primary);
  color: var(--pc-text-on-dark);
  border: none;
  padding: 11px 20px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.22s ease;
  box-shadow: 0 4px 12px rgba(14, 58, 76, 0.25);
  font-family: inherit;
}

.explore-cta:hover {
  background: var(--pc-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(14, 58, 76, 0.35);
}

.explore-illustration {
  flex-shrink: 0;
  width: 140px;
  height: 140px;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
}

.explore-illustration img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ============================================================ */
/* 2. COMMUNITY MAP PREVIEW CARD                                 */
/* ============================================================ */
.map-preview-card {
  position: relative;
  background: linear-gradient(135deg, var(--pc-primary), var(--pc-accent));
  border-radius: var(--pc-radius);
  padding: 20px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(14, 58, 76, 0.28);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  min-height: 110px;
  border: none;
  font-family: inherit;
  text-align: left;
  width: 100%;
}

.map-preview-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(14, 58, 76, 0.4);
}

.map-preview-card::before {
  content: '';
  position: absolute;
  top: -30px;
  right: -30px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.15), transparent 70%);
  pointer-events: none;
}

.map-preview-text {
  flex: 1;
  min-width: 0;
  position: relative;
  z-index: 1;
}

.map-preview-label {
  font-size: 10.5px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.85);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.map-preview-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
  line-height: 1.15;
}

.map-preview-sub {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.4;
}

.map-preview-icon {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: #fff;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  animation: mapPulse 3s ease-in-out infinite;
}

@keyframes mapPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* ============================================================ */
/* 3. QUICK STATS ROW                                            */
/* ============================================================ */
.quick-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 18px;
}

.quick-stat {
  background: var(--pc-card);
  border-radius: 14px;
  padding: 12px 8px;
  text-align: center;
  border: 1px solid var(--pc-border-light);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  cursor: pointer;
}

.quick-stat:hover {
  transform: translateY(-2px);
  box-shadow: var(--pc-shadow-sm);
}

.quick-stat-icon {
  font-size: 18px;
  margin-bottom: 6px;
}

.quick-stat-value {
  font-size: 17px;
  font-weight: 800;
  color: var(--pc-text);
  line-height: 1.1;
  margin-bottom: 3px;
}

.quick-stat-label {
  font-size: 9.5px;
  font-weight: 700;
  color: var(--pc-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  line-height: 1.2;
}

/* ============================================================ */
/* 4. SECTION TITLE                                              */
/* ============================================================ */
.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  gap: 10px;
}

.section-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--pc-text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title i { color: var(--pc-accent); font-size: 15px; }

.section-link {
  font-size: 12px;
  font-weight: 700;
  color: var(--pc-accent);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
  transition: background 0.2s ease;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.section-link:hover { background: var(--pc-accent-soft); }
.section-link i { font-size: 10px; }

/* ============================================================ */
/* 5. SITE CARDS — Horizontal Scroll                             */
/* ============================================================ */
.site-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 2px 12px;
  margin: 0 -2px;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.site-scroll::-webkit-scrollbar { display: none; }

.site-card {
  position: relative;
  min-width: 220px;
  max-width: 220px;
  flex-shrink: 0;
  border-radius: 18px;
  overflow: hidden;
  background: var(--pc-card);
  box-shadow: var(--pc-shadow-sm);
  border: 1px solid var(--pc-border-light);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  scroll-snap-align: start;
  text-align: left;
  font-family: inherit;
  padding: 0;
}

.site-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--pc-shadow-md);
}

.site-card-img {
  position: relative;
  width: 100%;
  aspect-ratio: 16/11;
  overflow: hidden;
  background: var(--pc-paper);
}

.site-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.site-card:hover .site-card-img img { transform: scale(1.06); }

.site-card-type-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 9.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #fff;
  background: rgba(14, 58, 76, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  z-index: 2;
}

.site-card-type-badge i { font-size: 9px; }

.site-card-health {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  z-index: 2;
}

.site-card-health.health-excellent { background: var(--aq-excellent); }
.site-card-health.health-good      { background: var(--aq-good); }
.site-card-health.health-moderate  { background: var(--aq-moderate); }
.site-card-health.health-poor      { background: var(--aq-poor); }
.site-card-health.health-critical  { background: var(--aq-critical); }

.site-card-body {
  padding: 12px 14px 14px;
}

.site-card-name {
  font-size: 14px;
  font-weight: 800;
  color: var(--pc-text);
  margin-bottom: 4px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-card-location {
  font-size: 11px;
  color: var(--pc-text-muted);
  font-weight: 600;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-card-location i { color: var(--pc-accent); font-size: 10px; }

.site-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  border-top: 1px dashed var(--pc-border-light);
  font-size: 10.5px;
  color: var(--pc-text-muted);
  font-weight: 700;
}

.site-card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.site-card-meta i { font-size: 10px; color: var(--pc-accent); }

/* ============================================================ */
/* 6. RECENT OBSERVATION CARDS                                   */
/* ============================================================ */
.obs-feed {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.obs-card {
  background: var(--pc-card);
  border-radius: 16px;
  padding: 14px;
  border: 1px solid var(--pc-border-light);
  display: flex;
  gap: 12px;
  cursor: pointer;
  transition: all 0.22s ease;
  text-align: left;
  font-family: inherit;
  width: 100%;
  box-shadow: var(--pc-shadow-sm);
}

.obs-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--pc-shadow-md);
  border-color: var(--pc-accent);
}

.obs-thumb {
  width: 76px;
  height: 76px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--pc-paper);
  position: relative;
}

.obs-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.obs-thumb.no-photo {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--pc-accent-soft), var(--pc-primary-light));
  color: var(--pc-accent);
  font-size: 24px;
}

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

.obs-site-name {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--pc-accent);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.obs-site-name i { font-size: 10px; }

.obs-note {
  font-size: 12.5px;
  color: var(--pc-text-2);
  line-height: 1.45;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.obs-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 10.5px;
  color: var(--pc-text-muted);
  font-weight: 600;
  flex-wrap: wrap;
}

.obs-footer-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.obs-footer-item i { font-size: 10px; color: var(--pc-accent); }

.obs-indicator {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 7px;
  border-radius: 20px;
  font-size: 9.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.2px;
}

.obs-indicator.ind-excellent { background: var(--pc-success-soft); color: var(--pc-success); }
.obs-indicator.ind-good      { background: #DCFCE7; color: #16A34A; }
.obs-indicator.ind-moderate  { background: var(--pc-warning-soft); color: var(--pc-warning); }
.obs-indicator.ind-poor      { background: #FFEDD5; color: #EA580C; }
.obs-indicator.ind-critical  { background: var(--pc-danger-soft); color: var(--pc-danger); }

body.dark-mode .obs-indicator.ind-good { background: #14532D; color: #86EFAC; }
body.dark-mode .obs-indicator.ind-poor { background: #7C2D12; color: #FDBA74; }

/* ============================================================ */
/* 7. COMMUNITY ACTION CARDS (FIXED — badges/titles/points)      */
/* ============================================================ */
.action-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 2px 12px;
  margin: 0 -2px;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.action-scroll::-webkit-scrollbar { display: none; }

.action-card {
  position: relative;
  min-width: 240px;
  max-width: 240px;
  flex-shrink: 0;
  border-radius: 18px;
  overflow: hidden;
  background: var(--pc-card);
  border: 1px solid var(--pc-border-light);
  box-shadow: var(--pc-shadow-sm);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  scroll-snap-align: start;
  text-align: left;
  font-family: inherit;
  padding: 0;
}

.action-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--pc-shadow-md);
}

.action-card-img {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--pc-paper);
}

.action-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.action-card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(6, 30, 42, 0.75) 100%);
  pointer-events: none;
  z-index: 1;
}

/* ⭐ Badge — top-left, clamped width */
.action-card-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 9px;
  border-radius: 20px;
  font-size: 9px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.25);
  max-width: calc(100% - 90px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.action-card-badge i {
  font-size: 9px;
  flex-shrink: 0;
}

/* ⭐ Points — top-right, always full */
.action-card-points {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 4px 9px;
  border-radius: 20px;
  font-size: 9.5px;
  font-weight: 800;
  color: #fff;
  background: rgba(251, 191, 36, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  white-space: nowrap;
  flex-shrink: 0;
}

.action-card-points i {
  font-size: 9px;
}

/* ============================================================ */
/* ACTION CARD — Title Overlay Fix                               */
/* ============================================================ */
.action-card-title-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 12px 10px;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.85) 0%,
    rgba(0, 0, 0, 0.5) 60%,
    transparent 100%
  );
  border-radius: 0 0 16px 16px;
  z-index: 2;
}

.action-card-title-overlay p {
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  margin: 0;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
  max-height: 2.6em;
}

.action-card-body {
  padding: 12px 14px;
}

.action-card-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--pc-text-muted);
  gap: 6px;
}

.action-card-meta-row span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.action-card-meta-row i { color: var(--pc-accent); font-size: 10px; }

/* ============================================================ */
/* 8. TIP CARD                                                   */
/* ============================================================ */
.tip-card {
  background: linear-gradient(135deg, var(--pc-warning-soft), #FFF7E6);
  border: 1.5px dashed var(--pc-warning);
  border-radius: var(--pc-radius);
  padding: 16px;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}

.tip-card::before {
  content: '\f0eb';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  right: 12px;
  top: 8px;
  font-size: 42px;
  color: var(--pc-warning);
  opacity: 0.15;
  pointer-events: none;
}

.tip-label {
  font-size: 10.5px;
  font-weight: 800;
  color: var(--pc-warning);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.tip-text {
  font-size: 13.5px;
  color: var(--pc-text);
  line-height: 1.55;
  font-weight: 500;
  padding-right: 40px;
}

/* ============================================================ */
/* 9. SITE HEALTH SNAPSHOT                                       */
/* ============================================================ */
.health-snapshot {
  background: var(--pc-card);
  border-radius: var(--pc-radius);
  padding: 16px;
  margin-bottom: 16px;
  border: 1px solid var(--pc-border-light);
  box-shadow: var(--pc-shadow-sm);
}

.health-snapshot-title {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--pc-text);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.health-snapshot-title i {
  color: var(--pc-accent);
  font-size: 14px;
}

.health-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--pc-border-light);
}

.health-row:last-child { border-bottom: none; }

.health-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--pc-accent-soft);
  color: var(--pc-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

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

.health-label {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--pc-text);
  margin-bottom: 2px;
}

.health-value-text {
  font-size: 11px;
  color: var(--pc-text-muted);
  font-weight: 600;
}

.health-bars {
  display: flex;
  gap: 3px;
  flex-shrink: 0;
}

.health-bar {
  width: 8px;
  height: 18px;
  border-radius: 3px;
  background: var(--pc-border-light);
}

.health-bar.filled { background: var(--pc-accent); }
.health-bar.filled.good { background: var(--aq-good); }
.health-bar.filled.moderate { background: var(--aq-moderate); }
.health-bar.filled.poor { background: var(--aq-poor); }

/* ============================================================ */
/* 10. LOADING + EMPTY                                           */
/* ============================================================ */
.loading-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--pc-text-muted);
}

.loading-state .spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--pc-border-light);
  border-top-color: var(--pc-accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 12px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ============================================================ */
/* 11. SITE FILTER CHIPS (My Waters page)                        */
/* ============================================================ */
.site-filter-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0 14px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.site-filter-chips::-webkit-scrollbar { display: none; }

.site-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 50px;
  background: var(--pc-card);
  color: var(--pc-text-2);
  border: 1.5px solid var(--pc-border-light);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.22s ease;
  font-family: inherit;
  flex-shrink: 0;
}

.site-filter-chip i { font-size: 11px; }

.site-filter-chip:hover {
  background: var(--pc-accent-soft);
  border-color: var(--pc-accent);
}

.site-filter-chip.active {
  background: var(--pc-accent);
  color: #fff;
  border-color: var(--pc-accent);
  box-shadow: 0 4px 10px rgba(8, 145, 178, 0.3);
}

/* ============================================================ */
/* 12. SITES LIST FULL (My Waters page)                          */
/* ============================================================ */
.sites-list-full {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.site-list-card {
  display: flex;
  flex-direction: column;
  background: var(--pc-card);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--pc-border-light);
  box-shadow: var(--pc-shadow-sm);
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: inherit;
  text-align: left;
  padding: 0;
}

.site-list-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--pc-shadow-md);
  border-color: var(--pc-accent);
}

.site-list-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--pc-paper);
}

.site-list-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.site-list-card:hover .site-list-cover img { transform: scale(1.04); }

.site-list-body { padding: 16px; }

.site-list-top {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}

.site-list-name {
  font-size: 15.5px;
  font-weight: 800;
  color: var(--pc-text);
  margin-bottom: 3px;
  line-height: 1.2;
}

.site-list-location {
  font-size: 11.5px;
  color: var(--pc-text-muted);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-list-location i { color: var(--pc-accent); font-size: 10px; }

.site-list-health-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  border: 1px solid;
  flex-shrink: 0;
  white-space: nowrap;
}

.site-list-desc {
  font-size: 12.5px;
  color: var(--pc-text-2);
  line-height: 1.5;
  margin-bottom: 12px;
}

.site-list-footer {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 10px;
  border-top: 1px dashed var(--pc-border-light);
  font-size: 11.5px;
  color: var(--pc-text-muted);
  font-weight: 700;
}

.site-list-stat {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.site-list-stat i { font-size: 11px; color: var(--pc-accent); }

/* ============================================================ */
/* 13. SITE DETAIL COVER HERO (FULL-BLEED)                       */
/* ============================================================ */
.site-detail-cover-wrap {
  margin: -12px calc(var(--pc-page-padding) * -1) 0;
  padding: 0;
  position: relative;
}

.site-detail-cover {
  position: relative;
  width: 100%;
  height: 280px;
  overflow: hidden;
  background: var(--pc-paper);
}

.site-detail-cover > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.site-detail-cover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(6, 30, 42, 0.05) 0%,
    rgba(6, 30, 42, 0.15) 40%,
    rgba(6, 30, 42, 0.85) 100%
  );
  pointer-events: none;
  z-index: 1;
}

.site-detail-back,
.site-detail-share {
  position: absolute;
  top: 16px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: #0C2D3E;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 3;
}

.site-detail-back { left: 16px; }
.site-detail-share { right: 16px; }

.site-detail-back:hover,
.site-detail-share:hover {
  transform: scale(1.08);
  background: #fff;
}

/* ⭐ Cover title — pinned bottom, sequential layout */
.site-detail-cover-title {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 20px 20px 22px;
  z-index: 2;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}

.site-detail-cover-title .site-card-type-badge {
  position: relative;
  top: auto;
  left: auto;
  display: inline-flex;
  align-self: flex-start;
  background: rgba(34, 211, 238, 0.92);
  color: #062A38;
  border: 1px solid rgba(255, 255, 255, 0.35);
  font-weight: 900;
  font-size: 9.5px;
  margin: 0;
}

.site-detail-name {
  font-size: 1.75rem;
  font-weight: 800;
  color: #fff;
  margin: 0;
  line-height: 1.15;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
  width: 100%;
  word-break: break-word;
}

.site-detail-loc {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
  margin: 0;
}

.site-detail-loc i { font-size: 12px; }

/* ============================================================ */
/* 14. SITE DETAIL STATS                                         */
/* ============================================================ */
.site-detail-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 16px 0;
}

.site-detail-stat {
  background: var(--pc-card);
  border-radius: 14px;
  padding: 12px 6px;
  text-align: center;
  border: 1px solid var(--pc-border-light);
}

.site-detail-stat-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  margin: 0 auto 6px;
}

.site-detail-stat-value {
  font-size: 14px;
  font-weight: 800;
  color: var(--pc-text);
  line-height: 1.1;
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: capitalize;
}

.site-detail-stat-label {
  font-size: 9px;
  font-weight: 700;
  color: var(--pc-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ============================================================ */
/* 15. SITE DETAIL TABS (FIXED — scrollable, no text cut)        */
/* ============================================================ */
.site-detail-tabs {
  display: flex;
  gap: 6px;
  padding: 6px;
  background: var(--pc-card);
  border-radius: 50px;
  margin-bottom: 16px;
  box-shadow: var(--pc-shadow-sm);
  border: 1px solid var(--pc-border-light);
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.site-detail-tabs::-webkit-scrollbar { display: none; }

.site-detail-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 50px;
  background: transparent;
  border: none;
  color: var(--pc-text-2);
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.22s ease;
  font-family: inherit;
  flex-shrink: 0;
}

.site-detail-tab i { font-size: 12px; }
.site-detail-tab:hover { color: var(--pc-text); }

.site-detail-tab.active {
  background: var(--pc-accent);
  color: #fff;
  box-shadow: 0 4px 12px rgba(8, 145, 178, 0.3);
}

/* ============================================================ */
/* 16. SITE CHART CARD                                           */
/* ============================================================ */
.site-chart-card {
  background: var(--pc-card);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 14px;
  border: 1px solid var(--pc-border-light);
  box-shadow: var(--pc-shadow-sm);
}

.site-chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  gap: 10px;
}

.site-chart-header h3 {
  font-size: 14px;
  font-weight: 800;
  color: var(--pc-text);
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.site-chart-header h3 i { color: var(--pc-accent); font-size: 14px; }

.site-chart-sub {
  font-size: 11px;
  color: var(--pc-text-muted);
  font-weight: 600;
}

/* ============================================================ */
/* 17. SITE ABOUT                                                */
/* ============================================================ */
.site-about-card {
  background: var(--pc-card);
  border-radius: 16px;
  padding: 18px;
  border: 1px solid var(--pc-border-light);
  box-shadow: var(--pc-shadow-sm);
}

.site-about-desc {
  font-size: 13.5px;
  color: var(--pc-text-2);
  line-height: 1.65;
  margin-bottom: 18px;
}

.site-about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.site-about-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px;
  background: var(--pc-paper);
  border-radius: 12px;
}

.site-about-item > i {
  color: var(--pc-accent);
  font-size: 14px;
  margin-top: 2px;
  flex-shrink: 0;
  width: 16px;
  text-align: center;
}

.site-about-key {
  font-size: 10px;
  font-weight: 800;
  color: var(--pc-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 3px;
}

.site-about-val {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--pc-text);
}

.site-about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 14px;
  border-top: 1px dashed var(--pc-border-light);
}

.site-tag {
  padding: 5px 12px;
  border-radius: 50px;
  background: var(--pc-accent-soft);
  color: var(--pc-accent);
  font-size: 11px;
  font-weight: 700;
}

/* ============================================================ */
/* 18. WILDLIFE LIST                                             */
/* ============================================================ */
.wildlife-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wildlife-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--pc-card);
  border-radius: 14px;
  border: 1px solid var(--pc-border-light);
}

.wildlife-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--pc-accent-soft);
  color: var(--pc-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

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

.wildlife-name {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--pc-text);
  margin-bottom: 2px;
}

.wildlife-count {
  font-size: 11.5px;
  color: var(--pc-text-muted);
  font-weight: 600;
}

/* ============================================================ */
/* 19. SITE OBSERVE CTA                                          */
/* ============================================================ */
.site-observe-cta {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  background: linear-gradient(135deg, var(--pc-accent), var(--pc-primary));
  color: #fff;
  border: none;
  border-radius: 16px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: inherit;
  box-shadow: 0 6px 20px rgba(8, 145, 178, 0.35);
  margin-top: 20px;
}

.site-observe-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(8, 145, 178, 0.5);
}

.site-observe-cta i { font-size: 18px; }

/* ============================================================ */
/* 20. OBSERVE MODAL                                             */
/* ============================================================ */
#observationModal .modal-content {
  max-width: 520px;
  padding: 0;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
}

.observe-progress-wrap {
  padding: 20px 22px 14px;
  border-bottom: 1px solid var(--pc-border-light);
  background: var(--pc-card);
  flex-shrink: 0;
}

.observe-progress-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  gap: 10px;
}

.observe-step-label {
  font-size: 11px;
  font-weight: 800;
  color: var(--pc-accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.observe-step-title {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--pc-text);
}

.observe-progress-bar {
  height: 6px;
  background: var(--pc-paper);
  border-radius: 20px;
  overflow: hidden;
}

.observe-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--pc-accent), var(--pc-primary));
  border-radius: 20px;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.observe-body {
  padding: 20px 22px 22px;
  overflow-y: auto;
  flex: 1;
}

.observe-site-context {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: var(--pc-paper);
  border-radius: 14px;
  margin-bottom: 20px;
}

.observe-site-context img {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}

.observe-site-label {
  font-size: 10px;
  font-weight: 800;
  color: var(--pc-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 2px;
}

.observe-site-name {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--pc-text);
}

.observe-change-site {
  padding: 6px 12px;
  border-radius: 50px;
  background: var(--pc-card);
  border: 1.5px solid var(--pc-border);
  color: var(--pc-accent);
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
  flex-shrink: 0;
  margin-left: auto;
}

.observe-question {
  font-size: 15px;
  font-weight: 800;
  color: var(--pc-text);
  margin-bottom: 12px;
  line-height: 1.35;
}

.observe-hint {
  font-size: 12px;
  color: var(--pc-text-muted);
  font-weight: 600;
  margin-top: -8px;
  margin-bottom: 12px;
  font-style: italic;
}

.observe-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.observe-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--pc-paper);
  border: 2px solid transparent;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.22s ease;
  font-family: inherit;
  text-align: left;
  width: 100%;
}

.observe-option:hover {
  background: var(--pc-card);
  border-color: var(--pc-border);
  transform: translateX(3px);
}

.observe-option.selected {
  background: var(--pc-accent-soft);
  border-color: var(--pc-accent);
}

.observe-option-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

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

.observe-option-label {
  font-size: 14px;
  font-weight: 800;
  color: var(--pc-text);
  margin-bottom: 2px;
}

.observe-option-sub {
  font-size: 11.5px;
  color: var(--pc-text-muted);
  font-weight: 600;
  line-height: 1.35;
}

.observe-option-check {
  font-size: 18px;
  color: var(--pc-text-muted);
  flex-shrink: 0;
  transition: color 0.2s ease;
}

.observe-option.selected .observe-option-check {
  color: var(--pc-accent);
}

.observe-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.observe-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 50px;
  background: var(--pc-paper);
  border: 1.5px solid transparent;
  color: var(--pc-text-2);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.observe-chip:hover {
  background: var(--pc-accent-soft);
}

.observe-chip.active {
  background: var(--pc-accent);
  color: #fff;
  border-color: var(--pc-accent);
  box-shadow: 0 4px 10px rgba(8, 145, 178, 0.3);
}

.observe-wildlife-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.observe-wildlife-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 6px;
  background: var(--pc-paper);
  border: 2px solid transparent;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.22s ease;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--pc-text-2);
  text-align: center;
  line-height: 1.2;
}

.observe-wildlife-item i {
  font-size: 20px;
  color: var(--pc-accent);
}

.observe-wildlife-item:hover {
  background: var(--pc-card);
  border-color: var(--pc-border);
}

.observe-wildlife-item.active {
  background: var(--pc-accent-soft);
  border-color: var(--pc-accent);
  color: var(--pc-accent);
}

.observe-photo-upload {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 28px 16px;
  background: var(--pc-paper);
  border: 2px dashed var(--pc-border);
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.22s ease;
  color: var(--pc-text-muted);
  text-align: center;
  min-height: 130px;
  position: relative;
  overflow: hidden;
}

.observe-photo-upload:hover {
  background: var(--pc-accent-soft);
  border-color: var(--pc-accent);
  color: var(--pc-accent);
}

.observe-photo-upload i { font-size: 28px; }
.observe-photo-upload p { font-size: 13px; font-weight: 700; }
.observe-photo-upload span { font-size: 11px; }

.observe-photo-upload.has-photo {
  padding: 0;
  border-style: solid;
  border-color: var(--pc-accent);
}

.observe-photo-upload.has-photo img {
  width: 100%;
  height: auto;
  max-height: 240px;
  object-fit: cover;
  display: block;
}

.observe-photo-remove {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(6, 30, 42, 0.85);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
}

.observe-advanced-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.observe-advanced-grid > div > label {
  font-size: 11px;
  font-weight: 800;
  color: var(--pc-text-2);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 6px;
  display: block;
}

.observe-advanced-grid > div > input {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid var(--pc-border-light);
  border-radius: 10px;
  background: var(--pc-paper);
  font-size: 13px;
  font-family: inherit;
  color: var(--pc-text);
}

#observeNote {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--pc-border-light);
  border-radius: 12px;
  background: var(--pc-paper);
  font-size: 13.5px;
  font-family: inherit;
  color: var(--pc-text);
  resize: vertical;
  min-height: 80px;
}

#observeNote:focus,
.observe-advanced-grid > div > input:focus {
  outline: none;
  border-color: var(--pc-accent);
  background: var(--pc-card);
  box-shadow: 0 0 0 4px rgba(8, 145, 178, 0.1);
}

.observe-review {
  background: var(--pc-paper);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 16px;
}

.observe-review-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--pc-text);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--pc-border);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.observe-review-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--pc-border-light);
}

.observe-review-row:last-child { border-bottom: none; }

.observe-review-label {
  font-size: 11.5px;
  font-weight: 800;
  color: var(--pc-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  flex-shrink: 0;
}

.observe-review-value {
  font-size: 13px;
  font-weight: 700;
  color: var(--pc-text);
  text-align: right;
}

.observe-reward-preview {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: linear-gradient(135deg, var(--pc-warning-soft), #FFF7E6);
  border: 1.5px dashed var(--pc-warning);
  border-radius: 14px;
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--pc-text);
  font-weight: 600;
}

.observe-reward-preview i {
  color: var(--pc-warning);
  font-size: 18px;
}

.observe-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--pc-border-light);
}

.observe-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 50px;
  font-size: 13.5px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.22s ease;
  font-family: inherit;
  border: none;
  white-space: nowrap;
}

.observe-btn-primary {
  background: var(--pc-accent);
  color: #fff;
  box-shadow: 0 4px 14px rgba(8, 145, 178, 0.3);
  flex: 1;
}

.observe-btn-primary:hover:not(.disabled) {
  background: var(--pc-accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(8, 145, 178, 0.4);
}

.observe-btn-primary.disabled,
.observe-btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}

.observe-btn-ghost {
  background: transparent;
  border: 1.5px solid var(--pc-border);
  color: var(--pc-text-2);
  flex: 0 0 auto;
}

.observe-btn-ghost:hover {
  background: var(--pc-paper);
  border-color: var(--pc-text-muted);
}

.observe-site-pick {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  background: var(--pc-paper);
  border-radius: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.22s ease;
  font-family: inherit;
  text-align: left;
  width: 100%;
}

.observe-site-pick:hover {
  background: var(--pc-card);
  border-color: var(--pc-accent);
}

.observe-site-pick img {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}

.observe-site-pick-name {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--pc-text);
  margin-bottom: 2px;
}

.observe-site-pick-loc {
  font-size: 11px;
  color: var(--pc-text-muted);
  font-weight: 600;
}

.observe-tip {
  display: flex;
  gap: 10px;
  padding: 12px 14px;
  background: var(--pc-warning-soft);
  border-left: 3px solid var(--pc-warning);
  border-radius: 10px;
  margin-top: 16px;
  font-size: 12.5px;
  color: var(--pc-text-2);
  line-height: 1.5;
}

.observe-tip i {
  color: var(--pc-warning);
  font-size: 14px;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ============================================================ */
/* 21. BADGE GRID                                                */
/* ============================================================ */
.badge-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.badge-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}

.badge-item.locked { opacity: 0.4; filter: grayscale(1); }

.badge-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: transform 0.22s ease;
}

.badge-item.earned:hover .badge-icon { transform: scale(1.1); }

.badge-label {
  font-size: 9.5px;
  font-weight: 800;
  color: var(--pc-text);
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.2px;
}

/* ============================================================ */
/* 22. RESPONSIVE                                                */
/* ============================================================ */
@media (max-width: 640px) {
  .explore-hero-inner {
    flex-direction: row;
    align-items: center;
  }

  .explore-greeting { font-size: 1.7rem; }
  .explore-illustration { width: 110px; height: 110px; }
  .explore-cta { padding: 10px 16px; font-size: 12px; }
  .explore-sub { font-size: 12.5px; }

  .quick-stat-value { font-size: 15px; }
  .quick-stat-label { font-size: 9px; }
  .quick-stat-icon { font-size: 16px; }

  .site-card { min-width: 200px; max-width: 200px; }
  .action-card { min-width: 220px; max-width: 220px; }

  .site-detail-cover { height: 240px; }
  .site-detail-name { font-size: 1.4rem; }
  .site-detail-cover-title { padding: 16px 16px 18px; }
  .site-detail-stat-value { font-size: 12.5px; }
  .site-detail-stat-label { font-size: 8.5px; }

  .observe-wildlife-grid { grid-template-columns: repeat(3, 1fr); }
  .badge-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 480px) {
  .explore-illustration { width: 90px; height: 90px; }
  .explore-greeting { font-size: 1.5rem; }
  .explore-sub { 
    font-size: 12px;
    line-height: 1.4;
    margin-bottom: 10px;
  }

  .quick-stats { gap: 6px; }
  .quick-stat { padding: 10px 4px; }
  .quick-stat-value { font-size: 14px; }

  .site-card { min-width: 180px; max-width: 180px; }
  .action-card { min-width: 200px; max-width: 200px; }

  .obs-thumb { width: 64px; height: 64px; }

  .site-detail-cover { height: 220px; }
  .site-detail-name { font-size: 1.25rem; }
  .site-detail-cover-title { padding: 14px 14px 16px; }
  .site-detail-stat-icon { width: 30px; height: 30px; font-size: 12px; }
  .site-detail-stat-value { font-size: 12px; }
  .observe-advanced-grid { grid-template-columns: 1fr 1fr; }
  .observe-option { padding: 10px 12px; }
  .observe-option-icon { width: 36px; height: 36px; font-size: 14px; }
  .observe-option-label { font-size: 13px; }
}

/* ============================================================ */
/* 23. PHASE 5 — FEED / WATER STORIES                            */
/* ============================================================ */
.feed-hero {
  background: linear-gradient(135deg, var(--pc-card) 0%, var(--pc-paper) 100%);
  border-radius: var(--pc-radius);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: var(--pc-shadow-md);
  position: relative;
  overflow: hidden;
  min-height: 110px;
}

.feed-hero::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.15), transparent 70%);
  pointer-events: none;
}

.feed-hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.feed-hero-title {
  font-family: 'Caveat', cursive;
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--pc-text);
  margin-bottom: 4px;
  line-height: 1.1;
}

.feed-hero-sub {
  font-size: 13px;
  color: var(--pc-text-2);
  line-height: 1.4;
}

.feed-hero-illust {
  flex-shrink: 0;
  width: 100px;
  height: 80px;
  border-radius: 16px;
  overflow: hidden;
}

.feed-hero-illust img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Composer */
.story-composer {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 16px;
  background: var(--pc-card);
  border: 1.5px solid var(--pc-border-light);
  border-radius: 50px;
  margin-bottom: 14px;
  cursor: pointer;
  transition: all 0.22s ease;
  font-family: inherit;
  text-align: left;
  box-shadow: var(--pc-shadow-sm);
}

.story-composer:hover {
  border-color: var(--pc-accent);
  box-shadow: var(--pc-shadow-md);
  transform: translateY(-1px);
}

.story-composer-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FFD966, #FF9B50);
  color: #2F3A5F;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 800;
  flex-shrink: 0;
  overflow: hidden;
}

.story-composer-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.story-composer-avatar.guest {
  background: linear-gradient(135deg, #E8D9BF, #C9A961);
  color: #6B5443;
}

.story-composer-text {
  flex: 1;
  font-size: 13.5px;
  color: var(--pc-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.story-composer-icon {
  color: var(--pc-accent);
  font-size: 16px;
  flex-shrink: 0;
}

/* Filters */
.feed-filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0 14px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.feed-filters::-webkit-scrollbar { display: none; }

.feed-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 50px;
  background: var(--pc-card);
  color: var(--pc-text-2);
  border: 1.5px solid var(--pc-border-light);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.22s ease;
  font-family: inherit;
  flex-shrink: 0;
}

.feed-filter-chip i { font-size: 10px; }

.feed-filter-chip:hover {
  background: var(--pc-accent-soft);
  border-color: var(--pc-accent);
}

.feed-filter-chip.active {
  background: var(--pc-accent);
  color: #fff;
  border-color: var(--pc-accent);
  box-shadow: 0 4px 10px rgba(8, 145, 178, 0.3);
}

/* Feed */
.story-feed {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-bottom: 20px;
}

.story-card {
  background: var(--pc-card);
  border-radius: 18px;
  padding: 16px;
  box-shadow: var(--pc-shadow-sm);
  border: 1px solid var(--pc-border-light);
  transition: box-shadow 0.25s ease;
}

.story-card:hover { box-shadow: var(--pc-shadow-md); }

.story-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.story-author-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #fff;
  font-size: 16px;
  flex-shrink: 0;
  overflow: hidden;
  border: 2px solid var(--pc-card);
  background: linear-gradient(135deg, #FFD966, #FF9B50);
  color: #2F3A5F;
}

.story-author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-author-avatar.vet {
  background: linear-gradient(135deg, #10B981, #059669);
  color: #fff;
}

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

.story-author-name {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--pc-text);
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 3px;
}

.story-author-name i {
  color: var(--pc-success);
  font-size: 11px;
}

.story-author-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--pc-text-muted);
  flex-wrap: wrap;
}

.story-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 9.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.story-menu {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: transparent;
  border: none;
  color: var(--pc-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.story-menu:hover {
  background: var(--pc-paper);
  color: var(--pc-text);
}

.story-body { margin-bottom: 12px; }

.story-title {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--pc-text);
  margin-bottom: 6px;
  line-height: 1.3;
}

.story-content {
  font-size: 13.5px;
  color: var(--pc-text-2);
  line-height: 1.55;
  white-space: pre-line;
}

.story-image {
  width: 100%;
  max-height: 400px;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 12px;
  background: var(--pc-paper);
  cursor: pointer;
}

.story-image img {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.story-image:hover img { transform: scale(1.02); }

.story-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-top: 10px;
  border-top: 1px solid var(--pc-border-light);
}

.story-action-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 6px;
  background: transparent;
  border: none;
  color: var(--pc-text-2);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  border-radius: 10px;
  transition: all 0.2s ease;
  font-family: inherit;
}

.story-action-btn i { font-size: 14px; }

.story-action-btn:hover {
  background: var(--pc-paper);
  color: var(--pc-text);
}

.story-action-btn.liked { color: var(--pc-danger); }
.story-action-btn.liked i { animation: heartPop 0.35s ease; }

@keyframes heartPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.35); }
  100% { transform: scale(1); }
}

/* Composer modal */
.composer-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--pc-paper);
  border-radius: 14px;
  margin-bottom: 16px;
}

.composer-author-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #FFD966, #FF9B50);
  color: #2F3A5F;
  font-weight: 800;
  font-size: 16px;
  flex-shrink: 0;
}

.composer-author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.composer-author-name {
  font-size: 14px;
  font-weight: 800;
  color: var(--pc-text);
  margin-bottom: 2px;
}

.composer-author-sub {
  font-size: 11.5px;
  color: var(--pc-text-muted);
  font-weight: 600;
}

.composer-photo-upload {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 24px 16px;
  background: var(--pc-paper);
  border: 2px dashed var(--pc-border);
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.22s ease;
  color: var(--pc-text-muted);
  text-align: center;
  min-height: 120px;
  position: relative;
  overflow: hidden;
}

.composer-photo-upload:hover {
  background: var(--pc-accent-soft);
  border-color: var(--pc-accent);
  color: var(--pc-accent);
}

.composer-photo-upload i { font-size: 24px; }
.composer-photo-upload p { font-size: 13px; font-weight: 700; }
.composer-photo-upload span { font-size: 11px; }

.composer-photo-upload.has-photo {
  padding: 0;
  border-style: solid;
  border-color: var(--pc-accent);
}

.composer-photo-upload.has-photo img {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  display: block;
}

.composer-photo-remove {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(6, 30, 42, 0.85);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Story detail modal */
.story-detail-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--pc-border-light);
}

.story-author-meta-simple {
  font-size: 11.5px;
  color: var(--pc-text-muted);
}

.story-detail-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--pc-text);
  margin-bottom: 8px;
  line-height: 1.3;
}

.story-detail-content {
  font-size: 14px;
  color: var(--pc-text-2);
  line-height: 1.65;
  white-space: pre-line;
  margin-bottom: 14px;
}

.story-detail-image {
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 14px;
  background: var(--pc-paper);
}

.story-detail-image img {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: cover;
  display: block;
}

.story-site-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--pc-accent-soft);
  color: var(--pc-accent);
  border: none;
  border-radius: 50px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  margin-bottom: 14px;
  transition: all 0.2s ease;
}

.story-site-tag:hover {
  background: var(--pc-accent);
  color: #fff;
}

.story-detail-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 0;
  border-top: 1px solid var(--pc-border-light);
  border-bottom: 1px solid var(--pc-border-light);
}

.story-detail-comments { margin-top: 14px; }

.story-detail-comments-title {
  font-size: 12px;
  font-weight: 800;
  color: var(--pc-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.story-detail-comment {
  display: flex;
  gap: 10px;
  padding: 8px 0;
}

.story-detail-comment-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FFD966, #FF9B50);
  color: #2F3A5F;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  flex-shrink: 0;
}

.story-detail-comment-name {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--pc-text);
  margin-bottom: 3px;
}

.story-detail-comment-text {
  font-size: 12.5px;
  color: var(--pc-text-2);
  line-height: 1.5;
}

/* Comments modal */
#commentModal .modal-content {
  display: flex;
  flex-direction: column;
  max-height: 80vh;
  padding-bottom: 0;
}

.comment-list {
  flex: 1;
  overflow-y: auto;
  padding: 4px 0 12px;
  min-height: 100px;
}

.comment-item {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--pc-border-light);
}

.comment-item:last-child { border-bottom: none; }

.comment-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FFD966, #FF9B50);
  color: #2F3A5F;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  flex-shrink: 0;
  overflow: hidden;
}

.comment-avatar.vet {
  background: linear-gradient(135deg, #10B981, #059669);
  color: #fff;
}

.comment-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.comment-body { flex: 1; min-width: 0; }

.comment-author {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--pc-text);
  margin-bottom: 4px;
}

.comment-text {
  font-size: 13px;
  color: var(--pc-text-2);
  line-height: 1.5;
  margin-bottom: 4px;
  word-wrap: break-word;
}

.comment-time {
  font-size: 10.5px;
  color: var(--pc-text-muted);
  font-weight: 600;
}

.comment-form {
  display: flex;
  gap: 8px;
  padding: 12px 0 16px;
  border-top: 1px solid var(--pc-border-light);
  background: var(--pc-card);
  position: sticky;
  bottom: 0;
  margin-top: 12px;
}

.comment-form input {
  flex: 1;
  padding: 11px 16px;
  border: 1.5px solid var(--pc-border-light);
  border-radius: 50px;
  font-size: 13.5px;
  font-family: inherit;
  background: var(--pc-paper);
  color: var(--pc-text);
  outline: none;
  transition: all 0.2s ease;
}

.comment-form input:focus {
  border-color: var(--pc-accent);
  background: var(--pc-card);
}

.comment-form button {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--pc-accent);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.comment-form button:hover {
  background: var(--pc-accent-hover);
  transform: scale(1.05);
}

/* ============================================================ */
/* 24. PHASE 5 — MAP PAGE                                        */
/* ============================================================ */
.map-page {
  position: relative;
  width: 100%;
  height: calc(100vh - var(--pc-topnav-height) - var(--pc-bottomnav-height));
  margin: -12px calc(var(--pc-page-padding) * -1) 0;
  overflow: hidden;
}

.map-controls {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  z-index: 400;
  display: flex;
  gap: 8px;
  align-items: center;
}

.map-filters {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 6px;
  border-radius: 50px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  flex: 1;
  min-width: 0;
}

.map-filters::-webkit-scrollbar { display: none; }

.map-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 14px;
  border-radius: 50px;
  background: transparent;
  border: none;
  color: var(--pc-text-2);
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.22s ease;
  font-family: inherit;
  flex-shrink: 0;
}

.map-filter-chip i { font-size: 10px; }

.map-filter-chip.active {
  background: var(--pc-accent);
  color: #fff;
  box-shadow: 0 3px 10px rgba(8, 145, 178, 0.3);
}

.map-locate-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  border: none;
  color: var(--pc-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(12px);
  flex-shrink: 0;
  transition: all 0.22s ease;
}

.map-locate-btn:hover {
  background: #fff;
  transform: scale(1.08);
}

.map-stats-bar {
  position: absolute;
  top: 68px;
  left: 12px;
  right: 12px;
  z-index: 400;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  padding: 8px 12px;
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.map-stats-bar::-webkit-scrollbar { display: none; }

.map-stat {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  color: var(--pc-text-2);
  white-space: nowrap;
  padding-right: 10px;
  border-right: 1px solid var(--pc-border);
}

.map-stat:last-child {
  padding-right: 0;
  border-right: none;
}

.aqua-map {
  width: 100%;
  height: 100%;
  z-index: 1;
}

.map-legend-toggle {
  position: absolute;
  bottom: 90px;
  right: 12px;
  z-index: 400;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  border: none;
  color: var(--pc-text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(12px);
}

.map-legend {
  position: absolute;
  bottom: 140px;
  right: 12px;
  z-index: 400;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  padding: 14px;
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  display: none;
  min-width: 160px;
}

.map-legend.active { display: block; }

.map-legend-title {
  font-size: 11px;
  font-weight: 800;
  color: var(--pc-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.map-legend-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--pc-text-2);
  font-weight: 600;
  padding: 5px 0;
}

.map-legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

@keyframes markerPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 4px 14px rgba(239, 68, 68, 0.5); }
  50% { transform: scale(1.1); box-shadow: 0 6px 20px rgba(239, 68, 68, 0.7); }
}

/* Leaflet popup overrides */
.aqua-map-popup .leaflet-popup-content-wrapper {
  border-radius: 14px;
  padding: 4px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.aqua-map-popup .leaflet-popup-content {
  margin: 8px 10px;
}

.aqua-map-popup .leaflet-popup-tip {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* ============================================================ */
/* 25. PHASE 5 — REPORT FLOW                                     */
/* ============================================================ */
#reportModal .modal-content {
  max-width: 520px;
  padding: 0;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
}

.report-progress-wrap {
  padding: 20px 22px 14px;
  border-bottom: 1px solid var(--pc-border-light);
  background: var(--pc-card);
  flex-shrink: 0;
}

.report-progress-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  gap: 10px;
}

.report-step-label {
  font-size: 11px;
  font-weight: 800;
  color: var(--pc-danger);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.report-step-title {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--pc-text);
}

.report-progress-bar {
  height: 6px;
  background: var(--pc-paper);
  border-radius: 20px;
  overflow: hidden;
}

.report-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--pc-danger), #F59E0B);
  border-radius: 20px;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.report-body {
  padding: 20px 22px 22px;
  overflow-y: auto;
  flex: 1;
}

.report-question {
  font-size: 15px;
  font-weight: 800;
  color: var(--pc-text);
  margin-bottom: 12px;
  line-height: 1.35;
}

.report-hint {
  font-size: 12px;
  color: var(--pc-text-muted);
  font-weight: 600;
  margin-top: -8px;
  margin-bottom: 14px;
  font-style: italic;
}

.report-types-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.report-type-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 10px;
  background: var(--pc-paper);
  border: 2px solid transparent;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.22s ease;
  font-family: inherit;
  text-align: center;
}

.report-type-card:hover {
  background: var(--pc-card);
  border-color: var(--pc-border);
  transform: translateY(-2px);
}

.report-type-card.selected {
  background: var(--pc-accent-soft);
  border-color: var(--pc-accent);
}

.report-type-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.report-type-label {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--pc-text);
  line-height: 1.2;
}

.report-type-desc {
  font-size: 10.5px;
  color: var(--pc-text-muted);
  line-height: 1.3;
  font-weight: 600;
}

#reportDescription {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--pc-border-light);
  border-radius: 12px;
  background: var(--pc-paper);
  font-size: 13.5px;
  font-family: inherit;
  color: var(--pc-text);
  resize: vertical;
  min-height: 100px;
}

#reportDescription:focus {
  outline: none;
  border-color: var(--pc-accent);
  background: var(--pc-card);
  box-shadow: 0 0 0 4px rgba(8, 145, 178, 0.1);
}

.report-photo-upload {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 24px 16px;
  background: var(--pc-paper);
  border: 2px dashed var(--pc-border);
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.22s ease;
  color: var(--pc-text-muted);
  text-align: center;
  min-height: 120px;
  position: relative;
  overflow: hidden;
}

.report-photo-upload:hover {
  background: var(--pc-accent-soft);
  border-color: var(--pc-accent);
  color: var(--pc-accent);
}

.report-photo-upload i { font-size: 24px; }
.report-photo-upload p { font-size: 13px; font-weight: 700; }
.report-photo-upload span { font-size: 11px; }

.report-photo-upload.has-photo {
  padding: 0;
  border-style: solid;
  border-color: var(--pc-accent);
}

.report-photo-upload.has-photo img {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  display: block;
}

.report-photo-remove {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(6, 30, 42, 0.85);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.report-site-picker {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.report-site-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  background: var(--pc-paper);
  border: 2px solid transparent;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.22s ease;
  font-family: inherit;
  text-align: left;
  width: 100%;
}

.report-site-option:hover {
  background: var(--pc-card);
  border-color: var(--pc-border);
}

.report-site-option.selected {
  background: var(--pc-accent-soft);
  border-color: var(--pc-accent);
}

.report-site-option img {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}

.report-site-option > div { flex: 1; min-width: 0; }

.report-site-name {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--pc-text);
  margin-bottom: 2px;
}

.report-site-loc {
  font-size: 11px;
  color: var(--pc-text-muted);
  font-weight: 600;
}

.report-site-check {
  color: var(--pc-accent);
  font-size: 18px;
  flex-shrink: 0;
}

.report-urgency-note {
  display: flex;
  gap: 10px;
  padding: 12px 14px;
  background: var(--pc-info-soft);
  border-left: 3px solid var(--pc-info);
  border-radius: 10px;
  font-size: 12px;
  color: var(--pc-text-2);
  line-height: 1.5;
}

.report-urgency-note i {
  color: var(--pc-info);
  font-size: 14px;
  flex-shrink: 0;
  margin-top: 2px;
}

.report-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--pc-border-light);
}

/* ============================================================ */
/* 26. PHASE 5 — MY REPORTS + REPORT DETAIL                      */
/* ============================================================ */
.report-list-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  background: var(--pc-card);
  border-radius: 16px;
  border: 1px solid var(--pc-border-light);
  box-shadow: var(--pc-shadow-sm);
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: inherit;
  text-align: left;
  width: 100%;
  margin-bottom: 12px;
}

.report-list-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--pc-shadow-md);
  border-color: var(--pc-accent);
}

.report-list-header {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.report-list-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

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

.report-list-top {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.report-list-type {
  font-size: 14px;
  font-weight: 800;
  color: var(--pc-text);
}

.report-list-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 9.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.report-list-site {
  font-size: 11.5px;
  color: var(--pc-text-muted);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

.report-list-site i { color: var(--pc-accent); font-size: 10px; }

.report-list-desc {
  font-size: 12.5px;
  color: var(--pc-text-2);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.report-list-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px dashed var(--pc-border-light);
  font-size: 11px;
  color: var(--pc-text-muted);
  font-weight: 700;
  flex-wrap: wrap;
}

.report-list-footer span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.report-list-footer i { color: var(--pc-accent); font-size: 10px; }

/* Detail modal */
.report-detail-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border-radius: 16px;
  color: #fff;
  margin-bottom: 16px;
}

.report-detail-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
}

.report-detail-type {
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 3px;
}

.report-detail-loc {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
}

.report-detail-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  border: 1.5px solid;
  margin: 0 auto 8px;
  width: fit-content;
}

.report-detail-photo {
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 16px;
  background: var(--pc-paper);
}

.report-detail-photo img {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
  display: block;
}

.report-detail-description {
  padding: 14px;
  background: var(--pc-paper);
  border-left: 3px solid var(--pc-danger);
  border-radius: 10px;
  margin-bottom: 16px;
}

.report-detail-description p {
  font-size: 13.5px;
  color: var(--pc-text);
  line-height: 1.6;
  margin: 0;
}

.report-detail-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 14px;
  background: var(--pc-paper);
  border-radius: 12px;
  margin-bottom: 18px;
}

.report-detail-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--pc-text-2);
  font-weight: 600;
}

.report-detail-meta-row i {
  color: var(--pc-accent);
  font-size: 12px;
  width: 14px;
  text-align: center;
  flex-shrink: 0;
}

.report-timeline {
  margin-bottom: 18px;
}

.report-timeline-title {
  font-size: 12px;
  font-weight: 800;
  color: var(--pc-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.report-timeline-item {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  position: relative;
}

.report-timeline-item::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 40px;
  bottom: -10px;
  width: 2px;
  background: var(--pc-border-light);
}

.report-timeline-item:last-child::before { display: none; }

.report-timeline-item.done::before { background: var(--pc-success); }

.report-timeline-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--pc-paper);
  color: var(--pc-text-muted);
  border: 2px solid var(--pc-border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
  z-index: 1;
}

.report-timeline-item.done .report-timeline-dot {
  background: var(--pc-success);
  color: #fff;
  border-color: var(--pc-success);
}

.report-timeline-item.current .report-timeline-dot {
  background: var(--pc-accent);
  color: #fff;
  border-color: var(--pc-accent);
  animation: reportPulse 1.5s ease-in-out infinite;
}

@keyframes reportPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(8, 145, 178, 0.5); }
  50% { box-shadow: 0 0 0 8px rgba(8, 145, 178, 0); }
}

.report-timeline-info { flex: 1; padding-top: 5px; }

.report-timeline-label {
  font-size: 13px;
  font-weight: 800;
  color: var(--pc-text);
  margin-bottom: 2px;
}

.report-timeline-item.done .report-timeline-label { color: var(--pc-success); }
.report-timeline-item.current .report-timeline-label { color: var(--pc-accent); }

.report-timeline-time {
  font-size: 11px;
  color: var(--pc-text-muted);
  font-weight: 600;
}

.report-detail-actions {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.report-resolved-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  background: var(--pc-success-soft);
  color: var(--pc-success);
  border-radius: 14px;
  font-size: 13.5px;
  font-weight: 800;
}

/* ============================================================ */
/* 27. PHASE 5 — ACTIONS LIST FULL                               */
/* ============================================================ */
.actions-list-full {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.action-list-card {
  display: flex;
  flex-direction: column;
  background: var(--pc-card);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--pc-border-light);
  box-shadow: var(--pc-shadow-sm);
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: inherit;
  text-align: left;
  padding: 0;
}

.action-list-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--pc-shadow-md);
  border-color: var(--pc-accent);
}

.action-list-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--pc-paper);
}

.action-list-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.action-list-card:hover .action-list-cover img { transform: scale(1.04); }

.action-joined-badge {
  position: absolute;
  bottom: 10px;
  left: 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: 20px;
  background: rgba(16, 185, 129, 0.95);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  backdrop-filter: blur(8px);
  z-index: 2;
}

.action-list-body { padding: 16px; }

.action-list-title {
  font-size: 15.5px;
  font-weight: 800;
  color: var(--pc-text);
  margin-bottom: 6px;
  line-height: 1.25;
}

.action-list-desc {
  font-size: 12.5px;
  color: var(--pc-text-2);
  line-height: 1.5;
  margin-bottom: 10px;
}

.action-list-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.action-list-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  color: var(--pc-text-muted);
  font-weight: 700;
}

.action-list-meta-item i {
  color: var(--pc-accent);
  font-size: 10px;
}

.action-list-progress { padding-top: 10px; border-top: 1px dashed var(--pc-border-light); }

.action-list-progress-header {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 700;
  color: var(--pc-text-muted);
  margin-bottom: 6px;
}

.action-list-progress-header span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.action-list-progress-bar {
  height: 6px;
  background: var(--pc-border-light);
  border-radius: 20px;
  overflow: hidden;
}

.action-list-progress-fill {
  height: 100%;
  border-radius: 20px;
  transition: width 0.4s ease;
}

/* Action detail modal */
.action-detail-hero {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 16px;
  background: var(--pc-paper);
}

.action-detail-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.action-detail-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--pc-text);
  margin-bottom: 10px;
  line-height: 1.2;
}

.action-detail-host {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: var(--pc-paper);
  border-radius: 12px;
  font-size: 12.5px;
  color: var(--pc-text-2);
  margin-bottom: 14px;
}

.action-detail-host i {
  color: var(--pc-accent);
  font-size: 14px;
}

.action-detail-host strong {
  color: var(--pc-text);
  font-weight: 800;
}

.action-detail-desc {
  font-size: 13.5px;
  color: var(--pc-text-2);
  line-height: 1.6;
  margin-bottom: 16px;
}

.action-detail-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.action-detail-info-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  background: var(--pc-paper);
  border-radius: 12px;
}

.action-detail-info-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.action-detail-info-label {
  font-size: 10px;
  font-weight: 800;
  color: var(--pc-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 3px;
}

.action-detail-info-value {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--pc-text);
  line-height: 1.3;
}

.action-detail-progress-card {
  padding: 14px;
  background: var(--pc-paper);
  border-radius: 14px;
  margin-bottom: 16px;
}

.action-detail-progress-header {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 800;
  color: var(--pc-text);
  margin-bottom: 8px;
}

.action-detail-progress-header span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.action-detail-progress-bar {
  height: 8px;
  background: var(--pc-border-light);
  border-radius: 20px;
  overflow: hidden;
}

.action-detail-progress-fill {
  height: 100%;
  border-radius: 20px;
  transition: width 0.4s ease;
}

.action-join-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px;
  background: var(--pc-accent);
  color: #fff;
  border: none;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.22s ease;
  font-family: inherit;
  box-shadow: 0 4px 14px rgba(8, 145, 178, 0.3);
}

.action-join-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(8, 145, 178, 0.4);
}

.action-join-btn.joined {
  background: var(--pc-success-soft);
  color: var(--pc-success);
  box-shadow: none;
}

.action-join-btn i { font-size: 16px; }

/* ============================================================ */
/* 28. RESPONSIVE — PHASE 5                                      */
/* ============================================================ */
@media (max-width: 640px) {
  .report-types-grid { gap: 8px; }
  .report-type-card { padding: 12px 8px; }
  .report-type-icon { width: 38px; height: 38px; font-size: 15px; }
  .report-type-label { font-size: 11.5px; }
  .report-type-desc { font-size: 10px; }

  .action-detail-info-grid { grid-template-columns: 1fr; }

  .map-stats-bar { top: 62px; }
}

@media (max-width: 480px) {
  .story-card { padding: 14px; }
  .story-author-avatar { width: 38px; height: 38px; font-size: 14px; }
  .story-title { font-size: 13.5px; }
  .story-content { font-size: 13px; }
  .story-action-btn { font-size: 11.5px; }
  .story-action-btn i { font-size: 13px; }

  .map-filters { padding: 4px; }
  .map-filter-chip { padding: 6px 10px; font-size: 10.5px; }

  .report-list-icon { width: 40px; height: 40px; font-size: 17px; }
}

/* ============================================================ */
/* 29. PHASE 6 — LEARN PAGE                                      */
/* ============================================================ */
.learn-cat-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0 14px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.learn-cat-chips::-webkit-scrollbar { display: none; }

.learn-cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 50px;
  background: var(--pc-card);
  color: var(--pc-text-2);
  border: 1.5px solid var(--pc-border-light);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.22s ease;
  font-family: inherit;
  flex-shrink: 0;
}

.learn-cat-chip i { font-size: 10px; }

.learn-cat-chip:hover {
  background: var(--pc-accent-soft);
  border-color: var(--pc-accent);
}

.learn-cat-chip.active {
  background: var(--pc-accent);
  color: #fff;
  border-color: var(--pc-accent);
  box-shadow: 0 4px 10px rgba(8, 145, 178, 0.3);
}

.learn-topics-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.learn-topic-card {
  display: flex;
  gap: 14px;
  padding: 14px;
  background: var(--pc-card);
  border-radius: 16px;
  border: 1px solid var(--pc-border-light);
  box-shadow: var(--pc-shadow-sm);
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: inherit;
  text-align: left;
  width: 100%;
  align-items: flex-start;
}

.learn-topic-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--pc-shadow-md);
  border-color: var(--pc-accent);
}

.learn-topic-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

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

.learn-topic-top {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.learn-topic-cat {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 800;
  color: var(--pc-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.learn-topic-cat i { font-size: 9px; }

.learn-topic-level {
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.learn-topic-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--pc-text);
  margin-bottom: 4px;
  line-height: 1.3;
}

.learn-topic-summary {
  font-size: 12px;
  color: var(--pc-text-2);
  line-height: 1.45;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.learn-topic-meta {
  font-size: 10.5px;
  color: var(--pc-text-muted);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.learn-topic-meta i { font-size: 10px; }

.learn-topic-arrow {
  color: var(--pc-text-muted);
  font-size: 13px;
  flex-shrink: 0;
  margin-top: 6px;
}

/* Learn detail modal */
.learn-detail-hero {
  padding: 22px 18px 18px;
  border-radius: 16px;
  margin-bottom: 16px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.learn-detail-icon {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin: 0 auto 14px;
  border: 3px solid var(--pc-card);
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.learn-detail-cat {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 10px;
}

.learn-detail-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--pc-text);
  margin-bottom: 6px;
  line-height: 1.2;
}

.learn-detail-sub {
  font-size: 12.5px;
  color: var(--pc-text-muted);
  font-weight: 600;
  margin-bottom: 12px;
  line-height: 1.4;
}

.learn-detail-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 11.5px;
  color: var(--pc-text-muted);
  font-weight: 600;
}

.learn-detail-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.learn-detail-summary {
  padding: 16px;
  background: var(--pc-paper);
  border-radius: 14px;
  margin-bottom: 18px;
}

.learn-detail-summary p {
  font-size: 13.5px;
  color: var(--pc-text-2);
  line-height: 1.65;
  margin: 0;
}

.learn-detail-section-title {
  font-size: 12px;
  font-weight: 800;
  color: var(--pc-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.learn-detail-section-title i {
  color: var(--pc-accent);
  font-size: 12px;
}

.learn-detail-points {
  list-style: none;
  padding: 0;
  margin-bottom: 18px;
}

.learn-detail-points li {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--pc-border-light);
  font-size: 13.5px;
  color: var(--pc-text-2);
  line-height: 1.5;
}

.learn-detail-points li:last-child { border-bottom: none; }

.learn-detail-points i {
  color: var(--pc-success);
  font-size: 13px;
  margin-top: 3px;
  flex-shrink: 0;
}

.learn-detail-action {
  display: flex;
  gap: 12px;
  padding: 14px;
  background: linear-gradient(135deg, var(--pc-accent-soft), var(--pc-primary-light));
  border-radius: 14px;
  border: 1.5px solid var(--pc-accent);
}

.learn-detail-action-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--pc-card);
  color: var(--pc-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.learn-detail-action-label {
  font-size: 10px;
  font-weight: 800;
  color: var(--pc-accent);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 3px;
}

.learn-detail-action-text {
  font-size: 12.5px;
  color: var(--pc-text);
  line-height: 1.45;
  font-weight: 600;
  margin: 0;
}

/* ============================================================ */
/* 30. PHASE 6 — EXPERTS PAGE                                    */
/* ============================================================ */
.experts-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.expert-card {
  display: flex;
  flex-direction: column;
  background: var(--pc-card);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--pc-border-light);
  box-shadow: var(--pc-shadow-sm);
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: inherit;
  text-align: left;
  padding: 0;
}

.expert-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--pc-shadow-md);
  border-color: var(--pc-accent);
}

.expert-card-cover {
  position: relative;
  width: 100%;
  height: 90px;
}

.expert-card-avatar {
  position: absolute;
  bottom: -32px;
  left: 50%;
  transform: translateX(-50%);
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--pc-paper);
  border: 4px solid var(--pc-card);
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

.expert-card-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.expert-verified-chip {
  position: absolute;
  top: 10px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 20px;
  background: rgba(16, 185, 129, 0.95);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  backdrop-filter: blur(8px);
}

.expert-availability {
  position: absolute;
  top: 10px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 20px;
  color: #fff;
  font-size: 9.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  backdrop-filter: blur(8px);
}

.expert-avail-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  animation: availPulse 1.5s ease-in-out infinite;
}

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

.expert-card-body {
  padding: 42px 16px 16px;
  text-align: center;
}

.expert-card-name {
  font-size: 15.5px;
  font-weight: 800;
  color: var(--pc-text);
  margin-bottom: 3px;
}

.expert-card-title {
  font-size: 12.5px;
  color: var(--pc-accent);
  font-weight: 700;
  margin-bottom: 6px;
}

.expert-card-loc {
  font-size: 11.5px;
  color: var(--pc-text-muted);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 12px;
}

.expert-card-loc i { font-size: 10px; color: var(--pc-accent); }

.expert-card-stats {
  display: flex;
  justify-content: center;
  gap: 18px;
  padding: 12px 0;
  border-top: 1px dashed var(--pc-border-light);
  border-bottom: 1px dashed var(--pc-border-light);
  margin-bottom: 12px;
}

.expert-stat {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 800;
  color: var(--pc-text);
}

.expert-stat i { font-size: 12px; }

.expert-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: center;
}

.expert-card-tag {
  padding: 4px 10px;
  border-radius: 20px;
  background: var(--pc-paper);
  color: var(--pc-text-2);
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2px;
}

/* Expert detail modal */
.expert-detail-header {
  position: relative;
  text-align: center;
  padding: 8px 0 16px;
}

.expert-detail-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 14px;
  border: 4px solid var(--pc-card);
  box-shadow: 0 6px 20px rgba(8, 145, 178, 0.2);
  background: var(--pc-paper);
}

.expert-detail-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.expert-detail-verified {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 20px;
  background: rgba(16, 185, 129, 0.15);
  color: var(--pc-success);
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.expert-detail-verified i { font-size: 11px; }

.expert-detail-name {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--pc-text);
  text-align: center;
  margin-bottom: 4px;
}

.expert-detail-title {
  font-size: 13px;
  color: var(--pc-accent);
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
}

.expert-detail-availability {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 800;
  margin: 0 auto 16px;
  width: fit-content;
}

.expert-detail-availability i { font-size: 11px; }

.expert-detail-response {
  font-weight: 600;
  opacity: 0.8;
}

.expert-detail-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 18px;
}

.expert-detail-stat {
  background: var(--pc-paper);
  border-radius: 12px;
  padding: 12px 8px;
  text-align: center;
}

.expert-detail-stat-value {
  font-size: 17px;
  font-weight: 800;
  color: var(--pc-text);
  line-height: 1.1;
  margin-bottom: 3px;
}

.expert-detail-stat-label {
  font-size: 9.5px;
  font-weight: 800;
  color: var(--pc-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.expert-detail-section { margin-bottom: 18px; }

.expert-detail-section-title {
  font-size: 11.5px;
  font-weight: 800;
  color: var(--pc-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.expert-detail-section-title i {
  color: var(--pc-accent);
  font-size: 12px;
}

.expert-detail-bio {
  font-size: 13.5px;
  color: var(--pc-text-2);
  line-height: 1.6;
  margin: 0;
}

.expert-detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.expert-detail-tag {
  padding: 5px 12px;
  border-radius: 50px;
  background: var(--pc-accent-soft);
  color: var(--pc-accent);
  font-size: 11.5px;
  font-weight: 700;
}

.expert-detail-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.expert-detail-list li {
  display: flex;
  gap: 10px;
  padding: 8px 0;
  font-size: 13px;
  color: var(--pc-text-2);
  line-height: 1.45;
  border-bottom: 1px dashed var(--pc-border-light);
}

.expert-detail-list li:last-child { border-bottom: none; }

.expert-detail-list i {
  color: var(--pc-success);
  font-size: 13px;
  margin-top: 2px;
  flex-shrink: 0;
}

.expert-detail-location {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  background: var(--pc-paper);
  border-radius: 12px;
  font-size: 13px;
  color: var(--pc-text-2);
  font-weight: 600;
  margin-bottom: 18px;
}

.expert-detail-location i {
  color: var(--pc-accent);
  font-size: 14px;
}

.expert-detail-actions {
  display: flex;
  gap: 10px;
}

/* ============================================================ */
/* 31. PHASE 6 — IMPACT / PROFILE EXTRAS                         */
/* ============================================================ */
.impact-level-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.impact-level-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
  border: 3px solid var(--pc-card);
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}

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

.impact-level-name {
  font-size: 15px;
  font-weight: 800;
  color: var(--pc-text);
  margin-bottom: 3px;
}

.impact-level-points {
  font-size: 12px;
  color: var(--pc-text-muted);
  font-weight: 700;
}

.impact-next { text-align: right; flex-shrink: 0; }

.impact-next-label {
  font-size: 9px;
  font-weight: 800;
  color: var(--pc-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 2px;
}

.impact-next-value {
  font-size: 14px;
  font-weight: 800;
  color: var(--pc-text);
}

.impact-progress-bar {
  height: 8px;
  background: var(--pc-border-light);
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 8px;
}

.impact-progress-fill {
  height: 100%;
  border-radius: 20px;
  transition: width 0.5s ease;
}

.impact-progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  font-weight: 800;
  color: var(--pc-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 16px;
}

.impact-stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding-top: 14px;
  border-top: 1px dashed var(--pc-border-light);
}

.impact-stat { text-align: center; }

.impact-stat-value {
  font-size: 16px;
  font-weight: 800;
  color: var(--pc-text);
  line-height: 1.1;
  margin-bottom: 3px;
}

.impact-stat-label {
  font-size: 9px;
  font-weight: 800;
  color: var(--pc-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.2px;
  line-height: 1.2;
}

/* Avatar grid picker */
.avatar-grid-picker {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-bottom: 8px;
}

.avatar-pick-item {
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  background: var(--pc-paper);
  border: 3px solid transparent;
  cursor: pointer;
  padding: 0;
  transition: all 0.22s ease;
  position: relative;
}

.avatar-pick-item:hover {
  transform: scale(1.08);
  border-color: var(--pc-accent);
}

.avatar-pick-item.active {
  border-color: var(--pc-accent);
  box-shadow: 0 0 0 4px rgba(8, 145, 178, 0.2);
}

.avatar-pick-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Cover grid picker */
.cover-grid-picker {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.cover-pick-item {
  aspect-ratio: 16/9;
  border-radius: 12px;
  overflow: hidden;
  background: var(--pc-paper);
  border: 2px solid transparent;
  cursor: pointer;
  padding: 0;
  transition: all 0.22s ease;
}

.cover-pick-item:hover {
  transform: scale(1.03);
  border-color: var(--pc-accent);
}

.cover-pick-item.active {
  border-color: var(--pc-accent);
  border-width: 3px;
  box-shadow: 0 0 0 4px rgba(8, 145, 178, 0.15);
}

.cover-pick-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* mp-count-badge */
.mp-count-badge {
  font-size: 11px;
  font-weight: 800;
  color: var(--pc-accent);
  background: var(--pc-accent-soft);
  padding: 3px 10px;
  border-radius: 20px;
}

/* ============================================================ */
/* 32. RESPONSIVE — PHASE 6                                      */
/* ============================================================ */
@media (max-width: 640px) {
  .learn-topic-icon { width: 42px; height: 42px; font-size: 18px; }
  .learn-topic-title { font-size: 13.5px; }

  .expert-card-avatar { width: 62px; height: 62px; }
  .expert-card-body { padding: 36px 14px 14px; }
  .expert-card-name { font-size: 14.5px; }

  .impact-stat-row { grid-template-columns: repeat(2, 1fr); gap: 14px 8px; }
  .avatar-grid-picker { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 480px) {
  .learn-detail-title { font-size: 1.15rem; }
  .expert-detail-avatar { width: 84px; height: 84px; }
  .expert-detail-name { font-size: 1.2rem; }
}

/* ============================================================ */
/* 33. PHASE 7 — OBSERVATION DETAIL MODAL                        */
/* ============================================================ */
.obs-detail-photo {
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 16px;
  background: var(--pc-paper);
}

.obs-detail-photo img {
  width: 100%;
  height: auto;
  max-height: 300px;
  object-fit: cover;
  display: block;
}

.obs-detail-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.obs-detail-reporter {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.obs-detail-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, #FFD966, #FF9B50);
  color: #2F3A5F;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  flex-shrink: 0;
  border: 2px solid var(--pc-card);
}

.obs-detail-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.obs-detail-reporter-name {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--pc-text);
  margin-bottom: 2px;
}

.obs-detail-time {
  font-size: 11.5px;
  color: var(--pc-text-muted);
  font-weight: 600;
}

.obs-detail-site-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  background: var(--pc-accent-soft);
  color: var(--pc-accent);
  border: none;
  border-radius: 50px;
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.obs-detail-site-chip:hover {
  background: var(--pc-accent);
  color: #fff;
}

.obs-detail-indicators {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 18px;
}

.obs-detail-indicator {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--pc-paper);
  border-radius: 12px;
}

.obs-detail-indicator-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}

.obs-detail-indicator-label {
  font-size: 9.5px;
  font-weight: 800;
  color: var(--pc-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 3px;
}

.obs-detail-indicator-value {
  font-size: 13px;
  font-weight: 800;
  color: var(--pc-text);
}

.obs-detail-section {
  padding: 14px;
  background: var(--pc-paper);
  border-radius: 14px;
  margin-bottom: 14px;
}

.obs-detail-section-title {
  font-size: 11.5px;
  font-weight: 800;
  color: var(--pc-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.obs-detail-section-title i {
  color: var(--pc-accent);
  font-size: 12px;
}

.obs-detail-wildlife-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.obs-detail-wildlife-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  background: var(--pc-card);
  color: var(--pc-accent);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
}

.obs-detail-wildlife-chip i { font-size: 11px; }

.obs-detail-advanced-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.obs-detail-advanced-item {
  background: var(--pc-card);
  padding: 10px;
  border-radius: 10px;
  text-align: center;
}

.obs-detail-advanced-label {
  font-size: 9.5px;
  font-weight: 800;
  color: var(--pc-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 4px;
}

.obs-detail-advanced-value {
  font-size: 15px;
  font-weight: 800;
  color: var(--pc-text);
}

.obs-detail-note {
  font-size: 13.5px;
  color: var(--pc-text-2);
  line-height: 1.6;
  margin: 0;
  white-space: pre-line;
}

.obs-detail-actions {
  display: flex;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--pc-border-light);
}

.obs-detail-action {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 8px;
  border-radius: 12px;
  background: var(--pc-paper);
  border: none;
  color: var(--pc-text-2);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.obs-detail-action:hover {
  background: var(--pc-accent-soft);
  color: var(--pc-accent);
}

.obs-detail-action i { font-size: 14px; }

.obs-detail-action-danger { color: var(--pc-danger); }
.obs-detail-action-danger:hover { background: var(--pc-danger-soft); color: var(--pc-danger); }

/* ============================================================ */
/* 34. PHASE 7 — NOTIFICATION LIST (full styling)                */
/* ============================================================ */
.notif-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}

.notif-item {
  display: flex;
  gap: 12px;
  padding: 12px;
  background: var(--pc-paper);
  border-radius: 12px;
  border-left: 3px solid var(--pc-border);
  transition: all 0.2s ease;
  cursor: pointer;
  align-items: flex-start;
}

.notif-item.unread {
  background: var(--pc-accent-soft);
  border-left-color: var(--pc-accent);
}

.notif-item:hover {
  transform: translateX(3px);
  background: var(--pc-card);
}

.notif-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  background: var(--pc-card);
  color: var(--pc-accent);
}

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

.notif-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--pc-text);
  margin-bottom: 3px;
  line-height: 1.3;
}

.notif-message {
  font-size: 12.5px;
  color: var(--pc-text-2);
  line-height: 1.45;
  margin-bottom: 5px;
}

.notif-time {
  font-size: 10.5px;
  color: var(--pc-text-muted);
  font-weight: 600;
}

/* ============================================================ */
/* 35. PHASE 7 — SEARCH OVERLAY                                  */
/* ============================================================ */
.search-overlay-backdrop {
  position: fixed;
  inset: 0;
  top: var(--pc-topnav-height);
  background: rgba(6, 30, 42, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 899;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.search-overlay-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.search-results-panel {
  position: fixed;
  top: var(--pc-topnav-height);
  left: 0;
  right: 0;
  max-height: calc(100vh - var(--pc-topnav-height) - 20px);
  background: var(--pc-card);
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  z-index: 900;
  overflow-y: auto;
  transform: translateY(-20px);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.25s ease;
  padding: 8px 0 16px;
}

.search-results-panel.active {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.search-section {
  padding: 8px 16px;
}

.search-section-label {
  font-size: 10.5px;
  font-weight: 800;
  color: var(--pc-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  padding: 4px 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s ease;
  font-family: inherit;
  text-align: left;
  width: 100%;
  border: none;
  background: transparent;
}

.search-result-item:hover {
  background: var(--pc-paper);
}

.search-result-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 15px;
  background: linear-gradient(135deg, #FFD966, #FF9B50);
  color: #2F3A5F;
}

.search-result-avatar.vet {
  background: linear-gradient(135deg, #10B981, #059669);
  color: #fff;
}

.search-result-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.search-result-thumb {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--pc-paper);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pc-accent);
  font-size: 16px;
}

.search-result-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.search-result-title {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--pc-text);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-result-sub {
  font-size: 11.5px;
  color: var(--pc-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
}

.search-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--pc-text-muted);
}

.search-empty i {
  font-size: 36px;
  opacity: 0.4;
  display: block;
  margin-bottom: 12px;
}

.search-empty p {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--pc-text);
}

.search-hints-row {
  display: flex;
  flex-wrap: wrap;
  padding: 4px 0 8px;
}

.search-hint-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--pc-paper);
  border: 1.5px solid var(--pc-border-light);
  border-radius: 50px;
  color: var(--pc-text-2);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  margin: 4px 6px 4px 0;
}

.search-hint-item:hover {
  background: var(--pc-accent-soft);
  border-color: var(--pc-accent);
  color: var(--pc-accent);
}

/* ============================================================ */
/* 36. PHASE 7 — BADGE GRID ENHANCED                             */
/* ============================================================ */
.badge-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.badge-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}

.badge-item.locked {
  opacity: 0.35;
  filter: grayscale(1);
}

.badge-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  transition: transform 0.22s ease;
  border: 2px solid transparent;
}

.badge-item.earned .badge-icon {
  border-color: var(--pc-card);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.badge-item.earned:hover .badge-icon {
  transform: scale(1.1) rotate(-5deg);
}

.badge-label {
  font-size: 9.5px;
  font-weight: 800;
  color: var(--pc-text);
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.2px;
}

/* ============================================================ */
/* 37. PHASE 7 — MODAL BASE IMPROVEMENTS                         */
/* ============================================================ */
#notifModal .modal-content {
  max-width: 520px;
}

#quickViewModal .modal-content {
  max-width: 480px;
}

#expertProfileModal .modal-content,
#learnArticleModal .modal-content,
#aboutModal .modal-content,
#editProfileModal .modal-content,
#storyModal .modal-content,
#loginModal .modal-content {
  max-width: 480px;
}

/* ============================================================ */
/* 38. DARK MODE — PHASE 7 ADJUSTMENTS                           */
/* ============================================================ */
body.dark-mode .notif-item {
  background: #241A14;
}

body.dark-mode .notif-item.unread {
  background: #0A2436;
}

body.dark-mode .notif-item:hover {
  background: #2A1F18;
}

body.dark-mode .search-results-panel {
  background: #1E293B;
}

body.dark-mode .search-result-item:hover {
  background: #0E2E40;
}

body.dark-mode .obs-detail-indicator,
body.dark-mode .obs-detail-section {
  background: #241A14;
}

body.dark-mode .obs-detail-wildlife-chip,
body.dark-mode .obs-detail-advanced-item {
  background: #0E2E40;
}

body.dark-mode .obs-detail-action {
  background: #241A14;
  color: #CBD5E1;
}

body.dark-mode .obs-detail-action:hover {
  background: #2D3E2D;
}

/* ============================================================ */
/* 39. PHASE 7 — RESPONSIVE                                      */
/* ============================================================ */
@media (max-width: 480px) {
  .obs-detail-indicators { gap: 6px; }
  .obs-detail-indicator { padding: 8px 10px; }
  .obs-detail-indicator-icon { width: 32px; height: 32px; font-size: 13px; }
  .obs-detail-indicator-value { font-size: 12px; }
  .obs-detail-advanced-grid { grid-template-columns: repeat(2, 1fr); }
  .badge-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ============================================================ */
/* 40. PHASE 8 — BACK HEADER                                     */
/* ============================================================ */
.page-back-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 4px 0 18px;
  margin-bottom: 4px;
}

.page-back-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--pc-card);
  border: 1.5px solid var(--pc-border-light);
  color: var(--pc-text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.22s ease;
  flex-shrink: 0;
  box-shadow: var(--pc-shadow-sm);
}

.page-back-btn:hover {
  background: var(--pc-accent);
  color: #fff;
  border-color: var(--pc-accent);
  transform: translateX(-2px);
  box-shadow: 0 4px 12px rgba(8, 145, 178, 0.3);
}

.page-back-btn:active {
  transform: translateX(-2px) scale(0.95);
}

.page-back-title-wrap { flex: 1; min-width: 0; }

.page-back-title {
  font-family: 'Caveat', cursive;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--pc-text);
  margin: 0;
  line-height: 1.1;
  letter-spacing: 0.3px;
}

.page-back-sub {
  font-size: 12.5px;
  color: var(--pc-text-muted);
  font-weight: 600;
  margin: 4px 0 0;
}

/* ============================================================ */
/* 41. PHASE 8 — AVATAR PICKER (Redesigned)                      */
/* ============================================================ */
.avatar-upload-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 24px 18px;
  background: linear-gradient(135deg, var(--pc-accent-soft), var(--pc-primary-light));
  border: 2px dashed var(--pc-accent);
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.22s ease;
  text-align: center;
  margin-bottom: 18px;
  position: relative;
  overflow: hidden;
}

.avatar-upload-zone::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.4), transparent 60%);
  pointer-events: none;
}

.avatar-upload-zone:hover {
  background: linear-gradient(135deg, var(--pc-accent), var(--pc-primary));
  border-color: var(--pc-accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(8, 145, 178, 0.25);
}

.avatar-upload-zone:hover .avatar-upload-zone-icon,
.avatar-upload-zone:hover .avatar-upload-zone-title,
.avatar-upload-zone:hover .avatar-upload-zone-hint {
  color: #fff;
}

.avatar-upload-zone-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  color: var(--pc-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  transition: all 0.22s ease;
  position: relative;
  z-index: 1;
  backdrop-filter: blur(8px);
}

.avatar-upload-zone-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--pc-text);
  margin: 0;
  position: relative;
  z-index: 1;
  transition: color 0.22s ease;
}

.avatar-upload-zone-hint {
  font-size: 11.5px;
  color: var(--pc-text-muted);
  font-weight: 600;
  position: relative;
  z-index: 1;
  transition: color 0.22s ease;
}

.avatar-picker-divider {
  text-align: center;
  font-size: 11.5px;
  font-weight: 800;
  color: var(--pc-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 4px 0 14px;
  position: relative;
}

.avatar-picker-divider::before,
.avatar-picker-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: calc(50% - 60px);
  height: 1px;
  background: var(--pc-border-light);
}

.avatar-picker-divider::before { left: 0; }
.avatar-picker-divider::after { right: 0; }

.avatar-grid-picker {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-bottom: 8px;
}

.avatar-pick-item {
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  background: var(--pc-paper);
  border: 3px solid transparent;
  cursor: pointer;
  padding: 0;
  transition: all 0.22s ease;
  position: relative;
}

.avatar-pick-item:hover {
  transform: scale(1.08);
  border-color: var(--pc-accent);
  box-shadow: 0 4px 14px rgba(8, 145, 178, 0.25);
}

.avatar-pick-item.active {
  border-color: var(--pc-accent);
  box-shadow: 0 0 0 4px rgba(8, 145, 178, 0.2);
}

.avatar-pick-item.active::after {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  bottom: -3px;
  right: -3px;
  width: 22px;
  height: 22px;
  background: var(--pc-accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  border: 2px solid var(--pc-card);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.avatar-pick-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ============================================================ */
/* 42. PHASE 8 — REPORT "NEW" BUTTON                             */
/* ============================================================ */
.report-new-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--pc-accent), var(--pc-primary));
  color: #fff;
  border: none;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.22s ease;
  font-family: inherit;
  margin-bottom: 16px;
  box-shadow: 0 6px 20px rgba(8, 145, 178, 0.3);
}

.report-new-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(8, 145, 178, 0.45);
}

.report-new-btn i { font-size: 16px; }

/* ============================================================ */
/* 43. PHASE 8 — MODAL SMOOTH TRANSITIONS                        */
/* ============================================================ */
.modal-content {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Ensure buttons inside modals are clickable */
.modal-content button,
.modal-content [onclick] {
  position: relative;
  z-index: 1;
}

/* Prevent modal double-tap zoom */
.modal-content * {
  -webkit-tap-highlight-color: transparent;
}

/* ============================================================ */
/* 44. PHASE 8 — RESPONSIVE                                      */
/* ============================================================ */
@media (max-width: 480px) {
  .page-back-title { font-size: 1.55rem; }
  .page-back-btn { width: 38px; height: 38px; font-size: 14px; }
  .avatar-grid-picker { grid-template-columns: repeat(4, 1fr); gap: 8px; }
}

/* ============================================================ */
/* 45. PHASE 9 — USER LOCATION MARKER                            */
/* ============================================================ */
@keyframes userPulse {
  0%, 100% {
    box-shadow: 0 0 0 8px rgba(8, 145, 178, 0.2),
                0 4px 14px rgba(0, 0, 0, 0.3);
  }
  50% {
    box-shadow: 0 0 0 16px rgba(8, 145, 178, 0),
                0 4px 14px rgba(0, 0, 0, 0.3);
  }
}

.user-location-marker {
  z-index: 1000 !important;
}

/* ============================================================ */
/* 46. PHASE 9 — FINAL MODAL POLISH                              */
/* ============================================================ */
.modal {
  -webkit-overflow-scrolling: touch;
}

.modal-content {
  overscroll-behavior: contain;
}

/* Prevent body scroll when modal open */
body.modal-open {
  overflow: hidden;
}

/* ============================================================ */
/* 47. PHASE 9 — LOADING STATE POLISH                            */
/* ============================================================ */
.aq-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 60px 20px;
  text-align: center;
}

.aq-loading-spinner {
  width: 42px;
  height: 42px;
  border: 3px solid var(--pc-border-light);
  border-top-color: var(--pc-accent);
  border-radius: 50%;
  animation: aqSpin 0.8s linear infinite;
}

@keyframes aqSpin {
  to { transform: rotate(360deg); }
}

.aq-loading-text {
  font-size: 13.5px;
  color: var(--pc-text-muted);
  font-weight: 600;
}

/* ============================================================ */
/* 48. PHASE 9 — TOAST IMPROVEMENTS                              */
/* ============================================================ */
.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
}

/* ============================================================ */
/* 49. PHASE 9 — FINAL SCROLLBAR POLISH                          */
/* ============================================================ */
.modal-content::-webkit-scrollbar {
  width: 5px;
}

.modal-content::-webkit-scrollbar-thumb {
  background: var(--pc-border);
  border-radius: 10px;
}

/* ============================================================ */
/* 50. PHASE 9 — ACCESSIBILITY FOCUS                             */
/* ============================================================ */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--pc-accent);
  outline-offset: 2px;
}

#notifModal .modal-content {
  position: relative;
}

#notifModal .close-modal {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
}

/* ============================================================ */
/* 51. MODAL CLOSE BUTTON — FIX for zero-padding modals          */
/* ============================================================ */

/* Ensure close button anchors correctly on all modals */
#observationModal .modal-content,
#reportModal .modal-content,
#storyModal .modal-content,
#learnArticleModal .modal-content,
#expertProfileModal .modal-content,
#notifModal .modal-content,
#quickViewModal .modal-content,
#editProfileModal .modal-content,
#aboutModal .modal-content,
#loginModal .modal-content {
  position: relative;
}

/* Observation modal — close button floats OVER progress bar */
#observationModal .close-modal,
#reportModal .close-modal {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  background: rgba(6, 30, 42, 0.06);
  border-radius: 50%;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pc-text-muted);
  font-size: 15px;
  transition: all 0.2s ease;
}

#observationModal .close-modal:hover,
#reportModal .close-modal:hover {
  background: var(--pc-danger-soft);
  color: var(--pc-danger);
  transform: scale(1.08);
}

/* Push the progress bar's title right so it doesn't collide */
#observationModal .observe-progress-header,
#reportModal .report-progress-header {
  padding-right: 44px;
}

/* Ensure learn article and expert modals have proper close button */
#learnArticleModal .close-modal,
#expertProfileModal .close-modal,
#notifModal .close-modal {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  background: rgba(6, 30, 42, 0.06);
  border-radius: 50%;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pc-text-muted);
  font-size: 15px;
  transition: all 0.2s ease;
}

#learnArticleModal .close-modal:hover,
#expertProfileModal .close-modal:hover,
#notifModal .close-modal:hover {
  background: var(--pc-danger-soft);
  color: var(--pc-danger);
  transform: scale(1.08);
}

/* Also — when modal has header image (learn), close needs white bg */
#learnArticleModal .learn-detail-hero ~ .close-modal {
  background: rgba(255, 255, 255, 0.95);
  color: #0C2D3E;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

body.dark-mode #observationModal .close-modal,
body.dark-mode #reportModal .close-modal,
body.dark-mode #learnArticleModal .close-modal,
body.dark-mode #expertProfileModal .close-modal,
body.dark-mode #notifModal .close-modal {
  background: rgba(255, 255, 255, 0.08);
  color: #A8D5E2;
}

body.dark-mode #observationModal .close-modal:hover,
body.dark-mode #reportModal .close-modal:hover {
  background: var(--pc-danger-soft);
  color: var(--pc-danger);
}

/* ============================================================ */
/* 54. COMMENT MODAL — RESPONSIVE (centered, not bottom-sheet)   */
/* ============================================================ */
@media (max-width: 480px) {
  #commentModal .modal-content {
    max-height: 88vh;
    margin: 0 auto;
    border-radius: var(--pc-radius);
  }

  #commentModal .modal-title {
    padding: 18px 18px 12px;
    font-size: 16px;
  }

  #commentModal .comment-list {
    padding: 12px 16px;
    max-height: calc(88vh - 170px);
  }

  #commentModal .comment-form {
    padding: 10px 14px 14px;
  }

  #commentModal .comment-avatar {
    width: 34px;
    height: 34px;
    font-size: 13px;
  }
}

/* ============================================================ */
/* 55. GLOBAL MODAL CLOSE BUTTON FIX — ALL MODALS                */
/* Final universal override — overrides everything above          */
/* ============================================================ */

/* ─────────────────────────────────────────────────────────────
   1. Ensure modal-content is positioning context for close btn
   ───────────────────────────────────────────────────────────── */
.modal-content {
  position: relative !important;
}

/* ─────────────────────────────────────────────────────────────
   2. UNIVERSAL close button style — works on every modal
   ───────────────────────────────────────────────────────────── */
.modal .close-modal,
.modal .close-modal:hover {
  position: absolute !important;
  top: 12px !important;
  right: 12px !important;
  left: auto !important;
  bottom: auto !important;
  transform: none !important;

  width: 34px !important;
  height: 34px !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  background: rgba(6, 30, 42, 0.08) !important;
  color: var(--pc-text) !important;
  border: none !important;
  border-radius: 50% !important;

  font-size: 15px !important;
  line-height: 1 !important;

  cursor: pointer !important;
  z-index: 999 !important;

  opacity: 0.85 !important;

  transition: background 0.2s ease, color 0.2s ease,
              transform 0.2s ease, opacity 0.2s ease !important;

  -webkit-tap-highlight-color: transparent !important;
}

.modal .close-modal:hover,
.modal .close-modal:active {
  background: var(--pc-danger-soft) !important;
  color: var(--pc-danger) !important;
  opacity: 1 !important;
  transform: scale(1.08) !important;
}

.modal .close-modal i {
  font-size: 15px !important;
  line-height: 1 !important;
  pointer-events: none !important;
}

/* ─────────────────────────────────────────────────────────────
   3. Observation + Report modals — close button overlaps progress
   ───────────────────────────────────────────────────────────── */
#observationModal .close-modal,
#reportModal .close-modal {
  top: 14px !important;
  right: 14px !important;
  background: rgba(6, 30, 42, 0.08) !important;
  color: var(--pc-text) !important;
  z-index: 100 !important;
}

/* Add right padding to progress headers so they don't collide */
#observationModal .observe-progress-header,
#reportModal .report-progress-header {
  padding-right: 46px !important;
}

/* ─────────────────────────────────────────────────────────────
   4. Comment modal — has own header padding
   ───────────────────────────────────────────────────────────── */
#commentModal .close-modal {
  top: 16px !important;
  right: 16px !important;
  background: transparent !important;
  color: var(--pc-text-muted) !important;
}

#commentModal .close-modal:hover {
  background: var(--pc-danger-soft) !important;
  color: var(--pc-danger) !important;
}

#commentModal .modal-title {
  padding-right: 50px !important;
}

/* ─────────────────────────────────────────────────────────────
   5. Story composer modal — has form padding
   ───────────────────────────────────────────────────────────── */
#storyModal .close-modal {
  top: 14px !important;
  right: 14px !important;
}

#storyModal .modal-title {
  padding-right: 50px !important;
}

/* ─────────────────────────────────────────────────────────────
   6. Learn article + Expert profile — may have hero images
   ───────────────────────────────────────────────────────────── */
#learnArticleModal .close-modal,
#expertProfileModal .close-modal {
  top: 14px !important;
  right: 14px !important;
  background: rgba(255, 255, 255, 0.95) !important;
  color: #0C2D3E !important;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15) !important;
  opacity: 1 !important;
}

#learnArticleModal .close-modal:hover,
#expertProfileModal .close-modal:hover {
  background: var(--pc-danger) !important;
  color: #fff !important;
  box-shadow: 0 4px 16px rgba(196, 90, 74, 0.4) !important;
}

/* ─────────────────────────────────────────────────────────────
   7. Notification modal — has header
   ───────────────────────────────────────────────────────────── */
#notifModal .close-modal {
  top: 16px !important;
  right: 16px !important;
  background: transparent !important;
  color: var(--pc-text-muted) !important;
}

#notifModal .close-modal:hover {
  background: var(--pc-danger-soft) !important;
  color: var(--pc-danger) !important;
}

#notifModal .modal-title {
  padding-right: 50px !important;
}

/* ─────────────────────────────────────────────────────────────
   8. QuickView modal (generic) — full width, has padding
   ───────────────────────────────────────────────────────────── */
#quickViewModal .close-modal {
  top: 14px !important;
  right: 14px !important;
}

/* ─────────────────────────────────────────────────────────────
   9. Login modal — has centered icon
   ───────────────────────────────────────────────────────────── */
#loginModal .close-modal {
  top: 16px !important;
  right: 16px !important;
}

/* ─────────────────────────────────────────────────────────────
   10. Generic modal-title — always pad-right so close button fits
   ───────────────────────────────────────────────────────────── */
.modal-title {
  padding-right: 50px !important;
}

/* ─────────────────────────────────────────────────────────────
   11. Prevent close button from being cut off by overflow: hidden
   ───────────────────────────────────────────────────────────── */
#observationModal .modal-content,
#reportModal .modal-content,
#commentModal .modal-content,
#storyModal .modal-content,
#learnArticleModal .modal-content,
#expertProfileModal .modal-content,
#notifModal .modal-content,
#quickViewModal .modal-content,
#loginModal .modal-content,
#editProfileModal .modal-content,
#aboutModal .modal-content {
  overflow: visible !important;
}

/* But re-apply scroll for content areas that need it */
#observationModal .observe-body,
#reportModal .report-body,
#commentModal .comment-list,
#notifModal .notif-list,
#quickViewModal .modal-content > *:not(.close-modal) {
  overflow-y: auto;
}

/* Re-apply border-radius clip only on the actual content wrapper */
#observationModal .modal-content::before,
#reportModal .modal-content::before,
#storyModal .modal-content::before,
#learnArticleModal .modal-content::before,
#expertProfileModal .modal-content::before,
#notifModal .modal-content::before,
#quickViewModal .modal-content::before,
#loginModal .modal-content::before,
#editProfileModal .modal-content::before,
#aboutModal .modal-content::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--pc-radius);
  pointer-events: none;
  z-index: -1;
  background: var(--pc-card);
}

/* ─────────────────────────────────────────────────────────────
   12. Dark mode universal
   ───────────────────────────────────────────────────────────── */
body.dark-mode .modal .close-modal {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #F8FAFC !important;
}

body.dark-mode .modal .close-modal:hover {
  background: rgba(248, 113, 113, 0.25) !important;
  color: #FCA5A5 !important;
}

body.dark-mode #learnArticleModal .close-modal,
body.dark-mode #expertProfileModal .close-modal {
  background: rgba(42, 31, 24, 0.95) !important;
  color: #F8FAFC !important;
}

body.dark-mode .modal-content::before {
  background: #2A1F18;
}

/* ─────────────────────────────────────────────────────────────
   13. Prevent double-tap zoom and accidental events
   ───────────────────────────────────────────────────────────── */
.modal .close-modal * {
  pointer-events: none !important;
  user-select: none !important;
  -webkit-user-select: none !important;
}

/* ============================================================ */
/* 56. CROSS BUTTON — FINAL OVERRIDE (universal)                 */
/* Position close button INSIDE padded area of every modal       */
/* ============================================================ */

/* ─────────────────────────────────────────────────────────────
   1. Remove the overflow:visible hack from Section 55
      that was breaking image corners
   ───────────────────────────────────────────────────────────── */
#observationModal .modal-content,
#reportModal .modal-content,
#commentModal .modal-content,
#storyModal .modal-content,
#learnArticleModal .modal-content,
#expertProfileModal .modal-content,
#notifModal .modal-content,
#quickViewModal .modal-content,
#loginModal .modal-content,
#editProfileModal .modal-content,
#aboutModal .modal-content {
  position: relative !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  max-height: 92vh !important;
  -webkit-overflow-scrolling: touch;
}

/* ─────────────────────────────────────────────────────────────
   2. Hero sections keep their OWN border-radius internally
   ───────────────────────────────────────────────────────────── */
.action-detail-hero-wrap,
.report-detail-header,
.learn-detail-hero,
.expert-detail-header,
.obs-detail-photo {
  border-radius: 14px;
  overflow: hidden;
}

/* ─────────────────────────────────────────────────────────────
   3. UNIVERSAL close button — always floats INSIDE modal
      Never on top of images. Always top-right with padding.
   ───────────────────────────────────────────────────────────── */
.modal .close-modal {
  position: absolute !important;
  top: 14px !important;
  right: 14px !important;

  width: 34px !important;
  height: 34px !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  background: rgba(255, 255, 255, 0.95) !important;
  color: #0C2D3E !important;

  border: none !important;
  border-radius: 50% !important;

  font-size: 15px !important;
  cursor: pointer !important;
  z-index: 9999 !important;

  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.18) !important;

  transition: all 0.2s ease !important;

  -webkit-tap-highlight-color: transparent !important;
}

.modal .close-modal:hover {
  background: var(--pc-danger) !important;
  color: #fff !important;
  transform: scale(1.08) !important;
}

.modal .close-modal i {
  font-size: 15px !important;
  pointer-events: none !important;
}

/* ─────────────────────────────────────────────────────────────
   4. Observation modal — close button on TOP of gradient bar
      But NOT on top of any image. Position adjusted for padding.
   ───────────────────────────────────────────────────────────── */
#observationModal .close-modal {
  top: 20px !important;
  right: 20px !important;
  background: rgba(6, 30, 42, 0.08) !important;
  color: var(--pc-text) !important;
  box-shadow: none !important;
}

#observationModal .close-modal:hover {
  background: var(--pc-danger) !important;
  color: #fff !important;
}

#observationModal .observe-progress-header {
  padding-right: 50px !important;
}

/* ─────────────────────────────────────────────────────────────
   5. Report modal — same as observation
   ───────────────────────────────────────────────────────────── */
#reportModal .close-modal {
  top: 20px !important;
  right: 20px !important;
  background: rgba(6, 30, 42, 0.08) !important;
  color: var(--pc-text) !important;
  box-shadow: none !important;
}

#reportModal .close-modal:hover {
  background: var(--pc-danger) !important;
  color: #fff !important;
}

#reportModal .report-progress-header {
  padding-right: 50px !important;
}

/* ─────────────────────────────────────────────────────────────
   6. Comment modal — top-right of header
   ───────────────────────────────────────────────────────────── */
#commentModal .close-modal {
  top: 18px !important;
  right: 18px !important;
  background: transparent !important;
  color: var(--pc-text-muted) !important;
  box-shadow: none !important;
}

#commentModal .close-modal:hover {
  background: var(--pc-danger-soft) !important;
  color: var(--pc-danger) !important;
}

#commentModal .modal-title {
  padding-right: 55px !important;
}

/* ─────────────────────────────────────────────────────────────
   7. Story composer modal
   ───────────────────────────────────────────────────────────── */
#storyModal .close-modal {
  top: 14px !important;
  right: 14px !important;
}

#storyModal .modal-title {
  padding-right: 50px !important;
}

/* ─────────────────────────────────────────────────────────────
   8. QuickView modal — used for actions, obs, reports, etc.
      Images inside use WRAPPER with own padding
   ───────────────────────────────────────────────────────────── */
#quickViewModal .modal-content {
  padding: 20px !important;
}

#quickViewModal .close-modal {
  top: 14px !important;
  right: 14px !important;
}

/* The action detail hero needs extra top padding so close btn
   floats ABOVE the image (in the modal-content padding area) */
#quickViewModal .action-detail-hero-wrap {
  margin-top: 0;
  margin-bottom: 14px;
}

/* ─────────────────────────────────────────────────────────────
   9. Login/About/EditProfile modals
   ───────────────────────────────────────────────────────────── */
#loginModal .close-modal,
#aboutModal .close-modal,
#editProfileModal .close-modal {
  top: 14px !important;
  right: 14px !important;
}

/* ─────────────────────────────────────────────────────────────
   10. DARK MODE
   ───────────────────────────────────────────────────────────── */
body.dark-mode .modal .close-modal {
  background: rgba(255, 255, 255, 0.15) !important;
  color: #F8FAFC !important;
}

body.dark-mode .modal .close-modal:hover {
  background: #F87171 !important;
  color: #450A0A !important;
}

body.dark-mode #observationModal .close-modal,
body.dark-mode #reportModal .close-modal {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #F8FAFC !important;
}

body.dark-mode #commentModal .close-modal {
  background: transparent !important;
}

body.dark-mode #commentModal .close-modal:hover {
  background: #450A0A !important;
  color: #FCA5A5 !important;
}

/* ============================================================ */
/* 57. SEARCH BAR — TEXT + ICON ALIGNMENT FIX                    */
/* ============================================================ */
.top-nav.search-mode .nav-search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  height: 44px;
}

.top-nav.search-mode .search-input-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  color: var(--pc-text-muted);
  pointer-events: none;
  z-index: 2;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
}

.top-nav.search-mode .nav-search-input {
  width: 100%;
  height: 44px;
  padding: 0 44px 0 42px;
  border: none;
  background: var(--pc-paper);
  border-radius: 50px;
  font-size: 14px;
  font-family: inherit;
  color: var(--pc-text);
  outline: none;
  line-height: 44px;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.top-nav.search-mode .nav-search-input::placeholder {
  color: var(--pc-placeholder);
  line-height: normal;
  vertical-align: middle;
}

.top-nav.search-mode .nav-search-clear {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--pc-border-light);
  border: none;
  color: var(--pc-text-muted);
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  line-height: 1;
  cursor: pointer;
  z-index: 3;
}

.top-nav.search-mode .nav-search-clear.visible {
  display: flex;
}

/* Also fix global search bar (non-search-mode hidden by default) */
.nav-search-input-wrap {
  position: relative;
}

/* ============================================================ */
/* 58. ACTION JOIN FLOW — complete styles                        */
/* ============================================================ */
.join-flow-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border-radius: 16px;
  color: #fff;
  margin-bottom: 14px;
}

.join-flow-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
}

.join-flow-step {
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 3px;
}

.join-flow-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  margin: 0;
}

.join-flow-progress {
  height: 5px;
  background: var(--pc-border-light);
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 18px;
}

.join-flow-progress-fill {
  height: 100%;
  border-radius: 20px;
  transition: width 0.4s ease;
}

.join-flow-body {
  padding: 0 4px 4px;
}

.join-flow-question {
  font-size: 15px;
  font-weight: 800;
  color: var(--pc-text);
  margin-bottom: 14px;
  line-height: 1.35;
}

.join-flow-hint {
  font-size: 12.5px;
  color: var(--pc-text-muted);
  margin-bottom: 16px;
  font-weight: 600;
  line-height: 1.5;
}

.join-flow-info {
  background: var(--pc-paper);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.join-flow-info-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--pc-text-2);
  font-weight: 600;
}

.join-flow-info-row i {
  color: var(--pc-accent);
  font-size: 14px;
  width: 16px;
  text-align: center;
  flex-shrink: 0;
}

.join-flow-commitment {
  display: flex;
  gap: 10px;
  padding: 12px 14px;
  background: var(--pc-warning-soft);
  border-left: 3px solid var(--pc-warning);
  border-radius: 10px;
  margin-bottom: 18px;
}

.join-flow-commitment i {
  color: var(--pc-warning);
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 2px;
}

.join-flow-commitment p {
  font-size: 12.5px;
  color: var(--pc-text-2);
  line-height: 1.55;
  margin: 0;
}

.join-flow-commitment strong {
  color: var(--pc-text);
  font-weight: 800;
}

.join-flow-photo-upload {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 26px 16px;
  background: var(--pc-paper);
  border: 2px dashed var(--pc-border);
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.22s ease;
  color: var(--pc-text-muted);
  text-align: center;
  min-height: 130px;
  position: relative;
  overflow: hidden;
  margin-bottom: 16px;
}

.join-flow-photo-upload:hover {
  background: var(--pc-accent-soft);
  border-color: var(--pc-accent);
  color: var(--pc-accent);
}

.join-flow-photo-upload i { font-size: 26px; }
.join-flow-photo-upload p { font-size: 13px; font-weight: 700; margin: 0; }
.join-flow-photo-upload span { font-size: 11px; }

.join-flow-photo-upload.has-photo {
  padding: 0;
  border-style: solid;
  border-color: var(--pc-accent);
  min-height: auto;
}

.join-flow-photo-upload.has-photo img {
  width: 100%;
  max-height: 240px;
  object-fit: cover;
  display: block;
}

.join-flow-photo-remove {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(6, 30, 42, 0.85);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.join-flow-label {
  display: block;
  font-size: 12px;
  font-weight: 800;
  color: var(--pc-text-2);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 6px;
}

#proofNote {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--pc-border-light);
  border-radius: 12px;
  background: var(--pc-paper);
  font-family: inherit;
  font-size: 13.5px;
  color: var(--pc-text);
  resize: vertical;
  min-height: 70px;
  margin-bottom: 18px;
}

#proofNote:focus {
  outline: none;
  border-color: var(--pc-accent);
  background: var(--pc-card);
  box-shadow: 0 0 0 4px rgba(8, 145, 178, 0.1);
}

.join-flow-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.join-flow-actions .observe-btn {
  flex: 1;
}

.join-flow-note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  color: var(--pc-text-muted);
  font-weight: 600;
  font-style: italic;
  justify-content: center;
}

.join-flow-note i {
  color: var(--pc-warning);
  font-size: 12px;
}

/* Completed banner */
.action-completed-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  background: var(--pc-success-soft);
  color: var(--pc-success);
  border-radius: 14px;
  font-size: 13.5px;
  font-weight: 800;
  margin-bottom: 10px;
}

/* Joined hint */
.action-joined-hint {
  display: flex;
  gap: 10px;
  padding: 12px 14px;
  background: var(--pc-accent-soft);
  border-left: 3px solid var(--pc-accent);
  border-radius: 10px;
  font-size: 12.5px;
  color: var(--pc-text-2);
  line-height: 1.5;
  margin-bottom: 14px;
}

.action-joined-hint i {
  color: var(--pc-accent);
  font-size: 14px;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Dark mode */
body.dark-mode .join-flow-info,
body.dark-mode .join-flow-photo-upload {
  background: #241A14;
}

body.dark-mode #proofNote {
  background: #241A14;
  border-color: #3A2C22;
  color: #F8FAFC;
}

body.dark-mode .join-flow-question {
  color: #F8FAFC;
}

/* ============================================================ */
/* 59. FOLLOW SYSTEM — Public Profile                            */
/* ============================================================ */

/* ─────────────────────────────────────────────────────────────
   1. Cover
   ───────────────────────────────────────────────────────────── */
.prof-cover {
  position: relative;
  width: 100%;
  height: 160px;
  background: linear-gradient(135deg, var(--pc-primary), var(--pc-accent));
  overflow: hidden;
}

.prof-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ─────────────────────────────────────────────────────────────
   2. Follow button — main
   ───────────────────────────────────────────────────────────── */
.prof-action-row {
  padding: 0 16px 16px;
  display: flex;
  gap: 10px;
}

.prof-follow-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 50px;
  background: linear-gradient(135deg, var(--pc-accent), var(--pc-primary));
  color: #fff;
  border: none;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 6px 20px rgba(8, 145, 178, 0.35);
  letter-spacing: 0.3px;
}

.prof-follow-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(8, 145, 178, 0.5);
}

.prof-follow-btn:active {
  transform: translateY(0) scale(0.98);
}

.prof-follow-btn.following {
  background: var(--pc-success-soft);
  color: var(--pc-success);
  box-shadow: none;
}

.prof-follow-btn.following:hover {
  background: var(--pc-danger-soft);
  color: var(--pc-danger);
}

.prof-follow-btn.following:hover span::after {
  content: ' · Unfollow';
  font-size: 11px;
  font-weight: 700;
  opacity: 0.8;
}

.prof-follow-btn.just-tapped {
  animation: followPop 0.4s ease;
}

@keyframes followPop {
  0% { transform: scale(1); }
  40% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

.prof-follow-btn i {
  font-size: 13px;
}

/* ─────────────────────────────────────────────────────────────
   3. Stats row — clickable
   ───────────────────────────────────────────────────────────── */
.prof-stat-clickable {
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
  border-radius: 10px;
  padding: 6px 4px;
}

.prof-stat-clickable:hover {
  background: var(--pc-paper);
}

.prof-stat-clickable:active {
  transform: scale(0.96);
}

.prof-stat-clickable:hover .prof-stat-value {
  color: var(--pc-accent);
}

/* ─────────────────────────────────────────────────────────────
   4. Profile title line (expert's title)
   ───────────────────────────────────────────────────────────── */
.prof-title-line {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--pc-accent);
  margin-top: 4px;
  margin-bottom: 4px;
}

/* ─────────────────────────────────────────────────────────────
   5. Follow list modal
   ───────────────────────────────────────────────────────────── */
.follow-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 8px;
  max-height: 60vh;
  overflow-y: auto;
  padding-right: 4px;
}

.follow-list::-webkit-scrollbar { width: 5px; }
.follow-list::-webkit-scrollbar-thumb {
  background: var(--pc-border);
  border-radius: 10px;
}

.follow-list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  cursor: pointer;
  transition: background 0.2s ease;
  background: transparent;
  border: none;
  font-family: inherit;
  text-align: left;
  width: 100%;
}

.follow-list-item:hover {
  background: var(--pc-paper);
}

.follow-list-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(135deg, #FFD966, #FF9B50);
  color: #2F3A5F;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 17px;
  border: 2px solid var(--pc-card);
  box-shadow: var(--pc-shadow-sm);
}

.follow-list-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.follow-list-avatar.vet {
  background: linear-gradient(135deg, #10B981, #059669);
  color: #fff;
}

.follow-list-avatar.store {
  background: linear-gradient(135deg, #9B8BB4, #6B5443);
  color: #fff;
}

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

.follow-list-name {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--pc-text);
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.follow-list-name i {
  color: var(--pc-success);
  font-size: 10px;
  flex-shrink: 0;
}

.follow-list-role {
  font-size: 11px;
  color: var(--pc-text-muted);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.follow-list-btn {
  padding: 6px 14px;
  border-radius: 50px;
  border: 1.5px solid var(--pc-accent);
  background: transparent;
  color: var(--pc-accent);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  flex-shrink: 0;
}

.follow-list-btn:hover {
  background: var(--pc-accent);
  color: #fff;
}

.follow-list-btn.following {
  background: var(--pc-accent-soft);
  color: var(--pc-accent);
  border-color: transparent;
}

.follow-list-btn.following:hover {
  background: var(--pc-danger-soft);
  color: var(--pc-danger);
}

.follow-list-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--pc-text-muted);
}

.follow-list-empty i {
  font-size: 40px;
  opacity: 0.35;
  display: block;
  margin-bottom: 12px;
}

.follow-list-empty p {
  font-size: 13.5px;
  font-weight: 600;
}

/* ─────────────────────────────────────────────────────────────
   6. Credentials list (expert about tab)
   ───────────────────────────────────────────────────────────── */
.prof-credentials-list {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
}

.prof-credentials-list li {
  display: flex;
  gap: 10px;
  padding: 8px 0;
  font-size: 13px;
  color: var(--pc-text-2);
  line-height: 1.5;
  border-bottom: 1px dashed var(--pc-border-light);
}

.prof-credentials-list li:last-child { border-bottom: none; }

.prof-credentials-list i {
  color: var(--pc-success);
  font-size: 13px;
  margin-top: 2px;
  flex-shrink: 0;
}

/* ─────────────────────────────────────────────────────────────
   7. Dark mode
   ───────────────────────────────────────────────────────────── */
body.dark-mode .prof-stat-clickable:hover {
  background: #241A14;
}

body.dark-mode .follow-list-item:hover {
  background: #241A14;
}

body.dark-mode .follow-list-avatar {
  color: #2F3A5F;
}

body.dark-mode .follow-list-name {
  color: #F8FAFC;
}

body.dark-mode .prof-follow-btn.following {
  background: #14532D;
  color: #86EFAC;
}

body.dark-mode .prof-follow-btn.following:hover {
  background: #450A0A;
  color: #FCA5A5;
}

/* ─────────────────────────────────────────────────────────────
   8. Responsive
   ───────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
  .prof-cover { height: 140px; }
  .prof-follow-btn { padding: 11px 16px; font-size: 13px; }
  .follow-list-avatar { width: 42px; height: 42px; font-size: 15px; }
  .follow-list-btn { padding: 5px 12px; font-size: 10.5px; }
}

/* ============================================================ */
/* 60. SAVED POSTS PAGE                                          */
/* ============================================================ */
.saved-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 20px;
}

.saved-card {
  display: flex;
  gap: 14px;
  background: var(--pc-card);
  border-radius: 16px;
  border: 1px solid var(--pc-border-light);
  box-shadow: var(--pc-shadow-sm);
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: inherit;
  text-align: left;
  padding: 0;
  overflow: hidden;
}

.saved-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--pc-shadow-md);
  border-color: var(--pc-accent);
}

.saved-card-image {
  width: 110px;
  flex-shrink: 0;
  background: var(--pc-paper);
  overflow: hidden;
}

.saved-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.saved-card-body {
  flex: 1;
  padding: 14px 14px 14px 0;
  min-width: 0;
}

.saved-card-image + .saved-card-body {
  padding-left: 0;
}

.saved-card:not(:has(.saved-card-image)) .saved-card-body {
  padding-left: 14px;
}

.saved-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.saved-card-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FFD966, #FF9B50);
  color: #2F3A5F;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  flex-shrink: 0;
  overflow: hidden;
}

.saved-card-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.saved-card-author {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--pc-text);
  margin: 0 0 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.saved-card-time {
  font-size: 10.5px;
  color: var(--pc-text-muted);
  margin: 0;
}

.saved-card-type {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  flex-shrink: 0;
}

.saved-card-type i { font-size: 8px; }

.saved-card-title {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--pc-text);
  margin: 0 0 6px;
  line-height: 1.3;
}

.saved-card-text {
  font-size: 12.5px;
  color: var(--pc-text-2);
  line-height: 1.5;
  margin: 0 0 12px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.saved-card-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px dashed var(--pc-border-light);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--pc-text-2);
}

.saved-card-footer span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.saved-card-footer i {
  font-size: 11px;
  color: var(--pc-text-muted);
}

.saved-card-footer span:first-child i { color: #E85D75; }

.saved-card-remove {
  margin-left: auto;
  padding: 5px 12px;
  border-radius: 50px;
  background: var(--pc-accent-soft);
  color: var(--pc-accent);
  border: none;
  font-size: 10.5px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.saved-card-remove:hover {
  background: var(--pc-danger-soft);
  color: var(--pc-danger);
}

.saved-card-remove i { font-size: 10px; color: currentColor; }

/* ============================================================ */
/* 61. OBSERVERS STAT HIGHLIGHT                                  */
/* ============================================================ */
.site-list-stat .observers-count {
  color: var(--pc-purple);
  font-weight: 800;
}

/* ============================================================ */
/* 62. DARK MODE — SAVED                                         */
/* ============================================================ */
body.dark-mode .saved-card {
  background: #241A14;
  border-color: #3A2C22;
}

body.dark-mode .saved-card-image {
  background: #1A120C;
}

body.dark-mode .saved-card-title {
  color: #F8FAFC;
}

body.dark-mode .saved-card-text {
  color: #CBD5E1;
}

body.dark-mode .saved-card-avatar {
  color: #2F3A5F;
}

/* ============================================================ */
/* 63. RESPONSIVE — SAVED                                        */
/* ============================================================ */
@media (max-width: 480px) {
  .saved-card {
    gap: 12px;
  }

  .saved-card-image {
    width: 90px;
  }

  .saved-card-body {
    padding: 12px 12px 12px 0;
  }

  .saved-card-title {
    font-size: 13px;
  }

  .saved-card-text {
    font-size: 12px;
  }
}

/* ============================================================ */
/* 64. OBSERVERS CARD — Site Detail Overview                     */
/* ============================================================ */
.observers-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: linear-gradient(135deg, var(--pc-purple-soft), var(--pc-accent-soft));
  border: 1px solid var(--pc-border-light);
  border-radius: 16px;
  margin-top: 16px;
  box-shadow: var(--pc-shadow-sm);
}

.observers-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--pc-card);
  color: var(--pc-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(155, 139, 180, 0.25);
}

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

.observers-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--pc-text);
  line-height: 1.1;
  margin: 0 0 4px;
}

.observers-label {
  font-size: 12.5px;
  color: var(--pc-text-2);
  font-weight: 600;
  line-height: 1.4;
  margin: 0;
}

/* Dark mode */
body.dark-mode .observers-card {
  background: linear-gradient(135deg, #2D3E2D, #1E293B);
  border-color: #4A3A2C;
}

body.dark-mode .observers-icon {
  background: #2A1F18;
  color: #C4B5FD;
}

body.dark-mode .observers-value {
  color: #F8FAFC;
}

body.dark-mode .observers-label {
  color: #CBD5E1;
}

/* ============================================================ */
/* 65. MY POSTS SECTION — Profile                                */
/* ============================================================ */
.mp-my-posts-feed {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.mp-my-post-card {
  display: flex;
  gap: 12px;
  padding: 10px;
  background: var(--pc-paper);
  border-radius: 14px;
  border: 1px solid var(--pc-border-light);
  cursor: pointer;
  transition: all 0.22s ease;
  font-family: inherit;
  text-align: left;
  width: 100%;
  align-items: stretch;
}

.mp-my-post-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--pc-shadow-sm);
  border-color: var(--pc-accent);
  background: var(--pc-card);
}

.mp-my-post-image {
  width: 80px;
  height: 80px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--pc-card);
}

.mp-my-post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mp-my-post-noimage {
  width: 80px;
  height: 80px;
  border-radius: 10px;
  background: var(--pc-accent-soft);
  color: var(--pc-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  flex-shrink: 0;
}

.mp-my-post-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.mp-my-post-type {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 5px;
  align-self: flex-start;
}

.mp-my-post-type i { font-size: 8px; }

.mp-my-post-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--pc-text);
  margin: 0 0 3px;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mp-my-post-text {
  font-size: 11.5px;
  color: var(--pc-text-2);
  line-height: 1.4;
  margin: 0 0 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mp-my-post-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 10.5px;
  color: var(--pc-text-muted);
  font-weight: 700;
}

.mp-my-post-footer span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.mp-my-post-footer i {
  font-size: 10px;
  color: var(--pc-text-muted);
}

.mp-my-post-footer span:first-child i { color: #E85D75; }

.mp-my-post-time {
  margin-left: auto;
  font-style: italic;
  font-weight: 600;
}

/* Empty state */
.mp-posts-empty {
  text-align: center;
  padding: 24px 16px;
}

.mp-posts-empty i {
  font-size: 32px;
  color: var(--pc-text-muted);
  opacity: 0.4;
  display: block;
  margin-bottom: 10px;
}

.mp-posts-empty p {
  font-size: 12.5px;
  color: var(--pc-text-muted);
  margin-bottom: 12px;
}

/* Dark mode */
body.dark-mode .mp-my-post-card {
  background: #241A14;
  border-color: #3A2C22;
}

body.dark-mode .mp-my-post-card:hover {
  background: #2A1F18;
}

body.dark-mode .mp-my-post-title {
  color: #F8FAFC;
}

body.dark-mode .mp-my-post-text {
  color: #CBD5E1;
}

/* Responsive */
@media (max-width: 480px) {
  .mp-my-post-image,
  .mp-my-post-noimage {
    width: 70px;
    height: 70px;
  }

  .mp-my-post-title {
    font-size: 12.5px;
  }
}


/* ============================================================ */
/* 66. BADGE DETAIL MODAL                                        */
/* ============================================================ */

/* ─────────────────────────────────────────────────────────────
   1. Make badge items clickable buttons
   ───────────────────────────────────────────────────────────── */
.badge-item {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
  transition: transform 0.22s ease;
}

.badge-item:active {
  transform: scale(0.95);
}

.badge-item.earned:hover .badge-icon {
  transform: scale(1.1) rotate(-5deg);
}

.badge-item.locked:hover .badge-icon {
  transform: scale(1.05);
  border-color: var(--pc-border);
}

/* ─────────────────────────────────────────────────────────────
   2. Badge detail modal content
   ───────────────────────────────────────────────────────────── */
.badge-detail-hero {
  text-align: center;
  padding: 16px 0 24px;
}

.badge-detail-icon {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  margin: 0 auto 18px;
  border: 4px solid var(--pc-card);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
  transition: all 0.3s ease;
}

.badge-detail-icon.earned {
  animation: badgeGlow 2.5s ease-in-out infinite;
}

.badge-detail-icon.locked {
  opacity: 0.7;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

@keyframes badgeGlow {
  0%, 100% {
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12),
                0 0 0 0 currentColor;
  }
  50% {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15),
                0 0 0 8px rgba(255, 255, 255, 0);
  }
}

.badge-detail-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--pc-text);
  margin: 0 0 10px;
  line-height: 1.2;
}

.badge-detail-desc {
  font-size: 13.5px;
  color: var(--pc-text-2);
  line-height: 1.55;
  margin: 0 auto;
  max-width: 320px;
}

/* ─────────────────────────────────────────────────────────────
   3. Status block
   ───────────────────────────────────────────────────────────── */
.badge-detail-status {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  margin-bottom: 18px;
}

.badge-detail-status.earned {
  background: linear-gradient(135deg, #D1FAE5, #A7F3D0);
  border: 1.5px solid #10B981;
  color: #065F46;
}

.badge-detail-status.locked {
  background: var(--pc-paper);
  border: 1.5px dashed var(--pc-border);
  color: var(--pc-text-muted);
}

.badge-detail-status > i {
  font-size: 24px;
  flex-shrink: 0;
}

.badge-detail-status-title {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 3px;
}

.badge-detail-status-date {
  font-size: 12px;
  font-weight: 600;
  opacity: 0.85;
  margin: 0;
}

/* ─────────────────────────────────────────────────────────────
   4. Progress bar
   ───────────────────────────────────────────────────────────── */
.badge-detail-progress {
  padding: 16px;
  background: var(--pc-paper);
  border-radius: 14px;
  margin-bottom: 16px;
}

.badge-detail-progress-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--pc-text);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.badge-detail-progress-value {
  font-size: 14px;
}

.badge-detail-progress-bar {
  height: 10px;
  background: var(--pc-border-light);
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 8px;
}

.badge-detail-progress-fill {
  height: 100%;
  border-radius: 20px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.badge-detail-progress-percent {
  font-size: 11.5px;
  color: var(--pc-text-muted);
  font-weight: 700;
  text-align: right;
  margin: 0;
}

/* ─────────────────────────────────────────────────────────────
   5. Tip block
   ───────────────────────────────────────────────────────────── */
.badge-detail-tip {
  display: flex;
  gap: 12px;
  padding: 14px;
  background: var(--pc-warning-soft);
  border-left: 3px solid var(--pc-warning);
  border-radius: 12px;
}

.badge-detail-tip i {
  color: var(--pc-warning);
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 2px;
}

.badge-detail-tip p {
  font-size: 13px;
  color: var(--pc-text-2);
  line-height: 1.55;
  margin: 0;
  font-weight: 500;
}

/* ─────────────────────────────────────────────────────────────
   6. Dark mode
   ───────────────────────────────────────────────────────────── */
body.dark-mode .badge-detail-icon {
  border-color: #2A1F18;
}

body.dark-mode .badge-detail-title {
  color: #F8FAFC;
}

body.dark-mode .badge-detail-desc {
  color: #CBD5E1;
}

body.dark-mode .badge-detail-status.earned {
  background: linear-gradient(135deg, #064E3B, #065F46);
  color: #86EFAC;
  border-color: #10B981;
}

body.dark-mode .badge-detail-status.locked {
  background: #241A14;
  color: #94A3B8;
  border-color: #4A3A2C;
}

body.dark-mode .badge-detail-progress {
  background: #241A14;
}

body.dark-mode .badge-detail-progress-header {
  color: #F8FAFC;
}

body.dark-mode .badge-detail-progress-bar {
  background: #4A3A2C;
}

body.dark-mode .badge-detail-tip {
  background: #422006;
}

body.dark-mode .badge-detail-tip p {
  color: #FCD34D;
}

/* ─────────────────────────────────────────────────────────────
   7. Responsive
   ───────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
  .badge-detail-icon {
    width: 84px;
    height: 84px;
    font-size: 36px;
  }

  .badge-detail-title {
    font-size: 1.3rem;
  }

  .badge-detail-desc {
    font-size: 13px;
  }

  .badge-detail-status {
    padding: 12px 14px;
  }

  .badge-detail-status > i {
    font-size: 20px;
  }

  .badge-detail-progress {
    padding: 14px;
  }
}

/* ============================================================ */
/* 67. CHALLENGE DETAIL PAGE — Full Page                         */
/* ============================================================ */

/* ─────────────────────────────────────────────────────────────
   1. Page wrapper
   ───────────────────────────────────────────────────────────── */
.challenge-detail-page {
  padding-top: 0;
  animation: challengeFadeIn 0.3s ease;
}

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

/* ─────────────────────────────────────────────────────────────
   2. Cover hero
   ───────────────────────────────────────────────────────────── */
.challenge-detail-cover-wrap {
  margin: -12px calc(var(--pc-page-padding) * -1) 0;
  padding: 0;
  position: relative;
}

.challenge-detail-cover {
  position: relative;
  width: 100%;
  height: 280px;
  overflow: hidden;
  background: var(--pc-paper);
}

.challenge-detail-cover > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.challenge-detail-cover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(6, 30, 42, 0.05) 0%,
    rgba(6, 30, 42, 0.15) 40%,
    rgba(6, 30, 42, 0.9) 100%
  );
  pointer-events: none;
  z-index: 1;
}

.challenge-detail-back,
.challenge-detail-share {
  position: absolute;
  top: 16px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: #0C2D3E;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(8px);
  z-index: 3;
}

.challenge-detail-back { left: 16px; }
.challenge-detail-share { right: 16px; }

.challenge-detail-back:hover,
.challenge-detail-share:hover {
  transform: scale(1.08);
  background: #fff;
}

.challenge-detail-cover-title {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 20px 20px 22px;
  z-index: 2;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}

.challenge-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #fff;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.challenge-type-badge i { font-size: 10px; }

.challenge-detail-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: #fff;
  margin: 0;
  line-height: 1.15;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
  width: 100%;
  word-break: break-word;
}

.challenge-detail-loc {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
  margin: 0;
}

.challenge-detail-loc i { font-size: 12px; }

/* ─────────────────────────────────────────────────────────────
   3. Stats bar
   ───────────────────────────────────────────────────────────── */
.challenge-stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 16px 0;
}

.challenge-stat {
  background: var(--pc-card);
  border-radius: 14px;
  padding: 12px 6px;
  text-align: center;
  border: 1px solid var(--pc-border-light);
}

.challenge-stat-value {
  font-size: 14px;
  font-weight: 800;
  color: var(--pc-text);
  line-height: 1.1;
  margin: 0 0 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.challenge-stat-label {
  font-size: 9px;
  font-weight: 700;
  color: var(--pc-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ─────────────────────────────────────────────────────────────
   4. Section cards
   ───────────────────────────────────────────────────────────── */
.challenge-section-card {
  background: var(--pc-card);
  border-radius: 18px;
  padding: 18px;
  margin-bottom: 14px;
  box-shadow: var(--pc-shadow-sm);
  border: 1px solid var(--pc-border-light);
}

.challenge-section-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.challenge-section-title {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--pc-text);
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  line-height: 1.3;
}

.challenge-section-header-row .challenge-section-title {
  margin-bottom: 0;
}

.challenge-section-title i {
  color: var(--pc-accent);
  font-size: 14px;
}

.challenge-see-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 50px;
  background: var(--pc-accent-soft);
  color: var(--pc-accent);
  border: none;
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.challenge-see-all-btn:hover {
  background: var(--pc-accent);
  color: #fff;
}

.challenge-see-all-btn i {
  font-size: 10px;
  color: currentColor;
}

.challenge-description {
  font-size: 13.5px;
  color: var(--pc-text-2);
  line-height: 1.6;
  margin: 0 0 14px;
}

.challenge-host-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: var(--pc-paper);
  border-radius: 12px;
  font-size: 12.5px;
  color: var(--pc-text-2);
}

.challenge-host-row i {
  color: var(--pc-accent);
  font-size: 14px;
}

.challenge-host-row strong {
  color: var(--pc-text);
  font-weight: 800;
}

/* ─────────────────────────────────────────────────────────────
   5. What you'll do (numbered steps)
   ───────────────────────────────────────────────────────────── */
.challenge-steps-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.challenge-steps-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.challenge-step-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--pc-accent-soft);
  color: var(--pc-accent);
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.challenge-step-text {
  font-size: 13.5px;
  color: var(--pc-text-2);
  line-height: 1.5;
  padding-top: 3px;
}

/* ─────────────────────────────────────────────────────────────
   6. Evidence required
   ───────────────────────────────────────────────────────────── */
.challenge-evidence-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}

.challenge-evidence-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  background: var(--pc-paper);
  border-radius: 12px;
  border-left: 3px solid var(--pc-accent);
}

.challenge-evidence-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--pc-card);
  color: var(--pc-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}

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

.challenge-evidence-label {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--pc-text);
  margin: 0 0 2px;
}

.challenge-evidence-hint {
  font-size: 11.5px;
  color: var(--pc-text-muted);
  line-height: 1.4;
  margin: 0;
}

.challenge-auto-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--pc-border-light);
  font-size: 11.5px;
  color: var(--pc-text-muted);
  font-weight: 600;
}

.challenge-auto-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.challenge-auto-meta i {
  color: var(--pc-accent);
  font-size: 11px;
}

/* ─────────────────────────────────────────────────────────────
   7. Community progress
   ───────────────────────────────────────────────────────────── */
.challenge-progress-block {
  padding: 16px;
  background: var(--pc-paper);
  border-radius: 14px;
  margin-bottom: 12px;
}

.challenge-progress-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.challenge-progress-count {
  font-size: 13px;
  color: var(--pc-text-2);
  font-weight: 600;
}

.challenge-progress-count strong {
  font-size: 16px;
  font-weight: 800;
  color: var(--pc-text);
}

.challenge-progress-percent {
  font-size: 14px;
  font-weight: 800;
  color: var(--pc-accent);
}

.challenge-progress-bar {
  height: 10px;
  background: var(--pc-border-light);
  border-radius: 20px;
  overflow: hidden;
}

.challenge-progress-fill {
  height: 100%;
  border-radius: 20px;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.challenge-participants-note {
  font-size: 12.5px;
  color: var(--pc-text-muted);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}

.challenge-participants-note i {
  color: var(--pc-accent);
  font-size: 12px;
}

/* ─────────────────────────────────────────────────────────────
   8. Community evidence preview
   ───────────────────────────────────────────────────────────── */
.challenge-evidence-preview {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ─────────────────────────────────────────────────────────────
   9. Contribution preview card
   ───────────────────────────────────────────────────────────── */
.contribution-preview-card {
  display: flex;
  flex-direction: column;
  background: var(--pc-paper);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--pc-border-light);
  cursor: pointer;
  transition: all 0.22s ease;
  font-family: inherit;
  text-align: left;
  width: 100%;
  padding: 0;
}

.contribution-preview-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--pc-shadow-md);
  border-color: var(--pc-accent);
}

.contribution-preview-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--pc-card);
}

.contribution-preview-photos:has(.contribution-photo-thumb:only-child) {
  grid-template-columns: 1fr;
}

.contribution-photo-thumb {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--pc-card);
}

.contribution-photo-thumb.full-width {
  aspect-ratio: 16/9;
}

.contribution-photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo-label {
  position: absolute;
  bottom: 6px;
  left: 6px;
  padding: 3px 8px;
  background: rgba(6, 30, 42, 0.85);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  backdrop-filter: blur(8px);
}

.contribution-preview-noimage {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--pc-accent-soft), var(--pc-primary-light));
  color: var(--pc-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
}

.contribution-preview-body {
  padding: 12px 14px 14px;
}

.contribution-preview-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.contribution-preview-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FFD966, #FF9B50);
  color: #2F3A5F;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  flex-shrink: 0;
  overflow: hidden;
}

.contribution-preview-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contribution-preview-name {
  font-size: 13px;
  font-weight: 800;
  color: var(--pc-text);
  margin: 0 0 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.contribution-preview-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10.5px;
  color: var(--pc-text-muted);
  margin: 0;
  flex-wrap: wrap;
}

.contribution-type-chip {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.contribution-type-chip i { font-size: 8px; }

.contribution-time {
  font-weight: 600;
}

.contribution-preview-note {
  font-size: 12.5px;
  color: var(--pc-text-2);
  line-height: 1.5;
  margin: 0 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.contribution-preview-location {
  font-size: 11px;
  color: var(--pc-text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 0;
  font-weight: 600;
}

.contribution-preview-location i {
  color: var(--pc-accent);
  font-size: 10px;
}

/* ─────────────────────────────────────────────────────────────
   10. User contribution section
   ───────────────────────────────────────────────────────────── */
.challenge-user-contribution {
  background: linear-gradient(135deg, var(--pc-success-soft), var(--pc-card));
  border-color: var(--pc-success);
}

.challenge-user-contribution-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.challenge-user-contrib-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--pc-card);
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 800;
  color: var(--pc-success);
  margin: 0;
  border: 1.5px solid var(--pc-success);
  width: fit-content;
}

.challenge-user-contrib-status i { font-size: 14px; }

.challenge-view-my-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  background: var(--pc-card);
  color: var(--pc-text);
  border: 1.5px solid var(--pc-border);
  border-radius: 12px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.22s ease;
}

.challenge-view-my-btn:hover {
  background: var(--pc-paper);
  border-color: var(--pc-accent);
  color: var(--pc-accent);
}

/* ─────────────────────────────────────────────────────────────
   11. Main CTA
   ───────────────────────────────────────────────────────────── */
.challenge-detail-cta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
  margin-bottom: 20px;
}

.challenge-join-btn,
.challenge-start-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  background: var(--pc-accent);
  color: #fff;
  border: none;
  border-radius: 16px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: inherit;
  box-shadow: 0 6px 20px rgba(8, 145, 178, 0.35);
  letter-spacing: 0.3px;
}

.challenge-join-btn:hover,
.challenge-start-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(8, 145, 178, 0.5);
}

.challenge-join-btn i,
.challenge-start-btn i { font-size: 18px; }

.challenge-leave-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  background: transparent;
  color: var(--pc-danger);
  border: 1.5px solid var(--pc-danger);
  border-radius: 12px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.22s ease;
}

.challenge-leave-btn:hover {
  background: var(--pc-danger-soft);
}

.challenge-secondary-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px;
  background: transparent;
  color: var(--pc-accent);
  border: 1.5px solid var(--pc-accent);
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.22s ease;
}

.challenge-secondary-btn:hover {
  background: var(--pc-accent-soft);
}

.challenge-completed-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  background: var(--pc-success-soft);
  color: var(--pc-success);
  border-radius: 14px;
  font-size: 14px;
  font-weight: 800;
  border: 1.5px solid var(--pc-success);
}

.challenge-completed-badge i {
  font-size: 18px;
}

/* ─────────────────────────────────────────────────────────────
   12. Join confirm modal
   ───────────────────────────────────────────────────────────── */
.join-confirm-body {
  padding: 0 4px;
}

.join-confirm-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--pc-text);
  margin: 0 0 14px;
  text-align: center;
  line-height: 1.3;
}

.join-confirm-info {
  padding: 14px;
  background: var(--pc-paper);
  border-radius: 12px;
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.join-confirm-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--pc-text-2);
  font-weight: 600;
}

.join-confirm-row i {
  color: var(--pc-accent);
  font-size: 14px;
  width: 16px;
  text-align: center;
  flex-shrink: 0;
}

.join-confirm-hint {
  font-size: 12.5px;
  color: var(--pc-text-muted);
  line-height: 1.55;
  text-align: center;
  margin: 0 0 18px;
}

.join-confirm-actions {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}

.join-confirm-actions .observe-btn {
  flex: 1;
}

/* ─────────────────────────────────────────────────────────────
   13. Evidence gallery modal
   ───────────────────────────────────────────────────────────── */
.challenge-evidence-gallery {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 65vh;
  overflow-y: auto;
  padding-right: 4px;
}

.challenge-evidence-gallery::-webkit-scrollbar {
  width: 5px;
}

.challenge-evidence-gallery::-webkit-scrollbar-thumb {
  background: var(--pc-border);
  border-radius: 10px;
}

/* ─────────────────────────────────────────────────────────────
   14. Dark mode
   ───────────────────────────────────────────────────────────── */
body.dark-mode .challenge-section-card,
body.dark-mode .challenge-stat {
  background: #2A1F18;
  border-color: #4A3A2C;
}

body.dark-mode .challenge-detail-title,
body.dark-mode .challenge-section-title,
body.dark-mode .challenge-stat-value,
body.dark-mode .challenge-evidence-label,
body.dark-mode .challenge-participants-note {
  color: #F8FAFC;
}

body.dark-mode .challenge-description,
body.dark-mode .challenge-step-text,
body.dark-mode .challenge-evidence-hint,
body.dark-mode .challenge-progress-count {
  color: #CBD5E1;
}

body.dark-mode .challenge-host-row,
body.dark-mode .challenge-evidence-item,
body.dark-mode .challenge-progress-block,
body.dark-mode .contribution-preview-card,
body.dark-mode .join-confirm-info {
  background: #241A14;
}

body.dark-mode .challenge-detail-cover-title .challenge-detail-title {
  color: #fff;
}

body.dark-mode .challenge-user-contribution {
  background: linear-gradient(135deg, #14532D, #241A14);
}

body.dark-mode .challenge-view-my-btn {
  background: #241A14;
  color: #F8FAFC;
  border-color: #4A3A2C;
}

/* ─────────────────────────────────────────────────────────────
   15. Responsive
   ───────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .challenge-detail-cover { height: 240px; }
  .challenge-detail-title { font-size: 1.4rem; }
  .challenge-detail-cover-title { padding: 16px 16px 18px; }

  .challenge-stats-bar { gap: 6px; }
  .challenge-stat-value { font-size: 13px; }
  .challenge-stat-label { font-size: 8.5px; }

  .challenge-step-num { width: 24px; height: 24px; font-size: 11px; }
  .challenge-step-text { font-size: 13px; }

  .challenge-evidence-icon { width: 34px; height: 34px; font-size: 13px; }
}

@media (max-width: 480px) {
  .challenge-detail-cover { height: 220px; }
  .challenge-detail-title { font-size: 1.25rem; }

  .challenge-section-card { padding: 14px; }
  .challenge-section-title { font-size: 13.5px; }

  .contribution-preview-body { padding: 10px 12px 12px; }

  .challenge-join-btn,
  .challenge-start-btn {
    padding: 14px;
    font-size: 14px;
  }
}

/* ============================================================ */
/* 68. ACTIVITY FLOW + CONTRIBUTION DETAIL                       */
/* ============================================================ */

/* ─────────────────────────────────────────────────────────────
   1. Flow page wrapper
   ───────────────────────────────────────────────────────────── */
.contribution-flow-page {
  padding-top: 0;
}

/* ─────────────────────────────────────────────────────────────
   2. Flow header
   ───────────────────────────────────────────────────────────── */
.flow-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
}

.flow-back-btn,
.flow-close-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--pc-card);
  border: 1.5px solid var(--pc-border-light);
  color: var(--pc-text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.22s ease;
  flex-shrink: 0;
}

.flow-back-btn:hover,
.flow-close-btn:hover {
  background: var(--pc-accent);
  color: #fff;
  border-color: var(--pc-accent);
}

.flow-close-btn:hover {
  background: var(--pc-danger);
  border-color: var(--pc-danger);
}

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

.flow-header-challenge {
  font-size: 13px;
  font-weight: 800;
  color: var(--pc-text);
  margin: 0 0 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.flow-header-step {
  font-size: 11.5px;
  color: var(--pc-text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin: 0;
}

/* ─────────────────────────────────────────────────────────────
   3. Progress bar
   ───────────────────────────────────────────────────────────── */
.flow-progress {
  height: 5px;
  background: var(--pc-paper);
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 24px;
}

.flow-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--pc-accent), var(--pc-primary));
  border-radius: 20px;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─────────────────────────────────────────────────────────────
   4. Flow step content
   ───────────────────────────────────────────────────────────── */
.flow-content {
  padding-bottom: 100px;
}

.flow-step {
  animation: flowStepFade 0.35s ease;
}

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

.flow-step-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin: 0 auto 18px;
  border: 3px solid var(--pc-card);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.flow-step-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--pc-text);
  text-align: center;
  margin: 0 0 8px;
  line-height: 1.2;
}

.flow-step-sub {
  font-size: 13.5px;
  color: var(--pc-text-2);
  text-align: center;
  margin: 0 0 24px;
  line-height: 1.5;
  max-width: 340px;
  margin-left: auto;
  margin-right: auto;
}

.flow-subheading {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--pc-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 20px 0 10px;
}

/* ─────────────────────────────────────────────────────────────
   5. Photo upload
   ───────────────────────────────────────────────────────────── */
.flow-photo-upload {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 40px 20px;
  background: var(--pc-paper);
  border: 2px dashed var(--pc-border);
  border-radius: 18px;
  cursor: pointer;
  transition: all 0.22s ease;
  color: var(--pc-text-muted);
  text-align: center;
  min-height: 220px;
  position: relative;
  overflow: hidden;
  margin-bottom: 16px;
}

.flow-photo-upload:hover {
  background: var(--pc-accent-soft);
  border-color: var(--pc-accent);
  color: var(--pc-accent);
}

.flow-photo-upload i {
  font-size: 42px;
}

.flow-photo-upload p {
  font-size: 15px;
  font-weight: 800;
  margin: 0;
}

.flow-photo-upload span {
  font-size: 12px;
  opacity: 0.8;
}

.flow-photo-upload.has-photo {
  padding: 0;
  border-style: solid;
  border-color: var(--pc-accent);
  min-height: auto;
}

.flow-photo-upload.has-photo img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  display: block;
}

.flow-photo-remove {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(6, 30, 42, 0.9);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  z-index: 3;
}

.flow-photo-label {
  position: absolute;
  bottom: 12px;
  left: 12px;
  padding: 4px 12px;
  background: rgba(6, 30, 42, 0.85);
  color: #fff;
  font-size: 10.5px;
  font-weight: 800;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  backdrop-filter: blur(8px);
}

/* ─────────────────────────────────────────────────────────────
   6. Options list
   ───────────────────────────────────────────────────────────── */
.flow-options-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.flow-option-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--pc-paper);
  border: 2px solid transparent;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.22s ease;
  font-family: inherit;
  text-align: left;
  width: 100%;
}

.flow-option-item:hover {
  background: var(--pc-card);
  border-color: var(--pc-border);
}

.flow-option-item.selected {
  background: var(--pc-accent-soft);
  border-color: var(--pc-accent);
}

.flow-option-check {
  font-size: 20px;
  color: var(--pc-text-muted);
  flex-shrink: 0;
  transition: color 0.2s ease;
}

.flow-option-item.selected .flow-option-check {
  color: var(--pc-accent);
}

.flow-option-icon {
  font-size: 18px;
  color: var(--pc-accent);
  flex-shrink: 0;
}

.flow-option-label {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--pc-text);
  flex: 1;
  min-width: 0;
}

/* ─────────────────────────────────────────────────────────────
   7. Quantity chips
   ───────────────────────────────────────────────────────────── */
.flow-quantity-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.flow-quantity-chip {
  padding: 10px 18px;
  border-radius: 50px;
  background: var(--pc-paper);
  border: 1.5px solid transparent;
  color: var(--pc-text-2);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.22s ease;
  font-family: inherit;
}

.flow-quantity-chip:hover {
  background: var(--pc-card);
  border-color: var(--pc-border);
}

.flow-quantity-chip.active {
  background: var(--pc-accent);
  color: #fff;
  border-color: var(--pc-accent);
  box-shadow: 0 4px 12px rgba(8, 145, 178, 0.3);
}

/* ─────────────────────────────────────────────────────────────
   8. Options grid (observation / wildlife)
   ───────────────────────────────────────────────────────────── */
.flow-options-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.flow-option-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 8px;
  background: var(--pc-paper);
  border: 2px solid transparent;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.22s ease;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  color: var(--pc-text-2);
  text-align: center;
}

.flow-option-chip i {
  font-size: 20px;
  color: var(--pc-accent);
}

.flow-option-chip:hover {
  background: var(--pc-card);
  border-color: var(--pc-border);
}

.flow-option-chip.active {
  background: var(--pc-accent-soft);
  border-color: var(--pc-accent);
  color: var(--pc-accent);
}

/* ─────────────────────────────────────────────────────────────
   9. Wildlife grid (multi-select)
   ───────────────────────────────────────────────────────────── */
.flow-wildlife-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.flow-wildlife-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 4px;
  background: var(--pc-paper);
  border: 2px solid transparent;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.22s ease;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  color: var(--pc-text-2);
  text-align: center;
}

.flow-wildlife-chip i {
  font-size: 18px;
  color: var(--pc-accent);
}

.flow-wildlife-chip.active {
  background: var(--pc-accent-soft);
  border-color: var(--pc-accent);
  color: var(--pc-accent);
}

/* ─────────────────────────────────────────────────────────────
   10. Textarea / Input
   ───────────────────────────────────────────────────────────── */
.flow-textarea {
  width: 100%;
  padding: 14px;
  border: 1.5px solid var(--pc-border-light);
  border-radius: 14px;
  background: var(--pc-paper);
  font-family: inherit;
  font-size: 14px;
  color: var(--pc-text);
  resize: vertical;
  min-height: 100px;
  line-height: 1.5;
}

.flow-textarea:focus {
  outline: none;
  border-color: var(--pc-accent);
  background: var(--pc-card);
  box-shadow: 0 0 0 4px rgba(8, 145, 178, 0.1);
}

.flow-textarea-counter {
  text-align: right;
  font-size: 11px;
  color: var(--pc-text-muted);
  font-weight: 700;
  margin: 6px 0 0;
}

.flow-input {
  width: 100%;
  padding: 13px 14px;
  border: 1.5px solid var(--pc-border-light);
  border-radius: 12px;
  background: var(--pc-paper);
  font-family: inherit;
  font-size: 14px;
  color: var(--pc-text);
}

.flow-input:focus {
  outline: none;
  border-color: var(--pc-accent);
  background: var(--pc-card);
  box-shadow: 0 0 0 4px rgba(8, 145, 178, 0.1);
}

/* ─────────────────────────────────────────────────────────────
   11. Measurements grid
   ───────────────────────────────────────────────────────────── */
.flow-measurements-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.flow-measurements-grid > div > label {
  font-size: 11px;
  font-weight: 800;
  color: var(--pc-text-2);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 6px;
  display: block;
}

.flow-measurements-grid > div > input,
.flow-measurements-grid > div > select {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid var(--pc-border-light);
  border-radius: 10px;
  background: var(--pc-paper);
  font-family: inherit;
  font-size: 13px;
  color: var(--pc-text);
}

/* ─────────────────────────────────────────────────────────────
   12. Hint block
   ───────────────────────────────────────────────────────────── */
.flow-hint {
  display: flex;
  gap: 10px;
  padding: 12px 14px;
  background: var(--pc-warning-soft);
  border-left: 3px solid var(--pc-warning);
  border-radius: 10px;
  font-size: 12.5px;
  color: var(--pc-text-2);
  line-height: 1.5;
  margin-top: 14px;
}

.flow-hint i {
  color: var(--pc-warning);
  font-size: 14px;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ─────────────────────────────────────────────────────────────
   13. Review block
   ───────────────────────────────────────────────────────────── */
.flow-review-block {
  padding: 14px;
  background: var(--pc-paper);
  border-radius: 14px;
  margin-bottom: 14px;
}

.flow-review-location {
  font-size: 14px;
  font-weight: 800;
  color: var(--pc-text);
  margin: 0 0 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.flow-review-location i {
  color: var(--pc-accent);
  font-size: 13px;
}

.flow-review-time {
  font-size: 12px;
  color: var(--pc-text-muted);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}

.flow-review-time i {
  font-size: 11px;
  color: var(--pc-accent);
}

.flow-review-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}

.flow-review-photo {
  position: relative;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  background: var(--pc-paper);
}

.flow-review-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.flow-review-photo-single {
  width: 100%;
  max-height: 300px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--pc-paper);
  margin-bottom: 14px;
}

.flow-review-photo-single img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  max-height: 300px;
}

.flow-review-item {
  padding: 12px 14px;
  background: var(--pc-paper);
  border-radius: 12px;
  margin-bottom: 8px;
}

.flow-review-key {
  font-size: 10.5px;
  font-weight: 800;
  color: var(--pc-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin: 0 0 4px;
}

.flow-review-value {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--pc-text);
  margin: 0;
  line-height: 1.4;
}

.flow-review-note {
  font-weight: 500;
  line-height: 1.55;
  white-space: pre-line;
}

/* ─────────────────────────────────────────────────────────────
   14. Flow nav (bottom)
   ───────────────────────────────────────────────────────────── */
.flow-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  gap: 10px;
  padding: 14px var(--pc-page-padding) calc(14px + env(safe-area-inset-bottom, 0px));
  background: var(--pc-card);
  border-top: 1px solid var(--pc-border-light);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
  z-index: 100;
  max-width: 1100px;
  margin: 0 auto;
}

.flow-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.22s ease;
  font-family: inherit;
  border: none;
  white-space: nowrap;
}

.flow-btn-primary {
  flex: 1;
  background: var(--pc-accent);
  color: #fff;
  box-shadow: 0 4px 14px rgba(8, 145, 178, 0.3);
}

.flow-btn-primary:hover:not(:disabled) {
  background: var(--pc-accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(8, 145, 178, 0.4);
}

.flow-btn-ghost {
  flex: 0 0 auto;
  background: transparent;
  color: var(--pc-text-2);
  border: 1.5px solid var(--pc-border);
}

.flow-btn-ghost:hover {
  background: var(--pc-paper);
  border-color: var(--pc-text-muted);
}

/* ─────────────────────────────────────────────────────────────
   15. Success screen
   ───────────────────────────────────────────────────────────── */
.flow-success-wrap {
  text-align: center;
  padding: 20px 8px 8px;
}

.flow-success-icon {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pc-success-soft), #A7F3D0);
  color: var(--pc-success);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  margin: 0 auto 20px;
  border: 4px solid var(--pc-card);
  box-shadow: 0 8px 28px rgba(16, 185, 129, 0.25);
  animation: successPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes successPop {
  0% { transform: scale(0.5); opacity: 0; }
  60% { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}

.flow-success-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--pc-text);
  margin: 0 0 10px;
}

.flow-success-sub {
  font-size: 13.5px;
  color: var(--pc-text-2);
  line-height: 1.55;
  margin: 0 0 22px;
  max-width: 340px;
  margin-left: auto;
  margin-right: auto;
}

.flow-success-details {
  background: var(--pc-paper);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.flow-success-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--pc-text-2);
  font-weight: 600;
  text-align: left;
}

.flow-success-row i {
  color: var(--pc-accent);
  font-size: 13px;
  width: 16px;
  text-align: center;
  flex-shrink: 0;
}

.flow-success-impact {
  display: flex;
  gap: 12px;
  padding: 14px;
  background: linear-gradient(135deg, var(--pc-accent-soft), var(--pc-primary-light));
  border-radius: 14px;
  margin-bottom: 18px;
  text-align: left;
  align-items: flex-start;
}

.flow-success-impact i {
  color: var(--pc-accent);
  font-size: 22px;
  flex-shrink: 0;
}

.flow-success-impact p {
  font-size: 12.5px;
  color: var(--pc-text-2);
  line-height: 1.55;
  margin: 0;
  font-weight: 500;
}

.flow-success-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px;
  background: var(--pc-accent);
  color: #fff;
  border: none;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.22s ease;
  font-family: inherit;
  box-shadow: 0 6px 20px rgba(8, 145, 178, 0.3);
}

.flow-success-btn:hover {
  background: var(--pc-accent-hover);
  transform: translateY(-1px);
}

/* ─────────────────────────────────────────────────────────────
   16. Contribution detail modal
   ───────────────────────────────────────────────────────────── */
.contribution-detail-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
}

.contribution-detail-photo {
  position: relative;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  background: var(--pc-paper);
}

.contribution-detail-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.contribution-detail-photo-single {
  width: 100%;
  max-height: 320px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--pc-paper);
  margin-bottom: 16px;
}

.contribution-detail-photo-single img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  max-height: 320px;
}

.contribution-detail-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.contribution-detail-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FFD966, #FF9B50);
  color: #2F3A5F;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  flex-shrink: 0;
  overflow: hidden;
}

.contribution-detail-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contribution-detail-author-info { flex: 1; min-width: 0; }

.contribution-detail-author {
  font-size: 14px;
  font-weight: 800;
  color: var(--pc-text);
  margin: 0 0 4px;
}

.contribution-detail-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11.5px;
  color: var(--pc-text-muted);
  margin: 0;
  flex-wrap: wrap;
}

.contribution-detail-challenge {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 14px;
  background: var(--pc-paper);
  border: none;
  border-radius: 12px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  color: var(--pc-text);
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 14px;
  text-align: left;
}

.contribution-detail-challenge:hover {
  background: var(--pc-accent-soft);
}

.contribution-detail-challenge i:first-child {
  font-size: 14px;
  flex-shrink: 0;
}

.contribution-detail-challenge span {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.contribution-detail-challenge i:last-child {
  font-size: 12px;
  color: var(--pc-text-muted);
  flex-shrink: 0;
}

.contribution-detail-note {
  display: flex;
  gap: 10px;
  padding: 14px 16px;
  background: var(--pc-paper);
  border-radius: 14px;
  margin-bottom: 14px;
  border-left: 3px solid var(--pc-accent);
}

.contribution-detail-note i {
  color: var(--pc-accent);
  font-size: 14px;
  flex-shrink: 0;
  margin-top: 2px;
}

.contribution-detail-note p {
  font-size: 13.5px;
  color: var(--pc-text);
  line-height: 1.55;
  margin: 0;
  font-weight: 500;
  white-space: pre-line;
}

.contribution-detail-data {
  padding: 14px;
  background: var(--pc-paper);
  border-radius: 14px;
  margin-bottom: 14px;
}

.contribution-detail-data-title {
  font-size: 11px;
  font-weight: 800;
  color: var(--pc-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 10px;
}

.contribution-detail-data-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px dashed var(--pc-border-light);
  font-size: 13px;
  gap: 10px;
}

.contribution-detail-data-row:last-child {
  border-bottom: none;
}

.contribution-detail-data-row span {
  color: var(--pc-text-muted);
  font-weight: 600;
}

.contribution-detail-data-row strong {
  color: var(--pc-text);
  font-weight: 800;
  text-transform: capitalize;
}

.contribution-detail-meta-block {
  padding: 14px;
  background: var(--pc-paper);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.contribution-detail-meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  color: var(--pc-text-2);
  font-weight: 600;
}

.contribution-detail-meta-row i {
  color: var(--pc-accent);
  font-size: 12px;
  width: 14px;
  text-align: center;
  flex-shrink: 0;
}

.contribution-detail-verified {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  background: var(--pc-success-soft);
  color: var(--pc-success);
  border-radius: 12px;
  font-size: 12.5px;
  font-weight: 800;
}

/* ─────────────────────────────────────────────────────────────
   17. Dark mode
   ───────────────────────────────────────────────────────────── */
body.dark-mode .flow-step-title,
body.dark-mode .flow-review-location,
body.dark-mode .flow-review-value,
body.dark-mode .flow-success-title,
body.dark-mode .contribution-detail-author {
  color: #F8FAFC;
}

body.dark-mode .flow-step-sub,
body.dark-mode .flow-review-note,
body.dark-mode .flow-success-sub,
body.dark-mode .flow-success-row {
  color: #CBD5E1;
}

body.dark-mode .flow-option-item,
body.dark-mode .flow-photo-upload,
body.dark-mode .flow-textarea,
body.dark-mode .flow-input,
body.dark-mode .flow-review-block,
body.dark-mode .flow-review-item,
body.dark-mode .flow-success-details,
body.dark-mode .contribution-detail-challenge,
body.dark-mode .contribution-detail-note,
body.dark-mode .contribution-detail-data,
body.dark-mode .contribution-detail-meta-block {
  background: #241A14;
  border-color: #4A3A2C;
}

body.dark-mode .flow-option-chip,
body.dark-mode .flow-wildlife-chip,
body.dark-mode .flow-quantity-chip,
body.dark-mode .flow-options-grid .flow-option-chip {
  background: #241A14;
  color: #CBD5E1;
}

body.dark-mode .flow-option-item.selected,
body.dark-mode .flow-option-chip.active,
body.dark-mode .flow-wildlife-chip.active {
  background: #2D3E2D;
  border-color: var(--pc-accent);
}

body.dark-mode .flow-nav {
  background: #2A1F18;
  border-top-color: #4A3A2C;
}

body.dark-mode .flow-back-btn,
body.dark-mode .flow-close-btn {
  background: #2A1F18;
  border-color: #4A3A2C;
  color: #F8FAFC;
}

body.dark-mode .flow-success-icon {
  background: linear-gradient(135deg, #14532D, #065F46);
  color: #86EFAC;
}

body.dark-mode .flow-success-impact {
  background: linear-gradient(135deg, #0A2436, #2D3E2D);
}

body.dark-mode .flow-success-impact p {
  color: #A8D5E2;
}

/* ─────────────────────────────────────────────────────────────
   18. Responsive
   ───────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .flow-step-title { font-size: 1.2rem; }
  .flow-step-icon { width: 56px; height: 56px; font-size: 22px; }
  .flow-measurements-grid { grid-template-columns: 1fr 1fr; }
  .flow-wildlife-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 480px) {
  .flow-step-icon { width: 52px; height: 52px; font-size: 20px; }
  .flow-photo-upload { min-height: 180px; padding: 30px 16px; }
  .flow-photo-upload i { font-size: 34px; }
  .flow-photo-upload p { font-size: 13.5px; }
  .flow-btn { padding: 13px 18px; font-size: 13.5px; }
  .flow-wildlife-grid { grid-template-columns: repeat(2, 1fr); }
  .flow-measurements-grid { grid-template-columns: 1fr; }
  .flow-success-title { font-size: 1.3rem; }
}

/* ============================================================ */
/* 69. FLOW NAV — FIXED BOTTOM BAR                               */
/* ============================================================ */

/* Nav bar — fixed at bottom */
.flow-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  gap: 10px;
  padding: 14px var(--pc-page-padding) calc(14px + env(safe-area-inset-bottom, 0px));
  background: var(--pc-card);
  border-top: 1px solid var(--pc-border-light);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
  z-index: 100;
  max-width: 1100px;
  margin: 0 auto;
}

/* Body padding so content doesn't hide behind nav */
.contribution-flow-page {
  padding-bottom: 90px !important;
}

/* Buttons */
.flow-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.22s ease;
  font-family: inherit;
  border: none;
  white-space: nowrap;
}

.flow-btn-primary {
  flex: 1;
  background: var(--pc-accent);
  color: #fff;
  box-shadow: 0 4px 14px rgba(8, 145, 178, 0.3);
}

.flow-btn-primary:hover:not(:disabled) {
  background: var(--pc-accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(8, 145, 178, 0.4);
}

.flow-btn-primary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  box-shadow: none;
}

.flow-btn-ghost {
  flex: 0 0 auto;
  background: transparent;
  color: var(--pc-text-2);
  border: 1.5px solid var(--pc-border);
  padding: 14px 20px;
}

.flow-btn-ghost:hover {
  background: var(--pc-paper);
  border-color: var(--pc-text-muted);
  color: var(--pc-text);
}

/* Dark mode */
body.dark-mode .flow-nav {
  background: #2A1F18;
  border-top-color: #4A3A2C;
}

body.dark-mode .flow-btn-ghost {
  color: #CBD5E1;
  border-color: #4A3A2C;
}

body.dark-mode .flow-btn-ghost:hover {
  background: #241A14;
}

/* Responsive */
@media (max-width: 480px) {
  .flow-btn {
    padding: 13px 18px;
    font-size: 13.5px;
  }

  .flow-btn-ghost {
    padding: 13px 16px;
  }

  .flow-nav {
    gap: 8px;
  }
}

/* ============================================================
   AQUAQUEST — CONTRIBUTION FLOW PREMIUM MOBILE UI
   ============================================================ */

/* Hide the normal app navigation while doing a challenge */
body.flow-active .bottom-nav {
  display: none !important;
}

/* Let the challenge navigation sit above everything */
body.flow-active .flow-nav {
  z-index: 950 !important;
}

/* Give the flow a little breathing room */
body.flow-active .contribution-flow-page {
  padding-bottom: 100px !important;
}

/* Keep the challenge content nicely centered */
body.flow-active .flow-content {
  max-width: 560px;
  margin: 0 auto;
}

/* ============================================================
   STEP HEADER
   ============================================================ */

body.flow-active .flow-header {
  padding-top: 16px;
  padding-bottom: 10px;
}

body.flow-active .flow-header-challenge {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.2px;
}

body.flow-active .flow-header-step {
  color: var(--pc-accent);
  font-weight: 800;
}

/* ============================================================
   OCEAN PROGRESS BAR
   ============================================================ */

body.flow-active .flow-progress {
  height: 7px;
  background: rgba(8, 145, 178, 0.10);
  border-radius: 999px;
  margin-bottom: 30px;
}

body.flow-active .flow-progress-fill {
  background: linear-gradient(
    90deg,
    #0891b2,
    #06b6d4,
    #22c1c3
  );
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.35);
}

/* ============================================================
   STEP CONTENT
   ============================================================ */

body.flow-active .flow-step {
  padding: 4px 2px 20px;
}

/* Camera icon */
body.flow-active .flow-step-icon {
  width: 72px;
  height: 72px;
  margin-bottom: 20px;
  border: 5px solid rgba(255,255,255,0.85);
  background:
    radial-gradient(circle at 35% 30%,
      rgba(255,255,255,0.9),
      rgba(207,250,254,0.95) 42%,
      rgba(103,232,249,0.65) 100%) !important;
  color: #0891b2 !important;
  box-shadow:
    0 10px 30px rgba(8,145,178,0.16),
    0 0 0 8px rgba(34,211,238,0.07);
  position: relative;
}

/* Small ocean ripple */
body.flow-active .flow-step-icon::after {
  content: "";
  position: absolute;
  inset: -9px;
  border: 1px solid rgba(8,145,178,0.14);
  border-radius: 50%;
  animation: aquaRipple 2.8s ease-out infinite;
}

@keyframes aquaRipple {
  0% {
    transform: scale(0.92);
    opacity: 0.7;
  }
  70% {
    transform: scale(1.08);
    opacity: 0;
  }
  100% {
    transform: scale(1.08);
    opacity: 0;
  }
}

body.flow-active .flow-step-title {
  font-size: 1.5rem;
  letter-spacing: -0.5px;
  margin-bottom: 10px;
}

body.flow-active .flow-step-sub {
  font-size: 14px;
  max-width: 360px;
  margin-bottom: 26px;
  color: var(--pc-text-2);
}

/* ============================================================
   PREMIUM PHOTO CARD
   ============================================================ */

body.flow-active .flow-photo-upload {
  min-height: 230px;
  padding: 34px 20px;
  border: 1.5px solid rgba(8,145,178,0.18);
  border-radius: 26px;
  background:
    radial-gradient(circle at 50% 0%,
      rgba(103,232,249,0.16),
      transparent 48%),
    linear-gradient(
      145deg,
      rgba(224,247,250,0.95),
      rgba(236,248,252,0.98)
    );
  box-shadow:
    0 12px 30px rgba(8,145,178,0.08),
    inset 0 1px 0 rgba(255,255,255,0.8);
  overflow: hidden;
}

/* Decorative water lines */
body.flow-active .flow-photo-upload::before {
  content: "";
  position: absolute;
  width: 180%;
  height: 100px;
  left: -40%;
  bottom: -65px;
  border-radius: 50%;
  border-top: 2px solid rgba(8,145,178,0.10);
  transform: rotate(-4deg);
  pointer-events: none;
}

body.flow-active .flow-photo-upload::after {
  content: "";
  position: absolute;
  width: 150%;
  height: 80px;
  left: -25%;
  bottom: -55px;
  border-radius: 50%;
  border-top: 1px solid rgba(34,211,238,0.13);
  transform: rotate(5deg);
  pointer-events: none;
}

/* Camera icon inside upload card */
body.flow-active .flow-photo-upload > i {
  width: 68px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 22px;
  background: linear-gradient(
    145deg,
    #cffafe,
    #a5f3fc
  );
  color: #0891b2;
  font-size: 27px;
  box-shadow:
    0 8px 20px rgba(8,145,178,0.12);
  margin-bottom: 4px;
}

/* Main upload text */
body.flow-active .flow-photo-upload p {
  font-size: 15px;
  color: #164e63;
  letter-spacing: -0.1px;
}

/* File information */
body.flow-active .flow-photo-upload span {
  color: #6b9aaa;
  font-size: 11.5px;
  font-weight: 700;
}

/* Hover/tap state */
body.flow-active .flow-photo-upload:hover,
body.flow-active .flow-photo-upload:active {
  transform: translateY(-2px);
  border-color: rgba(8,145,178,0.35);
  box-shadow:
    0 16px 35px rgba(8,145,178,0.13);
}

/* ============================================================
   PHOTO PREVIEW STATE
   ============================================================ */

body.flow-active .flow-photo-upload.has-photo {
  border: 2px solid #06b6d4;
  box-shadow:
    0 12px 30px rgba(8,145,178,0.16);
}

body.flow-active .flow-photo-upload.has-photo img {
  min-height: 230px;
  max-height: 360px;
  object-fit: cover;
}

/* ============================================================
   TIP CARD
   ============================================================ */

body.flow-active .flow-hint {
  margin-top: 16px;
  border-radius: 18px;
  border-left: 3px solid #f59e0b;
  background:
    linear-gradient(
      135deg,
      rgba(255,247,214,0.96),
      rgba(255,251,235,0.96)
    );
  box-shadow: 0 8px 20px rgba(245,158,11,0.07);
  padding: 14px 15px;
}

body.flow-active .flow-hint i {
  color: #f59e0b;
}

/* ============================================================
   FLOW BOTTOM BUTTON
   ============================================================ */

body.flow-active .flow-nav {
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid rgba(8,145,178,0.10);
  box-shadow: 0 -10px 30px rgba(8,145,178,0.08);
}

body.flow-active .flow-btn-primary {
  background: linear-gradient(
    135deg,
    #0891b2,
    #06b6d4
  );
  box-shadow:
    0 8px 22px rgba(8,145,178,0.25);
}

body.flow-active .flow-btn-primary:not(:disabled) {
  animation: buttonFloat 2.8s ease-in-out infinite;
}

@keyframes buttonFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-2px);
  }
}

/* Mobile spacing */
@media (max-width: 480px) {

  body.flow-active .flow-step-title {
    font-size: 1.38rem;
  }

  body.flow-active .flow-photo-upload {
    min-height: 220px;
    border-radius: 24px;
  }

  body.flow-active .flow-step-icon {
    width: 68px;
    height: 68px;
  }
}

/* ============================================================ */
/* FEED — EDITORIAL SECTION (Empty community state)              */
/* ============================================================ */
.feed-editorial-section {
  background: var(--pc-card);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 16px;
  border: 1px solid var(--pc-border-light);
}

.feed-editorial-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
  color: var(--pc-text-2);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 14px;
}

.feed-editorial-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  padding: 14px;
  background: var(--pc-paper);
  border: 1px solid var(--pc-border-light);
  border-radius: 14px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  text-align: left;
}

.feed-editorial-card:last-child {
  margin-bottom: 0;
}

.feed-editorial-card:hover {
  background: var(--pc-card);
  border-color: var(--pc-accent);
  transform: translateY(-1px);
}

.feed-editorial-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
}

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

.feed-editorial-title {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--pc-text);
  margin: 0 0 4px;
  line-height: 1.3;
}

.feed-editorial-excerpt {
  font-size: 12px;
  color: var(--pc-text-2);
  line-height: 1.5;
  margin: 0 0 6px;
}

.feed-editorial-meta {
  font-size: 11px;
  color: var(--pc-text-muted);
  font-weight: 600;
  margin: 0;
}

.feed-editorial-arrow {
  color: var(--pc-text-muted);
  font-size: 12px;
  align-self: center;
  flex-shrink: 0;
}

/* ============================================================ */
/* FEED — COMMUNITY EMPTY STATE                                  */
/* ============================================================ */
.feed-community-empty {
  background: var(--pc-card);
  border-radius: 16px;
  padding: 40px 24px;
  text-align: center;
  border: 2px dashed var(--pc-border-light);
}

.feed-community-empty-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--pc-accent-soft);
  color: var(--pc-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin: 0 auto 16px;
}

.feed-community-empty-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--pc-text);
  margin: 0 0 6px;
}

.feed-community-empty-sub {
  font-size: 12.5px;
  color: var(--pc-text-muted);
  line-height: 1.5;
  margin: 0 0 18px;
  max-width: 280px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================ */
/* PROFILE — GETTING STARTED CHECKLIST                           */
/* ============================================================ */
.mp-getting-started {
  background: linear-gradient(135deg, var(--pc-accent-soft), transparent);
  border-color: var(--pc-accent);
}

.mp-gs-progress {
  height: 6px;
  background: var(--pc-paper);
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 16px;
}

.mp-gs-progress-fill {
  height: 100%;
  background: var(--pc-accent);
  border-radius: 20px;
  transition: width 0.4s ease;
}

.mp-gs-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mp-gs-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  background: var(--pc-card);
  border: 1px solid var(--pc-border-light);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  text-align: left;
}

.mp-gs-item:hover:not(.done) {
  border-color: var(--pc-accent);
  transform: translateX(3px);
}

.mp-gs-item.done {
  opacity: 0.65;
  cursor: default;
}

.mp-gs-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--pc-accent-soft);
  color: var(--pc-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}

.mp-gs-item.done .mp-gs-icon {
  background: var(--pc-success-soft);
  color: var(--pc-success);
}

.mp-gs-label {
  flex: 1;
  font-size: 13px;
  font-weight: 700;
  color: var(--pc-text);
}

.mp-gs-item.done .mp-gs-label {
  text-decoration: line-through;
  color: var(--pc-text-muted);
}

.mp-gs-arrow {
  color: var(--pc-text-muted);
  font-size: 12px;
}

/* ============================================================ */
/* COMMENT AUTHOR NAME — clickable                                */
/* ============================================================ */
.comment-author-name-link {
  cursor: pointer;
  text-decoration: underline dotted;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.comment-author-name-link:hover {
  color: var(--pc-accent);
}

/* Comment avatar button reset */
button.comment-avatar {
  border: none;
  padding: 0;
  font-family: inherit;
  cursor: pointer;
  background: var(--pc-accent-soft);
}

/* ============================================================ */
/* MONITOR BUTTON                                                */
/* ============================================================ */
.monitor-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: var(--pc-card);
  color: var(--pc-accent);
  border: 2px solid var(--pc-accent);
  border-radius: 50px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.22s ease;
  font-family: inherit;
}

.monitor-btn:hover {
  background: var(--pc-accent-soft);
  transform: translateY(-1px);
}

.monitor-btn.monitoring {
  background: var(--pc-accent);
  color: #fff;
  border-color: var(--pc-accent);
}

.monitor-btn.just-tapped {
  animation: monitorTapped 0.4s ease;
}

@keyframes monitorTapped {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* ============================================================ */
/* SITE MONITOR BAR (below cover)                                */
/* ============================================================ */
.site-monitor-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: var(--pc-card);
  border-radius: 14px;
  border: 1px solid var(--pc-border-light);
  margin-bottom: 16px;
}

.site-monitor-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.site-monitor-info > i {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--pc-accent-soft);
  color: var(--pc-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.site-monitor-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--pc-text);
  margin: 0 0 2px;
}

.site-monitor-sub {
  font-size: 11.5px;
  color: var(--pc-text-muted);
  margin: 0;
}

/* ============================================================ */
/* SITE CARD MONITOR BADGE                                       */
/* ============================================================ */
.site-card-monitor-badge,
.site-list-monitor-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--pc-accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  box-shadow: 0 2px 8px rgba(8, 145, 178, 0.4);
  z-index: 2;
}

/* ============================================================ */
/* SITES TOGGLE (All / My Waters)                                */
/* ============================================================ */
.sites-toggle-row {
  display: flex;
  gap: 8px;
  padding: 4px;
  background: var(--pc-paper);
  border-radius: 50px;
  margin-bottom: 14px;
}

.sites-toggle-chip {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 14px;
  background: transparent;
  color: var(--pc-text-2);
  border: none;
  border-radius: 50px;
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s ease;
}

.sites-toggle-chip.active {
  background: var(--pc-accent);
  color: #fff;
  box-shadow: 0 2px 8px rgba(8, 145, 178, 0.3);
}

/* ============================================================ */
/* SITE STATUS BADGE (About tab)                                 */
/* ============================================================ */
.site-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.site-status-badge.verified {
  background: rgba(16, 185, 129, 0.15);
  color: #10B981;
}

.site-status-badge.community {
  background: rgba(59, 130, 246, 0.15);
  color: #3B82F6;
}

/* ============================================================ */
/* MAP ADD SITE BUTTON                                           */
/* ============================================================ */
.map-add-site-btn {
  position: absolute;
  bottom: 150px;
  right: 9px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  background: linear-gradient(135deg, #0891B2, #22D3EE);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 6px 20px rgba(8, 145, 178, 0.4);
  transition: all 0.22s ease;
  z-index: 500;
}

.map-add-site-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(8, 145, 178, 0.5);
}

.map-add-site-btn i {
  font-size: 14px;
}

/* ============================================================ */
/* ADD SITE MODAL                                                */
/* ============================================================ */
.add-site-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.add-site-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--pc-accent-soft);
  color: var(--pc-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.add-site-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--pc-text);
  margin: 0 0 2px;
}

.add-site-step {
  font-size: 11.5px;
  color: var(--pc-text-muted);
  font-weight: 600;
  margin: 0;
}

.add-site-progress {
  height: 4px;
  background: var(--pc-paper);
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 20px;
}

.add-site-progress-fill {
  height: 100%;
  background: var(--pc-accent);
  border-radius: 20px;
  transition: width 0.3s ease;
}

.add-site-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.add-site-label {
  font-size: 11.5px;
  font-weight: 800;
  color: var(--pc-text-2);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-top: 12px;
  margin-bottom: 6px;
  display: block;
}

.add-site-input,
.add-site-textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--pc-paper);
  border: 1.5px solid var(--pc-border-light);
  border-radius: 12px;
  font-size: 13.5px;
  font-family: inherit;
  color: var(--pc-text);
  outline: none;
  transition: border-color 0.2s ease;
}

.add-site-input:focus,
.add-site-textarea:focus {
  border-color: var(--pc-accent);
  background: var(--pc-card);
}

.add-site-type-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.add-site-type-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 6px;
  background: var(--pc-paper);
  border: 1.5px solid var(--pc-border-light);
  border-radius: 12px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s ease;
}

.add-site-type-chip i {
  font-size: 18px;
  color: var(--pc-text-2);
}

.add-site-type-chip span {
  font-size: 11px;
  font-weight: 700;
  color: var(--pc-text-2);
}

.add-site-type-chip.active {
  background: var(--pc-accent-soft);
  border-color: var(--pc-accent);
}

.add-site-type-chip.active i,
.add-site-type-chip.active span {
  color: var(--pc-accent);
}

.add-site-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--pc-border-light);
}

.add-site-actions .observe-btn {
  flex: 1;
}

.add-site-pick-location {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 24px 20px;
  background: var(--pc-paper);
  border: 2px dashed var(--pc-accent);
  border-radius: 14px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s ease;
}

.add-site-pick-location:hover {
  background: var(--pc-accent-soft);
}

.add-site-pick-location i {
  font-size: 24px;
  color: var(--pc-accent);
}

.add-site-pick-location p {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--pc-text);
  margin: 0;
}

.add-site-pick-location span {
  font-size: 11.5px;
  color: var(--pc-text-muted);
  margin: 0;
}

.add-site-location-set {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: rgba(16, 185, 129, 0.1);
  border: 1.5px solid rgba(16, 185, 129, 0.3);
  border-radius: 12px;
}

.add-site-location-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #10B981;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.add-site-location-info {
  flex: 1;
  min-width: 0;
}

.add-site-location-title {
  font-size: 13px;
  font-weight: 800;
  color: #10B981;
  margin: 0 0 2px;
}

.add-site-location-coords {
  font-size: 11.5px;
  color: var(--pc-text-muted);
  font-family: monospace;
  margin: 0;
}

.add-site-location-change {
  padding: 6px 12px;
  background: transparent;
  border: 1.5px solid #10B981;
  color: #10B981;
  border-radius: 50px;
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
}

.add-site-hint {
  display: flex;
  gap: 10px;
  padding: 12px 14px;
  background: var(--pc-accent-soft);
  border-radius: 12px;
  margin-top: 12px;
}

.add-site-hint i {
  color: var(--pc-accent);
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 2px;
}

.add-site-hint p {
  font-size: 12px;
  color: var(--pc-text-2);
  line-height: 1.5;
  margin: 0;
}

/* ============================================================ */
/* MAP PICKER ACTION BAR                                         */
/* ============================================================ */
.picker-action-bar {
  position: fixed;
  bottom: 130px;
  left: 9px;
  right: 20px;
  background: var(--pc-card);
  border-radius: 16px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
  z-index: 1000;
  animation: slideUpBar 0.3s ease;
}

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

.picker-instruction {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--pc-text);
}

.picker-instruction i {
  color: var(--pc-accent);
  font-size: 14px;
}

.picker-cancel-btn {
  padding: 8px 14px;
  background: transparent;
  border: 1.5px solid var(--pc-border-light);
  color: var(--pc-text-2);
  border-radius: 50px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
}

.picker-confirm-btn {
  padding: 8px 16px;
  background: var(--pc-accent);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
  display: flex;
  align-items: center;
  gap: 6px;
}

@keyframes pickerPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

/* ============================================================ */
/* SITE MONITOR ACTIONS (monitor + delete)                       */
/* ============================================================ */
.site-monitor-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.site-delete-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: transparent;
  border: 2px solid var(--pc-danger);
  color: var(--pc-danger);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.site-delete-btn:hover {
  background: var(--pc-danger);
  color: #fff;
}

/* ============================================================ */
/* ADD SITE — PHOTO UPLOAD                                       */
/* ============================================================ */
.add-site-photo-upload {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 32px 20px;
  background: var(--pc-paper);
  border: 2px dashed var(--pc-border-light);
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
  min-height: 140px;
  margin-bottom: 6px;
}

.add-site-photo-upload:hover {
  border-color: var(--pc-accent);
  background: var(--pc-accent-soft);
}

.add-site-photo-upload > i {
  font-size: 28px;
  color: var(--pc-accent);
}

.add-site-photo-upload > p {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--pc-text);
  margin: 0;
}

.add-site-photo-upload > span {
  font-size: 11.5px;
  color: var(--pc-text-muted);
}

/* Has photo state */
.add-site-photo-upload.has-photo {
  padding: 0;
  border-style: solid;
  border-color: var(--pc-accent);
  min-height: 200px;
}

.add-site-photo-upload.has-photo img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

.add-site-photo-remove {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  cursor: pointer;
  z-index: 2;
  font-family: inherit;
  transition: background 0.2s ease;
}

.add-site-photo-remove:hover {
  background: rgba(239, 68, 68, 0.9);
}

.add-site-photo-label {
  position: absolute;
  bottom: 10px;
  left: 10px;
  padding: 4px 10px;
  background: rgba(8, 145, 178, 0.9);
  color: #fff;
  font-size: 10.5px;
  font-weight: 800;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* ============================================================ */
/* SITE MONITOR ACTIONS (monitor + delete)                       */
/* ============================================================ */
.site-monitor-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.site-delete-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: transparent;
  border: 2px solid var(--pc-danger);
  color: var(--pc-danger);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  flex-shrink: 0;
}

.site-delete-btn:hover {
  background: var(--pc-danger);
  color: #fff;
}

/* ============================================================ */
/* SUGGEST CHALLENGE CARD (top of actions page)                  */
/* ============================================================ */
.suggest-challenge-card {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(251, 191, 36, 0.06));
  border: 1.5px solid rgba(245, 158, 11, 0.3);
  border-radius: 16px;
  margin-bottom: 16px;
  cursor: pointer;
  transition: all 0.22s ease;
  font-family: inherit;
  text-align: left;
}

.suggest-challenge-card:hover {
  border-color: var(--pc-warning);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.15);
}

.suggest-challenge-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(245, 158, 11, 0.2);
  color: var(--pc-warning);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

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

.suggest-challenge-title {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--pc-text);
  margin: 0 0 2px;
}

.suggest-challenge-sub {
  font-size: 11.5px;
  color: var(--pc-text-muted);
  margin: 0;
}

.suggest-challenge-arrow {
  color: var(--pc-warning);
  font-size: 13px;
  flex-shrink: 0;
}

/* ============================================================ */
/* SUGGEST CHALLENGE MODAL                                       */
/* ============================================================ */
.suggest-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.suggest-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(245, 158, 11, 0.15);
  color: var(--pc-warning);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.suggest-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--pc-text);
  margin: 0 0 2px;
}

.suggest-sub {
  font-size: 11.5px;
  color: var(--pc-text-muted);
  font-weight: 600;
  margin: 0;
}

.suggest-info {
  display: flex;
  gap: 10px;
  padding: 12px 14px;
  background: rgba(8, 145, 178, 0.08);
  border-radius: 12px;
  margin-bottom: 18px;
}

.suggest-info i {
  color: var(--pc-accent);
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 2px;
}

.suggest-info p {
  font-size: 12px;
  color: var(--pc-text-2);
  line-height: 1.5;
  margin: 0;
}

.suggest-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 60vh;
  overflow-y: auto;
  padding-right: 4px;
}

.suggest-type-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 6px;
}

.suggest-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--pc-border-light);
}

.suggest-actions .observe-btn {
  flex: 1;
}

/* ============================================================ */
/* MY SUGGESTIONS SECTION                                        */
/* ============================================================ */
.my-suggestions-section {
  background: var(--pc-card);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 16px;
  border: 1px solid var(--pc-border-light);
}

.my-suggestions-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.my-suggestions-title {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--pc-text);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.my-suggestions-title i {
  color: var(--pc-warning);
}

.my-suggestions-count {
  padding: 3px 10px;
  background: var(--pc-warning-soft);
  color: var(--pc-warning);
  font-size: 11px;
  font-weight: 800;
  border-radius: 50px;
}

.my-suggestions-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ============================================================ */
/* SUGGESTION CARD                                               */
/* ============================================================ */
.suggestion-card {
  background: var(--pc-paper);
  border: 1px solid var(--pc-border-light);
  border-radius: 14px;
  padding: 14px;
  transition: all 0.2s ease;
}

.suggestion-card:hover {
  border-color: var(--pc-accent);
}

.suggestion-card-header {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}

.suggestion-type-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--pc-accent-soft);
  color: var(--pc-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}

.suggestion-card-title-wrap {
  flex: 1;
  min-width: 0;
}

.suggestion-card-title {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--pc-text);
  margin: 0 0 3px;
  line-height: 1.3;
}

.suggestion-card-time {
  font-size: 10.5px;
  color: var(--pc-text-muted);
  font-weight: 600;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}

.suggestion-status-badge {
  padding: 4px 10px;
  border-radius: 50px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  white-space: nowrap;
}

.suggestion-card-desc {
  font-size: 12px;
  color: var(--pc-text-2);
  line-height: 1.5;
  margin: 0 0 8px;
}

.suggestion-card-meta {
  font-size: 11.5px;
  color: var(--pc-text-muted);
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.suggestion-reject-note {
  display: flex;
  gap: 8px;
  padding: 8px 10px;
  background: rgba(239, 68, 68, 0.08);
  border-radius: 10px;
  margin-bottom: 10px;
}

.suggestion-reject-note i {
  color: var(--pc-danger);
  font-size: 13px;
  flex-shrink: 0;
  margin-top: 1px;
}

.suggestion-reject-note span {
  font-size: 11.5px;
  color: var(--pc-text-2);
  line-height: 1.5;
}

.suggestion-card-actions {
  display: flex;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--pc-border-light);
}

.suggestion-cancel-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 14px;
  background: transparent;
  color: var(--pc-danger);
  border: 1.5px solid var(--pc-danger);
  border-radius: 50px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s ease;
}

.suggestion-cancel-btn:hover {
  background: var(--pc-danger);
  color: #fff;
}

/* ============================================================ */
/* ONE HEALTH BADGE — Hero Section                               */
/* ============================================================ */
.explore-onehealth-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(34, 211, 238, 0.15));
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 50px;
  font-size: 10.5px;
  font-weight: 800;
  color: #059669;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
  animation: oneHealthPulse 3s ease-in-out infinite;
}

.explore-onehealth-badge i {
  font-size: 11px;
  animation: oneHealthBeat 1.5s ease-in-out infinite;
}

body.dark-mode .explore-onehealth-badge {
  background: linear-gradient(135deg, rgba(52, 211, 153, 0.15), rgba(34, 211, 238, 0.15));
  border-color: rgba(52, 211, 153, 0.35);
  color: #34D399;
}

@keyframes oneHealthPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.15); }
  50%      { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
}

@keyframes oneHealthBeat {
  0%, 100% { transform: scale(1); }
  20%      { transform: scale(1.2); }
  40%      { transform: scale(1); }
}

/* ============================================================ */
/* ONE HEALTH INSIGHT CARD — Observation Detail                  */
/* ============================================================ */
.one-health-insight-card {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.04), rgba(34, 211, 238, 0.04));
  border-left: 4px solid var(--pc-success);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 18px;
  position: relative;
  overflow: hidden;
}

.one-health-insight-card::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.08), transparent 70%);
  pointer-events: none;
}

.one-health-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}

.one-health-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  animation: oneHealthHeartbeat 2s ease-in-out infinite;
}

@keyframes oneHealthHeartbeat {
  0%, 100% { transform: scale(1); }
  15%      { transform: scale(1.12); }
  30%      { transform: scale(1); }
}

.one-health-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--pc-text);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 2px;
}

.one-health-sub {
  font-size: 11px;
  color: var(--pc-text-muted);
  font-weight: 600;
  margin: 0;
}

.one-health-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.one-health-item {
  background: var(--pc-card);
  border-radius: 10px;
  padding: 10px 12px;
  border: 1px solid var(--pc-border-light);
}

.one-health-item-wide {
  grid-column: 1 / -1;
}

.one-health-label {
  font-size: 9.5px;
  font-weight: 800;
  color: var(--pc-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin: 0 0 5px;
}

.one-health-value {
  font-size: 13px;
  font-weight: 800;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 5px;
  line-height: 1.3;
}

.one-health-value i {
  font-size: 12px;
}

.one-health-recommendation {
  display: flex;
  gap: 10px;
  padding: 12px 14px;
  background: var(--pc-warning-soft);
  border-radius: 10px;
  position: relative;
  z-index: 1;
}

.one-health-recommendation i {
  color: var(--pc-warning);
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 2px;
}

.one-health-recommendation p {
  font-size: 12.5px;
  color: var(--pc-text);
  line-height: 1.5;
  margin: 0;
  font-weight: 600;
}

/* Dark mode */
body.dark-mode .one-health-insight-card {
  background: linear-gradient(135deg, rgba(52, 211, 153, 0.06), rgba(34, 211, 238, 0.06));
}

body.dark-mode .one-health-item {
  background: #241A14;
  border-color: #3A2C22;
}

body.dark-mode .one-health-title,
body.dark-mode .one-health-value {
  color: #F8FAFC;
}

body.dark-mode .one-health-recommendation {
  background: #422006;
}

body.dark-mode .one-health-recommendation p {
  color: #FCD34D;
}

/* Responsive */
@media (max-width: 480px) {
  .one-health-insight-card {
    padding: 14px;
  }

  .one-health-icon {
    width: 38px;
    height: 38px;
    font-size: 16px;
  }

  .one-health-value {
    font-size: 12.5px;
  }

  .one-health-recommendation {
    padding: 10px 12px;
  }

  .one-health-recommendation p {
    font-size: 12px;
  }
}

/* ============================================================ */
/* COMMENT SYSTEM — Reply / Like / Delete                        */
/* ============================================================ */

/* ---------- Comment item structure ---------- */
.comment-item {
  display: flex;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--pc-border-light);
}

.comment-item:last-child { border-bottom: none; }

.comment-reply-item {
  display: flex;
  gap: 10px;
  padding: 10px 0 10px 12px;
  border-left: 2px solid var(--pc-border-light);
  margin-left: 8px;
  margin-top: 8px;
}

/* ---------- Author row with delete button ---------- */
.comment-author-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.comment-author {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--pc-text);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 5px;
}

.comment-verified {
  color: var(--pc-success);
  font-size: 10px;
}

.comment-delete-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: transparent;
  border: none;
  color: var(--pc-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  opacity: 0.6;
}

.comment-delete-btn:hover {
  background: var(--pc-danger-soft);
  color: var(--pc-danger);
  opacity: 1;
}

/* ---------- Meta row: time + like + reply ---------- */
.comment-meta-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 6px;
  flex-wrap: wrap;
}

.comment-time {
  font-size: 10.5px;
  color: var(--pc-text-muted);
  font-weight: 600;
}

.comment-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  background: transparent;
  border: none;
  color: var(--pc-text-muted);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s ease;
  font-family: inherit;
}

.comment-action-btn i {
  font-size: 11px;
}

.comment-action-btn:hover {
  background: var(--pc-paper);
  color: var(--pc-accent);
}

.comment-action-btn.liked {
  color: #E85D75;
}

.comment-action-btn.liked i {
  animation: heartPop 0.35s ease;
}

/* ---------- View replies toggle ---------- */
.comment-view-replies {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  margin-top: 8px;
  background: transparent;
  border: none;
  color: var(--pc-accent);
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
  border-radius: 8px;
  transition: background 0.2s ease;
}

.comment-view-replies:hover {
  background: var(--pc-accent-soft);
}

.comment-view-replies i {
  font-size: 10px;
  transition: transform 0.2s ease;
}

/* ---------- Replies container ---------- */
.comment-replies {
  margin-top: 8px;
  animation: slideDown 0.25s ease;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Small avatar for replies ---------- */
.comment-avatar-sm {
  width: 30px !important;
  height: 30px !important;
  font-size: 12px !important;
}

/* ---------- Reply banner in form ---------- */
.comment-reply-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--pc-accent-soft);
  border-top: 1px solid var(--pc-border-light);
  border-radius: 10px 10px 0 0;
  font-size: 12px;
  color: var(--pc-text-2);
  font-weight: 600;
}

.comment-reply-banner i:first-child {
  color: var(--pc-accent);
  font-size: 13px;
}

.comment-reply-banner strong {
  color: var(--pc-text);
  font-weight: 800;
}

.comment-reply-cancel {
  margin-left: auto;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: transparent;
  border: none;
  color: var(--pc-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.comment-reply-cancel:hover {
  background: var(--pc-danger-soft);
  color: var(--pc-danger);
}

/* ---------- Fix comment-form when reply banner shown ---------- */
.comment-reply-banner + .comment-form {
  border-top: none !important;
  border-radius: 0 0 12px 12px;
  margin-top: 0 !important;
}

/* ---------- Dark mode ---------- */
body.dark-mode .comment-reply-item {
  border-left-color: #3A2C22;
}

body.dark-mode .comment-delete-btn:hover {
  background: #450A0A;
  color: #FCA5A5;
}

body.dark-mode .comment-action-btn:hover {
  background: #241A14;
}

body.dark-mode .comment-reply-banner {
  background: #0A2436;
}

body.dark-mode .comment-view-replies:hover {
  background: #0A2436;
}

/* ---------- Responsive ---------- */
@media (max-width: 480px) {
  .comment-meta-row {
    gap: 10px;
  }

  .comment-action-btn {
    font-size: 10.5px;
    padding: 3px 6px;
  }

  .comment-delete-btn {
    width: 24px;
    height: 24px;
    font-size: 10px;
  }

  .comment-reply-item {
    margin-left: 4px;
    padding-left: 8px;
  }
}