/* ═══════════════════════════════════════════════════════════════
   AI Fashion Academy — Jordan
   Modern Fashion-Tech Academy Style
   Colors:
   - Deep Navy: #0f172a
   - Electric Cyan: #06b6d4
   - Warm Sand: #d4a574
   - Off-White: #faf9f6
   - Soft Stone: #94a3b8
   - Muted Jordanian Red: #c2410c
   ═══════════════════════════════════════════════════════════════ */

:root {
  --navy: #070707;
  --navy-light: #141414;
  --navy-lighter: #242424;
  --cyan: #d4a574;
  --cyan-light: #f1c66b;
  --cyan-dark: #b08d5f;
  --sand: #d4a574;
  --sand-light: #e8d5c4;
  --sand-dark: #b08d5f;
  --off-white: #faf9f6;
  --stone: #94a3b8;
  --stone-light: #cbd5e1;
  --stone-dark: #64748b;
  --red: #8f1d1f;
  --red-light: #b42a30;
  --white: #ffffff;
  --black: #020617;
  --gradient-hero: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
  --gradient-cyan: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
  --gradient-sand: linear-gradient(135deg, #d4a574 0%, #b08d5f 100%);
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --font-arabic: 'Tajawal', 'Cairo', 'Noto Sans Arabic', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-arabic);
  background: var(--off-white);
  color: var(--navy);
  line-height: 1.7;
  direction: rtl;
  text-align: right;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.3; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.8rem); }
h4 { font-size: clamp(1rem, 2vw, 1.3rem); }
p { margin-bottom: 1rem; font-size: 1.05rem; }

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: all 0.3s ease;
}

.site-header.scrolled {
  background: rgba(15, 23, 42, 0.98);
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 0 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--white);
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--gradient-cyan);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--white);
  flex-shrink: 0;
}

.logo-text {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
}

.logo-text span {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--cyan);
  letter-spacing: 0.05em;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-desktop a {
  color: var(--stone-light);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
  position: relative;
}

.nav-desktop a:hover,
.nav-desktop a.active {
  color: var(--cyan);
}

.nav-desktop a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  right: 0;
  width: 0;
  height: 2px;
  background: var(--cyan);
  transition: width 0.3s;
}

.nav-desktop a:hover::after,
.nav-desktop a.active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-family: var(--font-arabic);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-sm { padding: 0.5rem 1rem; font-size: 0.85rem; }

.btn-primary {
  background: var(--gradient-cyan);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(6, 182, 212, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(6, 182, 212, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--cyan);
  border: 2px solid var(--cyan);
}

.btn-secondary:hover {
  background: var(--cyan);
  color: var(--white);
}

.btn-sand {
  background: var(--gradient-sand);
  color: var(--white);
}

.btn-sand:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 165, 116, 0.4);
}

.btn-dark {
  background: var(--navy);
  color: var(--white);
}

.btn-dark:hover {
  background: var(--navy-light);
}

.btn-white {
  background: var(--white);
  color: var(--navy);
}

.btn-white:hover {
  background: var(--off-white);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.3);
}

.btn-outline-white:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.1);
}

.btn-full { width: 100%; }

/* Mobile menu */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-nav {
  display: none;
  position: fixed;
  top: 72px;
  right: 0;
  left: 0;
  background: var(--navy);
  padding: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  z-index: 999;
}

.mobile-nav.active { display: block; }

