/* ===== RESET & VARIABLES ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Warm & Friendly Palette */
  --primary: #FF6B35;
  --primary-light: #FF8C5A;
  --primary-dark: #E55A25;
  --secondary: #4ECDC4;
  --accent: #FFE66D;
  --purple: #A29BFE;
  --pink: #FD79A8;
  --green: #55EFC4;

  /* Backgrounds */
  --bg: #FFFBF5;
  --bg-warm: #FFF8F0;
  --bg-section: #FFF5EA;
  --bg-card: #FFFFFF;

  /* Text */
  --text: #2D3436;
  --text-muted: #636E72;
  --text-light: #B2BEC3;

  /* Borders */
  --border: #F0E6D8;
  --border-warm: #FFECD2;

  /* Shadows */
  --shadow-sm: 0 2px 12px rgba(255, 107, 53, 0.08);
  --shadow-md: 0 8px 30px rgba(255, 107, 53, 0.12);
  --shadow-lg: 0 20px 60px rgba(255, 107, 53, 0.15);
  --shadow-card: 0 4px 20px rgba(45, 52, 54, 0.06);

  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
}

/* ===== BASE ===== */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Cairo', 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  direction: rtl;
  overflow-x: hidden;
  line-height: 1.75;
}

[lang="en"] body,
html[lang="en"] body {
  font-family: 'Inter', 'Cairo', sans-serif;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 14px 0;
  background: rgba(255, 251, 245, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: all 0.35s ease;
}

.navbar.scrolled {
  border-bottom-color: var(--border);
  padding: 10px 0;
  box-shadow: 0 4px 24px rgba(255, 107, 53, 0.1);
}

.nav-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-icon {
  font-size: 1.8rem;
}

.logo-text-wrap {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-main {
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: 0.04em;
}

.logo-sub {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.12em;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 4px;
  margin-right: auto;
  margin-left: auto;
}

html[dir="ltr"] .nav-links {
  margin-left: auto;
  margin-right: auto;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 7px 14px;
  border-radius: 10px;
  transition: all 0.2s;
}

.nav-links a:hover {
  color: var(--primary);
  background: rgba(255, 107, 53, 0.07);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.btn-lang {
  background: var(--bg-section);
  border: 1.5px solid var(--border);
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: 10px;
  cursor: pointer;
  font-family: 'Inter', 'Cairo', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  transition: all 0.2s;
  letter-spacing: 0.05em;
}

.btn-lang:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(255, 107, 53, 0.07);
}

.btn-primary-sm {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  padding: 8px 20px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.88rem;
  transition: all 0.25s;
  box-shadow: 0 4px 14px rgba(255, 107, 53, 0.35);
  white-space: nowrap;
}

.btn-primary-sm:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.5);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: 12px 20px 16px;
  background: rgba(255, 251, 245, 0.98);
  border-top: 1px solid var(--border);
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  padding: 10px 14px;
  border-radius: 10px;
  transition: all 0.2s;
}

.mobile-menu a:hover {
  background: rgba(255, 107, 53, 0.08);
  color: var(--primary);
}

.mobile-menu .mobile-cta {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  text-align: center;
  margin-top: 6px;
  box-shadow: 0 4px 14px rgba(255, 107, 53, 0.3);
}

/* ===== HERO ===== */
.hero {
  padding: 130px 0 80px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #FFF8F0 0%, #FFFBF5 50%, #F0FDFA 100%);
}

.hero-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.6;
}

.s1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 107, 53, 0.12) 0%, transparent 70%);
  top: -150px;
  right: -150px;
}

.s2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(78, 205, 196, 0.1) 0%, transparent 70%);
  bottom: -100px;
  left: -100px;
}

.s3 {
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(255, 230, 109, 0.2) 0%, transparent 70%);
  top: 200px;
  left: 20%;
}

.s4 {
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(162, 155, 254, 0.15) 0%, transparent 70%);
  bottom: 100px;
  right: 20%;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 107, 53, 0.08);
  border: 1.5px solid rgba(255, 107, 53, 0.2);
  color: var(--primary);
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 24px;
}

.badge-star {
  animation: spin 4s linear infinite;
  display: inline-block;
}

