body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  margin: 0;
  padding: 0;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: white;
  overflow-x: hidden;
}

/* ===== Avatar Section ===== */
.avatar-section {
  position: relative;
  width: 100%;
  min-height: 300px;
  background: linear-gradient(135deg, #1e293b 0%, #334155 50%, #475569 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 0;
  overflow: hidden;
}

.avatar-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="1.5" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="80" r="1" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
  animation: floatPattern 20s linear infinite;
  pointer-events: none;
}

@keyframes floatPattern {
  0% { transform: translateY(0px) translateX(0px); }
  50% { transform: translateY(-10px) translateX(5px); }
  100% { transform: translateY(0px) translateX(0px); }
}

.avatar-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  max-width: 1200px;
  width: 100%;
  padding: 0 2rem;
  position: relative;
  z-index: 10;
}

/* ===== Avatar Styles ===== */
.avatar-left,
.avatar-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.doctor-avatar,
.runner-avatar {
  position: relative;
  width: 200px;
  height: 200px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin-bottom: 2rem;
}

.avatar-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
  transition: all 0.3s ease;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
}

.avatar-glow {
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  border-radius: 50%;
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
}

.doctor-glow {
  background: radial-gradient(circle, rgba(16, 185, 129, 0.3) 0%, transparent 70%);
}

.runner-glow {
  background: radial-gradient(circle, rgba(59, 130, 246, 0.3) 0%, transparent 70%);
}

/* Hover Effects */
.doctor-avatar:hover {
  transform: translateY(-10px) scale(1.05);
  animation: doctorWave 0.6s ease-in-out;
}

.doctor-avatar:hover .avatar-glow {
  opacity: 1;
  animation: pulse 2s infinite;
}

.runner-avatar:hover {
  transform: translateY(-5px) scale(1.05);
  animation: runnerBounce 0.8s ease-in-out infinite;
}

.runner-avatar:hover .avatar-glow {
  opacity: 1;
  animation: pulse 2s infinite;
}

@keyframes doctorWave {
  0%, 100% { transform: translateY(-10px) scale(1.05) rotate(0deg); }
  25% { transform: translateY(-15px) scale(1.08) rotate(-2deg); }
  75% { transform: translateY(-15px) scale(1.08) rotate(2deg); }
}

@keyframes runnerBounce {
  0%, 100% { transform: translateY(-5px) scale(1.05); }
  50% { transform: translateY(-15px) scale(1.08); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.1); opacity: 1; }
}

/* ===== CheckUp Button ===== */
.checkup-button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #10b981, #059669);
  border: none;
  border-radius: 25px;
  padding: 1rem 2rem;
  color: white;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
  position: relative;
  overflow: hidden;
}

.checkup-button:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 15px 40px rgba(16, 185, 129, 0.4);
}

.checkup-button:active {
  transform: translateY(-1px) scale(1.02);
}

.button-icon {
  font-size: 1.2rem;
}

/* ===== Mini Stats Cards ===== */
.mini-stats-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.mini-stats-container.active {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

.mini-stat-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 15px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  min-width: 80px;
  cursor: pointer;
  transition: all 0.3s ease;
  animation: orbitIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  animation-delay: var(--delay);
  transform: scale(0) rotate(0deg);
}

.mini-stat-card:hover {
  transform: scale(1.1) rotate(5deg);
  background: rgba(255, 255, 255, 0.25);
}

.mini-stat-card[data-stat="heart"] {
  top: -120px;
  left: 0;
  --orbit-angle: 0deg;
}

.mini-stat-card[data-stat="stress"] {
  top: -60px;
  right: -100px;
  --orbit-angle: 90deg;
}

.mini-stat-card[data-stat="energy"] {
  bottom: -60px;
  right: 0;
  --orbit-angle: 180deg;
}

.mini-stat-card[data-stat="sleep"] {
  top: -60px;
  left: -100px;
  --orbit-angle: 270deg;
}

@keyframes orbitIn {
  0% {
    transform: scale(0) rotate(calc(var(--orbit-angle) - 180deg));
    opacity: 0;
  }
  100% {
    transform: scale(1) rotate(var(--orbit-angle));
    opacity: 1;
  }
}

.mini-icon {
  font-size: 1.5rem;
}

.mini-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
  color: white;
}

/* ===== Runner Content ===== */
.runner-content {
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
}

.runner-content.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.counter-display {
  font-size: 4rem;
  font-weight: 800;
  color: #3b82f6;
  margin-bottom: 1rem;
  text-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
  animation: counterPulse 2s ease-in-out infinite;
}

@keyframes counterPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.tagline {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  animation: flipIn 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

@keyframes flipIn {
  0% {
    transform: rotateY(-90deg);
    opacity: 0;
  }
  100% {
    transform: rotateY(0deg);
    opacity: 1;
  }
}

/* ===== Hero Container ===== */
.hero-container {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Image Carousel with 3D Effects */
.image-carousel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.image-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1.1) rotateY(15deg);
  transition: all 1.5s cubic-bezier(0.4, 0, 0.2, 1);
  filter: brightness(0.7) contrast(1.1);
}

.image-slide.active {
  opacity: 1;
  transform: scale(1) rotateY(0deg);
}

.image-slide.next {
  transform: scale(0.9) rotateY(-15deg);
}

/* Gradient Overlay */
.gradient-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.4) 0%,
    rgba(16, 185, 129, 0.1) 25%,
    rgba(59, 130, 246, 0.1) 50%,
    rgba(147, 51, 234, 0.1) 75%,
    rgba(0, 0, 0, 0.5) 100%
  );
  z-index: 2;
}

/* Parallax Elements */
.parallax-element {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(45deg, rgba(16, 185, 129, 0.1), rgba(59, 130, 246, 0.1));
  backdrop-filter: blur(1px);
  z-index: 2;
  animation: float 6s ease-in-out infinite;
}

.parallax-1 {
  width: 200px;
  height: 200px;
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.parallax-2 {
  width: 150px;
  height: 150px;
  top: 60%;
  right: 15%;
  animation-delay: 2s;
}

.parallax-3 {
  width: 100px;
  height: 100px;
  bottom: 20%;
  left: 20%;
  animation-delay: 4s;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(180deg); }
}

/* Hero Content */
.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  color: white;
  max-width: 100%;
  padding: 0 20px;
}

.content-wrapper {
  max-width: 800px;
  margin: 0 auto;
}

/* Brand */
.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  animation: slideInDown 1s ease-out;
}

.logo-icon {
  font-size: 2.5rem;
  margin-right: 0.5rem;
  filter: drop-shadow(0 0 10px rgba(16, 185, 129, 0.5));
}

.brand-name {
  font-size: 1.8rem;
  font-weight: 700;
  background: linear-gradient(135deg, #10b981, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Main Headlines */
.main-headline {
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  animation: slideInUp 1s ease-out 0.3s both;
}

.headline-line {
  display: block;
  margin-bottom: 0.2rem;
}

.highlight {
  background: linear-gradient(135deg, #10b981, #3b82f6, #8b5cf6);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 3s ease-in-out infinite;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Subheadline */
.subheadline {
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  font-weight: 400;
  opacity: 0.9;
  margin-bottom: 3rem;
  animation: slideInUp 1s ease-out 0.6s both;
}

/* CTA Button */
.cta-button {
  position: relative;
  background: linear-gradient(135deg, #10b981, #3b82f6);
  border: none;
  border-radius: 50px;
  padding: 1.2rem 3rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: white;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
  animation: slideInUp 1s ease-out 0.9s both;
  margin-bottom: 2.5rem;
}

.cta-button:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 20px 40px rgba(16, 185, 129, 0.4);
}

.cta-button:active {
  transform: translateY(-1px) scale(1.02);
}

.button-glow {
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, #10b981, #3b82f6);
  border-radius: 50px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cta-button:hover .button-glow {
  opacity: 1;
  animation: buttonPulse 2s infinite;
}

.button-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.cta-button:hover .button-shine {
  left: 100%;
}

@keyframes buttonPulse {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.05); opacity: 1; }
}

/* Social Proof */
.social-proof {
  margin-bottom: 2.5rem;
  animation: slideInUp 1s ease-out 1.2s both;
}

.counter-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  animation: pulseGreen 2s infinite;
}

@keyframes pulseGreen {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.2); }
}

.counter-text {
  font-size: 0.95rem;
  opacity: 0.8;
}

.counter-number {
  font-weight: 600;
  color: #10b981;
}

/* Floating Elements */
.floating-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3;
}

.floating-element {
  position: absolute;
  font-size: 2rem;
  opacity: 0.6;
  animation: floatRandom 8s ease-in-out infinite;
}

.element-1 {
  top: 15%;
  left: 15%;
  animation-delay: 0s;
}

.element-2 {
  top: 25%;
  right: 20%;
  animation-delay: 1.5s;
}

.element-3 {
  bottom: 30%;
  left: 10%;
  animation-delay: 3s;
}

.element-4 {
  bottom: 20%;
  right: 15%;
  animation-delay: 4.5s;
}

.element-5 {
  top: 50%;
  left: 5%;
  animation-delay: 6s;
}

@keyframes floatRandom {
  0%, 100% { transform: translateY(0px) translateX(0px) rotate(0deg); }
  25% { transform: translateY(-15px) translateX(10px) rotate(90deg); }
  50% { transform: translateY(-10px) translateX(-5px) rotate(180deg); }
  75% { transform: translateY(-20px) translateX(15px) rotate(270deg); }
}

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

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

/* ===== Modal Styles ===== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(15px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 30px;
  padding: 3rem;
  max-width: 650px;
  width: 95%;
  max-height: 85vh;
  overflow: hidden;
  box-shadow: 
    0 25px 50px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transform: scale(0.8) translateY(60px);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.modal-overlay.active .modal-container {
  transform: scale(1) translateY(0);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 25px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  color: white;
}

.modal-close:hover {
  background: rgba(255, 107, 107, 0.3);
  transform: scale(1.1) rotate(90deg);
  box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
}

.modal-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.modal-header h3 {
  font-size: 2rem;
  font-weight: 700;
  color: white;
  margin: 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Modal Button Group */
