/* =========================================================
   הכסף של הדוקו — dashboard.css
   ========================================================= */

/* --- Custom Properties --- */
:root {
  --font-heading: 'Assistant', sans-serif;
  --font-body: 'Heebo', sans-serif;

  --bg-primary: #111318;
  --bg-secondary: #1c1f2b;
  --border-color: #2a2e3e;
  --text-primary: #edeef2;
  --text-secondary: #8b91a8;
  --text-muted: #565c74;

  --radius: 12px;
  --shadow: 0 1px 6px rgba(0,0,0,0.4);
  --shadow-md: 0 6px 20px rgba(0,0,0,0.5);

  /* === Source colors (overview cards, gap bars, stacked bar) === */
  --color-kan:    #375683;
  --color-funds:  #2d4568;
  --color-cable:  #25354d;
  --color-reshut: #16263e;

  /* === Sub-page accent colors === */
  --accent-kan:    #e05050;
  --accent-funds:  #e05050;
  --accent-cable:  #e05050;
  --accent-reshut: #e05050;

  /* === National fund bar colors === */
  --color-nat-1: #1a76a5;
  --color-nat-2: #0c5378;
  --color-nat-3: #17465e;
  --color-nat-4: #0d3a52;

  /* === Regional fund bar colors === */
  --color-reg-1: #1a76a5;
  --color-reg-2: #0c5378;
  --color-reg-3: #17465e;
  --color-reg-4: #0b2b3c;

  /* === Kan content category colors === */
  --color-cat-1: #1a76a5;
  --color-cat-2: #0c5378;
  --color-cat-3: #17465e;
}

/* --- Per-page accent (set on body) --- */
.page-kan    { --page-accent: var(--accent-kan); }
.page-funds  { --page-accent: var(--accent-funds); }
.page-cable  { --page-accent: var(--accent-cable); }
.page-reshut { --page-accent: var(--accent-reshut); }

/* --- Source segment color classes --- */
.seg-kan    { background-color: var(--color-kan); }
.seg-funds  { background-color: var(--color-funds); }
.seg-cable  { background-color: var(--color-cable); }
.seg-reshut { background-color: var(--color-reshut); }

