/**
 * Move the Money Across Africa
 * Old Way HUD, Results Side-by-Side, Final Stand & Operator Panel Styling
 */

/* Step 2: Old Way HUD - Base Mobile-First Architecture */
#view-watch_old_way .stage-split {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  height: 100% !important;
  overflow: hidden !important;
  position: relative !important;
}

#view-watch_old_way .stage-left-canvas {
  width: 100% !important;
  height: 32vh !important;
  min-height: 180px !important;
  max-height: 230px !important;
  flex-shrink: 0 !important;
  position: relative !important;
  pointer-events: none !important;
}

#view-watch_old_way .stage-right-content,
#oldway-hud-content {
  width: 100% !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  height: auto !important;
  display: flex !important;
  flex-direction: column !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  touch-action: pan-y !important;
  pointer-events: auto !important;
  overscroll-behavior-y: contain !important;
  padding: 12px 16px max(18px, env(safe-area-inset-bottom, 16px)) 16px !important;
  box-sizing: border-box !important;
  background: #FAF9FB !important;
  border-top: 1px solid rgba(60, 60, 60, 0.12) !important;
  color: #040404 !important;
  z-index: 30 !important;
  scrollbar-width: thin;
  scrollbar-color: rgba(221, 90, 32, 0.4) transparent;
}

[data-theme="dark"] #view-watch_old_way .stage-right-content,
[data-theme="dark"] #oldway-hud-content {
  background: linear-gradient(180deg, rgba(6, 6, 8, 0.96) 0%, rgba(14, 12, 18, 0.99) 100%) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: #FFFFFF !important;
}

#oldway-hud-content::-webkit-scrollbar {
  width: 5px;
}
#oldway-hud-content::-webkit-scrollbar-track {
  background: transparent;
}
#oldway-hud-content::-webkit-scrollbar-thumb {
  background: rgba(221, 90, 32, 0.35);
  border-radius: 999px;
}

.oldway-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  gap: 10px;
}

.oldway-header-tag {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--starks-orange);
  text-transform: uppercase;
  margin-bottom: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#btn-quick-skip-oldway {
  padding: 5px 14px;
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: 999px;
  border: 1px solid rgba(232, 89, 51, 0.45);
  color: var(--starks-orange);
  white-space: nowrap;
  flex-shrink: 0;
  background: rgba(232, 89, 51, 0.08);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
#btn-quick-skip-oldway:hover {
  background: rgba(232, 89, 51, 0.18);
  border-color: var(--starks-orange);
}
#btn-quick-skip-oldway:active {
  transform: scale(0.97);
}

.oldway-title {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin-bottom: 10px;
  color: #FFFFFF;
}

.oldway-metrics-card {
  background: rgba(22, 19, 29, 0.85);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  margin-bottom: 10px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.metric-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.metric-row.time-row {
  margin-top: 8px;
  margin-bottom: 0;
}

.metric-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
}

.metric-value {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-primary);
}

.metric-value.time-val {
  font-size: 1.05rem;
  color: var(--starks-orange);
}

.value-bar-container {
  width: 100%;
  height: 7px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-pill);
  overflow: hidden;
  position: relative;
  margin: 4px 0;
}

.value-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #FA9A60 0%, #DD5A20 100%);
  border-radius: var(--radius-pill);
  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.value-bar-fill.stalled-bar {
  background: #ef4444;
  animation: barPulse 1s infinite alternate;
}

@keyframes barPulse {
  from { opacity: 0.6; }
  to { opacity: 1; }
}

.oldway-steps-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 10px;
}

