/* ============================================================
   DARSIQ — Premium SaaS Landing Page
   Dark / Light Mode, Glassmorphism, Animated, RTL-First
   ============================================================ */

/* ---------- RESET & ROOT ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; overflow-x: hidden; }

/* ===== DARK MODE (default) ===== */
:root {
  --bg: #06070d;
  --bg-alt: #0b0d17;
  --surface: rgba(255,255,255,0.03);
  --surface-hover: rgba(255,255,255,0.06);
  --border: rgba(255,255,255,0.07);
  --border-lit: rgba(139,92,246,0.35);

  --purple: #7c3aed;
  --purple-light: #a78bfa;
  --cyan: #0891b2;
  --cyan-light: #06b6d4;
  --orange: #f97316;
  --green: #10b981;

  --text: #f1f5f9;
  --text-2: #94a3b8;
  --text-3: #475569;

  --font-ar: 'Cairo', system-ui, sans-serif;
  --font-en: 'Inter', system-ui, sans-serif;

  --radius: 16px;
  --radius-sm: 10px;
  --ease: cubic-bezier(.4,0,.2,1);
  --shadow-glow: 0 0 60px rgba(124,58,237,0.12);
  --shadow-card: 0 8px 32px rgba(0,0,0,0.4);

  --mockup-bg: #0c0e18;
  --mockup-bar: #090b13;
  --preview-bg: #090b14;
  --kpi-bg: rgba(255,255,255,0.03);
  --kpi-bdr: rgba(255,255,255,0.05);
  --chart-bg: rgba(255,255,255,0.02);
  --chart-bdr: rgba(255,255,255,0.04);
  --sidebar-bdr: rgba(255,255,255,0.04);
  --title-url-bg: rgba(255,255,255,0.04);
  --title-url-bdr: rgba(255,255,255,0.06);
  --tb-icon-bg: rgba(255,255,255,0.07);
  --mb-line-bg: rgba(255,255,255,0.07);
  --mb-line-light: rgba(255,255,255,0.05);
  --mb-line-white: rgba(255,255,255,0.25);
  --mb-dot-bg: rgba(255,255,255,0.1);
  --cbm-bg: rgba(255,255,255,0.06);
  --fb-bg: rgba(255,255,255,0.06);
  --fb-bdr: rgba(255,255,255,0.1);
  --fb-val: #fff;
  --ms-badge-bg: rgba(255,255,255,0.03);
  --rm-bg: rgba(255,255,255,0.015);
  --edge-bg: rgba(255,255,255,0.01);
  --edge-bg-h: rgba(255,255,255,0.03);
  --edge-bdr: rgba(255,255,255,0.05);
  --form-bg: rgba(255,255,255,0.03);
  --p-cta-bg: rgba(255,255,255,0.05);
  --p-cta-bdr: rgba(255,255,255,0.1);
  --tab-wrap-bg: rgba(255,255,255,0.02);
  --hero-badge-bg: rgba(255,255,255,0.03);
  --hero-badge-bdr: rgba(255,255,255,0.1);
  --hero-stats-bg: rgba(255,255,255,0.02);
  --hero-grid-line: rgba(255,255,255,0.02);
  --canvas-opacity: 0.4;
  --nav-scrolled-bg: rgba(6,7,13,0.85);
  --nav-scrolled-shadow: rgba(255,255,255,0.05);
  --lang-sw-bg: rgba(255,255,255,0.04);
  --kpi-val-color: #fff;
  --t-photo-wrap-bg: var(--bg-alt);

  /* Interactive screens */
  --scr-bg: #0a0c18;
  --scr-sidebar: #080a14;
  --scr-surface: rgba(255,255,255,0.04);
  --scr-border: rgba(255,255,255,0.07);
  --scr-text: #e2e8f0;
  --scr-text2: #64748b;
  --scr-bar: #090b12;
}

/* ===== LIGHT MODE ===== */
body.light {
  --bg: #f8f9ff;
  --bg-alt: #eef0f9;
  --surface: rgba(255,255,255,0.85);
  --surface-hover: rgba(255,255,255,0.95);
  --border: rgba(0,0,0,0.08);
  --border-lit: rgba(124,58,237,0.3);

  --purple: #6d28d9;
  --purple-light: #7c3aed;
  --cyan: #0e7490;
  --cyan-light: #0891b2;
  --orange: #ea6c00;
  --green: #059669;

  --text: #0f172a;
  --text-2: #475569;
  --text-3: #94a3b8;

  --shadow-glow: 0 0 60px rgba(124,58,237,0.06);
  --shadow-card: 0 4px 24px rgba(0,0,0,0.08);

  --mockup-bg: #ffffff;
  --mockup-bar: #f1f3fa;
  --preview-bg: #f4f6ff;
  --kpi-bg: rgba(0,0,0,0.02);
  --kpi-bdr: rgba(0,0,0,0.06);
  --chart-bg: rgba(0,0,0,0.015);
  --chart-bdr: rgba(0,0,0,0.05);
  --sidebar-bdr: rgba(0,0,0,0.06);
  --title-url-bg: rgba(0,0,0,0.04);
  --title-url-bdr: rgba(0,0,0,0.06);
  --tb-icon-bg: rgba(0,0,0,0.08);
  --mb-line-bg: rgba(0,0,0,0.08);
  --mb-line-light: rgba(0,0,0,0.04);
  --mb-line-white: rgba(0,0,0,0.18);
  --mb-dot-bg: rgba(0,0,0,0.1);
  --cbm-bg: rgba(0,0,0,0.06);
  --fb-bg: rgba(255,255,255,0.9);
  --fb-bdr: rgba(0,0,0,0.1);
  --fb-val: #0f172a;
  --ms-badge-bg: rgba(0,0,0,0.03);
  --rm-bg: rgba(0,0,0,0.015);
  --edge-bg: rgba(0,0,0,0.01);
  --edge-bg-h: rgba(0,0,0,0.03);
  --edge-bdr: rgba(0,0,0,0.07);
  --form-bg: rgba(0,0,0,0.03);
  --p-cta-bg: rgba(0,0,0,0.04);
  --p-cta-bdr: rgba(0,0,0,0.1);
  --tab-wrap-bg: rgba(0,0,0,0.03);
  --hero-badge-bg: rgba(255,255,255,0.7);
  --hero-badge-bdr: rgba(0,0,0,0.1);
  --hero-stats-bg: rgba(255,255,255,0.7);
  --hero-grid-line: rgba(0,0,0,0.04);
  --canvas-opacity: 0.12;
  --nav-scrolled-bg: rgba(248,249,255,0.88);
  --nav-scrolled-shadow: rgba(0,0,0,0.08);
  --lang-sw-bg: rgba(0,0,0,0.04);
  --kpi-val-color: #0f172a;
  --t-photo-wrap-bg: var(--bg-alt);

  /* Interactive screens light */
  --scr-bg: #f0f2ff;
  --scr-sidebar: #e8eaf8;
  --scr-surface: rgba(255,255,255,0.9);
  --scr-border: rgba(0,0,0,0.08);
  --scr-text: #0f172a;
  --scr-text2: #64748b;
  --scr-bar: #e4e7f8;
}

body {
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background .4s var(--ease), color .4s var(--ease);
  max-width: 100vw;
}
body.dir-rtl { font-family: var(--font-ar); text-align: right; }
body.dir-ltr { font-family: var(--font-en); text-align: left; }

