
:root {
  --red: #e61312;
  --red-dark: #b50f0e;
  --red-glow: rgba(230, 19, 18, 0.25);
  --dark: #363636;
  --darker: #1a1a1a;
  --darkest: #0d0d0d;
  --white: #ffffff;
  --off-white: #f8f8f8;
  --light-gray: #f0f0f0;
  --mid-gray: #999;
  --bg: #0d0d0d;
  --bg-rgb: 13, 13, 13;
  --surface: rgba(255, 255, 255, 0.03);
  --surface-strong: rgba(255, 255, 255, 0.08);
  --surface-stronger: rgba(255, 255, 255, 0.12);
  --surface-border: rgba(255, 255, 255, 0.08);
  --surface-border-soft: rgba(255, 255, 255, 0.04);
  --surface-rgb: 255, 255, 255;
  --text: #ffffff;
  --text-rgb: 255, 255, 255;
  --text-muted: rgba(255, 255, 255, 0.68);
  --text-muted-strong: rgba(255, 255, 255, 0.55);
  --text-weak: rgba(255, 255, 255, 0.45);
  --shadow: rgba(0, 0, 0, 0.45);
  --shadow-heavy: rgba(0, 0, 0, 0.6);
  --shadow-medium: rgba(0, 0, 0, 0.5);
  --shadow-soft: rgba(0, 0, 0, 0.18);
  --shadow-muted: rgba(0, 0, 0, 0.3);
  --overlay: rgba(0, 0, 0, 0.95);
  --foreground-overlay: rgba(0, 0, 0, 0.6);
  --panel: rgba(255, 255, 255, 0.03);
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --darkest-rgb: 13, 13, 13;
  --darker-rgb: 26, 26, 26;
  --dark-rgb: 54, 54, 54;
  --white-rgb: 255, 255, 255;
  --red-rgb: 230, 19, 18;
  --off-white-rgb: 248, 248, 248;
  --light-gray-rgb: 240, 240, 240;
  --mid-gray-rgb: 153, 153, 153;
  --hero-bg-start: #0d0d0d;
  --hero-bg-end: #1a1a1a;
  --hero-slide-shadow: rgba(0, 0, 0, 0.4);
}
html[dir="rtl"] body {
  direction: rtl;
}
html[dir="ltr"] body {
  direction: ltr;
}

.light-mode {
  --bg: #f7f7f7;
  --bg-rgb: 247, 247, 247;
  --surface: rgba(255, 255, 255, 0.94);
  --surface-strong: rgba(255, 255, 255, 0.98);
  --surface-stronger: rgba(255, 255, 255, 0.88);
  --surface-border: rgba(0, 0, 0, 0.08);
  --surface-border-soft: rgba(0, 0, 0, 0.04);
  --surface-rgb: 255, 255, 255;
  --text: #161616;
  --text-rgb: 22, 22, 22;
  --text-muted: rgba(22, 22, 22, 0.72);
  --text-muted-strong: rgba(22, 22, 22, 0.6);
  --text-weak: rgba(22, 22, 22, 0.55);
  --shadow: rgba(0, 0, 0, 0.08);
  --shadow-heavy: rgba(0, 0, 0, 0.12);
  --shadow-medium: rgba(0, 0, 0, 0.08);
  --shadow-soft: rgba(0, 0, 0, 0.04);
  --shadow-muted: rgba(0, 0, 0, 0.18);
  --overlay: rgba(var(--text-rgb), 0.08);
  --foreground-overlay: rgba(var(--text-rgb), 0.15);
  --panel: rgba(255, 255, 255, 0.95);
  --darkest: #ffffff;
  --darker: #f4f4f4;
  --dark: #eaeaea;
  --white-rgb: 255, 255, 255;
  --red-rgb: 230, 19, 18;
  --off-white-rgb: 248, 248, 248;
  --light-gray-rgb: 224, 224, 224;
  --mid-gray-rgb: 102, 102, 102;
  --hero-bg-start: #f7f7f7;
  --hero-bg-end: #eaeaea;
  --hero-slide-shadow: rgba(0, 0, 0, 0.12);
}

/* Light Mode Overrides */
.light-mode nav {
  background: rgba(var(--surface-rgb), 0.96);
  border-bottom-color: var(--surface-border);
}

.light-mode .nav-links a {
  color: rgba(var(--text-rgb), 0.78);
}

.light-mode .nav-links a:hover {
  color: rgb(var(--text-rgb));
}

.light-mode .lang-toggle,
.light-mode .theme-toggle {
  background: rgba(var(--surface-rgb), 0.88);
  color: rgb(var(--red-rgb));
  border-color: var(--surface-border);
}

.light-mode .video-title {
  color: rgb(0, 0, 0);
}

.light-mode .lang-toggle:hover,
.light-mode .theme-toggle:hover {
  background: rgba(230, 19, 18, 0.12);
  border-color: rgba(230, 19, 18, 0.4);
  color: rgb(var(--white-rgb));
}

.light-mode .lang-toggle:hover {
  color: rgb(var(--red-rgb));
}

.light-mode .lang-sep {
  color: rgba(var(--text-rgb), 0.45);
}

.light-mode .btn-outline {
  border-color: var(--surface-border);
  color: rgb(var(--text-rgb));
}

.light-mode .hero-bg {
  background:
    radial-gradient(ellipse 60% 70% at 70% 50%, rgba(230, 19, 18, 0.06) 0%, transparent 70%),
    radial-gradient(ellipse 40% 50% at 10% 80%, rgba(230, 19, 18, 0.03) 0%, transparent 60%);
}

.light-mode .hero-grid-lines {
  background-image:
    linear-gradient(rgba(var(--text-rgb), 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--text-rgb), 0.03) 1px, transparent 1px);
}

.light-mode .hero-mockup img {
  box-shadow:
    0 30px 60px rgba(var(--shadow-soft), 0.25),
    0 0 35px rgba(var(--red-rgb), 0.12);
}

.light-mode .floating-badge {
  background: rgba(var(--surface-rgb), 0.92);
  border: 1px solid rgba(230, 19, 18, 0.2);
  color: rgb(var(--text-rgb));
  box-shadow: 0 20px 40px rgba(var(--text-rgb), 0.04);
}

.light-mode .floating-badge .icon::before {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.24);
}

.light-mode .floating-badge .icon {
  background: var(--red);
}

.light-mode .service-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  box-shadow: 0 18px 45px rgba(var(--shadow-soft), 0.06);
}

.light-mode .service-card.featured {
  background: rgba(230, 19, 18, 0.05);
  border-color: rgba(230, 19, 18, 0.3);
}

.light-mode .work-item {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  box-shadow: 0 16px 38px rgba(var(--shadow-soft), 0.05);
}

.light-mode .work-overlay {
  background: linear-gradient(135deg, rgba(var(--text-rgb), 0.18), rgba(var(--text-rgb), 0.1));
}

.light-mode .work-item .work-label {
  color: var(--dark);
  background: rgba(var(--surface-rgb), 0.94);
}

.light-mode .template-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
}

.light-mode .template-thumb {
  background: linear-gradient(180deg, rgba(var(--surface-rgb), 0.95), rgba(var(--surface-rgb), 0.86));
}

.light-mode .template-thumb svg {
  filter: brightness(1.25) contrast(1.05) !important;
}

.light-mode .template-card:first-child .template-thumb svg rect:first-of-type {
  fill: rgba(248, 248, 248, 1) !important;
}

.light-mode .template-thumb svg rect:first-child {
  fill: rgba(248, 248, 248, 1) !important;
}

.light-mode .template-name {
  background: linear-gradient(135deg, #222, #555);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.light-mode .free-dl-card,
.light-mode .course-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
}

.light-mode .testimonial-card {
  background: linear-gradient(145deg, rgba(var(--surface-rgb), 0.94), rgba(var(--surface-rgb), 0.9));
  border: 1px solid var(--surface-border);
}

.light-mode .modal {
  background: var(--surface);
  border: 1px solid var(--surface-border);
}

.light-mode .trusted-bar {
  background: rgba(var(--text-rgb), 0.02);
}

.light-mode .logo-pill {
  background: rgba(var(--text-rgb), 0.04);
  border: 1px solid rgba(var(--text-rgb), 0.08);
  color: rgba(var(--text-rgb), 0.6);
}

.light-mode .social-btn {
  background: rgba(var(--surface-rgb), 0.05);
  border: 1px solid rgba(var(--surface-rgb), 0.08);
  color: rgba(255, 255, 255, 0.7);
}

.light-mode .social-btn:hover {
  background: rgba(230, 19, 18, 0.15);
  border-color: rgba(230, 19, 18, 0.4);
  color: #fff;
}

.light-mode .mobile-menu {
  background: rgba(var(--surface-rgb), 0.98);
  border-bottom: 1px solid var(--surface-border);
}

.light-mode .mobile-menu ul li {
  border-bottom: 1px solid rgba(var(--text-rgb), 0.08);
}

.light-mode .mobile-menu ul li a {
  color: rgb(var(--text-rgb));
}

.light-mode .mobile-menu ul li a:hover {
  color: var(--red);
}

.light-mode .qr-placeholder {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(230, 19, 18, 0.2);
}

.light-mode .whatsapp-tooltip {
  background: rgba(var(--surface-rgb), 0.94);
  color: rgb(var(--text-rgb));
  border: 1px solid var(--surface-border);
}

.light-mode .footer {
  background: var(--bg);
  border-top-color: var(--surface-border);
}

.light-mode .footer-brand p,
.light-mode .footer-links-col a,
.light-mode .qr-note,
.light-mode .footer-bottom,
.light-mode .footer-credit {
  color: rgba(255, 255, 255, 0.7);
}

.light-mode .footer-links-col h4,
.light-mode .footer-contact h4 {
  color: #fff;
}

.light-mode .footer .social-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
}

.light-mode .footer .social-btn:hover {
  background: rgba(230, 19, 18, 0.15);
  border-color: rgba(230, 19, 18, 0.4);
  color: #fff;
}

.light-mode .step-num {
  background: var(--surface);
  border-color: var(--surface-border);
  color: var(--red);
}

.light-mode .nav-hamburger span {
  background: rgb(var(--text-rgb));
}

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

html {
  scroll-behavior: smooth;
  font-family: 'Cairo', 'Tajawal', 'Segoe UI', 'Arial', sans-serif !important;
}

body {
  font-family: 'Cairo', 'Tajawal', 'Segoe UI', 'Arial', sans-serif !important;
  background: rgb(var(--bg-rgb));
  color: rgb(var(--text-rgb));
  overflow-x: hidden;
}

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: transparent; border-radius: 2px; }
html.is-scrolling::-webkit-scrollbar-thumb { background: rgb(var(--red-rgb)); }
@supports not selector(::-webkit-scrollbar) {
  html { scrollbar-width: thin; scrollbar-color: transparent transparent; }
  html.is-scrolling { scrollbar-color: #e61312 transparent; }
}

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 5vw;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(var(--bg-rgb), 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(230, 19, 18, 0.12);
  transition: var(--transition);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-img {
  height: 70px;
  width: auto;
  display: block;
  object-fit: contain;
  transition: opacity 0.3s ease;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: rgba(var(--text-rgb), 0.75);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.3px;
  transition: color 0.2s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s;
}

.nav-links a:hover {
  color: rgb(var(--text-rgb));
}
.nav-links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.lang-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(var(--white-rgb), 0.06);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(230, 19, 18, 0.25);
  border-radius: 40px;
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(var(--text-rgb), 0.7);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: 'Cairo', 'Tajawal', sans-serif;
}

.lang-toggle:hover {
  background: rgba(230, 19, 18, 0.12);
  border-color: rgba(230, 19, 18, 0.5);
  color: rgb(var(--red-rgb));
  transform: translateY(-1px);
}

.lang-sep {
  color: rgba(var(--text-rgb), 0.3);
  margin: 0 2px;
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(var(--white-rgb), 0.06);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(230, 19, 18, 0.25);
  border-radius: 40px;
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 600;
  color: rgb(var(--red-rgb));
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: 'Cairo', 'Tajawal', sans-serif;
}

.theme-toggle:hover {
  background: rgba(230, 19, 18, 0.12);
  border-color: rgba(230, 19, 18, 0.5);
  color: rgb(var(--red-rgb));
  transform: translateY(-1px);
}

.nav-cta {
  background: rgb(var(--red-rgb));
  color: rgb(var(--white-rgb)) !important;
  padding: 9px 22px;
  border-radius: 8px;
  font-weight: 600 !important;
  font-size: 14px !important;
  text-decoration: none;
  transition: var(--transition);
}

.nav-cta:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
}

#hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 100px 5vw 10px;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 70% at 70% 50%, rgba(230, 19, 18, 0.08) 0%, transparent 70%),
    radial-gradient(ellipse 40% 50% at 10% 80%, rgba(230, 19, 18, 0.05) 0%, transparent 60%);
}

.hero-grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(var(--text-rgb), 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--text-rgb), 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, rgba(var(--text-rgb), 0.35) 30%, transparent 80%);
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(230, 19, 18, 0.12);
  border: 1px solid rgba(230, 19, 18, 0.3);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 13px;
  color: #ff6b6a;
  margin-bottom: 28px;
}

.hero-tag::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--red);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--red);
  animation: pulse 2s infinite;
}

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

.hero-title {
  font-size: clamp(35px, 5.5vw, 60px);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 24px;
}

.hero-title .line-red {
  display: block;
  color: var(--red);
  position: relative;
}

.hero-title .line-red::after {
  content: '';
  position: absolute;
  bottom: -10px;
  right: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(to left, var(--red), transparent);
}

html[dir="ltr"] .hero-title .line-red::after {
  right: auto;
  left: 0;
  background: linear-gradient(to right, var(--red), transparent);
}

.hero-title span:last-child {
  display: block;
  font-size: clamp(24px, 3vw, 40px);
  font-weight: 600;
  line-height: 1.2;
  margin-top: 10px;
  margin-bottom: 18px;
}

.hero-subtitle {
  font-size: 16px;
  color: rgba(var(--text-rgb), 0.72);
  line-height: 1.8;
  max-width: 480px;
  margin-bottom: 40px;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  margin-top: 24px;
}

.cta-actions > a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  width: auto;
  padding: 14px 32px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--red);
  color: var(--white);
  padding: 14px 32px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  font-family: 'Cairo', sans-serif;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(230, 19, 18, 0.4);
}

.btn-primary svg {
  transition: transform 0.2s ease;
}

html[dir="rtl"] .hero-actions .btn-primary svg {
  transform: rotate(180deg);
}

.inline-logo {
  display: inline-block;
  height: 1.1em;
  width: auto;
  vertical-align: middle;
  margin: 0 0.25em;
  position: relative;
  top: -1px;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: var(--white);
  padding: 14px 32px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid rgba(var(--white-rgb), 0.2);
  cursor: pointer;
  transition: var(--transition);
  font-family: 'Cairo', sans-serif;
}

.btn-outline:hover {
  border-color: var(--red);
  color: var(--red);
  background: rgba(230, 19, 18, 0.06);
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 56px;
}

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

.stat-number {
  display: block;
  font-size: 32px;
  font-weight: 900;
  color: var(--red);
  line-height: 1;
}

