/* ============================================================
   ITS-COCO-FIT — styles.css
   Modern Gym Website | Dark/Light Theme
   ============================================================ */

/* ── Google Fonts fallback ── */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Rajdhani:wght@400;500;600;700&family=Space+Mono:wght@400;700&display=swap');

/* ============================================================
   CSS VARIABLES & THEME
   ============================================================ */
:root {
  /* Dark theme (default) */
  --bg-primary: #0a0a0a;
  --bg-secondary: #111111;
  --bg-card: #1a1a1a;
  --bg-card-hover: #222222;
  --text-primary: #f0f0f0;
  --text-secondary: #aaaaaa;
  --text-muted: #666666;
  --accent: #39ff14;
  --accent-dim: #2acc0f;
  --accent-glow: rgba(57, 255, 20, 0.15);
  --accent-blue: #00d4ff;
  --border: #2a2a2a;
  --border-accent: rgba(57, 255, 20, 0.3);
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
  --shadow-accent: 0 0 20px rgba(57, 255, 20, 0.2);
  --gradient-hero: linear-gradient(135deg, #0a0a0a 0%, #111 50%, #0d1a0d 100%);
  --nav-bg: rgba(10, 10, 10, 0.95);
  --tier-s: #ff4444;
  --tier-a: #ff8800;
  --tier-b: #ffdd00;
  --tier-c: #aaaaaa;

  /* Fonts */
  --font-display: 'Bebas Neue', 'Impact', sans-serif;
  --font-body: 'Rajdhani', 'Segoe UI', sans-serif;
  --font-mono: 'Space Mono', monospace;

  /* Spacing */
  --radius: 12px;
  --radius-sm: 6px;
  --radius-lg: 20px;
}

[data-theme="light"] {
  --bg-primary: #f5f5f5;
  --bg-secondary: #eeeeee;
  --bg-card: #ffffff;
  --bg-card-hover: #f0f0f0;
  --text-primary: #111111;
  --text-secondary: #444444;
  --text-muted: #888888;
  --accent: #16a34a;
  --accent-dim: #15803d;
  --accent-glow: rgba(22, 163, 74, 0.1);
  --accent-blue: #0284c7;
  --border: #dddddd;
  --border-accent: rgba(22, 163, 74, 0.3);
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
  --shadow-accent: 0 0 20px rgba(22, 163, 74, 0.15);
  --gradient-hero: linear-gradient(135deg, #f0f9f0 0%, #e8f5e9 50%, #f5f5f5 100%);
  --nav-bg: rgba(245, 245, 245, 0.97);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

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

a { color: var(--accent); text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; }
input, select, textarea {
  font-family: var(--font-body);
  font-size: 1rem;
}

/* ============================================================
   UTILITY
   ============================================================ */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.accent { color: var(--accent); }
.alt-bg { background: var(--bg-secondary); }

.section {
  padding: 90px 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.5rem);
  letter-spacing: 2px;
  line-height: 1.1;
  margin-bottom: 12px;
}

.section-sub {
  color: var(--text-secondary);
  font-size: 1.1rem;
  font-weight: 500;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.25s ease;
  text-transform: uppercase;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
}
.btn-primary:hover {
  background: transparent;
  color: var(--accent);
  box-shadow: var(--shadow-accent);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--accent-blue);
  color: #000;
  border-color: var(--accent-blue);
}
.btn-secondary:hover {
  background: transparent;
  color: var(--accent-blue);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.btn-sm { padding: 8px 18px; font-size: 0.85rem; }
.btn-lg { padding: 16px 36px; font-size: 1.1rem; width: 100%; justify-content: center; }

/* ============================================================
   ANNOUNCEMENT BANNER
   ============================================================ */
.announce-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1100;
  background: linear-gradient(90deg, #1a5c10, var(--accent), #00c853, var(--accent), #1a5c10);
  background-size: 300% 100%;
  animation: bannerShimmer 4s linear infinite;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 9px 48px 9px 16px;
  gap: 12px;
  min-height: 40px;
}

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

.announce-text {
  font-family: var(--font-display);
  font-size: 0.92rem;
  letter-spacing: 1.5px;
  color: #000;
  font-weight: 700;
  text-align: center;
  line-height: 1.3;
}

.announce-close {
  position: absolute;
  right: 10px;
  background: rgba(0,0,0,0.2);
  border: none;
  color: #000;
  font-size: 0.85rem;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  transition: background 0.2s;
  flex-shrink: 0;
}
.announce-close:hover { background: rgba(0,0,0,0.35); }

.announce-bar.hidden {
  display: none;
}

/* Navbar shifts down when banner is visible */
body.has-banner .navbar { top: 40px; }
body.has-banner #home    { padding-top: 164px; }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 64px;
  transition: background 0.3s;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 50%;
}

.brand-text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 2px;
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.nav-link {
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}

.nav-link:hover, .nav-link.active {
  color: var(--accent);
  background: var(--accent-glow);
}

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

/* Language Switcher */
.lang-switcher {
  position: relative;
  display: inline-block;
}

.lang-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.2s;
}

