/* =============================================================================
   COVERAGE PAGE — Standalone Coverage & LOS Checker
   Glassmorphic design inspired by internal LOS tool
   ============================================================================= */

/* ── Layout ── */
.cp-container { max-width: 100%; margin: 0 auto; padding: 0 var(--space-4); }

.cp-grid {
  display: grid;
  gap: var(--space-4);
  margin-bottom: 12px;
}
@media (min-width: 768px) {
  .cp-grid { grid-template-columns: 2fr 1fr; }
}

/* ── Glassmorphic Card ── */
.cp-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 15px rgba(79,70,229,0.08), inset 0 0 20px rgba(79,70,229,0.02);
}

/* ── Input Card ── */
.cp-input-card {
  margin-bottom: var(--space-4);
  padding: 10px 16px;
  overflow: visible;
  position: relative;
  z-index: 10;
}
.cp-toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 38px;
}
.cp-search-wrap {
  flex: 1;
  position: relative;
  min-width: 0;
}
.cp-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-muted);
  pointer-events: none;
}
.cp-search-input {
  width: 100%;
  padding: 9px 12px 9px 38px;
  background: var(--color-bg);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  color: var(--color-text-primary);
  font-size: 13px;
  font-family: var(--font-mono);
  box-sizing: border-box;
  transition: border-color 0.15s;
}
.cp-search-input::placeholder { color: var(--color-text-muted); }
.cp-search-input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 2px rgba(79,70,229,0.12), 0 0 8px rgba(79,70,229,0.15);
}
.cp-search-results {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  margin-top: 4px;
  z-index: 50;
  max-height: 220px;
  overflow-y: auto;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.cp-search-item {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--color-text-secondary);
  cursor: pointer;
  border-bottom: 1px solid var(--color-border);
  transition: background 0.15s;
}
.cp-search-item:last-child { border-bottom: none; }
.cp-search-item:hover {
  background: var(--color-elevated);
  color: var(--color-text-primary);
}

