/* ==========================================================================
   TallyPrime Showcase — Bootstrap/jQuery build
   Design tokens ported from the original Tailwind theme (src/index.css)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --background: 150 10% 97%;
  --foreground: 200 25% 10%;

  --card: 0 0% 100%;
  --card-foreground: 200 25% 10%;

  --primary: 200 100% 33%;
  --primary-foreground: 0 0% 100%;

  --secondary: 170 20% 94%;
  --secondary-foreground: 200 25% 10%;

  --muted: 170 12% 93%;
  --muted-foreground: 200 10% 44%;

  --accent: 37 90% 55%;
  --accent-foreground: 0 0% 100%;

  --destructive: 0 72% 51%;
  --destructive-foreground: 0 0% 100%;

  --border: 170 12% 89%;
  --radius: 0.75rem;

  --teal: 200 100% 33%;
  --teal-dark: 200 100% 25%;
  --teal-light: 200 70% 93%;
  --teal-glow: 200 100% 50%;
  --emerald: 160 55% 40%;
  --amber: 37 90% 55%;
  --amber-light: 37 80% 93%;
  --coral: 12 76% 58%;
  --coral-light: 12 60% 94%;
  --purple: 260 55% 55%;
  --purple-light: 260 50% 94%;
  --navy: 200 40% 14%;
  --navy-mid: 200 25% 22%;
  --color-light-blue: #006ea6;
  --tp-orange: #fcaf1b;
	
  --sidebar-background: 200 40% 14%;
  --sidebar-foreground: 200 15% 75%;
  --sidebar-primary: 200 100% 45%;
  --sidebar-primary-foreground: 0 0% 100%;
  --sidebar-accent: 200 30% 20%;
  --sidebar-accent-foreground: 0 0% 95%;
  --sidebar-border: 200 25% 20%;

  --sidebar-width: 264px;
  --sidebar-width-collapsed: 72px;

  --tp-primary: #0077b6;
  --tp-primary-dark: #005f8f;
  --tp-teal-glow: #d0f3ff;
  --tp-navy: #1a2e3b;
  --tp-navy-mid: #2a3f4f;
  --tp-amber: #f4a261;
  --tp-coral: #e76f51;
  --tp-purple: #7b68ee;
  --tp-emerald: #2a9d8f;
  --tp-bg: #f5f8f7;
  --tp-muted: #6b7c85;
  --tp-border: #dde8e4;
  --tp-orange: #fcaf1b;
  --tp-sidebar-width: 260px;
  --tp-sidebar-collapsed: 72px;
  --color-light-blue: #006ea6;
}

}

* { box-sizing: border-box; }

html, body {
  height: 100%;
}

body {
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: 'Inter', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.025em;
}

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

.font-mono { font-family: 'JetBrains Mono', monospace; }

.text-primary { color: hsl(var(--primary)) !important; }
.text-muted-fg { color: hsl(var(--muted-foreground)) !important; }
.text-fg { color: hsl(var(--foreground)) !important; }
.bg-card { background: hsl(var(--card)); }
.bg-primary-token { background: hsl(var(--primary)); }
.border-token { border-color: hsl(var(--border)) !important; }

/* ==========================================================================
   App shell: sidebar + main content
   ========================================================================== */