.oldway-step-item {
  background: rgba(25, 21, 35, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.step-label-group {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.step-num {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.step-name {
  font-size: 0.88rem;
  color: var(--text-primary);
  font-weight: 600;
  line-height: 1.25;
}

.step-cost {
  font-size: 0.88rem;
  font-weight: 700;
  flex-shrink: 0;
  white-space: nowrap;
}

.cost-money {
  color: #ef4444;
}

.cost-time {
  color: #f59e0b;
}

.oldway-summary-box {
  background: rgba(232, 89, 51, 0.09);
  border: 1px solid rgba(232, 89, 51, 0.3);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 10px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.summary-text {
  font-size: 0.88rem;
  color: var(--starks-almond);
  line-height: 1.5;
  margin-bottom: 12px;
}

.btn-starks-fix {
  width: 100%;
  min-height: 48px;
  font-size: 0.95rem;
  font-weight: 800;
  border-radius: 12px;
  padding: 10px 18px;
  box-shadow: 0 4px 16px rgba(221, 90, 32, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.oldway-footnote, .results-footnote {
  font-size: 0.74rem;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 4px;
  margin-bottom: 8px;
}

/* =========================================================================
   MOBILE SCREENS (< 768px): Hyper-Compact & Fluid
   ========================================================================= */
@media screen and (max-width: 767px) {
  .oldway-header-tag {
    font-size: 0.7rem !important;
  }

  #btn-quick-skip-oldway {
    padding: 4px 11px !important;
    font-size: 0.72rem !important;
  }

  .oldway-title {
    font-size: 1.2rem !important;
    line-height: 1.25 !important;
    margin-bottom: 8px !important;
  }

  .oldway-metrics-card {
    padding: 9px 12px !important;
    margin-bottom: 8px !important;
  }

  .metric-label {
    font-size: 0.72rem !important;
  }

  .metric-value {
    font-size: 1.1rem !important;
  }

  .metric-value.time-val {
    font-size: 0.95rem !important;
  }

  .oldway-steps-list {
    gap: 6px !important;
    margin-bottom: 8px !important;
  }

  .oldway-step-item {
    padding: 8px 11px !important;
  }

  .step-num {
    width: 18px !important;
    height: 18px !important;
    font-size: 0.68rem !important;
  }

  .step-name {
    font-size: 0.8rem !important;
  }

  .step-cost {
    font-size: 0.8rem !important;
  }

  .oldway-summary-box {
    padding: 11px 13px !important;
    margin-bottom: 8px !important;
  }

  .summary-text {
    font-size: 0.8rem !important;
    line-height: 1.4 !important;
    margin-bottom: 10px !important;
  }

  .btn-starks-fix {
    min-height: 44px !important;
    font-size: 0.9rem !important;
  }

  .oldway-footnote {
    font-size: 0.68rem !important;
    text-align: center;
  }
}

/* =========================================================================
   TABLET PORTRAIT (768px - 1023px)
   ========================================================================= */
@media screen and (min-width: 768px) and (max-width: 1023px) {
  #view-watch_old_way .stage-split {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    height: 100% !important;
    overflow: hidden !important;
  }

  #view-watch_old_way .stage-left-canvas {
    width: 100% !important;
    height: 38vh !important;
    min-height: 280px !important;
    max-height: 380px !important;
    flex-shrink: 0 !important;
  }

  #view-watch_old_way .stage-right-content,
  #oldway-hud-content {
    width: 100% !important;
    flex: 1 1 auto !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    padding: 20px 32px max(24px, env(safe-area-inset-bottom, 24px)) 32px !important;
    max-width: 720px !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
  }

  .oldway-title {
    font-size: 1.75rem !important;
    line-height: 1.2 !important;
    margin-bottom: 14px !important;
  }

  .oldway-metrics-card {
    padding: 16px 22px !important;
    margin-bottom: 14px !important;
    border-radius: 14px !important;
  }

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

  .oldway-steps-list {
    gap: 8px !important;
    margin-bottom: 14px !important;
  }

  .oldway-step-item {
    padding: 11px 16px !important;
    font-size: 0.92rem !important;
  }

  .oldway-summary-box {
    padding: 18px 22px !important;
    margin-bottom: 14px !important;
    border-radius: 14px !important;
  }

  .summary-text {
    font-size: 0.92rem !important;
    line-height: 1.5 !important;
  }

  .btn-starks-fix {
    min-height: 48px !important;
    font-size: 1rem !important;
    border-radius: 12px !important;
  }
}

/* =========================================================================
   TABLET LANDSCAPE (768px - 1023px, orientation: landscape)
   ========================================================================= */
@media screen and (min-width: 768px) and (orientation: landscape) and (max-height: 850px),
       screen and (min-width: 900px) and (max-width: 1023px) and (orientation: landscape) {
  #view-watch_old_way .stage-split {
    flex-direction: row !important;
    height: 100% !important;
  }

  #view-watch_old_way .stage-left-canvas {
    width: 50% !important;
    height: 100% !important;
    max-height: none !important;
    min-height: 0 !important;
    flex-shrink: 0 !important;
  }

  #view-watch_old_way .stage-right-content,
  #oldway-hud-content {
    width: 50% !important;
    height: 100% !important;
    flex: 1 1 auto !important;
    padding: 20px 24px max(20px, env(safe-area-inset-bottom, 20px)) 20px !important;
    border-top: none !important;
    border-left: 1px solid rgba(255, 255, 255, 0.08) !important;
    max-width: none !important;
    margin: 0 !important;
    overflow-y: auto !important;
  }

  .oldway-title {
    font-size: 1.45rem !important;
    margin-bottom: 10px !important;
  }

  .oldway-metrics-card {
    padding: 12px 16px !important;
    margin-bottom: 10px !important;
  }

  .oldway-steps-list {
    gap: 6px !important;
    margin-bottom: 10px !important;
  }

  .oldway-summary-box {
    padding: 14px 18px !important;
    margin-bottom: 10px !important;
  }
}

