/* ===========================
   CSS Custom Properties
   =========================== */
:root {
  --bg-primary: #08091a;
  --bg-secondary: #0d1030;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-card-hover: rgba(255, 255, 255, 0.08);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(0, 212, 255, 0.3);

  --text-primary: #f0f4ff;
  --text-secondary: rgba(240, 244, 255, 0.6);
  --text-muted: rgba(240, 244, 255, 0.35);

  --accent-cyan: #00d4ff;
  --accent-purple: #a855f7;
  --accent-pink: #ec4899;
  --accent-green: #10b981;

  --gradient-primary: linear-gradient(135deg, #00d4ff, #a855f7);
  --gradient-bg: linear-gradient(135deg, #08091a 0%, #0d1030 50%, #140a28 100%);

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --shadow-glow: 0 0 40px rgba(0, 212, 255, 0.15);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-button: 0 4px 24px rgba(0, 212, 255, 0.3);

  --font-main: 'Inter', sans-serif;
  --font-display: 'Outfit', sans-serif;

  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s ease;
}

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

html { scroll-behavior: smooth; }

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

a { text-decoration: none; color: inherit; }
button { border: none; cursor: pointer; font-family: inherit; }
input { font-family: inherit; }

/* ===========================
   Animated Background
   =========================== */
.bg-animated {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

#particleCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.4;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
  animation: orbFloat 8s ease-in-out infinite;
}
.orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, #00d4ff, transparent);
  top: -200px; left: -150px;
  animation-delay: 0s;
}
.orb-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #a855f7, transparent);
  top: 30%; right: -150px;
  animation-delay: 3s;
}
.orb-3 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #ec4899, transparent);
  bottom: -100px; left: 30%;
  animation-delay: 6s;
}

@keyframes orbFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-30px) scale(1.05); }
}

/* ===========================
   Navigation
   =========================== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 24px;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(8, 9, 26, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  height: 72px;
  gap: 32px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
}

.logo-icon svg { width: 28px; height: 28px; }
.logo-accent { background: var(--gradient-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

.nav-links {
  display: flex;
  gap: 32px;
  margin-left: auto;
}

.nav-link {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition-fast);
}
.nav-link:hover { color: var(--text-primary); }

.nav-cta {
  padding: 10px 24px;
  background: var(--gradient-primary);
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  color: white;
  transition: var(--transition);
  box-shadow: var(--shadow-button);
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 30px rgba(0, 212, 255, 0.4); }

.lang-toggle {
  padding: 7px 14px;
  border-radius: 50px;
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 0.5px;
}
.lang-toggle:hover {
  border-color: rgba(0, 212, 255, 0.4);
  color: var(--accent-cyan);
  background: rgba(0, 212, 255, 0.06);
}

/* ===========================
   Sections & Wrappers
   =========================== */
section {
  position: relative;
  z-index: 1;
}

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

.section-tag {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-cyan);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 12px;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 500px;
  margin: 0 auto;
}

/* ===========================
   Hero Section
   =========================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 100px 40px 60px;
  max-width: 1300px;
  margin: 0 auto;
  gap: 60px;
}

.hero-content { flex: 1; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(0, 212, 255, 0.06);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 50px;
  font-size: 0.82rem;
  color: var(--accent-cyan);
  font-weight: 500;
  margin-bottom: 24px;
}

.badge-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent-cyan);
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 540px;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  background: var(--gradient-primary);
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  color: white;
  transition: var(--transition);
  box-shadow: var(--shadow-button);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(0, 212, 255, 0.4);
}
.btn-primary svg { transition: transform 0.2s; }
.btn-primary:hover svg { transform: translateX(4px); }

.btn-ghost {
  padding: 16px 28px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  background: transparent;
  transition: var(--transition);
}
.btn-ghost:hover {
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.2);
  background: var(--bg-card);
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
}

.stat-card { text-align: center; }
.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat-label {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
}
.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border-color);
}

/* ===========================
   Hero Visual (Phone Mockup)
   =========================== */
.hero-visual {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  min-height: 520px;
}

