/* ========================================
   IN THIS ECONOMY? — Master Stylesheet
   ======================================== */

/* --- Custom Properties --- */
:root {
  --bg-deep: #0a0e27;
  --bg-panel: #0d1233;
  --bg-card: #111640;
  --red: #ff1744;
  --red-dark: #b71c1c;
  --green: #00e676;
  --gold: #ffd600;
  --white: #f0f0f0;
  --white-dim: #8a8fa8;
  --blue-accent: #1565c0;
  --blue-light: #42a5f5;
  --font-headline: 'Bebas Neue', 'Arial Narrow', sans-serif;
  --font-mono: 'Space Mono', 'Courier New', monospace;
  --font-serif: 'Playfair Display', Georgia, serif;
  --ticker-height: 36px;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  background: var(--bg-deep);
  color: var(--white);
  font-family: var(--font-mono);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* --- CRT Overlay --- */
.crt-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.06) 0px,
    rgba(0, 0, 0, 0.06) 1px,
    transparent 1px,
    transparent 3px
  );
}

/* --- Tickers --- */
.ticker {
  position: fixed;
  left: 0;
  right: 0;
  height: var(--ticker-height);
  background: var(--red-dark);
  overflow: hidden;
  z-index: 1000;
  border-top: 2px solid var(--red);
  border-bottom: 2px solid var(--red);
}

.ticker-top {
  top: 0;
}

.ticker-bottom {
  bottom: 0;
}

