@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Noto+Sans+Arabic:wght@300;400;500;600;700;800&display=swap');

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

:root {
  --primary-h: 222; --primary-s: 47%; --primary-l: 11%;
  --accent-h: 217; --accent-s: 91%; --accent-l: 60%;
  --bg-h: 0; --bg-s: 0%; --bg-l: 100%;
  --fg-h: 222; --fg-s: 47%; --fg-l: 11%;
  --radius: 0.5rem;
  --primary: hsl(var(--primary-h), var(--primary-s), var(--primary-l));
  --primary-fg: hsl(var(--bg-h), var(--bg-s), var(--bg-l));
  --accent: hsl(var(--accent-h), var(--accent-s), var(--accent-l));
  --accent-fg: #fff;
  --background: hsl(var(--bg-h), var(--bg-s), var(--bg-l));
  --foreground: hsl(var(--fg-h), var(--fg-s), var(--fg-l));
  --muted: hsl(var(--fg-h), 10%, 94%);
  --muted-fg: hsl(var(--fg-h), 10%, 45%);
  --border: hsl(var(--fg-h), 10%, 90%);
  --card: #fff;
  --card-fg: var(--foreground);
  --shadow-sm: 0 1px 2px rgba(0,0,0,.05);
  --shadow: 0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -2px rgba(0,0,0,.05);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,.1), 0 10px 10px -5px rgba(0,0,0,.04);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

[dir="rtl"] body { font-family: 'Noto Sans Arabic', 'Inter', sans-serif; }

img, video, iframe { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font: inherit; }
input, select, textarea { font: inherit; }
ul, ol { list-style: none; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 640px) { .container { padding: 0 1.5rem; } }

