:root {
  --bg: #f7f9fc;
  --bg-elevated: #ffffff;
  --bg-soft: #eef3f8;
  --border: #d8e0ea;
  --text: #122033;
  --text-muted: #5b6b7c;
  --primary: #0B416E;
  --secondary: #F68B1E;
  --accent: #FFB81C;
  --cta: #ff9f43;
  --cta-hover: #f5a623;
  --radius-card: 12px;
  --radius-btn: 8px;
  --font: 'Cairo', sans-serif;
  --transition: 0.3s ease;
  --shadow-sm: 0 6px 20px rgba(11, 65, 110, 0.06);
  --shadow-md: 0 14px 36px rgba(11, 65, 110, 0.1);
  --header-bg: rgba(247, 249, 252, 0.82);
  --hero-grad: linear-gradient(165deg, #ffffff 0%, #f3f7fb 45%, #eaf1f8 100%);
  --section-alt-grad: linear-gradient(180deg, #eef3f8 0%, #f7f9fc 100%);
  --bundle-grad: linear-gradient(180deg, #f7f9fc 0%, #fff8ef 40%, #f3f7fb 100%);
  --sticky-bg: rgba(255, 255, 255, 0.94);
  --modal-overlay: rgba(18, 32, 51, 0.45);
  --badge-green-bg: rgba(22, 163, 74, 0.08);
  --badge-green-border: rgba(22, 163, 74, 0.28);
  --badge-green-text: #15803d;
}

html[data-theme="dark"] {
  --bg: #0a0a0f;
  --bg-elevated: #16161d;
  --bg-soft: #12121a;
  --border: #2a2a35;
  --text: #ffffff;
  --text-muted: #a0a0a0;
  --primary: #ffffff;
  --shadow-sm: 0 6px 20px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 14px 36px rgba(0, 0, 0, 0.35);
  --header-bg: rgba(10, 10, 15, 0.82);
  --hero-grad: linear-gradient(165deg, #0a0a0f 0%, #0d1520 45%, #0a0a0f 100%);
  --section-alt-grad: linear-gradient(180deg, #0d0d12 0%, #0a0a0f 100%);
  --bundle-grad: linear-gradient(180deg, #0a0a0f 0%, #15120e 40%, #0d0d12 100%);
  --sticky-bg: rgba(22, 22, 29, 0.94);
  --modal-overlay: rgba(0, 0, 0, 0.75);
  --badge-green-bg: rgba(34, 197, 94, 0.1);
  --badge-green-border: rgba(34, 197, 94, 0.35);
  --badge-green-text: #86efac;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  color: var(--text);
  background: var(--bg);
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-soft);
}

::-webkit-scrollbar-thumb {
  background: var(--secondary);
  border-radius: 999px;
}

::selection {
  background: rgba(246, 139, 30, 0.28);
  color: var(--text);
}

.font-cairo {
  font-family: var(--font);
}

.site-header {
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-sm);
}

.theme-toggle {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  transition: background var(--transition), border-color var(--transition), transform var(--transition), color var(--transition);
}

.theme-toggle:hover {
  border-color: var(--secondary);
  color: var(--secondary);
  transform: translateY(-1px);
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
  display: none;
}

html:not([data-theme="dark"]) .theme-toggle .icon-moon {
  display: block;
}

html[data-theme="dark"] .theme-toggle .icon-sun {
  display: block;
}

/* ---------- Hero atmosphere ---------- */
.hero-bg {
  background:
    radial-gradient(ellipse 70% 55% at 85% 15%, rgba(246, 139, 30, 0.16), transparent 55%),
    radial-gradient(ellipse 65% 50% at 10% 75%, rgba(11, 65, 110, 0.12), transparent 55%),
    var(--hero-grad);
}

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

.hero-particles span {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(246, 139, 30, 0.45);
  animation: float-particle 12s linear infinite;
}

.hero-particles span:nth-child(1) { top: 18%; right: 12%; animation-delay: 0s; }
.hero-particles span:nth-child(2) { top: 42%; right: 28%; width: 3px; height: 3px; animation-delay: -3s; background: rgba(11, 65, 110, 0.3); }
.hero-particles span:nth-child(3) { top: 65%; right: 8%; animation-delay: -6s; }
.hero-particles span:nth-child(4) { top: 28%; left: 18%; width: 5px; height: 5px; animation-delay: -2s; background: rgba(11, 65, 110, 0.35); }
.hero-particles span:nth-child(5) { top: 72%; left: 30%; animation-delay: -8s; }
.hero-particles span:nth-child(6) { top: 12%; left: 45%; width: 3px; height: 3px; animation-delay: -5s; }
.hero-particles span:nth-child(7) { top: 55%; left: 8%; animation-delay: -9s; background: rgba(255, 184, 28, 0.45); }
.hero-particles span:nth-child(8) { top: 85%; right: 40%; animation-delay: -4s; }

@keyframes float-particle {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.35; }
  50% { transform: translateY(-28px) scale(1.35); opacity: 0.9; }
}

.hero-shape {
  position: absolute;
  border-radius: 40% 60% 55% 45%;
  filter: blur(70px);
  pointer-events: none;
}

.hero-shape-1 {
  width: 340px;
  height: 340px;
  background: rgba(11, 65, 110, 0.14);
  top: -90px;
  left: -70px;
}

.hero-shape-2 {
  width: 300px;
  height: 300px;
  background: rgba(246, 139, 30, 0.14);
  bottom: -50px;
  right: -50px;
}

/* ---------- Buttons ---------- */
.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.75rem;
  border-radius: var(--radius-btn);
  background: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
  color: #1a1208;
  font-weight: 700;
  transition: transform var(--transition), box-shadow var(--transition), filter var(--transition);
  box-shadow: 0 10px 28px rgba(246, 139, 30, 0.32);
}

.btn-cta:hover {
  transform: translateY(-2px) scale(1.02);
  filter: brightness(1.04);
  box-shadow: 0 14px 34px rgba(246, 139, 30, 0.4);
}

.btn-cta-lg {
  padding: 1.15rem 2.25rem;
  font-size: 1.125rem;
  border-radius: 10px;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.35rem;
  border-radius: var(--radius-btn);
  border: 1px solid var(--border);
  color: var(--primary);
  background: var(--bg-elevated);
  font-weight: 600;
  transition: border-color var(--transition), background var(--transition), transform var(--transition), color var(--transition);
}

.btn-outline:hover {
  border-color: var(--secondary);
  background: rgba(246, 139, 30, 0.08);
  color: var(--text);
  transform: translateY(-1px);
}

/* ---------- Cards ---------- */
.card-surface {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.card-surface:hover {
  transform: translateY(-4px);
  border-color: rgba(246, 139, 30, 0.4);
  box-shadow: var(--shadow-md);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  font-size: 0.75rem;
  color: var(--text-muted);
  background: var(--bg-soft);
  border: 1px solid var(--border);
}

.price-new {
  color: var(--secondary);
  font-weight: 800;
}

.price-old {
  color: var(--text-muted);
  text-decoration: line-through;
  font-size: 0.9em;
}

.section-alt {
  background: var(--section-alt-grad);
}

/* ---------- Trainer ---------- */
.trainer-section {
  background:
    radial-gradient(ellipse 50% 60% at 10% 40%, rgba(11, 65, 110, 0.08), transparent 60%),
    var(--bg);
}

.trainer-card {
  display: grid;
  gap: 2rem;
  padding: 1.75rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow-md);
}

@media (min-width: 768px) {
  .trainer-card {
    grid-template-columns: 240px 1fr;
    gap: 2.5rem;
    padding: 2.25rem;
    align-items: start;
  }
}

.trainer-media {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
}

.trainer-photo-wrap {
  position: relative;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  padding: 4px;
  background: linear-gradient(145deg, var(--secondary), var(--accent), var(--primary));
  box-shadow: 0 12px 30px rgba(246, 139, 30, 0.22);
}

@media (min-width: 768px) {
  .trainer-photo-wrap {
    width: 210px;
    height: 210px;
  }
}

.trainer-photo-wrap::after {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1px solid rgba(246, 139, 30, 0.25);
  pointer-events: none;
}

.trainer-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  background: #dce7f2;
}

.trainer-name {
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.4;
  color: var(--text);
}

.trainer-role {
  margin-top: 0.2rem;
  color: var(--secondary);
  font-size: 0.9rem;
  font-weight: 600;
}

.trainer-stats {
  display: flex;
  align-items: stretch;
  gap: 0;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.85rem 0.5rem;
  border-radius: 12px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
}

.trainer-stat {
  flex: 1;
  text-align: center;
}

.trainer-stat-value {
  color: var(--primary);
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.2;
}

.trainer-stat-label {
  margin-top: 0.25rem;
  color: var(--text-muted);
  font-size: 0.75rem;
}

.trainer-stat-divider {
  width: 1px;
  background: var(--border);
  align-self: stretch;
  margin: 0.15rem 0;
}

.trainer-content {
  min-width: 0;
}

.trainer-title {
  margin-bottom: 1.25rem;
  text-align: right;
  color: var(--primary);
}

.trainer-bio {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.9;
}

.trainer-badge {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-top: 1.5rem;
  padding: 0.9rem 1.05rem;
  border-radius: 12px;
  background: var(--badge-green-bg);
  border: 1px solid var(--badge-green-border);
  color: var(--badge-green-text);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ---------- Bundle / CTA ---------- */
.bundle-section {
  background:
    radial-gradient(ellipse 70% 70% at 50% 0%, rgba(246, 139, 30, 0.14), transparent 55%),
    radial-gradient(ellipse 45% 50% at 100% 100%, rgba(11, 65, 110, 0.08), transparent 50%),
    var(--bundle-grad);
}

.bundle-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: var(--bg-elevated);
  border: 1px solid rgba(246, 139, 30, 0.28);
  box-shadow:
    0 20px 50px rgba(11, 65, 110, 0.08),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

.bundle-card-glow {
  position: absolute;
  inset: auto -20% -40% auto;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(246, 139, 30, 0.18), transparent 68%);
  pointer-events: none;
}

.bundle-layout {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0;
}

@media (min-width: 900px) {
  .bundle-layout {
    grid-template-columns: 1.05fr 1fr;
  }
}

.bundle-price-panel {
  padding: 2rem 1.5rem;
  text-align: center;
  background:
    linear-gradient(160deg, rgba(246, 139, 30, 0.1) 0%, rgba(255, 184, 28, 0.05) 45%, transparent 100%),
    var(--bg-elevated);
}

@media (min-width: 900px) {
  .bundle-price-panel {
    padding: 2.5rem 2rem;
    border-left: 1px solid rgba(246, 139, 30, 0.18);
    text-align: right;
  }
}

.bundle-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.85rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: rgba(11, 65, 110, 0.07);
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 700;
}

