/* Nasaq ERP (nasaqerp.app) — Flagship Luxury Bilingual Design System
 * Palette: Velvet Emerald (#0c241a / #143728 / #143728), Warm Limestone (#f5f1e8), Champagne Gold (#c8a45d)
 * Strict CSP compatible: zero inline styles required in HTML.
 */

:root {
  --e-950: #0c241a;
  --e-900: #143728;
  --e-850: #143728;
  --e-800: #143728;
  --e-700: #155e45;
  --e-600: #155e45;
  --stone-100: #f5f1e8;
  --stone-50: #fbf9f4;
  --white: #ffffff;
  --border: #e6dfd2;
  --gold: #c8a45d;
  --gold-light: #e6dfd2;
  --gold-soft: #f5f1e8;
  --gold-dark: #143728;
  --ink: #0c241a;
  --muted: #143728;
  --danger-bg: #f5f1e8;
  --danger-border: #e6dfd2;
  --danger-text: #0c241a;
  --ok-bg: #f5f1e8;
  --ok-border: #e6dfd2;
  --ok-text: #143728;
  --shadow-card: 0 22px 50px -24px rgba(12, 36, 26, 0.22), 0 4px 14px -4px rgba(12, 36, 26, 0.06);
  --shadow-float: 0 30px 70px -20px rgba(12, 36, 26, 0.55);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-xl: 30px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family:
    'IBM Plex Sans Arabic',
    system-ui,
    -apple-system,
    'Segoe UI',
    sans-serif;
  background: var(--stone-100);
  color: var(--ink);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 2.5px solid var(--gold);
  outline-offset: 2px;
}

.skip {
  position: absolute;
  inset-inline-start: -9999px;
  top: 8px;
  z-index: 200;
  background: var(--e-950);
  color: var(--gold-light);
  padding: 10px 18px;
  border-radius: 999px;
  border: 1.5px solid var(--gold);
  font-weight: 700;
  text-decoration: none;
}

.skip:focus {
  inset-inline-start: 16px;
}

.hp {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(12, 36, 26, 0);
  white-space: nowrap;
  border: 0;
}

/* Architectural Velvet + Mashrabiya Texture */
.velvet-arch {
  background-color: var(--e-950);
  background-image:
    radial-gradient(ellipse 65% 55% at 85% 15%, rgba(200, 164, 93, 0.22) 0%, transparent 65%),
    radial-gradient(ellipse 60% 55% at 15% 88%, rgba(21, 94, 69, 0.45) 0%, transparent 65%),
    url("data:image/svg+xml,%3Csvg width='72' height='72' viewBox='0 0 72 72' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23c9a66b' stroke-opacity='0.065' stroke-width='1'%3E%3Cpath d='M36 0L72 36L36 72L0 36Z'/%3E%3Ccircle cx='36' cy='36' r='10'/%3E%3Cpath d='M36 12L60 36L36 60L12 36Z'/%3E%3C/g%3E%3C/svg%3E");
}

