:root {
  /* Color Palette - Softer, more eye-friendly colors */
  --primary: #6B7CFF;
  --primary-light: #8B9AFF;
  --primary-dark: #4A5AD9;
  --secondary: #FF8AAB;
  --accent: #FFB67A;
  --success: #6CCB9F;
  --warning: #FFB67A;
  --danger: #FF8A8A;
  --light: #F8FAFE;
  --dark: #2E3B4E;
  --gray: #5F6C84;
  --light-gray: #E4E9F2;
  --background: #F5F7FC;
  --card-bg: rgba(255, 255, 255, 0.95);
  --card-bg-solid: #FFFFFF;

  /* Gradients - Softer gradients */
  --gradient-primary: linear-gradient(135deg, #6B7CFF 0%, #8B6DFF 100%);
  --gradient-success: linear-gradient(135deg, #6CCB9F 0%, #4CAF85 100%);
  --gradient-warning: linear-gradient(135deg, #FFB67A 0%, #FF9F5A 100%);
  --gradient-danger: linear-gradient(135deg, #FF8A8A 0%, #FF6B6B 100%);
  --gradient-energy: linear-gradient(135deg, #6B7CFF, #8B6DFF);
  --gradient-protein: linear-gradient(135deg, #6CCB9F, #4CAF85);
  --gradient-carbs: linear-gradient(135deg, #FFB67A, #FF9F5A);
  --gradient-fats: linear-gradient(135deg, #FF8AAB, #FF6B97);

  /* Background gradients for cards */
  --gradient-card: linear-gradient(135deg, #FFFFFF, #F8FAFE);
  --gradient-light: linear-gradient(135deg, #F8FAFE, #F0F4FC);

  /* Typography */
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-accent: 'Libre Baskerville', Georgia, serif;

  /* Effects - Softer shadows */
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 16px 32px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 20px 40px rgba(107, 124, 255, 0.12);
  --glass-bg: rgba(255, 255, 255, 0.9);
  --glass-border: rgba(255, 255, 255, 0.3);
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-bounce: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-main);
  color: var(--dark);
  background-color: var(--background);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Background Elements - Softer colors and reduced opacity */
.bg-circle {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.08;
  z-index: -1;
}

.circle-1 {
  width: 400px;
  height: 400px;
  background: var(--primary-light);
  top: -150px;
  left: -150px;
  animation: floatCircle 25s ease-in-out infinite;
}

.circle-2 {
  width: 500px;
  height: 500px;
  background: var(--secondary);
  bottom: -200px;
  right: -200px;
  animation: floatCircle 30s ease-in-out infinite reverse;
  opacity: 0.06;
}

.circle-3 {
  width: 300px;
  height: 300px;
  background: var(--accent);
  top: 40%;
  left: 60%;
  transform: translate(-50%, -50%);
  animation: floatCircle 20s ease-in-out infinite;
  opacity: 0.05;
}

@keyframes floatCircle {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.05); }
  66% { transform: translate(-30px, 20px) scale(0.95); }
}

/* Main Container */
.main-container {
  max-width: 100%;
  margin: 0 auto;
  overflow: hidden;
}

/* Section Containers */
.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Navigation - Lighter, more transparent */
.glass-nav {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  box-shadow: var(--shadow-sm);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.nav-brand {
  display: flex;
  align-items: center;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--primary);
  gap: 10px;
  text-decoration: none;
  transition: var(--transition);
}

.nav-brand:hover {
  transform: scale(1.03);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 10px;
}

.nav-links a {
  text-decoration: none;
  color: var(--dark);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  padding: 8px 14px;
  border-radius: 30px;
  font-size: 0.95rem;
  position: relative;
  overflow: hidden;
}

.nav-links a::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--primary);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
  border-radius: 30px;
}

.nav-links a:hover {
  color: var(--primary);
  background: rgba(107, 124, 255, 0.08);
}

.nav-links a.active {
  color: white;
  background: var(--gradient-primary);
  box-shadow: var(--shadow-sm);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--dark);
  cursor: pointer;
  padding: 8px;
  transition: var(--transition);
}

.nav-toggle:hover {
  transform: rotate(90deg);
  color: var(--primary);
}

/* Medical Disclaimer - Softer background */
.medical-disclaimer {
  background: rgba(255, 255, 255, 0.95) !important;
  border-left: 4px solid var(--primary);
  padding: 16px 20px;
  margin: 20px auto;
  max-width: 1200px;
  display: flex;
  align-items: flex-start;
  gap: 15px;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  animation: slideInDown 0.5s ease;
  backdrop-filter: blur(8px);
}

@keyframes slideInDown {
  from {
    transform: translateY(-10px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.disclaimer-icon {
  color: var(--primary);
  font-size: 1.3rem;
  padding-top: 2px;
}

.disclaimer-content h4 {
  font-size: 1rem;
  margin-bottom: 4px;
  color: var(--dark);
  font-weight: 600;
}

.disclaimer-content p {
  font-size: 0.9rem;
  color: var(--gray);
  line-height: 1.5;
}

/* Hero Section - Cleaner layout */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 60px 20px 80px;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-content {
  flex: 1;
  max-width: 600px;
  animation: fadeInLeft 1s ease;
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.hero-title {
  font-family: var(--font-accent);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.2;
  color: var(--dark);
}

.title-line {
  display: block;
}

.accent {
  color: var(--primary);
  position: relative;
  display: inline-block;
}

.accent::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: 3px;
  opacity: 0.5;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--gray);
  margin-bottom: 30px;
  max-width: 500px;
  line-height: 1.6;
}

.hero-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--gradient-primary);
  color: white;
  text-decoration: none;
  border-radius: 40px;
  font-weight: 500;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  font-size: 1rem;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.hero-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.hero-illustration {
  position: relative;
  width: 380px;
  height: 380px;
  flex: 1;
  display: flex;
  justify-content: center;
  min-height: 300px;
  animation: fadeInRight 1s ease;
}

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

.illustration-circle {
  width: 100%;
  max-width: 380px;
  aspect-ratio: 1/1;
  border-radius: 50%;
  background: var(--gradient-primary);
  opacity: 0.08;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.illustration-img {
  width: 100%;
  max-width: 380px;
  height: auto;
  border-radius: 50%;
  position: relative;
  z-index: 1;
  animation: float 8s ease-in-out infinite;
  box-shadow: var(--shadow-lg);
  border: 4px solid white;
}

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

/* Calculator Section */
.calculator-section {
  padding: 40px 0 80px;
}

.calculator-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Glass Card - Softer, cleaner */
.glass-card {
  background: white;
  backdrop-filter: none;
  border-radius: 24px;
  padding: 30px;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.02);
}

.glass-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
  border-color: rgba(107, 124, 255, 0.1);
}

.calculator-card {
  margin-bottom: 30px;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  flex-wrap: wrap;
  gap: 15px;
}

.card-header h2 {
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--dark);
  font-weight: 600;
}

.card-header h2 i {
  color: var(--primary);
}

.theme-switch {
  display: flex;
  align-items: center;
}

.switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--light-gray);
  transition: var(--transition);
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: var(--transition);
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--primary);
}

input:checked + .slider:before {
  transform: translateX(24px);
}

.switch-label {
  margin-left: 10px;
  font-size: 0.9rem;
  color: var(--gray);
}

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

.input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.input-group label {
  font-weight: 500;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
}

.input-wrapper {
  position: relative;
}

/* Unified input and select styling - Clean and consistent */
.input-group select,
.input-group input[type="text"],
.input-group input[type="number"],
.input-group input[type="email"],
.input-group input[type="password"] {
  width: 100%;
  padding: 14px 18px;
  border: 1.5px solid var(--light-gray);
  border-radius: 16px;
  font-size: 0.95rem;
  transition: var(--transition);
  background: white;
  font-family: var(--font-main);
  color: var(--dark);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

/* Specific styling for select dropdowns */
.input-group select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B7CFF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  background-size: 16px;
  padding-right: 50px;
  cursor: pointer;
}

/* Hover state */
.input-group select:hover,
.input-group input:hover {
  border-color: var(--primary-light);
  background-color: #FAFBFF;
}

/* Focus state */
.input-group select:focus,
.input-group input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(107, 124, 255, 0.1);
  background-color: white;
}

