/* =========================================
   PREMIUM REDESIGN (VERCEL/LINEAR INSPIRED)
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800;900&family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  /* Crisp White Light Mode for Arab Market Trust */
  --bg: #ffffff;
  --panel: #f8fafc;
  --panel-border: #e2e8f0;
  
  /* Refined Gold Accents */
  --gold: #d4af37;
  --gold-2: #aa8623;
  --gold-soft: rgba(212, 175, 55, 0.08);
  
  /* Typography Colors */
  --text: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  
  /* Status Colors */
  --success: #10b981;
  --success-bg: rgba(16, 185, 129, 0.08);
  
  /* Borders and Shadows */
  --radius: 14px;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  --shadow-hover: 0 15px 35px rgba(0, 0, 0, 0.08);
  
  --transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Background & Typography Reset */
body {
  background-color: var(--bg) !important;
  color: var(--text) !important;
  font-family: "Cairo", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background: var(--bg) !important;
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
  letter-spacing: -0.02em !important;
  font-weight: 800 !important;
}

h1 {
  font-size: clamp(2.8rem, 6vw, 4.5rem) !important;
  line-height: 1.15 !important;
}

.title-line.result {
  background: linear-gradient(135deg, #0f172a 0%, #334155 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #0f172a;
}

.title-line.emphasis {
  background: linear-gradient(135deg, #b45309 0%, #d97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #b45309;
}

.subhead {
  color: var(--muted) !important;
  font-weight: 400 !important;
  font-size: clamp(1.1rem, 2vw, 1.25rem) !important;
  letter-spacing: -0.01em;
  line-height: 1.7 !important;
}

/* Layout Spacing */
.section {
  padding: 50px 0 !important;
  border-top: 1px solid var(--line) !important;
}

/* Buttons */
.btn {
  border-radius: 999px !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em !important;
  transition: var(--transition) !important;
  border: 1px solid transparent !important;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.03) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: var(--text) !important;
  backdrop-filter: blur(12px) !important;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  transform: translateY(-3px) !important;
}

/* Cards & Panels */
.hero-showcase, .checkout-card, .feature, .course-showcase, .final-offer-card, .testimonial-card, .trust-panel, .step, .market-card, .for-card, .cookie-panel, .assurance-card, .sales-proof-card {
  background: var(--panel) !important;
  border: 1px solid var(--panel-border) !important;
  border-radius: var(--radius) !important;
  box-shadow: var(--shadow) !important;
  transition: var(--transition) !important;
  position: relative;
  overflow: hidden;
}

/* Subtle Top Reflection for Premium feel */
.hero-showcase::before, .checkout-card::before, .feature::before, .final-offer-card::before, .course-showcase::before, .sales-proof-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  z-index: 10;
}

.feature:hover, .market-card:hover, .testimonial-card:hover, .course-showcase:hover {
  transform: translateY(-5px) !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
  box-shadow: var(--shadow-hover) !important;
  background: rgba(255, 255, 255, 0.02) !important;
}

/* Inner card spacing */
.feature-body {
  padding: 24px !important;
}

/* Price & Highlights */
.price strong, .co-new-price {
  color: var(--text) !important;
  font-weight: 800 !important;
  letter-spacing: -0.03em !important;
}

.final-offer-card .new-price {
  color: var(--text) !important;
  font-weight: 800 !important;
  letter-spacing: -0.03em !important;
}

.final-offer-card .new-price span {
  color: var(--gold) !important;
}

/* Eyebrows & Tags */
.eyebrow, .co-badge-pill, .sales-proof-badge, .course-count {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 999px !important;
  backdrop-filter: blur(8px) !important;
  color: var(--text) !important;
  font-weight: 600 !important;
  padding: 6px 14px !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
}

.eyebrow::before, .sales-proof-badge::before {
  background: var(--success) !important;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2) !important;
}