.ticker-track {
  display: flex;
  white-space: nowrap;
  animation: ticker-scroll 60s linear infinite;
  height: 100%;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.ticker-track span {
  padding: 0 24px;
  flex-shrink: 0;
}

.ticker-track .tk-loss {
  color: var(--red);
}

.ticker-track .tk-gain {
  color: var(--green);
}

.ticker-track .tk-sep {
  color: var(--white-dim);
  opacity: 0.4;
}

@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* --- Sections Base --- */
.section {
  min-height: 100vh;
  padding: calc(var(--ticker-height) + 20px) 20px calc(var(--ticker-height) + 20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-tag {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-headline);
  font-size: 14px;
  letter-spacing: 3px;
  padding: 4px 16px;
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-headline);
  font-size: clamp(2rem, 6vw, 4rem);
  letter-spacing: 4px;
  color: var(--white);
}

.section-rule {
  width: 80px;
  height: 3px;
  background: var(--red);
  margin: 16px auto 0;
}

/* ========================================
   SECTION 1: OPENING BROADCAST
   ======================================== */
.section-opening {
  background: radial-gradient(ellipse at center bottom, #111640 0%, var(--bg-deep) 70%);
  overflow: hidden;
  justify-content: center;
  padding-top: var(--ticker-height);
}

/* Breaking bar */
.broadcast-border {
  position: absolute;
  top: var(--ticker-height);
  left: 0;
  right: 0;
  z-index: 10;
}

.breaking-bar {
  display: flex;
  align-items: center;
  background: linear-gradient(90deg, var(--red-dark), #c62828);
  padding: 6px 0;
  overflow: hidden;
}

.breaking-label {
  flex-shrink: 0;
  background: var(--white);
  color: var(--red);
  font-family: var(--font-headline);
  font-size: 16px;
  letter-spacing: 3px;
  padding: 2px 14px;
  margin: 0 16px;
  font-weight: 700;
}

.breaking-text {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--white);
  white-space: nowrap;
  animation: breaking-scroll 20s linear infinite;
}

@keyframes breaking-scroll {
  0% { transform: translateX(100vw); }
  100% { transform: translateX(-100%); }
}

/* Chart background */
.chart-background {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.25;
  z-index: 0;
}

/* Opening content */
.opening-content {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.opening-headline-wrap {
  position: relative;
}

.live-badge {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-headline);
  font-size: 14px;
  letter-spacing: 4px;
  padding: 4px 16px;
  margin-bottom: 16px;
  animation: live-pulse 1.5s ease-in-out infinite;
}

@keyframes live-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.opening-headline {
  font-family: var(--font-headline);
  font-size: clamp(3.5rem, 12vw, 9rem);
  letter-spacing: 6px;
  line-height: 0.95;
  color: var(--white);
  text-shadow: 0 0 40px rgba(255, 23, 68, 0.4), 0 0 80px rgba(255, 23, 68, 0.15);
  animation: headline-glow 3s ease-in-out infinite alternate;
}

@keyframes headline-glow {
  0% { text-shadow: 0 0 40px rgba(255, 23, 68, 0.4), 0 0 80px rgba(255, 23, 68, 0.15); }
  100% { text-shadow: 0 0 60px rgba(255, 23, 68, 0.6), 0 0 120px rgba(255, 23, 68, 0.25); }
}

/* Chyron */
.chyron {
  margin-top: 20px;
  border-left: 4px solid var(--red);
  text-align: left;
  display: inline-block;
}

.chyron-top {
  background: var(--red);
  color: var(--white);
  font-family: var(--font-headline);
  font-size: 13px;
  letter-spacing: 3px;
  padding: 2px 12px;
  display: inline-block;
}

.chyron-bottom {
  background: rgba(0, 0, 0, 0.7);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: clamp(12px, 2.5vw, 16px);
  padding: 8px 16px;
}

/* Data strip */
.data-strip {
  display: flex;
  gap: 2px;
  flex-wrap: wrap;
  justify-content: center;
}

.data-item {
  background: rgba(0, 0, 0, 0.6);
  padding: 8px 20px;
  text-align: center;
  border-bottom: 3px solid transparent;
}

.data-item.loss {
  border-bottom-color: var(--red);
}

.data-item.gain {
  border-bottom-color: var(--green);
}

.data-label {
  display: block;
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--white-dim);
  margin-bottom: 2px;
}

.data-value {
  display: block;
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
}

.data-item.loss .data-value {
  color: var(--red);
}

.data-item.gain .data-value {
  color: var(--green);
}

/* Scroll prompt */
.scroll-prompt {
  position: absolute;
  bottom: calc(var(--ticker-height) + 30px);
  text-align: center;
  font-family: var(--font-headline);
  font-size: 12px;
  letter-spacing: 4px;
  color: var(--white-dim);
  animation: scroll-bob 2s ease-in-out infinite;
}

.scroll-arrow {
  width: 20px;
  height: 20px;
  border-right: 2px solid var(--white-dim);
  border-bottom: 2px solid var(--white-dim);
  transform: rotate(45deg);
  margin: 8px auto 0;
}

@keyframes scroll-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* ========================================
   SECTION 2: ESCALATION
   ======================================== */
.section-escalation {
  background: var(--bg-deep);
  padding-top: calc(var(--ticker-height) + 60px);
  padding-bottom: calc(var(--ticker-height) + 60px);
  min-height: auto;
}

.news-cards {
  display: flex;
  flex-direction: column;
  gap: 40px;
  max-width: 750px;
  width: 100%;
}

/* Reveal animation */
[data-reveal] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Base card */
.news-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
  overflow: hidden;
}

.card-severity {
  font-family: var(--font-headline);
  font-size: 12px;
  letter-spacing: 3px;
  padding: 4px 14px;
  display: inline-block;
}

.severity-high {
  background: var(--red);
  color: var(--white);
}

.severity-scandal {
  background: var(--gold);
  color: var(--bg-deep);
}

