/* ============================================================
   TOP CWICZENIA — Futuristic Dark Fitness Design
   Cyberpunk / Sci-fi / 2030 Aesthetic
   ============================================================ */

/* ---------- FONTS ---------- */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

/* ---------- CSS VARIABLES ---------- */
:root {
  --bg-primary: #0a0a1a;
  --bg-secondary: #0d0d24;
  --bg-card: rgba(255, 255, 255, 0.05);
  --bg-card-hover: rgba(255, 255, 255, 0.08);
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-glass-hover: rgba(255, 255, 255, 0.15);

  --cyan: #00d4ff;
  --magenta: #ff006e;
  --lime: #00ff88;
  --amber: #ffb800;
  --purple: #a855f7;

  --cyan-glow: 0 0 20px rgba(0, 212, 255, 0.3);
  --magenta-glow: 0 0 20px rgba(255, 0, 110, 0.3);
  --lime-glow: 0 0 20px rgba(0, 255, 136, 0.3);

  --text-primary: #e8e8f0;
  --text-secondary: #9898b0;
  --text-muted: #606078;

  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 100px;

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --container-max: 1200px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

/* Dot grid background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 30px 30px;
  pointer-events: none;
  z-index: 0;
}

/* Ensure content above dot grid */
body > * {
  position: relative;
  z-index: 1;
}

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

a:hover {
  color: var(--magenta);
}

img {
  max-width: 100%;
  display: block;
}

/* ---------- UTILITY ---------- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

.animate-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Gradient text utility */
.gradient-text {
  background: linear-gradient(135deg, var(--cyan), var(--magenta));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---------- HEADER ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10, 10, 26, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glass);
}

.header-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
}

.logo:hover {
  color: var(--text-primary);
}

.logo-icon {
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.15), rgba(255, 0, 110, 0.15));
  border-radius: var(--radius-md);
  border: 1px solid var(--border-glass);
}

.logo-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 20px;
  background: linear-gradient(135deg, var(--cyan), var(--magenta));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo-subtitle {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ---------- NAVIGATION ---------- */
.nav {
  display: flex;
  gap: 4px;
}

.nav a {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.nav a:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}

.nav a.active {
  color: var(--cyan);
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.2);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  font-size: 24px;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--cyan);
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  padding: 80px 20px;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(135deg,
    rgba(0, 212, 255, 0.08) 0%,
    rgba(10, 10, 26, 1) 30%,
    rgba(10, 10, 26, 1) 70%,
    rgba(255, 0, 110, 0.08) 100%
  );
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(
    from 0deg,
    transparent 0%,
    rgba(0, 212, 255, 0.03) 10%,
    transparent 20%,
    rgba(255, 0, 110, 0.03) 30%,
    transparent 40%
  );
  animation: heroRotate 30s linear infinite;
  pointer-events: none;
}

@keyframes heroRotate {
  to { transform: rotate(360deg); }
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--magenta), transparent);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 0 auto;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--cyan), var(--magenta));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 550px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.hero-stat-number {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--cyan), var(--lime));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ---------- CATEGORY HERO ---------- */
.category-hero {
  text-align: center;
  padding: 60px 20px 40px;
  position: relative;
  background: linear-gradient(180deg, rgba(0, 212, 255, 0.06) 0%, transparent 100%);
}

.category-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-glass), transparent);
}

.category-hero .category-icon {
  font-size: 3.5rem;
  display: block;
  margin-bottom: 16px;
  filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.4));
}

.category-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  margin-bottom: 12px;
  background: linear-gradient(135deg, var(--cyan), var(--magenta));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.category-hero p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 500px;
  margin: 0 auto;
}

/* ---------- BREADCRUMB ---------- */
.breadcrumb {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--text-muted);
  transition: color var(--transition);
}

.breadcrumb a:hover {
  color: var(--cyan);
}

.breadcrumb span:last-child {
  color: var(--text-secondary);
}

/* ---------- CATEGORIES SECTION ---------- */
.categories-section {
  padding: 40px 0 60px;
}

.category-group {
  margin-bottom: 48px;
}

.category-group-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.category-group-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--border-glass), transparent);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}

/* ---------- CATEGORY CARD ---------- */
.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 24px 16px;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--text-primary);
  transition: all var(--transition);
  text-align: center;
}

