/* ============================================
   AROGYA CURE - Main Stylesheet
   Version: 1.0.0
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* ============================================
   CSS VARIABLES & DESIGN TOKENS
   ============================================ */
:root {
  /* Colors */
  --primary: #1a73e8;
  --primary-dark: #0d47a1;
  --primary-light: #e8f0fe;
  --secondary: #00c853;
  --secondary-dark: #009624;
  --secondary-light: #e8f5e9;
  --accent: #00bcd4;
  --emergency: #f44336;
  --emergency-light: #fff3f3;
  --warning: #ff9800;
  
  /* Neutrals */
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #1a73e8 0%, #0d47a1 100%);
  --gradient-secondary: linear-gradient(135deg, #00c853 0%, #009624 100%);
  --gradient-hero: linear-gradient(135deg, #0d47a1 0%, #1a73e8 40%, #00bcd4 100%);
  --gradient-emergency: linear-gradient(135deg, #f44336 0%, #c62828 100%);
  --gradient-card: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);

  /* Typography */
  --font-primary: 'Inter', sans-serif;
  --font-heading: 'Outfit', sans-serif;

  /* Spacing */
  --section-padding: 80px 0;
  --container-max: 1200px;
  --container-padding: 0 24px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08), 0 2px 8px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.1), 0 4px 16px rgba(0,0,0,0.08);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.12), 0 8px 24px rgba(0,0,0,0.08);
  --shadow-primary: 0 8px 24px rgba(26, 115, 232, 0.25);
  --shadow-secondary: 0 8px 24px rgba(0, 200, 83, 0.25);

  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 100px;

  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  font-family: var(--font-primary);
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul { list-style: none; }

img { max-width: 100%; height: auto; }

input, textarea, select, button {
  font-family: inherit;
  outline: none;
  border: none;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--container-padding);
}

.section { padding: var(--section-padding); }

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

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 18px;
  color: var(--gray-500);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.text-green { color: var(--secondary); }

.bg-primary { background: var(--primary); }
.bg-light { background: var(--gray-50); }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  white-space: nowrap;
  letter-spacing: 0.3px;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.1);
  opacity: 0;
  transition: var(--transition);
}

.btn:hover::after { opacity: 1; }

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

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(26, 115, 232, 0.35);
}

.btn-secondary {
  background: var(--gradient-secondary);
  color: var(--white);
  box-shadow: var(--shadow-secondary);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 200, 83, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

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

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

.btn-emergency {
  background: var(--gradient-emergency);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(244, 67, 54, 0.3);
}

.btn-emergency:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(244, 67, 54, 0.4);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 14px;
}

.btn-lg {
  padding: 18px 36px;
  font-size: 17px;
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  transition: var(--transition);
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 0 24px;
  max-width: var(--container-max);
  margin: 0 auto;
}

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

.nav-logo img {
  height: 44px;
  width: auto;
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
}

.nav-logo-name {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1;
}

.nav-logo-tagline {
  font-size: 11px;
  color: var(--gray-500);
  letter-spacing: 0.3px;
}

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

.nav-link {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-700);
  transition: var(--transition);
  position: relative;
}

.nav-link:hover {
  color: var(--primary);
  background: var(--primary-light);
}

.nav-link.active {
  color: var(--primary);
  background: var(--primary-light);
}

/* Dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  padding: 8px;
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  border: 1px solid var(--gray-100);
  z-index: 100;
}

.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--gray-700);
  transition: var(--transition);
}

.nav-dropdown-item:hover {
  background: var(--primary-light);
  color: var(--primary);
}

.nav-dropdown-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

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

.nav-emergency-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--emergency-light);
  color: var(--emergency);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
  animation: pulse-emergency 2s infinite;
}

@keyframes pulse-emergency {
  0%, 100% { box-shadow: 0 0 0 0 rgba(244, 67, 54, 0.3); }
  50% { box-shadow: 0 0 0 6px rgba(244, 67, 54, 0); }
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gray-700);
  border-radius: 2px;
  transition: var(--transition);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  min-height: 100vh;
  background: var(--gradient-hero);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 72px;
}

.hero-bg-pattern {
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(0, 200, 83, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 60% 20%, rgba(0, 188, 212, 0.06) 0%, transparent 40%);
  pointer-events: none;
}

.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.particle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  animation: float-particle linear infinite;
}

@keyframes float-particle {
  0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-100px) rotate(360deg); opacity: 0; }
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
  padding: 60px 24px;
  max-width: var(--container-max);
  margin: 0 auto;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius-full);
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
  animation: fadeInDown 0.6s ease forwards;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--secondary);
  animation: pulse 2s infinite;
}

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

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(32px, 5vw, 58px);
  font-weight: 900;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 20px;
  animation: fadeInUp 0.7s ease forwards;
}

.hero-title .highlight {
  background: linear-gradient(135deg, #64ffda, #00e676);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(15px, 2vw, 18px);
  color: rgba(255,255,255,0.85);
  line-height: 1.7;
  margin-bottom: 36px;
  animation: fadeInUp 0.8s ease forwards;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 48px;
  animation: fadeInUp 0.9s ease forwards;
}

.hero-stats {
  display: flex;
  gap: 32px;
  animation: fadeInUp 1s ease forwards;
}

.hero-stat {
  text-align: center;
}

.hero-stat-number {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}

.hero-stat-label {
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  margin-top: 4px;
}

/* Hero Visual */
.hero-visual {
  position: relative;
  animation: fadeInRight 1s ease forwards;
}

.hero-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.hero-card {
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  animation: fadeInUp 0.8s ease forwards;
}

.hero-card:hover {
  background: rgba(255,255,255,0.2);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.hero-card-icon {
  font-size: 36px;
  margin-bottom: 10px;
  display: block;
}

.hero-card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 4px;
}

.hero-card-price {
  font-size: 12px;
  color: rgba(255,255,255,0.7);
}

.hero-card.featured {
  background: rgba(255,255,255,0.9);
  border-color: var(--white);
}

.hero-card.featured .hero-card-title {
  color: var(--gray-800);
}

.hero-card.featured .hero-card-price {
  color: var(--gray-500);
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.services-section {
  background: var(--gray-50);
  padding: 80px 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: var(--transition);
}

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

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-light);
}

.service-icon-wrapper {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin: 0 auto 20px;
  transition: var(--transition);
}

.service-card:hover .service-icon-wrapper {
  transform: scale(1.1) rotate(5deg);
}

.service-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 10px;
}

.service-description {
  font-size: 14px;
  color: var(--gray-500);
  line-height: 1.6;
  margin-bottom: 20px;
}

.service-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  transition: var(--transition);
}

.service-cta:hover {
  gap: 10px;
}

/* ============================================
   HOW IT WORKS
   ============================================ */
.how-it-works {
  background: var(--white);
  padding: 80px 0;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  position: relative;
}

.steps-grid::before {
  content: '';
  position: absolute;
  top: 60px;
  left: 15%;
  right: 15%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  z-index: 0;
  opacity: 0.3;
}

.step-card {
  text-align: center;
  position: relative;
  z-index: 1;
}

.step-number {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: var(--shadow-primary);
  position: relative;
}

.step-icon {
  font-size: 36px;
  margin-bottom: 16px;
  display: block;
}

.step-title {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 8px;
}

.step-description {
  font-size: 14px;
  color: var(--gray-500);
  line-height: 1.6;
}

/* ============================================
   WHY CHOOSE US
   ============================================ */
.why-us {
  background: var(--gradient-hero);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.why-us::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='4'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.why-card {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  transition: var(--transition);
}

.why-card:hover {
  background: rgba(255,255,255,0.18);
  transform: translateY(-6px);
}

.why-icon {
  font-size: 40px;
  margin-bottom: 16px;
  display: block;
}

.why-title {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}

.why-description {
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  line-height: 1.6;
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials {
  background: var(--gray-50);
  padding: 80px 0;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
  transition: var(--transition);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.testimonial-stars {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
  color: #ffd700;
  font-size: 18px;
}

.testimonial-text {
  font-size: 15px;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  flex-shrink: 0;
}

.testimonial-name {
  font-weight: 700;
  color: var(--gray-900);
  font-size: 15px;
}

.testimonial-location {
  font-size: 13px;
  color: var(--gray-400);
}

/* ============================================
   EMERGENCY SECTION
   ============================================ */
.emergency-section {
  background: var(--gradient-emergency);
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}

.emergency-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(255,255,255,0.08) 0%, transparent 60%);
}

.emergency-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  position: relative;
  z-index: 1;
}