/* Icons */
.bonus-icon, .market-icon, .seal-icon, .step-num, .for-icon {
  background: var(--gold-soft) !important;
  border: 1px solid rgba(242, 220, 150, 0.15) !important;
  color: var(--gold) !important;
  border-radius: 12px !important;
}

.step-num {
  border-radius: 50% !important;
  background: linear-gradient(180deg, var(--gold), var(--gold-2)) !important;
  color: #050505 !important;
  border: 0 !important;
}

/* Images & Media */
.showcase-main img, .feature img, .course-shot img, .standalone-product-frame img, .sales-proof-frame img {
  filter: saturate(1.0) contrast(1.0) !important;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1) !important;
  object-fit: cover !important;
  width: 100% !important;
  height: 100% !important;
}

.showcase-main:hover img, .feature:hover img, .course-shot:hover img {
  transform: scale(1.03) !important;
}

/* Inputs */
.co-field input {
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 10px !important;
  transition: var(--transition) !important;
  font-weight: 500 !important;
}

.co-field input:focus {
  border-color: rgba(255, 255, 255, 0.3) !important;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.05) !important;
  background: rgba(255, 255, 255, 0.05) !important;
}

/* FAQ */
.faq-item {
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  background: transparent !important;
  border-radius: var(--radius) !important;
}

.faq-item:hover {
  background: rgba(255, 255, 255, 0.02) !important;
}

.faq-question {
  font-weight: 700 !important;
}

/* Guarantee Section */
.guarantee {
  background: radial-gradient(circle at 10% 50%, rgba(16, 185, 129, 0.08), transparent 60%), var(--panel) !important;
  border: 1px solid rgba(16, 185, 129, 0.2) !important;
  border-radius: 24px !important;
}

.badge {
  border-color: var(--success) !important;
  color: var(--success) !important;
  box-shadow: inset 0 0 20px rgba(16, 185, 129, 0.1), 0 0 20px rgba(16, 185, 129, 0.1) !important;
}

/* Urgency Bar & Dark Sections */
.urgency-bar, #testimonials-move {
  background: #ffffff !important;
  border-bottom: 1px solid #e2e8f0 !important;
  color: #334155 !important;
}
#testimonials-move h2, #testimonials-move h2 span.gold {
  color: #0f172a !important;
}
#testimonials-move .tm-sub, #testimonials-move p, .urgency-bar * {
  color: #334155 !important;
}
#testimonials-move::before, .tm-viewport::before, .tm-viewport::after {
  background: none !important;
  display: none !important;
}

/* Custom Checkmarks */
.co-includes li::before, .check {
  color: var(--success) !important;
}

/* Trust Strips / Summary */
.access-summary div {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  color: #0f172a !important;
}

.access-summary strong, .access-summary span {
  color: #0f172a !important;
}

.hero-proof {
  background: rgba(255, 255, 255, 0.02) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

/* Deals */
.deal-label {
  border-bottom-color: rgba(255, 255, 255, 0.1) !important;
}

/* =========================================
   MODERN HEADER & SMOOTH SCROLL
   ========================================= */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

.modern-header {
  position: sticky;
  top: 48px; /* Below urgency bar */
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid #e2e8f0;
}

.header-container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 70px;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 1.25rem;
  color: var(--text);
  text-decoration: none;
}

.header-nav {
  display: flex;
  gap: 24px;
  align-items: center;
}

.header-nav a {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  text-decoration: none;
}

.header-nav a:hover {
  color: var(--gold);
}

.header-cta .header-btn {
  min-height: 44px !important;
  padding: 8px 20px !important;
  font-size: 0.95rem !important;
  box-shadow: none !important;
}

@media (max-width: 820px) {
  .header-nav {
    display: none;
  }
}
@media (max-width: 640px) {
  .modern-header {
    top: 52px;
  }
}

/* Mobile Floating CTA */
.mobile-floating-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
  background: linear-gradient(to top, rgba(0,0,0,0.98) 40%, rgba(0,0,0,0));
  z-index: 1000;
  display: none;
  pointer-events: none;
}