.severity-gold {
  background: linear-gradient(90deg, #bf9b00, var(--gold), #bf9b00);
  color: var(--bg-deep);
}

.card-content {
  padding: 24px;
}

.card-headline {
  font-family: var(--font-headline);
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: 3px;
  margin-bottom: 16px;
  color: var(--white);
}

.headline-massive {
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  color: var(--red);
}

.headline-final {
  font-size: clamp(3rem, 10vw, 6rem);
  text-align: center;
  color: var(--red);
  text-shadow: 0 0 30px rgba(255, 23, 68, 0.5);
}

.card-commentary {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 15px;
  color: var(--white-dim);
  line-height: 1.6;
  margin-top: 14px;
}

.card-ticker {
  background: rgba(255, 23, 68, 0.15);
  border-top: 1px solid rgba(255, 23, 68, 0.3);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1px;
  padding: 8px 14px;
  color: var(--red);
}

/* Card: House price */
.house-price-display {
  text-align: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 23, 68, 0.2);
}

.price-label {
  display: block;
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--white-dim);
  margin-bottom: 8px;
}

.price-value {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--red);
}

.price-change {
  display: block;
  font-size: 12px;
  margin-top: 4px;
}

.price-change.loss {
  color: var(--red);
}

/* Card: Alert flash bar */
.card-flash-bar {
  display: flex;
  background: var(--red);
  overflow: hidden;
}

.flash-text {
  flex: 1;
  text-align: center;
  font-family: var(--font-headline);
  font-size: 14px;
  letter-spacing: 6px;
  padding: 6px;
  color: var(--white);
  animation: flash-blink 0.8s step-end infinite alternate;
}

.flash-text:nth-child(2) {
  animation-delay: 0.4s;
}

@keyframes flash-blink {
  0% { opacity: 1; }
  50% { opacity: 0.2; }
}

/* Card: Lunch meter */
.lunch-meter {
  padding: 16px;
  background: rgba(0, 0, 0, 0.3);
}

.meter-label {
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--white-dim);
  display: block;
  margin-bottom: 10px;
}

.meter-bar {
  width: 100%;
  height: 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  position: relative;
  overflow: hidden;
}

.meter-fill {
  height: 100%;
  background: var(--red);
  width: 3%;
  transition: width 1.5s ease-out;
}

.meter-status {
  display: block;
  margin-top: 6px;
  font-family: var(--font-headline);
  font-size: 14px;
  letter-spacing: 4px;
  color: var(--red);
}

/* Card: Scandal quote */
.scandal-quote {
  border-left: 3px solid var(--gold);
  padding: 16px 20px;
  background: rgba(255, 214, 0, 0.04);
  position: relative;
}

.quote-mark {
  font-family: var(--font-serif);
  font-size: 40px;
  color: var(--gold);
  line-height: 0;
  opacity: 0.4;
}

.scandal-quote p {
  font-family: var(--font-serif);
  font-size: 15px;
  line-height: 1.7;
  color: var(--white);
  margin: 8px 0;
}

/* Card: Luxury */
.luxury-tag {
  text-align: center;
  padding: 14px;
  border: 1px solid var(--gold);
  font-family: var(--font-headline);
  font-size: 13px;
  letter-spacing: 3px;
  color: var(--gold);
}

.luxury-icon {
  margin: 0 8px;
}

/* Card: Emergency */
.card-emergency {
  border: 2px solid var(--red);
}

.emergency-header {
  background: var(--red);
  text-align: center;
  padding: 10px;
}

.emergency-flash {
  font-family: var(--font-headline);
  font-size: 18px;
  letter-spacing: 6px;
  color: var(--white);
  animation: live-pulse 1s ease-in-out infinite;
}

