/* TBT Brand Guidelines - Crypto Monthly Performance Dashboard */
/* Primary Teal: #0DCAB1 | Brand Green: #00CC00 | Dark Theme with Glassmorphism */

:root {
  --primary-teal: #0DCAB1;
  --primary-teal-dark: #0AA89A;
  --brand-green: #00CC00;
  --brand-green-light: #00FF00;
  --bg-dark: #0a0e17;
  --bg-card: rgba(15, 23, 42, 0.7);
  --bg-card-hover: rgba(20, 30, 50, 0.85);
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --text-muted: rgba(255, 255, 255, 0.5);
  --border-color: rgba(13, 202, 177, 0.3);
  --glass-blur: 20px;
  --positive: #00CC00;
  --negative: #ff4757;
  --neutral: rgba(255, 255, 255, 0.3);
  --halving-gold: #ffd700;
  
  /* Market cycle colors */
  --cycle-top: #ff4757;
  --cycle-bottom: #ffa502;
  --cycle-recovery: #2ed573;
  --cycle-rally: #00d2d3;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Animated Background */
.bg-pattern {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(ellipse at 20% 20%, rgba(13, 202, 177, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(0, 204, 0, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(13, 202, 177, 0.05) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Header */
.header {
  padding: 2rem;
  position: relative;
  z-index: 10;
  background: linear-gradient(180deg, rgba(10, 14, 23, 0.95) 0%, transparent 100%);
}

.header-logo {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 1000;
}

.header-logo img {
  height: 50px;
  width: auto;
  opacity: 0.95;
  transition: opacity 0.3s ease;
}

.header-logo:hover img {
  opacity: 1;
}

.header-text {
  text-align: center;
}

@media (max-width: 768px) {
  .header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 1rem;
  }
  .header-logo {
    position: static !important;
    z-index: auto !important;
  }
  .header-logo img {
    height: 45px;
  }
  .header-text {
    text-align: center;
  }
}

.header h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary-teal) 0%, var(--brand-green) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
  text-transform: none;
  letter-spacing: 0.5px;
}

.header .subtitle {
  color: var(--text-secondary);
  font-size: 1rem;
  font-weight: 400;
}

/* Asset Selector */
.asset-selector {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  flex-wrap: wrap;
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 14, 23, 0.9);
  backdrop-filter: blur(var(--glass-blur));
}

.asset-btn {
  padding: 0.6rem 1.2rem;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-secondary);
  border-radius: 50px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.asset-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--primary-teal);
  color: var(--text-primary);
  transform: translateY(-2px);
}

.asset-btn.active {
  background: linear-gradient(135deg, var(--primary-teal) 0%, var(--primary-teal-dark) 100%);
  border-color: var(--primary-teal);
  color: var(--bg-dark);
  box-shadow: 0 4px 20px rgba(13, 202, 177, 0.4);
}

/* Main Container */
.dashboard {
  max-width: 1600px;
  margin: 0 auto;
  padding: 1rem 2rem 4rem;
  position: relative;
  z-index: 10;
}

/* Glass Card */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  backdrop-filter: blur(var(--glass-blur));
  margin-bottom: 2rem;
  overflow: hidden;
  transition: all 0.3s ease;
}

.card:hover {
  border-color: var(--primary-teal);
  box-shadow: 0 8px 40px rgba(13, 202, 177, 0.15);
}

.card-header {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.card-header h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card-header h2::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 24px;
  background: linear-gradient(180deg, var(--primary-teal) 0%, var(--brand-green) 100%);
  border-radius: 2px;
}

.card-body {
  padding: 1.5rem 2rem;
}

