/* Public bot traffic dashboard — mobile-first */
.pbt-body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.45;
  color: #0f172a;
  background: #f1f5f9;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.pbt-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px 10px;
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
}

.pbt-brand {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.pbt-brand h1 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
}

.pbt-sub {
  margin: 4px 0 0;
  font-size: 0.88rem;
  color: #64748b;
}

.pbt-live-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #22c55e;
  margin-top: 6px;
  flex-shrink: 0;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.25);
  animation: pbtPulse 1.6s ease-out infinite;
}

@keyframes pbtPulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.45); }
  70% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.pbt-map-wrap {
  flex: 0 0 auto;
  min-height: 42vh;
  height: min(68vh, 520px);
  position: relative;
  background: #e2e8f0;
}

.pbt-map {
  width: 100%;
  height: 100%;
}

.pbt-map-empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  text-align: center;
  color: #64748b;
  font-size: 0.95rem;
  pointer-events: none;
}

.pbt-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 12px 16px 0;
}

.pbt-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 14px;
}

.pbt-card-wide {
  grid-column: 1 / -1;
}

.pbt-card-label {
  display: block;
  font-size: 0.82rem;
  color: #64748b;
  font-weight: 600;
  margin-bottom: 4px;
}

.pbt-card-value {
  font-size: 1.65rem;
  font-weight: 800;
  color: #0e7490;
}

.pbt-breakdown {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.pbt-pill {
  font-size: 0.82rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f1f5f9;
}

.pbt-pill-good { color: #15803d; }
.pbt-pill-suspicious { color: #b45309; }
.pbt-pill-malicious { color: #b91c1c; }

.pbt-lists {
  padding: 12px 16px 80px;
  display: grid;
  gap: 12px;
}

.pbt-panel {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 14px;
}

.pbt-panel h2 {
  margin: 0 0 10px;
  font-size: 0.95rem;
  font-weight: 800;
}

.pbt-ol {
  margin: 0;
  padding-left: 1.2rem;
}

.pbt-ol li {
  margin-bottom: 6px;
  font-size: 0.92rem;
}

.pbt-ol .pbt-count {
  color: #64748b;
  font-weight: 600;
}

.pbt-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.95);
  border-top: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.8rem;
  color: #64748b;
}

.pbt-footer-note {
  font-size: 0.75rem;
}

.pbt-map-tooltip {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #fff;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
}

@media (min-width: 720px) {
  .pbt-body {
    max-width: 960px;
    margin: 0 auto;
    box-shadow: 0 0 0 1px #e2e8f0;
  }

  .pbt-lists {
    grid-template-columns: 1fr 1fr;
  }
}