.mobile-nav a {
  display: block;
  padding: 1rem 0;
  color: var(--stone-light);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.mobile-nav a:hover { color: var(--cyan); }

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--gradient-hero);
  padding-top: 72px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 80%;
  height: 150%;
  background: radial-gradient(circle, rgba(6,182,212,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 60%;
  height: 80%;
  background: radial-gradient(circle, rgba(212,165,116,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(6, 182, 212, 0.15);
  border: 1px solid rgba(6, 182, 212, 0.3);
  border-radius: 100px;
  color: var(--cyan);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.hero-badge .pulse {
  width: 8px;
  height: 8px;
  background: var(--cyan);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-title {
  color: var(--white);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-title .highlight {
  background: var(--gradient-cyan);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  color: var(--stone);
  font-size: 1.15rem;
  margin-bottom: 2rem;
  max-width: 90%;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.hero-stat {
  text-align: center;
}

.hero-stat-number {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--cyan);
  display: block;
}

.hero-stat-label {
  font-size: 0.8rem;
  color: var(--stone);
  font-weight: 500;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-visual-inner {
  position: relative;
  width: 100%;
  max-width: 500px;
  aspect-ratio: 1;
  background: linear-gradient(135deg, rgba(6,182,212,0.1) 0%, rgba(212,165,116,0.1) 100%);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-visual-inner::before {
  content: '👕✨';
  font-size: 8rem;
  opacity: 0.3;
  filter: blur(1px);
}

.hero-visual-card {
  position: absolute;
  background: rgba(30, 41, 59, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow-lg);
}

.hero-visual-card.card-1 {
  top: 10%;
  left: -5%;
  animation: float 6s ease-in-out infinite;
}

.hero-visual-card.card-2 {
  bottom: 15%;
  right: -5%;
  animation: float 6s ease-in-out infinite 2s;
}

.hero-visual-card.card-3 {
  top: 50%;
  right: -10%;
  animation: float 6s ease-in-out infinite 4s;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

.hero-visual-card strong {
  color: var(--cyan);
  font-size: 1.1rem;
  display: block;
  margin-bottom: 0.25rem;
}

.hero-visual-card span {
  color: var(--stone);
  font-size: 0.8rem;
}

/* Section styling */
.section {
  padding: 5rem 0;
  position: relative;
}

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

.section-dark {
  background: var(--navy);
  color: var(--white);
}

.section-sand {
  background: linear-gradient(180deg, var(--sand-light) 0%, var(--off-white) 100%);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
}

.section-label {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: rgba(6, 182, 212, 0.1);
  color: var(--cyan-dark);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.section-title {
  margin-bottom: 1rem;
}

.section-desc {
  color: var(--stone-dark);
  font-size: 1.1rem;
}

.section-dark .section-desc {
  color: var(--stone);
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card-grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.card-grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.04);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(6, 182, 212, 0.2);
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  background: linear-gradient(135deg, rgba(6,182,212,0.1) 0%, rgba(6,182,212,0.05) 100%);
  color: var(--cyan-dark);
}

.card-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--navy);
}

.card-text {
  color: var(--stone-dark);
  font-size: 0.95rem;
  line-height: 1.7;
}

.card-dark {
  background: var(--navy-light);
  border-color: rgba(255,255,255,0.05);
}

.card-dark .card-title {
  color: var(--white);
}

.card-dark .card-text {
  color: var(--stone);
}

/* Pain Points / Transformation */
.pain-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.pain-list {
  list-style: none;
  padding: 0;
}

.pain-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  background: rgba(194, 65, 12, 0.05);
  border-right: 3px solid var(--red);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  transition: all 0.3s;
}

.pain-list li:hover {
  background: rgba(194, 65, 12, 0.08);
  transform: translateX(-4px);
}

.pain-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.pain-text {
  font-size: 1rem;
  color: var(--navy);
  font-weight: 500;
}

.gain-list {
  list-style: none;
  padding: 0;
}

.gain-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  background: rgba(6, 182, 212, 0.05);
  border-right: 3px solid var(--cyan);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  transition: all 0.3s;
}

.gain-list li:hover {
  background: rgba(6, 182, 212, 0.08);
  transform: translateX(-4px);
}

.gain-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.gain-text {
  font-size: 1rem;
  color: var(--navy);
  font-weight: 500;
}

/* Module cards */
.module-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.04);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.module-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.module-header {
  padding: 1.5rem;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.module-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(6,182,212,0.1) 0%, transparent 50%);
}

.module-number {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: rgba(6, 182, 212, 0.2);
  color: var(--cyan);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  position: relative;
  z-index: 1;
}

.module-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 1;
}

.module-title-en {
  font-size: 0.8rem;
  color: var(--stone);
  font-weight: 400;
  position: relative;
  z-index: 1;
}

.module-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.module-lessons {
  list-style: none;
  padding: 0;
  margin-bottom: 1.5rem;
  flex: 1;
}

.module-lessons li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.03);
  font-size: 0.9rem;
  color: var(--stone-dark);
}

.module-lessons li:last-child {
  border-bottom: none;
}

.lesson-check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--stone-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  color: var(--stone-light);
  flex-shrink: 0;
}

.module-meta {
  display: flex;
  gap: 1rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(0,0,0,0.04);
  font-size: 0.8rem;
  color: var(--stone);
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}

.pricing-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-md);
  border: 2px solid transparent;
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}

.pricing-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.pricing-card.featured {
  border-color: var(--cyan);
  transform: scale(1.05);
  z-index: 2;
}

.pricing-card.featured:hover {
  transform: scale(1.05) translateY(-6px);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.4rem 1.2rem;
  background: var(--gradient-cyan);
  color: var(--white);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}

.pricing-name {
  font-size: 1.3rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.5rem;
}

.pricing-price {
  text-align: center;
  margin-bottom: 1.5rem;
}

.pricing-price .currency {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  vertical-align: top;
}

.pricing-price .amount {
  font-size: 3rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
}

.pricing-price .period {
  font-size: 0.9rem;
  color: var(--stone);
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin-bottom: 2rem;
  flex: 1;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0;
  font-size: 0.9rem;
  color: var(--stone-dark);
  border-bottom: 1px solid rgba(0,0,0,0.03);
}

.pricing-features li.included::before {
  content: '✓';
  color: var(--cyan);
  font-weight: 700;
  flex-shrink: 0;
}

.pricing-features li.not-included::before {
  content: '—';
  color: var(--stone-light);
  flex-shrink: 0;
}

