:root {
  --bg-primary: #080c14;
  --bg-secondary: #0f172a;
  --bg-card: rgba(15, 23, 42, 0.75);
  --bg-card-hover: rgba(30, 41, 59, 0.85);
  --bg-glass: rgba(15, 23, 42, 0.65);

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-active: rgba(16, 185, 129, 0.4);
  --border-cyan: rgba(6, 182, 212, 0.4);

  --accent-volt: #10b981;
  --accent-volt-glow: rgba(16, 185, 129, 0.35);
  --accent-cyan: #06b6d4;
  --accent-cyan-glow: rgba(6, 182, 212, 0.35);
  --accent-amber: #f59e0b;
  --accent-amber-glow: rgba(245, 158, 11, 0.35);
  --accent-rose: #f43f5e;
  --accent-purple: #8b5cf6;

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 30px -5px var(--accent-volt-glow);
  --transition-smooth: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}
html {
  scroll-behavior: smooth;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

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

body::before {
  content: "";
  position: fixed;
  top: -150px;
  left: 20%;
  width: 550px;
  height: 550px;
  background: radial-gradient(
    circle,
    rgba(16, 185, 129, 0.12) 0%,
    rgba(0, 0, 0, 0) 70%
  );
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: "";
  position: fixed;
  bottom: -150px;
  right: 15%;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(6, 182, 212, 0.08) 0%,
    rgba(0, 0, 0, 0) 70%
  );
  pointer-events: none;
  z-index: 0;
}

h1,
h2,
h3,
h4,
.font-heading {
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(8, 12, 20, 0.85);
  border-bottom: 1px solid var(--border-subtle);
  padding: 14px 0;
  transition: var(--transition-smooth);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-main);
  cursor: pointer;
}

.brand-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--accent-volt), var(--accent-cyan));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px var(--accent-volt-glow);
}

.brand-icon svg {
  width: 24px;
  height: 24px;
  fill: #080c14;
}

.brand-text h1 {
  font-size: 1.35rem;
  line-height: 1.1;
  background: linear-gradient(to right, #fff, #94a3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-text span {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-volt);
  font-weight: 700;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-btn:hover,
.nav-btn.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.nav-btn.active {
  color: var(--accent-volt);
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-timer-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--accent-volt), #059669);
  color: #042416;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 9px 18px;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px var(--accent-volt-glow);
  transition: var(--transition-smooth);
}

.header-timer-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--accent-volt-glow);
}

.hero-section {
  padding: 40px 0 24px 0;
}

.hero-card {
  position: relative;
  border-radius: var(--radius-lg);
  background: linear-gradient(
    145deg,
    rgba(15, 23, 42, 0.8),
    rgba(8, 12, 20, 0.95)
  );
  border: 1px solid var(--border-subtle);
  padding: 36px 32px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.hero-card::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 40%;
  height: 100%;
  background: radial-gradient(
    circle at top right,
    rgba(16, 185, 129, 0.15),
    transparent 70%
  );
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--accent-volt);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}

.hero-badge span.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-volt);
  border-radius: 50%;
  animation: pulseDot 1.8s infinite;
}

@keyframes pulseDot {
  0% {
    transform: scale(0.9);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.3);
    opacity: 1;
    box-shadow: 0 0 10px var(--accent-volt);
  }
  100% {
    transform: scale(0.9);
    opacity: 0.7;
  }
}

.hero-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.15;
  margin-bottom: 14px;
}

.hero-title .text-gradient {
  background: linear-gradient(135deg, #fff, var(--accent-volt));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 580px;
  margin-bottom: 24px;
}

.hero-stats {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.hero-stat-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 16px;
}

.hero-stat-num {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  font-family: "Outfit", sans-serif;
}

.hero-stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.user-streak-widget {
  background: rgba(8, 12, 20, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  backdrop-filter: blur(12px);
}

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

.streak-count {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.streak-count .num {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--accent-amber);
  font-family: "Outfit", sans-serif;
  line-height: 1;
}

.streak-count .unit {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.streak-progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.streak-progress-fill {
  height: 100%;
  width: 15%;
  background: linear-gradient(
    to right,
    var(--accent-amber),
    var(--accent-volt)
  );
  border-radius: var(--radius-full);
  transition: width 0.5s ease;
}

.streak-days-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  text-align: center;
}

.streak-day-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  color: var(--text-dim);
}

.streak-day-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.75rem;
  transition: var(--transition-smooth);
}