.mobile-floating-cta .btn {
  pointer-events: auto;
}

@media (max-width: 820px) {
  .mobile-floating-cta {
    display: block;
    animation: slideUpCTA 0.5s cubic-bezier(0.25, 1, 0.5, 1) forwards;
    animation-delay: 2s; /* Appears shortly after page load to allow reading */
    transform: translateY(100%);
  }
  
  body {
    padding-bottom: 80px; /* Add space so footer isn't covered */
  }
}

@keyframes slideUpCTA {
  to { transform: translateY(0); }
}


/* =========================================
   PREMIUM REDESIGN & OPTIMIZATIONS
   ========================================= */

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Base button enhancements */
.btn {
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
  position: relative;
  overflow: hidden;
}

/* Primary Button Glow and Scale */
.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 20px 40px rgba(212, 175, 55, 0.35) !important;
  filter: brightness(1.1);
}

.btn-primary:active {
  transform: translateY(1px) scale(0.98);
}

/* Adding a shine effect to primary buttons */
.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100%);
  transform: skewX(-20deg);
  animation: shine 4s infinite;
}

@keyframes shine {

/* =========================================
   PREMIUM REDESIGN & OPTIMIZATIONS
   ========================================= */

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Base button enhancements */
.btn {
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
  position: relative;
  overflow: hidden;
}

/* Primary Button Glow and Scale */
.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 20px 40px rgba(212, 175, 55, 0.35) !important;
  filter: brightness(1.1);
}

.btn-primary:active {
  transform: translateY(1px) scale(0.98);
}

/* Adding a shine effect to primary buttons */
.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100%);
  transform: skewX(-20deg);
  animation: shine 4s infinite;
}

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

/* Section Spacing Improvements */
.section {
  padding: 90px 0 !important; /* increased padding for breathing room */
}

@media (max-width: 768px) {
  .section {
    padding: 60px 0 !important;
  }
}

/* Micro-animations for Cards */
.course-card, .standalone-product-frame {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.course-card:hover, .standalone-product-frame:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 0 20px rgba(212, 175, 55, 0.15) !important;
}

/* Reveal Animation Classes */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================
   FULL LIGHT THEME & TRUST REDESIGN (ARAB MARKET)
   ========================================= */

/* 1. Global Variables & Base Overrides */
:root, body, html {
  --bg: #ffffff !important;
  --panel: #ffffff !important;
  --card: #ffffff !important;
  --text: #0f172a !important;
  --muted: #475569 !important;
  --gold: #d4af37 !important;
  --gold-soft: rgba(212, 175, 55, 0.08) !important;
  --border: #e2e8f0 !important;
  background: #ffffff !important;
  color: #0f172a !important;
}

/* Remove dark gradient overlay */
body::before, .hero::before, .section::before {
  background: none !important;
  display: none !important;
}

/* 2. Typography & Headings */
h1, h2, h3, h4, h5, h6, .section-heading h2, .hero-grid h1 {
  color: #0f172a !important;
}
.title-line.result {
  color: #0f172a !important;
}
.title-line.emphasis {
  color: #d4af37 !important;
}

/* 3. Sections & Backgrounds */
.section, .bundle-overview, .hero, main {
  background: #ffffff !important;
  border: none !important;
}
section[aria-label="إحصاءات الحزمة"], .stats-grid, .urgency-bar {
  background: #f8fafc !important;
  border-top: 1px solid #e2e8f0 !important;
  border-bottom: 1px solid #e2e8f0 !important;
}

/* 4. Cards & Containers (Courses, Features, Products) */
.course-card, .market-card, .feature, .bonus, .testimonial-card, .standalone-product-frame, .sales-proof-card, .pricing-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04) !important;
  border-radius: 12px !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.course-card:hover, .market-card:hover, .feature:hover, .bonus:hover, .standalone-product-frame:hover {
  transform: translateY(-5px) !important;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08) !important;
  border-color: #cbd5e1 !important;
}

