:root {
  --primary-color: #1a237e;
  --secondary-color: #ff6f00;
  --background-color: #f0f2f5;
  --text-color: #333;
  --white-color: #ffffff;
  --light-gray: #e9ecef;
  --error-color: #dc3545;
  --success-color: #28a745;
  --focus-color: #005fcc;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Use contain for better rendering */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* body with better font loading */
body {
  font-family: "Cairo", "Segoe UI", "Roboto", "Arial", sans-serif;
  margin: 0;
  padding: 0;
  background-color: var(--background-color, #f0f2f5);
  color: var(--text-color);
  line-height: 1.8;
  text-align: right;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Performance: Enable GPU acceleration */
  transform: translateZ(0);
  /* Accessibility: Better text rendering */
  text-rendering: optimizeLegibility;
}

/* Screen reader only content */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus management for better accessibility */
*:focus-visible {
  outline: 3px solid var(--focus-color);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Remove focus outline for mouse users */
*:focus:not(:focus-visible) {
  outline: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 15px;
  /* Performance: Use contain for layout */
  contain: layout style;
}

.section-cta-button {
  display: inline-block;
  margin-top: 30px;
  background-color: var(--primary-color);
  color: var(--white-color);
  padding: 12px 30px;
  font-size: 1.1em;
  font-weight: 700;
  text-decoration: none;
  border-radius: 50px;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  will-change: transform;
}

.join-family-button {
  background-color: var(--secondary-color);
}

.section-cta-button:hover,
.section-cta-button:focus-visible {
  background-color: #0d1242;
  transform: translateY(-2px) scale(1.02);
  box-shadow: var(--shadow-md);
}

/* Enhanced button interaction feedback */
.section-cta-button:active {
  transform: translateY(0) scale(0.98);
}

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

section {
  padding: 40px 0;
  border-bottom: 1px solid #e0e0e0;
  /* Performance: Use contain for better rendering */
  contain: layout;
}

section:last-of-type {
  border-bottom: none;
}

.section-headline {
  text-align: center;
  font-size: clamp(1.8em, 4vw, 2.5em);
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: 700;
  /* Performance: Optimize text rendering */
  text-rendering: optimizeLegibility;
}

.section-subheadline {
  text-align: center;
  font-size: clamp(1.1em, 2.5vw, 1.3em);
  color: #555;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

/* Enhanced hero section with better performance */
#hero {
  padding: 0;
  min-height: 100vh;
  min-height: 100dvh;
  /* Dynamic viewport height for mobile */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  color: var(--white-color);
  /* Performance: Create stacking context */
  isolation: isolate;
}

#hero .hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("https://images.unsplash.com/photo-1549060279-7e168fcee0c2?q=80&w=2070&auto=format&fit=crop");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  /* Performance: Use will-change sparingly */
  will-change: transform;
  animation: kenBurns 20s infinite alternate;
  /* Performance: Use transform3d for GPU acceleration */
  transform: translate3d(0, 0, 0);
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  #hero .hero-background {
    animation: none;
    background-attachment: scroll;
  }

  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

#hero .hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(26, 35, 126, 0.8),
    rgba(255, 111, 0, 0.1)
  );
  -webkit-backdrop-filter: blur(1px);
  /* Add this for Safari support */
  backdrop-filter: blur(1px);
}

#hero .hero-content {
  position: relative;
  z-index: 2;
  padding: 20px;
  max-width: 900px;
}

#hero .main-headline {
  font-size: clamp(2em, 5vw, 3.5em);
  font-weight: 900;
  margin-bottom: 15px;
  line-height: 1.3;
  animation: fadeInDown 1s ease-out;
  /* Performance: Optimize text rendering */
  text-rendering: optimizeLegibility;
}

#hero .solution-subheadline {
  font-size: clamp(1.3em, 3vw, 1.8em);
  margin-bottom: 30px;
  animation: fadeInUp 1s ease-out 0.5s both;
}

#hero .cta-button {
  background-color: var(--secondary-color);
  color: var(--white-color);
  padding: 15px 35px;
  font-size: clamp(1.1em, 2.5vw, 1.3em);
  font-weight: 700;
  text-decoration: none;
  border-radius: 50px;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  /* Performance: Enable GPU acceleration */
  will-change: transform;
}

#hero .cta-button:hover,
#hero .cta-button:focus-visible {
  background-color: #e65c00;
  transform: translateY(-3px) scale(1.05);
  box-shadow: var(--shadow-lg);
}

