/* ==========================================================================
   PAS ACADEMY — ANIMATIONS & SCROLL EFFECTS
   Advanced CSS Animations, Scroll Reveal, Micro-interactions
   ========================================================================== */

/* ============================================================
   SCROLL REVEAL BASE STATES
   ============================================================ */
.reveal-fade {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-fade.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-left.revealed {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-right.revealed {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-scale.revealed {
  opacity: 1;
  transform: scale(1);
}

.reveal-up-slow {
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-up-slow.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays for child elements */
.stagger-children > *:nth-child(1) { transition-delay: 0.05s; }
.stagger-children > *:nth-child(2) { transition-delay: 0.15s; }
.stagger-children > *:nth-child(3) { transition-delay: 0.25s; }
.stagger-children > *:nth-child(4) { transition-delay: 0.35s; }
.stagger-children > *:nth-child(5) { transition-delay: 0.45s; }
.stagger-children > *:nth-child(6) { transition-delay: 0.55s; }

/* ============================================================
   SCROLL PROGRESS BAR
   ============================================================ */
#scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 4px;
  background: linear-gradient(90deg, #f59e0b, #ea580c, #8b5cf6, #0ea5e9);
  background-size: 200% 100%;
  z-index: 99999;
  transition: width 0.1s linear;
  animation: progressGradient 3s linear infinite;
}
@keyframes progressGradient {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

/* ============================================================
   FLOATING PARTICLES HERO BACKGROUND
   ============================================================ */
.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.particle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.15;
  animation: floatParticle linear infinite;
}
.particle:nth-child(1)  { width: 6px;  height: 6px;  background: #f59e0b; top: 10%; left: 20%; animation-duration: 8s; animation-delay: 0s; }
.particle:nth-child(2)  { width: 10px; height: 10px; background: #8b5cf6; top: 30%; left: 80%; animation-duration: 12s; animation-delay: -2s; }
.particle:nth-child(3)  { width: 4px;  height: 4px;  background: #0ea5e9; top: 60%; left: 40%; animation-duration: 9s; animation-delay: -4s; }
.particle:nth-child(4)  { width: 8px;  height: 8px;  background: #10b981; top: 80%; left: 10%; animation-duration: 14s; animation-delay: -1s; }
.particle:nth-child(5)  { width: 5px;  height: 5px;  background: #f59e0b; top: 20%; left: 60%; animation-duration: 10s; animation-delay: -3s; }
.particle:nth-child(6)  { width: 12px; height: 12px; background: #ec4899; top: 70%; left: 70%; animation-duration: 11s; animation-delay: -5s; }
.particle:nth-child(7)  { width: 3px;  height: 3px;  background: #f59e0b; top: 45%; left: 90%; animation-duration: 7s; animation-delay: -2s; }
.particle:nth-child(8)  { width: 7px;  height: 7px;  background: #0ea5e9; top: 15%; left: 5%;  animation-duration: 13s; animation-delay: -6s; }
.particle:nth-child(9)  { width: 5px;  height: 5px;  background: #8b5cf6; top: 55%; left: 55%; animation-duration: 9s; animation-delay: -1s; }
.particle:nth-child(10) { width: 9px;  height: 9px;  background: #10b981; top: 90%; left: 30%; animation-duration: 16s; animation-delay: -3s; }
.particle:nth-child(11) { width: 4px;  height: 4px;  background: #fbbf24; top: 35%; left: 25%; animation-duration: 8s; animation-delay: -4s; }
.particle:nth-child(12) { width: 6px;  height: 6px;  background: #ec4899; top: 75%; left: 85%; animation-duration: 10s; animation-delay: -7s; }

@keyframes floatParticle {
  0%   { transform: translate(0, 0) rotate(0deg); opacity: 0.15; }
  25%  { transform: translate(30px, -40px) rotate(90deg); opacity: 0.25; }
  50%  { transform: translate(-20px, -80px) rotate(180deg); opacity: 0.1; }
  75%  { transform: translate(-40px, -40px) rotate(270deg); opacity: 0.2; }
  100% { transform: translate(0, -120px) rotate(360deg); opacity: 0; }
}

/* ============================================================
   ANIMATED GRADIENT BACKGROUNDS
   ============================================================ */
.gradient-animated-bg {
  background: linear-gradient(-45deg, #0b192c, #132a4a, #1b3a6b, #0e223d, #0b192c);
  background-size: 400% 400%;
  animation: gradientShift 12s ease infinite;
}
@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.gradient-purple-bg {
  background: linear-gradient(-45deg, #1e1b4b, #312e81, #4c1d95, #2e1065);
  background-size: 400% 400%;
  animation: gradientShift 10s ease infinite;
}

.gradient-gold-bg {
  background: linear-gradient(-45deg, #78350f, #92400e, #b45309, #d97706);
  background-size: 400% 400%;
  animation: gradientShift 8s ease infinite;
}

/* ============================================================
   SECTION WAVE DIVIDERS
   ============================================================ */
.wave-divider {
  position: relative;
  overflow: hidden;
}
.wave-divider::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 60px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60'%3E%3Cpath fill='%23f8fafc' d='M0,30 C240,60 480,0 720,30 C960,60 1200,0 1440,30 L1440,60 L0,60 Z'/%3E%3C/svg%3E") no-repeat bottom;
  background-size: cover;
}
.wave-divider-dark::after {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60'%3E%3Cpath fill='%230b192c' d='M0,30 C240,60 480,0 720,30 C960,60 1200,0 1440,30 L1440,60 L0,60 Z'/%3E%3C/svg%3E") no-repeat bottom;
  background-size: cover;
}

/* ============================================================
   PROMO POPUP SYSTEM
   ============================================================ */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 15, 30, 0.8);
  backdrop-filter: blur(6px);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  overflow-y: auto;
  padding: 16px 12px;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
}
.popup-overlay.active {
  opacity: 1;
  visibility: visible;
}
.popup-box {
  background: #fff;
  border-radius: 16px;
  max-width: 460px;
  width: 100%;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  overscroll-behavior: contain;
  transform: scale(0.85) translateY(20px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  box-shadow: 0 25px 70px rgba(0,0,0,0.55);
  margin: auto;
  display: flex;
  flex-direction: column;
}
/* Compact headers, so the three-field form still fits without a
   scrollbar on a normal desktop viewport. */
.popup-box .popup-header {
  padding: 14px 20px 11px;
}
.popup-box .popup-header h3 {
  font-size: 1.08rem;
  margin-bottom: 3px;
}
.popup-box .popup-header .popup-badge {
  margin-bottom: 6px;
  padding: 2px 9px;
}
.popup-box .popup-body {
  padding: 12px 20px 13px;
}
.popup-overlay.active .popup-box {
  transform: scale(1) translateY(0);
}
.popup-header {
  background: linear-gradient(135deg, #0b192c 0%, #1b3a6b 60%, #8b5cf6 100%);
  padding: 18px 20px 14px;
  text-align: center;
  position: relative;
  flex-shrink: 0;
}
.popup-header .popup-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fbbf24;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 8px;
}
.popup-header h3 {
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 4px;
  line-height: 1.25;
}
.popup-header p {
  color: rgba(255,255,255,0.8);
  font-size: 0.82rem;
  margin: 0;
  line-height: 1.35;
}
.popup-discount-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  color: #fff;
  font-size: 1.25rem;
  font-weight: 900;
  padding: 4px 18px;
  border-radius: 999px;
  margin: 8px 0 2px 0;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.45);
  font-family: 'Montserrat', sans-serif;
  animation: pulseBadge 2s ease-in-out infinite;
}
@keyframes pulseBadge {
  0%, 100% { transform: scale(1); box-shadow: 0 4px 16px rgba(245, 158, 11, 0.45); }
  50%       { transform: scale(1.04); box-shadow: 0 8px 24px rgba(245, 158, 11, 0.65); }
}
.popup-body {
  padding: 12px 20px 13px;
}
.popup-body .popup-form-group {
  margin-bottom: 8px;
}
.popup-body .popup-form-group input {
  width: 100%;
  padding: 8px 13px;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.85rem;
  font-family: 'Poppins', sans-serif;
  transition: border-color 0.25s, box-shadow 0.25s;
  outline: none;
}
.popup-body .popup-form-group input:focus {
  border-color: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}
.popup-submit-btn {
  width: 100%;
  padding: 10px;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  margin-top: 4px;
}
.popup-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}
.popup-submit-btn:disabled {
  opacity: 0.75;
  cursor: not-allowed;
  transform: none;
}

/* Honeypot: positioned off-screen rather than display:none, because some
   bots skip hidden fields entirely. */
.popup-hp {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Server-side rejection message shown under the submit button. */
.popup-error-msg {
  margin-top: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  font-family: 'Poppins', sans-serif;
  font-size: 0.8rem;
  line-height: 1.45;
}

/* Phone field carries an icon-free look consistent with the other inputs. */
.popup-body .popup-form-group input[name="popup_phone"] {
  letter-spacing: 0.01em;
}
.popup-close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  font-size: 0.85rem;
  transition: background 0.2s, transform 0.2s;
  z-index: 10;
}
.popup-close-btn:hover {
  background: rgba(255,255,255,0.35);
  transform: rotate(90deg);
}
.popup-footer-note {
  text-align: center;
  font-size: 0.7rem;
  color: #94a3b8;
  margin-top: 6px;
}
.popup-skip-link {
  display: block;
  text-align: center;
  margin-top: 4px;
  color: #94a3b8;
  font-size: 0.72rem;
  cursor: pointer;
  text-decoration: underline;
}
.popup-skip-link:hover { color: #475569; }

/* Countdown timer in popup */
.popup-countdown {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 8px 0 12px;
  flex-wrap: nowrap;
}
.countdown-unit {
  text-align: center;
  background: #0b192c;
  border-radius: 8px;
  padding: 6px 10px;
  min-width: 50px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}
.countdown-unit .countdown-num {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.25rem;
  font-weight: 900;
  color: #fbbf24;
  line-height: 1;
}
.countdown-unit .countdown-label {
  display: block;
  font-size: 0.62rem;
  color: rgba(255,255,255,0.65);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-top: 3px;
  font-weight: 600;
}

@media (max-width: 420px) {
  .popup-countdown {
    gap: 5px;
  }
  .countdown-unit {
    min-width: 44px;
    padding: 5px 6px;
    border-radius: 6px;
  }
  .countdown-unit .countdown-num {
    font-size: 1.05rem;
  }
  .countdown-unit .countdown-label {
    font-size: 0.55rem;
    letter-spacing: 0.5px;
  }
}

/* ============================================================
   LEFT-BOTTOM SOCIAL PROOF NOTIFICATIONS
   ============================================================ */
.toast-container {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 99998;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.toast-notification {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border-radius: 14px;
  padding: 12px 16px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.18), 0 2px 8px rgba(0,0,0,0.08);
  max-width: 300px;
  border-left: 4px solid #f59e0b;
  pointer-events: auto;
  transform: translateX(-120%);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
  position: relative;
}
.toast-notification.toast-show {
  transform: translateX(0);
  opacity: 1;
}
.toast-notification.toast-hide {
  transform: translateX(-120%);
  opacity: 0;
}
.toast-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #fff;
  flex-shrink: 0;
}
.toast-avatar.purple  { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.toast-avatar.blue    { background: linear-gradient(135deg, #0ea5e9, #0284c7); }
.toast-avatar.green   { background: linear-gradient(135deg, #10b981, #059669); }
.toast-avatar.pink    { background: linear-gradient(135deg, #ec4899, #db2777); }
.toast-content {}
.toast-content .toast-name {
  font-weight: 700;
  font-size: 0.82rem;
  color: #1e293b;
  font-family: 'Montserrat', sans-serif;
}
.toast-content .toast-msg {
  font-size: 0.76rem;
  color: #64748b;
  margin-top: 2px;
  line-height: 1.3;
}
.toast-content .toast-time {
  font-size: 0.68rem;
  color: #94a3b8;
  margin-top: 4px;
}
.toast-close-x {
  position: absolute;
  top: 6px;
  right: 8px;
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 0.7rem;
  cursor: pointer;
  padding: 2px;
  line-height: 1;
}
.toast-close-x:hover { color: #475569; }

/* ============================================================
   STICKY LEFT TAB (15% OFF)
   ============================================================ */
.sticky-left-tab {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%) translateX(-2px);
  z-index: 9999;
  writing-mode: vertical-rl;
  text-orientation: mixed;
}
.sticky-left-tab a {
  display: flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(180deg, #f59e0b, #ea580c);
  color: #fff;
  text-decoration: none;
  padding: 16px 10px;
  border-radius: 0 10px 10px 0;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  box-shadow: 4px 0 20px rgba(245, 158, 11, 0.4);
  transition: transform 0.3s, box-shadow 0.3s;
}
.sticky-left-tab a:hover {
  transform: translateX(4px) translateY(0) !important;
  box-shadow: 6px 0 25px rgba(245, 158, 11, 0.6);
}
.sticky-left-tab i {
  font-size: 1rem;
  writing-mode: horizontal-tb;
}

/* ============================================================
   STICKY SIDE CHAT BUTTON (WhatsApp)
   ============================================================ */
.sticky-chat-panel {
  position: fixed;
  bottom: 100px;
  right: 24px;
  z-index: 9998;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}
.sticky-chat-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
}
.sticky-chat-btn.whatsapp-sticky {
  background: #25d366;
}
.sticky-chat-btn.whatsapp-sticky:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.5);
}
.sticky-chat-btn.phone-sticky {
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
}
.sticky-chat-btn.phone-sticky:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 30px rgba(14, 165, 233, 0.5);
}
.sticky-chat-btn .pulse-ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 3px solid currentColor;
  animation: pulseRing 2s ease-out infinite;
  opacity: 0;
}
.whatsapp-sticky .pulse-ring { color: #25d366; }
@keyframes pulseRing {
  0%   { transform: scale(0.95); opacity: 0.6; }
  100% { transform: scale(1.4); opacity: 0; }
}

/* ============================================================
   STICKY ORDER BUTTON (Bottom Center)
   ============================================================ */
.sticky-order-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9997;
  background: linear-gradient(90deg, #0b192c, #1b3a6b);
  border-top: 2px solid rgba(245, 158, 11, 0.4);
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 -8px 30px rgba(0,0,0,0.3);
}
.sticky-order-bar.visible {
  transform: translateY(0);
}
.sticky-order-bar-text {
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
}
.sticky-order-bar-text span {
  color: #fbbf24;
  font-weight: 800;
}
.sticky-order-bar .sticky-bar-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.sticky-bar-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}
.sticky-bar-btn.gold {
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  color: #fff;
}
.sticky-bar-btn.gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}
.sticky-bar-btn.green {
  background: #25d366;
  color: #fff;
}
.sticky-bar-btn.green:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}
.sticky-order-bar-close {
  background: rgba(255,255,255,0.1);
  border: none;
  color: rgba(255,255,255,0.6);
  width: 28px;
  height: 28px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sticky-order-bar-close:hover {
  background: rgba(255,255,255,0.2);
  color: #fff;
}

/* ============================================================
   NEWSLETTER SECTION
   ============================================================ */
.newsletter-section {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 30%, #4c1d95 60%, #1b3a6b 100%);
  background-size: 300% 300%;
  animation: gradientShift 10s ease infinite;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.newsletter-section::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='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.newsletter-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 1;
}
.newsletter-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #fbbf24;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}
.newsletter-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
  line-height: 1.2;
}
.newsletter-title span {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.newsletter-subtitle {
  color: rgba(255,255,255,0.7);
  font-size: 1rem;
  max-width: 500px;
  margin-bottom: 36px;
}
.newsletter-form-wrap {
  display: flex;
  gap: 0;
  max-width: 540px;
  width: 100%;
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
  border-radius: 14px;
  overflow: hidden;
}
.newsletter-input {
  flex: 1;
  padding: 16px 20px;
  border: none;
  outline: none;
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  background: rgba(255,255,255,0.95);
  color: #1e293b;
  min-width: 0;
}
.newsletter-input::placeholder { color: #94a3b8; }
.newsletter-submit-btn {
  padding: 16px 28px;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  color: #fff;
  border: none;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  white-space: nowrap;
  transition: filter 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
}
.newsletter-submit-btn:hover { filter: brightness(1.1); }
.newsletter-privacy {
  color: rgba(255,255,255,0.5);
  font-size: 0.78rem;
  margin-top: 14px;
}
.newsletter-privacy i { margin-right: 4px; }
.newsletter-success {
  display: none;
  align-items: center;
  gap: 12px;
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #6ee7b7;
  padding: 16px 24px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
}
.newsletter-success.show { display: flex; }
.newsletter-features {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 28px;
}
.newsletter-feature {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.7);
  font-size: 0.82rem;
}
.newsletter-feature i { color: #10b981; }

/* ============================================================
   STATS / COUNTER SECTION
   ============================================================ */
.stats-section {
  background: linear-gradient(135deg, #0b192c 0%, #1b3a6b 50%, #0e223d 100%);
  padding: 70px 0;
  position: relative;
  overflow: hidden;
}
.stats-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.08) 0%, transparent 70%);
  pointer-events: none;
}
.stats-section::after {
  content: '';
  position: absolute;
  bottom: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.08) 0%, transparent 70%);
  pointer-events: none;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
  z-index: 1;
}
.stat-item {
  text-align: center;
  padding: 28px 20px;
  border-radius: 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  transition: background 0.3s, transform 0.3s;
}
.stat-item:hover {
  background: rgba(255,255,255,0.09);
  transform: translateY(-4px);
}
.stat-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #fff;
  margin: 0 auto 14px;
}
.stat-icon.gold   { background: linear-gradient(135deg, #f59e0b, #ea580c); }
.stat-icon.purple { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.stat-icon.blue   { background: linear-gradient(135deg, #0ea5e9, #0284c7); }
.stat-icon.green  { background: linear-gradient(135deg, #10b981, #059669); }
.stat-number {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.4rem;
  font-weight: 900;
  color: #fff;
  line-height: 1;
  margin-bottom: 6px;
}
.stat-number .stat-suffix {
  font-size: 1.6rem;
  color: #fbbf24;
}
.stat-label {
  color: rgba(255,255,255,0.65);
  font-size: 0.85rem;
  line-height: 1.4;
}

/* ============================================================
   ENHANCED COLOR ACCENTS
   ============================================================ */
.color-dot-purple { color: #8b5cf6; }
.color-dot-blue   { color: #0ea5e9; }
.color-dot-green  { color: #10b981; }
.color-dot-pink   { color: #ec4899; }
.color-dot-orange { color: #ea580c; }

/* Section gradient accents */
.section-accent-purple {
  background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 50%, #ede9fe 100%);
}
.section-accent-blue {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #bae6fd 100%);
}
.section-accent-warm {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 50%, #fde68a 30%, #fff 100%);
}

/* Glow effects on cards */
.glow-card-gold:hover {
  box-shadow: 0 20px 50px rgba(245, 158, 11, 0.2), 0 8px 20px rgba(0,0,0,0.1) !important;
}
.glow-card-purple:hover {
  box-shadow: 0 20px 50px rgba(139, 92, 246, 0.2), 0 8px 20px rgba(0,0,0,0.1) !important;
}
.glow-card-blue:hover {
  box-shadow: 0 20px 50px rgba(14, 165, 233, 0.2), 0 8px 20px rgba(0,0,0,0.1) !important;
}

/* Gradient text utility */
.text-gradient-gold {
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.text-gradient-purple {
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.text-gradient-blue {
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Animated underline for section titles */
.animated-underline {
  position: relative;
  display: inline-block;
}
.animated-underline::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, #f59e0b, #ea580c);
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.animated-underline.revealed::after {
  width: 100%;
}

/* ============================================================
   BLOG CARD HOVER ANIMATIONS
   ============================================================ */
.blog-card-animated {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}
.blog-card-animated:hover {
  transform: translateY(-8px) !important;
  box-shadow: 0 24px 50px rgba(11, 25, 44, 0.15) !important;
}
.blog-card-animated .blog-img-wrap img {
  transition: transform 0.5s ease;
}
.blog-card-animated:hover .blog-img-wrap img {
  transform: scale(1.06);
}

/* ============================================================
   ENHANCED BUTTON MICRO-ANIMATIONS
   ============================================================ */
.btn-ripple {
  position: relative;
  overflow: hidden;
}
.btn-ripple::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255,255,255,0.3) 0%, transparent 70%);
  opacity: 0;
  transform: scale(0);
  transition: opacity 0.4s, transform 0.4s;
}
.btn-ripple:active::after {
  opacity: 1;
  transform: scale(2);
  transition: 0s;
}

/* Button shine sweep animation */
.btn-shine {
  position: relative;
  overflow: hidden;
}
.btn-shine::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  transform: skewX(-15deg);
  transition: left 0.6s ease;
}
.btn-shine:hover::before {
  left: 150%;
}

/* ============================================================
   PAGE TRANSITION LOADING BAR
   ============================================================ */
.page-loader-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #f59e0b, #8b5cf6, #0ea5e9);
  z-index: 999999;
  transform-origin: left;
  animation: pageLoadBar 1.2s ease forwards;
}
@keyframes pageLoadBar {
  0%   { transform: scaleX(0); }
  70%  { transform: scaleX(0.8); }
  100% { transform: scaleX(1); opacity: 0; }
}

/* ============================================================
   EXIT INTENT POPUP (Special dark style)
   ============================================================ */
.exit-popup-box {
  background: linear-gradient(135deg, #0b192c, #1b3a6b);
  border-radius: 18px;
  max-width: 460px;
  width: 100%;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  transform: scale(0.85) translateY(20px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  box-shadow: 0 25px 70px rgba(0,0,0,0.7);
  border: 1px solid rgba(245, 158, 11, 0.25);
  margin: auto;
}
.popup-overlay.active .exit-popup-box {
  transform: scale(1) translateY(0);
}
.exit-popup-content {
  padding: 24px 20px 20px;
  text-align: center;
}
.exit-popup-emoji {
  font-size: 2.2rem;
  margin-bottom: 8px;
  display: block;
}
.exit-popup-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.35rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 8px;
  line-height: 1.25;
}
.exit-popup-title span { color: #fbbf24; }
.exit-popup-sub {
  color: rgba(255,255,255,0.75);
  margin-bottom: 16px;
  font-size: 0.85rem;
  line-height: 1.45;
}
.exit-popup-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.exit-popup-yes {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  color: #fff;
  text-decoration: none;
  border-radius: 10px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  transition: transform 0.2s, box-shadow 0.2s;
}
.exit-popup-yes:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
}
.exit-popup-no {
  color: rgba(255,255,255,0.4);
  font-size: 0.85rem;
  cursor: pointer;
  transition: color 0.2s;
}
.exit-popup-no:hover { color: rgba(255,255,255,0.7); }

/* ============================================================
   BODY — POPUP OPEN STATE
   ============================================================ */
body.popup-open {
  overflow: hidden;
}

/* ============================================================
   SECTION SCROLL TOAST  (bottom-right slide-in card)
   ============================================================ */
.section-scroll-toast {
  position: fixed;
  bottom: 110px;
  right: 24px;
  z-index: 99990;
  width: 320px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(11, 25, 44, 0.22);
  border: 1px solid rgba(245, 158, 11, 0.25);
  overflow: hidden;
  transform: translateX(calc(100% + 40px));
  opacity: 0;
  visibility: hidden;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease, visibility 0.5s;
  pointer-events: none;
}
.section-scroll-toast.toast-slide-in {
  transform: translateX(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.section-scroll-toast.toast-slide-out {
  transform: translateX(calc(100% + 40px));
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Badge strip */
.toast-badge-strip {
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 5px 16px;
  font-family: 'Montserrat', sans-serif;
}

/* Inner row */
.toast-toast-inner {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 16px 14px;
}

/* Icon circle */
.toast-icon-circle {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0b192c, #1b3a6b);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fbbf24;
  font-size: 1.2rem;
}

/* Text block */
.toast-text-block {
  flex: 1;
  min-width: 0;
}
.toast-text-block strong {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.88rem;
  font-weight: 800;
  color: #0b192c;
  margin-bottom: 4px;
  line-height: 1.3;
}
.toast-text-block p {
  font-size: 0.78rem;
  color: #64748b;
  line-height: 1.4;
  margin-bottom: 10px;
}

/* Action buttons */
.toast-actions-row {
  display: flex;
  gap: 8px;
}
.toast-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}
.toast-action-btn:hover { transform: translateY(-1px); }
.toast-action-btn.gold {
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  color: #fff;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
}
.toast-action-btn.green {
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #fff;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.35);
}

/* Close X on section toast */
.section-scroll-toast .toast-close-x {
  position: absolute;
  top: 8px;
  right: 8px;
  background: none;
  border: none;
  color: #fff;
  font-size: 0.75rem;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  opacity: 0.8;
  transition: opacity 0.2s;
}
.section-scroll-toast .toast-close-x:hover { opacity: 1; }

/* ============================================================
   RESPONSIVE ADJUSTMENTS
   ============================================================ */
@media (max-width: 768px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .sticky-left-tab { display: none; }
  .sticky-order-bar-text { display: none; }
  .newsletter-form-wrap { flex-direction: column; border-radius: 12px; }
  .newsletter-input { padding: 14px 16px; }
  .newsletter-submit-btn { padding: 14px; justify-content: center; }
  /* .popup-box-scoped rules are two-class selectors, so they outrank these
     single-class mobile overrides. Padding is still trimmed on small
     screens to keep the three-field form above the fold. */
  .popup-header { padding: 24px 24px 18px; }
  .popup-header h3 { font-size: 1.35rem; }
  .popup-body { padding: 20px 24px 24px; }
  .popup-box .popup-header { padding: 13px 18px 10px; }
  .popup-box .popup-header h3 { font-size: 1.05rem; }
  .popup-box .popup-body { padding: 11px 18px 12px; }
  /* Keep a comfortable tap target without extra height. */
  .popup-body .popup-form-group input { padding: 9px 13px; }
  .popup-submit-btn { padding: 11px; }
  .toast-container { left: 12px; bottom: 12px; }
  .toast-notification { max-width: 260px; }
  .sticky-chat-panel { bottom: 72px; right: 16px; }
  .section-scroll-toast { width: calc(100vw - 32px); right: 16px; bottom: 80px; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat-number { font-size: 1.8rem; }
  .popup-discount-badge { font-size: 1.5rem; }
}