.emergency-text h2 {
  font-family: var(--font-heading);
  font-size: clamp(24px, 3.5vw, 40px);
  font-weight: 900;
  color: var(--white);
  margin-bottom: 12px;
}

.emergency-text p {
  font-size: 16px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 0;
}

.emergency-number {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 900;
  color: var(--white);
  letter-spacing: -1px;
}

.emergency-number span {
  display: block;
  font-size: 14px;
  font-weight: 400;
  opacity: 0.8;
  letter-spacing: 0;
  margin-bottom: 4px;
}

/* ============================================
   OFFERS STRIP
   ============================================ */
.offers-strip {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  padding: 20px 0;
  overflow: hidden;
}

.offers-scroll {
  display: flex;
  gap: 40px;
  animation: scroll-offers 30s linear infinite;
  white-space: nowrap;
}

.offer-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  flex-shrink: 0;
}

.offer-tag {
  background: var(--secondary);
  color: var(--white);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
}

@keyframes scroll-offers {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================
   SUBSCRIPTION PLANS
   ============================================ */
.plans-section {
  background: var(--white);
  padding: 80px 0;
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.plan-card {
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  border: 2px solid var(--gray-200);
  transition: var(--transition);
  text-align: center;
  position: relative;
  background: var(--white);
}

.plan-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-primary);
  color: var(--white);
  padding: 4px 16px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.plan-card.popular {
  border-color: var(--primary);
  box-shadow: var(--shadow-primary);
  transform: scale(1.04);
}

.plan-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-primary);
}

.plan-name {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 8px;
}

.plan-price {
  font-family: var(--font-heading);
  font-size: 44px;
  font-weight: 900;
  color: var(--primary);
  margin: 16px 0 4px;
  line-height: 1;
}

.plan-price span {
  font-size: 16px;
  font-weight: 400;
  color: var(--gray-500);
}

.plan-period {
  font-size: 14px;
  color: var(--gray-400);
  margin-bottom: 24px;
}

.plan-features {
  text-align: left;
  margin-bottom: 28px;
}

.plan-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  font-size: 14px;
  color: var(--gray-700);
  border-bottom: 1px solid var(--gray-100);
}

.plan-feature:last-child { border-bottom: none; }

.plan-feature-check {
  color: var(--secondary);
  font-size: 16px;
  flex-shrink: 0;
}

/* ============================================
   PAGE HEADER
   ============================================ */
.page-header {
  background: var(--gradient-hero);
  padding: 120px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 80%, rgba(0, 200, 83, 0.1) 0%, transparent 60%);
}

.page-header-content {
  position: relative;
  z-index: 1;
}

.page-header h1 {
  font-family: var(--font-heading);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 900;
  color: var(--white);
  margin-bottom: 12px;
}

.page-header p {
  font-size: 18px;
  color: rgba(255,255,255,0.85);
  max-width: 560px;
  margin: 0 auto;
}

.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 13px;
  color: rgba(255,255,255,0.7);
}

.breadcrumb a {
  color: rgba(255,255,255,0.7);
}

.breadcrumb a:hover {
  color: var(--white);
}

.breadcrumb-sep { opacity: 0.5; }

/* ============================================
   CARDS & FORMS
   ============================================ */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-100);
  overflow: hidden;
}

.card-header {
  padding: 24px 28px;
  border-bottom: 1px solid var(--gray-100);
  display: flex;
  align-items: center;
  gap: 12px;
}

.card-header-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.card-header-title {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  color: var(--gray-900);
}

.card-body {
  padding: 28px;
}

/* Form Styles */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 8px;
}

.form-label span {
  color: var(--emergency);
}

.form-control {
  width: 100%;
  padding: 13px 16px;
  background: var(--gray-50);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-size: 15px;
  color: var(--gray-900);
  transition: var(--transition);
}

.form-control:focus {
  background: var(--white);
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
}

.form-control::placeholder {
  color: var(--gray-400);
}

.form-select {
  width: 100%;
  padding: 13px 16px;
  background: var(--gray-50);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-size: 15px;
  color: var(--gray-900);
  transition: var(--transition);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 20px;
  cursor: pointer;
}

.form-select:focus {
  background-color: var(--white);
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
}

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