.stat-label {
  font-size: 12px;
  color: rgba(var(--text-rgb), 0.55);
  margin-top: 4px;
  font-weight: 400;
}

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

.hero-mockup {
  position: relative;
  width: 100%;
  max-width: 560px;
}

.hero-mockup img {
  width: 100%;
  border-radius: 16px;
  box-shadow:
    0 40px 100px var(--shadow-heavy),
    0 0 60px rgba(230, 19, 18, 0.15);
}

.floating-badge {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(var(--darkest-rgb), 0.9);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(230, 19, 18, 0.3);
  border-radius: 12px;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.floating-badge.top-right {
  top: -20px;
  left: -20px;
  animation: float 4s ease-in-out infinite;
}

.floating-badge.bottom-left {
  bottom: 20px;
  right: -30px;
  animation: float 4s 2s ease-in-out infinite;
}

.floating-badge .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: var(--red);
  border-radius: 6px;
  margin: 0;
  text-align: center;
  line-height: 22px;
  font-size: 12px;
  position: relative;
}

.floating-badge .icon::before {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.24);
  animation: pulse 2s infinite;
  pointer-events: none;
}

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

section {
  padding: 100px 5vw;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 16px;
}

.section-label::before {
  content: none;
}

.section-title {
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 16px;
  color: rgba(var(--text-rgb), 0.64);
  line-height: 1.75;
  max-width: 720px;
  font-weight: 400;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 56px;
  flex-wrap: wrap;
  gap: 20px;
}

[dir="ltr"] .section-header > div {
  text-align: left;
}

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

.service-card {
  background: var(--surface);
  border: 1px solid rgba(var(--white-rgb), 0.06);
  border-radius: 20px;
  padding: 36px 32px;
  transition: var(--transition);
}

.service-card:hover .service-icon {
  transform: scale(1.05);
  background: rgba(230, 19, 18, 0.15);
  box-shadow: 0 8px 20px rgba(230, 19, 18, 0.2);
}

.service-card.featured {
  border-color: rgba(230, 19, 18, 0.3);
  background: rgba(230, 19, 18, 0.05);
  position: relative;
}

html[lang="ar"] .service-card.featured::after {
  content: 'الأكثر طلباً';
}

html[lang="en"] .service-card.featured::after {
  content: 'Most Requested';
}

.service-card.featured::after {
  position: absolute;
  top: 20px;
  left: auto;
  inset-inline-end: 20px;
  background: var(--red);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 100px;
}

.service-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  border-radius: 18px;
  background: rgba(230, 19, 18, 0.08);
  transition: all 0.3s ease;
}

.service-name {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 12px;
}

.service-desc {
  font-size: 14px;
  color: rgba(var(--text-rgb), 0.72);
  line-height: 1.75;
}

.service-features {
  list-style: none;
  margin-top: 20px;
}

.service-features li {
  font-size: 13px;
  color: rgba(var(--text-rgb), 0.68);
  padding: 5px 0;
  padding-right: 18px;
  position: relative;
}

.service-features li::before {
  content: '✓';
  position: absolute;
  right: 0;
  color: var(--red);
  font-weight: 700;
  font-size: 11px;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  font-size: 14px;
  font-weight: 700;
  color: var(--red);
  text-decoration: none;
  transition: gap 0.2s;
}

.service-link:hover {
  gap: 12px;
}

/* تحسينات قسم الأعمال */
.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.work-item {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--surface);
  border: 1px solid rgba(var(--white-rgb), 0.08);
  transition: all 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
  cursor: pointer;
}

.work-item:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: rgba(230, 19, 18, 0.4);
  box-shadow:
    0 20px 40px var(--shadow-medium),
    0 0 20px rgba(230, 19, 18, 0.2);
}

.work-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.work-item:hover img {
  transform: scale(1.08);
}

.work-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(var(--text-rgb), 0.18), rgba(var(--text-rgb), 0.1));
  backdrop-filter: blur(4px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  opacity: 0;
  transition: opacity 0.35s ease;
  padding: 20px;
  text-align: center;
  color: var(--dark);
}

.work-item:hover .work-overlay {
  opacity: 1;
}

.work-label {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  background: rgba(var(--white-rgb), 0.92);
  padding: 6px 14px;
  border-radius: 40px;
  letter-spacing: 0.5px;
  transform: translateY(10px);
  transition: transform 0.3s ease 0.05s;
}

.work-item:hover .work-label {
  transform: translateY(0);
}

.work-overlay,
.work-overlay * {
  color: #000 !important;
}

.work-preview-btn {
  background: var(--red);
  color: #000 !important;
  border: none;
  padding: 8px 20px;
  border-radius: 40px;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: 'Cairo', sans-serif;
  cursor: pointer;
  transform: translateY(15px);
  opacity: 0;
  transition: all 0.3s ease 0.1s;
  box-shadow: 0 4px 12px var(--shadow-muted);
}

.work-item:hover .work-preview-btn {
  transform: translateY(0);
  opacity: 1;
}

.work-preview-btn:hover {
  background: var(--red-dark);
  transform: scale(1.05);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes zoomIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@media (max-width: 1024px) {
  .works-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.templates-showcase {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-top: 20px;
}

.template-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 24px;
  overflow: hidden;
  transition: all 0.35s ease;
  display: flex;
  flex-direction: column;
}

.template-thumb {
  aspect-ratio: 400 / 220;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
}

.template-thumb img,
.template-thumb svg {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.template-card:hover {
  border-color: rgba(230, 19, 18, 0.45);
}

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

.template-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px 22px;
}

.template-name {
  font-family: 'Cairo', sans-serif;
  font-size: 1rem;
  font-weight: 300;
  margin: 0;
  color: rgba(var(--text-rgb), 0.92);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.template-cat {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--red);
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.template-price {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.price-label {
  background: rgba(230, 19, 18, 0.1);
  padding: 5px 14px;
  border-radius: 40px;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(var(--text-rgb),0.8);
  border: 1px solid rgba(230,19,18,0.3);
}

.price-free-badge {
  background: rgba(74,222,128,0.12);
  color: #4ade80;
  padding: 5px 14px;
  border-radius: 40px;
  font-size: 0.8rem;
  font-weight: 700;
  border: 1px solid rgba(74,222,128,0.3);
}

.btn-whatsapp {
  background: #25D366;
  color: white;
  padding: 6px 18px;
  border-radius: 40px;
  font-size: 0.7rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: 0.2s;
  white-space: nowrap;
  text-align: left;
}

.btn-whatsapp:hover {
  background: #1da851;
  transform: scale(1.02);
}

.btn-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--red);
  color: var(--white);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease;
}

.btn-download:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
}

.hidden-template {
  display: none;
}

.templates-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 32px;
  width: 100%;
}

.templates-toggle-btn {
  padding: 12px 26px;
  font-size: 15px;
  min-width: 180px;
}

@media (max-width: 1100px) {
  .templates-showcase { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .templates-showcase { grid-template-columns: 1fr; }
}

#free-download {
  background: rgb(var(--darker-rgb));
}

.free-dl-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.free-dl-card {
  background: rgba(var(--white-rgb), 0.03);
  border: 1px solid rgba(230, 19, 18, 0.2);
  border-radius: 24px;
  padding: 36px;
}

.free-dl-card img {
  width: 100%;
  border-radius: 12px;
}

.email-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-input {
  width: 100%;
  background: rgba(var(--white-rgb), 0.05);
  border: 1px solid rgba(var(--white-rgb), 0.12);
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 14px;
  color: rgb(var(--white-rgb));
  font-family: 'Cairo', sans-serif;
  outline: none;
}

.form-input:focus {
  border-color: rgba(230, 19, 18, 0.5);
}

.form-note {
  font-size: 12px;
  color: rgba(var(--text-rgb), 0.35);
  text-align: center;
}

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

.course-card {
  background: rgba(var(--white-rgb), 0.03);
  border: 1px solid rgba(var(--white-rgb), 0.07);
  border-radius: 20px;
  overflow: hidden;
  transition: var(--transition);
}

.course-card:hover {
  border-color: rgba(230, 19, 18, 0.3);
  transform: translateY(-4px);
}

.course-thumb {
  aspect-ratio: 16/9;
  background: var(--dark);
  position: relative;
}

.course-thumb-bg {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(230, 19, 18, 0.15) 0%, rgba(var(--dark-rgb), 0.8) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
}

.course-body {
  padding: 22px;
}

.course-level {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 8px;
}

.course-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
}

.course-meta {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: rgba(var(--text-rgb), 0.5);
}

.course-footer {
  padding: 16px 22px;
  border-top: 1px solid rgba(var(--white-rgb), 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.course-price-free {
  color: #4ade80;
  font-weight: 700;
}

.course-price-paid {
  color: var(--white);
  font-weight: 900;
}

.testimonial-card {
  width: 320px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  background: linear-gradient(145deg, rgba(var(--white-rgb), 0.04), rgba(var(--white-rgb), 0.01));
  backdrop-filter: blur(4px);
  border: 1px solid rgba(230, 19, 18, 0.2);
  border-radius: 28px;
  padding: 28px 24px;
  transition: all 0.25s;
  position: relative;
}
/* ── Testimonials Infinite Loop ── */
#testimonials {
  padding-bottom: 60px; /* تقليل الفراغ السفلي */
}

.testi-loop-wrap {
  overflow: hidden;
  direction: ltr; /* ← مهم جداً: يمنع RTL من عكس اتجاه الحركة */
  touch-action: pan-y;
  cursor: grab;
  padding-top: 10px;
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 8%,
    black 92%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 8%,
    black 92%,
    transparent 100%
  );
}

.testi-loop-track {
  display: flex;
  flex-direction: row; /* ← صريح لمنع أي تأثير من RTL */
  gap: 24px;
  width: max-content;
  will-change: transform;
}

.testi-loop-track .testimonial-card {
  width: 340px;
  flex-shrink: 0;
  margin: 0;
  direction: rtl; /* ← نعيد RTL للبطاقات نفسها فقط */
}

[dir="ltr"] .testi-loop-track .testimonial-card {
  direction: ltr;
}

.testimonial-card:hover {
  transform: translateY(-6px);
  border-color: rgba(230, 19, 18, 0.5);
  box-shadow: 0 20px 35px var(--shadow), 0 0 0 1px rgba(230,19,18,0.2);
  background: rgba(var(--white-rgb),0.06);
}

.testimonial-stars {
  color: rgba(230, 19, 18, 0.35);
  -webkit-text-fill-color: rgba(230, 19, 18, 0.35);
  -webkit-text-stroke: 0.9px rgb(230, 19, 18);
  text-stroke: 0.9px rgb(230, 19, 18);
  text-shadow: 0 0 2px rgba(230, 19, 18, 0.25);
  font-family: 'Cairo', 'Tajawal', 'Segoe UI Symbol', Arial, sans-serif;
  font-weight: 900;
  font-size: 18px;
  letter-spacing: 2px;
  margin-bottom: 18px;
  display: inline-block;
}

[dir="ltr"] .testimonial-stars {
  text-align: left;
}

.testimonial-text {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(var(--text-rgb), 0.85);
  margin-bottom: 26px;
  font-weight: 400;
}

[dir="ltr"] .testimonial-text {
  text-align: left;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
  border-top: none;
  padding-top: 20px;
  margin-top: auto;
  position: relative;
}

.testimonial-author::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 10px;
  height: 1px;
  background: linear-gradient(
    to right,
    rgba(var(--text-rgb), 0) 0%,
    rgba(var(--text-rgb), 0.18) 35%,
    rgba(var(--text-rgb), 0.28) 50%,
    rgba(var(--text-rgb), 0.18) 65%,
    rgba(var(--text-rgb), 0) 100%
  );
}

[dir="ltr"] .testimonial-author {
  text-align: left;
  justify-content: flex-start;
  flex-direction: row;
  direction: ltr;
}

[dir="ltr"] .author-avatar {
  order: 1;
}

[dir="ltr"] .testimonial-author > div:nth-child(2) {
  order: 2;
}

[dir="rtl"] .testimonial-author {
  flex-direction: row;
  justify-content: flex-start;
  text-align: right;
}

[dir="rtl"] .author-avatar {
  order: 1;
}

[dir="rtl"] .testimonial-author > div:nth-child(2) {
  order: 2;
}

.testimonial-author > div:nth-child(2) {
  display: flex;
  flex-direction: column;
}

[dir="ltr"] .testimonial-card {
  text-align: left;
}

.author-avatar {
  width: 48px;
  height: 48px;
  background: rgba(230, 19, 18, 0.2);
  border-radius: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  color: #E61312;
  border: 1px solid rgba(230, 19, 18, 0.4);
}

.author-name {
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}

.author-role {
  font-size: 14px;
  color: var(--text-muted);
}

[dir="ltr"] .author-name,
[dir="ltr"] .author-role {
  text-align: left;
}

[dir="rtl"] .author-name,
[dir="rtl"] .author-role {
  text-align: right;
}