/* Enhanced animations with better performance */
@keyframes kenBurns {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }

  to {
    transform: translate3d(0, 0, 0) scale(1.1);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translate3d(0, -30px, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate3d(0, 30px, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale3d(0.9, 0.9, 1);
  }

  to {
    opacity: 1;
    transform: scale3d(1, 1, 1);
  }
}

/* Enhanced grid with better responsive design */
.three-column-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  text-align: center;
}

.grid-item {
  background: var(--white-color);
  padding: 25px;
  border-radius: 10px;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  /* Performance: Use contain for better rendering */
  contain: layout style;
}

.grid-item:hover,
.grid-item:focus-within {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.grid-item .icon {
  font-size: 3em;
  color: var(--secondary-color);
  margin-bottom: 15px;
  /* Accessibility: Ensure proper aria-label usage */
  display: inline-block;
}

.grid-item h3 {
  font-size: 1.5em;
  color: var(--primary-color);
  margin-bottom: 10px;
}

/* Enhanced step-by-step process */
.step-by-step-graphic {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 30px;
}

.step {
  background: var(--white-color);
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  position: relative;
}

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

.step .step-number {
  font-size: 2.5em;
  font-weight: 800;
  color: var(--white-color);
  background: var(--secondary-color);
  border-radius: 50%;
  width: 70px;
  height: 70px;
  line-height: 70px;
  margin: 0 auto 15px;
  box-shadow: var(--shadow-sm);
}

.step h3 {
  font-size: 1.3em;
  color: var(--primary-color);
}

/* Enhanced sections styling */
#results,
#video-results {
  background: var(--white-color);
}

.testimonial-wall {
  max-width: 800px;
  margin: 30px auto;
  background: var(--light-gray);
  padding: 20px;
  border-radius: 10px;
}

.testimonial {
  background: var(--white-color);
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: var(--shadow-sm);
}

#coach {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  text-align: center;
}

#coach img {
  width: 100%;
  max-width: 300px;
  border-radius: 10px;
  margin: 0 auto 20px;
  box-shadow: var(--shadow-md);
  /* Optimize image rendering */
  image-rendering: auto;
}

#company-info {
  text-align: center;
  background: linear-gradient(135deg, var(--primary-color), #2c3e8f);
  color: var(--white-color);
}

#company-info .section-headline {
  color: var(--white-color);
}

#company-info p {
  font-size: 1.1em;
  line-height: 1.8;
  max-width: 800px;
  margin: 0 auto 20px;
}

/* Enhanced FAQ with better accessibility */
#faq {
  background: var(--white-color);
}

.faq-item {
  border-bottom: 1px solid var(--light-gray);
  padding: 15px 0;
  transition: var(--transition);
}

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

.faq-question {
  font-size: 1.2em;
  font-weight: 600;
  color: var(--primary-color);
  cursor: pointer;
  padding: 10px 0;
  margin: 0;
  background: none;
  border: none;
  text-align: right;
  width: 100%;
  position: relative;
  transition: var(--transition);
}

.faq-question:hover,
.faq-question:focus-visible {
  color: var(--secondary-color);
  background-color: rgba(255, 111, 0, 0.05);
  border-radius: 8px;
}

.faq-question::after {
  content: "+";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5em;
  font-weight: bold;
  transition: var(--transition);
}

.faq-question[aria-expanded="true"]::after {
  content: "−";
  transform: translateY(-50%) rotate(180deg);
}

.faq-answer {
  margin-top: 10px;
  padding-right: 15px;
  display: none;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  max-height: 0;
}

.faq-answer.open {
  display: block;
}

/* Enhanced WhatsApp button */
.whatsapp-button {
  display: inline-block;
  margin-top: 10px;
  background-color: #25d366;
  color: var(--white-color);
  padding: 10px 20px;
  font-size: 1em;
  font-weight: 700;
  text-decoration: none;
  border-radius: 50px;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.whatsapp-button:hover,
.whatsapp-button:focus-visible {
  background-color: #1ebe57;
  transform: translateY(-2px) scale(1.05);
  box-shadow: var(--shadow-md);
}

/* Enhanced pricing table */
.pricing-table {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.package {
  position: relative;
  background: var(--white-color);
  border-radius: 10px;
  padding: 25px;
  max-width: 400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  /* Performance: Use contain for better rendering */
  contain: layout style;
}

.package:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.package.highlight {
  border: 2px solid var(--secondary-color);
  transform: scale(1.02);
}

.popular-badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--secondary-color);
  color: var(--white-color);
  padding: 5px 15px;
  font-size: 0.9em;
  font-weight: 700;
  border-radius: 25px;
  box-shadow: var(--shadow-sm);
}