.category-card:hover {
  color: var(--text-primary);
  background: var(--bg-card-hover);
  border-color: var(--border-glass-hover);
  box-shadow: var(--cyan-glow);
  transform: translateY(-4px);
}

.category-card-icon {
  font-size: 2.2rem;
  filter: drop-shadow(0 0 8px rgba(0, 212, 255, 0.3));
}

.category-card-name {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
}

.category-card-count {
  font-size: 0.8rem;
  color: var(--text-muted);
  background: rgba(0, 212, 255, 0.1);
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(0, 212, 255, 0.15);
}

/* ---------- VOTING SUMMARY ---------- */
.voting-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  margin: 20px 0;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  gap: 16px;
  flex-wrap: wrap;
}

.voting-summary-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.voting-summary-reset {
  background: rgba(255, 0, 110, 0.1);
  border: 1px solid rgba(255, 0, 110, 0.2);
  color: var(--magenta);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-body);
}

.voting-summary-reset:hover {
  background: rgba(255, 0, 110, 0.2);
  box-shadow: var(--magenta-glow);
}

/* ---------- TOOLBAR ---------- */
.toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.toolbar-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.toolbar-buttons {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.toolbar-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-body);
}

.toolbar-btn:hover {
  color: var(--text-primary);
  background: var(--bg-card-hover);
  border-color: var(--border-glass-hover);
}

.toolbar-btn.active {
  color: var(--cyan);
  background: rgba(0, 212, 255, 0.1);
  border-color: rgba(0, 212, 255, 0.3);
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.1);
}

/* ---------- RECIPES/EXERCISES GRID ---------- */
.recipes-section {
  padding: 20px 0 60px;
}

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

/* ---------- EXERCISE CARD ---------- */
.exercise-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
}

.exercise-card:hover {
  border-color: var(--border-glass-hover);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3), 0 0 15px rgba(0, 212, 255, 0.05);
  transform: translateY(-2px);
}

.exercise-card-header {
  padding: 20px 20px 12px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.exercise-card-rank {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  flex-shrink: 0;
}

.exercise-card-rank.top3 {
  font-size: 1.3rem;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.15), rgba(255, 0, 110, 0.15));
  border-color: rgba(0, 212, 255, 0.2);
  box-shadow: 0 0 12px rgba(0, 212, 255, 0.15);
}

.exercise-card-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
  flex: 1;
}

.exercise-card-source {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
  display: block;
}

.exercise-card-body {
  padding: 16px 20px;
}

.exercise-card-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 14px;
}

.exercise-card-tips {
  font-size: 0.85rem;
  color: var(--lime);
  background: rgba(0, 255, 136, 0.06);
  border: 1px solid rgba(0, 255, 136, 0.1);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin-bottom: 14px;
  line-height: 1.5;
}

.exercise-card-tips::before {
  content: 'Tip: ';
  font-weight: 600;
}

.exercise-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.exercise-card-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* ---------- MUSCLE TAGS ---------- */
.muscle-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: rgba(0, 212, 255, 0.1);
  color: var(--cyan);
  border: 1px solid rgba(0, 212, 255, 0.15);
  margin: 2px 3px 2px 0;
}

.muscle-tag:nth-child(2n) {
  background: rgba(168, 85, 247, 0.1);
  color: var(--purple);
  border-color: rgba(168, 85, 247, 0.15);
}

.muscle-tag:nth-child(3n) {
  background: rgba(0, 255, 136, 0.1);
  color: var(--lime);
  border-color: rgba(0, 255, 136, 0.15);
}

/* ---------- RANK REASON ---------- */
.rank-reason {
  padding: 10px 20px 0;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--text-muted);
  font-style: italic;
  border-left: 2px solid rgba(0, 212, 255, 0.2);
  margin: 0 20px;
  opacity: 0.85;
}

.exercise-card:nth-child(1) .rank-reason {
  color: var(--cyan);
  border-left-color: var(--cyan);
  opacity: 1;
  font-weight: 500;
  font-style: normal;
}

.exercise-card:nth-child(2) .rank-reason {
  color: rgba(200, 200, 220, 0.8);
  border-left-color: rgba(200, 200, 220, 0.4);
}

.exercise-card:nth-child(3) .rank-reason {
  color: rgba(232, 168, 124, 0.8);
  border-left-color: rgba(232, 168, 124, 0.4);
}

/* ---------- DIFFICULTY BADGE ---------- */
.difficulty-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
}

