/* ============================================================
   ENHANCEMENTS.CSS — Non-destructive UI upgrade layer
   Extends existing style.css — DO NOT modify original styles
   ============================================================ */

/* ── AOS (Animate On Scroll) Integration ── */
[data-aos] {
  opacity: 0;
  transition-property: transform, opacity;
  transition-duration: 0.8s;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}
[data-aos].aos-animate {
  opacity: 1;
}
[data-aos="fade-up"] { transform: translateY(40px); }
[data-aos="fade-up"].aos-animate { transform: translateY(0); }
[data-aos="fade-down"] { transform: translateY(-40px); }
[data-aos="fade-down"].aos-animate { transform: translateY(0); }
[data-aos="fade-left"] { transform: translateX(40px); }
[data-aos="fade-left"].aos-animate { transform: translateX(0); }
[data-aos="fade-right"] { transform: translateX(-40px); }
[data-aos="fade-right"].aos-animate { transform: translateX(0); }
[data-aos="zoom-in"] { transform: scale(0.85); }
[data-aos="zoom-in"].aos-animate { transform: scale(1); }
[data-aos="flip-up"] { transform: perspective(600px) rotateX(15deg); }
[data-aos="flip-up"].aos-animate { transform: perspective(600px) rotateX(0); }

/* ── Enhanced Hero Section ── */
.hero-enhanced {
  position: relative;
  overflow: hidden;
  min-height: 85vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 0;
  margin-bottom: 0;
}

.hero-enhanced .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.05) 50%, rgba(0,0,0,0.2) 100%);
  z-index: 1;
}

.hero-enhanced::before {
  display: none;
}

.hero-enhanced .hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(123, 47, 247, 0.15);
  border: 1px solid rgba(123, 47, 247, 0.3);
  color: #a5b4fc;
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 2px;
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
}

.hero-enhanced h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero-enhanced h1 .gradient-text {
  background: linear-gradient(135deg, #7B2FF7, #FF3C8E, #7B2FF7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-enhanced p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.15rem;
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 20px;
}

.hero-enhanced .hero-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-enhanced .btn-hero-primary {
  background: linear-gradient(135deg, #7B2FF7 0%, #FF3C8E 100%);
  color: #fff;
  padding: 14px 32px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 8px 25px rgba(123, 47, 247, 0.35);
  position: relative;
  overflow: hidden;
  animation: heroBtnPulse 2.5s ease-in-out infinite;
}

.hero-enhanced .btn-hero-primary::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 40%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transform: skewX(-20deg);
  animation: heroShimmer 3s ease-in-out infinite;
  pointer-events: none;
}

@keyframes heroBtnPulse {
  0%, 100% { box-shadow: 0 8px 25px rgba(123, 47, 247, 0.35); }
  50% { box-shadow: 0 8px 40px rgba(123, 47, 247, 0.6), 0 0 60px rgba(255, 60, 142, 0.2); }
}

@keyframes heroShimmer {
  0%, 100% { left: -60%; }
  50% { left: 120%; }
}

.hero-enhanced .btn-hero-primary:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 35px rgba(123, 47, 247, 0.5);
  color: #fff;
}

.hero-enhanced .btn-hero-secondary {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 14px 32px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  animation: heroBtnBorderPulse 3s ease-in-out infinite;
}

.hero-enhanced .btn-hero-secondary::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 40%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transform: skewX(-20deg);
  animation: heroShimmer 4s ease-in-out infinite 1s;
  pointer-events: none;
}

@keyframes heroBtnBorderPulse {
  0%, 100% { border-color: rgba(255,255,255,0.2); box-shadow: none; }
  50% { border-color: rgba(255,255,255,0.5); box-shadow: 0 0 20px rgba(255,255,255,0.08); }
}

.hero-enhanced .btn-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
  color: #fff;
}

/* Hero floating particles */
.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.hero-particle {
  position: absolute;
  width: 6px;
  height: 6px;
  background: rgba(123, 47, 247, 0.4);
  border-radius: 50%;
  animation: particleFloat 15s infinite linear;
}