.pricing-features li.not-included {
  color: var(--stone-light);
  text-decoration: line-through;
}

/* FAQ */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--white);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.04);
  overflow: hidden;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  color: var(--navy);
  transition: all 0.3s;
}

.faq-question:hover {
  color: var(--cyan-dark);
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--cyan);
  transition: transform 0.3s;
  flex-shrink: 0;
  margin-right: auto;
  margin-left: 1rem;
}

.faq-item.active .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 1.5rem;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 0 1.5rem 1.5rem;
}

.faq-answer p {
  color: var(--stone-dark);
  line-height: 1.8;
}

/* Footer */
.site-footer {
  background: var(--navy);
  color: var(--stone);
  padding: 4rem 0 2rem;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand {
  max-width: 300px;
}

.footer-brand .logo-text {
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--stone);
}

.footer-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--stone);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--cyan);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: var(--stone-dark);
  margin: 0;
}

/* Login page */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-hero);
  padding: 2rem;
}

.login-box {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 3rem;
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow-xl);
}

.login-logo {
  text-align: center;
  margin-bottom: 2rem;
}

.login-logo .logo-icon {
  margin: 0 auto 1rem;
  width: 56px;
  height: 56px;
  font-size: 1.5rem;
}

.login-logo h2 {
  font-size: 1.5rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.login-logo p {
  color: var(--stone);
  font-size: 0.9rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.form-input {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid var(--stone-light);
  border-radius: var(--radius-md);
  font-family: var(--font-arabic);
  font-size: 1rem;
  color: var(--navy);
  transition: all 0.3s;
  background: var(--off-white);
}

.form-input:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
}

.form-input::placeholder {
  color: var(--stone);
}

/* Dashboard */
.dashboard-page {
  padding-top: 72px;
  min-height: 100vh;
  background: var(--off-white);
}

.dashboard-header {
  background: var(--white);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  padding: 2rem 0;
  margin-bottom: 2rem;
}

.dashboard-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.dashboard-welcome h1 {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

.dashboard-welcome p {
  color: var(--stone);
  margin: 0;
  font-size: 0.95rem;
}

.progress-ring {
  width: 80px;
  height: 80px;
  position: relative;
}

.progress-ring svg {
  transform: rotate(-90deg);
}

.progress-ring-bg {
  fill: none;
  stroke: var(--stone-light);
  stroke-width: 6;
}

.progress-ring-fill {
  fill: none;
  stroke: var(--cyan);
  stroke-width: 6;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.5s ease;
}

.progress-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
}

.sidebar {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.04);
  height: fit-content;
  position: sticky;
  top: 88px;
}

.sidebar-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--stone);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(0,0,0,0.04);
}

.sidebar-nav {
  list-style: none;
  padding: 0;
}

.sidebar-nav li {
  margin-bottom: 0.25rem;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  color: var(--stone-dark);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
  background: rgba(6, 182, 212, 0.08);
  color: var(--cyan-dark);
}

.sidebar-nav a .icon {
  font-size: 1.1rem;
  width: 24px;
  text-align: center;
}

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

.content-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.04);
  margin-bottom: 1.5rem;
}

/* Lesson page */
.lesson-page {
  padding-top: 72px;
  min-height: 100vh;
  background: var(--off-white);
}

.lesson-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.lesson-sidebar {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.04);
  height: fit-content;
  position: sticky;
  top: 88px;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
}

.lesson-sidebar-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(0,0,0,0.04);
}

.lesson-nav-list {
  list-style: none;
  padding: 0;
}

.lesson-nav-list li {
  margin-bottom: 0.15rem;
}

.lesson-nav-list a {
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  color: var(--stone-dark);
  text-decoration: none;
  font-size: 0.85rem;
  transition: all 0.2s;
  border-right: 2px solid transparent;
}

.lesson-nav-list a:hover {
  background: rgba(6, 182, 212, 0.05);
  color: var(--cyan-dark);
}

.lesson-nav-list a.active {
  background: rgba(6, 182, 212, 0.1);
  color: var(--cyan-dark);
  border-right-color: var(--cyan);
  font-weight: 600;
}

.lesson-nav-list .module-divider {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--stone);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 1rem 0.75rem 0.5rem;
  margin-top: 0.5rem;
  border-top: 1px solid rgba(0,0,0,0.04);
}

.lesson-content {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.04);
}

.lesson-content h1 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  color: var(--navy);
}

.lesson-content h2 {
  font-size: 1.4rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--navy);
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--cyan);
  display: inline-block;
}

.lesson-content h3 {
  font-size: 1.15rem;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--navy-light);
}

.lesson-content p {
  margin-bottom: 1rem;
  line-height: 1.9;
  color: var(--navy-light);
}

.lesson-content ul,
.lesson-content ol {
  margin-bottom: 1.5rem;
  padding-right: 1.5rem;
}