.lang-btn:hover {
  border-color: var(--accent);
}

.lang-arrow {
  font-size: 0.6rem;
  transition: transform 0.2s;
}

.lang-switcher.open .lang-arrow {
  transform: rotate(180deg);
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 5px);
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  min-width: 100px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
  z-index: 1000;
  overflow: hidden;
}

.lang-switcher.open .lang-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 8px 12px;
  background: transparent;
  border: none;
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  transition: background 0.2s;
}

.lang-option:hover {
  background: var(--bg-card-hover);
  color: var(--accent);
}

.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  padding: 6px;
  border-radius: 50%;
  transition: transform 0.3s;
}
.theme-toggle:hover { transform: rotate(20deg) scale(1.2); }

.nav-burger {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-size: 1.2rem;
  padding: 6px 10px;
  cursor: pointer;
  border-radius: var(--radius-sm);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 100px 5% 60px;
  background: var(--gradient-hero);
  overflow: hidden;
  gap: 40px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 80% 50%, var(--accent-glow) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(0, 212, 255, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-glow);
  border: 1px solid var(--border-accent);
  color: var(--accent);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 24px;
  animation: fadeInDown 0.8s ease;
}

/* Hero Logo */
.hero-logo-container {
  margin-bottom: 24px;
  animation: fadeInDown 0.6s ease;
}

.hero-logo {
  width: 280px;
  height: 280px;
  object-fit: cover;
  border-radius: 28px;
  border: 3px solid var(--border-accent);
  box-shadow: 0 0 60px rgba(57, 255, 20, 0.3), 0 12px 40px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: var(--bg-card);
  padding: 0;
}

.hero-logo:hover {
  transform: scale(1.08) rotate(2deg);
  box-shadow: 0 0 60px rgba(57, 255, 20, 0.35), 0 12px 40px rgba(0, 0, 0, 0.5);
}

[data-theme="light"] .hero-logo {
  box-shadow: 0 0 30px rgba(22, 163, 74, 0.15), 0 8px 32px rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(22, 163, 74, 0.3);
}

[data-theme="light"] .hero-logo:hover {
  box-shadow: 0 0 50px rgba(22, 163, 74, 0.25), 0 12px 40px rgba(0, 0, 0, 0.15);
}

.hero-title {
  display: flex;
  flex-direction: column;
  font-family: var(--font-display);
  font-size: clamp(4rem, 10vw, 8rem);
  line-height: 0.9;
  letter-spacing: 4px;
  margin-bottom: 24px;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.title-line { display: block; }
.title-line.accent { color: var(--accent); text-shadow: 0 0 40px var(--accent-glow); }

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  font-weight: 500;
  margin-bottom: 36px;
  animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 48px;
  animation: fadeInUp 0.8s ease 0.6s both;
}

.hero-stats {
  display: flex;
  gap: 36px;
  animation: fadeInUp 0.8s ease 0.8s both;
}

.stat { display: flex; flex-direction: column; }
.stat-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--accent);
  line-height: 1;
}
.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
}

.hero-visual {
  position: relative;
  width: 400px;
  height: 400px;
  flex-shrink: 0;
  animation: fadeIn 1.2s ease 0.5s both;
}

.hero-circle {
  width: 320px;
  height: 320px;
  border: 2px solid var(--border-accent);
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: spin 20s linear infinite;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
}

.hero-athlete-img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 240px;
  height: 240px;
  object-fit: contain;
  border-radius: 50%;
  z-index: 2;
  filter: drop-shadow(0 0 30px rgba(57, 255, 20, 0.3));
  animation: fadeIn 1.5s ease 0.8s both;
  pointer-events: none;
}