a { text-decoration: none; color: inherit; }
button { background: none; border: none; cursor: pointer; font-family: inherit; }
img { max-width: 100%; display: block; }
canvas { position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: var(--canvas-opacity, 0.4); transition: opacity .4s; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 20px; position: relative; z-index: 1; }

/* ---------- TYPOGRAPHY ---------- */
h2 {
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}
body.dir-rtl h2 { letter-spacing: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 16px;
  padding: 5px 14px;
  border: 1px solid rgba(6,182,212,0.2);
  border-radius: 100px;
  background: rgba(6,182,212,0.06);
}
.eyebrow.purple-ey { color: var(--purple-light); border-color: rgba(124,58,237,0.25); background: rgba(124,58,237,0.06); }

.sec-sub {
  font-size: clamp(15px,2vw,18px);
  color: var(--text-2);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.7;
}

.gradient-purple { background: linear-gradient(135deg,#a78bfa,#7c3aed); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.gradient-cyan   { background: linear-gradient(135deg,#67e8f9,#06b6d4); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.gradient-text-full { background: linear-gradient(135deg,#c4b5fd,#7c3aed,#06b6d4,#67e8f9); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* ---------- SECTIONS ---------- */
.section { padding: 120px 0; position: relative; }
.bg-alt { background: var(--bg-alt); }
.sec-header { margin-bottom: 64px; }
.sec-header.center { text-align: center; }
.sec-header.center .sec-sub { text-align: center; }

/* ---------- NAVBAR ---------- */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 0;
  transition: background .3s var(--ease), box-shadow .3s var(--ease);
}
#navbar.scrolled {
  background: var(--nav-scrolled-bg);
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--nav-scrolled-shadow);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1280px; margin: 0 auto; padding: 16px 20px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-mark {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg,#7c3aed22,#06b6d422);
  border: 1px solid rgba(124,58,237,0.3);
  display: flex; align-items: center; justify-content: center;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
  flex-shrink: 0;
}
.nav-logo:hover .logo-mark { transform: rotate(180deg); box-shadow: 0 0 20px rgba(124,58,237,0.3); }
.logo-mark.sm { width: 28px; height: 28px; border-radius: 8px; }
.logo-text { font-size: 20px; font-weight: 800; }

.nav-links { display: flex; gap: 28px; }
.nav-links a {
  font-size: 15px; font-weight: 600; color: var(--text-2);
  transition: color .2s;
  position: relative; white-space: nowrap;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 1px; background: var(--cyan); transform: scaleX(0);
  transition: transform .3s var(--ease); border-radius: 2px;
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-right { display: flex; align-items: center; gap: 10px; }

.lang-switcher {
  display: flex; gap: 2px;
  background: var(--lang-sw-bg);
  border: 1px solid var(--border);
  border-radius: 8px; padding: 3px;
}
.lang-btn {
  padding: 5px 10px; border-radius: 6px;
  font-size: 12px; font-weight: 700; color: var(--text-3);
  transition: all .2s;
}
.lang-btn.active { background: var(--purple); color: #fff; box-shadow: 0 2px 8px rgba(124,58,237,0.4); }
.lang-btn:hover:not(.active) { color: var(--text-2); }

/* ---------- THEME TOGGLE ---------- */
.theme-toggle {
  width: 38px; height: 38px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: var(--lang-sw-bg); border: 1px solid var(--border);
  color: var(--text-2); font-size: 18px;
  transition: all .25s var(--ease);
  cursor: pointer; flex-shrink: 0;
}
.theme-toggle:hover { background: var(--surface); color: var(--text); transform: rotate(15deg); border-color: rgba(124,58,237,0.3); }
.theme-toggle .icon-sun  { display: none; }
.theme-toggle .icon-moon { display: block; }
body.light .theme-toggle .icon-sun  { display: block; }
body.light .theme-toggle .icon-moon { display: none; }

.btn-cta {
  padding: 10px 18px; border-radius: 10px;
  background: linear-gradient(135deg,var(--purple),#5b21b6);
  color: #fff; font-size: 14px; font-weight: 700;
  border: 1px solid rgba(167,139,250,0.3);
  box-shadow: 0 4px 16px rgba(124,58,237,0.3);
  transition: transform .2s, box-shadow .2s;
  white-space: nowrap;
}
.btn-cta:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(124,58,237,0.45); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column; gap: 5px;
  width: 38px; height: 38px;
  align-items: center; justify-content: center;
  border-radius: 10px; border: 1px solid var(--border);
  background: var(--lang-sw-bg); cursor: pointer;
  transition: background .2s;
}
.hamburger span {
  display: block; width: 18px; height: 2px;
  background: var(--text-2); border-radius: 2px;
  transition: all .3s var(--ease);
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile Nav Drawer */
.mobile-nav {
  display: none;
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(6,7,13,0.97);
  backdrop-filter: blur(20px);
  z-index: 999;
  flex-direction: column;
  align-items: center; justify-content: center;
  gap: 28px;
  opacity: 0; pointer-events: none;
  transition: opacity .3s var(--ease);
}
body.light .mobile-nav { background: rgba(248,249,255,0.97); }
.mobile-nav.open { opacity: 1; pointer-events: all; }
.mobile-nav a {
  font-size: 26px; font-weight: 800;
  color: var(--text-2); transition: color .2s;
}
.mobile-nav a:hover { color: var(--cyan); }
.mobile-nav .mobile-cta {
  margin-top: 20px;
  padding: 16px 44px; border-radius: 14px;
  background: linear-gradient(135deg,var(--purple),var(--cyan));
  color: #fff; font-size: 18px; font-weight: 800;
}

/* ---------- HERO ---------- */
#hero {
  min-height: 100vh;
  padding-top: 80px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  text-align: center;
}

.orb {
  position: absolute; border-radius: 50%;
  filter: blur(120px); pointer-events: none; z-index: 0;
}
.orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(124,58,237,0.18) 0%, transparent 70%);
  top: -200px; right: -200px;
  animation: orbFloat1 12s ease-in-out infinite;
}
.orb-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(6,182,212,0.12) 0%, transparent 70%);
  top: 300px; left: -200px;
  animation: orbFloat2 15s ease-in-out infinite;
}
.orb-3 {
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(249,115,22,0.08) 0%, transparent 70%);
  bottom: -100px; right: 30%;
  animation: orbFloat1 18s ease-in-out infinite reverse;
}
@keyframes orbFloat1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(30px,40px) scale(1.1); } }
@keyframes orbFloat2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-40px,25px) scale(0.95); } }

.hero-grid {
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(var(--hero-grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--hero-grid-line) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 50% at center, black 30%, transparent 80%);
  transition: background-image .4s;
}

.hero-content { position: relative; z-index: 2; padding: 40px 0 60px; width: 100%; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; color: var(--text-2);
  padding: 8px 18px; border-radius: 100px;
  border: 1px solid var(--hero-badge-bdr);
  background: var(--hero-badge-bg);
  backdrop-filter: blur(10px);
  margin-bottom: 28px;
  animation: fadeInDown .8s var(--ease) both;
}
.badge-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
  animation: pulseDot 2s infinite;
  flex-shrink: 0;
}
@keyframes pulseDot { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }

.hero-title {
  font-size: clamp(36px, 6vw, 88px);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 24px;
  display: flex; flex-direction: column; gap: 4px;
  animation: fadeInUp .8s var(--ease) .1s both;
}
body.dir-rtl .hero-title { letter-spacing: -0.01em; }
.hero-title .line-2 { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

.hero-sub {
  font-size: clamp(15px,2vw,19px); color: var(--text-2); max-width: 680px;
  margin: 0 auto 40px; line-height: 1.75;
  animation: fadeInUp .8s var(--ease) .2s both;
  padding: 0 12px;
}

.hero-ctas {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
  margin-bottom: 56px;
  animation: fadeInUp .8s var(--ease) .3s both;
  padding: 0 12px;
}
.cta-primary {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px; border-radius: 12px;
  background: linear-gradient(135deg,var(--purple),var(--cyan));
  color: #fff; font-size: 15px; font-weight: 700;
  box-shadow: 0 8px 32px rgba(124,58,237,0.35), inset 0 1px 0 rgba(255,255,255,0.15);
  transition: transform .25s, box-shadow .25s;
}
.cta-primary:hover { transform: translateY(-3px); box-shadow: 0 14px 40px rgba(124,58,237,0.5); }
.cta-ghost {
  display: inline-flex; align-items: center;
  padding: 14px 28px; border-radius: 12px;
  background: var(--hero-badge-bg);
  border: 1px solid var(--hero-badge-bdr);
  color: var(--text); font-size: 15px; font-weight: 700;
  backdrop-filter: blur(8px);
  transition: background .2s, border-color .2s;
}
.cta-ghost:hover { background: var(--surface); border-color: var(--border-lit); }

/* Hero Stats */
.hero-stats {
  display: flex; align-items: center; justify-content: center;
  gap: 0; flex-wrap: wrap;
  padding: 28px 20px; margin-bottom: 60px;
  background: var(--hero-stats-bg);
  border: 1px solid var(--border); border-radius: 20px;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-card);
  max-width: 860px; margin-left: auto; margin-right: auto;
  animation: fadeInUp .8s var(--ease) .4s both;
}
.stat-item { flex: 1; min-width: 100px; padding: 8px 16px; text-align: center; }
.stat-value {
  display: block;
  font-size: clamp(32px,5vw,48px); font-weight: 900; line-height: 1;
  margin-bottom: 6px;
  font-family: var(--font-en);
}
body.dir-rtl .stat-value { font-family: var(--font-en); }
.stat-label { font-size: 13px; color: var(--text-2); font-weight: 600; }
.stat-sep { width: 1px; height: 50px; background: var(--border); flex-shrink: 0; }

/* Hero Mockup — NEW Rich Dashboard */
.hero-mockup {
  position: relative;
  max-width: 960px; margin: 0 auto;
  animation: fadeInUp 1s var(--ease) .5s both;
  padding: 0 16px;
}

.mockup-shell {
  background: var(--mockup-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0,0,0,0.35), 0 0 0 1px var(--border);
  transition: background .4s, border-color .4s;
}