.hero-particle:nth-child(2) { width: 4px; height: 4px; background: rgba(255, 60, 142, 0.3); animation-delay: -3s; animation-duration: 20s; }
.hero-particle:nth-child(3) { width: 8px; height: 8px; background: rgba(123, 47, 247, 0.25); animation-delay: -7s; animation-duration: 18s; }
.hero-particle:nth-child(4) { width: 3px; height: 3px; background: rgba(123, 47, 247, 0.5); animation-delay: -5s; animation-duration: 22s; }
.hero-particle:nth-child(5) { width: 5px; height: 5px; background: rgba(255, 60, 142, 0.35); animation-delay: -10s; animation-duration: 16s; }
.hero-particle:nth-child(6) { width: 7px; height: 7px; background: rgba(123, 47, 247, 0.2); animation-delay: -2s; animation-duration: 25s; }

@keyframes particleFloat {
  0% { transform: translate(0, 100vh) rotate(0deg); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translate(calc(-50px + 100px * var(--x, 0.5)), -100px) rotate(720deg); opacity: 0; }
}

/* Hero trust badges */
.hero-trust-badges {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.hero-trust-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

.hero-trust-badge i {
  color: #fbbf24;
  font-size: 1rem;
}

/* ── How It Works Section ── */
.how-it-works {
  background: linear-gradient(180deg, var(--light-bg, #f5f7ff) 0%, #fff 100%);
  padding: 48px 0;
}

.hiw-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 28px;
}

.hiw-card {
  background: #fff;
  border-radius: 16px;
  padding: 28px 20px;
  text-align: center;
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 1px solid rgba(123, 47, 247, 0.08);
}

.hiw-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(123, 47, 247, 0.15);
}

.hiw-step {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #7B2FF7, #FF3C8E);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  box-shadow: 0 4px 15px rgba(123, 47, 247, 0.4);
}

.hiw-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, rgba(123, 47, 247, 0.1), rgba(255, 60, 142, 0.1));
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--primary-color, #7B2FF7);
  transition: all 0.3s ease;
}

.hiw-card:hover .hiw-icon {
  background: linear-gradient(135deg, #7B2FF7, #FF3C8E);
  color: #fff;
  transform: scale(1.1) rotate(5deg);
}

.hiw-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-dark, #1a1a2e);
  margin-bottom: 10px;
}