.phone-mockup {
  width: 260px;
  height: 480px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 36px;
  overflow: hidden;
  position: relative;
  backdrop-filter: blur(20px);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255,255,255,0.1);
  animation: floatPhone 4s ease-in-out infinite;
}
@keyframes floatPhone {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.phone-screen {
  padding: 24px 16px;
  height: 100%;
  background: linear-gradient(160deg, rgba(0,212,255,0.05), rgba(168,85,247,0.05));
}

.phone-ui { display: flex; flex-direction: column; gap: 16px; }
.ui-header {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-align: center;
}

.ui-progress { display: flex; justify-content: center; }
.progress-ring { position: relative; width: 80px; height: 80px; }
.progress-ring svg { width: 100%; height: 100%; }
.ring-center {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.ui-exercises { display: flex; flex-direction: column; gap: 8px; }
.exercise-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 0.75rem;
  background: rgba(255,255,255,0.04);
  opacity: 0.6;
  transition: var(--transition);
}
.exercise-item.done { opacity: 0.9; background: rgba(16, 185, 129, 0.1); }
.exercise-item.active { opacity: 1; background: rgba(0, 212, 255, 0.1); border: 1px solid rgba(0, 212, 255, 0.2); }
.exercise-item.done .ex-icon { color: var(--accent-green); }
.exercise-item.active .ex-icon { color: var(--accent-cyan); }
.ex-name { flex: 1; }
.ex-time { font-size: 0.7rem; color: var(--text-muted); }
.pulse-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent-cyan);
  animation: pulse 1.5s infinite;
  display: inline-block;
}

.floating-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  backdrop-filter: blur(16px);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-card);
}
.card-kcal {
  right: 20px; top: 80px;
  animation: floatCard1 4s ease-in-out infinite;
}
.card-days {
  left: 10px; bottom: 100px;
  animation: floatCard2 4s ease-in-out infinite;
}
@keyframes floatCard1 {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-8px) rotate(-2deg); }
}
@keyframes floatCard2 {
  0%, 100% { transform: translateY(0) rotate(2deg); }
  50% { transform: translateY(-10px) rotate(2deg); }
}
.fc-icon { font-size: 1.4rem; }
.fc-val {
  display: block;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.fc-label { display: block; font-size: 0.65rem; color: var(--text-muted); margin-top: 2px; }

/* ===========================
   Features Section
   =========================== */
.features {
  padding: 100px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

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

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition);
  cursor: default;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.6s ease forwards;
}
.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(0, 212, 255, 0.2);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(0, 212, 255, 0.1);
}

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

.feature-icon {
  width: 56px; height: 56px;
  border-radius: var(--radius-md);
  background: rgba(0, 212, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: var(--transition);
}
.feature-icon svg { width: 32px; height: 32px; }
.feature-card:hover .feature-icon { background: rgba(0, 212, 255, 0.12); transform: scale(1.1); }

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 10px;
}

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

/* ===========================
   How It Works
   =========================== */
.how-it-works {
  padding: 80px 40px;
  background: rgba(255,255,255,0.02);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.steps-container {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  gap: 0;
  align-items: flex-start;
  justify-content: center;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
  position: relative;
}

.step-number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 900;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0.5;
  line-height: 1;
  margin-bottom: 16px;
}

.step-content h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.step-content p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 200px;
  margin: 0 auto;
}

.step-arrow {
  position: absolute;
  right: -10px;
  top: 20px;
  font-size: 1.5rem;
  color: var(--accent-cyan);
  opacity: 0.4;
}

/* ===========================
   Calculator Section
   =========================== */
.calculator-section {
  padding: 100px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

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

/* Form */
.calc-form {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.form-section { display: flex; flex-direction: column; gap: 20px; }

.form-section-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.3px;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-wrapper input {
  width: 100%;
  padding: 12px 48px 12px 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition);
  outline: none;
  -moz-appearance: textfield;
}
.input-wrapper input::-webkit-outer-spin-button,
.input-wrapper input::-webkit-inner-spin-button { -webkit-appearance: none; }
.input-wrapper input::placeholder { color: var(--text-muted); font-weight: 400; }
.input-wrapper input:focus {
  border-color: var(--accent-cyan);
  background: rgba(0, 212, 255, 0.06);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.input-unit {
  position: absolute;
  right: 14px;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
  pointer-events: none;
}

/* Gender Select */
.gender-select {
  display: flex;
  gap: 12px;
}

.gender-btn {
  flex: 1;
  padding: 12px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.gender-btn:hover { background: rgba(255,255,255,0.08); color: var(--text-primary); }
.gender-btn.active {
  background: rgba(0, 212, 255, 0.1);
  border-color: rgba(0, 212, 255, 0.4);
  color: var(--accent-cyan);
}

/* Time Slider */
.time-slider-wrap { display: flex; flex-direction: column; gap: 8px; }

input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--gradient-primary);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 212, 255, 0.5);
  transition: transform 0.2s;
}
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.2); }