.package-title {
  font-size: 1.6em;
  font-weight: 700;
  color: var(--primary-color);
  text-align: center;
}

.package-subtitle {
  color: var(--secondary-color);
}

.package-cta {
  font-size: 1.6em;
  font-weight: 700;
  color: var(--secondary-color);
  text-align: center;
}

.package-target {
  font-size: 0.9em;
  color: #666;
  text-align: center;
  margin-bottom: 20px;
  min-height: 70px;
}

.package-features {
  list-style: none;
  padding: 0;
  margin: 15px 0;
  flex-grow: 1;
}

.package-features li {
  margin-bottom: 10px;
  padding-right: 25px;
  position: relative;
  line-height: 1.6;
}

.package-features li::before {
  content: "✅";
  position: absolute;
  right: 0;
  font-size: 1.1em;
}

.package-features li.excluded::before {
  content: "❌";
  color: #e63946;
}

/* Enhanced duration selector with better accessibility */
.duration-selector {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 15px;
  border: 1px solid var(--light-gray);
  border-radius: 12px;
  padding: 4px;
  background: var(--light-gray);
}

.duration-option {
  font-family: "Cairo", sans-serif;
  padding: 8px 14px;
  border: none;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  font-size: 0.85em;
  transition: var(--transition);
  color: var(--text-color);
  font-weight: 500;
}

.duration-option:hover,
.duration-option:focus-visible {
  background: rgba(26, 35, 126, 0.1);
  color: var(--primary-color);
}

.duration-option.active,
.duration-option[aria-checked="true"] {
  background: var(--primary-color);
  color: var(--white-color);
  box-shadow: var(--shadow-sm);
  font-weight: 600;
}

.pricing-module {
  margin-top: auto;
  padding-top: 15px;
  border-top: 1px solid var(--light-gray);
  text-align: center;
}

.price-display-area {
  margin-bottom: 15px;
  padding: 15px;
  background: rgba(26, 35, 126, 0.02);
  border-radius: 8px;
}

.price-display-area .price-label {
  font-size: 0.9em;
  color: #666;
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
}

.price-value-container {
  font-size: 1.8em;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1.2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-wrap: wrap;
}

.price-value-container .currency-symbol {
  font-size: 0.7em;
  vertical-align: middle;
}

.price-value-container .duration-text {
  font-size: 0.6em;
  font-weight: normal;
  color: #666;
  vertical-align: middle;
  margin-right: 5px;
}

.currency-selector-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
  font-size: 0.85em;
}

.currency-selector-container label {
  color: #666;
  font-weight: 500;
}

.currency-selector {
  padding: 8px 12px;
  border: 1px solid var(--light-gray);
  border-radius: 8px;
  font-size: 0.9em;
  font-family: "Cairo", sans-serif;
  cursor: pointer;
  background: var(--white-color);
  transition: var(--transition);
  min-width: 140px;
}

.currency-selector:hover {
  border-color: var(--primary-color);
}

.currency-selector:focus-visible {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(26, 35, 126, 0.2);
}

/* Enhanced CTA buttons */
.package .cta-button {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--white-color);
  padding: 16px 40px;
  font-size: 1.1em;
  font-weight: 700;
  text-decoration: none;
  border-radius: 50px;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  width: 100%;
  text-align: center;
  /* Performance: Enable GPU acceleration */
  will-change: transform;
}

.package .cta-button:hover,
.package .cta-button:focus-visible {
  background-color: #0d1242;
  transform: translateY(-2px) scale(1.02);
  box-shadow: var(--shadow-lg);
}

.package .cta-button:active {
  transform: translateY(0) scale(0.98);
}

.package.highlight .cta-button {
  background-color: var(--secondary-color);
  animation: pulse 2s infinite;
}

.package.highlight .cta-button:hover,
.package.highlight .cta-button:focus-visible {
  background-color: #e65c00;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 111, 0, 0.4);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(255, 111, 0, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(255, 111, 0, 0);
  }
}

/* VIP packages styling */
.vip-sub-packages {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px dashed var(--light-gray);
}

.vip-tier {
  margin-bottom: 20px;
  padding: 15px;
  border: 1px solid var(--light-gray);
  border-radius: 8px;
  background: rgba(26, 35, 126, 0.02);
}

