@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@600;700;800&family=Inter:wght@400;500;600&display=swap');

/* ============================================================
   ROOT VARIABLES
   ============================================================ */
:root {
  --oc-black: #000000;
  --oc-yellow: #f4d017;
  --oc-magenta: #d100d2;
  --oc-white: #ffffff;
  --oc-body: #eeeeee;
  --oc-muted: #888888;
  --oc-light: #f5f5f5;
  --oc-dark-card: #111111;
  --oc-card: #141414;
  --oc-border: #222222;
  --oc-font-head: 'Poppins', sans-serif;
  --oc-font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --oc-max-w: 1100px;
  --oc-radius: 8px;
  --oc-transition: 0.25s ease;
  --oc-green: #22c55e;
}

/* ============================================================
   RESET + BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background: #0a0a0a;
  color: var(--oc-body);
  font-family: var(--oc-font-body);
  line-height: 1.6;
  min-height: 100vh;
}

img { max-width: 100%; display: block; }
a { color: var(--oc-yellow); text-decoration: none; }
a:hover { text-decoration: underline; }
button { cursor: pointer; font-family: var(--oc-font-body); border: none; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4 {
  font-family: var(--oc-font-head);
  line-height: 1.2;
  color: var(--oc-white);
}

h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 700; }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

label {
  font-family: var(--oc-font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--oc-body);
  display: block;
  margin-bottom: 0.4rem;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.page-wrap {
  max-width: var(--oc-max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-block {
  padding: 80px 0;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: end;
}

.three-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: #000;
  border-bottom: 1px solid var(--oc-border);
  height: 60px;
  display: flex;
  align-items: center;
}

.nav-inner {
  max-width: var(--oc-max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo img {
  height: 32px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--oc-muted);
  transition: color var(--oc-transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--oc-white);
  text-decoration: none;
}

.nav-links .btn-nav {
  background: var(--oc-yellow);
  color: #000;
  padding: 0.4rem 1rem;
  border-radius: var(--oc-radius);
  font-weight: 600;
  font-size: 0.875rem;
  font-family: var(--oc-font-head);
}

.nav-links .btn-nav:hover {
  background: var(--oc-magenta);
  color: #fff;
  text-decoration: none;
}

.main-content {
  padding-top: 60px;
}

/* ============================================================
   PROGRESS BAR
   ============================================================ */