.time-labels {
  display: flex;
  justify-content: space-between;
  padding: 0 10px;
  font-size: 0.68rem;
  color: var(--text-muted);
}

.time-display {
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Frequency / Goal / Intensity / Level Selects */
.frequency-select, .goal-select, .intensity-select, .level-select {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.freq-btn, .goal-btn, .intensity-btn, .level-btn {
  flex: 1;
  padding: 10px 8px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 500;
  transition: var(--transition);
  min-width: 48px;
}
.freq-btn:hover, .goal-btn:hover, .intensity-btn:hover, .level-btn:hover {
  background: rgba(255,255,255,0.09);
  color: var(--text-primary);
}
.freq-btn.active, .goal-btn.active, .level-btn.active {
  background: rgba(168, 85, 247, 0.12);
  border-color: rgba(168, 85, 247, 0.4);
  color: var(--accent-purple);
}

.level-btn, .intensity-btn { display: flex; align-items: center; gap: 6px; justify-content: center; }
.level-dot, .intensity-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: 2px solid currentColor;
  flex-shrink: 0;
}
.level-btn.active .level-dot { background: var(--accent-purple); }

.intensity-btn.mild.active { background: rgba(16, 185, 129, 0.12); border-color: rgba(16, 185, 129, 0.4); color: var(--accent-green); }
.intensity-btn.mild.active .intensity-dot { background: var(--accent-green); }

.intensity-btn.balanced.active { background: rgba(0, 212, 255, 0.12); border-color: rgba(0, 212, 255, 0.4); color: var(--accent-cyan); }
.intensity-btn.balanced.active .intensity-dot { background: var(--accent-cyan); }

.intensity-btn.aggressive.active { background: rgba(236, 72, 153, 0.12); border-color: rgba(236, 72, 153, 0.4); color: var(--accent-pink); }
.intensity-btn.aggressive.active .intensity-dot { background: var(--accent-pink); }

/* Generate Button */
.generate-btn {
  width: 100%;
  padding: 18px 32px;
  background: var(--gradient-primary);
  border-radius: 50px;
  color: white;
  font-size: 1rem;
  font-weight: 700;
  font-family: var(--font-display);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: var(--transition);
  box-shadow: var(--shadow-button);
  position: relative;
  overflow: hidden;
}
.generate-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.generate-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(0, 212, 255, 0.4);
}
.generate-btn:hover::before { opacity: 1; }
.generate-btn:active { transform: translateY(0); }

/* Loading state */
.generate-btn.loading .btn-text::after {
  content: '...';
  animation: loadDots 1s infinite;
}
@keyframes loadDots {
  0% { content: '.'; }
  33% { content: '..'; }
  66% { content: '...'; }
}

/* Results Panel */
.results-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 40px;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: sticky;
  top: 100px;
}

.results-placeholder {
  text-align: center;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.results-placeholder p {
  font-size: 0.9rem;
  line-height: 1.7;
}
.placeholder-icon {
  opacity: 0.5;
  animation: floatPlaceholder 3s ease-in-out infinite;
}
@keyframes floatPlaceholder {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Results Content */
.results-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
  animation: slideInResults 0.5s ease;
}
@keyframes slideInResults {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.result-header { text-align: center; padding-bottom: 20px; border-bottom: 1px solid var(--border-color); }
.result-greeting {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.result-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* BMI Card */
.bmi-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
}

.bmi-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.bmi-label { font-size: 0.82rem; color: var(--text-secondary); font-weight: 500; }
.bmi-value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}
.bmi-status {
  font-size: 0.75rem;
  padding: 4px 12px;
  border-radius: 50px;
  font-weight: 600;
}
.bmi-bar-wrap {
  height: 6px;
  background: rgba(255,255,255,0.1);
  border-radius: 3px;
  overflow: hidden;
  margin-top: 8px;
}
.bmi-bar {
  height: 100%;
  border-radius: 3px;
  transition: width 1s ease;
}

/* Metrics Grid */
.metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.metric-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
}

