/* ==========================================================================
   SNAKKET ACADEMY - GLASSMORPHISM & RTL DESIGN SYSTEM
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Custom Variables & Root Properties
   -------------------------------------------------------------------------- */
:root {
  /* Color Palette - Clean Light Theme */
  --bg-dark: #ffffff;
  --bg-dark-gradient: linear-gradient(
    180deg,
    #ffffff 0%,
    #f8fafc 50%,
    #f1f5f9 100%
  );
  --bg-ambient-1: rgba(230, 92, 92, 0.04);
  --bg-ambient-2: rgba(224, 82, 99, 0.03);
  --bg-ambient-3: rgba(92, 142, 230, 0.04);

  /* Brand Coral / Pink Accent (Preserved Vibrant) */
  --accent-pink: #e65c5c;
  --accent-pink-hover: #f06b6b;
  --accent-pink-dark: #cc4545;
  --accent-glow: rgba(230, 92, 92, 0.25);
  --accent-gradient: linear-gradient(135deg, #ea6363 0%, #d84343 100%);

  /* Light Cards Surface Tokens (Wayl soft light grey) */
  --glass-bg: #f8f9fa;
  --glass-bg-hover: #ffffff;
  --glass-bg-active: #f1f5f9;
  --glass-border: #e2e8f0;
  --glass-border-light: #e5e7eb;
  --glass-glow-border: rgba(230, 92, 92, 0.35);
  --glass-blur: none;

  /* Typography */
  --font-arabic: "Tajawal", system-ui, -apple-system, sans-serif;
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-sans: "Inter", system-ui, sans-serif;

  /* Text Colors - Black and Crisp Dark Shades */
  --text-main: #111827;
  --text-muted: #4b5563;
  --text-dim: #6b7280;
  --text-white: #000000;

  /* Radii & Shadows */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 9999px;

  --shadow-glass: 0 10px 30px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02);
  --shadow-glow: 0 10px 25px rgba(230, 92, 92, 0.25);

  /* Layout */
  --container-max-width: 1240px;
}

/* --------------------------------------------------------------------------
   2. Global Resets & RTL Base Styles
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  direction: rtl;
}

body {
  background-color: var(--bg-dark);
  background-image: var(--bg-dark-gradient);
  color: var(--text-main);
  font-family: var(--font-arabic);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Background Ambient Lighting */
.ambient-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  opacity: 0.04;
  z-index: 0;
  pointer-events: none;
  filter: blur(10px);
}

.ambient-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  z-index: 0;
  pointer-events: none;
}

.glow-1 {
  top: -10%;
  left: 5%;
  width: 500px;
  height: 500px;
  background: var(--bg-ambient-1);
}

.glow-2 {
  bottom: -10%;
  right: 10%;
  width: 600px;
  height: 600px;
  background: var(--bg-ambient-2);
}

.glow-3 {
  top: 35%;
  right: 45%;
  width: 400px;
  height: 400px;
  background: var(--bg-ambient-3);
}

/* --------------------------------------------------------------------------
   3. Cards & Panel Utilities
   -------------------------------------------------------------------------- */
.glass-panel {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-glass);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-panel-glow {
  background: #ffffff;
  border: 1px solid var(--glass-border-light);
  border-radius: var(--radius-xl);
  box-shadow:
    0 15px 40px rgba(0, 0, 0, 0.05),
    inset 0 1px 0 #ffffff;
}

/* Brand Text Logo (Black 'snakket') */
.brand-text-logo {
  font-family: var(--font-sans);
  font-size: 1.75rem;
  font-weight: 800;
  color: #000000;
  letter-spacing: -0.03em;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.brand-container:hover .brand-text-logo {
  opacity: 0.82;
  transform: scale(1.02);
}

/* Reassurance Note Styling */
.reassurance-note {
  font-size: 0.84rem;
  color: #6b7280;
  line-height: 1.55;
  margin-top: 10px;
  text-align: center;
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   4. Header & Mobile Hamburger Menu
   -------------------------------------------------------------------------- */
.app-wrapper {
  position: relative;
  z-index: 1;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 24px 32px 60px 32px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0 44px 0;
  position: relative;
  z-index: 100;
}

.brand-container {
  display: flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
  text-decoration: none;
}

.bitten-e-logo-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}

.bitten-e-svg {
  filter: drop-shadow(0 0 14px rgba(255, 255, 255, 0.3));
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.brand-container:hover .bitten-e-svg {
  transform: scale(1.08) rotate(-4deg);
}

.mobile-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--text-white);
  cursor: pointer;
  transition: all 0.2s ease;
}