.difficulty-badge.easy {
  background: rgba(0, 255, 136, 0.1);
  color: var(--lime);
  border: 1px solid rgba(0, 255, 136, 0.15);
}

.difficulty-badge.medium {
  background: rgba(255, 184, 0, 0.1);
  color: var(--amber);
  border: 1px solid rgba(255, 184, 0, 0.15);
}

.difficulty-badge.hard {
  background: rgba(255, 0, 110, 0.1);
  color: var(--magenta);
  border: 1px solid rgba(255, 0, 110, 0.15);
}

/* ---------- VIDEO THUMBNAIL ---------- */
.video-thumbnail {
  position: relative;
  width: 100%;
  max-width: 280px;
  aspect-ratio: 16 / 9;
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  margin-bottom: 10px;
  border: 1px solid var(--border-glass);
  float: right;
  margin-left: 16px;
}

.video-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}

.video-thumbnail:hover img {
  transform: scale(1.05);
}

.video-thumbnail .play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.7);
  border: 2px solid var(--cyan);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  box-shadow: 0 0 14px rgba(0, 212, 255, 0.3);
}

.video-thumbnail .play-btn::after {
  content: '';
  display: block;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 7px 0 7px 12px;
  border-color: transparent transparent transparent var(--cyan);
  margin-left: 2px;
}

.video-thumbnail:hover .play-btn {
  background: rgba(0, 212, 255, 0.2);
  box-shadow: 0 0 24px rgba(0, 212, 255, 0.5);
}

.video-thumbnail .no-video {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--text-muted);
  font-size: 0.75rem;
  flex-direction: column;
  gap: 6px;
}

.video-thumbnail .no-video::before {
  content: '▶';
  font-size: 1.2rem;
  opacity: 0.3;
}

/* Video expanded as iframe after click */
.video-thumbnail iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 480px) {
  .video-thumbnail {
    float: none;
    max-width: 100%;
    margin-left: 0;
  }
}

/* ---------- STAR RATING ---------- */
.star-rating {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.star-rating .star {
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.15s ease;
  user-select: none;
  -webkit-user-select: none;
  padding: 2px;
}

.star-rating .star:hover {
  transform: scale(1.2);
}

.star-rating .star.active {
  color: var(--amber);
  filter: drop-shadow(0 0 6px rgba(255, 184, 0, 0.4));
}

.star-rating .star.hover-preview {
  color: var(--amber);
  opacity: 0.6;
}

.star-rating-text {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-left: 8px;
}

/* ---------- EXERCISE CARD FOOTER ---------- */
.exercise-card-footer {
  padding: 14px 20px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  flex-wrap: wrap;
  gap: 10px;
}

.exercise-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--cyan), var(--magenta));
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: all var(--transition);
  border: none;
}

.exercise-link:hover {
  color: #fff;
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.3), 0 0 20px rgba(255, 0, 110, 0.2);
  transform: translateY(-1px);
}

/* ---------- TOAST ---------- */
.toast {
  position: fixed;
  bottom: -80px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(10, 10, 26, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid var(--cyan);
  color: var(--text-primary);
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  z-index: 2000;
  transition: bottom 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--cyan-glow);
  white-space: nowrap;
}

.toast.show {
  bottom: 30px;
}

/* ---------- SCROLL-TOP ---------- */
.scroll-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--magenta));
  color: white;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  transform: translateY(20px);
  transition: all var(--transition);
  box-shadow: 0 4px 20px rgba(0, 212, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
}

.scroll-top:hover {
  box-shadow: 0 4px 30px rgba(0, 212, 255, 0.5), 0 0 20px rgba(255, 0, 110, 0.3);
  transform: translateY(-2px);
}

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

.footer-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}

.footer h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 14px;
  background: linear-gradient(135deg, var(--cyan), var(--magenta));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: color var(--transition);
  text-decoration: none;
}

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

.footer-bottom {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 20px;
  margin-top: 32px;
  border-top: 1px solid var(--border-glass);
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ---------- AD SLOTS ---------- */
.ad-slot {
  margin: 24px auto;
  text-align: center;
  max-width: var(--container-max);
}

.ad-placeholder {
  padding: 32px 20px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* ---------- AFFILIATE SECTION ---------- */
.affiliate-section {
  margin: 40px 0;
  padding: 28px;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
}

.affiliate-section .affiliate-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.affiliate-section .affiliate-grid {
  display: grid;
  gap: 14px;
}

.affiliate-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  transition: all var(--transition);
}

.affiliate-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border-glass-hover);
}

