/* ========================================================
   GYM SYSTEM — STYLE SHEET
   Colors: #000000 · #16181c · #1d9bf0 · #e7e9ea
   ======================================================== */

/* ---------- RESET & BASE ---------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-darkest: #000000;
  --bg-dark: #0a0a0a;
  --bg-card: #16181c;
  --green-deep: #1a3a50;
  --green-mid: #1d9bf0;
  --green-light: #1d9bf0;
  --green-glow: #1d9bf040;
  --text-primary: #e7e9ea;
  --text-secondary: #71767b;
  --text-muted: #536471;
  --border: #2f3336;
  --border-light: #2f333640;
  --push-accent: #f9197f;
  --pull-accent: #1d9bf0;
  --legs-accent: #7856ff;
  --rest-accent: #536471;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.6);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  background: var(--bg-darkest);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: var(--green-light);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: #fff;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
}

/* ---------- HERO ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  background: linear-gradient(170deg, #000000 0%, #0a0f14 40%, #0d1117 70%, #000000 100%);
}

.hero--has-bg {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero--has-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(170deg, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.6) 40%, rgba(0,0,0,0.7) 70%, rgba(0,0,0,0.85) 100%);
  z-index: 1;
}

.hero--has-bg .hero__bg-pattern,
.hero--has-bg .hero__nav,
.hero--has-bg .hero__content,
.hero--has-bg .hero__scroll-indicator {
  position: relative;
  z-index: 2;
}

.hero__bg-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, var(--green-glow) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(29, 155, 240, 0.1) 0%, transparent 40%),
    radial-gradient(circle at 60% 80%, rgba(29, 155, 240, 0.05) 0%, transparent 40%);
  pointer-events: none;
}

.hero__bg-pattern::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%231d9bf0' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

/* Nav */
.hero__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 40px;
  position: relative;
  z-index: 10;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 2px;
  color: var(--green-light);
}

.nav__icon {
  font-size: 1.2rem;
}

.nav__links {
  display: flex;
  gap: 32px;
}

.nav__link {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-secondary);
  position: relative;
  padding-bottom: 4px;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--green-mid);
  transition: var(--transition);
}

.nav__link:hover {
  color: var(--green-light);
}

.nav__link:hover::after {
  width: 100%;
}

.nav__mobile-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav__mobile-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--green-light);
  transition: var(--transition);
}

/* Hero Content */
.hero__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 24px;
  position: relative;
  z-index: 5;
}

.hero__badge {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 3px;
  color: var(--green-mid);
  padding: 8px 20px;
  border: 1px solid var(--border);
  border-radius: 100px;
  margin-bottom: 32px;
  background: rgba(29, 155, 240, 0.08);
  animation: fadeInDown 0.8s ease forwards;
}

.hero__title {
  font-size: clamp(4rem, 12vw, 10rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -3px;
  margin-bottom: 24px;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero__title-line {
  display: block;
}

.hero__title-line--accent {
  background: linear-gradient(135deg, var(--green-mid), var(--green-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  font-weight: 400;
  letter-spacing: 1px;
  margin-bottom: 48px;
  animation: fadeInUp 0.8s ease 0.4s both;
}

.hero__stats {
  display: flex;
  gap: 24px;
  margin-bottom: 48px;
  animation: fadeInUp 0.8s ease 0.6s both;
  flex-wrap: wrap;
  justify-content: center;
}

.stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 28px;
  background: rgba(22, 24, 28, 0.8);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  backdrop-filter: blur(10px);
  min-width: 120px;
  transition: var(--transition);
}

.stat-card:hover {
  border-color: var(--green-mid);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(29, 155, 240, 0.15);
}

.stat-card__number {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  color: var(--green-light);
  line-height: 1;
}

.stat-card__label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: var(--green-mid);
  color: var(--bg-darkest);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 100px;
  letter-spacing: 0.5px;
  transition: var(--transition);
  animation: fadeInUp 0.8s ease 0.8s both;
}

.hero__cta:hover {
  background: var(--green-light);
  color: var(--bg-darkest);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(64, 138, 113, 0.3);
}

.hero__scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding-bottom: 40px;
  position: relative;
  z-index: 5;
}

.hero__scroll-indicator span {
  font-size: 0.65rem;
  letter-spacing: 3px;
  color: var(--text-muted);
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--green-mid), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

/* ---------- SECTION HEADERS ---------- */
.section__header {
  text-align: center;
  margin-bottom: 64px;
}

.section__tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 3px;
  color: var(--green-mid);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section__title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 16px;
}