/* Dynamic Promo Ribbon */
.promo-ribbon {
  background: linear-gradient(90deg, #143728 0%, #155e45 50%, #143728 100%);
  color: #fbf9f4;
  text-align: center;
  padding: 10px 20px;
  font-size: 13px;
  border-bottom: 1px solid rgba(200, 164, 93, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.promo-ribbon-accent {
  color: var(--gold-light);
  font-weight: 700;
}

.promo-ribbon-code {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(200, 164, 93, 0.18);
  border: 1px solid rgba(200, 164, 93, 0.55);
  color: var(--gold-light);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  font-weight: 600;
}

/* Executive Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.navbar-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 13px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  text-decoration: none;
  color: var(--e-900);
  flex-shrink: 0;
}

.brand-emblem {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(145deg, #143728, #0c241a);
  border: 1.5px solid var(--gold);
  color: var(--gold-light);
  display: grid;
  place-items: center;
  font-size: 21px;
  font-weight: 700;
  box-shadow: 0 8px 20px -8px rgba(12, 36, 26, 0.45);
}

.brand-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.15;
}

.brand-sub {
  font-size: 11.5px;
  color: var(--muted);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14px;
  font-weight: 500;
}

.nav-menu a,
.nav-link-btn {
  color: var(--ink);
  text-decoration: none;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  padding: 4px 2px;
  transition: color 0.18s ease;
}

.nav-menu a:hover,
.nav-link-btn:hover,
.nav-menu a[aria-current='page'] {
  color: var(--e-700);
  font-weight: 600;
}

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

.lang-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: var(--stone-50);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
}

.lang-btn {
  border: none;
  background: transparent;
  padding: 5px 11px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  color: var(--muted);
  transition: all 0.18s ease;
}

.lang-btn.active {
  background: var(--e-900);
  color: var(--gold-light);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--e-900);
  font-size: 20px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.mobile-drawer {
  display: none;
  border-top: 1px solid var(--border);
  background: var(--white);
  padding: 16px 24px 22px;
}

.mobile-drawer.open {
  display: block;
}

.mobile-drawer-links {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.mobile-drawer-links a,
.mobile-drawer-links button {
  text-align: start;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--stone-50);
  border: 1px solid var(--border);
  color: var(--e-900);
  text-decoration: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.mobile-drawer-cta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 11px 22px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.22s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
}

.btn-lg {
  padding: 13px 26px;
  font-size: 15px;
}

.btn-block {
  width: 100%;
}

.btn-gold {
  background: linear-gradient(135deg, #c8a45d 0%, #c8a45d 100%);
  color: var(--e-950);
  box-shadow: 0 12px 26px -10px rgba(200, 164, 93, 0.75);
}

.btn-gold:hover:not(:disabled) {
  filter: brightness(1.06);
  transform: translateY(-2px);
}

.btn-emerald {
  background: linear-gradient(135deg, #155e45 0%, #155e45 100%);
  color: #ffffff;
  box-shadow: 0 10px 24px -10px rgba(21, 94, 69, 0.55);
}

.btn-emerald:hover:not(:disabled) {
  filter: brightness(1.08);
  transform: translateY(-2px);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.09);
  color: #ffffff;
  border-color: rgba(200, 164, 93, 0.45);
  backdrop-filter: blur(8px);
}

.btn-glass:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-1px);
}

.btn-outline {
  background: var(--white);
  color: var(--e-900);
  border-color: var(--border);
}

.btn-outline:hover:not(:disabled) {
  border-color: var(--e-700);
  background: var(--stone-50);
}

.btn-ghost-dark {
  background: transparent;
  color: var(--muted);
  border-color: transparent;
}

.btn-ghost-dark:hover:not(:disabled) {
  color: var(--e-900);
  background: var(--stone-50);
}

/* Main Container */
.wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 36px 24px 88px;
}

.wrap-narrow {
  max-width: 1120px;
}

/* CINEMA HERO */
.hero {
  border-radius: var(--radius-xl);
  padding: 54px 48px;
  color: #fbf9f4;
  border: 1px solid rgba(200, 164, 93, 0.4);
  box-shadow: var(--shadow-float);
  display: grid;
  grid-template-columns: 1.06fr 1.02fr;
  gap: 42px;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  inset-inline: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), #155e45, var(--gold), transparent);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 15px;
  border-radius: 999px;
  background: rgba(200, 164, 93, 0.14);
  border: 1px solid rgba(200, 164, 93, 0.45);
  color: var(--gold-light);
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 20px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #155e45;
  box-shadow: 0 0 0 4px rgba(21, 94, 69, 0.25);
  flex-shrink: 0;
}

.hero h1 {
  font-size: 40px;
  line-height: 1.24;
  font-weight: 700;
  margin-bottom: 18px;
  letter-spacing: -0.01em;
}

.gold-txt {
  background: linear-gradient(135deg, #f5f1e8 0%, #c8a45d 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  font-size: 15.5px;
  color: #e6dfd2;
  margin-bottom: 28px;
  max-width: 560px;
}

.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.hm-val {
  font-size: 20px;
  font-weight: 700;
  color: var(--gold-light);
  font-variant-numeric: tabular-nums;
}

.hm-lbl {
  font-size: 12px;
  color: #e6dfd2;
  margin-top: 2px;
}

/* Interactive 3-Tab Live ERP Window inside Hero */
.erp-window {
  background: #ffffff;
  color: var(--ink);
  border-radius: 22px;
  border: 1px solid rgba(200, 164, 93, 0.55);
  box-shadow: 0 32px 70px -18px rgba(12, 36, 26, 0.65);
  overflow: hidden;
}

.erp-win-bar {
  background: var(--e-950);
  color: #fbf9f4;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  border-bottom: 2px solid var(--gold);
  font-size: 12px;
}

.erp-win-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

.win-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.win-tab {
  background: rgba(255, 255, 255, 0.08);
  color: #e6dfd2;
  border: 1px solid transparent;
  padding: 5px 11px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
}

.win-tab:hover {
  background: rgba(200, 164, 93, 0.22);
  color: #ffffff;
}

.win-tab.active {
  background: var(--gold);
  color: var(--e-950);
}

.erp-win-body {
  padding: 18px;
  background: var(--stone-100);
  min-height: 304px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.win-pane {
  display: none;
}

.win-pane.active {
  display: block;
  animation: rise 0.22s ease;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.mini-kpis {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}

.mini-kpi {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--e-700);
  border-radius: 14px;
  padding: 12px 14px;
}

.mini-kpi.g {
  border-top-color: var(--gold);
}

.mini-kpi small {
  font-size: 11px;
  color: var(--muted);
  display: block;
}

.mini-kpi strong {
  display: block;
  font-size: 18px;
  margin-top: 3px;
  font-variant-numeric: tabular-nums;
}

.mini-bar-chart {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  height: 94px;
}

.bar-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  height: 100%;
  justify-content: flex-end;
}

.bar-pair {
  display: flex;
  gap: 3px;
  align-items: flex-end;
  height: 64px;
}

.b-em {
  width: 10px;
  border-radius: 4px 4px 0 0;
  background: var(--e-800);
}

.b-go {
  width: 10px;
  border-radius: 4px 4px 0 0;
  background: var(--gold);
}

.h-28 {
  height: 28px;
}
.h-34 {
  height: 34px;
}
.h-36 {
  height: 36px;
}
.h-38 {
  height: 38px;
}
.h-40 {
  height: 40px;
}
.h-44 {
  height: 44px;
}
.h-46 {
  height: 46px;
}
.h-49 {
  height: 49px;
}
.h-52 {
  height: 52px;
}
.h-56 {
  height: 56px;
}
.h-64 {
  height: 64px;
}

.bar-col span {
  font-size: 10px;
  color: var(--muted);
}

.win-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
}

.win-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.win-card-title {
  color: var(--e-900);
  font-weight: 700;
  font-size: 14px;
}

.win-card-meta {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}

.win-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  padding: 8px 0;
  border-top: 1px solid var(--border);
  font-variant-numeric: tabular-nums;
}