.vip-tier:last-child {
  margin-bottom: 0;
}

.vip-tier .package-price {
  font-size: 1.5em;
  color: var(--primary-color);
  font-weight: 700;
  margin: 10px 0;
}

/* Enhanced modal with better accessibility */
.subscription-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  direction: rtl;
  font-family: "Cairo", sans-serif;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  -webkit-overflow-scrolling: touch;
  min-height: 100dvh;
  min-height: 100vh;
  /* Fallback */
  overscroll-behavior: contain;
  overflow-y: auto;
}

.subscription-modal[style*="display: flex"] {
  display: flex;
}

.modal-content {
  background: var(--white-color);
  border-radius: 12px;
  padding: 25px 20px;
  max-width: 400px;
  width: 90%;
  max-height: 90dvh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-lg);
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    transform: translate3d(0, -50px, 0) scale(0.9);
    opacity: 0;
  }

  to {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 1;
  }
}

.modal-content h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 20px;
}

/* Enhanced form styling with better validation */
.form-group {
  position: relative;
  margin-bottom: 20px;
}

.modal-content input {
  width: 100%;
  padding: 12px 15px;
  font-size: 14px;
  border: 2px solid var(--light-gray);
  border-radius: 8px;
  font-family: "Cairo", sans-serif;
  transition: var(--transition);
  background: var(--white-color);
}

.status-message {
  margin-top: 8px;
  font-size: 14px;
}

.status-message.success {
  color: green;
}

.status-message.error {
  color: red;
}

.modal-content input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(26, 35, 126, 0.1);
}

.modal-content input:valid {
  border-color: var(--success-color);
}

.modal-content input:invalid:not(:focus):not(:placeholder-shown) {
  border-color: var(--error-color);
}

.error-message {
  display: block;
  color: var(--error-color);
  font-size: 12px;
  margin-top: 4px;
  min-height: 16px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.error-message.show {
  opacity: 1;
}

.modal-content button {
  background: var(--primary-color);
  color: var(--white-color);
  padding: 12px 20px;
  width: 100%;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.modal-content button:hover,
.modal-content button:focus-visible {
  background: #0d1242;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.modal-content button:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.close-button {
  position: absolute;
  top: 15px;
  font-size: 18px;
  color: #666;
  cursor: pointer;
  background: none;
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.close-button:hover,
.close-button:focus-visible {
  background: var(--light-gray);
  color: var(--text-color);
}

/* Enhanced final CTA section */
#final-cta {
  text-align: center;
  background: linear-gradient(135deg, #f8f9fa, var(--background-color));
  border-radius: 12px;
  padding: 30px;
  margin: 20px 0;
}

/* Enhanced footer */
footer {
  background: var(--light-gray);
  padding: 30px 15px;
  text-align: center;
  margin-top: 50px;
  border-top: 3px solid var(--primary-color);
}

footer .whatsapp-contact {
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

footer .whatsapp-contact:hover,
footer .whatsapp-contact:focus-visible {
  color: var(--secondary-color);
}

.footer-links {
  margin: 15px 0;
}

.footer-links a {
  color: #666;
  text-decoration: none;
  margin: 0 8px;
  font-size: 0.9em;
  transition: var(--transition);
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--primary-color);
}

/* Enhanced Splide slider styling */
.splide {
  margin: 0;
  padding: 20px 0;
  /* Performance: Use contain for better rendering */
  contain: layout;
}

.splide__track {
  padding: 0 10px;
}

.splide__slide {
  padding: 0 8px;
}

.splide__slide img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  aspect-ratio: 9/16;
  border-radius: 10px;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  /* Performance: Optimize image rendering */
  image-rendering: auto;
}

.splide__slide img:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-lg);
}

.splide__slide video {
  width: 100%;
  height: 650px;
  object-fit: cover;
  aspect-ratio: 9/16;
  border-radius: 10px;
  box-shadow: var(--shadow-md);
  background: #000;
  /* Performance: Optimize video rendering */
  will-change: auto;
}

.video-splide .splide__slide video::-webkit-media-controls-panel {
  background: rgba(0, 0, 0, 0.8);
}

/* Enhanced navigation arrows */
.splide__arrow {
  background: var(--white-color);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  opacity: 0.9;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border: 2px solid transparent;
}

.splide__arrow:hover,
.splide__arrow:focus-visible {
  opacity: 1;
  transform: scale(1.1);
  border-color: var(--primary-color);
}

.splide__arrow svg {
  fill: var(--primary-color);
  width: 15px;
  height: 15px;
}