.lesson-content li {
  margin-bottom: 0.5rem;
  color: var(--navy-light);
}

.lesson-content blockquote {
  background: linear-gradient(135deg, rgba(6,182,212,0.05) 0%, rgba(212,165,116,0.05) 100%);
  border-right: 4px solid var(--cyan);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: var(--radius-sm);
  font-style: italic;
  color: var(--navy);
}

.lesson-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9rem;
}

.lesson-content th,
.lesson-content td {
  padding: 0.75rem 1rem;
  text-align: right;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.lesson-content th {
  background: var(--off-white);
  font-weight: 700;
  color: var(--navy);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.lesson-content tr:hover td {
  background: rgba(6, 182, 212, 0.02);
}

/* Prompt boxes */
.prompt-box {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin: 1.5rem 0;
  position: relative;
  overflow: hidden;
}

.prompt-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-cyan);
}

.prompt-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--cyan);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.prompt-content {
  background: rgba(0,0,0,0.3);
  border-radius: var(--radius-md);
  padding: 1rem;
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 0.85rem;
  color: var(--stone-light);
  line-height: 1.8;
  white-space: pre-wrap;
  word-break: break-word;
  direction: ltr;
  text-align: left;
}

.prompt-copy {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  background: rgba(6, 182, 212, 0.15);
  color: var(--cyan);
  border: 1px solid rgba(6, 182, 212, 0.3);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.prompt-copy:hover {
  background: var(--cyan);
  color: var(--white);
}

/* Exercise boxes */
.exercise-box {
  background: linear-gradient(135deg, rgba(212,165,116,0.08) 0%, rgba(212,165,116,0.03) 100%);
  border: 1px solid var(--sand-light);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.exercise-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--sand-dark);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

/* Note/Warning boxes */
.note-box {
  background: rgba(6, 182, 212, 0.05);
  border-right: 3px solid var(--cyan);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  margin: 1rem 0;
  font-size: 0.95rem;
  color: var(--navy-light);
}

.warning-box {
  background: rgba(194, 65, 12, 0.05);
  border-right: 3px solid var(--red);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  margin: 1rem 0;
  font-size: 0.95rem;
  color: var(--navy-light);
}

/* Lesson navigation */
.lesson-nav-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(0,0,0,0.06);
}

.lesson-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.5rem;
  background: var(--off-white);
  color: var(--navy);
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s;
  border: 1px solid rgba(0,0,0,0.06);
}

.lesson-nav-btn:hover {
  background: var(--cyan);
  color: var(--white);
  border-color: var(--cyan);
}

.lesson-nav-btn.next {
  margin-right: auto;
}

.lesson-nav-btn.prev {
  margin-left: auto;
}

/* Roadmap page */
.roadmap-timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 0;
}

.roadmap-timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  right: 24px;
  width: 3px;
  background: linear-gradient(180deg, var(--cyan) 0%, var(--sand) 100%);
  border-radius: 3px;
}

.roadmap-item {
  position: relative;
  padding-right: 70px;
  margin-bottom: 2.5rem;
}

.roadmap-dot {
  position: absolute;
  right: 12px;
  top: 0;
  width: 28px;
  height: 28px;
  background: var(--white);
  border: 3px solid var(--cyan);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--cyan);
  z-index: 2;
}

.roadmap-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.04);
}

.roadmap-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--navy);
}

.roadmap-card p {
  color: var(--stone-dark);
  font-size: 0.95rem;
  margin: 0;
}

/* Prompt library */
.prompt-category {
  margin-bottom: 3rem;
}

.prompt-category-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--cyan);
}

.prompt-category-header h2 {
  font-size: 1.3rem;
  margin: 0;
}

.prompt-category-header .icon {
  font-size: 1.5rem;
}

/* Worksheet cards */
.worksheet-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.04);
  transition: all 0.3s ease;
}

.worksheet-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--sand-light);
}

.worksheet-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--navy);
}

.worksheet-card .en-title {
  font-size: 0.85rem;
  color: var(--stone);
  margin-bottom: 1rem;
}

/* Download cards */
.download-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.04);
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
}

.download-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--cyan);
}

.download-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(6,182,212,0.1) 0%, rgba(6,182,212,0.05) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.download-info h3 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
  color: var(--navy);
}

.download-info p {
  font-size: 0.85rem;
  color: var(--stone);
  margin: 0;
}

/* Thank you page */
.thankyou-hero {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--gradient-hero);
  padding: 4rem 1.5rem;
}