/* Option styling */
.input-group select option {
  background: white;
  color: var(--dark);
  padding: 12px;
  font-size: 0.95rem;
}

/* Specific styling for age input */
.input-group input[type="number"]#calAge,
.input-group input[type="number"]#fatAge,
.input-group input[type="number"]#bmiAge {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B7CFF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3Cpolyline points='12 6 12 12 16 14'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  background-size: 16px;
  padding-right: 50px;
}

/* Remove spinners from number inputs */
.input-group input[type="number"] {
  appearance: textfield;
  -moz-appearance: textfield;
}

.input-group input[type="number"]::-webkit-outer-spin-button,
.input-group input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.input-unit {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
  background: white;
  padding: 2px 8px;
  border-radius: 20px;
  border: 1px solid var(--light-gray);
  pointer-events: none;
}

.input-wrapper:focus-within .input-unit {
  border-color: var(--primary);
  color: var(--primary);
}

/* Gender and age container */
.gender-age-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

/* Calculate Button - Cleaner */
.calculate-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 24px;
  background: var(--gradient-primary);
  color: white;
  border: none;
  border-radius: 40px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 10px;
  box-shadow: var(--shadow-sm);
}

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

.calculate-btn:active {
  transform: translateY(0);
}

/* Result Card Styling */
.result-card {
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 25px;
  background: white;
}