.splide__arrow--prev {
  right: auto;
  left: 10px;
}

.splide__arrow--next {
  left: auto;
  right: 10px;
}

/* Enhanced pagination */
.splide__pagination {
  bottom: -25px;
  padding: 10px 0;
}

.splide__pagination__page {
  background: var(--light-gray);
  width: 10px;
  height: 10px;
  margin: 5px;
  border-radius: 50%;
  transition: var(--transition);
  border: 2px solid transparent;
}

.splide__pagination__page.is-active {
  background: var(--primary-color);
  transform: scale(1.2);
}

.splide__pagination__page:hover:not(.is-active),
.splide__pagination__page:focus-visible:not(.is-active) {
  background: var(--secondary-color);
  border-color: var(--secondary-color);
}

/* Enhanced image optimization */
img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  margin: 10px auto;
  /* Performance: Optimize loading */
  loading: lazy;
  /* Performance: Optimize decoding */
  decoding: async;
}

/* Enhanced Payment Status Modal Styles */
#paymentStatusModal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  /* bottom: 0; */
  background: rgba(0, 0, 0, 0.8);
  display: none;
  z-index: 10001;
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  padding-top: 20px;
}

#paymentStatusModal.show {
  opacity: 1;
}

#paymentStatusModal .modal-content {
  background: var(--white-color);
  border-radius: 15px;
  padding: 30px;
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  margin: 20px auto 0;
  transform: translateY(-20px) scale(0.95);
  transition: transform 0.3s ease-out;
}

#paymentStatusModal.show .modal-content {
  transform: translateY(0) scale(1);
}

.payment-message {
  text-align: center;
  line-height: 1.6;
}

.payment-message h3 {
  font-size: 1.5em;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.payment-message p {
  margin-bottom: 12px;
  color: var(--text-color);
}

/* Success styles */
.payment-message.success {
  color: var(--success-color);
}

.payment-message.success h3 {
  color: var(--success-color);
}

.success-icon {
  font-size: 4em;
  margin-bottom: 20px;
  animation: bounce 0.6s ease-out;
}

.payment-success {
  padding: 20px 0;
}

.next-steps {
  background: rgba(40, 167, 69, 0.1);
  padding: 20px;
  border-radius: 10px;
  margin-top: 20px;
  text-align: right;
}

.next-steps ul {
  list-style: none;
  padding: 0;
  margin: 10px 0 0 0;
}

.next-steps li {
  padding: 8px 0;
  padding-right: 25px;
  position: relative;
  border-bottom: 1px solid rgba(40, 167, 69, 0.2);
}

.next-steps li:last-child {
  border-bottom: none;
}

.next-steps li::before {
  content: "✓";
  position: absolute;
  right: 0;
  color: var(--success-color);
  font-weight: bold;
  font-size: 1.1em;
}

/* Error styles */
.payment-message.error {
  color: var(--error-color);
}

.payment-message.error h3 {
  color: var(--error-color);
}

.error-icon {
  font-size: 4em;
  margin-bottom: 20px;
  animation: shake 0.6s ease-out;
}

.payment-failed {
  padding: 20px 0;
}

.retry-options {
  background: rgba(220, 53, 69, 0.1);
  padding: 20px;
  border-radius: 10px;
  margin-top: 20px;
  text-align: right;
}

.retry-options ul {
  list-style: none;
  padding: 0;
  margin: 10px 0 0 0;
}

.retry-options li {
  padding: 8px 0;
  padding-right: 25px;
  position: relative;
  border-bottom: 1px solid rgba(220, 53, 69, 0.2);
}

.retry-options li:last-child {
  border-bottom: none;
}

.retry-options li::before {
  content: "→";
  position: absolute;
  right: 0;
  color: var(--error-color);
  font-weight: bold;
  font-size: 1.1em;
}

.retry-payment-btn {
  background: var(--error-color);
  color: var(--white-color);
  padding: 12px 24px;
  border: none;
  border-radius: 25px;
  font-size: 1em;
  font-weight: 600;
  cursor: pointer;
  margin-top: 20px;
  transition: all 0.3s ease;
  font-family: "Cairo", sans-serif;
}

.retry-payment-btn:hover,
.retry-payment-btn:focus {
  background: #c82333;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(220, 53, 69, 0.3);
}

/* Countdown styles */
.countdown {
  background: rgba(26, 35, 126, 0.1);
  padding: 10px 15px;
  border-radius: 20px;
  font-size: 0.9em;
  color: var(--primary-color);
  margin-top: 20px;
  font-weight: 500;
  border: 1px solid rgba(26, 35, 126, 0.2);
}

/* Reference and amount display */
.payment-message strong {
  color: var(--primary-color);
  font-weight: 600;
}

.payment-success strong,
.payment-failed strong {
  display: inline-block;
  margin-left: 5px;
}

/* Close button enhanced */
#paymentStatusModal .close-button {
  position: absolute;
  top: 15px;
  left: 15px;
  font-size: 24px;
  color: #666;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.1);
  border: none;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

#paymentStatusModal .close-button:hover,
#paymentStatusModal .close-button:focus {
  background: rgba(0, 0, 0, 0.2);
  color: var(--text-color);
  transform: scale(1.1);
}