@keyframes spin {
  from {
    transform: rotate(0)
  }

  to {
    transform: rotate(360deg)
  }
}

.hero-title {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 20px;
  color: var(--text);
}

.highlight-text {
  background: linear-gradient(135deg, var(--primary), #FF8C5A, #FFE66D);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  padding: 14px 28px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 800;
  font-size: 1rem;
  transition: all 0.3s;
  box-shadow: 0 8px 24px rgba(255, 107, 53, 0.4);
}

.btn-hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(255, 107, 53, 0.55);
}

.btn-arrow {
  font-size: 1.1rem;
  transition: transform 0.2s;
}

.btn-hero-primary:hover .btn-arrow {
  transform: translateX(-4px);
}

html[dir="ltr"] .btn-hero-primary:hover .btn-arrow {
  transform: translateX(4px);
}

.btn-hero-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 20px;
  border-radius: 14px;
  border: 1.5px solid var(--border);
  background: white;
  transition: all 0.2s;
}

.btn-hero-ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.play-circle {
  width: 30px;
  height: 30px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  color: white;
  flex-shrink: 0;
}

.hero-stats {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.stat-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  background: white;
  border: 1.5px solid var(--border);
  padding: 10px 16px;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

.stat-icon {
  font-size: 1.3rem;
}

.stat-chip strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--text);
}

.stat-chip small {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Hero Visual */
.hero-visual {
  position: relative;
}

.dashboard-card {
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg), 0 0 0 1px var(--border);
  overflow: hidden;
  animation: floatCard 5s ease-in-out infinite;
}

@keyframes floatCard {

  0%,
  100% {
    transform: translateY(0)
  }

  50% {
    transform: translateY(-10px)
  }
}

.card-top-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: var(--bg-warm);
  border-bottom: 1px solid var(--border);
}

.card-dots {
  display: flex;
  gap: 5px;
}

.card-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.card-dots span:nth-child(1) {
  background: #FF5F57;
}

.card-dots span:nth-child(2) {
  background: #FEBC2E;
}

.card-dots span:nth-child(3) {
  background: #28C840;
}

.card-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  margin: 0 auto;
}

.card-live {
  font-size: 0.65rem;
  font-weight: 700;
  background: rgba(85, 239, 196, 0.15);
  color: #00B894;
  border: 1px solid rgba(0, 184, 148, 0.2);
  padding: 2px 8px;
  border-radius: 20px;
}

.card-body {
  padding: 16px;
}

.mini-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}

.mini-stat {
  padding: 10px 12px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
}

.mini-stat.orange {
  background: rgba(255, 107, 53, 0.06);
}

.mini-stat.teal {
  background: rgba(78, 205, 196, 0.07);
}

.mini-stat.purple {
  background: rgba(162, 155, 254, 0.07);
}

.mini-stat.green {
  background: rgba(85, 239, 196, 0.07);
}

.ms-icon {
  font-size: 1.1rem;
}

.ms-info strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 800;
}

.ms-info small {
  font-size: 0.62rem;
  color: var(--text-muted);
}

.mini-chart {
  margin-bottom: 14px;
}

.chart-title {
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  font-weight: 600;
}

.bars-row {
  display: flex;
  gap: 5px;
  align-items: flex-end;
  height: 55px;
}

.bar-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  height: 100%;
  justify-content: flex-end;
}

.bar-fill {
  width: 100%;
  background: linear-gradient(180deg, rgba(255, 107, 53, 0.25), rgba(255, 107, 53, 0.08));
  border-radius: 4px 4px 0 0;
  transition: height 0.5s ease;
}

.bar-item.active .bar-fill {
  background: linear-gradient(180deg, var(--primary), rgba(255, 107, 53, 0.5));
}

.bar-item span {
  font-size: 0.55rem;
  color: var(--text-muted);
}

.mini-sessions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.session-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  background: var(--bg-warm);
  border-radius: 10px;
  border: 1px solid var(--border);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.green-dot {
  background: #28C840;
  box-shadow: 0 0 6px rgba(40, 200, 64, 0.5);
}

.blue-dot {
  background: #4FACFE;
}

.sr-info {
  flex: 1;
}

.sr-info span {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
}

.sr-info small {
  font-size: 0.6rem;
  color: var(--text-muted);
}