/* ===== HEADER ===== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.95); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .2s;
}
.site-header.scrolled { box-shadow: var(--shadow); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; max-width: 1200px; margin: 0 auto; padding: 0 1rem;
}
.header-logo { display: flex; align-items: center; gap: .75rem; font-weight: 700; font-size: 1.125rem; color: var(--primary); }
.header-logo img { height: 48px; width: auto; object-fit: contain; }
.header-logo-icon { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; background: var(--primary); color: var(--primary-fg); border-radius: .5rem; padding: .375rem; }
.header-apply-btn { display: none; }
@media (min-width: 768px) { .header-apply-btn { display: inline-flex; } }
.lang-switcher-label { display: none; }
@media (min-width: 768px) { .lang-switcher-label { display: inline; } }
.mobile-apply-btn { width: 100%; margin-top: 1rem; }
.header-nav { display: none; align-items: center; gap: .25rem; }
@media (min-width: 768px) { .header-nav { display: flex; } }
.header-nav a {
  padding: .5rem .75rem; border-radius: var(--radius); font-size: .875rem; font-weight: 500;
  color: var(--muted-fg); transition: color .2s, background .2s;
}
.header-nav a:hover { color: var(--foreground); background: var(--muted); }
.header-actions { display: flex; align-items: center; gap: .5rem; }

.mobile-menu-btn {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border: none; background: none;
  color: var(--foreground); border-radius: var(--radius);
}
@media (min-width: 768px) { .mobile-menu-btn { display: none; } }
.mobile-menu {
  display: none; position: absolute; top: 64px; left: 0; right: 0;
  background: var(--card); border-bottom: 1px solid var(--border);
  padding: 1rem; box-shadow: var(--shadow-lg);
}
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: block; padding: .75rem 1rem; border-radius: var(--radius);
  font-weight: 500; color: var(--muted-fg);
}
.mobile-menu a:hover { background: var(--muted); color: var(--foreground); }

/* ===== LANGUAGE SWITCHER ===== */
.lang-switcher { position: relative; }
.lang-switcher-btn {
  display: flex; align-items: center; gap: .375rem;
  padding: .375rem .5rem; border: 1px solid var(--border);
  border-radius: var(--radius); background: var(--card);
  font-size: .8125rem; font-weight: 500; color: var(--foreground);
}
@media (min-width: 768px) { .lang-switcher-btn { padding: .375rem .75rem; } }
.lang-switcher-btn:hover { background: var(--muted); }
.lang-switcher-dropdown {
  display: none; position: absolute; top: calc(100% + 4px);
  right: 0; min-width: 140px; background: var(--card);
  border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); overflow: hidden; z-index: 200;
}
[dir="rtl"] .lang-switcher-dropdown { right: auto; left: 0; }
.lang-switcher-dropdown.open { display: block; }
.lang-switcher-dropdown button {
  display: block; width: 100%; padding: .5rem .75rem;
  text-align: left; border: none; background: none;
  font-size: .8125rem; color: var(--foreground);
}
[dir="rtl"] .lang-switcher-dropdown button { text-align: right; }
.lang-switcher-dropdown button:hover { background: var(--muted); }
.lang-switcher-dropdown button.active { background: hsl(var(--primary-h), var(--primary-s), 95%); color: var(--primary); font-weight: 600; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .625rem 1.25rem; border: none; border-radius: var(--radius);
  font-size: .875rem; font-weight: 600; line-height: 1.5;
  transition: all .2s; white-space: nowrap;
}
.btn-primary { background: var(--primary); color: var(--primary-fg); }
.btn-primary:hover { opacity: .9; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { opacity: .9; }
.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--foreground); }
.btn-outline:hover { background: var(--muted); }
.btn-ghost { background: transparent; color: var(--foreground); }
.btn-ghost:hover { background: var(--muted); }
.btn-lg { padding: .75rem 2rem; font-size: 1rem; }
.btn-sm { padding: .375rem .75rem; font-size: .8125rem; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ===== HERO ===== */
.hero-section {
  position: relative; min-height: 90vh; display: flex; align-items: center; overflow: hidden;
  background: linear-gradient(135deg, hsla(var(--primary-h), var(--primary-s), var(--primary-l), .08), var(--background), hsla(var(--primary-h), var(--primary-s), var(--primary-l), .04));
}
.hero-section::before {
  content: ''; position: absolute; top: 80px; right: -80px;
  width: 384px; height: 384px; border-radius: 50%;
  background: hsla(var(--primary-h), var(--primary-s), var(--primary-l), .15);
  filter: blur(60px); pointer-events: none;
}
.hero-section::after {
  content: ''; position: absolute; bottom: 80px; left: -80px;
  width: 320px; height: 320px; border-radius: 50%;
  background: hsla(var(--primary-h), var(--primary-s), var(--primary-l), .08);
  filter: blur(60px); pointer-events: none;
}
.hero-grid {
  display: grid; grid-template-columns: 1fr; gap: 3rem;
  padding: 5rem 0; position: relative; z-index: 1;
}
@media (min-width: 1024px) { .hero-grid { grid-template-columns: 1fr 1fr; align-items: center; } }
.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .5rem 1rem; border-radius: 9999px;
  background: hsla(var(--primary-h), var(--primary-s), var(--primary-l), .1);
  color: var(--primary); font-size: .875rem; font-weight: 500;
  margin-bottom: 1.5rem;
}
.hero-badge-dot { position: relative; width: 8px; height: 8px; }
.hero-badge-dot::before {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  background: var(--primary); animation: ping 1.5s infinite;
}
.hero-badge-dot::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  background: var(--primary);
}
@keyframes ping { 75%, 100% { transform: scale(2); opacity: 0; } }
.hero-title {
  font-size: 2.25rem; font-weight: 800; line-height: 1.1;
  margin-bottom: 1.5rem; letter-spacing: -.025em;
}
@media (min-width: 768px) { .hero-title { font-size: 3rem; } }
@media (min-width: 1024px) { .hero-title { font-size: 3.5rem; } }
.hero-subtitle { font-size: 1.125rem; color: var(--muted-fg); margin-bottom: 2rem; max-width: 560px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2.5rem; }
.hero-features { display: flex; flex-direction: column; gap: .75rem; }
.hero-feature { display: flex; align-items: center; gap: .75rem; color: var(--muted-fg); }
.hero-feature svg { width: 20px; height: 20px; color: var(--primary); flex-shrink: 0; }
.hero-media { display: none; position: relative; }
@media (min-width: 1024px) { .hero-media { display: block; } }
.hero-video-wrap {
  border-radius: 1rem; overflow: hidden;
  box-shadow: var(--shadow-xl); aspect-ratio: 4/3;
}
.hero-video-wrap iframe { width: 100%; height: 100%; border: none; }
.hero-video-thumb {
  width: 100%; height: 100%; position: relative; cursor: pointer;
  background: linear-gradient(135deg, hsla(var(--primary-h),var(--primary-s),var(--primary-l),.15), hsla(var(--primary-h),var(--primary-s),var(--primary-l),.05));
}
.hero-video-thumb img { width: 100%; height: 100%; object-fit: cover; }
.hero-video-overlay {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.3); transition: background .2s;
}
.hero-video-thumb:hover .hero-video-overlay { background: rgba(0,0,0,.4); }
.hero-play-btn {
  width: 80px; height: 80px; border-radius: 50%; border: none;
  background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg); transition: transform .2s;
}
.hero-video-thumb:hover .hero-play-btn { transform: scale(1.1); }
.hero-stat-card {
  position: absolute; background: var(--card); border-radius: .75rem;
  padding: 1rem; border: 1px solid var(--border); box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: .75rem;
}
.hero-stat-card:first-of-type { bottom: -24px; left: -24px; }
.hero-stat-card:last-of-type { top: -24px; right: -24px; }
.hero-stat-icon {
  width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; font-weight: 800;
}
.hero-stat-icon.primary { background: hsla(var(--primary-h),var(--primary-s),var(--primary-l),.1); color: var(--primary); }
.hero-stat-icon.green { background: rgba(34,197,94,.1); color: #16a34a; }
.hero-stat-label { font-weight: 600; font-size: .875rem; }
.hero-stat-sublabel { font-size: .75rem; color: var(--muted-fg); }
.hero-placeholder {
  aspect-ratio: 4/3; border-radius: 1rem;
  background: linear-gradient(135deg, hsla(var(--primary-h),var(--primary-s),var(--primary-l),.15), hsla(var(--primary-h),var(--primary-s),var(--primary-l),.05));
  display: flex; align-items: center; justify-content: center;
}

/* ===== SECTION COMMON ===== */
.section { padding: 5rem 0; }
.section-alt { background: var(--muted); }
.section-title {
  font-size: 1.875rem; font-weight: 800; text-align: center;
  margin-bottom: .75rem; letter-spacing: -.025em;
}
.section-subtitle { text-align: center; color: var(--muted-fg); margin-bottom: 3rem; max-width: 600px; margin-left: auto; margin-right: auto; }

/* ===== TRUST BADGES ===== */
.trust-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
@media (min-width: 640px) { .trust-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .trust-grid { grid-template-columns: repeat(4, 1fr); } }
.trust-badge-card {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 2rem 1rem; background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); transition: box-shadow .2s, transform .2s;
}
.trust-badge-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.trust-badge-icon {
  width: 48px; height: 48px; margin-bottom: 1rem; border-radius: .5rem;
  background: hsla(var(--primary-h),var(--primary-s),var(--primary-l),.1);
  display: flex; align-items: center; justify-content: center; color: var(--primary);
}
.trust-badge-icon img { width: 32px; height: 32px; object-fit: contain; }
.trust-badge-title { font-weight: 600; font-size: .875rem; }