.mobile-menu-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(230, 92, 92, 0.5);
}

.mobile-menu-btn svg {
  width: 22px;
  height: 22px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-white);
}

/* Buttons System */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  outline: none;
  font-family: var(--font-arabic);
  font-size: 0.98rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  gap: 6px;
}

.btn-pill {
  border-radius: var(--radius-pill);
  padding: 12px 28px;
}

.btn-primary {
  background: var(--accent-gradient);
  color: #ffffff;
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #f06b6b 0%, #e04a4a 100%);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(230, 92, 92, 0.4);
}

.btn-glass {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #111827;
  border-radius: var(--radius-pill);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.btn-glass:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: #000000;
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   5. Home Main Grid Layout
   -------------------------------------------------------------------------- */
.main-content {
  margin-top: 10px;
}

.grid-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 44px;
  align-items: start;
}

/* Hero Section */
.left-section {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.hero-header {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero-title-ar {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.2;
  color: #000000;
  letter-spacing: -0.01em;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  font-weight: 400;
  margin-top: 4px;
}

/* Minimal Clean Courses Grid */
.courses-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

@media (max-width: 992px) {
  .courses-grid {
    grid-template-columns: 1fr;
  }
}

/* Package Course Card & Tiers Styling */
.package-course-card {
  grid-column: 1 / -1;
}

.package-general-desc {
  color: var(--text-muted, #4b5563);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-top: 8px;
  margin-bottom: 18px;
}

.package-levels-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 12px;
}

.package-level-row {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
  transition: all 0.2s ease;
}

.package-level-row:hover {
  border-color: #cbd5e1;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
}

.level-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.level-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #111827;
  margin: 0;
}

.level-desc {
  font-size: 0.88rem;
  color: #6b7280;
  margin: 0;
  line-height: 1.5;
}

.level-action {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex-shrink: 0;
}

.level-price {
  font-size: 1.15rem;
  font-weight: 800;
  color: #059669;
}

.btn-sm {
  padding: 10px 18px !important;
  font-size: 0.88rem !important;
  white-space: nowrap;
  border-radius: var(--radius-pill) !important;
}

@media (max-width: 768px) {
  .package-level-row {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .level-action {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.course-card.clean-card {
  background: #f8f9fa;
  border: 1px solid #e2e8f0;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 280px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-glass);
}

.course-card:hover {
  border-color: #cbd5e1;
  background: #ffffff;
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.card-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.icon-box {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(230, 92, 92, 0.12);
}

.icon-box-drawing {
  background: linear-gradient(
    135deg,
    rgba(230, 92, 92, 0.15) 0%,
    rgba(224, 82, 99, 0.08) 100%
  );
  border: 1px solid rgba(230, 92, 92, 0.25);
}

.icon-box-english {
  background: linear-gradient(
    135deg,
    rgba(92, 142, 230, 0.15) 0%,
    rgba(82, 120, 224, 0.08) 100%
  );
  border: 1px solid rgba(92, 142, 230, 0.25);
}

.icon-sparkle {
  width: 24px;
  height: 24px;
  color: #e65c5c;
}

.icon-box-english .icon-sparkle {
  color: #3b82f6;
}

.course-name {
  font-size: 1.55rem;
  font-weight: 700;
  color: #000000;
  margin-bottom: 8px;
}

.badge-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.instructor-badge-line {
  display: flex;
  align-items: center;
  margin-top: 6px;
  margin-bottom: 12px;
}

.instructor-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.84rem;
  font-weight: 600;
  color: #374151;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  padding: 4px 12px;
  border-radius: 9999px;
  width: fit-content;
}

/* YouTube Video Cards System */
.video-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.video-card:hover {
  transform: translateY(-4px);
  border-color: #bfdbfe;
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.12);
}

.video-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
  overflow: hidden;
}

.video-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.video-card:hover .video-thumb-img {
  transform: scale(1.05);
}

.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.9);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.25s ease, background 0.25s ease;
}