.section__desc {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ---------- SCHEDULE ---------- */
.schedule-section {
  background: linear-gradient(180deg, var(--bg-darkest), var(--bg-dark));
}

.schedule-rotations {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.rotation__title {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 24px;
}

.rotation__badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--green-mid);
  color: var(--bg-darkest);
  font-weight: 800;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

.week-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
}

.day-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: var(--transition);
  cursor: default;
}

.day-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.day-card__day {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.day-card__type {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.day-card__muscles {
  font-size: 0.7rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Day types */
.day-card--push {
  border-color: rgba(249, 25, 127, 0.2);
  background: linear-gradient(180deg, rgba(249, 25, 127, 0.08), var(--bg-card));
}
.day-card--push .day-card__type { color: var(--push-accent); }
.day-card--push:hover { border-color: rgba(249, 25, 127, 0.4); }

.day-card--pull {
  border-color: rgba(29, 155, 240, 0.2);
  background: linear-gradient(180deg, rgba(29, 155, 240, 0.08), var(--bg-card));
}
.day-card--pull .day-card__type { color: var(--pull-accent); }
.day-card--pull:hover { border-color: rgba(29, 155, 240, 0.4); }

.day-card--legs {
  border-color: rgba(120, 86, 255, 0.2);
  background: linear-gradient(180deg, rgba(120, 86, 255, 0.08), var(--bg-card));
}
.day-card--legs .day-card__type { color: var(--legs-accent); }
.day-card--legs:hover { border-color: rgba(120, 86, 255, 0.4); }

.day-card--rest {
  border-color: rgba(47, 51, 54, 0.3);
  background: rgba(10, 10, 10, 0.5);
  opacity: 0.6;
}
.day-card--rest .day-card__type { color: var(--rest-accent); }
.day-card--rest:hover { opacity: 0.8; }

/* ---------- WORKOUT SECTIONS ---------- */
.workout-section {
  background: var(--bg-darkest);
  border-top: 1px solid var(--border);
}

.workout-section--alt {
  background: var(--bg-dark);
}

.workout-header {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 32px;
}

.workout-header__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

.push-icon {
  background: linear-gradient(135deg, rgba(249, 25, 127, 0.2), rgba(249, 25, 127, 0.05));
  border: 1px solid rgba(249, 25, 127, 0.3);
  color: var(--push-accent);
}

.pull-icon {
  background: linear-gradient(135deg, rgba(29, 155, 240, 0.2), rgba(29, 155, 240, 0.05));
  border: 1px solid rgba(29, 155, 240, 0.3);
  color: var(--pull-accent);
}

.legs-icon {
  background: linear-gradient(135deg, rgba(120, 86, 255, 0.2), rgba(120, 86, 255, 0.05));
  border: 1px solid rgba(120, 86, 255, 0.3);
  color: var(--legs-accent);
}

.workout-header__targets {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

.workout-header__targets strong {
  color: var(--text-primary);
}

/* Workout note */
.workout-note {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 24px;
  background: rgba(29, 155, 240, 0.06);
  border: 1px solid var(--border);
  border-left: 3px solid var(--green-mid);
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.workout-note svg {
  flex-shrink: 0;
  color: var(--green-mid);
  margin-top: 2px;
}

.workout-note strong {
  color: var(--green-light);
}

.warmup-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  background: rgba(29, 155, 240, 0.08);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 32px;
  font-size: 0.85rem;
  transition: var(--transition);
}

.warmup-link svg {
  color: var(--green-mid);
}

.warmup-link:hover {
  background: rgba(29, 155, 240, 0.15);
  border-color: var(--green-mid);
}

/* ---------- EXERCISE TABLE ---------- */
.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.exercise-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.exercise-table thead {
  background: rgba(29, 155, 240, 0.08);
}

.exercise-table th {
  padding: 16px 20px;
  text-align: left;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.exercise-table tbody tr {
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition);
}

.exercise-table tbody tr:last-child {
  border-bottom: none;
}

.exercise-table tbody tr:hover {
  background: rgba(29, 155, 240, 0.04);
}

.exercise-table td {
  padding: 18px 20px;
  vertical-align: middle;
}

.td-num {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--text-muted);
  font-size: 0.8rem;
  width: 48px;
}

.td-exercise {
  min-width: 180px;
}

.exercise-name {
  display: block;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.exercise-muscle {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.td-sets {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--green-light);
  text-align: center;
  width: 72px;
}

.td-reps {
  width: 140px;
}

.reps-scheme {
  display: inline-block;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--text-primary);
  padding: 4px 12px;
  background: rgba(29, 155, 240, 0.08);
  border-radius: 6px;
  white-space: nowrap;
}

.td-link {
  width: 130px;
}

.wiki-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(29, 155, 240, 0.1);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--green-light);
  white-space: nowrap;
  transition: var(--transition);
}

.wiki-link:hover {
  background: var(--green-mid);
  color: var(--bg-darkest);
  border-color: var(--green-mid);
}

.wiki-link:hover svg {
  stroke: var(--bg-darkest);
}

.td-notes {
  max-width: 260px;
}

.note-text {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.highlight-note {
  color: var(--push-accent);
  font-weight: 600;
}

/* ---------- TIPS ---------- */
.tips-section {
  background: linear-gradient(180deg, var(--bg-dark), var(--bg-darkest));
  border-top: 1px solid var(--border);
}

.tips-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.tip-card {
  padding: 32px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.tip-card:hover {
  border-color: var(--green-deep);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.tip-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: rgba(29, 155, 240, 0.08);
  border-radius: var(--radius-sm);
  color: var(--green-mid);
  margin-bottom: 20px;
}

.tip-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.tip-card__text {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.tip-card__text strong {
  color: var(--green-light);
}

/* ---------- REP SCHEME SECTION ---------- */
.rep-section {
  background: var(--bg-darkest);
  border-top: 1px solid var(--border);
}

.rep-explainer {
  max-width: 640px;
  margin: 0 auto;
  padding: 48px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.rep-explainer__header {
  text-align: center;
  margin-bottom: 40px;
}

.rep-explainer__header h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.rep-explainer__header p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.rep-visual {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.rep-set {
  display: grid;
  grid-template-columns: 64px 48px 1fr;
  align-items: center;
  gap: 16px;
}

.rep-set__number {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.rep-set__reps {
  font-family: var(--font-mono);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--green-light);
  text-align: center;
}

.rep-set__label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  grid-column: 3;
  grid-row: 1;
}

.rep-set__bar {
  grid-column: 3;
  grid-row: 2;
  height: 6px;
  background: linear-gradient(90deg, var(--green-deep), var(--green-mid));
  border-radius: 100px;
  transition: width 1s ease;
}

/* ---------- FOOTER ---------- */
.footer {
  padding: 48px 0;
  border-top: 1px solid var(--border);
  background: var(--bg-darkest);
}

.footer__content {
  text-align: center;
}

.footer__text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.footer__text strong {
  color: var(--green-light);
}

.footer__links {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 24px;
}

.footer__link {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition);
}

.footer__link:hover {
  color: var(--green-light);
}

.footer__copy {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ---------- ANIMATIONS ---------- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes scrollPulse {
  0%, 100% {
    opacity: 0.3;
    transform: scaleY(0.6);
  }
  50% {
    opacity: 1;
    transform: scaleY(1);
  }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- MOBILE RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .week-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .tips-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hero__nav {
    padding: 20px 24px;
  }

  .nav__links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    z-index: 100;
  }

  .nav__links.active {
    display: flex;
  }

  .nav__links.active .nav__link {
    font-size: 1.2rem;
  }

  .nav__mobile-btn {
    display: flex;
    z-index: 110;
  }

  .hero__title {
    letter-spacing: -2px;
  }

  .hero__stats {
    gap: 12px;
  }

  .stat-card {
    padding: 16px 20px;
    min-width: 100px;
  }

  .stat-card__number {
    font-size: 1.6rem;
  }

  .section {
    padding: 64px 0;
  }

  .week-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .workout-header {
    flex-direction: column;
    gap: 16px;
  }

  .workout-header__icon {
    width: 52px;
    height: 52px;
  }

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

  .exercise-table th,
  .exercise-table td {
    padding: 14px 14px;
  }

  .td-notes {
    min-width: 180px;
  }

  .rep-explainer {
    padding: 32px 24px;
  }

  .rep-set {
    grid-template-columns: 56px 40px 1fr;
    gap: 10px;
  }

  .rep-set__reps {
    font-size: 1.4rem;
  }
}

@media (max-width: 480px) {
  .hero__title {
    font-size: 3.5rem;
  }

  .hero__stats {
    flex-direction: column;
    align-items: center;
  }

  .stat-card {
    width: 100%;
    max-width: 200px;
    flex-direction: row;
    justify-content: center;
    gap: 12px;
  }

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

  .day-card {
    flex-direction: row;
    justify-content: space-between;
    padding: 16px 20px;
  }

  .day-card__muscles {
    text-align: right;
  }

  .section__title {
    font-size: 1.8rem;
  }

  .rotation__title {
    font-size: 0.95rem;
  }
}

/* ---------- TODAY HIGHLIGHT ---------- */
.day-card--today {
  position: relative;
  border-color: var(--green-mid) !important;
  box-shadow: 0 0 20px rgba(29, 155, 240, 0.2);
}

.day-card--today::before {
  content: 'TODAY';
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--bg-darkest);
  background: var(--green-mid);
  padding: 2px 10px;
  border-radius: 100px;
}

/* ---------- SCROLLBAR ---------- */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-darkest);
}

::-webkit-scrollbar-thumb {
  background: var(--green-deep);
  border-radius: 100px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--green-mid);
}