.progress-bar-wrap {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.progress-segment {
  flex: 1;
  height: 4px;
  background: var(--oc-border);
  border-radius: 2px;
  transition: background 0.3s ease;
}

.progress-segment.active {
  background: var(--oc-yellow);
}

.step-labels {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.step-label {
  font-size: 0.75rem;
  color: var(--oc-muted);
  font-weight: 500;
}

.step-label.active {
  color: var(--oc-yellow);
}

/* ============================================================
   FORM ELEMENTS
   ============================================================ */
.form-group {
  margin-bottom: 1.25rem;
}

.form-hint {
  font-size: 0.75rem;
  color: var(--oc-muted);
  margin-top: 0.3rem;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
select,
textarea {
  width: 100%;
  background: var(--oc-dark-card);
  border: 1px solid #555555;
  border-radius: var(--oc-radius);
  color: var(--oc-white);
  font-family: var(--oc-font-body);
  font-size: 1rem;
  padding: 0.75rem 1rem;
  transition: border-color var(--oc-transition);
  outline: none;
  -webkit-appearance: none;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
  border-color: var(--oc-yellow);
  box-shadow: 0 0 0 2px rgba(244, 208, 23, 0.15);
}

input::placeholder,
textarea::placeholder {
  color: #555;
}

select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23888' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

select option {
  background: #1a1a1a;
}

/* Input prefix wrapper */
.input-prefix-wrap {
  position: relative;
}

.input-prefix {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--oc-muted);
  font-size: 1rem;
  pointer-events: none;
}

.input-prefix-wrap input {
  padding-left: 2rem;
}

/* ============================================================
   QUICK-SELECT CHIPS
   ============================================================ */
.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.chip {
  background: var(--oc-dark-card);
  border: 1px solid #484848;
  border-radius: 100px;
  color: var(--oc-body);
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.4rem 1rem;
  transition: all var(--oc-transition);
  white-space: nowrap;
}

.chip:hover {
  border-color: var(--oc-yellow);
  color: var(--oc-white);
}

.chip.active {
  background: var(--oc-yellow);
  border-color: var(--oc-yellow);
  color: #000;
}

/* ============================================================
   LIVE LEAKAGE TICKER
   ============================================================ */
.ticker {
  display: none;
  position: sticky;
  top: 60px;
  z-index: 90;
  background: #0d0d0d;
  border-bottom: 1px solid var(--oc-border);
  padding: 0.6rem 1.5rem;
  text-align: center;
}

.ticker.visible { display: block; }

.ticker-inner {
  max-width: var(--oc-max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.ticker-label {
  font-size: 0.875rem;
  color: var(--oc-muted);
}

.ticker-value {
  font-family: var(--oc-font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--oc-magenta);
  transition: transform 0.2s ease;
}

.ticker-value.pulse {
  transform: scale(1.08);
}

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--oc-card);
  border: 1px solid var(--oc-border);
  border-radius: var(--oc-radius);
  padding: 1.5rem;
}

.card-sm {
  padding: 1rem;
}

/* ============================================================
   FORM SECTION
   ============================================================ */
.form-section {
  max-width: 640px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.form-header {
  margin-bottom: 2rem;
  text-align: center;
}

.form-header h1 {
  margin-bottom: 0.5rem;
}

.form-header p {
  color: var(--oc-muted);
  font-size: 1rem;
}

.step-div { display: none; }
.step-div.active { display: block; }

.step-heading {
  font-family: var(--oc-font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--oc-yellow);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.8rem;
}

.btn-row {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--oc-font-head);
  font-size: 1rem;
  font-weight: 700;
  height: 48px;
  padding: 0 1.5rem;
  border-radius: var(--oc-radius);
  transition: all var(--oc-transition);
  border: none;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--oc-yellow);
  color: #000;
  flex: 1;
}

.btn-primary:hover {
  background: var(--oc-magenta);
  color: #fff;
  text-decoration: none;
}

.btn-secondary {
  background: transparent;
  color: var(--oc-muted);
  border: 1px solid #555555;
}

.btn-secondary:hover {
  border-color: var(--oc-body);
  color: var(--oc-white);
}

.btn-ghost {
  background: transparent;
  color: var(--oc-body);
  border: 1px solid #555555;
}

.btn-ghost:hover {
  border-color: var(--oc-yellow);
  color: var(--oc-yellow);
}

.btn-full { width: 100%; }

.btn-lg {
  height: 56px;
  font-size: 1.1rem;
  padding: 0 2rem;
}

/* ============================================================
   RESULTS SECTION
   ============================================================ */
.results-section {
  display: none;
  padding: 2rem 0 4rem;
}

.results-section.visible { display: block; }

.results-header {
  padding: 2rem 1.5rem;
  max-width: var(--oc-max-w);
  margin: 0 auto 2rem;
  border-bottom: 1px solid var(--oc-border);
}

.results-header-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.results-date {
  font-size: 0.875rem;
  color: var(--oc-muted);
  margin-top: 0.25rem;
}

.action-bar {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.action-bar .btn {
  font-size: 0.875rem;
  height: 40px;
  padding: 0 1.25rem;
}

/* Result sections */
.result-block {
  max-width: var(--oc-max-w);
  margin: 0 auto 2rem;
  padding: 0 1.5rem;
}

.result-block-inner {
  background: var(--oc-card);
  border: 1px solid var(--oc-border);
  border-radius: var(--oc-radius);
  padding: 2rem;
}

.result-block-title {
  font-family: var(--oc-font-head);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--oc-yellow);
  margin-bottom: 1.5rem;
}

/* ============================================================
   HEALTH SCORE DIAL
   ============================================================ */
.health-score-wrap {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.health-dial-container {
  flex-shrink: 0;
  width: 200px;
  text-align: center;
}

.health-dial-svg {
  width: 200px;
  height: 110px;
  overflow: visible;
}

.health-dial-bg {
  fill: none;
  stroke: var(--oc-border);
  stroke-width: 16;
  stroke-linecap: round;
}

.health-dial-arc {
  fill: none;
  stroke-width: 16;
  stroke-linecap: round;
  transition: stroke-dasharray 1s ease;
}

.health-dial-score {
  font-family: var(--oc-font-head);
  font-size: 2.5rem;
  font-weight: 800;
  fill: var(--oc-white);
}

.health-dial-label {
  font-size: 0.75rem;
  fill: var(--oc-muted);
}

.health-info { flex: 1; }

.health-label {
  font-family: var(--oc-font-head);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.health-description {
  color: var(--oc-muted);
  font-size: 0.95rem;
  margin: 0;
}

/* ============================================================
   METRIC CARDS
   ============================================================ */
.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.metric-card {
  background: #0d0d0d;
  border: 1px solid var(--oc-border);
  border-radius: var(--oc-radius);
  padding: 1rem;
}

.metric-value {
  font-family: var(--oc-font-head);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--oc-yellow);
  line-height: 1.1;
  margin-bottom: 0.25rem;
}

.metric-label {
  font-size: 0.75rem;
  color: var(--oc-muted);
  line-height: 1.3;
}

.metric-trend {
  font-size: 0.75rem;
  margin-top: 0.25rem;
}

.metric-trend.up { color: var(--oc-green); }
.metric-trend.down { color: var(--oc-magenta); }

/* ============================================================
   CHART CONTAINERS
   ============================================================ */
.chart-container {
  background: #0d0d0d;
  border: 1px solid var(--oc-border);
  border-radius: var(--oc-radius);
  padding: 1.5rem;
  margin-top: 1rem;
}

.chart-container canvas {
  max-height: 280px;
}

/* ============================================================
   COVERAGE MAP
   ============================================================ */
.coverage-map {
  margin-top: 1rem;
  background: #0d0d0d;
  border: 1px solid var(--oc-border);
  border-radius: var(--oc-radius);
  padding: 1.25rem;
  overflow-x: auto;
}

.coverage-grid {
  display: grid;
  grid-template-columns: 60px repeat(7, 1fr);
  gap: 3px;
  min-width: 400px;
}

.coverage-day-header {
  text-align: center;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--oc-muted);
  padding: 4px 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.coverage-time-label {
  font-size: 0.7rem;
  color: var(--oc-muted);
  display: flex;
  align-items: center;
  padding-right: 0.5rem;
  white-space: nowrap;
}

.coverage-cell {
  height: 28px;
  border-radius: 3px;
}

.coverage-cell.covered {
  background: rgba(244, 208, 23, 0.35);
  border: 1px solid rgba(244, 208, 23, 0.2);
}

.coverage-cell.uncovered {
  background: rgba(209, 0, 210, 0.15);
  border: 1px solid rgba(209, 0, 210, 0.1);
}

.coverage-legend {
  display: flex;
  gap: 1.5rem;
  margin-top: 0.75rem;
  font-size: 0.75rem;
  color: var(--oc-muted);
}

.coverage-legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 2px;
}

.legend-dot.covered { background: rgba(244, 208, 23, 0.5); }
.legend-dot.uncovered { background: rgba(209, 0, 210, 0.4); }

/* ============================================================
   CASE STUDY CALLOUT
   ============================================================ */
.case-study {
  border-left: 3px solid var(--oc-yellow);
  background: rgba(244, 208, 23, 0.05);
  border-radius: 0 var(--oc-radius) var(--oc-radius) 0;
  padding: 1.25rem 1.5rem;
  margin-top: 1rem;
}

.case-study-quote {
  font-size: 1rem;
  font-style: italic;
  color: var(--oc-white);
  margin-bottom: 0.75rem;
}

.case-study-meta {
  font-size: 0.8rem;
  color: var(--oc-muted);
}

.case-study-stat {
  font-family: var(--oc-font-head);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--oc-yellow);
  margin-bottom: 0.25rem;
}