.modal-button-group {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

/* Modal Action Buttons */
.modal-action-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 24px;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
  backdrop-filter: blur(10px);
  color: white;
  border: none;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.2);
  animation: pulse-glow 2s ease-in-out infinite alternate;
}

.modal-action-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.6s ease;
}

.modal-action-button:hover::before {
  left: 100%;
}

/* Blue Glow - Chat with AI Doctor */
.blue-glow {
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.5), 0 0 40px rgba(59, 130, 246, 0.3);
  border-color: rgba(59, 130, 246, 0.4);
}

.blue-glow:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 0 30px rgba(59, 130, 246, 0.8), 0 0 60px rgba(59, 130, 246, 0.4);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(37, 99, 235, 0.1) 100%);
}

/* Red Glow - Upload Symptoms */
.red-glow {
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.5), 0 0 40px rgba(239, 68, 68, 0.3);
  border-color: rgba(239, 68, 68, 0.4);
}

.red-glow:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 0 30px rgba(239, 68, 68, 0.8), 0 0 60px rgba(239, 68, 68, 0.4);
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(220, 38, 38, 0.1) 100%);
}

/* Green Glow - Health Tips */
.green-glow {
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.5), 0 0 40px rgba(34, 197, 94, 0.3);
  border-color: rgba(34, 197, 94, 0.4);
}

.green-glow:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 0 30px rgba(34, 197, 94, 0.8), 0 0 60px rgba(34, 197, 94, 0.4);
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.2) 0%, rgba(22, 163, 74, 0.1) 100%);
}

/* Sky Blue Glow - Track Steps */
.sky-blue-glow {
  box-shadow: 0 0 20px rgba(14, 165, 233, 0.5), 0 0 40px rgba(14, 165, 233, 0.3);
  border-color: rgba(14, 165, 233, 0.4);
}

.sky-blue-glow:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 0 30px rgba(14, 165, 233, 0.8), 0 0 60px rgba(14, 165, 233, 0.4);
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.2) 0%, rgba(2, 132, 199, 0.1) 100%);
}

/* Orange Glow - Calories Burned */
.orange-glow {
  box-shadow: 0 0 20px rgba(249, 115, 22, 0.5), 0 0 40px rgba(249, 115, 22, 0.3);
  border-color: rgba(249, 115, 22, 0.4);
}

.orange-glow:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 0 30px rgba(249, 115, 22, 0.8), 0 0 60px rgba(249, 115, 22, 0.4);
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.2) 0%, rgba(234, 88, 12, 0.1) 100%);
}

/* Vanilla Glow - Daily Fitness Goals */
.vanilla-glow {
  box-shadow: 0 0 20px rgba(245, 208, 154, 0.5), 0 0 40px rgba(245, 208, 154, 0.3);
  border-color: rgba(245, 208, 154, 0.4);
}

.vanilla-glow:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 0 30px rgba(245, 208, 154, 0.8), 0 0 60px rgba(245, 208, 154, 0.4);
  background: linear-gradient(135deg, rgba(245, 208, 154, 0.2) 0%, rgba(217, 179, 140, 0.1) 100%);
}

@keyframes pulse-glow {
  0% {
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
  }
  100% {
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.5);
  }
}

.modal-action-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.modal-action-button .button-icon {
  font-size: 1.5rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* Specific button hover effects */
.doctor-chat:hover {
  box-shadow: 
    0 15px 35px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    0 0 20px rgba(16, 185, 129, 0.4);
}

.upload-symptoms:hover {
  box-shadow: 
    0 15px 35px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    0 0 20px rgba(59, 130, 246, 0.4);
}

.health-tips:hover {
  box-shadow: 
    0 15px 35px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    0 0 20px rgba(251, 191, 36, 0.4);
}

.track-steps:hover {
  box-shadow: 
    0 15px 35px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    0 0 20px rgba(239, 68, 68, 0.4);
}

.calories-burned:hover {
  box-shadow: 
    0 15px 35px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    0 0 20px rgba(245, 101, 101, 0.4);
}

.fitness-goals:hover {
  box-shadow: 
    0 15px 35px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    0 0 20px rgba(139, 92, 246, 0.4);
}

/* Button shine effect */
.modal-action-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.modal-action-button:hover::before {
  left: 100%;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
}

.stat-card {
  text-align: center;
  padding: 2rem 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 25px;
  box-shadow: 
    0 15px 35px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateY(50px) scale(0.8);
  opacity: 0;
}

.stat-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.15);
}

.stat-card.animate {
  animation: bounceIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

.stat-card:nth-child(1) { animation-delay: 0.1s; }
.stat-card:nth-child(2) { animation-delay: 0.2s; }
.stat-card:nth-child(3) { animation-delay: 0.3s; }
.stat-card:nth-child(4) { animation-delay: 0.4s; }

@keyframes bounceIn {
  0% {
    transform: translateY(50px) scale(0.8);
    opacity: 0;
  }
  60% {
    transform: translateY(-10px) scale(1.05);
    opacity: 0.8;
  }
  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.stat-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  display: block;
  animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {
  0%, 100% { transform: translateY(0px) scale(1); }
  50% { transform: translateY(-8px) scale(1.1); }
}

.stat-label {
  font-size: 1.1rem;
  font-weight: 600;
  color: white;
  margin-bottom: 1.5rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.circular-progress {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.progress-ring {
  transform: rotate(-90deg);
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.3));
}

.progress-ring-circle {
  stroke-dasharray: 220;
  stroke-dashoffset: 220;
  stroke-linecap: round;
  transition: stroke-dashoffset 2s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-value {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.4rem;
  font-weight: 800;
  color: white;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

/* Confetti Styles */
.confetti-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 999;
  overflow: hidden;
}

.confetti-piece {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  animation: confettiFall 3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes confettiFall {
  0% {
    transform: translateY(-100vh) rotate(0deg) scale(1);
    opacity: 1;
  }
  100% {
    transform: translateY(100vh) rotate(720deg) scale(0.5);
    opacity: 0;
  }
}

/* ===== AI Doctor Chat Modal ===== */
.ai-chat-container {
  max-width: 500px;
  width: 90%;
  display: flex;
    flex-direction: column;
    height: 80vh; /* Give the container a defined height */
}

.ai-doctor-header {
  text-align: center;
  margin-bottom: 30px;
}

.ai-doctor-avatar {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(59, 130, 246, 0.5);
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
  animation: doctor-pulse 2s ease-in-out infinite alternate;
}

.doctor-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ai-doctor-greeting {
  font-size: 24px;
  font-weight: 700;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #feca57, #ff9ff3, #54a0ff);
  background-size: 400% 400%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: glowing-blink 3s ease-in-out infinite;
  text-shadow: 0 0 20px rgba(255, 107, 107, 0.5),
               0 0 40px rgba(78, 205, 196, 0.3),
               0 0 60px rgba(69, 183, 209, 0.2);
}

@keyframes glowing-blink {
  0% {
    opacity: 1;
    background-position: 0% 50%;
    text-shadow: 0 0 20px rgba(255, 107, 107, 0.8),
                 0 0 40px rgba(78, 205, 196, 0.6),
                 0 0 60px rgba(69, 183, 209, 0.4),
                 0 0 80px rgba(150, 206, 180, 0.3);
  }
  15% {
    opacity: 0.7;
    background-position: 25% 50%;
    text-shadow: 0 0 25px rgba(78, 205, 196, 0.9),
                 0 0 50px rgba(69, 183, 209, 0.7),
                 0 0 75px rgba(150, 206, 180, 0.5);
  }
  30% {
    opacity: 1;
    background-position: 50% 50%;
    text-shadow: 0 0 30px rgba(69, 183, 209, 1),
                 0 0 60px rgba(150, 206, 180, 0.8),
                 0 0 90px rgba(254, 202, 87, 0.6);
  }
  45% {
    opacity: 0.8;
    background-position: 75% 50%;
    text-shadow: 0 0 35px rgba(150, 206, 180, 0.9),
                 0 0 70px rgba(254, 202, 87, 0.7),
                 0 0 105px rgba(255, 159, 243, 0.5);
  }
  60% {
    opacity: 1;
    background-position: 100% 50%;
    text-shadow: 0 0 40px rgba(254, 202, 87, 1),
                 0 0 80px rgba(255, 159, 243, 0.8),
                 0 0 120px rgba(84, 160, 255, 0.6);
  }
  75% {
    opacity: 0.6;
    background-position: 75% 50%;
    text-shadow: 0 0 45px rgba(255, 159, 243, 0.9),
                 0 0 90px rgba(84, 160, 255, 0.7),
                 0 0 135px rgba(255, 107, 107, 0.5);
  }
  90% {
    opacity: 1;
    background-position: 25% 50%;
    text-shadow: 0 0 50px rgba(84, 160, 255, 1),
                 0 0 100px rgba(255, 107, 107, 0.8),
                 0 0 150px rgba(78, 205, 196, 0.6);
  }
  100% {
    opacity: 1;
    background-position: 0% 50%;
    text-shadow: 0 0 20px rgba(255, 107, 107, 0.8),
                 0 0 40px rgba(78, 205, 196, 0.6),
                 0 0 60px rgba(69, 183, 209, 0.4),
                 0 0 80px rgba(150, 206, 180, 0.3);
  }
  margin: 0;
}

.ai-chat-input-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 30px;
}

.health-input {
  padding: 16px 20px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  color: white;
  font-size: 16px;
  outline: none;
  transition: all 0.3s ease;
}

.health-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.health-input:focus {
  border-color: rgba(59, 130, 246, 0.6);
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

.send-query-btn {
  padding: 16px 24px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(102, 126, 234, 0.4);
}

.send-query-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.6s ease;
}

.send-query-btn:hover::before {
  left: 100%;
}

.send-query-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 0 30px rgba(102, 126, 234, 0.6);
}

@keyframes doctor-pulse {
  0% {
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
  }
  100% {
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.8);
  }
}

/* Mobile responsiveness for AI chat */
@media (max-width: 480px) {
  .ai-chat-container {
    padding: 2rem 1.5rem;
  }
  
  .doctor-avatar-img {
    width: 100px;
    height: 100px;
  }
  
  .ai-doctor-greeting {
    font-size: 1.3rem;
  }
  
  .health-input {
    padding: 0.9rem 1.2rem;
    font-size: 0.95rem;
  }
  
  .send-query-btn {
    padding: 0.9rem 1.5rem;
    font-size: 1rem;
  }
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
  .avatar-section {
    min-height: 250px;
    padding: 1.5rem 0;
  }
  
  .avatar-container {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 0 1rem;
  }
  
  .doctor-avatar,
  .runner-avatar {
    width: 150px;
    height: 150px;
    margin-bottom: 1.5rem;
  }
  
  .checkup-button {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
  }
  
  .counter-display {
    font-size: 3rem;
  }
  
  .tagline {
    font-size: 1.2rem;
  }
  
  .hero-content {
    padding: 0 15px;
  }
  
  .brand {
    margin-bottom: 1.5rem;
  }
  
  .logo-icon {
    font-size: 2rem;
  }
  
  .brand-name {
    font-size: 1.5rem;
  }
  
  .main-headline {
    margin-bottom: 1rem;
  }
  
  .subheadline {
    margin-bottom: 2rem;
  }
  
  .cta-button {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    margin-bottom: 2rem;
  }
  
  .parallax-element {
    display: none;
  }
  
  .floating-element {
    font-size: 1.5rem;
  }
  
  .modal-container {
    padding: 2rem;
    margin: 1rem;
    max-width: 95%;
  }
  
  .modal-button-group {
    gap: 1.2rem;
  }
  
  .modal-action-button {
    padding: 1rem 1.5rem;
    font-size: 1rem;
  }
  
  .modal-header h3 {
    font-size: 1.6rem;
  }
  
  .modal-action-button .button-icon {
    font-size: 1.3rem;
  }
}

@media (max-width: 480px) {
  .avatar-section {
    min-height: 200px;
    padding: 1rem 0;
  }
  
  .doctor-avatar,
  .runner-avatar {
    width: 120px;
    height: 120px;
    margin-bottom: 1rem;
  }
  
  .checkup-button {
    padding: 0.7rem 1.2rem;
    font-size: 0.9rem;
  }
  
  .counter-display {
    font-size: 2.5rem;
  }
  
  .tagline {
    font-size: 1rem;
  }
  
  .counter-wrapper {
    flex-direction: column;
    gap: 0.3rem;
  }
  
  .modal-container {
    padding: 1.5rem;
  }
  
  .modal-close {
    width: 40px;
    height: 40px;
    top: 15px;
    right: 20px;
  }
  
  .modal-action-button {
    padding: 0.9rem 1.2rem;
    font-size: 0.95rem;
    gap: 0.8rem;
  }
  
  .modal-action-button .button-icon {
    font-size: 1.2rem;
  }
}
/* =============================
   Hero Background Carousel Patch
============================= */
.hero-container {
  position: relative; /* <-- Add this line */
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  overflow: hidden;
}

/* Position Avatars inside Hero Section */
.doctor-avatar-wrapper,
.runner-avatar-wrapper {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 11; /* above overlay & carousel */
}

/* Doctor on left */
.doctor-avatar-wrapper {
  left: 5%;
  text-align: center;
}

/* Runner on right */
.runner-avatar-wrapper {
  right: 5%;
  text-align: center;
}

.doctor-avatar-wrapper img,
.runner-avatar-wrapper img {
  width: 180px;
  height: 180px;
  object-fit: contain;
}

/* Background Carousel */
.image-carousel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.image-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 2s ease-in-out; /* Smooth cinematic fade */
  z-index: 1;
}

