/* ═══════════════════════════════════════════
   TEAM SATPAL GYM — MASTER STYLESHEET
   Premium Glassmorphism + Modern UI
   ═══════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Oswald:wght@400;500;600;700&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700&display=swap');

/* ── CSS VARIABLES ── */
:root {
  --red: #e8002d;
  --dark-red: #b8001f;
  --gold: #ffd700;
  --bg: #0a0a0a;
  --bg2: #111111;
  --bg3: #1a1a1a;
  --card: #161616;
  --border: #2a2a2a;
  --text: #f0f0f0;
  --muted: #888888;
  --glass: rgba(14, 14, 14, 0.85);
  --px: clamp(16px, 5vw, 80px);
}

/* Light mode */
body.light {
  --bg: #f5f5f0;
  --bg2: #eeeeee;
  --bg3: #e0e0e0;
  --card: #ffffff;
  --border: #dddddd;
  --text: #111111;
  --muted: #666666;
  --glass: rgba(255, 255, 255, 0.85);
}

/* ── RESET & BASE ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', -apple-system, sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background 0.4s, color 0.4s;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--red); border-radius: 99px; }

/* ── TYPOGRAPHY ── */
.heading, h1, h2, h3 { font-family: 'Bebas Neue', cursive; letter-spacing: 2px; }
.sub { font-family: 'Oswald', sans-serif; }
.red { color: var(--red); }

/* ── BUTTONS ── */
.btn-primary {
  background: var(--red); color: #fff; padding: 13px 32px; border-radius: 4px;
  font-size: 13px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase;
  cursor: pointer; border: none; transition: all 0.3s; display: inline-flex;
  align-items: center; gap: 8px; font-family: 'DM Sans', sans-serif; text-decoration: none;
}
.btn-primary:hover {
  background: var(--dark-red); transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(232, 0, 45, 0.3);
}
.btn-outline {
  background: transparent; color: var(--text); padding: 13px 32px; border-radius: 4px;
  font-size: 13px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase;
  cursor: pointer; border: 2px solid var(--border); transition: all 0.3s;
  font-family: 'DM Sans', sans-serif; display: inline-flex; align-items: center;
  gap: 8px; text-decoration: none;
}
.btn-outline:hover { border-color: var(--text); transform: translateY(-2px); }

/* ── NAVBAR ── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 0 var(--px); height: 64px; display: flex; align-items: center;
  justify-content: space-between; background: var(--glass);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent; transition: all 0.4s;
}
.navbar.scrolled { border-bottom-color: var(--border); }
.nav-logo {
  cursor: pointer; font-family: 'Bebas Neue', cursive; font-size: 24px;
  display: flex; align-items: center; gap: 8px; color: var(--text); text-decoration: none;
}
.nav-logo .red { color: var(--red); }
.nav-right { display: flex; align-items: center; gap: 16px; }
.nav-links { display: flex; gap: 20px; list-style: none; }
.nav-links a {
  color: var(--muted); font-size: 12px; font-weight: 500; letter-spacing: 1px;
  text-transform: uppercase; text-decoration: none; position: relative;
  padding: 4px 0; transition: color 0.3s;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -2px; left: 0; width: 0;
  height: 2px; background: var(--red); transition: width 0.3s;
}
.nav-links a:hover, .nav-links a.active { color: #fff; }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

/* More dropdown */
.more-wrap { position: relative; }
.more-btn {
  background: none; border: none; color: var(--muted); font-size: 12px;
  font-weight: 500; letter-spacing: 1px; text-transform: uppercase; cursor: pointer;
  font-family: 'DM Sans', sans-serif; display: flex; align-items: center; gap: 4px;
}
.more-dropdown {
  display: none; position: absolute; top: calc(100% + 12px); right: 0;
  background: var(--card); border: 1px solid var(--border); border-radius: 12px;
  padding: 8px; min-width: 200px; z-index: 9999;
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}
.more-dropdown.open { display: block; }
.more-dropdown a {
  display: block; padding: 10px 14px; border-radius: 8px; font-size: 13px;
  color: var(--text); transition: background 0.2s; text-decoration: none;
}
.more-dropdown a:hover { background: rgba(232, 0, 45, 0.08); }