.win-line-total {
  font-size: 14px;
  padding-top: 10px;
  border-top: 2px solid var(--e-800);
  color: var(--e-900);
  font-weight: 700;
}

.journal-row {
  display: grid;
  grid-template-columns: 1.8fr 0.7fr 0.7fr;
  gap: 8px;
  font-size: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-variant-numeric: tabular-nums;
}

.journal-row:last-child {
  border-bottom: none;
}

.journal-head {
  font-weight: 700;
  color: var(--e-900);
  padding-top: 0;
}

.num-col {
  text-align: end;
}

.mini-totals {
  margin-top: 12px;
  background: linear-gradient(135deg, #143728, #143728);
  color: #fbf9f4;
  border-radius: 14px;
  padding: 11px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
}

.gold-badge {
  background: var(--gold);
  color: var(--e-950);
  font-weight: 700;
  padding: 3px 11px;
  border-radius: 999px;
  font-size: 11px;
  white-space: nowrap;
}

/* Trust & Compliance Strip */
.trust-strip {
  margin-top: 24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-around;
  gap: 16px 24px;
  box-shadow: var(--shadow-card);
  font-size: 13px;
  font-weight: 600;
  color: var(--e-900);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.trust-star {
  color: var(--gold-dark);
  font-style: normal;
}

/* Section Headings */
.sec-head {
  text-align: center;
  margin: 64px 0 30px;
}

.sec-head-top {
  margin-top: 10px;
}

.sec-tag {
  display: inline-block;
  padding: 5px 15px;
  border-radius: 999px;
  background: var(--gold-soft);
  border: 1px solid rgba(200, 164, 93, 0.5);
  color: var(--gold-dark);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 12px;
}

.sec-head h2,
.sec-head h1 {
  font-size: 30px;
  line-height: 1.3;
  font-weight: 700;
  color: var(--e-900);
  margin-bottom: 10px;
}

.sec-head p {
  color: var(--muted);
  font-size: 15px;
  max-width: 680px;
  margin: 0 auto;
}

/* Interactive Sector Switcher */
.sector-pills {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.sector-btn {
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--ink);
  padding: 10px 20px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sector-btn:hover {
  border-color: var(--e-700);
}

.sector-btn.active {
  background: var(--e-900);
  color: var(--gold-light);
  border-color: var(--gold);
  box-shadow: 0 10px 24px -10px rgba(12, 36, 26, 0.5);
}

.sector-panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 34px;
  box-shadow: var(--shadow-card);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 30px;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.sector-panel::before {
  content: '';
  position: absolute;
  top: 0;
  inset-inline: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--e-700), var(--gold));
}

.sector-title {
  font-size: 22px;
  line-height: 1.35;
  color: var(--e-900);
}

.sector-bullets {
  list-style: none;
  display: grid;
  gap: 11px;
  margin: 18px 0 24px;
  font-size: 14px;
  color: var(--ink);
}

.sector-bullets li::before {
  content: '✦ ';
  color: var(--gold-dark);
  font-weight: 700;
}

.sector-stat-box {
  border-radius: 20px;
  padding: 26px;
  color: #fbf9f4;
  border: 1px solid rgba(200, 164, 93, 0.4);
}

.sector-stat-tag {
  font-size: 12px;
  color: var(--gold-light);
  font-weight: 700;
}

.sector-stat-val {
  font-size: 30px;
  font-weight: 700;
  color: #ffffff;
  margin: 10px 0 8px;
  line-height: 1.2;
}

.sector-stat-note {
  font-size: 13.5px;
  color: #e6dfd2;
}

/* 3-col Luxury Grid */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.lux-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 26px;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease;
}