.image-slide.active {
  opacity: 1;
}

/* Gradient Overlay */
.gradient-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.4), rgba(0,0,0,0.2));
  z-index: 2;
}
/* Avatars Popup Section */
.avatars-popup {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 5%;
  z-index: 10;
  pointer-events: auto;
}

.avatar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  transition: transform 0.3s ease;
  pointer-events: auto;
}

.avatar-item:hover {
  transform: scale(1.1);
}

.avatar-image {
  width: 180px;
  height: 180px;
  object-fit: contain;
  border-radius: 50%;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
  transition: all 0.3s ease;
}

.avatar-text {
  margin-top: 12px;
  font-size: 16px;
  font-weight: 600;
  color: white;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}
/* ===== Avatars in Hero ===== */
  
/* Style for the chat messages container */
#chatMessages {
    height: 350px; /* Or adjust to your preference */
    overflow-y: auto; /* Adds scrolling for long conversations */
    padding: 10px;
    background-color: #f4f6f8;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    gap: 12px; /* Space between messages */
  flex-grow: 1;
}

/* Base style for all message bubbles */
.chat-message-bubble {
    padding: 10px 15px;
    border-radius: 20px;
    max-width: 85%;
    word-wrap: break-word;
}

/* Style for AI messages (left side) */
.ai-message {
    background-color: #e5e5ea;
    color: #000;
    align-self: flex-start; /* Aligns to the left */
}

/* Style for User messages (right side) */
.user-message {
    background-color: #007aff;
    color: #fff;
    align-self: flex-end; /* Aligns to the right */
}
#uploadedFiles:not(:empty) {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.file-pill {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 10px 15px;
  font-size: 14px;
  color: white;
  text-align: center;
  word-break: break-all;
} 
/* ===== Health Tips Modal & Cards ===== */
.tips-modal-container {
  max-width: 900px; /* Make this modal wider for the cards */
}

.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  padding: 1rem;
  perspective: 1000px; /* Enables 3D space for children */
}

.tip-card {
  background-color: transparent;
  width: 100%;
  height: 320px;
  border: none;
  cursor: pointer;
}

.tip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.8s;
  transform-style: preserve-3d; /* This is key for the 3D flip */
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  border-radius: 20px;
}

/* This triggers the flip */
.tip-card:hover .tip-card-inner {
  transform: rotateY(180deg);
}

/* Position the front and back faces */
.tip-card-front, .tip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden; /* Safari */
  backface-visibility: hidden; /* Hides the back of the card face */
  border-radius: 20px;
  overflow: hidden;
}

/* Style the front of the card (with the image) */
.tip-card-front {
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  color: white;
}
.tip-card-front h4 {
  background: rgba(0,0,0,0.6);
  width: 100%;
  padding: 1rem;
  margin: 0;
  font-size: 1.3rem;
}

/* Style the back of the card (with the text) */
.tip-card-back {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  transform: rotateY(180deg); /* Start with the back face flipped */
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.tip-card-back h5 {
  font-size: 1.2rem;
  margin: 0 0 1rem 0;
  border-bottom: 2px solid rgba(255,255,255,0.5);
  padding-bottom: 0.5rem;
}
.tip-card-back p {
  font-size: 0.95rem;
  margin: 0;
}
/* Health Tips Modal Specific Styles */
.health-tips-modal-container {
  max-width: 800px;
  width: 95%;
  max-height: 90vh;
  padding: 2rem;
}

.tips-carousel-container {
  position: relative;
  width: 100%;
  height: 450px;
  overflow: hidden;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.tips-carousel {
  position: relative;
  width: 100%;
  height: 100%;
  perspective: 1000px;
}

.tip-card {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: translateX(100%) scale(0.8);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.tip-card.active {
  opacity: 1;
  transform: translateX(0) scale(1);
  z-index: 10;
}

.tip-card.prev {
  opacity: 0;
  transform: translateX(-100%) scale(0.8);
}

.tip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
  border-radius: 20px;
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.3),
    0 0 30px rgba(16, 185, 129, 0.2);
  animation: cardGlow 3s ease-in-out infinite alternate;
}

.tip-card:hover .tip-card-inner {
  transform: rotateY(180deg);
}

@keyframes cardGlow {
  0% {
    box-shadow: 
      0 20px 40px rgba(0, 0, 0, 0.3),
      0 0 20px rgba(16, 185, 129, 0.2);
  }
  100% {
    box-shadow: 
      0 25px 50px rgba(0, 0, 0, 0.4),
      0 0 40px rgba(59, 130, 246, 0.3);
  }
}

.tip-card-front,
.tip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 20px;
  overflow: hidden;
}

.tip-card-front {
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  position: relative;
}

.tip-card-front::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.1) 0%,
    rgba(0, 0, 0, 0.7) 100%
  );
}

.tip-card-front h4 {
  position: relative;
  z-index: 2;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  width: 100%;
  padding: 1.5rem;
  margin: 0;
  font-size: 1.4rem;
  font-weight: 700;
  color: white;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  border-top: 2px solid rgba(16, 185, 129, 0.5);
}

.tip-card-back {
  background: linear-gradient(135deg, #10b981 0%, #059669 50%, #047857 100%);
  transform: rotateY(180deg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.tip-card-back h5 {
  font-size: 1.3rem;
  font-weight: 700;
  color: white;
  margin: 0 0 1.5rem 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  border-bottom: 2px solid rgba(255, 255, 255, 0.3);
  padding-bottom: 1rem;
  width: 100%;
}

.tip-card-back p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.95);
  margin: 0;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.tip-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  animation: iconBounce 2s ease-in-out infinite;
}

@keyframes iconBounce {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-10px) scale(1.1); }
}

/* Carousel Indicators */
.carousel-indicators {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 20;
}

.indicator-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.indicator-dot:hover {
  background: rgba(255, 255, 255, 0.7);
  transform: scale(1.2);
}

.indicator-dot.active {
  background: #10b981;
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.6);
  transform: scale(1.3);
}