.streak-day-item.completed .streak-day-circle {
  background: var(--accent-volt);
  color: #042416;
  font-weight: 700;
  box-shadow: 0 0 10px var(--accent-volt-glow);
  border-color: var(--accent-volt);
}

.streak-day-item.today .streak-day-circle {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.section-title-wrap {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 22px;
  flex-wrap: wrap;
  gap: 12px;
}

.section-title {
  font-size: 1.65rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 4px;
}

.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.program-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
}

.program-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-active);
  box-shadow: 0 14px 30px -10px rgba(16, 185, 129, 0.2);
}

.program-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 14px;
}

.program-icon-badge {
  font-size: 1.8rem;
  background: rgba(255, 255, 255, 0.05);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.program-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-volt);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.program-card h3 {
  font-size: 1.25rem;
  margin-bottom: 6px;
  line-height: 1.25;
}

.program-tagline {
  color: var(--accent-cyan);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 12px;
}

.program-desc {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 18px;
  flex-grow: 1;
}

.program-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.program-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.btn-start-program {
  width: 100%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition-smooth);
}

.btn-start-program:hover {
  background: var(--accent-volt);
  color: #042416;
  border-color: var(--accent-volt);
  box-shadow: 0 4px 16px var(--accent-volt-glow);
}

.timer-section {
  padding: 30px 0 50px 0;
}

.timer-card {
  background: linear-gradient(
    180deg,
    rgba(15, 23, 42, 0.95),
    rgba(8, 12, 20, 0.98)
  );
  border: 1px solid var(--border-cyan);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.7);
  position: relative;
  overflow: hidden;
}

.timer-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--accent-volt),
    var(--accent-cyan),
    var(--accent-amber)
  );
}

.timer-nav-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.timer-tab-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.timer-tab-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.timer-tab-btn.active {
  background: var(--accent-cyan);
  color: #041d24;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 15px var(--accent-cyan-glow);
}

.timer-body-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  align-items: center;
  gap: 28px;
}

@media (max-width: 992px) {
  .timer-body-grid {
    grid-template-columns: 1fr;
  }
}

.timer-active-exercise-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.active-ex-thumb {
  width: 100%;
  height: 140px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: #000;
  border: 1px solid var(--border-subtle);
}

.active-ex-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}

.active-ex-meta {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.timer-center-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.progress-ring-container {
  position: relative;
  width: 280px;
  height: 280px;
}

.progress-ring {
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
}

.progress-ring__circle-bg {
  stroke: rgba(255, 255, 255, 0.06);
  stroke-width: 10;
  fill: transparent;
}

.progress-ring__circle {
  stroke: var(--accent-volt);
  stroke-width: 10;
  stroke-linecap: round;
  fill: transparent;
  stroke-dasharray: 816;
  stroke-dashoffset: 0;
  transition:
    stroke-dashoffset 0.35s linear,
    stroke 0.3s ease;
  filter: drop-shadow(0 0 8px var(--accent-volt-glow));
}

.timer-inner-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.timer-phase-chip {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.2);
  color: var(--accent-volt);
  margin-bottom: 6px;
  border: 1px solid var(--accent-volt);
  transition: var(--transition-smooth);
}

.timer-phase-chip.phase-rest {
  background: rgba(245, 158, 11, 0.2);
  color: var(--accent-amber);
  border-color: var(--accent-amber);
}

.timer-phase-chip.phase-prepare {
  background: rgba(6, 182, 212, 0.2);
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
}