.video-card:hover .video-play-btn {
  transform: translate(-50%, -50%) scale(1.12);
  background: rgba(37, 99, 235, 1);
}

.video-card-title {
  padding: 14px 16px;
  font-size: 0.98rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0;
  line-height: 1.5;
}

.lesson-badge {
  font-size: 0.8rem;
  color: #1f2937;
  background: #e2e8f0;
  padding: 4px 10px;
  border-radius: 8px;
  font-weight: 600;
}

.feature-tag-pill {
  font-size: 0.8rem;
  color: var(--accent-pink);
  background: rgba(230, 92, 92, 0.08);
  border: 1px solid rgba(230, 92, 92, 0.2);
  padding: 4px 10px;
  border-radius: 8px;
  font-weight: 600;
}

.duration-badge {
  font-size: 0.8rem;
  color: #15803d;
  background: #dcfce7;
  border: 1px solid #bbf7d0;
  padding: 4px 12px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 700;
}

.duration-badge svg {
  width: 14px;
  height: 14px;
}

.card-footer {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}

.price-tag {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.price-tag .amount {
  font-size: 1.65rem;
  font-weight: 800;
  color: #000000;
}

.price-tag .currency {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.card-action-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.card-action-buttons .btn {
  padding: 12px 8px;
  font-size: 0.85rem;
  border-radius: var(--radius-pill);
}

.card-action-buttons .btn svg {
  width: 15px;
  height: 15px;
}

/* --------------------------------------------------------------------------
   6. Dedicated Subpages Layout & Components
   -------------------------------------------------------------------------- */
.page-content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
}

.page-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 0 10px 0;
}

.page-title {
  font-size: 2.8rem;
  font-weight: 800;
  color: #000000;
}

.page-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
}

/* Founder Highlight Card */
.founder-highlight-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff5f5;
  border: 1px solid #fecdd3;
  border-radius: 20px;
  padding: 20px 24px;
}

.founder-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: rgba(230, 92, 92, 0.15);
  color: var(--accent-pink);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.founder-icon svg {
  width: 24px;
  height: 24px;
}

.founder-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 1.05rem;
  color: #111827;
}

.founder-text strong {
  color: var(--accent-pink);
  font-size: 0.9rem;
}