.sr-badge {
  font-size: 0.6rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
}

.sr-badge.live {
  background: rgba(40, 200, 64, 0.12);
  color: #28C840;
}

.sr-badge.sched {
  background: rgba(79, 172, 254, 0.12);
  color: #4FACFE;
}

/* Floating Badges */
.float-badge {
  position: absolute;
  background: white;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 8px 14px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.f1 {
  bottom: 60px;
  left: -80px;
  animation: floatBadge1 5s ease-in-out infinite;
}

.f2 {
  top: 40px;
  left: -90px;
  animation: floatBadge2 6s ease-in-out infinite 0.8s;
}

.f3 {
  top: 40%;
  right: -70px;
  animation: floatBadge3 7s ease-in-out infinite 1.5s;
}

@keyframes floatBadge1 {

  0%,
  100% {
    transform: translateY(0)
  }

  50% {
    transform: translateY(-8px)
  }
}

@keyframes floatBadge2 {

  0%,
  100% {
    transform: translateY(0)
  }

  50% {
    transform: translateY(8px)
  }
}

@keyframes floatBadge3 {

  0%,
  100% {
    transform: translateY(0)
  }

  50% {
    transform: translateY(-6px)
  }
}

/* ===== TRUST BAR ===== */
.trust-bar {
  background: white;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}

.trust-bar .container {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.trust-bar p {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

.trust-flags {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.trust-flags span {
  font-size: 0.85rem;
  background: var(--bg-warm);
  border: 1px solid var(--border);
  padding: 5px 14px;
  border-radius: 20px;
  color: var(--text-muted);
  transition: all 0.2s;
}

.trust-flags span:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* ===== SECTION COMMON ===== */
section {
  padding: 90px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-tag {
  display: inline-block;
  background: rgba(255, 107, 53, 0.09);
  border: 1.5px solid rgba(255, 107, 53, 0.2);
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 16px;
  border-radius: 50px;
  margin-bottom: 14px;
}

.section-header h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.6rem);
  font-weight: 900;
  color: var(--text);
  margin-bottom: 14px;
  line-height: 1.3;
}

.section-header h2 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--primary), #FFE66D);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-header p {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto;
}

/* ===== FEATURES ===== */
.features {
  background: var(--bg-warm);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feat-card {
  background: white;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), #FFE66D);
  transform: scaleX(0);
  transition: transform 0.3s ease;
  transform-origin: right;
}

html[dir="ltr"] .feat-card::before {
  transform-origin: left;
}

.feat-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(255, 107, 53, 0.2);
}

.feat-card:hover::before {
  transform: scaleX(1);
}

.feat-card.wide {
  grid-column: span 2;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: start;
}

.feat-card.wide .feat-icon {
  margin-bottom: 0;
}

.feat-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
  flex-shrink: 0;
}

.feat-card h3 {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--text);
}

.feat-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.feat-list {
  list-style: none;
}

.feat-list li {
  font-size: 0.82rem;
  color: var(--text-muted);
  padding: 3px 0;
}

/* ===== ROLES ===== */
.roles {
  background: var(--bg);
}

.roles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.role-card {
  background: white;
  border: 2px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px 28px;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.role-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  transform: scaleX(0);
  transition: transform 0.3s;
}