/* ===== PROGRAM FINDER ===== */
.program-filters {
  display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 2rem;
  padding: 1.5rem; background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius);
}
.program-filters input, .program-filters select {
  padding: .625rem .875rem; border: 1px solid var(--border);
  border-radius: var(--radius); background: var(--background);
  color: var(--foreground); font-size: .875rem; flex: 1; min-width: 180px;
}
.program-filters input:focus, .program-filters select:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 2px hsla(var(--primary-h),var(--primary-s),var(--primary-l),.15);
}
.programs-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 640px) { .programs-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .programs-grid { grid-template-columns: repeat(3, 1fr); } }
.program-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: box-shadow .2s, transform .2s;
}
.program-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.program-card-body { padding: 1.5rem; }
.program-card-name { font-weight: 700; font-size: 1rem; margin-bottom: .25rem; }
.program-card-uni { font-size: .8125rem; color: var(--muted-fg); margin-bottom: .75rem; }
.program-card-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.program-tag {
  display: inline-flex; padding: .25rem .625rem; border-radius: 9999px;
  font-size: .75rem; font-weight: 500;
  background: hsla(var(--primary-h),var(--primary-s),var(--primary-l),.1);
  color: var(--primary);
}
.program-tag.lang-tag { background: hsla(var(--accent-h),var(--accent-s),var(--accent-l),.1); color: var(--accent); }
.program-card-pricing { display: flex; align-items: baseline; gap: .5rem; margin-bottom: 1rem; }
.program-price-original { font-size: .875rem; color: var(--muted-fg); text-decoration: line-through; }
.program-price-current { font-size: 1.25rem; font-weight: 700; color: var(--primary); }
.program-card-footer { padding: 0 1.5rem 1.5rem; }
.programs-empty { text-align: center; padding: 3rem; color: var(--muted-fg); grid-column: 1 / -1; }