/* Table horizontal scroll hint */
.table-wrapper {
  position: relative;
}

.table-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 40px;
  background: linear-gradient(to left, var(--bg-card), transparent);
  pointer-events: none;
  opacity: 0;
  transition: var(--transition);
}

.table-wrapper.scrollable::after {
  opacity: 1;
}

/* ---------- NAV ACTIONS ---------- */
.nav__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav__link--cta {
  color: var(--green-mid) !important;
  border: 1px solid var(--green-deep);
  padding: 4px 14px;
  border-radius: 100px;
}

.nav__link--cta:hover {
  background: var(--green-mid);
  color: var(--bg-darkest) !important;
  border-color: var(--green-mid);
}

/* ---------- LANGUAGE TOGGLE ---------- */
.lang-btn {
  background: rgba(29, 155, 240, 0.1);
  border: 1px solid var(--border);
  color: var(--green-light);
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 100px;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 0.5px;
}

.lang-btn:hover {
  background: var(--green-mid);
  color: var(--bg-darkest);
  border-color: var(--green-mid);
}

/* ---------- COMPACT HERO (Advanced page) ---------- */
.hero--compact {
  min-height: auto;
  padding-bottom: 80px;
}

.hero__content--compact {
  padding-top: 40px;
}

/* ---------- PROFILE SECTION ---------- */
.profile-section {
  background: var(--bg-dark);
  border-top: 1px solid var(--border);
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.profile-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 32px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.profile-card:hover {
  border-color: var(--green-deep);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.profile-card__icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.profile-card__value {
  font-family: var(--font-mono);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--green-light);
  line-height: 1;
  margin-bottom: 6px;
}

.profile-card__label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.profile-card__sub {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.profile-card__sub--good {
  color: var(--green-mid);
  font-weight: 600;
}

/* ---------- TIMELINE ---------- */
.timeline-section {
  background: linear-gradient(180deg, var(--bg-darkest), var(--bg-dark));
  border-top: 1px solid var(--border);
}

.timeline {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  padding-left: 40px;
}

.timeline__line {
  position: absolute;
  left: 12px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--green-mid), var(--border), var(--border));
}