.timer-big-digits {
  font-family: "Outfit", monospace;
  font-size: 4.6rem;
  font-weight: 900;
  color: #fff;
  line-height: 1;
  letter-spacing: -0.04em;
}

.timer-round-counter {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 6px;
  font-weight: 600;
}

.timer-controls-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.timer-buttons-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.btn-ctrl {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: #fff;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
  font-size: 1.1rem;
}

.btn-ctrl:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: scale(1.05);
}

.btn-ctrl-primary {
  width: 68px;
  height: 68px;
  background: linear-gradient(135deg, var(--accent-volt), #059669);
  color: #042416;
  border-color: var(--accent-volt);
  box-shadow: 0 0 20px var(--accent-volt-glow);
  font-size: 1.5rem;
}

.btn-ctrl-primary:hover {
  transform: scale(1.08);
  box-shadow: 0 0 30px var(--accent-volt-glow);
}

.timer-quick-configs {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(255, 255, 255, 0.03);
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.config-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.config-input {
  width: 68px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-subtle);
  color: #fff;
  border-radius: var(--radius-sm);
  padding: 4px 8px;
  text-align: center;
  font-weight: 700;
}

.config-input:focus {
  outline: none;
  border-color: var(--accent-volt);
}

.stopwatch-laps-box {
  max-height: 180px;
  overflow-y: auto;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px;
  background: rgba(0, 0, 0, 0.3);
}

.lap-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  padding: 6px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
}

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

.lap-row span.lap-time {
  font-family: monospace;
  color: var(--accent-cyan);
  font-weight: 700;
}

.catalog-section {
  padding: 40px 0 70px 0;
}

.catalog-toolbar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 28px;
}

.search-and-sort {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.search-input-wrap {
  position: relative;
  flex-grow: 1;
  min-width: 260px;
}

.search-input-wrap input {
  width: 100%;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border-subtle);
  color: #fff;
  padding: 12px 16px 12px 42px;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.search-input-wrap input:focus {
  outline: none;
  border-color: var(--accent-volt);
  box-shadow: 0 0 15px var(--accent-volt-glow);
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  pointer-events: none;
}

.category-filter-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
}

.category-filter-chips::-webkit-scrollbar {
  height: 4px;
}

.category-filter-chips::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.chip-btn {
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.chip-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.chip-btn.active {
  background: var(--accent-volt);
  color: #042416;
  font-weight: 700;
  border-color: var(--accent-volt);
  box-shadow: 0 0 15px var(--accent-volt-glow);
}

.workouts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 22px;
}

.workout-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
  backdrop-filter: blur(10px);
  position: relative;
}

.workout-card:hover {
  transform: translateY(-5px);
  border-color: rgba(16, 185, 129, 0.35);
  box-shadow: 0 16px 36px -12px rgba(0, 0, 0, 0.6);
}

.workout-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 9/16;
  max-height: 280px;
  overflow: hidden;
  background: #000;
  cursor: pointer;
}

.workout-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.workout-card:hover .workout-thumb-img {
  transform: scale(1.04);
}

.workout-overlay-play {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.workout-card:hover .workout-overlay-play {
  opacity: 1;
}

.play-circle-btn {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.95);
  color: #042416;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px var(--accent-volt-glow);
  transform: scale(0.9);
  transition: transform 0.2s ease;
}

.workout-card:hover .play-circle-btn {
  transform: scale(1);
}

.badge-video-len {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  backdrop-filter: blur(6px);
}

.badge-video-cat {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(8, 12, 20, 0.8);
  color: var(--accent-cyan);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(6, 182, 212, 0.3);
  backdrop-filter: blur(6px);
}

.workout-card-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: 12px;
}

.workout-card-title {
  font-size: 1.1rem;
  line-height: 1.3;
  color: #fff;
  cursor: pointer;
  transition: color 0.2s ease;
}

.workout-card-title:hover {
  color: var(--accent-volt);
}

.workout-reps-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-volt);
  background: rgba(16, 185, 129, 0.08);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  width: fit-content;
}

