/* ============================================
   TIMELINE — Cinematic FIA Story
   ============================================ */

/* Overlay */
.timeline-overlay {
  display: none; position: fixed; inset: 0; z-index: 500;
  background: #0a0f16;
  align-items: stretch; justify-content: center;
  overflow-y: auto;
}
.timeline-inner {
  width: 100%;
  padding: 32px 60px;
  position: relative;
  min-height: 100vh;
  display: flex; flex-direction: column;
  max-width: 1200px;
  margin: 0 auto;
}
.tl-close {
  position: fixed; top: 16px; right: 20px; z-index: 510;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  color: #fff; font-size: 20px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.tl-close:hover { background: rgba(255,255,255,0.12); color: #BF8F00; }
.tl-progress-bar {
  height: 4px; background: rgba(255,255,255,0.06);
  border-radius: 4px; margin-bottom: 24px; overflow: hidden;
}
.tl-progress-fill {
  height: 100%; width: 0;
  background: linear-gradient(90deg, #BF8F00, #d4a720);
  border-radius: 4px; transition: width 0.5s ease;
}

/* ===== INTRO ===== */
.tl-intro { text-align: center; padding: 40px 0; animation: tlFadeIn 0.6s ease; }
.tl-intro-badge {
  display: inline-block; font-size: 10px; font-weight: 700;
  letter-spacing: 3px; color: #BF8F00; text-transform: uppercase;
  padding: 6px 18px; border: 1px solid rgba(191,143,0,0.3);
  border-radius: 20px; margin-bottom: 20px;
}
.tl-intro h2 {
  font-family: 'Cormorant Garamond', serif; font-size: 2.4rem;
  font-weight: 700; color: #fff; line-height: 1.2; margin-bottom: 12px;
}
.tl-intro-sub { font-size: 16px; color: #8899AA; margin-bottom: 24px; line-height: 1.5; }
.tl-intro-product {
  display: flex; align-items: center; justify-content: center;
  gap: 10px; font-size: 13px; color: #667788; margin-bottom: 28px;
  flex-wrap: wrap;
}
.tl-sep { color: rgba(255,255,255,0.15); }
.tl-intro-rules {
  display: flex; flex-direction: column; gap: 12px;
  max-width: 400px; margin: 0 auto 32px; text-align: left;
}
.tl-rule {
  display: flex; align-items: center; gap: 12px;
  font-size: 14px; color: rgba(255,255,255,0.7);
  padding: 12px 16px; background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06); border-radius: 10px;
}
.tl-rule i { color: #BF8F00; font-size: 18px; flex-shrink: 0; }
.tl-start-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 18px 40px; font-size: 18px; font-weight: 700;
  background: linear-gradient(135deg, #BF8F00, #d4a720);
  color: #0D1B2A; border: none; border-radius: 14px;
  cursor: pointer; transition: all 0.25s;
  box-shadow: 0 4px 24px rgba(191,143,0,0.35);
  font-family: 'Outfit', sans-serif;
}
.tl-start-btn:hover { transform: translateY(-3px); box-shadow: 0 8px 32px rgba(191,143,0,0.5); }
.tl-fine { font-size: 11px; color: #556; margin-top: 20px; line-height: 1.5; }

/* ===== STEP ===== */
.tl-step { text-align: center; padding: 20px 0; animation: tlFadeIn 0.5s ease; }
.tl-year-badge {
  display: inline-block; font-family: 'Cormorant Garamond', serif;
  font-size: 3rem; font-weight: 700; color: #BF8F00;
  margin-bottom: 8px; line-height: 1;
}
.tl-year-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem; font-weight: 600; color: #fff;
  margin-bottom: 20px;
}
.tl-sp500 { font-weight: 700; font-size: 1.4rem; }
.tl-sp500.up { color: #22c55e; }
.tl-sp500.down { color: #EF4444; }

/* Earned rate */
.tl-earned-rate {
  font-size: 20px; font-weight: 600; color: #fff; margin-bottom: 6px;
}
.tl-cap-badge {
  font-size: 12px; color: #BF8F00; font-weight: 700;
  background: rgba(191,143,0,0.1); padding: 2px 10px;
  border-radius: 12px;
}
.tl-earned-sub { font-size: 13px; color: #8899AA; margin-bottom: 24px; }

/* Shield (protected years) */
.tl-shield-wrap {
  display: flex; align-items: center; justify-content: center;
  gap: 14px; padding: 20px; margin: 0 auto 12px;
  max-width: 360px;
  background: rgba(34,197,94,0.06); border: 2px solid rgba(34,197,94,0.2);
  border-radius: 14px; animation: tlPulseShield 1s ease;
}
.tl-shield-icon { font-size: 36px; color: #22c55e; }
.tl-shield-text {
  font-size: 18px; font-weight: 800; color: #22c55e;
  letter-spacing: 2px;
}

/* Balance */
.tl-balance-wrap { margin: 20px 0; }
.tl-balance-label { font-size: 12px; color: #667; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 4px; }
.tl-balance {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3.5rem; font-weight: 700; color: #BF8F00;
  line-height: 1;
}
.tl-gain { font-size: 14px; color: #22c55e; font-weight: 600; margin-top: 4px; }

/* Progress bar */
.tl-bar-wrap { max-width: 400px; margin: 24px auto; }
.tl-bar-track { height: 16px; background: rgba(255,255,255,0.06); border-radius: 8px; overflow: hidden; }
.tl-bar-fill {
  height: 100%; background: linear-gradient(90deg, #BF8F00, #d4a720);
  border-radius: 6px; transition: width 0.8s cubic-bezier(0.4,0,0.2,1);
}
.tl-bar-labels { display: flex; justify-content: space-between; font-size: 11px; color: #667; margin-top: 4px; }

/* Nav */
.tl-nav {
  display: flex; align-items: center; justify-content: center;
  gap: 16px; margin: 24px 0 16px;
}
.tl-nav-btn {
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  color: #fff; font-size: 18px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.tl-nav-btn:hover:not(:disabled) { background: rgba(191,143,0,0.1); border-color: #BF8F00; color: #BF8F00; }
.tl-nav-btn:disabled { opacity: 0.2; cursor: not-allowed; }
.tl-nav-btn.play {
  width: 52px; height: 52px; font-size: 22px;
  background: linear-gradient(135deg, #BF8F00, #d4a720);
  color: #0D1B2A; border: none;
}
.tl-nav-btn.play:hover { transform: scale(1.08); }

/* Year dots */
.tl-year-dots {
  display: flex; justify-content: center; gap: 6px;
  flex-wrap: wrap; margin-top: 8px;
}
.tl-dot {
  font-size: 10px; font-weight: 600; color: rgba(255,255,255,0.2);
  padding: 4px 8px; border-radius: 12px; cursor: pointer;
  transition: all 0.2s; border: 1px solid transparent;
}
.tl-dot:hover { color: rgba(255,255,255,0.5); }
.tl-dot.done { color: rgba(191,143,0,0.5); }
.tl-dot.active { color: #BF8F00; background: rgba(191,143,0,0.1); border-color: rgba(191,143,0,0.3); }
.tl-dot.crash.done { color: #EF4444; }
.tl-dot.crash.active { color: #EF4444; background: rgba(239,68,68,0.1); border-color: rgba(239,68,68,0.3); }

/* ===== FINALE ===== */
.tl-finale { text-align: center; padding: 20px 0; animation: tlFadeIn 0.6s ease; }
.tl-finale-badge {
  display: inline-block; font-size: 11px; font-weight: 700;
  letter-spacing: 3px; color: #22c55e; text-transform: uppercase;
  padding: 6px 18px; background: rgba(34,197,94,0.08);
  border: 1px solid rgba(34,197,94,0.2); border-radius: 20px;
  margin-bottom: 16px;
}
.tl-finale h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem; color: #fff; margin-bottom: 8px;
}
.tl-final-amount {
  font-family: 'Cormorant Garamond', serif;
  font-size: 6rem; font-weight: 700; color: #BF8F00;
  line-height: 1; margin-bottom: 8px;
}
.tl-final-gain { font-size: 24px; font-weight: 700; color: #22c55e; margin-bottom: 32px; }

.tl-final-stats {
  display: flex; justify-content: center; gap: 20px; margin-bottom: 32px;
}
.tl-final-stat {
  text-align: center; padding: 16px 20px;
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px; min-width: 100px;
}
.tl-final-stat.protected { border-color: rgba(34,197,94,0.2); }
.tl-stat-num { display: block; font-family: 'Cormorant Garamond', serif; font-size: 2rem; font-weight: 700; color: #BF8F00; }
.tl-final-stat.protected .tl-stat-num { color: #22c55e; }
.tl-stat-label { font-size: 11px; color: #8899AA; margin-top: 2px; }
.tl-stat-label small { color: #22c55e; font-weight: 600; }

/* Compare */
.tl-final-compare {
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px; padding: 24px; margin-bottom: 28px;
}
.tl-final-compare h3 { font-family: 'Cormorant Garamond', serif; font-size: 1.2rem; color: #8899AA; margin-bottom: 16px; }
.tl-compare-row { display: flex; align-items: center; justify-content: center; gap: 16px; }
.tl-compare-col { flex: 1; text-align: center; padding: 16px; border-radius: 10px; }
.tl-compare-col.cd { background: rgba(255,255,255,0.03); }
.tl-compare-col.fia { background: rgba(191,143,0,0.06); border: 1px solid rgba(191,143,0,0.2); }
.tl-compare-label { display: block; font-size: 11px; color: #667; margin-bottom: 4px; }
.tl-compare-val { display: block; font-family: 'Cormorant Garamond', serif; font-size: 1.8rem; font-weight: 700; color: #8899AA; }
.tl-compare-vs { font-family: 'Cormorant Garamond', serif; font-size: 1.2rem; color: rgba(255,255,255,0.15); font-weight: 700; }
.tl-compare-diff { font-size: 16px; color: #fff; margin-top: 16px; }

/* Options */
.tl-options {
  text-align: left; margin-bottom: 28px;
  background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px; padding: 24px;
}
.tl-options h3 { font-family: 'Cormorant Garamond', serif; font-size: 1.2rem; color: #fff; margin-bottom: 14px; }
.tl-option {
  font-size: 13px; color: rgba(255,255,255,0.6); line-height: 1.5;
  padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.04);
}
.tl-option:last-of-type { border-bottom: none; }
.tl-option-tag {
  display: inline-block; font-size: 10px; font-weight: 800;
  padding: 3px 10px; border-radius: 4px; margin-right: 8px;
  text-transform: uppercase; letter-spacing: 1px;
}
.tl-option-tag.green { background: rgba(34,197,94,0.15); color: #22c55e; }
.tl-option-tag.gold { background: rgba(191,143,0,0.15); color: #BF8F00; }
.tl-option-tag.blue { background: rgba(59,130,246,0.15); color: #3b82f6; }
.tl-option-tag.purple { background: rgba(139,92,246,0.15); color: #8b5cf6; }
.tl-no-surrender {
  margin-top: 14px; padding: 12px 16px;
  background: rgba(191,143,0,0.06); border: 1px solid rgba(191,143,0,0.15);
  border-radius: 8px; font-size: 13px; font-weight: 600; color: #BF8F00;
  text-align: center;
}

/* CTA */
.tl-cta { margin-bottom: 16px; }
.tl-cta p { font-size: 15px; color: #8899AA; margin-bottom: 14px; }
.tl-cta-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 36px; font-size: 17px; font-weight: 700;
  background: linear-gradient(135deg, #BF8F00, #d4a720);
  color: #0D1B2A; border: none; border-radius: 14px;
  cursor: pointer; transition: all 0.25s; text-decoration: none;
  box-shadow: 0 4px 20px rgba(191,143,0,0.35);
  font-family: 'Outfit', sans-serif;
}
.tl-cta-btn:hover { transform: translateY(-3px); box-shadow: 0 8px 32px rgba(191,143,0,0.5); color: #0D1B2A; }
.tl-cta-secondary {
  display: block; margin: 12px auto 0; padding: 12px 24px;
  background: none; border: 2px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.5); border-radius: 10px; font-size: 14px;
  font-weight: 600; cursor: pointer; transition: all 0.2s;
  font-family: 'Outfit', sans-serif;
}
.tl-cta-secondary:hover { border-color: #BF8F00; color: #BF8F00; }
.tl-replay {
  font-size: 13px; color: rgba(255,255,255,0.3); cursor: pointer;
  margin-top: 12px; transition: color 0.2s;
}
.tl-replay:hover { color: #BF8F00; }

/* ===== PPT-STYLE HEADER ===== */
.tl-header-bar {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 28px; gap: 20px; flex-wrap: wrap;
}
.tl-header-bar.compact { margin-bottom: 16px; }
.tl-header-left { flex-shrink: 0; }
.tl-rates-date { font-size: 13px; color: rgba(255,255,255,0.4); margin-bottom: 4px; }
.tl-title-big {
  font-family: 'Cormorant Garamond', serif; font-size: 5.5rem;
  font-weight: 700; color: #fff; line-height: 0.85;
  letter-spacing: 6px; margin-bottom: 8px;
}
.tl-title-big.small { font-size: 3.5rem; }
.tl-title-bar {
  display: inline-block; padding: 10px 28px;
  background: linear-gradient(135deg, #BF8F00, #d4a720);
  color: #0D1B2A; font-size: 15px; font-weight: 800;
  letter-spacing: 4px; text-transform: uppercase;
}
.tl-header-right { text-align: right; flex: 1; min-width: 200px; }
.tl-product-name {
  font-family: 'Cormorant Garamond', serif; font-size: 1.4rem;
  font-weight: 700; color: #fff; margin-bottom: 4px;
}
.tl-product-name-sm { font-size: 14px; font-weight: 600; color: rgba(255,255,255,0.7); }
.tl-sp500-source { font-size: 11px; color: rgba(255,255,255,0.35); line-height: 1.5; }

/* ===== INTRO SPLIT (photo + body) ===== */
.tl-intro-split { display: flex; gap: 28px; align-items: center; margin-bottom: 20px; }
.tl-intro-photo { flex-shrink: 0; }
.tl-henry-img {
  width: 280px; height: auto; border-radius: 0;
  filter: drop-shadow(0 8px 32px rgba(0,0,0,0.6));
}
.tl-henry-img.step { width: 240px; }
.tl-intro-body { flex: 1; text-align: left; }
.tl-intro-body h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem; font-weight: 700; color: #fff; margin-bottom: 10px;
}

/* ===== STEP LAYOUT (photo + detail) ===== */
.tl-step-layout { display: flex; gap: 24px; align-items: center; margin-bottom: 20px; }
.tl-step-photo { flex-shrink: 0; }
.tl-step-detail { flex: 1; text-align: left; }

/* Point info card */
.tl-point-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.4rem; font-weight: 700; color: #BF8F00;
  margin-bottom: 10px;
}
.tl-point-market { font-size: 22px; font-weight: 700; color: #fff; margin-bottom: 6px; }
.tl-point-market.up .tl-green { color: #22c55e; }
.tl-point-market.down .tl-red { color: #EF4444; }
.tl-point-earned { font-size: 20px; color: rgba(255,255,255,0.8); margin-bottom: 6px; }
.tl-point-earned.protected { color: #22c55e; }
.tl-point-earned strong { color: #fff; }
.tl-point-action { font-size: 20px; color: rgba(255,255,255,0.7); margin-bottom: 6px; }
.tl-point-balance {
  font-size: 26px; font-weight: 700; color: #fff; margin-top: 12px;
}

.tl-shield-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; margin-top: 12px;
  background: rgba(34,197,94,0.08); border: 2px solid rgba(34,197,94,0.25);
  border-radius: 10px; font-size: 13px; font-weight: 800;
  color: #22c55e; letter-spacing: 1px;
}

/* ===== HORIZONTAL TIMELINE (dots + lines) ===== */
.tl-horizontal-timeline {
  display: flex; align-items: center; justify-content: center;
  gap: 0; margin: 20px 0; padding: 0 8px;
  overflow-x: auto;
}
.tl-hline {
  flex: 1; height: 2px; min-width: 8px; max-width: 30px;
  background: rgba(255,255,255,0.12);
}
.tl-hdot {
  display: flex; flex-direction: column; align-items: center;
  gap: 2px; cursor: pointer; transition: all 0.2s;
  flex-shrink: 0;
}
.tl-hdot-plus {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.06); border: 2px solid rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 700; color: rgba(255,255,255,0.25);
  transition: all 0.25s;
}
.tl-hdot-year { font-size: 11px; color: rgba(255,255,255,0.2); font-weight: 600; }
.tl-hdot:hover .tl-hdot-plus { border-color: #BF8F00; color: #BF8F00; }
.tl-hdot.past .tl-hdot-plus { background: rgba(191,143,0,0.15); border-color: rgba(191,143,0,0.4); color: #BF8F00; }
.tl-hdot.past .tl-hdot-year { color: rgba(191,143,0,0.5); }
.tl-hdot.current .tl-hdot-plus {
  background: #BF8F00; border-color: #BF8F00; color: #0D1B2A;
  box-shadow: 0 0 16px rgba(191,143,0,0.4);
  transform: scale(1.15);
}
.tl-hdot.current .tl-hdot-year { color: #BF8F00; font-weight: 700; }
.tl-hdot.crash.past .tl-hdot-plus { background: rgba(239,68,68,0.15); border-color: rgba(239,68,68,0.4); color: #EF4444; }
.tl-hdot.crash.current .tl-hdot-plus {
  background: #EF4444; border-color: #EF4444; color: #fff;
  box-shadow: 0 0 16px rgba(239,68,68,0.4);
}
.tl-hdot.crash.current .tl-hdot-year { color: #EF4444; }

/* Utility */
.tl-gold { color: #BF8F00 !important; }
.tl-green { color: #22c55e !important; }
.tl-red { color: #EF4444 !important; }

@keyframes tlFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
#tl-content {
  transition: opacity 0.15s ease;
}
#tl-content.fading {
  opacity: 0;
}
@keyframes tlPulseShield {
  0% { transform: scale(0.9); opacity: 0; }
  50% { transform: scale(1.03); }
  100% { transform: scale(1); opacity: 1; }
}

/* ===== HERO BUTTON (on main page) ===== */
.timeline-hero-btn {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  width: 100%; padding: 20px 24px;
  background: linear-gradient(135deg, #1B2D45, #0D1B2A);
  border: 2px solid rgba(191,143,0,0.3);
  border-radius: 14px; cursor: pointer;
  transition: all 0.3s; margin-bottom: 16px;
  text-align: left;
}
.timeline-hero-btn:hover {
  border-color: #BF8F00; transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(191,143,0,0.2);
}
.timeline-hero-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: linear-gradient(135deg, #BF8F00, #d4a720);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: #0D1B2A; flex-shrink: 0;
}
.timeline-hero-text { flex: 1; }
.timeline-hero-text strong { display: block; font-size: 16px; color: #fff; margin-bottom: 2px; }
.timeline-hero-text small { font-size: 12px; color: #8899AA; line-height: 1.4; }
.timeline-hero-arrow { color: #BF8F00; font-size: 1.2rem; opacity: 0.5; transition: all 0.3s; }
.timeline-hero-btn:hover .timeline-hero-arrow { opacity: 1; transform: translateX(4px); }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .timeline-inner { padding: 20px 16px; }
  .tl-intro h2, .tl-intro-body h2 { font-size: 1.5rem; }
  .tl-title-big { font-size: 3rem; }
  .tl-title-big.small { font-size: 2rem; }
  .tl-intro-split { flex-direction: column; text-align: center; }
  .tl-intro-body { text-align: center; }
  .tl-henry-img { width: 180px; }
  .tl-henry-img.step { width: 120px; }
  .tl-step-layout { flex-direction: column; text-align: center; }
  .tl-step-detail { text-align: center; }
  .tl-header-bar { flex-direction: column; }
  .tl-header-right { text-align: left; }
  .tl-point-title { font-size: 1.8rem; }
  .tl-point-market { font-size: 18px; }
  .tl-point-earned { font-size: 16px; }
  .tl-point-balance { font-size: 22px; }
  .tl-balance { font-size: 2.8rem; }
  .tl-final-amount { font-size: 3.5rem; }
  .tl-final-stats { flex-direction: column; gap: 10px; }
  .tl-compare-row { flex-direction: column; gap: 10px; }
  .tl-compare-vs { display: none; }
  .tl-hdot-plus { width: 30px; height: 30px; font-size: 14px; }
  .tl-hdot-year { font-size: 9px; }
  .tl-hline { min-width: 4px; max-width: 16px; }
}