.result-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 30px;
  color: var(--gray);
}

.result-placeholder h3 {
  font-size: 1.4rem;
  color: var(--dark);
  margin: 15px 0 5px;
  font-weight: 600;
}

.placeholder-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(107, 124, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
}

.placeholder-icon i {
  font-size: 2rem;
  color: var(--primary);
}

/* Active Result Styling */
.result-content {
  width: 100%;
  text-align: center;
  padding: 25px;
  border-radius: 20px;
  background: var(--light);
  margin-bottom: 25px;
}

.result-value {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
}

.result-category {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 10px;
  padding: 6px 16px;
  border-radius: 30px;
  display: inline-block;
}

.result-description {
  font-size: 0.95rem;
  color: var(--gray);
  margin-top: 8px;
}

/* BMI Scale Visualization */
.result-visualization {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.bmi-scale {
  margin: 20px 0;
}

.scale-container {
  position: relative;
  padding: 20px 0 10px;
}

.scale-bar {
  display: flex;
  height: 24px;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
  margin-bottom: 10px;
  background: linear-gradient(90deg, 
    #4CC9F0 0%, 
    #4CC9F0 18.5%, 
    #4895EF 18.5%, 
    #4895EF 24.9%, 
    #4361EE 25%, 
    #4361EE 29.9%, 
    #F8961E 30%, 
    #F8961E 100%);
}

.scale-segment {
  flex: 1;
  position: relative;
}

.scale-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--gray);
  margin-top: 8px;
  font-weight: 500;
}

.scale-labels span {
  position: relative;
}

.scale-labels span::before {
  content: '';
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 8px;
  background: var(--light-gray);
}

.scale-marker {
  position: absolute;
  top: -8px;
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-top: 20px solid var(--primary);
  transform: translateX(-12px);
  transition: left 0.5s ease;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
  z-index: 10;
}

/* Health Recommendation */
.health-recommendation {
  background: var(--light);
  border-radius: 16px;
  padding: 25px;
}

.tips-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
}

.tips-header i {
  font-size: 1.3rem;
  color: var(--primary);
}

.tips-header h3 {
  font-size: 1.2rem;
  color: var(--dark);
  font-weight: 600;
}

.tips-text {
  line-height: 1.6;
  color: var(--gray);
}