.lux-card:hover {
  transform: translateY(-3px);
}

.lux-card::before {
  content: '';
  position: absolute;
  top: 0;
  inset-inline: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--e-700), var(--gold));
}

.lux-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--gold-soft);
  border: 1px solid rgba(200, 164, 93, 0.5);
  display: grid;
  place-items: center;
  font-size: 21px;
  margin-bottom: 14px;
}

.lux-card h3 {
  font-size: 17px;
  color: var(--e-900);
  margin-bottom: 8px;
}

.lux-card p {
  font-size: 13.5px;
  color: var(--muted);
}

/* Pricing Section */
.pricing-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 18px;
}

.cycle-pill {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px;
  display: inline-flex;
  gap: 4px;
}

.cycle-pill button {
  border: none;
  background: transparent;
  padding: 8px 18px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  color: var(--muted);
  transition: all 0.18s ease;
}

.cycle-pill button.active {
  background: var(--e-900);
  color: var(--gold-light);
}

.promo-input-wrap {
  display: inline-flex;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 6px;
  gap: 6px;
}

.promo-input-wrap input {
  border: none;
  outline: none;
  padding: 6px 12px;
  font-family: inherit;
  font-size: 13px;
  width: 175px;
  background: transparent;
  color: var(--ink);
}

.promo-out {
  text-align: center;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--e-700);
  min-height: 24px;
  margin-bottom: 20px;
}