/* Responsive Design for Health Tips Modal */
@media (max-width: 768px) {
  .health-tips-modal-container {
    max-width: 95%;
    padding: 1.5rem;
  }
  
  .tips-carousel-container {
    height: 400px;
  }
  
  .tip-card-front h4 {
    font-size: 1.2rem;
    padding: 1.2rem;
  }
  
  .tip-card-back {
    padding: 1.5rem;
  }
  
  .tip-card-back h5 {
    font-size: 1.1rem;
  }
  
  .tip-card-back p {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .tips-carousel-container {
    height: 350px;
  }
  
  .tip-card-front h4 {
    font-size: 1.1rem;
    padding: 1rem;
  }
  
  .tip-card-back {
    padding: 1.2rem;
  }
  
  .tip-card-back h5 {
    font-size: 1rem;
  }
  
  .tip-card-back p {
    font-size: 0.9rem;
  }
  
  .tip-icon {
    font-size: 2rem;
  }
}
/* ============================= */
/* Health Tips Modal & Carousel  */
/* ============================= */

.health-tips-modal-container {
  width: 800px;
  max-width: 95%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  animation: fadeIn 0.4s ease-in-out;
}

.tips-carousel-container {
  position: relative;
  overflow: hidden;
  margin-top: 20px;
}

.tips-carousel {
  display: flex;
  transition: transform 0.6s ease;
  justify-content: center;
  align-items: center;
  min-height: 400px;
}

.tip-card {
  position: absolute;
  width: 100%;
  height: 400px;
  perspective: 1000px;
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.6s ease;
}

.tip-card.active {
  opacity: 1;
  transform: scale(1);
  z-index: 2;
}

.tip-card.prev {
  opacity: 0;
  transform: scale(0.8);
  z-index: 1;
}

.tip-card-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.8s;
}

.tip-card:hover .tip-card-inner {
  transform: rotateY(180deg);
}

.tip-card-front, .tip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 15px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.tip-card-front {
  background-size: cover;
  background-position: center;
  color: #fff;
  font-size: 1.6rem;
  font-weight: bold;
  text-shadow: 0 2px 6px rgba(0,0,0,0.6);
}

.tip-card-back {
  background: linear-gradient(135deg, #56ccf2, #2f80ed);
  transform: rotateY(180deg);
  color: #fff;
  text-align: center;
}

.tip-card-back h5 {
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.tip-card-back p {
  font-size: 1rem;
  line-height: 1.5;
}

.carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 15px;
}

.indicator-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}

.indicator-dot.active {
  background: #2f80ed;
  transform: scale(1.2);
}

/* Fade In Animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
/* Steps Modal Custom Styling */
.steps-modal-container {
  text-align: center;
  padding: 20px;
  max-width: 500px;
  width: 90%;
}

.steps-circle {
  width: 120px;
  height: 120px;
  margin: 20px auto;
  border-radius: 50%;
  background: radial-gradient(circle, #3b82f6 30%, #1e293b 90%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 25px rgba(59, 130, 246, 0.6);
  transition: all 0.3s ease;
  cursor: pointer;
  border: 3px solid rgba(59, 130, 246, 0.3);
}

.steps-circle:hover {
  transform: scale(1.05);
  box-shadow: 0 0 35px rgba(59, 130, 246, 0.8);
}

.steps-circle.tracking {
  background: radial-gradient(circle, #10b981 30%, #065f46 90%);
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.8);
  border-color: rgba(16, 185, 129, 0.5);
  animation: trackingPulse 2s ease-in-out infinite;
}

@keyframes trackingPulse {
  0%, 100% { 
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.8);
    transform: scale(1);
  }
  50% { 
    box-shadow: 0 0 40px rgba(16, 185, 129, 1);
    transform: scale(1.02);
  }
}

.shoe-icon {
  font-size: 3rem;
  animation: shoeIdle 2s infinite ease-in-out;
  transition: all 0.3s ease;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

@keyframes shoeIdle {
  0%, 100% { 
    transform: translateY(0) scale(1);
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
  }
  50% { 
    transform: translateY(-8px) scale(1.1);
    filter: drop-shadow(0 4px 12px rgba(59, 130, 246, 0.4));
  }
}

.shoe-jump {
  animation: shoeJump 0.6s ease-in-out infinite;
}

@keyframes shoeJump {
  0%, 100% { 
    transform: translateY(0) scale(1) rotate(0deg);
  }
  25% { 
    transform: translateY(-15px) scale(1.1) rotate(-5deg);
  }
  50% { 
    transform: translateY(-25px) scale(1.2) rotate(0deg);
  }
  75% { 
    transform: translateY(-15px) scale(1.1) rotate(5deg);
  }
}

.step-count-text,
.step-number {
  font-size: 1.2rem;
  margin: 15px 0;
  color: white;
  font-weight: 600;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.step-number {
  font-size: 3rem;
  font-weight: 800;
  color: #3b82f6;
  margin: 10px 0;
  text-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
  animation: numberPulse 2s ease-in-out infinite;
}

@keyframes numberPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.progress-bar {
  width: 80%;
  height: 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  margin: 15px auto;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.3);
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #10b981, #059669);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 13px;
  position: relative;
  overflow: hidden;
}

.progress-fill::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: progressShine 2s infinite;
}

@keyframes progressShine {
  0% { left: -100%; }
  100% { left: 100%; }
}

.steps-controls button {
  margin: 10px;
  padding: 8px 15px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: white;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.steps-controls button:hover {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

#stopTrackingBtn {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

#stopTrackingBtn:hover {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}

/* Reward Modal Styles */
.reward-modal-container {
  max-width: 500px;
  width: 90%;
  text-align: center;
  background: linear-gradient(135deg, #10b981 0%, #059669 50%, #047857 100%);
  border: 2px solid rgba(255, 255, 255, 0.3);
  animation: rewardAppear 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes rewardAppear {
  0% {
    transform: scale(0.3) rotate(-10deg);
    opacity: 0;
  }
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}

.reward-content {
  padding: 2rem;
}

.reward-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  animation: rewardBounce 1s ease-in-out infinite;
}

@keyframes rewardBounce {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-10px) scale(1.1); }
}

.reward-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: white;
  margin: 0 0 1rem 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  animation: titleGlow 2s ease-in-out infinite alternate;
}

@keyframes titleGlow {
  0% { text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3); }
  100% { text-shadow: 0 0 20px rgba(255, 255, 255, 0.8); }
}

.reward-message {
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.95);
  margin: 0 0 1rem 0;
  font-weight: 600;
}

.crypto-reward {
  font-size: 1.1rem;
  color: #fbbf24;
  font-weight: 700;
  margin: 0 0 2rem 0;
  text-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
  animation: cryptoGlow 1.5s ease-in-out infinite alternate;
}

@keyframes cryptoGlow {
  0% { 
    color: #fbbf24;
    text-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
  }
  100% { 
    color: #f59e0b;
    text-shadow: 0 0 20px rgba(245, 158, 11, 0.8);
  }
}

.claim-reward-btn {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  border: none;
  border-radius: 15px;
  padding: 1rem 2rem;
  color: white;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(251, 191, 36, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.claim-reward-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s ease;
}

.claim-reward-btn:hover::before {
  left: 100%;
}

.claim-reward-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 35px rgba(251, 191, 36, 0.6);
}

/* Enhanced Confetti Styles */
.confetti-piece {
  position: absolute;
  width: 10px;
  height: 10px;
  animation: confettiFall 3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.confetti-piece:nth-child(odd) {
  border-radius: 50%;
}

.confetti-piece:nth-child(even) {
  border-radius: 0;
  transform: rotate(45deg);
}

@keyframes confettiFall {
  0% {
    transform: translateY(-100vh) rotate(0deg) scale(1);
    opacity: 1;
  }
  100% {
    transform: translateY(100vh) rotate(720deg) scale(0.3);
    opacity: 0;
  }
}

/* Responsive Design for Steps Modal */
@media (max-width: 480px) {
  .steps-modal-container {
    padding: 1.5rem;
  }
  
  .steps-circle {
    width: 100px;
    height: 100px;
  }
  
  .shoe-icon {
    font-size: 2.5rem;
  }
  
  .step-number {
    font-size: 2.5rem;
  }
  
  .reward-title {
    font-size: 2rem;
  }
  
  .reward-icon {
    font-size: 3rem;
  }
}
/* === Calories Burned – minimal styles === */
#caloriesBurnedModal { display: none; }
#caloriesBurnedModal.active { display: flex; }

/* Activity buttons */
.activity-options {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 12px 0;
}
.activity-button {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(4px);
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, border-color .2s ease;
}
.activity-button:hover { transform: translateY(-1px); }
.activity-button.active {
  background: rgba(255, 99, 71, 0.25);
  border-color: rgba(255, 99, 71, 0.5);
}

/* Flame icon + subtle animations */
.flame-icon {
  font-size: 54px;
  text-align: center;
  margin: 8px auto;
  display: inline-block;
}
.flame-icon.pulse { animation: flamePulse .8s ease-in-out; }
.flame-icon.burst { animation: flameBurst .6s ease-in-out; }

@keyframes flamePulse {
  0% { transform: scale(1);   filter: drop-shadow(0 0 0px rgba(255,140,0,0)); }
  50%{ transform: scale(1.12);filter: drop-shadow(0 0 16px rgba(255,140,0,.6)); }
  100%{transform: scale(1);   filter: drop-shadow(0 0 0px rgba(255,140,0,0)); }
}
@keyframes flameBurst {
  0% { transform: scale(1); }
  40%{ transform: rotate(-8deg) scale(1.25); }
  100%{transform: rotate(0deg) scale(1); }
}

/* Progress bar (reuses your .progress-bar class if present) */
.calories-progress-bar {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  overflow: hidden;
  margin: 10px 0 6px;
}
#caloriesProgressFill {
  width: 0%;
  height: 100%;
  background: limegreen; /* JS will update */
  transition: width .4s ease, background .2s ease;
}
/* --- Calories Burned Visual Enhancements --- */

/* Modal entrance animation */
.calories-burned-modal-container {
  transform: scale(0.9);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
}
.modal-overlay.active .calories-burned-modal-container {
  transform: scale(1);
  opacity: 1;
}

/* Flame Icon Animation */
#flameIcon {
  font-size: 60px;
  text-align: center;
  animation: flamePulse 1.5s infinite alternate;
  color: orange;
}
@keyframes flamePulse {
  0% { transform: translateY(0) scale(1); color: orange; }
  50% { transform: translateY(-4px) scale(1.1); color: red; }
  100% { transform: translateY(0) scale(1); color: gold; }
}

/* Activity Buttons */
.activity-button {
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}
.activity-button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 12px rgba(255, 140, 0, 0.7);
}
.activity-button:active {
  transform: scale(0.95);
  background-color: rgba(255, 140, 0, 0.2);
}

