/* ============================================================
   GymAttitude — Dark Techy CSS
   ============================================================ */

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --bg:           #070c16;
  --bg-card:      #0d1526;
  --bg-card-hover:#121d33;
  --bg-input:     #0a1220;
  --border:       #1a2d4a;
  --border-glow:  rgba(59,130,246,.45);

  --blue:         #3b82f6;
  --blue-lt:      #60a5fa;
  --blue-ltr:     #93c5fd;
  --cyan:         #06b6d4;
  --slate:        #94a3b8;
  --slate-dk:     #64748b;
  --white:        #f8fafc;
  --white-dim:    #cbd5e1;

  --gradient:     linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
  --gradient-warm:linear-gradient(135deg, #6366f1 0%, #3b82f6 100%);

  /* Exercise card accent colours (one per exercise slot) */
  --ex1: linear-gradient(135deg, #1e3a6e 0%, #1e4d8c 100%);
  --ex2: linear-gradient(135deg, #0e4a5c 0%, #065f70 100%);
  --ex3: linear-gradient(135deg, #2d1e5c 0%, #3b2370 100%);
  --ex4: linear-gradient(135deg, #1a3d28 0%, #1e5235 100%);
  --ex5: linear-gradient(135deg, #4a1e1e 0%, #5e2626 100%);

  --radius:   12px;
  --radius-lg:20px;
  --shadow:   0 4px 24px rgba(0,0,0,.45);
  --shadow-glow: 0 0 0 1px var(--border-glow), 0 8px 32px rgba(59,130,246,.12);

  --font-body: 'Inter', system-ui, sans-serif;
  --font-head: 'Space Grotesk', 'Inter', sans-serif;

  --transition: .2s ease;
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font: inherit; }
a { text-decoration: none; color: inherit; }
textarea, input { font: inherit; }

/* ── Utility ────────────────────────────────────────────────── */
.hidden { display: none !important; }
.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hide-sm { display: inline; }

/* ── Header ─────────────────────────────────────────────────── */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(7,12,22,.8);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-icon {
  width: 36px; height: 36px;
  color: var(--blue-lt);
  background: rgba(59,130,246,.1);
  border: 1px solid rgba(59,130,246,.2);
  border-radius: 9px;
  display: grid;
  place-items: center;
}
.logo-icon svg { width: 22px; height: 22px; }
.logo-text {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -.3px;
}
.logo-accent { color: var(--blue-lt); }
.nav-blog-link {
  font-size: .85rem;
  font-weight: 500;
  color: var(--slate);
  margin-right: 20px;
  transition: color var(--transition);
}
.nav-blog-link:hover { color: var(--white); }
.nav-tag {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--cyan);
  background: rgba(6,182,212,.08);
  border: 1px solid rgba(6,182,212,.2);
  padding: 4px 10px;
  border-radius: 20px;
}

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 24px 80px;
  overflow: hidden;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(59,130,246,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59,130,246,.04) 1px, transparent 1px);
  background-size: 56px 56px;
  animation: gridDrift 24s linear infinite;
  pointer-events: none;
}
@keyframes gridDrift {
  from { transform: translateY(0); }
  to   { transform: translateY(56px); }
}
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  opacity: .22;
}
.hero-glow-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, #3b82f6, transparent 70%);
  top: -100px; left: -150px;
}
.hero-glow-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #06b6d4, transparent 70%);
  bottom: -100px; right: -100px;
}
.hero-content { position: relative; z-index: 2; max-width: 760px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--blue-lt);
  background: rgba(59,130,246,.08);
  border: 1px solid rgba(59,130,246,.2);
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 28px;
}
.badge-dot {
  width: 7px; height: 7px;
  background: var(--blue-lt);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .5; transform: scale(.8); }
}
.hero-title {
  font-family: var(--font-head);
  font-size: clamp(2.6rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.02em;
  margin-bottom: 22px;
}
.hero-sub {
  font-size: clamp(.95rem, 1.5vw, 1.1rem);
  color: var(--slate);
  line-height: 1.7;
  margin-bottom: 36px;
}
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin-top: 40px;
}
.stat { text-align: center; }
.stat-num {
  display: block;
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}
.stat-label {
  display: block;
  font-size: .75rem;
  color: var(--slate-dk);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 500;
  margin-top: 2px;
}
.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gradient);
  color: #fff;
  font-weight: 600;
  font-size: .9rem;
  padding: 11px 24px;
  border-radius: 10px;
  transition: opacity var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 20px rgba(59,130,246,.25);
}
.btn-primary svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn-primary:hover:not(:disabled) {
  opacity: .9;
  transform: translateY(-1px);
  box-shadow: 0 6px 28px rgba(59,130,246,.38);
}
.btn-primary:active:not(:disabled) { transform: translateY(0); }
.btn-primary:disabled { opacity: .35; cursor: not-allowed; }
.btn-primary.btn-xl {
  font-size: 1rem;
  padding: 14px 32px;
  border-radius: 12px;
}
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--slate);
  font-weight: 500;
  font-size: .9rem;
  padding: 11px 20px;
  border-radius: 10px;
  border: 1px solid var(--border);
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}
.btn-ghost svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn-ghost:hover {
  color: var(--white);
  border-color: rgba(59,130,246,.4);
  background: rgba(59,130,246,.06);
}
.btn-sm { padding: 8px 16px; font-size: .82rem; }