.role-card.admin::after {
  background: linear-gradient(90deg, var(--primary), #FF8C5A);
}

.role-card.teacher::after {
  background: linear-gradient(90deg, var(--secondary), var(--green));
}

.role-card.parent::after {
  background: linear-gradient(90deg, var(--purple), var(--pink));
}

.role-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.role-card:hover::after {
  transform: scaleX(1);
}

.role-emoji {
  font-size: 2.8rem;
  margin-bottom: 16px;
}

.role-card h3 {
  font-size: 1.4rem;
  font-weight: 900;
  margin-bottom: 8px;
}

.role-card>p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.role-card ul {
  list-style: none;
}

.role-card ul li {
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.86rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

.role-card:hover ul li {
  color: var(--text);
}

.role-card ul li:last-child {
  border-bottom: none;
}

.role-card ul li::before {
  content: '→ ';
  color: var(--primary);
}

html[dir="ltr"] .role-card ul li::before {
  content: '→ ';
}

.role-tag {
  display: inline-block;
  margin-top: 18px;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 16px;
  border-radius: 20px;
}

.role-card.admin .role-tag {
  background: rgba(255, 107, 53, 0.1);
  color: var(--primary);
}

.role-card.teacher .role-tag {
  background: rgba(78, 205, 196, 0.12);
  color: #00A896;
}

.role-card.parent .role-tag {
  background: rgba(162, 155, 254, 0.12);
  color: #6C5CE7;
}

/* ===== ADVANCED ===== */
.advanced {
  background: var(--bg-section);
}

.adv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.adv-item {
  background: white;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: all 0.3s;
}

.adv-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.adv-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 16px;
}

.adv-icon-wrap.orange {
  background: rgba(255, 107, 53, 0.1);
}

.adv-icon-wrap.teal {
  background: rgba(78, 205, 196, 0.12);
}

.adv-icon-wrap.purple {
  background: rgba(162, 155, 254, 0.12);
}

.adv-icon-wrap.green {
  background: rgba(85, 239, 196, 0.12);
}

.adv-icon-wrap.blue {
  background: rgba(79, 172, 254, 0.12);
}

.adv-icon-wrap.red {
  background: rgba(253, 121, 168, 0.12);
}

.adv-item h4 {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.adv-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ===== PRICING ===== */
.pricing {
  background: var(--bg);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: start;
}

.plan-card {
  background: white;
  border: 2px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px 28px;
  position: relative;
  transition: all 0.3s;
}

.plan-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.plan-card.featured {
  border-color: var(--primary);
  box-shadow: 0 8px 40px rgba(255, 107, 53, 0.15);
  transform: scale(1.03);
}

.plan-card.featured:hover {
  transform: scale(1.03) translateY(-5px);
}

.popular-tag {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 5px 18px;
  border-radius: 20px;
  white-space: nowrap;
}

.plan-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.plan-name {
  font-size: 1.4rem;
  font-weight: 900;
  margin-bottom: 6px;
}

.plan-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.plan-price {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 22px;
}

.plan-list {
  list-style: none;
  margin-bottom: 28px;
}

.plan-list li {
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
  color: var(--text-muted);
}

.plan-list li:last-child {
  border-bottom: none;
}

.plan-btn {
  display: block;
  text-align: center;
  padding: 13px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.95rem;
  transition: all 0.25s;
}

.plan-btn.outline {
  border: 2px solid var(--primary);
  color: var(--primary);
  background: transparent;
}

.plan-btn.outline:hover {
  background: rgba(255, 107, 53, 0.07);
}

.plan-btn.filled {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border: none;
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.plan-btn.filled:hover {
  box-shadow: 0 8px 28px rgba(255, 107, 53, 0.55);
  transform: translateY(-1px);
}

/* ===== CTA ===== */
.cta-section {
  background: var(--bg-warm);
  padding: 90px 0;
}

.cta-card {
  background: white;
  border: 2px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 60px 48px;
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.cta-deco {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.cta-deco.d1 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 107, 53, 0.07) 0%, transparent 70%);
  top: -100px;
  right: -100px;
}

.cta-deco.d2 {
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(78, 205, 196, 0.07) 0%, transparent 70%);
  bottom: -80px;
  left: -80px;
}

.cta-emoji {
  font-size: 3rem;
  margin-bottom: 18px;
}

.cta-card h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 900;
  margin-bottom: 12px;
}

.cta-card>p {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 36px;
}

.cta-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: right;
  margin-bottom: 20px;
}

html[dir="ltr"] .cta-form {
  text-align: left;
}

.form-row {
  position: relative;
}

.form-row input {
  width: 100%;
  background: var(--bg-warm);
  border: 1.5px solid var(--border);
  color: var(--text);
  padding: 14px 18px;
  border-radius: 12px;
  font-size: 0.95rem;
  font-family: 'Cairo', 'Inter', sans-serif;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  text-align: right;
}

html[dir="ltr"] .form-row input {
  text-align: left;
}

.form-row input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
  background: white;
}

.form-row label {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 18px;
  font-size: 0.9rem;
  color: var(--text-muted);
  pointer-events: none;
  transition: all 0.2s;
}