.affiliate-card .affiliate-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
}

.affiliate-card .affiliate-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.affiliate-card .affiliate-info strong {
  font-size: 0.9rem;
  color: var(--text-primary);
}

.affiliate-card .affiliate-info span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.affiliate-link {
  display: inline-flex;
  padding: 6px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--cyan);
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: var(--radius-pill);
  text-decoration: none;
  white-space: nowrap;
  transition: all var(--transition);
}

.affiliate-link:hover {
  background: rgba(0, 212, 255, 0.2);
  box-shadow: var(--cyan-glow);
  color: var(--cyan);
}

.affiliate-section .affiliate-disclaimer {
  margin-top: 16px;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ---------- EQUIPMENT TAGS ---------- */
.equipment-tag {
  display: inline-block;
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: rgba(255, 184, 0, 0.08);
  color: var(--amber);
  border: 1px solid rgba(255, 184, 0, 0.12);
  margin: 2px 3px 2px 0;
}

/* ---------- ANIMATIONS ---------- */
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 5px rgba(0, 212, 255, 0.2); }
  50% { box-shadow: 0 0 20px rgba(0, 212, 255, 0.4); }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Skeleton loading */
.skeleton {
  background: linear-gradient(90deg,
    rgba(255, 255, 255, 0.04) 25%,
    rgba(255, 255, 255, 0.08) 50%,
    rgba(255, 255, 255, 0.04) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

/* ---------- RESPONSIVE: TABLET ---------- */
@media (max-width: 900px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero {
    padding: 60px 20px;
  }

  .hero-stats {
    gap: 24px;
  }

  .category-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
  }
}

/* ---------- RESPONSIVE: MOBILE ---------- */
@media (max-width: 640px) {
  .nav-toggle {
    display: block;
  }

  .nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(10, 10, 26, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glass);
    padding: 12px 20px;
    flex-direction: column;
    gap: 4px;
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
  }

  .hero {
    padding: 48px 16px;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero p {
    font-size: 0.95rem;
  }

  .hero-stats {
    gap: 16px;
  }

  .hero-stat-number {
    font-size: 1.6rem;
  }

  .category-hero h1 {
    font-size: 1.5rem;
  }

  .category-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .category-card {
    padding: 18px 12px;
  }

  .category-card-icon {
    font-size: 1.8rem;
  }

  .category-card-name {
    font-size: 0.85rem;
  }

  .exercise-card-header {
    padding: 16px 16px 10px;
  }

  .exercise-card-body {
    padding: 12px 16px;
  }

  .exercise-card-footer {
    padding: 12px 16px 14px;
    flex-direction: column;
    align-items: flex-start;
  }

  .exercise-card-title {
    font-size: 1.05rem;
  }

  .toolbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .toolbar-buttons {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }

  .voting-summary {
    flex-direction: column;
    text-align: center;
  }

  .affiliate-card {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .scroll-top {
    bottom: 16px;
    right: 16px;
    width: 42px;
    height: 42px;
  }
}

/* ---------- PRINT ---------- */
@media print {
  .header, .nav-toggle, .scroll-top, .toast, .ad-slot, .affiliate-section, .toolbar, .voting-summary, .star-rating {
    display: none !important;
  }

  body {
    background: white;
    color: black;
  }

  .exercise-card {
    border: 1px solid #ccc;
    background: white;
    break-inside: avoid;
  }
}

/* ---------- FOCUS STYLES (ACCESSIBILITY) ---------- */
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.star-rating .star:focus-visible {
  outline: 2px solid var(--amber);
  border-radius: 4px;
}

/* ---------- REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

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

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

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

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ---------- SELECTION ---------- */
::selection {
  background: rgba(0, 212, 255, 0.3);
  color: white;
}

/* ============================================================
   GROUP PAGE
   ============================================================ */

.group-hero {
  padding: 60px 20px 40px;
  text-align: center;
  background: linear-gradient(135deg,
    rgba(0, 212, 255, 0.06) 0%,
    rgba(10, 10, 26, 1) 30%,
    rgba(10, 10, 26, 1) 70%,
    rgba(255, 0, 110, 0.06) 100%
  );
}

.group-hero-icon {
  font-size: 48px;
  display: block;
  margin-bottom: 16px;
}

.group-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 700;
  margin-bottom: 12px;
}

.group-hero-desc {
  color: var(--text-secondary);
  font-size: 16px;
  max-width: 600px;
  margin: 0 auto 24px;
}

.category-grid--large {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  padding: 40px 0 60px;
}

.category-grid--large .category-card {
  padding: 28px 24px;
}

.category-grid--large .category-card-icon {
  font-size: 36px;
}

.category-grid--large .category-card-desc {
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ============================================================
   PLANNER
   ============================================================ */

.planner-hero {
  padding: 60px 20px 40px;
  text-align: center;
  background: linear-gradient(135deg,
    rgba(0, 255, 136, 0.06) 0%,
    rgba(10, 10, 26, 1) 30%,
    rgba(10, 10, 26, 1) 70%,
    rgba(0, 212, 255, 0.06) 100%
  );
}

.planner-hero .hero-title {
  font-family: var(--font-heading);
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 700;
  margin-bottom: 12px;
}

.planner-hero .hero-subtitle {
  color: var(--text-secondary);
  font-size: 16px;
  max-width: 600px;
  margin: 0 auto;
}

.planner-main {
  padding-bottom: 80px;
}

/* ---------- FORM ---------- */
.planner-form {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 40px;
}

.planner-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-bottom: 28px;
}

.planner-field label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
  color: var(--text-primary);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.planner-field select {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 15px;
  cursor: pointer;
  transition: all var(--transition);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%239898b0' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

.planner-field select:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: var(--cyan-glow);
}

.planner-field select option {
  background: #1a1a3a;
  color: var(--text-primary);
}

.planner-field-hint {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--text-muted);
}