/* ============================================================
   TOTAL OPPORTUNITY BANNER
   ============================================================ */
.opportunity-banner {
  max-width: var(--oc-max-w);
  margin: 0 auto 2rem;
  padding: 0 1.5rem;
}

.opportunity-banner-inner {
  background: linear-gradient(135deg, #111 0%, #1a1500 100%);
  border: 1px solid rgba(244, 208, 23, 0.3);
  border-radius: var(--oc-radius);
  padding: 2.5rem 2rem;
  text-align: center;
}

.opportunity-label {
  font-size: 0.875rem;
  color: var(--oc-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.opportunity-amount {
  font-family: var(--oc-font-head);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  color: var(--oc-yellow);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.opportunity-sublabel {
  font-size: 0.875rem;
  color: var(--oc-muted);
}

/* ============================================================
   FINAL CTA
   ============================================================ */
.final-cta {
  max-width: var(--oc-max-w);
  margin: 0 auto 2rem;
  padding: 0 1.5rem;
}

.final-cta-inner {
  text-align: center;
  padding: 3rem 2rem;
  border: 1px solid var(--oc-border);
  border-radius: var(--oc-radius);
  background: var(--oc-card);
}

.final-cta h2 {
  margin-bottom: 1rem;
}

.final-cta p {
  color: var(--oc-muted);
  margin-bottom: 1.5rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.back-link {
  display: block;
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.875rem;
  color: var(--oc-muted);
}

/* ============================================================
   MODAL
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-card {
  background: var(--oc-dark-card);
  border: 1px solid var(--oc-border);
  border-radius: var(--oc-radius);
  padding: 2rem;
  width: 100%;
  max-width: 420px;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: none;
  color: var(--oc-muted);
  font-size: 1.25rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.25rem;
  transition: color var(--oc-transition);
}

.modal-close:hover { color: var(--oc-white); }

.modal-title {
  font-family: var(--oc-font-head);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--oc-white);
  margin-bottom: 0.25rem;
}

.modal-subtitle {
  font-size: 0.875rem;
  color: var(--oc-muted);
  margin-bottom: 1.5rem;
}

.tab-toggle {
  display: flex;
  border: 1px solid var(--oc-border);
  border-radius: var(--oc-radius);
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.tab-btn {
  flex: 1;
  background: transparent;
  color: var(--oc-muted);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.6rem;
  border: none;
  cursor: pointer;
  transition: all var(--oc-transition);
}

.tab-btn.active {
  background: var(--oc-yellow);
  color: #000;
}

.form-error {
  background: rgba(209, 0, 210, 0.1);
  border: 1px solid rgba(209, 0, 210, 0.3);
  border-radius: var(--oc-radius);
  color: #ff77ff;
  font-size: 0.875rem;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  display: none;
}

.form-error.visible { display: block; }

/* ============================================================
   TABLES
   ============================================================ */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.data-table th {
  text-align: left;
  padding: 0.75rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--oc-muted);
  border-bottom: 1px solid var(--oc-border);
  cursor: pointer;
  white-space: nowrap;
}

.data-table th:hover { color: var(--oc-white); }

.data-table td {
  padding: 0.875rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  color: var(--oc-body);
  vertical-align: middle;
}

.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: rgba(255,255,255,0.02); }

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--oc-border);
  border-radius: var(--oc-radius);
  background: var(--oc-card);
}

/* Health score badge */
.score-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 24px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: var(--oc-font-head);
}