/* Progress Bar Animation */
#caloriesProgressFill {
  transition: width 0.8s ease, background-color 0.6s ease;
}

/* =============================
   DAILY FITNESS GOALS MODAL
   ============================= */

.daily-goals-modal-container {
  max-width: 600px;
  width: 95%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem;
}

.daily-goals-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Streak Section */
.streak-section {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1rem;
  background: linear-gradient(135deg, rgba(255, 165, 0, 0.1), rgba(255, 69, 0, 0.1));
  border-radius: 15px;
  border: 1px solid rgba(255, 165, 0, 0.3);
}

.streak-icon {
  font-size: 2rem;
  animation: streak-pulse 2s ease-in-out infinite;
}

.streak-text {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.streak-label {
  font-size: 0.9rem;
  color: #666;
  font-weight: 500;
}

.streak-count {
  font-size: 1.8rem;
  font-weight: 700;
  color: #ff6b35;
  text-shadow: 0 0 10px rgba(255, 107, 53, 0.5);
}

@keyframes streak-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* Challenge Cards */
.challenge-cards-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.challenge-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 15px;
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.challenge-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.challenge-card.completed {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(22, 163, 74, 0.1));
  border-color: rgba(34, 197, 94, 0.5);
  animation: card-complete-glow 0.6s ease-out;
}

.challenge-text {
  font-size: 1.1rem;
  font-weight: 500;
  color: #333;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.challenge-emoji {
  font-size: 1.5rem;
}

.mark-done-btn {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  border: none;
  border-radius: 10px;
  padding: 0.7rem 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
  position: relative;
  overflow: hidden;
}

.mark-done-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.mark-done-btn:active {
  transform: scale(0.95);
}

.mark-done-btn.completed {
  background: linear-gradient(135deg, #6b7280, #4b5563);
  cursor: not-allowed;
  box-shadow: none;
}

.mark-done-btn.completed:hover {
  transform: none;
}

@keyframes card-complete-glow {
  0% { box-shadow: 0 0 0 rgba(34, 197, 94, 0.5); }
  50% { box-shadow: 0 0 30px rgba(34, 197, 94, 0.8); }
  100% { box-shadow: 0 0 0 rgba(34, 197, 94, 0.5); }
}

/* Progress Section */
.progress-section {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.progress-label {
  font-weight: 600;
  color: #333;
  text-align: center;
}

.daily-goals-progress-bar {
  width: 100%;
  height: 12px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}

.daily-goals-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #10b981, #059669);
  border-radius: 6px;
  transition: width 0.6s ease, background 0.3s ease;
  position: relative;
}

.daily-goals-progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: progress-shine 2s ease-in-out infinite;
}

@keyframes progress-shine {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* Motivational Text */
.motivational-text {
  text-align: center;
  font-size: 1.1rem;
  font-weight: 600;
  color: #4f46e5;
  margin: 0;
  min-height: 1.5rem;
  animation: motivational-fade-in 0.5s ease-out;
}

@keyframes motivational-fade-in {
  0% { opacity: 0; transform: translateY(10px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Reward Section */
.reward-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.reward-chest {
  font-size: 3rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.reward-chest.animate {
  animation: reward-chest-bounce 1s ease-out;
}

@keyframes reward-chest-bounce {
  0% { transform: scale(1) rotate(0deg); }
  25% { transform: scale(1.2) rotate(-5deg); }
  50% { transform: scale(1.3) rotate(5deg); }
  75% { transform: scale(1.1) rotate(-2deg); }
  100% { transform: scale(1) rotate(0deg); }
}

.daily-goals-reward-message {
  font-size: 1.2rem;
  font-weight: 700;
  color: #f59e0b;
  text-align: center;
  margin: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
  text-shadow: 0 0 15px rgba(245, 158, 11, 0.6);
}

.daily-goals-reward-message.show {
  opacity: 1;
  animation: reward-glow 2s ease-in-out infinite;
}

@keyframes reward-glow {
  0%, 100% { text-shadow: 0 0 15px rgba(245, 158, 11, 0.6); }
  50% { text-shadow: 0 0 25px rgba(245, 158, 11, 0.9); }
}

/* Responsive Design */
@media (max-width: 768px) {
  .daily-goals-modal-container {
    padding: 1.5rem;
  }
  
  .challenge-card {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .challenge-text {
    justify-content: center;
  }
}
/* Reward chest base */
.reward-chest {
  font-size: 4rem;
  cursor: pointer;
  transition: transform 0.3s ease-in-out;
  display: inline-block;
}

/* Chest open: bounce once + start glowing pulse */
.reward-chest.open {
  animation: chestPopup 1s ease forwards, chestPulse 2s ease-in-out infinite 1s;
  filter: drop-shadow(0 0 15px gold);
}

/* Bounce animation */
@keyframes chestPopup {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.5) rotate(-12deg); }
  60%  { transform: scale(1.3) rotate(12deg); }
  80%  { transform: scale(1.4) rotate(-6deg); }
  100% { transform: scale(1.2) rotate(0deg); }
}

/* Glowing pulsing loop */
@keyframes chestPulse {
  0%   { filter: drop-shadow(0 0 10px gold); transform: scale(1.2); }
  50%  { filter: drop-shadow(0 0 25px gold); transform: scale(1.25); }
  100% { filter: drop-shadow(0 0 10px gold); transform: scale(1.2); }
}
/* ============================
   Refined Avatars Positioning
   ============================ */

/* Avatars container inside hero */
.avatars-popup {
  position: absolute;
  top: 50%;  
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  max-width: 1100px; /* wider spread */
  display: flex;
  justify-content: space-between; /* push left & right */
  align-items: center;
  z-index: 10;
  padding: 0 40px; /* more padding */
  box-sizing: border-box;
}

/* Each avatar item */
.avatar-item {
  width: 130px;   
  height: 130px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.avatar-item:hover {
  transform: scale(1.08);
}

/* Avatar images */
.avatar-image {
  width: 110px;
  height: 110px;
  object-fit: contain;
}

/* Avatar text */
.avatar-text {
  margin-top: 6px;
  font-size: 1rem;
  color: #fff;
  text-shadow: 0 2px 5px rgba(0,0,0,0.6);
}

/* Desktop-specific */
@media (min-width: 769px) {
  .avatars-popup {
    top: 48%; /* fine-tune vertical */
    max-width: 1200px; /* spread further apart */
  }
}

/* Mobile-specific */
@media (max-width: 768px) {
  .avatars-popup {
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    top: auto;
    bottom: 30px; /* push down further */
    left: 50%;
    transform: translateX(-50%);
    padding: 0;
  }

  .avatar-item {
    width: 90px;
    height: 90px;
    margin-bottom: 16px; /* more spacing between avatars */
  }

  .avatar-image {
    width: 70px;
    height: 70px;
  }

  .avatar-text {
    font-size: 0.85rem;
  }
}
/* === Avatar Glow & Hover Effects === */
.avatar-item {
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Soft glowing aura behind avatars */
.avatar-item::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 130%;
  height: 130%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.4), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.4s ease;
  z-index: -1;
}

/* Hover pulse effect */
.avatar-item:hover::before {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.1);
}
.avatar-item:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* === Avatar Text Styling === */
.avatar-text {
  margin-top: 10px;
  font-family: "Poppins", sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
  transition: color 0.3s ease, transform 0.3s ease;
}

/* Animated pulse on hover */
.avatar-item:hover .avatar-text {
  color: #ffdd57;
  transform: scale(1.1);
  animation: textPulse 1s infinite;
}

/* Pulse animation keyframes */
@keyframes textPulse {
  0%, 100% {
    text-shadow: 0 0 6px rgba(255, 221, 87, 0.9),
                 0 0 12px rgba(255, 221, 87, 0.7);
  }
  50% {
    text-shadow: 0 0 12px rgba(255, 221, 87, 1),
                 0 0 20px rgba(255, 221, 87, 0.9);
  }
}
/* ---------------------------
   Welcome / Get Started Modal
   --------------------------- */
.welcome-modal-container {
  position: relative;
  max-width: 500px;
  width: 94%;
  padding: 3rem 2.5rem;
  border-radius: 32px;
  text-align: center;
  background: linear-gradient(135deg,
    rgba(20, 20, 40, 0.95) 0%,
    rgba(30, 30, 60, 0.92) 50%,
    rgba(25, 25, 50, 0.95) 100%);
  backdrop-filter: blur(40px);
  border: 2px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    0 5px 20px rgba(59, 130, 246, 0.15);
  display: flex;
  flex-direction: column;
  gap: 2rem;
  animation: welcomeSlideUp 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
  overflow: hidden;
}

@keyframes welcomeSlideUp {
  from {
    opacity: 0;
    transform: translateY(50px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.welcome-bg-gradient {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(59, 130, 246, 0.15) 0%,
    rgba(16, 185, 129, 0.1) 25%,
    transparent 50%
  );
  animation: rotateGradient 10s linear infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes rotateGradient {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.welcome-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.welcome-particles .particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  animation: floatParticles 8s ease-in-out infinite;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.welcome-particles .particle:nth-child(1) {
  top: 20%;
  left: 15%;
  animation-delay: 0s;
}

.welcome-particles .particle:nth-child(2) {
  top: 60%;
  left: 80%;
  animation-delay: 1.5s;
}

.welcome-particles .particle:nth-child(3) {
  top: 40%;
  left: 30%;
  animation-delay: 3s;
}

.welcome-particles .particle:nth-child(4) {
  top: 75%;
  left: 50%;
  animation-delay: 4.5s;
}

.welcome-particles .particle:nth-child(5) {
  top: 30%;
  left: 70%;
  animation-delay: 2s;
}

@keyframes floatParticles {
  0%, 100% {
    transform: translateY(0) translateX(0);
    opacity: 0.3;
  }
  25% {
    transform: translateY(-20px) translateX(10px);
    opacity: 0.8;
  }
  50% {
    transform: translateY(-40px) translateX(-10px);
    opacity: 1;
  }
  75% {
    transform: translateY(-20px) translateX(5px);
    opacity: 0.8;
  }
}

.welcome-logo-section {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.welcome-logo-icon {
  position: relative;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
}

.rocket-icon {
  font-size: 3rem;
  position: relative;
  z-index: 2;
  animation: rocketFloat 3s ease-in-out infinite;
  filter: drop-shadow(0 0 20px rgba(59, 130, 246, 0.6));
}

@keyframes rocketFloat {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-10px) rotate(-5deg);
  }
}

.logo-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.4), transparent 70%);
  border-radius: 50%;
  animation: pulseLogo 2s ease-in-out infinite;
}

@keyframes pulseLogo {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.5;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.5);
    opacity: 0;
  }
}

.welcome-title {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0;
  line-height: 1.2;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
  background: linear-gradient(135deg, #fff, #e0e7ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.welcome-subtext {
  margin: 0;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 400;
  line-height: 1.6;
  max-width: 90%;
}

.welcome-actions {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.welcome-social-btn {
  position: relative;
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 1rem 1.5rem;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.welcome-social-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s ease;
}

.welcome-social-btn:hover::before {
  left: 100%;
}

.welcome-social-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

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

.welcome-social-btn.google {
  background: linear-gradient(135deg, rgba(66, 133, 244, 0.15), rgba(52, 168, 83, 0.1));
  border-color: rgba(66, 133, 244, 0.3);
}

.welcome-social-btn.google:hover {
  background: linear-gradient(135deg, rgba(66, 133, 244, 0.25), rgba(52, 168, 83, 0.15));
  border-color: rgba(66, 133, 244, 0.5);
  box-shadow: 0 10px 40px rgba(66, 133, 244, 0.3);
}

.welcome-social-btn.facebook {
  background: linear-gradient(135deg, rgba(24, 119, 242, 0.15), rgba(6, 95, 212, 0.1));
  border-color: rgba(24, 119, 242, 0.3);
}

.welcome-social-btn.facebook:hover {
  background: linear-gradient(135deg, rgba(24, 119, 242, 0.25), rgba(6, 95, 212, 0.15));
  border-color: rgba(24, 119, 242, 0.5);
  box-shadow: 0 10px 40px rgba(24, 119, 242, 0.3);
}

.welcome-social-btn.email {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(6, 182, 164, 0.1));
  border-color: rgba(16, 185, 129, 0.3);
}

.welcome-social-btn.email:hover {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(6, 182, 164, 0.15));
  border-color: rgba(16, 185, 129, 0.5);
  box-shadow: 0 10px 40px rgba(16, 185, 129, 0.3);
}

.btn-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}