/* Context bar: gray by default; current-page segment gets its color */
.context-bar .stacked-segment                  { background-color: var(--border-color); }
.page-kan    .context-bar .seg-kan             { background-color: #999999 } /* var(--color-kan); */
.page-funds  .context-bar .seg-funds           { background-color: #999999 }
.page-cable  .context-bar .seg-cable           { background-color: #999999 }
.page-reshut .context-bar .seg-reshut          { background-color: #999999; }

/* Source card right-side background */
.source-card-right.seg-kan    { background-color: var(--color-kan); }
.source-card-right.seg-funds  { background-color: var(--color-funds); }
.source-card-right.seg-cable  { background-color: var(--color-cable); }
.source-card-right.seg-reshut { background-color: var(--color-reshut); }

/* Source gap bar fill */
.source-card-gap-fill.seg-kan    { background-color: #376a97}
.source-card-gap-fill.seg-funds  { background-color: #376a97}
.source-card-gap-fill.seg-cable  { background-color: #376a97}
.source-card-gap-fill.seg-reshut { background-color: #376a97}

/* --- Page-accent utilities (used on all sub-pages) --- */
.page-header    { /*border-bottom: 3px solid var(--page-accent, transparent);*/ }
.regulation-box { border-right:  3px solid var(--page-accent, transparent); }
.future-box     { border-top-color: var(--page-accent, transparent); }
.page-accent-text { color:            var(--page-accent); }
.page-accent-bg   { background-color: var(--page-accent); }

/* --- Fund bar colors --- */
.nat-1 { background-color: var(--color-nat-1); }
.nat-2 { background-color: var(--color-nat-2); }
.nat-3 { background-color: var(--color-nat-3); }
.nat-4 { background-color: var(--color-nat-4); }
.reg-1 { background-color: var(--color-reg-1); }
.reg-2 { background-color: var(--color-reg-2); }
.reg-3 { background-color: var(--color-reg-3); }
.reg-4 { background-color: var(--color-reg-4); }

/* Stat dot and fill colors */
.dot-nat-1 { background-color: var(--color-nat-1); }
.dot-nat-2 { background-color: var(--color-nat-2); }
.dot-nat-3 { background-color: var(--color-nat-3); }
.dot-nat-4 { background-color: var(--color-nat-4); }
.dot-reg-1 { background-color: var(--color-reg-1); }
.dot-reg-2 { background-color: var(--color-reg-2); }
.dot-reg-3 { background-color: var(--color-reg-3); }
.dot-reg-4 { background-color: var(--color-reg-4); }

/* Stat bar fill color — unified for all national and regional funds */
.fill-nat-1, .fill-nat-2, .fill-nat-3, .fill-nat-4,
.fill-reg-1, .fill-reg-2, .fill-reg-3, .fill-reg-4 { background-color: #e05050; }

/* --- Content category colors (kan page) --- */
.cat-1 { background-color: var(--color-cat-1); }
.cat-2 { background-color: var(--color-cat-2); }
.cat-3 { background-color: var(--color-cat-3); }

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

html { direction: rtl; }

body {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-primary);
  background: var(--bg-primary);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }

/* --- Navigation --- */
.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 0 1.5rem;
  height: 52px;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  flex-wrap: wrap;
}

.nav-brand {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 16px;
  color: var(--text-primary);
  white-space: nowrap;
  text-decoration: none;
  transition: color 0.2s;
  display: inline-block;
  margin: 0 0.5rem;
}

.nav-brand:hover { color: var(--text-secondary); }

.nav-link {
  font-size: 13px;
  color: var(--text-secondary);
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}

.nav-link:hover { background: var(--bg-secondary); color: var(--text-primary); }

.nav-toggle { display: none; }

.nav-divider {
  width: 1px;
  height: 18px;
  background: var(--border-color);
  margin: 0 0.25rem;
  flex-shrink: 0;
}

.nav-link.active {
  color: var(--text-primary);
  font-weight: 600;
  background: var(--bg-secondary);
}

/* --- Context Bar (sub-pages) --- */
.context-bar-row {
  display: flex;
  align-items: center;
  width: 100%;
  position: relative;
  height: 28px;
}

.context-bar-fill {
  height: 8px;
  border-radius: 4px;
  flex-shrink: 0;
  background-color: var(--page-accent);
}

.context-bar-label {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
  white-space: nowrap;
  margin-top: -0.5em;
  margin-bottom: 1em;
}

.context-bar-empty {
  flex: 1;
  height: 8px;
  background: var(--border-color);
  border-radius: 4px;
}

/* --- Main Container --- */
.main {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

/* --- Back Link --- */
.back-link {
  display: inline-block;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  transition: color 0.15s;
}
.back-link:hover { color: var(--text-primary); }

/* --- Page Header --- */
.page-header {
  margin-bottom: 0;
}

.page-header h1 {
  font-family: var(--font-heading);
  font-size: 34px;
  font-weight: 700;
 
}

.page-header .sub {
  font-size: 14px;
  color: var(--text-secondary);
}

/* --- Section Title --- */
.section-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

/* =========================================================
   Budget Summary Box (Overview Page)
   ========================================================= */
.budget-summary-box {
  position: relative;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.budget-summary-text {
  font-size: 20px;
  font-family: var(--font-heading);
  font-weight: 500;
  text-align: center;
  margin-bottom: 0;
  line-height: 1.6;
}

.budget-summary-amount {
  font-size: 56px;
  font-weight: 700;
  color: var(--page-accent, #e05050);
  text-align: center;
  font-family: var(--font-heading);
}

.budget-summary-track {
  height: 48px;
  border-radius: 6px;
  background: var(--border-color);
  position: relative;
  overflow: hidden;
}

.budget-summary-fill {
  height: 100%;
  border-radius: 6px;
  background: #e05050;
  transition: width 0.4s ease;
}

.budget-summary-label {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  pointer-events: none;
}

.budget-actual {
  color: #e05050;
}

.budget-theoretical {
  color: #edeef2;
}

/* =========================================================
   Source Cards (Overview Page)
   ========================================================= */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.source-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow 0.2s, transform 0.15s;
  display: flex;
  flex-direction: column;
  position: relative;
}

.source-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.source-card-arrow {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  font-size: 18px;
  color: var(--text-secondary);
  opacity: 0.6;
  transition: opacity 0.2s;
  pointer-events: none;
}

.source-card:hover .source-card-arrow {
  opacity: 1;
}

.source-card-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100px;
}

.source-card-left {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--bg-secondary);
}

.source-card-name {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.source-card-trend {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.4rem;
}

.source-card-trend svg {
  width: 16px;
  height: 10px;
  color: var(--text-secondary);
}

.source-card-trend-label {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
}

.source-card-right {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.25rem;
}

.source-card-amount {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 700;
  line-height: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  color: #fff;
}

.source-card-unit {
  font-size: 11px;
  font-weight: 400;
  opacity: 0.9;
}

.source-card-theoretical {
  font-family: var(--font-body);
  font-size: 13px;
  opacity: 0.85;
  color: #fff;
}

.source-card-gap-track {
  height: 28px;
  background: var(--border-color);
  flex-shrink: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.source-card-gap-fill {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  transition: width 0.3s ease;
}

.source-card-gap-pct {
  position: relative;
  z-index: 1;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
}

/* =========================================================
   Budget Comparison (Overview Page)
   ========================================================= */
.budget-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.budget-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.budget-box-title {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.big-number {
  font-family: var(--font-heading);
  font-size: 42px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.big-number-unit {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-right: 0.25rem;
}

.budget-box-note {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* =========================================================
   Gap Bar (Overview Page)
   ========================================================= */
.gap-section { margin-bottom: 2rem; }

.gap-label {
  font-size: 14px;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.gap-label strong { font-family: var(--font-heading); }

.gap-pct-note {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.gap-bar-track {
  height: 18px;
  border-radius: 9px;
  background: #1a56db;
  position: relative;
  overflow: hidden;
}

.gap-bar-fill {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  border-radius: 9px;
  background: #b91c1c;
}

/* =========================================================
   Regulation Box
   ========================================================= */
.regulation-box {
  background: var(--bg-secondary);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
}

.regulation-box-title {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

/* =========================================================
   Disclaimer Box
   ========================================================= */
.disclaimer-box {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.disclaimer-warning {
  background: #2a1f0e;
  color: #f5c97a;
  border: 1px solid #4a3210;
}

.disclaimer-severe {
  background: #1f0e0e;
  color: #f08080;
  border: 1px solid #4a1515;
}

.warn-icon {
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 1px;
}

/* =========================================================
   Overview Disclaimer (bottom, small)
   ========================================================= */
.cta-section {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 1;
  border-radius: var(--radius);
  overflow: hidden;
  margin: 2rem 0;
  background: var(--bg-secondary);
}

.cta-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cta-image-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--border-color), var(--bg-secondary));
}

.cta-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.4);
  text-align: center;
  padding: 2rem;
}

.cta-title {
  font-family: var(--font-heading);
  font-size: 42px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.cta-subtitle {
  font-size: 18px;
  color: #ffffff;
  font-family: var(--font-body);
  line-height: 1.4;
}

.overview-disclaimer {
  border-top: 1px solid var(--border-color);
  padding-top: 1rem;
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* =========================================================
   Year Cards (Kan Page)
   ========================================================= */
.year-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.year-card {
  background: var(--bg-secondary);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
}

.year-card.current {
  border: 2px solid #1a56db;
  background: var(--bg-primary);
}

.year-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  background: #0e1e3a;
  color: #6fa3ef;
  border: 1px solid #1a3a6a;
  margin-bottom: 0.6rem;
}

.year-amount {
  font-family: var(--font-heading);
  font-size: 42px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.2rem;
}

.year-unit {
  font-size: 13px;
  color: var(--text-secondary);
}

/* =========================================================
   Pie Chart Section (Kan Page)
   ========================================================= */
.chart-section {
  background: var(--bg-secondary);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.chart-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chart-legend {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 13px;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.chart-canvas-wrap {
  max-width: 280px;
  margin: 0 auto;
}

/* =========================================================
   Stacked Bar (Kan Page)
   ========================================================= */
.stacked-bar {
  display: flex;
  height: 54px;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.context-bar {
  height: 24px;
  border-radius: 4px;
  flex-shrink: 0;
}

.stacked-segment {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 0.4rem;
  overflow: hidden;
  transition: flex-basis 0.4s ease;
  cursor: default;
}

.segment-label {
  font-size: 11px;
  color: rgba(255,255,255,0.85);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  line-height: 1.2;
}

.segment-pct {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.year-btn-blue.active {
  background: var(--page-accent);
  color: #fff;
  border-color: var(--page-accent);
}

.year-btn-blue:hover:not(.active) {
  border-color: var(--page-accent);
  color: var(--page-accent);
}

/* =========================================================
   Big Total Box (Funds Page)
   ========================================================= */
.total-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  margin-bottom: 1.5rem;
  position: relative;
}

.total-box-amount {
  font-family: var(--font-heading);
  font-size: 56px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.4rem;
}

.total-box-label {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 0.3rem;
}

.total-box-note {
  font-size: 12px;
  color: var(--text-muted);
}

.total-box-info {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  width: 20px;
  height: 20px;
  font-size: 14px;
  line-height: 1;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: color 0.2s;
}

.total-box-info:hover {
  color: var(--text-primary);
}

/* Info Modal */
.info-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
}

.info-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.info-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: -1;
}

.info-modal-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1.5rem;
  max-width: 400px;
  position: relative;
  box-shadow: var(--shadow-md);
}

.info-modal-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: none;
  border: none;
  font-size: 28px;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.info-modal-close:hover {
  color: var(--text-primary);
}

.info-modal-content {
  margin-top:1rem;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-primary);
}

/* =========================================================
   Year Selector
   ========================================================= */
.year-selector {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.year-btn {
  padding: 0.3rem 0.9rem;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  font-family: var(--font-body);
  font-size: 13px;
  cursor: pointer;
  background: var(--bg-primary);
  color: var(--text-secondary);
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.year-btn:hover { border-color: var(--page-accent); color: var(--page-accent); }

.year-btn.active {
  background: var(--page-accent);
  color: #fff;
  border-color: var(--page-accent);
}

/* =========================================================
   Horizontal Bars (Funds Page)
   ========================================================= */
.bars-section {
  background: var(--bg-secondary);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.bar-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.bar-row:last-child { margin-bottom: 0; }

.bar-name {
  width: 220px;
  flex-shrink: 0;
  font-size: 13px;
  text-align: right;
}

.bar-track {
  flex: 1;
  height: 28px;
  background: var(--border-color);
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}

.bar-fill {
  height: 100%;
  border-radius: 6px;
  display: flex;
  align-items: center;
  padding: 0 0.5rem;
  transition: width 0.4s ease;
  min-width: 2rem;
}

.bar-value {
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
}

/* =========================================================
   Fund Stats Cards (Funds Page)
   ========================================================= */
.stat-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

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

.stat-card-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.stat-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.stat-card-name {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
}

.stat-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 0.4rem;
  color: var(--text-secondary);
}

.stat-row strong { color: var(--text-primary); }

.stat-progress-track {
  height: 6px;
  background: var(--border-color);
  border-radius: 3px;
  margin-top: 0.75rem;
  overflow: hidden;
}

.stat-progress-fill {
  height: 100%;
  border-radius: 3px;
}

/* =========================================================
   Broadcaster Cards (Cable / Reshut Pages)
   ========================================================= */
.broadcaster-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.broadcaster-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.broadcaster-name {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.broadcaster-subtitle {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.broadcaster-amount {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.2rem;
}

.broadcaster-amount-unit {
  font-size: 14px;
  color: var(--text-secondary);
}

.broadcaster-divider {
  border: none;
  border-top: 1px solid var(--border-color);
  margin: 0.75rem 0;
}

.broadcaster-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 0.35rem;
  color: var(--text-secondary);
}

.broadcaster-row strong { color: var(--text-primary); }

.broadcaster-row .negative { color: #b91c1c; }

.broadcaster-compliance {
  margin-top: 0.75rem;
}

.compliance-track {
  height: 8px;
  background: var(--border-color);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 0.35rem;
}

.compliance-fill {
  height: 100%;
  border-radius: 4px;
}

/* =========================================================
   Current Status Box (Cable Page)
   ========================================================= */
.status-box {
  background: var(--bg-secondary);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.status-big-pct {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 700;
  color: #b91c1c;
  margin-bottom: 0.5rem;
}

.status-text {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.status-bar-track {
  height: 14px;
  border-radius: 7px;
  overflow: hidden;
  display: flex;
  margin-bottom: 0.5rem;
}

.status-bar-regulated {
  height: 100%;
}

.status-bar-unregulated {
  height: 100%;
  flex: 1;
}

.status-bar-legend {
  display: flex;
  gap: 1.25rem;
  font-size: 12px;
  color: var(--text-secondary);
}

.legend-swatch {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  margin-left: 0.35rem;
  vertical-align: middle;
}

/* =========================================================
   Shows Table (Reshut Page)
   ========================================================= */
.shows-table-wrap {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.shows-table-header {
  padding: 1rem 1.25rem 0.75rem;
  border-bottom: 1px solid var(--border-color);
}

.shows-table-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
}

.table-scroll { overflow-x: auto; }

.shows-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.shows-table th {
  text-align: right;
  padding: 0.6rem 1.25rem;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
}

.shows-table td {
  padding: 0.65rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
}

.shows-table tr:last-child td { border-bottom: none; }

.shows-table tr:hover td { background: var(--bg-secondary); }

.mini-bar-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.mini-bar-track {
  width: 50px;
  height: 6px;
  background: var(--border-color);
  border-radius: 3px;
  overflow: hidden;
  flex-shrink: 0;
}

.mini-bar-fill {
  height: 100%;
  border-radius: 3px;
}

.shows-table-footer {
  padding: 0.6rem 1.25rem;
  font-size: 11px;
  color: var(--text-muted);
  border-top: 1px solid var(--border-color);
}

/* =========================================================
   Stat List (Funds Page)
   ========================================================= */
.stat-list-box {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
}

.stat-list-title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-color);
}

.stat-list-group-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}

.stat-list-row {
  display: grid;
  grid-template-columns: 280px 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-color);
}

.stat-list-row:last-child { border-bottom: none; }

.stat-list-name {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 13px;
  font-weight: 500;
}

.stat-list-bar-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.stat-list-track {
  flex: 1;
  height: 8px;
  background: var(--border-color);
  border-radius: 4px;
  overflow: hidden;
}

.stat-list-fill {
  height: 100%;
  border-radius: 4px;
}

.stat-list-pct {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  width: 36px;
  text-align: left;
  flex-shrink: 0;
}

.stat-list-counts {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
}

/* =========================================================
   Future Box
   ========================================================= */
.future-box {
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  border-top: 3px solid transparent;
  padding: 1.5rem;
  margin-top: 2rem;
}

.future-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.future-badge {
  font-size: 12px;
  font-weight: 600;
  padding: 0.25rem 0.7rem;
  border-radius: 20px;
}

.badge-stable    { background: #0e1e3a; color: #6fa3ef; border: 1px solid #1a3a6a; }
.badge-changing  { background: #2a1f0e; color: #f5c97a; border: 1px solid #4a3210; }
.badge-declining { background: #1f0e0e; color: #f08080; border: 1px solid #4a1515; }
.badge-crashing  { background: #1a0808; color: #e05050; border: 1px solid #5a1010; }

.future-text {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.future-text:last-child { margin-bottom: 0; }

/* --- Sources and Links --- */
.sources-links-box {
  border-radius: var(--radius);
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 1.5rem;
  margin-top: 2rem;
}

.sources-links-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.sources-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sources-links-list li {
  margin-bottom: 0.75rem;
  font-size: 14px;
}

.sources-links-list li:last-child {
  margin-bottom: 0;
}

.sources-links-list a {
  color: var(--page-accent, #e05050);
  text-decoration: none;
  transition: opacity 0.2s;
}

.sources-links-list a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.sources-page-link {
  color: var(--text-primary);
}

.sources-page-link:hover {
  color: var(--page-accent, #e05050);
}

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: opacity 0.15s;
}

.btn:hover { opacity: 0.88; }

.btn-blue { background: #1a56db; color: #fff; }
.btn-red  { background: #b91c1c; color: #fff; }

/* =========================================================
   Next Page Navigation
   ========================================================= */
.next-page-nav {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
  margin-bottom: 2rem;
}

.next-page-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--page-accent, #e05050);
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.15s;
}

.next-page-btn:hover {
  opacity: 0.85;
  transform: translateY(-2px);
}

.next-page-btn:active {
  transform: translateY(0);
}

/* =========================================================
   Footer
   ========================================================= */
.footer {
  border-top: 1px solid var(--border-color);
  padding: 1rem 1.5rem;
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 3rem;
}

/* =========================================================
   Tab Navigation
   ========================================================= */
.bar-mode-toggle {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.bar-mode-btn {
  padding: 0.35rem 0.9rem;
  background: none;
  border: 1.5px solid var(--border-color);
  border-radius: 20px;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.bar-mode-btn:hover { border-color: var(--text-secondary); color: var(--text-primary); }

.bar-mode-btn.active {
  background: var(--text-primary);
  color: var(--bg-primary);
  border-color: var(--text-primary);
}

.tab-nav {
  display: flex;
  gap: 0;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--border-color);
}

.tab-btn {
  padding: 0.6rem 1.25rem;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

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

.tab-btn.active {
  color: var(--text-primary);
  border-bottom-color: var(--tab-accent, #047857);
}

.tab-panel { display: none; }
.tab-panel.active { display: block; }

.tab-description {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

/* Hero image strip */
.hero-strip {
  width: 100%;
  height: 220px;
  background: var(--bg-secondary);
  border-radius: var(--radius);
  border: 2px dashed var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.hero-strip-placeholder {
  font-size: 13px;
  color: var(--text-muted);
  font-family: var(--font-body);
}

.hero-strip-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* TLDR expandable box */
.tldr-box {
  background: #375678;
  border: 1px solid #0e3d48;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
}

.tldr-summary {
  padding: 0.65rem 1rem;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  color: #caf1f8;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  user-select: none;
}

.tldr-summary::-webkit-details-marker { display: none; }

.tldr-summary::after {
  content: '◀';
  font-size: 9px;
  transition: transform 0.2s;
  display: inline-block;
}

.tldr-box[open] .tldr-summary::after { transform: rotate(-90deg); }

.tldr-content {
  padding: 0.75rem 1rem 1rem;
  font-size: 14px;
  line-height: 1.75;
  color: #caf1f8;
  border-top: 1px solid #0e3d48;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tldr-content strong {
font-weight:900;
text-decoration:underline;
}

.tldr-box[open] .tldr-content {
  -webkit-line-clamp: unset;
  overflow: visible;
}

/* Cable 3-col broadcaster grid (responsive) */
.broadcaster-grid-cable {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1rem;
}

/* Tab total sum row */
.tab-total-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 1rem;
  background: var(--bg-secondary);
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  margin-bottom: 0.5rem;
}
.tab-total-label {
  font-size: 12px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.tab-total-amount {
  font-family: var(--font-heading);
  font-size: 56px;
  font-weight: 700;
  line-height: 1.1;
}
.tab-total-unit {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-secondary);
}

/* Broadcaster status badges */
.bc-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  margin-top: 0.5rem;
}

.bc-badge-noregulation { background: #1e2030; color: var(--text-secondary); border: 1px solid var(--border-color); }
.bc-badge-partial       { background: #2a1f0e; color: #f5c97a; border: 1px solid #4a3210; }
.bc-badge-theoretical   { background: #0d1e1a; color: #34d399; border: 1px solid #134d3a; }

/* =========================================================
   Landing Page
   ========================================================= */
.landing-hero-wrapper {
  position: relative;
  display: block;
  width: 100%;
  height: 450px;
  margin-bottom: 3rem;
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s;
}

.landing-hero-wrapper:hover {
  transform: scale(1.02);
}

.landing-hero-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.landing-hero-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-secondary);
  border: 1px dashed var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 16px;
}

.landing-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  text-align: center;
  padding: 2rem;
  z-index: 10;
}

.landing-title {
  font-family: var(--font-heading);
  font-size: 64px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.75rem;
  line-height: 1.2;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.landing-subtitle {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 1.5rem;
  line-height: 1.4;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.landing-description {
  max-width: 720px;
  margin: 0 auto 2rem;
  text-align: center;
}

.landing-description p {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.landing-btn {
  display: inline-block;
  padding: 0.9rem 2rem;
  background: #ffffff;
  color: var(--bg-primary);
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.landing-btn:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.landing-footer-links {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}

.landing-about-link {
  display: inline;
  padding: 0.75rem 0;
  color: #ffffff;
  text-decoration: none;
  font-size: 14px;
  transition: opacity 0.2s;
}

.landing-about-link:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.landing-link-separator {
  color: #ffffff;
  font-size: 14px;
}

/* --- About Page --- */
.about-content {
  margin-top: 2rem;
}

.about-section {
  margin-bottom: 2.5rem;
}

.about-headline {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.about-text {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-primary);
  margin: 0;
}

/* =========================================================
   Responsive — 768px breakpoint
   ========================================================= */
@media (max-width: 768px) {
  .cards-grid              { grid-template-columns: 1fr; }
  .budget-grid             { grid-template-columns: 1fr; }
  .year-cards-grid         { grid-template-columns: repeat(3, 1fr); }
  .broadcaster-grid        { grid-template-columns: 1fr; }
  .broadcaster-grid-cable  { grid-template-columns: repeat(2, 1fr); }
  .stat-cards              { grid-template-columns: 1fr; }
  .table-scroll            { overflow-x: auto; }
  .hero-strip              { height: 150px; }

  /* Funds page: leading projects table — make money column narrower, fund name wider */
  .shows-table th:last-child,
  .shows-table td:last-child {
    min-width: 70px;
    width: 70px;
  }
  .shows-table th:nth-child(2),
  .shows-table td:nth-child(2) {
    width: 35%;
  }

  /* Funds page: statistics — wrap counts to second line on mobile */
  .stat-list-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  .stat-list-bar-wrap {
    grid-column: 1 / -1;
    flex-wrap: wrap;
  }
  .stat-list-counts {
    order: 3;
    width: 100%;
    text-align: left;
    margin-top: 0.25rem;
  }

  /* Funds page: bars section — wider bar area, name stays single line */
  .bar-name {
    width: 140px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .landing-hero-wrapper {
    height: 300px;
    margin-bottom: 2rem;
  }

  .landing-title {
    font-size: 44px;
    margin-bottom: 0.5rem;
  }

  .landing-subtitle {
    font-size: 20px;
    margin-bottom: 1rem;
  }

  .nav {
    justify-content: space-between;
    padding: 0 1rem;
    height: 52px;
    flex-wrap: nowrap;
  }

  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 20px;
    cursor: pointer;
    padding: 0.4rem 0.5rem;
    border-radius: 6px;
    line-height: 1;
    transition: background 0.15s, color 0.15s;
  }

  .nav-toggle:hover { background: var(--bg-secondary); color: var(--text-primary); }

  .nav-links-group {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 52px;
    right: 0;
    left: 0;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
    z-index: 99;
  }

  .nav.open .nav-links-group {
    max-height: 400px;
  }

  .nav-link {
    padding: 0.85rem 1.25rem;
    border-radius: 0;
    font-size: 14px;
    border-bottom: 1px solid var(--border-color);
    text-align: right;
  }

  .nav-link:last-child { border-bottom: none; }

  .nav-divider {
    display: none;
  }

  .main { padding: 1.25rem 1rem 3rem; }
}

@media (max-width: 480px) {
  .year-cards-grid { grid-template-columns: 1fr; }
  .broadcaster-grid-cable { grid-template-columns: 1fr; }
  .big-number { font-size: 32px; }
  #overviewBar { margin-left: -1.5rem; margin-right: -1.5rem; width: calc(100% + 3rem); }

  /* CTA overlay text sizing for mobile */
  .cta-overlay { padding: 1.25rem; }
  .cta-title { font-size: 28px; margin-bottom: 0.35rem; }
  .cta-subtitle { font-size: 14px; }
}

/* =========================================================
   Landing v2 (landing2.html) — full-screen mobile-first
   ========================================================= */

.page-landing .nav,
.page-landing .page-footer { display: none; }

/* ── Outer shell ── */
.lp2-screen {
  position: fixed;
  inset: 0;
  overflow: hidden;
}

/* ── Image layer (full-screen on mobile) ── */
.lp2-image {
  position: absolute;
  inset: 0;
}

.lp2-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.lp2-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.05) 0%,
    rgba(0, 0, 0, 0.25) 40%,
    rgba(0, 0, 0, 0.75) 70%,
    rgba(0, 0, 0, 0.92) 100%
  );
}

/* ── Content layer (full-screen on mobile, over image) ── */
.lp2-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.lp2-top {
  padding: 2rem 1.5rem 0;
  display: flex;
  align-items: flex-start;
}

.lp2-logo {
  height: 107px;
  width: auto;
  display: block;
  background: #ffffff;
}

.lp2-bottom {
  padding: 0 1.5rem 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.lp2-description {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 2rem;
  max-width: 480px;
}

.lp2-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6rem;
}

.lp2-actions-secondary {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.6rem;
}

.lp2-btn-primary {
  display: inline-block;
  padding: 0.45rem 1.4rem;
  background: #e05050;
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.15s, transform 0.15s;
}

.lp2-btn-primary:hover {
  background: #f0f0f0;
color:#e05050;
  transform: translateY(-2px);
}

.lp2-btn-secondary {
  display: inline-block;
  padding: 0.3rem 1rem;
  //background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.lp2-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

/* ── Desktop: centered 9:16 portrait box ── */
@media (min-width: 768px) {
  /* Turn body + main into a full-viewport centering stage */
  .page-landing {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
  }

  .page-landing .main {
    flex: 1;
    max-width: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0d0f15;
  }

  /* 9:16 portrait box — sized to fit the viewport height */
  .lp2-screen {
    position: relative;
    height: 79vh;
    width: calc(79vh * 9 / 16);
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.7);
  }

  /* Image still fills the box */
  .lp2-image {
    position: absolute;
    inset: 0;
  }

  /* Keep the mobile vertical gradient inside the box */
  .lp2-overlay {
    background: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.05) 0%,
      rgba(0, 0, 0, 0.25) 40%,
      rgba(0, 0, 0, 0.75) 70%,
      rgba(0, 0, 0, 0.92) 100%
    );
  }

  /* Content sits over the image, same as mobile */
  .lp2-content {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .lp2-logo { height: 107px; }
}

/* =========================================================
   Overview — Total Investment Chart
   ========================================================= */

.chart-box {
  margin: 2rem 0;
  padding: 1.5rem;
  background: var(--bg-secondary);
  border-radius: var(--radius);
  position: relative;
}

.chart-box-title {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

#totalInvestmentChart {
  max-height: 300px;
}

@media (max-width: 768px) {
  .chart-box {
    margin-left: -1rem;
    margin-right: -1rem;
    width: calc(100% + 2rem);
    box-sizing: border-box;
    border-radius: 0;
    padding: 1rem 0.75rem;
  }
}

/* =========================================================
   Desktop Landing (index_desktop.html) — side-by-side layout
   ========================================================= */

.page-landing_desktop .nav,
.page-landing_desktop .footer,
.page-landing_desktop .next-page-nav { display: none; }

.page-landing_desktop .main {
  min-height: 100vh;
  max-width: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0d0f15;
}

/* 960px container: image (right) + content (left) in RTL */
.lpd-screen {
  width: 960px;
  max-width: calc(100vw - 2rem);
  height: 79vh;
  display: flex;
  flex-direction: row;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.7);
}

/* Image column — right side (first in DOM, RTL) */
.lpd-image {
  position: relative;
  width: calc(79vh * 9 / 16);
  flex-shrink: 0;
  overflow: hidden;
}

.lpd-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.lpd-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.5) 0%,
    rgba(0, 0, 0, 0.0) 60%
  );
}

/* Content column — left side (second in DOM, RTL) */
.lpd-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2.5rem;
  background: var(--bg-secondary);
  overflow-y: auto;
}

.lpd-title {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 700;
  color: #e05050;
  margin: 0 0 0.5rem 0;
  line-height: 1.2;
}

.lpd-subtitle {
  font-family: var(--font-body);
  font-size: 16px;
  color: rgba(255, 255, 255, 0.65);
  margin-top: -6px;
  line-height: 1.5;
  background-color:#e05050;
padding:3px;
border-radius: 5px;
}

.lpd-description {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 2rem;
}

.lpd-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6rem;
}

.lpd-actions-secondary {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.6rem;
}

/* Mobile: full-screen bg image with gradient overlay — same as index.html */
@media (max-width: 767px) {
  .page-landing_desktop .main {
    max-width: none;
    margin: 0;
    padding: 0;
  }

  .lpd-screen {
    position: fixed;
    inset: 0;
    width: auto;
    max-width: none;
    height: auto;
    display: block;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
  }

  .lpd-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }

  .lpd-overlay {
    background: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.05) 0%,
      rgba(0, 0, 0, 0.25) 40%,
      rgba(0, 0, 0, 0.75) 70%,
      rgba(0, 0, 0, 0.92) 100%
    );
  }

  .lpd-content {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: transparent;
    padding: 0;
    overflow-y: visible;
  }

  .lpd-top {
    padding: 2rem 1.5rem 0;
    display: flex;
    align-items: flex-start;
  }

  .lpd-bottom {
    padding: 0 1.5rem 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .lpd-description {
    color: rgba(255, 255, 255, 0.82);
    margin-bottom: 2rem;
  }
}