.form-hint {
  font-size: 12px;
  color: var(--gray-400);
  margin-top: 6px;
}

/* Upload area */
.upload-area {
  border: 2px dashed var(--gray-200);
  border-radius: var(--radius-md);
  padding: 36px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  background: var(--gray-50);
}

.upload-area:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}

.upload-icon {
  font-size: 36px;
  margin-bottom: 12px;
  display: block;
}

.upload-text {
  font-size: 15px;
  color: var(--gray-600);
  margin-bottom: 4px;
}

.upload-hint {
  font-size: 13px;
  color: var(--gray-400);
}

/* ============================================
   DOCTOR CARDS
   ============================================ */
.doctor-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1.5px solid var(--gray-100);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

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

.doctor-avatar {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-md);
  object-fit: cover;
  flex-shrink: 0;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
}

.doctor-info { flex: 1; }

.doctor-name {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 4px;
}

.doctor-specialty {
  font-size: 14px;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 8px;
}

.doctor-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
}

.doctor-meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: var(--gray-500);
}

.doctor-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.tag {
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
}

.tag-blue {
  background: var(--primary-light);
  color: var(--primary);
}

.tag-green {
  background: var(--secondary-light);
  color: var(--secondary-dark);
}

.doctor-booking {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.doctor-fee {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  color: var(--gray-900);
}

.doctor-fee span {
  font-size: 13px;
  font-weight: 400;
  color: var(--gray-400);
}

.doctor-actions {
  display: flex;
  gap: 8px;
}

/* ============================================
   SLOT PICKER
   ============================================ */
.slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 10px;
}

.slot-btn {
  padding: 10px 8px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--gray-200);
  background: var(--white);
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-700);
  cursor: pointer;
  text-align: center;
  transition: var(--transition);
}

.slot-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

.slot-btn.selected {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.slot-btn.unavailable {
  opacity: 0.4;
  cursor: not-allowed;
  background: var(--gray-100);
}

/* ============================================
   SEARCH BAR
   ============================================ */
.search-bar {
  display: flex;
  align-items: center;
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-full);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.search-bar:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
}

.search-bar-icon {
  padding: 0 16px;
  color: var(--gray-400);
  font-size: 18px;
  flex-shrink: 0;
}

.search-bar input {
  flex: 1;
  padding: 14px 8px;
  font-size: 15px;
  color: var(--gray-900);
  background: transparent;
}

.search-bar input::placeholder { color: var(--gray-400); }

.search-bar .btn {
  border-radius: 0;
  border-radius: 0 var(--radius-full) var(--radius-full) 0;
  margin: 0;
}

/* ============================================
   FILTER CHIPS
   ============================================ */
.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.filter-chip {
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  border: 1.5px solid var(--gray-200);
  background: var(--white);
  color: var(--gray-600);
  cursor: pointer;
  transition: var(--transition);
}

.filter-chip:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.filter-chip.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

/* ============================================
   AMBULANCE TYPES
   ============================================ */
.ambulance-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.ambulance-card {
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  background: var(--white);
  position: relative;
}

.ambulance-card.selected {
  border-color: var(--primary);
  background: var(--primary-light);
}

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

.ambulance-icon {
  font-size: 48px;
  margin-bottom: 12px;
  display: block;
}

.ambulance-name {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 6px;
}

.ambulance-features {
  font-size: 13px;
  color: var(--gray-500);
  line-height: 1.5;
  margin-bottom: 12px;
}

.ambulance-price {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
}

/* ============================================
   MEDICINE / PHARMACY
   ============================================ */
.medicine-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

.medicine-card {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-100);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.medicine-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.medicine-img {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  background: var(--gray-50);
}

.medicine-info {
  padding: 16px;
}

.medicine-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 4px;
  line-height: 1.3;
}

.medicine-brand {
  font-size: 12px;
  color: var(--gray-400);
  margin-bottom: 10px;
}

.medicine-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.medicine-mrp {
  font-size: 12px;
  color: var(--gray-400);
  text-decoration: line-through;
}

.medicine-price {
  font-size: 16px;
  font-weight: 800;
  color: var(--gray-900);
}

.medicine-discount {
  font-size: 11px;
  font-weight: 700;
  color: var(--secondary-dark);
  background: var(--secondary-light);
  padding: 2px 6px;
  border-radius: 4px;
}