.child-note {
  background: rgba(255, 182, 122, 0.1);
  padding: 12px 15px;
  border-radius: 12px;
  margin-top: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--dark);
  border-left: 3px solid var(--warning);
}

/* Color Classes for Results */
.underweight .result-category {
  background: rgba(76, 201, 240, 0.1);
  color: #4895EF;
}

.normal .result-category {
  background: rgba(72, 149, 239, 0.1);
  color: #4361EE;
}

.overweight .result-category {
  background: rgba(248, 150, 30, 0.1);
  color: #F8961E;
}

.obese .result-category {
  background: rgba(247, 37, 133, 0.1);
  color: #F72585;
}

/* Guide Section */
.guide-section {
  padding: 60px 0;
  background: var(--background);
}

.section-title {
  font-family: var(--font-accent);
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--dark);
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: 3px;
  opacity: 0.5;
}

.section-title i {
  color: var(--primary);
}

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

.guide-card {
  background: white;
  border-radius: 24px;
  padding: 30px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid rgba(0,0,0,0.02);
}

.guide-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(107, 124, 255, 0.1);
}

.guide-icon {
  width: 60px;
  height: 60px;
  border-radius: 20px;
  background: rgba(107, 124, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.6rem;
  margin-bottom: 20px;
  transition: var(--transition);
}

.guide-card:hover .guide-icon {
  background: var(--gradient-primary);
  color: white;
  transform: scale(1.05);
}

.guide-card h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--dark);
}

.guide-card p {
  color: var(--gray);
  line-height: 1.6;
  margin-bottom: 15px;
  font-size: 0.95rem;
}

.guide-card ul {
  list-style: none;
  padding-left: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--gray);
}

.guide-card li {
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.guide-card li i {
  color: var(--primary);
  margin-top: 3px;
  font-size: 0.9rem;
}

/* Method Selector */
.method-selector {
  display: flex;
  gap: 12px;
  margin-bottom: 25px;
  flex-wrap: wrap;
  background: var(--light);
  padding: 8px;
  border-radius: 40px;
}

.method-btn {
  flex: 1;
  min-width: 140px;
  padding: 12px 20px;
  background: transparent;
  border: none;
  border-radius: 30px;
  font-weight: 500;
  color: var(--gray);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.95rem;
}

.method-btn i {
  font-size: 1rem;
  transition: var(--transition);
}

.method-btn.active {
  background: white;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.method-btn:not(.active):hover {
  color: var(--primary);
  background: rgba(255,255,255,0.5);
}

/* Measurement Group */
.measurement-group {
  background: var(--light);
  border-radius: 20px;
  padding: 25px;
  margin-bottom: 25px;
  border: 1px solid rgba(0,0,0,0.02);
}

.measurement-group h3 {
  color: var(--primary);
  margin-bottom: 20px;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.measurement-group h3 i {
  font-size: 1.2rem;
}

/* Body Fat Scale - Additional styles */
.body-fat-scale-container {
  background: var(--light);
  padding: 25px;
  border-radius: 20px;
  margin: 25px 0;
}

.body-fat-scale {
  background: linear-gradient(90deg, 
    #4CC9F0 0%, 
    #4895EF 20%, 
    #4361EE 40%, 
    #F8961E 60%, 
    #F72585 80%);
  height: 24px;
  border-radius: 30px;
  margin: 25px 0 10px;
  position: relative;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}

.fat-marker {
  position: absolute;
  width: 6px;
  height: 40px;
  background: white;
  top: -8px;
  transform: translateX(-3px);
  border-radius: 3px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--primary);
  transition: left 0.6s ease;
  z-index: 10;
}

.fat-marker::before,
.fat-marker::after {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  background: white;
  border-radius: 50%;
  left: -2px;
  border: 1px solid var(--primary);
}

.fat-marker::before {
  top: -8px;
}

.fat-marker::after {
  bottom: -8px;
}

.fat-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 15px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--gray);
}

.fat-labels span {
  position: relative;
}

.fat-labels span::before {
  content: '';
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 10px;
  background: var(--light-gray);
}

/* Category Badge */
.category-badge {
  display: inline-block;
  padding: 8px 24px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 1rem;
  margin: 10px 0;
}

.essential-fat { 
  background: rgba(76, 201, 240, 0.1);
  color: #4CC9F0;
}
.athletes { 
  background: rgba(72, 149, 239, 0.1);
  color: #4895EF;
}
.fitness { 
  background: rgba(67, 97, 238, 0.1);
  color: #4361EE;
}
.acceptable { 
  background: rgba(248, 150, 30, 0.1);
  color: #F8961E;
}
.obese { 
  background: rgba(247, 37, 133, 0.1);
  color: #F72585;
}

/* Info Grid */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 15px;
  margin: 25px 0;
}

