:root {
  --brand: #206bc4;
  --brand-dark: #14457f;
  --ink: #0f172a;
  --muted: #64748b;
  --bg: #f7f9fc;
  --surface: #ffffff;
}

* { box-sizing: border-box; }
body { font-family: "Cairo", "Noto Sans Arabic", system-ui, -apple-system, sans-serif; background: var(--bg); color: var(--ink); }
.py-6 { padding-top: 5rem; padding-bottom: 5rem; }
.bg-soft { background: linear-gradient(180deg, #f8fbff 0%, #f4f7fc 100%); }

.site-navbar { background: rgba(15, 23, 42, .92); backdrop-filter: blur(10px); }
.site-navbar .nav-link { color: rgba(255,255,255,.85); font-weight: 600; }
.site-navbar .nav-link:hover { color: #fff; }

.hero-section { background: radial-gradient(circle at 20% 0%, #1e3a8a 0%, #0f172a 45%, #0b1020 100%); color: #fff; }
.hero-kicker { display: inline-flex; padding: .35rem .85rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.28); background: rgba(255,255,255,.08); font-size: .9rem; }
.hero-orb { position: absolute; border-radius: 50%; pointer-events: none; filter: blur(4px); opacity: .45; transition: transform .2s linear; }
.orb-1 { width: 300px; height: 300px; right: 8%; top: 12%; background: radial-gradient(circle, rgba(56,189,248,.8), rgba(56,189,248,0)); }
.orb-2 { width: 240px; height: 240px; left: -40px; bottom: -20px; background: radial-gradient(circle, rgba(167,139,250,.8), rgba(167,139,250,0)); }
.hero-stat-card { background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.2); border-radius: 1rem; padding: 1.5rem; }

.section-title { font-size: clamp(1.6rem, 2.8vw, 2.3rem); font-weight: 800; margin-bottom: .5rem; }
.section-subtitle { color: var(--muted); margin-bottom: 0; }

.surface-card, .feature-card, .service-card, .project-card, .credentials-box {
  background: var(--surface);
  border: 1px solid #e7edf5;
  border-radius: 1rem;
  box-shadow: 0 8px 25px rgba(14, 29, 61, .05);
  padding: 1.25rem;
}
.feature-card, .service-card, .project-card { height: 100%; }
.project-card p, .service-card p, .feature-card p { color: var(--muted); }

.cta-banner {
  border-radius: 1.1rem;
  padding: 3rem 1.5rem;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), #1d4ed8);
  box-shadow: 0 12px 35px rgba(32,107,196,.28);
}

.empty-state { background: #fff; border: 1px dashed #c9d5e7; border-radius: 1rem; padding: 2rem; text-align: center; color: var(--muted); }
.status-badge { border-radius: 999px; padding: .35rem .7rem; font-weight: 700; font-size: .72rem; }
.status-active { background: #dcfce7; color: #166534; }
.status-coming_soon { background: #fef3c7; color: #92400e; }
.status-private_demo { background: #dbeafe; color: #1e40af; }
.credential-row { display: grid; grid-template-columns: 90px 1fr; gap: .6rem; align-items: center; margin-bottom: .55rem; }
.credential-row code { white-space: normal; word-break: break-all; }

.mouse-lift { transition: transform .25s ease, box-shadow .25s ease; }
.mouse-lift:hover { transform: translateY(-6px); box-shadow: 0 14px 30px rgba(15, 23, 42, .14); }

.site-footer { background: #0f172a; color: #e2e8f0; }
.site-footer a { color: #cbd5e1; text-decoration: none; }
.site-footer a:hover { color: #fff; }

/* Scope to public nav only — global .navbar-nav broke admin vertical sidebar alignment in RTL */
[dir="rtl"] .site-navbar .navbar-nav { margin-right: auto !important; margin-left: 0 !important; }
[dir="rtl"] .credential-row { grid-template-columns: 1fr 90px; }

@media (max-width: 991px) {
  .py-6 { padding-top: 3.2rem; padding-bottom: 3.2rem; }
  .hero-orb { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .mouse-lift, .hero-orb { transition: none !important; }
  .mouse-lift:hover { transform: none; }
}

/* Legacy class name kept for any older markup */
.demo-preview-modal,
.demo-modal .modal-content { border-radius: 0; }
@media (min-width: 992px) {
  .demo-preview-modal { border-radius: 0.75rem; overflow: hidden; box-shadow: 0 24px 60px rgba(15, 23, 42, 0.35); }
}
[dir="rtl"] body { text-align: right; }
[dir="rtl"] .hero-stat-card .d-flex { flex-direction: row-reverse; }

/* Admin RTL: Arabic uses Tabler `navbar-end` on the sidebar (right fixed bar + .page-wrapper margin). */
[dir="rtl"] .admin-body .text-end { text-align: left !important; }
[dir="rtl"] .admin-body .btn-list { justify-content: flex-start; }
[dir="rtl"] .admin-body .breadcrumb-item + .breadcrumb-item::before { float: right; transform: scaleX(-1); }
[dir="rtl"] .admin-body .form-hint { display: block; text-align: right; }
[dir="rtl"] .admin-body .dropdown-menu-end { --tblr-position: start; }

body.public-body { background: var(--theme-bg, var(--bg)); }

/* Subtle cursor-follow glow (public site only; enhanced in public-effects.js) */
.public-cursor-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  --cx: 50%;
  --cy: 35%;
  --glow-r: 32;
  --glow-g: 107;
  --glow-b: 196;
  background: radial-gradient(
    520px circle at var(--cx) var(--cy),
    rgba(var(--glow-r), var(--glow-g), var(--glow-b), 0.11),
    transparent 58%
  );
  opacity: 0;
  transition: opacity 0.5s ease;
}
.public-cursor-glow.is-active { opacity: 1; }
.page-shell[data-cursor-fx] { position: relative; z-index: 1; }

.public-body .mouse-lift.mouse-tilt-ready { transition: transform 0.14s ease-out, box-shadow 0.25s ease; }
@media (prefers-reduced-motion: reduce) {
  .public-cursor-glow { display: none !important; }
  .public-body .mouse-lift.mouse-tilt-ready { transition: none !important; }
}
.btn-rounded .btn { border-radius: .75rem !important; }
.btn-soft .btn { border-radius: .4rem !important; }
.btn-pill .btn { border-radius: 999px !important; }
.spacing-compact .py-6 { padding-top: 3rem; padding-bottom: 3rem; }
.spacing-spacious .py-6 { padding-top: 6rem; padding-bottom: 6rem; }
.hero-angled .hero-section { clip-path: polygon(0 0,100% 0,100% 92%,0 100%); }
.hero-split .hero-section { background-image: linear-gradient(90deg, rgba(255,255,255,.06) 50%, rgba(0,0,0,.14) 50%); }

.admin-page-shell { min-height: 100vh; }
.admin-sidebar { transition: width .2s ease; }
.admin-sidebar .nav-link { display: flex; align-items: center; gap: .75rem; border-radius: .5rem; margin-bottom: .25rem; }
.admin-sidebar .nav-link-icon { width: 1.1rem; text-align: center; opacity: .9; }
.admin-sidebar .nav-item.active .nav-link,
.admin-sidebar .nav-link:hover { background: rgba(255,255,255,.08); }
.admin-topbar { border-bottom: 1px solid #e7edf5; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); }

@media (min-width: 992px) {
  .admin-sidebar-collapsed .admin-sidebar { width: 4.8rem; }
  .admin-sidebar-collapsed .admin-sidebar .navbar-brand,
  .admin-sidebar-collapsed .admin-sidebar .nav-link-title { display: none; }
  .admin-sidebar-collapsed .admin-sidebar .nav-link { justify-content: center; }

  /* body carries both classes; previous selector (.collapsed .admin-body) never matched */
  .admin-body.admin-sidebar-collapsed .navbar-expand-lg.navbar-vertical:not(.navbar-end):not(.navbar-right) ~ .page-wrapper {
    margin-left: 4.8rem;
    margin-right: 0;
  }
  .admin-body.admin-sidebar-collapsed .navbar-expand-lg.navbar-vertical.navbar-end ~ .page-wrapper,
  .admin-body.admin-sidebar-collapsed .navbar-expand-lg.navbar-vertical.navbar-right ~ .page-wrapper {
    margin-right: 4.8rem;
    margin-left: 0;
  }
}

/* Tabler sets margin-right on .nav-link-icon; in RTL that pushes the cluster the wrong way — .nav-link gap handles spacing */
[dir="rtl"] .admin-sidebar .nav-link-icon { margin-right: 0 !important; }
[dir="rtl"] .admin-sidebar .nav-link { justify-content: flex-start; }
[dir="rtl"] .admin-sidebar .navbar-brand { text-align: right; width: 100%; }
[dir="rtl"] .admin-topbar .dropdown-menu-end { --tblr-position: start; }

/* Honeypot: off-screen, unfocusable for real users */
.hp-field {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* —— Demo preview (marketplace-style chrome) —— */
.demo-preview-dialog {
  max-width: 100%;
  margin: 0;
}
@media (min-width: 992px) {
  .demo-preview-dialog {
    max-width: min(1180px, 96vw);
    margin: 1.5rem auto;
  }
}
.demo-preview-chrome {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  background: linear-gradient(90deg, #0b1220 0%, #1e293b 55%, #0f172a 100%);
  color: #f8fafc;
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}
.demo-preview-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}
.demo-preview-favicon {
  border-radius: 0.35rem;
  flex-shrink: 0;
  background: #fff;
}
.demo-preview-favicon-fallback {
  display: inline-block;
  width: 32px;
  height: 32px;
  border-radius: 0.35rem;
  background: linear-gradient(135deg, var(--brand, #206bc4), var(--brand-dark, #14457f));
}
.demo-preview-company {
  display: block;
  font-weight: 800;
  font-size: 0.95rem;
  line-height: 1.2;
}
.demo-preview-product {
  font-size: 0.78rem;
  color: rgba(248, 250, 252, 0.72);
  max-width: 220px;
}
@media (min-width: 768px) {
  .demo-preview-product { max-width: 320px; }
}
.demo-preview-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(248, 250, 252, 0.85);
}
.demo-preview-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.35);
  animation: demo-pulse 1.8s ease-in-out infinite;
}
@keyframes demo-pulse {
  50% { opacity: 0.55; transform: scale(0.92); }
}
@media (prefers-reduced-motion: reduce) {
  .demo-preview-dot { animation: none; }
}
.demo-preview-url-pill {
  display: block;
  max-width: 420px;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.35);
  color: #e2e8f0;
  font-size: 0.75rem;
}
.demo-preview-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-inline-start: auto;
}
.demo-credentials-panel {
  background: #f8fafc;
  color: #0f172a;
}
.demo-preview-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  background: #0f172a;
}
.demo-preview-modal {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
}
@media (min-width: 992px) {
  .demo-preview-modal { min-height: 82vh; }
}
.demo-preview-frame-wrap {
  position: relative;
  flex: 1;
  min-height: 280px;
  background: #020617;
}
#open-demo-link.disabled {
  pointer-events: none;
  opacity: 0.5;
}
@media (min-width: 992px) {
  .demo-preview-frame-wrap { min-height: 420px; }
}
.demo-preview-iframe {
  width: 100%;
  height: 100%;
  min-height: 280px;
  border: 0;
  display: block;
  background: #fff;
}
.demo-iframe-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  background: rgba(15, 23, 42, 0.92);
  color: #f8fafc;
}
.demo-preview-hint {
  background: #0f172a;
  color: rgba(226, 232, 240, 0.75) !important;
}

/* —— Home enterprise interactions —— */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  z-index: 1080;
  background: linear-gradient(90deg, var(--brand, #206bc4), var(--brand-dark, #14457f));
  pointer-events: none;
}
.hero-trust-chips { gap: 0.5rem; }
.hero-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.92);
}
.home-metric-value {
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
}
.home-metric-label { margin-top: 0.25rem; }
.home-service-card { position: relative; overflow: hidden; }
.home-card-accent {
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--brand, #206bc4), var(--brand-dark, #14457f));
  opacity: 0.85;
}
[dir="rtl"] .home-card-accent {
  left: auto;
  right: 0;
}
.home-pillar {
  background: var(--surface, #fff);
  border: 1px solid #e7edf5;
  border-radius: 1rem;
  padding: 1.35rem 1.25rem;
  box-shadow: 0 8px 22px rgba(14, 29, 61, 0.05);
}
.home-pillar-icon {
  font-size: 1.75rem;
  line-height: 1;
  margin-bottom: 0.65rem;
}
.home-process-index {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.65rem;
  font-weight: 800;
  font-size: 0.9rem;
  background: linear-gradient(135deg, var(--brand, #206bc4), var(--brand-dark, #14457f));
  color: #fff;
}
.home-quote {
  background: var(--surface, #fff);
  border: 1px solid #e7edf5;
  border-radius: 1.1rem;
  padding: 1.5rem 1.35rem;
  margin: 0;
  box-shadow: 0 10px 28px rgba(14, 29, 61, 0.06);
}
.home-quote p {
  font-size: 1.02rem;
  line-height: 1.55;
}
.home-final-cta {
  position: relative;
  overflow: hidden;
}
.home-final-cta::after {
  content: "";
  position: absolute;
  inset: -40% -20%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.14), transparent 55%);
  pointer-events: none;
}
.reveal-on-scroll {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal-on-scroll.is-inview {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
.home-tech-marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.home-tech-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.65rem;
  width: max-content;
  animation: home-marquee 38s linear infinite;
}
.home-tech-marquee-slow .home-tech-track {
  animation-duration: 52s;
}
@keyframes home-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
[dir="rtl"] .home-tech-track {
  animation-direction: reverse;
}
@media (prefers-reduced-motion: reduce) {
  .home-tech-track { animation: none; justify-content: center; flex-wrap: wrap; width: 100%; }
}
.home-tech-pill {
  display: inline-flex;
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #334155;
}
.home-tech-pill-dark {
  background: #fff;
  border-color: #e7edf5;
}
.home-faq-accordion .accordion-button:not(.collapsed) {
  background: rgba(32, 107, 196, 0.08);
  color: var(--brand, #206bc4);
}
.home-project-media img { object-fit: cover; }
.object-fit-cover { object-fit: cover; }