.thankyou-hero h1 {
  color: var(--white);
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.thankyou-hero p {
  color: var(--stone);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 2rem;
}

.thankyou-steps {
  max-width: 600px;
  margin: 3rem auto;
}

.thankyou-step {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 1.5rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
  text-align: right;
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gradient-cyan);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.step-content h3 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.step-content p {
  color: var(--stone-dark);
  font-size: 0.9rem;
  margin: 0;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-visual { order: -1; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .lesson-layout { grid-template-columns: 1fr; }
  .sidebar, .lesson-sidebar { position: static; max-height: none; }
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-card.featured { transform: none; }
  .pricing-card.featured:hover { transform: translateY(-6px); }
  .pain-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-desktop { display: none; }
  .mobile-toggle { display: block; }
  .hero-stats { gap: 1.5rem; }
  .card-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .lesson-nav-bottom { flex-direction: column; }
  .lesson-nav-btn.next, .lesson-nav-btn.prev { margin: 0; width: 100%; justify-content: center; }
  .login-box { padding: 2rem 1.5rem; }
  .dashboard-header-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 1.75rem; }
  .hero-cta { flex-direction: column; }
  .btn { width: 100%; }
  .section { padding: 3rem 0; }
  .lesson-content { padding: 1.5rem; }
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--off-white); }
::-webkit-scrollbar-thumb { background: var(--stone-light); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--stone); }

/* Selection */
::selection {
  background: rgba(6, 182, 212, 0.2);
  color: var(--navy);
}

/* Utility */
.text-center { text-align: center; }
.text-cyan { color: var(--cyan); }
.text-sand { color: var(--sand); }
.text-stone { color: var(--stone); }
.text-white { color: var(--white); }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.hidden { display: none; }

/* Animations */
.fade-in {
  animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }


/* Final launch polish: logo, visuals, Memberstack-ready layout */
.logo-img{width:132px;max-width:132px;max-height:40x;height:auto;object-fit:contain;display:block;filter:drop-shadow(0 8px 18px rgba(0,0,0,.22));}
.logo-text{font-size:.95rem;}
@media(max-width:640px){.logo-img{width:132px;max-width:132px;}.logo-text{display:none}.header-inner{padding:0 1rem}.nav-desktop{display:none}}
.visual-card,.lesson-visual,.module-cover-card{border-radius:var(--radius-lg);overflow:hidden;margin:1.5rem 0;background:var(--navy);border:1px solid rgba(212,165,116,.22);box-shadow:var(--shadow-md)}
.visual-card img,.lesson-visual img,.module-cover-card img{width:100%;height:auto;display:block;object-fit:cover}
.visual-caption{font-size:.85rem;color:var(--stone-dark);background:var(--off-white);padding:.75rem 1rem;border-top:1px solid rgba(0,0,0,.04)}
.lesson-content .visual-placeholder{display:none!important;}
.lesson-content{font-size:1.03rem;}
.lesson-content .exercise-box,.exercise-box{background:linear-gradient(135deg,rgba(212,165,116,.11),rgba(212,165,116,.04));border:1px solid var(--sand-light);border-radius:var(--radius-lg);padding:1.25rem;margin:1.5rem 0}
.exercise-label{font-weight:800;color:var(--sand-dark);margin-bottom:.75rem}
.note-box{background:linear-gradient(135deg,rgba(212,165,116,.12),rgba(255,255,255,.5));border:1px solid var(--sand-light);border-radius:var(--radius-md);padding:1rem 1.25rem}
.prompt-block, pre{direction:ltr;text-align:left;background:#0b0b0b!important;color:#f4efe7!important;border-radius:var(--radius-md);padding:1rem;overflow:auto;border:1px solid rgba(212,165,116,.25)}
.checkout-placeholder{font-size:.82rem;color:var(--stone-dark);margin-top:.75rem;text-align:center}
.full-access-pill{display:inline-flex;align-items:center;gap:.4rem;background:rgba(212,165,116,.12);color:var(--sand-dark);border:1px solid var(--sand-light);border-radius:999px;padding:.35rem .9rem;font-weight:700;font-size:.85rem}
.resource-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:1rem;margin-top:1.5rem}
.resource-card{background:var(--white);border:1px solid rgba(0,0,0,.06);border-radius:var(--radius-lg);padding:1.4rem;box-shadow:var(--shadow-sm);text-decoration:none;color:inherit;transition:.25s}
.resource-card:hover{transform:translateY(-3px);box-shadow:var(--shadow-lg);border-color:var(--cyan)}
.resource-card h3{font-size:1.05rem;margin-bottom:.5rem;color:var(--navy)}
.resource-card p{font-size:.9rem;color:var(--stone-dark)}
.protected-note{display:none;}

/* ======================================================================
   RESPONSIVE READING EXPERIENCE FIX — Desktop / iPad / Mobile
   This block intentionally uses !important because many lesson pages have
   inline page-level styles generated during export.
   ====================================================================== */
html,
body {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: hidden !important;
}

.site-header {
  width: 100% !important;
}

.header-inner {
  width: min(100% - 32px, 1280px) !important;
  max-width: 1280px !important;
  padding-inline: 0 !important;
}

.logo-img {
  width: 250px !important;
  max-width: 250px !important;
  max-height: 100px !important;
  height: auto !important;
  object-fit: contain !important;
}

.lesson-page,
.dashboard-page,
.module-page {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: hidden !important;
}