/* ===== STEPS ===== */
.steps-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; position: relative; }
@media (min-width: 768px) {
  .steps-grid { grid-template-columns: repeat(3, 1fr); }
  .steps-grid::before { content: ''; position: absolute; top: 40px; left: 0; right: 0; height: 2px; background: var(--border); }
}
.step-card { text-align: center; position: relative; }
.step-icon-wrap { position: relative; z-index: 1; margin: 0 auto 1.5rem; width: 80px; height: 80px; }
.step-icon-circle {
  width: 80px; height: 80px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,.1);
}
.step-icon-circle svg { width: 40px; height: 40px; }
.step-number {
  position: absolute; top: -8px; right: -8px;
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .875rem; font-weight: 700;
  background: var(--card); border: 2px solid var(--primary);
  color: var(--primary);
}
.step-content { background: var(--card); border-radius: .75rem; padding: 1.5rem; border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.step-title { font-weight: 700; font-size: 1.125rem; margin-bottom: .75rem; }
.step-desc { font-size: .875rem; color: var(--muted-fg); }

/* ===== TESTIMONIALS ===== */
.testimonials-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 640px) { .testimonials-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .testimonials-grid { grid-template-columns: repeat(3, 1fr); } }
.testimonial-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem;
  transition: box-shadow .2s;
}
.testimonial-card:hover { box-shadow: var(--shadow-lg); }
.testimonial-header { display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; }
.testimonial-photo {
  width: 48px; height: 48px; border-radius: 50%; object-fit: cover;
  background: var(--muted);
}
.testimonial-name { font-weight: 600; font-size: .9375rem; }
.testimonial-meta { font-size: .75rem; color: var(--muted-fg); }
.testimonial-stars { color: #f59e0b; margin-bottom: .75rem; font-size: 1rem; letter-spacing: 2px; }
.testimonial-content { font-size: .875rem; color: var(--muted-fg); line-height: 1.7; }

/* ===== FAQ ===== */
.faq-list { max-width: 768px; margin: 0 auto; display: flex; flex-direction: column; gap: .5rem; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--card); }
.faq-question {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1rem 1.25rem; width: 100%; border: none; background: none;
  text-align: left; font-weight: 600; font-size: .9375rem; color: var(--foreground);
  gap: 1rem;
}
[dir="rtl"] .faq-question { text-align: right; }
.faq-question:hover { background: var(--muted); }
.faq-chevron { width: 20px; height: 20px; flex-shrink: 0; transition: transform .2s; color: var(--muted-fg); }
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-answer {
  display: none; padding: 0 1.25rem 1rem;
  font-size: .875rem; color: var(--muted-fg); line-height: 1.7;
}
.faq-item.open .faq-answer { display: block; }