.info-card {
  background: var(--light);
  padding: 20px;
  border-radius: 16px;
  text-align: center;
  transition: var(--transition);
}

.info-card:hover {
  transform: translateY(-3px);
  background: white;
  box-shadow: var(--shadow-sm);
}

.info-card h4 {
  color: var(--gray);
  margin-bottom: 10px;
  font-size: 0.9rem;
  font-weight: 500;
}

.info-card p {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--primary);
  margin: 5px 0;
}

.info-card small {
  color: var(--gray);
  font-size: 0.8rem;
}

/* Activity Level */
.activity-level {
  background: var(--light);
  border-radius: 20px;
  padding: 25px;
  margin: 25px 0;
}

.activity-level h3 {
  color: var(--dark);
  margin-bottom: 15px;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.activity-option {
  background: white;
  border-radius: 16px;
  margin: 10px 0;
  border: 1px solid var(--light-gray);
  transition: var(--transition);
}

.activity-option:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.activity-option input[type="radio"] {
  display: none;
}

.activity-option label {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  cursor: pointer;
  border-radius: 16px;
  position: relative;
}

.activity-option input[type="radio"]:checked + label {
  background: rgba(107, 124, 255, 0.05);
  border: 1px solid var(--primary);
}

.activity-option label strong {
  font-size: 1rem;
  margin-bottom: 2px;
  display: block;
  color: var(--dark);
}

.activity-desc {
  color: var(--gray);
  font-size: 0.85rem;
}

.activity-option label::after {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  right: 20px;
  color: var(--primary);
  opacity: 0;
  transform: scale(0);
  transition: var(--transition);
}

.activity-option input[type="radio"]:checked + label::after {
  opacity: 1;
  transform: scale(1);
}

/* Goal Badges */
.goal-badge {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 30px;
  font-weight: 500;
  margin-right: 10px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
  font-size: 0.95rem;
}

.goal-badge.active {
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--shadow-sm);
}

.goal-badge:not(.active) {
  background: var(--light);
  color: var(--gray);
  border-color: var(--light-gray);
}

.goal-badge:not(.active):hover {
  background: white;
  color: var(--primary);
  border-color: var(--primary);
}

/* Calorie Meter */
.calorie-meter-container {
  background: var(--light);
  padding: 25px;
  border-radius: 20px;
  margin: 25px 0;
}

.calorie-meter {
  background: rgba(0,0,0,0.05);
  height: 24px;
  border-radius: 30px;
  margin: 15px 0;
  position: relative;
  overflow: hidden;
}

.calorie-fill {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: 30px;
  transition: width 0.8s ease;
}

/* Weight Change Indicator */
.weight-change {
  font-size: 1.2rem;
  padding: 16px;
  border-radius: 16px;
  margin: 20px 0;
  text-align: center;
  font-weight: 500;
}

.weight-loss {
  background: rgba(247, 37, 133, 0.1);
  color: #F72585;
}

.weight-maintain {
  background: rgba(67, 97, 238, 0.1);
  color: #4361EE;
}

.weight-gain {
  background: rgba(76, 201, 240, 0.1);
  color: #4CC9F0;
}

/* Macro Grid */
.macro-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin: 25px 0;
}