[data-theme="light"] .hero-athlete-img {
  filter: drop-shadow(0 0 20px rgba(22, 163, 74, 0.2));
}

.floating-card {
  position: absolute;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 10px 18px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: var(--shadow);
  animation: float 3s ease-in-out infinite;
}

.fc1 { top: 10%; left: 0; animation-delay: 0s; }
.fc2 { top: 45%; right: 0; animation-delay: 1s; }
.fc3 { bottom: 10%; left: 15%; animation-delay: 2s; }

/* ============================================================
   BODY TYPES
   ============================================================ */
.body-types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.body-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.body-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.3s;
}

.body-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-6px);
  box-shadow: var(--shadow-accent);
}

.body-card:hover::before { transform: scaleX(1); }

.body-card.featured {
  border-color: var(--accent);
  background: linear-gradient(135deg, var(--bg-card), var(--accent-glow));
}

.featured-badge {
  position: absolute;
  top: 16px; right: 16px;
  background: var(--accent);
  color: #000;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 50px;
  letter-spacing: 1px;
}

.body-icon { font-size: 2.5rem; margin-bottom: 16px; }

.body-card h3 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  letter-spacing: 2px;
  margin-bottom: 16px;
  color: var(--accent);
}

.body-traits { margin-bottom: 16px; }
.body-traits li {
  color: var(--text-secondary);
  padding: 4px 0;
  font-size: 0.95rem;
}
.body-traits li::before { content: '→ '; color: var(--accent); }

.body-tip {
  background: var(--bg-secondary);
  border-left: 3px solid var(--accent);
  padding: 10px 14px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

/* ============================================================
   BODY TYPE QUIZ
   ============================================================ */
.body-quiz-wrapper {
  margin-top: 60px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.quiz-intro-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.quiz-intro-card::before {
  content: '';
  position: absolute;
  top: -60%; left: -60%;
  width: 220%; height: 220%;
  background: radial-gradient(ellipse at center, rgba(57,255,20,0.06) 0%, transparent 65%);
  pointer-events: none;
}

.quiz-intro-emoji {
  font-size: 4rem;
  display: block;
  margin-bottom: 16px;
  animation: float 3s ease-in-out infinite;
}

.quiz-intro-card h3 {
  font-family: var(--font-display);
  font-size: 1.9rem;
  letter-spacing: 2px;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.quiz-intro-card p {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 28px;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

/* Questions card */
.quiz-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.quiz-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.quiz-step-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
}

.quiz-step-count {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 700;
}

.quiz-progress-track {
  width: 100%;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin-bottom: 32px;
  overflow: hidden;
}

.quiz-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #00e676);
  border-radius: 2px;
  transition: width 0.45s cubic-bezier(0.4,0,0.2,1);
  box-shadow: 0 0 8px rgba(57,255,20,0.5);
}

.quiz-question-text {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 28px;
  line-height: 1.6;
}

.quiz-options-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.quiz-option-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text-primary);
  cursor: pointer;
  text-align: left;
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.45;
  transition: all 0.22s ease;
  width: 100%;
}

.quiz-option-btn:hover {
  border-color: var(--accent);
  background: rgba(57,255,20,0.06);
  transform: translateX(5px);
}

.quiz-option-letter {
  min-width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: all 0.22s;
}

.quiz-option-btn:hover .quiz-option-letter {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
}

/* Result card */
.quiz-result-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  text-align: center;
  animation: fadeInUp 0.5s ease;
  position: relative;
  overflow: hidden;
}

.quiz-result-card::before {
  content: '';
  position: absolute;
  top: -60%; left: -60%;
  width: 220%; height: 220%;
  background: radial-gradient(ellipse at center, rgba(57,255,20,0.05) 0%, transparent 65%);
  pointer-events: none;
}

.quiz-result-emoji {
  font-size: 5rem;
  display: block;
  margin-bottom: 20px;
  animation: float 3s ease-in-out infinite;
}

.quiz-result-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 8px;
}

.quiz-result-type {
  font-family: var(--font-display);
  font-size: 2.6rem;
  letter-spacing: 4px;
  color: var(--text-primary);
  margin-bottom: 16px;
  text-shadow: 0 0 30px rgba(57,255,20,0.25);
}

.quiz-result-desc {
  color: var(--text-secondary);
  font-size: 0.98rem;
  max-width: 500px;
  margin: 0 auto 28px;
  line-height: 1.75;
}