.mockup-titlebar {
  height: 42px;
  background: var(--mockup-bar);
  border-bottom: 1px solid var(--sidebar-bdr);
  display: flex; align-items: center;
  padding: 0 16px; gap: 12px;
  transition: background .4s;
}
.titlebar-dots { display: flex; gap: 6px; }
.dot-r, .dot-y, .dot-g { width: 10px; height: 10px; border-radius: 50%; }
.dot-r { background: #ff5f56; }
.dot-y { background: #ffbd2e; }
.dot-g { background: #27c93f; }

.titlebar-url {
  flex: 1; background: var(--title-url-bg); border: 1px solid var(--title-url-bdr);
  border-radius: 6px; height: 24px; display: flex; align-items: center;
  padding: 0 12px; font-size: 11px; color: var(--text-3); font-family: var(--font-en);
  max-width: 220px; margin: 0 auto;
}
.titlebar-actions { display: flex; gap: 8px; }
.tb-icon { width: 14px; height: 14px; border-radius: 50%; background: var(--tb-icon-bg); }

.mockup-body { display: flex; height: 340px; }

/* Sidebar */
.mb-sidebar {
  width: 140px;
  border-inline-end: 1px solid var(--sidebar-bdr);
  padding: 16px 10px;
  display: flex; flex-direction: column; gap: 6px;
}
.mb-logo-sm {
  width: 26px; height: 26px; border-radius: 8px;
  background: linear-gradient(135deg,#7c3aed,#06b6d4);
  margin-bottom: 16px;
}
.mb-menu { display: flex; flex-direction: column; gap: 3px; }
.mb-item {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 8px; border-radius: 8px;
  transition: background .2s;
}
.mb-item.active { background: rgba(124,58,237,0.12); }
.mb-dot {
  width: 8px; height: 8px; border-radius: 3px;
  background: var(--mb-dot-bg); flex-shrink: 0;
}
.mb-item.active .mb-dot { background: var(--purple-light); }
.mb-line { height: 5px; border-radius: 3px; background: var(--mb-line-bg); }
.mb-line.w80 { width: 80%; }
.mb-line.w60 { width: 60%; }
.mb-line.w70 { width: 70%; }
.mb-line.w50 { width: 50%; }
.mb-line.w65 { width: 65%; }
.mb-line.w40 { width: 40%; }
.mb-line.light { background: var(--mb-line-light); }
.mb-line.white { background: var(--mb-line-white); }
.mb-line.big { height: 9px; }
.mb-line.sm { height: 4px; }
.mb-4 { margin-bottom: 5px; }
.mb-0 { margin-bottom: 0; }

/* Main area */
.mb-main { flex: 1; padding: 16px; display: flex; flex-direction: column; gap: 12px; overflow: hidden; }

.mb-header-row { display: flex; justify-content: space-between; align-items: center; }
.mb-welcome { display: flex; flex-direction: column; }
.mb-notif { display: flex; align-items: center; gap: 8px; }
.notif-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--cyan); box-shadow: 0 0 8px var(--cyan);
}
.mb-avatar { width: 24px; height: 24px; border-radius: 50%; background: linear-gradient(135deg,#7c3aed,#06b6d4); }

/* KPI row */
.mb-kpi-row { display: flex; gap: 10px; }
.mb-kpi {
  flex: 1; background: var(--kpi-bg); border: 1px solid var(--kpi-bdr);
  border-radius: 10px; padding: 12px;
  display: flex; flex-direction: column; gap: 5px;
  position: relative; overflow: hidden;
  transition: background .4s, border-color .4s;
}
.mb-kpi.cyan  { border-color: rgba(6,182,212,0.2); }
.mb-kpi.purple { border-color: rgba(124,58,237,0.2); }
.mb-kpi.orange { border-color: rgba(249,115,22,0.2); }

.kpi-icon {
  width: 24px; height: 24px; border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 2px;
}
.kpi-icon.cyan-bg   { background: rgba(6,182,212,0.12); color: var(--cyan); }
.kpi-icon.purple-bg { background: rgba(124,58,237,0.12); color: var(--purple-light); }
.kpi-icon.orange-bg { background: rgba(249,115,22,0.12); color: var(--orange); }

.kpi-val  { font-size: 18px; font-weight: 800; color: var(--kpi-val-color); font-family: var(--font-en); }
.kpi-lbl  { font-size: 9px; color: var(--text-3); }
.kpi-trend { font-size: 9px; font-weight: 700; font-family: var(--font-en); }
.kpi-trend.up { color: var(--green); }

/* Chart row */
.mb-chart-row { display: flex; gap: 10px; flex: 1; }
.mb-chart {
  flex: 1.5; background: var(--chart-bg); border: 1px solid var(--chart-bdr);
  border-radius: 10px; padding: 12px; display: flex; flex-direction: column; gap: 8px;
  transition: background .4s, border-color .4s;
}
.chart-label { font-size: 10px; font-weight: 700; color: var(--text-2); }
.chart-bars-mini { display: flex; align-items: flex-end; gap: 5px; height: 52px; }
.cbm {
  flex: 1; border-radius: 3px 3px 0 0;
  background: var(--cbm-bg);
  transition: background .3s;
}
.cbm.h40 { height: 40%; }
.cbm.h70 { height: 70%; }
.cbm.h55 { height: 55%; }
.cbm.h90 { height: 90%; }
.cbm.h75 { height: 75%; }
.cbm.h85 { height: 85%; }
.cbm.h95 { height: 95%; }
.cbm.active { background: linear-gradient(180deg,var(--cyan),rgba(6,182,212,0.2)); }

.mb-activity {
  flex: 1; background: var(--chart-bg); border: 1px solid var(--chart-bdr);
  border-radius: 10px; padding: 12px; display: flex; flex-direction: column; gap: 8px;
  transition: background .4s, border-color .4s;
}
.activity-label { font-size: 10px; font-weight: 700; color: var(--text-2); margin-bottom: 2px; }
.act-item { display: flex; align-items: center; gap: 6px; }
.act-dot { width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0; }
.act-dot.green  { background: var(--green); }
.act-dot.blue   { background: var(--cyan); }
.act-dot.purple-c { background: var(--purple-light); }
.act-text { flex: 1; }

/* Floating badges */
.float-badge {
  position: absolute;
  background: var(--fb-bg);
  border: 1px solid var(--fb-bdr);
  backdrop-filter: blur(20px);
  border-radius: 14px;
  padding: 10px 14px;
  display: flex; align-items: center; gap: 10px;
  box-shadow: var(--shadow-card);
  z-index: 10;
  animation: floatBadge 4s ease-in-out infinite;
  transition: background .4s, border-color .4s;
}
.badge-attendance { top: 60px; right: 0; }
.badge-ai         { bottom: 40px; left: 0; animation-delay: 2s; }

body.dir-rtl .badge-attendance { right: auto; left: 0; }
body.dir-rtl .badge-ai         { left: auto; right: 0; }

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

.fb-icon {
  width: 32px; height: 32px; border-radius: 8px;
  background: rgba(6,182,212,0.15); border: 1px solid rgba(6,182,212,0.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: var(--cyan);
}
.fb-icon.ai-spark {
  background: rgba(124,58,237,0.15); border-color: rgba(124,58,237,0.3); color: var(--purple-light);
}
.fb-title { font-size: 10px; color: var(--text-2); margin-bottom: 2px; }
.fb-val   { font-size: 13px; font-weight: 800; color: var(--fb-val); }

/* ---------- ANIMATIONS ---------- */
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInUp   { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- CARDS GRIDS ---------- */
.cards-grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; }
.cards-grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.cards-grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }

/* Base card */
.g-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
}
.g-card:hover {
  border-color: rgba(124,58,237,0.3);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(124,58,237,0.08);
}
.g-card .card-num {
  font-size: 36px; font-weight: 900; color: rgba(124,58,237,0.15);
  font-family: var(--font-en); line-height: 1; margin-bottom: 16px;
  display: block;
}
.g-card h3, .g-card h4 {
  font-size: 17px; font-weight: 700; margin-bottom: 10px; color: var(--text);
}
.g-card p { font-size: 14px; color: var(--text-2); line-height: 1.65; }

/* Solution cards with icons */
.g-card .sol-icon {
  width: 42px; height: 42px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px; transition: all .3s;
}
.g-card:hover .sol-icon { transform: scale(1.1); }
.sol-c0 { background: rgba(6,182,212,0.1); border: 1px solid rgba(6,182,212,0.2); color: var(--cyan); }
.sol-c1 { background: rgba(124,58,237,0.1); border: 1px solid rgba(124,58,237,0.2); color: var(--purple-light); }
.sol-c2 { background: rgba(249,115,22,0.1); border: 1px solid rgba(249,115,22,0.2); color: var(--orange); }
.sol-c3 { background: rgba(16,185,129,0.1); border: 1px solid rgba(16,185,129,0.2); color: var(--green); }
.sol-c4 { background: rgba(167,139,250,0.1); border: 1px solid rgba(167,139,250,0.2); color: var(--purple-light); }
.sol-c5 { background: rgba(6,182,212,0.1); border: 1px solid rgba(6,182,212,0.2); color: var(--cyan); }

/* AI cards */
.ai-card {
  background: var(--chart-bg);
  border: 1px solid var(--chart-bdr);
  border-radius: var(--radius);
  padding: 28px 24px;
  position: relative; overflow: hidden;
  transition: all .3s var(--ease);
}
.ai-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg,transparent,rgba(124,58,237,0.5),transparent);
}
.ai-card:hover { border-color: rgba(124,58,237,0.25); transform: translateY(-3px); }
.ai-sparkle {
  position: absolute; top: 16px; right: 16px;
  font-size: 16px; opacity: 0.5;
  animation: sparkleAnim 2s ease-in-out infinite;
}
body.dir-rtl .ai-sparkle { right: auto; left: 16px; }
@keyframes sparkleAnim { 0%,100% { opacity: 0.3; transform: scale(1); } 50% { opacity: 0.8; transform: scale(1.2); } }
.ai-card h4 { font-size: 16px; font-weight: 700; margin-bottom: 10px; }
.ai-card p  { font-size: 14px; color: var(--text-2); }

/* Impact cards */
.impact-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px;
  transition: all .3s var(--ease);
}
.impact-card:hover { border-color: rgba(6,182,212,0.25); }
.impact-head { margin-bottom: 16px; }
.impact-name { font-size: 18px; font-weight: 800; color: var(--cyan); margin-bottom: 4px; }
.impact-bullets { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.impact-bullets li { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; color: var(--text-2); }
.check-svg { width: 15px; height: 15px; color: var(--cyan); flex-shrink: 0; margin-top: 2px; }

/* Vision grid */
.vision-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.v-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px;
  transition: all .3s var(--ease);
}
.v-card:hover { border-color: rgba(124,58,237,0.25); transform: translateY(-3px); }
.v-num {
  display: block; font-size: 40px; font-weight: 900;
  color: rgba(124,58,237,0.15); font-family: var(--font-en);
  line-height: 1; margin-bottom: 14px;
}
.v-card h4 { font-size: 16px; font-weight: 700; margin-bottom: 10px; }
.v-card p  { font-size: 14px; color: var(--text-2); line-height: 1.65; }

/* Status / Roadmap */
.status-live-badge {
  display: inline-flex; align-items: center; gap: 12px;
  background: rgba(16,185,129,0.08); border: 1px solid rgba(16,185,129,0.25);
  padding: 12px 24px; border-radius: 100px;
  margin: 0 auto 40px; width: fit-content;
  font-size: 15px; font-weight: 700;
  position: relative;
}
.pulse-ring {
  position: absolute; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid var(--green); opacity: 0;
  animation: pingRing 2s cubic-bezier(0,0,0.2,1) infinite;
}
@keyframes pingRing { 0% { transform: scale(1); opacity: 0.6; } 100% { transform: scale(2.5); opacity: 0; } }
.pulse-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); position: relative; }