/* Buttons */
.cp-btn {
  border: none;
  border-radius: 8px;
  padding: 9px 18px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  flex-shrink: 0;
}
.cp-btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none !important; box-shadow: none !important; }
.cp-btn-primary {
  background: var(--color-accent);
  color: #fff;
  box-shadow: 0 0 10px rgba(79,70,229,0.3);
}
.cp-btn-primary:hover:not(:disabled) {
  background: var(--color-accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(79,70,229,0.4), 0 0 10px rgba(79,70,229,0.2);
}
.cp-btn-primary.checking { animation: cp-pulse-btn 1.5s ease-in-out infinite; }
@keyframes cp-pulse-btn { 0%,100% { box-shadow: 0 0 0 0 rgba(79,70,229,0.4); } 50% { box-shadow: 0 0 0 8px rgba(79,70,229,0); } }

.cp-btn-ghost {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--color-text-muted);
  padding: 8px 14px;
}
.cp-btn-ghost:hover {
  border-color: rgba(255,255,255,0.2);
  color: var(--color-text-primary);
  background: rgba(255,255,255,0.03);
}
.cp-btn-spinner { width: 14px; height: 14px; border: 2px solid rgba(255,255,255,0.3); border-top-color: #fff; border-radius: 50%; animation: cp-spin 0.6s linear infinite; }
@keyframes cp-spin { to { transform: rotate(360deg); } }

/* Mobile toolbar stacks */
@media (max-width: 520px) {
  .cp-toolbar { flex-wrap: wrap; }
  h1.cp-bar-title { display: none; }
  .cp-search-wrap { flex: 1 1 100%; }
  .cp-btn { flex: 1; justify-content: center; }
}

/* ── Inline bar title ── */
h1.cp-bar-title {
  font-size: 14px !important;
  font-weight: 700 !important;
  color: var(--color-text-primary);
  white-space: nowrap;
  margin: 0 !important;
  padding: 0 !important;
  letter-spacing: -0.01em !important;
  line-height: 1 !important;
  text-wrap: nowrap !important;
}

/* ── Map ── */
.cp-map-card { min-height: 420px; }
.cp-map {
  width: 100%;
  height: 60vh;
  min-height: 400px;
  z-index: 1;
}
@media (min-width: 768px) {
  .cp-map-card { display: flex; flex-direction: column; }
  .cp-map { height: calc(100vh - 200px) !important; min-height: 450px !important; }
}
/* Leaflet dark overrides */
.cp-map .leaflet-control-zoom a {
  background: rgba(20,24,33,0.95) !important;
  color: #ccc !important;
  border-color: rgba(255,255,255,0.1) !important;
}
.cp-map .leaflet-popup-content-wrapper {
  background: var(--color-surface);
  color: var(--color-text-primary);
  border-radius: 8px;
}
.cp-map .leaflet-popup-tip { background: var(--color-surface); }

/* Coverage toggle control */
.cp-coverage-toggle {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(20,24,33,0.95);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  color: #ccc;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}
.cp-coverage-toggle:hover {
  background: rgba(30,36,50,0.95);
  color: #fff;
  border-color: rgba(255,255,255,0.2);
}
.cp-coverage-toggle.active {
  color: var(--color-accent);
  border-color: var(--color-accent);
  box-shadow: 0 0 10px rgba(79,70,229,0.3), 0 2px 6px rgba(0,0,0,0.3);
}
.cp-coverage-toggle.loading {
  opacity: 0.6;
  pointer-events: none;
}
.cp-coverage-toggle svg { display: block; }

/* Coverage control wrapper + tip */
.cp-coverage-ctrl { display: flex; align-items: center; gap: 8px; flex-direction: row-reverse; }
.cp-coverage-tip {
  background: rgba(20,24,33,0.95);
  border: 1px solid rgba(79,70,229,0.3);
  color: #c7d2fe;
  font-size: 11px;
  font-weight: 500;
  padding: 5px 10px;
  border-radius: 6px;
  white-space: nowrap;
  pointer-events: none;
  animation: cp-tip-in 0.4s ease 0.5s both;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
@keyframes cp-tip-in {
  from { opacity: 0; transform: translateX(8px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Region nav buttons */
.cp-region-nav {
  display: flex;
  gap: 4px;
  background: rgba(20,24,33,0.92);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 3px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.cp-region-nav-btn {
  border: none;
  background: transparent;
  color: rgba(255,255,255,0.55);
  font-size: 11px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.cp-region-nav-btn:hover {
  color: #fff;
  background: rgba(255,255,255,0.08);
}
.cp-region-nav-btn.active {
  color: #fff;
  background: var(--color-accent);
  box-shadow: 0 0 8px rgba(79,70,229,0.4);
}

/* Region labels on map */
.cp-region-label {
  background: none !important;
  border: none !important;
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,0.7);
  text-shadow: 0 1px 4px rgba(0,0,0,0.8), 0 0 2px rgba(0,0,0,0.9);
  white-space: nowrap;
  letter-spacing: 0.5px;
  pointer-events: none !important;
}

/* ── Results Card ── */
.cp-results-card { display: flex; flex-direction: column; min-height: 0; height: 100%; }

/* Coverage status bar */
.cp-coverage-status {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  animation: cp-fade-in 0.3s ease;
}
.cp-coverage-icon { flex-shrink: 0; }
.cp-coverage-icon.success { color: var(--color-success); }
.cp-coverage-icon.warning { color: var(--color-warning); }
.cp-coverage-info { flex: 1; min-width: 0; }
.cp-coverage-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-primary);
}
.cp-coverage-sub {
  font-size: 11px;
  color: var(--color-text-muted);
  margin-top: 2px;
}
.cp-pills { display: flex; gap: 6px; flex-shrink: 0; }
.cp-pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.cp-pill.fibre { background: var(--color-accent); color: #fff; }
.cp-pill.wireless { background: var(--color-secondary); color: var(--color-bg); }
.cp-gps {
  font-size: 10px;
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  flex-shrink: 0;
}

@keyframes cp-fade-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Empty / initial state */
.cp-results-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
  color: var(--color-text-muted);
  gap: 12px;
  flex: 1;
}
.cp-results-empty svg { opacity: 0.3; }
.cp-results-empty h3 { font-size: 14px; color: var(--color-text-secondary); margin: 0; }
.cp-results-empty p { font-size: 12px; margin: 0; }

/* ── Scanning Animation ── */
.cp-scanning {
  display: none;
  position: relative;
  overflow: hidden;
  flex: 1;
  min-height: 260px;
  background: radial-gradient(ellipse at center, rgba(79,70,229,0.04) 0%, transparent 70%);
}
.cp-scanning.active { display: flex; flex-direction: column; animation: cp-fade-in 0.3s ease; }

.cp-scan-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(79,70,229,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79,70,229,0.06) 1px, transparent 1px);
  background-size: 40px 40px;
}

.cp-scan-radar { position: absolute; top: calc(50% - 30px); left: 50%; transform: translate(-50%, -50%); width: min(90%, calc(100% - 40px)); aspect-ratio: 1; max-width: calc(100% - 40px); max-height: calc(100% - 120px); }
.cp-scan-ring { position: absolute; border: 1px solid rgba(79,70,229,0.18); border-radius: 50%; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.cp-scan-ring:nth-child(1) { width: 25%; height: 25%; }
.cp-scan-ring:nth-child(2) { width: 50%; height: 50%; }
.cp-scan-ring:nth-child(3) { width: 75%; height: 75%; }
.cp-scan-ring:nth-child(4) { width: 100%; height: 100%; border-color: rgba(79,70,229,0.06); }

.cp-scan-cross-h, .cp-scan-cross-v { position: absolute; background: rgba(79,70,229,0.08); }
.cp-scan-cross-h { width: 100%; height: 1px; top: 50%; left: 0; }
.cp-scan-cross-v { width: 1px; height: 100%; top: 0; left: 50%; }

.cp-scan-sweep {
  position: absolute; top: 50%; left: 50%; width: 50%; height: 3px;
  transform-origin: 0 50%; animation: cp-sweep 3s linear infinite;
  background: linear-gradient(90deg, rgba(79,70,229,0.9), rgba(79,70,229,0.1));
  box-shadow: 0 0 8px rgba(79,70,229,0.5);
  will-change: transform;
}
.cp-scan-sweep::after {
  content: ''; position: absolute; top: -80px; left: 0; width: 100%; height: 160px; transform-origin: 0 50%;
  background: conic-gradient(from -15deg, rgba(79,70,229,0.15) 0deg, transparent 30deg);
}
@keyframes cp-sweep { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.cp-scan-pulse {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  border: 1px solid rgba(79,70,229,0.3); border-radius: 50%;
  width: 10px; height: 10px; animation: cp-pulse-out 2.5s ease-out infinite;
}
.cp-scan-pulse + .cp-scan-pulse { animation-delay: 0.8s; }
.cp-scan-pulse + .cp-scan-pulse + .cp-scan-pulse { animation-delay: 1.6s; }
@keyframes cp-pulse-out { 0% { width: 10px; height: 10px; opacity: 0.8; } 100% { width: 110%; height: 110%; opacity: 0; } }

.cp-scan-dot {
  position: absolute; top: 50%; left: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px;
  background: var(--color-accent); border-radius: 50%;
  box-shadow: 0 0 16px rgba(79,70,229,0.8), 0 0 32px rgba(79,70,229,0.4);
  z-index: 2;
}

.cp-scan-blip {
  position: absolute; width: 6px; height: 6px; border-radius: 50%;
  background: rgba(34,197,94,0.8); box-shadow: 0 0 8px rgba(34,197,94,0.5);
  animation: cp-blip 1.5s ease-in-out infinite alternate;
}
.cp-scan-blip:nth-child(1) { top: 22%; left: 35%; animation-delay: 0s; }
.cp-scan-blip:nth-child(2) { top: 30%; left: 68%; animation-delay: 0.3s; }
.cp-scan-blip:nth-child(3) { top: 65%; left: 25%; animation-delay: 0.6s; }
.cp-scan-blip:nth-child(4) { top: 70%; left: 72%; animation-delay: 0.9s; }
.cp-scan-blip:nth-child(5) { top: 40%; left: 80%; animation-delay: 0.4s; }
@keyframes cp-blip { 0% { opacity: 0.3; transform: scale(0.8); } 100% { opacity: 1; transform: scale(1.3); } }

.cp-scan-wave { position: absolute; bottom: 50px; left: 5%; width: 90%; height: 60px; }
.cp-scan-wave svg { width: 100%; height: 100%; }
.cp-scan-wave-line { fill: none; stroke: rgba(79,70,229,0.3); stroke-width: 1.5; stroke-dasharray: 800; stroke-dashoffset: 800; animation: cp-wave-draw 4s ease-in-out infinite; }
.cp-scan-wave-fill { fill: rgba(79,70,229,0.05); stroke: none; }
.cp-scan-wave-cursor { animation: cp-wave-cursor 4s ease-in-out infinite; }
@keyframes cp-wave-draw { 0% { stroke-dashoffset: 800; } 50% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 0; } }
@keyframes cp-wave-cursor { 0% { transform: translateX(0%); opacity: 1; } 50% { transform: translateX(700px); opacity: 1; } 51% { opacity: 0; } 100% { opacity: 0; } }

.cp-scan-status { position: absolute; bottom: 20px; left: 0; right: 0; text-align: center; }
.cp-scan-status-text {
  font-size: 11px; color: rgba(79,70,229,0.7);
  font-family: var(--font-mono); letter-spacing: 1px;
  animation: cp-status-fade 1.5s ease-in-out infinite;
}
.cp-scan-counter { font-size: 10px; color: rgba(255,255,255,0.2); margin-top: 4px; font-family: var(--font-mono); }
@keyframes cp-status-fade { 0%,100% { opacity: 0.5; } 50% { opacity: 1; } }

.cp-scan-data {
  position: absolute; font-family: var(--font-mono); font-size: 9px;
  color: rgba(79,70,229,0.25); white-space: nowrap;
}
.cp-scan-data.tl { top: 16px; left: 20px; }
.cp-scan-data.tr { top: 16px; right: 20px; text-align: right; }
.cp-scan-data.bl { bottom: 90px; left: 20px; }
.cp-scan-data.br { bottom: 90px; right: 20px; text-align: right; }

/* Mobile: shorter scanning */
@media (max-width: 767px) {
  .cp-scan-data { display: none; }
}

/* Override prefers-reduced-motion for scanning animation — this is a key UI feature */
@media (prefers-reduced-motion: reduce) {
  .cp-scan-sweep { animation: cp-sweep 3s linear infinite !important; }
  .cp-scan-pulse { animation: cp-pulse-out 2.5s ease-out infinite !important; }
  .cp-scan-pulse + .cp-scan-pulse { animation: cp-pulse-out 2.5s ease-out infinite 0.8s !important; }
  .cp-scan-pulse + .cp-scan-pulse + .cp-scan-pulse { animation: cp-pulse-out 2.5s ease-out infinite 1.6s !important; }
  .cp-scan-blip { animation: cp-blip 1.5s ease-in-out infinite alternate !important; }
  .cp-scan-wave-line { animation: cp-wave-draw 4s ease-in-out infinite !important; }
  .cp-scan-wave-cursor { animation: cp-wave-cursor 4s ease-in-out infinite !important; }
  .cp-scan-status-text { animation: cp-status-fade 1.5s ease-in-out infinite !important; }
  .cp-loading-spinner { animation: cp-spin 0.8s linear infinite !important; }
  .cp-results-wrap.active { animation: cp-fade-in 0.3s ease !important; }
  .cp-coverage-status { animation: cp-fade-in 0.3s ease !important; }
  .cp-chart-card.active { animation: cp-fade-in 0.3s ease !important; }
}

/* ── Results Table ── */
.cp-results-wrap { display: none; animation: cp-fade-in 0.3s ease; }
.cp-results-wrap.active { display: block; }

.cp-summary-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  flex-wrap: wrap;
}
.cp-summary-counts { display: flex; gap: 12px; font-size: 11px; font-weight: 500; }
.cp-summary-count { display: flex; align-items: center; gap: 5px; }
.cp-summary-count .dot { width: 7px; height: 7px; border-radius: 50%; box-shadow: 0 0 6px currentColor; }
.cp-summary-best {
  margin-left: auto;
  display: flex; align-items: center; gap: 8px;
  font-size: 11px;
  background: rgba(34,197,94,0.08);
  border: 1px solid rgba(34,197,94,0.2);
  border-radius: 999px;
  padding: 4px 14px 4px 10px;
  box-shadow: 0 0 12px rgba(34,197,94,0.15);
}
.cp-summary-best .best-label { color: var(--color-text-muted); font-weight: 500; }
.cp-summary-best .best-name { color: #22c55e; font-weight: 700; }
.cp-summary-none {
  font-size: 12px;
  color: var(--color-warning);
  padding: 12px 16px;
}
.cp-summary-none a { color: var(--color-link); }

.cp-results-scroll { max-height: 400px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.1) transparent; }
.cp-results-scroll::-webkit-scrollbar { width: 4px; }
.cp-results-scroll::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 2px; }

.cp-results-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.cp-results-table th {
  padding: 9px 16px; text-align: left; font-size: 10px; text-transform: uppercase; letter-spacing: 0.5px;
  color: var(--color-text-muted); font-weight: 500; background: rgba(0,0,0,0.3); backdrop-filter: blur(8px);
  position: sticky; top: 0; z-index: 2;
}
.cp-results-table th.r { text-align: right; }
.cp-results-table td {
  padding: 10px 16px; border-bottom: 1px solid rgba(255,255,255,0.03);
  font-family: var(--font-mono); font-size: 12px;
}
.cp-results-table td.r { text-align: right; }
.cp-results-table tbody tr {
  cursor: pointer; transition: background 0.15s, box-shadow 0.15s;
}
.cp-results-table tbody tr:nth-child(even) { background: rgba(255,255,255,0.015); }
.cp-results-table tbody tr:hover { background: rgba(79,70,229,0.08); box-shadow: inset 0 0 0 1px rgba(79,70,229,0.15); }
.cp-results-table tbody tr.selected { background: rgba(79,70,229,0.1); box-shadow: inset 3px 0 0 var(--color-accent), 0 0 12px rgba(79,70,229,0.08); }

/* Row left border by status */
.cp-results-table tbody tr.row-clear td:first-child,
.cp-results-table tbody tr.row-marginal td:first-child { position: relative; }
.cp-results-table tbody tr.row-clear td:first-child::before {
  content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 3px;
  border-radius: 6px; background: #22c55e; box-shadow: 0 0 8px rgba(34,197,94,0.5);
}
.cp-results-table tbody tr.row-marginal td:first-child::before {
  content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 3px;
  border-radius: 6px; background: #f59e0b; box-shadow: 0 0 6px rgba(245,158,11,0.4);
}

/* Status badges */
.cp-status {
  display: inline-flex; align-items: center;
  font-size: 10px; font-weight: 600; text-transform: uppercase;
  padding: 3px 10px; border-radius: 999px; letter-spacing: 0.3px;
}
.cp-status.clear {
  background: rgba(34,197,94,0.12); color: #22c55e; border: 1px solid rgba(34,197,94,0.2);
  box-shadow: 0 0 8px rgba(34,197,94,0.15); text-shadow: 0 0 6px rgba(34,197,94,0.3);
}
.cp-status.marginal {
  background: rgba(245,158,11,0.12); color: #f59e0b; border: 1px solid rgba(245,158,11,0.2);
  box-shadow: 0 0 8px rgba(245,158,11,0.15); text-shadow: 0 0 6px rgba(245,158,11,0.3);
}

/* Signal quality */
.cp-signal { font-weight: 600; font-size: 11px; }
.cp-signal.excellent { color: #22c55e; }
.cp-signal.good { color: #86efac; }
.cp-signal.fair { color: #f59e0b; }
.cp-signal.poor { color: #ef4444; }

/* Clearance cell */
.cp-clearance-cell { display: flex; align-items: center; gap: 8px; justify-content: flex-end; }
.cp-clearance-bar { width: 60px; height: 4px; background: rgba(255,255,255,0.06); border-radius: 2px; overflow: hidden; flex-shrink: 0; }
.cp-clearance-fill { height: 100%; border-radius: 2px; transition: width 0.3s; box-shadow: 0 0 6px currentColor; }

/* Results CTA */
.cp-results-cta {
  padding: 12px 16px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.cp-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px 16px;
  background: var(--color-accent);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s;
  box-shadow: 0 0 12px rgba(79,70,229,0.3);
}
.cp-cta-btn:hover {
  background: var(--color-accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(79,70,229,0.4), 0 0 12px rgba(79,70,229,0.2);
}
.cp-cta-btn span { transition: transform 0.2s; }
.cp-cta-btn:hover span { transform: translateX(3px); }

/* ── Chart Card ── */
.cp-chart-card {
  display: none;
  margin-bottom: var(--space-4);
  animation: cp-fade-in 0.3s ease;
}
.cp-chart-card.active { display: block; }
.cp-chart-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px; border-bottom: 1px solid rgba(255,255,255,0.04);
}
.cp-chart-title { font-size: 12px; font-weight: 600; }
.cp-chart-meta { display: flex; gap: 14px; font-size: 10px; color: var(--color-text-muted); }
.cp-chart-meta strong { color: var(--color-text-primary); font-weight: 600; }
.cp-chart-close {
  background: none; border: none; color: var(--color-text-muted); cursor: pointer;
  font-size: 18px; padding: 4px 8px; border-radius: 4px; transition: color 0.15s; line-height: 1;
}
.cp-chart-close:hover { color: var(--color-text-primary); }
.cp-chart-body { padding: 14px 16px; height: 280px; }
.cp-chart-body canvas { max-height: 260px; }
.cp-legend { display: flex; gap: 12px; font-size: 10px; color: var(--color-text-muted); padding: 6px 16px 12px; }
.cp-legend-item { display: flex; align-items: center; gap: 4px; }
.cp-legend-color { width: 12px; height: 3px; border-radius: 2px; }

/* ── Coverage Page Footer ── */
.cp-footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: 16px 24px;
}
.cp-footer-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12px;
}
.cp-footer-copy {
  color: var(--color-text-muted);
}
.cp-footer-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--color-border-strong);
  flex-shrink: 0;
}
.cp-footer-cta {
  color: var(--color-accent-light);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s;
}
.cp-footer-cta:hover {
  color: var(--color-accent);
}
.cp-footer-links {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cp-footer-links a {
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color 0.15s;
}
.cp-footer-links a:hover { color: var(--color-text-primary); }
@media (max-width: 640px) {
  .cp-footer-dot { display: none; }
  .cp-footer-inner { flex-direction: column; gap: 8px; }
}

/* ── Loading overlay for coverage check ── */
.cp-loading-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  color: var(--color-text-muted);
  font-size: 12px;
  animation: cp-fade-in 0.3s ease;
}
.cp-loading-spinner {
  width: 16px; height: 16px;
  border: 2px solid var(--color-border);
  border-top-color: var(--color-accent);
  border-radius: 50%;
  animation: cp-spin 0.8s linear infinite;
  flex-shrink: 0;
}