.planner-form-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.planner-submit {
  padding: 14px 32px;
  background: linear-gradient(135deg, var(--lime), var(--cyan));
  border: none;
  border-radius: var(--radius-pill);
  color: #0a0a1a;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: all var(--transition);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.planner-submit:hover {
  transform: translateY(-2px);
  box-shadow: var(--lime-glow);
}

.planner-load-saved {
  padding: 14px 24px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-pill);
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  transition: all var(--transition);
}

.planner-load-saved:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

/* ---------- LOADING ---------- */
.planner-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 40px;
  color: var(--text-secondary);
  font-size: 15px;
}

.planner-spinner {
  width: 24px;
  height: 24px;
  border: 3px solid rgba(0, 212, 255, 0.2);
  border-top-color: var(--cyan);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ---------- PLAN RESULT ---------- */
.plan-header {
  text-align: center;
  margin-bottom: 40px;
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
}

.plan-title {
  font-family: var(--font-heading);
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 700;
  margin-bottom: 16px;
}

.plan-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
}

.plan-tag {
  display: inline-block;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-heading);
}

.plan-tag--split { background: rgba(0, 212, 255, 0.15); color: var(--cyan); border: 1px solid rgba(0, 212, 255, 0.3); }
.plan-tag--goal { background: rgba(0, 255, 136, 0.15); color: var(--lime); border: 1px solid rgba(0, 255, 136, 0.3); }
.plan-tag--level { background: rgba(168, 85, 247, 0.15); color: var(--purple); border: 1px solid rgba(168, 85, 247, 0.3); }
.plan-tag--place { background: rgba(255, 184, 0, 0.15); color: var(--amber); border: 1px solid rgba(255, 184, 0, 0.3); }

.plan-desc {
  color: var(--text-secondary);
  font-size: 15px;
}

/* ---------- PLAN WEEK ---------- */
.plan-week {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 40px;
}

.plan-day {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
}

.plan-day:hover {
  border-color: var(--border-glass-hover);
}

.plan-day--rest {
  opacity: 0.7;
}

.plan-day-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-glass);
  flex-wrap: wrap;
}

.plan-day-header h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  min-width: 120px;
}