.score-badge.critical { background: rgba(209,0,210,0.2); color: #ff77ff; }
.score-badge.poor { background: rgba(209,0,210,0.15); color: #ee44ee; }
.score-badge.average { background: rgba(244,208,23,0.2); color: var(--oc-yellow); }
.score-badge.good { background: rgba(34,197,94,0.15); color: var(--oc-green); }

/* ============================================================
   DASHBOARD PAGES
   ============================================================ */
.page-header {
  padding: 3rem 0 2rem;
  border-bottom: 1px solid var(--oc-border);
  margin-bottom: 2rem;
}

.page-header h1 { margin-bottom: 0.25rem; }
.page-header p { color: var(--oc-muted); margin: 0; }

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

.stat-item {
  background: var(--oc-card);
  border: 1px solid var(--oc-border);
  border-radius: var(--oc-radius);
  padding: 1.25rem;
}

.stat-value {
  font-family: var(--oc-font-head);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--oc-yellow);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--oc-muted);
  font-weight: 500;
}

.table-toolbar {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.search-input {
  flex: 1;
  min-width: 200px;
  max-width: 320px;
}

.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--oc-muted);
}

.empty-state h3 { color: var(--oc-body); margin-bottom: 0.5rem; }
.empty-state p { margin-bottom: 1.5rem; }