/* 5. Fix Text inside Cards */
.course-card h4, .market-card h3, .feature h3, .bonus h3, .pricing-card h3 {
  color: #0f172a !important;
}
.course-card p, .market-card p, .feature p, .bonus p, .pricing-card li, .course-value {
  color: #475569 !important;
}
.course-value span {
  color: #059669 !important; /* Trust Green */
}

/* 6. Fix Neon Aggressive Colors */
.course-tag, .ebook-tag, .profit-card {
  background: #f8fafc !important;
  color: #0f172a !important;
  border: 1px solid #e2e8f0 !important;
}

/* 7. Buttons (Purple/Pink Gradient) */
.btn, .btn-primary, .btn-accent {
  background: linear-gradient(90deg, #6b21a8 0%, #db2777 100%) !important; 
  color: #ffffff !important; 
  border: 3px solid #ffffff !important;
  box-shadow: 0 0 0 2px #c026d3, 0 10px 25px rgba(219, 39, 119, 0.4) !important;
  border-radius: 999px !important; 
  font-weight: 900 !important;
  text-transform: uppercase !important;
  text-shadow: none !important;
  letter-spacing: 0.5px !important;
  padding: 16px 32px !important;
}
.btn:hover, .btn-primary:hover, .btn-accent:hover {
  background: linear-gradient(90deg, #581c87 0%, #be185d 100%) !important;
  box-shadow: 0 0 0 2px #a21caf, 0 15px 35px rgba(219, 39, 119, 0.5) !important;
  transform: translateY(-3px) !important;
}

/* Secondary Button (Green) */
.btn-secondary {
  background: #10b981 !important;
  color: #ffffff !important;
  border: none !important;
}

/* 8. Fix Course Cards Visibility */
.course-card, .course-showcase-grid .course-card {
  animation: none !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  display: flex !important;
}

/* 9. Whitespace & Spacing Enhancements */
.section {
  padding: 80px 0 !important;
}
.container {
  max-width: 1100px !important;
}

/* Trust Icons Row */
.trust-row .seal, .seal {
  background: #ffffff !important;
  color: #0f172a !important;
  border: 1px solid #e2e8f0 !important;
  font-weight: 800 !important;
}
.seal * {
  color: #0f172a !important;
}

/* =========================================
   10. GLOBAL LIGHT THEME TEXT COLOR OVERRIDES
   ========================================= */
/* Force all secondary text to slate gray */
p, li, span, .subhead, .eyebrow, .badge, .course-count, .deal-label, .testimonial-text, .faq-answer, .books-pack-sub, .co-includes li {
  color: #334155 !important;
}

/* Force all headings to navy blue */
h1, h2, h3, h4, h5, h6, strong, b, .title-line, .books-pack-title, .faq-question {
  color: #0f172a !important;
}

/* Exceptions: Elements that MUST remain white or colored */
.btn, .btn-primary, .btn-accent, .btn span, .btn-primary span, .btn-accent span {
  color: #ffffff !important;
}

.title-line.result {
  background: linear-gradient(135deg, #0f172a 0%, #334155 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: #0f172a !important;
}

.title-line.emphasis {
  background: linear-gradient(135deg, #b45309 0%, #d97706 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: #b45309 !important;
}

.urgency-bar, .urgency-bar *, .toast, .toast * {
  color: #ffffff !important;
}

/* =========================================
   11. GLOBAL TEXT SIZE ENHANCEMENTS FOR READABILITY
   ========================================= */
p, .subhead, .faq-answer, .testimonial-text, .books-pack-sub, .co-includes li {
  font-size: 1.15rem !important;
  line-height: 1.8 !important;
}

.audience-chips li {
  font-size: 1.1rem !important;
  font-weight: 700 !important;
  padding: 10px 16px !important;
}

.access-summary div span:nth-child(2) {
  font-size: 1.1rem !important;
  line-height: 1.6 !important;
}

.hero-proof span {
  font-size: 1.05rem !important;
  font-weight: 600 !important;
}