.btn-icon {
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.3));
}

.btn-text {
  flex: 1;
  text-align: center;
}

.welcome-status {
  position: relative;
  z-index: 2;
  margin-top: -0.5rem;
  min-height: 28px;
  color: #e0e7ff;
  font-weight: 600;
  font-size: 0.95rem;
}

.spinner {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.18);
  border-top-color: #fff;
  display: inline-block;
  vertical-align: middle;
  margin-right: 8px;
  animation: wb-spin 0.8s linear infinite;
}

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

@media (max-width: 480px) {
  .welcome-modal-container {
    padding: 2rem 1.5rem;
    border-radius: 24px;
  }

  .welcome-title {
    font-size: 1.6rem;
  }

  .welcome-subtext {
    font-size: 0.95rem;
  }

  .welcome-social-btn {
    font-size: 0.95rem;
    padding: 0.9rem 1.2rem;
  }
}
/* 🌟 Get Started Button Styling */
.cta-button {
  position: relative;
  padding: 14px 40px;
  font-size: 1.2rem;
  font-weight: bold;
  color: #fff;
  background: linear-gradient(135deg, #ff6a00, #ff0077);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(255, 0, 119, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-button:hover {
  transform: scale(1.07);
  box-shadow: 0 0 30px rgba(255, 0, 119, 0.7);
}

/* Glow Effect */
.cta-button .button-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.4) 20%, transparent 70%);
  animation: pulseGlow 3s infinite;
}

@keyframes pulseGlow {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.3); opacity: 0.2; }
}

/* Shine Effect */
.cta-button .button-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 200%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.7), transparent);
  animation: shineMove 4s infinite;
}

@keyframes shineMove {
  0% { left: -100%; }
  50% { left: 100%; }
  100% { left: 100%; }
}
/* 🎯 Bounce Animation on Page Load */
.cta-button {
  animation: bounceIn 1.5s ease forwards;
}

@keyframes bounceIn {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }
  60% {
    transform: scale(1.15);
    opacity: 1;
  }
  80% {
    transform: scale(0.95);
  }
  100% {
    transform: scale(1);
  }
}
.counter-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 15px;
  font-size: 1.3rem;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 0 6px rgba(255, 255, 255, 0.6);
}

.counter-number {
  color: #ffd700; /* Gold for highlight */
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0 6px;
  transition: transform 0.3s ease;
}

.counter-pulse {
  animation: pulseGlow 1.2s ease;
}

@keyframes pulseGlow {
  0% { transform: scale(1); text-shadow: 0 0 5px #ffd700; }
  50% { transform: scale(1.2); text-shadow: 0 0 20px #ffae00; }
  100% { transform: scale(1); text-shadow: 0 0 5px #ffd700; }
}
.pulse-dot {
  width: 12px;
  height: 12px;
  background-color: #4caf50; /* Green */
  border-radius: 50%;
  display: inline-block;
  margin-right: 8px;
  box-shadow: 0 0 6px rgba(76, 175, 80, 0.8);
  animation: pulseDot 1.8s infinite ease-in-out;
}

@keyframes pulseDot {
  0% { transform: scale(1); opacity: 1; box-shadow: 0 0 6px rgba(76, 175, 80, 0.8); }
  50% { transform: scale(1.4); opacity: 0.6; box-shadow: 0 0 14px rgba(76, 175, 80, 1); }
  100% { transform: scale(1); opacity: 1; box-shadow: 0 0 6px rgba(76, 175, 80, 0.8); }
}
/* Keyframes for glowing and blinking effect */
@keyframes glowing-blink {
  0% {
    opacity: 0.7;
    background-position: 0% 50%;
    text-shadow: 0 0 20px red, 0 0 40px red, 0 0 60px red, 0 0 80px red;
  }
  25% {
    opacity: 1;
    background-position: 50% 50%;
    text-shadow: 0 0 20px teal, 0 0 40px teal, 0 0 60px teal, 0 0 80px teal;
  }
  50% {
    opacity: 0.8;
    background-position: 100% 50%;
    text-shadow: 0 0 20px blue, 0 0 40px blue, 0 0 60px blue, 0 0 80px blue;
  }
  75% {
    opacity: 1;
    background-position: 150% 50%;
    text-shadow: 0 0 20px green, 0 0 40px green, 0 0 60px green, 0 0 80px green;
  }
  100% {
    opacity: 0.7;
    background-position: 200% 50%;
    text-shadow: 0 0 20px yellow, 0 0 40px yellow, 0 0 60px yellow, 0 0 80px yellow;
  }
}

/* Style for the highlighted text */
.headline-line .highlight {
  color: transparent;
  background: linear-gradient(45deg, red, teal, blue, green, yellow, pink, skyblue);
  background-size: 400% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  animation: glowing-blink 3s ease-in-out infinite;
  will-change: background-position, text-shadow, opacity;
}
@keyframes glowing-blink {
  0% {
    opacity: 0.7;
    background-position: 0% 50%;
    text-shadow: 0 0 20px red, 0 0 40px red, 0 0 60px red, 0 0 80px red;
  }
  25% {
    opacity: 1;
    background-position: 50% 50%;
    text-shadow: 0 0 20px teal, 0 0 40px teal, 0 0 60px teal, 0 0 80px teal;
  }
  50% {
    opacity: 0.8;
    background-position: 100% 50%;
    text-shadow: 0 0 20px blue, 0 0 40px blue, 0 0 60px blue, 0 0 80px blue;
  }
  75% {
    opacity: 1;
    background-position: 150% 50%;
    text-shadow: 0 0 20px green, 0 0 40px green, 0 0 60px green, 0 0 80px green;
  }
  100% {
    opacity: 0.7;
    background-position: 200% 50%;
    text-shadow: 0 0 20px yellow, 0 0 40px yellow, 0 0 60px yellow, 0 0 80px yellow;
  }
}

.headline-line.highlight {
  display: inline-block;
  color: transparent;
  background: linear-gradient(45deg, red, teal, blue, green, yellow, pink, skyblue);
  background-size: 400% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  animation: glowing-blink 3s ease-in-out infinite;
  will-change: background-position, text-shadow, opacity;
}
@keyframes glowing-blink {
  0% {
    opacity: 0.85;
    background-position: 0% 50%;
    text-shadow: 0 0 10px red, 0 0 20px red;
  }
  25% {
    opacity: 1;
    background-position: 50% 50%;
    text-shadow: 0 0 10px teal, 0 0 20px teal;
  }
  50% {
    opacity: 0.9;
    background-position: 100% 50%;
    text-shadow: 0 0 10px blue, 0 0 20px blue;
  }
  75% {
    opacity: 1;
    background-position: 150% 50%;
    text-shadow: 0 0 10px green, 0 0 20px green;
  }
  100% {
    opacity: 0.85;
    background-position: 200% 50%;
    text-shadow: 0 0 10px yellow, 0 0 20px yellow;
  }
}
.headline-line.highlight {
  display: inline-block;
  color: transparent;
  background: linear-gradient(45deg, red, teal, blue, green, yellow, pink, skyblue);
  background-size: 400% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  animation: glowing-blink 3s ease-in-out infinite;
  will-change: background-position, text-shadow, opacity;
  -webkit-text-stroke: 0.5px white; /* optional for readability */
}
/* ================= FINAL: Cigarette button (isolated, single block) ================= */
#quitSmokingBtn.qs-cigarette {
  --qb-width: 300px;
  --qb-height: 42px;
  --filter-color-a: #c08a3e;   /* filter color (right side) */
  --filter-color-b: #b26e2f;
  position: relative;
  display: block;
  width: var(--qb-width);
  height: var(--qb-height);
  margin: 18px auto 28px auto;
  padding: 0;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 22px;
  background: linear-gradient(to right, #ffffff 0% 78%, var(--filter-color-a) 78% 100%);
  box-shadow: inset 0 0 6px rgba(0,0,0,0.06), 0 8px 22px rgba(0,0,0,0.06);
  cursor: pointer;
  overflow: visible;
  -webkit-tap-highlight-color: transparent;
}

/* label (center) */
#quitSmokingBtn .qs-label{
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-family: Inter, Arial, sans-serif;
  font-weight: 700;
  font-size: 13px;
  color: #222;
  letter-spacing: .4px;
  text-transform: uppercase;
  z-index: 6;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}

/* Burning-tip on LEFT (red/orange ember area) */
#quitSmokingBtn .qs-burning-tip{
  position: absolute;
  left: -10px;
  top: 0;
  width: 20px;
  height: 100%;
  border-top-left-radius: 22px;
  border-bottom-left-radius: 22px;
  background: radial-gradient(circle at 35% 50%, #ff7a40 5%, #ff3c00 18%, #b5651d 65%, transparent 100%);
  box-shadow: 0 0 14px 4px rgba(255,100,40,0.25);
  z-index: 8;
  transform-origin: center;
  animation: qs-tip-glow 1.4s infinite ease-in-out;
}

/* ember (small glowing dot on the paper next to tip) */
#quitSmokingBtn .qs-ember{
  position: absolute;
  left: 18px;                 /* sits just right of the tip */
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle, #ff3b00 0%, #ff9a40 50%, rgba(255,140,60,0) 100%);
  box-shadow: 0 0 10px 3px rgba(255,80,30,0.55);
  z-index: 9;
  animation: qs-ember-pulse 1.5s infinite ease-in-out;
  pointer-events: none;
}

/* ash piece right next to ember — subtle */
#quitSmokingBtn .qs-ash{
  position: absolute;
  left: 28px;
  top: 8px;
  width: 6px;
  height: 26px;
  border-radius: 3px;
  background: linear-gradient(#666, #222);
  box-shadow: 0 1px 4px rgba(0,0,0,0.25);
  z-index: 7;
  opacity: 0.95;
  animation: qs-ash-burn 10s linear infinite;
  pointer-events: none;
}

/* ========== SMOKE PUFFS ========== */
/* base smoke puff style — three elements staggered */
#quitSmokingBtn .qs-smoke{
  position: absolute;
  left: -18px;            /* align with left burning tip (tweak if needed) */
  top: -28px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.95) 18%, rgba(240,240,240,0.75) 36%, rgba(210,210,210,0.45) 62%, transparent 100%);
  filter: blur(3px);
  opacity: 0;
  z-index: 9999;          /* force above everything */
  pointer-events: none;
  animation: qs-puff 5.2s infinite ease-in-out;
}