.app-shell {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

.sidebar {
  width: var(--sidebar-width);
  flex-shrink: 0;
  background:var(--color-light-blue);
  color: hsl(var(--sidebar-foreground));
  border-right: 1px solid hsl(var(--sidebar-border));
  transition: width 0.2s ease;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.sidebar.collapsed {
  width: var(--sidebar-width-collapsed);
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.5rem 1.25rem 1rem;
}

.sidebar-brand img {
  height: 36px;
  width: auto;
  flex-shrink: 0;
  filter: brightness(0) invert(1);
}

.sidebar-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  white-space: nowrap;
}

.sidebar-brand-text .name {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.sidebar-brand-text .sub {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: hsl(0 0% 100% / 0.6);
}

.sidebar.collapsed .sidebar-brand-text,
.sidebar.collapsed .nav-label,
.sidebar.collapsed .nav-chevron {
  display: none;
}

.sidebar-nav {
  list-style: none;
  margin: 0;
  padding: 0.5rem 0.75rem;
}

.sidebar-nav .nav-item + .nav-item { margin-top: 2px; }

.sidebar-nav .nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-radius: 0.5rem;
  padding: 0.625rem 1rem;
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.sidebar-nav .nav-link:hover {
  background: hsl(var(--sidebar-accent));
  color: hsl(var(--sidebar-accent-foreground));
}

.sidebar-nav .nav-link.active {
  background: hsl(var(--sidebar-accent));
  color: hsl(var(--sidebar-primary));
  font-weight: 600;
}

.nav-icon-wrap { position: relative; display: inline-flex; flex-shrink: 0; }
.nav-icon-wrap i { font-size: 1rem; }

.nav-check-badge {
  display:inline-block;
  position: absolute;
  top: -6px;
  right: -6px;
  font-size: 11px !important;
  color: var(--tp-teal-glow);
  border-radius: 50%;
}

.nav-label { flex: 1; }
.nav-chevron { opacity: 0.3; font-size: 0.7rem; }

.topbar {
  height: 48px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid hsl(var(--border));
  background: hsl(var(--card) / 0.8);
  backdrop-filter: blur(6px);
  position: sticky;
  top: 0;
  z-index: 30;
  padding: 0 0.75rem;
}

.sidebar-toggle-btn {
  border: none;
  background: transparent;
  color: hsl(var(--foreground));
  border-radius: 0.375rem;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s ease;
}

.sidebar-toggle-btn:hover { background: hsl(var(--muted)); }

.content-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.page-container {
  padding: 1.25rem;
  max-width: 72rem;
  margin: 0 auto;
  width: 100%;
}

@media (min-width: 768px) {
  .page-container { padding: 2rem; }
}

.page-container.narrow { max-width: 64rem; }

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn-tally {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  border: none;
  box-shadow: 0 10px 25px -10px hsl(var(--primary) / 0.5);
  transition: transform 0.15s ease;
}
.btn-tally:hover { transform: scale(1.05); color: hsl(var(--primary-foreground)); }

.btn-tally-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 0.75rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  background: transparent;
  color: hsl(var(--primary));
  border: 2px solid hsl(var(--primary));
  transition: transform 0.15s ease, background-color 0.15s ease;
}
.btn-tally-outline:hover { background: hsl(var(--primary) / 0.1); transform: scale(1.05); color: hsl(var(--primary)); }

.btn-tally-sm {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  border: none;
  transition: background-color 0.15s ease;
}
.btn-tally-sm:hover { background: hsl(var(--primary) / 0.9); color: hsl(var(--primary-foreground)); }

.btn-tally-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  font-weight: 500;
  background: hsl(var(--secondary));
  color: hsl(var(--muted-foreground));
  border: none;
  transition: background-color 0.15s ease;
}
.btn-tally-ghost:hover { background: hsl(var(--secondary) / 0.8); }

/* ==========================================================================
   Hero banner
   ========================================================================== */

.hero-banner {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  background: var(--color-light-blue);
  color: #fff;
  padding: 2rem;
}

@media (min-width: 768px) { .hero-banner { padding: 3rem; } }