.workout-muscles-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  font-size: 0.72rem;
  color: var(--text-dim);
}

.muscle-tag {
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 7px;
  border-radius: 4px;
}

.workout-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
}

.btn-card-action {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: var(--transition-smooth);
}

.btn-card-action:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.btn-card-action.btn-train-timer {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.35);
  color: var(--accent-volt);
}

.btn-card-action.btn-train-timer:hover {
  background: var(--accent-volt);
  color: #042416;
}

.guide-section {
  padding: 40px 0 60px 0;
}

.coach-guide-box {
  background: linear-gradient(
    145deg,
    rgba(15, 23, 42, 0.9),
    rgba(8, 12, 20, 0.95)
  );
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  box-shadow: var(--shadow-card);
}

.timing-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 28px 0;
}

@media (max-width: 768px) {
  .timing-cards-grid {
    grid-template-columns: 1fr;
  }
}

.timing-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 22px;
  position: relative;
}

.timing-card.timing-morning {
  border-left: 4px solid var(--accent-amber);
}

.timing-card.timing-afternoon {
  border-left: 4px solid var(--accent-cyan);
}

.timing-card h4 {
  font-size: 1.15rem;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.timing-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 14px;
}

.timing-card ul li::before {
  content: "✓";
  color: var(--accent-volt);
  font-weight: 700;
  margin-right: 8px;
}

.timing-tip-box {
  background: rgba(0, 0, 0, 0.3);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.pillar-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px;
  transition: var(--transition-smooth);
}

.pillar-item:hover {
  border-color: var(--accent-volt);
  background: rgba(16, 185, 129, 0.04);
}

.pillar-item h5 {
  font-size: 1rem;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #fff;
}

.pillar-item p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(4, 7, 13, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.28s ease;
}

.modal-backdrop.open {
  display: flex;
  opacity: 1;
}

.modal-dialog {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  max-width: 960px;
  width: 100%;
  max-height: 92vh;
  overflow: hidden;
  display: grid;
  grid-template-columns: 380px 1fr;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8);
  position: relative;
  transform: scale(0.96);
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-backdrop.open .modal-dialog {
  transform: scale(1);
}

@media (max-width: 860px) {
  .modal-dialog {
    grid-template-columns: 1fr;
    max-height: 90vh;
    overflow-y: auto;
  }
}

.modal-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 20;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--border-subtle);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: var(--transition-smooth);
}

.modal-close-btn:hover {
  background: var(--accent-rose);
  transform: rotate(90deg);
}

.modal-video-col {
  background: #000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.modal-video-element {
  width: 100%;
  height: 100%;
  max-height: 580px;
  object-fit: contain;
  background: #000;
}

.video-speed-controls {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  background: rgba(0, 0, 0, 0.7);
  padding: 4px 8px;
  border-radius: var(--radius-full);
  backdrop-filter: blur(6px);
}

.btn-speed {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  cursor: pointer;
}

.btn-speed.active {
  background: var(--accent-volt);
  color: #042416;
  font-weight: 700;
}

.modal-info-col {
  padding: 32px 28px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.modal-title {
  font-size: 1.45rem;
  line-height: 1.25;
}

.modal-coach-quote {
  background: rgba(16, 185, 129, 0.08);
  border-left: 3px solid var(--accent-volt);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 12px 16px;
  font-style: italic;
  color: #e2e8f0;
  font-size: 0.9rem;
}

.modal-metrics-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  background: rgba(255, 255, 255, 0.03);
  padding: 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  text-align: center;
}

.metric-cell .label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.metric-cell .value {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin-top: 2px;
}

.modal-section-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.technique-steps-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.technique-steps-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.technique-steps-list li span.step-num {
  background: rgba(6, 182, 212, 0.2);
  color: var(--accent-cyan);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

.errors-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.84rem;
  color: #fca5a5;
}

.errors-list li::before {
  content: "⚠️";
  margin-right: 8px;
}