/* ── App Flow wrapper ───────────────────────────────────────── */
.app-flow {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

/* ── Step Bar ───────────────────────────────────────────────── */
.step-bar {
  display: flex;
  justify-content: center;
  margin-bottom: 48px;
}
.step-bar-inner {
  display: flex;
  align-items: center;
  gap: 0;
}
.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
}
.step-circle {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--border);
  display: grid;
  place-items: center;
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
  position: relative;
}
.step-num {
  font-size: .85rem;
  font-weight: 700;
  color: var(--slate-dk);
  transition: color var(--transition);
}
.step-check {
  display: none;
  width: 16px; height: 16px;
  color: #fff;
  position: absolute;
}
.step-label {
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--slate-dk);
  white-space: nowrap;
  transition: color var(--transition);
}
.step-line {
  width: 60px;
  height: 2px;
  background: var(--border);
  margin-bottom: 26px;
  transition: background var(--transition);
}

/* step active */
.step-item.active .step-circle {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(59,130,246,.15);
}
.step-item.active .step-num { color: var(--blue-lt); }
.step-item.active .step-label { color: var(--blue-lt); }

/* step done */
.step-item.done .step-circle {
  background: var(--blue);
  border-color: var(--blue);
  box-shadow: 0 0 12px rgba(59,130,246,.3);
}
.step-item.done .step-num { display: none; }
.step-item.done .step-check { display: block; }
.step-item.done .step-label { color: var(--slate); }
.step-line.done { background: var(--blue); }

/* ── Step Panel ─────────────────────────────────────────────── */
.step-panel {
  display: none;
  animation: fadeUp .35s ease;
}
.step-panel.active { display: block; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.panel-header { text-align: center; margin-bottom: 36px; }
.panel-title {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: 10px;
}
.panel-sub { color: var(--slate); font-size: .95rem; }
.step-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

/* ── Gym Type Cards ─────────────────────────────────────────── */
.gym-type-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 640px;
  margin: 0 auto;
}
.gym-type-card {
  position: relative;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  color: var(--white);
  transition: border-color var(--transition), background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.gym-type-card:hover {
  border-color: rgba(59,130,246,.4);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}
.gym-type-card.selected {
  border-color: var(--blue);
  background: rgba(59,130,246,.07);
  box-shadow: 0 0 0 3px rgba(59,130,246,.12), var(--shadow);
}
.gym-card-icon {
  width: 64px; height: 64px;
  background: rgba(59,130,246,.08);
  border: 1px solid rgba(59,130,246,.15);
  border-radius: 16px;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  color: var(--blue-lt);
  transition: background var(--transition);
}
.gym-type-card.selected .gym-card-icon {
  background: rgba(59,130,246,.16);
}
.gym-card-icon svg { width: 36px; height: 36px; }
.gym-card-title {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.gym-card-desc {
  font-size: .85rem;
  color: var(--slate);
  line-height: 1.5;
}
.gym-card-check {
  position: absolute;
  top: 14px; right: 14px;
  width: 22px; height: 22px;
  color: var(--blue-lt);
  opacity: 0;
  transition: opacity var(--transition);
}
.gym-card-check svg { width: 22px; height: 22px; }
.gym-type-card.selected .gym-card-check { opacity: 1; }

/* ── Setup Tabs ─────────────────────────────────────────────── */
.setup-tabs {
  display: flex;
  gap: 4px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 5px;
  margin-bottom: 24px;
  max-width: 360px;
  margin-left: auto;
  margin-right: auto;
}
.setup-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 8px;
  font-size: .875rem;
  font-weight: 500;
  color: var(--slate);
  transition: all var(--transition);
}
.setup-tab svg { width: 16px; height: 16px; }
.setup-tab.active {
  background: rgba(59,130,246,.12);
  color: var(--blue-lt);
  border: 1px solid rgba(59,130,246,.25);
}
.setup-tab:hover:not(.active) { color: var(--white); }

.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ── Upload Zone ────────────────────────────────────────────── */
.upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
  margin-bottom: 18px;
  overflow: hidden;
  position: relative;
}
.upload-zone:hover, .upload-zone.drag-over {
  border-color: var(--blue);
  background: rgba(59,130,246,.04);
}
.upload-prompt {
  text-align: center;
  padding: 28px;
}
.upload-icon {
  width: 56px; height: 56px;
  background: rgba(59,130,246,.08);
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
  color: var(--blue-lt);
}
.upload-icon svg { width: 34px; height: 34px; }
.upload-title { font-weight: 600; font-size: 1rem; margin-bottom: 6px; }
.upload-hint { font-size: .83rem; color: var(--slate-dk); }
.upload-link { color: var(--blue-lt); cursor: pointer; }
.upload-link:hover { text-decoration: underline; }