.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.step-num {
  width: 60px;
  height: 60px;
  background: var(--darkest);
  border: 2px solid rgba(230, 19, 18, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 900;
  color: var(--red);
  margin: 0 auto 20px;
}

/* Adjust step number alignment for RTL and LTR */
[dir="rtl"] .step-num {
  margin-left: auto;
  margin-right: 0;
}

[dir="ltr"] .step-num {
  margin-right: auto;
  margin-left: 0;
}

.cta-box {
  background: rgba(230, 19, 18, 0.05);
  border: 1px solid rgba(230, 19, 18, 0.25);
  border-radius: 28px;
  padding: 64px 48px;
  text-align: center;
}
footer {
  background: rgb(var(--darkest-rgb));
  border-top: 1px solid rgba(var(--white-rgb), 0.05);
  padding: 60px 5vw 30px;
}

.footer-container {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 50px;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.logo-text {
  font-size: 22px;
  font-weight: 800;
  background: linear-gradient(135deg, #fff, #aaa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.footer-brand p {
  font-size: 14px;
  color: rgba(var(--text-rgb), 0.5);
  line-height: 1.7;
  margin-bottom: 25px;
  max-width: 280px;
}

.social-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.social-btn {
  width: 38px;
  height: 38px;
  background: rgba(var(--white-rgb), 0.05);
  border: 1px solid rgba(var(--white-rgb), 0.08);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(var(--text-rgb), 0.7);
  transition: all 0.2s;
  text-decoration: none;
}

.social-btn:hover {
  background: rgba(230, 19, 18, 0.15);
  border-color: rgba(230, 19, 18, 0.4);
  color: #fff;
  transform: translateY(-2px);
}

.footer-links-col h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #fff;
  letter-spacing: 0.5px;
}

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

.footer-links-col li {
  margin-bottom: 12px;
}

.footer-links-col a {
  color: rgba(var(--text-rgb), 0.5);
  text-decoration: none;
  font-size: 0.85rem;
  transition: 0.2s;
}

.footer-links-col a:hover {
  color: #E61312;
  padding-right: 4px;
}

.footer-contact h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #fff;
}

.qr-placeholder {
  background: rgba(255, 255, 255, 0.96);
  border-radius: 16px;
  padding: 8px;
  display: inline-block;
  border: 1px solid rgba(230, 19, 18, 0.2);
}

img.qr-code {
  filter: none !important;
  -webkit-filter: none !important;
  mix-blend-mode: normal !important;
  opacity: 1 !important;
  background-color: #fff !important;
  image-rendering: auto !important;
}

.qr-note {
  font-size: 12px;
  color: rgba(var(--text-rgb), 0.4);
  margin-top: 12px;
}

.footer-bottom {
  border-top: 1px solid rgba(var(--white-rgb), 0.05);
  padding-top: 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: rgba(var(--text-rgb), 0.35);
  flex-wrap: wrap;
  gap: 15px;
}

.footer-credit {
  font-size: 12px;
  color: rgba(var(--text-rgb), 0.25);
}

@media (max-width: 1024px) {
  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
  .footer-brand {
    grid-column: span 2;
  }
}

@media (max-width: 640px) {
  .footer-container {
    grid-template-columns: 1fr;
  }
  .footer-brand {
    grid-column: span 1;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* لوقو الفوتر فقط */
.footer-logo-link {
  display: inline-block;
  margin-bottom: 5px;
}

.footer-logo {
  height: 80px;  /* ← يمكنك تغيير الحجم هنا بسهولة */
  width: auto;
  max-width: 100%;
  object-fit: contain;
  transition: transform 0.2s, opacity 0.3s ease;
}

.footer-logo:hover {
  transform: scale(1.02);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: var(--overlay);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: rgb(var(--darker-rgb));
  border: 1px solid rgba(230, 19, 18, 0.2);
  border-radius: 24px;
  padding: 40px;
  max-width: 480px;
  width: 90%;
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.7s,
    transform 0.7s;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 {
  transition-delay: 0.1s;
}
.reveal-delay-2 {
  transition-delay: 0.2s;
}
.reveal-delay-3 {
  transition-delay: 0.3s;
}

@media (max-width: 1024px) {
  #hero {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .services-grid,
  .works-grid,
  .courses-grid {
    grid-template-columns: 1fr 1fr;
  }
  .templates-showcase {
    grid-template-columns: 1fr 1fr;
  }
  .process-steps {
    grid-template-columns: 1fr 1fr;
  }
  .free-dl-wrap {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
  }
  .services-grid,
  .works-grid,
  .courses-grid {
    grid-template-columns: 1fr;
  }
  .templates-showcase {
    grid-template-columns: 1fr;
  }
  .process-steps {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.ticker-wrap {
  background: var(--red);
  padding: 12px 0;
  overflow: hidden;
  white-space: nowrap;
}

.ticker-inner {
  display: inline-flex;
  gap: 60px;
  animation: ticker 25s linear infinite;
}

.ticker-item {
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  gap: 10px;
}

.ticker-dot {
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
}

@keyframes ticker {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.trusted-bar {
  padding: 48px 5vw;
  background: rgba(var(--white-rgb), 0.015);
  text-align: center;
}

.logos-row {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.logo-pill {
  background: rgba(var(--white-rgb), 0.05);
  border: 1px solid rgba(var(--white-rgb), 0.08);
  border-radius: 8px;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 700;
  color: rgba(var(--text-rgb), 0.35);
}

.roadmap-timeline {
  position: relative;
  padding-right: 30px;
}

.roadmap-timeline::before {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--red), rgba(230, 19, 18, 0.1));
}

.roadmap-item {
  position: relative;
  padding-right: 40px;
  padding-bottom: 48px;
}

.roadmap-item::before {
  content: '';
  position: absolute;
  right: -9px;
  top: 4px;
  width: 18px;
  height: 18px;
  background: var(--red);
  border-radius: 50%;
  border: 3px solid var(--darker);
}

.social-links {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.social-btn {
  width: 36px;
  height: 36px;
  background: rgba(var(--white-rgb), 0.06);
  border: 1px solid rgba(var(--white-rgb), 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: rgb(var(--white-rgb));
  transition: var(--transition);
}

.social-btn:hover {
  background: rgba(230, 19, 18, 0.15);
}

.footer-bottom {
  border-top: 1px solid rgba(var(--white-rgb), 0.06);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: rgba(var(--text-rgb), 0.3);
}

/* سس */


/* ════════════════════════════
   MOBILE MENU BUTTON
════════════════════════════ */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}
.nav-hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ════════════════════════════
   MOBILE MENU DRAWER
════════════════════════════ */
.mobile-menu {
  display: none;
  position: fixed;
  top: 70px;
  right: 0;
  left: 0;
  z-index: 999;
  background: rgba(var(--darkest-rgb), 0.98);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(230, 19, 18, 0.2);
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-menu.open {
  display: block;
  max-height: 500px;
}
.mobile-menu ul {
  list-style: none;
  padding: 16px 5vw 24px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.mobile-menu ul li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.mobile-menu ul li:last-child {
  border-bottom: none;
}
.mobile-menu ul li a {
  display: block;
  padding: 14px 4px;
  color: rgba(var(--text-rgb), 0.8);
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  transition: color 0.2s, padding-right 0.2s;
}
.mobile-menu ul li a:hover {
  color: var(--red);
  padding-right: 8px;
}
.mobile-menu-footer {
  padding: 0 5vw 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ════════════════════════════
   RESPONSIVE — TABLET (≤ 1024px)
════════════════════════════ */
@media (max-width: 1024px) {
  #hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 100px 5vw 60px;
    gap: 40px;
  }
  .hero-subtitle {
    margin: 0 auto 40px;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-stats {
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px;
  }
  .hero-visual {
    max-width: 540px;
    margin: 0 auto;
  }
  .floating-badge.top-right {
    top: -10px;
    left: 0;
    font-size: 11px;
  }
  .floating-badge.bottom-left {
    bottom: 10px;
    right: 0;
    font-size: 11px;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .works-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .templates-showcase {
    grid-template-columns: repeat(2, 1fr);
  }
  .process-steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .courses-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .cta-box {
    padding: 48px 32px;
  }
  .footer-container {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand {
    grid-column: span 2;
  }
}

/* ════════════════════════════
   RESPONSIVE — MOBILE (≤ 768px)
════════════════════════════ */
@media (max-width: 768px) {
  /* Navbar */
  .nav-links {
    display: none !important;
  }
  .nav-hamburger {
    display: flex;
  }

  /* إخفاء زر CTA من الناف في الشاشات الصغيرة جداً */
  section {
    padding: 70px 4vw;
  }

  /* Hero */
  #hero {
    padding: 90px 4vw 50px;
    min-height: auto;
  }
  .hero-title {
    font-size: clamp(28px, 8vw, 44px);
  }
  .hero-subtitle {
    font-size: 14px;
  }
  .hero-stats {
    gap: 16px;
  }
  .stat-number {
    font-size: 24px;
  }
  .hero-visual {
    max-width: 100%;
  }
  .floating-badge {
    display: none;
  }

  /* Services */
  .services-grid {
    grid-template-columns: 1fr;
  }
  .service-card {
    padding: 28px 22px;
  }

  /* Works */
  .works-grid {
    grid-template-columns: 1fr;
  }

  /* Templates */
  .templates-showcase {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  /* Process */
  .process-steps {
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }

  /* Testimonials */
  .testi-loop-track .testimonial-card {
    width: 280px;
  }

  /* CTA */
  .cta-box {
    padding: 36px 20px;
  }
  .cta-title {
    font-size: clamp(22px, 6vw, 34px);
  }
  .cta-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 24px;
  }
  .cta-actions > a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    width: auto;
  }
  .cta-actions .btn-primary,
  .cta-actions .btn-outline {
    padding: 14px 32px;
  }

  /* Footer */
  .footer-container {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-brand {
    grid-column: span 1;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }
}

/* ════════════════════════════
   RESPONSIVE — SMALL (≤ 480px)
════════════════════════════ */
@media (max-width: 480px) {
  .process-steps {
    grid-template-columns: 1fr;
  }
  .hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    width: 100%;
  }
  .stat-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 12px 8px;
  }
  .nav-cta {
    padding: 8px 14px;
    font-size: 12px !important;
  }
  .lang-toggle {
    padding: 6px 10px;
    font-size: 12px;
  }
}

/* WhatsApp Floating Button */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: linear-gradient(145deg, #25D366, #1da851);
  border-radius: 50%;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
  text-decoration: none;
  cursor: pointer;
  animation: pulse 2s infinite, subtle-shake 3s infinite;
}
.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.6);
}
.whatsapp-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}
.whatsapp-tooltip {
  position: absolute;
  right: 70px;
  background: var(--overlay);
  backdrop-filter: blur(8px);
  color: white;
  padding: 6px 14px;
  border-radius: 40px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: 0.2s;
  pointer-events: none;
  font-family: 'Cairo', sans-serif;
}
.whatsapp-float:hover .whatsapp-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-5px);
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}
@keyframes subtle-shake {
  0%, 100% { transform: rotate(0deg) scale(1); }
  15% { transform: rotate(2deg) scale(1.02); }
  30% { transform: rotate(-2deg) scale(1.02); }
  45% { transform: rotate(1deg) scale(1.02); }
  60% { transform: rotate(0deg) scale(1); }
}
/* عند RTL (عربي) الزر يبقى في اليمين، عند LTR نضعه في اليسار اختيارياً */
html[dir="ltr"] .whatsapp-float {
  right: auto;
  left: 24px;
}
html[dir="ltr"] .whatsapp-tooltip {
  right: auto;
  left: 70px;
}
html[dir="ltr"] .whatsapp-float:hover .whatsapp-tooltip {
  transform: translateX(5px);
}

/* Language Switching Animations */
@keyframes langFadeOut {
  0% {
    opacity: 1;
    transform: translateY(0) translateX(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-10px) translateX(var(--slide-distance, 0));
  }
}

@keyframes langFadeIn {
  0% {
    opacity: 0;
    transform: translateY(20px) translateX(0);
  }
  100% {
    opacity: 1;
    transform: translateY(0) translateX(0);
  }
}

@keyframes langStaggerIn {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.lang-fade-in main,
.lang-fade-in section,
.lang-fade-in header,
.lang-fade-in footer,
.lang-fade-in nav {
  animation: langFadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Staggered animations for text elements */
.lang-fade-in h1 { animation: langStaggerIn 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.1s forwards; }
.lang-fade-in h2 { animation: langStaggerIn 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.15s forwards; }
.lang-fade-in h3 { animation: langStaggerIn 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.2s forwards; }
.lang-fade-in h4 { animation: langStaggerIn 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.25s forwards; }
.lang-fade-in p { animation: langStaggerIn 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.3s forwards; }
.lang-fade-in button,
.lang-fade-in a { animation: langStaggerIn 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.35s forwards; }

.lang-switching main,
.lang-switching section,
.lang-switching header,
.lang-switching footer,
.lang-switching nav {
  animation: langFadeOut 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.lang-switching.switching-to-rtl main,
.lang-switching.switching-to-rtl section,
.lang-switching.switching-to-rtl header,
.lang-switching.switching-to-rtl footer,
.lang-switching.switching-to-rtl nav {
  --slide-distance: 30px;
}

.lang-switching.switching-to-ltr main,
.lang-switching.switching-to-ltr section,
.lang-switching.switching-to-ltr header,
.lang-switching.switching-to-ltr footer,
.lang-switching.switching-to-ltr nav {
  --slide-distance: -30px;
}

/* Smooth transitions for all elements during language switch */
.lang-switching *,
.lang-switching *::before,
.lang-switching *::after {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Navbar smooth transition */
.lang-switching nav {
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Prevent layout shifts for buttons */
.lang-switching .lang-toggle,
.lang-switching .theme-toggle {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}


/* ── Academy videos (moved from inline <style> in index.html) ── */
.videos-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;padding:20px}
.video-card{background:transparent;transition:transform 0.28s ease,box-shadow 0.28s ease}
.video-link{display:block;position:relative;border-radius:12px;overflow:hidden;border:1px solid transparent;transition:border-color 0.28s ease,box-shadow 0.28s ease}
.video-link img{width:100%;height:200px;object-fit:cover;display:block;transition:transform 0.35s ease}
.video-card:hover .video-link img{transform:scale(1.04)}
.video-link:hover{border-color:rgba(230,19,18,0.55);box-shadow:0 8px 30px rgba(230,19,18,0.06)}
.play-overlay{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:64px;height:64px;border-radius:50%;background:rgba(0,0,0,0.6);color:#fff;display:flex;align-items:center;justify-content:center;font-size:28px;transition:background-color 0.22s ease,color 0.22s ease,transform 0.22s ease}
.video-card:hover .play-overlay{background:rgba(230,19,18,0.08);color:var(--red);transform:translate(-50%,-50%) scale(1.06)}
.video-title{color:rgba(255,255,255,0.9);font-size:16px;margin:8px 0 0;text-align:start;font-weight:300}
.hidden-video{display:none}
.extra-videos{display:contents}
.extra-videos.hidden-video{display:none}
.academy-actions{display:flex;justify-content:center;align-items:center;margin-top:18px}
.academy-actions button{min-width:180px;padding:12px 24px}
@media(max-width:900px){.videos-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:600px){.videos-grid{grid-template-columns:1fr}}

/* ── Respect users who prefer reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ── Latest templates timeline (home) ── */
.tl { position: relative; max-width: 1120px; margin: 48px auto 0; padding: 8px 0 72px; }
.tl-line { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; transform: translateX(-50%); background: var(--surface-border); border-radius: 2px; -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 5%, #000 72%, transparent 100%); mask-image: linear-gradient(to bottom, transparent 0, #000 5%, #000 72%, transparent 100%); }
.tl-line-fill { width: 100%; height: 100%; transform: scaleY(0); transform-origin: top; will-change: transform; background: linear-gradient(to bottom, var(--red), #ff4a4a); border-radius: 2px; box-shadow: 0 0 14px rgba(230, 19, 18, 0.5); }
.tl-row { position: relative; display: grid; grid-template-columns: 1fr 48px 1fr; align-items: center; }
.tl-row + .tl-row { margin-top: -90px; }
.tl-item { width: 100%; max-width: 500px; grid-row: 1; opacity: 0; transform: translateX(var(--tx, 70px)) scale(0.96); transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1); }
.tl-item.start { grid-column: 1; justify-self: end; }
.tl-item.end { grid-column: 3; justify-self: start; }
html[dir="rtl"] .tl-item.start, html[dir="ltr"] .tl-item.end { --tx: 80px; }
html[dir="rtl"] .tl-item.end, html[dir="ltr"] .tl-item.start { --tx: -80px; }
.tl-row.in .tl-item { opacity: 1; transform: none; transition-delay: 0.25s; }
.tl-dot { grid-column: 2; grid-row: 1; justify-self: center; width: 16px; height: 16px; border-radius: 50%; background: var(--red); border: 3px solid var(--bg, #0d0d0d); z-index: 1; opacity: 0; transform: scale(0); }
.tl-row.in .tl-dot { animation: tlDotPop 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) forwards; }
@keyframes tlDotPop { 0% { opacity: 0; transform: scale(0); } 100% { opacity: 1; transform: scale(1.15); box-shadow: 0 0 0 6px rgba(230, 19, 18, 0.22); } }

/* glass card: big image + frosted bar */
.tl-card { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 24px; overflow: hidden; background: #111; box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28); transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s; }
.tl-card::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent); pointer-events: none; }
.tl-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.tl-card:hover { box-shadow: 0 22px 56px rgba(0, 0, 0, 0.4); }
.tl-card:hover img { transform: scale(1.06); }
.tl-glass { position: absolute; inset-inline: 14px; bottom: 14px; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 18px; border-radius: 18px; background: rgba(255, 255, 255, 0.16); border: 1px solid rgba(255, 255, 255, 0.32); backdrop-filter: blur(16px) saturate(1.5); -webkit-backdrop-filter: blur(16px) saturate(1.5); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25); transition: background 0.35s, transform 0.35s; }
.tl-card:hover .tl-glass { background: rgba(255, 255, 255, 0.24); }
.tl-name { color: #fff; font-weight: 700; font-size: 0.95rem; letter-spacing: 0.3px; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5); }
.tl-dl { display: inline-flex; align-items: center; gap: 8px; background: var(--red); color: #fff; padding: 9px 18px; border-radius: 999px; font-size: 0.9rem; font-weight: 700; text-decoration: none; box-shadow: 0 6px 18px rgba(230, 19, 18, 0.45); transition: transform 0.25s, background 0.25s; }
.tl-dl:hover { background: var(--red-dark, #c20f0e); transform: translateY(-1px) scale(1.04); }
.tl-badge { position: absolute; top: 14px; inset-inline-start: 14px; z-index: 2; color: #fff; font-size: 0.78rem; font-weight: 800; padding: 5px 14px; border-radius: 999px; background: rgba(230, 19, 18, 0.85); border: 1px solid rgba(255, 255, 255, 0.35); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.tl-cta { display: flex; justify-content: center; margin-top: 16px; }

@media (max-width: 768px) {
  .tl-line { left: auto; inset-inline-start: 14px; transform: none; }
  .tl-row { grid-template-columns: 30px 1fr; }
  .tl-row + .tl-row { margin-top: 28px; }
  .tl-dot { grid-column: 1; }
  .tl-item.start, .tl-item.end { grid-column: 2; justify-self: stretch; max-width: none; }
  html[dir="rtl"] .tl-item.start, html[dir="rtl"] .tl-item.end { --tx: 50px; }
  html[dir="ltr"] .tl-item.start, html[dir="ltr"] .tl-item.end { --tx: -50px; }
  .tl-card { border-radius: 20px; }
  .tl-glass { inset-inline: 10px; bottom: 10px; padding: 8px 8px 8px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .tl-item { opacity: 1 !important; transform: none !important; }
  .tl-card, .tl-card img { transition: none !important; }
}

/* preview affordance */
.tl-card { cursor: zoom-in; outline: none; }
.tl-card:focus-visible { box-shadow: 0 0 0 3px var(--red), 0 18px 50px rgba(0, 0, 0, 0.28); }
.tl-zoom { position: absolute; top: 14px; inset-inline-end: 14px; z-index: 2; width: 36px; height: 36px; display: grid; place-items: center; color: #fff; border-radius: 50%; background: rgba(255, 255, 255, 0.18); border: 1px solid rgba(255, 255, 255, 0.35); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); opacity: 0; transform: scale(0.8); transition: opacity 0.3s, transform 0.3s; }
.tl-card:hover .tl-zoom, .tl-card:focus-visible .tl-zoom { opacity: 1; transform: none; }
@media (hover: none) { .tl-zoom { opacity: 1; transform: none; } }

/* templates page grid */
.tpl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.tpl-cell { opacity: 0; transform: translateY(36px) scale(0.97); transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1) var(--d, 0ms), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1) var(--d, 0ms); }
.tpl-cell.in { opacity: 1; transform: none; }
@media (max-width: 1024px) { .tpl-grid { grid-template-columns: repeat(2, 1fr); gap: 22px; } }
@media (max-width: 640px) { .tpl-grid { grid-template-columns: 1fr; } .tpl-grid .tl-glass { inset-inline: 10px; bottom: 10px; padding: 8px 8px 8px 14px; } }

/* image preview lightbox */
.tpl-lb { position: fixed; inset: 0; z-index: 5000; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(0, 0, 0, 0.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); opacity: 0; visibility: hidden; transition: opacity 0.35s, visibility 0.35s; cursor: zoom-out; }
.tpl-lb.open { opacity: 1; visibility: visible; }
.tpl-lb-fig { margin: 0; max-width: min(1100px, 100%); display: flex; flex-direction: column; gap: 14px; transform: scale(0.94); transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1); }
.tpl-lb.open .tpl-lb-fig { transform: none; }
.tpl-lb-fig img { display: block; max-width: 100%; max-height: calc(100vh - 150px); margin: 0 auto; object-fit: contain; border-radius: 18px; box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6); }
.tpl-lb-fig figcaption { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 20px; border-radius: 18px; background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.28); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.tpl-lb-name { color: #fff; font-weight: 700; }
.tpl-lb-close { position: absolute; top: 18px; inset-inline-end: 18px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.35); background: rgba(255, 255, 255, 0.16); color: #fff; font-size: 18px; cursor: pointer; transition: background 0.25s, transform 0.25s; }
.tpl-lb-close:hover { background: var(--red); transform: rotate(90deg); }
@media (prefers-reduced-motion: reduce) { .tpl-cell { opacity: 1 !important; transform: none !important; } .tl-dot { opacity: 1; transform: none; } }

/* lightbox navigation */
.tpl-lb-fig img { transition: opacity 0.25s; }
.tpl-lb-fig img.loading { opacity: 0; }
.tpl-lb-meta { display: flex; align-items: baseline; gap: 12px; }
.tpl-lb-count { color: rgba(255, 255, 255, 0.7); font-size: 0.85rem; font-variant-numeric: tabular-nums; }
.tpl-lb-nav { position: absolute; top: 50%; z-index: 2; width: 50px; height: 50px; margin-top: -25px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.35); background: rgba(255, 255, 255, 0.16); color: #fff; cursor: pointer; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: background 0.25s, transform 0.25s; }
.tpl-lb-nav:hover { background: var(--red); transform: scale(1.08); }
.tpl-lb-prev { inset-inline-start: 18px; }
.tpl-lb-next { inset-inline-end: 18px; }
.tpl-lb-prev svg { transform: scaleX(-1); }
html[dir="rtl"] .tpl-lb-prev svg { transform: none; }
html[dir="rtl"] .tpl-lb-next svg { transform: scaleX(-1); }
.tpl-lb.single .tpl-lb-nav, .tpl-lb.single .tpl-lb-count { display: none; }
@media (max-width: 640px) { .tpl-lb-nav { top: auto; bottom: 22px; margin-top: 0; width: 44px; height: 44px; } .tpl-lb-fig { padding-bottom: 56px; } }

/* ───────── Hero slider (نصوص صغيرة بالمنتصف) ───────── */
.hx { position: relative; height: 100vh; height: 100svh; min-height: 600px; overflow: hidden; background: #0d0d0d; color: #fff; }
.hx-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 1.1s ease, visibility 0s linear 1.1s; background: radial-gradient(circle at 50% 40%, rgba(230, 19, 18, 0.28), transparent 60%), #0d0d0d; }
.hx-slide.active { opacity: 1; visibility: visible; z-index: 1; transition: opacity 1.1s ease; }
.hx-bg { position: absolute; inset: 0; overflow: hidden; }
.hx-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hx-slide[data-z="in"].active .hx-bg img, .hx-slide[data-z="in"].leave .hx-bg img { animation: hxZin 7.4s ease-in-out forwards; }
.hx-slide[data-z="out"].active .hx-bg img, .hx-slide[data-z="out"].leave .hx-bg img { animation: hxZout 7.4s ease-in-out forwards; }
@keyframes hxZin { from { transform: scale(1); } to { transform: scale(1.08); } }
@keyframes hxZout { from { transform: scale(1.08); } to { transform: scale(1); } }
.hx.paused .hx-bg img { animation-play-state: paused; }
.hx-shade { position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.74) 100%), linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent 45%); }
.hx-inner { position: relative; z-index: 2; height: 100%; display: flex; align-items: center; justify-content: center; text-align: center; padding: 90px 24px 120px; }
.hx-text { max-width: 640px; margin: 0 auto; }
.hx-tag { display: inline-block; margin-bottom: 14px; padding: 5px 14px; font-size: 12px; font-weight: 600; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.28); background: rgba(255, 255, 255, 0.1); }
.hx-title { margin: 0 0 12px; font-size: clamp(1.45rem, 3.1vw, 2.4rem); line-height: 1.35; font-weight: 800; }
.hx-title .ln { display: block; overflow: hidden; padding-bottom: 0.14em; }
.hx-title .ln > span { display: block; transform: translateY(115%); }
.hx-title .ln.red { color: var(--red); }
.hx-sub { max-width: 480px; margin: 0 auto 22px; font-size: clamp(0.86rem, 1.05vw, 1rem); line-height: 1.8; color: rgba(255, 255, 255, 0.85); }
.hx .btn-primary { padding: 11px 26px; font-size: 14px; }
.hx-r { opacity: 0; transform: translateY(22px); }
.hx-slide.active .hx-title .ln > span { animation: hxUp 0.95s cubic-bezier(0.22, 1, 0.36, 1) forwards; animation-delay: calc(0.25s + var(--i, 0) * 0.13s); }
.hx-slide.active .hx-r { animation: hxFade 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards; animation-delay: var(--d, 0s); }
.hx-slide.leave .hx-title .ln > span { transform: none; animation: none; }
.hx-slide.leave .hx-r { opacity: 1; transform: none; animation: none; }
@keyframes hxUp { to { transform: none; } }
@keyframes hxFade { to { opacity: 1; transform: none; } }

/* أزرار التحكم: صغيرة، في الجهة المعاكسة لأيقونة واتساب (يسار بالعربية، يمين بالإنجليزية) */
.hx-ctrl { position: absolute; z-index: 5; bottom: 78px; left: 24px; display: flex; align-items: center; gap: 8px; }
html[dir="ltr"] .hx-ctrl { left: auto; right: 24px; }
.hx-arrow { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.3); background: rgba(255, 255, 255, 0.12); color: #fff; cursor: pointer; transition: background 0.25s, transform 0.25s; }
.hx-arrow svg { width: 13px; height: 13px; }
.hx-arrow:hover { transform: scale(1.1); }
.hx-prev svg { transform: scaleX(-1); }
html[dir="rtl"] .hx-prev svg { transform: none; }
html[dir="rtl"] .hx-next svg { transform: scaleX(-1); }
.hx-bars { display: flex; gap: 5px; }
.hx-bar { position: relative; width: 20px; height: 2px; padding: 0; border: 0; border-radius: 2px; background: rgba(255, 255, 255, 0.3); overflow: hidden; cursor: pointer; }
.hx-bar::after { content: ""; position: absolute; inset: -8px 0; }
.hx-bar i { position: absolute; inset: 0; background: #fff; transform: scaleX(0); transform-origin: left; }
html[dir="rtl"] .hx-bar i { transform-origin: right; }
.hx-bar.done i { transform: scaleX(1); }
.hx-bar.on i { animation: hxBar 6.5s linear forwards; }
.hx.paused .hx-bar.on i { animation-play-state: paused; }
@keyframes hxBar { to { transform: scaleX(1); } }

/* مؤشر السكرول: في المنتصف */
.hx-scroll { position: absolute; z-index: 5; left: 50%; bottom: 78px; width: 22px; height: 36px; transform: translateX(-50%); border: 2px solid rgba(255, 255, 255, 0.5); border-radius: 12px; }
.hx-scroll span { position: absolute; top: 7px; left: 50%; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: #fff; animation: hxScroll 1.8s ease-in-out infinite; }
@keyframes hxScroll { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }
.hx-wave { position: absolute; z-index: 4; inset-inline: 0; bottom: -1px; width: 100%; height: 56px; color: var(--bg); pointer-events: none; }

.stats-strip { background: transparent; padding: 8px 24px 64px; }
.strip-grid { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.strip-num { display: block; font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 900; line-height: 1.2; color: var(--red); font-variant-numeric: tabular-nums; }
.strip-label { display: block; margin-top: 4px; font-size: 1rem; opacity: 0.75; }

@media (max-width: 768px) {
  .hx-inner { padding: 90px 20px 130px; }
  .hx-scroll { display: none; }
  .hx-ctrl { bottom: 74px; left: 16px; }
  html[dir="ltr"] .hx-ctrl { left: auto; right: 16px; }
  .strip-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .hx-title .ln > span { transform: none !important; animation: none !important; }
  .hx-r { opacity: 1 !important; transform: none !important; animation: none !important; }
  .hx-bg img, .hx-scroll span { animation: none !important; }
}

/* ───────── Button theme: gradient pill + glass rim + soft glow (brand red) ───────── */
:root {
  --btn-grad: linear-gradient(115deg, #b70f0e 0%, #e61312 46%, #ff4d49 100%);
  --btn-rim: inset 0 1px 0 rgba(255, 255, 255, 0.42), inset 0 -2px 0 rgba(0, 0, 0, 0.2);
  --btn-glow: 0 6px 14px -8px rgba(230, 19, 18, 0.34);
  --btn-glow-hover: 0 9px 20px -8px rgba(230, 19, 18, 0.46);
}
.btn-primary, .nav-cta, .tl-dl, .btn-download, .work-preview-btn {
  background: var(--btn-grad);
  background-size: 160% 100%;
  background-position: 0 0;
  border: 0;
  border-radius: 999px;
  color: #fff;
  box-shadow: var(--btn-rim), var(--btn-glow);
}
.btn-primary, .nav-cta, .tl-dl, .btn-download {
  transition: background-position 0.55s ease, box-shadow 0.35s ease, transform 0.25s ease;
}
.btn-primary { padding: 15px 34px; }
.btn-primary:hover, .nav-cta:hover, .tl-dl:hover, .btn-download:hover, .work-preview-btn:hover {
  background-image: var(--btn-grad);
  background-position: 100% 0;
  box-shadow: var(--btn-rim), var(--btn-glow-hover);
}
.btn-primary:hover, .btn-download:hover { transform: translateY(-2px); }
.btn-primary:active, .tl-dl:active, .btn-download:active { transform: translateY(0) scale(0.98); box-shadow: var(--btn-rim), 0 3px 8px -4px rgba(230, 19, 18, 0.35); }
.work-preview-btn { color: #fff !important; }
.hx-arrow:hover, .tpl-lb-close:hover, .tpl-lb-nav:hover { background: var(--btn-grad); box-shadow: var(--btn-rim), var(--btn-glow); }

/* ───────── Navbar: شفاف أعلى الرئيسية ثم زجاجي عند التمرير ───────── */
nav.nav-top { background: transparent !important; box-shadow: none !important; border-bottom-color: transparent !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
nav.nav-top .nav-links a { color: rgba(255, 255, 255, 0.88); }
nav.nav-top .nav-links a:hover { color: #fff; }
nav.nav-top .nav-hamburger span { background: #fff; }
nav.nav-top .lang-toggle, nav.nav-top .theme-toggle { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.3); color: #fff; }
nav.nav-top .lang-sep { color: rgba(255, 255, 255, 0.5); }




/* ═════════ v3 ═════════ */
.nav-cta { display: inline-flex; align-items: center; justify-content: center; text-align: center; white-space: nowrap; }
.mobile-menu-footer { justify-content: center; }
.mobile-menu-footer .btn-primary { width: 100%; justify-content: center; text-align: center; }

/* فواصل متعرجة */
.hx-wave .edge, .ft-wave .edge { stroke: transparent; stroke-width: 1px; }
body:not(.light-mode) .hx-wave .edge, body:not(.light-mode) .ft-wave .edge { stroke: #7b5233; }
footer { position: relative; padding-top: 110px; border-top: 0; }
.ft-wave { position: absolute; top: -1px; left: 0; width: 100%; height: 56px; color: var(--bg); transform: scaleY(-1); pointer-events: none; }
body:not(.light-mode) footer { background: linear-gradient(180deg, #2c0b0a 0%, #160504 100%); }

/* التقييم */
.rt { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rt-stars { display: inline-flex; gap: 2px; }
.rt-s { border: 0; padding: 0 1px; font-size: 24px; line-height: 1; cursor: pointer; font-family: 'Segoe UI Symbol', Arial, sans-serif; background-color: transparent; background-image: linear-gradient(90deg, #f5b301 var(--f, 0%), rgba(150, 150, 150, 0.45) var(--f, 0%)); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; transition: transform 0.15s; }
.rt-s:hover { transform: scale(1.18); }
.rt-s.hov { background-image: linear-gradient(#f5b301, #f5b301); }
.rt-ro .rt-s { pointer-events: none; font-size: 14px; cursor: default; }
.rt-t { font-size: 0.82rem; opacity: 0.8; font-variant-numeric: tabular-nums; }
.rt-ro { display: inline-flex; align-items: center; gap: 6px; }

/* وصف النماذج */
.tl-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.tl-desc { font-size: 0.78rem; font-weight: 300; line-height: 1.5; color: rgba(255, 255, 255, 0.9); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tl-glass .rt-t { color: #fff; font-size: 0.72rem; }
.tpl-lb-left { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tpl-lb-desc { margin: 0; font-size: 0.85rem; font-weight: 300; color: rgba(255, 255, 255, 0.88); }
.tpl-lb-rt .rt-t { color: rgba(255, 255, 255, 0.85); }



/* الأكاديمية: مشغّل + قائمة */
.ac { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; margin-top: 36px; }
.ac-player { position: relative; aspect-ratio: 16 / 9; border-radius: 24px; overflow: hidden; background: #000; box-shadow: 0 22px 50px -22px rgba(0, 0, 0, 0.55); }
.ac-player img, .ac-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.ac-play { position: absolute; top: 50%; left: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; display: grid; place-items: center; color: #fff; cursor: pointer; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.4); background: rgba(230, 19, 18, 0.9); box-shadow: 0 10px 30px rgba(230, 19, 18, 0.5); transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1); }
.ac-play svg { margin: 0; transform: none !important; display: block; }
.ac-player:hover .ac-play { transform: scale(1.1); }
.ac-info { padding: 18px 4px 0; }
.ac-title { margin: 0 0 8px; font-size: 1.35rem; font-weight: 800; color: rgb(var(--text-rgb)); }
.ac-desc { margin: 0 0 14px; font-weight: 300; line-height: 1.9; font-size: 0.98rem; color: rgba(var(--text-rgb), 0.75); }
.ac-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ac-yt { color: var(--red); font-weight: 700; font-size: 0.9rem; text-decoration: none; }
.ac-side { position: relative; min-height: 440px; border-radius: 24px; border: 1px solid var(--surface-border); background: var(--surface); overflow: hidden; }
.ac-side-in { position: absolute; inset: 0; display: flex; flex-direction: column; }
.ac-side-h { padding: 14px 18px; font-weight: 800; border-bottom: 1px solid var(--surface-border); }
.ac-list { flex: 1; min-height: 0; overflow-y: auto; padding: 8px; display: flex; flex-direction: column; gap: 4px; scrollbar-width: thin; }
.ac-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px; text-align: start; font-family: inherit; color: inherit; cursor: pointer; background: none; border: 1px solid transparent; border-radius: 16px; transition: background 0.25s, border-color 0.25s; }
.ac-item:hover { background: rgba(var(--text-rgb), 0.06); }
.ac-item.on { background: rgba(230, 19, 18, 0.1); border-color: rgba(230, 19, 18, 0.45); }
.ac-th { position: relative; flex: 0 0 118px; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #111; }
.ac-th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ac-n { position: absolute; bottom: 4px; inset-inline-end: 4px; font-size: 0.7rem; font-weight: 800; padding: 1px 7px; border-radius: 99px; background: rgba(0, 0, 0, 0.65); color: #fff; }
.ac-tx { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ac-tx .video-title { margin: 0; font-size: 0.95rem; font-weight: 700; }
.ac-ds { font-size: 0.78rem; font-weight: 300; opacity: 0.75; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ac-new { align-self: flex-start; font-size: 0.66rem; font-weight: 800; color: #fff; padding: 1px 8px; border-radius: 99px; background: var(--btn-grad); }
@media (max-width: 900px) {
  .ac { grid-template-columns: 1fr; }
  .ac-side { min-height: 0; }
  .ac-side-in { position: static; }
  .ac-list { max-height: 440px; }
}
@media (max-width: 640px) { .ac-play { width: 60px; height: 60px; margin: -30px 0 0 -30px; } .ac-th { flex-basis: 96px; } }

/* كيف نعمل */
.pr { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; max-width: 1120px; margin: 0 auto; }
.pr-line { position: absolute; top: 36px; inset-inline: 12.5%; height: 0; z-index: 0; background: none; border-top: 2px dashed rgba(230, 19, 18, 0.28); }
.pr-step { position: relative; z-index: 1; padding-top: 92px; }
.pr-ico { position: absolute; top: 0; left: 50%; z-index: 2; width: 72px; height: 72px; transform: translateX(-50%); display: grid; place-items: center; color: #fff; border-radius: 24px; background: var(--btn-grad); box-shadow: var(--btn-rim), 0 14px 30px -12px rgba(230, 19, 18, 0.65); transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1); }
.pr-ico b { position: absolute; top: -8px; inset-inline-end: -8px; width: 26px; height: 26px; display: grid; place-items: center; font-size: 0.78rem; font-weight: 900; color: var(--red); background: var(--darkest); border: 2px solid var(--red); border-radius: 50%; }
.pr-card { height: 100%; padding: 30px 20px 28px; text-align: center; border-radius: 26px; border: 1px solid var(--surface-border); background: linear-gradient(145deg, rgba(var(--text-rgb), 0.05), rgba(var(--text-rgb), 0.02)), var(--darkest); transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s, box-shadow 0.3s; }
.light-mode .pr-card { box-shadow: 0 14px 34px -22px rgba(0, 0, 0, 0.3); }
.pr-step:hover .pr-card { transform: translateY(-6px); border-color: rgba(230, 19, 18, 0.45); box-shadow: 0 22px 44px -24px rgba(230, 19, 18, 0.5); }
.pr-step:hover .pr-ico { transform: translateX(-50%) rotate(-6deg) scale(1.07); }
.pr-card .step-title { margin: 0 0 8px; font-size: 1.1rem; font-weight: 800; }
.pr-card .step-desc { font-size: 0.9rem; font-weight: 300; line-height: 1.8; color: rgba(var(--text-rgb), 0.7); }
.reveal-delay-0 { transition-delay: 0s; }
@media (max-width: 1024px) { .pr { grid-template-columns: 1fr 1fr; row-gap: 44px; } .pr-line { display: none; } }
@media (max-width: 560px) { .pr { grid-template-columns: 1fr; } }

/* جاهز لتحدث فارقاً */
.cta-box { position: relative; isolation: isolate; overflow: hidden; padding: 76px 40px; border-radius: 34px; text-align: center; color: #fff; background: linear-gradient(135deg, #1d0a0a 0%, #0d0d0d 52%, #260a09 100%); border: 1px solid rgba(230, 19, 18, 0.4); box-shadow: 0 34px 80px -34px rgba(230, 19, 18, 0.55); }
.cta-box::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px); background-size: 46px 46px; -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 50%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse 70% 80% at 50% 50%, #000 20%, transparent 75%); }
.cta-orb { position: absolute; z-index: -1; border-radius: 50%; filter: blur(70px); pointer-events: none; }
.cta-orb.o1 { width: 340px; height: 340px; top: -120px; inset-inline-start: -80px; background: rgba(230, 19, 18, 0.55); animation: ctaFloat 9s ease-in-out infinite; }
.cta-orb.o2 { width: 300px; height: 300px; bottom: -130px; inset-inline-end: -60px; background: rgba(255, 90, 60, 0.4); animation: ctaFloat 11s ease-in-out infinite reverse; }
@keyframes ctaFloat { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(30px, 22px); } }
.cta-in { position: relative; }
.cta-title { margin: 0 0 16px; font-size: clamp(28px, 4.6vw, 54px); font-weight: 900; line-height: 1.3; }
.cta-subtitle { max-width: 560px; margin: 0 auto; font-size: 1.05rem; font-weight: 300; line-height: 1.9; color: rgba(255, 255, 255, 0.78); }
.cta-box .btn-outline { color: #fff; border-color: rgba(255, 255, 255, 0.35); background: rgba(255, 255, 255, 0.06); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.cta-box .btn-outline:hover { color: #fff; border-color: #fff; background: rgba(255, 255, 255, 0.14); }
@media (max-width: 768px) { .cta-box { padding: 48px 20px; border-radius: 26px; } }
@media (prefers-reduced-motion: reduce) { .cta-orb { animation: none; } }


/* ───────── Works: بطاقات المروحة ───────── */
.wk-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-bottom: 40px; }
.wk-card { --s: 1; position: relative; display: flex; flex-direction: column; padding: 22px 20px 26px; border-radius: 26px; cursor: pointer; outline: none; border: 1px solid var(--surface-border); background: var(--surface); opacity: 0; transform: translateY(40px); transition: opacity .8s ease var(--d, 0s), transform .8s cubic-bezier(.22, 1, .36, 1) var(--d, 0s), border-color .3s, box-shadow .3s; }
html[dir="rtl"] .wk-card { --s: -1; }
.wk-card.in { opacity: 1; transform: none; }
.wk-card:hover, .wk-card:focus-visible { border-color: rgba(230, 19, 18, .45); box-shadow: 0 24px 50px -28px rgba(230, 19, 18, .5); }
.wk-card:focus-visible { box-shadow: 0 0 0 3px var(--red); }
.wk-badge { align-self: flex-start; margin-bottom: 14px; padding: 2px 10px; font-size: .78rem; font-weight: 800; color: var(--red); border: 1px solid var(--red); border-radius: 999px; }
.wk-cap { margin-bottom: 6px; font-size: 1.1rem; font-weight: 800; line-height: 1.4; }
.wk-desc { margin-bottom: 8px; font-size: .85rem; font-weight: 300; line-height: 1.7; color: rgba(var(--text-rgb), .7); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.wk-desc:empty { display: none; }
.wk-stack { position: relative; width: 80%; margin: auto 0 70px; padding-top: 22px; aspect-ratio: 16 / 10; box-sizing: content-box; }
.wk-sheet, .wk-art { position: absolute; inset: 22px 0 0; display: block; overflow: hidden; border-radius: 14px; transform-origin: 0 100%; transition: transform .45s cubic-bezier(.2, .8, .2, 1), opacity .45s ease; }
html[dir="rtl"] .wk-sheet, html[dir="rtl"] .wk-art { transform-origin: 100% 100%; }
.wk-sheet { background: var(--img) center / cover no-repeat #111; border: 1px solid rgba(255, 255, 255, .14); }
.wk-sheet:nth-child(1) { z-index: 4; transform: rotate(calc(2deg * var(--s))); opacity: .8; }
.wk-sheet:nth-child(2) { z-index: 3; transform: rotate(calc(4deg * var(--s))); opacity: .6; }
.wk-sheet:nth-child(3) { z-index: 2; transform: rotate(calc(6deg * var(--s))); opacity: .4; }
.wk-sheet:nth-child(4) { z-index: 1; transform: rotate(calc(8deg * var(--s))); opacity: .25; }
.wk-art { z-index: 5; background: #111; box-shadow: 0 18px 36px -16px rgba(0, 0, 0, .55); }
.wk-img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.22, 1, .36, 1); }
.wk-card:hover .wk-sheet:nth-child(1), .wk-card:focus-visible .wk-sheet:nth-child(1) { transform: rotate(calc(3.5deg * var(--s))); }
.wk-card:hover .wk-sheet:nth-child(2), .wk-card:focus-visible .wk-sheet:nth-child(2) { transform: rotate(calc(7deg * var(--s))); }
.wk-card:hover .wk-sheet:nth-child(3), .wk-card:focus-visible .wk-sheet:nth-child(3) { transform: rotate(calc(10.5deg * var(--s))); }
.wk-card:hover .wk-sheet:nth-child(4), .wk-card:focus-visible .wk-sheet:nth-child(4) { transform: rotate(calc(14deg * var(--s))); }
.wk-card:hover .wk-art, .wk-card:focus-visible .wk-art { transform: rotate(calc(-3deg * var(--s))); }
.wk-card:hover .wk-img { transform: scale(1.06); }
@media (max-width: 1024px) { .wk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; } }
@media (max-width: 640px) { .wk-grid { grid-template-columns: 1fr; } .wk-stack { width: 85%; } }
@media (prefers-reduced-motion: reduce) { .wk-card { opacity: 1 !important; transform: none !important; } .wk-sheet, .wk-art, .wk-img { transition: none; } }

/* ───────── إصلاحات الجوال ───────── */
/* بطاقات القوالب: شريط زجاجي مدمج (الوصف والتقييم يظهران في المعاينة) */
@media (max-width: 768px) {
  .tl-glass .tl-desc, .tl-glass .rt-ro { display: none; }
  .tl-glass { padding: 6px 6px 6px 12px; border-radius: 14px; }
  .tl-name { font-size: 0.85rem; }
  .tl-dl { padding: 7px 14px; font-size: 0.82rem; gap: 6px; }
}
/* الهيدر: كل العناصر تتسع في العرض ولا يخرج زر القائمة (☰) خارج الشاشة */
@media (max-width: 768px) {
  nav { gap: 8px; }
  nav > div { gap: 6px !important; flex-shrink: 0; }
  .nav-logo { min-width: 0; flex-shrink: 1; }
  .lang-toggle { padding: 6px 10px; font-size: 12px; }
  .theme-toggle { padding: 6px 10px; }
  .nav-cta { padding: 7px 12px; font-size: 12px !important; }
  .nav-hamburger { flex-shrink: 0; }
}
@media (max-width: 420px) {
  .nav-cta { display: none !important; } /* الزر موجود داخل قائمة الجوال */
}

/* ───────── v4 ───────── */
/* شريط زجاجي مضغوط على الكمبيوتر: الاسم + زر التحميل فقط (الوصف يظهر في المعاينة) */
@media (min-width: 769px) {
  .tl-glass .tl-desc { display: none; }
  .tl-glass { inset-inline: 12px; bottom: 12px; padding-block: 7px; padding-inline: 14px 7px; border-radius: 16px; }
  .tl-glass .tl-info { gap: 1px; }
  .tl-glass .tl-name { font-size: 0.9rem; }
  .tl-glass .tl-dl { padding: 8px 16px; font-size: 0.85rem; }
  .tl-glass .rt-ro .rt-s { font-size: 12px; }
  .tl-card::after { inset: 62% 0 0; }
}

/* النجوم: من اليمين لليسار بالعربية، ومن اليسار لليمين بالإنجليزية */
html[dir="rtl"] .rt-s { background-image: linear-gradient(270deg, #f5b301 var(--f, 0%), rgba(150, 150, 150, 0.45) var(--f, 0%)); }
html[dir="rtl"] .rt-s.hov { background-image: linear-gradient(#f5b301, #f5b301); }

/* تقييم الدرس: ضمان بقائه فوق أي عنصر وحجم ضغط مريح */
.ac-info { position: relative; z-index: 2; }
.ac-meta .rt { position: relative; z-index: 3; }
.rt:not(.rt-ro) .rt-s { min-width: 26px; min-height: 30px; touch-action: manipulation; }

/* ───────── v5: بطاقات القوالب ذات الشرائح (مروحة مثل معرض الأعمال) ───────── */
.tl-card.has-s { --s: 1; overflow: visible; background: none; box-shadow: none; margin-bottom: 44px; }
html[dir="rtl"] .tl-card.has-s { --s: -1; }
.tl-card.has-s::after { display: none; }
.tl-card.has-s:hover { box-shadow: none; }
.tl-card.has-s:focus-visible { box-shadow: 0 0 0 3px var(--red); }
.tl-clip { position: absolute; inset: 0; z-index: 5; overflow: hidden; border-radius: 24px; background: #111; box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28); transition: box-shadow 0.45s; }
.tl-clip::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent); pointer-events: none; }
.tl-card.has-s:hover .tl-clip { box-shadow: 0 22px 56px rgba(0, 0, 0, 0.4); }
.tl-card.has-s .tl-badge, .tl-card.has-s .tl-zoom, .tl-card.has-s .tl-glass { z-index: 6; }
.tl-sheets { position: absolute; inset: 0; pointer-events: none; }
.tl-sheet { position: absolute; inset: 0; border-radius: 24px; background: var(--img) center / cover no-repeat #111; border: 1px solid rgba(255, 255, 255, 0.14); transform-origin: 0 100%; transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1); }
html[dir="rtl"] .tl-sheet { transform-origin: 100% 100%; }
.tl-sheet:nth-child(1) { z-index: 4; transform: rotate(calc(1.5deg * var(--s))); opacity: 0.85; }
.tl-sheet:nth-child(2) { z-index: 3; transform: rotate(calc(3deg * var(--s))); opacity: 0.65; }
.tl-sheet:nth-child(3) { z-index: 2; transform: rotate(calc(4.5deg * var(--s))); opacity: 0.45; }
.tl-sheet:nth-child(4) { z-index: 1; transform: rotate(calc(6deg * var(--s))); opacity: 0.3; }
.tl-card.has-s:hover .tl-sheet:nth-child(1), .tl-card.has-s:focus-visible .tl-sheet:nth-child(1) { transform: rotate(calc(2.5deg * var(--s))); }
.tl-card.has-s:hover .tl-sheet:nth-child(2), .tl-card.has-s:focus-visible .tl-sheet:nth-child(2) { transform: rotate(calc(5deg * var(--s))); }
.tl-card.has-s:hover .tl-sheet:nth-child(3), .tl-card.has-s:focus-visible .tl-sheet:nth-child(3) { transform: rotate(calc(7.5deg * var(--s))); }
.tl-card.has-s:hover .tl-sheet:nth-child(4), .tl-card.has-s:focus-visible .tl-sheet:nth-child(4) { transform: rotate(calc(10deg * var(--s))); }
@media (max-width: 768px) { .tl-card.has-s { margin-bottom: 38px; } .tl-clip, .tl-sheet { border-radius: 20px; } }
@media (prefers-reduced-motion: reduce) { .tl-sheet, .tl-clip { transition: none !important; } }

/* ───────── v5: خطوط حمراء رفيعة بزوايا مستديرة (شيفرون) على الأطراف خلف كل الأقسام (ما عدا الهيرو) ───────── */
body { position: relative; }
body::before, body::after { content: ""; position: absolute; top: 0; bottom: 0; width: 320px; z-index: -1; pointer-events: none; background-repeat: repeat-y; }
body::before { left: 0; background-image: url('image/flow-a.svg'); background-size: 320px 1500px; background-position: 0 0; opacity: 0.32; }
body::after { right: 0; background-image: url('image/flow-b.svg'); background-size: 320px 1900px; background-position: 100% 0; opacity: 0.28; }
body:has(#home)::before, body:has(#home)::after { top: max(100svh, 600px); }
@media (max-width: 768px) { body::before, body::after { width: 140px; } body::before { background-size: 140px 656px; } body::after { background-size: 140px 831px; } }
body.light-mode::before { opacity: 0.26; }
body.light-mode::after { opacity: 0.22; }
#process { background: transparent !important; }

/* ───────── v6: إبعاد مروحة الشرائح عن الخط الأوسط في خط القوالب الزمني ───────── */
.tl-item.start:has(.tl-card.has-s) { margin-inline-end: 34px; }
@media (max-width: 768px) {
  .tl-item.start:has(.tl-card.has-s), .tl-item.end:has(.tl-card.has-s) { margin-inline-end: 22px; }
}

/* عناوين الدروس الحقيقية قد تكون طويلة */
.ac-tx .video-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.5; }


/* ───────── أضف هذا الكود في آخر style.css ─────────
   (1) وصف الدرس سطران + "عرض المزيد"  (2) العدّادات  (3) التعليقات  (4) لوحة التعليقات داخل معاينة القوالب */

/* (1) وصف الدرس: سطران + "عرض المزيد" */
.ac-desc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 0 0 14px; }
.ac-more { display: inline-block; margin: -6px 0 14px; font-size: 0.9rem; font-weight: 700; color: var(--red); text-decoration: none; }
.ac-more:hover { text-decoration: underline; }
.ac-more[hidden] { display: none; }

/* (2) العدّادات: تحميلات القوالب ومشاهدات الدروس */
.ct { display: inline-flex; align-items: center; gap: 5px; font-size: 0.82rem; font-variant-numeric: tabular-nums; opacity: 0.9; }
.ct[hidden] { display: none; }
.ct svg { width: 14px; height: 14px; flex: none; }
.tl-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tl-glass .ct { color: #fff; font-size: 0.72rem; text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45); }
.ac-meta .ct { color: rgba(var(--text-rgb), 0.7); }
.tpl-lb-line { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 2px; }
.tpl-lb-line .ct { color: rgba(255, 255, 255, 0.85); }
@media (max-width: 768px) { .tl-glass .ct { display: none; } }

/* (3) التعليقات */
.ac-cm { max-width: 920px; margin-top: 34px; }
.cm { --cm-tx: rgb(var(--text-rgb)); --cm-mut: rgba(var(--text-rgb), 0.62); --cm-bg: rgba(var(--text-rgb), 0.04); --cm-in: rgba(var(--text-rgb), 0.05); --cm-bd: var(--surface-border); color: var(--cm-tx); }
.tpl-lb .cm { --cm-tx: #fff; --cm-mut: rgba(255, 255, 255, 0.66); --cm-bg: rgba(255, 255, 255, 0.07); --cm-in: rgba(255, 255, 255, 0.1); --cm-bd: rgba(255, 255, 255, 0.26); }
.cm-h { display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px; }
.cm-title { font-size: 1.15rem; font-weight: 800; }
.cm-count { color: var(--cm-mut); font-size: 0.9rem; }
.cm-form { position: relative; display: grid; gap: 10px; margin-bottom: 22px; padding: 16px; border-radius: 20px; border: 1px solid var(--cm-bd); background: var(--cm-bg); }
.cm-name, .cm-text { width: 100%; font: inherit; font-size: 0.95rem; color: var(--cm-tx); background: var(--cm-in); border: 1px solid var(--cm-bd); border-radius: 12px; padding: 10px 14px; outline: none; transition: border-color 0.2s; }
.cm-name:focus, .cm-text:focus { border-color: var(--red); }
.cm-name::placeholder, .cm-text::placeholder { color: var(--cm-mut); }
.cm-text { resize: vertical; min-height: 84px; line-height: 1.7; }
.cm-hp { position: absolute !important; top: 0; inset-inline-start: 0; width: 1px; height: 1px; margin: 0; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); opacity: 0; pointer-events: none; }
.cm-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.cm-note { font-size: 0.78rem; color: var(--cm-mut); }
.cm-send { cursor: pointer; border: 0; border-radius: 999px; padding: 9px 28px; font: inherit; font-weight: 700; color: #fff; background: var(--btn-grad); box-shadow: var(--btn-rim), var(--btn-glow); transition: transform 0.2s, opacity 0.2s; }
.cm-send:hover { transform: translateY(-1px); }
.cm-send:disabled { opacity: 0.55; cursor: wait; transform: none; }
.cm-msg { min-height: 1.2em; font-size: 0.86rem; }
.cm-msg.ok { color: #2ecc71; }
.cm-msg.err { color: #ff6b6a; }
.cm-legal { font-size: 0.7rem; line-height: 1.6; color: var(--cm-mut); }
.cm-legal a { color: inherit; text-decoration: underline; }
.cm-legal[hidden] { display: none; }
.cm-list { display: grid; gap: 12px; }
.cm-i { padding: 14px 16px; border-radius: 18px; border: 1px solid var(--cm-bd); background: var(--cm-bg); }
.cm-top { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.cm-av { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; font-weight: 800; color: var(--red); background: rgba(230, 19, 18, 0.14); border: 1px solid rgba(230, 19, 18, 0.4); }
.cm-n { font-weight: 700; }
.cm-d { margin-inline-start: auto; font-size: 0.76rem; color: var(--cm-mut); }
.cm-t { margin: 0; font-weight: 300; line-height: 1.85; white-space: pre-wrap; overflow-wrap: anywhere; }
.cm-r { margin-top: 10px; padding: 10px 14px; border-radius: 14px; border-inline-start: 3px solid var(--red); background: rgba(230, 19, 18, 0.08); }
.cm-r b { display: block; margin-bottom: 2px; font-size: 0.82rem; color: var(--red); }
.cm-r p { margin: 0; font-weight: 300; line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; }
.cm-empty { padding: 18px 0; text-align: center; color: var(--cm-mut); }
.tpl-lb .cm-r { background: rgba(230, 19, 18, 0.18); }
.grecaptcha-badge { visibility: hidden; } /* الشعار مخفي، ونص الإشعار الإلزامي من Google يظهر أسفل نموذج التعليق */

/* (4) لوحة التعليقات داخل معاينة القوالب */
.tpl-lb-cmb { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font: inherit; font-size: 0.85rem; font-weight: 700; color: #fff; padding: 6px 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.35); background: rgba(255, 255, 255, 0.14); transition: background 0.25s; }
.tpl-lb-cmb:hover, .tpl-lb.cm-open .tpl-lb-cmb { background: var(--btn-grad); }
.tpl-lb-cm { position: absolute; inset-inline: 0; bottom: 0; z-index: 4; max-height: 78vh; overflow: auto; overscroll-behavior: contain; padding: 52px max(20px, calc((100% - 760px) / 2)) 26px; border-radius: 26px 26px 0 0; border-top: 1px solid rgba(255, 255, 255, 0.22); background: rgba(16, 16, 18, 0.97); color: #fff; cursor: auto; visibility: hidden; transform: translateY(102%); transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s 0.4s; }
.tpl-lb.cm-open .tpl-lb-cm { visibility: visible; transform: none; transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s; }
.tpl-lb-cmx { position: absolute; top: 12px; inset-inline-end: 16px; width: 34px; height: 34px; display: grid; place-items: center; cursor: pointer; color: #fff; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.3); background: rgba(255, 255, 255, 0.12); }
.tpl-lb-cmx:hover { background: var(--btn-grad); }
@media (prefers-reduced-motion: reduce) { .tpl-lb-cm { transition: none !important; } }

/* ── أزرار المشاركة (واتساب + نسخ الرابط) ── */
.tpl-lb-sh { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font: inherit; font-size: 0.85rem; font-weight: 700; color: #fff; padding: 6px 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.35); background: rgba(255, 255, 255, 0.14); transition: background 0.25s; }
.tpl-lb-sh:hover { background: rgba(255, 255, 255, 0.26); }
.tpl-lb-sh.wa svg { color: #25d366; }
.ac-share { display: inline-flex; gap: 8px; flex-wrap: wrap; }
.ac-sh { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font: inherit; font-size: 0.82rem; font-weight: 700; color: inherit; padding: 5px 12px; border-radius: 999px; border: 1px solid rgba(var(--text-rgb), 0.22); background: rgba(var(--text-rgb), 0.05); transition: background 0.25s, border-color 0.25s; }
.ac-sh:hover { border-color: var(--red); background: rgba(230, 19, 18, 0.1); }
.ac-sh.wa svg { color: #25d366; }

/* ── أدوات صفحة النماذج: بحث + تصنيف + ترتيب ── */
.tpl-bar { display: flex; flex-direction: column; gap: 14px; margin: 0 0 26px; }
.tpl-top { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.tpl-search { position: relative; flex: 1 1 260px; display: flex; align-items: center; }
.tpl-search svg { position: absolute; inset-inline-start: 16px; width: 18px; height: 18px; opacity: 0.6; pointer-events: none; }
.tpl-q { width: 100%; font: inherit; font-size: 0.95rem; color: inherit; padding: 12px 16px; padding-inline-start: 44px; border-radius: 999px; border: 1px solid rgba(var(--text-rgb), 0.2); background: rgba(var(--text-rgb), 0.05); outline: none; transition: border-color 0.25s, box-shadow 0.25s; }
.tpl-q:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(230, 19, 18, 0.18); }
.tpl-sort { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; font-weight: 600; }
.tpl-sel { font: inherit; font-size: 0.9rem; color: inherit; cursor: pointer; padding: 11px 16px; border-radius: 999px; border: 1px solid rgba(var(--text-rgb), 0.2); background: rgba(var(--text-rgb), 0.05); outline: none; }
.tpl-sel:focus { border-color: var(--red); }
.tpl-sel { -webkit-appearance: none; appearance: none; padding-left: 38px; padding-right: 16px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23999' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: left 15px center; }
html[lang="en"] .tpl-sel { padding-left: 16px; padding-right: 38px; background-position: right 15px center; }
.tpl-sel option { color: #111; background: #fff; }
.tpl-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tpl-chip { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 0.85rem; font-weight: 700; color: inherit; cursor: pointer; padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(var(--text-rgb), 0.2); background: rgba(var(--text-rgb), 0.04); transition: border-color 0.25s, background 0.25s; }
.tpl-chip:hover { border-color: var(--red); }
.tpl-chip[aria-pressed="true"] { background: var(--btn-grad); border-color: transparent; color: #fff; }
.tpl-chip small { opacity: 0.7; font-weight: 600; }
.tpl-count { font-size: 0.85rem; opacity: 0.65; }
.tpl-empty { text-align: center; padding: 48px 16px; }
.tpl-empty p { margin: 0 0 14px; opacity: 0.8; }
.tpl-empty[hidden] { display: none; }

/* ── نموذج طلب الخدمة ── */
.rq-card { max-width: 760px; margin: 0 auto; padding: clamp(20px, 4vw, 36px); border-radius: 28px; border: 1px solid var(--surface-border); background: linear-gradient(145deg, rgba(var(--text-rgb), 0.05), rgba(var(--text-rgb), 0.02)); }
.rq-form { display: grid; gap: 16px; position: relative; }
.rq-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.rq-f { display: grid; gap: 7px; font-size: 0.88rem; font-weight: 700; }
.rq-f > span { color: var(--cm-mut); font-weight: 600; }
.rq-form select.cm-name { cursor: pointer; }
.rq-form select.cm-name option { color: #111; background: #fff; }
.rq-act { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.rq-ok { text-align: center; padding: 10px 0; }
.rq-tick { width: 64px; height: 64px; margin: 0 auto 14px; display: grid; place-items: center; font-size: 2rem; font-weight: 900; color: #fff; border-radius: 50%; background: linear-gradient(135deg, #1faa59, #2ecc71); }
.rq-ok h3 { font-size: 1.4rem; margin-bottom: 6px; }
.rq-ok p { opacity: 0.8; margin-bottom: 6px; }
.rq-ref b { color: var(--red); letter-spacing: 1px; }
.rq-oka { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
@media (max-width: 640px) { .rq-row { grid-template-columns: 1fr; } }

/* ───── آراء زوار الموقع (reviews.js) ───── */
#siteReviews { max-width: 1100px; margin: 48px auto 0; padding: 0 20px; }
.rv-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.rv-title { font-size: 1.4rem; font-weight: 800; margin: 0 0 4px; }
.rv-sub { margin: 0; font-size: 0.9rem; opacity: 0.7; font-weight: 300; }
.rv-side { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.rv-avg { display: flex; align-items: baseline; gap: 6px; }
.rv-avg b { font-size: 1.5rem; color: var(--red); }
.rv-avs { color: var(--red); letter-spacing: 1px; }
.rv-avg small { opacity: 0.65; }
.rv-form { display: grid; gap: 16px; margin-bottom: 24px; padding: clamp(16px, 3vw, 26px); border-radius: 24px; border: 1px solid var(--surface-border); background: linear-gradient(145deg, rgba(var(--text-rgb), 0.05), rgba(var(--text-rgb), 0.02)); position: relative; }
.rv-pick { display: flex; gap: 4px; }
.rv-st { cursor: pointer; border: 0; background: none; padding: 0 2px; font-size: 1.9rem; line-height: 1; color: rgba(var(--text-rgb), 0.25); transition: transform 0.15s, color 0.15s; }
.rv-st:hover { transform: scale(1.15); }
.rv-st.on { color: var(--red); }
.rv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.rv-card { padding: 20px; border-radius: 22px; border: 1px solid var(--surface-border); background: linear-gradient(145deg, rgba(var(--text-rgb), 0.05), rgba(var(--text-rgb), 0.015)); }
.rv-top { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.rv-av { flex: none; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; font-weight: 800; color: var(--red); background: rgba(230, 19, 18, 0.14); border: 1px solid rgba(230, 19, 18, 0.4); }
.rv-nm { display: grid; line-height: 1.3; }
.rv-nm time { font-size: 0.76rem; opacity: 0.6; }
.rv-stars { color: var(--red); letter-spacing: 2px; margin-bottom: 6px; }
.rv-tx { margin: 0; font-weight: 300; line-height: 1.85; white-space: pre-wrap; overflow-wrap: anywhere; }
.rv-rp { margin-top: 10px; padding: 10px 14px; border-radius: 14px; border-inline-start: 3px solid var(--red); background: rgba(230, 19, 18, 0.08); }
.rv-rp b { display: block; font-size: 0.82rem; color: var(--red); margin-bottom: 2px; }
.rv-rp p { margin: 0; font-weight: 300; line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; }
.rv-more { display: block; margin: 20px auto 0; cursor: pointer; }
.rv-empty { text-align: center; opacity: 0.7; padding: 10px 0; }

/* ───── القائمة البريدية (subscribe.js) ───── */
.sb-card { max-width: 680px; }
.sb-form { display: grid; gap: 14px; position: relative; }
.sb-chk { display: flex; gap: 10px; align-items: flex-start; font-size: 0.84rem; line-height: 1.7; color: var(--cm-mut); cursor: pointer; }
.sb-chk input { flex: none; width: 18px; height: 18px; margin-top: 3px; accent-color: var(--red); cursor: pointer; }

/* ───── الأسئلة الشائعة (faq.js) ───── */
.fq-wrap { max-width: 1000px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 22px; align-items: stretch; }
.fq-acc { display: none; }
.fq-nav { display: grid; gap: 8px; align-content: start; }
.fq-t { cursor: pointer; display: flex; align-items: center; gap: 12px; text-align: start; font: inherit; font-weight: 600; font-size: 0.95rem; color: inherit; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--surface-border); border-inline-start: 3px solid transparent; background: rgba(var(--text-rgb), 0.035); transition: background 0.2s, border-color 0.2s, transform 0.2s; }
.fq-t:hover { background: rgba(var(--text-rgb), 0.07); }
.fq-t:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.fq-tn { flex: none; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; font-size: 0.78rem; font-weight: 800; color: var(--red); background: rgba(230, 19, 18, 0.12); }
.fq-tq { line-height: 1.5; }
.fq-t.on { border-color: rgba(230, 19, 18, 0.45); border-inline-start-color: var(--red); background: linear-gradient(135deg, rgba(230, 19, 18, 0.13), rgba(230, 19, 18, 0.04)); }
.fq-t.on .fq-tn { color: #fff; background: var(--red); }
.fq-panel { position: relative; display: flex; flex-direction: column; justify-content: center; padding: clamp(22px, 3vw, 34px); border-radius: 26px; border: 1px solid rgba(230, 19, 18, 0.3); background: linear-gradient(145deg, rgba(var(--text-rgb), 0.06), rgba(var(--text-rgb), 0.02)); overflow: hidden; }
.fq-panel::before { content: ''; position: absolute; inset-block-start: -60px; inset-inline-end: -60px; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(circle, rgba(230, 19, 18, 0.22), transparent 70%); pointer-events: none; }
.fq-panel.in > * { animation: fqIn 0.35s ease both; }
.fq-panel.in > *:nth-child(2) { animation-delay: 0.04s; }
.fq-panel.in > *:nth-child(3) { animation-delay: 0.08s; }
.fq-panel.in > *:nth-child(4) { animation-delay: 0.12s; }
@keyframes fqIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.fq-n { font-size: 2.6rem; font-weight: 900; line-height: 1; color: rgba(230, 19, 18, 0.35); margin-bottom: 6px; }
.fq-pq { font-size: 1.3rem; font-weight: 800; line-height: 1.5; margin: 0 0 10px; }
.fq-pa { margin: 0; font-size: 1.02rem; font-weight: 300; line-height: 2; opacity: 0.9; }
.fq-act { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.fq-btn { padding: 9px 20px; font-size: 0.9rem; }
.fq-i { border-radius: 16px; border: 1px solid var(--surface-border); background: rgba(var(--text-rgb), 0.04); }
.fq-i[open] { border-color: rgba(230, 19, 18, 0.45); background: linear-gradient(135deg, rgba(230, 19, 18, 0.1), rgba(230, 19, 18, 0.03)); }
.fq-q { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 16px; font-weight: 700; font-size: 0.95rem; line-height: 1.5; }
.fq-q::-webkit-details-marker { display: none; }
.fq-q::after { content: '+'; flex: none; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; font-size: 1.1rem; line-height: 1; color: var(--red); background: rgba(230, 19, 18, 0.12); }
.fq-i[open] .fq-q::after { content: '−'; }
.fq-q:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.fq-a { margin: 0; padding: 0 16px 15px; font-size: 0.92rem; font-weight: 300; line-height: 1.9; opacity: 0.9; }
@media (max-width: 820px) {
  .fq-wrap { display: none; }
  .fq-acc { display: grid; gap: 8px; max-width: 640px; margin: 0 auto; }
}

/* ───── المدونة (blog.html + blog/*.html + blog-teaser.js) ───── */
.bl-main { padding: 100px 20px 48px; max-width: 1100px; margin: 0 auto; }
.bl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.bl-card { display: flex; flex-direction: column; border-radius: 22px; overflow: hidden; text-decoration: none; color: inherit; border: 1px solid var(--surface-border); background: linear-gradient(145deg, rgba(var(--text-rgb), 0.05), rgba(var(--text-rgb), 0.015)); transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s; }
.bl-card[hidden] { display: none; }
.bl-card:hover { transform: translateY(-4px); border-color: rgba(230, 19, 18, 0.5); box-shadow: 0 16px 30px var(--shadow); }
.bl-cov { display: flex; align-items: flex-end; min-height: 96px; padding: 14px 16px; background: linear-gradient(135deg, hsl(var(--h) 65% 36%), hsl(calc(var(--h) + 35) 65% 20%)); }
.bl-cov span { font-size: 0.78rem; font-weight: 800; color: #fff; padding: 3px 12px; border-radius: 999px; background: rgba(0, 0, 0, 0.28); backdrop-filter: blur(4px); }
.bl-cb { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 18px; flex: 1; }
.bl-ct { font-size: 1.05rem; font-weight: 800; line-height: 1.6; }
.bl-cd { font-size: 0.88rem; font-weight: 300; line-height: 1.8; opacity: 0.8; }
.bl-cm { margin-top: auto; font-size: 0.78rem; opacity: 0.6; }
.bl-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.bl-chip { cursor: pointer; font: inherit; font-size: 0.88rem; font-weight: 700; color: inherit; padding: 7px 18px; border-radius: 999px; border: 1px solid var(--surface-border); background: rgba(var(--text-rgb), 0.04); transition: background 0.2s, border-color 0.2s; }
.bl-chip:hover { background: rgba(var(--text-rgb), 0.08); }
.bl-chip.on { color: #fff; border-color: var(--red); background: var(--red); }
.bl-empty { opacity: 0.7; }
.bl-back { margin-top: 36px; text-align: center; }
.bl-art { max-width: 760px; margin: 0 auto; }
.bl-crumb { display: flex; gap: 8px; align-items: center; font-size: 0.85rem; opacity: 0.75; margin-bottom: 18px; }
.bl-crumb a { color: inherit; text-decoration: none; }
.bl-crumb a:hover { color: var(--red); }
.bl-head { margin-bottom: 26px; }
.bl-tag { display: inline-block; font-size: 0.78rem; font-weight: 800; color: var(--red); padding: 4px 14px; border-radius: 999px; background: rgba(230, 19, 18, 0.12); border: 1px solid rgba(230, 19, 18, 0.35); }
.bl-head h1 { font-size: clamp(1.7rem, 4.5vw, 2.5rem); line-height: 1.45; font-weight: 900; margin: 14px 0 10px; }
.bl-meta { font-size: 0.88rem; opacity: 0.65; margin: 0; }
.bl-body { font-size: 1.05rem; line-height: 2.05; font-weight: 300; }
.bl-body h2 { font-size: 1.4rem; font-weight: 800; line-height: 1.6; margin: 34px 0 10px; }
.bl-body h3 { font-size: 1.15rem; font-weight: 800; margin: 24px 0 8px; }
.bl-body p { margin: 0 0 14px; }
.bl-body ul, .bl-body ol { margin: 0 0 16px; padding-inline-start: 1.4em; }
.bl-body li { margin-bottom: 6px; }
.bl-body a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.bl-body strong { font-weight: 800; }
.bl-body blockquote { margin: 18px 0; padding: 14px 18px; border-radius: 14px; border-inline-start: 4px solid var(--red); background: rgba(230, 19, 18, 0.08); font-weight: 600; line-height: 1.9; }
.bl-cta { margin: 40px 0 18px; padding: clamp(20px, 4vw, 30px); border-radius: 24px; text-align: center; border: 1px solid rgba(230, 19, 18, 0.35); background: linear-gradient(145deg, rgba(230, 19, 18, 0.12), rgba(230, 19, 18, 0.03)); }
.bl-cta h2 { font-size: 1.3rem; font-weight: 800; margin: 0 0 6px; }
.bl-cta p { margin: 0 0 16px; opacity: 0.85; }
.bl-cta-b { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.bl-share { text-align: center; font-size: 0.9rem; opacity: 0.8; }
.bl-share a { color: var(--red); }
.bl-more { margin-top: 56px; }
.bl-more h2 { font-size: 1.3rem; font-weight: 800; margin: 0 0 16px; }
/* مقتطف المدونة في الصفحة الرئيسية */
#blog .bl-grid { max-width: 1100px; margin: 0 auto; }
.bl-all { margin-top: 24px; text-align: center; }

/* ───── الأسعار (pricing.js) ───── */
.pc-grid { max-width: 1100px; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; }
.pc-card { flex: 0 1 330px; min-width: min(250px, 100%); text-align: center; align-items: center; display: flex; flex-direction: column; gap: 10px; padding: 24px 22px; border-radius: 24px; border: 1px solid var(--surface-border); background: linear-gradient(145deg, rgba(var(--text-rgb), 0.06), rgba(var(--text-rgb), 0.02)); transition: transform 0.2s, border-color 0.2s; }
.pc-card:hover { transform: translateY(-4px); border-color: rgba(230, 19, 18, 0.5); }
.pc-name { font-size: 1.02rem; font-weight: 800; line-height: 1.6; margin: 0; }
.pc-price { font-size: 1.7rem; font-weight: 900; color: var(--red); line-height: 1.3; }
.pc-note { margin: 0; font-size: 0.88rem; font-weight: 300; line-height: 1.8; opacity: 0.8; flex: 1; }
.pc-btn { align-self: center; margin-top: 6px; }
.pc-foot { max-width: 760px; margin: 22px auto 0; text-align: center; font-size: 0.88rem; line-height: 1.9; opacity: 0.7; }

/* ───────── تكثيف الصفحة الرئيسية (الدفعة 1) ───────── */
section:not(#home):not(#stats) { padding-block: 64px; }
.section-header { margin-bottom: 34px; }
footer { padding-top: 92px; }
.tl { margin-top: 28px; padding-bottom: 36px; }
.tl-item { max-width: 450px; }
.tl-row + .tl-row { margin-top: -120px; }
@media (max-width: 768px) {
  section:not(#home):not(#stats) { padding-block: 46px; }
  .section-header { margin-bottom: 24px; }
  .tl-row + .tl-row { margin-top: 18px; }
  .tl-row:nth-child(n+6) { display: none; } /* أول 4 قوالب فقط؛ الباقي في صفحة "عرض جميع النماذج" */
}
@media (max-width: 640px) {
  /* الخدمات: شريط أفقي يُسحب باليد بدل بطاقات طويلة فوق بعضها */
  .services-grid { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; margin-inline: -4vw; padding: 4px 4vw 14px; scrollbar-width: none; }
  .services-grid::-webkit-scrollbar { display: none; }
  .services-grid .service-card { flex: 0 0 80%; scroll-snap-align: center; opacity: 1 !important; transform: none !important; }
  /* خطوات العمل: عمودان */
  .pr { grid-template-columns: 1fr 1fr; gap: 12px; row-gap: 34px; }
  .pr-step { padding-top: 40px; }
  .pr-ico { width: 52px; height: 52px; border-radius: 18px; }
  .pr-card { padding: 34px 12px 16px; border-radius: 20px; }
  .pr-card .step-title { font-size: 0.98rem; }
  .pr-card .step-desc { font-size: 0.8rem; line-height: 1.7; }
  /* التذييل: عمودان للروابط */
  footer { padding-top: 84px; }
  .footer-container { grid-template-columns: 1fr 1fr; gap: 26px 16px; margin-bottom: 30px; }
  .footer-container > .footer-brand, .footer-container > .footer-contact { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  /* المدونة والأسعار: شريط أفقي */
  .bl-grid, .pc-grid { display: flex; flex-wrap: nowrap; justify-content: flex-start; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; margin-inline: -4vw; padding: 4px 4vw 14px; scrollbar-width: none; }
  .bl-grid::-webkit-scrollbar, .pc-grid::-webkit-scrollbar { display: none; }
  .bl-grid > .bl-card, .pc-grid > .pc-card { flex: 0 0 80%; min-width: 0; scroll-snap-align: center; opacity: 1 !important; transform: none !important; }
  .pc-grid > .pc-card:only-child { margin-inline: auto; }
  /* الأكاديمية: تعليق أقصر */
  .cm-text { min-height: 60px; height: 60px; }
}
@media (min-width: 641px) {
  .service-card { padding: 28px 26px; }
  .service-features li { padding-block: 3px; }
  .service-icon { margin-bottom: 14px; }
}

/* التعليقات في الأكاديمية: شريط مطوي يُفتح عند الضغط */
.cm-fold .cm-h { cursor: pointer; align-items: center; margin-bottom: 0; padding: 12px 18px; border: 1px solid var(--cm-bd); border-radius: 16px; background: var(--cm-bg); transition: border-color 0.2s; }
.cm-fold .cm-h:hover, .cm-fold .cm-h:focus-visible { border-color: rgba(230, 19, 18, 0.5); outline: none; }
.cm-fold .cm-h::after { content: ""; margin-inline-start: auto; width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin-top: -4px; opacity: 0.7; transition: transform 0.25s; }
.cm-fold.open .cm-h { margin-bottom: 12px; }
.cm-fold.open .cm-h::after { transform: rotate(-135deg); }
.cm-fold:not(.open) .cm-form, .cm-fold:not(.open) .cm-list { display: none; }
.cm-fold .cm-title { font-size: 1rem; }

/* ───────── الدفعة 2: الأسعار داخل بطاقات الخدمات، زر الطلب العائم، اشتراك مضغوط ───────── */
.svc-price { display: flex; flex-direction: column; gap: 2px; margin: 16px 0 4px; padding: 10px 14px; border-radius: 14px; background: rgba(230, 19, 18, 0.09); border: 1px solid rgba(230, 19, 18, 0.28); }
.svc-price b { font-size: 1.05rem; font-weight: 800; color: var(--red); line-height: 1.5; }
.svc-price small { font-size: 0.8rem; opacity: 0.75; line-height: 1.6; }
#services .pc-foot { max-width: 760px; margin: 18px auto 0; text-align: center; font-size: 0.88rem; line-height: 1.9; opacity: 0.7; }
.cta-box { padding-block: 52px; }

/* ───────── أزرار عائمة صغيرة: واتساب + طلب عرض سعر (دائرتان فوق بعض، تظهران وتختفيان معاً) ───────── */
html { overflow-x: clip; }
.whatsapp-float { bottom: 18px; right: 16px; width: 44px; height: 44px; animation: fabPulse 2.6s 5; box-shadow: 0 6px 18px rgba(37, 211, 102, 0.35); transition: opacity 0.3s, transform 0.3s, box-shadow 0.3s; }
.whatsapp-float .whatsapp-icon svg { width: 22px; height: 22px; }
.whatsapp-float:hover { transform: scale(1.08); }
html[dir="ltr"] .whatsapp-float { right: auto; left: 16px; }
.whatsapp-tooltip { right: calc(100% + 10px); font-size: 12px; padding: 5px 12px; }
html[dir="ltr"] .whatsapp-tooltip { right: auto; left: calc(100% + 10px); }
.whatsapp-float.pop .whatsapp-tooltip { opacity: 1; visibility: visible; }
.whatsapp-float.fab-off, .sticky-cta.fab-off { opacity: 0; transform: scale(0.6) translateY(10px); pointer-events: none; }
@keyframes fabPulse { 0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.45); } 70% { box-shadow: 0 0 0 10px rgba(37, 211, 102, 0); } 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); } }
.sticky-cta { position: fixed; z-index: 999; bottom: 72px; right: 20px; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; color: #fff; text-decoration: none; background: var(--btn-grad); box-shadow: var(--btn-rim), 0 6px 16px -6px rgba(230, 19, 18, 0.7); transition: opacity 0.3s, transform 0.3s; }
html[dir="ltr"] .sticky-cta { right: auto; left: 20px; }
.sticky-cta:hover { transform: scale(1.08); }
.sticky-cta svg { width: 17px; height: 17px; }
.sc-label { position: absolute; right: calc(100% + 10px); top: 50%; transform: translateY(-50%); padding: 5px 12px; border-radius: 40px; background: var(--overlay, rgba(0, 0, 0, 0.8)); backdrop-filter: blur(8px); color: #fff; font-size: 12px; font-weight: 600; white-space: nowrap; opacity: 0; visibility: hidden; transition: 0.2s; pointer-events: none; }
html[dir="ltr"] .sc-label { right: auto; left: calc(100% + 10px); }
.sticky-cta:hover .sc-label, .sticky-cta.pop .sc-label { opacity: 1; visibility: visible; }
@media (max-width: 640px) {
  .whatsapp-float { bottom: 14px; right: 12px; width: 42px; height: 42px; }
  html[dir="ltr"] .whatsapp-float { left: 12px; }
  .sticky-cta { bottom: 64px; right: 16px; width: 34px; height: 34px; }
  html[dir="ltr"] .sticky-cta { left: 16px; }
}
@media (prefers-reduced-motion: reduce) { .whatsapp-float { animation: none; } }

/* المتابعة بالبريد: بطاقة مضغوطة وحقول بعرض البطاقة */
.sb-card { max-width: 600px; padding: 22px 26px; }
.sb-form { gap: 10px; }
.sb-card .rq-row { width: 100%; }
.sb-card .rq-f { min-width: 0; flex: 1; }
.sb-card .rq-f input { width: 100%; }

/* أداء: إيقاف الحركات المستمرة خارج الشاشة */
.pz, .pz *, .pz *::before, .pz *::after { animation-play-state: paused !important; }

/* ===== إلغاء تأثير البلور (backdrop-filter) لأنه يُبطئ التمرير، واستبداله بلون خمري شفاف ===== */
*, *::before, *::after { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
nav { background: rgba(var(--bg-rgb), 0.97); }
.floating-badge, .mobile-menu { background: rgba(var(--darkest-rgb), 0.98); }
.tl-glass { background: rgba(88, 10, 20, 0.74); border-color: rgba(255, 255, 255, 0.18); }
.tl-zoom, .tpl-lb-nav { background: rgba(88, 10, 20, 0.78); border-color: rgba(255, 255, 255, 0.22); }
.tpl-lb-fig figcaption { background: rgba(88, 10, 20, 0.8); border-color: rgba(255, 255, 255, 0.18); }
.tpl-lb { background: rgba(20, 4, 8, 0.93); }
.cta-box .btn-outline { background: rgba(88, 10, 20, 0.45); }
.bl-cov span { background: rgba(88, 10, 20, 0.72); }
.sc-label { background: rgba(88, 10, 20, 0.92); }
.testimonial-card { background: linear-gradient(145deg, rgba(var(--white-rgb), 0.05), rgba(var(--white-rgb), 0.02)); }
/* كُرات الإضاءة في قسم الدعوة: تدرّج لوني بدل filter:blur(70px) الثقيل، وبنفس الشكل تقريباً */
.cta-orb { filter: none !important; }
.cta-orb.o1 { background: radial-gradient(circle, rgba(230, 19, 18, 0.5) 0%, rgba(230, 19, 18, 0) 68%); }
.cta-orb.o2 { background: radial-gradient(circle, rgba(255, 90, 60, 0.36) 0%, rgba(255, 90, 60, 0) 68%); }

/* ===== سلايدر قبل/بعد ===== */
#beforeafter { padding-top: 40px; }
.ba-wrap { max-width: 880px; margin: 0 auto; }
.ba-stage { position: relative; direction: ltr; aspect-ratio: 16 / 9; border-radius: 22px; overflow: hidden; border: 1px solid var(--surface-border); background: var(--surface); touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: ew-resize; box-shadow: 0 18px 50px rgba(0, 0, 0, 0.25); }
.ba-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba-clip { position: absolute; inset: 0; clip-path: inset(0 50% 0 0); }
.ba-handle { position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; margin-left: -1.5px; background: #fff; box-shadow: 0 0 12px rgba(0, 0, 0, 0.5); pointer-events: none; }
.ba-knob { position: absolute; top: 50%; left: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; display: grid; place-items: center; border-radius: 50%; background: var(--red); color: #fff; font-size: 15px; font-weight: 800; letter-spacing: 2px; border: 3px solid #fff; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4); }
.ba-stage.drag .ba-knob { transform: scale(1.08); }
.ba-chip { position: absolute; top: 14px; padding: 5px 14px; border-radius: 999px; font-size: 0.8rem; font-weight: 800; color: #fff; background: rgba(88, 10, 20, 0.78); border: 1px solid rgba(255, 255, 255, 0.25); pointer-events: none; }
.ba-chip-b { left: 14px; } .ba-chip-a { right: 14px; background: rgba(230, 19, 18, 0.9); }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: ew-resize; pointer-events: none; }
.ba-range:focus-visible ~ .ba-handle, .ba-stage:focus-within .ba-knob { outline: 3px solid #fff; outline-offset: 2px; }
.ba-cap { margin-top: 16px; text-align: center; }
.ba-cap b { display: block; font-size: 1.1rem; margin-bottom: 4px; }
.ba-cap span { opacity: 0.75; font-size: 0.95rem; }
.ba-nav { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 16px; direction: ltr; }
.ba-arr { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--surface-border); background: var(--surface); color: inherit; font-size: 22px; line-height: 1; cursor: pointer; }
.ba-arr:hover { border-color: var(--red); color: var(--red); }
.ba-dots { display: flex; gap: 8px; }
.ba-dot { width: 9px; height: 9px; padding: 0; border-radius: 50%; border: 0; background: rgba(var(--text-rgb), 0.25); cursor: pointer; transition: width .25s, background .25s; }
.ba-dot.on { width: 26px; border-radius: 6px; background: var(--red); }
@media (max-width: 768px) { #beforeafter { padding-top: 24px; } .ba-stage { border-radius: 16px; } .ba-knob { width: 40px; height: 40px; margin: -20px 0 0 -20px; } }

/* ===== شريط الأرقام: خانات العدّادات الحيّة ===== */
.strip-grid.has-live { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.strip-item[hidden] { display: none; }
@media (max-width: 768px) { .strip-grid.has-live { grid-template-columns: repeat(2, 1fr); } .strip-grid.has-live .strip-item.ls-last { grid-column: 1 / -1; } }

/* ===== شريط التنقل الزجاجي عند التمرير (على الكمبيوتر فقط؛ على الجوال يبقى معتماً للحفاظ على السلاسة) ===== */
@media (hover: hover) and (pointer: fine) and (min-width: 769px) {
  nav:not(.nav-top) { background: rgba(var(--bg-rgb), 0.52) !important; backdrop-filter: blur(18px) saturate(1.7) !important; -webkit-backdrop-filter: blur(18px) saturate(1.7) !important; border-bottom: 1px solid rgba(var(--text-rgb), 0.12) !important; box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18) !important; }
  .light-mode nav:not(.nav-top) { background: rgba(var(--surface-rgb), 0.6) !important; }
}

/* ===== الخطوط المنحنية الجانبية: أوضح قليلاً ===== */
body::before { opacity: 0.5; }
body::after { opacity: 0.45; }

/* ===== عدّادات صفحة كل النماذج ===== */
.tpl-stats { display: flex; flex-direction: row; justify-content: center; gap: 48px; margin: 0 0 28px; text-align: center; }
.section-header .tpl-stats { margin: 0; }
.tpl-stats .strip-item[hidden] { display: none; }
.tpl-stats .strip-num { font-size: clamp(1.8rem, 5vw, 2.6rem); }
@media (max-width: 480px) { .tpl-stats { gap: 32px; } }

/* ===== نافذة التحميل: مؤقت 10 ثوانٍ + تقييم ===== */
.dlm { position: fixed; inset: 0; z-index: 7000; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(20, 4, 8, 0.82); opacity: 0; transition: opacity .25s; }
.dlm.on { opacity: 1; }
.dlm-card { position: relative; width: min(440px, 100%); padding: 28px 26px 24px; border-radius: 22px; text-align: center; color: #fff; background: rgba(88, 10, 20, 0.98); border: 1px solid rgba(255, 255, 255, 0.2); box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55); transform: translateY(14px) scale(.98); transition: transform .25s; }
.dlm.on .dlm-card { transform: none; }
.dlm-x { position: absolute; top: 10px; inset-inline-end: 12px; width: 32px; height: 32px; border: 0; background: transparent; color: #fff; font-size: 24px; line-height: 1; cursor: pointer; opacity: .75; }
.dlm-x:hover { opacity: 1; }
.dlm-h { margin: 0 0 8px; font-size: 1.2rem; font-weight: 800; padding-inline: 20px; }
.dlm-h b { color: #ffb4b3; }
.dlm-p { margin: 0 0 14px; font-size: 0.95rem; line-height: 1.8; color: rgba(255, 255, 255, 0.85); }
.dlm-rt { display: flex; justify-content: center; margin-bottom: 18px; }
.dlm-rt .rt { color: #fff; }
.dlm-rt .rt-s { font-size: 32px; }
.dlm-bar { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.18); overflow: hidden; margin-bottom: 16px; }
.dlm-bar span { display: block; height: 100%; width: 0; background: #fff; border-radius: 6px; }
.dlm-go { display: block; padding: 13px 20px; border-radius: 14px; font-weight: 800; font-size: 1rem; text-decoration: none; color: rgba(255, 255, 255, 0.7); background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.2); cursor: not-allowed; transition: background .25s, color .25s; }
.dlm-go.ready { color: #fff; background: var(--red); border-color: transparent; cursor: pointer; box-shadow: 0 8px 24px rgba(230, 19, 18, 0.45); }
@media (max-width: 480px) { .dlm-card { padding: 24px 18px 20px; } }