/* About Page Specifics */
.about-page-card,
.reviews-page-card,
.support-page-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
  padding: 44px 40px;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.about-main-text {
  font-size: 1.15rem;
  line-height: 1.85;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.about-main-text strong {
  color: #000000;
}

.large-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.stat-card {
  background: #f8f9fa;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}

.stat-number {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--accent-pink);
}

.stat-label {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.pillar-card {
  background: #f8f9fa;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pillar-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(230, 92, 92, 0.12);
  color: var(--accent-pink);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pillar-icon svg {
  width: 24px;
  height: 24px;
}

.pillar-card h3 {
  font-size: 1.2rem;
  color: #000000;
}

.pillar-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.page-action-row {
  margin-top: 10px;
}

/* Reviews Page Specifics */
.full-page-placeholder {
  padding: 50px 30px;
}

.reviews-grid-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.review-slot-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.slot-badge {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent-pink);
  display: flex;
  align-items: center;
  gap: 6px;
}

.slot-badge svg {
  width: 16px;
  height: 16px;
}

.before-after-placeholder {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  height: 140px;
}

.ba-box {
  background: #f1f5f9;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-size: 0.88rem;
}

.full-width-ba {
  grid-column: span 2;
}

.slot-text {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Support Page Channels List */
.support-channels-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.support-channel-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.support-channel-card:hover {
  transform: translateY(-4px);
}

.whatsapp-channel {
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.whatsapp-channel:hover {
  background: #dcfce7;
  border-color: #86efac;
  box-shadow: 0 12px 30px rgba(34, 197, 94, 0.15);
}

.instagram-channel {
  background: #fff5f5;
  border-color: #fecdd3;
}

.instagram-channel:hover {
  background: #ffe4e6;
  border-color: #fda4af;
  box-shadow: 0 12px 30px rgba(225, 48, 108, 0.15);
}

.english-insta {
  background: #eff6ff;
  border-color: #bfdbfe;
}

.english-insta:hover {
  background: #dbeafe;
  border-color: #93c5fd;
  box-shadow: 0 12px 30px rgba(59, 130, 246, 0.15);
}

.channel-icon-wrapper {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.whatsapp-channel .channel-icon-wrapper {
  background: #dcfce7;
  color: #16a34a;
}

.instagram-channel .channel-icon-wrapper {
  background: #ffe4e6;
  color: #e1306c;
}

.english-insta .channel-icon-wrapper {
  background: #dbeafe;
  color: #2563eb;
}

.channel-icon-wrapper svg {
  width: 28px;
  height: 28px;
}

.channel-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-right: 20px;
  margin-left: auto;
}

.channel-badge {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-pink);
}

.channel-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #000000;
}

.channel-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.channel-action .btn {
  padding: 10px 20px;
  font-size: 0.88rem;
  gap: 8px;
}

.support-guarantee-box {
  background: #f8f9fa;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.support-guarantee-box svg {
  width: 28px;
  height: 28px;
  color: var(--accent-pink);
}

/* --------------------------------------------------------------------------
   7. Checkout Widget & Official Payment Brand Logos
   -------------------------------------------------------------------------- */
.right-section {
  position: sticky;
  top: 24px;
}

.checkout-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.checkout-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.checkout-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #000000;
}

.lock-icon {
  width: 22px;
  height: 22px;
  color: #16a34a;
}

.selected-bundle-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  background: #f8f9fa;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
}

.bundle-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bundle-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #000000;
}

.bundle-savings-badge {
  font-size: 0.75rem;
  font-weight: 600;
  color: #15803d;
  background: #dcfce7;
  padding: 2px 8px;
  border-radius: 6px;
  width: fit-content;
}

.bundle-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.bundle-amount {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--accent-pink);
}

.bundle-currency {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

.checkout-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.payment-fields-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.payment-fields-group.hidden {
  display: none;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
}

.input-icon-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  background: #f8f9fa;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  color: #111827;
  font-family: var(--font-arabic);
  font-size: 0.92rem;
  outline: none;
  transition: all 0.2s ease;
}

.form-input::placeholder {
  color: #9ca3af;
}

.form-input:focus {
  border-color: var(--accent-pink);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(230, 92, 92, 0.12);
}

.input-right-icon {
  position: absolute;
  left: 16px;
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  pointer-events: none;
}

.fib-qr-notice {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  padding: 12px;
  border-radius: 12px;
  font-size: 0.82rem;
  color: #1e40af;
}

.fib-qr-notice svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.btn-pay-now {
  width: 100%;
  padding: 16px;
  border-radius: var(--radius-pill);
  font-size: 1.05rem;
  font-weight: 700;
  margin-top: 8px;
  position: relative;
}

.btn-spinner {
  width: 22px;
  height: 22px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #ffffff;
  animation: spin 0.8s linear infinite;
}

.btn-spinner.hidden {
  display: none;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.checkout-guarantee {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--text-dim);
}

.shield-icon {
  width: 16px;
  height: 16px;
  color: #16a34a;
}

/* --------------------------------------------------------------------------
   8. Modals & Overlays
   -------------------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(8px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.modal-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.modal-content {
  width: 100%;
  max-width: 540px;
  padding: 36px 32px;
  position: relative;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  animation: modalSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalSlideUp {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  left: 20px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.8rem;
  cursor: pointer;
}

.modal-close-btn:hover {
  color: #000000;
}

.modal-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.modal-badge {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-pink);
}

.modal-title {
  font-size: 2rem;
  font-weight: 800;
  color: #000000;
}

.modal-desc {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.curriculum-list h4 {
  color: #000000;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.curriculum-list ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.curriculum-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.curriculum-list li i {
  width: 18px;
  height: 18px;
  color: #16a34a;
  flex-shrink: 0;
}

.modal-footer {
  margin-top: 24px;
}

/* Success Modal Details */
.text-center {
  text-align: center;
}