.rx-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  color: var(--emergency);
  background: var(--emergency-light);
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 10px;
}

/* ============================================
   CART
   ============================================ */
.cart-sidebar {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 90px;
}

.cart-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
}

.cart-count {
  background: var(--primary);
  color: var(--white);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

.cart-items {
  padding: 16px 24px;
  max-height: 300px;
  overflow-y: auto;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-100);
}

.cart-item:last-child { border-bottom: none; }

.cart-item-name {
  flex: 1;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-800);
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.qty-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1.5px solid var(--gray-300);
  background: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: var(--transition);
}

.qty-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.cart-item-price {
  font-weight: 700;
  font-size: 14px;
  color: var(--gray-900);
}

.cart-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--gray-100);
}

.cart-subtotal {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: var(--gray-600);
  margin-bottom: 8px;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  font-size: 17px;
  font-weight: 800;
  color: var(--gray-900);
  padding-top: 8px;
  border-top: 1px solid var(--gray-200);
  margin-bottom: 16px;
}

/* ============================================
   STATUS BADGES
   ============================================ */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
}

.status-new { background: #e3f2fd; color: #1565c0; }
.status-assigned { background: #fff3e0; color: #e65100; }
.status-progress { background: #e8f5e9; color: #2e7d32; }
.status-completed { background: #f3e5f5; color: #6a1b9a; }

/* ============================================
   ADMIN DASHBOARD
   ============================================ */
.admin-layout {
  display: flex;
  min-height: 100vh;
  background: var(--gray-50);
}

.admin-sidebar {
  width: 260px;
  background: var(--gray-900);
  flex-shrink: 0;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  overflow-y: auto;
  z-index: 200;
}

.admin-logo {
  padding: 24px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-logo img {
  height: 40px;
}

.admin-logo-text {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
}

.admin-nav {
  padding: 20px 12px;
}

.admin-nav-section {
  margin-bottom: 24px;
}

.admin-nav-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  padding: 0 8px;
  margin-bottom: 8px;
}

.admin-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.65);
  transition: var(--transition);
  cursor: pointer;
}

.admin-nav-link:hover {
  background: rgba(255,255,255,0.08);
  color: var(--white);
}

.admin-nav-link.active {
  background: var(--primary);
  color: var(--white);
}

.admin-nav-link-icon {
  font-size: 18px;
  width: 20px;
  text-align: center;
}

.admin-nav-badge {
  margin-left: auto;
  background: var(--emergency);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
}

.admin-main {
  flex: 1;
  margin-left: 260px;
  display: flex;
  flex-direction: column;
}

.admin-topbar {
  background: var(--white);
  border-bottom: 1px solid var(--gray-100);
  padding: 16px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.admin-topbar-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 800;
  color: var(--gray-900);
}

.admin-topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-notification-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  position: relative;
  transition: var(--transition);
}

.admin-notification-btn:hover {
  background: var(--primary-light);
}

.notification-dot {
  width: 8px;
  height: 8px;
  background: var(--emergency);
  border-radius: 50%;
  position: absolute;
  top: 8px;
  right: 8px;
}

.admin-avatar {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
}

.admin-content {
  padding: 28px;
  flex: 1;
}

/* Stats Row */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}

.stat-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.stat-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.stat-info { flex: 1; }

.stat-value {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 900;
  color: var(--gray-900);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 13px;
  color: var(--gray-500);
}

.stat-change {
  font-size: 12px;
  font-weight: 600;
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 3px;
}

.stat-change.up { color: var(--secondary-dark); }
.stat-change.down { color: var(--emergency); }

/* Admin Table */
.admin-table-container {
  overflow-x: auto;
  border-radius: var(--radius-md);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.admin-table th {
  padding: 13px 16px;
  text-align: left;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--gray-500);
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
}

.admin-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--gray-100);
  color: var(--gray-700);
  vertical-align: middle;
}

.admin-table tr:last-child td { border-bottom: none; }

.admin-table tr:hover td {
  background: var(--gray-50);
}

/* ============================================
   USER DASHBOARD
   ============================================ */
.user-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  padding: 100px 24px 40px;
  max-width: var(--container-max);
  margin: 0 auto;
  min-height: 100vh;
}