.lesson-layout {
  width: min(100% - 32px, 1280px) !important;
  max-width: 1280px !important;
  margin-inline: auto !important;
  padding: 1.5rem 0 4rem !important;
  display: grid !important;
  grid-template-columns: minmax(250px, 310px) minmax(0, 1fr) !important;
  gap: 1.5rem !important;
  align-items: start !important;
  overflow: visible !important;
}

.lesson-sidebar {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 310px !important;
  padding: 1.15rem !important;
  top: 88px !important;
  overflow-x: hidden !important;
}

.lesson-content {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  padding: clamp(1.25rem, 2vw, 2.25rem) !important;
  overflow-x: hidden !important;
  font-size: clamp(0.98rem, 1vw, 1.08rem) !important;
  line-height: 1.9 !important;
}

.lesson-content h1 {
  font-size: clamp(1.45rem, 2.5vw, 2rem) !important;
  overflow-wrap: anywhere !important;
}

.lesson-content h2 {
  font-size: clamp(1.18rem, 2vw, 1.55rem) !important;
  max-width: 100% !important;
  display: inline-block !important;
  overflow-wrap: anywhere !important;
}

.lesson-content h3 {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem) !important;
  overflow-wrap: anywhere !important;
}

.lesson-content p,
.lesson-content li,
.lesson-content blockquote,
.lesson-content td,
.lesson-content th {
  max-width: 100% !important;
  overflow-wrap: break-word !important;
  word-break: normal !important;
}

.lesson-content img,
.lesson-content svg,
.visual-card img,
.lesson-visual img,
.module-cover-card img {
  max-width: 100% !important;
  height: auto !important;
}

.lesson-content table {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: auto !important;
  white-space: nowrap !important;
}

.lesson-content pre,
.lesson-content code,
.prompt-content,
.prompt-block,
pre {
  max-width: 100% !important;
  overflow-x: auto !important;
  white-space: pre-wrap !important;
  word-break: break-word !important;
}

.lesson-meta {
  flex-wrap: wrap !important;
  gap: .75rem 1rem !important;
}

.lesson-nav-bottom {
  flex-wrap: wrap !important;
}

/* Tablet: keep reading comfortable and place content before long sidebar */
@media (max-width: 1100px) {
  .nav-desktop {
    display: none !important;
  }

  .mobile-toggle {
    display: block !important;
  }

  .lesson-layout {
    display: flex !important;
    flex-direction: column !important;
    width: min(100% - 28px, 860px) !important;
    padding-top: 1.25rem !important;
  }

  .lesson-content {
    order: 1 !important;
    padding: clamp(1.15rem, 3vw, 1.8rem) !important;
  }

  .lesson-sidebar {
    order: 2 !important;
    position: static !important;
    max-width: 100% !important;
    max-height: 360px !important;
    overflow-y: auto !important;
    margin-top: 1rem !important;
  }
}

/* Mobile: no horizontal scroll, smaller header/logo, easy reading */
@media (max-width: 640px) {
  .header-inner {
    height: 64px !important;
    width: min(100% - 22px, 100%) !important;
  }

  .site-header {
    min-height: 64px !important;
  }

  .logo-img {
    width: 124px !important;
    max-width: 124px !important;
    max-height: 46px !important;
  }

  .lesson-page,
  .dashboard-page {
    padding-top: 64px !important;
  }

  .lesson-layout {
    width: min(100% - 20px, 100%) !important;
    padding: 1rem 0 3rem !important;
    gap: 1rem !important;
  }

  .lesson-content {
    border-radius: 14px !important;
    padding: 1rem !important;
    font-size: .98rem !important;
  }

  .lesson-content h1 {
    font-size: 1.35rem !important;
  }

  .lesson-content h2 {
    font-size: 1.15rem !important;
  }

  .lesson-sidebar {
    border-radius: 14px !important;
    padding: 1rem !important;
    max-height: 300px !important;
  }

  .lesson-nav-bottom {
    flex-direction: column !important;
  }

  .lesson-nav-btn {
    width: 100% !important;
    justify-content: center !important;
  }

  .btn,
  .header-actions .btn {
    width: auto !important;
  }
}
/* Hero floating cards visibility fix */
.hero-visual{
  overflow: visible;
  padding: 1.25rem;
}

.hero-visual-inner{
  overflow: visible !important;
  max-width: 520px;
}

.hero-visual-card{
  z-index: 5;
  max-width: 230px;
  min-width: 170px;
  white-space: normal;
}

.hero-visual-card.card-1{
  top: 12%;
  left: 4%;
}

.hero-visual-card.card-2{
  bottom: 15%;
  right: 4%;
}

.hero-visual-card.card-3{
  top: 48%;
  right: 7%;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  text-align: center;
}

.footer-links h4 {
  margin-bottom: 8px;
  color: #ffffff;
  font-size: 20px;
}