.upload-preview {
  width: 100%; height: 100%;
  position: relative;
}
.upload-preview img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}
.preview-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7,12,22,.8) 0%, transparent 50%);
  display: flex;
  align-items: flex-end;
  padding: 14px 16px;
  justify-content: space-between;
}
.preview-label {
  font-size: .8rem;
  color: var(--white);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}
.preview-label::before {
  content: '';
  width: 7px; height: 7px;
  background: #22c55e;
  border-radius: 50%;
}
.preview-remove {
  width: 32px; height: 32px;
  background: rgba(255,255,255,.1);
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--white);
  transition: background var(--transition);
}
.preview-remove svg { width: 16px; height: 16px; }
.preview-remove:hover { background: rgba(239,68,68,.4); }

.setup-opt-label {
  font-size: .8rem;
  font-weight: 500;
  color: var(--slate-dk);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* ── Textarea ───────────────────────────────────────────────── */
.textarea {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--white);
  padding: 14px 16px;
  resize: vertical;
  transition: border-color var(--transition), box-shadow var(--transition);
  line-height: 1.6;
  font-size: .9rem;
}
.textarea::placeholder { color: var(--slate-dk); }
.textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(59,130,246,.1);
}
.textarea-lg { min-height: 180px; }

/* ── Muscle Grid ────────────────────────────────────────────── */
.muscle-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-bottom: 8px;
}
.muscle-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 12px 16px;
  color: var(--white);
  transition: all var(--transition);
}
.muscle-card:hover {
  border-color: rgba(59,130,246,.4);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}
.muscle-card.selected {
  border-color: var(--blue);
  background: rgba(59,130,246,.08);
  box-shadow: 0 0 0 2px rgba(59,130,246,.15);
}
.muscle-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  display: grid;
  place-items: center;
}
.muscle-icon svg { width: 36px; height: 36px; }