.plan-day-badge {
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.plan-day-badge.training {
  background: rgba(0, 255, 136, 0.1);
  color: var(--lime);
  border: 1px solid rgba(0, 255, 136, 0.2);
}

.plan-day-badge.rest {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  border: 1px solid var(--border-glass);
}

.plan-rest-text {
  padding: 16px 24px;
  color: var(--text-muted);
  font-size: 14px;
}

/* ---------- WARMUP ---------- */
.plan-warmup {
  padding: 12px 24px;
  background: rgba(255, 184, 0, 0.05);
  border-bottom: 1px solid var(--border-glass);
  font-size: 13px;
  color: var(--text-secondary);
}

.plan-warmup strong {
  color: var(--amber);
}

.plan-warmup--compound {
  background: rgba(168, 85, 247, 0.05);
}

.plan-warmup--compound strong {
  color: var(--purple);
}

/* ---------- EXERCISES ---------- */
.plan-exercises {
  padding: 8px 0;
}

.plan-exercise {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 24px;
  transition: background var(--transition);
}

.plan-exercise:hover {
  background: rgba(255, 255, 255, 0.02);
}

.plan-exercise--compound {
  border-left: 3px solid var(--cyan);
}

.plan-exercise-num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  color: var(--text-secondary);
}

.plan-exercise-info {
  flex: 1;
  min-width: 0;
}

.plan-exercise-name {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 4px;
}

.plan-badge-compound {
  display: inline-block;
  padding: 1px 8px;
  background: rgba(0, 212, 255, 0.15);
  color: var(--cyan);
  border-radius: var(--radius-pill);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  vertical-align: middle;
  margin-left: 6px;
}

.plan-exercise-details {
  display: flex;
  gap: 16px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}

.plan-detail {
  font-size: 14px;
  color: var(--text-secondary);
}

.plan-detail strong {
  color: var(--lime);
}

.plan-exercise-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.plan-muscle {
  font-size: 12px;
  padding: 2px 8px;
  background: rgba(255, 0, 110, 0.1);
  color: var(--magenta);
  border-radius: var(--radius-pill);
}

.plan-equipment {
  font-size: 12px;
  padding: 2px 8px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  border-radius: var(--radius-pill);
}

/* ---------- VIDEO THUMBNAIL ---------- */
.plan-exercise-thumb {
  position: relative;
  width: 140px;
  height: 79px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  flex-shrink: 0;
  margin-left: auto;
  border: 1px solid var(--border-glass);
  transition: all var(--transition);
}

.plan-exercise-thumb:hover {
  border-color: var(--cyan);
  box-shadow: var(--cyan-glow);
  transform: scale(1.05);
}

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

.plan-thumb-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  color: white;
  font-size: 24px;
  transition: background var(--transition);
}

.plan-exercise-thumb:hover .plan-thumb-play {
  background: rgba(255, 0, 0, 0.6);
}

/* ---------- VIDEO LIGHTBOX ---------- */
.plan-video-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.plan-video-wrap {
  position: relative;
  width: 100%;
  max-width: 860px;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 0 60px rgba(0, 212, 255, 0.2);
}

.plan-video-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.plan-video-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: white;
  font-size: 32px;
  cursor: pointer;
  padding: 4px 12px;
  transition: color var(--transition);
}

.plan-video-close:hover {
  color: var(--magenta);
}

.plan-exercise-tips {
  margin-top: 6px;
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
}

/* ---------- SAFETY ---------- */
.plan-safety {
  background: rgba(255, 0, 110, 0.05);
  border: 1px solid rgba(255, 0, 110, 0.15);
  border-radius: var(--radius-lg);
  padding: 24px 32px;
  margin-bottom: 24px;
}

.plan-safety h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--magenta);
  margin-bottom: 12px;
}

.plan-safety ul {
  list-style: none;
  padding: 0;
}

.plan-safety li {
  padding: 6px 0;
  padding-left: 20px;
  position: relative;
  font-size: 14px;
  color: var(--text-secondary);
}

.plan-safety li::before {
  content: '!';
  position: absolute;
  left: 0;
  color: var(--magenta);
  font-weight: 700;
}