.emergency-stats {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.stat {
  flex: 1;
  min-width: 180px;
  text-align: center;
  padding: 16px;
  background: rgba(255, 23, 68, 0.1);
  border: 1px solid rgba(255, 23, 68, 0.2);
}

.stat-number {
  display: block;
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  color: var(--red);
}

.stat-label {
  display: block;
  font-size: 10px;
  letter-spacing: 1.5px;
  color: var(--white-dim);
  margin-top: 4px;
}

/* Card: Final — Existing */
.card-final {
  border: 2px solid var(--red);
  text-align: center;
  position: relative;
}

.card-final .static-overlay {
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
}

.card-final .card-content {
  position: relative;
  z-index: 2;
}

.final-broadcast-label {
  font-family: var(--font-headline);
  font-size: 14px;
  letter-spacing: 6px;
  color: var(--red);
  margin-bottom: 10px;
}

.final-chart-container {
  max-width: 450px;
  margin: 0 auto 20px;
  border: 1px solid rgba(255, 23, 68, 0.2);
  background: rgba(0, 0, 0, 0.3);
  padding: 12px;
}

.final-verdict {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 15px;
  color: var(--white-dim);
  line-height: 1.6;
  max-width: 500px;
  margin: 0 auto;
}

.final-crawl {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  background: rgba(255, 23, 68, 0.12);
  border-top: 1px solid rgba(255, 23, 68, 0.3);
  padding: 10px 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--red);
}

/* ========================================
   SECTION 3: ANALYST DESK
   ======================================== */
.section-analysts {
  background: linear-gradient(180deg, var(--bg-deep) 0%, #0d1233 50%, var(--bg-deep) 100%);
  min-height: auto;
  padding-top: calc(var(--ticker-height) + 60px);
  padding-bottom: calc(var(--ticker-height) + 60px);
}

.analyst-panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 900px;
  width: 100%;
}

.analyst-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.analyst-video-frame {
  position: relative;
  background: linear-gradient(135deg, #1a1f4e, #0d1233);
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  border-bottom: 3px solid var(--blue-accent);
}

.analyst-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: hsl(var(--hue), 50%, 30%);
  border: 3px solid hsl(var(--hue), 50%, 45%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-headline);
  font-size: 22px;
  letter-spacing: 2px;
  color: var(--white);
}

.analyst-nameplate {
  text-align: center;
  background: rgba(0, 0, 0, 0.5);
  padding: 8px 16px;
  width: 100%;
}

.analyst-name {
  display: block;
  font-family: var(--font-headline);
  font-size: 16px;
  letter-spacing: 2px;
  color: var(--white);
}

.analyst-title {
  display: block;
  font-size: 11px;
  color: var(--white-dim);
  margin-top: 2px;
}

.analyst-quote {
  font-family: var(--font-serif);
  font-size: 15px;
  line-height: 1.7;
  padding: 20px 24px;
  color: var(--white);
  border-left: 3px solid var(--blue-accent);
  margin: 0;
  font-style: italic;
}

/* ========================================
   SECTION 4: INTERACTIVE
   ======================================== */
.section-interactive {
  background: var(--bg-deep);
  min-height: auto;
  padding-top: calc(var(--ticker-height) + 60px);
  padding-bottom: calc(var(--ticker-height) + 60px);
}

.calculator-desk {
  max-width: 650px;
  width: 100%;
}