.quiz-result-traits {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 32px;
}

.quiz-result-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 560px) {
  .quiz-intro-card, .quiz-card, .quiz-result-card { padding: 28px 20px; }
  .quiz-question-text { font-size: 1.05rem; }
  .quiz-intro-card h3 { font-size: 1.5rem; }
}

/* ============================================================
   ROUTINES
   ============================================================ */
.filters {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 36px;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-group label {
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  min-width: 80px;
}

.filter-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 6px 16px;
  border-radius: 50px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s;
}

.filter-btn:hover, .filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #000;
}

.routines-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.routine-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: all 0.3s;
  cursor: pointer;
}

.routine-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-accent);
}

.routine-card.hidden { display: none; }

.routine-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; }

.routine-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 1px;
  color: var(--text-primary);
}

.routine-badges { display: flex; gap: 6px; flex-wrap: wrap; }

.badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.badge-level { background: #1a2e1a; color: var(--accent); border: 1px solid var(--border-accent); }
.badge-goal { background: rgba(0, 212, 255, 0.1); color: var(--accent-blue); border: 1px solid rgba(0, 212, 255, 0.2); }
[data-theme="light"] .badge-level { background: #d1fae5; color: #065f46; }
[data-theme="light"] .badge-goal { background: #e0f2fe; color: #0369a1; }

.routine-desc { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 16px; }

.routine-meta {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.routine-meta span::before { margin-right: 4px; }

.routine-muscle-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  border: 1px solid var(--border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.routine-card:hover .routine-muscle-img {
  transform: scale(1.02);
  box-shadow: 0 0 16px var(--accent-glow);
}

.routine-muscles {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 12px;
}

/* ============================================================
   CALCULATORS
   ============================================================ */
.calc-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
  border-bottom: 2px solid var(--border);
  padding-bottom: 0;
}

.calc-tab {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  padding: 12px 24px;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s;
  letter-spacing: 0.5px;
}

.calc-tab:hover { color: var(--accent); }
.calc-tab.active { color: var(--accent); border-bottom-color: var(--accent); }

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

.calc-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.calc-form h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: 1px;
  margin-bottom: 24px;
  color: var(--accent);
}

.input-group {
  margin-bottom: 18px;
}

.input-group label {
  display: block;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.input-group input,
.input-group select {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  transition: border-color 0.2s;
}

.input-group input:focus,
.input-group select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.calc-result {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.result-placeholder {
  text-align: center;
  color: var(--text-muted);
}
.result-placeholder span { font-size: 3rem; display: block; margin-bottom: 12px; }

.imc-display {
  text-align: center;
}

.imc-number {
  font-family: var(--font-display);
  font-size: 5rem;
  line-height: 1;
  margin-bottom: 8px;
}

.imc-label {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.imc-scale {
  display: flex;
  height: 12px;
  border-radius: 50px;
  overflow: hidden;
  margin: 16px 0;
}

.imc-scale-seg {
  flex: 1;
  transition: opacity 0.3s;
}
.seg-bajo { background: #3b82f6; }
.seg-normal { background: var(--accent); }
.seg-sobrepeso { background: #f59e0b; }
.seg-obeso { background: #ef4444; }

.imc-indicator-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: left;
}

/* ============================================================
   EXERCISES
   ============================================================ */
.exercises-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.exercise-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.exercise-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent-glow);
  opacity: 0;
  transition: opacity 0.3s;
}

.exercise-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-4px);
}

.exercise-card:hover::after { opacity: 1; }

.ex-icon { font-size: 2.5rem; margin-bottom: 14px; position: relative; z-index: 1; }

.exercise-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 1px;
  color: var(--accent);
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.exercise-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.ex-examples {
  position: relative;
  z-index: 1;
}

.ex-examples strong {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.tag {
  display: inline-block;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.78rem;
  padding: 3px 10px;
  border-radius: 50px;
  margin: 3px 2px;
  font-weight: 600;
}

.tag.muscle-tag {
  background: var(--accent-glow);
  border-color: var(--border-accent);
  color: var(--accent);
  font-weight: 700;
}

.ex-muscles {
  position: relative;
  z-index: 1;
  margin-bottom: 12px;
}

.ex-muscles strong {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
  margin-bottom: 8px;
}

.exercise-card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  border: 1px solid var(--border);
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.exercise-card:hover .exercise-card-img {
  transform: scale(1.03);
  box-shadow: 0 0 20px var(--accent-glow);
}

/* ============================================================
   NUTRITION
   ============================================================ */
.macro-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.macro-card {
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--border);
  transition: transform 0.3s;
}

.macro-card:hover { transform: translateY(-4px); }

.macro-card.protein { background: linear-gradient(135deg, #1a0a0a, #2a1010); border-color: #ef4444; }
.macro-card.carbs   { background: linear-gradient(135deg, #1a150a, #2a2010); border-color: #f59e0b; }
.macro-card.fats    { background: linear-gradient(135deg, #0a1a0a, #102a10); border-color: var(--accent); }

[data-theme="light"] .macro-card.protein { background: #fff5f5; border-color: #fca5a5; }
[data-theme="light"] .macro-card.carbs   { background: #fffbeb; border-color: #fcd34d; }
[data-theme="light"] .macro-card.fats    { background: #f0fdf4; border-color: #86efac; }

.macro-icon { font-size: 2.2rem; margin-bottom: 12px; }

.macro-card h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.macro-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.macro-ratio {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: 8px;
}
[data-theme="light"] .macro-ratio { background: rgba(0,0,0,0.05); border-color: rgba(0,0,0,0.1); }

.macro-sources { font-size: 0.82rem; color: var(--text-muted); }

.diet-plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.diet-plan {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.diet-plan.volumen { border-left: 4px solid #ef4444; }
.diet-plan.definicion { border-left: 4px solid var(--accent-blue); }

.diet-plan h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.diet-plan p { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 16px; }

.diet-plan li {
  color: var(--text-secondary);
  font-size: 0.9rem;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}
.diet-plan li:last-child { border-bottom: none; }

/* ============================================================
   WEEKLY PLANNER
   ============================================================ */
.planner-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
  justify-content: flex-end;
}

.weekly-calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
}

.day-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  min-height: 140px;
  transition: border-color 0.2s;
}

.day-card:focus-within { border-color: var(--accent); }

.day-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 1px;
  color: var(--accent);
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.day-rest-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-body);
}

.day-rest-btn:hover, .day-rest-btn.rest-active {
  background: #ef4444;
  border-color: #ef4444;
  color: #fff;
}

.day-input {
  width: 100%;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 0.85rem;
  resize: none;
  outline: none;
  font-family: var(--font-body);
  height: 80px;
}

.day-card.rest-day { border-color: #ef4444; background: rgba(239,68,68,0.05); }
.day-card.rest-day .day-input { color: var(--text-muted); }

/* ============================================================
   PROGRESS
   ============================================================ */
.progress-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 40px;
  align-items: start;
}

.progress-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.progress-form h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 1px;
  margin-bottom: 20px;
  color: var(--accent);
}

.progress-charts {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.chart-container {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.chart-container h4 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 1px;
  margin-bottom: 16px;
  color: var(--accent);
}

canvas {
  width: 100% !important;
  max-height: 200px;
}

.progress-log {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.progress-log h4 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 1px;
  margin-bottom: 16px;
  color: var(--accent);
}

.progress-entry {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
}

.progress-entry:last-child { border-bottom: none; }

.progress-date { color: var(--text-muted); font-family: var(--font-mono); font-size: 0.8rem; }
.progress-values { display: flex; gap: 16px; color: var(--text-secondary); }
.progress-delete { background: none; border: none; color: #ef4444; cursor: pointer; font-size: 0.9rem; }

.empty-msg { color: var(--text-muted); text-align: center; padding: 20px; }

/* ============================================================
   SHARE & DOWNLOAD SECTION
   ============================================================ */
.share-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.share-section h4 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 1px;
  margin-bottom: 16px;
  color: var(--accent);
}

.share-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 50px;
  border: 1px solid var(--border);
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  letter-spacing: 0.5px;
}

.share-btn span {
  font-size: 1.1rem;
}

.share-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.share-btn.whatsapp-btn {
  border-color: #25d366;
  color: #25d366;
}
.share-btn.whatsapp-btn:hover {
  background: #25d366;
  color: #fff;
  box-shadow: 0 0 20px rgba(37, 211, 102, 0.3);
}

.share-btn.email-btn {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
}
.share-btn.email-btn:hover {
  background: var(--accent-blue);
  color: #fff;
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.share-btn.copy-btn {
  border-color: var(--accent);
  color: var(--accent);
}
.share-btn.copy-btn:hover {
  background: var(--accent);
  color: #000;
  box-shadow: var(--shadow-accent);
}

.share-btn.pdf-btn {
  border-color: #ef4444;
  color: #ef4444;
}
.share-btn.pdf-btn:hover {
  background: #ef4444;
  color: #fff;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.3);
}

.plan-download-section {
  grid-column: 1 / -1;
  margin-top: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.share-section-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 1px;
  color: var(--accent);
  margin-bottom: 16px;
}

/* ============================================================
   PLAN GENERATOR
   ============================================================ */
.generator-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.gen-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.input-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.gen-result {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.diet-toggle-btn {
  flex: 1;
  max-width: 200px;
  background: var(--bg-main);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  transition: all 0.3s;
}

.diet-toggle-btn.active {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
  box-shadow: var(--shadow-accent);
}

.plan-output h3 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  letter-spacing: 1px;
  color: var(--accent);
  margin-bottom: 20px;
}

.plan-section {
  margin-bottom: 20px;
  padding: 16px;
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--accent);
}

.plan-section h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 1px;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.plan-section ul { padding-left: 4px; }
.plan-section li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  padding: 3px 0;
}
.plan-section li::before { content: '▸ '; color: var(--accent); }

/* ============================================================
   TIER LIST
   ============================================================ */
.tier-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.tier-list { display: flex; flex-direction: column; gap: 16px; }

.tier-row {
  display: flex;
  gap: 12px;
  align-items: stretch;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.tier-row:hover { box-shadow: var(--shadow); }

.tier-label {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  min-height: 100px;
  font-family: var(--font-display);
  font-size: 2.5rem;
  letter-spacing: 2px;
  font-weight: 900;
  flex-shrink: 0;
  color: #000;
}

.tier-s .tier-label { background: var(--tier-s); }
.tier-a .tier-label { background: var(--tier-a); }
.tier-b .tier-label { background: var(--tier-b); }
.tier-c .tier-label { background: var(--tier-c); }

.tier-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 16px;
  flex: 1;
  align-items: flex-start;
  content: '';
  min-height: 80px;
}

.tier-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  cursor: pointer;
  transition: all 0.2s;
  min-width: 150px;
  position: relative;
}

.tier-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-accent);
}

.tier-card.expanded { min-width: 260px; }

.tier-card-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.tier-card-tag {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tier-card-exercises {
  display: none;
  margin-top: 10px;
  border-top: 1px solid var(--border);
  padding-top: 8px;
}

.tier-card.expanded .tier-card-exercises { display: block; }

.tier-card-exercises li {
  font-size: 0.82rem;
  color: var(--text-secondary);
  padding: 2px 0;
}
.tier-card-exercises li::before { content: '• '; color: var(--accent); }

.tier-card.hidden { display: none; }

/* ============================================================
   MODAL
   ============================================================ */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.modal-overlay.open { display: flex; }

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  animation: slideUp 0.3s ease;
}

.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  background: none;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  width: 32px; height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.2s;
}
.modal-close:hover { border-color: #ef4444; color: #ef4444; }

.modal-content h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 16px;
}

.modal-exercises { margin-top: 16px; }
.modal-exercises li {
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.9rem;
}
.modal-exercises li::before { content: '💪 '; }

/* ============================================================
   TOAST
   ============================================================ */
.toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--bg-card);
  border: 1px solid var(--accent);
  color: var(--text-primary);
  padding: 14px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  z-index: 9999;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s ease;
  max-width: 300px;
  box-shadow: var(--shadow-accent);
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 48px 5% 24px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 32px;
  gap: 40px;
}

.footer-brand p { color: var(--text-muted); font-size: 0.9rem; margin-top: 6px; }

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-links a {
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.9rem;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-logo {
  width: 50px;
  height: 50px;
  object-fit: contain;
  border-radius: 50%;
  margin-bottom: 8px;
  display: block;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* ============================================================
   CONTACT SECTION
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.contact-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.3s;
}

.contact-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-6px);
  box-shadow: var(--shadow-accent);
}

.contact-card:hover::before {
  transform: scaleX(1);
}

.contact-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.contact-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 12px;
}