/* staggered puffs */
#quitSmokingBtn .qs-smoke1{ animation-delay: 0s; }
#quitSmokingBtn .qs-smoke2{ animation-delay: 1.6s; }
#quitSmokingBtn .qs-smoke3{ animation-delay: 3.2s; }

/* ========== KEYFRAMES ========== */
@keyframes qs-tip-glow {
  0%   { filter: brightness(0.9); transform: translateY(0) rotate(0.0deg); opacity:0.95; }
  50%  { filter: brightness(1.35); transform: translateY(-1px) rotate(-0.2deg); opacity:1; }
  100% { filter: brightness(0.95); transform: translateY(0) rotate(0.0deg); opacity:0.96; }
}

@keyframes qs-ember-pulse {
  0%   { transform: translateY(-50%) scale(0.85); opacity: 0.7; filter: brightness(0.9); }
  50%  { transform: translateY(-52%) scale(1.15); opacity: 1; filter: brightness(1.3); }
  100% { transform: translateY(-50%) scale(0.9); opacity: 0.75; filter: brightness(0.95); }
}

@keyframes qs-ash-burn {
  0%   { height: 26px; top: 8px; opacity: 1; transform: scaleY(1); }
  50%  { height: 14px; top: 14px; opacity: 0.7; transform: scaleY(0.55); }
  100% { height: 26px; top: 8px; opacity: 1; transform: scaleY(1); }
}

/* puff animation — grows, drifts slightly left, fades out */
@keyframes qs-puff {
  0% {
    transform: translateY(0) translateX(0) scale(0.5);
    opacity: 0;
  }
  12% {
    opacity: 0.85;
  }
  46% {
    transform: translateY(-40px) translateX(-6px) scale(1.05);
    opacity: 0.55;
  }
  78% {
    transform: translateY(-90px) translateX(-10px) scale(1.6);
    opacity: 0.18;
  }
  100% {
    transform: translateY(-140px) translateX(-14px) scale(2.1);
    opacity: 0;
  }
}

/* responsive: shrink on small screens */
@media (max-width: 480px) {
  #quitSmokingBtn.qs-cigarette { --qb-width: 230px; --qb-height: 36px; width: var(--qb-width); height: var(--qb-height); border-radius: 18px; }
  #quitSmokingBtn .qs-burning-tip { left:-8px; width:16px; }
  #quitSmokingBtn .qs-smoke { left:-14px; width:36px; height:36px; filter: blur(2px); }
  #quitSmokingBtn .qs-label { font-size: 12px; }
}
/* Smoke effect */
.cigarette-btn .smoke {
  position: absolute;
  left: -18px; /* aligned near burning tip */
  top: -25px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.9) 20%, rgba(200,200,200,0.6) 60%, transparent 100%);
  opacity: 0;
  pointer-events: none;
  z-index: 20;
  animation: puff 6s infinite;
}

.cigarette-btn .smoke1 { animation-delay: 0s; }
.cigarette-btn .smoke2 { animation-delay: 2s; }
.cigarette-btn .smoke3 { animation-delay: 4s; }

@keyframes puff {
  0% {
    transform: translateY(0) scale(0.6);
    opacity: 0;
  }
  15% {
    opacity: 0.9;
  }
  50% {
    transform: translateY(-50px) scale(1.4);
    opacity: 0.6;
  }
  80% {
    transform: translateY(-100px) scale(2);
    opacity: 0.3;
  }
  100% {
    transform: translateY(-140px) scale(2.4);
    opacity: 0;
  }
}
/* Cigarette Button Base */
.cigarette-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 260px;
  height: 55px;
  background: linear-gradient(to right, #dcdcdc 0%, #ffffff 80%, #f5f5f5 100%);
  border-radius: 30px;
  border: 2px solid #ccc;
  cursor: pointer;
  font-family: Arial, sans-serif;
  font-size: 16px;
  font-weight: bold;
  color: #333;
  overflow: hidden;
  margin: 20px auto;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* Burning tip */
.cigarette-btn .burning-tip {
  position: absolute;
  left: -18px;
  width: 20px;
  height: 100%;
  background: linear-gradient(to right, #ff4500, #b22222);
  border-top-left-radius: 30px;
  border-bottom-left-radius: 30px;
  box-shadow: 0 0 8px rgba(255,69,0,0.8), 0 0 15px rgba(178,34,34,0.6);
}

/* Ash shrinking effect */
.cigarette-btn .ash {
  position: absolute;
  left: -8px;
  width: 8px;
  height: 100%;
  background: #555;
  border-radius: 4px;
  animation: ash-burn 6s infinite linear;
}
@keyframes ash-burn {
  0% { height: 100%; opacity: 1; }
  100% { height: 10%; opacity: 0.2; }
}

/* Filter (right side, more visible now) */
.cigarette-btn::after {
  content: '';
  position: absolute;
  right: -25px;
  width: 25px;
  height: 100%;
  background: repeating-linear-gradient(
    45deg,
    #f8d27a,
    #f8d27a 6px,
    #e6b85c 6px,
    #e6b85c 12px
  );
  border-top-right-radius: 30px;
  border-bottom-right-radius: 30px;
  border-left: 2px solid #cfa94d;
}

/* Label */
.cigarette-btn .label {
  position: relative;
  z-index: 5;
}

/* Smoke layers */
.cigarette-btn .smoke1,
.cigarette-btn .smoke2,
.cigarette-btn .smoke3 {
  position: absolute;
  left: -30px; /* near burning tip */
  bottom: 50%;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.8) 20%, rgba(200,200,200,0.5) 60%, transparent 100%);
  opacity: 0;
  pointer-events: none;
  z-index: 10;
  animation: smoke-drift 6s infinite;
}

/* Individual timing + size variations */
.cigarette-btn .smoke1 { animation-delay: 0s; transform: scale(0.8); }
.cigarette-btn .smoke2 { animation-delay: 2s; transform: scale(1); }
.cigarette-btn .smoke3 { animation-delay: 4s; transform: scale(1.2); }

@keyframes smoke-drift {
  0% {
    transform: translate(0, 0) scale(0.7);
    opacity: 0;
  }
  20% {
    opacity: 0.8;
  }
  50% {
    transform: translate(-10px, -40px) scale(1.1);
    opacity: 0.5;
  }
  80% {
    transform: translate(15px, -70px) scale(1.4);
    opacity: 0.3;
  }
  100% {
    transform: translate(-20px, -100px) scale(1.8);
    opacity: 0;
  }
}
/* Burning tip with flicker */
.cigarette-btn .burning-tip {
  position: absolute;
  left: -18px;
  width: 20px;
  height: 100%;
  background: linear-gradient(to right, #ff4500, #b22222);
  border-top-left-radius: 30px;
  border-bottom-left-radius: 30px;
  box-shadow: 0 0 8px rgba(255,69,0,0.9), 
              0 0 15px rgba(178,34,34,0.7), 
              inset 0 0 6px rgba(255,140,0,0.8);
  animation: ember-flicker 1.5s infinite ease-in-out;
}

/* Ember flicker animation */
@keyframes ember-flicker {
  0%   { box-shadow: 0 0 6px rgba(255,69,0,0.7), 0 0 12px rgba(178,34,34,0.5), inset 0 0 4px rgba(255,140,0,0.7); }
  50%  { box-shadow: 0 0 10px rgba(255,99,71,1), 0 0 18px rgba(220,20,60,0.9), inset 0 0 8px rgba(255,165,0,0.9); }
  100% { box-shadow: 0 0 6px rgba(255,69,0,0.8), 0 0 14px rgba(178,34,34,0.6), inset 0 0 5px rgba(255,140,0,0.8); }
}
/* Base transition for smooth effects */
#quitSmokingBtn {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  cursor: pointer;
  position: relative;
}

