:root {
  --bg: #000000;
  --bg-card: #0a0f1a;
  --bg-elevated: #0f1524;
  --accent: #7dd3fc;
  --accent-dark: #38bdf8;
  --accent-bright: #bae6fd;
  --accent-dim: rgba(125, 211, 252, 0.12);
  --accent-glow: rgba(56, 189, 248, 0.15);
  --white: #ffffff;
  --white-muted: rgba(255, 255, 255, 0.78);
  --white-dim: rgba(255, 255, 255, 0.45);
  --border: rgba(125, 211, 252, 0.08);
}

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

body {
  font-family: 'Onest', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  min-height: 100vh;
  color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.accent {
  color: var(--accent);
  font-style: normal;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.top-bar {
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  color: var(--accent);
  text-align: center;
  padding: 14px 20px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.live-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(125, 211, 252, 0.4); }
  50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(125, 211, 252, 0); }
}

.stage-nav {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}

.stage-nav .container {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.stage-link {
  display: inline-block;
  padding: 8px 20px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--white-dim);
  text-decoration: none;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.stage-link:hover {
  color: var(--white);
  background: var(--bg-elevated);
}

.stage-link.active {
  color: var(--accent);
  background: var(--accent-dim);
  border-color: rgba(125, 211, 252, 0.2);
}

.countdown-bar {
  background: linear-gradient(135deg, rgba(125, 211, 252, 0.15) 0%, rgba(56, 189, 248, 0.08) 100%);
  border-bottom: 1px solid rgba(125, 211, 252, 0.2);
  padding: 16px 20px;
}

.countdown-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.countdown-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.countdown-timer {
  display: flex;
  align-items: center;
  gap: 6px;
}

.time-block {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.time-block span:first-child {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--white);
  font-variant-numeric: tabular-nums;
  min-width: 2ch;
  text-align: center;
}

.time-unit {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--white-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.time-sep {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0 2px;
}

.replay-container {
  padding: 50px 0 80px;
}

.replay-header {
  text-align: center;
  margin-bottom: 45px;
}

.pill {
  display: inline-block;
  background: var(--accent);
  color: var(--bg);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 18px;
}

.replay-header h1 {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 16px;
  letter-spacing: -1.5px;
}

.subheadline {
  font-size: 1.15rem;
  color: var(--white-dim);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.6;
}

.video-section {
  margin-bottom: 30px;
}

.video-wrapper {
  background: #000;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 25px 80px var(--accent-glow), 0 0 0 1px var(--border);
}

.worksheet-section {
  margin-bottom: 45px;
}

.worksheet-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px 28px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.worksheet-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.worksheet-info {
  flex: 1;
}

.worksheet-info h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}

.worksheet-info p {
  font-size: 0.9rem;
  color: var(--white-dim);
}

.worksheet-btn {
  display: inline-block;
  background: var(--accent);
  color: var(--bg);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 10px;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.worksheet-btn:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.next-session {
  margin-bottom: 35px;
}

.next-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
}

.next-header {
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  padding: 32px 36px;
  text-align: center;
}

.next-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.next-header h2 {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 6px;
}

.next-header p {
  color: var(--white-muted);
  font-size: 1.05rem;
  font-weight: 600;
}

.next-body {
  padding: 32px 36px;
}

.next-body p {
  font-size: 1.05rem;
  color: var(--white-muted);
  line-height: 1.7;
  margin-bottom: 14px;
}

.next-body p strong {
  color: var(--white);
}

.action-text {
  color: var(--accent) !important;
  font-weight: 600;
}

.next-footer {
  border-top: 1px solid var(--border);
  padding: 28px 36px;
  text-align: center;
}

.not-registered {
  color: var(--white-dim);
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--accent);
  color: var(--bg);
  font-size: 1.1rem;
  font-weight: 700;
  padding: 16px 40px;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
  letter-spacing: 0.3px;
}

.btn-cta:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(125, 211, 252, 0.2);
}

.btn-arrow {
  font-size: 1.3rem;
  transition: transform 0.3s ease;
}

.btn-cta:hover .btn-arrow {
  transform: translateX(5px);
}

.reminder-section {
  margin-bottom: 20px;
}

.reminder-card {
  background: var(--accent-dim);
  border: 1px solid rgba(125, 211, 252, 0.2);
  border-radius: 14px;
  padding: 22px 28px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.reminder-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.reminder-card p {
  font-size: 0.95rem;
  color: var(--white-muted);
  line-height: 1.6;
}

.reminder-card strong {
  color: var(--white);
}

.reminder-sub {
  margin-top: 4px;
  font-size: 0.85rem !important;
  color: var(--white-dim) !important;
}

.footer {
  background: var(--bg);
  padding: 28px 0;
  border-top: 1px solid rgba(255,255,255,0.04);
}

.footer p {
  text-align: center;
  color: var(--white-dim);
  font-size: 0.78rem;
}

@media (max-width: 768px) {
  .stage-nav .container {
    gap: 4px;
  }

  .stage-link {
    padding: 8px 14px;
    font-size: 0.8rem;
  }

  .replay-header h1 {
    font-size: 2.2rem;
  }

  .subheadline {
    font-size: 1rem;
  }

  .worksheet-card {
    flex-direction: column;
    text-align: center;
    gap: 14px;
  }

  .next-header,
  .next-body,
  .next-footer {
    padding: 24px 20px;
  }

  .next-header h2 {
    font-size: 1.4rem;
  }

  .btn-cta {
    font-size: 1rem;
    padding: 14px 30px;
  }

  .reminder-card {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
}
