/* PawTrack Components Stylesheet */

/* --- Toast System --- */
.toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 400px;
  width: calc(100% - 40px);
  pointer-events: none;
}

@media (max-width: 860px) {
  .toast-container {
    bottom: 82px;
    right: 12px;
    left: 12px;
    width: auto;
    max-width: 100%;
  }
}

.toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-lg);
  color: var(--text-main);
  animation: slide-in-toast 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  transition: var(--transition);
}

.toast.toast-success {
  border-left: 4px solid var(--success);
}
.toast.toast-danger {
  border-left: 4px solid var(--danger);
}
.toast.toast-warning {
  border-left: 4px solid var(--warning);
}
.toast.toast-info {
  border-left: 4px solid var(--info);
}

@keyframes slide-in-toast {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* --- Section Headers & Grid Layouts --- */
.view-header {
  margin-bottom: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.view-title-group {
  flex: 1;
  min-width: 260px;
}

.view-title-group h1 {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  margin-bottom: 0.25rem;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.view-subtitle {
  color: var(--text-muted);
  font-size: clamp(0.82rem, 1.8vw, 0.9rem);
  max-width: 760px;
  line-height: 1.45;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.stat-card {
  padding: 1.15rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
  user-select: none;
  -webkit-user-select: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.stat-card:active {
  transform: scale(0.97);
}

.stat-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}

.stat-icon i, .stat-icon svg {
  width: 20px;
  height: 20px;
}

.stat-info {
  display: flex;
  flex-direction: column;
}

.stat-info .stat-value {
  font-size: 1.5rem;
  font-weight: 800;
  font-family: var(--font-heading);
  line-height: 1.1;
}

.stat-info .stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Floating Pop Bubble Tooltip on Tap */
.stat-bubble-tooltip {
  position: fixed;
  background: #2f1a0e;
  color: #ffffff;
  border: 1px solid rgba(234, 157, 30, 0.45);
  box-shadow: 0 10px 24px rgba(12, 6, 3, 0.75), 0 2px 6px rgba(12, 6, 3, 0.35);
  border-radius: var(--radius-md);
  padding: 8px 14px;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
  pointer-events: none;
  z-index: 999999 !important;
  animation: bubble-pop-in 0.28s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

[data-theme="light"] .stat-bubble-tooltip {
  background: #241208;
  color: #ffffff;
  border: 1px solid #54280e;
  box-shadow: 0 8px 20px rgba(36, 18, 8, 0.25);
}

.stat-bubble-arrow {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 7px solid #2f1a0e;
}

[data-theme="light"] .stat-bubble-arrow {
  border-top-color: #241208;
}

.stat-bubble-tooltip.fade-out {
  animation: bubble-pop-out 0.25s ease-out forwards;
}

@keyframes bubble-pop-in {
  0% {
    opacity: 0;
    transform: translate(-50%, -85%) scale(0.7);
  }
  65% {
    transform: translate(-50%, -105%) scale(1.08);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -100%) scale(1);
  }
}

@keyframes bubble-pop-out {
  0% {
    opacity: 1;
    transform: translate(-50%, -100%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -88%) scale(0.8);
  }
}

/* --- Owner Hero Layouts --- */
.owner-hero-layout {
  display: grid;
  gap: 1.25rem;
  margin-bottom: 2rem;
  align-items: stretch;
}

.owner-hero-layout.impound-active {
  grid-template-columns: 1fr 300px;
}

.owner-hero-layout.status-active {
  grid-template-columns: 1.25fr 1fr;
}

@media (max-width: 1080px) {
  .owner-hero-layout.impound-active,
  .owner-hero-layout.status-active {
    grid-template-columns: 1fr;
  }
}

.owner-hero-layout .impound-alert-banner {
  margin-bottom: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.owner-status-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-left: 4px solid var(--primary);
  height: 100%;
}

/* 1-column stack beside Impoundment Notice */
.stats-sidebar-col-1 {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  height: 100%;
  justify-content: space-between;
}

.stats-sidebar-col-1 .stat-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1.15rem;
  flex: 1;
}

/* 2x2 grid beside Pet Recovery Network Active status */
.stats-sidebar-grid-2x2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  height: 100%;
}

.stats-sidebar-grid-2x2 .stat-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem;
  height: 100%;
}

/* Mobile Stat Cards in a Single Row (Icon + Number, Fully Responsive & Flexible across all Device Sizes) */
@media (max-width: 768px) {
  .stats-grid,
  .stats-sidebar-grid-2x2,
  .stats-sidebar-col-1 {
    display: flex !important;
    flex-direction: row !important;
    gap: clamp(4px, 1.2vw, 8px) !important;
    width: 100% !important;
    margin-bottom: 1.25rem !important;
    box-sizing: border-box !important;
    overflow-x: auto !important;
    scrollbar-width: none !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .stats-grid::-webkit-scrollbar,
  .stats-sidebar-grid-2x2::-webkit-scrollbar,
  .stats-sidebar-col-1::-webkit-scrollbar {
    display: none !important;
  }

  .stat-card {
    flex: 1 1 0% !important;
    min-width: 0 !important;
    padding: 0.55rem clamp(4px, 1vw, 8px) !important;
    gap: clamp(3px, 0.9vw, 6px) !important;
    justify-content: center !important;
    align-items: center !important;
    cursor: pointer !important;
    border-radius: var(--radius-md) !important;
    box-sizing: border-box !important;
  }

  .stat-card:last-child {
    flex: 1.25 1 0% !important;
  }

  .stat-card .stat-icon {
    width: clamp(26px, 6.8vw, 32px) !important;
    height: clamp(26px, 6.8vw, 32px) !important;
    border-radius: 6px !important;
    flex-shrink: 0 !important;
  }

  .stat-card .stat-icon i,
  .stat-card .stat-icon svg {
    width: clamp(14px, 3.6vw, 16px) !important;
    height: clamp(14px, 3.6vw, 16px) !important;
  }

  .stat-info {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 0 !important;
    flex-shrink: 1 !important;
  }

  .stat-info .stat-value {
    font-size: clamp(0.95rem, 3.2vw, 1.25rem) !important;
    line-height: 1 !important;
    font-weight: 800 !important;
    white-space: nowrap !important;
    letter-spacing: -0.02em !important;
  }

  .stat-card:last-child .stat-info .stat-value {
    font-size: clamp(0.82rem, 2.8vw, 1.1rem) !important;
  }

  /* Hide the text label by default on mobile */
  .stat-info .stat-label {
    display: none !important;
  }
}

@media (max-width: 480px) {
  .stats-grid,
  .stats-sidebar-grid-2x2,
  .stats-sidebar-col-1 {
    gap: 4px !important;
  }

  .stat-card {
    padding: 0.45rem 3px !important;
    gap: 3px !important;
    min-width: 46px !important;
  }

  .stat-card:last-child {
    min-width: 58px !important;
  }

  .stat-card .stat-icon {
    width: 24px !important;
    height: 24px !important;
    border-radius: 5px !important;
  }

  .stat-card .stat-icon i,
  .stat-card .stat-icon svg {
    width: 13px !important;
    height: 13px !important;
  }

  .stat-info .stat-value {
    font-size: clamp(0.82rem, 3vw, 1.05rem) !important;
  }

  .stat-card:last-child .stat-info .stat-value {
    font-size: clamp(0.74rem, 2.5vw, 0.92rem) !important;
  }
}

@media (max-width: 360px) {
  .stats-grid,
  .stats-sidebar-grid-2x2,
  .stats-sidebar-col-1 {
    gap: 3px !important;
  }

  .stat-card {
    padding: 0.38rem 2px !important;
    gap: 2px !important;
    min-width: 42px !important;
  }

  .stat-card:last-child {
    min-width: 54px !important;
  }

  .stat-card .stat-icon {
    width: 20px !important;
    height: 20px !important;
    border-radius: 4px !important;
  }

  .stat-card .stat-icon i,
  .stat-card .stat-icon svg {
    width: 11px !important;
    height: 11px !important;
  }

  .stat-info .stat-value {
    font-size: 0.8rem !important;
  }

  .stat-card:last-child .stat-info .stat-value {
    font-size: 0.72rem !important;
  }
}

/* --- Impoundment Alert Card (Pet Owner View) --- */
.impound-alert-banner {
  background: rgba(184, 84, 16, 0.22);
  border: 1px solid rgba(234, 157, 30, 0.45);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-bottom: 1.75rem;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.impound-alert-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--primary);
}

.impound-alert-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.alert-title-tag {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: #ea9d1e;
}

.countdown-timer-box {
  background: var(--bg-surface-elevated);
  border: 1px solid rgba(234, 157, 30, 0.35);
  padding: 6px 14px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.timer-digits {
  font-family: 'Courier New', Courier, monospace;
  font-weight: 800;
  font-size: 1.05rem;
  color: #ea9d1e;
  letter-spacing: 0.05em;
}

.impound-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  gap: 1rem;
  background: rgba(0, 0, 0, 0.3);
  padding: 1rem;
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
}

.detail-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.detail-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  font-weight: 600;
}

.detail-value {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
}

.claim-checklist {
  background: rgba(35, 19, 10, 0.9);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-top: 0.75rem;
  border: 1px solid rgba(234, 157, 30, 0.2);
}

.claim-checklist h4 {
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.claim-checklist ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.4rem;
}

.claim-checklist li {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.claim-checklist li i {
  color: var(--primary);
}

/* --- Pet Card Grid --- */
.pets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 310px), 1fr));
  gap: 1.25rem;
}

.pet-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  transition: transform 0.2s, box-shadow 0.2s;
}

.pet-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.pet-card-image-wrap {
  position: relative;
  height: 180px;
  width: 100%;
  overflow: hidden;
  background: #1e293b;
  cursor: pointer;
}

.pet-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.pet-card-image-wrap:hover .pet-card-img {
  transform: scale(1.06);
}

.pet-img-zoom-hint {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-glass);
  color: #fff;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 3;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.pet-card-image-wrap:hover .pet-img-zoom-hint {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.pet-badge-pos {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
}

.rfid-chip-pill {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(24, 13, 7, 0.95);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(234, 157, 30, 0.4);
  padding: 3px 9px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  color: #ea9d1e;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.pet-card-body {
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.85rem;
}

.pet-name-species {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.pet-name {
  font-size: 1.15rem;
  font-weight: 700;
}

.pet-breed {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.pet-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.pet-meta-item {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  background: var(--bg-surface-elevated);
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(234, 157, 30, 0.12);
}

.pet-card-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: auto;
  border-top: 1px solid var(--border-subtle);
  padding-top: 0.85rem;
  width: 100%;
  box-sizing: border-box;
}

.pet-card-actions .btn {
  padding: 7px 10px;
  font-size: 0.8rem;
  min-width: 0;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.pet-card-actions .btn i,
.pet-card-actions .btn svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* --- Shelter RFID Scanner HUD Terminal --- */
.scanner-hud-container {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (max-width: 960px) {
  .scanner-hud-container {
    grid-template-columns: 1fr;
  }
}

.scanner-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 1.25rem;
  position: relative;
  background: radial-gradient(circle at center, rgba(234, 157, 30, 0.12) 0%, var(--bg-card) 75%);
  border: 1px solid var(--border-glass);
}

.scanner-radar-disk {
  position: relative;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 2px dashed rgba(234, 157, 30, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  cursor: pointer;
  transition: var(--transition);
}

.scanner-pulse-wave {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 1.5px solid rgba(234, 157, 30, 0.5);
  animation: pulse-scanner 2.5s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
  pointer-events: none;
}

.scanner-pulse-wave:nth-child(2) {
  animation-delay: 0.8s;
}

@keyframes pulse-scanner {
  0% { transform: scale(0.6); opacity: 0.85; }
  100% { transform: scale(1.4); opacity: 0; }
}

.rfid-core-chip {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: linear-gradient(135deg, #b85410, #54280e);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ea9d1e;
  box-shadow: var(--shadow-md);
  z-index: 2;
}

.scanner-frequency-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 4px 10px;
  background: rgba(234, 157, 30, 0.18);
  border: 1px solid rgba(234, 157, 30, 0.35);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  color: #ea9d1e;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.hardware-led-status {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ea9d1e;
  display: inline-block;
}

.demo-rfid-picker {
  width: 100%;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
  text-align: left;
}

.demo-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.5rem;
}

.demo-tag-chip {
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  font-size: 0.75rem;
  font-family: monospace;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-muted);
}

.demo-tag-chip:hover {
  border-color: var(--primary);
  color: #ea9d1e;
  background: var(--primary-light);
}

/* Scanner Results Card */
.scan-result-card {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

.scan-idle-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 250px;
  text-align: center;
  color: var(--text-dim);
}

.scan-idle-state i, .scan-idle-state svg {
  width: 48px;
  height: 48px;
  margin-bottom: 0.75rem;
  opacity: 0.4;
}

/* --- Impoundment Ledger Table --- */
.table-container {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-glass);
  -webkit-overflow-scrolling: touch;
}

.ledger-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.85rem;
  min-width: 680px;
}

.ledger-table th {
  background: var(--bg-surface-elevated);
  padding: 10px 14px;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ledger-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-main);
  vertical-align: middle;
}

.ledger-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* --- Map View --- */
.map-layout-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 1.25rem;
  min-height: 520px;
}

@media (max-width: 900px) {
  .map-layout-grid {
    grid-template-columns: 1fr;
  }

  .map-sidebar-list {
    max-height: 320px;
    order: 2;
  }

  #public-map-container {
    min-height: 380px;
  }
}

.map-sidebar-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-height: 550px;
  overflow-y: auto;
  padding-right: 0.25rem;
  -webkit-overflow-scrolling: touch;
}