.timeline__item {
  position: relative;
  padding-bottom: 48px;
}

.timeline__item:last-child {
  padding-bottom: 0;
}

.timeline__dot {
  position: absolute;
  left: -34px;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--border);
  z-index: 2;
  transition: var(--transition);
}

.timeline__item--active .timeline__dot {
  background: var(--green-mid);
  border-color: var(--green-mid);
  box-shadow: 0 0 12px rgba(29, 155, 240, 0.4);
}

.timeline__content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  transition: var(--transition);
}

.timeline__item--active .timeline__content {
  border-color: var(--green-deep);
}

.timeline__content:hover {
  border-color: var(--green-deep);
  box-shadow: var(--shadow);
}

.timeline__period {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--green-mid);
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.timeline__title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.timeline__text {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 12px;
}

.timeline__badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--text-muted);
  padding: 4px 12px;
  border: 1px solid var(--border);
  border-radius: 100px;
}

.timeline__badge--current {
  color: var(--green-mid);
  border-color: var(--green-mid);
  background: rgba(29, 155, 240, 0.08);
}

.timeline__link {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--green-light);
  transition: var(--transition);
}

.timeline__link:hover {
  color: #fff;
}

/* ---------- 2-COL TIPS ---------- */
.tips-grid--2col {
  grid-template-columns: repeat(2, 1fr);
}