/* Animations */
@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }

  40% {
    transform: translateY(-10px);
  }

  60% {
    transform: translateY(-5px);
  }
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-5px);
  }

  75% {
    transform: translateX(5px);
  }
}

/* Mobile responsiveness */
@media (max-width: 480px) {
  #paymentStatusModal {
    padding-top: 10px;
    /* Reduced padding for smaller screens */
  }

  #paymentStatusModal .modal-content {
    margin-top: 10px;
    /* Reduced margin for smaller screens */
    padding: 20px;
    margin-left: 10px;
    margin-right: 10px;
    max-width: 95%;
  }

  .success-icon,
  .error-icon {
    font-size: 3em;
  }

  .payment-message h3 {
    font-size: 1.3em;
  }

  .next-steps,
  .retry-options {
    padding: 15px;
  }

  .retry-payment-btn {
    width: 100%;
    padding: 15px;
  }
}

@media (min-width: 481px) and (max-width: 768px) {
  #paymentStatusModal {
    padding-top: 15px;
    /* Adjusted padding for medium screens */
  }

  #paymentStatusModal .modal-content {
    margin-top: 15px;
    /* Adjusted margin for medium screens */
    max-width: 450px;
    padding: 25px;
  }
}

/* Print styles */
@media print {
  #paymentStatusModal {
    display: none !important;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  #paymentStatusModal {
    background: rgba(0, 0, 0, 0.95);
  }

  .next-steps,
  .retry-options {
    border: 2px solid currentColor;
  }

  .countdown {
    border: 2px solid var(--primary-color);
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  #paymentStatusModal,
  #paymentStatusModal .modal-content,
  .success-icon,
  .error-icon,
  .retry-payment-btn {
    animation: none !important;
    transition: none !important;
  }

  .success-icon,
  .error-icon {
    transform: none !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --primary-color: #000080;
    --secondary-color: #ff4500;
    --text-color: #000000;
    --background-color: #ffffff;
  }

  .package {
    border: 2px solid var(--primary-color);
  }

  .faq-answer {
    border-left: 3px solid var(--primary-color);
    padding-left: 15px;
  }
}

/* Print styles */
@media print {
  .skip-link,
  .splide__arrow,
  .splide__pagination,
  .subscription-modal,
  .cta-button,
  .payment-button {
    display: none !important;
  }

  body {
    background: white;
    color: black;
    font-size: 12pt;
    line-height: 1.4;
  }

  .section-headline {
    page-break-after: avoid;
  }

  .package {
    page-break-inside: avoid;
  }
}

/* Responsive Design Enhancements */
@media (max-width: 480px) {
  .section-cta-button {
    display: block;
    margin: 20px auto;
    text-align: center;
    padding: 14px 25px;
  }

  .hero-content {
    padding: 15px;
  }

  .pricing-table {
    gap: 15px;
  }

  .package {
    padding: 20px;
    margin: 0;
  }

  .modal-content {
    margin: 10px;
    padding: 20px 15px;
  }
}

@media (min-width: 481px) and (max-width: 768px) {
  .container {
    padding: 20px;
  }

  .section-headline {
    font-size: 2.2em;
  }

  .section-subheadline {
    font-size: 1.25em;
  }

  .splide__slide img,
  .splide__slide video {
    height: 450px;
  }

  .splide__arrow {
    width: 45px;
    height: 45px;
  }

  .splide__arrow svg {
    width: 18px;
    height: 18px;
  }
}