/* Idle floating effect */
#quitSmokingBtn {
  animation: floatIdle 3s ease-in-out infinite;
}

@keyframes floatIdle {
  0% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
  100% { transform: translateY(0); }
}

/* Hover effect */
#quitSmokingBtn:hover {
  transform: scale(1.08) rotate(-2deg);
  box-shadow: 0 12px 25px rgba(0,0,0,0.3);
  z-index: 10;
}

/* Ember glow intensifies on hover */
#quitSmokingBtn:hover .burning-tip {
  animation: emberGlow 0.7s infinite alternate;
}

@keyframes emberGlow {
  0% {
    box-shadow: 0 0 8px rgba(255,80,40,0.6),
                0 0 14px rgba(255,60,0,0.8),
                inset 0 0 4px rgba(255,120,0,0.5);
  }
  100% {
    box-shadow: 0 0 18px rgba(255,160,60,1),
                0 0 32px rgba(255,80,0,1),
                inset 0 0 12px rgba(255,200,0,0.9);
  }
}

/* Smoke speeds up & becomes stronger on hover */
#quitSmokingBtn:hover .smoke1,
#quitSmokingBtn:hover .smoke2,
#quitSmokingBtn:hover .smoke3 {
  animation-duration: 2s !important;
  opacity: 1 !important;
}
/* CSS for the "How To Quit Smoking" button glow and animation */
#quitSmokingBtn {
  /* Ensure smooth transitions for all animated properties */
  transition: all 0.4s ease-in-out;
  /* Initial subtle glow for the pulsing effect */
  box-shadow: 0 0 8px rgba(255, 102, 0, 0.6), 0 0 15px rgba(255, 193, 7, 0.3);
  /* Apply the continuous pulsing animation */
  animation: pulse-glow 2s infinite alternate;
}

/* Keyframes for the continuous subtle pulsing glow */
@keyframes pulse-glow {
  0% {
    box-shadow: 0 0 8px rgba(255, 102, 0, 0.6), 0 0 15px rgba(255, 193, 7, 0.3);
  }
  50% {
    box-shadow: 0 0 15px rgba(255, 102, 0, 1), 0 0 25px rgba(255, 193, 7, 0.6);
  }
  100% {
    box-shadow: 0 0 8px rgba(255, 102, 0, 0.6), 0 0 15px rgba(255, 193, 7, 0.3);
  }
}

/* Hover effects for the button */
#quitSmokingBtn:hover {
  transform: scale(1.03); /* Gentle scale-up */
  /* More intense glow on hover */
  box-shadow: 0 0 25px rgba(255, 102, 0, 1), 0 0 40px rgba(255, 193, 7, 0.8), 0 0 60px rgba(255, 193, 7, 0.5);
} 

/* Top-right container */
.top-nav {
  position: absolute;
  top: 20px;
  right: 30px;
  z-index: 999;
}

/* Join Free Button */
.join-free-btn {
  padding: 10px 22px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: 30px;
  background: linear-gradient(135deg, #ff4e50, #f9d423);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: all 0.3s ease-in-out;
}

/* Hover Effect */
.join-free-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 16px rgba(0,0,0,0.3);
}

/* Glow Pulse Animation */
@keyframes pulseGlow {
  0% { box-shadow: 0 0 8px rgba(255,78,80,0.6); }
  50% { box-shadow: 0 0 20px rgba(249,212,35,0.9); }
  100% { box-shadow: 0 0 8px rgba(255,78,80,0.6); }
}
.join-free-btn {
  animation: pulseGlow 2s infinite;
}

/* ===== Privacy Policy Button (Bottom Left Corner) ===== */
.privacy-policy-btn {
  position: fixed;
  bottom: 30px;
  left: 30px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #10b981, #3b82f6);
  border: none;
  border-radius: 50px;
  padding: 0.8rem 1.5rem;
  color: white;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
  animation: privacySlideIn 1s ease-out 1.5s both, privacyPulse 3s ease-in-out 2.5s infinite;
}

.privacy-policy-btn:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 15px 40px rgba(16, 185, 129, 0.5);
  background: linear-gradient(135deg, #059669, #2563eb);
}

.privacy-policy-btn:active {
  transform: translateY(-2px) scale(1.02);
}

.privacy-icon {
  font-size: 1.2rem;
  animation: privacyIconRotate 2s ease-in-out infinite;
}

.privacy-text {
  font-weight: 600;
}

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

@keyframes privacyPulse {
  0%, 100% {
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
  }
  50% {
    box-shadow: 0 10px 40px rgba(16, 185, 129, 0.6), 0 0 0 8px rgba(16, 185, 129, 0.2);
  }
}

@keyframes privacyIconRotate {
  0%, 100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(-10deg);
  }
  75% {
    transform: rotate(10deg);
  }
}

/* ===== Privacy Policy Modal ===== */
.privacy-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  z-index: 10000;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.privacy-modal-overlay.active {
  display: flex;
  opacity: 1;
  animation: privacyFadeIn 0.4s ease-out;
}

.privacy-modal-container {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  max-width: 700px;
  width: 90%;
  max-height: 85vh;
  overflow: hidden;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
  animation: privacySlideUp 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.privacy-modal-header {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(59, 130, 246, 0.2));
  padding: 2rem;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.privacy-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.privacy-modal-header h3 {
  font-size: 2rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 0.5rem 0;
}

.effective-date {
  font-size: 0.9rem;
  color: #94a3b8;
  font-weight: 500;
}

.privacy-modal-content {
  padding: 2rem;
  overflow-y: auto;
  max-height: calc(85vh - 200px);
  color: #e2e8f0;
}

.privacy-modal-content::-webkit-scrollbar {
  width: 8px;
}

.privacy-modal-content::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}

.privacy-modal-content::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #10b981, #3b82f6);
  border-radius: 4px;
}

.privacy-intro {
  padding: 1.5rem;
  background: rgba(16, 185, 129, 0.1);
  border-left: 4px solid #10b981;
  border-radius: 8px;
  margin-bottom: 2rem;
}

.privacy-intro p {
  margin: 0;
  line-height: 1.6;
  color: #cbd5e1;
}

.privacy-section {
  margin-bottom: 2rem;
}

.privacy-section h4 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.privacy-section h4::before {
  content: '';
  width: 4px;
  height: 1.3rem;
  background: linear-gradient(135deg, #10b981, #3b82f6);
  border-radius: 2px;
}

.privacy-section p {
  margin-bottom: 1rem;
  color: #cbd5e1;
  line-height: 1.7;
}

.privacy-section ul {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.privacy-section li {
  margin-bottom: 0.5rem;
  color: #cbd5e1;
  line-height: 1.6;
}

.privacy-contact {
  margin-top: 1rem;
  padding: 1rem;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 12px;
  text-align: center;
}

.privacy-email {
  color: #3b82f6;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.privacy-email:hover {
  color: #10b981;
}

.privacy-footer {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.full-policy-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #10b981;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.full-policy-link:hover {
  color: #3b82f6;
  transform: translateY(-2px);
}

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

@keyframes privacySlideUp {
  from {
    opacity: 0;
    transform: translateY(50px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Responsive Design for Privacy Button and Modal */
@media (max-width: 768px) {
  .privacy-policy-btn {
    bottom: 20px;
    left: 20px;
    padding: 0.6rem 1rem;
    font-size: 0.8rem;
  }

  .privacy-icon {
    font-size: 1rem;
  }

  .privacy-text {
    display: none;
  }

  .privacy-policy-btn {
    border-radius: 50%;
    padding: 0.8rem;
  }

  .privacy-modal-container {
    width: 95%;
    max-height: 90vh;
  }

  .privacy-modal-header {
    padding: 1.5rem;
  }

  .privacy-modal-header h3 {
    font-size: 1.5rem;
  }

  .privacy-modal-content {
    padding: 1.5rem;
    max-height: calc(90vh - 150px);
  }

  .privacy-section h4 {
    font-size: 1.1rem;
  }
}

/* =============================
   SOCIAL MEDIA ICONS - VITAL BOOST STYLE
============================= */
.social-icons {
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.4rem;
  z-index: 10; /* below modals but above Hero */
}

.social-icons .social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-icons .social-link i {
  color: #fff;
  font-size: 18px;
  transition: transform 0.3s ease, color 0.3s ease;
}

.social-icons .social-link:hover {
  background: #fff;
}

.social-icons .social-link:hover i {
  color: #000;
  transform: scale(1.2);
}

/* Brand-specific background colors */
.social-icon.facebook {
  background-color: #1877F2; /* Facebook Blue */
}

.social-icon.x {
  background-color: #000000; /* X (Twitter) Black */
}

.social-icon.instagram {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
  /* Instagram gradient */
}

.social-icon.youtube {
  background-color: #FF0000; /* YouTube Red */
}

.social-icon.tiktok {
  background-color: #010101; /* TikTok Black */
  position: relative;
}

/* Optional: TikTok glow effect */
.social-icon.tiktok:hover {
  box-shadow: 0 0 15px rgba(0, 242, 234, 0.8), 0 0 25px rgba(254, 44, 85, 0.8);
}

/* Social Icons Styling */
.social-icons {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}

.social-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all 0.3s ease;
  text-decoration: none;
}

/* Brand Background Colors */
.social-icon.facebook {
  background-color: #1877F2;
}

.social-icon.x {
  background-color: #000000;
}

.social-icon.instagram {
  background: radial-gradient(circle at 30% 30%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}

.social-icon.youtube {
  background-color: #FF0000;
}

.social-icon.tiktok {
  background: linear-gradient(45deg, #25F4EE, #FE2C55);
}

/* Hover Effects */
.social-icon:hover {
  transform: scale(1.15);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.5);
}