.calculator-prompt {
  background: var(--bg-card);
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.calculator-intro {
  font-family: var(--font-serif);
  font-size: 15px;
  color: var(--white-dim);
  line-height: 1.6;
  margin-bottom: 24px;
}

.calculator-label {
  display: block;
  font-family: var(--font-headline);
  font-size: 14px;
  letter-spacing: 3px;
  color: var(--white);
  margin-bottom: 10px;
}

.input-row {
  display: flex;
  gap: 0;
}

.calculator-input {
  flex: 1;
  background: rgba(0, 0, 0, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-right: none;
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 14px;
  padding: 12px 16px;
  outline: none;
  transition: border-color 0.3s;
}

.calculator-input:focus {
  border-color: var(--red);
}

.calculator-input::placeholder {
  color: var(--white-dim);
  opacity: 0.5;
}

.calculator-btn {
  background: var(--red);
  border: 2px solid var(--red);
  color: var(--white);
  font-family: var(--font-headline);
  font-size: 16px;
  letter-spacing: 3px;
  padding: 12px 24px;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.calculator-btn:hover {
  background: #e01540;
}

.calculator-btn:active {
  transform: scale(0.97);
}

/* Calculator result */
.calculator-result {
  display: none;
  margin-top: 2px;
  background: var(--bg-card);
  border: 2px solid var(--red);
  overflow: hidden;
}

.calculator-result.active {
  display: block;
}

.result-processing {
  display: none;
  padding: 30px;
  text-align: center;
}

.result-processing.active {
  display: block;
}

.processing-bars {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: 16px;
}

.p-bar {
  width: 6px;
  height: 30px;
  background: var(--red);
  animation: p-bar-dance 0.6s ease-in-out infinite alternate;
}

.p-bar:nth-child(2) { animation-delay: 0.1s; }
.p-bar:nth-child(3) { animation-delay: 0.2s; }
.p-bar:nth-child(4) { animation-delay: 0.3s; }
.p-bar:nth-child(5) { animation-delay: 0.4s; }

@keyframes p-bar-dance {
  0% { transform: scaleY(0.3); opacity: 0.4; }
  100% { transform: scaleY(1); opacity: 1; }
}

.processing-text {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--white-dim);
}

.result-verdict {
  display: none;
  text-align: center;
  padding: 30px;
}

.result-verdict.active {
  display: block;
  animation: verdict-slam 0.4s ease-out;
}

@keyframes verdict-slam {
  0% { transform: scale(1.3); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.verdict-label {
  font-family: var(--font-headline);
  font-size: 12px;
  letter-spacing: 4px;
  color: var(--white-dim);
  margin-bottom: 12px;
}

.verdict-item {
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--gold);
  margin-bottom: 8px;
  text-transform: uppercase;
}

.verdict-answer {
  font-family: var(--font-headline);
  font-size: clamp(2rem, 6vw, 3.5rem);
  letter-spacing: 3px;
  color: var(--red);
  text-shadow: 0 0 20px rgba(255, 23, 68, 0.4);
}

.verdict-fine-print {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 13px;
  color: var(--white-dim);
  margin-top: 14px;
}

/* Economy Gauge */
.economy-gauge-section {
  margin-top: 50px;
  text-align: center;
}

.gauge-title {
  font-family: var(--font-headline);
  font-size: 18px;
  letter-spacing: 4px;
  color: var(--white);
  margin-bottom: 24px;
}

.gauge-container {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 30px;
}

.gauge {
  position: relative;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

.gauge-bg {
  width: 100%;
  height: 28px;
  background: linear-gradient(90deg, var(--green), #8bc34a, var(--gold), #ff9800, var(--red), var(--red-dark));
  border-radius: 4px;
  opacity: 0.7;
}

.gauge-needle {
  position: absolute;
  top: -6px;
  left: 2%;
  width: 4px;
  height: 40px;
  background: var(--white);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
  border-radius: 2px;
  transition: left 2s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.gauge-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--white-dim);
}

.gauge-current {
  color: var(--red);
  font-weight: 700;
}

.gauge-reading {
  margin-top: 20px;
}

.gauge-value {
  font-family: var(--font-mono);
  font-size: 3rem;
  font-weight: 700;
  color: var(--red);
}

.gauge-max {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  color: var(--white-dim);
}

/* ========================================
   SECTION 5: CTA
   ======================================== */
.section-cta {
  background: linear-gradient(180deg, var(--bg-deep), #080b1e);
  min-height: 60vh;
}

.cta-broadcast {
  max-width: 600px;
  width: 100%;
  text-align: center;
}

.cta-lower-third {
  margin-bottom: 40px;
}

.cta-tag {
  display: inline-block;
  background: var(--red);
  font-family: var(--font-headline);
  font-size: 12px;
  letter-spacing: 3px;
  padding: 4px 16px;
  color: var(--white);
  margin-bottom: 10px;
}

.cta-headline {
  font-family: var(--font-headline);
  font-size: clamp(2rem, 6vw, 3.5rem);
  letter-spacing: 4px;
  color: var(--white);
}

/* Contract address */
.ca-display {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px;
  margin-bottom: 30px;
  position: relative;
}

.ca-label {
  display: block;
  font-family: var(--font-headline);
  font-size: 12px;
  letter-spacing: 3px;
  color: var(--white-dim);
  margin-bottom: 12px;
}

.ca-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.ca-value {
  font-family: var(--font-mono);
  font-size: clamp(10px, 2.5vw, 14px);
  color: var(--gold);
  background: rgba(0, 0, 0, 0.4);
  padding: 10px 14px;
  border: 1px solid rgba(255, 214, 0, 0.2);
  border-right: none;
  word-break: break-all;
  user-select: all;
}

.ca-copy {
  background: var(--gold);
  color: var(--bg-deep);
  border: 1px solid var(--gold);
  font-family: var(--font-headline);
  font-size: 14px;
  letter-spacing: 2px;
  padding: 10px 18px;
  cursor: pointer;
  transition: background 0.2s;
  flex-shrink: 0;
}

.ca-copy:hover {
  background: #ffea00;
}

.ca-copied {
  display: none;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--green);
  margin-top: 10px;
  letter-spacing: 2px;
}

.ca-copied.show {
  display: block;
  animation: fade-in 0.3s ease;
}

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

/* Crisis contacts */
.crisis-contacts {
  margin-bottom: 30px;
}

.crisis-label {
  display: block;
  font-family: var(--font-headline);
  font-size: 12px;
  letter-spacing: 3px;
  color: var(--white-dim);
  margin-bottom: 14px;
}

.crisis-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.crisis-link {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px 20px;
  color: var(--white);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 1px;
  transition: border-color 0.2s, background 0.2s;
}

.crisis-link:hover {
  border-color: var(--white-dim);
  background: rgba(255, 255, 255, 0.08);
}

.crisis-icon {
  font-family: var(--font-headline);
  font-size: 18px;
  font-weight: 700;
}

/* Sign-off */
.cta-signoff {
  margin-top: 10px;
}

.cta-signoff p {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 14px;
  color: var(--white-dim);
  line-height: 1.6;
}

/* ========================================
   GLITCH EFFECT
   ======================================== */
.glitch-active {
  animation: glitch 0.15s linear;
}

@keyframes glitch {
  0% { transform: translate(0); filter: hue-rotate(0deg); }
  20% { transform: translate(-3px, 2px); filter: hue-rotate(90deg); }
  40% { transform: translate(2px, -2px); filter: hue-rotate(-90deg); }
  60% { transform: translate(-1px, 1px); }
  80% { transform: translate(3px, -1px); filter: hue-rotate(45deg); }
  100% { transform: translate(0); filter: hue-rotate(0deg); }
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
  .data-strip {
    flex-direction: column;
    gap: 0;
  }

  .data-item {
    padding: 6px 14px;
  }

  .analyst-panel {
    grid-template-columns: 1fr;
  }

  .emergency-stats {
    flex-direction: column;
  }

  .input-row {
    flex-direction: column;
  }

  .calculator-input {
    border-right: 2px solid rgba(255, 255, 255, 0.15);
    border-bottom: none;
  }

  .calculator-input:focus {
    border-color: var(--red);
  }

  .ca-row {
    flex-direction: column;
  }

  .ca-value {
    border-right: 1px solid rgba(255, 214, 0, 0.2);
    border-bottom: none;
    width: 100%;
    text-align: center;
  }

  .ca-copy {
    width: 100%;
  }

  .final-crawl {
    font-size: 10px;
    gap: 10px;
  }

  .breaking-bar {
    flex-direction: column;
    text-align: center;
    gap: 4px;
  }

  .breaking-label {
    margin: 0;
  }
}

@media (max-width: 480px) {
  .section {
    padding-left: 12px;
    padding-right: 12px;
  }

  .card-content {
    padding: 16px;
  }

  .calculator-prompt {
    padding: 20px;
  }

  .gauge-labels {
    font-size: 8px;
  }
}