#public-map-container {
  width: 100%;
  height: 100%;
  min-height: 480px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-glass);
  overflow: hidden;
  z-index: 1;
}

/* Custom High-Visibility Map Pins */
.custom-map-icon-wrap {
  background: transparent;
  border: none;
}

.map-pin-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 0.76rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(12, 6, 3, 0.6);
  border: 2px solid #ffffff;
  width: max-content;
  max-width: none;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.map-pin-bubble {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 150px;
  max-width: 230px;
  padding: 4px 8px 4px 4px;
  border: 2px solid #fff;
  border-radius: 999px;
  color: #fff;
  box-shadow: 0 4px 12px rgba(12, 6, 3, 0.6);
  font-size: 0.72rem;
  line-height: 1.15;
}

.map-pin-bubble img {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 50%;
  object-fit: cover;
}

.map-pin-bubble span {
  min-width: 0;
  overflow: hidden;
}

.map-pin-bubble strong,
.map-pin-bubble small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.map-pin-bubble small {
  font-size: 0.63rem;
  opacity: 0.9;
}

.missing-pet-bubble {
  background: #ba3820;
}

.possible-sighting-bubble {
  background: #16a34a;
}

.map-pin-pill:hover {
  transform: scale(1.06);
}

.map-pin-pill.shelter-pin {
  background: #54280e;
  color: #ffffff;
}

/* Shelter & Facility Icon-Only Map Pin */
.shelter-icon-pin {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #7c3aed 0%, #54280e 100%);
  background-color: #54280e;
  color: #ffffff;
  border: 2px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.45), 0 0 0 2px rgba(84, 40, 14, 0.4);
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.shelter-icon-pin:hover {
  transform: scale(1.18);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.6), 0 0 0 4px rgba(234, 157, 30, 0.5);
  background-color: #ba3820;
}

.shelter-icon-pin svg {
  width: 16px;
  height: 16px;
  stroke: #ffffff;
  flex-shrink: 0;
}

/* Shelter Hover Tooltip */
.leaflet-tooltip.shelter-hover-tooltip {
  background: var(--bg-surface-elevated, #23130a) !important;
  color: var(--text-main, #ffffff) !important;
  border: 1px solid var(--border-glass, rgba(234, 157, 30, 0.3)) !important;
  border-radius: var(--radius-md, 8px) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5) !important;
  padding: 8px 12px !important;
  font-family: var(--font-body, inherit) !important;
  font-size: 0.8rem !important;
  line-height: 1.35 !important;
  max-width: 260px !important;
  pointer-events: none !important;
}

.leaflet-tooltip-top.shelter-hover-tooltip:before {
  border-top-color: var(--bg-surface-elevated, #23130a) !important;
}

.shelter-tooltip-header {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--primary, #ea9d1e);
  margin-bottom: 2px;
}

.shelter-tooltip-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main, #ffffff);
  line-height: 1.25;
  margin-bottom: 3px;
}

.shelter-tooltip-addr {
  font-size: 0.74rem;
  color: var(--text-muted, #a89f91);
  margin-bottom: 3px;
}

.shelter-tooltip-phone {
  font-size: 0.74rem;
  color: var(--text-main, #ffffff);
  font-weight: 600;
}

.shelter-tooltip-hint {
  font-size: 0.68rem;
  color: var(--text-dim, #786d5f);
  margin-top: 4px;
  border-top: 1px solid var(--border-subtle, rgba(234, 157, 30, 0.15));
  padding-top: 3px;
  font-style: italic;
}

[data-theme="light"] .leaflet-tooltip.shelter-hover-tooltip {
  background: #ffffff !important;
  color: #0f172a !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15) !important;
}

[data-theme="light"] .leaflet-tooltip-top.shelter-hover-tooltip:before {
  border-top-color: #ffffff !important;
}

[data-theme="light"] .shelter-tooltip-title {
  color: #0f172a !important;
}

[data-theme="light"] .shelter-tooltip-addr {
  color: #64748b !important;
}

[data-theme="light"] .shelter-tooltip-phone {
  color: #0f172a !important;
}

.map-pin-pill.pet-lost-pin {
  background: #ba3820;
  color: #ffffff;
}

.map-pin-pill.pet-impounded-pin {
  background: #b85410;
  color: #ffffff;
}

.map-pin-pill.pet-safe-pin {
  background: #ea9d1e;
  color: #180d07;
}

.map-pin-pill.pet-reunited-pin {
  background: #ffffff;
  color: #241208;
  border-color: #ea9d1e;
}

.map-pin-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ffffff;
  display: inline-block;
  flex-shrink: 0;
}

.map-pin-label {
  font-family: var(--font-heading);
  letter-spacing: 0.01em;
}

/* Leaflet Popup Container */
.leaflet-popup-content-wrapper {
  background: var(--bg-surface-elevated) !important;
  color: var(--text-main) !important;
  border: 1px solid var(--border-glass) !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: var(--shadow-lg) !important;
  padding: 2px !important;
}

.leaflet-popup-content {
  margin: 10px 14px !important;
  line-height: 1.4 !important;
  color: var(--text-main) !important;
  min-width: 220px !important;
  font-family: var(--font-body) !important;
}

.leaflet-popup-tip {
  background: var(--bg-surface-elevated) !important;
}

[data-theme="light"] .leaflet-popup-content-wrapper {
  background: #ffffff !important;
  color: #0f172a !important;
  border: 1px solid #cbd5e1 !important;
}

[data-theme="light"] .leaflet-popup-tip {
  background: #ffffff !important;
}

.map-popup-card {
  font-family: var(--font-body);
}

/* --- 3D Filament Tag Customizer & Hardware Studio --- */
.hardware-studio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 900px) {
  .hardware-studio-grid {
    grid-template-columns: 1fr;
  }
}

.filament-preview-stage {
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 380px;
  background: radial-gradient(circle at center, rgba(234, 157, 30, 0.14) 0%, var(--bg-card) 75%);
  position: relative;
  overflow: hidden;
}

/* --- Hardware Collar Tag Prototype (Real White Disc with Keychain) --- */
.tag-preview-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  padding-top: 10px;
  user-select: none;
}

.tag-keychain-rig {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: -12px;
  z-index: 5;
  pointer-events: none;
}

.tag-keychain-splitring {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 4px solid #c8d0d8;
  background: transparent;
  box-shadow: 
    0 4px 10px rgba(0, 0, 0, 0.5),
    inset 0 1.5px 2px rgba(255, 255, 255, 0.9),
    inset 0 -1.5px 2px rgba(70, 75, 82, 0.6);
  position: relative;
}

.tag-keychain-splitring::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 3px;
  right: 3px;
  bottom: 2px;
  border-radius: 50%;
  border: 1px dashed rgba(160, 170, 180, 0.6);
  pointer-events: none;
}

.tag-keychain-chain {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: -4px;
}

.tag-chain-link {
  width: 10px;
  height: 14px;
  border-radius: 5px;
  border: 2.5px solid #a8b2bc;
  background: transparent;
  margin-top: -4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.35);
}

.tag-jumpring {
  width: 13px;
  height: 18px;
  border-radius: 7px;
  border: 2.5px solid #9aa4ae;
  background: transparent;
  margin-top: -4px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
  z-index: 6;
}

.tag-3d-model {
  width: 172px;
  height: 172px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 28%, #ffffff 0%, #f7f7fa 55%, #e0e0e6 100%);
  box-shadow: 
    0 20px 42px rgba(0, 0, 0, 0.52),
    0 6px 14px rgba(0, 0, 0, 0.3),
    inset 0 3px 6px rgba(255, 255, 255, 1),
    inset 0 -4px 10px rgba(0, 0, 0, 0.15),
    inset 0 0 0 1.5px rgba(225, 225, 235, 0.95);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: rotate(-3deg);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
  cursor: pointer;
}

.tag-3d-model:hover {
  transform: rotate(0deg) scale(1.05);
  box-shadow: 
    0 26px 52px rgba(0, 0, 0, 0.58),
    0 10px 20px rgba(0, 0, 0, 0.35),
    inset 0 3px 7px rgba(255, 255, 255, 1),
    inset 0 -5px 12px rgba(0, 0, 0, 0.18),
    inset 0 0 0 1.5px rgba(235, 235, 245, 1);
}

.tag-hole {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg-card, #1c0e08);
  box-shadow: 
    inset 0 2px 4px rgba(0, 0, 0, 0.9),
    0 1px 2px rgba(255, 255, 255, 0.9);
  position: absolute;
  top: 13px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
}

.tag-emboss-graphic {
  width: 108px;
  height: 108px;
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 2.5px 3px rgba(0, 0, 0, 0.45)) drop-shadow(0 0.5px 0.5px rgba(0, 0, 0, 0.8));
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.35s ease;
}

.tag-emboss-graphic.tag-morph-out {
  opacity: 0;
  transform: scale(0.85) rotate(-8deg);
}

.tag-emboss-graphic.tag-morph-in {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

.tag-svg-emblem {
  width: 100%;
  height: 100%;
  display: block;
}

.tag-nfc-subtle-indicator {
  position: absolute;
  bottom: 12px;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #8c8c9a;
  text-transform: uppercase;
  opacity: 0.75;
}

/* Pattern Variant Selector */
.tag-pattern-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-surface-elevated, rgba(35, 19, 10, 0.65));
  border: 1px solid var(--border-subtle, rgba(234, 157, 30, 0.25));
  padding: 4px;
  border-radius: 999px;
  margin-top: 1.25rem;
}

.tag-pattern-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
}

.tag-pattern-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.06);
}

.tag-pattern-btn.active {
  background: var(--primary, #ea9d1e);
  color: #180d07;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(234, 157, 30, 0.35);
}

/* Legacy styles preserved for compatibility */
.tag-emboss-logo {
  color: #111111;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 26px;
}

.tag-filament-swatches {
  display: none;
}

.swatch-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
}

.swatch-btn.active {
  border-color: #ffffff;
}

/* --- Modals & Popups --- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(12, 6, 3, 0.86);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(12px, env(safe-area-inset-bottom, 12px)) 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  overflow-y: auto;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  max-width: 580px;
  width: 100%;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  box-shadow: var(--shadow-lg);
  transform: scale(0.96);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  margin: auto;
}

.modal-box::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.modal-overlay.active .modal-box {
  transform: scale(1);
}

.modal-header {
  padding: 1.15rem 1.35rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-body {
  padding: 1.35rem;
}

.modal-footer {
  padding: 1.15rem 1.35rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

@media (max-width: 480px) {
  .modal-box {
    border-radius: var(--radius-lg);
    max-height: calc(100vh - 24px);
  }
  .modal-header,
  .modal-body,
  .modal-footer {
    padding: 1rem;
  }
  .modal-footer {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    gap: 8px;
  }
  .modal-footer .btn {
    flex: 1;
    min-width: 0;
  }
}

/* Form Styles */
.form-group {
  margin-bottom: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* Photo Upload Component */
.photo-upload-zone {
  border: 2px dashed var(--border-glass);
  border-radius: var(--radius-md);
  padding: 1.15rem;
  background: var(--bg-surface-elevated);
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 110px;
}

.photo-upload-zone:hover,
.photo-upload-zone.drag-over {
  border-color: var(--primary);
  background: var(--primary-light);
}

.photo-upload-prompt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  pointer-events: none;
}

.photo-upload-icon-box {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ea9d1e;
}

.photo-upload-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.upload-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
}

.upload-subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.photo-upload-preview {
  position: relative;
  width: 100%;
  max-height: 180px;
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
}

.photo-upload-preview img {
  width: 100%;
  max-height: 180px;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.photo-upload-overlay {
  position: absolute;
  bottom: 0.5rem;
  right: 0.5rem;
  display: flex;
  gap: 0.5rem;
}

.btn-change-photo,
.btn-remove-photo {
  background: rgba(24, 13, 7, 0.92);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-glass);
  color: #fff;
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: var(--transition);
}

.btn-change-photo:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #180d07;
}

.btn-remove-photo {
  padding: 0.35rem 0.5rem;
}

.btn-remove-photo:hover {
  background: var(--danger);
  border-color: var(--danger);
  color: #fff;
}

/* Light mode overrides for photo upload */
[data-theme="light"] .photo-upload-zone {
  background: #faf6f2;
  border-color: #d9c1ad;
}

[data-theme="light"] .photo-upload-zone:hover,
[data-theme="light"] .photo-upload-zone.drag-over {
  background: #fbeee4;
  border-color: #b85410;
}

[data-theme="light"] .photo-upload-icon-box {
  background: #f4eae0;
  color: #b85410;
}

[data-theme="light"] .upload-title {
  color: #241208;
}

[data-theme="light"] .upload-subtitle {
  color: #54280e;
}

/* Mock Phone SMS Screen */
.phone-mockup {
  width: 100%;
  max-width: 330px;
  border-radius: 32px;
  background: #180d07;
  padding: 10px;
  border: 3px solid #b85410;
  box-shadow: var(--shadow-lg);
  margin: 0 auto;
}

.phone-screen {
  background: #23130a;
  border-radius: 24px;
  padding: 1rem;
  min-height: 360px;
  display: flex;
  flex-direction: column;
}

.sms-bubble {
  background: #2f1a0e;
  border-left: 3px solid var(--primary);
  border-radius: 12px;
  padding: 12px;
  margin-top: 0.75rem;
  font-size: 0.8rem;
  line-height: 1.4;
  color: #ffffff;
}

/* ==========================================================================
   Light Mode Plain Color Overrides (Strictly No Neon Colors or Glows)
   ========================================================================== */
[data-theme="light"] .impound-alert-banner {
  background: #fff6ed;
  border: 1px solid #ba5511;
  box-shadow: 0 1px 3px rgba(36, 18, 8, 0.07);
}