.milestones-wrap {
  display: flex; flex-wrap: wrap; gap: 10px;
  justify-content: center; margin-bottom: 60px;
}
.ms-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--ms-badge-bg); border: 1px solid var(--border);
  padding: 7px 14px; border-radius: 100px;
  font-size: 13px; font-weight: 600; color: var(--text-2);
}
.ms-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); flex-shrink: 0; }

.roadmap-separator { text-align: center; }
.sep-line { height: 1px; background: linear-gradient(90deg,transparent,var(--border),transparent); margin: 60px 0; }

.roadmap-grid { align-items: start; }
.rm-card {
  background: var(--rm-bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
  transition: all .3s; position: relative; overflow: hidden;
}
.rm-card::after {
  content: ''; position: absolute; top: 0; left: 0; width: 3px; height: 100%;
  background: linear-gradient(180deg,var(--cyan),var(--purple));
}
body.dir-rtl .rm-card::after { left: auto; right: 0; }
.rm-card:hover { border-color: rgba(6,182,212,0.2); }
.rm-phase {
  font-size: 11px; font-weight: 800; letter-spacing: 1.5px;
  text-transform: uppercase; font-family: var(--font-en);
  color: var(--cyan); border: 1px solid rgba(6,182,212,0.25);
  background: rgba(6,182,212,0.05); padding: 4px 10px; border-radius: 6px;
  display: inline-block; margin-bottom: 12px;
}
.rm-card h4 { font-size: 15px; font-weight: 700; margin-bottom: 14px; }
.rm-items { list-style: none; display: flex; flex-direction: column; gap: 7px; }
.rm-items li {
  font-size: 13px; color: var(--text-2);
  display: flex; align-items: center; gap: 8px;
}
.rm-items li::before { content: '→'; color: var(--purple-light); font-size: 12px; font-family: var(--font-en); }
body.dir-rtl .rm-items li::before { content: '←'; }

/* ---------- PRICING ---------- */
.pricing-grid {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 24px; align-items: center;
}
.price-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 20px; padding: 36px 30px;
  display: flex; flex-direction: column;
  position: relative; overflow: hidden;
  transition: all .3s var(--ease);
}
.price-card:hover { transform: translateY(-4px); border-color: rgba(124,58,237,0.25); }
.price-card.featured {
  background: linear-gradient(180deg,rgba(124,58,237,0.1),rgba(6,182,212,0.05));
  border-color: rgba(124,58,237,0.4);
  transform: scale(1.03);
  box-shadow: 0 20px 60px rgba(124,58,237,0.15);
}
.price-card.featured:hover { transform: scale(1.03) translateY(-4px); }
.featured-tag {
  position: absolute; top: 16px; right: 16px;
  background: linear-gradient(135deg,var(--purple),var(--cyan));
  color: #fff; font-size: 11px; font-weight: 700;
  padding: 4px 12px; border-radius: 100px;
}
body.dir-rtl .featured-tag { right: auto; left: 16px; }

.p-name { font-size: 24px; font-weight: 800; margin-bottom: 6px; }
.p-for  { font-size: 14px; color: var(--text-3); margin-bottom: 24px; }
.p-divider { height: 1px; background: var(--border); margin-bottom: 20px; }
.p-features { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; flex: 1; }
.p-features li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--text-2); }
.p-check { width: 16px; height: 16px; color: var(--purple-light); flex-shrink: 0; margin-top: 1px; }
.price-card.featured .p-check { color: var(--cyan); }
.p-cta {
  display: block; text-align: center; padding: 13px;
  border-radius: 12px; font-size: 15px; font-weight: 700;
  background: var(--p-cta-bg); border: 1px solid var(--p-cta-bdr);
  color: var(--text); transition: all .2s;
}
.p-cta:hover { background: var(--surface); }
.price-card.featured .p-cta {
  background: linear-gradient(135deg,var(--purple),var(--cyan));
  border: none; box-shadow: 0 8px 24px rgba(124,58,237,0.3); color: #fff;
}
.price-card.featured .p-cta:hover { box-shadow: 0 12px 32px rgba(124,58,237,0.5); }

/* Edge cards */
.edge-card {
  background: var(--edge-bg); border: 1px solid var(--edge-bdr);
  border-radius: var(--radius); padding: 28px;
  transition: all .3s;
}
.edge-card:hover { background: var(--edge-bg-h); border-color: rgba(124,58,237,0.2); }
.edge-card h4 { font-size: 16px; font-weight: 700; margin-bottom: 10px; }
.edge-card p  { font-size: 14px; color: var(--text-2); }

/* ---------- PRODUCT SECTION ---------- */
.product-tabs {
  display: flex; justify-content: center; gap: 6px;
  background: var(--tab-wrap-bg); border: 1px solid var(--border);
  padding: 5px; border-radius: 14px; width: fit-content;
  margin: 0 auto 50px;
  flex-wrap: wrap; max-width: 100%;
}
.ptab {
  display: flex; align-items: center; gap: 7px;
  padding: 10px 20px; border-radius: 10px;
  font-size: 14px; font-weight: 700; color: var(--text-3);
  transition: all .25s var(--ease);
}
.ptab:hover { color: var(--text-2); background: var(--surface); }
.ptab.active { background: var(--bg); color: var(--text); border: 1px solid var(--border); box-shadow: var(--shadow-card); }
.ptab.active svg { color: var(--cyan); }

.product-showcase {
  display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: center;
}
body.dir-rtl .product-showcase { grid-template-areas: 'preview info'; }
body.dir-rtl .ps-info    { grid-area: info; }
body.dir-rtl .ps-preview { grid-area: preview; }

.ps-title { font-size: 26px; font-weight: 800; margin-bottom: 8px; }
.ps-sub   { font-size: 15px; font-weight: 600; color: var(--cyan); margin-bottom: 14px; }
.ps-desc  { font-size: 14px; color: var(--text-2); margin-bottom: 24px; line-height: 1.7; }
.ps-features { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.ps-features li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--text-2); }
.ps-features .chk { width: 18px; height: 18px; color: var(--cyan); flex-shrink: 0; margin-top: 1px; }

/* ========================================
   INTERACTIVE SCREEN STYLES
   ======================================== */