/* ===== CONTACT ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; max-width: 1024px; margin: 0 auto; }
@media (max-width: 768px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-form-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow-sm);
}
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: .375rem; }
.form-label { font-size: .875rem; font-weight: 500; }
.form-input {
  padding: .625rem .875rem; border: 1px solid var(--border);
  border-radius: var(--radius); background: var(--background);
  color: var(--foreground); font-size: .875rem;
  transition: border-color .2s, box-shadow .2s;
}
.form-input:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 2px hsla(var(--primary-h),var(--primary-s),var(--primary-l),.15);
}
textarea.form-input { min-height: 120px; resize: vertical; }
.contact-info-list { display: flex; flex-direction: column; gap: 1rem; }
.contact-info-card {
  display: flex; align-items: center; gap: 1rem; padding: 1rem;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); transition: box-shadow .2s, transform .2s;
}
.contact-info-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.contact-info-icon {
  width: 48px; height: 48px; border-radius: .5rem; flex-shrink: 0;
  background: hsla(var(--primary-h),var(--primary-s),var(--primary-l),.1);
  color: var(--primary); display: flex; align-items: center; justify-content: center;
}
.contact-info-label { font-size: .875rem; color: var(--muted-fg); margin: 0; }
.contact-info-value { font-weight: 500; margin: .125rem 0 0; }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--card); border-top: 1px solid var(--border);
  padding: 3rem 0 1.5rem;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr; text-align: center; } }
.footer-brand-col {}
@media (max-width: 768px) { .footer-brand-col { display: flex; flex-direction: column; align-items: center; } }
.footer-brand { display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; }
.footer-logo-img { height: 60px; width: auto; object-fit: contain; }
.footer-logo-fallback { display: flex; align-items: center; gap: .5rem; }
.footer-logo-icon { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; background: var(--primary); color: var(--primary-fg); border-radius: .5rem; padding: .375rem; }
.footer-logo-icon svg { width: 20px; height: 20px; }
.footer-logo-text { font-weight: 600; font-size: 1.125rem; }
.footer-desc { color: var(--muted-fg); max-width: 28rem; margin-bottom: 1.5rem; font-size: .875rem; line-height: 1.6; }
.footer-social { display: flex; gap: .75rem; }
@media (max-width: 768px) { .footer-social { justify-content: center; } }
.footer-social a {
  width: 40px; height: 40px; border-radius: .5rem;
  background: var(--muted); display: flex;
  align-items: center; justify-content: center;
  transition: background .2s, transform .2s; color: var(--foreground);
}
.footer-social a:hover { transform: translateY(-2px); }
.footer-social svg { width: 20px; height: 20px; }
.footer-col-title { font-weight: 600; margin-bottom: 1rem; font-size: 1rem; }
.footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .5rem; }
.footer-links a { color: var(--muted-fg); transition: color .2s; font-size: .875rem; }
.footer-links a:hover { color: var(--foreground); }
.footer-contact-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .5rem; color: var(--muted-fg); font-size: .875rem; }
.footer-bottom { text-align: center; padding-top: 2rem; border-top: 1px solid var(--border); font-size: .8125rem; color: var(--muted-fg); }

/* ===== APPLICATION MODAL ===== */
.app-modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,.5); backdrop-filter: blur(4px);
  align-items: flex-start; justify-content: center;
  padding: 2rem 1rem; overflow-y: auto;
}
.app-modal-overlay.open { display: flex; }
.app-modal {
  background: var(--card); border-radius: .75rem; width: 100%;
  max-width: 720px; box-shadow: var(--shadow-xl); position: relative;
  margin: auto 0;
  animation: modalSlideIn .3s ease;
}
@keyframes modalSlideIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.app-modal-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--border);
}
.app-modal-header h2 { font-size: 1.25rem; font-weight: 700; }
.app-modal-close {
  width: 36px; height: 36px; border: none; background: none;
  border-radius: var(--radius); display: flex; align-items: center; justify-content: center;
  color: var(--muted-fg); font-size: 1.25rem;
}
.app-modal-close:hover { background: var(--muted); }
.app-modal-body { padding: 1.5rem; }

.app-progress { display: flex; align-items: center; margin-bottom: 2rem; gap: .25rem; }
.app-progress-step {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: .5rem;
  position: relative;
}
.app-progress-icon {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .875rem; font-weight: 700; border: 2px solid var(--border);
  background: var(--background); color: var(--muted-fg);
  transition: all .3s; z-index: 1;
}
.app-progress-step.active .app-progress-icon,
.app-progress-step.completed .app-progress-icon {
  border-color: var(--primary); background: var(--primary); color: var(--primary-fg);
}
.app-progress-label { font-size: .6875rem; font-weight: 500; color: var(--muted-fg); text-align: center; }
.app-progress-step.active .app-progress-label { color: var(--primary); font-weight: 600; }
.app-progress-bar { height: 2px; background: var(--border); margin-bottom: 2rem; border-radius: 1px; overflow: hidden; }
.app-progress-bar-fill { height: 100%; background: var(--primary); transition: width .3s; border-radius: 1px; }