/* ---------- PLAN ACTIONS ---------- */
.plan-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.plan-btn {
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.plan-btn--save {
  background: linear-gradient(135deg, var(--cyan), var(--lime));
  color: #0a0a1a;
}

.plan-btn--save:hover {
  transform: translateY(-2px);
  box-shadow: var(--cyan-glow);
}

.plan-btn--print {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
}

.plan-btn--print:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.plan-error {
  text-align: center;
  padding: 40px;
  color: var(--magenta);
  font-size: 16px;
}

/* ---------- PRINT ---------- */
@media print {
  body::before,
  .header,
  .footer,
  .scroll-top,
  .toast,
  .planner-form,
  .plan-actions,
  .planner-loading,
  .planner-hero {
    display: none !important;
  }

  body {
    background: white;
    color: #222;
  }

  .plan-header,
  .plan-day,
  .plan-safety {
    border-color: #ccc;
    background: white;
  }

  .plan-tag {
    background: #f0f0f0;
    color: #333;
    border-color: #ccc;
  }

  .plan-exercise-name,
  .plan-day-header h3 {
    color: #111;
  }

  .plan-detail,
  .plan-detail strong,
  .plan-exercise-tips,
  .plan-rest-text {
    color: #444;
  }

  .plan-safety h3 {
    color: #c00;
  }

  .gradient-text {
    background: none;
    -webkit-text-fill-color: #111;
    color: #111;
  }

  .plan-title {
    font-size: 24px;
  }

  .plan-exercise--compound {
    border-left-color: #333;
  }
}

/* ---------- PLANNER RESPONSIVE ---------- */
@media (max-width: 768px) {
  .planner-form {
    padding: 20px;
  }

  .planner-form-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .plan-day-header {
    padding: 12px 16px;
  }

  .plan-exercise {
    padding: 12px 16px;
  }

  .plan-exercise-details {
    gap: 10px;
  }

  .plan-safety {
    padding: 16px 20px;
  }
}

/* ============================================================
   LEGAL / INFO PAGES
   ============================================================ */

/* ---------- LEGAL PAGE ---------- */
.legal-page {
  padding: 60px 20px 80px;
  max-width: 800px;
  margin: 0 auto;
}

.legal-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.legal-updated {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 40px;
}

.legal-section {
  margin-bottom: 36px;
}

.legal-section h2 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--cyan);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-glass);
}

.legal-section p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 12px;
}

.legal-section ul {
  list-style: none;
  padding: 0;
  margin-bottom: 12px;
}

.legal-section ul li {
  color: var(--text-secondary);
  line-height: 1.8;
  padding-left: 20px;
  position: relative;
  margin-bottom: 8px;
}

.legal-section ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
}

.legal-section a {
  color: var(--cyan);
  text-decoration: none;
  transition: color var(--transition);
}

.legal-section a:hover {
  color: var(--magenta);
}

.legal-info-box {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin: 16px 0;
}

.legal-info-box p {
  margin-bottom: 4px;
}

/* ---------- CONTACT PAGE ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 32px 0;
}

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.contact-card:hover {
  border-color: var(--border-glass-hover);
  box-shadow: var(--cyan-glow);
}

.contact-card-icon {
  font-size: 2rem;
  margin-bottom: 12px;
  display: block;
  color: var(--cyan);
}

.contact-card h3 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  margin-bottom: 12px;
}

.contact-card a {
  color: var(--cyan);
  text-decoration: none;
  font-size: 1.1rem;
  display: block;
  margin-bottom: 8px;
}

.contact-card a:hover {
  color: var(--magenta);
}

.contact-card p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ---------- PRICING PAGE ---------- */
.pricing-hero {
  text-align: center;
  padding: 60px 20px 40px;
}

.pricing-hero h1 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.pricing-hero p {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.pricing-main {
  padding-bottom: 80px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 800px;
  margin: 0 auto 48px;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: 40px 32px;
  position: relative;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.pricing-card:hover {
  border-color: var(--border-glass-hover);
}

.pricing-card--premium {
  border-color: var(--cyan);
  box-shadow: var(--cyan-glow);
}

.pricing-card--premium:hover {
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.4);
}

.pricing-card-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--cyan), var(--magenta));
  color: #fff;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 20px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.pricing-card-header {
  text-align: center;
  margin-bottom: 32px;
}

.pricing-plan-name {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.pricing-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
}

.pricing-amount {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  color: var(--text-primary);
}

.pricing-currency {
  font-size: 1.2rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.pricing-period {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 4px;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin-bottom: 32px;
}

.pricing-feature {
  padding: 10px 0;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-glass);
  padding-left: 28px;
  position: relative;
}

.pricing-feature:last-child {
  border-bottom: none;
}

.pricing-feature.included::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--lime);
  font-weight: 700;
}

.pricing-feature.excluded::before {
  content: '\2717';
  position: absolute;
  left: 0;
  color: var(--text-muted);
}

.pricing-feature.excluded {
  color: var(--text-muted);
}

.pricing-cta {
  display: block;
  text-align: center;
  padding: 14px 24px;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all var(--transition);
}

.pricing-cta--free {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
}

.pricing-cta--free:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.pricing-cta--premium {
  background: linear-gradient(135deg, var(--cyan), var(--magenta));
  color: #fff;
  border: none;
}

