/* Grid report — redesigned layout (v2) */

.site-main--report-focus {
  max-width: 1240px;
}

.site-main--report-focus .recon-results {
  display: none;
}

body.body--scan-active .grid-report-section {
  min-height: min(92vh, 960px);
}


.grid-report-section {
  padding: 0 0 3rem;
  scroll-margin-top: 5.5rem;
  outline: none;
}

.site-main--report-focus .grid-report-section {
  min-height: min(85vh, 920px);
}

.premium-dashboard-wrapper--v2 {
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  animation: reportFadeIn 0.45s ease;
}

.premium-dashboard-wrapper--v2 .premium-dashboard-bg {
  display: none;
}

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

.premium-dashboard-wrapper--v2 .premium-dashboard-inner {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Report hero */
.report-hero {
  display: grid;
  gap: 1rem 1.25rem;
  padding: 1.35rem 1.5rem;
  background: linear-gradient(135deg, rgba(17, 22, 28, 0.95) 0%, rgba(8, 12, 18, 0.98) 100%);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

@media (min-width: 768px) {
  .report-hero {
    grid-template-columns: 1fr auto auto;
    align-items: center;
  }
}

.report-hero__lead {
  min-width: 0;
}

.report-hero__badge {
  display: inline-block;
  margin-bottom: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
}

.report-hero h2 {
  margin: 0;
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 600;
  line-height: 1.25;
  color: var(--text-primary);
}

.report-hero--secure h2 {
  color: #7dffb2;
}

.report-hero__location {
  margin: 0.35rem 0 0;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.report-hero__health {
  flex-shrink: 0;
}

.report-hero__new-scan {
  justify-self: start;
  align-self: start;
  padding: 0.55rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  font-family: var(--font-sans);
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.report-hero__new-scan:hover {
  border-color: var(--cyan);
  background: rgba(0, 229, 255, 0.08);
  color: var(--cyan);
}

@media (min-width: 768px) {
  .report-hero__new-scan {
    justify-self: end;
    align-self: center;
  }
}

.report-hero .dashboard-scan-progress {
  grid-column: 1 / -1;
  margin: 0;
}

.report-hero .dashboard-scan-status {
  grid-column: 1 / -1;
}

/* Health score card */
.health-score-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.65rem 0.85rem;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(0, 229, 255, 0.2);
  border-radius: 12px;
}

.health-score-card--loading {
  padding: 1rem 1.25rem;
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.health-score-card__ring {
  --score: 50;
  position: relative;
  width: 4.25rem;
  height: 4.25rem;
  border-radius: 50%;
  background: conic-gradient(
    var(--cyan) calc(var(--score) * 1%),
    rgba(148, 163, 184, 0.2) 0
  );
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.health-score-card__ring::before {
  content: '';
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: var(--black-elevated);
}

.health-score-card__value {
  position: relative;
  z-index: 1;
  font-size: 1.25rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text-primary);
  line-height: 1;
}

.health-score-card__value span {
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--text-muted);
}

.health-score-card__label {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-primary);
}

.health-score-card__tier {
  margin: 0.15rem 0 0;
  font-size: 0.6875rem;
  color: var(--text-muted);
  line-height: 1.35;
  max-width: 14ch;
}

.health-score-card__vuln {
  margin: 0.35rem 0 0;
  font-size: 0.625rem;
  color: #fbbf24;
}

/* Layout */
.report-layout {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

@media (min-width: 960px) {
  .report-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 340px);
    gap: 1.25rem 1.5rem;
    align-items: start;
  }
}

.report-layout__primary {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  min-width: 0;
}

.report-map-row {
  display: grid;
  gap: 1rem;
  min-width: 0;
}

@media (min-width: 900px) {
  .report-map-row {
    grid-template-columns: minmax(0, 1.45fr) minmax(260px, 340px);
    align-items: stretch;
  }
}

.report-card--heatmap {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.report-card--heatmap .heatmap-grid {
  max-width: none;
  width: 100%;
}

.heatmap-scan-status {
  margin: 0 0 0.65rem;
  font-size: 0.75rem;
  color: var(--cyan);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

.heatmap-cell__tier {
  font-size: 0.5625rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-top: 0.1rem;
}

.report-card--sector-feed .report-card__body--padded {
  padding: 0.85rem 1rem 1rem;
  max-height: min(28vh, 320px);
  overflow-y: auto;
}

.sector-results-feed__empty,
.sector-results-feed__pending {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--text-secondary);
}

.sector-results-feed__pending {
  margin-top: 0.65rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.sector-results-feed__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.sector-results-feed__item {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(0, 0, 0, 0.2);
  font-size: 0.8125rem;
  line-height: 1.4;
  animation: sectorFeedIn 0.45s ease;
}

.sector-results-feed__item--new {
  border-color: rgba(0, 229, 255, 0.35);
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.08);
}

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

.sector-results-feed__item--top {
  border-color: rgba(52, 211, 153, 0.28);
  background: rgba(16, 185, 129, 0.08);
}

.sector-results-feed__item--mid {
  border-color: rgba(251, 191, 36, 0.22);
  background: rgba(245, 158, 11, 0.06);
}

.sector-results-feed__item--low {
  border-color: rgba(248, 113, 113, 0.22);
  background: rgba(239, 68, 68, 0.06);
}

.sector-results-feed__rank {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--cyan);
  min-width: 1.75rem;
}

.sector-results-feed__item--top .sector-results-feed__rank {
  color: #6ee7b7;
}

.sector-results-feed__item--mid .sector-results-feed__rank {
  color: #fbbf24;
}

.sector-results-feed__item--low .sector-results-feed__rank {
  color: #fca5a5;
}

.sector-results-feed__text {
  color: var(--text-primary);
}

.report-layout__rail {
  min-width: 0;
}

.report-rail__inner {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

@media (min-width: 960px) {
  .report-rail__inner {
    position: sticky;
    top: 1rem;
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-right: 0.1rem;
  }
}

/* Cards */
.report-card {
  background: var(--black-panel);
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.report-card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1.15rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.report-card__title {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.report-card__hint {
  margin: 0;
  font-size: 0.6875rem;
  color: var(--text-muted);
}

.report-card__body {
  padding: 0;
}

.report-card__body--padded {
  padding: 1rem 1.15rem 1.15rem;
}

.report-card--map .radar-map-wrap,
.report-card--map .radar-map-canvas {
  height: min(52vh, 420px);
  min-height: 280px;
  border: none;
  border-radius: 0;
}

.report-card--matrix .competitor-matrix {
  margin: 0;
  border: none;
  border-radius: 0;
  background: transparent;
}

.report-card--matrix .matrix-container {
  padding: 0;
}

.report-card--matrix .premium-intel-heading {
  padding: 0.85rem 1.15rem;
  margin: 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.report-card--matrix .premium-intel-heading__icon {
  display: none;
}

.report-card--matrix .premium-intel-heading__text {
  font-size: inherit;
  letter-spacing: inherit;
}

.report-card--matrix .matrix-stale-banner {
  margin: 0.75rem 1.15rem 0;
}

.report-card--matrix .competitor-matrix-scroll {
  padding: 0 1.15rem 1.15rem;
}

/* Sidebar panels — calmer */
.premium-dashboard-wrapper--v2 .dashboard-glass-card,
.premium-dashboard-wrapper--v2 .competitor-heatmap-panel,
.premium-dashboard-wrapper--v2 .dashboard-competitors-panel,
.premium-dashboard-wrapper--v2 .optimization-gaps-panel,
.premium-dashboard-wrapper--v2 .shield-upsell-panel {
  background: var(--black-panel);
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: var(--radius-lg);
  padding: 1rem 1.1rem;
  backdrop-filter: none;
  box-shadow: none;
}

.premium-dashboard-wrapper--v2 .dashboard-glass-card:hover,
.premium-dashboard-wrapper--v2 .competitor-heatmap-panel:hover {
  transform: none;
  border-color: rgba(148, 163, 184, 0.22);
}

.competitor-heatmap-panel--rail .competitor-heatmap-panel__title {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
}

.competitor-heatmap-panel--rail .competitor-heatmap-panel__lead {
  display: none;
}

.dashboard-more-actions.report-card--collapsible {
  padding: 0;
  background: var(--black-panel);
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: var(--radius-lg);
}

.dashboard-more-actions.report-card--collapsible summary {
  padding: 0.85rem 1.1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
}

.dashboard-more-actions.report-card--collapsible > *:not(summary) {
  padding: 0 1.1rem 1rem;
}

.report-banner {
  padding: 0.85rem 1.15rem;
  background: rgba(0, 229, 255, 0.06);
  border: 1px solid rgba(0, 229, 255, 0.2);
  border-radius: var(--radius-lg);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.report-banner p {
  margin: 0;
  font-size: 0.875rem;
}

@media (prefers-reduced-motion: reduce) {
  .premium-dashboard-wrapper--v2 {
    animation: none;
  }
}

/* High-Stakes Split */
.high-stakes-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
  .high-stakes-split {
    grid-template-columns: 1fr 1fr;
  }
}

.split-card {
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.split-card--green {
  background: linear-gradient(145deg, rgba(16, 185, 129, 0.06), rgba(8, 10, 14, 0.95));
  border: 1px solid rgba(52, 211, 153, 0.2);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.05);
}

.split-card--red {
  background: linear-gradient(145deg, rgba(239, 68, 68, 0.06), rgba(8, 10, 14, 0.95));
  border: 1px solid rgba(248, 113, 113, 0.2);
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.05);
}

.split-card__title {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.split-card--green .split-card__title {
  color: #34d399;
}

.split-card--red .split-card__title {
  color: #fb7185;
}

.split-card__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.split-card__item {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--text-primary);
}

.split-card__item::before {
  position: absolute;
  left: 0;
  top: 0.15rem;
  font-weight: 700;
}

.split-card--green .split-card__item::before {
  content: "✓";
  color: #34d399;
}

.split-card--red .split-card__item::before {
  content: "⚠";
  color: #fb7185;
}

/* Step-by-Step Action Engine Checkbox styling */
.action-checkbox-wrap {
  display: inline-flex;
  align-items: center;
  position: relative;
  cursor: pointer;
  margin-right: 0.75rem;
  user-select: none;
}

.action-checkbox-wrap input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.custom-checkbox {
  height: 20px;
  width: 20px;
  background-color: var(--black-elevated);
  border: 1px solid rgba(0, 229, 255, 0.3);
  border-radius: 4px;
  display: inline-block;
  transition: all 0.2s ease;
  position: relative;
}

.action-checkbox-wrap:hover input ~ .custom-checkbox {
  border-color: var(--cyan);
  box-shadow: 0 0 8px var(--cyan-muted);
}

.action-checkbox-wrap input:checked ~ .custom-checkbox {
  background-color: var(--cyan);
  border-color: var(--cyan);
  box-shadow: 0 0 10px var(--cyan-glow);
}

.custom-checkbox::after {
  content: "";
  position: absolute;
  display: none;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid var(--black-stealth);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.action-checkbox-wrap input:checked ~ .custom-checkbox::after {
  display: block;
}

.action-step-text {
  transition: all 0.25s ease;
}

.mission-order-item.is-completed .action-step-text,
.cc-mission-item.is-completed .cc-mission-action {
  text-decoration: line-through;
  opacity: 0.5;
  color: var(--text-secondary);
}

/* Feedback bubble */
.action-feedback-bubble {
  position: absolute;
  left: 80px;
  top: -8px;
  background: var(--cyan);
  color: var(--black-stealth);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(12px) scale(0.8);
  transition: opacity 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 4px 15px rgba(0, 229, 255, 0.35);
  z-index: 100;
  white-space: nowrap;
}

.action-feedback-bubble.is-visible {
  opacity: 1;
  transform: translateY(-20px) scale(1);
}

.mission-order-item, .cc-mission-item {
  position: relative;
}

/* Gated Interactive Reveal Blur & Overlay */
.cc-dashboard-container {
  position: relative;
}

.cc-dashboard-blurred {
  filter: blur(12px) saturate(140%);
  pointer-events: none;
  user-select: none;
  transition: filter 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.cc-gated-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  background: rgba(4, 8, 15, 0.45);
  backdrop-filter: blur(1px);
  padding: 1.5rem;
  transition: opacity 0.5s ease;
}

.cc-gated-overlay.fade-out {
  opacity: 0;
  pointer-events: none;
}

.cc-lock-card {
  background: rgba(10, 15, 28, 0.92);
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  max-width: 480px;
  width: 100%;
  text-align: center;
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.8),
    0 0 40px rgba(0, 240, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  animation: lockCardFloat 4s ease-in-out infinite, lockCardReveal 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes lockCardFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes lockCardReveal {
  from { opacity: 0; transform: scale(0.9) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.cc-lock-card__icon {
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 240, 255, 0.1);
  color: var(--cyan);
  border-radius: 50%;
  border: 1px solid rgba(0, 240, 255, 0.35);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.2);
}

.cc-lock-card__title {
  margin: 0 0 0.5rem;
  font-family: var(--font-sans);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
}

.cc-lock-card__desc {
  margin: 0 0 1.75rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

.cc-lock-card .field {
  text-align: left;
  margin-bottom: 1.25rem;
}

.cc-lock-card .field label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.45rem;
}

.cc-lock-card .field input {
  width: 100%;
  font-size: 1.0625rem;
  padding: 0.85rem 1rem;
  min-height: 3.1rem;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.cc-lock-card .field input:focus {
  border-color: rgba(0, 240, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.15);
  outline: none;
}

.cc-lock-card .btn-primary {
  width: 100%;
  padding: 1rem 1.25rem;
  min-height: 3.25rem;
  font-size: 1.0625rem;
  font-weight: 700;
  border-radius: 10px;
  border: none;
  color: #041018;
  background: linear-gradient(135deg, #00f0ff 0%, #34d399 100%);
  box-shadow: 0 4px 20px rgba(0, 240, 255, 0.35);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, filter 0.15s;
}

.cc-lock-card .btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  filter: brightness(1.06);
  box-shadow: 0 8px 28px rgba(0, 240, 255, 0.45);
}

.cc-lock-card .btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.cc-lock-card__status {
  margin-top: 0.85rem;
  font-size: 0.8125rem;
  line-height: 1.4;
}

.cc-lock-card__status--error {
  color: #ff5c5c;
}

.cc-lock-card__status--success {
  color: #4ade80;
}