.success-icon-wrapper {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: #dcfce7;
  border: 2px solid #16a34a;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px auto;
  box-shadow: 0 0 25px rgba(22, 163, 74, 0.2);
}

.success-check-icon {
  width: 34px;
  height: 34px;
  color: #16a34a;
}

.success-subtext {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-top: 6px;
  margin-bottom: 24px;
}

.receipt-box {
  background: #f8f9fa;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
  text-align: right;
}

.receipt-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.receipt-row strong {
  color: #000000;
  font-weight: 600;
}

.receipt-row strong.receipt-amount {
  color: var(--accent-pink);
  font-size: 1.1rem;
  font-weight: 800;
}

.full-width {
  width: 100%;
}

/* --------------------------------------------------------------------------
   9. Full Desktop & Mobile Responsiveness & Hamburger Drawer
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .grid-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hero-title-ar {
    font-size: 2.4rem;
  }

  .large-stats,
  .pillars-grid,
  .reviews-grid-preview {
    grid-template-columns: 1fr;
  }

  .support-channel-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .channel-details {
    margin-right: 0;
  }

  .channel-action {
    width: 100%;
  }

  .channel-action .btn {
    width: 100%;
  }

  .right-section {
    position: relative;
    top: 0;
  }
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: flex;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #000000;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    margin-top: 12px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 24px 20px;
    flex-direction: column;
    gap: 18px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
    z-index: 100;
    animation: drawerSlideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .main-nav.mobile-open {
    display: flex;
  }

  .nav-link {
    font-size: 1.1rem;
    padding: 10px 16px;
    border-radius: 12px;
    width: 100%;
    display: block;
    color: #4b5563;
  }

  .nav-link.active,
  .nav-link:hover {
    background: #f1f5f9;
    color: var(--accent-pink);
  }

  .courses-grid {
    grid-template-columns: 1fr;
  }
}

@keyframes drawerSlideDown {
  from {
    opacity: 0;
    transform: translateY(-16px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 640px) {
  .app-wrapper {
    padding: 14px 16px 40px 16px;
  }

  .site-header {
    padding: 10px 0 28px 0;
  }

  .hero-title-ar,
  .page-title {
    font-size: 1.85rem;
  }

  .hero-subtitle {
    font-size: 0.95rem;
  }

  .checkout-card {
    padding: 20px 16px;
  }

  .about-page-card,
  .reviews-page-card,
  .support-page-card {
    padding: 24px 16px;
  }

  .founder-highlight-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .modal-content {
    padding: 24px 20px;
  }
  .wayl-checkout-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .wayl-notice-text {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
    text-align: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px dashed rgba(255, 255, 255, 0.12);
    padding: 14px;
    border-radius: var(--radius-md);
  }
}

/* --------------------------------------------------------------------------
   Course Poster Thumbnail (Udemy-style for Drawing Card)
   -------------------------------------------------------------------------- */
.course-card.clean-card.has-poster {
  padding: 0;
  overflow: hidden;
}

.card-poster-wrapper {
  width: 100%;
  height: 170px;
  overflow: hidden;
  position: relative;
  background: #e2e8f0;
  border-top-left-radius: var(--radius-xl);
  border-top-right-radius: var(--radius-xl);
}

.card-poster-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* <picture> wrappers (WebP + fallback) must not add a layout box */
.img-picture {
  display: contents;
}

.course-card:hover .card-poster-img {
  transform: scale(1.05);
}

.card-inner-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
}

/* --------------------------------------------------------------------------
   Student Reviews & Progress Section ("آراء وتطورات طلابنا")
   -------------------------------------------------------------------------- */
.reviews-section {
  margin-top: 44px;
  padding: 44px 40px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-xl);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  gap: 40px;
  transition: box-shadow 0.5s ease, border-color 0.5s ease;
}