.promo-out.is-err {
  color: var(--danger-text);
}

.plan-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 24px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
}

.plan-card.star {
  background: linear-gradient(160deg, #143728 0%, #0c241a 100%);
  color: #fbf9f4;
  border: 2px solid var(--gold);
  transform: translateY(-6px);
  box-shadow: 0 28px 60px -20px rgba(12, 36, 26, 0.55);
}

.plan-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.plan-code {
  color: var(--gold-dark);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.plan-card.star .plan-code {
  color: var(--gold-light);
}

.plan-name {
  font-size: 23px;
  margin-top: 4px;
  color: var(--e-900);
}

.plan-card.star .plan-name {
  color: #ffffff;
}

.p-desc {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}

.plan-card.star .p-desc,
.plan-card.star .p-list li {
  color: #e6dfd2;
}

.p-price {
  font-size: 26px;
  font-weight: 700;
  color: var(--e-700);
  margin: 16px 0 4px;
  font-variant-numeric: tabular-nums;
}

.plan-card.star .p-price {
  color: var(--gold-light);
}

.p-price-sub {
  display: block;
  font-size: 12px;
  color: var(--muted);
}

.plan-card.star .p-price-sub {
  color: #e6dfd2;
}

.p-list {
  list-style: none;
  display: grid;
  gap: 10px;
  margin-top: 18px;
  font-size: 13.5px;
}

.p-list li::before {
  content: '✓ ';
  color: var(--gold);
  font-weight: 700;
}

/* Addons strip */
.addons-box {
  margin-top: 28px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 22px 24px;
  box-shadow: var(--shadow-card);
}

.addons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.addon-item {
  background: var(--stone-50);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
}

.addon-item h4 {
  font-size: 15px;
  color: var(--e-900);
}

.addon-price {
  font-size: 14px;
  font-weight: 700;
  color: var(--e-700);
  margin-top: 4px;
}

/* Competitor Comparison Table */
.table-box {
  margin-top: 38px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 22px;
  overflow-x: auto;
  box-shadow: var(--shadow-card);
}

.table-box table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 13.5px;
}

.table-box th,
.table-box td {
  padding: 14px 18px;
  text-align: start;
  border-bottom: 1px solid var(--border);
}

.table-box tbody tr:last-child td {
  border-bottom: none;
}

.table-box th {
  background: #fbf9f4;
  color: var(--e-900);
  font-weight: 700;
}

.hl-col {
  background: rgba(21, 94, 69, 0.07);
  font-weight: 700;
  color: var(--e-900);
}

/* FAQ */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px 20px;
  box-shadow: 0 8px 20px -16px rgba(12, 36, 26, 0.25);
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 15px;
  color: var(--e-900);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.faq-item summary::after {
  content: '+';
  color: var(--gold-dark);
  font-size: 20px;
  font-weight: 700;
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-item p {
  margin-top: 10px;
  font-size: 14px;
  color: var(--muted);
}

/* Closing Banner */
.closing-cta {
  margin-top: 64px;
  border-radius: var(--radius-xl);
  padding: 46px 36px;
  text-align: center;
  color: #fbf9f4;
  border: 1px solid rgba(200, 164, 93, 0.45);
  box-shadow: var(--shadow-float);
}

.closing-cta h2 {
  font-size: 30px;
  margin-bottom: 10px;
}

.closing-cta p {
  color: #e6dfd2;
  max-width: 600px;
  margin: 0 auto 24px;
  font-size: 15px;
}

.closing-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

/* Forms (Demo & Signup) with Prominent Saudi +966 Phone Input */
.form-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: start;
}

.form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 34px 32px;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.form-card::before {
  content: '';
  position: absolute;
  top: 0;
  inset-inline: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--e-700), var(--gold));
}