/* ---------- RTL SUPPORT ---------- */
body[dir="rtl"] {
  font-family: 'Inter', 'Segoe UI', Tahoma, sans-serif;
}

body[dir="rtl"] .hero__nav {
  flex-direction: row-reverse;
}

body[dir="rtl"] .nav__links {
  flex-direction: row-reverse;
}

body[dir="rtl"] .exercise-table th,
body[dir="rtl"] .exercise-table td {
  text-align: right;
}

body[dir="rtl"] .workout-note {
  border-left: none;
  border-right: 3px solid var(--green-mid);
}

body[dir="rtl"] .timeline {
  padding-left: 0;
  padding-right: 40px;
}

body[dir="rtl"] .timeline__line {
  left: auto;
  right: 12px;
}

body[dir="rtl"] .timeline__dot {
  left: auto;
  right: -34px;
}

body[dir="rtl"] .workout-header {
  flex-direction: row-reverse;
}

/* ---------- PROFILE/TIMELINE RESPONSIVE ---------- */
@media (max-width: 768px) {
  .profile-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .timeline {
    padding-left: 32px;
  }

  .timeline__dot {
    left: -26px;
  }

  .tips-grid--2col {
    grid-template-columns: 1fr;
  }

  .lang-btn {
    font-size: 0.72rem;
    padding: 5px 12px;
  }
}

@media (max-width: 480px) {
  .profile-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- BLOCK PERIODIZATION CARDS ---------- */
.blocks-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.block-card {
  padding: 32px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.block-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.block-card__phase {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.block-card__number {
  font-family: var(--font-mono);
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 8px;
  opacity: 0.15;
  position: absolute;
  top: 20px;
  right: 24px;
}

.block-card__title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.block-card__duration {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 1px;
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.block-card__list {
  list-style: none;
  padding: 0;
}

.block-card__list li {
  font-size: 0.85rem;
  color: var(--text-secondary);
  padding: 6px 0;
  padding-left: 16px;
  position: relative;
  line-height: 1.5;
}

.block-card__list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--text-muted);
  font-size: 0.75rem;
}

/* Strength variant */
.block-card--strength {
  border-color: rgba(249, 25, 127, 0.25);
  border-top: 3px solid var(--push-accent);
}
.block-card--strength .block-card__number { color: var(--push-accent); }
.block-card--strength .block-card__duration {
  color: var(--push-accent);
  background: rgba(249, 25, 127, 0.1);
  border: 1px solid rgba(249, 25, 127, 0.2);
}
.block-card--strength:hover { border-color: rgba(249, 25, 127, 0.4); }

/* Hypertrophy variant */
.block-card--hypertrophy {
  border-color: rgba(29, 155, 240, 0.25);
  border-top: 3px solid var(--pull-accent);
}
.block-card--hypertrophy .block-card__number { color: var(--pull-accent); }
.block-card--hypertrophy .block-card__duration {
  color: var(--pull-accent);
  background: rgba(29, 155, 240, 0.1);
  border: 1px solid rgba(29, 155, 240, 0.2);
}
.block-card--hypertrophy:hover { border-color: rgba(29, 155, 240, 0.4); }

/* Deload variant */
.block-card--deload {
  border-color: rgba(29, 155, 240, 0.2);
  border-top: 3px solid var(--green-mid);
}
.block-card--deload .block-card__number { color: var(--green-mid); }
.block-card--deload .block-card__duration {
  color: var(--green-mid);
  background: rgba(29, 155, 240, 0.08);
  border: 1px solid rgba(29, 155, 240, 0.2);
}
.block-card--deload:hover { border-color: var(--green-mid); }

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