.footer-links a {
  display: block;
  color: #9fb3c8;
  text-decoration: none;
  font-size: 17px;
  line-height: 1.6;
}

.footer-links a:hover {
  color: #d4a574;
}
/* ═══════════════════════════════════════════════════════════════
   PREMIUM POLISH LAYER — Added in upgrade pass
   Luxury fashion-tech: deep navy + sand gold + subtle cyan
   Mobile-first, lightweight, zero dependencies.
   ═══════════════════════════════════════════════════════════════ */

/* ---------- Global safety & rhythm ---------- */
img, svg, video, canvas { max-width: 100%; height: auto; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
:focus-visible { outline: 2px solid var(--sand); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--sand); color: var(--navy); }

/* Prevent horizontal scroll surprises */
.container, .header-inner, .dashboard-grid, .module-layout, .lesson-layout { max-width: 100%; }
pre, code { white-space: pre-wrap; word-break: break-word; }
.lesson-content pre, .module-content pre {
  background: #0b0f1e; color: #e2e8f0;
  padding: 1.1rem 1.25rem; border-radius: var(--radius-md);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9rem; line-height: 1.7; overflow-x: auto;
  border: 1px solid rgba(212, 165, 116, 0.18);
}
.lesson-content code, .module-content code { font-size: 0.92em; }

/* Responsive tables */
.lesson-content table, .module-content table { display: block; overflow-x: auto; }
@media (min-width: 720px) {
  .lesson-content table, .module-content table { display: table; }
}

/* ---------- Logo sizing control ---------- */
.logo-img { height: 36px; width: auto; max-height: 40px; object-fit: contain; }
@media (max-width: 520px) {
  .logo-img { height: 30px; }
  .logo-text { font-size: 0.95rem; }
}

/* ---------- Buttons polish ---------- */
.btn { letter-spacing: 0.01em; transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { box-shadow: 0 10px 30px -12px rgba(212, 165, 116, 0.55); }
.btn-primary:hover { box-shadow: 0 14px 36px -10px rgba(212, 165, 116, 0.7); }

/* CTA shimmer */
@keyframes aifa-cta-pulse {
  0%, 100% { box-shadow: 0 10px 30px -12px rgba(212,165,116,0.55); }
  50%      { box-shadow: 0 14px 38px -8px rgba(212,165,116,0.85); }
}
.btn-primary.cta-hero, .pricing-card .btn-primary {
  animation: aifa-cta-pulse 3.2s ease-in-out infinite;
}

/* ---------- Welcome banner / dashboard ---------- */
.welcome-banner { border: 1px solid rgba(212,165,116,0.18); }
.welcome-banner h2 { letter-spacing: -0.01em; }
.welcome-banner .continue-btn {
  background: linear-gradient(135deg, var(--sand) 0%, var(--sand-dark) 100%);
  color: #1a1208; border: none;
}
.welcome-banner .continue-btn:hover { filter: brightness(1.05); }

.progress-summary {
  margin-top: 0.75rem; color: var(--stone-light); font-size: 0.95rem;
}
.progress-summary strong { color: var(--sand-light); }

/* Module card — complete state */
.module-progress-card.is-complete {
  border-color: rgba(212,165,116,0.55);
  background: linear-gradient(135deg, rgba(212,165,116,0.06), rgba(255,255,255,1));
}
.module-progress-card.is-complete .module-progress-num {
  background: var(--sand); color: #1a1208;
}
.module-progress-card.is-complete .module-progress-fill { background: linear-gradient(135deg, var(--sand), var(--sand-dark)); }

/* Quick access cards */
.quick-card { position: relative; overflow: hidden; }
.quick-card::after {
  content: ''; position: absolute; inset: auto 0 0 0; height: 3px;
  background: linear-gradient(90deg, transparent, var(--sand), transparent);
  transform: scaleX(0); transform-origin: center; transition: transform .35s ease;
}
.quick-card:hover::after { transform: scaleX(1); }

/* ---------- Lesson page polish ---------- */
.lesson-content { max-width: 100%; }
.lesson-content h1 { letter-spacing: -0.01em; }
.lesson-content blockquote { box-shadow: inset 0 0 0 1px rgba(0,0,0,0.03); }
.lesson-content figure.lesson-visual {
  margin: 1.5rem 0; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--off-white); border: 1px solid rgba(0,0,0,0.04);
}
.lesson-content figure.lesson-visual img { display: block; width: 100%; }
.lesson-content figcaption.visual-caption {
  padding: 0.75rem 1rem; font-size: 0.85rem; color: var(--stone-dark);
  background: rgba(212,165,116,0.06); text-align: center;
}