/* =========================================================================
   DESKTOP PROGRESSIVE ENHANCEMENT (min-width: 1024px)
   ========================================================================= */
@media screen and (min-width: 1024px) {
  #view-watch_old_way .stage-split {
    flex-direction: row !important;
  }

  #view-watch_old_way .stage-left-canvas {
    width: 52% !important;
    height: 100% !important;
    max-height: none !important;
    min-height: 0 !important;
  }

  #view-watch_old_way .stage-right-content,
  #oldway-hud-content {
    width: 48% !important;
    height: 100% !important;
    max-width: 660px !important;
    padding: 30px 48px 30px 24px !important;
    border-top: none !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    background: transparent !important;
  }

  .oldway-title {
    font-size: 2.2rem !important;
    margin-bottom: 20px !important;
  }

  .oldway-metrics-card {
    padding: 20px 24px !important;
    margin-bottom: 20px !important;
  }

  .oldway-steps-list {
    margin-bottom: 20px !important;
    gap: 10px !important;
  }

  .oldway-summary-box {
    padding: 18px 24px !important;
    margin-bottom: 16px !important;
  }
}

/* Step 4: Results Screen */
#view-results .stage-right-content {
  max-width: 650px;
}

.results-header-tag {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--starks-orange);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.results-main-title {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 28px;
}

.results-comparison-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.comparison-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.comparison-card.oldway-card {
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.comparison-card.starks-card {
  border: 1px solid rgba(139, 92, 246, 0.4);
  background: rgba(26, 21, 40, 0.7);
}

.card-side-tag {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #ef4444;
  text-transform: uppercase;
}

.card-side-tag.starks-tag {
  color: #00d2ff;
}

.card-metric-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.card-metric-row .metric-name {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.card-metric-row .metric-data {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
}

.card-metric-row .metric-data.starks-highlight {
  color: #10b981;
  font-weight: 800;
}

.solution-explanation-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 28px;
}

.sol-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.sol-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.results-action-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Step 5: Final Stand Screen */
#view-final_stand.active {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 30px 20px 80px 20px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

#final-stand-content {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
}