.contact-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 16px;
  line-height: 1.5;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent-glow);
  border: 1px solid var(--border-accent);
  color: var(--accent);
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  transition: all 0.25s ease;
  text-decoration: none;
}

.contact-link:hover {
  background: var(--accent);
  color: #000;
  transform: translateY(-2px);
  box-shadow: var(--shadow-accent);
}

.contact-link-icon {
  font-size: 1.1rem;
}

.paypal-link {
  background: rgba(0, 112, 186, 0.1);
  border-color: rgba(0, 112, 186, 0.3);
  color: #0070ba;
}

[data-theme="dark"] .paypal-link {
  color: #00b4ff;
  border-color: rgba(0, 180, 255, 0.3);
  background: rgba(0, 180, 255, 0.1);
}

.paypal-link:hover {
  background: #0070ba;
  color: #fff;
  border-color: #0070ba;
}

[data-theme="dark"] .paypal-link:hover {
  background: #00b4ff;
  color: #000;
  border-color: #00b4ff;
}

.contact-note {
  font-size: 0.78rem !important;
  color: var(--text-muted) !important;
  margin-top: 8px !important;
  margin-bottom: 0 !important;
  font-family: var(--font-mono);
}

.contact-social {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.social-btn {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 50%;
  font-size: 1.4rem;
  transition: all 0.25s ease;
  text-decoration: none;
}

.social-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-4px) scale(1.1);
  box-shadow: var(--shadow-accent);
}