.user-sidebar {
  position: sticky;
  top: 90px;
  align-self: start;
}

.user-profile-card {
  background: var(--gradient-primary);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
  margin-bottom: 16px;
  color: var(--white);
}

.user-avatar-large {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  border: 3px solid rgba(255,255,255,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 800;
  margin: 0 auto 14px;
}

.user-name-display {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}

.user-email-display {
  font-size: 13px;
  opacity: 0.8;
  margin-bottom: 16px;
}

.user-plan-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
}

.user-nav {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  border: 1px solid var(--gray-100);
}

.user-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-700);
  border-bottom: 1px solid var(--gray-100);
  transition: var(--transition);
  cursor: pointer;
}

.user-nav-link:last-child { border-bottom: none; }

.user-nav-link:hover {
  background: var(--primary-light);
  color: var(--primary);
}

.user-nav-link.active {
  background: var(--primary-light);
  color: var(--primary);
  border-left: 3px solid var(--primary);
}

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  box-shadow: var(--shadow-xl);
  border-left: 4px solid var(--primary);
  min-width: 320px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  animation: slideInRight 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  max-width: 400px;
}

.toast.success { border-color: var(--secondary); }
.toast.error { border-color: var(--emergency); }
.toast.warning { border-color: var(--warning); }

.toast-icon {
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 1px;
}

.toast-body { flex: 1; }

.toast-title {
  font-weight: 700;
  font-size: 14px;
  color: var(--gray-900);
  margin-bottom: 2px;
}

.toast-message {
  font-size: 13px;
  color: var(--gray-500);
}

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

/* ============================================
   STICKY BUTTONS
   ============================================ */
.sticky-buttons {
  position: fixed;
  right: 20px;
  bottom: 80px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 900;
}

.sticky-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
  border: none;
  position: relative;
}

.sticky-btn:hover {
  transform: scale(1.1);
}

.sticky-btn-label {
  position: absolute;
  right: calc(100% + 10px);
  background: var(--gray-900);
  color: var(--white);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.sticky-btn:hover .sticky-btn-label { opacity: 1; }

.sticky-ambulance {
  background: var(--gradient-emergency);
  color: var(--white);
  animation: pulse-emergency 2s infinite;
}

.sticky-whatsapp {
  background: #25d366;
  color: var(--white);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--gray-900);
  color: rgba(255,255,255,0.75);
}

.footer-main {
  padding: 60px 0 40px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
}

.footer-brand {}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.footer-logo-img-wrap {
  background: var(--white);
  border-radius: 14px;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.18);
  flex-shrink: 0;
}

.footer-logo img {
  height: 44px;
  width: auto;
  display: block;
  object-fit: contain;
}

.footer-logo-text {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 800;
  color: var(--white);
}

.footer-description {
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 20px;
  max-width: 280px;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
}

.footer-col-title {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
}

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

.footer-link {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-link:hover {
  color: var(--white);
  padding-left: 4px;
}

.footer-newsletter input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-size: 14px;
  margin-bottom: 10px;
  transition: var(--transition);
}

.footer-newsletter input:focus {
  border-color: var(--primary);
  background: rgba(255,255,255,0.1);
}

.footer-newsletter input::placeholder {
  color: rgba(255,255,255,0.35);
}

.footer-bottom {
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-copy {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
}

.footer-socials {
  display: flex;
  gap: 8px;
}

.social-link {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: var(--transition);
  color: rgba(255,255,255,0.6);
}

.social-link:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

/* ============================================
   MODAL
   ============================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(6px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

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

.modal {
  background: var(--white);
  border-radius: var(--radius-xl);
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  transform: scale(0.9) translateY(20px);
  transition: var(--transition);
}

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

.modal-header {
  padding: 24px 28px;
  border-bottom: 1px solid var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 800;
  color: var(--gray-900);
}

.modal-close {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  color: var(--gray-500);
  transition: var(--transition);
}

.modal-close:hover {
  background: var(--emergency-light);
  color: var(--emergency);
}

.modal-body { padding: 28px; }

.modal-footer {
  padding: 20px 28px;
  border-top: 1px solid var(--gray-100);
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

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

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

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

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

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 32px; }
  .plans-grid { grid-template-columns: 1fr; max-width: 360px; }
  .plan-card.popular { transform: none; }
}

@media (max-width: 768px) {
  :root { --section-padding: 60px 0; }
  
  .nav-menu { display: none; }
  .hamburger { display: flex; }
  
  .hero-content {
    grid-template-columns: 1fr;
    padding: 40px 20px;
    text-align: center;
  }
  
  .hero-cta-group { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { display: none; }
  
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid::before { display: none; }
  .why-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .ambulance-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  
  .emergency-content { flex-direction: column; text-align: center; }
  
  .footer-main { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  
  .admin-sidebar { transform: translateX(-100%); }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-main { margin-left: 0; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  
  .user-layout { grid-template-columns: 1fr; }
  
  .doctor-card { flex-direction: column; }
}

@media (max-width: 480px) {
  .services-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr; }
  .hero-cta-group { flex-direction: column; align-items: center; }
}

/* ============================================
   LOADING SPINNER
   ============================================ */
.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--gray-200);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto;
}

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