.final-stand-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 60px 80px;
  max-width: 760px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.final-tag {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--starks-orange);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.final-headline {
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.final-subhead {
  font-size: 1.25rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 36px;
}

.final-score-callout {
  display: inline-flex;
  flex-direction: column;
  padding: 16px 36px;
  background: rgba(232, 89, 51, 0.1);
  border: 1px solid var(--starks-orange);
  border-radius: var(--radius-md);
  margin-bottom: 32px;
}

.final-score-callout .callout-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.final-score-callout .callout-val {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--starks-orange);
}

.booth-cta-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 36px;
}

.cta-pulse {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
  animation: ctaBlink 1.2s infinite;
}

@keyframes ctaBlink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.cta-text {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* Operator Modal */
.operator-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.operator-modal-backdrop.open {
  display: flex;
}

.operator-modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 600px;
  padding: 36px;
  box-shadow: var(--shadow-card);
}

.op-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.op-title {
  font-size: 1.4rem;
  font-weight: 800;
}

.op-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
}

.op-section {
  margin-bottom: 24px;
}

.op-section-title {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.op-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.op-label {
  font-size: 0.95rem;
  font-weight: 600;
}

.op-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.toggle-switch {
  position: relative;
  width: 52px;
  height: 28px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: var(--border-color);
  transition: 0.3s;
  border-radius: 34px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}

input:checked + .toggle-slider {
  background-color: var(--starks-orange);
}

input:checked + .toggle-slider:before {
  transform: translateX(24px);
}

.op-select {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  outline: none;
}

.op-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 10px;
}

.op-stat-box {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 12px;
  text-align: center;
}

.op-stat-val {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
}

.op-stat-lbl {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.op-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

/* Crowd Display Mirror (Slide 11) */
.crowd-mirror-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #0b0910;
  display: none;
  flex-direction: column;
  z-index: 1000;
}

.crowd-mirror-backdrop.open {
  display: flex;
}