html[data-theme="dark"] .bundle-eyebrow {
  background: rgba(126, 182, 232, 0.12);
}

.bundle-heading {
  font-size: clamp(1.45rem, 2.6vw, 1.9rem);
  font-weight: 800;
  line-height: 1.4;
  color: var(--primary);
  margin-bottom: 1.35rem;
}

.bundle-price-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1.5rem;
  padding: 1.25rem 1rem;
  border-radius: 18px;
  background: var(--bg-soft);
  border: 1px solid rgba(246, 139, 30, 0.22);
  box-shadow: 0 10px 28px rgba(246, 139, 30, 0.1);
}

@media (min-width: 900px) {
  .bundle-price-box {
    align-items: flex-start;
  }
}

.bundle-price {
  font-size: clamp(3rem, 7vw, 4.25rem);
  font-weight: 800;
  line-height: 1;
  color: var(--secondary);
  letter-spacing: -0.02em;
}

.bundle-price span {
  font-size: 0.42em;
  font-weight: 700;
  margin-inline-start: 0.15em;
}

.bundle-price-old {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.bundle-price-old span {
  text-decoration: line-through;
  font-weight: 700;
}

.bundle-cta-btn {
  width: 100%;
  margin-bottom: 1.25rem;
}

.bundle-pay-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.55rem;
}