.app-step { display: none; animation: fadeIn .3s; }
.app-step.active { display: block; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.app-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
@media (max-width: 640px) { .app-form-row { grid-template-columns: 1fr; } }
.app-form-row .form-group { margin-bottom: 0; }
.app-form-group { margin-bottom: 1rem; }

.country-code-select { display: flex; gap: .5rem; }
.country-code-select select { width: 140px; flex-shrink: 0; }
.country-code-select input { flex: 1; }

.program-select-list { display: flex; flex-direction: column; gap: .5rem; max-height: 360px; overflow-y: auto; }
.program-select-item {
  padding: 1rem; border: 2px solid var(--border); border-radius: var(--radius);
  cursor: pointer; transition: all .2s;
}
.program-select-item:hover { border-color: var(--primary); }
.program-select-item.selected { border-color: var(--primary); background: hsla(var(--primary-h),var(--primary-s),var(--primary-l),.05); }
.program-select-item .program-card-name { font-weight: 600; }

.doc-upload-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 640px) { .doc-upload-grid { grid-template-columns: 1fr; } }
.doc-upload-area {
  padding: 1.5rem; border: 2px dashed var(--border); border-radius: var(--radius);
  text-align: center; cursor: pointer; transition: all .2s; position: relative;
}
.doc-upload-area:hover { border-color: var(--primary); background: hsla(var(--primary-h),var(--primary-s),var(--primary-l),.03); }
.doc-upload-area.has-file { border-color: #16a34a; border-style: solid; background: rgba(34,197,94,.05); }
.doc-upload-area input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.doc-upload-icon { font-size: 1.5rem; margin-bottom: .5rem; color: var(--muted-fg); }
.doc-upload-label { font-weight: 600; font-size: .875rem; margin-bottom: .25rem; }
.doc-upload-hint { font-size: .75rem; color: var(--muted-fg); }
.doc-upload-file { font-size: .75rem; color: #16a34a; font-weight: 500; margin-top: .25rem; word-break: break-all; }

.review-section { margin-bottom: 1.5rem; }
.review-section h4 { font-weight: 700; font-size: .9375rem; margin-bottom: .75rem; padding-bottom: .5rem; border-bottom: 1px solid var(--border); }
.review-row { display: flex; justify-content: space-between; padding: .375rem 0; font-size: .875rem; }
.review-label { color: var(--muted-fg); }
.review-value { font-weight: 500; }

.app-modal-footer {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.25rem 1.5rem; border-top: 1px solid var(--border);
}

/* ===== SUCCESS MESSAGE ===== */
.success-overlay {
  display: none; position: fixed; inset: 0; z-index: 1100;
  background: rgba(0,0,0,.5); align-items: center; justify-content: center; padding: 2rem;
}
.success-overlay.open { display: flex; }
.success-card {
  background: var(--card); border-radius: .75rem; padding: 3rem;
  text-align: center; max-width: 420px; width: 100%;
  box-shadow: var(--shadow-xl); animation: modalSlideIn .3s;
}
.success-icon {
  width: 80px; height: 80px; border-radius: 50%; margin: 0 auto 1.5rem;
  background: rgba(34,197,94,.1); display: flex; align-items: center; justify-content: center;
  color: #16a34a; font-size: 2rem;
}
.success-card h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: .5rem; }
.success-card p { color: var(--muted-fg); margin-bottom: 1.5rem; }

/* ===== TOAST ===== */
.toast-container {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 2000;
  display: flex; flex-direction: column; gap: .5rem;
}
[dir="rtl"] .toast-container { right: auto; left: 1.5rem; }
.toast {
  padding: .875rem 1.25rem; border-radius: var(--radius);
  background: var(--foreground); color: var(--background);
  font-size: .875rem; font-weight: 500;
  box-shadow: var(--shadow-lg); animation: toastIn .3s;
  max-width: 360px;
}
.toast.error { background: #dc2626; color: #fff; }
.toast.success { background: #16a34a; color: #fff; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* ===== LOADING ===== */
.loading-spinner {
  display: flex; align-items: center; justify-content: center;
  padding: 4rem; color: var(--muted-fg);
}
.spinner {
  width: 32px; height: 32px; border: 3px solid var(--border);
  border-top-color: var(--primary); border-radius: 50%;
  animation: spin .6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== EXTRA SMALL SCREENS (< 400px) ===== */
@media (max-width: 400px) {
  html { overflow-x: hidden; }
  body { overflow-x: hidden; min-width: 0; }
  .container { padding: 0 .75rem; }
  .header-inner { padding: 0 .5rem; gap: .25rem; }
  .header-logo { gap: .5rem; font-size: 1rem; }
  .header-logo img { height: 36px; }
  .header-logo-icon { width: 28px; height: 28px; padding: .25rem; }
  .header-actions { gap: .25rem; }
  .mobile-menu-btn { width: 36px; height: 36px; }
  .lang-switcher-btn { padding: .25rem .375rem; font-size: .75rem; }
  .hero-grid { padding: 3rem 0; }
  .hero-title { font-size: 1.75rem; }
  .hero-subtitle { font-size: 1rem; }
  .hero-badge { font-size: .75rem; padding: .375rem .75rem; }
  .hero-ctas .btn { font-size: .8125rem; padding: .5rem 1rem; }
  .section { padding: 3rem 0; }
  .section-title { font-size: 1.5rem; }
  .section-subtitle { font-size: .875rem; margin-bottom: 2rem; }
  .trust-grid { gap: .75rem; }
  .trust-badge-card { padding: 1.25rem .75rem; }
  .trust-badge-icon { width: 40px; height: 40px; }
  .trust-badge-title { font-size: .8125rem; }
  .program-filters { padding: 1rem; gap: .5rem; }
  .program-filters input, .program-filters select { min-width: 0; width: 100%; flex: unset; }
  .program-card-body { padding: 1rem; }
  .program-card-footer { padding: 0 1rem 1rem; }
  .program-card-pricing { flex-wrap: wrap; }
  .step-icon-wrap { width: 64px; height: 64px; }
  .step-icon-circle { width: 64px; height: 64px; }
  .contact-form-card { padding: 1rem; }
  .contact-info-card { padding: .75rem; gap: .75rem; }
  .contact-info-icon { width: 40px; height: 40px; }
  .footer-grid { gap: 1.5rem; }
  .footer-section { padding: 2rem 0 1rem; }
  .app-modal-overlay { padding: .5rem; }
  .app-modal-header { padding: 1rem; }
  .app-modal-header h2 { font-size: 1rem; }
  .app-modal-body { padding: 1rem; }
  .app-modal-footer { padding: 1rem; gap: .5rem; }
  .app-modal-footer .btn { font-size: .8125rem; padding: .5rem .75rem; }
  .app-progress-icon { width: 32px; height: 32px; font-size: .75rem; }
  .app-progress-label { font-size: .625rem; }
  .country-code-select select { width: 100px; }
  .doc-upload-area { padding: 1rem; }
  .review-row { font-size: .8125rem; }
  .toast { max-width: calc(100vw - 2rem); }
  .toast-container { right: .75rem; bottom: .75rem; }
  [dir="rtl"] .toast-container { left: .75rem; }
}

/* ===== RTL ===== */
[dir="rtl"] .hero-ctas { flex-direction: row-reverse; }
[dir="rtl"] .hero-feature { flex-direction: row-reverse; }
[dir="rtl"] .faq-question { flex-direction: row-reverse; }
[dir="rtl"] .testimonial-header { flex-direction: row-reverse; }
[dir="rtl"] .footer-brand { flex-direction: row-reverse; }
[dir="rtl"] .footer-logo-fallback { flex-direction: row-reverse; }
[dir="rtl"] .footer-grid { direction: rtl; }
[dir="rtl"] .footer-links-col, [dir="rtl"] .footer-contact-col { text-align: right; }
[dir="rtl"] .contact-info-card { flex-direction: row-reverse; }
[dir="rtl"] .contact-info-text { text-align: right; }
[dir="rtl"] .app-modal-footer { flex-direction: row-reverse; }
[dir="rtl"] .review-row { flex-direction: row-reverse; }

/* ===== UTILITIES ===== */
.text-center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.w-full { width: 100%; }