.reviews-section.highlight-pulse {
  border-color: var(--accent-pink);
  box-shadow: 0 0 35px rgba(230, 92, 92, 0.3);
}

.reviews-section-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}

.reviews-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent-pink);
  background: rgba(230, 92, 92, 0.08);
  border: 1px solid rgba(230, 92, 92, 0.2);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
}

.reviews-badge svg {
  width: 16px;
  height: 16px;
  fill: var(--accent-pink);
}

.reviews-section-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: #000000;
  letter-spacing: -0.02em;
}

.reviews-section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 600px;
}

.block-title-heading {
  font-size: 1.35rem;
  font-weight: 700;
  color: #000000;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.block-title-heading svg {
  width: 22px;
  height: 22px;
  color: var(--accent-pink);
}

/* Part A: Before & After Cards Grid */
.ba-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.ba-card-item {
  background: #f8f9fa;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.ba-card-item:hover {
  transform: translateY(-4px);
  border-color: #cbd5e1;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
}

.ba-card-top-bar {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ba-tag {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-pink);
  background: rgba(230, 92, 92, 0.1);
  padding: 3px 10px;
  border-radius: 6px;
  width: fit-content;
}

.ba-student-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: #000000;
}

.ba-duration {
  font-size: 0.85rem;
  color: #16a34a;
  font-weight: 600;
}

.ba-img-frame {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

.ba-showcase-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Part B: Text Reviews Quotes Grid */
.reviews-quotes-block {
  margin-top: 10px;
}

.quotes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.quote-card {
  background: #f8f9fa;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.quote-card:hover {
  transform: translateY(-3px);
  border-color: #cbd5e1;
  background: #ffffff;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.quote-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.quote-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(230, 92, 92, 0.15) 0%, rgba(224, 82, 99, 0.08) 100%);
  border: 1px solid rgba(230, 92, 92, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-pink);
  flex-shrink: 0;
}

.quote-avatar svg {
  width: 20px;
  height: 20px;
}

.quote-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.student-quote-name {
  font-size: 1.08rem;
  font-weight: 700;
  color: #000000;
}

.quote-stars {
  display: flex;
  gap: 3px;
  color: #f59e0b;
}

.quote-stars svg {
  width: 14px;
  height: 14px;
  fill: #f59e0b;
}

.quote-text {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #1f2937;
  font-weight: 500;
}

/* Part C: Instagram Footer Banner */
.reviews-footer-banner {
  background: #fff5f5;
  border: 1px solid #fecdd3;
  border-radius: 20px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
}

.instagram-footer-icon {
  width: 28px;
  height: 28px;
  color: #e1306c;
  flex-shrink: 0;
}

.reviews-footer-text {
  font-size: 1.05rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.5;
}

/* Responsive adjustments for reviews section */
@media (max-width: 768px) {
  .reviews-section {
    padding: 24px 18px;
    gap: 30px;
    margin-top: 32px;
  }

  .reviews-section-title {
    font-size: 1.75rem;
  }

  .ba-cards-grid {
    grid-template-columns: 1fr;
  }

  .quotes-grid {
    grid-template-columns: 1fr;
  }

  .reviews-footer-banner {
    flex-direction: column;
    gap: 8px;
    padding: 16px;
  }
}

/* --------------------------------------------------------------------------
   Drawing Course 24-Hour Temporary Discount & Live Countdown Timer Styles
   -------------------------------------------------------------------------- */
.hidden {
  display: none !important;
}

/* Poster Ribbon Overlay */
.card-poster-wrapper {
  position: relative;
}

.poster-discount-ribbon {
  position: absolute;
  top: 12px;
  right: 12px;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 15px rgba(220, 38, 38, 0.35);
  letter-spacing: -0.01em;
  z-index: 5;
  animation: pulse-ribbon 2s infinite ease-in-out;
}

@keyframes pulse-ribbon {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

/* Discount Badge in Card Header */
.discount-badge {
  font-size: 0.8rem;
  color: #dc2626;
  background: #fef2f2;
  border: 1px solid #fecdd3;
  padding: 4px 12px;
  border-radius: 8px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.08);
}

.discount-badge svg {
  width: 14px;
  height: 14px;
  color: #ef4444;
}

/* Countdowns stay invisible (space kept) until the script writes the real time: no 00:00:00 flash on load */
[data-countdown]:not(.is-ready),
[data-countdown-compact]:not(.is-ready) {
  visibility: hidden;
}

/* Countdown Timer Box */
.discount-timer-box {
  margin-top: 16px;
  background: linear-gradient(135deg, #fff5f5 0%, #fef2f2 100%);
  border: 1.5px dashed #fca5a5;
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: inset 0 1px 3px rgba(239, 68, 68, 0.04);
}

.timer-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #991b1b;
}

.timer-flame {
  width: 16px;
  height: 16px;
  color: #ef4444;
  animation: flame-bounce 1.2s ease-in-out infinite alternate;
}

@keyframes flame-bounce {
  from { transform: translateY(0) scale(1); }
  to { transform: translateY(-2px) scale(1.15); }
}

.timer-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  direction: ltr;
}