.bundle-pay .pay-pills {
  justify-content: center;
}

@media (min-width: 900px) {
  .bundle-pay .pay-pills {
    justify-content: flex-start;
  }
}

.bundle-features-panel {
  padding: 2rem 1.5rem;
  background: var(--bg-soft);
}

@media (min-width: 900px) {
  .bundle-features-panel {
    padding: 2.5rem 2rem;
  }
}

.bundle-features-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 1.1rem;
}

.bundle-features {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.bundle-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.85rem 0.9rem;
  border-radius: 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.bundle-features li:hover {
  border-color: rgba(246, 139, 30, 0.4);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.bundle-feature-icon {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(246, 139, 30, 0.12);
  color: var(--secondary);
}

.bundle-features li div {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.bundle-features li strong {
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.45;
}

.bundle-features li span {
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1.55;
}

.price-glow {
  text-shadow: 0 10px 28px rgba(246, 139, 30, 0.28);
}

.discount-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: rgba(246, 139, 30, 0.12);
  border: 1px solid rgba(246, 139, 30, 0.4);
  color: var(--secondary);
  font-weight: 700;
  font-size: 0.875rem;
}

/* ---------- FAQ ---------- */
.faq-item {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.faq-item.is-open {
  border-color: rgba(246, 139, 30, 0.45);
  box-shadow: var(--shadow-md);
}

.faq-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  text-align: right;
  font-weight: 700;
  color: var(--text);
  transition: color var(--transition);
}

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

.faq-icon {
  flex-shrink: 0;
  transition: transform var(--transition);
  color: var(--secondary);
}

.faq-item.is-open .faq-icon {
  transform: rotate(180deg);
}

.faq-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-panel-inner {
  padding: 0 1.25rem 1.15rem;
  color: var(--text-muted);
  line-height: 1.8;
}

/* ---------- Modals ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: var(--modal-overlay);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
}

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

.modal-box {
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  transform: translateY(16px) scale(0.97);
  transition: transform var(--transition);
  box-shadow: 0 24px 64px rgba(11, 65, 110, 0.18);
}

.modal-overlay.is-open .modal-box {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 1rem;
  left: 1rem;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  background: var(--bg-elevated);
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}

.modal-close:hover {
  color: var(--text);
  border-color: var(--secondary);
  background: rgba(246, 139, 30, 0.08);
}

body.modal-open {
  overflow: hidden;
}

/* ---------- Sticky bar ---------- */
.sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transform: translateY(110%);
  transition: transform 0.35s ease;
  background: var(--sticky-bg);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(246, 139, 30, 0.35);
  box-shadow: 0 -8px 28px rgba(11, 65, 110, 0.08);
  padding: 0.75rem 1rem;
  padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
  color: var(--text);
}

.sticky-bar.is-visible {
  transform: translateY(0);
}

.site-footer {
  padding-bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
}

/* ---------- Quotes ---------- */
.quote-icon {
  color: rgba(246, 139, 30, 0.55);
}

/* ---------- Swiper tweaks ---------- */
.testimonials-swiper .swiper-pagination-bullet {
  background: var(--text-muted);
  opacity: 0.45;
}

.testimonials-swiper .swiper-pagination-bullet-active {
  background: var(--secondary);
  opacity: 1;
}

/* ---------- Section spacing ---------- */
.section-pad {
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
}

@media (min-width: 768px) {
  .section-pad {
    padding-top: 6rem;
    padding-bottom: 6rem;
  }
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  line-height: 1.35;
  color: var(--text);
}

.muted {
  color: var(--text-muted);
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 0.65rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.check-list li i,
.check-list li svg {
  flex-shrink: 0;
  margin-top: 0.2rem;
  color: var(--secondary);
}

.pay-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.pay-pill {
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.course-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.5rem;
  border: 1px solid var(--border);
}

.course-icon-ai {
  background: rgba(11, 65, 110, 0.08);
}

.course-icon-capcut {
  background: rgba(246, 139, 30, 0.1);
}

/* ---------- Theme-aware Tailwind helpers ---------- */
.bg-page {
  background-color: var(--bg) !important;
}

.text-primary {
  color: var(--primary) !important;
}

.text-muted {
  color: var(--text-muted) !important;
}

html[data-theme="dark"] .course-icon-ai {
  background: rgba(126, 182, 232, 0.12);
}

html[data-theme="dark"] .trainer-stat-value {
  color: var(--secondary);
}

html[data-theme="dark"] .bundle-heading,
html[data-theme="dark"] .trainer-title {
  color: #fff;
}