.form-heading {
  font-size: 26px;
  line-height: 1.3;
  color: var(--e-900);
}

.form-sub {
  font-size: 14px;
  color: var(--muted);
  margin-top: 6px;
}

.f-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 22px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--e-900);
}

.field-hint {
  font-size: 12px;
  color: var(--muted);
}

.field input,
.field select,
.field textarea {
  border: 1px solid var(--border);
  border-radius: 13px;
  padding: 11px 14px;
  font-family: inherit;
  font-size: 14px;
  background: var(--stone-50);
  color: var(--ink);
  outline: none;
  width: 100%;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--e-700);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(21, 94, 69, 0.12);
}

.phone-group {
  display: flex;
  direction: ltr;
  align-items: stretch;
  border: 1px solid var(--border);
  border-radius: 13px;
  overflow: hidden;
  background: var(--stone-50);
}

.phone-group:focus-within {
  border-color: var(--e-700);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(21, 94, 69, 0.12);
}

.phone-prefix {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  background: #e6dfd2;
  color: var(--e-900);
  font-weight: 700;
  font-size: 13px;
  border-right: 1px solid var(--border);
  white-space: nowrap;
}

.phone-group input {
  border: none;
  box-shadow: none;
  background: transparent;
  border-radius: 0;
}

.phone-group input:focus {
  box-shadow: none;
  background: transparent;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.chip {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--stone-50);
  color: var(--ink);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
}

.chip:hover {
  border-color: var(--e-700);
}

.chip.on {
  background: var(--e-900);
  color: var(--gold-light);
  border-color: var(--e-900);
}

.alert {
  padding: 12px 15px;
  border-radius: 13px;
  background: var(--danger-bg);
  border: 1px solid var(--danger-border);
  color: var(--danger-text);
  font-size: 13.5px;
  font-weight: 600;
  grid-column: 1 / -1;
}

.success-box {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--ok-bg);
  border: 1px solid var(--ok-border);
  color: var(--ok-text);
  font-weight: 600;
  font-size: 14px;
}

.consent {
  font-size: 12.5px;
  color: var(--muted);
  text-align: center;
  margin-top: 4px;
}

.consent a {
  color: var(--e-700);
  font-weight: 600;
}

/* Signup Stepper */
.stepper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 22px;
}

.stepper span {
  height: 5px;
  border-radius: 999px;
  background: var(--border);
  transition: background 0.25s ease;
}

.stepper span.on {
  background: linear-gradient(90deg, var(--e-700), var(--gold));
}

.code-input {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 10px;
  text-align: center;
  padding: 14px;
}

.done-mark {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--ok-bg);
  border: 2px solid var(--e-700);
  color: var(--e-700);
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 14px;
}

.step-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 18px;
}

.aside-lux {
  border-radius: var(--radius-lg);
  padding: 30px;
  color: #fbf9f4;
  border: 1px solid rgba(200, 164, 93, 0.45);
  box-shadow: var(--shadow-card);
}

.aside-lux h2,
.aside-lux h3 {
  color: var(--gold-light);
  font-size: 20px;
  margin-bottom: 14px;
}

.aside-lux ul {
  list-style: none;
  display: grid;
  gap: 13px;
  font-size: 13.5px;
  color: #e6dfd2;
  margin-bottom: 22px;
}

.aside-lux li::before {
  content: '✦ ';
  color: var(--gold);
}

.aside-note {
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(200, 164, 93, 0.35);
  font-size: 13px;
  color: #e6dfd2;
}

.aside-note strong {
  color: var(--gold-light);
  display: block;
  margin-bottom: 4px;
}

/* FLOATING AI SMART ASSISTANT («مساعد نسق الذكي / Nasaq AI Assistant») */
.ai-fab {
  position: fixed;
  bottom: 24px;
  inset-inline-end: 24px;
  z-index: 95;
  background: linear-gradient(135deg, #143728 0%, #155e45 100%);
  color: #ffffff;
  border: 1.5px solid var(--gold);
  border-radius: 999px;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 18px 40px -10px rgba(12, 36, 26, 0.65);
  transition: transform 0.2s ease;
}

.ai-fab:hover {
  transform: translateY(-3px) scale(1.02);
}

.ai-fab-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(200, 164, 93, 0.3);
}