.modal-bottom-actions {
  display: flex;
  gap: 12px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
}

.btn-modal-timer {
  flex-grow: 1;
  background: linear-gradient(135deg, var(--accent-volt), #059669);
  color: #042416;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 16px var(--accent-volt-glow);
  transition: var(--transition-smooth);
}

.btn-modal-timer:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--accent-volt-glow);
}

.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: rgba(8, 12, 20, 0.95);
  padding: 40px 0 30px 0;
  color: var(--text-dim);
  font-size: 0.85rem;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-links {
  display: flex;
  gap: 16px;
  list-style: none;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--accent-volt);
}

.timer-video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 9/16;
  max-height: 260px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #000;
  border: 1px solid var(--border-cyan);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.timer-live-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.live-video-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.75);
  color: var(--accent-volt);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 6px;
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-active);
}

.btn-fullscreen-coach {
  width: 100%;
  margin-top: 10px;
  background: rgba(8, 12, 20, 0.85);
  border: 1px solid var(--accent-cyan);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: var(--transition-smooth);
}

.btn-fullscreen-coach:hover {
  background: var(--accent-cyan);
  color: #041d24;
  box-shadow: 0 0 15px var(--accent-cyan-glow);
  transform: translateY(-1px);
}

.active-ex-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
}

.active-ex-nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.btn-step-workout {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-step-workout:hover {
  background: var(--accent-volt);
  color: #042416;
}

.active-ex-counter-badge {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--accent-cyan);
  font-family: "Outfit", sans-serif;
}

.live-nav-count-badge {
  background: rgba(6, 182, 212, 0.2);
  color: var(--accent-cyan);
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(6, 182, 212, 0.35);
}

.btn-video-overlay-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(8, 12, 20, 0.7);
  border: 1px solid var(--border-subtle);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(8px);
  z-index: 15;
  transition: var(--transition-smooth);
}

.btn-video-overlay-nav:hover {
  background: var(--accent-volt);
  color: #042416;
  border-color: var(--accent-volt);
  transform: translateY(-50%) scale(1.1);
}

.btn-video-nav-prev {
  left: 12px;
}

.btn-video-nav-next {
  right: 12px;
}

.btn-live-touch-nav {
  width: 52px;
  height: 52px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: #fff;
}

.btn-live-touch-nav:active {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(0.92);
}

.live-coach-tip-pill {
  background: rgba(16, 185, 129, 0.08);
  border-left: 3px solid var(--accent-volt);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 8px 12px;
  font-size: 0.78rem;
  color: #e2e8f0;
  line-height: 1.4;
}

.live-coach-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: #04070d;
  z-index: 99999;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.live-coach-overlay.open {
  display: flex;
  opacity: 1;
}

.live-coach-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: linear-gradient(
    180deg,
    rgba(4, 7, 13, 0.95),
    rgba(4, 7, 13, 0.6) 80%,
    transparent
  );
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 20;
}