.hiw-card p {
  color: var(--text-light, #626262);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ── Testimonials Slider ── */
.testimonials-slider {
  position: relative;
  overflow: hidden;
}

.testimonials-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.testimonial-slide {
  min-width: 100%;
  padding: 0 20px;
}

.testimonials-nav {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.testimonials-nav button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid rgba(123, 47, 247, 0.2);
  background: #fff;
  color: var(--primary-color, #7B2FF7);
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.testimonials-nav button:hover {
  background: var(--primary-color, #7B2FF7);
  color: #fff;
  border-color: var(--primary-color, #7B2FF7);
}

.testimonials-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.testimonials-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(123, 47, 247, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
}

.testimonials-dot.active {
  background: var(--primary-color, #7B2FF7);
  width: 30px;
  border-radius: 5px;
}

/* ── App Download Banner ── */
.app-download-banner {
  position: relative;
  overflow: hidden;
  margin: var(--spacing-2xl) 0;
  padding: 60px 0;
  background: linear-gradient(-45deg, #1a1035, #7B2FF7, #FF3C8E, #4A90F7, #2d1b69);
  background-size: 400% 400%;
  animation: appGradientShift 10s ease infinite;
}

@keyframes appGradientShift {
  0% { background-position: 0% 50%; }
  25% { background-position: 50% 100%; }
  50% { background-position: 100% 50%; }
  75% { background-position: 50% 0%; }
  100% { background-position: 0% 50%; }
}

.app-download-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(123, 47, 247, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(255, 60, 142, 0.1) 0%, transparent 50%);
  animation: appBannerGlow 6s ease-in-out infinite alternate;
}

@keyframes appBannerGlow {
  0% { opacity: 0.5; }
  100% { opacity: 1; }
}

.app-download-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  padding: 0;
}

.app-download-text {
  flex: 1;
  min-width: 300px;
  padding: 0;
}

.app-download-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(123, 47, 247, 0.2);
  border: 1px solid rgba(123, 47, 247, 0.3);
  color: #c084fc;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.app-download-text h2 {
  color: #fff;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 24px;
}

.app-download-text p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.05rem;
  line-height: 1.8;
  margin: 0 0 28px;
  max-width: 520px;
}

.app-download-buttons {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 10px;
  margin-bottom: 16px;
}

.app-store-btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 14px 28px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  min-width: 180px;
}

.app-store-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-3px);
  color: #fff;
}

.app-store-btn i {
  font-size: 28px;
}

.app-store-btn .app-store-btn-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.app-store-btn .app-store-btn-text small {
  font-size: 0.7rem;
  opacity: 0.7;
}

.app-store-btn .app-store-btn-text strong {
  font-size: 1rem;
}

.app-download-visual {
  flex: 0 0 auto;
  position: relative;
}

.app-mockup {
  width: 260px;
  height: 460px;
  background: linear-gradient(135deg, #1a1a3e, #2d1b69);
  border-radius: 36px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.app-mockup::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 24px;
  background: #0b0c1a;
  border-radius: 0 0 16px 16px;
}

.app-mockup-content {
  padding: 28px 16px 16px;
  text-align: center;
}

.app-mockup-content .mockup-logo {
  width: 50px;
  height: 50px;
  margin: 20px auto 15px;
  background: linear-gradient(135deg, #7B2FF7, #FF3C8E);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #fff;
}

.app-mockup-content h4 {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.app-mockup-content p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.75rem;
  margin-bottom: 20px;
}

.mockup-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.mockup-stat {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 12px 8px;
}

.mockup-stat strong {
  display: block;
  color: #fff;
  font-size: 1.1rem;
}

.mockup-stat small {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.65rem;
}

/* ── Notification Dropdown ── */
.notification-dropdown-wrapper {
  position: relative;
  display: inline-block;
}

.notification-bell {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(123, 47, 247, 0.1);
  color: var(--primary-color, #7B2FF7);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.notification-bell:hover {
  background: var(--primary-color, #7B2FF7);
  color: #fff;
}

.notification-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 18px;
  height: 18px;
  background: #FF3C8E;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  animation: notifPulse 2s infinite;
}

@keyframes notifPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.notification-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 360px;
  max-height: 420px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(0, 0, 0, 0.06);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  overflow: hidden;
}

.notification-panel.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.notification-panel-header {
  padding: 16px 20px;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.notification-panel-header h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0;
}

.notification-panel-header .mark-all-read {
  color: var(--primary-color, #7B2FF7);
  font-size: 0.8rem;
  cursor: pointer;
  font-weight: 600;
  border: none;
  background: none;
  padding: 0;
}

.notification-list {
  max-height: 320px;
  overflow-y: auto;
  scrollbar-width: thin;
}

.notification-item {
  display: flex;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid #f5f5f5;
  transition: background 0.2s ease;
  cursor: pointer;
}

.notification-item:hover {
  background: #f8f9ff;
}

.notification-item.unread {
  background: rgba(123, 47, 247, 0.04);
}

.notification-item.unread::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background: var(--primary-color, #7B2FF7);
  border-radius: 50%;
}

.notification-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.notification-icon.success { background: #e8f5e9; color: #28a745; }
.notification-icon.info { background: #e0f7fa; color: #17a2b8; }
.notification-icon.warning { background: #fff8e1; color: #ffc107; }
.notification-icon.earning { background: #f3e8ff; color: #7B2FF7; }

.notification-content {
  flex: 1;
  min-width: 0;
}

.notification-content p {
  font-size: 0.85rem;
  color: #1a1a2e;
  margin: 0 0 4px;
  line-height: 1.4;
}

.notification-content .notification-time {
  font-size: 0.75rem;
  color: #999;
}

.notification-empty {
  text-align: center;
  padding: 24px 16px;
  color: #999;
}

.notification-empty i {
  font-size: 36px;
  margin-bottom: 12px;
  opacity: 0.3;
}

/* ── Affiliate Referral Section (Dashboard) ── */
.referral-section {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  margin-bottom: 16px;
  border: 1px solid rgba(123, 47, 247, 0.08);
}

.referral-link-box {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  background: linear-gradient(135deg, rgba(123, 47, 247, 0.05), rgba(255, 60, 142, 0.05));
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px dashed rgba(123, 47, 247, 0.3);
}

.referral-link-box input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 0.9rem;
  color: var(--text-dark, #1a1a2e);
  font-weight: 600;
  outline: none;
}

.referral-link-box .copy-btn {
  background: linear-gradient(135deg, #7B2FF7, #FF3C8E);
  color: #fff;
  border: none;
  padding: 8px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.referral-link-box .copy-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(123, 47, 247, 0.4);
}

.referral-link-box .copy-btn.copied {
  background: #28a745;
}

.referral-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.referral-stat-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  border: 1px solid #f0f0f0;
  transition: all 0.3s ease;
}

.referral-stat-card:hover {
  border-color: rgba(123, 47, 247, 0.2);
  box-shadow: 0 4px 15px rgba(123, 47, 247, 0.08);
}

.referral-stat-card .stat-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 10px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.referral-stat-card .stat-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-dark, #1a1a2e);
}

.referral-stat-card .stat-label {
  font-size: 0.8rem;
  color: #888;
  margin-top: 4px;
}

/* ── Enhanced Section Titles ── */
.section-tag-enhanced {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(123, 47, 247, 0.1), rgba(255, 60, 142, 0.1));
  border: 1px solid rgba(123, 47, 247, 0.15);
  color: var(--primary-color, #7B2FF7);
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-title-enhanced {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--text-dark, #1a1a2e);
  line-height: 1.2;
  letter-spacing: -0.5px;
}

/* ── Feature Flags Toggle (Admin only) ── */
.feature-flags-panel {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background: #1a1a2e;
  color: #fff;
  border-radius: 12px;
  padding: 16px;
  z-index: 9999;
  display: none;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  min-width: 200px;
}

.feature-flags-panel.active {
  display: block;
}

.feature-flag-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: 0.85rem;
}

.feature-flag-toggle {
  position: relative;
  width: 36px;
  height: 20px;
  background: #555;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.feature-flag-toggle.on {
  background: #28a745;
}

.feature-flag-toggle::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.3s ease;
}

.feature-flag-toggle.on::after {
  transform: translateX(16px);
}

/* ── Responsive Enhancements ── */
@media (max-width: 768px) {
  .hero-enhanced h1 {
    font-size: 2rem;
  }

  .hero-enhanced .hero-buttons {
    flex-direction: column;
  }

  .hero-trust-badges {
    flex-direction: column;
    gap: 12px;
  }

  .hiw-grid {
    grid-template-columns: 1fr;
  }

  .app-download-content {
    flex-direction: column;
    text-align: center;
  }

  .app-download-buttons {
    justify-content: center;
  }

  .app-download-visual {
    display: none;
  }

  .notification-panel {
    width: calc(100vw - 20px);
    right: -60px;
  }

  .referral-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .referral-link-box {
    flex-direction: column;
  }

  .referral-link-box input {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .referral-stats-grid {
    grid-template-columns: 1fr;
  }

  .app-store-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ── Smooth Section Transitions ── */
.section-animated {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-animated.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Loading Skeleton ── */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.5s ease-in-out infinite;
  border-radius: 8px;
}

@keyframes skeletonShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── Enhanced Course Cards ── */
.course-card-enhanced {
  position: relative;
  overflow: hidden;
}

.course-card-enhanced::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s ease;
}

.course-card-enhanced:hover::after {
  left: 100%;
}

/* ── Affiliate Earnings Card ── */
.earnings-highlight {
  background: linear-gradient(135deg, #7B2FF7, #FF3C8E);
  border-radius: 16px;
  padding: 28px;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.earnings-highlight::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 200px;
  height: 200px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.earnings-highlight h3 {
  font-size: 0.9rem;
  font-weight: 600;
  opacity: 0.85;
  margin-bottom: 8px;
}

.earnings-highlight .amount {
  font-size: 2.5rem;
  font-weight: 800;
}

.earnings-highlight .growth {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.2);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  margin-top: 8px;
}