.preview-frame {
  background: var(--scr-bg);
  border: 1px solid var(--scr-border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
  transition: background .4s, border-color .4s;
  position: relative;
}

/* Screen topbar */
.scr-topbar {
  height: 40px;
  background: var(--scr-bar);
  border-bottom: 1px solid var(--scr-border);
  display: flex; align-items: center;
  padding: 0 14px; gap: 8px;
  flex-shrink: 0;
}
.scr-dots { display: flex; gap: 5px; }
.scr-dot { width: 8px; height: 8px; border-radius: 50%; }
.scr-dot-r { background: #ff5f56; }
.scr-dot-y { background: #ffbd2e; }
.scr-dot-g { background: #27c93f; }
.scr-title-bar {
  flex: 1; text-align: center; font-size: 11px;
  color: var(--scr-text2); font-family: var(--font-en);
}

/* Screen layout */
.scr-body {
  display: flex;
  height: calc(100% - 40px);
}

.scr-sidebar {
  width: 120px;
  background: var(--scr-sidebar);
  border-inline-end: 1px solid var(--scr-border);
  padding: 14px 10px;
  display: flex; flex-direction: column;
  gap: 4px; flex-shrink: 0;
}
.scr-logo {
  width: 24px; height: 24px; border-radius: 7px;
  background: linear-gradient(135deg,#7c3aed,#06b6d4);
  margin-bottom: 14px;
}
.scr-nav-item {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 8px; border-radius: 8px; cursor: pointer;
  transition: background .2s;
  font-size: 10px; color: var(--scr-text2);
}
.scr-nav-item.active {
  background: rgba(124,58,237,0.15);
  color: var(--purple-light);
}
.scr-nav-item svg { flex-shrink: 0; }

.scr-main {
  flex: 1; padding: 14px;
  display: flex; flex-direction: column; gap: 10px;
  overflow: hidden;
}

/* Screen KPI cards */
.scr-kpi-row {
  display: flex; gap: 8px;
}
.scr-kpi {
  flex: 1;
  border-radius: 10px;
  padding: 10px;
  border: 1px solid;
  display: flex; flex-direction: column; gap: 4px;
  position: relative; overflow: hidden;
}
.scr-kpi-icon {
  width: 22px; height: 22px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; margin-bottom: 4px;
}
.scr-kpi-val { font-size: 18px; font-weight: 800; font-family: var(--font-en); }
.scr-kpi-lbl { font-size: 9px; color: var(--scr-text2); }
.scr-kpi-trend { font-size: 9px; font-weight: 700; font-family: var(--font-en); }
.scr-trend-up { color: #10b981; }
.scr-trend-down { color: #ef4444; }

.scr-kpi.cyan-card {
  background: rgba(6,182,212,0.06);
  border-color: rgba(6,182,212,0.2);
}
.scr-kpi.cyan-card .scr-kpi-icon { background: rgba(6,182,212,0.15); color: #06b6d4; }
.scr-kpi.cyan-card .scr-kpi-val { color: #06b6d4; }

.scr-kpi.purple-card {
  background: rgba(124,58,237,0.06);
  border-color: rgba(124,58,237,0.2);
}
.scr-kpi.purple-card .scr-kpi-icon { background: rgba(124,58,237,0.15); color: #a78bfa; }
.scr-kpi.purple-card .scr-kpi-val { color: #a78bfa; }

.scr-kpi.orange-card {
  background: rgba(249,115,22,0.06);
  border-color: rgba(249,115,22,0.2);
}
.scr-kpi.orange-card .scr-kpi-icon { background: rgba(249,115,22,0.15); color: #f97316; }
.scr-kpi.orange-card .scr-kpi-val { color: #f97316; }

.scr-kpi.green-card {
  background: rgba(16,185,129,0.06);
  border-color: rgba(16,185,129,0.2);
}
.scr-kpi.green-card .scr-kpi-icon { background: rgba(16,185,129,0.15); color: #10b981; }
.scr-kpi.green-card .scr-kpi-val { color: #10b981; }

/* Screen chart */
.scr-chart {
  background: var(--scr-surface);
  border: 1px solid var(--scr-border);
  border-radius: 10px; padding: 12px;
  display: flex; flex-direction: column; gap: 8px;
}
.scr-chart-header {
  display: flex; justify-content: space-between; align-items: center;
}
.scr-chart-title { font-size: 11px; font-weight: 700; color: var(--scr-text2); }
.scr-chart-badge {
  font-size: 9px; padding: 2px 8px; border-radius: 100px;
  background: rgba(16,185,129,0.15); color: #10b981; font-weight: 700;
  font-family: var(--font-en);
}
.scr-bars { display: flex; align-items: flex-end; gap: 5px; height: 54px; }
.scr-bar {
  flex: 1; border-radius: 3px 3px 0 0;
  transition: all .3s;
}
.scr-bar.inactive { background: rgba(255,255,255,0.06); }
.scr-bar.active-bar { background: linear-gradient(180deg,#06b6d4,rgba(6,182,212,0.2)); }
.scr-bar.purple-bar { background: linear-gradient(180deg,#7c3aed,rgba(124,58,237,0.2)); }
.scr-bar.orange-bar { background: linear-gradient(180deg,#f97316,rgba(249,115,22,0.2)); }

/* Screen table / list */
.scr-table {
  background: var(--scr-surface);
  border: 1px solid var(--scr-border);
  border-radius: 10px; overflow: hidden;
}
.scr-table-head {
  display: flex; gap: 6px; padding: 7px 10px;
  border-bottom: 1px solid var(--scr-border);
  background: rgba(255,255,255,0.02);
}
.scr-th {
  font-size: 9px; font-weight: 700;
  color: var(--scr-text2); text-transform: uppercase;
  letter-spacing: 0.5px;
}
.scr-th-wide { flex: 2; }
.scr-th-med  { flex: 1; }
.scr-table-row {
  display: flex; gap: 6px; padding: 7px 10px; align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  transition: background .2s;
}
.scr-table-row:last-child { border-bottom: none; }
.scr-table-row:hover { background: rgba(255,255,255,0.02); }
.scr-cell { font-size: 10px; color: var(--scr-text); }
.scr-cell-wide { flex: 2; display: flex; align-items: center; gap: 6px; }
.scr-cell-med  { flex: 1; }
.scr-avatar {
  width: 20px; height: 20px; border-radius: 50%;
  background: linear-gradient(135deg,#7c3aed,#06b6d4);
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  font-size: 8px; color: #fff; font-weight: 800;
}
.scr-status {
  display: inline-block; font-size: 9px; font-weight: 700;
  padding: 2px 7px; border-radius: 100px; font-family: var(--font-en);
}
.scr-status.present { background: rgba(16,185,129,0.15); color: #10b981; }
.scr-status.absent  { background: rgba(239,68,68,0.15); color: #ef4444; }
.scr-status.late    { background: rgba(249,115,22,0.15); color: #f97316; }
.scr-grade { font-weight: 800; font-family: var(--font-en); }
.scr-grade.a { color: #10b981; }
.scr-grade.b { color: #06b6d4; }
.scr-grade.c { color: #f97316; }

/* Screen feed/timeline */
.scr-feed {
  background: var(--scr-surface);
  border: 1px solid var(--scr-border);
  border-radius: 10px; padding: 10px;
  display: flex; flex-direction: column; gap: 8px;
}
.scr-feed-title { font-size: 10px; font-weight: 700; color: var(--scr-text2); margin-bottom: 2px; }
.scr-feed-item {
  display: flex; align-items: flex-start; gap: 8px;
}
.scr-feed-dot {
  width: 8px; height: 8px; border-radius: 50%;
  margin-top: 3px; flex-shrink: 0;
  box-shadow: 0 0 6px currentColor;
}
.scr-feed-content { flex: 1; }
.scr-feed-msg { font-size: 10px; color: var(--scr-text); line-height: 1.4; }
.scr-feed-time { font-size: 9px; color: var(--scr-text2); margin-top: 1px; }

/* Student gamification */
.scr-level-bar {
  background: var(--scr-surface);
  border: 1px solid var(--scr-border);
  border-radius: 10px; padding: 12px;
}
.scr-level-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.scr-level-title { font-size: 11px; font-weight: 700; color: var(--scr-text); }
.scr-level-badge {
  font-size: 10px; font-weight: 800; padding: 3px 10px; border-radius: 100px;
  background: linear-gradient(135deg,#f97316,#eab308);
  color: #fff;
}
.scr-progress-track {
  height: 6px; background: rgba(255,255,255,0.06); border-radius: 3px; overflow: hidden;
}
.scr-progress-fill {
  height: 100%; border-radius: 3px;
  background: linear-gradient(90deg,#f97316,#eab308);
  animation: fillBar 2s ease-out forwards;
}
@keyframes fillBar { from { width: 0; } }
.scr-points-row {
  display: flex; gap: 8px; margin-top: 10px;
}
.scr-point-badge {
  flex: 1; padding: 7px; border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.07);
  text-align: center;
  background: rgba(255,255,255,0.02);
}
.scr-point-val { font-size: 14px; font-weight: 800; font-family: var(--font-en); }
.scr-point-lbl { font-size: 8px; color: var(--scr-text2); margin-top: 2px; }

/* Task list */
.scr-tasks {
  background: var(--scr-surface);
  border: 1px solid var(--scr-border);
  border-radius: 10px; padding: 10px;
}
.scr-tasks-title { font-size: 10px; font-weight: 700; color: var(--scr-text2); margin-bottom: 8px; }
.scr-task-item {
  display: flex; align-items: center; gap: 8px;
  padding: 5px 0; border-bottom: 1px solid rgba(255,255,255,0.03);
}
.scr-task-item:last-child { border-bottom: none; }
.scr-checkbox {
  width: 14px; height: 14px; border-radius: 4px;
  border: 1.5px solid; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.scr-checkbox.checked {
  background: #10b981; border-color: #10b981;
}
.scr-checkbox.checked::after { content: '✓'; font-size: 8px; color: #fff; }
.scr-checkbox.unchecked { border-color: rgba(255,255,255,0.2); }
.scr-task-text { font-size: 10px; }
.scr-task-text.done { text-decoration: line-through; color: var(--scr-text2); }
.scr-task-text.pending { color: var(--scr-text); }

/* Parent screen */
.scr-child-card {
  background: linear-gradient(135deg,rgba(124,58,237,0.15),rgba(6,182,212,0.1));
  border: 1px solid rgba(124,58,237,0.25);
  border-radius: 10px; padding: 12px;
  display: flex; align-items: center; gap: 10px;
}
.scr-child-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg,#7c3aed,#06b6d4);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: #fff; font-weight: 800;
  flex-shrink: 0;
}
.scr-child-info { flex: 1; }
.scr-child-name { font-size: 12px; font-weight: 800; color: var(--scr-text); }
.scr-child-sub  { font-size: 10px; color: var(--scr-text2); }
.scr-child-status {
  font-size: 10px; font-weight: 700; padding: 4px 10px; border-radius: 100px;
  background: rgba(16,185,129,0.15); color: #10b981;
}

/* Teacher class view */
.scr-class-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 8px;
}
.scr-class-title { font-size: 11px; font-weight: 700; color: var(--scr-text); }
.scr-ai-btn {
  font-size: 9px; font-weight: 700; padding: 4px 10px; border-radius: 6px;
  background: linear-gradient(135deg,#7c3aed,#06b6d4);
  color: #fff; border: none; cursor: pointer;
  font-family: inherit;
}

/* AI section glow */
.ai-section { position: relative; }
.ai-glow {
  position: absolute; width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle,rgba(124,58,237,0.08) 0%,transparent 70%);
  top: 50%; left: 50%; transform: translate(-50%,-50%);
  pointer-events: none;
}

/* ---------- TEAM ---------- */
.team-grid {
  display: grid; grid-template-columns: repeat(2,1fr);
  gap: 32px; max-width: 760px; margin: 0 auto;
}
.team-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 20px; padding: 40px 32px;
  text-align: center; transition: all .3s var(--ease);
  position: relative; overflow: hidden;
}
.team-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg,var(--purple),var(--cyan));
}
.team-card:hover { border-color: rgba(124,58,237,0.3); transform: translateY(-4px); }
.t-photo-wrap {
  width: 120px; height: 120px; border-radius: 50%;
  margin: 0 auto 20px; overflow: hidden;
  border: 2px solid transparent;
  background: linear-gradient(var(--t-photo-wrap-bg),var(--t-photo-wrap-bg)) padding-box,
              linear-gradient(135deg,var(--purple),var(--cyan)) border-box;
  box-shadow: 0 0 30px rgba(124,58,237,0.2);
}
.t-photo { width: 100%; height: 100%; object-fit: cover; }
.t-name   { font-size: 20px; font-weight: 800; margin-bottom: 8px; }
.t-badge  {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; color: var(--cyan); margin-bottom: 10px;
  border: 1px solid rgba(6,182,212,0.3); padding: 3px 12px; border-radius: 100px;
  background: rgba(6,182,212,0.05);
}
.t-role { font-size: 14px; color: var(--text-2); }

/* ---------- CONTACT ---------- */
.contact-wrap {
  display: grid; grid-template-columns: 4fr 6fr; gap: 56px; align-items: start;
}
.contact-info .eyebrow { margin-bottom: 20px; }
.contact-info h2 { font-size: clamp(24px,3vw,40px); margin-bottom: 16px; }
.contact-info > p { font-size: 16px; color: var(--text-2); margin-bottom: 36px; }

.contact-card {
  display: flex; align-items: center; gap: 14px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 18px; margin-bottom: 20px;
  box-shadow: var(--shadow-card);
}
.cc-icon {
  width: 42px; height: 42px; border-radius: 12px;
  background: rgba(124,58,237,0.1); border: 1px solid rgba(124,58,237,0.2);
  display: flex; align-items: center; justify-content: center;
  color: var(--purple-light); flex-shrink: 0;
}
.cc-icon svg { width: 18px; height: 18px; }
.cc-label { font-size: 12px; color: var(--text-3); margin-bottom: 4px; }
.cc-val   { font-size: 15px; font-weight: 600; }

.wa-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: #25d366; color: #fff;
  font-size: 15px; font-weight: 700;
  padding: 13px 24px; border-radius: 12px;
  box-shadow: 0 8px 24px rgba(37,211,102,0.25);
  transition: all .2s;
}
.wa-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(37,211,102,0.4); }

.contact-form-wrap {
  background: var(--bg-alt);
  border: 1px solid var(--border); border-radius: 20px; padding: 36px;
}
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.field-group { display: flex; flex-direction: column; gap: 7px; margin-bottom: 0; }
.field-group:last-child { margin-bottom: 16px; }

.field-group label { font-size: 13px; font-weight: 700; color: var(--text-2); }
.field-group input, .field-group textarea {
  background: rgba(255,255,255,0.03); border: 1px solid var(--border);
  border-radius: 10px; padding: 12px 14px;
  color: var(--text); font-family: inherit; font-size: 14px;
  transition: border-color .2s, box-shadow .2s; outline: none;
  resize: vertical; width: 100%;
}
.field-group input:focus, .field-group textarea:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(124,58,237,0.15);
}

.submit-btn {
  width: 100%; padding: 15px;
  background: linear-gradient(135deg,var(--purple),var(--cyan));
  color: #fff; font-size: 15px; font-weight: 700; border-radius: 12px;
  box-shadow: 0 8px 24px rgba(124,58,237,0.3);
  transition: all .25s; margin-top: 6px;
}
.submit-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(124,58,237,0.45); }
.submit-btn:disabled { opacity: 0.5; transform: none; cursor: not-allowed; }

#form-response {
  margin-top: 14px; padding: 14px; border-radius: 10px;
  font-size: 14px; font-weight: 600;
}
#form-response.ok  { background: rgba(16,185,129,0.1); border: 1px solid rgba(16,185,129,0.3); color: var(--green); }
#form-response.err { background: rgba(239,68,68,0.1);  border: 1px solid rgba(239,68,68,0.3); color: #f87171; }

/* ---------- FOOTER ---------- */
footer {
  border-top: 1px solid var(--border); padding: 40px 0;
  background: var(--bg);
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 800; }
.footer-tag  { font-size: 14px; color: var(--text-3); font-weight: 600; }
.footer-copy { font-size: 13px; color: var(--text-3); }

/* ---------- RESPONSIVE — TABLET ---------- */
@media (max-width: 1100px) {
  .cards-grid-4 { grid-template-columns: repeat(2,1fr); }
  .product-showcase { grid-template-columns: 1fr; gap: 32px; }
  body.dir-rtl .product-showcase { grid-template-areas: none; }
  body.dir-rtl .ps-info  { grid-area: auto; }
  body.dir-rtl .ps-preview { grid-area: auto; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .price-card.featured { transform: none; }
  .vision-grid { grid-template-columns: repeat(2,1fr); }
  .roadmap-grid { grid-template-columns: repeat(2,1fr); }
  .preview-frame { aspect-ratio: 16/9; }
}

/* ---------- RESPONSIVE — MOBILE ---------- */
@media (max-width: 768px) {
  /* Nuclear overflow prevention */
  html {
    overflow-x: hidden !important;
    max-width: 100vw !important;
  }
  body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
    position: relative;
  }
  * { max-width: 100%; }

  .section { padding: 72px 0; }
  .container { padding: 0 16px; width: 100%; box-sizing: border-box; }
  .sec-header { margin-bottom: 44px; }

  /* ===== NAVBAR FIX ===== */
  .nav-inner { padding: 12px 16px; }
  .nav-links { display: none !important; }
  .btn-cta.desktop-cta { display: none !important; }
  .lang-switcher { display: none !important; }  /* إخفاء مبدل اللغة على الجوال */
  .hamburger { display: flex !important; }
  .mobile-nav { display: flex; }

  /* ===== HERO FIX ===== */
  #hero {
    padding-top: 70px;
    min-height: auto;
    padding-bottom: 60px;
    overflow: hidden;
  }
  .hero-content {
    width: 100%;
    padding: 30px 0 50px;
    overflow: hidden;
  }
  .hero-badge {
    font-size: 11px;
    padding: 6px 12px;
    max-width: calc(100vw - 40px);
    white-space: normal;
    text-align: center;
    line-height: 1.4;
  }
  .hero-title {
    font-size: clamp(28px, 7.5vw, 42px);
    overflow-wrap: break-word;
    word-break: break-word;
    padding: 0 8px;
    width: 100%;
    box-sizing: border-box;
  }
  .hero-title .line-1,
  .hero-title .line-3 {
    display: block;
    width: 100%;
  }
  .hero-title .line-2 {
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
  }
  .hero-sub {
    font-size: 14px;
    margin-bottom: 28px;
    padding: 0 8px;
    width: 100%;
    box-sizing: border-box;
  }
  .hero-ctas { gap: 10px; margin-bottom: 36px; flex-wrap: wrap; padding: 0 8px; }
  .cta-primary, .cta-ghost { padding: 12px 20px; font-size: 14px; }

  /* Hero stats */
  .hero-stats {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0;
    padding: 14px 8px;
    margin-bottom: 40px;
    width: calc(100% - 0px);
    box-sizing: border-box;
  }
  .stat-item { min-width: 80px; flex: 1; padding: 8px 8px; }
  .stat-value { font-size: 26px; }
  .stat-label { font-size: 10px; }
  .stat-sep { width: 1px; height: 36px; }

  /* Hero mockup */
  .hero-mockup { padding: 0; width: 100%; overflow: hidden; }
  .mockup-shell { border-radius: 12px; }
  .mockup-body { height: 220px; }
  .mb-sidebar { width: 90px; }
  .float-badge { display: none; }

  /* Orbs — prevent them causing overflow */
  .orb-1, .orb-2, .orb-3 { display: none; }

  /* Grids */
  .cards-grid-2,
  .cards-grid-3,
  .cards-grid-4,
  .vision-grid,
  .roadmap-grid { grid-template-columns: 1fr; }

  /* Product tabs */
  .product-tabs {
    flex-wrap: wrap; gap: 4px;
    width: 100%; justify-content: center;
    padding: 4px; box-sizing: border-box;
  }
  .ptab { padding: 8px 12px; font-size: 12px; }
  .ptab svg { display: none; }
  .product-showcase { grid-template-columns: 1fr; gap: 24px; }

  /* Preview frame */
  .preview-frame { aspect-ratio: 4/3; border-radius: 12px; overflow: hidden; }
  .scr-sidebar { width: 90px; }

  /* Contact */
  .contact-wrap { grid-template-columns: 1fr; gap: 32px; }
  .form-row-2 { grid-template-columns: 1fr; }
  .contact-form-wrap { padding: 20px; }

  /* Team */
  .team-grid { grid-template-columns: 1fr; max-width: 360px; }

  /* Pricing */
  .pricing-grid { grid-template-columns: 1fr; max-width: 100%; }
  .price-card.featured { transform: none; }

  /* Milestones */
  .milestones-wrap { gap: 8px; }
  .ms-badge { font-size: 11px; padding: 6px 12px; }

  /* Footer */
  .footer-inner { flex-direction: column; text-align: center; }

  /* Nav right compact */
  .nav-right { gap: 8px; flex-shrink: 0; }
  .theme-toggle { width: 34px; height: 34px; }
}

@media (max-width: 480px) {
  h2 { font-size: clamp(22px, 7vw, 32px); }
  .hero-title { font-size: clamp(24px, 8.5vw, 34px); }
  .hero-stats { padding: 10px 6px; }
  .stat-item { min-width: 55px; padding: 6px 6px; }
  .stat-value { font-size: 22px; }
  .hero-ctas { flex-direction: column; align-items: stretch; padding: 0 4px; }
  .cta-primary, .cta-ghost { justify-content: center; text-align: center; }
  .hero-badge { font-size: 10px; padding: 5px 10px; }
  .mockup-body { height: 170px; }
  .mb-sidebar { display: none !important; }
  .mb-main { padding: 12px; }
  .preview-frame { aspect-ratio: auto; height: 260px; }
  .scr-sidebar { display: none !important; }
  .scr-main { padding: 10px; }
  .product-tabs { gap: 3px; }
  .ptab { padding: 7px 10px; font-size: 11px; }
  .t-photo-wrap { width: 100px; height: 100px; }
  .contact-form-wrap { padding: 16px; }
  .team-card { padding: 24px 16px; }
  /* Extra: prevent any stray wide elements */
  section, .container, .sec-header, .hero-content,
  .hero-stats, .hero-ctas, .mockup-shell {
    max-width: 100vw !important;
    box-sizing: border-box;
  }
}