.muscle-icon.chest     { background: rgba(59,130,246,.1); color: #60a5fa; }
.muscle-icon.back      { background: rgba(6,182,212,.1);  color: #22d3ee; }
.muscle-icon.shoulders { background: rgba(139,92,246,.1); color: #a78bfa; }
.muscle-icon.biceps    { background: rgba(59,130,246,.1); color: #93c5fd; }
.muscle-icon.triceps   { background: rgba(16,185,129,.1); color: #34d399; }
.muscle-icon.quads     { background: rgba(245,158,11,.1); color: #fcd34d; }
.muscle-icon.hamstrings{ background: rgba(239,68,68,.1);  color: #fca5a5; }
.muscle-icon.core      { background: rgba(249,115,22,.1); color: #fb923c; }
.muscle-icon.calves    { background: rgba(20,184,166,.1); color: #2dd4bf; }
.muscle-icon.fullbody  { background: rgba(99,102,241,.1); color: #818cf8; }

.muscle-name {
  font-size: .78rem;
  font-weight: 600;
  text-align: center;
  color: var(--white-dim);
  line-height: 1.3;
}
.muscle-card.selected .muscle-name { color: var(--blue-ltr); }

/* ── Loading State ──────────────────────────────────────────── */
.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 60px 24px;
}
.loader-ring {
  width: 64px; height: 64px;
  position: relative;
  margin-bottom: 28px;
}
.loader-ring div {
  position: absolute;
  width: 100%; height: 100%;
  border: 3px solid transparent;
  border-radius: 50%;
  animation: ring 1.2s cubic-bezier(.5,.05,.5,.95) infinite;
}
.loader-ring div:nth-child(1) { border-top-color: var(--blue);  animation-delay: 0s; }
.loader-ring div:nth-child(2) { border-top-color: var(--cyan);  animation-delay: -.15s; width: 78%; height: 78%; top: 11%; left: 11%; }
.loader-ring div:nth-child(3) { border-top-color: var(--blue-lt); animation-delay: -.3s; width: 56%; height: 56%; top: 22%; left: 22%; }
.loader-ring div:nth-child(4) { border-top-color: var(--slate-dk); animation-delay: -.45s; width: 34%; height: 34%; top: 33%; left: 33%; }
@keyframes ring {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.loading-title {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.loading-sub { color: var(--slate); font-size: .9rem; margin-bottom: 32px; }
.loading-steps { display: flex; flex-direction: column; gap: 10px; text-align: left; }
.loading-step {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .88rem;
  color: var(--slate-dk);
  transition: color var(--transition);
}
.loading-step.active { color: var(--white-dim); }
.loading-step.done   { color: #22c55e; }
.ls-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--border);
  flex-shrink: 0;
  transition: background var(--transition);
}
.loading-step.active .ls-dot {
  background: var(--blue-lt);
  box-shadow: 0 0 0 3px rgba(96,165,250,.2);
  animation: pulse 1.2s ease-in-out infinite;
}
.loading-step.done .ls-dot { background: #22c55e; }

/* ── Error State ────────────────────────────────────────────── */
.error-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 60px 24px;
}
.error-icon {
  width: 64px; height: 64px;
  color: #f87171;
  margin-bottom: 20px;
}
.error-icon svg { width: 64px; height: 64px; }
.error-title { font-family: var(--font-head); font-size: 1.3rem; font-weight: 700; margin-bottom: 10px; color: #fca5a5; }
.error-msg { color: var(--slate); font-size: .9rem; margin-bottom: 28px; max-width: 380px; }
.error-actions { display: flex; gap: 12px; }

/* ── Results Header ─────────────────────────────────────────── */
.results-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 32px;
}
.results-badge {
  display: inline-block;
  background: var(--gradient);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 10px;
}
.results-title {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.results-sub { color: var(--slate); font-size: .9rem; }

/* ── Exercises Grid ─────────────────────────────────────────── */
.exercises-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ── Exercise Card ──────────────────────────────────────────── */
.exercise-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  animation: fadeUp .4s ease both;
  transition: box-shadow var(--transition), border-color var(--transition);
}
.exercise-card:hover {
  border-color: rgba(59,130,246,.3);
  box-shadow: 0 8px 32px rgba(0,0,0,.3);
}
.exercise-card:nth-child(1) { animation-delay: .05s; }
.exercise-card:nth-child(2) { animation-delay: .12s; }
.exercise-card:nth-child(3) { animation-delay: .19s; }
.exercise-card:nth-child(4) { animation-delay: .26s; }
.exercise-card:nth-child(5) { animation-delay: .33s; }

.exercise-card-header {
  padding: 22px 24px 18px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
/* Gradient left stripe */
.exercise-card-header::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
}
.exercise-card:nth-child(1) .exercise-card-header::before { background: var(--gradient); }
.exercise-card:nth-child(2) .exercise-card-header::before { background: linear-gradient(180deg, #06b6d4, #0ea5e9); }
.exercise-card:nth-child(3) .exercise-card-header::before { background: linear-gradient(180deg, #8b5cf6, #6366f1); }
.exercise-card:nth-child(4) .exercise-card-header::before { background: linear-gradient(180deg, #10b981, #059669); }
.exercise-card:nth-child(5) .exercise-card-header::before { background: linear-gradient(180deg, #f59e0b, #ef4444); }

.exercise-num-badge {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
}
.ex-num {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  min-width: 36px;
}
.exercise-card:nth-child(1) .ex-num { color: var(--blue-lt); }
.exercise-card:nth-child(2) .ex-num { color: #22d3ee; }
.exercise-card:nth-child(3) .ex-num { color: #a78bfa; }
.exercise-card:nth-child(4) .ex-num { color: #34d399; }
.exercise-card:nth-child(5) .ex-num { color: #fcd34d; }

.exercise-title-group { flex: 1; }
.exercise-name {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 8px;
}
.muscle-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tag {
  font-size: .7rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 20px;
  border: 1px solid;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.tag-primary {
  color: var(--blue-lt);
  border-color: rgba(96,165,250,.25);
  background: rgba(96,165,250,.08);
}
.tag-secondary {
  color: var(--slate);
  border-color: var(--border);
  background: transparent;
}

.difficulty-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 4px 10px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
}
.diff-beginner     { color: #34d399; background: rgba(52,211,153,.1); border: 1px solid rgba(52,211,153,.2); }
.diff-intermediate { color: #fbbf24; background: rgba(251,191,36,.1);  border: 1px solid rgba(251,191,36,.2); }
.diff-advanced     { color: #f87171; background: rgba(248,113,113,.1); border: 1px solid rgba(248,113,113,.2); }
.diff-dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }

.exercise-card-body { padding: 22px 24px; }
.exercise-desc {
  color: var(--slate);
  font-size: .9rem;
  line-height: 1.65;
  margin-bottom: 20px;
}

.how-to-title, .tips-title, .equip-title {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--slate-dk);
  margin-bottom: 12px;
}
.how-to-steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}
.how-to-step {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.step-bullet {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(59,130,246,.1);
  border: 1px solid rgba(59,130,246,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .7rem;
  font-weight: 700;
  color: var(--blue-lt);
  flex-shrink: 0;
  margin-top: 2px;
}
.how-to-step p { color: var(--white-dim); font-size: .88rem; line-height: 1.55; }

.sets-reps-row {
  display: flex;
  gap: 12px;
  margin-bottom: 22px;
}
.sets-reps-chip {
  flex: 1;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  text-align: center;
}
.chip-label {
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--slate-dk);
  margin-bottom: 4px;
}
.chip-value {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--blue-lt);
}

.tip-box {
  background: rgba(59,130,246,.05);
  border: 1px solid rgba(59,130,246,.15);
  border-left: 3px solid var(--blue);
  border-radius: 0 10px 10px 0;
  padding: 12px 16px;
  margin-bottom: 20px;
}
.tip-box p {
  font-size: .875rem;
  color: var(--white-dim);
  line-height: 1.55;
  font-style: italic;
}

.equip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.equip-tag {
  font-size: .76rem;
  font-weight: 500;
  color: var(--slate);
  background: rgba(148,163,184,.06);
  border: 1px solid var(--border);
  padding: 4px 12px;
  border-radius: 20px;
}

/* ── Results Footer ─────────────────────────────────────────── */
.results-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

/* ── Footer ─────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  background: rgba(13,21,38,.6);
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.footer-logo {
  font-family: var(--font-head);
  font-size: .95rem;
  font-weight: 700;
}
.footer-copy {
  font-size: .78rem;
  color: var(--slate-dk);
}
.footer-link {
  font-size: .78rem;
  color: var(--slate-dk);
  transition: color var(--transition);
}
.footer-link:hover { color: var(--slate); }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  .gym-type-grid { grid-template-columns: 1fr; max-width: 380px; }
  .muscle-grid   { grid-template-columns: repeat(3, 1fr); }
  .step-label    { display: none; }
  .step-line     { width: 32px; }
  .results-header { flex-direction: column; }
  .hide-sm { display: none; }
  .hero-stats { gap: 18px; }
}

@media (max-width: 520px) {
  .muscle-grid { grid-template-columns: repeat(2, 1fr); }
  .sets-reps-row { flex-direction: column; }
  .exercise-card-header { flex-wrap: wrap; }
  .footer-inner { flex-direction: column; text-align: center; }
}