.metric-icon { font-size: 1.4rem; margin-bottom: 6px; }
.metric-value {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
}
.metric-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Plan Sections */
.plan-block {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.plan-block-header {
  padding: 14px 18px;
  background: rgba(0, 212, 255, 0.05);
  border-bottom: 1px solid var(--border-color);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.plan-block-body { padding: 16px 18px; }

/* Timeline Charts */
.timeline-body { padding: 10px 20px 24px; }
.timeline-wrap {
  width: 100%;
  overflow-x: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.timeline-wrap::-webkit-scrollbar { display: none; }

.timeline-svg {
  width: 100%;
  min-width: 500px;
  height: auto;
  display: block;
  overflow: visible;
}

.timeline-path {
  stroke-dasharray: 2000;
  stroke-dashoffset: 2000;
  animation: drawTimeline 1.5s ease-out forwards;
}

@keyframes drawTimeline {
  to { stroke-dashoffset: 0; }
}

.tl-label, .tl-weight, .tl-tag {
  text-anchor: middle;
  font-family: var(--font-main);
  opacity: 0;
  animation: fadeInNode 0.5s ease forwards 1.2s;
}

.tl-label {
  font-size: 11px;
  fill: var(--text-secondary);
  font-weight: 500;
}
.tl-label.tl-highlight {
  fill: var(--accent-purple);
  font-weight: 700;
}

.tl-weight {
  font-size: 10px;
  fill: var(--text-muted);
}

.tl-tag {
  font-size: 9px;
  font-weight: 600;
  fill: var(--accent-cyan);
}

.tl-node {
  opacity: 0;
  transform-origin: center;
  transform-box: fill-box;
  animation: popNode 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards 1s;
}

@keyframes popNode {
  0% { transform: scale(0); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes fadeInNode {
  to { opacity: 1; }
}

.timeline-empty {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  padding: 20px;
}

.schedule-day {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.schedule-day:last-child { border-bottom: none; }

.day-badge {
  flex-shrink: 0;
  width: 32px; height: 32px;
  border-radius: 8px;
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent-purple);
}

.day-info .day-title {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 4px;
}
.day-info .day-detail {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.nutrition-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 0.85rem;
}
.nutrition-item:last-child { border-bottom: none; }
.nutrition-name { color: var(--text-secondary); }
.nutrition-val {
  font-weight: 600;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tips-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tips-list li {
  font-size: 0.82rem;
  color: var(--text-secondary);
  padding-left: 16px;
  position: relative;
  line-height: 1.5;
}
.tips-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent-cyan);
}

/* Warning */
.result-warning {
  background: rgba(236, 72, 153, 0.05);
  border: 1px solid rgba(236, 72, 153, 0.2);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 0.78rem;
  color: rgba(236, 72, 153, 0.8);
  line-height: 1.6;
  text-align: center;
}

/* Export PDF Button */
.export-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 24px;
  border-radius: 50px;
  border: 1px solid rgba(0, 212, 255, 0.4);
  background: rgba(0, 212, 255, 0.06);
  color: var(--accent-cyan);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-display);
}
.export-btn:hover {
  background: rgba(0, 212, 255, 0.12);
  border-color: rgba(0, 212, 255, 0.6);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(0, 212, 255, 0.2);
}
.export-btn:active { transform: translateY(0); }
.export-btn:disabled {
  cursor: not-allowed;
  pointer-events: none;
}

/* Share Button */
.share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 24px;
  border-radius: 50px;
  border: 1px solid rgba(168, 85, 247, 0.4);
  background: rgba(168, 85, 247, 0.06);
  color: var(--accent-purple);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-display);
  margin-top: 16px;
}
.share-btn:hover {
  background: rgba(168, 85, 247, 0.12);
  border-color: rgba(168, 85, 247, 0.6);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(168, 85, 247, 0.2);
}
.share-btn:active { transform: translateY(0); }

/* Live Preview */
.live-preview {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}
.preview-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.preview-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
  animation: fadeIn 0.4s ease-out;
}
.preview-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.preview-value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.preview-sub {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.preview-hint {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
}

/* Clear Data Button */
.clear-data-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  font-size: 0.8rem;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 20px auto 0;
}
.clear-data-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Print Header (hidden normally) */
.print-header { display: none; }

/* ===========================
   Print / PDF Export Styles
   =========================== */