html[dir="ltr"] .form-row label {
  right: auto;
  left: 18px;
}

.form-row input:focus+label,
.form-row input:not(:placeholder-shown)+label {
  top: -10px;
  font-size: 0.72rem;
  background: white;
  padding: 0 6px;
  color: var(--primary);
}

.cta-submit {
  width: 100%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border: none;
  padding: 16px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 800;
  font-family: 'Cairo', 'Inter', sans-serif;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 6px 22px rgba(255, 107, 53, 0.4);
}

.cta-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(255, 107, 53, 0.55);
}

.cta-note {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ===== CONTACT STRIP ===== */
.contact-strip {
  background: var(--bg);
  padding: 70px 0;
  border-top: 1px solid var(--border);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-info h3,
.contact-socials h3 {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.contact-info>p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ci {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.ci span:first-child {
  font-size: 1.1rem;
}



.contact-socials>p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.socials-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.soc-btn {
  background: var(--bg-warm);
  border: 1.5px solid var(--border);
  color: var(--text);
  padding: 8px 18px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s;
}

.soc-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(255, 107, 53, 0.06);
}

/* ===== FOOTER ===== */
.footer {
  background: white;
  border-top: 1px solid var(--border);
  padding: 50px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}

.footer-logo {
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 12px;
}

.footer-brand>p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer-col h4 {
  font-size: 0.95rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s;
}

.footer-col ul li a:hover {
  color: var(--primary);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
  padding: 18px 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 8px;
}

/* ===== TOAST ===== */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: white;
  border: 2px solid var(--primary);
  color: var(--text);
  padding: 14px 28px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 0.92rem;
  box-shadow: var(--shadow-lg);
  white-space: normal;
  text-align: center;
  width: 90%;
  max-width: 400px;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
}

/* ===== ANIMATIONS ===== */
[data-animate] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 48px;
  }

  .hero-desc {
    max-width: 100%;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-visual {
    display: none;
  }

  .features-grid {
    grid-template-columns: 1fr 1fr;
  }

  .feat-card.wide {
    grid-column: span 2;
  }

  .roles-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }

  .adv-grid {
    grid-template-columns: 1fr 1fr;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }

  .plan-card.featured {
    transform: none;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: span 2;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .nav-container {
    padding: 0 16px;
    gap: 12px;
  }

  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-actions .btn-primary-sm {
    display: none;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .feat-card.wide {
    grid-column: span 1;
    display: block;
  }

  .feat-card.wide .feat-icon {
    margin-bottom: 16px;
  }

  .roles-grid {
    max-width: 100%;
  }

  .adv-grid {
    grid-template-columns: 1fr;
  }

  .cta-card {
    padding: 36px 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-brand {
    grid-column: span 1;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  section {
    padding: 60px 0;
  }

  .hero {
    padding: 100px 0 50px;
  }

  .float-badge {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero-stats {
    flex-direction: column;
    align-items: center;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .btn-hero-primary,
  .btn-hero-ghost {
    width: 100%;
    justify-content: center;
  }

  .trust-bar .container {
    flex-direction: column;
    gap: 12px;
  }

  .pricing-grid {
    max-width: 100%;
  }

  .cta-form {
    gap: 12px;
  }

  .form-row input {
    font-size: 0.9rem;
    padding: 12px 16px;
  }
}

/* ===================================================
   LTR OVERRIDES — applied when dir="ltr" (English)
   =================================================== */

/* Body & base direction transition */
body {
  transition: direction 0s, text-align 0.2s;
}

/* ---- NAVBAR ---- */
[dir="ltr"] .nav-container {
  flex-direction: row;
}

[dir="ltr"] .nav-links {
  margin-left: auto;
  margin-right: auto;
}

[dir="ltr"] .nav-logo {
  flex-direction: row;
}

[dir="ltr"] .logo-text-wrap {
  align-items: flex-start;
}

/* ---- MOBILE MENU ---- */
[dir="ltr"] .mobile-menu a {
  text-align: left;
}

/* ---- HERO ---- */
[dir="ltr"] .hero-content {
  text-align: left;
}

[dir="ltr"] .hero-title {
  text-align: left;
}

[dir="ltr"] .hero-desc {
  text-align: left;
}

[dir="ltr"] .hero-badge {
  text-align: left;
}

[dir="ltr"] .hero-actions {
  justify-content: flex-start;
}

[dir="ltr"] .hero-stats {
  justify-content: flex-start;
}

[dir="ltr"] .btn-hero-primary:hover .btn-arrow {
  transform: translateX(4px);
}

/* ---- TRUST BAR ---- */
[dir="ltr"] .trust-bar .container {
  flex-direction: row;
}

/* ---- SECTION HEADERS ---- */
[dir="ltr"] .section-header {
  text-align: center;
}

[dir="ltr"] .section-header h2 {
  text-align: center;
}

[dir="ltr"] .section-header p {
  text-align: center;
}

/* ---- FEATURES ---- */
[dir="ltr"] .feat-card {
  text-align: left;
}

[dir="ltr"] .feat-card.wide {
  grid-template-columns: auto 1fr;
  direction: ltr;
}

[dir="ltr"] .feat-card::before {
  transform-origin: left;
}

[dir="ltr"] .feat-list li {
  text-align: left;
}

/* ---- ROLES ---- */
[dir="ltr"] .role-card {
  text-align: left;
}

[dir="ltr"] .role-card ul li {
  text-align: left;
}

[dir="ltr"] .role-card ul li::before {
  content: '→ ';
}

[dir="ltr"] .role-card::after {
  transform-origin: left;
}

/* ---- ADVANCED ---- */
[dir="ltr"] .adv-item {
  text-align: left;
}

/* ---- PRICING ---- */
[dir="ltr"] .plan-card {
  text-align: left;
}

[dir="ltr"] .plan-list li {
  text-align: left;
}

/* ---- CTA FORM ---- */
[dir="ltr"] .cta-card {
  text-align: left;
}

[dir="ltr"] .cta-card h2 {
  text-align: center;
}

[dir="ltr"] .cta-card>p {
  text-align: center;
}

[dir="ltr"] .cta-note {
  text-align: center;
}

[dir="ltr"] .cta-form {
  text-align: left;
}

[dir="ltr"] .form-row input {
  text-align: left;
  direction: ltr;
}

[dir="ltr"] .form-row label {
  right: auto;
  left: 18px;
}

/* ---- CONTACT ---- */
[dir="ltr"] .contact-info,
[dir="ltr"] .contact-socials {
  text-align: left;
}

[dir="ltr"] .contact-items {
  align-items: flex-start;
}

[dir="ltr"] .ci {
  flex-direction: row;
}

/* ---- FOOTER ---- */
[dir="ltr"] .footer-brand {
  text-align: left;
}

[dir="ltr"] .footer-col {
  text-align: left;
}

[dir="ltr"] .footer-bottom {
  flex-direction: row;
}

[dir="ltr"] .footer-col ul li a {
  text-align: left;
}

/* ---- DASHBOARD MOCKUP (keep RTL for Arabic content display) ---- */
[dir="ltr"] .dashboard-card {
  direction: ltr;
}

[dir="ltr"] .session-row {
  direction: ltr;
  text-align: left;
}

[dir="ltr"] .sr-info {
  text-align: left;
}

/* ---- FLOAT BADGES ---- */
[dir="ltr"] .float-badge {
  flex-direction: row;
}

/* ---- MINI STATS ---- */
[dir="ltr"] .mini-stat {
  flex-direction: row;
  text-align: left;
}

/* ---- STAT CHIPS ---- */
[dir="ltr"] .stat-chip {
  flex-direction: row;
  text-align: left;
}

[dir="ltr"] .stat-chip>div {
  text-align: left;
}

/* ---- HERO VISUAL FLOATING BADGES (flip sides for LTR) ---- */
[dir="ltr"] .f1 {
  left: auto;
  right: -80px;
}

[dir="ltr"] .f2 {
  left: auto;
  right: -90px;
}

[dir="ltr"] .f3 {
  right: auto;
  left: -70px;
}

/* Smooth transition for layout changes */
.section-header,
.feat-card,
.role-card,
.adv-item,
.plan-card,
.cta-card,
.footer-grid,
.contact-grid,
.hero-content {
  transition: text-align 0.25s ease;
}