.ai-drawer {
  position: fixed;
  bottom: 84px;
  inset-inline-end: 24px;
  width: 380px;
  max-width: calc(100vw - 32px);
  background: var(--white);
  border: 1.5px solid var(--gold);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 70px -15px rgba(12, 36, 26, 0.5);
  z-index: 96;
  display: none;
  flex-direction: column;
  overflow: hidden;
}

.ai-drawer.open {
  display: flex;
  animation: rise 0.22s ease;
}

.ai-head {
  background: linear-gradient(135deg, #0c241a, #143728);
  color: #fbf9f4;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 2px solid var(--gold);
}

.ai-head-title {
  color: var(--gold-light);
  font-size: 15px;
  font-weight: 700;
  display: block;
}

.ai-head-sub {
  font-size: 11.5px;
  color: #e6dfd2;
}

.ai-close {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #ffffff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.ai-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.ai-body {
  padding: 16px;
  background: var(--stone-50);
  max-height: 300px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.msg {
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.58;
  max-width: 92%;
}

.msg.bot {
  background: var(--white);
  border: 1px solid var(--border);
  align-self: flex-start;
  color: var(--ink);
}

.msg.usr {
  background: var(--e-900);
  color: #fbf9f4;
  align-self: flex-end;
}

.ai-quick {
  padding: 10px 14px;
  background: var(--white);
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.q-chip {
  background: var(--gold-soft);
  border: 1px solid rgba(200, 164, 93, 0.55);
  color: var(--e-900);
  padding: 5px 11px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.16s ease;
}

.q-chip:hover {
  background: var(--gold);
}

.ai-foot {
  padding: 10px 12px;
  background: var(--white);
  border-top: 1px solid var(--border);
  display: flex;
  gap: 8px;
}

.ai-foot input {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 14px;
  font-family: inherit;
  font-size: 13px;
  outline: none;
  background: var(--stone-50);
  color: var(--ink);
}

.ai-foot input:focus {
  border-color: var(--e-700);
  background: var(--white);
}

/* Footer */
.site-footer {
  background: var(--e-950);
  color: #e6dfd2;
  border-top: 2px solid var(--gold);
  padding: 40px 24px 32px;
  margin-top: 48px;
}

.foot-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  font-size: 13px;
}

.foot-brand {
  color: var(--gold-light);
  font-weight: 700;
}

.foot-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: center;
}

.foot-links a {
  color: #e6dfd2;
  text-decoration: none;
  transition: color 0.18s ease;
}

.foot-links a:hover {
  color: var(--gold-light);
}

/* Responsive Polish */
@media (max-width: 1024px) {
  .hero {
    padding: 42px 32px;
    gap: 30px;
  }
  .hero h1 {
    font-size: 34px;
  }
}

@media (max-width: 920px) {
  .nav-menu,
  .nav-cta .btn {
    display: none;
  }
  .nav-toggle {
    display: inline-flex;
  }
  .hero,
  .grid-3,
  .sector-panel,
  .form-layout {
    grid-template-columns: 1fr;
  }
  .plan-card.star {
    transform: none;
  }
  .hero {
    padding: 32px 22px;
  }
  .hero h1 {
    font-size: 28px;
  }
  .sec-head h2,
  .sec-head h1 {
    font-size: 25px;
  }
  .f-grid {
    grid-template-columns: 1fr;
  }
  .form-card,
  .aside-lux {
    padding: 24px 20px;
  }
}

@media (max-width: 540px) {
  .wrap {
    padding: 24px 16px 88px;
  }
  .navbar-inner {
    padding: 11px 16px;
  }
  .hero-metrics {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .mini-kpis {
    grid-template-columns: 1fr;
  }
  .ai-fab {
    bottom: 16px;
    inset-inline-end: 16px;
    padding: 10px 16px;
    font-size: 13px;
  }
  .ai-drawer {
    bottom: 72px;
    inset-inline-end: 16px;
  }
  .mobile-drawer-cta {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Commercial & Legal Subpages (Strict CSP, zero inline styles) */
.subpage-hero {
  background: linear-gradient(135deg, var(--e-950), var(--e-800));
  color: #fbf9f4;
  padding: 3.5rem 1.25rem;
}
.subpage-hero .container {
  max-width: 1120px;
  margin: 0 auto;
}
.subpage-hero h1 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.subpage-hero p {
  max-width: 720px;
  color: var(--gold-light);
  line-height: 1.7;
}
.subpage-main {
  max-width: 1120px;
  margin: 2.5rem auto 4rem;
  padding: 0 1.25rem;
}
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.4rem;
  box-shadow: var(--shadow-card);
}
.card h2,
.card h3 {
  color: var(--ink);
  margin-bottom: 0.5rem;
}
.card p,
.card li {
  color: var(--muted);
  line-height: 1.75;
}
.card ul {
  padding-inline-start: 1.25rem;
  margin-top: 0.5rem;
}
.plan-card-selected {
  border: 2px solid var(--e-700);
}
.plan-price {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--e-800);
  margin: 0.75rem 0;
}
.cycle-toggle {
  display: inline-flex;
  gap: 0.5rem;
  background: var(--stone-100);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.3rem;
  margin: 1rem 0;
}
.cycle-btn {
  border: 0;
  background: transparent;
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  color: var(--muted);
}
.cycle-btn.active {
  background: var(--e-800);
  color: #fbf9f4;
}
.summary-box {
  background: linear-gradient(135deg, var(--e-950), var(--e-800));
  color: #fbf9f4;
  border: 1px solid var(--gold);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-top: 1.5rem;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(200, 164, 93, 0.25);
}
.summary-row:last-child {
  border-bottom: 0;
  color: var(--gold-light);
  font-size: 1.1rem;
}
.legal-article {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2rem;
  line-height: 1.85;
}
.legal-article h2 {
  color: var(--e-800);
  margin: 1.5rem 0 0.5rem;
  font-size: 1.15rem;
}
.legal-placeholder {
  background: var(--gold-soft);
  border: 1px solid var(--gold);
  color: #0c241a;
  padding: 0.1rem 0.45rem;
  border-radius: 6px;
  font-weight: 600;
}
.subpage-footer {
  background: var(--e-950);
  color: #e6dfd2;
  padding: 2rem 1.25rem;
  margin-top: 3rem;
}
.subpage-footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.9rem;
}
.subpage-footer a {
  color: var(--gold-light);
  text-decoration: none;
  margin-inline-end: 1rem;
}
.promo-form-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}
.promo-form-inline input {
  padding: 0.6rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  min-width: 220px;
}
.addon-card {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  cursor: pointer;
}


/* Booking and module selection */
.module-showcase { padding-block: 4rem; background: #f5f1e8; }
.module-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: .7rem; }
.module-option { display: flex; align-items: center; gap: .65rem; padding: .8rem 1rem; border: 1px solid #e6dfd2; border-radius: .75rem; background: #fbf9f4; color: #0c241a; cursor: pointer; }
.module-option input { accent-color: #155e45; flex: 0 0 auto; }
.module-picker, .payment-picker { min-width: 0; border: 1px solid #e6dfd2; border-radius: .9rem; padding: 1rem; }
.module-picker legend, .payment-picker legend { padding-inline: .45rem; color: #0c241a; font-weight: 700; }
.payment-picker { display: grid; gap: .6rem; }
.bank-details { background: #f5f1e8; }
.iban-value { direction: ltr; text-align: start; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.transfer-fields { display: grid; gap: .55rem; }
.booking-cta { margin-block-start: 1rem; text-align: center; }
@media (max-width: 600px) { .module-options { grid-template-columns: 1fr; } }