/* Theme toggle */
.theme-btn {
  background: none; border: 1px solid var(--border); border-radius: 99px;
  width: 36px; height: 36px; display: flex; align-items: center;
  justify-content: center; cursor: pointer; color: var(--text);
  transition: border-color 0.25s ease, color 0.25s ease;
}
.theme-btn:hover { border-color: var(--text); color: var(--red); }
.theme-btn .icon { width: 16px; height: 16px; }

/* Hamburger */
.hamburger {
  display: none; background: none; border: none; color: var(--text);
  cursor: pointer; padding: 6px; line-height: 0;
}
.hamburger .icon { width: 24px; height: 24px; }

/* Mobile menu */
.mobile-menu {
  display: none; position: fixed; top: 64px; left: 0; right: 0; bottom: 0;
  z-index: 999; background: var(--glass); backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px); overflow-y: auto; padding: 16px;
}
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: block; padding: 13px 16px; border-radius: 8px; font-size: 15px;
  font-family: 'Bebas Neue', cursive; letter-spacing: 2px; color: var(--text);
  text-decoration: none; margin-bottom: 2px;
}
.mobile-menu a:hover, .mobile-menu a.active {
  background: rgba(232, 0, 45, 0.08); color: var(--red);
}

/* ── SCROLL TOP & WHATSAPP ── */
.scroll-top {
  position: fixed; bottom: 20px; left: 20px; z-index: 998;
  width: 42px; height: 42px; border-radius: 99px; background: var(--red);
  color: #fff; border: none; cursor: pointer; display: none;
  align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(232, 0, 45, 0.4);
  transition: transform 0.25s ease, background 0.25s ease;
}
.scroll-top:hover { background: var(--dark-red); transform: translateY(-2px); }
.scroll-top .icon { width: 18px; height: 18px; color: #fff; }
.scroll-top.show { display: flex; }
.whatsapp-float {
  position: fixed; bottom: 24px; right: 16px; z-index: 9999;
  height: 52px; padding: 0 20px 0 16px; border-radius: 99px; background: #25D366;
  color: #fff; display: inline-flex; align-items: center; gap: 10px;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45); text-decoration: none;
  font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 600;
  letter-spacing: 0.3px; transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.whatsapp-float:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(37, 211, 102, 0.55); }
.whatsapp-float .icon { width: 24px; height: 24px; color: #fff; flex-shrink: 0; }
.whatsapp-float .wa-label { white-space: nowrap; }

/* ── PARTICLES ── */
.particles { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.particle {
  position: absolute; border-radius: 50%;
  animation: float-p linear infinite; opacity: 0;
}
body.light .particles { display: none; }

/* ── ANIMATIONS ── */
@keyframes float-p {
  0% { transform: translateY(100vh) rotate(0); opacity: 0; }
  10% { opacity: 0.2; } 90% { opacity: 0.05; }
  100% { transform: translateY(-80px) rotate(720deg); opacity: 0; }
}
@keyframes hero-in {
  from { opacity: 0; transform: translateY(25px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal.d1 { transition-delay: 0.1s; }
.reveal.d2 { transition-delay: 0.2s; }
.reveal.d3 { transition-delay: 0.3s; }
.reveal.d4 { transition-delay: 0.4s; }
.reveal.d5 { transition-delay: 0.5s; }

/* ── CARDS ── */
.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 14px; padding: 24px; transition: transform 0.3s, box-shadow 0.3s;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}
body.light .card:hover { box-shadow: 0 16px 48px rgba(0, 0, 0, 0.08); }
.card-static { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 24px; }

/* ── SECTION HELPERS ── */
.section { padding: clamp(40px, 6vw, 80px) var(--px); }
.section-alt { padding: clamp(40px, 6vw, 80px) var(--px); background: var(--bg2); }
.section-tag {
  font-size: 11px; letter-spacing: 4px; text-transform: uppercase;
  color: var(--red); margin-bottom: 14px; display: flex; align-items: center; gap: 12px;
}
.section-tag::before { content: ''; width: 40px; height: 2px; background: var(--red); }
.section-title {
  font-family: 'Bebas Neue', cursive; font-size: clamp(34px, 5vw, 64px);
  line-height: 0.95; margin-bottom: 16px; letter-spacing: 2px;
}
.section-sub { color: var(--muted); font-size: 15px; line-height: 1.7; max-width: 600px; }

/* ── PAGE HERO ── */
.page-hero {
  padding: clamp(40px, 6vw, 80px) var(--px); position: relative; overflow: hidden;
}
.page-hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #000, #1a0000, #000);
}
body.light .page-hero-bg {
  background: linear-gradient(135deg, #f5f5f0, #fff, #f5f5f0);
}
.page-hero-content { position: relative; z-index: 1; }
.page-hero-crumb { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.page-hero-title {
  font-family: 'Bebas Neue', cursive; font-size: clamp(40px, 7vw, 80px);
  line-height: 0.9; letter-spacing: 3px;
}

/* ── HOME HERO ── */
.hero {
  position: relative; height: 100vh; min-height: 600px;
  display: flex; align-items: center; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #000 0%, #1a0000 50%, #000 100%);
}
body.light .hero-bg {
  background: linear-gradient(135deg, #f5f5f0, #fff, #f5f5f0);
}
.hero-grid {
  position: absolute; inset: 0; opacity: 0.25;
  background-image: linear-gradient(var(--border) 1px, transparent 1px),
                     linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-content {
  position: relative; z-index: 2; padding: 0 var(--px); max-width: 900px;
}
.hero-badge {
  display: inline-block; background: var(--red); color: #fff;
  font-size: 11px; font-weight: 600; letter-spacing: 3px;
  text-transform: uppercase; padding: 6px 16px; margin-bottom: 24px;
  animation: hero-in 0.8s ease forwards;
}
.hero-title {
  font-size: clamp(44px, 8vw, 96px); line-height: 0.88;
  margin-bottom: 20px; animation: hero-in 0.8s ease 0.1s both;
}
.hero-sub {
  font-size: 16px; color: var(--muted); max-width: 500px;
  line-height: 1.7; margin-bottom: 36px; animation: hero-in 0.8s ease 0.3s both;
}
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; animation: hero-in 0.8s ease 0.5s both; }
.hero-stats {
  position: absolute; right: var(--px); bottom: 80px; z-index: 2;
  display: flex; flex-direction: column; gap: 28px;
  animation: hero-in 0.8s ease 0.7s both;
}
.stat-num { font-family: 'Bebas Neue', cursive; font-size: 52px; line-height: 1; }
.stat-label { font-size: 11px; letter-spacing: 3px; text-transform: uppercase; color: var(--muted); }

/* ── MARQUEE ── */
.marquee-wrap { background: var(--red); padding: 13px 0; overflow: hidden; }
.marquee-track {
  display: flex; animation: marquee 22s linear infinite; width: max-content;
}
.marquee-item {
  font-family: 'Bebas Neue', cursive; font-size: 18px; letter-spacing: 3px;
  color: #fff; padding: 0 36px; white-space: nowrap;
}

/* ── GRIDS ── */
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1px; background: var(--border); }
.grid-4 > * { background: var(--card); }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }

/* ── ICON BOX ── */
.icon-box {
  width: 52px; height: 52px; border-radius: 12px;
  background: rgba(232, 0, 45, 0.1); display: flex;
  align-items: center; justify-content: center; color: var(--red);
  margin-bottom: 18px; font-size: 22px;
}
.avatar {
  width: 36px; height: 36px; border-radius: 99px; background: var(--red);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-family: 'Bebas Neue', cursive; font-size: 16px;
}
.avatar-lg {
  width: 120px; height: 120px; border-radius: 99px; background: var(--red);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-family: 'Bebas Neue', cursive; font-size: 48px; margin: 0 auto 20px;
}

/* ── FORMS ── */
.form-input {
  width: 100%; padding: 14px 18px; background: var(--bg2);
  border: 1px solid var(--border); border-radius: 10px; color: var(--text);
  font-size: 15px; font-family: 'DM Sans', sans-serif; transition: border 0.3s;
}
.form-input:focus { outline: none; border-color: var(--red); }
.form-label {
  font-size: 11px; color: var(--muted); letter-spacing: 1px;
  text-transform: uppercase; margin-bottom: 6px; display: block;
}

/* ── TABLES ── */
.data-table { width: 100%; border-collapse: collapse; min-width: 600px; }
.data-table th {
  padding: 10px 16px; font-size: 12px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase;
  font-family: 'Oswald', sans-serif; text-align: center;
  border-bottom: 2px solid var(--red);
}
.data-table td {
  padding: 10px 16px; font-size: 14px; text-align: center;
  border-bottom: 1px solid var(--border);
}
.data-table th:first-child, .data-table td:first-child { text-align: left; }

/* ── MACRO BARS ── */
.macro-bar { margin-bottom: 10px; }
.macro-bar-header { display: flex; justify-content: space-between; font-size: 12px; margin-bottom: 4px; color: var(--muted); }
.macro-bar-header span:last-child { color: var(--text); font-weight: 600; }
.macro-bar-track { height: 6px; background: var(--border); border-radius: 99px; overflow: hidden; }
.macro-bar-fill { height: 100%; border-radius: 99px; transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1); }

/* ── TRACKER FOOD CARDS ── */
.food-card { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 20px; }
.food-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 10px; }
.food-name { font-size: 14px; font-weight: 600; margin-bottom: 3px; }
.food-cat { font-size: 10px; color: var(--red); letter-spacing: 1px; text-transform: uppercase; font-weight: 600; }
.food-cal { font-family: 'Bebas Neue', cursive; font-size: 26px; color: var(--red); line-height: 1; }
.ratio-bar { height: 5px; border-radius: 99px; overflow: hidden; display: flex; margin-bottom: 12px; }
.macro-pills { display: flex; gap: 8px; margin-bottom: 12px; }
.macro-pill { flex: 1; text-align: center; padding: 7px 0; border-radius: 8px; }
.macro-pill-val { font-size: 14px; font-weight: 700; }
.macro-pill-label { font-size: 9px; color: var(--muted); }
.food-actions { display: flex; gap: 8px; align-items: center; }
.gram-input {
  width: 65px; padding: 7px 8px; background: var(--bg2); border: 1px solid var(--border);
  border-radius: 8px; color: var(--text); font-size: 13px;
  font-family: 'DM Sans', sans-serif; text-align: center;
}
.gram-input:focus { outline: none; border-color: var(--red); }
.add-btn {
  margin-left: auto; background: var(--red); color: #fff; border: none;
  border-radius: 8px; padding: 7px 16px; font-size: 12px; font-weight: 600;
  cursor: pointer; font-family: 'DM Sans', sans-serif;
}

/* Category filter pills */
.cat-filters { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 20px; }
.cat-pill {
  background: rgba(128, 128, 128, 0.15); color: var(--muted); border: none;
  border-radius: 99px; padding: 7px 16px; font-size: 12px; font-weight: 600;
  cursor: pointer; white-space: nowrap; font-family: 'DM Sans', sans-serif;
  transition: all 0.3s;
}
.cat-pill.active { background: var(--red); color: #fff; }

/* Search bar */
.search-wrap { position: relative; margin-bottom: 16px; }
.search-icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 17px; }
.search-input {
  width: 100%; padding: 15px 40px 15px 46px; background: var(--card);
  border: 1px solid var(--border); border-radius: 12px; color: var(--text);
  font-size: 15px; font-family: 'DM Sans', sans-serif;
}
.search-input:focus { outline: none; border-color: var(--red); }
.search-clear {
  position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: var(--muted); cursor: pointer; font-size: 17px;
  display: none;
}
.search-clear.show { display: block; }

/* ── TOTALS CARD ── */
.totals-card { display: none; margin-bottom: 28px; }
.totals-card.show { display: block; }
.totals-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 14px; }
.total-item { text-align: center; }
.total-val { font-family: 'Bebas Neue', cursive; font-size: 28px; line-height: 1; }
.total-label { font-size: 10px; color: var(--muted); letter-spacing: 1px; text-transform: uppercase; }
.tracked-items { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 6px; }
.tracked-tag {
  background: rgba(232, 0, 45, 0.08); border: 1px solid rgba(232, 0, 45, 0.2);
  border-radius: 99px; padding: 4px 12px; font-size: 11px;
  display: inline-flex; align-items: center; gap: 6px;
}
.tracked-tag button {
  background: none; border: none; color: var(--red);
  cursor: pointer; padding: 0; font-size: 12px;
}

/* ── BMI ── */
.bmi-scale { height: 8px; border-radius: 99px; background: linear-gradient(90deg, #f59e0b 0%, #22c55e 30%, #22c55e 50%, #f97316 70%, #ef4444 100%); position: relative; margin: 0 auto 22px; max-width: 380px; }
.bmi-marker { position: absolute; top: -5px; width: 18px; height: 18px; border-radius: 99px; background: #fff; border: 3px solid #22c55e; transform: translateX(-50%); transition: left 0.6s; }
.bmi-labels { display: flex; justify-content: space-between; font-size: 10px; color: var(--muted); max-width: 380px; margin: 0 auto; }
.bmi-result { margin-top: 28px; text-align: center; animation: fadeUp 0.5s ease; }
.bmi-score { font-family: 'Bebas Neue', cursive; font-size: 64px; line-height: 1; }
.bmi-category { display: inline-block; font-weight: 700; font-size: 15px; padding: 8px 24px; border-radius: 99px; margin-bottom: 22px; font-family: 'Oswald', sans-serif; letter-spacing: 1px; }

/* ── FAQ ACCORDION ── */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  background: none; border: none; color: var(--text); padding: 18px 0;
  cursor: pointer; font-family: 'DM Sans', sans-serif; font-size: 15px;
  font-weight: 600; text-align: left;
}
.faq-q .arrow { transition: transform 0.3s; font-size: 14px; color: var(--muted); }
.faq-item.open .faq-q .arrow { transform: rotate(180deg); color: var(--red); }
.faq-a { display: none; padding: 0 0 18px; font-size: 14px; color: var(--muted); line-height: 1.7; }
.faq-item.open .faq-a { display: block; animation: fadeUp 0.3s ease; }

/* ── TIMELINE ── */
.timeline-item { display: flex; gap: 20px; margin-bottom: 32px; }
.timeline-year { min-width: 70px; text-align: right; }
.timeline-year span { font-family: 'Bebas Neue', cursive; font-size: 28px; color: var(--red); }
.timeline-line { width: 3px; background: var(--border); border-radius: 99px; position: relative; flex-shrink: 0; }
.timeline-dot { position: absolute; top: 6px; left: -5px; width: 13px; height: 13px; border-radius: 99px; background: var(--red); border: 3px solid var(--card); }

/* ── STAR RATING ── */
.stars { display: flex; gap: 3px; color: #ffd700; font-size: 14px; margin-bottom: 12px; }

/* ── CHECK LIST ── */
.check-item { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.check-icon { color: #22c55e; font-size: 16px; flex-shrink: 0; }

/* ── DIET PLAN TABS ── */
.plan-tabs { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 36px; }
.plan-tab {
  flex: 1 1 200px; background: var(--card); border: 2px solid var(--border);
  border-radius: 12px; padding: 18px 22px; cursor: pointer; color: var(--text);
  text-align: left; transition: all 0.3s; font-family: 'DM Sans', sans-serif;
}
.plan-tab.active { border-color: var(--red); background: rgba(232, 0, 45, 0.07); }
.plan-tab[data-color="gold"].active { border-color: #ffd700; background: rgba(255, 215, 0, 0.07); }
.plan-tab[data-color="blue"].active { border-color: #00c8ff; background: rgba(0, 200, 255, 0.07); }

/* ── MEAL TIMELINE ── */
.meal-item { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 14px; }
.meal-time { min-width: 55px; text-align: center; }
.meal-time-h { font-size: 14px; font-weight: 700; font-family: 'Oswald', sans-serif; }
.meal-time-p { font-size: 9px; color: var(--muted); letter-spacing: 1px; text-transform: uppercase; }
.meal-line { width: 2px; background: var(--border); border-radius: 99px; align-self: stretch; position: relative; }
.meal-dot { position: absolute; top: 4px; left: -4px; width: 10px; height: 10px; border-radius: 99px; border: 2px solid var(--card); }

/* ── FOOTER ── */
.footer { border-top: 1px solid var(--border); padding: 48px var(--px) 24px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; margin-bottom: 32px; }
.footer-title { font-family: 'Oswald', sans-serif; font-size: 14px; font-weight: 600; letter-spacing: 1px; margin-bottom: 12px; text-transform: uppercase; }
.footer-link { display: block; color: var(--muted); font-size: 13px; padding: 4px 0; text-decoration: none; transition: color 0.3s; }
.footer-link:hover { color: var(--red); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; font-size: 12px; color: var(--muted); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .nav-links, .more-wrap { display: none !important; }
  .whatsapp-float {
    padding: 0;
    width: 54px;
    height: 54px;
    gap: 0;
    bottom: 24px;
    right: 16px;
    justify-content: center;
  }
  .whatsapp-float .wa-label { display: none; }
  .hamburger { display: flex !important; }
  .hero-stats { display: none !important; }
}
@media (max-width: 600px) {
  .grid-2 { grid-template-columns: 1fr; }
  .hero-title { font-size: clamp(36px, 10vw, 60px) !important; }
}

/* ── EMPTY STATE ── */
.empty-state { text-align: center; padding: 48px 20px; color: var(--muted); }
.empty-state .icon { font-size: 40px; margin-bottom: 12px; opacity: 0.3; }



/* ========== CARDIO ZONE GLOW / PULSE ANIMATION ========== */
.cardio-glow {
  position: relative;
  overflow: hidden;
}
.cardio-glow::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(45deg, #e8002d, #00c8ff, #e8002d, #ff6b35);
  background-size: 400% 400%;
  animation: glowPulse 4s ease infinite;
  z-index: -1;
  opacity: .5;
}
.cardio-glow::after {
  content: '';
  position: absolute;
  inset: 2px;
  border-radius: inherit;
  background: var(--card);
  z-index: -1;
}
@keyframes glowPulse {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ========== SHIMMER ANIMATION FOR APP BANNER ========== */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* ========== ANIMATED EQUIPMENT ICONS ========== */
.equip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(232,0,45,.08);
  margin-bottom: 12px;
  transition: transform .3s, box-shadow .3s;
  animation: equipBounce 3s ease-in-out infinite;
}
.equip-icon:hover {
  transform: scale(1.15) rotate(5deg);
  box-shadow: 0 4px 16px rgba(232,0,45,.2);
}
.equip-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: #e8002d;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
@keyframes equipBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
.equip-icon:nth-child(1) { animation-delay: 0s; }

/* Stagger the bounce */
.card:nth-child(2) .equip-icon { animation-delay: .3s; }
.card:nth-child(3) .equip-icon { animation-delay: .6s; }
.card:nth-child(4) .equip-icon { animation-delay: .9s; }
.card:nth-child(5) .equip-icon { animation-delay: 1.2s; }
.card:nth-child(6) .equip-icon { animation-delay: 1.5s; }

/* ========== APP BANNER CARD ========== */
.app-banner-card {
  background: var(--card);
  text-align: center;
}

/* ========== PROGRAM DETAIL EXPAND ========== */
.program-detail { transition: all .3s ease; }
.program-detail.show { display: block !important; }

/* ========== HERO SPACING FIX ========== */
.hero { min-height: 550px; height: 95vh; }
.hero-title { margin-bottom: 14px !important; }
.hero-sub { margin-bottom: 28px !important; }

/* ========== CLICKABLE PROGRAM CARDS ========== */
.card[onclick] {
  transition: transform .25s ease, box-shadow .25s ease;
}
.card[onclick]:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(232,0,45,.15);
}
.card[onclick]::after {
  content: 'View Details →';
  display: block;
  margin-top: 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--red);
  opacity: 0;
  transition: opacity .25s;
}
.card[onclick]:hover::after {
  opacity: 1;
}

/* ========== CREATIVE STUDENT DISCOUNT BADGE ========== */
.student-badge {
  position: fixed;
  bottom: 90px;
  right: 20px;
  z-index: 998;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e8002d, #ff6b35, #e8002d);
  background-size: 300% 300%;
  animation: badgeGradient 4s ease infinite, badgeFloat 3s ease-in-out infinite;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 24px rgba(232,0,45,.4);
  transition: transform .3s, box-shadow .3s;
  border: 2px solid rgba(255,255,255,.2);
}
.student-badge:hover {
  transform: scale(1.12);
  box-shadow: 0 8px 36px rgba(232,0,45,.6);
}
.student-badge .badge-percent {
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -1px;
}
.student-badge .badge-label {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-top: 2px;
}
.student-badge .badge-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(232,0,45,.3);
  animation: ringPulse 2s ease-out infinite;
}
@keyframes badgeGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes badgeFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes ringPulse {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* ========== WELCOME POPUP / AD OVERLAY ========== */
.popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0,0,0,.7);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: popupFadeIn .4s ease;
}
.popup-overlay.hidden { display: none; }
@keyframes popupFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.popup-card {
  background: var(--bg);
  border: 2px solid var(--red);
  border-radius: 20px;
  max-width: 480px;
  width: 100%;
  position: relative;
  overflow: hidden;
  animation: popupSlideUp .5s ease;
}
@keyframes popupSlideUp {
  from { opacity: 0; transform: translateY(40px) scale(.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.popup-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg2);
  color: var(--text);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, transform .2s;
  z-index: 2;
}
.popup-close:hover {
  background: var(--red);
  color: #fff;
  transform: rotate(90deg);
}
.popup-top {
  background: linear-gradient(135deg, #e8002d, #ff4444);
  padding: 32px 28px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.popup-top::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: repeating-linear-gradient(
    45deg, transparent, transparent 20px,
    rgba(255,255,255,.03) 20px, rgba(255,255,255,.03) 40px
  );
  animation: popupStripes 20s linear infinite;
}
@keyframes popupStripes {
  from { transform: translateX(0); }
  to { transform: translateX(56px); }
}
.popup-bottom {
  padding: 24px 28px 28px;
  text-align: center;
}
.popup-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 2px;
  text-transform: uppercase;
}
.popup-divider::before,
.popup-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ═══════════════════════════════════════════
   ICON SYSTEM — inline SVG sprite
   ═══════════════════════════════════════════ */
.tsg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon {
  width: 18px; height: 18px;
  vertical-align: middle;
  fill: currentColor;
  flex-shrink: 0;
  display: inline-block;
}
.icon-sm { width: 14px; height: 14px; }
.icon-lg { width: 22px; height: 22px; }
.icon-xl { width: 32px; height: 32px; }
.icon-2xl { width: 48px; height: 48px; }

/* Star: always gold regardless of currentColor */
.icon-star, svg.icon use[href="#i-star"] { color: #FFD700; }
/* Check: red */
.icon-check { color: var(--red); }
/* X-mark: muted gray */
.icon-cross { color: #888; }
/* WhatsApp logo when used inline (CTA buttons, etc.): brand green */
.icon-wa { color: #25D366; }
/* Phone in nav-logo */
.nav-logo .icon { width: 22px; height: 22px; color: var(--red); }

/* ═══════════════════════════════════════════
   LOADING SCREEN
   ═══════════════════════════════════════════ */
#tsg-loader {
  position: fixed; inset: 0; z-index: 99999;
  background: #000; color: #fff;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column;
  transition: opacity 0.45s ease;
}
#tsg-loader.tsg-hide { opacity: 0; pointer-events: none; }
#tsg-loader .tsg-loader-text {
  font-family: 'Bebas Neue', cursive;
  font-size: clamp(28px, 6vw, 56px);
  letter-spacing: 6px;
  color: var(--red);
  text-align: center;
  line-height: 1.05;
  animation: tsg-loader-fade 0.6s ease both;
}
#tsg-loader .tsg-loader-bar {
  position: absolute; bottom: 0; left: 0;
  height: 3px; width: 0%;
  background: var(--red);
  box-shadow: 0 0 12px rgba(232, 0, 45, 0.6);
  animation: tsg-loader-progress 1.15s ease forwards;
}
@keyframes tsg-loader-fade {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes tsg-loader-progress {
  0%   { width: 0%;   opacity: 1; }
  60%  { width: 70%;  }
  100% { width: 100%; opacity: 0.85; }
}

/* ═══════════════════════════════════════════
   MOBILE MENU — divider between primary & "more" items
   ═══════════════════════════════════════════ */
.mobile-menu-divider {
  height: 1px; background: var(--border);
  margin: 12px 8px; opacity: 0.6;
}
.mobile-menu-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px; letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  padding: 6px 16px 4px; margin-top: 4px;
}

/* ═══════════════════════════════════════════
   POLISH IMPROVEMENTS
   ═══════════════════════════════════════════ */

/* Selection */
::selection { background: var(--red); color: #fff; }
::-moz-selection { background: var(--red); color: #fff; }

/* Focus ring (keyboard only) */
*:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
  border-radius: 2px;
}
button:focus-visible, a:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

/* Card image zoom on hover */
.card { overflow: hidden; }
.card img {
  transition: transform 0.5s ease;
  will-change: transform;
}
.card:hover img { transform: scale(1.04); }

/* "Open Now" / live status pulsing badge */
.badge-live {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 600; letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--red);
}
.badge-live::before {
  content: ''; width: 8px; height: 8px; border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 0 rgba(232, 0, 45, 0.55);
  animation: pulse-red 1.6s ease-out infinite;
}
@keyframes pulse-red {
  0%   { box-shadow: 0 0 0 0   rgba(232, 0, 45, 0.55); transform: scale(1); }
  70%  { box-shadow: 0 0 0 12px rgba(232, 0, 45, 0); transform: scale(1.05); }
  100% { box-shadow: 0 0 0 0   rgba(232, 0, 45, 0); transform: scale(1); }
}

/* ═══════════════════════════════════════════
   404 PAGE
   ═══════════════════════════════════════════ */
.error-wrap {
  min-height: calc(100vh - 64px);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 80px var(--px) 60px; text-align: center;
  position: relative;
}
.error-code {
  font-family: 'Bebas Neue', cursive;
  font-size: clamp(120px, 24vw, 240px);
  line-height: 0.9; letter-spacing: 4px;
  color: var(--red);
  text-shadow: 0 0 60px rgba(232, 0, 45, 0.25);
}
.error-title {
  font-family: 'Bebas Neue', cursive;
  font-size: clamp(28px, 5vw, 44px);
  letter-spacing: 3px;
  margin: 8px 0 14px;
}
.error-msg {
  max-width: 520px; color: var(--muted);
  font-size: 15px; line-height: 1.7; margin-bottom: 28px;
}
.error-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