.pricing-cta--premium:hover {
  box-shadow: var(--cyan-glow);
  transform: translateY(-2px);
}

.pricing-payments {
  text-align: center;
  margin-bottom: 48px;
}

.pricing-payments-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.pricing-payment-logos {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 12px;
}

.pricing-payments-note {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.pricing-faq {
  max-width: 700px;
  margin: 0 auto;
}

.pricing-faq h2 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 32px;
}

.pricing-faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 16px;
}

.pricing-faq-item h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.pricing-faq-item p {
  color: var(--text-secondary);
  line-height: 1.6;
}

.pricing-faq-item a {
  color: var(--cyan);
  text-decoration: none;
}

.pricing-faq-item a:hover {
  color: var(--magenta);
}

/* ---------- FOOTER ADDITIONS ---------- */
.footer-business {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 10px 24px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.65rem;
  opacity: 0.6;
}

.footer-payments {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 6px 24px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  opacity: 0.5;
}

.footer-payments-note {
  color: var(--text-muted);
  font-size: 0.6rem;
}

.payment-badge {
  display: inline-block;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-size: 0.55rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.payment-badge--large {
  font-size: 0.85rem;
  padding: 8px 20px;
  border-radius: var(--radius-md);
}

/* ---------- LEGAL / PRICING RESPONSIVE ---------- */
@media (max-width: 768px) {
  .legal-title {
    font-size: 1.6rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .pricing-hero h1 {
    font-size: 1.8rem;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .pricing-amount {
    font-size: 2.4rem;
  }
}

/* ============================================================
   AUTH PAGES (Login, Register, Account)
   ============================================================ */

.auth-page {
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: 40px 36px;
}

.auth-title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 8px;
}

.auth-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 28px;
}

.auth-error {
  background: rgba(255, 0, 110, 0.1);
  border: 1px solid rgba(255, 0, 110, 0.3);
  color: var(--magenta);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  margin-bottom: 20px;
  text-align: center;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.auth-field label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-primary);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.auth-field input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 15px;
  transition: all var(--transition);
}

.auth-field input:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: var(--cyan-glow);
}

.auth-field input::placeholder {
  color: var(--text-muted);
}

.auth-checkbox {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.auth-checkbox label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  cursor: pointer;
}

.auth-checkbox input[type="checkbox"] {
  margin-top: 3px;
  accent-color: var(--cyan);
}

.auth-checkbox a {
  color: var(--cyan);
  text-decoration: none;
}

.auth-checkbox a:hover {
  color: var(--magenta);
}

.auth-submit {
  padding: 14px 24px;
  background: linear-gradient(135deg, var(--cyan), var(--magenta));
  border: none;
  border-radius: var(--radius-pill);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 8px;
}

.auth-submit:hover {
  transform: translateY(-2px);
  box-shadow: var(--cyan-glow);
}

.auth-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.auth-footer a {
  color: var(--cyan);
  text-decoration: none;
  font-weight: 600;
}

.auth-footer a:hover {
  color: var(--magenta);
}

/* ---------- ACCOUNT PAGE ---------- */
.account-card {
  width: 100%;
  max-width: 560px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: 40px 36px;
}

.account-section {
  margin-top: 28px;
}

.account-section h2 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--cyan);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-glass);
}

.account-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.account-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.account-label {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.account-value {
  color: var(--text-primary);
  font-weight: 500;
}

.account-badge {
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  font-family: var(--font-heading);
}

.account-badge--active {
  background: rgba(0, 255, 136, 0.15);
  color: var(--lime);
  border: 1px solid rgba(0, 255, 136, 0.3);
}

.account-badge--inactive {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  border: 1px solid var(--border-glass);
}

.account-badge--warning {
  background: rgba(255, 184, 0, 0.15);
  color: var(--amber);
  border: 1px solid rgba(255, 184, 0, 0.3);
}

.account-actions {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.account-cancel-btn {
  padding: 12px 24px;
  background: none;
  border: 1px solid rgba(255, 0, 110, 0.3);
  border-radius: var(--radius-pill);
  color: var(--magenta);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
}

.account-cancel-btn:hover {
  background: rgba(255, 0, 110, 0.1);
  border-color: var(--magenta);
}

@media (max-width: 768px) {
  .auth-card, .account-card {
    padding: 28px 20px;
  }
}