/* Admin badge */
.admin-badge {
  background: rgba(209, 0, 210, 0.2);
  color: #ff77ff;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  border: 1px solid rgba(209, 0, 210, 0.3);
}

/* ============================================================
   SHARED REPORT VIEW
   ============================================================ */
.report-banner {
  background: rgba(244, 208, 23, 0.06);
  border-bottom: 1px solid rgba(244, 208, 23, 0.15);
  padding: 0.75rem 1.5rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--oc-muted);
}

.report-banner strong { color: var(--oc-yellow); }

/* ============================================================
   TOAST
   ============================================================ */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

.toast {
  background: var(--oc-dark-card);
  border: 1px solid var(--oc-border);
  border-radius: var(--oc-radius);
  padding: 0.875rem 1.25rem;
  font-size: 0.875rem;
  color: var(--oc-white);
  min-width: 240px;
  max-width: 360px;
  animation: slideInToast 0.25s ease;
  pointer-events: all;
}

.toast.success { border-left: 3px solid var(--oc-yellow); }
.toast.error { border-left: 3px solid var(--oc-magenta); }
.toast.info { border-left: 3px solid var(--oc-muted); }

@keyframes slideInToast {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

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

.toast.fading { animation: fadeOutToast 0.3s ease forwards; }

/* ============================================================
   LOGIN PAGE
   ============================================================ */
.login-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
}

.login-logo {
  margin-bottom: 2rem;
}

.login-logo img { height: 36px; }

.login-card {
  background: var(--oc-dark-card);
  border: 1px solid var(--oc-border);
  border-radius: var(--oc-radius);
  padding: 2rem;
  width: 100%;
  max-width: 420px;
}

.login-back {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--oc-muted);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .two-col { grid-template-columns: 1fr; }
  .three-col { grid-template-columns: 1fr 1fr; }
  .health-score-wrap { flex-direction: column; align-items: flex-start; }
  .results-header-inner { flex-direction: column; align-items: flex-start; }
  .action-bar { width: 100%; }
  .action-bar .btn { flex: 1; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .opportunity-amount { font-size: 2.5rem; }
  .btn-row { flex-direction: column; }
  .nav-links .btn-nav { display: none; }
}

@media (max-width: 480px) {
  .three-col { grid-template-columns: 1fr; }
  .metric-grid { grid-template-columns: 1fr; }
  .chip-group { gap: 0.4rem; }
  .chip { font-size: 0.8rem; padding: 0.35rem 0.8rem; }
}

/* ============================================================
   PRINT HEADER (hidden on screen, shown in print)
   ============================================================ */
.print-header {
  display: none;
}

/* ============================================================
   SHARE POPOVER
   ============================================================ */
.share-popover {
  position: fixed;
  background: #1a1a1a;
  border: 1px solid #555555;
  border-radius: var(--oc-radius);
  padding: 0.5rem;
  min-width: 210px;
  z-index: 500;
  box-shadow: 0 8px 28px rgba(0,0,0,0.6);
}