@media (min-width: 769px) {
  .container {
    padding: 30px 25px;
  }

  section {
    padding: 60px 0;
  }

  .section-headline {
    font-size: 2.5em;
  }

  .section-subheadline {
    font-size: 1.3em;
    margin-bottom: 50px;
  }

  #hero .main-headline {
    font-size: 3em;
  }

  #hero .solution-subheadline {
    font-size: 1.6em;
  }

  #hero .cta-button {
    padding: 18px 40px;
    font-size: 1.3em;
  }

  .section-cta-button {
    padding: 15px 35px;
    font-size: 1.2em;
  }

  .three-column-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  .grid-item {
    padding: 30px;
  }

  .grid-item .icon {
    font-size: 3.5em;
  }

  .grid-item h3 {
    font-size: 1.6em;
  }

  .step-by-step-graphic {
    flex-direction: row;
    gap: 30px;
  }

  .step {
    min-width: 250px;
    padding: 25px;
  }

  .step .step-number {
    width: 80px;
    height: 80px;
    line-height: 80px;
    font-size: 3em;
  }

  .step h3 {
    font-size: 1.5em;
  }

  .pricing-table {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  }

  .package {
    padding: 30px;
    max-width: none;
    margin: 0;
  }

  .splide {
    padding: 30px 0;
  }

  .splide__slide {
    padding: 0 12px;
  }

  .splide__slide img,
  .splide__slide video {
    height: 500px;
  }

  .splide__arrow {
    width: 50px;
    height: 50px;
  }

  .splide__arrow svg {
    width: 20px;
    height: 20px;
  }

  .splide__arrow--prev {
    left: 20px;
  }

  .splide__arrow--next {
    right: 20px;
  }

  .splide__pagination {
    bottom: -25px;
  }

  .splide__pagination__page {
    width: 12px;
    height: 12px;
  }
}

@media (min-width: 993px) {
  .section-headline {
    font-size: 2.8em;
  }

  #hero .main-headline {
    font-size: 3.5em;
  }

  #hero .solution-subheadline {
    font-size: 1.8em;
  }

  .three-column-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .splide__slide img,
  .splide__slide video {
    height: 600px;
  }

  #coach {
    grid-template-columns: 1fr 2fr;
    text-align: right;
    align-items: center;
  }

  #coach img {
    max-width: 350px;
    margin: 0;
  }
}

/* Performance optimizations for large screens */
@media (min-width: 1400px) {
  .container {
    max-width: 1400px;
  }

  .hero-background {
    background-attachment: fixed;
  }
}

/* Dark mode support */
/* @media (prefers-color-scheme: dark) {
    :root {
        --background-color: #1a1a1a;
        --text-color: #e0e0e0;
        --white-color: #2d2d2d;
        --light-gray: #333333;
    }

    body {
        background-color: #f0f2f5;
        color: var(--text-color);
    }

    .package,
    .grid-item,
    .step,
    .modal-content {
        background: var(--white-color);
        color: var(--text-color);
    }

    .hero-overlay {
        background: linear-gradient(135deg, rgba(26, 35, 126, 0.9), rgba(255, 111, 0, 0.2));
    }
} */

/* Loading states */
.loading {
  opacity: 0.6;
  pointer-events: none;
  position: relative;
}

.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  border: 2px solid transparent;
  border-top: 2px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  transform: translate(-50%, -50%);
}

@keyframes spin {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.toastify-center {
  max-width: -moz-fit-content;
  /* Prefix first */
  max-width: fit-content;
  /* Unprefixed last */
}

del {
  color: #f4a7ad;
  text-decoration: line-through;
}

.faq-item.open .faq-answer {
  display: block;
  max-height: 1000px;
  overflow: hidden;
}
.faq-answer {
  transition: max-height 0.3s ease-out;
}
.offer-badge {
  color: #ff0000;
  font-size: 1.9rem;
  font-weight: bold;
  margin-bottom: 15px;
  padding-bottom: 15px;
}
#stats {
  padding: 60px 0;
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

.stats-container {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 40px;
  width: 100%;
}

.stat-card {
  flex: 1;
  background: var(--white-color);
  border-radius: 15px;
  padding: 15px 8px;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  min-width: 0; /* Important for flexbox shrinking */
}

.stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--secondary-color)
  );
}

.stat-number {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 1.8em;
}

.stat-number span:nth-child(2) {
  color: var(--secondary-color);
  font-weight: 700;
  font-size: 0.7em;
  margin-left: 2px;
}