/* Exercise / note / checklist boxes */
.exercise-box, .note-box, .checklist-box {
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.4rem;
  margin: 1.4rem 0;
  position: relative;
}
.exercise-box {
  background: linear-gradient(135deg, rgba(212,165,116,0.10), rgba(212,165,116,0.03));
  border: 1px solid rgba(212,165,116,0.28);
}
.exercise-label {
  display: inline-block; font-weight: 700; color: var(--sand-dark);
  background: rgba(212,165,116,0.15); padding: 0.25rem 0.7rem; border-radius: 999px;
  font-size: 0.78rem; margin-bottom: 0.6rem;
}
.note-box {
  background: linear-gradient(135deg, rgba(15,23,42,0.04), rgba(15,23,42,0.02));
  border: 1px solid rgba(15,23,42,0.08);
}
.note-box strong { color: var(--navy); }
.checklist-box { background: rgba(6,182,212,0.05); border: 1px solid rgba(6,182,212,0.18); }

/* Prev/next nav buttons gold accent on hover */
.lesson-nav-btn:hover { background: var(--sand); color: #1a1208; border-color: var(--sand); }

/* Mark-as-complete control */
.mark-complete-wrap {
  margin: 2.5rem 0 0; padding: 1.4rem; border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(212,165,116,0.08), rgba(15,23,42,0.03));
  border: 1px dashed rgba(212,165,116,0.45);
  text-align: center;
}
.mark-complete-btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.85rem 1.6rem; border-radius: 999px; cursor: pointer;
  font: 600 0.95rem var(--font-arabic);
  background: var(--navy); color: var(--off-white);
  border: 1px solid rgba(255,255,255,0.08);
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.mark-complete-btn:hover { transform: translateY(-1px); }
.mark-complete-btn .mc-icon {
  width: 22px; height: 22px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.08); font-size: 0.85rem;
}
.mark-complete-btn.is-done { background: linear-gradient(135deg, var(--sand), var(--sand-dark)); color: #1a1208; border-color: transparent; }
.mark-complete-btn.is-done .mc-icon { background: rgba(0,0,0,0.15); color: #1a1208; }
.mark-complete-hint { margin: 0.7rem 0 0; font-size: 0.78rem; color: var(--stone); }

/* Reading progress bar */
.reading-progress-bar {
  position: fixed; top: 0; left: 0; right: 0; height: 3px;
  background: transparent; z-index: 1100; pointer-events: none;
}
.reading-progress-bar span {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--sand), var(--cyan));
  transition: width .12s linear;
}

/* Module lesson list — completed state */
.lesson-card.is-complete { border-color: rgba(212,165,116,0.45); background: linear-gradient(135deg, rgba(212,165,116,0.07), var(--off-white)); }
.lesson-card.is-complete .lesson-card-num { background: var(--sand); color: #1a1208; }
.module-nav a.is-complete { color: var(--sand-dark); }
.module-nav a.is-complete::before { content: '✓ '; color: var(--sand); font-weight: 700; }

/* ---------- Login polish ---------- */
.login-box { border: 1px solid rgba(212,165,116,0.18); }
.login-box::before {
  content: ''; display: block; height: 3px; margin: -3rem -3rem 2rem;
  background: linear-gradient(90deg, var(--sand), var(--cyan), var(--sand));
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}
@media (max-width: 520px) {
  .login-box::before { margin: -2rem -1.25rem 1.5rem; }
}

/* ---------- Footer polish ---------- */
.site-footer { padding: 2.5rem 0 1.5rem; }
.site-footer .footer-bottom { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.site-footer .footer-bottom p { margin: 0; }

/* ---------- Mobile spacing pass ---------- */
@media (max-width: 768px) {
  .lesson-content, .module-content { padding: 1.5rem 1.1rem; }
  .lesson-content h1 { font-size: 1.5rem; }
  .lesson-content h2 { font-size: 1.2rem; }
  .lesson-meta { gap: 0.9rem; flex-wrap: wrap; font-size: 0.78rem; }
  .lesson-nav-bottom { flex-direction: column; }
  .lesson-nav-btn { width: 100%; justify-content: center; }
  .dashboard-header-inner { flex-direction: column; align-items: flex-start; gap: 1.25rem; }
  .welcome-banner { padding: 1.5rem; }
  .welcome-banner h2 { font-size: 1.25rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* Lesson sidebar collapsible on mobile */
@media (max-width: 1024px) {
  .lesson-sidebar, .module-sidebar { position: static; max-height: none; }
  .lesson-sidebar-title, .module-sidebar-title { cursor: default; }
}

/* ---------- Hover transitions sweep ---------- */
a, button, .card, .quick-card, .module-progress-card, .lesson-card { transition: all .25s ease; }

/* Subtle scroll-in fade utility used by main.js */
.fade-in { animation: aifa-fade-in .6s ease both; }
@keyframes aifa-fade-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* Print: hide nav + progress bar when printing lessons/worksheets */
@media print {
  .site-header, .lesson-sidebar, .module-sidebar, .reading-progress-bar,
  .mark-complete-wrap, .lesson-nav-bottom, .site-footer { display: none !important; }
  .lesson-content, .module-content { box-shadow: none; border: none; padding: 0; }
}