[data-theme="light"] .alert-title-tag {
  color: #54280e;
}

[data-theme="light"] .countdown-timer-box {
  background: #ffffff;
  border: 1px solid #d9c1ad;
}

[data-theme="light"] .timer-digits {
  color: #b85410;
}

[data-theme="light"] .impound-details-grid {
  background: #ffffff;
  border: 1px solid #e6d5c6;
}

[data-theme="light"] .claim-checklist {
  background: #ffffff;
  border: 1px solid #e6d5c6;
}

[data-theme="light"] .badge-safe {
  background: #fbeee4;
  color: #b85410;
  border: 1px solid #d9c1ad;
}

[data-theme="light"] .badge-lost {
  background: #faeae8;
  color: #9c2818;
  border: 1px solid #f0cec5;
}

[data-theme="light"] .badge-impounded {
  background: #fff5e8;
  color: #b85410;
  border: 1px solid #ebd4be;
}

[data-theme="light"] .badge-reunited {
  background: #f5eae0;
  color: #54280e;
  border: 1px solid #d9c1ad;
}

[data-theme="light"] .rfid-chip-pill {
  background: #f5eae0;
  color: #54280e;
  border: 1px solid #d9c1ad;
}

[data-theme="light"] .scanner-box {
  background: #ffffff;
  border: 1px solid #e6d5c6;
}

[data-theme="light"] .scanner-radar-disk {
  border: 2px dashed #b85410;
}

[data-theme="light"] .rfid-core-chip {
  background: #b85410;
  color: #ffffff;
  box-shadow: none;
}

[data-theme="light"] .scanner-frequency-tag {
  background: #fbeee4;
  color: #b85410;
  border: 1px solid #d9c1ad;
}

[data-theme="light"] .hardware-led-status {
  background: #b85410;
  box-shadow: none;
}

[data-theme="light"] .filament-preview-stage {
  background: #faf6f2;
}

[data-theme="light"] .phone-mockup {
  background: #f4eae0;
  border-color: #d9c1ad;
}

[data-theme="light"] .phone-screen {
  background: #ffffff;
}

[data-theme="light"] .sms-bubble {
  background: #faf6f2;
  color: #241208;
  border-left-color: #b85410;
  border: 1px solid #e6d5c6;
  border-left-width: 3px;
}

/* ==========================================================================
   Image Lightbox Modal (Centered Center-Middle Full Screen)
   ========================================================================== */
.image-lightbox-overlay,
.image-lightbox-modal {
  position: fixed !important;
  inset: 0 !important;
  z-index: 10000 !important;
  background: rgba(12, 6, 3, 0.9) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 1.5rem !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.image-lightbox-overlay.active,
.image-lightbox-modal.active {
  opacity: 1 !important;
  pointer-events: auto !important;
}

.lightbox-dialog {
  position: relative;
  max-width: 820px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: scale(0.92);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  margin: auto;
}

.image-lightbox-overlay.active .lightbox-dialog,
.image-lightbox-modal.active .lightbox-dialog {
  transform: scale(1) !important;
}

.lightbox-image-wrapper {
  position: relative;
  max-height: 75vh;
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-xl, 16px);
  overflow: hidden;
  background: #090d16;
  border: 1px solid var(--border-glass, rgba(255,255,255,0.12));
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
}

.lightbox-img {
  max-height: 72vh;
  max-width: 100%;
  object-fit: contain;
  display: block;
}