.crowd-header {
  padding: 24px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.crowd-stats-strip {
  display: flex;
  gap: 40px;
}

.crowd-kpi {
  display: flex;
  flex-direction: column;
}

.crowd-kpi-val {
  font-size: 2rem;
  font-weight: 800;
  color: var(--starks-orange);
}

.crowd-kpi-lbl {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.crowd-body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* =====================================================================
   EXECUTIVE SAVINGS REPORT & BRAND STYLING (Issue #8)
   Strictly implements STARKS Brand Book & Visual Identity:
   Black #040404, Orange #DD5A20, Gold #EE772A, Purple #45207C, Almond #FA9A60
   Typography: Spoof (Titles), Proxima Nova (Body & CTAs)
   ===================================================================== */

.executive-savings-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 48px 48px;
  width: 100%;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.75);
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* Brand Header */
.savings-brand-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.savings-master-logo {
  height: 32px;
  min-height: 20px;
  width: auto;
  object-fit: contain;
}

.savings-conference-tag {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.conf-pill {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--starks-almond);
  background: rgba(250, 154, 96, 0.12);
  border: 1px solid rgba(250, 154, 96, 0.3);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
}

.audit-pill {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--starks-gold);
  background: rgba(238, 119, 42, 0.12);
  border: 1px solid rgba(238, 119, 42, 0.3);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
}

/* Headline */
.savings-headline-section {
  text-align: center;
  max-width: 840px;
  margin: 0 auto;
}

.savings-main-title {
  font-family: var(--font-title);
  font-size: 3.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 12px;
  line-height: 1.1;
}

.savings-teaching-copy {
  font-size: 1.35rem;
  color: var(--text-secondary);
  line-height: 1.5;
  font-weight: 400;
}

.highlight-gold {
  color: var(--starks-gold);
  font-weight: 700;
}

.text-gold { color: var(--starks-gold); }
.text-green { color: var(--starks-green); }
.text-orange { color: var(--starks-orange); }

/* KPI Grid */
.savings-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.savings-kpi-card {
  background: #181818;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 22px 18px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.savings-kpi-card:hover {
  transform: translateY(-2px);
  border-color: var(--starks-char);
}

.kpi-highlight-orange {
  border-color: var(--starks-orange);
  background: rgba(221, 90, 32, 0.08);
}

.kpi-highlight-green {
  border-color: var(--starks-green);
  background: rgba(16, 185, 129, 0.08);
}

.kpi-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.kpi-value {
  font-family: var(--font-title);
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 4px;
}

.kpi-subtext {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

/* Side-by-Side Comparison Container */
.comparison-container {
  background: #111111;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.comparison-section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 14px;
}

.comparison-section-title h3 {
  font-family: var(--font-title);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
}

.comparison-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.comparison-cards-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.comp-card {
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.comp-card-oldway {
  background: rgba(239, 68, 68, 0.04);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.comp-card-starks {
  background: rgba(221, 90, 32, 0.06);
  border: 1px solid var(--starks-orange);
  box-shadow: 0 0 20px rgba(221, 90, 32, 0.15);
}

.comp-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  width: fit-content;
}

.oldway-badge {
  color: var(--starks-red);
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.starks-badge {
  color: var(--starks-black);
  background: var(--starks-orange);
  font-weight: 800;
}

.badge-icon {
  font-weight: 900;
}

.comp-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.comp-stat-row:last-of-type {
  border-bottom: none;
}

.stat-lbl {
  color: var(--text-secondary);
  font-size: 0.88rem;
}

.stat-val {
  font-weight: 600;
  color: var(--text-primary);
  text-align: right;
}

.stat-danger {
  color: var(--starks-red);
  font-size: 1.15rem;
  font-weight: 800;
}

.stat-success {
  color: var(--starks-green);
  font-size: 1.15rem;
  font-weight: 800;
}

.stat-gold {
  color: var(--starks-gold);
  font-weight: 700;
}

.stat-rate {
  font-size: 0.85rem;
  font-weight: 600;
  opacity: 0.85;
}

.comp-footer-tag {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  margin-top: 4px;
}

.oldway-footer {
  background: rgba(239, 68, 68, 0.1);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.starks-footer {
  background: rgba(221, 90, 32, 0.12);
  color: var(--starks-almond);
  border: 1px solid rgba(221, 90, 32, 0.3);
}

/* Net Ribbon */
.savings-net-ribbon {
  background: linear-gradient(90deg, rgba(69, 32, 124, 0.4) 0%, rgba(221, 90, 32, 0.25) 50%, rgba(238, 119, 42, 0.3) 100%);
  border: 1px solid var(--starks-gold);
  border-radius: var(--radius-md);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
}

.ribbon-icon {
  color: var(--starks-gold);
  font-size: 1.4rem;
}

.ribbon-text {
  font-size: 1.1rem;
  color: var(--text-primary);
}

.ribbon-text strong {
  color: var(--starks-gold);
  font-size: 1.25rem;
}

/* Breakdown Grid */
.savings-breakdown-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.breakdown-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.breakdown-header h4 {
  font-family: var(--font-title);
  font-size: 1.2rem;
  color: var(--text-primary);
}

.breakdown-tag {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.breakdown-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.breakdown-item-card {
  background: #181818;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.b-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.b-stage-badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--starks-almond);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.b-corridor-pill {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  background: rgba(69, 32, 124, 0.35);
  border: 1px solid var(--starks-purple);
  color: #d8b4fe;
  border-radius: var(--radius-pill);
}

.b-char-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
}

.b-company-name {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.b-metrics-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  background: rgba(0, 0, 0, 0.35);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.b-lbl {
  color: var(--text-muted);
  margin-right: 4px;
}

.b-val {
  color: var(--text-primary);
}

.b-takeaway {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.4;
  border-left: 2px solid var(--starks-orange);
  padding-left: 10px;
  font-style: italic;
  font-family: var(--font-quote);
}

/* Commercial CTAs */
.savings-commercial-cta-section {
  display: flex;
  flex-direction: column;
  gap: 22px;
  background: radial-gradient(circle at 50% 0%, rgba(69, 32, 124, 0.25) 0%, rgba(13, 13, 13, 0.9) 80%);
  border: 1px solid var(--starks-purple);
  border-radius: var(--radius-md);
  padding: 36px 32px;
  text-align: center;
}

.cta-intro-box {
  max-width: 680px;
  margin: 0 auto;
}

.cta-section-heading {
  font-family: var(--font-title);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.cta-section-lead {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.cta-buttons-cluster {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-brand-cta {
  font-family: var(--font-body);
  font-size: 1.05rem;
  padding: 16px 28px;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.2s ease;
  min-height: 52px;
  text-decoration: none;
}

.btn-brand-cta.btn-primary {
  background: var(--starks-orange);
  color: var(--starks-black); /* WCAG 5.4:1 compliant */
  font-weight: 800;
  box-shadow: 0 4px 18px rgba(221, 90, 32, 0.45);
}

.btn-brand-cta.btn-primary:hover {
  background: var(--starks-gold);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(221, 90, 32, 0.6);
}

.btn-brand-cta.btn-secondary {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-weight: 700;
}

.btn-brand-cta.btn-secondary:hover {
  background: var(--starks-char);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.btn-live-pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--starks-black);
  box-shadow: 0 0 8px #040404;
  animation: ctaPulseAnim 1.2s infinite;
}

@keyframes ctaPulseAnim {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

.cta-icon {
  flex-shrink: 0;
}

.cta-icon-out {
  flex-shrink: 0;
  opacity: 0.8;
}

.savings-sub-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.btn-ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  transition: all 0.2s ease;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border-color: var(--starks-char);
}

/* Compliance Footer */
.savings-compliance-footer {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 20px;
  flex-wrap: wrap;
  gap: 10px;
}

.compliance-sep {
  margin: 0 8px;
}

/* Modals */
.brand-dialog-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(4, 4, 4, 0.85);
  backdrop-filter: blur(12px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.brand-dialog-card {
  background: var(--bg-card);
  border: 1px solid var(--starks-char);
  border-radius: var(--radius-lg);
  max-width: 600px;
  width: 100%;
  padding: 36px 40px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.9);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.dialog-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 14px;
  position: relative;
}

.dialog-tag {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--starks-orange);
  margin-bottom: 6px;
}

.dialog-title {
  font-family: var(--font-title);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
}

.dialog-close-btn {
  position: absolute;
  top: 0;
  right: 0;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px;
}

.dialog-close-btn:hover {
  color: var(--text-primary);
}

.dialog-body {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.stand-location-box {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(221, 90, 32, 0.08);
  border: 1px solid var(--starks-orange);
  border-radius: var(--radius-md);
  padding: 16px 20px;
}

.stand-badge {
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--starks-black);
  background: var(--starks-orange);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.02em;
}

.stand-info strong {
  font-size: 1rem;
  color: var(--text-primary);
  display: block;
}

.stand-info p {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.dialog-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.dialog-feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dialog-feature-list li {
  display: flex;
  gap: 12px;
  font-size: 0.9rem;
  line-height: 1.4;
  align-items: flex-start;
}

.bullet-check {
  color: var(--starks-green);
  font-weight: 800;
  font-size: 1.1rem;
  line-height: 1.2;
}

.dialog-feature-list strong {
  color: var(--text-primary);
  display: block;
}

.dialog-feature-list span {
  color: var(--text-secondary);
}

.dialog-action-row {
  display: flex;
  gap: 12px;
  margin-top: 8px;
  justify-content: flex-end;
}

/* Audit Form */
.audit-booking-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
}

.form-input {
  background: #111111;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.2s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--starks-orange);
  box-shadow: 0 0 0 2px rgba(221, 90, 32, 0.2);
}

.booking-status-msg {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
}

.booking-status-msg.success {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid var(--starks-green);
  color: #a7f3d0;
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .savings-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .comparison-cards-split {
    grid-template-columns: 1fr;
  }
  .breakdown-grid {
    grid-template-columns: 1fr;
  }
  .savings-main-title {
    font-size: 2.2rem;
  }
  .savings-teaching-copy {
    font-size: 1.15rem;
  }
  .executive-savings-wrapper {
    padding: 24px 20px;
  }
}

/* =====================================================================
   Theme Support: Light & Dark Mode
   ===================================================================== */
/* Watch the Old Way (Light Mode Overrides) */
[data-theme="light"] .oldway-title {
  color: #040404 !important;
}

[data-theme="light"] .oldway-metrics-card {
  background: #FFFFFF !important;
  border: 1px solid rgba(60, 60, 60, 0.14) !important;
  box-shadow: 0 4px 14px rgba(4, 4, 4, 0.05) !important;
}

[data-theme="light"] .metric-label {
  color: #3C3C3C !important;
}

[data-theme="light"] .metric-value {
  color: #040404 !important;
}

[data-theme="light"] .metric-value.time-val {
  color: #DD5A20 !important;
}

[data-theme="light"] .value-bar-container {
  background: #ECE9F3 !important;
}

[data-theme="light"] .oldway-step-item {
  background: #FFFFFF !important;
  border: 1px solid rgba(60, 60, 60, 0.1) !important;
  box-shadow: 0 2px 6px rgba(4, 4, 4, 0.03) !important;
}

[data-theme="light"] .step-num {
  background: #F4F3F7 !important;
  color: #3C3C3C !important;
}

[data-theme="light"] .step-name {
  color: #040404 !important;
}

[data-theme="light"] .step-cost {
  color: #DC2626 !important;
}

[data-theme="light"] .oldway-summary-box {
  background: #FFF7F2 !important;
  border: 1px solid rgba(221, 90, 32, 0.3) !important;
}

[data-theme="light"] .summary-title {
  color: #DD5A20 !important;
}

[data-theme="light"] .summary-text {
  color: #3C3C3C !important;
}

[data-theme="light"] .oldway-footnote {
  color: #736b85 !important;
}

/* Operator Modal */
[data-theme="light"] .operator-modal-content {
  background: #FFFFFF;
  color: #040404;
  border: 1px solid rgba(60, 60, 60, 0.15);
  box-shadow: 0 10px 30px rgba(4, 4, 4, 0.1);
}

[data-theme="light"] .op-title {
  color: #040404;
}

[data-theme="light"] .op-close {
  color: #3C3C3C;
}

[data-theme="light"] .op-section-title {
  color: #3C3C3C;
}

[data-theme="light"] .op-row {
  border-bottom: 1px solid rgba(60, 60, 60, 0.1);
}

[data-theme="light"] .op-label {
  color: #040404;
}

[data-theme="light"] .op-desc {
  color: #3C3C3C;
}

[data-theme="light"] .op-select {
  background: #F8F9FA;
  border: 1px solid rgba(60, 60, 60, 0.2);
  color: #040404;
}

[data-theme="light"] .op-stat-box {
  background: #F8F9FA;
  border: 1px solid rgba(60, 60, 60, 0.14);
}

[data-theme="light"] .op-stat-val {
  color: #040404;
}

[data-theme="light"] .op-stat-lbl {
  color: #3C3C3C;
}

[data-theme="light"] .toggle-slider {
  background-color: rgba(60, 60, 60, 0.2);
}

/* Executive Savings Screen & Modals */
[data-theme="light"] .executive-savings-wrapper {
  background: #FFFFFF;
  color: #040404;
  border: 1px solid rgba(60, 60, 60, 0.14);
  box-shadow: 0 10px 30px rgba(4, 4, 4, 0.08);
}

[data-theme="light"] .savings-brand-header {
  border-bottom: 1px solid rgba(60, 60, 60, 0.12);
}

[data-theme="light"] .savings-main-title {
  color: #040404;
}

[data-theme="light"] .savings-teaching-copy {
  color: #3C3C3C;
}

[data-theme="light"] .savings-kpi-card {
  background: #F8F9FA;
  border: 1px solid rgba(60, 60, 60, 0.14);
}

[data-theme="light"] .kpi-label {
  color: #3C3C3C;
}

[data-theme="light"] .kpi-value {
  color: #040404;
}

[data-theme="light"] .kpi-subtext {
  color: #3C3C3C;
}

[data-theme="light"] .kpi-highlight-orange {
  background: #FFF7F2;
  border-color: #DD5A20;
}

[data-theme="light"] .kpi-highlight-green {
  background: rgba(16, 185, 129, 0.08);
  border-color: #10B981;
}

[data-theme="light"] .comparison-container {
  background: #F8F9FA;
  border: 1px solid rgba(60, 60, 60, 0.14);
}

[data-theme="light"] .comparison-section-title {
  border-bottom: 1px solid rgba(60, 60, 60, 0.1);
}

[data-theme="light"] .comparison-section-title h3 {
  color: #040404;
}

[data-theme="light"] .comparison-subtitle {
  color: #3C3C3C;
}

[data-theme="light"] .comp-card-oldway {
  background: #FFF5F5;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

[data-theme="light"] .comp-card-starks {
  background: #FFF7F2;
  border: 1.5px solid #DD5A20;
  box-shadow: 0 4px 16px rgba(221, 90, 32, 0.12);
}

[data-theme="light"] .comp-stat-row {
  border-bottom: 1px solid rgba(60, 60, 60, 0.08);
}

[data-theme="light"] .stat-lbl {
  color: #3C3C3C;
}

[data-theme="light"] .stat-val {
  color: #040404;
}

[data-theme="light"] .savings-breakdown-section .breakdown-header h4 {
  color: #040404;
}

[data-theme="light"] .savings-breakdown-section .breakdown-tag {
  color: #3C3C3C;
}

[data-theme="light"] .breakdown-item-card {
  background: #F8F9FA;
  border: 1px solid rgba(60, 60, 60, 0.14);
}

[data-theme="light"] .b-char-name {
  color: #040404;
}

[data-theme="light"] .b-company-name {
  color: #3C3C3C;
}

[data-theme="light"] .b-metrics-row {
  background: #FFFFFF;
  border: 1px solid rgba(60, 60, 60, 0.1);
}

[data-theme="light"] .b-lbl {
  color: #3C3C3C;
}

[data-theme="light"] .b-val {
  color: #040404;
}

[data-theme="light"] .b-takeaway {
  color: #3C3C3C;
}

[data-theme="light"] .brand-dialog-card {
  background: #FFFFFF;
  border: 1px solid rgba(60, 60, 60, 0.15);
  color: #040404;
}

[data-theme="light"] .dialog-title {
  color: #040404;
}

[data-theme="light"] .dialog-desc {
  color: #3C3C3C;
}

[data-theme="light"] .dialog-feature-list strong {
  color: #040404;
}

[data-theme="light"] .dialog-feature-list span {
  color: #3C3C3C;
}

[data-theme="light"] .form-group label {
  color: #3C3C3C;
}

[data-theme="light"] .form-input {
  background: #F8F9FA;
  border: 1.5px solid rgba(60, 60, 60, 0.2);
  color: #040404;
}

[data-theme="light"] .form-input:focus {
  border-color: #DD5A20;
  box-shadow: 0 0 0 2px rgba(221, 90, 32, 0.2);
}

/* Explicit [data-theme="dark"] preserving dark mode styles */
[data-theme="dark"] .operator-modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
}

[data-theme="dark"] .executive-savings-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
}