.live-coach-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.live-coach-exit-btn {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid var(--border-subtle);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.live-coach-exit-btn:hover {
  background: var(--accent-rose);
  transform: scale(1.05);
}

.live-coach-header-info {
  display: flex;
  flex-direction: column;
}

.live-coach-cat-pill {
  font-size: 0.68rem;
  color: var(--accent-cyan);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.live-coach-head-title {
  font-size: 1.05rem;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 190px;
}

.live-coach-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-live-toggle-sound {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid var(--border-subtle);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
}

.speed-selector-live {
  display: flex;
  background: rgba(0, 0, 0, 0.6);
  border-radius: var(--radius-full);
  padding: 3px;
  border: 1px solid var(--border-subtle);
}

.btn-live-speed {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  cursor: pointer;
}

.btn-live-speed.active {
  background: var(--accent-volt);
  color: #042416;
  font-weight: 700;
}

.live-coach-video-area {
  flex-grow: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  overflow: hidden;
  height: 58%;
}

.live-coach-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.live-cue-widget {
  position: absolute;
  top: 60px;
  left: 14px;
  z-index: 25;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.live-cue-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(8, 12, 20, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-active);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s ease, background 0.2s ease;
}

.live-cue-icon-btn:hover,
.live-cue-icon-btn:active {
  transform: scale(1.1);
  background: rgba(16, 185, 129, 0.2);
  border-color: var(--accent-volt);
}

.live-cue-toast {
  display: none;
  max-width: min(290px, 75vw);
  background: rgba(8, 12, 20, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-active);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font-size: 0.8rem;
  line-height: 1.4;
  color: #fff;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.7);
  animation: slideCueToast 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.live-cue-toast.show {
  display: block;
}

@keyframes slideCueToast {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.live-audio-indicator {
  position: absolute;
  top: 60px;
  right: 14px;
  display: none;
  gap: 3px;
  align-items: flex-end;
  height: 16px;
  z-index: 25;
}

.live-audio-indicator span {
  width: 3px;
  background: var(--accent-volt);
  border-radius: 2px;
  animation: bounceBar 1.2s infinite ease-in-out;
}

.live-audio-indicator span:nth-child(1) {
  height: 8px;
  animation-delay: 0.1s;
}
.live-audio-indicator span:nth-child(2) {
  height: 16px;
  animation-delay: 0.3s;
}
.live-audio-indicator span:nth-child(3) {
  height: 11px;
  animation-delay: 0.2s;
}

@keyframes bounceBar {
  0%,
  100% {
    transform: scaleY(0.4);
  }
  50% {
    transform: scaleY(1);
  }
}

.live-coach-timer-drawer {
  background: linear-gradient(
    180deg,
    rgba(15, 23, 42, 0.96),
    rgba(8, 12, 20, 1)
  );
  border-top: 2px solid var(--border-active);
  padding: 16px 20px calc(16px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  z-index: 30;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.7);
}

.live-progress-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 2px;
}

.live-progress-fill {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-volt));
  box-shadow: 0 0 10px var(--accent-volt);
  transition:
    width 0.3s linear,
    background 0.3s ease;
}

.live-timer-content-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.live-timer-info-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.live-phase-badge {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-volt);
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid var(--accent-volt);
  width: fit-content;
}

.live-phase-badge.phase-rest {
  color: var(--accent-amber);
  background: rgba(245, 158, 11, 0.15);
  border-color: var(--accent-amber);
}

.live-phase-badge.phase-prepare {
  color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.15);
  border-color: var(--accent-cyan);
}

.live-big-counter {
  font-family: "Outfit", monospace;
  font-size: clamp(3.2rem, 12vw, 4.4rem);
  font-weight: 900;
  line-height: 1;
  color: #fff;
  letter-spacing: -0.04em;
  margin: 4px 0;
}

.live-round-info {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
}

.live-timer-touch-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-live-touch {
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    transform 0.15s ease,
    background 0.2s ease;
  touch-action: manipulation;
}

.btn-live-touch:active {
  transform: scale(0.92);
}

.btn-live-touch-main {
  width: 68px;
  height: 68px;
  background: linear-gradient(135deg, var(--accent-volt), #059669);
  color: #042416;
  box-shadow: 0 0 25px var(--accent-volt-glow);
}

.btn-live-touch-sub {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: #fff;
}

.live-exercise-summary-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 8px;
  font-size: 0.78rem;
  color: var(--text-dim);
}

.btn-live-form-guide {
  background: transparent;
  border: none;
  color: var(--accent-cyan);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
}

.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: rgba(8, 12, 20, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-subtle);
  display: none;
  justify-content: space-around;
  align-items: center;
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  z-index: 1000;
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 4px 8px;
  transition: var(--transition-smooth);
}

.mobile-nav-item .nav-icon {
  font-size: 1.25rem;
}

.mobile-nav-item.active,
.mobile-nav-item:hover {
  color: var(--accent-volt);
}