@media print {
  * { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }

  body { background: white !important; color: #111 !important; }

  /* Hide everything except results */
  .bg-animated, .navbar, .hero, .features, .how-it-works,
  .calculator-section .section-header, .calc-form,
  .results-placeholder, .export-btn, footer { display: none !important; }

  .calculator-section { padding: 24px !important; max-width: 100% !important; margin: 0 !important; }
  .calc-wrapper { display: block !important; }
  .results-panel {
    border: none !important; padding: 0 !important; background: white !important;
    min-height: unset !important; position: static !important;
    align-items: flex-start !important; box-shadow: none !important;
  }
  .results-content { gap: 14px !important; }

  /* Print header */
  .print-header {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 14px;
    margin-bottom: 14px;
    border-bottom: 2px solid #6C63FF;
  }
  .print-logo { font-size: 1.3rem; font-weight: 800; color: #6C63FF; letter-spacing: -0.02em; }
  .print-meta { text-align: right; font-size: 0.72rem; color: #888; line-height: 1.6; }

  /* Result header */
  .result-header { padding-bottom: 12px !important; border-bottom-color: #eee !important; }
  .result-greeting { color: #888 !important; }
  .result-title { -webkit-text-fill-color: #6C63FF !important; color: #6C63FF !important; background: none !important; }

  /* BMI */
  .bmi-card { background: #f8f9fa !important; border: 1px solid #e0e0e0 !important; break-inside: avoid; }
  .bmi-label { color: #555 !important; }
  .bmi-value { -webkit-text-fill-color: unset !important; }
  .bmi-bar-wrap { background: #e0e0e0 !important; }
  .bmi-bar { background: linear-gradient(90deg, #6C63FF, #a855f7) !important; }

  /* Metrics */
  .metrics-grid { break-inside: avoid; }
  .metric-card { background: #f8f9fa !important; border: 1px solid #e0e0e0 !important; }
  .metric-value { -webkit-text-fill-color: #6C63FF !important; color: #6C63FF !important; background: none !important; }
  .metric-label { color: #666 !important; }

  /* Plan blocks */
  .plan-block { background: #f8f9fa !important; border: 1px solid #e0e0e0 !important; break-inside: avoid; margin-bottom: 12px !important; }
  .plan-block-header { background: #ede9ff !important; color: #111 !important; border-bottom: 1px solid #ddd !important; }
  .schedule-day { border-bottom-color: #eee !important; }
  .day-badge { background: #ede9ff !important; border-color: #c4b5fd !important; color: #7c3aed !important; }
  .day-title { color: #111 !important; }
  .day-detail { color: #555 !important; }

  /* Nutrition */
  .nutrition-item { border-bottom-color: #eee !important; }
  .nutrition-name { color: #444 !important; }
  .nutrition-val { -webkit-text-fill-color: #6C63FF !important; color: #6C63FF !important; background: none !important; }

  /* Tips */
  .tips-list li { color: #444 !important; }
  .tips-list li::before { color: #6C63FF !important; }

  /* Warning */
  .result-warning { background: #fff8f8 !important; border-color: #fecdd3 !important; color: #be123c !important; }
}

/* ===========================
   Footer
   =========================== */
.footer {
  padding: 40px;
  border-top: 1px solid var(--border-color);
  position: relative;
  z-index: 1;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-logo .logo-text {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
}
.footer-logo p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.footer-note {
  flex: 1;
  max-width: 600px;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.6;
  text-align: right;
}

/* ===========================
   Animations & Utilities
   =========================== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Color helpers */
.text-cyan { color: var(--accent-cyan); }
.text-purple { color: var(--accent-purple); }
.text-green { color: var(--accent-green); }

/* BMI colors */
.bmi-underweight { color: #60a5fa; }
.bmi-normal { color: #10b981; }
.bmi-overweight { color: #f59e0b; }
.bmi-obese { color: #ef4444; }

.status-underweight { background: rgba(96, 165, 250, 0.15); color: #60a5fa; }
.status-normal { background: rgba(16, 185, 129, 0.15); color: #10b981; }
.status-overweight { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }
.status-obese { background: rgba(239, 68, 68, 0.15); color: #ef4444; }

/* ===========================
   Responsive
   =========================== */
@media (max-width: 1024px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding: 100px 32px 60px;
  }
  .hero-content { order: 1; }
  .hero-visual { order: 2; }
  .hero-subtitle { margin: 0 auto 36px; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }

  .calc-wrapper {
    grid-template-columns: 1fr;
  }
  .results-panel {
    position: static;
    min-height: 300px;
  }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hero { padding: 90px 20px 50px; }
  .features { padding: 60px 20px; }
  .how-it-works { padding: 60px 20px; }
  .calculator-section { padding: 60px 20px; }
  .calc-form, .results-panel { padding: 24px; }
  .form-row { grid-template-columns: 1fr; }
  .steps-container {
    flex-direction: column;
    align-items: center;
    gap: 32px;
  }
  .step-arrow { display: none; }
  .metrics-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .hero-badge { font-size: 0.72rem; }
  .hero-title { font-size: 2rem; }
  .features-grid { grid-template-columns: 1fr; }
  .metrics-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-note { text-align: center; }
}