.social-btn.instagram-btn {
  background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  border-color: #e6683c;
  color: #fff;
}

.social-btn.instagram-btn:hover {
  transform: translateY(-4px) scale(1.15);
  box-shadow: 0 0 24px rgba(225, 48, 108, 0.4);
}

.ig-link {
  background: linear-gradient(135deg, rgba(240, 148, 51, 0.15), rgba(188, 24, 136, 0.15));
  border-color: #e6683c;
  color: #e6683c;
  margin-top: 12px;
}

[data-theme="dark"] .ig-link {
  color: #f09433;
  border-color: rgba(240, 148, 51, 0.4);
}

.ig-link:hover {
  background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: #fff;
  border-color: #e6683c;
}

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

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

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

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}

@keyframes spin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}

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

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--accent-glow); }
  50%       { box-shadow: 0 0 20px 8px var(--accent-glow); }
}

.highlight-pulse { animation: pulse 1.5s ease-in-out 3; }

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--accent-dim); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero { padding: 100px 5% 60px; flex-direction: column; text-align: center; min-height: auto; }
  .hero-buttons { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { display: none; }
  .calc-layout { grid-template-columns: 1fr; }
  .diet-plans { grid-template-columns: 1fr; }
  .generator-layout { grid-template-columns: 1fr; }
  .progress-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 64px; left: 0; right: 0;
    background: var(--nav-bg);
    flex-direction: column;
    padding: 20px;
    border-bottom: 1px solid var(--border);
    gap: 4px;
    backdrop-filter: blur(12px);
  }
  .nav-links.open { display: flex; }
  .nav-burger { display: block; }
  .nav-link { padding: 10px 16px; font-size: 0.9rem; }

  .section { padding: 60px 0; }
  .section-title { font-size: 2rem; }

  .body-types-grid { grid-template-columns: 1fr; }
  .macro-cards { grid-template-columns: 1fr; }
  .exercises-grid { grid-template-columns: 1fr 1fr; }

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

  .hero-title { font-size: 3.5rem; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .hero-logo { width: 200px; height: 200px; }

  .input-row { grid-template-columns: 1fr; }
  
  .modal { padding: 24px; width: 95%; }
  
  .share-buttons { justify-content: center; }
}

@media (max-width: 480px) {
  .exercises-grid { grid-template-columns: 1fr; }
  .weekly-calendar { grid-template-columns: 1fr; }
  .filter-group { flex-direction: column; align-items: flex-start; }
  .tier-row { flex-direction: column; }
  .tier-label { width: 100%; min-height: 50px; font-size: 1.5rem; }
  
  .hero-title { font-size: 2.5rem; }
  .section-title { font-size: 1.6rem; }
  .hero-logo { width: 160px; height: 160px; border-radius: 20px; }
  
  #dietOptionsToggle { flex-direction: column; }
  .diet-toggle-btn { max-width: 100%; }
  
  .share-buttons { flex-direction: column; }
  .share-btn { width: 100%; justify-content: center; }
}