.mobile-nav-center-action {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-volt), var(--accent-cyan));
  border: 3px solid #080c14;
  color: #042416;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 0 16px var(--accent-volt-glow);
  transform: translateY(-14px);
  transition: transform 0.2s ease;
}

.mobile-nav-center-action:active {
  transform: translateY(-12px) scale(0.95);
}

.pulse-ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--accent-volt);
  animation: pulseOuterRing 2s infinite;
  pointer-events: none;
}

@keyframes pulseOuterRing {
  0% {
    transform: scale(0.95);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.35);
    opacity: 0;
  }
}

@media (max-width: 900px) {
  .site-header .nav-menu {
    display: none;
  }

  .mobile-bottom-nav {
    display: flex;
  }

  body {
    padding-bottom: 74px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .hero-card {
    padding: 24px 20px;
  }

  .hero-title {
    font-size: 1.95rem;
  }

  .timer-card {
    padding: 24px 16px;
  }

  .programs-grid {
    grid-template-columns: 1fr;
  }

  .timing-cards-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 14px;
  }

  .hero-stat-pill {
    padding: 8px 12px;
  }

  .hero-stat-num {
    font-size: 1.15rem;
  }

  .timer-center-display .progress-ring-container {
    width: 240px;
    height: 240px;
  }

  .timer-big-digits {
    font-size: 3.6rem;
  }

  .workouts-grid {
    grid-template-columns: 1fr;
  }
}

.header-quick-stats {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-streak-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  color: #fbbf24;
}

.header-sound-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  transition: var(--transition-smooth);
}

.header-sound-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

.coach-home-section {
  padding: 16px 0 24px;
}

.daily-routine-card {
  background: linear-gradient(
    145deg,
    rgba(16, 24, 39, 0.95),
    rgba(15, 23, 42, 0.85)
  );
  border: 1px solid rgba(16, 185, 129, 0.32);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  box-shadow:
    0 16px 40px -10px rgba(0, 0, 0, 0.6),
    0 0 25px -5px rgba(16, 185, 129, 0.15);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(16px);
}

.daily-routine-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-volt), var(--accent-cyan));
}

.daily-routine-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.badge-phase {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-volt);
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.badge-today-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.daily-routine-title {
  font-size: 1.65rem;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 6px;
}

.daily-routine-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 16px;
}

.daily-metrics-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.metric-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-main);
}