.counter {
  font-weight: 900;
  color: var(--primary-color);
  margin: 10px 0 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.stat-label {
  font-size: 0.9em;
  color: var(--text-color);
  font-weight: 800;
  margin-bottom: 8px;
  margin-top: 0;
}

.stat-description {
  color: #666;
  margin-top: 8px;
  font-size: 0.8em;
  line-height: 1.4;
}

/* ---------- Social Media Links in Footer ---------- */
.social-links {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin: 20px 0 15px;
}
.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--primary-color);
  color: #fff;
  border-radius: 50%;
  transition: var(--transition);
}
.social-icon:hover,
.social-icon:focus-visible {
  background: var(--secondary-color);
  transform: scale(1.12);
  box-shadow: var(--shadow-md);
}

/* ---------- Fixed WhatsApp Float Button ---------- */
.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9999;
  background: #25d366;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: var(--transition);
}
.whatsapp-float:hover,
.whatsapp-float:focus-visible {
  background: #1ebe57;
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}
.whatsapp-float svg {
  width: 34px;
  height: 34px;
}

/* Mobile tweak – make the button a bit smaller on tiny screens */
@media (max-width: 480px) {
  .whatsapp-float {
    right: 12px;
    bottom: 12px;
    width: 52px;
    height: 52px;
  }
  .whatsapp-float svg {
    width: 30px;
    height: 30px;
  }
}

/* ⚡ Flash Sale Countdown Section */
.flash-sale-banner {
  background: linear-gradient(135deg, var(--secondary-color), #ff9100);
  color: var(--white-color);
  text-align: center;
  padding: 25px 10px;
  border-bottom: 3px solid var(--primary-color);
  animation: pulseGlow 2s infinite alternate;
}

.flash-sale-banner h2 {
  font-size: clamp(1.6em, 3vw, 2.2em);
  font-weight: 800;
  margin: 0 0 8px;
}

.flash-sale-banner p {
  font-size: 1.1em;
  margin-bottom: 15px;
}

.countdown-timer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.countdown-timer div {
  background: rgba(255, 255, 255, 0.15);
  padding: 10px 15px;
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  min-width: 70px;
}

.countdown-timer span {
  display: block;
  font-size: 1.8em;
  font-weight: 900;
  line-height: 1;
}

.countdown-timer small {
  font-size: 0.8em;
  color: rgba(255, 255, 255, 0.85);
}

@keyframes pulseGlow {
  from {
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
  }
  to {
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.5);
  }
}

#autoPopupModal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgb(0 0 0 / 0.8);
  z-index: 10000;
  overflow-y: auto;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
#autoPopupModal .modal-content {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 400px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  z-index: 10001;
}

.wheel-container {
  position: relative;
  width: 300px;
  height: 300px;
  margin: 20px auto;
  overflow: hidden;
}

.wheel {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 5px solid var(--primary-color);
  overflow: hidden;
  transition: transform 4s cubic-bezier(0.25, 0, 0.1, 1);
  box-shadow: var(--shadow-lg);
}

.segment {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 50%;
  height: 50%;
  transform-origin: 0% 0%;
  clip-path: polygon(0 0, 100% 0, 100% 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9em;
  font-weight: bold;
  color: #fff;
  text-align: center;
  padding: 10px;
  transform: rotate(var(--rotate));
}

.wheel::before {
  content: "";
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 15px solid transparent;
  border-right: 15px solid transparent;
  border-bottom: 25px solid var(--secondary-color);
  z-index: 10;
}

#spinButton {
  position: absolute;
  bottom: -50px;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 20px;
  font-size: 1em;
}

#spinButton:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

#resultMessage {
  margin-top: 20px;
  font-size: 1.2em;
  text-align: center;
  color: var(--success-color);
}

#copyCoupon {
  margin-top: 15px;
  width: 100%;
}

@media (max-width: 480px) {
  .wheel-container {
    width: 250px;
    height: 250px;
  }
  .segment {
    font-size: 0.8em;
  }
}

.stat-number {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 1.8em;
  font-weight: 900;
}

.main-number,
.counter-value {
  color: var(--secondary-color);
}

.unit {
  color: var(--primary-color);
  font-weight: 700;
  font-size: 0.7em;
}

.stat-number span:nth-child(2) {
  color: inherit;
}

.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9999;
  background: #25d366;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.whatsapp-float:hover,
.whatsapp-float:focus-visible {
  background: #1ebe57;
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}
.whatsapp-float svg {
  width: 34px;
  height: 34px;
}
@media (max-width: 480px) {
  .whatsapp-float {
    right: 12px;
    bottom: 12px;
    width: 52px;
    height: 52px;
  }
  .whatsapp-float svg {
    width: 30px;
    height: 30px;
  }
}