.hero-banner .blob-1 {
  position: absolute; top: 0; right: 0; width: 18rem; height: 18rem; border-radius: 50%;
  background: hsl(0 0% 100% / 0.05); transform: translate(33%, -33%);
}
.hero-banner .blob-2 {
  position: absolute; bottom: 0; left: 33%; width: 12rem; height: 12rem; border-radius: 50%;
  background: hsl(0 0% 100% / 0.03); transform: translateY(50%);
}
.hero-banner .dot {
  position: absolute; border-radius: 50%; animation: pulse-glow 2s ease-in-out infinite;
}
.hero-banner h1 { font-size: 1.875rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
@media (min-width: 768px) { .hero-banner h1 { font-size: 2.25rem; } }
@media (min-width: 992px) { .hero-banner h1 { font-size: 2.75rem; } }
.hero-banner .accent { color: hsl(var(--teal-glow)); }
.hero-banner p.lead-sub { margin-top: 1rem; color:#ffffff; max-width: 28rem; font-size: 1rem; }

.glow-teal { box-shadow: 0 0 20px hsl(200 100% 50% / 0.3), 0 0 60px hsl(200 100% 50% / 0.1); }

@keyframes pulse-glow { 0%, 100% { opacity: 0.6; } 50% { opacity: 1; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* ==========================================================================
   Cards / generic surfaces
   ========================================================================== */

.card-tally {
  border-radius: 1rem;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--card));
}

/* ==========================================================================
   Timeline (Overview page)
   ========================================================================== */

.timeline-wrap { position: relative; }
.timeline-rail {
  position: absolute; left: 34px; top: 0.5rem; bottom: 0.5rem; width: 2px; background: hsl(var(--border));
}

.timeline-step {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  border-radius: 0.75rem;
  padding: 1rem;
  transition: all 0.15s ease;
}

.timeline-step.is-active { background: hsl(var(--card)); border: 2px solid hsl(var(--primary) / 0.3); box-shadow: 0 4px 12px -4px rgb(0 0 0 / 0.1); }
.timeline-step.is-completed { background: hsl(var(--card) / 0.5); }
.timeline-step.is-locked { opacity: 0.5; }

.timeline-step .step-icon {
  position: relative;
  z-index: 99;
  margin-top: 2px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid hsl(var(--border));
  background: hsl(var(--muted)) !important;
  color: hsl(var(--muted-foreground));
}

.timeline-step.is-active .step-icon {
  border-color: hsl(var(--primary));
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  box-shadow: 0 0 20px hsl(200 100% 50% / 0.3);
}

.timeline-step.is-completed .step-icon {
  border-color: hsl(var(--primary) / 0.4);
  background: hsl(var(--primary) / 0.1);
  color: hsl(var(--primary));
}

.timeline-step .step-time {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.step-badge-progress {
  margin-left: 0.5rem;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: hsl(var(--primary) / 0.1);
  padding: 0.1rem 0.5rem;
  font-size: 10px;
  font-weight: 700;
  color: hsl(var(--primary));
}

.timeline-step h3 { font-size: 0.875rem; font-weight: 700; margin: 2px 0 0; color: hsl(var(--foreground)); }
.timeline-step.is-locked h3 { color: hsl(var(--muted-foreground)); }
.timeline-step p { font-size: 0.75rem; color: hsl(var(--muted-foreground)); margin: 2px 0 0; }

.timeline-step .step-action { flex-shrink: 0; align-self: center; }

.step-action.continue-btn {
  border-radius: 0.5rem;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  transition: transform 0.15s ease;
}
.step-action.continue-btn:hover { transform: scale(1.05); color: hsl(var(--primary-foreground)); }
.step-action.continue-btn.blink {
  animation: bounce 1s infinite;
  box-shadow: 0 0 0 2px hsl(var(--primary));
}
@keyframes bounce {
  0%, 100% { transform: translateY(-6%); animation-timing-function: cubic-bezier(0.8,0,1,1); }
  50% { transform: translateY(0); animation-timing-function: cubic-bezier(0,0,0.2,1); }
}

.step-action.review-btn {
  border-radius: 0.5rem;
  background: hsl(var(--secondary));
  color: hsl(var(--muted-foreground));
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  font-weight: 500;
}
.step-action.review-btn:hover { background: hsl(var(--secondary) / 0.8); color: hsl(var(--muted-foreground)); }

/* What's next section cards */
.next-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  border-radius: 0.75rem;
  border: 1px solid;
  padding: 1.25rem;
  transition: all 0.15s ease;
}
.next-card:hover { box-shadow: 0 4px 12px -4px rgb(0 0 0 / 0.1); }
/*
.next-card.phase-2 { background: hsl(var(--amber) / 0.08); border-color: hsl(var(--amber) / 0.3); }
.next-card.phase-2:hover { border-color: hsl(var(--amber) / 0.5); }
.next-card.phase-3 { background: hsl(var(--purple) / 0.08); border-color: hsl(var(--purple) / 0.3); }
.next-card.phase-3:hover { border-color: hsl(var(--purple) / 0.5); }
.next-card.phase-none { background: hsl(var(--teal) / 0.06); border-color: hsl(var(--teal) / 0.25); }
.next-card.phase-none:hover { border-color: hsl(var(--teal) / 0.4); }
*/
.next-card .icon-wrap{
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 48px; height: 48px; border-radius: 1rem; border: 1px solid;
}
.next-card.phase-2 .icon-wrap { background: hsl(var(--amber) / 0.15); color: hsl(var(--amber)); border-color: hsl(var(--amber) / 0.2); }
.next-card.phase-3 .icon-wrap { background: hsl(var(--purple) / 0.15); color: hsl(var(--purple)); border-color: hsl(var(--purple) / 0.2); }
.next-card.phase-none .icon-wrap { background: hsl(var(--teal) / 0.15); color: hsl(var(--teal)); border-color: hsl(var(--teal) / 0.2); }

.next-card h3 { font-size: 0.875rem; font-weight: 700; margin: 0; }
.next-card.phase-2 h3 { color: #000000; }
.next-card.phase-3 h3 { color: #000000; }
.next-card.phase-none h3 { color: #000000; }
.next-card p { font-size: 0.75rem; color: hsl(var(--muted-foreground)); margin: 2px 0 0; line-height: 1.5; }
.next-card .arrow { flex-shrink: 0; align-self: center; opacity: 0.4; }

/* ==========================================================================
   Progress ring + achievements
   ========================================================================== */

.progress-ring-wrap { position: relative; display: inline-flex; align-items: center; justify-content: center; }
.progress-ring-wrap svg { transform: rotate(-90deg); }
.progress-ring-wrap circle.ring-progress { filter: drop-shadow(0 0 8px hsl(200 100% 50% / 0.4)); transition: stroke-dashoffset 1s ease; }
.progress-ring-label { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.progress-ring-label .pct { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; color: hsl(var(--foreground)); }
.progress-ring-label .sub { font-size: 10px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; color: hsl(var(--muted-foreground)); margin-top: 2px; }

.achievement-badge { display: flex; flex-direction: column; align-items: center; gap: 0.375rem; }
.achievement-badge .badge-icon {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 0.75rem; border: 2px solid hsl(var(--border));
  background: hsl(var(--muted) / 0.5); opacity: 0.4;
}
.achievement-badge.unlocked .badge-icon { border-color: hsl(var(--primary) / 0.4); background: hsl(var(--primary) / 0.1); opacity: 1; box-shadow: 0 2px 8px -2px rgb(0 0 0 / 0.1); }
.achievement-badge .badge-icon i { font-size: 1.1rem; color: hsl(var(--muted-foreground)); }
.achievement-badge.unlocked .badge-icon i { color: hsl(var(--primary)); }
.achievement-badge .badge-dot { position: absolute; top: -3px; right: -3px; width: 12px; height: 12px; border-radius: 50%; background: hsl(var(--primary)); border: 2px solid hsl(var(--card)); }
.achievement-badge .badge-label { font-size: 10px; font-weight: 500; text-align: center; line-height: 1.2; color: hsl(var(--muted-foreground)); }
.achievement-badge.unlocked .badge-label { color: hsl(var(--foreground)); }

/* ==========================================================================
   First 60 Minutes page
   ========================================================================== */

.quick-jump {
  position: sticky;
  top: 48px;
  z-index: 20;
  margin: 0 -1.25rem 2rem;
  padding: 0.75rem 1.25rem;
  background: hsl(var(--background) / 0.9);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid hsl(var(--border) / 0.6);
}
@media (min-width: 768px) { .quick-jump { margin: 0 -2rem 2rem; padding: 0.75rem 2rem; } }

.quick-jump-inner { display: flex; gap: 0.5rem; overflow-x: auto; padding-bottom: 2px; }
.quick-jump-inner::-webkit-scrollbar { display: none; }

.quick-jump-btn {
  display: flex; align-items: center; gap: 0.625rem; padding: 0.625rem 1rem; border-radius: 0.75rem;
  border: 1px solid hsl(var(--border)); background: hsl(var(--card)); flex-shrink: 0; text-align: left;
  transition: all 0.15s ease; cursor: pointer;
}
.quick-jump-btn:hover { border-color: hsl(var(--primary) / 0.4); box-shadow: 0 2px 6px -2px rgb(0 0 0 / 0.1); }
.quick-jump-btn .qj-icon { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 32px; height: 32px; border-radius: 0.5rem; background: hsl(var(--primary) / 0.1); color: hsl(var(--primary)); }
.quick-jump-btn .qj-time { font-size: 11px; font-weight: 700; color: hsl(var(--primary)); text-transform: uppercase; letter-spacing: 0.05em; margin: 0; }
.quick-jump-btn .qj-title { font-size: 12px; font-weight: 600; white-space: nowrap; color: hsl(var(--foreground)); margin: 0; }

.milestone-section { border-radius: 1rem; border: 1px solid hsl(var(--border)); background: hsl(var(--card)); padding: 1.5rem; scroll-margin-top: 9rem; }
@media (min-width: 768px) { .milestone-section { padding: 2rem; } }
.milestone-section + .milestone-section { margin-top: 2rem; }

.milestone-head { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; }
.milestone-head .m-icon { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 0.75rem; background:#e5f0f6; color: hsl(var(--primary-foreground)); flex-shrink: 0; }
.milestone-head h2 { font-size: 1.125rem; font-weight: 700; margin: 0; color: hsl(var(--foreground)); }
.milestone-head .m-time { font-size: 0.75rem; color: hsl(var(--muted-foreground)); margin: 0; }
.milestone-intro { font-size: 0.875rem; color: hsl(var(--muted-foreground)); line-height: 1.6; max-width: 48rem; }

.milestone-point {
  display: flex; align-items: flex-start; gap: 1rem; padding: 1rem; border-radius: 0.75rem;
  border: 1px solid hsl(var(--border)); background: hsl(var(--background) / 0.6); transition: all 0.15s ease;
}
.milestone-point + .milestone-point { margin-top: 0.75rem; }
.milestone-point:hover { border-color: hsl(var(--primary) / 0.3); box-shadow: 0 2px 6px -2px rgb(0 0 0 / 0.1); }
.milestone-point .p-icon { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 40px; height: 40px; border-radius: 1rem; background: hsl(var(--primary) / 0.1); color: hsl(var(--primary)); }
.milestone-point p { font-size: 0.875rem; font-weight: 500; color: hsl(var(--foreground)); line-height: 1.6; margin: 0.5rem 0 0; }

.tips-box { margin-top: 1.25rem; border-radius: 0.75rem; background: hsl(var(--primary) / 0.05); border-left: 4px solid hsl(var(--primary)); padding: 0.75rem 1rem; }
.tips-box .tips-head { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.5rem; font-size: 0.875rem; font-weight: 700; color: hsl(var(--foreground)); }
.tips-box ul { list-style: none; margin: 0; padding: 0; }
.tips-box li { display: flex; align-items: flex-start; gap: 0.5rem; font-size: 0.875rem; color: hsl(var(--muted-foreground)); line-height: 1.6; }
.tips-box li + li { margin-top: 0.375rem; }
.tips-box li::before { content: ""; display: block; margin-top: 7px; width: 6px; height: 6px; border-radius: 50%; background: hsl(var(--primary) / 0.6); flex-shrink: 0; }
.tips-box a { font-weight: 600; color: hsl(var(--primary)); text-decoration: underline; text-underline-offset: 2px; }

/* ==========================================================================
   Next Hours page — timeline of hours
   ========================================================================== */

.hours-timeline { position: relative; margin-top: 2.5rem; }
.hours-rail {
  position: absolute; left: 1.5rem; top: 0; bottom: 0; width: 1px;
  background: linear-gradient(to bottom, hsl(var(--primary) / 0.4), hsl(var(--amber) / 0.3), hsl(var(--coral) / 0.3), hsl(var(--purple) / 0.4));
}
@media (min-width: 768px) { .hours-rail { left: 2rem; } }

.hour-item { position: relative; }
.hour-item + .hour-item { margin-top: 1.5rem; }
@media (min-width: 768px) { .hour-item { padding-left: 5rem; } }

.hour-node {
  display: none; position: absolute; left: 1rem; top: 1.5rem; z-index: 1;
  width: 35px; height: 35px; border-radius: 50%; align-items: center; justify-content: center;
  box-shadow: 0 4px 10px -2px rgb(0 0 0 / 0.25); border: 4px solid hsl(var(--background)); color: #fff;
}
@media (min-width: 768px) { .hour-node { display: flex; } }

.hour-card { position: relative; overflow: hidden; border-radius: 1rem; border: 1px solid hsl(var(--border)); background: hsl(var(--card)); transition: all 0.2s ease; }
.hour-card:hover { box-shadow: 0 10px 25px -8px rgb(0 0 0 / 0.15); transform: translateY(-2px); }
.hour-card .hour-gradient, .hour-gradient  { position: absolute; inset: 0; opacity: 0.4; }
.hour-card .hour-body { position: relative; padding: 1.5rem; }
.hour-card .hour-number { font-family: 'JetBrains Mono', monospace; font-size: 2.5rem; font-weight: 900; color: hsl(var(--foreground) / 0.06); line-height: 1; user-select: none; }
.hour-card .hour-label-mobile { display: flex; width: 36px; height: 36px; align-items: center; justify-content: center; border-radius: 0.5rem; color: #fff; flex-shrink: 0; }
@media (min-width: 768px) { .hour-card .hour-label-mobile { display: none; } }
.hour-card .hour-tag { font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 600; color: hsl(var(--muted-foreground)); text-transform: uppercase; letter-spacing: 0.06em; }
.hour-card h3 { font-size: 1.125rem; font-weight: 700; color: hsl(var(--foreground)); margin: 4px 0 0; }
.hour-card .hour-desc { margin-top: 0.5rem; font-size: 0.9375rem; color: hsl(var(--foreground) / 0.85); line-height: 1.6; font-weight: 500; }
.hour-highlights { margin-top: 1rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; }
.hour-highlights span { display: inline-flex; align-items: center; gap: 0.375rem; font-size: 0.75rem; font-weight: 500; color: hsl(var(--muted-foreground)); }
.hour-highlights i { color: hsl(var(--primary) / 0.7); }

.grad-primary1 { background: linear-gradient(135deg, hsl(200deg 100% 33% / 4%), hsl(var(--teal-light)), hsl(var(--primary) / 0.05)); }
.grad-amber1 { background: linear-gradient(135deg, hsl(37deg 90% 55% / 8%), hsl(var(--amber-light)), hsl(var(--amber) / 0.05)); }
.grad-coral1 { background: linear-gradient(135deg, hsl(12deg 76% 58% / 7%), hsl(var(--coral-light)), hsl(var(--coral) / 0.05)); }
.grad-purple1 { background: linear-gradient(135deg, hsl(260deg 55% 55% / 6%), hsl(var(--purple-light)), hsl(var(--purple) / 0.05)); }

.grad-primary { background: linear-gradient(135deg, hsl(var(--primary) / 0.2), hsl(var(--teal-light)), hsl(var(--primary) / 0.05)); }
.grad-amber { background: linear-gradient(135deg, hsl(var(--amber) / 0.2), hsl(var(--amber-light)), hsl(var(--amber) / 0.05)); }
.grad-coral { background: linear-gradient(135deg, hsl(var(--coral) / 0.2), hsl(var(--coral-light)), hsl(var(--coral) / 0.05)); }
.grad-purple { background: linear-gradient(135deg, hsl(var(--purple) / 0.2), hsl(var(--purple-light)), hsl(var(--purple) / 0.05)); }
.bg-primary-solid { background: hsl(var(--primary)); }
.bg-amber-solid { background: hsl(var(--amber)); }
.bg-coral-solid { background: hsl(var(--coral)); }
.bg-purple-solid { background: hsl(var(--purple)); }
.border-primary-soft { border-color: hsl(var(--primary) / 0.3) !important; }
.border-amber-soft { border-color: hsl(var(--amber) / 0.3) !important; }
.border-coral-soft { border-color: hsl(var(--coral) / 0.3) !important; }
.border-purple-soft { border-color: hsl(var(--purple) / 0.3) !important; }

.cta-banner {
  margin-top: 2.5rem; border-radius: 1rem; padding: 1.5rem;
  background: linear-gradient(135deg, hsl(200 40% 14%), hsl(200 100% 25%), hsl(200 100% 33%));background: #006ea6;
  color: #fff; display: flex; align-items: center; gap: 1.25rem; position: relative; overflow: hidden;
  transition: all 0.2s ease;
}
@media (min-width: 768px) { .cta-banner { padding: 2rem; } }
.cta-banner:hover { box-shadow: 0 10px 25px -8px rgb(0 0 0 / 0.3); transform: scale(1.01); }
.cta-banner .blob { position: absolute; border-radius: 50%; background: hsl(var(--teal-glow) / 0.1); filter: blur(24px); }
.cta-banner .eyebrow { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.25rem; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: hsl(var(--teal-glow));color:#ffffff; }
.cta-banner h3 { font-size: 1.125rem; font-weight: 700; margin: 0; }
.cta-banner p { margin: 0.25rem 0 0; font-size: 0.875rem; color: hsl(0 0% 100% / 0.6); }
.cta-banner .cta-arrow { flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; background: hsl(var(--teal-glow) / 0.2); display: flex; align-items: center; justify-content: center; color: hsl(var(--teal-glow));color:#ffffff;}

.btn-secondary-custom {
    background: var(--tp-orange);
    border: none;
    color: #fff;
    font-weight: 700;
    border-radius: 9999px;
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    transition: transform 0.15s;
}

/* ==========================================================================
   Beyond the Basics page
   ========================================================================== */

.feature-card { position: relative; overflow: hidden; border-radius: 1rem; border: 1px solid hsl(var(--border)); background: hsl(var(--card)); padding: 1.5rem; transition: all 0.15s ease; }
@media (min-width: 768px) { .feature-card { padding: 2rem; } }
.feature-card:hover { box-shadow: 0 8px 20px -6px rgb(0 0 0 / 0.12); border-color: hsl(var(--primary) / 0.2); }
.feature-card + .feature-card { margin-top: 1.25rem; }
.feature-card .f-icon { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 56px; height: 56px; border-radius: 1rem; color: #fff; box-shadow: 0 8px 16px -4px rgb(0 0 0 / 0.2); font-size: 1.5rem; }
.feature-card .f-subtitle { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: hsl(var(--muted-foreground)); }
.feature-card h3 { font-size: 1.125rem; font-weight: 700; margin: 4px 0 0; color: hsl(var(--foreground)); }
.feature-card .f-desc { margin-top: 0.5rem; font-size: 0.875rem; color: hsl(var(--muted-foreground)); line-height: 1.6; max-width: 34rem; }
.feature-stats { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: 1rem; }
.feature-stats .stat { border-radius: 0.5rem; background: hsl(var(--secondary) / 0.6); padding: 0.5rem 0.75rem; }
.feature-stats .stat .stat-label { font-size: 10px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; color: hsl(var(--muted-foreground)); margin: 0; }
.feature-stats .stat .stat-value { font-size: 0.875rem; font-weight: 700; color: hsl(var(--foreground)); margin: 2px 0 0; }

/* ==========================================================================
   Resources page
   ========================================================================== */

.resource-group + .resource-group { margin-top: 2.5rem; }
.resource-group-head { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.resource-group-head .g-icon { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 0.75rem; }
.resource-group-head h2 { font-size: 1rem; font-weight: 700; margin: 0; color: hsl(var(--foreground)); }

.demo-card { border-radius: 0.75rem; border: 1px solid hsl(var(--border)); background: hsl(var(--card)); padding: 1.25rem; display: flex; flex-direction: column; height: 100%; transition: all 0.15s ease; }
.demo-card:hover { border-color: hsl(var(--primary) / 0.2); box-shadow: 0 4px 12px -4px rgb(0 0 0 / 0.1); }
.demo-card .dc-head { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.75rem; }
.demo-card .dc-icon { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 0.5rem; background: hsl(var(--secondary)); color: hsl(var(--primary)); }
.demo-card .dc-tag { border-radius: 999px; background: hsl(var(--primary) / 0.1); padding: 0.15rem 0.5rem; font-size: 10px; font-weight: 700; color: hsl(var(--primary)); }
.demo-card h4 { font-size: 0.875rem; font-weight: 700; margin: 0; color: hsl(var(--foreground)); }
.demo-card p { margin-top: 0.25rem; font-size: 0.75rem; color: hsl(var(--muted-foreground)); line-height: 1.6; flex: 1; }

.video-card { border-radius: 0.75rem; border: 1px solid hsl(var(--border)); background: hsl(var(--card)); overflow: hidden; display: flex; flex-direction: column; height: 100%; cursor: pointer; transition: all 0.15s ease; }
.video-card:hover { border-color: hsl(var(--primary) / 0.2); box-shadow: 0 4px 12px -4px rgb(0 0 0 / 0.1); }
.video-card .thumb-wrap { position: relative; width: 100%; aspect-ratio: 16/9; background: hsl(var(--muted)); overflow: hidden; }
.video-card .thumb-wrap img { width: 100%; height: 100%; object-fit: cover; }
.video-card .thumb-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgb(0 0 0 / 0.3); transition: background-color 0.15s ease; }
.video-card:hover .thumb-overlay { background: rgb(0 0 0 / 0.4); }
.video-card .play-btn { width: 48px; height: 48px; border-radius: 50%; background: hsl(var(--primary)); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 16px -4px rgb(0 0 0 / 0.4); font-size: 1.25rem; }
.video-card .vc-body { padding: 1rem; display: flex; flex-direction: column; flex: 1; }
.video-card .vc-tag { align-self: flex-start; margin-bottom: 0.5rem; border-radius: 999px; background: hsl(var(--primary) / 0.1); padding: 0.15rem 0.5rem; font-size: 10px; font-weight: 700; color: hsl(var(--primary)); }
.video-card h4 { font-size: 0.875rem; font-weight: 700; margin: 0; color: hsl(var(--foreground)); }
.video-card p { margin-top: 0.25rem; font-size: 0.75rem; color: hsl(var(--muted-foreground)); line-height: 1.6; flex: 1; }

.explore-more { margin-top: 0.75rem; display: inline-flex; align-items: center; gap: 0.25rem; font-size: 0.75rem; font-weight: 600; color: hsl(var(--primary)); }
.explore-more:hover { text-decoration: underline; color: hsl(var(--primary)); }

/* ==========================================================================
   Utility helpers
   ========================================================================== */

.eyebrow-pill { display: inline-flex; align-items: center; gap: 0.5rem; border-radius: 999px; background: hsl(var(--coral) / 0.1); padding: 0.25rem 0.75rem; font-size: 0.75rem; font-weight: 600; color: hsl(var(--coral)); margin-bottom: 0.75rem; }

.fade-up { opacity: 0; transform: translateY(16px); animation: fadeUp 0.5s ease forwards; }
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

.not-found-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: hsl(var(--muted)); }
.not-found-wrap h1 { font-size: 2.5rem; font-weight: 700; margin-bottom: 1rem; }
.not-found-wrap p { font-size: 1.25rem; color: hsl(var(--muted-foreground)); margin-bottom: 1rem; }
.not-found-wrap a { color: hsl(var(--primary)); text-decoration: underline; }

@media (max-width: 767.98px) {
  .sidebar { position: fixed; left: 0; top: 0; z-index: 1040; transform: translateX(-100%); }
  .sidebar.mobile-open { transform: translateX(0); }
  .sidebar-backdrop { display: none; position: fixed; inset: 0; background: rgb(0 0 0 / 0.4); z-index: 1030; }
  .sidebar-backdrop.show { display: block; }
}
#sidebar-container {
    display: contents;
}
/* =========================================================
   SIDEBAR ACTIVE MENU
   ========================================================= */

.sidebar-nav .nav-link.active {
    background: #213d4a;
    color: #ffffff;
    border-radius: 10px;
}

.sidebar-nav .nav-link.active .nav-label {
    color: #ffffff;
    font-weight: 600;
}

.sidebar-nav .nav-link.active .nav-icon-wrap {
    color: #ffffff;
}

.sidebar-nav .nav-link.active .nav-chevron {
    color: #ffffff;
}

/* Keep normal menu items unchanged */
.sidebar-nav .nav-link:not(.active) {
    background: transparent;
}

/* Hover */
.sidebar-nav .nav-link:hover {
    background: #213d4a;
	color:#ffffff;
    /*color: #00a9f4;*/
    border-radius: 10px;
}

.sidebar-nav .nav-link:hover .nav-label,
.sidebar-nav .nav-link:hover .nav-icon-wrap,
.sidebar-nav .nav-link:hover .nav-chevron {
    color: #00a9f4;
}
@media (max-width: 767.98px) {

    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .sidebar.mobile-open {
        transform: translateX(0);
    }

}

.achieve-icon{width:20px;}

.timeline-icon-img{height: 20px; width: auto;}

.btn-primary-custom {
  background: #0077b6;
  border: none;
  color: #fff;
  font-weight: 700;
  border-radius: 9999px;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  box-shadow: 0 0 20px rgba(0, 150, 199, 0.3), 0 0 60px rgba(0, 150, 199, 0.1);
  transition: transform 0.15s;
}

.btn-primary-custom:hover {
  background: var(--tp-primary-dark);
  color: #fff;
  transform: scale(1.05);
}

.btn-secondary-custom {
  background: var(--tp-orange);
  border: none;
  color: #fff;
  font-weight: 700;
  border-radius: 9999px;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  transition: transform 0.15s;
}

.btn-secondary-custom:hover {
  background:#eaa116;
  color: #fff;
  transform: scale(1.05);
}

.btn-outline-primary-custom {
  border: 2px solid var(--tp-primary);
  color: var(--tp-primary);
  background: transparent;
  font-weight: 700;
  border-radius: 0.75rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  transition: all 0.15s;
}

.btn-outline-primary-custom:hover {
  background: rgba(0, 119, 182, 0.1);
  color: var(--tp-primary);
  transform: scale(1.05);
}

.next-card.phase-2 {
	background: rgb(255, 251, 229);
    border-color: rgba(255, 203, 86, 0.3);
}
.next-card.phase-2:hover { border-color: hsl(var(--amber) / 0.5); }
.next-card.phase-3 {
    background: rgb(220, 242, 251);
    border-color: rgba(70, 164, 236, 0.3);
}
.next-card.phase-3:hover { border-color: hsl(var(--purple) / 0.5); }

.next-card.phase-none {
    background: rgb(255, 234, 187);
    border-color: rgba(0, 119, 182, 0.25);
}
.next-card.phase-none:hover { border-color: hsl(var(--teal) / 0.4); }
.next-card .icon-wrap img {width: 25px; height: 25px;}
.badge-icon img{width: 25px; height: 25px;}

/* First 60 Minutes milestone tabs */

.quick-jump-btn {
  transition: background-color 0.2s ease,
              border-color 0.2s ease,
              opacity 0.2s ease;
}

/* Current milestone */
.quick-jump-btn.active {
	color: #fff;
    background: var(--tp-primary);
    border-color: var(--tp-primary);
}

/* Current milestone text */
.quick-jump-btn.active .qj-time,
.quick-jump-btn.active .qj-title {
  color: #fff;
}

/* Completed */
.quick-jump-btn.completed {
  background: #fff;
  border-color: var(--primary);
}

/* Locked / future */
.quick-jump-btn.locked,
.quick-jump-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
  background: #f5f7f8;
}

/* Don't let disabled buttons get browser styling */
.quick-jump-btn:disabled {
  color: inherit;
}

.milestone-next-btn {
    display: none !important;
}