.btn-launch-today {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  border: none;
  background: linear-gradient(135deg, #10b981 0%, #059669 60%, #047857 100%);
  color: #041a10;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 8px 24px -4px rgba(16, 185, 129, 0.5),
    inset 0 1px 1px rgba(255, 255, 255, 0.4);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.btn-launch-today:hover,
.btn-launch-today:focus {
  transform: translateY(-2px);
  box-shadow:
    0 12px 30px -4px rgba(16, 185, 129, 0.65),
    0 0 20px rgba(16, 185, 129, 0.4);
}

.btn-launch-today:active {
  transform: scale(0.98);
}

.launch-pulse-ring {
  position: absolute;
  inset: -10px;
  border-radius: var(--radius-md);
  background: radial-gradient(
    circle,
    rgba(16, 185, 129, 0.4) 0%,
    transparent 70%
  );
  animation: pulseOuterRing 2s infinite ease-in-out;
  pointer-events: none;
}

.launch-icon {
  font-size: 1.8rem;
  line-height: 1;
  flex-shrink: 0;
}

.launch-content {
  display: flex;
  flex-direction: column;
  text-align: left;
  flex: 1;
}

.launch-main-text {
  font-family: "Outfit", sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #022013;
  line-height: 1.2;
}

.launch-sub-text {
  font-size: 0.76rem;
  font-weight: 600;
  color: rgba(2, 32, 19, 0.85);
  margin-top: 2px;
}

.launch-arrow {
  flex-shrink: 0;
  fill: #022013;
  transition: transform 0.2s ease;
}

.btn-launch-today:hover .launch-arrow {
  transform: translateX(4px);
}

.quick-duration-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
}

.duration-title {
  font-size: 0.8rem;
  color: var(--text-dim);
  font-weight: 600;
}

.duration-pills {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.duration-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.duration-chip:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.duration-chip.active {
  background: rgba(16, 185, 129, 0.15);
  border-color: var(--accent-volt);
  color: var(--accent-volt);
  font-weight: 700;
}

.weeks-progression-wrapper {
  margin-top: 24px;
}

.weeks-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 12px;
  gap: 12px;
}

.weeks-title {
  font-size: 1.15rem;
  color: #fff;
  margin-bottom: 2px;
}

.weeks-subtitle {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.active-week-indicator {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-volt);
  background: rgba(16, 185, 129, 0.1);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(16, 185, 129, 0.3);
  white-space: nowrap;
}

.weeks-track-scroll {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 900px) {
  .weeks-track-scroll {
    grid-template-columns: repeat(4, minmax(220px, 1fr));
  }
}

.week-tab-card {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 14px;
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.week-tab-card:hover {
  background: rgba(30, 41, 59, 0.8);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.week-tab-card.active {
  background: linear-gradient(
    145deg,
    rgba(16, 24, 39, 0.9),
    rgba(16, 185, 129, 0.1)
  );
  border-color: var(--accent-volt);
  box-shadow: 0 0 16px -2px rgba(16, 185, 129, 0.3);
}

.week-tab-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.week-tab-badge {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-cyan);
}

.week-tab-card.active .week-tab-badge {
  color: var(--accent-volt);
}

.week-tab-icon {
  font-size: 1.1rem;
}

.week-tab-title {
  font-family: "Outfit", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 6px;
}

.week-tab-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.week-tab-focus {
  font-size: 0.7rem;
  color: var(--text-dim);
  line-height: 1.35;
}

.today-playlist-wrapper {
  margin-top: 24px;
}

.playlist-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 12px;
}

.playlist-title {
  font-size: 1.15rem;
  color: #fff;
}

.playlist-subtitle {
  font-size: 0.78rem;
  color: var(--text-dim);
}

.playlist-count {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-volt);
}

.compact-exercises-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.compact-exercise-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  transition: var(--transition-smooth);
}

.compact-exercise-item:hover {
  background: rgba(30, 41, 59, 0.85);
  border-color: rgba(16, 185, 129, 0.35);
}

.compact-step-num {
  width: 24px;
  height: 24px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.compact-thumb-wrap {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
  cursor: pointer;
  background: #000;
}

.compact-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.compact-play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-volt);
  font-size: 1rem;
  opacity: 0.9;
}

.compact-info {
  flex: 1;
  min-width: 0;
  cursor: pointer;
}

.compact-item-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
}

.compact-item-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 3px 0;
  flex-wrap: wrap;
}

.compact-target-pill,
.compact-duration-pill,
.compact-cat-pill {
  font-size: 0.68rem;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  font-weight: 600;
}

.compact-target-pill {
  color: var(--accent-volt);
  background: rgba(16, 185, 129, 0.1);
}

.compact-cue-text {
  font-size: 0.72rem;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-compact-play {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: var(--accent-volt);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: var(--transition-smooth);
}

.btn-compact-play:hover {
  background: var(--accent-volt);
  color: #041a10;
  transform: scale(1.08);
}

.catalog-accordion,
.guide-accordion {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-top: 14px;
}

.catalog-accordion-summary,
.guide-accordion-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background 0.2s ease;
}

.catalog-accordion-summary::-webkit-details-marker,
.guide-accordion-summary::-webkit-details-marker {
  display: none;
}

.catalog-accordion-summary:hover,
.guide-accordion-summary:hover {
  background: rgba(255, 255, 255, 0.03);
}

.summary-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.summary-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
}

.summary-title {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}

.summary-desc {
  display: block;
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 2px;
}

.summary-badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-volt);
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.catalog-accordion-body,
.guide-accordion-body {
  padding: 16px 18px 24px;
  border-top: 1px solid var(--border-subtle);
}