/* ============================================
   PROGRESS STEPS
   ============================================ */
.progress-steps {
  display: flex;
  align-items: center;
  margin-bottom: 40px;
}

.progress-step {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.progress-step:last-child { flex: none; }

.progress-step-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  background: var(--gray-200);
  color: var(--gray-500);
  flex-shrink: 0;
  transition: var(--transition);
}

.progress-step.active .progress-step-circle {
  background: var(--primary);
  color: var(--white);
}

.progress-step.completed .progress-step-circle {
  background: var(--secondary);
  color: var(--white);
}

.progress-step-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-400);
  display: none;
}

.progress-step.active .progress-step-label,
.progress-step.completed .progress-step-label {
  color: var(--gray-700);
  display: block;
}

.progress-connector {
  flex: 1;
  height: 2px;
  background: var(--gray-200);
  margin: 0 8px;
  transition: var(--transition);
}

.progress-connector.completed {
  background: var(--secondary);
}

/* ============================================
   MOBILE NAV MENU
   ============================================ */
.mobile-nav {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--gray-100);
  box-shadow: var(--shadow-lg);
  z-index: 999;
  padding: 16px;
  flex-direction: column;
  gap: 4px;
}

.mobile-nav.open { display: flex; }

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 500;
  color: var(--gray-700);
  transition: var(--transition);
}

.mobile-nav-link:hover {
  background: var(--primary-light);
  color: var(--primary);
}

/* ============================================
   PRICING TAG
   ============================================ */
.price-tag {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
}

.price-currency {
  font-size: 20px;
  font-weight: 700;
  color: var(--gray-900);
}

.price-amount {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 900;
  color: var(--gray-900);
}

.price-original {
  font-size: 16px;
  font-weight: 400;
  color: var(--gray-400);
  text-decoration: line-through;
  margin-left: 4px;
}

.price-save {
  font-size: 13px;
  font-weight: 700;
  color: var(--secondary-dark);
  background: var(--secondary-light);
  padding: 2px 8px;
  border-radius: 6px;
  margin-left: 8px;
}

/* ============================================
   TRACKING
   ============================================ */
.tracking-timeline {
  position: relative;
  padding-left: 32px;
}

.tracking-timeline::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--gray-200);
}

.tracking-event {
  position: relative;
  margin-bottom: 24px;
}

.tracking-event::before {
  content: '';
  position: absolute;
  left: -26px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gray-300);
  border: 2px solid var(--white);
}

.tracking-event.done::before {
  background: var(--secondary);
}

.tracking-event.current::before {
  background: var(--primary);
  animation: pulse-tracking 1.5s infinite;
}

@keyframes pulse-tracking {
  0%, 100% { box-shadow: 0 0 0 0 rgba(26, 115, 232, 0.4); }
  50% { box-shadow: 0 0 0 6px rgba(26, 115, 232, 0); }
}

.tracking-time {
  font-size: 12px;
  color: var(--gray-400);
  margin-bottom: 4px;
}

.tracking-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 2px;
}

.tracking-desc {
  font-size: 13px;
  color: var(--gray-500);
}

/* ============================================
   SCROLL TO TOP
   ============================================ */
.scroll-top {
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  transition: var(--transition);
  opacity: 0;
  pointer-events: none;
  z-index: 900;
}

.scroll-top.visible {
  opacity: 1;
  pointer-events: auto;
}

.scroll-top:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-primary);
}