.timer-unit {
  background: #ffffff;
  border: 1px solid #fecdd3;
  border-radius: 10px;
  padding: 6px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 48px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.timer-unit span {
  font-family: var(--font-sans);
  font-size: 1.25rem;
  font-weight: 800;
  color: #dc2626;
  line-height: 1;
}

.timer-unit small {
  font-family: var(--font-arabic);
  font-size: 0.68rem;
  font-weight: 700;
  color: #991b1b;
  margin-top: 3px;
}

.timer-dots {
  font-size: 1.2rem;
  font-weight: 800;
  color: #ef4444;
}

/* Dual Price Tag Layout */
.price-discount-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.old-price {
  font-size: 0.95rem;
  color: #94a3b8;
  text-decoration: line-through;
  font-weight: 600;
}

.new-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.discount-amount {
  color: #dc2626 !important;
  font-size: 1.85rem !important;
  font-weight: 800 !important;
}

/* Reviews Modal Content Custom Styling */
.reviews-modal-content {
  max-width: 900px !important;
  max-height: 85vh;
  overflow-y: auto;
  padding: 36px 30px !important;
  border-radius: 28px !important;
}

@media (max-width: 768px) {
  .reviews-modal-content {
    padding: 24px 16px !important;
    max-height: 90vh;
  }
}

/* Package Levels Breakdown Styling */
.package-levels-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.package-level-row {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg, 20px);
  padding: 20px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  transition: all 0.25s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.package-level-row:hover {
  border-color: #cbd5e1;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

.level-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.level-title {
  font-size: 1.12rem;
  font-weight: 700;
  color: #111827;
  margin: 0;
}

.level-desc {
  font-size: 0.92rem;
  color: #4b5563;
  line-height: 1.6;
  margin: 0;
}

.level-action {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  flex-shrink: 0;
}

.level-price {
  font-size: 1.15rem;
  font-weight: 800;
  color: #059669;
}

@media (max-width: 640px) {
  .package-level-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
  }

  .level-action {
    width: 100%;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .level-action .btn {
    flex: 1;
  }
}
/* --------------------------------------------------------------------------
   Site Footer (all pages) + Terms page
   -------------------------------------------------------------------------- */
.site-footer {
  margin-top: 60px;
  padding: 24px 16px 8px;
  border-top: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.site-footer a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
}
.site-footer a:hover {
  color: #e24f50;
}
.site-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 18px;
}
.site-footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 4px;
}
.site-footer-copy {
  margin: 0;
  font-size: 0.82rem;
  color: #94a3b8;
}

.terms-card {
  max-width: 720px;
  margin: 0 auto;
  padding: 28px 24px;
}
.terms-card h1 {
  font-size: 1.6rem;
  font-weight: 800;
  margin: 0 0 8px;
}
.terms-card .terms-intro {
  color: var(--text-muted);
  margin: 0 0 20px;
  line-height: 1.7;
}
.terms-list {
  margin: 0;
  padding: 0 20px 0 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  line-height: 1.8;
}
.terms-list strong {
  color: #111827;
}