.share-popover-title {
  font-size: 0.7rem;
  color: var(--oc-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  padding: 0.25rem 0.5rem 0.5rem;
  border-bottom: 1px solid var(--oc-border);
  margin-bottom: 0.25rem;
}

.share-option {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  color: var(--oc-body);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
  transition: background 0.15s;
  font-family: var(--oc-font-body);
}

.share-option:hover {
  background: rgba(255,255,255,0.07);
  color: var(--oc-white);
  text-decoration: none;
}

.share-icon {
  width: 18px;
  text-align: center;
  font-style: normal;
  flex-shrink: 0;
}

/* ============================================================
   PRINT / PDF STYLES
   ============================================================ */
@media print {
  @page {
    size: A4;
    margin: 12mm 15mm;
  }

  *, *::before, *::after {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  html, body {
    background: #ffffff !important;
    color: #111111 !important;
  }

  /* Show print header */
  .print-header {
    display: flex !important;
    justify-content: space-between;
    align-items: flex-end;
    padding-bottom: 10pt;
    margin-bottom: 14pt;
    border-bottom: 3px solid #f4d017;
  }

  .print-header-brand {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 1.1rem;
    color: #000000;
    letter-spacing: -0.01em;
  }

  .print-header-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    color: #111;
    text-align: right;
  }

  .print-header-date {
    font-size: 0.75rem;
    color: #666;
    text-align: right;
    margin-top: 2pt;
  }

  /* Hide screen-only UI */
  .nav,
  .ticker,
  .action-bar,
  .back-link,
  .report-banner,
  #form-section,
  .results-header,
  .share-popover {
    display: none !important;
  }

  /* Strip top padding (nav takes 60px on screen) */
  .main-content {
    padding-top: 0 !important;
  }

  /* Force results section visible regardless of JS state */
  .results-section,
  #results-section,
  #page-main {
    display: block !important;
    visibility: visible !important;
    padding: 0 !important;
  }

  /* Full-width blocks — remove the 1100px max-width and side padding */
  .result-block,
  .opportunity-banner,
  .final-cta {
    max-width: 100% !important;
    padding: 0 0 10pt !important;
    page-break-inside: avoid;
    break-inside: avoid;
  }

  /* Block inner — white background */
  .result-block-inner {
    background: #f7f7f7 !important;
    border: 1px solid #e0e0e0 !important;
    padding: 12pt !important;
  }

  .result-block-title {
    color: #000000 !important;
    border-bottom: 1px solid rgba(244,208,23,0.8) !important;
    padding-bottom: 6pt !important;
    margin-bottom: 10pt !important;
  }

  /* Metric cards */
  .metric-card {
    background: #ffffff !important;
    border: 1px solid #e0e0e0 !important;
  }

  .metric-value {
    font-size: 1.3rem !important;
    color: #111111 !important;
  }

  /* Opportunity values — keep them visually distinct */
  .metric-value[style*="magenta"] {
    color: #cc0033 !important;
  }

  .metric-label {
    color: #555555 !important;
  }

  /* Chart containers — white bg so canvas transparency shows correctly */
  .chart-container {
    background: #ffffff !important;
    border: 1px solid #e0e0e0 !important;
  }

  /* Coverage map */
  .coverage-map {
    background: #f7f7f7 !important;
    border: 1px solid #e0e0e0 !important;
  }

  .coverage-cell.covered {
    background: rgba(244,208,23,0.55) !important;
    border-color: rgba(244,208,23,0.4) !important;
  }

  .coverage-cell.uncovered {
    background: rgba(200,200,200,0.4) !important;
    border-color: rgba(180,180,180,0.3) !important;
  }

  .coverage-day-header,
  .coverage-time-label {
    color: #555 !important;
  }

  .coverage-legend {
    color: #555 !important;
  }

  /* Health dial */
  .health-dial-bg {
    stroke: #ddd !important;
  }

  .health-dial-score {
    fill: #111111 !important;
  }

  .health-dial-label {
    fill: #666666 !important;
  }

  .health-label {
    color: #111111 !important;
  }

  .health-description {
    color: #555555 !important;
  }

  /* Case study */
  .case-study {
    background: #f5f5f5 !important;
    border-left-color: #f4d017 !important;
  }

  .case-study-stat {
    color: #000000 !important;
  }

  .case-study-quote {
    color: #333333 !important;
  }

  .case-study-meta {
    color: #666666 !important;
  }

  /* Opportunity banner — keep dark for impact */
  .opportunity-banner-inner {
    background: #111111 !important;
    border-color: rgba(244,208,23,0.4) !important;
  }

  .opportunity-label,
  .opportunity-sublabel {
    color: #aaaaaa !important;
  }

  .opportunity-amount {
    color: #f4d017 !important;
  }

  /* Final CTA — keep dark, printed at bottom */
  .final-cta-inner {
    background: #111111 !important;
    border-color: #333333 !important;
    color: #ffffff !important;
  }

  .final-cta h2 {
    color: #ffffff !important;
  }

  .final-cta p {
    color: #aaaaaa !important;
  }

  .btn-primary {
    background: #f4d017 !important;
    color: #000000 !important;
  }
}