.lightbox-close-btn {
  position: absolute;
  top: -16px;
  right: -16px;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full, 9999px);
  background: var(--bg-surface-elevated, #ffffff);
  border: 1px solid var(--border-glass, #cbd5e1);
  color: var(--text-main, #1e293b);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: var(--shadow-lg, 0 10px 25px rgba(0,0,0,0.3));
  transition: all 0.15s ease;
}

.lightbox-close-btn:hover {
  background: var(--danger, #dc2626);
  border-color: var(--danger, #dc2626);
  color: #fff;
  transform: scale(1.08);
}

.lightbox-details {
  margin-top: 1rem;
  text-align: center;
  background: var(--bg-surface, #ffffff);
  border: 1px solid var(--border-glass, #cbd5e1);
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius-full, 9999px);
  box-shadow: var(--shadow-md, 0 4px 12px rgba(0,0,0,0.15));
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lightbox-title {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-main, #1e293b);
}

.lightbox-caption {
  font-size: 0.85rem;
  color: var(--text-muted, #64748b);
}

[data-theme="light"] .image-lightbox-overlay,
[data-theme="light"] .image-lightbox-modal {
  background: rgba(15, 23, 42, 0.85) !important;
}

[data-theme="light"] .lightbox-details {
  background: #ffffff;
  border-color: #cbd5e1;
}

[data-theme="light"] .lightbox-close-btn {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #0f172a;
}

/* ==========================================================================
   Facebook-Style Notification Dropdown & User Profile Dropdown
   ========================================================================== */

/* Clean Log In Button (Exact 38px height matching icons) */
.header-login-clean-btn {
  height: 38px;
  min-height: 38px;
  max-height: 38px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface-elevated, #ffffff);
  color: var(--text-main, #1e293b);
  border: 1px solid var(--border-subtle, #cbd5e1);
  border-radius: 99px;
  padding: 0 16px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  transition: all 0.15s ease;
  user-select: none;
  line-height: 1;
}

.header-login-clean-btn:hover {
  background: var(--bg-surface, #f8fafc);
  border-color: var(--primary, #c2410c);
  color: var(--primary, #c2410c);
  transform: translateY(-1px);
}

/* Logged In User Avatar Button (Exact 38px circle matching icon buttons) */
.header-user-pill-btn {
  width: 38px;
  min-width: 38px;
  max-width: 38px;
  height: 38px;
  min-height: 38px;
  max-height: 38px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface-elevated, #ffffff);
  border: 1px solid var(--border-subtle, #cbd5e1);
  border-radius: 50%;
  padding: 0;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  transition: all 0.15s ease;
  line-height: 1;
  flex-shrink: 0;
}

.header-user-pill-btn:hover {
  border-color: var(--primary, #c2410c);
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

.header-avatar-circle {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #1a73e8;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 800;
  flex: none;
  overflow: hidden;
}

.header-avatar-circle img,
.user-dropdown-avatar img,
#guardian-modal-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.header-user-name {
  display: none !important;
}

/* User Account Dropdown Menu */
.user-account-dropdown-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 290px;
  background: var(--bg-surface-elevated, #ffffff);
  border: 1px solid var(--border-subtle, #e2e8f0);
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14), 0 2px 6px rgba(0, 0, 0, 0.04);
  z-index: 2600;
  padding: 12px;
  display: flex;
  flex-direction: column;
  animation: dropdownFade 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.user-dropdown-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 4px 10px;
}

.user-dropdown-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #1a73e8;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 17px;
  font-weight: 800;
  flex: none;
  overflow: hidden;
}

.user-dropdown-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.user-dropdown-name {
  font-weight: 700;
  font-size: 13px;
  color: var(--text-main, #1e293b);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-dropdown-email {
  font-size: 11px;
  color: var(--text-muted, #64748b);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-dropdown-role {
  font-size: 9.5px;
  font-weight: 700;
  color: #15803d;
  background: #dcfce7;
  padding: 1px 6px;
  border-radius: 99px;
  width: max-content;
  margin-top: 3px;
}

.user-dropdown-divider {
  height: 1px;
  background: var(--border-subtle, #e2e8f0);
  margin: 6px 0;
}

.user-dropdown-menu {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.user-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--text-main, #1e293b);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: all 0.12s ease;
  width: 100%;
}

.user-dropdown-item:hover {
  background: var(--bg-surface, #f1f5f9);
  color: var(--primary, #c2410c);
}

.user-dropdown-logout {
  color: #dc2626 !important;
}

.user-dropdown-logout:hover {
  background: #fef2f2 !important;
}

/* 4-Digit Gmail PIN Verification Modal & UI */
.pin-input-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
}

.pin-digit-box {
  width: 52px;
  height: 60px;
  border-radius: 12px;
  border: 2px solid var(--border-subtle, #333846);
  background: var(--bg-surface, #121316);
  color: #ffffff;
  font-size: 26px;
  font-weight: 800;
  text-align: center;
  outline: none;
  transition: all 0.18s ease;
  font-family: 'Outfit', monospace;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.pin-digit-box:focus {
  border-color: #1a73e8;
  background: rgba(26, 115, 232, 0.08);
  box-shadow: 0 0 0 4px rgba(26, 115, 232, 0.25);
  transform: translateY(-2px);
}

.pin-digit-box.filled {
  border-color: #3b82f6;
  background: rgba(59, 130, 246, 0.12);
  color: #60a5fa;
}

.pin-digit-box.error {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
  color: #f87171;
  animation: pinShake 0.3s ease-in-out;
}

@keyframes pinShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

/* Gmail Incoming Notification Simulation Toast */
.gmail-sim-toast {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 500px;
  width: calc(100vw - 32px);
  background: #202124;
  color: #e8eaed;
  border: 1px solid #3c4043;
  border-radius: 12px;
  padding: 12px 16px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.1);
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: slideDownToast 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideDownToast {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
}

/* Facebook-Style Notification Dropdown */
.fb-dropdown-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 360px;
  max-width: calc(100vw - 20px);
  background: var(--bg-surface-elevated, #2f1a0e);
  border: 1px solid var(--border-subtle, rgba(234, 157, 30, 0.25));
  border-radius: 14px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5), 0 2px 6px rgba(0, 0, 0, 0.2);
  z-index: 2600;
  overflow: hidden;
  animation: dropdownFade 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="light"] .fb-dropdown-panel {
  background: var(--bg-surface-elevated, #ffffff);
  border: 1px solid var(--border-subtle, rgba(184, 84, 16, 0.25));
  box-shadow: 0 12px 32px rgba(36, 18, 8, 0.16), 0 2px 6px rgba(36, 18, 8, 0.06);
}

@media (max-width: 768px) {
  .fb-dropdown-panel,
  .user-account-dropdown-panel,
  #google-onetap-prompt {
    position: fixed !important;
    top: 56px !important;
    left: 10px !important;
    right: 10px !important;
    width: auto !important;
    max-width: 420px !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
    max-height: calc(100vh - 120px) !important;
    border-radius: 14px !important;
  }

  .fb-dropdown-body {
    max-height: calc(100vh - 180px) !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }
}

@media (max-width: 480px) {
  .fb-dropdown-panel,
  .user-account-dropdown-panel,
  #google-onetap-prompt {
    top: 50px !important;
    left: 8px !important;
    right: 8px !important;
    max-width: calc(100vw - 16px) !important;
    max-height: calc(100vh - 95px) !important;
    border-radius: 12px !important;
  }

  .fb-dropdown-header {
    padding: 10px 12px !important;
  }

  .fb-dropdown-body {
    padding: 6px 8px !important;
    max-height: calc(100vh - 150px) !important;
  }
}

@media (max-width: 350px) {
  .fb-dropdown-panel,
  .user-account-dropdown-panel,
  #google-onetap-prompt {
    left: 4px !important;
    right: 4px !important;
    top: 46px !important;
    max-width: calc(100vw - 8px) !important;
  }
}

@keyframes dropdownFade {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.fb-dropdown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-subtle, rgba(234, 157, 30, 0.18));
  background: var(--bg-surface-elevated, #2f1a0e);
}

[data-theme="light"] .fb-dropdown-header {
  border-bottom: 1px solid var(--border-subtle, #e2e8f0);
  background: var(--bg-surface-elevated, #ffffff);
}

/* Category Tabs (Priority vs Others) */
.fb-notif-category-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  background: var(--bg-surface, rgba(35, 19, 10, 0.65));
  border-bottom: 1px solid var(--border-subtle, rgba(234, 157, 30, 0.15));
}

[data-theme="light"] .fb-notif-category-bar {
  background: #f8fafc;
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

.fb-notif-tab-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted, #94a3b8);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
  user-select: none;
}

.fb-notif-tab-btn:hover {
  color: var(--text-main, #ffffff);
  background: var(--bg-surface-elevated, rgba(255, 255, 255, 0.06));
}

[data-theme="light"] .fb-notif-tab-btn:hover {
  color: var(--text-main, #0f172a);
  background: #f1f5f9;
}

.fb-notif-tab-btn.active {
  color: var(--text-main, #ffffff);
  background: var(--bg-surface-elevated, rgba(234, 157, 30, 0.18));
  border-color: var(--border-subtle, rgba(234, 157, 30, 0.35));
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .fb-notif-tab-btn.active {
  color: var(--primary, #b85410);
  background: #ffffff;
  border-color: rgba(184, 84, 16, 0.25);
  box-shadow: 0 2px 6px rgba(184, 84, 16, 0.08);
}

.fb-notif-tab-btn#notif-tab-priority.active {
  border-color: rgba(34, 197, 94, 0.45);
  background: rgba(34, 197, 94, 0.14);
  color: #22c55e;
}

[data-theme="light"] .fb-notif-tab-btn#notif-tab-priority.active {
  border-color: rgba(34, 197, 94, 0.4);
  background: rgba(34, 197, 94, 0.1);
  color: #16a34a;
}

.fb-notif-tab-title {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.fb-notif-tab-badge {
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 1;
  padding: 2px 6px;
  border-radius: 99px;
  background: var(--bg-surface-elevated, rgba(255, 255, 255, 0.15));
  color: var(--text-muted);
}

.fb-notif-tab-badge.badge-priority {
  background: #22c55e;
  color: #ffffff;
}

.fb-notif-tab-badge.badge-others {
  background: var(--primary, #ea9d1e);
  color: #ffffff;
}

.fb-notif-item {
  cursor: pointer;
  position: relative;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
  width: 100%;
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  padding: 0.75rem;
  border-radius: 10px;
}

/* Unread Standard Notification */
.fb-notif-item.unread-standard {
  background: var(--bg-surface, rgba(35, 19, 10, 0.75)) !important;
  border: 1px solid var(--border-subtle, rgba(234, 157, 30, 0.3)) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25) !important;
}

[data-theme="light"] .fb-notif-item.unread-standard {
  background: #ffffff !important;
  border: 1px solid rgba(184, 84, 16, 0.25) !important;
  box-shadow: 0 2px 6px rgba(184, 84, 16, 0.06) !important;
}

/* Unread Match Notification */
.fb-notif-item.unread-match {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(234, 157, 30, 0.08)) !important;
  border: 1px solid rgba(34, 197, 94, 0.45) !important;
  box-shadow: 0 2px 10px rgba(34, 197, 94, 0.18) !important;
}

[data-theme="light"] .fb-notif-item.unread-match {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.12), rgba(254, 243, 199, 0.4)) !important;
  border: 1px solid rgba(34, 197, 94, 0.4) !important;
  box-shadow: 0 2px 8px rgba(34, 197, 94, 0.1) !important;
}

/* Read Notification - Distinctly Changed Color & Subdued Surface */
.fb-notif-item.read-item {
  background: rgba(255, 255, 255, 0.025) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  box-shadow: none !important;
  opacity: 0.72;
}

[data-theme="light"] .fb-notif-item.read-item {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: none !important;
  opacity: 0.75;
}

.fb-notif-item:hover {
  transform: translateY(-1px);
}

.fb-notif-item.unread-standard:hover,
.fb-notif-item.unread-match:hover {
  background: var(--bg-surface-elevated, rgba(234, 157, 30, 0.15)) !important;
  border-color: var(--border-focus, rgba(234, 157, 30, 0.5)) !important;
}

[data-theme="light"] .fb-notif-item.unread-standard:hover,
[data-theme="light"] .fb-notif-item.unread-match:hover {
  background: #f1f5f9 !important;
  border-color: rgba(184, 84, 16, 0.35) !important;
}

.fb-notif-item.read-item:hover {
  opacity: 0.95 !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

[data-theme="light"] .fb-notif-item.read-item:hover {
  opacity: 0.95 !important;
  background: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
}

.fb-notif-item.read-item .notif-title-text {
  color: var(--text-muted, #cbd5e1) !important;
  font-weight: 600 !important;
}

[data-theme="light"] .fb-notif-item.read-item .notif-title-text {
  color: #475569 !important;
}

.fb-notif-item.read-item .notif-msg-text {
  color: var(--text-dim, #94a3b8) !important;
}

[data-theme="light"] .fb-notif-item.read-item .notif-msg-text {
  color: #64748b !important;
}

.fb-notif-item.read-item .notif-avatar-icon {
  background: rgba(255, 255, 255, 0.08) !important;
  color: var(--text-dim, #94a3b8) !important;
}

[data-theme="light"] .fb-notif-item.read-item .notif-avatar-icon {
  background: #e2e8f0 !important;
  color: #64748b !important;
}

.fb-notif-item.read-item .notif-rfid-pill {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: var(--text-dim, #94a3b8) !important;
}

[data-theme="light"] .fb-notif-item.read-item .notif-rfid-pill {
  background: #f1f5f9 !important;
  border: 1px solid #e2e8f0 !important;
  color: #64748b !important;
}

.notif-read-check-icon {
  font-size: 0.65rem;
  color: var(--text-dim, #94a3b8);
  display: inline-flex;
  align-items: center;
  gap: 3px;
  opacity: 0.7;
}

.fb-unread-pill {
  font-size: 10px;
  font-weight: 700;
  background: var(--primary, #c2410c);
  color: #fff;
  padding: 1px 6px;
  border-radius: 99px;
}

.fb-text-action-btn {
  background: transparent;
  border: none;
  color: var(--primary, #c2410c);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  padding: 2px 4px;
}

.fb-text-action-btn:hover {
  text-decoration: underline;
}

.fb-close-icon-btn {
  background: transparent;
  border: none;
  color: var(--text-muted, #64748b);
  font-size: 16px;
  cursor: pointer;
  padding: 2px 4px;
  line-height: 1;
}

.fb-dropdown-body {
  max-height: 380px;
  overflow-y: auto;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}


/* ==========================================================================
   Guided Onboarding Tutorial Modal
   ========================================================================== */
.tutorial-modal-box {
  max-width: 480px !important;
  width: 92% !important;
  padding: 24px 28px !important;
  border-radius: 20px !important;
  background: var(--bg-surface-elevated, #ffffff) !important;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2) !important;
  border: 1px solid var(--border-subtle, #e2e8f0) !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
  user-select: none !important;
}

.tutorial-top-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tutorial-step-indicator {
  font-size: 11px;
  font-weight: 700;
  color: var(--primary, #c2410c);
  background: rgba(194, 65, 12, 0.08);
  padding: 3px 10px;
  border-radius: 99px;
}

.tutorial-skip-btn {
  background: transparent;
  border: none;
  color: var(--text-muted, #64748b);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.15s ease;
}

.tutorial-skip-btn:hover {
  color: var(--text-main, #1e293b);
  background: var(--bg-surface, #f1f5f9);
}

.tutorial-slide-wrapper {
  position: relative;
  min-height: 220px;
}

.tutorial-slide {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  animation: slideFadeIn 0.25s ease;
}

.tutorial-slide.active {
  display: flex;
}

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

.tutorial-icon-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}

.tutorial-title {
  font-size: 19px;
  font-weight: 800;
  color: var(--text-main, #1e293b);
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}

.tutorial-description {
  font-size: 13px;
  color: var(--text-muted, #64748b);
  line-height: 1.55;
  margin: 0 0 16px;
  max-width: 400px;
}

.tutorial-feature-badge {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-main, #1e293b);
  background: var(--bg-surface, #f8fafc);
  border: 1px solid var(--border-subtle, #e2e8f0);
  border-radius: 99px;
  padding: 4px 12px;
}

.tutorial-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle, #e2e8f0);
  margin-top: 8px;
}

.tutorial-dots {
  display: flex;
  gap: 6px;
}

.tutorial-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-subtle, #cbd5e1);
  transition: all 0.2s ease;
}

.tutorial-dot.active {
  width: 22px;
  border-radius: 99px;
  background: var(--primary, #c2410c);
}

.tutorial-nav-btns {
  display: flex;
  gap: 8px;
}


/* ==========================================================================
   Anchored Step-by-Step Popover Bubble Tour
   ========================================================================== */
.tour-spotlight-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(2px);
  z-index: 2800;
  transition: opacity 0.2s ease;
  pointer-events: auto;
}

.tour-target-highlight {
  position: relative !important;
  z-index: 2850 !important;
  box-shadow: 0 0 0 4px #c2410c, 0 0 20px rgba(194, 65, 12, 0.6) !important;
  border-radius: 99px !important;
  transition: box-shadow 0.25s ease !important;
}

.tour-popover-bubble {
  position: absolute;
  z-index: 2900;
  width: 320px;
  max-width: calc(100vw - 32px);
  background: var(--bg-surface-elevated, #ffffff);
  border: 1px solid var(--border-subtle, #e2e8f0);
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2), 0 4px 12px rgba(0, 0, 0, 0.08);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  animation: popoverFadeIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

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

.tour-bubble-arrow {
  position: absolute;
  width: 14px;
  height: 14px;
  background: var(--bg-surface-elevated, #ffffff);
  border-left: 1px solid var(--border-subtle, #e2e8f0);
  border-top: 1px solid var(--border-subtle, #e2e8f0);
  transform: rotate(45deg);
  top: -8px;
  left: 28px;
}

.tour-bubble-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tour-bubble-step-badge {
  font-size: 10.5px;
  font-weight: 800;
  color: var(--primary, #c2410c);
  background: rgba(194, 65, 12, 0.08);
  padding: 2px 8px;
  border-radius: 99px;
}

.tour-bubble-skip {
  background: transparent;
  border: none;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-muted, #64748b);
  cursor: pointer;
  padding: 2px 4px;
}

.tour-bubble-skip:hover {
  color: var(--text-main, #1e293b);
  text-decoration: underline;
}

.tour-bubble-title {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--text-main, #1e293b);
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}

.tour-bubble-text {
  font-size: 12px;
  color: var(--text-muted, #64748b);
  line-height: 1.45;
  margin: 0;
}

.tour-bubble-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle, #e2e8f0);
  margin-top: 4px;
}

.tour-bubble-dots {
  display: flex;
  gap: 5px;
}

.bubble-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border-subtle, #cbd5e1);
  transition: all 0.2s ease;
}

.bubble-dot.active {
  width: 16px;
  border-radius: 99px;
  background: var(--primary, #c2410c);
}

.tour-bubble-actions {
  display: flex;
  gap: 6px;
}

/* ==========================================================================
   Pet Recovery Case Dossier & Timeline Stepper Styles
   ========================================================================== */
.case-timeline-stepper {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  position: relative;
  padding-left: 1.5rem;
  margin-top: 0.75rem;
}

.case-timeline-stepper::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--border-subtle);
}

.case-timeline-item {
  position: relative;
}

.case-timeline-dot {
  position: absolute;
  left: -1.5rem;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--primary);
  z-index: 2;
}

.case-timeline-dot.active {
  background: var(--primary);
  box-shadow: 0 0 0 3px rgba(234, 157, 30, 0.25);
}

.case-timeline-content {
  display: flex;
  flex-direction: column;
}

/* Community Sighting Map Pin Pulse */
.community-sighting-pin {
  border-color: #ea9d1e !important;
  color: #ea9d1e !important;
  background: rgba(24, 13, 7, 0.92) !important;
}

.community-sighting-pin .map-pin-dot {
  animation: sightingPulse 1.8s infinite;
}

@keyframes sightingPulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(234, 157, 30, 0.7);
  }
  70% {
    transform: scale(1.15);
    box-shadow: 0 0 0 8px rgba(234, 157, 30, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(234, 157, 30, 0);
  }
}

/* Analytics Middle Grid Responsive */
@media (max-width: 900px) {
  .analytics-middle-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ===================================================
   Owner Help Question Button & Guide Modal Styles
   =================================================== */
.btn-help-circle {
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(234, 157, 30, 0.12);
  border: 1.5px solid rgba(234, 157, 30, 0.4);
  color: #ea9d1e;
  cursor: pointer;
  padding: 0;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  position: relative;
  flex-shrink: 0;
}

[data-theme="light"] .btn-help-circle {
  background: rgba(184, 84, 16, 0.08);
  border-color: rgba(184, 84, 16, 0.35);
  color: #b85410;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.btn-help-circle:hover {
  background: linear-gradient(135deg, rgba(234, 157, 30, 0.25), rgba(184, 84, 16, 0.35));
  border-color: #ea9d1e;
  color: #ffffff;
  transform: translateY(-2px) scale(1.06);
  box-shadow: 0 6px 18px rgba(234, 157, 30, 0.35);
}

[data-theme="light"] .btn-help-circle:hover {
  background: linear-gradient(135deg, #ea9d1e, #b85410);
  border-color: #b85410;
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(184, 84, 16, 0.3);
}

.btn-help-circle:active {
  transform: scale(0.94);
}

.btn-help-circle svg,
.btn-help-circle i {
  width: 20px;
  height: 20px;
  stroke-width: 2.2px;
  transition: transform 0.2s ease;
}

.btn-help-circle:hover svg,
.btn-help-circle:hover i {
  transform: scale(1.1);
}

/* Owner Guide Modal */
.owner-guide-modal-box {
  max-width: 720px;
  width: 95%;
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--bg-surface, #140b07);
}

.guide-header-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(234, 157, 30, 0.15);
  border: 1px solid rgba(234, 157, 30, 0.3);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.owner-guide-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.85rem 1.35rem 0.6rem;
  background: var(--bg-surface-elevated, rgba(255, 255, 255, 0.03));
  border-bottom: none;
}

.guide-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 7px 14px;
  border-radius: 99px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted, #94a3b8);
  background: var(--bg-surface, rgba(255, 255, 255, 0.06));
  border: none !important;
  outline: none;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.guide-nav-btn:hover {
  background: rgba(234, 157, 30, 0.15);
  color: var(--text-main, #f8fafc);
  border: none !important;
  transform: translateY(-1px);
}

.guide-nav-btn.active {
  background: var(--primary, #ea9d1e) !important;
  color: #180d07 !important;
  border: none !important;
  font-weight: 800;
  box-shadow: 0 2px 10px rgba(234, 157, 30, 0.35);
  transform: scale(1.02);
}

[data-theme="light"] .guide-nav-btn {
  background: rgba(0, 0, 0, 0.05);
  color: var(--text-muted, #64748b);
  border: none !important;
}

[data-theme="light"] .guide-nav-btn:hover {
  background: rgba(234, 157, 30, 0.15);
  color: var(--text-main, #0f172a);
}

[data-theme="light"] .guide-nav-btn.active {
  background: linear-gradient(135deg, #ea9d1e, #b85410) !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: 0 2px 10px rgba(184, 84, 16, 0.3);
}

.owner-guide-body {
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-height: 65vh;
  overflow-y: auto;
}

.guide-phase-section {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.guide-phase-banner {
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius-md, 12px);
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.1));
}

.guide-phase-banner.before {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.08), rgba(234, 157, 30, 0.06));
  border-color: rgba(56, 189, 248, 0.25);
}

.guide-phase-banner.during {
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.09), rgba(234, 157, 30, 0.06));
  border-color: rgba(244, 63, 94, 0.25);
}

.guide-phase-banner.after {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.09), rgba(52, 211, 153, 0.06));
  border-color: rgba(16, 185, 129, 0.25);
}

.guide-phase-badge {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 6px;
  flex-shrink: 0;
  text-transform: uppercase;
}

.guide-phase-badge.before {
  background: #0284c7;
  color: #ffffff;
}

.guide-phase-badge.during {
  background: #e11d48;
  color: #ffffff;
}

.guide-phase-badge.after {
  background: #059669;
  color: #ffffff;
}

.guide-phase-heading {
  margin: 0 0 2px 0;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-main, #f8fafc);
}

.guide-phase-desc {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted, #94a3b8);
  line-height: 1.4;
}

.guide-steps-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.guide-step-card {
  display: flex;
  gap: 0.9rem;
  background: var(--bg-surface-elevated, rgba(255, 255, 255, 0.025));
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
  border-radius: var(--radius-md, 12px);
  padding: 0.95rem 1.1rem;
  transition: all 0.2s ease;
}

.guide-step-card:hover {
  border-color: var(--border-glass, rgba(234, 157, 30, 0.3));
  background: var(--bg-surface-elevated, rgba(255, 255, 255, 0.04));
}

.guide-step-card.highlight-urgent {
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.06), rgba(234, 157, 30, 0.04));
  border-color: rgba(244, 63, 94, 0.35);
}

.guide-step-num {
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.82rem;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
  margin-top: 1px;
}

.guide-step-num.before {
  background: linear-gradient(135deg, #0284c7, #0369a1);
}

.guide-step-num.during {
  background: linear-gradient(135deg, #e11d48, #be123c);
}

.guide-step-num.after {
  background: linear-gradient(135deg, #059669, #047857);
}

.guide-step-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.guide-step-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main, #f8fafc);
}

.guide-step-text {
  font-size: 0.82rem;
  color: var(--text-muted, #94a3b8);
  line-height: 1.45;
}

.guide-step-tip {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  background: rgba(234, 157, 30, 0.08);
  border: 1px dashed rgba(234, 157, 30, 0.25);
  border-radius: 8px;
  padding: 0.45rem 0.65rem;
  margin-top: 0.3rem;
  font-size: 0.78rem;
  color: var(--text-main, #e2e8f0);
  line-height: 1.35;
}

.guide-checklist {
  margin: 0.35rem 0 0 0;
  padding-left: 1.15rem;
  font-size: 0.8rem;
  color: var(--text-muted, #94a3b8);
  line-height: 1.4;
}

.guide-checklist li {
  margin-bottom: 2px;
}

.guide-doc-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  margin-top: 0.5rem;
}

@media (max-width: 540px) {
  .guide-doc-grid {
    grid-template-columns: 1fr;
  }
}

.guide-doc-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--bg-surface, rgba(0, 0, 0, 0.25));
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.06));
  border-radius: 8px;
  padding: 0.5rem 0.65rem;
  font-size: 0.82rem;
}

/* ==========================================================================
   Report Pet Interactive Pin-Drop Modal Layout
   ========================================================================== */
.report-modal-box {
  max-width: 820px !important;
  width: 95% !important;
  background: var(--bg-surface-elevated, #23130a) !important;
  border: 1px solid var(--border-glass, rgba(234, 157, 30, 0.3)) !important;
  border-radius: 20px !important;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(234, 157, 30, 0.15) !important;
  padding: 0 !important;
}

[data-theme="light"] .report-modal-box {
  background: #ffffff !important;
  border: 1px solid rgba(184, 84, 16, 0.25) !important;
  box-shadow: 0 20px 50px rgba(36, 18, 8, 0.2) !important;
}

.modal-close-squircle-btn {
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  border-radius: 9px;
  border: 1.5px solid var(--border-subtle, rgba(234, 157, 30, 0.35));
  background: var(--bg-surface-elevated, rgba(35, 19, 10, 0.7));
  color: var(--text-main, #f8fafc);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
}

.modal-close-squircle-btn:hover {
  background: rgba(234, 157, 30, 0.16);
  border-color: var(--primary, #ea9d1e);
  color: var(--primary, #ea9d1e);
  transform: scale(1.06);
}

.modal-close-squircle-btn:active {
  transform: scale(0.94);
}

[data-theme="light"] .modal-close-squircle-btn {
  background: #fff8f3;
  border-color: #e5d2c3;
  color: #5c351b;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .modal-close-squircle-btn:hover {
  background: #faece1;
  border-color: #c2410c;
  color: #c2410c;
}

.report-modal-icon-badge {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #ea9d1e, #b85410);
  color: #180d07;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(234, 157, 30, 0.35);
}

/* Report Pet Modal Question Mark Help Button & Instructions Panel */
.report-help-btn {
  width: 24px;
  height: 24px;
  min-width: 24px;
  min-height: 24px;
  border-radius: var(--radius-full, 9999px);
  border: 1.5px solid var(--border-subtle, rgba(234, 157, 30, 0.35));
  background: rgba(234, 157, 30, 0.12);
  color: var(--primary, #ea9d1e);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
}

.report-help-btn:hover {
  background: rgba(234, 157, 30, 0.25);
  border-color: var(--primary, #ea9d1e);
  color: #ffffff;
  transform: scale(1.12);
  box-shadow: 0 2px 8px rgba(234, 157, 30, 0.35);
}

.report-help-btn:active {
  transform: scale(0.92);
}

.report-help-btn.active {
  background: var(--primary, #ea9d1e);
  color: #180d07;
  border-color: var(--primary, #ea9d1e);
  box-shadow: 0 0 10px rgba(234, 157, 30, 0.45);
}

[data-theme="light"] .report-help-btn {
  background: rgba(194, 65, 12, 0.1);
  border-color: rgba(194, 65, 12, 0.3);
  color: var(--primary, #c2410c);
}

[data-theme="light"] .report-help-btn:hover {
  background: rgba(194, 65, 12, 0.2);
  color: #c2410c;
}

[data-theme="light"] .report-help-btn.active {
  background: var(--primary, #c2410c);
  color: #ffffff;
}

.report-instructions-panel {
  padding: 12px 18px 14px;
  background: rgba(234, 157, 30, 0.08);
  border-bottom: 1px solid rgba(234, 157, 30, 0.22);
  animation: reportSlideDown 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

[data-theme="light"] .report-instructions-panel {
  background: #fff8f0;
  border-bottom: 1px solid rgba(184, 84, 16, 0.2);
}

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

.report-instructions-icon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: linear-gradient(135deg, #ea9d1e, #b85410);
  color: #180d07;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

[data-theme="light"] .report-instructions-icon {
  color: #ffffff;
}

.report-instructions-close {
  background: transparent;
  border: none;
  font-size: 18px;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  transition: all 0.15s ease;
}

.report-instructions-close:hover {
  color: var(--text-main);
  background: rgba(234, 157, 30, 0.15);
}

.report-instructions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.report-step-card {
  background: var(--bg-surface-elevated, rgba(35, 19, 10, 0.6));
  border: 1px solid var(--border-subtle, rgba(234, 157, 30, 0.2));
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  transition: all 0.2s ease;
}

.report-step-card:hover {
  border-color: var(--primary, #ea9d1e);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .report-step-card {
  background: #ffffff;
  border-color: rgba(184, 84, 16, 0.18);
  box-shadow: 0 2px 6px rgba(36, 18, 8, 0.05);
}

.report-step-num {
  width: 22px;
  height: 22px;
  min-width: 22px;
  min-height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ea9d1e, #b85410);
  color: #180d07;
  font-weight: 800;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(234, 157, 30, 0.35);
  flex-shrink: 0;
}

[data-theme="light"] .report-step-num {
  color: #ffffff;
}

.report-step-content {
  font-size: 0.78rem;
  line-height: 1.35;
}

.report-step-content strong {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 2px;
}

.report-step-content p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.74rem;
}

@media (max-width: 768px) {
  .report-instructions-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .report-instructions-grid {
    grid-template-columns: 1fr;
  }
}

.report-type-toggle-bar {
  display: flex;
  gap: 8px;
  padding: 12px 18px 0;
  background: var(--bg-surface, #180d07);
  border-bottom: 1px solid var(--border-subtle, rgba(234, 157, 30, 0.16));
}

.report-type-tab-btn {
  flex: 1;
  padding: 10px 14px;
  border-radius: 10px 10px 0 0;
  border: 1px solid transparent;
  border-bottom: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.report-type-tab-btn.active {
  background: var(--bg-surface-elevated, #23130a);
  color: var(--primary, #ea9d1e);
  border-color: var(--border-subtle, rgba(234, 157, 30, 0.25));
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .report-type-tab-btn.active {
  background: #ffffff;
  color: var(--secondary, #b85410);
}

.report-modal-layout {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 16px;
  padding: 16px 18px 0;
}

.report-map-column {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.report-pin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  background: var(--bg-surface, #180d07);
  border: 1px solid var(--border-subtle, rgba(234, 157, 30, 0.18));
  border-radius: 8px;
}

.report-live-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
  animation: pulse-dot 1.8s infinite;
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.7; }
}

.report-coords-badge {
  font-family: monospace;
  font-size: 11px;
  font-weight: 700;
  color: var(--primary, #ea9d1e);
  background: rgba(234, 157, 30, 0.12);
  padding: 2px 8px;
  border-radius: 6px;
}

/* Report View Mode Toggle (Maps vs Upload) */
.report-view-mode-toggle {
  display: flex;
  align-items: center;
  background: var(--bg-surface-elevated, rgba(35, 19, 10, 0.95));
  padding: 2px;
  border-radius: 7px;
  border: 1px solid var(--border-subtle, rgba(234, 157, 30, 0.25));
  gap: 3px;
}

.report-mode-btn {
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted, #a89f91);
  background: transparent;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  line-height: 1.2;
}

.report-mode-btn:hover {
  color: var(--text-main, #ffffff);
  background: rgba(234, 157, 30, 0.1);
}

.report-mode-btn.active {
  background: var(--primary, #ea9d1e);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

/* Missing Pet Alert Photo Status Bar */
.report-missing-photo-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-surface-elevated, rgba(35, 19, 10, 0.7));
  border: 1px dashed var(--border-subtle, rgba(234, 157, 30, 0.3));
  border-radius: 8px;
  padding: 6px 10px;
  margin-bottom: 8px;
  transition: all 0.2s ease;
}

[data-theme="light"] .report-missing-photo-status-bar {
  background: #fdfbf9;
  border-color: #dfd7cc;
}

/* Report Panel Containers */
.report-panel-container {
  display: flex;
  flex-direction: column;
  gap: 6px;
  animation: fadeIn 0.2s ease-out;
}

/* Upload Photo Actions Bar */
.report-photo-actions-bar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.report-photo-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 8px;
  transition: all 0.2s ease;
  cursor: pointer;
}

/* Upload Photo Dropzone */
.report-photo-dropzone {
  position: relative;
  height: 290px;
  border: 2px dashed var(--border-subtle, rgba(234, 157, 30, 0.3));
  border-radius: 12px;
  background: var(--bg-surface, #180d07);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.25s ease;
}

.report-photo-dropzone:hover,
.report-photo-dropzone.drag-over {
  border-color: var(--primary, #ea9d1e);
  background: rgba(234, 157, 30, 0.05);
  box-shadow: 0 0 14px rgba(234, 157, 30, 0.15);
}

/* Empty Placeholder */
.report-photo-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
  gap: 8px;
}

.report-photo-icon-circle {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(234, 157, 30, 0.12);
  color: var(--primary, #ea9d1e);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
  transition: transform 0.2s ease;
}

.report-photo-dropzone:hover .report-photo-icon-circle {
  transform: scale(1.08);
}

.report-photo-text {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-main, #ffffff);
}

.report-photo-subtext {
  font-size: 0.73rem;
  color: var(--text-muted, #a89f91);
  max-width: 240px;
  line-height: 1.35;
}

/* Active Image Preview */
.report-photo-preview-wrap {
  position: relative;
  width: 100%;
  height: 100%;
}

.report-photo-preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.report-photo-preview-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 8, 4, 0.85) 0%, rgba(15, 8, 4, 0.2) 50%, rgba(15, 8, 4, 0.6) 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 10px;
}

.report-photo-ready-badge {
  align-self: flex-start;
  background: rgba(34, 197, 94, 0.9);
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.report-photo-preview-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.report-photo-ctrl-btn {
  flex: 1;
  font-size: 0.75rem;
  padding: 6px 10px;
}

.report-map-wrapper {
  position: relative;
  height: 260px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-subtle, rgba(234, 157, 30, 0.25));
  box-shadow: var(--shadow-sm);
}

#report-pin-map,
#sighting-pin-map {
  width: 100%;
  height: 100%;
}

.report-gmap-layer-dock {
  bottom: 8px;
  left: 8px;
  padding: 2px 4px;
  gap: 3px;
  background: var(--bg-surface-elevated, rgba(35, 19, 10, 0.94));
  border: 1px solid var(--border-glass, rgba(234, 157, 30, 0.3));
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.report-gmap-layer-dock .gmap-layer-btn {
  padding: 4px 8px;
  font-size: 0.68rem;
}

.report-map-overlay-helper {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(24, 13, 7, 0.88);
  backdrop-filter: blur(8px);
  color: #ffffff;
  padding: 3px 8px;
  border-radius: 99px;
  font-size: 10.5px;
  font-weight: 600;
  pointer-events: none;
  z-index: 1000;
  white-space: nowrap;
  border: 1px solid rgba(234, 157, 30, 0.3);
}

/* Location Quick Search & Autocomplete in Report Pet Modal */
.report-location-search-wrap {
  position: relative;
  width: 100%;
  margin-top: 2px;
}

.report-location-search-box {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--bg-surface, #180d07);
  border: 1px solid var(--border-subtle, rgba(234, 157, 30, 0.25));
  border-radius: 9px;
  padding: 0 8px 0 10px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.report-location-search-box:focus-within {
  border-color: var(--primary, #ea9d1e);
  box-shadow: 0 0 0 3px rgba(234, 157, 30, 0.15);
}

.report-search-icon {
  color: var(--primary, #ea9d1e);
  flex-shrink: 0;
  margin-right: 6px;
}

.report-location-search-input {
  flex: 1;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  color: var(--text-main, #f8fafc) !important;
  font-size: 0.8rem !important;
  padding: 6px 0 !important;
  min-width: 0;
}

.report-location-search-input::placeholder {
  color: var(--text-muted, #94a3b8);
  font-size: 0.78rem;
}

.report-search-clear-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1;
  padding: 0 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: color 0.15s ease;
}

.report-search-clear-btn:hover {
  color: var(--text-main);
}

.report-location-suggestions {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 1050;
  background: var(--bg-surface-elevated, #23130a);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-glass, rgba(234, 157, 30, 0.35));
  border-radius: 10px;
  max-height: 210px;
  overflow-y: auto;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
  padding: 4px;
  animation: dropdownIn 0.15s ease-out;
}

@keyframes dropdownIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.report-suggestion-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.78rem;
  color: var(--text-main);
  transition: background 0.12s ease;
}

.report-suggestion-item:hover,
.report-suggestion-item.active {
  background: rgba(234, 157, 30, 0.15);
  color: var(--primary, #ea9d1e);
}

.report-suggestion-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
}

.report-suggestion-badge {
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(234, 157, 30, 0.12);
  color: var(--primary, #ea9d1e);
  flex-shrink: 0;
}

.report-suggestion-online {
  border-top: 1px solid var(--border-subtle, rgba(234, 157, 30, 0.15));
  margin-top: 2px;
  color: #38bdf8;
}

.report-suggestion-online:hover {
  background: rgba(56, 189, 248, 0.12);
}

.report-quick-jump-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
  flex-wrap: wrap;
}

.report-quick-zones {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  flex: 1;
}

.report-zone-chip {
  background: var(--bg-surface, #180d07);
  border: 1px solid var(--border-subtle, rgba(234, 157, 30, 0.2));
  color: var(--text-muted);
  font-size: 10.5px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 99px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.report-zone-chip:hover {
  color: var(--text-main);
  border-color: var(--primary, #ea9d1e);
  background: rgba(234, 157, 30, 0.12);
}

.report-zone-chip.active {
  background: var(--primary, #ea9d1e);
  color: #ffffff;
  font-weight: 700;
  border-color: var(--primary, #ea9d1e);
  box-shadow: 0 2px 6px rgba(234, 157, 30, 0.3);
}

[data-theme="light"] .report-location-search-box {
  background: #ffffff;
  border-color: #e5d2c3;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .report-location-suggestions {
  background: #ffffff;
  border-color: #e5d2c3;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .report-zone-chip {
  background: #ffffff;
  border-color: #e5d2c3;
  color: #64748b;
}

[data-theme="light"] .report-zone-chip.active {
  background: #c2410c;
  color: #ffffff;
  border-color: #c2410c;
}

[data-theme="light"] .report-view-mode-toggle {
  background: #f1ede8;
  border-color: #dfd7cc;
}

[data-theme="light"] .report-mode-btn {
  color: #635748;
}

[data-theme="light"] .report-mode-btn:hover {
  color: #1c1917;
  background: rgba(234, 157, 30, 0.15);
}

[data-theme="light"] .report-mode-btn.active {
  background: #c2410c;
  color: #ffffff;
}

[data-theme="light"] .report-photo-dropzone {
  background: #fdfbf9;
  border-color: #dfd7cc;
}

[data-theme="light"] .report-photo-dropzone:hover,
[data-theme="light"] .report-photo-dropzone.drag-over {
  border-color: var(--primary, #ea9d1e);
  background: rgba(234, 157, 30, 0.08);
}

[data-theme="light"] .report-photo-text {
  color: #1c1917;
}

[data-theme="light"] .report-photo-subtext {
  color: #635748;
}

.report-form-column {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

@media (max-width: 768px) {
  .report-modal-layout {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 12px 14px 0;
  }
  .report-map-wrapper {
    height: 200px;
  }
}

/* ==========================================================================
   Google Maps Navigation & Actual Place Visualizer Overlay Styles
   ========================================================================== */

.gmap-layer-dock {
  position: absolute;
  bottom: 16px;
  left: 16px;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-surface-elevated, rgba(35, 19, 10, 0.92));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass, rgba(234, 157, 30, 0.3));
  border-radius: 99px;
  padding: 4px 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.gmap-layer-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 99px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.gmap-layer-btn:hover {
  color: var(--text-main);
  background: rgba(234, 157, 30, 0.12);
}

.gmap-layer-btn.active {
  background: var(--primary, #ea9d1e);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 2px 8px rgba(234, 157, 30, 0.35);
}

.gmap-quick-tools {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.gmap-tool-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--bg-surface-elevated, rgba(35, 19, 10, 0.92));
  border: 1px solid var(--border-glass, rgba(234, 157, 30, 0.3));
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  transition: all 0.15s ease;
}

.gmap-tool-btn:hover {
  background: var(--primary, #ea9d1e);
  color: #ffffff;
  transform: scale(1.05);
}

/* Directions HUD / Actual Place Drawer */
.gmap-nav-drawer {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 380px;
  max-width: calc(100% - 28px);
  max-height: calc(100% - 28px);
  z-index: 1001;
  background: var(--bg-surface-elevated, rgba(35, 19, 10, 0.96));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass, rgba(234, 157, 30, 0.35));
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: slideInNav 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.gmap-nav-header {
  padding: 12px 16px;
  background: linear-gradient(135deg, rgba(234, 157, 30, 0.15), rgba(184, 84, 16, 0.08));
  border-bottom: 1px solid var(--border-subtle, rgba(234, 157, 30, 0.2));
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.gmap-nav-body {
  padding: 14px 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gmap-place-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-glass, rgba(234, 157, 30, 0.25));
  background: var(--bg-surface, #180d07);
}

.gmap-place-img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
}

.gmap-place-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 8px 12px;
  background: linear-gradient(to top, rgba(12, 6, 3, 0.95), transparent);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.gmap-modes-bar {
  display: flex;
  gap: 6px;
  background: var(--bg-surface, #180d07);
  padding: 4px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle, rgba(234, 157, 30, 0.18));
}

.gmap-mode-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6px 4px;
  border-radius: 8px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
}

.gmap-mode-tab.active {
  background: rgba(234, 157, 30, 0.15);
  color: var(--primary, #ea9d1e);
  font-weight: 700;
}

.gmap-steps-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.78rem;
  background: var(--bg-surface, #180d07);
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle, rgba(234, 157, 30, 0.15));
}

.gmap-step-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.35;
  color: var(--text-main);
}

.gmap-step-icon {
  color: var(--primary, #ea9d1e);
  font-weight: 700;
  flex-shrink: 0;
  width: 14px;
}

.gmap-nav-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

@media (max-width: 600px) {
  .gmap-nav-drawer {
    width: 100%;
    max-width: 100%;
    top: 8px;
    left: 8px;
    right: 8px;
  }
}

/* ==========================================================================
   Unregistered & Community Reported Pets Section Styles
   ========================================================================== */

.unregistered-pets-section {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle, rgba(234, 157, 30, 0.15));
}

.report-filter-toggle-pills {
  display: flex;
  align-items: center;
  background: var(--bg-surface-elevated, rgba(35, 19, 10, 0.95));
  padding: 3px;
  border-radius: 99px;
  border: 1px solid var(--border-subtle, rgba(234, 157, 30, 0.25));
  gap: 3px;
}

.report-filter-pill {
  padding: 4px 12px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-muted, #a89f91);
  background: transparent;
  border: none;
  border-radius: 99px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  line-height: 1.2;
}

.report-filter-pill:hover {
  color: var(--text-main, #ffffff);
  background: rgba(234, 157, 30, 0.1);
}

.report-filter-pill.active {
  background: var(--primary, #ea9d1e);
  color: #ffffff !important;
  font-weight: 700;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .report-filter-toggle-pills {
  background: #f1ede8;
  border-color: #dfd7cc;
}

[data-theme="light"] .report-filter-pill {
  color: #635748;
}

[data-theme="light"] .report-filter-pill:hover {
  color: #1c1917;
  background: rgba(234, 157, 30, 0.15);
}

[data-theme="light"] .report-filter-pill.active {
  background: #c2410c;
  color: #ffffff !important;
}

.badge-found {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.35);
}

/* Registered Pet Card Pending Founder Status */
.badge-pending {
  background: rgba(234, 157, 30, 0.2) !important;
  color: #ea9d1e !important;
  border: 1px solid rgba(234, 157, 30, 0.45) !important;
}

.pet-card-matched-pending {
  border: 2px solid rgba(234, 157, 30, 0.6) !important;
  box-shadow: 0 6px 24px rgba(234, 157, 30, 0.22) !important;
  position: relative;
}

.pending-founder-banner {
  background: linear-gradient(135deg, rgba(234, 157, 30, 0.18), rgba(34, 197, 94, 0.12));
  border: 1px solid rgba(234, 157, 30, 0.45);
  padding: 8px 12px;
  border-radius: 10px;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.pending-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ea9d1e;
  box-shadow: 0 0 8px #ea9d1e;
  animation: pendingPulse 1.8s infinite ease-in-out;
  flex-shrink: 0;
}

@keyframes pendingPulse {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.7; }
}

.pending-btn-pill {
  background: #ea9d1e !important;
  color: #ffffff !important;
  border: none !important;
  font-weight: 700 !important;
  font-size: 0.75rem !important;
  padding: 4px 12px !important;
  border-radius: 99px !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  box-shadow: 0 2px 8px rgba(234, 157, 30, 0.35) !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease !important;
}

.pending-btn-pill:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(234, 157, 30, 0.5) !important;
}

.btn-pending-action {
  background: #ea9d1e !important;
  color: #ffffff !important;
  border-color: #ea9d1e !important;
  font-weight: 700 !important;
}

.btn-pending-action:hover {
  background: #d48b16 !important;
  border-color: #d48b16 !important;
}

/* Notification Match Banner (Unread state) */
.notif-match-card:not(.read-item) {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.12), rgba(234, 157, 30, 0.08)) !important;
  border: 1px solid rgba(34, 197, 94, 0.45) !important;
  box-shadow: 0 2px 10px rgba(34, 197, 94, 0.15) !important;
  cursor: pointer;
}

/* ==========================================================================
   Good Samaritan Finder Info Notification Modal (Full Visibility & Scroll)
   ========================================================================== */
.finder-modal-box {
  max-width: 520px !important;
  width: 95% !important;
  max-height: min(88vh, 760px) !important;
  display: flex !important;
  flex-direction: column !important;
  padding: 0 !important;
  overflow: hidden !important;
  border-radius: var(--radius-xl, 18px) !important;
  box-shadow: 0 25px 65px -15px rgba(0, 0, 0, 0.65) !important;
  border: 1px solid var(--border-subtle, rgba(234, 157, 30, 0.3)) !important;
  background: var(--bg-surface-elevated, #23130a) !important;
}

.finder-modal-header {
  flex-shrink: 0 !important;
  padding: 14px 18px !important;
  border-bottom: 1px solid var(--border-subtle, rgba(234, 157, 30, 0.2)) !important;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.16), rgba(234, 157, 30, 0.1)) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  z-index: 2;
}

.finder-header-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(34, 197, 94, 0.2);
  color: #22c55e;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.finder-modal-body {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  padding: 16px 18px 20px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  scrollbar-width: thin !important;
  scrollbar-color: var(--primary, #ea9d1e) rgba(0, 0, 0, 0.15) !important;
}

.finder-modal-body::-webkit-scrollbar {
  width: 6px !important;
  display: block !important;
}

.finder-modal-body::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.08) !important;
  border-radius: 99px !important;
}

.finder-modal-body::-webkit-scrollbar-thumb {
  background: var(--primary, #ea9d1e) !important;
  border-radius: 99px !important;
}

.finder-matched-pet-card {
  display: flex;
  gap: 12px;
  align-items: center;
  background: var(--bg-surface, rgba(35, 19, 10, 0.6));
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle, rgba(234, 157, 30, 0.2));
  flex-shrink: 0;
}

.finder-matched-pet-img {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  object-fit: cover;
  border: 2px solid var(--primary, #ea9d1e);
  flex-shrink: 0;
}

.finder-sighting-photo-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-subtle, rgba(234, 157, 30, 0.2));
  flex-shrink: 0;
  background: #000;
}

.finder-sighting-img {
  width: 100%;
  height: 160px;
  max-height: 180px;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
  transition: transform 0.25s ease;
}

.finder-sighting-img:hover {
  transform: scale(1.02);
}

.finder-sighting-photo-badge {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 5px;
  pointer-events: none;
}

.finder-contact-card {
  background: var(--bg-surface, rgba(35, 19, 10, 0.6));
  border: 1px solid rgba(34, 197, 94, 0.4);
  border-left: 4px solid #22c55e !important;
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.finder-contact-section-title {
  font-size: 0.72rem;
  text-transform: uppercase;
  font-weight: 700;
  color: #22c55e;
  letter-spacing: 0.06em;
}

.finder-contact-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.finder-person-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
}

.finder-person-phone {
  font-size: 0.86rem;
  font-family: var(--font-mono, monospace);
  color: var(--primary, #ea9d1e);
  margin-top: 2px;
  font-weight: 600;
}

.finder-call-btn {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 7px 14px !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  border-radius: 8px !important;
  white-space: nowrap !important;
  color: #ffffff !important;
}

.finder-notes-box {
  font-size: 0.82rem;
  color: var(--text-main);
  background: var(--bg-surface-elevated, rgba(20, 10, 5, 0.5));
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle, rgba(234, 157, 30, 0.15));
  line-height: 1.45;
  word-break: break-word;
  white-space: pre-wrap;
  max-height: 160px;
  overflow-y: auto;
  scrollbar-width: thin;
}

.finder-location-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  background: var(--bg-surface, rgba(35, 19, 10, 0.6));
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle, rgba(234, 157, 30, 0.2));
  flex-shrink: 0;
}

.finder-loc-pin-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(234, 157, 30, 0.15);
  color: var(--primary, #ea9d1e);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.finder-location-name {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.35;
  word-break: break-word;
}

.finder-timestamp {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.finder-view-map-btn {
  padding: 6px 12px !important;
  font-size: 0.78rem !important;
  white-space: nowrap !important;
  display: flex !important;
  align-items: center !important;
  gap: 5px !important;
  flex-shrink: 0 !important;
}

.finder-modal-footer {
  flex-shrink: 0 !important;
  padding: 12px 18px !important;
  border-top: 1px solid var(--border-subtle, rgba(234, 157, 30, 0.18)) !important;
  background: var(--bg-surface-elevated, #23130a) !important;
  display: flex !important;
  justify-content: flex-end !important;
  align-items: center !important;
  z-index: 2;
}

@media (max-width: 480px) {
  .finder-modal-box {
    max-height: 92vh !important;
    width: 96% !important;
  }
  .finder-modal-header {
    padding: 12px 14px !important;
  }
  .finder-modal-body {
    padding: 14px 14px 18px !important;
    gap: 10px !important;
  }
  .finder-location-card {
    flex-direction: column !important;
    align-items: stretch !important;
  }
}

/* ==========================================================================
   Google OAuth Account Chooser & Password Challenge Styles
   ========================================================================== */

.google-oauth-box {
  max-width: 720px !important;
  width: 95% !important;
  background: #131314 !important;
  color: #e3e3e3 !important;
  border: 1px solid #303030 !important;
  border-radius: 28px !important;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.9), 0 0 1px rgba(255, 255, 255, 0.1) !important;
  overflow: hidden !important;
  padding: 0 !important;
  font-family: 'Roboto', 'Outfit', system-ui, -apple-system, sans-serif !important;
}

.google-oauth-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.google-oauth-top-bar .google-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: #e3e3e3;
  letter-spacing: 0.01em;
}

.google-oauth-top-bar .close-btn {
  background: transparent;
  border: none;
  color: #c4c7c5;
  font-size: 20px;
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: background 0.2s;
}

.google-oauth-top-bar .close-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.google-oauth-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 36px;
  padding: 32px 36px 24px;
  min-height: 340px;
}

@media (max-width: 680px) {
  .google-oauth-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 24px 20px 16px;
  }
}

.google-oauth-left {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 14px;
}

.google-app-logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
  display: grid;
  place-items: center;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.35);
}

.google-oauth-heading {
  font-size: 26px;
  font-weight: 400;
  line-height: 1.25;
  color: #e3e3e3;
  margin: 4px 0 0;
}

.google-oauth-subheading {
  font-size: 14px;
  color: #e3e3e3;
  line-height: 1.45;
}

.google-oauth-subheading a {
  color: #8ab4f8;
  text-decoration: none;
  font-weight: 500;
}

.google-oauth-subheading a:hover {
  text-decoration: underline;
}

/* User pill on password challenge */
.google-user-pill-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 4px 14px 4px 6px;
  background: #1f1f20;
  border: 1px solid #444746;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.2s;
  max-width: 100%;
}

.google-user-pill-tag:hover {
  background: #28292a;
  border-color: #8ab4f8;
}

.google-user-pill-tag .pill-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}

.google-user-pill-tag .pill-email {
  font-size: 13px;
  color: #e3e3e3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.google-oauth-right {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
}

/* Account List Container */
.google-account-list {
  border: 1px solid #444746;
  border-radius: 14px;
  overflow: hidden;
  background: #131314;
}

.google-account-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  cursor: pointer;
  transition: background 0.15s;
  background: transparent;
  width: 100%;
  text-align: left;
  border: none;
  color: inherit;
}

.google-account-item:hover {
  background: #28292a;
}

.google-account-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

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

.google-account-name {
  font-size: 14px;
  font-weight: 500;
  color: #e3e3e3;
  margin-bottom: 2px;
}

.google-account-email {
  font-size: 12px;
  color: #c4c7c5;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.google-use-another-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  cursor: pointer;
  transition: background 0.15s;
  background: transparent;
  width: 100%;
  text-align: left;
  border: none;
  border-top: 1px solid #303030;
  color: #e3e3e3;
  font-size: 14px;
  font-weight: 500;
}

.google-use-another-item:hover {
  background: #28292a;
}

.google-use-another-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #28292a;
  display: grid;
  place-items: center;
  color: #c4c7c5;
  flex-shrink: 0;
}

/* Floating label Google input box */
.google-input-field-container {
  position: relative;
  margin-top: 6px;
}

.google-input-field {
  width: 100%;
  background: transparent;
  color: #e3e3e3;
  border: 1px solid #8e918f;
  border-radius: 8px;
  padding: 14px 16px;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.google-input-field:focus {
  border-color: #a8c7fa;
  box-shadow: 0 0 0 1px #a8c7fa;
}

.google-input-label {
  position: absolute;
  left: 14px;
  top: -9px;
  background: #131314;
  padding: 0 6px;
  font-size: 12px;
  color: #a8c7fa;
  pointer-events: none;
  font-weight: 500;
}

.google-show-password-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: #e3e3e3;
  cursor: pointer;
  user-select: none;
  margin-top: 6px;
}

.google-show-password-row input[type="checkbox"] {
  accent-color: #a8c7fa;
  width: 17px;
  height: 17px;
  cursor: pointer;
}

.google-oauth-privacy-note {
  font-size: 12px;
  color: #c4c7c5;
  line-height: 1.5;
  margin-top: auto;
}

.google-oauth-privacy-note a {
  color: #8ab4f8;
  text-decoration: none;
}

.google-oauth-privacy-note a:hover {
  text-decoration: underline;
}

.google-oauth-actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
}

.google-forgot-link {
  color: #8ab4f8;
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
}

.google-forgot-link:hover {
  text-decoration: underline;
}

.google-next-btn {
  background: #a8c7fa;
  color: #041e49;
  border: none;
  border-radius: 100px;
  padding: 9px 24px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.google-next-btn:hover {
  background: #c2e7ff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.google-oauth-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 36px 16px;
  font-size: 11.5px;
  color: #c4c7c5;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

@media (max-width: 680px) {
  .google-oauth-bottom-bar {
    padding: 12px 20px 14px;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }
}

.google-oauth-bottom-bar .bottom-links {
  display: flex;
  gap: 20px;
}

.google-oauth-bottom-bar a {
  color: #c4c7c5;
  text-decoration: none;
}

.google-oauth-bottom-bar a:hover {
  color: #e3e3e3;
  text-decoration: underline;
}

/* ==========================================================================
   Login / Collaborate Entry Dialog Modal Styles
   ========================================================================== */

.auth-dialog-card {
  max-width: 440px !important;
  width: 92% !important;
  background: #ffffff !important;
  color: #111827 !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 16px !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45) !important;
  padding: 38px 34px 30px !important;
  position: relative !important;
  box-sizing: border-box !important;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
}

[data-theme="dark"] .auth-dialog-card {
  background: #18191d !important;
  color: #f3f4f6 !important;
  border-color: #2e323b !important;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85) !important;
}

.auth-dialog-close-btn {
  position: absolute;
  top: 14px;
  right: 16px;
  background: transparent;
  border: none;
  font-size: 24px;
  line-height: 1;
  color: #9ca3af;
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: color 0.15s;
}

.auth-dialog-close-btn:hover {
  color: #111827;
}

[data-theme="dark"] .auth-dialog-close-btn:hover {
  color: #ffffff;
}

.auth-dialog-title {
  font-size: 25px !important;
  font-weight: 700 !important;
  text-align: center !important;
  color: #111827 !important;
  line-height: 1.25 !important;
  margin: 0 0 24px !important;
  letter-spacing: -0.02em !important;
}

[data-theme="dark"] .auth-dialog-title {
  color: #f9fafb !important;
}

.auth-google-continue-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 10px 16px;
  border: 1px solid #1f2937;
  border-radius: 6px;
  background: #ffffff;
  color: #111827;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}

[data-theme="dark"] .auth-google-continue-btn {
  background: #1f2128;
  color: #f3f4f6;
  border-color: #3e4451;
}

.auth-google-continue-btn:hover {
  background: #f9fafb;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

[data-theme="dark"] .auth-google-continue-btn:hover {
  background: #282a33;
  border-color: #8ab4f8;
}

.auth-dialog-divider {
  text-align: center;
  color: #6b7280;
  font-size: 13.5px;
  font-weight: 400;
  margin: 18px 0 16px;
}

[data-theme="dark"] .auth-dialog-divider {
  color: #9ca3af;
}

.auth-dialog-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.auth-field-box {
  background: #eaedf0;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 8px 14px 10px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, background 0.2s;
}

[data-theme="dark"] .auth-field-box {
  background: #24262e;
  border-color: #323642;
}

.auth-field-box:focus-within {
  border-color: #2563eb;
  background: #ffffff;
  box-shadow: 0 0 0 1px #2563eb;
}

[data-theme="dark"] .auth-field-box:focus-within {
  border-color: #8ab4f8;
  background: #1f2128;
  box-shadow: 0 0 0 1px #8ab4f8;
}

.auth-field-label {
  font-size: 11px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  letter-spacing: 0.06em;
  font-weight: 600;
  color: #4b5563;
  margin-bottom: 2px;
  user-select: none;
}

[data-theme="dark"] .auth-field-label {
  color: #9ca3af;
}

.auth-field-input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  font-size: 15px;
  color: #111827;
  padding: 0;
}

[data-theme="dark"] .auth-field-input {
  color: #ffffff;
}

.auth-dialog-submit-btn {
  width: 100%;
  height: 44px;
  background: #000000;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 6px;
  transition: opacity 0.15s, transform 0.1s;
}

[data-theme="dark"] .auth-dialog-submit-btn {
  background: #ffffff;
  color: #000000;
}

.auth-dialog-submit-btn:hover {
  opacity: 0.9;
}

.auth-dialog-submit-btn:active {
  transform: scale(0.99);
}

.auth-dialog-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
  font-size: 13.5px;
}

.auth-dialog-links .auth-link {
  color: #2563eb;
  text-decoration: underline;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.15s;
}

[data-theme="dark"] .auth-dialog-links .auth-link {
  color: #60a5fa;
}

.auth-dialog-links .auth-link:hover {
  color: #1d4ed8;
}

[data-theme="dark"] .auth-dialog-links .auth-link:hover {
  color: #93c5fd;
}

.auth-signup-row {
  color: #4b5563;
  display: flex;
  align-items: center;
  gap: 5px;
}

[data-theme="dark"] .auth-signup-row {
  color: #9ca3af;
}

.auth-terms-note {
  font-size: 11.5px;
  line-height: 1.45;
  color: #6b7280;
  text-align: center;
  margin-top: 14px;
}

[data-theme="dark"] .auth-terms-note {
  color: #9ca3af;
}

.auth-terms-note a {
  color: #2563eb;
  text-decoration: underline;
  font-weight: 500;
}

[data-theme="dark"] .auth-terms-note a {
  color: #60a5fa;
}

/* ==========================================================================
   Google OAuth Consent & Terms Acceptance Modal Styles
   ========================================================================== */

.google-consent-card {
  max-width: 460px !important;
  width: 92% !important;
  background: #ffffff !important;
  color: #111827 !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 18px !important;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5) !important;
  padding: 32px 30px 26px !important;
  position: relative !important;
  box-sizing: border-box !important;
}

[data-theme="dark"] .google-consent-card {
  background: #18191e !important;
  color: #f3f4f6 !important;
  border-color: #2d3139 !important;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85) !important;
}

.consent-brand-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 14px;
}

.consent-brand-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
}

[data-theme="dark"] .consent-brand-icon {
  background: #23252d;
  border-color: #343844;
}

.consent-brand-icon.pawtrack-icon {
  background: rgba(194, 65, 12, 0.1);
  border-color: rgba(194, 65, 12, 0.2);
}

.consent-connect-arrow {
  color: #9ca3af;
  display: flex;
  align-items: center;
}

.consent-title {
  font-size: 22px !important;
  font-weight: 700 !important;
  text-align: center !important;
  margin: 0 0 2px !important;
  color: #111827 !important;
}

[data-theme="dark"] .consent-title {
  color: #ffffff !important;
}

.consent-subtitle {
  font-size: 13px !important;
  text-align: center !important;
  color: #6b7280 !important;
  margin: 0 0 20px !important;
}

[data-theme="dark"] .consent-subtitle {
  color: #9ca3af !important;
}

.consent-account-box {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 16px;
}

[data-theme="dark"] .consent-account-box {
  background: #20222a;
  border-color: #2e3340;
}

.consent-label {
  display: block;
  font-size: 10.5px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: #6b7280;
  margin-bottom: 4px;
}

[data-theme="dark"] .consent-label {
  color: #8ab4f8;
}

.consent-email-input-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #9ca3af;
}

.consent-email-input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  font-size: 14px;
  font-weight: 600;
  color: #111827;
}

[data-theme="dark"] .consent-email-input {
  color: #ffffff;
}

.consent-scope-card {
  background: #f3f4f6;
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 16px;
}

[data-theme="dark"] .consent-scope-card {
  background: #23252d;
}

.consent-scope-heading {
  font-size: 12px;
  font-weight: 700;
  color: #374151;
  margin-bottom: 8px;
}

[data-theme="dark"] .consent-scope-heading {
  color: #cbd5e1;
}

.consent-scope-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.consent-scope-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: #4b5563;
  line-height: 1.35;
}

[data-theme="dark"] .consent-scope-list li {
  color: #94a3b8;
}

.consent-terms-acceptance {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 22px;
  font-size: 12px;
  line-height: 1.45;
  color: #4b5563;
}

[data-theme="dark"] .consent-terms-acceptance {
  color: #9ca3af;
}

.consent-checkbox {
  margin-top: 2px;
  cursor: pointer;
  accent-color: #1a73e8;
  width: 16px;
  height: 16px;
}

.consent-terms-text a {
  color: #2563eb;
  text-decoration: underline;
  font-weight: 600;
}

[data-theme="dark"] .consent-terms-text a {
  color: #8ab4f8;
}

.consent-actions-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.consent-cancel-btn {
  border-color: #d1d5db;
  color: #4b5563;
  padding: 8px 18px;
  font-size: 13.5px;
}

[data-theme="dark"] .consent-cancel-btn {
  border-color: #3e4451;
  color: #cbd5e1;
}

.consent-continue-btn {
  background: #1a73e8 !important;
  color: #ffffff !important;
  border: none !important;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(26, 115, 232, 0.4);
}

.consent-continue-btn:hover {
  background: #1557b0 !important;
}

/* Guardian Profile Modal Styles */
.guardian-modal-avatar-box {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  color: #ffffff;
  font-weight: 700;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 12px rgba(29, 78, 216, 0.25);
  flex-shrink: 0;
  overflow: hidden;
  user-select: none;
}

.guardian-modal-avatar-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

[data-theme="light"] .guardian-modal-avatar-box {
  border-color: rgba(29, 78, 216, 0.15);
}

.guardian-profile-card .modal-body {
  padding: 1.25rem 1.4rem;
}

.guardian-profile-card .modal-header {
  padding: 1.15rem 1.4rem;
}

@media (max-width: 480px) {
  .guardian-profile-card .modal-body {
    padding: 1rem 1.15rem;
  }
  .guardian-profile-card .modal-header {
    padding: 1rem 1.15rem;
  }
}

/* Impounded Animals View Layout (Left Sidebar Facilities + Right Main Content) */
.impounded-layout-grid {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 1.5rem;
  align-items: start;
}

@media (max-width: 1024px) {
  .impounded-layout-grid {
    grid-template-columns: 310px 1fr;
    gap: 1.25rem;
  }
}

@media (max-width: 860px) {
  .impounded-layout-grid {
    grid-template-columns: 1fr;
  }
}

.facility-sidebar-card {
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.facility-sidebar-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary) !important;
  box-shadow: var(--shadow-md);
}

.facility-sidebar-card.active {
  border-color: var(--primary) !important;
  box-shadow: 0 4px 14px rgba(194, 65, 12, 0.2);
}

.facility-expand-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface-elevated, rgba(255, 255, 255, 0.05));
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
  flex-shrink: 0;
}

.facility-expand-btn:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  transform: scale(1.08);
}

.facility-chevron-icon {
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.facility-expand-btn.expanded .facility-chevron-icon {
  transform: rotate(180deg);
}

.facility-details-dropdown {
  animation: facilitySlideDown 0.22s ease-out;
}

@keyframes facilitySlideDown {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===================================================
   COMMUNITY PET SIGHTING: CUSTOM BUBBLE MARKERS & HUD
   =================================================== */

/* 🔴 Missing Pet Custom Bubble Pin */
.bubble-missing-pin {
  display: inline-flex;
  align-items: center;
  background: rgba(186, 56, 32, 0.95);
  color: #ffffff;
  border: 2px solid #ffffff;
  border-radius: 28px;
  padding: 3px 12px 3px 3px;
  box-shadow: 0 6px 20px rgba(186, 56, 32, 0.55), 0 2px 6px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  animation: pulseMissingHalo 2.2s infinite;
  white-space: nowrap;
  user-select: none;
  backdrop-filter: blur(4px);
}

.bubble-missing-pin:hover {
  transform: scale(1.08) translateY(-2px);
  background: rgba(220, 38, 38, 0.98);
  box-shadow: 0 8px 24px rgba(239, 68, 68, 0.7);
  z-index: 1000 !important;
}

.bubble-pin-thumb {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ffffff;
  margin-right: 8px;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.bubble-pin-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.15;
  text-align: left;
}

.bubble-pin-title {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 5px;
}

.bubble-pin-tag-missing {
  font-size: 0.62rem;
  background: #ffffff;
  color: #ba3820;
  padding: 1px 5px;
  border-radius: 99px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.bubble-pin-meta {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.9);
  margin-top: 2px;
  max-width: 170px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@keyframes pulseMissingHalo {
  0% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.75), 0 6px 20px rgba(186, 56, 32, 0.55);
  }
  70% {
    box-shadow: 0 0 0 14px rgba(239, 68, 68, 0), 0 6px 20px rgba(186, 56, 32, 0.55);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0), 0 6px 20px rgba(186, 56, 32, 0.55);
  }
}

/* 🟢 Possible Sighting Custom Bubble Pin */
.bubble-sighting-pin {
  display: inline-flex;
  align-items: center;
  background: rgba(22, 163, 74, 0.95);
  color: #ffffff;
  border: 2px solid #ffffff;
  border-radius: 28px;
  padding: 3px 12px 3px 3px;
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.55), 0 2px 6px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  animation: pulseSightingHalo 2.2s infinite;
  white-space: nowrap;
  user-select: none;
  backdrop-filter: blur(4px);
}

.bubble-sighting-pin:hover {
  transform: scale(1.08) translateY(-2px);
  background: rgba(21, 128, 61, 0.98);
  box-shadow: 0 8px 24px rgba(34, 197, 94, 0.7);
  z-index: 1000 !important;
}

.bubble-pin-tag-sighting {
  font-size: 0.62rem;
  background: #ffffff;
  color: #16a34a;
  padding: 1px 6px;
  border-radius: 99px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* Confirmed Sighting State (Golden / Emerald Verified) */
.bubble-sighting-pin.confirmed {
  background: linear-gradient(135deg, #15803d, #047857) !important;
  border-color: #facc15 !important;
  box-shadow: 0 6px 20px rgba(250, 204, 21, 0.6), 0 2px 6px rgba(0, 0, 0, 0.4) !important;
  animation: pulseConfirmedHalo 2.5s infinite !important;
}

.bubble-sighting-pin.confirmed .bubble-pin-tag-sighting {
  background: #facc15 !important;
  color: #064e3b !important;
}

@keyframes pulseSightingHalo {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.75), 0 6px 20px rgba(34, 197, 94, 0.55);
  }
  70% {
    box-shadow: 0 0 0 14px rgba(34, 197, 94, 0), 0 6px 20px rgba(34, 197, 94, 0.55);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0), 0 6px 20px rgba(34, 197, 94, 0.55);
  }
}

@keyframes pulseConfirmedHalo {
  0% {
    box-shadow: 0 0 0 0 rgba(250, 204, 21, 0.8), 0 6px 20px rgba(250, 204, 21, 0.55);
  }
  70% {
    box-shadow: 0 0 0 14px rgba(250, 204, 21, 0), 0 6px 20px rgba(250, 204, 21, 0.55);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(250, 204, 21, 0), 0 6px 20px rgba(250, 204, 21, 0.55);
  }
}

/* Chronological Sighting Trail Polyline & Step Node Badges */
.sighting-polyline-dash {
  stroke-dasharray: 8, 10;
  animation: polylineDashMove 24s linear infinite;
}

@keyframes polylineDashMove {
  to {
    stroke-dashoffset: -1000;
  }
}

.sighting-step-node {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ea580c;
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 800;
  border: 2px solid #ffffff;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4);
}

/* Subdivision / Community Scope Selector Bar */
.community-scope-card {
  padding: 0.75rem 1.15rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.community-scope-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.community-scope-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(234, 88, 12, 0.12);
  color: var(--primary);
  border: 1px solid rgba(234, 88, 12, 0.3);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
}

.community-scope-select {
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface-elevated);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  padding: 0 10px;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
}

.community-scope-select:focus {
  border-color: var(--primary);
}

/* Side-by-Side Verification Modal Layout */
.verification-modal-box {
  max-width: 860px;
  width: 95%;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
}

.verification-split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

@media (max-width: 768px) {
  .verification-split-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

.verification-column {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.verification-column.official-col {
  border-color: rgba(234, 88, 12, 0.4);
  background: linear-gradient(180deg, rgba(234, 88, 12, 0.05) 0%, var(--bg-surface) 100%);
}

.verification-column.sighting-col {
  border-color: rgba(34, 197, 94, 0.4);
  background: linear-gradient(180deg, rgba(34, 197, 94, 0.05) 0%, var(--bg-surface) 100%);
}

.verification-col-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--border-subtle);
}

.verification-photo-box {
  width: 100%;
  height: 190px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
  border: 1px solid var(--border-subtle);
  background: #000000;
}

.verification-photo-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: zoom-in;
}

.verification-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 5px 0;
  border-bottom: 1px dashed var(--border-subtle);
  font-size: 0.82rem;
}

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

.verification-detail-label {
  color: var(--text-muted);
  font-weight: 500;
  flex-shrink: 0;
  margin-right: 8px;
}

.verification-detail-val {
  font-weight: 700;
  color: var(--text-main);
  text-align: right;
  word-break: break-word;
}

.verification-notes-callout {
  background: var(--bg-surface-elevated);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--primary);
  font-size: 0.8rem;
  color: var(--text-main);
  line-height: 1.4;
}

.verification-actions-bar {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
  flex-wrap: wrap;
}

/* Sighting Submission Modal Styles */
.sighting-submission-box {
  max-width: 680px;
  width: 95%;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
}

.sighting-prefill-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(234, 88, 12, 0.12);
  border: 1px solid rgba(234, 88, 12, 0.35);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin-bottom: 1rem;
}

.sighting-prefill-thumb {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 2px solid var(--primary);
  flex-shrink: 0;
}

.sighting-dropzone {
  border: 2px dashed var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  background: var(--bg-surface);
}

.sighting-dropzone.drag-over,
.sighting-dropzone:hover {
  border-color: var(--primary);
  background: rgba(234, 88, 12, 0.05);
}

.sighting-preview-wrap {
  position: relative;
  width: 100%;
  height: 160px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-top: 0.5rem;
  border: 1px solid var(--border-subtle);
}

.sighting-preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sighting-pin-map-container {
  width: 100%;
  height: 160px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  margin-top: 6px;
  overflow: hidden;
}


/* =====================================================
   COMMUNITY SIGHTINGS VIEW
   ===================================================== */

/* Stats Bar */
.sightings-stats-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.sightings-stat-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
}

.sightings-stat-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface-elevated);
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

.sightings-stat-value {
  font-size: 1.35rem;
  font-weight: 800;
  font-family: var(--font-heading);
  line-height: 1;
}

.sightings-stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Filter Bar */
.sightings-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  padding: 0.85rem 1.1rem;
  margin-bottom: 1.25rem;
}

/* Filter pills */
.sightings-filter-pill {
  font-size: 0.8rem;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  transition: var(--transition);
}

.sightings-filter-pill.active {
  font-weight: 700;
}

/* Cards Grid */
.sightings-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 1.1rem;
}

/* Individual Sighting Card */
.sighting-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.sighting-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.sighting-card-dismissed {
  opacity: 0.6;
}

.sighting-card-photo-wrap {
  position: relative;
  width: 100%;
  height: 170px;
  overflow: hidden;
  cursor: zoom-in;
  flex-shrink: 0;
}

.sighting-card-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.sighting-card:hover .sighting-card-photo {
  transform: scale(1.04);
}

.sighting-card-status-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
}

.sighting-card-body {
  padding: 0.95rem 1rem 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.sighting-card-detail-row {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 4px;
  line-height: 1.3;
}

.sighting-card-detail-row svg {
  flex-shrink: 0;
}

.sighting-card-notes {
  font-size: 0.78rem;
  color: var(--text-dim);
  font-style: italic;
  line-height: 1.4;
  margin: 0.45rem 0 0;
  padding: 6px 10px;
  background: var(--bg-surface-elevated);
  border-radius: var(--radius-sm);
  border-left: 2px solid var(--border-glass);
}

.sighting-card-linked-pet {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.75rem;
  padding: 8px 10px;
  background: var(--primary-light);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-glass);
}

.sighting-card-linked-pet img {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}

/* Empty State */
.sightings-empty-state {
  text-align: center;
  padding: 3rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}

.sightings-empty-state h3 {
  font-size: 1.1rem;
  color: var(--text-muted);
}

.sightings-empty-state p {
  font-size: 0.875rem;
  color: var(--text-dim);
  max-width: 380px;
  line-height: 1.5;
}

/* Responsive tweaks */
@media (max-width: 640px) {
  .sightings-stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }

  .sightings-cards-grid {
    grid-template-columns: 1fr;
  }

  .sightings-filter-bar {
    flex-direction: column;
    align-items: stretch;
  }
}