.macro-card {
  background: var(--light);
  padding: 20px 10px;
  border-radius: 16px;
  text-align: center;
  transition: var(--transition);
}

.macro-card:hover {
  transform: translateY(-3px);
  background: white;
  box-shadow: var(--shadow-sm);
}

.macro-card h4 {
  color: var(--gray);
  margin-bottom: 10px;
  font-size: 0.9rem;
  font-weight: 500;
}

.macro-value {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--dark);
  margin: 5px 0;
}

.macro-unit {
  font-size: 0.8rem;
  color: var(--gray);
}

/* Stats Grid */
.stats-grid {
  display: flex;
  justify-content: space-around;
  margin: 20px 0;
  padding: 20px;
  background: var(--light);
  border-radius: 20px;
}

.stat-item {
  text-align: center;
  position: relative;
}

.stat-item::after {
  content: '';
  position: absolute;
  right: -20px;
  top: 15%;
  height: 70%;
  width: 1px;
  background: var(--light-gray);
}

.stat-item:last-child::after {
  display: none;
}

.stat-label {
  color: var(--gray);
  font-size: 0.85rem;
  margin-bottom: 5px;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--dark);
}

.stat-unit {
  color: var(--gray);
  font-size: 0.8rem;
  margin-left: 2px;
}

/* FAQ Styles */
.faq-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
  max-width: 800px;
  margin: 0 auto;
}

.faq-card {
  background: white;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.02);
}

.faq-question {
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  background: white;
  transition: var(--transition);
}

.faq-question:hover {
  background: var(--light);
}

.faq-question h3 {
  font-size: 1rem;
  color: var(--dark);
  margin: 0;
  font-weight: 500;
}

.faq-question i {
  color: var(--primary);
  transition: var(--transition);
  font-size: 0.9rem;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 20px;
  background: var(--light);
}

.faq-answer p, .faq-answer ul {
  margin-bottom: 15px;
  color: var(--gray);
  font-size: 0.95rem;
}

.faq-card.active .faq-answer {
  max-height: 400px;
  padding: 20px;
}

.faq-card.active .faq-question i {
  transform: rotate(180deg);
}

/* Footer */
.main-footer {
  background: white;
  color: var(--dark);
  padding: 50px 0 30px;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  border-top: 1px solid var(--light-gray);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 30px;
}

.footer-brand {
  display: flex;
  align-items: center;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--primary);
  gap: 10px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links h3 {
  font-size: 1rem;
  margin-bottom: 5px;
  color: var(--dark);
  font-weight: 600;
}

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

.footer-links a:hover {
  color: var(--primary);
  transform: translateX(5px);
}

.footer-social {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.footer-social a {
  color: var(--gray);
  font-size: 1rem;
  transition: var(--transition);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-social a:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-3px);
}

.footer-copyright {
  text-align: center;
  color: var(--gray);
  font-size: 0.85rem;
  padding-top: 25px;
  border-top: 1px solid var(--light-gray);
}

/* Loading Spinner */
.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--light-gray);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 20px auto;
}

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

/* Error State */
.result-error {
  text-align: center;
  padding: 30px;
  color: var(--danger);
}

.result-error i {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: var(--danger);
}

.result-error h3 {
  margin-bottom: 8px;
  color: var(--danger);
  font-size: 1.2rem;
}

.result-error p {
  color: var(--gray);
  font-size: 0.95rem;
}

/* Additional Tips */
.additional-tips {
  margin-top: 20px;
  padding: 15px;
  background: var(--light);
  border-radius: 12px;
  border-left: 3px solid var(--primary);
}

.additional-tips h4 {
  color: var(--primary);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 600;
}

.additional-tips ul {
  margin-left: 20px;
  color: var(--gray);
}

.additional-tips li {
  margin-bottom: 5px;
  font-size: 0.95rem;
}

/* Table Styles */
.guide-card table {
  width: 100%;
  border-collapse: collapse;
  margin: 15px 0;
  font-size: 0.95rem;
}

.guide-card th {
  background: var(--light);
  color: var(--dark);
  padding: 12px;
  font-weight: 600;
  text-align: left;
}