/* Chart subtitle for win rate */
.chart-subtitle {
  display: block;
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* Toggle Buttons */
.heatmap-controls {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.toggle-btn {
  padding: 0.5rem 1rem;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-secondary);
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.toggle-btn:hover {
  border-color: var(--primary-teal);
  color: var(--text-primary);
}

.toggle-btn.active {
  background: linear-gradient(135deg, var(--primary-teal) 0%, var(--primary-teal-dark) 100%);
  border-color: var(--primary-teal);
  color: var(--bg-dark);
}

/* Heatmap Grid */
.heatmap-container {
  overflow-x: auto;
  padding-bottom: 1rem;
}

.heatmap {
  display: grid;
  grid-template-columns: 70px 70px repeat(12, 1fr) 60px;
  gap: 3px;
  min-width: 900px;
}

.heatmap-header {
  font-weight: 600;
  color: var(--text-secondary);
  text-align: center;
  padding: 0.8rem 0.5rem;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.heatmap-header.heatmap-cycle-header {
  font-size: 0.75rem;
}

.heatmap-header.heatmap-year-header {
  font-size: 0.75rem;
}

.heatmap-header.heatmap-gr-header {
  font-size: 0.75rem;
}

.heatmap-cycle {
  font-weight: 600;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.3rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.heatmap-cycle.cycle-top {
  color: var(--cycle-top);
  background: rgba(255, 71, 87, 0.15);
}

.heatmap-cycle.cycle-bottom {
  color: var(--cycle-bottom);
  background: rgba(255, 165, 2, 0.15);
}

.heatmap-cycle.cycle-recovery {
  color: var(--cycle-recovery);
  background: rgba(46, 213, 115, 0.15);
}

.heatmap-cycle.cycle-rally {
  color: var(--cycle-rally);
  background: rgba(0, 210, 211, 0.15);
}

.heatmap-year {
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: 0.5rem;
  font-size: 0.9rem;
}

.heatmap-year.halving-year {
  color: var(--halving-gold);
}

.heatmap-year.halving-year::after {
  content: '₿';
  margin-left: 0.3rem;
  font-size: 0.75rem;
}

.heatmap-summary-row {
  background: rgba(13, 202, 177, 0.1) !important;
  border: 1px solid rgba(13, 202, 177, 0.3);
}

.heatmap-cell {
  aspect-ratio: 1;
  min-height: 45px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.heatmap-cell:hover {
  transform: scale(1.1);
  z-index: 10;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.heatmap-cell.halving-month {
  border: 2px solid var(--halving-gold);
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

.heatmap-cell .value {
  font-size: 0.75rem;
}

.heatmap-cell.null {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
}

/* Green/Red Column */
.heatmap-gr {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  gap: 2px;
}

.gr-green {
  color: var(--positive);
}

.gr-red {
  color: var(--negative);
}

/* Tooltip */
.tooltip {
  position: fixed;
  background: rgba(10, 14, 23, 0.95);
  border: 1px solid var(--primary-teal);
  border-radius: 10px;
  padding: 0.8rem 1rem;
  font-size: 0.85rem;
  pointer-events: none;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.2s ease;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(13, 202, 177, 0.3);
}

.tooltip.visible {
  opacity: 1;
}

.tooltip-title {
  font-weight: 700;
  color: var(--primary-teal);
  margin-bottom: 0.3rem;
}

.tooltip-value {
  font-size: 1.2rem;
  font-weight: 800;
}

.tooltip-value.positive { color: var(--positive); }
.tooltip-value.negative { color: var(--negative); }

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}

.stat-item {
  background: rgba(13, 202, 177, 0.1);
  border-radius: 12px;
  padding: 1.2rem;
  text-align: center;
  border: 1px solid transparent;
  transition: all 0.3s ease;
}

.stat-item:hover {
  border-color: var(--primary-teal);
  background: rgba(13, 202, 177, 0.15);
}

.stat-value {
  font-size: 1.8rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary-teal) 0%, var(--brand-green) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-value.negative {
  background: none;
  -webkit-text-fill-color: #ff5252;
  color: #ff5252;
}

.stat-value.custom-color {
  background: none;
  -webkit-text-fill-color: currentColor;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 0.3rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.stat-sublabel {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
  font-weight: 400;
}

/* Quarterly Table */
.quarterly-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.quarterly-table th,
.quarterly-table td {
  padding: 0.75rem 1rem;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
}

.quarterly-table th {
  background: rgba(13, 202, 177, 0.1);
  color: var(--primary-teal);
  font-weight: 700;
  font-size: 0.9rem;
}

.quarterly-table th small {
  display: block;
  font-size: 0.65rem;
  color: var(--text-muted);
  font-weight: 400;
}

.quarterly-table tr:hover {
  background: rgba(13, 202, 177, 0.05);
}

.quarterly-table .q-year {
  font-weight: 700;
  color: var(--text-primary);
}

.quarterly-table .q-positive {
  color: var(--positive);
  font-weight: 600;
}

.quarterly-table .q-negative {
  color: var(--negative);
  font-weight: 600;
}

.quarterly-table .q-null {
  color: var(--text-muted);
}

.quarterly-table .q-avg-row {
  background: rgba(13, 202, 177, 0.15);
  border-top: 2px solid var(--primary-teal);
}

.quarterly-table .q-avg-row td {
  font-weight: 700;
}

/* Charts Container */
.charts-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
}

.chart-container {
  height: 350px;
  position: relative;
}

/* Win Rate Donut */
.donut-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 300px;
}

/* Halving Timeline */
.timeline {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 2rem 1rem;
  position: relative;
  gap: 1rem;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 50px;
  left: 5%;
  right: 5%;
  height: 3px;
  background: linear-gradient(90deg, var(--border-color) 0%, var(--primary-teal) 50%, var(--border-color) 100%);
  border-radius: 2px;
}

.timeline-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 5;
  flex: 1;
  min-width: 100px;
}

.timeline-item.projected {
  opacity: 0.75;
}

.timeline-marker {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--halving-gold) 0%, #ff8c00 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--bg-dark);
  box-shadow: 0 4px 20px rgba(255, 215, 0, 0.4);
  margin-bottom: 0.8rem;
}

.timeline-item.projected .timeline-marker {
  background: linear-gradient(135deg, #888 0%, #666 100%);
  box-shadow: 0 4px 20px rgba(136, 136, 136, 0.3);
}

.timeline-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  text-align: center;
}

.timeline-date {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 0.2rem;
}

.timeline-block {
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

.timeline-reward {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.5rem;
  font-size: 0.7rem;
}

.reward-old {
  color: var(--negative);
  text-decoration: line-through;
  opacity: 0.7;
}

.reward-arrow {
  color: var(--text-muted);
}

.reward-new {
  color: var(--positive);
  font-weight: 600;
}

.projected-label {
  font-size: 0.6rem;
  color: var(--halving-gold);
  background: rgba(255, 215, 0, 0.1);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  margin-top: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Year Comparison */
.comparison-selectors {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.year-select {
  padding: 0.6rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 0.9rem;
  cursor: pointer;
  outline: none;
}

.year-select:focus {
  border-color: var(--primary-teal);
}

.comparison-chart {
  height: 300px;
  margin-top: 1rem;
}

/* Cycle Buttons for YoY Comparison */
.cycle-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.cycle-btn {
  padding: 0.5rem 1rem;
  border: 1px solid var(--cycle-color, var(--border-color));
  background: transparent;
  color: var(--cycle-color, var(--text-secondary));
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.cycle-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.cycle-btn.active {
  background: var(--cycle-color, var(--primary-teal));
  color: var(--bg-dark);
  font-weight: 700;
}

.cycle-btn.clear-btn {
  --cycle-color: var(--text-muted);
  border-style: dashed;
}

/* Legend */
.legend {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.legend-color {
  width: 16px;
  height: 16px;
  border-radius: 4px;
}

.legend-color.cycle-top {
  background: var(--cycle-top);
}

.legend-color.cycle-bottom {
  background: var(--cycle-bottom);
}

.legend-color.cycle-recovery {
  background: var(--cycle-recovery);
}

.legend-color.cycle-rally {
  background: var(--cycle-rally);
}

/* Color Scale */
.color-scale {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 0;
  justify-content: center;
}

.color-scale-bar {
  height: 12px;
  width: 200px;
  background: linear-gradient(90deg, 
    #ff1744 0%, 
    #ff5252 20%, 
    rgba(255,255,255,0.3) 50%, 
    #69f0ae 80%, 
    #00e676 100%);
  border-radius: 6px;
}

.color-scale-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Insight Cards */
.insights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.insight-card {
  background: linear-gradient(135deg, rgba(13, 202, 177, 0.15) 0%, rgba(0, 204, 0, 0.1) 100%);
  border-radius: 12px;
  padding: 1.2rem;
  border: 1px solid rgba(13, 202, 177, 0.3);
}

.insight-icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.insight-title {
  font-weight: 700;
  color: var(--primary-teal);
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
}

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

.insight-desc {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 0.3rem;
}

/* ========== FORECAST SECTION - NEW ========== */
.forecast-card {
  background: linear-gradient(135deg, rgba(13, 202, 177, 0.2) 0%, rgba(0, 204, 0, 0.1) 100%);
  border: 2px solid var(--primary-teal);
}

.forecast-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.forecast-asset-card {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.forecast-asset-card:hover {
  border-color: var(--primary-teal);
  transform: translateY(-2px);
}

.forecast-asset-name {
  font-size: 1rem;
  font-weight: 800;
  color: var(--primary-teal);
  margin-bottom: 0.75rem;
}

.forecast-metrics {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.forecast-metric {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
}

.forecast-label {
  color: var(--text-muted);
}

.forecast-value {
  font-weight: 700;
  color: var(--text-primary);
}

.forecast-value.positive {
  color: var(--positive);
}

.forecast-value.negative {
  color: var(--negative);
}

/* Market Alerts */
.market-alerts {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.alert-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(0, 0, 0, 0.2);
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  min-width: 100px;
}

.alert-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.25rem;
}

.alert-value {
  font-weight: 700;
  font-size: 0.85rem;
}

.alert-value.bullish,
.alert-value.alt-season {
  color: var(--positive);
}

.alert-value.bearish,
.alert-value.btc-season {
  color: var(--cycle-rally);
}

.alert-value.neutral {
  color: var(--text-secondary);
}

.alert-value.low-vol {
  color: var(--positive);
}

.alert-value.high-vol {
  color: var(--negative);
}

/* Responsive */
@media (max-width: 768px) {
  .header {
    padding: 1.5rem 1rem;
  }
  
  .header h1 {
    font-size: 1.5rem;
  }
  
  .asset-selector {
    padding: 1rem;
  }
  
  .asset-btn {
    padding: 0.5rem 0.8rem;
    font-size: 0.75rem;
  }
  
  .dashboard {
    padding: 1rem;
  }
  
  .card-header {
    padding: 1rem 1.2rem;
    flex-direction: column;
    align-items: flex-start;
  }
  
  .card-body {
    padding: 1rem 1.2rem;
  }
  
  .heatmap {
    min-width: 700px;
    grid-template-columns: 55px 55px repeat(12, 1fr) 50px;
  }
  
  .heatmap-cell {
    min-height: 35px;
    font-size: 0.65rem;
  }
  
  .heatmap-cycle {
    font-size: 0.55rem;
  }
  
  .charts-row {
    grid-template-columns: 1fr;
  }
  
  .timeline {
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
  }
  
  .timeline::before {
    display: none;
  }
  
  .quarterly-table {
    font-size: 0.75rem;
  }
  
  .quarterly-table th,
  .quarterly-table td {
    padding: 0.5rem;
  }
  
  .forecast-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.card {
  animation: fadeIn 0.5s ease-out forwards;
}

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

/* Loading State */
.loading {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 200px;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 3px solid var(--border-color);
  border-top-color: var(--primary-teal);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Footer */
.footer {
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
  font-size: 0.8rem;
  border-top: 1px solid var(--border-color);
  margin-top: 2rem;
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .footer {
    padding: 1.5rem 1rem;
    margin-top: 1rem;
  }
}

.footer a {
  color: var(--primary-teal);
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

/* Forecast Table - Clean Simple Style */
.forecast-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.forecast-table th,
.forecast-table td {
  padding: 0.75rem 1rem;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.forecast-table th {
  font-weight: 600;
  color: var(--accent-primary);
  font-size: 0.85rem;
}

.forecast-table .row-label {
  text-align: left;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
}

.forecast-table td.positive {
  color: #00e676;
}

.forecast-table td.negative {
  color: #ff4757;
}

.forecast-month {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent-primary);
}

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

/* Fix: Remove border from empty summary cells under Cycle and G/R */
.heatmap-cycle.heatmap-summary-row,
.heatmap-gr.heatmap-summary-row {
  background: transparent !important;
  border: none !important;
}

/* Months to Cycle Top */
.timeline-to-top {
  font-size: 0.7rem;
  color: var(--accent-primary);
  margin-top: 0.3rem;
  font-weight: 600;
  background: rgba(13, 202, 177, 0.15);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

/* Mobile Fixes */
@media (max-width: 768px) {
  /* Forecast table scrolling */
  .forecast-card .card-body {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .forecast-table {
    min-width: 600px;
  }
  
  /* Seasonality Insights 2x2 grid */
  .insights-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* Row highlighting feature */
.heatmap-row-dimmed {
  opacity: 0.3;
  transition: opacity 0.3s ease;
}

.heatmap-row-highlighted {
  opacity: 1;
  transition: opacity 0.3s ease;
}

/* Make cycle labels clickable */
.heatmap-cycle {
  cursor: pointer;
}

.heatmap-cycle:hover {
  filter: brightness(1.2);
}

/* Make year labels clickable */
.heatmap-year {
  cursor: pointer;
}

.heatmap-year:hover {
  filter: brightness(1.2);
}

/* 4-Year Bitcoin Cycle Section */
.cycle-pattern-card {
  margin-top: 1rem;
}

.cycle-intro {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.cycle-phases {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.cycle-phase {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 1.25rem;
  text-align: center;
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cycle-phase:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.phase-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.cycle-phase h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.cycle-phase p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

.phase-years {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
}

.phase-top h3 { color: var(--cycle-top); }
.phase-bottom h3 { color: var(--cycle-bottom); }
.phase-recovery h3 { color: var(--cycle-recovery); }
.phase-rally h3 { color: var(--cycle-rally); }

.phase-top { border-top: 3px solid var(--cycle-top); }
.phase-bottom { border-top: 3px solid var(--cycle-bottom); }
.phase-recovery { border-top: 3px solid var(--cycle-recovery); }
.phase-rally { border-top: 3px solid var(--cycle-rally); }

.cycle-source {
  color: var(--text-muted);
  font-size: 0.85rem;
  text-align: center;
  line-height: 1.6;
}

.cycle-source a {
  color: var(--primary-teal);
  text-decoration: none;
}

.cycle-source a:hover {
  text-decoration: underline;
}

.watch-video {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.3rem 0.8rem;
  background: rgba(13, 202, 177, 0.15);
  border-radius: 6px;
  font-weight: 600;
}

@media (max-width: 900px) {
  .cycle-phases {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .cycle-phases {
    grid-template-columns: 1fr;
  }
}