.guide-card td {
  padding: 12px;
  border-bottom: 1px solid var(--light-gray);
  color: var(--gray);
}

.guide-card tr:last-child td {
  border-bottom: none;
}

/* Blog Styles */
.blog-post {
  cursor: pointer;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 15px;
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  font-size: 0.95rem;
}

.read-more:hover {
  gap: 10px;
  color: var(--primary-dark);
}

.read-more i {
  font-size: 0.8rem;
}

/* Blog Modal */
.blog-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.3);
  backdrop-filter: blur(5px);
  z-index: 2000;
  overflow-y: auto;
}

.blog-modal.active {
  display: block;
}

.modal-content {
  background: white;
  max-width: 700px;
  margin: 40px auto;
  border-radius: 24px;
  padding: 35px;
  position: relative;
  animation: modalSlideUp 0.4s ease;
  box-shadow: var(--shadow-lg);
}

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

.close-modal {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--gray);
  transition: var(--transition);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--light);
}

.close-modal:hover {
  background: var(--danger);
  color: white;
  transform: rotate(90deg);
}

.blog-meta {
  display: flex;
  gap: 15px;
  margin: 15px 0;
  color: var(--gray);
  font-size: 0.85rem;
  flex-wrap: wrap;
}

.blog-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 16px;
  margin: 15px 0;
  box-shadow: var(--shadow-sm);
}

.blog-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 15px 0;
}

.blog-tag {
  background: var(--light);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  color: var(--primary);
}

/* Notification */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: white;
  color: var(--dark);
  padding: 14px 22px;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 9999;
  animation: slideInRight 0.3s ease;
  border-left: 4px solid var(--success);
  font-size: 0.95rem;
}

.notification.error {
  border-left-color: var(--danger);
}

.notification.warning {
  border-left-color: var(--warning);
}

.notification i {
  font-size: 1.2rem;
}

.notification.success i {
  color: var(--success);
}

.notification.error i {
  color: var(--danger);
}

.notification.warning i {
  color: var(--warning);
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOutRight {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

/* Responsive Design */
@media (max-width: 992px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding: 40px 20px 60px;
  }

  .hero-content {
    margin-bottom: 40px;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-illustration {
    width: 300px;
    height: 300px;
  }
  
  .method-selector {
    border-radius: 30px;
  }
  
  .method-btn {
    min-width: 120px;
    padding: 10px 16px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: white;
    flex-direction: column;
    padding: 20px;
    box-shadow: var(--shadow-md);
    display: none;
    border-top: 1px solid var(--light-gray);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .hero-illustration {
    width: 260px;
    height: 260px;
  }

  .guide-card {
    padding: 25px;
  }
  
  .gender-age-container {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .macro-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .stats-grid {
    flex-direction: column;
    gap: 15px;
  }
  
  .stat-item::after {
    display: none;
  }
  
  .modal-content {
    margin: 20px;
    padding: 25px;
  }
  
  .fat-labels {
    font-size: 0.7rem;
  }
  
  .info-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 1.8rem;
  }

  .calculator-card,
  .result-card {
    padding: 20px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 25px;
  }

  .footer-brand,
  .footer-links {
    justify-content: center;
    align-items: center;
  }

  .footer-social {
    justify-content: center;
  }

  .medical-disclaimer {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .method-selector {
    flex-direction: column;
  }
  
  .method-btn {
    width: 100%;
  }
  
  .scale-labels {
    font-size: 0.7rem;
  }
}

/* Animation Keyframes */
@keyframes slideInDown {
  from {
    transform: translateY(-20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

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

@keyframes scaleIn {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Print Styles */
@media print {
  .glass-nav,
  .hero-button,
  .footer-social,
  .nav-toggle,
  .calculate-btn,
  .blog-modal,
  .notification {
    display: none !important;
  }
  
  body {
    background: white;
    color: black;
  }
  
  .glass-card {
    box-shadow: none;
    border: 1px solid #ddd;
  }
}
