/* ============================================
   SHAPE — Landing Page
   Bilingual (AR/EN) · Dark/Light · Animated
   ============================================ */

:root {
  /* ── Brand palette (derived from logo: coral #f05060 + deep purple #100030) ── */
  --brand:        #f05060;   /* primary coral from logo */
  --brand-light:  #ff7a8a;
  --brand-deep:   #c8384a;
  --brand-peach:  #ff9670;
  --brand-rose:   #fcd9d3;
  --brand-mauve:  #2a0942;   /* mid tone of the logo bg purple */
  --brand-night:  #100030;   /* exact dark from logo */

  /* ── Surfaces (light default) ── */
  --bg:          #fdf8f6;
  --bg-soft:     #f7eee9;
  --bg-card:     #ffffff;
  --bg-elev:     #ffffff;
  --bg-dark:     #100030;

  --ink:         #100030;
  --ink-soft:    #3a2240;
  --ink-mute:    #76627e;
  --ink-faint:   #b0a0b8;
  --line:        #efe3de;
  --line-strong: #ddcec6;

  /* Legacy variable aliases (still used by some components) */
  --violet:      #f05060;
  --violet-2:    #ff7a8a;
  --blue:        #c8384a;
  --cyan:        #ff9670;
  --pink:        #f05060;
  --lime:        #ffb38a;
  --amber:       #ff8a5b;
  --success:     #2db97a;

  --grad-1: linear-gradient(135deg, #f05060 0%, #ff8a5b 100%);
  --grad-2: linear-gradient(135deg, #ff7a8a 0%, #c8384a 100%);
  --grad-3: linear-gradient(135deg, #f05060 0%, #2a0942 100%);
  --grad-mesh: radial-gradient(circle at 18% 22%, rgba(240,80,96,0.28), transparent 45%),
               radial-gradient(circle at 82% 18%, rgba(255,138,91,0.22), transparent 50%),
               radial-gradient(circle at 50% 92%, rgba(42,9,66,0.18), transparent 55%);

  /* Logo control */
  --logo-dark-display:  block;
  --logo-light-display: none;

  /* Typography */
  --ff-display: 'Sora', system-ui, sans-serif;
  --ff-sans:    'Inter', system-ui, sans-serif;
  --ff-ar:      'Cairo', 'Tajawal', system-ui, sans-serif;
  --ff-ar-display: 'IBM Plex Sans Arabic', 'Cairo', system-ui, sans-serif;
  --ff-mono:    'JetBrains Mono', ui-monospace, monospace;

  --t-eyebrow: 0.6875rem;
  --t-xs: 0.75rem; --t-sm: 0.875rem; --t-base: 1rem;
  --t-md: 1.125rem; --t-lg: 1.25rem;
  --t-h4: 1.5rem; --t-h3: 1.875rem;
  --t-h2: clamp(2rem, 4.5vw, 3.25rem);
  --t-h1: clamp(2.5rem, 6.5vw, 4.5rem);

  --s-1: 0.25rem; --s-2: 0.5rem; --s-3: 0.75rem; --s-4: 1rem;
  --s-5: 1.25rem; --s-6: 1.5rem; --s-8: 2rem; --s-10: 2.5rem;
  --s-12: 3rem; --s-16: 4rem; --s-20: 5rem; --s-24: 6rem;

  --header-h: 70px;
  --max-w: 1240px;
  --gutter: 1.25rem;
  --r: 16px;
  --r-sm: 10px;
  --r-lg: 24px;
  --r-pill: 999px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  --safe-top: env(safe-area-inset-top, 0);
  --safe-bottom: env(safe-area-inset-bottom, 0);
}

/* ── Dark theme overrides ── */
[data-theme="dark"] {
  --bg:          #0a0019;
  --bg-soft:     #160632;
  --bg-card:     #1a0a37;
  --bg-elev:     #221248;
  --ink:         #f8eef0;
  --ink-soft:    #d8c5cb;
  --ink-mute:    #9c8a93;
  --ink-faint:   #6e5d68;
  --line:        #2e1a4a;
  --line-strong: #432866;

  --grad-mesh: radial-gradient(circle at 18% 22%, rgba(240,80,96,0.32), transparent 45%),
               radial-gradient(circle at 82% 18%, rgba(255,138,91,0.18), transparent 50%),
               radial-gradient(circle at 50% 92%, rgba(110,40,160,0.28), transparent 55%);

  --logo-dark-display:  none;
  --logo-light-display: block;
}

/* ── Latin language overrides ── */
html[lang="en"] {
  --ff-ar:         'Inter', system-ui, sans-serif;
  --ff-ar-display: 'Sora', system-ui, sans-serif;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--ff-ar);
  font-size: var(--t-base);
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100dvh;
  transition: background-color 250ms ease, color 250ms ease;
}
img, svg, picture, video { display: block; max-width: 100%; height: auto; }
button { background: none; border: none; cursor: pointer; font: inherit; color: inherit; -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
input, textarea { font: inherit; color: inherit; background: transparent; border: none; outline: none; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; }
::selection { background: var(--violet); color: #fff; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-soft); }
::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: var(--r-pill); }

.shell { max-width: var(--max-w); margin: 0 auto; padding-inline: var(--gutter); }
@media (min-width: 768px) { .shell { padding-inline: 2rem; } }

/* Hide elements per language */
.lang-ar { display: inline; }
.lang-en { display: none; }
html[lang="en"] .lang-ar { display: none; }
html[lang="en"] .lang-en { display: inline; }

/* Display-friendly Arabic headings */
h1, h2, h3, h4, .d-display {
  font-family: var(--ff-ar-display);
  font-weight: 700;
  letter-spacing: -0.01em;
}
html[lang="en"] h1, html[lang="en"] h2, html[lang="en"] h3, html[lang="en"] h4 {
  letter-spacing: -0.025em;
}

/* Headings stronger weight Arabic */
html[lang="ar"] h1, html[lang="ar"] h2 { font-weight: 800; }

/* ── Animations ── */
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 currentColor; }
  70%  { box-shadow: 0 0 0 8px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}
@keyframes glow {
  0%, 100% { opacity: 0.55; }
  50%      { opacity: 0.95; }
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Utility */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--ff-sans);
  font-size: var(--t-eyebrow);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--violet);
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: pulse 2.4s infinite; }
.eyebrow--pill {
  background: rgba(240,80,96,0.1);
  border: 1px solid rgba(240,80,96,0.25);
  padding: 7px 14px;
  border-radius: var(--r-pill);
}
[data-theme="dark"] .eyebrow--pill {
  background: rgba(255,122,138,0.16);
  border-color: rgba(255,122,138,0.3);
}
.gradtext {
  background: var(--grad-1);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.gradtext--2 { background: var(--grad-2); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.gradtext--3 { background: var(--grad-3); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 600ms var(--ease), transform 600ms var(--ease);
}
.reveal-stagger.is-visible > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 70ms; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 140ms; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 210ms; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 280ms; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 350ms; }
.reveal-stagger.is-visible > *:nth-child(7) { transition-delay: 420ms; }
.reveal-stagger.is-visible > *:nth-child(8) { transition-delay: 490ms; }
.reveal-stagger.is-visible > *:nth-child(9) { transition-delay: 560ms; }
.reveal-stagger.is-visible > *:nth-child(10) { transition-delay: 630ms; }

/* ── Buttons ── */
.btn {
  --bg: var(--ink);
  --fg: var(--bg);
  --bd: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  padding: 0 var(--s-6);
  min-height: 48px;
  background: var(--bg);
  color: var(--fg);
  border: 1px solid var(--bd);
  border-radius: var(--r-pill);
  font-family: var(--ff-sans);
  font-size: var(--t-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: all 220ms var(--ease);
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
html[lang="ar"] .btn { font-family: var(--ff-ar); font-weight: 700; }
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,0.18) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 600ms var(--ease);
}
[dir="rtl"] .btn::before { transform: translateX(100%); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 32px -10px rgba(16,0,48,0.35); }
.btn:hover::before { transform: translateX(100%); }
[dir="rtl"] .btn:hover::before { transform: translateX(-100%); }
.btn:active { transform: scale(0.97); }

.btn--grad {
  --bd: transparent;
  background: var(--grad-1);
  color: #fff;
  box-shadow: 0 8px 24px -6px rgba(240,80,96,0.5);
}
.btn--grad:hover { box-shadow: 0 16px 40px -8px rgba(240,80,96,0.65); }

.btn--outline { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--outline:hover { border-color: var(--ink); }

.btn--ghost { background: transparent; color: var(--ink); border-color: transparent; }
.btn--ghost:hover { background: var(--bg-soft); border-color: var(--bg-soft); box-shadow: none; transform: none; }

.btn--lg { min-height: 56px; padding-inline: var(--s-8); font-size: var(--t-base); }

/* ── Header ── */
.header {
  position: fixed;
  top: var(--s-4);
  inset-inline: var(--s-4);
  z-index: 100;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: var(--r-pill);
  box-shadow: 0 10px 40px -10px rgba(16,0,48,0.12);
  max-width: 1180px;
  margin-inline: auto;
  transition: top 300ms var(--ease), transform 300ms var(--ease), background 250ms;
}
[data-theme="dark"] .header {
  background: rgba(20,18,42,0.72);
  border-color: rgba(255,255,255,0.08);
  box-shadow: 0 12px 40px -10px rgba(16,0,48,0.45);
}
@media (min-width: 768px) { .header { top: var(--s-5); inset-inline: var(--s-6); } }

.header__row {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: var(--s-4);
  padding-inline: var(--s-5);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
}
.brand__logo {
  height: 32px;
  width: auto;
  object-fit: contain;
}
.brand__logo--light { display: var(--logo-light-display); }
.brand__logo--dark  { display: var(--logo-dark-display); }

.nav { display: none; gap: 1.75rem; margin-inline: auto; }
@media (min-width: 1024px) { .nav { display: flex; } }
.nav a {
  font-family: var(--ff-sans);
  font-size: var(--t-sm);
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 200ms;
}
html[lang="ar"] .nav a { font-family: var(--ff-ar); font-weight: 600; }
.nav a:hover { color: var(--violet); }

.header__actions { display: flex; align-items: center; gap: var(--s-2); margin-inline-start: auto; }
@media (min-width: 1024px) { .header__actions { margin-inline-start: 0; } }

.icon-toggle {
  width: 38px; height: 38px;
  border-radius: var(--r-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  transition: background 180ms, color 180ms;
  background: transparent;
  border: 1px solid var(--line);
}
.icon-toggle:hover { background: var(--bg-soft); color: var(--violet); border-color: var(--line-strong); }
.icon-toggle--lang {
  font-family: var(--ff-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  width: auto;
  padding: 0 12px;
}

/* Sun/moon swap based on theme */
.icon-sun  { display: none; }
.icon-moon { display: block; }
[data-theme="dark"] .icon-sun  { display: block; }
[data-theme="dark"] .icon-moon { display: none; }

.burger { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; color: var(--ink); }
@media (min-width: 1024px) { .burger { display: none; } }

/* ── HERO ── */
.hero {
  position: relative;
  padding: clamp(8rem, 14vw, 10rem) var(--gutter) clamp(4rem, 7vw, 6rem);
  text-align: center;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(240,80,96,0.18), transparent 50%),
    radial-gradient(circle at 80% 30%, rgba(255,150,112,0.16), transparent 50%),
    radial-gradient(circle at 50% 80%, rgba(240,80,96,0.12), transparent 50%);
  pointer-events: none;
}
[data-theme="dark"] .hero__bg {
  background:
    radial-gradient(circle at 20% 20%, rgba(240,80,96,0.35), transparent 50%),
    radial-gradient(circle at 80% 30%, rgba(255,150,112,0.22), transparent 50%),
    radial-gradient(circle at 50% 80%, rgba(240,80,96,0.18), transparent 50%);
}
.hero__grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(16,0,48,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16,0,48,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 70%);
          mask-image: radial-gradient(ellipse at center, #000 30%, transparent 70%);
  pointer-events: none;
}
[data-theme="dark"] .hero__grid {
  background-image:
    linear-gradient(rgba(244,244,246,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244,244,246,0.05) 1px, transparent 1px);
}
.hero__content { position: relative; z-index: 2; max-width: 920px; margin-inline: auto; }
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: 6px 6px 6px 16px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-family: var(--ff-sans);
  font-size: var(--t-xs);
  color: var(--ink-soft);
  margin-bottom: var(--s-6);
  animation: fadeUp 700ms var(--ease) 50ms both;
}
html[lang="ar"] .hero__badge { font-family: var(--ff-ar); }
[dir="rtl"] .hero__badge { padding: 6px 16px 6px 6px; }
.hero__badge .pill { display: inline-flex; align-items: center; gap: 4px; background: var(--grad-1); color: #fff; font-weight: 700; padding: 4px 10px; border-radius: var(--r-pill); font-size: 0.625rem; letter-spacing: 0.1em; text-transform: uppercase; }
.hero__title {
  font-family: var(--ff-ar-display);
  font-size: var(--t-h1);
  font-weight: 800;
  line-height: 1.08;
  color: var(--ink);
  margin-bottom: var(--s-5);
  animation: fadeUp 800ms var(--ease) 150ms both;
}
html[lang="en"] .hero__title { font-family: var(--ff-display); letter-spacing: -0.03em; line-height: 1.02; }
.hero__sub {
  font-size: var(--t-md);
  color: var(--ink-soft);
  max-width: 620px;
  margin: 0 auto var(--s-8);
  line-height: 1.75;
  animation: fadeUp 800ms var(--ease) 250ms both;
}
.hero__ctas { display: flex; gap: var(--s-3); justify-content: center; flex-wrap: wrap; animation: fadeUp 800ms var(--ease) 350ms both; }
.hero__trust { margin-top: var(--s-5); font-size: var(--t-xs); color: var(--ink-mute); animation: fadeUp 800ms var(--ease) 450ms both; }
.hero__trust b { color: var(--ink); font-weight: 700; }

/* Hero showcase */
.hero__showcase {
  position: relative;
  max-width: 1080px;
  margin: var(--s-12) auto 0;
  animation: fadeUp 1000ms var(--ease) 550ms both;
}
.showcase__frame {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow:
    0 60px 120px -40px rgba(16,0,48,0.4),
    0 30px 60px -30px rgba(240,80,96,0.3);
  border: 1px solid var(--line);
  background: var(--bg-card);
}
.showcase__frame::before {
  content: '';
  position: absolute;
  top: 0;
  inset-inline: 0;
  height: 32px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
  z-index: 2;
}
.showcase__frame::after {
  content: '';
  position: absolute;
  top: 11px;
  inset-inline-start: 16px;
  width: 50px;
  height: 10px;
  background:
    radial-gradient(circle at 5px 5px, #ff5f57 0, #ff5f57 5px, transparent 6px),
    radial-gradient(circle at 25px 5px, #febc2e 0, #febc2e 5px, transparent 6px),
    radial-gradient(circle at 45px 5px, #28c840 0, #28c840 5px, transparent 6px);
  z-index: 3;
}
.showcase__img { display: block; width: 100%; height: auto; padding-top: 32px; }
.showcase__phone {
  position: absolute;
  inset-inline-end: -10px;
  bottom: -40px;
  width: 180px;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 40px 80px -20px rgba(16,0,48,0.5);
  border: 6px solid var(--ink);
  background: var(--ink);
  animation: floatY 5s ease-in-out infinite;
}
@media (min-width: 768px) { .showcase__phone { width: 220px; inset-inline-end: -30px; bottom: -50px; } }
.showcase__phone img { width: 100%; height: auto; display: block; }

.float-chip {
  position: absolute;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 8px 14px;
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--ff-sans);
  font-size: var(--t-xs);
  font-weight: 600;
  color: var(--ink);
  box-shadow: 0 10px 30px -10px rgba(16,0,48,0.18);
  animation: floatY 6s ease-in-out infinite;
}
html[lang="ar"] .float-chip { font-family: var(--ff-ar); }
.float-chip svg { color: var(--violet); }
.float-chip--1 { top: 15%; inset-inline-start: 5%; animation-delay: 0s; }
.float-chip--2 { top: 25%; inset-inline-end: 4%; animation-delay: 1.5s; }
.float-chip--3 { bottom: 38%; inset-inline-start: 7%; animation-delay: 3s; }
@media (max-width: 900px) { .float-chip { display: none; } }

/* ── Logos marquee ── */
.logos {
  border-block: 1px solid var(--line);
  padding-block: var(--s-8);
  overflow: hidden;
  position: relative;
}
.logos__lbl { text-align: center; font-family: var(--ff-sans); font-size: var(--t-xs); letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: var(--s-5); }
html[lang="ar"] .logos__lbl { font-family: var(--ff-ar); }
.logos__track {
  display: inline-flex;
  align-items: center;
  gap: clamp(2rem, 6vw, 4rem);
  white-space: nowrap;
  width: max-content;
  animation: marquee 35s linear infinite;
}
[dir="rtl"] .logos__track { animation-direction: reverse; }
.logos__item {
  font-family: var(--ff-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink-mute);
  opacity: 0.55;
  transition: all 200ms;
}
.logos__item:hover { opacity: 1; color: var(--ink); }

/* ── Section base ── */
.sec { padding-block: clamp(4rem, 8vw, 7rem); }
.sec--soft { background: var(--bg-soft); }
.sec__head { text-align: center; margin-bottom: var(--s-12); max-width: 720px; margin-inline: auto; }
.sec__head h2 {
  font-family: var(--ff-ar-display);
  font-size: var(--t-h2);
  font-weight: 800;
  line-height: 1.1;
  color: var(--ink);
  margin-block: var(--s-4) var(--s-4);
}
html[lang="en"] .sec__head h2 { font-family: var(--ff-display); letter-spacing: -0.025em; line-height: 1.05; }
.sec__head p { color: var(--ink-soft); font-size: var(--t-md); max-width: 600px; margin-inline: auto; line-height: 1.75; }

/* ── Stats ── */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-6);
  padding: var(--s-10) 0;
}
@media (min-width: 768px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { text-align: center; }
.stat__n {
  font-family: var(--ff-display);
  font-size: clamp(2.25rem, 4.5vw, 3.25rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
}
.stat__l {
  font-family: var(--ff-sans);
  font-size: var(--t-sm);
  color: var(--ink-mute);
  margin-top: var(--s-2);
}
html[lang="ar"] .stat__l { font-family: var(--ff-ar); }

/* ── Apps (Bento) ── */
.apps {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-4);
}
@media (min-width: 640px) { .apps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) {
  .apps {
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: auto auto;
  }
  .app--1 { grid-column: span 3; }
  .app--2 { grid-column: span 3; }
  .app--3 { grid-column: span 2; }
  .app--4 { grid-column: span 2; }
  .app--5 { grid-column: span 2; }
}
.app {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s-8);
  overflow: hidden;
  transition: border-color 250ms, transform 300ms var(--ease), box-shadow 300ms;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.app:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: 0 24px 60px -24px rgba(16,0,48,0.18); }
[data-theme="dark"] .app:hover { box-shadow: 0 24px 60px -24px rgba(16,0,48,0.55); }
.app__icon {
  width: 48px; height: 48px;
  border-radius: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin-bottom: var(--s-2);
}
.app--1 .app__icon { background: var(--grad-1); }
.app--2 .app__icon { background: linear-gradient(135deg, #f05060, #ff8a5b); }
.app--3 .app__icon { background: linear-gradient(135deg, #10b981, #ff9670); }
.app--4 .app__icon { background: linear-gradient(135deg, #ff8a5b, #f05060); }
.app--5 .app__icon { background: linear-gradient(135deg, #c8384a, #f05060); }
.app__name { font-family: var(--ff-ar-display); font-size: var(--t-h3); font-weight: 800; }
html[lang="en"] .app__name { font-family: var(--ff-display); letter-spacing: -0.01em; }
.app__desc { color: var(--ink-soft); font-size: var(--t-sm); line-height: 1.7; max-width: 38ch; }
.app__feats { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: var(--s-4); }
.app__feat {
  font-family: var(--ff-sans);
  font-size: var(--t-xs);
  font-weight: 500;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 4px 10px;
  color: var(--ink-soft);
}
html[lang="ar"] .app__feat { font-family: var(--ff-ar); }

/* ── Features ── */
.feats { display: grid; grid-template-columns: 1fr; gap: var(--s-4); }
@media (min-width: 640px) { .feats { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .feats { grid-template-columns: repeat(3, 1fr); } }
.feat {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: var(--s-6);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  transition: transform 280ms var(--ease), border-color 200ms, box-shadow 200ms;
}
.feat:hover { transform: translateY(-3px); border-color: var(--violet); box-shadow: 0 16px 40px -16px rgba(240,80,96,0.25); }
.feat__icon {
  width: 44px; height: 44px;
  border-radius: 11px;
  background: rgba(240,80,96,0.1);
  color: var(--violet);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
[data-theme="dark"] .feat__icon { background: rgba(255,122,138,0.18); }
.feat--blue   .feat__icon { background: rgba(200,56,74,0.1); color: var(--blue); }
.feat--pink   .feat__icon { background: rgba(240,80,96,0.1); color: var(--pink); }
.feat--green  .feat__icon { background: rgba(16,185,129,0.1); color: var(--success); }
.feat--amber  .feat__icon { background: rgba(245,158,11,0.12); color: var(--amber); }
.feat--cyan   .feat__icon { background: rgba(255,150,112,0.12); color: var(--cyan); }
.feat h3 { font-family: var(--ff-ar-display); font-size: var(--t-md); font-weight: 700; }
html[lang="en"] .feat h3 { font-family: var(--ff-display); }
.feat p { color: var(--ink-soft); font-size: var(--t-sm); line-height: 1.7; }

/* ── Verticals ── */
.verticals {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-3);
}
@media (min-width: 640px) { .verticals { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .verticals { grid-template-columns: repeat(6, 1fr); } }
.vertical {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: var(--s-5) var(--s-3);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-3);
  text-align: center;
  transition: all 220ms var(--ease);
}
.vertical:hover { border-color: var(--violet); transform: translateY(-3px); background: rgba(240,80,96,0.04); }
[data-theme="dark"] .vertical:hover { background: rgba(255,122,138,0.08); }
.vertical__icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--bg-soft);
  color: var(--violet);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 220ms;
}
.vertical:hover .vertical__icon { background: var(--violet); color: #fff; }
.vertical__name { font-family: var(--ff-sans); font-size: var(--t-sm); font-weight: 600; color: var(--ink); }
html[lang="ar"] .vertical__name { font-family: var(--ff-ar); font-weight: 700; }
.vertical__count { font-family: var(--ff-mono); font-size: 0.625rem; color: var(--ink-mute); }

/* ── Addons ── */
.addons { display: grid; grid-template-columns: 1fr; gap: var(--s-4); }
@media (min-width: 768px) { .addons { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .addons { grid-template-columns: repeat(3, 1fr); } }
.addon {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  overflow: hidden;
  transition: all 300ms var(--ease);
}
.addon:hover { transform: translateY(-4px); box-shadow: 0 24px 60px -24px rgba(16,0,48,0.2); border-color: var(--line-strong); }
[data-theme="dark"] .addon:hover { box-shadow: 0 24px 60px -24px rgba(16,0,48,0.55); }
.addon__top { display: flex; align-items: start; justify-content: space-between; gap: var(--s-3); margin-bottom: var(--s-3); }
.addon__icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--grad-1);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.addon--accounting .addon__icon { background: linear-gradient(135deg, #10b981, #ff9670); }
.addon--warehouse  .addon__icon { background: linear-gradient(135deg, #ff8a5b, #f05060); }
.addon--builder    .addon__icon { background: linear-gradient(135deg, #f05060, #f05060); }
.addon--ai         .addon__icon { background: linear-gradient(135deg, #ff9670, #f05060); }
.addon--marketing  .addon__icon { background: linear-gradient(135deg, #f05060, #f05060); }
.addon--crm        .addon__icon { background: linear-gradient(135deg, #c8384a, #ff9670); }
.addon__tag {
  font-family: var(--ff-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--violet);
  background: rgba(240,80,96,0.1);
  padding: 4px 10px;
  border-radius: var(--r-pill);
}
[data-theme="dark"] .addon__tag { background: rgba(255,122,138,0.2); color: var(--violet-2); }
.addon h3 { font-family: var(--ff-ar-display); font-size: var(--t-md); font-weight: 700; margin-bottom: var(--s-2); }
html[lang="en"] .addon h3 { font-family: var(--ff-display); }
.addon p { color: var(--ink-soft); font-size: var(--t-sm); line-height: 1.7; margin-bottom: var(--s-4); }
.addon ul { display: flex; flex-direction: column; gap: 8px; }
.addon li { font-size: var(--t-xs); color: var(--ink-soft); display: flex; align-items: center; gap: var(--s-2); }
.addon li svg { color: var(--success); flex-shrink: 0; }

/* ── Split feature block ── */
.split { display: grid; grid-template-columns: 1fr; gap: var(--s-10); align-items: center; }
@media (min-width: 1024px) { .split { grid-template-columns: 1fr 1fr; gap: var(--s-16); } }
.split--rev .split__img { order: 2; }
@media (max-width: 1023px) { .split--rev .split__img { order: 0; } }
.split__img {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg-soft);
  box-shadow: 0 30px 80px -30px rgba(16,0,48,0.3);
  border: 1px solid var(--line);
}
[data-theme="dark"] .split__img { box-shadow: 0 30px 80px -30px rgba(16,0,48,0.6); }
.split__img img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }
.split__body h2 {
  font-family: var(--ff-ar-display);
  font-size: var(--t-h2);
  font-weight: 800;
  line-height: 1.15;
  margin-block: var(--s-4) var(--s-4);
}
html[lang="en"] .split__body h2 { font-family: var(--ff-display); line-height: 1.08; letter-spacing: -0.02em; }
.split__body > p { color: var(--ink-soft); font-size: var(--t-md); margin-bottom: var(--s-6); line-height: 1.75; }
.split__list { display: flex; flex-direction: column; gap: var(--s-4); }
.split__item { display: flex; gap: var(--s-3); align-items: start; }
.split__check { width: 28px; height: 28px; border-radius: 50%; background: rgba(16,185,129,0.12); color: var(--success); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
[data-theme="dark"] .split__check { background: rgba(16,185,129,0.2); }
.split__item h4 { font-family: var(--ff-ar-display); font-size: var(--t-base); font-weight: 700; margin-bottom: 4px; }
html[lang="en"] .split__item h4 { font-family: var(--ff-display); }
.split__item p { color: var(--ink-soft); font-size: var(--t-sm); line-height: 1.65; }

/* ── Reviews ── */
.reviews { display: grid; grid-template-columns: 1fr; gap: var(--s-5); }
@media (min-width: 768px) { .reviews { grid-template-columns: repeat(3, 1fr); } }
.review {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  transition: all 250ms;
}
.review:hover { transform: translateY(-3px); box-shadow: 0 16px 40px -16px rgba(16,0,48,0.15); }
.review__stars { color: var(--amber); letter-spacing: 2px; font-size: var(--t-sm); }
.review p { font-family: var(--ff-ar-display); font-size: var(--t-md); line-height: 1.65; color: var(--ink); flex: 1; }
html[lang="en"] .review p { font-family: var(--ff-display); font-weight: 500; }
.review__by { display: flex; align-items: center; gap: var(--s-3); padding-top: var(--s-3); border-top: 1px solid var(--line); }
.review__av { width: 44px; height: 44px; border-radius: 50%; background: var(--grad-1); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-family: var(--ff-display); font-weight: 700; }
.review__by strong { display: block; font-size: var(--t-sm); font-weight: 700; }
.review__by span { font-size: var(--t-xs); color: var(--ink-mute); }

/* ── FAQ ── */
.faq { max-width: 760px; margin-inline: auto; display: flex; flex-direction: column; gap: var(--s-3); }
.q {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  transition: border-color 200ms, box-shadow 200ms;
}
.q.is-open { border-color: var(--violet); box-shadow: 0 12px 32px -16px rgba(240,80,96,0.25); }
.q__trigger {
  width: 100%;
  padding: var(--s-5) var(--s-6);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-4);
  text-align: start;
  font-family: var(--ff-ar-display);
  font-size: var(--t-md);
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
}
html[lang="en"] .q__trigger { font-family: var(--ff-display); font-weight: 600; }
.q__trigger svg { transition: transform 300ms var(--ease); color: var(--ink-mute); flex-shrink: 0; }
.q.is-open .q__trigger svg { transform: rotate(45deg); color: var(--violet); }
.q__panel { max-height: 0; overflow: hidden; transition: max-height 350ms var(--ease); }
.q.is-open .q__panel { max-height: 320px; }
.q__panel-inner { padding: 0 var(--s-6) var(--s-5); color: var(--ink-soft); line-height: 1.8; }

/* ── Final CTA ── */
.cta {
  position: relative;
  background: var(--bg-dark);
  color: #fff;
  padding: clamp(4rem, 8vw, 6rem) var(--gutter);
  text-align: center;
  overflow: hidden;
  border-radius: var(--r-lg);
  margin: clamp(2rem, 5vw, 5rem) var(--gutter);
}
@media (min-width: 768px) { .cta { margin-inline: 2rem; } }
.cta__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(240,80,96,0.5), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(240,80,96,0.4), transparent 50%);
  pointer-events: none;
  animation: glow 6s ease-in-out infinite alternate;
}
.cta__content { position: relative; z-index: 1; max-width: 680px; margin-inline: auto; }
.cta h2 {
  font-family: var(--ff-ar-display);
  font-size: var(--t-h1);
  font-weight: 800;
  line-height: 1.12;
  color: #fff;
  margin-bottom: var(--s-4);
}
html[lang="en"] .cta h2 { font-family: var(--ff-display); letter-spacing: -0.03em; line-height: 1.05; }
.cta p { color: rgba(255,255,255,0.75); font-size: var(--t-md); margin-bottom: var(--s-8); line-height: 1.75; }
.cta__ctas { display: flex; gap: var(--s-3); justify-content: center; flex-wrap: wrap; }
.cta .btn--ghost { color: #fff; border-color: rgba(255,255,255,0.3); }
.cta .btn--ghost:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.5); }

/* ── Footer ── */
.foot { padding-block: var(--s-12) var(--s-5); background: var(--bg); border-top: 1px solid var(--line); }
.foot__top { display: grid; grid-template-columns: 1fr; gap: var(--s-8); margin-bottom: var(--s-10); }
@media (min-width: 768px) { .foot__top { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.foot__col p { font-size: var(--t-sm); color: var(--ink-soft); line-height: 1.7; max-width: 34ch; margin: var(--s-3) 0 var(--s-4); }
.foot__col h4 {
  font-family: var(--ff-sans);
  font-size: var(--t-eyebrow);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: var(--s-4);
}
html[lang="ar"] .foot__col h4 { font-family: var(--ff-ar); }
.foot__col ul { display: flex; flex-direction: column; gap: var(--s-2); }
.foot__col a { font-size: var(--t-sm); color: var(--ink-soft); transition: color 180ms; }
.foot__col a:hover { color: var(--violet); }
.foot__bottom {
  padding-top: var(--s-5);
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--s-3);
  font-size: var(--t-xs);
  color: var(--ink-mute);
}
.foot__social { display: flex; gap: var(--s-2); }
.foot__social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--bg-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  transition: all 180ms;
}
.foot__social a:hover { background: var(--ink); color: var(--bg); }

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .logos__track { animation: none !important; transform: none !important; }
  .float-chip, .showcase__phone, .cta__bg { animation: none !important; }
  .hero__blob, .gradtext--shine { animation: none !important; }
  .dash, .dash__toast, .dash__phone, .dash__phone-tile::after,
  .dash__pts .dash__pt-last, .dash__live-dot, .dash__line, .dash__area,
  .dash__order { animation: none !important; }
  .dash { transform: none !important; opacity: 1 !important; }
  .dash__line { stroke-dashoffset: 0 !important; }
  .dash__area { opacity: 1 !important; }
  .reveal, .reveal-stagger > * { opacity: 1 !important; transform: none !important; }
}


/* ── Header scroll states ── */
.header.is-scrolled {
  top: 8px;
  box-shadow: 0 16px 50px -16px rgba(16,0,48,0.18);
}
[data-theme="dark"] .header.is-scrolled {
  box-shadow: 0 16px 50px -16px rgba(16,0,48,0.55);
}
.header.is-hidden {
  transform: translateY(-130%);
}


/* ════════════════════════════════════════════
   HERO — Enhanced animations + blobs
   ════════════════════════════════════════════ */

.hero__blob {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  filter: blur(50px);
  opacity: 0.55;
  border-radius: 50%;
  will-change: transform;
}
.hero__blob--1 { top: 8%;   inset-inline-start: 6%;  width: 360px; height: 360px; background: radial-gradient(circle, #f05060 0%, transparent 70%); animation: blob-1 18s ease-in-out infinite; }
.hero__blob--2 { top: 14%;  inset-inline-end: 8%;    width: 420px; height: 420px; background: radial-gradient(circle, #ff8a5b 0%, transparent 70%); animation: blob-2 22s ease-in-out infinite; }
.hero__blob--3 { bottom: 6%; inset-inline-start: 40%; width: 480px; height: 480px; background: radial-gradient(circle, #2a0942 0%, transparent 70%); opacity: 0.4; animation: blob-3 26s ease-in-out infinite; }
[data-theme="dark"] .hero__blob--3 { background: radial-gradient(circle, #6e28a0 0%, transparent 70%); opacity: 0.5; }

@keyframes blob-1 {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  33%      { transform: translate3d(60px, -40px, 0) scale(1.1); }
  66%      { transform: translate3d(-30px, 50px, 0) scale(0.9); }
}
@keyframes blob-2 {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50%      { transform: translate3d(-80px, 30px, 0) scale(1.15); }
}
@keyframes blob-3 {
  0%, 100% { transform: translate3d(-50%, 0, 0) scale(1); }
  50%      { transform: translate3d(-50%, -40px, 0) scale(1.08); }
}

/* Gradient shine for hero title accent */
.gradtext--shine {
  background-size: 200% 100%;
  animation: shine 6s linear infinite;
}
@keyframes shine {
  0%   { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

/* Stronger hero title entrance */
.hero__title { animation: fadeUp 900ms var(--ease) 100ms both; }
.hero__title > span { display: block; }

/* Float chip subtle motion */
.float-chip { animation: float-chip 5s var(--ease) infinite; }
.float-chip--1 { animation-delay: 0s;   }
.float-chip--2 { animation-delay: 1.4s; }
.float-chip--3 { animation-delay: 2.8s; }
@keyframes float-chip {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50%      { transform: translate3d(0, -10px, 0); }
}


/* ════════════════════════════════════════════
   HERO — Dashboard mockup (pure CSS, no images)
   ════════════════════════════════════════════ */

.dash {
  position: relative;
  max-width: 1080px;
  margin: clamp(2.5rem, 5vw, 4rem) auto 0;
  border-radius: 18px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  box-shadow:
    0 60px 120px -40px rgba(16,0,48,0.35),
    0 30px 60px -30px rgba(240,80,96,0.25);
  transform: perspective(1600px) rotateX(8deg) translateY(0);
  transform-origin: top center;
  animation: dash-tilt 1200ms var(--ease) 600ms both, dash-hover 8s ease-in-out 1800ms infinite;
  will-change: transform;
}
.dash__chrome { border-radius: 17px 17px 0 0; }
.dash__body   { border-radius: 0 0 17px 17px; overflow: hidden; background: var(--bg-card); position: relative; z-index: 1; }
[data-theme="dark"] .dash {
  box-shadow:
    0 60px 120px -40px rgba(0,0,0,0.7),
    0 30px 60px -30px rgba(240,80,96,0.3);
}

@keyframes dash-tilt {
  from { transform: perspective(1600px) rotateX(28deg) translateY(80px) scale(0.92); opacity: 0; }
  to   { transform: perspective(1600px) rotateX(8deg)  translateY(0)    scale(1);    opacity: 1; }
}
@keyframes dash-hover {
  0%, 100% { transform: perspective(1600px) rotateX(8deg)  translateY(0); }
  50%      { transform: perspective(1600px) rotateX(6deg)  translateY(-10px); }
}

/* Chrome bar */
.dash__chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: linear-gradient(180deg, var(--bg-soft), var(--bg-card));
  border-bottom: 1px solid var(--line);
}
.dash__dot { width: 11px; height: 11px; border-radius: 50%; }
.dash__dot--r { background: #ff5f57; }
.dash__dot--y { background: #ffbd2e; }
.dash__dot--g { background: #28c840; }
.dash__url {
  margin-inline-start: 12px;
  font-family: var(--ff-mono);
  font-size: 12px;
  color: var(--ink-mute);
  background: var(--bg);
  padding: 4px 12px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
}
.dash__chrome-spacer { flex: 1; }
.dash__live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--ff-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--brand-deep);
  background: rgba(240,80,96,0.1);
  padding: 4px 10px;
  border-radius: var(--r-pill);
}
[data-theme="dark"] .dash__live { color: var(--brand-light); background: rgba(240,80,96,0.18); }
.dash__live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); animation: pulse-dot 1.4s infinite; }
@keyframes pulse-dot {
  0%, 100% { transform: scale(1);   box-shadow: 0 0 0 0 rgba(240,80,96,0.6); }
  50%      { transform: scale(1.2); box-shadow: 0 0 0 6px rgba(240,80,96,0); }
}

/* Body grid */
.dash__body { display: grid; grid-template-columns: 200px 1fr; min-height: 480px; }
@media (max-width: 720px) { .dash__body { grid-template-columns: 64px 1fr; } }

/* Sidebar */
.dash__side {
  background: linear-gradient(180deg, #100030 0%, #2a0942 100%);
  color: rgba(255,255,255,0.85);
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.dash__brand { display: flex; align-items: center; gap: 8px; padding: 4px 6px; }
.dash__logo {
  width: 26px; height: 26px;
  border-radius: 8px;
  background: linear-gradient(135deg, #f05060, #ff8a5b);
  flex-shrink: 0;
  box-shadow: 0 4px 12px -2px rgba(240,80,96,0.6);
}
.dash__brand-name {
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -0.01em;
}
@media (max-width: 720px) { .dash__brand-name, .dash__nav .lang-ar, .dash__nav .lang-en, .dash__nav-tag { display: none; } }
.dash__nav { display: flex; flex-direction: column; gap: 2px; margin-top: 8px; }
.dash__nav-i {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  font-family: var(--ff-ar);
  font-size: 12.5px;
  color: rgba(255,255,255,0.7);
  border-radius: 8px;
  position: relative;
  transition: all 200ms;
}
html[lang="en"] .dash__nav-i { font-family: var(--ff-sans); }
.dash__nav-i:hover { color: #fff; background: rgba(255,255,255,0.06); }
.dash__nav-i.is-active {
  background: linear-gradient(90deg, rgba(240,80,96,0.25), rgba(240,80,96,0.05));
  color: #fff;
}
.dash__nav-i.is-active::before {
  content: '';
  position: absolute;
  inset-inline-start: 0; top: 25%; bottom: 25%;
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(180deg, #f05060, #ff8a5b);
}
.dash__nav-ico {
  width: 14px; height: 14px;
  border-radius: 4px;
  background: currentColor;
  opacity: 0.5;
  flex-shrink: 0;
}
.dash__nav-i.is-active .dash__nav-ico { opacity: 1; background: linear-gradient(135deg, #f05060, #ff8a5b); }
.dash__nav-tag {
  margin-inline-start: auto;
  background: var(--brand);
  color: #fff;
  font-family: var(--ff-mono);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
}


/* Main panel */
.dash__main { padding: 16px 18px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.dash__topbar { display: flex; align-items: center; gap: 12px; }
.dash__crumb {
  font-family: var(--ff-ar-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}
html[lang="en"] .dash__crumb { font-family: var(--ff-display); }
.dash__search {
  flex: 1;
  height: 32px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  position: relative;
}
.dash__search span {
  position: absolute;
  inset-inline-start: 12px; top: 50%;
  transform: translateY(-50%);
  width: 50%; height: 7px;
  border-radius: 4px;
  background: var(--line-strong);
  opacity: 0.5;
}
.dash__avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f05060, #ff8a5b);
  flex-shrink: 0;
  box-shadow: 0 0 0 2px var(--bg-card);
}

/* KPI cards */
.dash__kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
@media (max-width: 720px) { .dash__kpis { grid-template-columns: repeat(2, 1fr); } }
.kpi {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
  overflow: hidden;
  transition: transform 280ms var(--ease), border-color 200ms;
}
.kpi:hover { transform: translateY(-2px); border-color: var(--brand); }
.kpi__lbl { font-size: 10.5px; color: var(--ink-mute); font-weight: 500; }
.kpi__val { display: flex; align-items: baseline; gap: 4px; font-family: var(--ff-display); font-weight: 800; color: var(--ink); }
.kpi__num { font-size: 22px; letter-spacing: -0.02em; }
.kpi__cur { font-size: 11px; color: var(--ink-mute); font-weight: 600; }
.kpi__delta { font-size: 11px; font-weight: 700; font-family: var(--ff-mono); }
.kpi__delta--up   { color: var(--success); }
.kpi__delta--down { color: var(--brand-deep); }
.kpi__spark {
  position: absolute;
  inset: auto 0 0 0;
  height: 36px;
  color: var(--brand);
  opacity: 0.7;
  pointer-events: none;
}
.kpi__spark svg { width: 100%; height: 100%; }
.kpi:nth-child(1) .kpi__spark { color: var(--brand); }
.kpi:nth-child(2) .kpi__spark { color: #ff8a5b; }
.kpi:nth-child(3) .kpi__spark { color: var(--success); }
.kpi:nth-child(4) .kpi__spark { color: var(--brand-mauve); }
[data-theme="dark"] .kpi:nth-child(4) .kpi__spark { color: #ff7a8a; }

/* Row: chart + orders */
.dash__row { display: grid; grid-template-columns: 1.4fr 1fr; gap: 12px; flex: 1; min-height: 0; }
@media (max-width: 720px) { .dash__row { grid-template-columns: 1fr; } }

.dash__chart, .dash__orders {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.dash__chart-hd, .dash__orders h4 { display: flex; align-items: center; justify-content: space-between; }
.dash__chart-hd h4, .dash__orders h4 {
  font-family: var(--ff-ar-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}
html[lang="en"] .dash__chart-hd h4, html[lang="en"] .dash__orders h4 { font-family: var(--ff-display); }
.dash__pill {
  font-family: var(--ff-mono);
  font-size: 10px;
  font-weight: 700;
  background: rgba(45,185,122,0.12);
  color: var(--success);
  padding: 3px 8px;
  border-radius: var(--r-pill);
}

/* Chart SVG */
.dash__chart-svg { width: 100%; height: auto; min-height: 140px; flex: 1; }
.dash__grid line { stroke: var(--line); stroke-dasharray: 3 3; }
.dash__pts circle { fill: var(--brand); }
.dash__pts .dash__pt-last { fill: var(--brand); animation: pulse-dot 1.6s infinite; transform-origin: center; transform-box: fill-box; }
.dash__line { stroke-dasharray: 700; stroke-dashoffset: 700; animation: line-draw 1800ms var(--ease) 1000ms forwards; }
.dash__area { opacity: 0; animation: fade-in 800ms var(--ease) 2200ms forwards; }
@keyframes line-draw { to { stroke-dashoffset: 0; } }
@keyframes fade-in   { to { opacity: 1; } }

/* Orders list */
.dash__orders { gap: 6px; }
.dash__order {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 4px;
  border-radius: 8px;
  transition: background 180ms;
  animation: fadeUp 600ms var(--ease) both;
}
.dash__order:nth-child(2) { animation-delay: 1400ms; }
.dash__order:nth-child(3) { animation-delay: 1600ms; }
.dash__order:nth-child(4) { animation-delay: 1800ms; }
.dash__order:hover { background: var(--bg-soft); }
.dash__order-av {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-peach));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 12px;
  flex-shrink: 0;
}
.dash__order-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.dash__order-body strong { font-family: var(--ff-ar-display); font-size: 12px; font-weight: 700; color: var(--ink); }
html[lang="en"] .dash__order-body strong { font-family: var(--ff-display); }
.dash__order-body span { font-size: 10.5px; color: var(--ink-mute); }
.dash__order-tag {
  font-family: var(--ff-mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 3px 7px;
  border-radius: var(--r-pill);
  flex-shrink: 0;
}
.dash__order-tag--pay  { background: rgba(45,185,122,0.12); color: var(--success); }
.dash__order-tag--ship { background: rgba(255,138,91,0.16); color: #c8384a; }
.dash__order-tag--new  { background: rgba(240,80,96,0.12);  color: var(--brand-deep); }
[data-theme="dark"] .dash__order-tag--ship { background: rgba(255,138,91,0.2); color: #ff8a5b; }
[data-theme="dark"] .dash__order-tag--new  { background: rgba(240,80,96,0.22); color: var(--brand-light); }


/* ── Floating toast ── */
.dash__toast {
  position: absolute;
  top: 22%;
  inset-inline-end: -12px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 16px 40px -12px rgba(16,0,48,0.25);
  z-index: 4;
  animation: dash-toast 6s var(--ease) 2400ms infinite;
  font-family: var(--ff-ar);
}
html[lang="en"] .dash__toast { font-family: var(--ff-sans); }
@media (min-width: 900px) {
  .dash__toast { inset-inline-end: -40px; }
}
[data-theme="dark"] .dash__toast { box-shadow: 0 16px 40px -12px rgba(0,0,0,0.6); }
.dash__toast-ico {
  width: 32px; height: 32px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand), var(--brand-peach));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 4px 10px -2px rgba(240,80,96,0.5);
}
.dash__toast strong { display: block; font-size: 13px; font-weight: 700; color: var(--ink); }
.dash__toast span   { font-size: 11px; color: var(--ink-mute); }

@keyframes dash-toast {
  0%, 5%       { transform: translate3d(40px, 0, 0); opacity: 0; }
  10%, 35%     { transform: translate3d(0, 0, 0); opacity: 1; }
  40%, 100%    { transform: translate3d(40px, -8px, 0); opacity: 0; }
}

/* ── Floating mini phone ── */
.dash__phone {
  position: absolute;
  inset-inline-start: -16px;
  bottom: -28px;
  width: 110px;
  height: 220px;
  background: linear-gradient(160deg, #100030, #2a0942);
  border-radius: 22px;
  padding: 6px;
  box-shadow:
    0 28px 60px -16px rgba(16,0,48,0.5),
    inset 0 0 0 1px rgba(255,255,255,0.08);
  z-index: 5;
  animation: dash-phone-float 7s ease-in-out 1800ms infinite;
  display: none;
}
@media (min-width: 768px) {
  .dash__phone { display: block; }
}
@media (min-width: 900px) {
  .dash__phone { inset-inline-start: -40px; bottom: -50px; width: 130px; height: 260px; }
}
.dash__phone-screen {
  width: 100%; height: 100%;
  background: linear-gradient(180deg, var(--bg-card), var(--bg-soft));
  border-radius: 17px;
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
}
.dash__phone-screen::before {
  content: '';
  position: absolute;
  top: 6px; left: 50%;
  transform: translateX(-50%);
  width: 36px; height: 4px;
  border-radius: 4px;
  background: var(--brand-night);
}
.dash__phone-bar {
  margin-top: 12px;
  height: 8px;
  width: 60%;
  border-radius: 4px;
  background: var(--line-strong);
}
.dash__phone-tile {
  height: 26px;
  border-radius: 8px;
  background: var(--bg);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.dash__phone-tile::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(240,80,96,0.18), transparent);
  transform: translateX(-100%);
  animation: phone-shimmer 2.4s infinite;
}
.dash__phone-tile--a::after { animation-delay: 0s; }
.dash__phone-tile--b::after { animation-delay: 0.4s; }
.dash__phone-tile--c::after { animation-delay: 0.8s; }
.dash__phone-cta {
  margin-top: auto;
  height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--brand), var(--brand-peach));
  box-shadow: 0 6px 16px -4px rgba(240,80,96,0.5);
}

@keyframes phone-shimmer  { to { transform: translateX(100%); } }
@keyframes dash-phone-float {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50%      { transform: translateY(-10px) rotate(-1deg); }
}


/* ════════════════════════════════════════════
   FINAL CTA — Live demos showcase
   ════════════════════════════════════════════ */

.ctax {
  position: relative;
  background:
    radial-gradient(ellipse at top, #1a0540 0%, #100030 55%, #07001f 100%);
  color: #fff;
  padding: clamp(4rem, 9vw, 7rem) 0 clamp(4rem, 8vw, 6rem);
  margin: clamp(3rem, 6vw, 5rem) var(--gutter) clamp(2rem, 4vw, 3rem);
  border-radius: clamp(20px, 3vw, 32px);
  overflow: hidden;
  isolation: isolate;
}
@media (min-width: 768px) {
  .ctax { margin-inline: clamp(1.5rem, 3vw, 3rem); }
}
.ctax__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 22%, rgba(240,80,96,0.32), transparent 45%),
    radial-gradient(circle at 88% 18%, rgba(255,138,91,0.22), transparent 50%),
    radial-gradient(circle at 50% 100%, rgba(110,40,160,0.4), transparent 55%);
  pointer-events: none;
  z-index: -1;
}
.ctax__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  pointer-events: none;
  z-index: -1;
}
.ctax__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
  z-index: -1;
}
.ctax__orb--1 { width: 380px; height: 380px; top: -100px; inset-inline-start: -80px; background: radial-gradient(circle, #f05060 0%, transparent 70%); opacity: 0.4; animation: ctax-orb-1 18s ease-in-out infinite; }
.ctax__orb--2 { width: 460px; height: 460px; bottom: -140px; inset-inline-end: -100px; background: radial-gradient(circle, #ff8a5b 0%, transparent 70%); opacity: 0.3; animation: ctax-orb-2 22s ease-in-out infinite; }
@keyframes ctax-orb-1 {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50%      { transform: translate3d(80px, 60px, 0) scale(1.15); }
}
@keyframes ctax-orb-2 {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50%      { transform: translate3d(-60px, -40px, 0) scale(1.1); }
}

/* ── Heading ── */
.ctax__head { text-align: center; max-width: 760px; margin: 0 auto clamp(2.5rem, 5vw, 4rem); }
.ctax__eyebrow {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.16);
  color: #fff;
}
.ctax__title {
  font-family: var(--ff-ar-display);
  font-size: var(--t-h1);
  font-weight: 800;
  line-height: 1.12;
  color: #fff;
  margin-bottom: var(--s-4);
}
html[lang="en"] .ctax__title { font-family: var(--ff-display); letter-spacing: -0.03em; line-height: 1.05; }
.ctax__sub {
  color: rgba(255,255,255,0.75);
  font-size: var(--t-md);
  line-height: 1.8;
}

/* ── Featured · Merchant PWA ── */
.ctax__feat {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  background: linear-gradient(135deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: clamp(18px, 2.5vw, 28px);
  padding: clamp(2rem, 4vw, 3.5rem);
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.ctax__feat::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(240,80,96,0.4), transparent 50%, rgba(255,138,91,0.4));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}
@media (min-width: 900px) {
  .ctax__feat { grid-template-columns: 1.15fr 1fr; }
}
.ctax__feat-body { color: #fff; }
.ctax__feat-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(240,80,96,0.18);
  border: 1px solid rgba(240,80,96,0.35);
  color: #ff8a90;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  font-family: var(--ff-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: var(--s-4);
}
.ctax__feat-pill-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--brand);
  animation: pulse-dot 1.4s infinite;
}
.ctax__feat-body h3 {
  font-family: var(--ff-ar-display);
  font-size: clamp(1.6rem, 3.6vw, 2.4rem);
  font-weight: 800;
  line-height: 1.18;
  color: #fff;
  margin-bottom: var(--s-3);
}
html[lang="en"] .ctax__feat-body h3 { font-family: var(--ff-display); letter-spacing: -0.025em; line-height: 1.08; }
.ctax__feat-body > p {
  color: rgba(255,255,255,0.72);
  font-size: var(--t-md);
  line-height: 1.75;
  margin-bottom: var(--s-5);
}
.ctax__feat-list { display: grid; grid-template-columns: 1fr; gap: var(--s-2); margin-bottom: var(--s-6); }
@media (min-width: 480px) { .ctax__feat-list { grid-template-columns: 1fr 1fr; } }
.ctax__feat-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--t-sm);
  color: rgba(255,255,255,0.88);
}
.ctax__feat-list svg { color: var(--brand); flex-shrink: 0; }
.ctax__feat-cta { width: fit-content; }


/* ── Featured Merchant PWA phone (pure CSS) ── */
.ctax__phone {
  position: relative;
  width: 280px;
  margin: 0 auto;
  justify-self: center;
}
@media (min-width: 900px) {
  .ctax__phone { width: 300px; }
}
.ctax__phone-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 19;
  background: linear-gradient(160deg, #0a0019, #1a0540);
  border-radius: 38px;
  padding: 10px;
  box-shadow:
    0 30px 60px -20px rgba(0,0,0,0.7),
    0 0 0 1px rgba(255,255,255,0.08),
    inset 0 0 0 1px rgba(255,255,255,0.05);
  animation: ctax-phone-float 7s ease-in-out infinite;
  z-index: 2;
}
.ctax__phone-notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 22px;
  background: #000;
  border-radius: 0 0 16px 16px;
  z-index: 3;
}
.ctax__phone-scr {
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #fdf8f6 0%, #f7eee9 100%);
  border-radius: 30px;
  padding: 34px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: #100030;
}
.ctax__phone-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px;
  font-family: var(--ff-mono);
  font-size: 10px;
  font-weight: 700;
  color: #100030;
}
.ctax__phone-net {
  width: 36px; height: 10px;
  border-radius: 3px;
  background: linear-gradient(90deg, #100030 60%, transparent 60%);
}
.ctax__phone-hd { display: flex; align-items: center; gap: 8px; }
.ctax__phone-av {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, #f05060, #ff8a5b);
  flex-shrink: 0;
  box-shadow: 0 3px 8px -2px rgba(240,80,96,0.5);
}
.ctax__phone-hd strong { display: block; font-family: var(--ff-ar-display); font-weight: 700; font-size: 12px; }
.ctax__phone-hd span { display: block; font-size: 9.5px; color: #76627e; }
html[lang="en"] .ctax__phone-hd strong { font-family: var(--ff-display); }

.ctax__phone-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  background: rgba(240,80,96,0.08);
  border-radius: 12px;
  padding: 10px 6px;
}
.ctax__phone-stat { text-align: center; }
.ctax__phone-stat-n {
  display: block;
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: 16px;
  color: #100030;
  letter-spacing: -0.02em;
}
.ctax__phone-stat span:last-child { font-size: 9px; color: #76627e; }

.ctax__phone-list { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.ctax__phone-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #efe3de;
  animation: ctax-row 5s ease-in-out infinite;
}
.ctax__phone-row:nth-child(2) { animation-delay: 0.6s; }
.ctax__phone-row:nth-child(3) { animation-delay: 1.2s; }
@keyframes ctax-row {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-2px); }
}
.ctax__phone-row--new { box-shadow: 0 4px 12px -2px rgba(240,80,96,0.25); border-color: rgba(240,80,96,0.3); }
.ctax__phone-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--brand);
  flex-shrink: 0;
  animation: pulse-dot 1.6s infinite;
}
.ctax__phone-dot--w { background: #ff8a5b; animation: none; }
.ctax__phone-dot--g { background: var(--success); animation: none; }
.ctax__phone-row strong { display: block; font-family: var(--ff-mono); font-size: 10.5px; font-weight: 700; }
.ctax__phone-row span:not(.ctax__phone-dot):not(.ctax__phone-tag) { display: block; font-size: 9px; color: #76627e; }
.ctax__phone-row > div { flex: 1; min-width: 0; }
.ctax__phone-tag {
  font-family: var(--ff-mono);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 3px 6px;
  border-radius: var(--r-pill);
  background: rgba(240,80,96,0.12);
  color: var(--brand-deep);
  flex-shrink: 0;
}
.ctax__phone-tag--w { background: rgba(255,138,91,0.16); color: #c8384a; }
.ctax__phone-tag--g { background: rgba(45,185,122,0.14); color: var(--success); }

.ctax__phone-cta {
  width: 100%;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, #f05060, #ff8a5b);
  color: #fff;
  font-family: var(--ff-ar-display);
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 6px 16px -4px rgba(240,80,96,0.5);
  cursor: pointer;
}
html[lang="en"] .ctax__phone-cta { font-family: var(--ff-display); }

.ctax__phone-glow {
  position: absolute;
  inset: -30px;
  background: radial-gradient(circle, rgba(240,80,96,0.35) 0%, transparent 60%);
  filter: blur(40px);
  z-index: 1;
  pointer-events: none;
  animation: ctax-phone-glow 4s ease-in-out infinite;
}
@keyframes ctax-phone-glow {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.05); }
}
.ctax__phone-badge {
  position: absolute;
  top: 14px;
  inset-inline-end: -16px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(135deg, #f05060, #ff8a5b);
  color: #fff;
  font-family: var(--ff-mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  padding: 6px 11px;
  border-radius: var(--r-pill);
  box-shadow: 0 8px 22px -4px rgba(240,80,96,0.6);
  z-index: 4;
  transform: rotate(8deg);
  animation: ctax-badge 3s ease-in-out infinite;
}
@keyframes ctax-badge {
  0%, 100% { transform: rotate(8deg)  translateY(0); }
  50%      { transform: rotate(10deg) translateY(-4px); }
}
@keyframes ctax-phone-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}


/* ── Demo grid cards ── */
.ctax__grid-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-4);
  margin-bottom: clamp(3rem, 5vw, 4rem);
}
@media (min-width: 720px) { .ctax__grid-cards { grid-template-columns: repeat(3, 1fr); } }

.ctax__card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  padding: clamp(1.5rem, 3vw, 2rem);
  border-radius: 18px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  text-decoration: none;
  overflow: hidden;
  transition: all 320ms var(--ease);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.ctax__card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, transparent, rgba(240,80,96,0.4), transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity 300ms;
  pointer-events: none;
}
.ctax__card:hover {
  transform: translateY(-4px);
  background: rgba(255,255,255,0.08);
  box-shadow: 0 24px 50px -20px rgba(240,80,96,0.4);
}
.ctax__card:hover::before { opacity: 1; }
.ctax__card-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--s-2);
  color: #fff;
  flex-shrink: 0;
}
.ctax__card--storefront .ctax__card-icon { background: linear-gradient(135deg, #f05060, #ff8a5b); }
.ctax__card--admin      .ctax__card-icon { background: linear-gradient(135deg, #ff7a8a, #c8384a); }
.ctax__card--customer   .ctax__card-icon { background: linear-gradient(135deg, #ff8a5b, #ff9670); }
.ctax__card h4 {
  font-family: var(--ff-ar-display);
  font-size: var(--t-lg);
  font-weight: 800;
  color: #fff;
}
html[lang="en"] .ctax__card h4 { font-family: var(--ff-display); letter-spacing: -0.01em; }
.ctax__card p {
  color: rgba(255,255,255,0.7);
  font-size: var(--t-sm);
  line-height: 1.65;
  margin-bottom: var(--s-2);
}
.ctax__card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--ff-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--brand-light);
  letter-spacing: 0.04em;
  margin-top: auto;
}
.ctax__card-link svg { transition: transform 250ms var(--ease); }
.ctax__card:hover .ctax__card-link svg { transform: translate(3px, -3px); }
[dir="rtl"] .ctax__card:hover .ctax__card-link svg { transform: translate(-3px, -3px); }
.ctax__card-cred {
  position: absolute;
  top: 16px;
  inset-inline-end: 16px;
  font-family: var(--ff-mono);
  font-size: 10px;
  color: rgba(255,255,255,0.55);
  background: rgba(0,0,0,0.25);
  padding: 4px 8px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(255,255,255,0.08);
}

/* ── Foot CTA ── */
.ctax__foot {
  text-align: center;
  padding-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid rgba(255,255,255,0.08);
}
.ctax__foot h3 {
  font-family: var(--ff-ar-display);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: var(--s-2);
}
html[lang="en"] .ctax__foot h3 { font-family: var(--ff-display); letter-spacing: -0.02em; }
.ctax__foot p {
  color: rgba(255,255,255,0.7);
  font-size: var(--t-md);
  margin-bottom: var(--s-5);
}
.ctax__foot-ctas { display: flex; justify-content: center; gap: var(--s-3); flex-wrap: wrap; }
.ctax__foot .btn--outline {
  color: #fff;
  border-color: rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.04);
}
.ctax__foot .btn--outline:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.45); }

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  .ctax__orb--1, .ctax__orb--2, .ctax__phone-frame, .ctax__phone-glow,
  .ctax__phone-badge, .ctax__phone-row, .ctax__feat-pill-dot, .ctax__phone-dot { animation: none !important; }
}


/* ════════════════════════════════════════════
   SPLIT VISUALS — Builder + Sync (CSS only)
   ════════════════════════════════════════════ */

.split__viz {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-lg);
  background: linear-gradient(160deg, var(--bg-card) 0%, var(--bg-soft) 100%);
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px -30px rgba(16,0,48,0.35);
  overflow: hidden;
  isolation: isolate;
}
[data-theme="dark"] .split__viz {
  background: linear-gradient(160deg, #14062e 0%, #0a0019 100%);
  box-shadow: 0 30px 80px -30px rgba(0,0,0,0.7);
  border-color: var(--line-strong);
}
.split__viz::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 15%, rgba(240,80,96,0.18), transparent 45%),
    radial-gradient(circle at 85% 85%, rgba(255,138,91,0.12), transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* ════════════ BUILDER VIZ ════════════ */

.builder-viz { padding: 14px; display: flex; flex-direction: column; gap: 10px; }

.bv__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  position: relative;
  z-index: 2;
}
[data-theme="dark"] .bv__bar { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.08); }
.bv__bar-dots { display: inline-flex; gap: 4px; }
.bv__bar-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); }
.bv__bar-dots i:nth-child(1) { background: #ff5f57; }
.bv__bar-dots i:nth-child(2) { background: #ffbd2e; }
.bv__bar-dots i:nth-child(3) { background: #28c840; }
.bv__bar-title {
  font-family: var(--ff-ar-display);
  font-size: 11px;
  font-weight: 700;
  color: var(--ink);
}
html[lang="en"] .bv__bar-title { font-family: var(--ff-display); }
.bv__bar-spacer { flex: 1; }
.bv__bar-btn {
  font-family: var(--ff-mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 5px 11px;
  border-radius: var(--r-pill);
  text-transform: uppercase;
}
.bv__bar-btn--ghost { color: var(--ink-soft); background: var(--bg-soft); }
.bv__bar-btn--solid { color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-peach)); box-shadow: 0 4px 10px -2px rgba(240,80,96,0.5); }

.bv__body {
  flex: 1;
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 10px;
  min-height: 0;
  position: relative;
  z-index: 1;
}

/* Palette */
.bv__palette {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  overflow: hidden;
}
[data-theme="dark"] .bv__palette { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.08); }
.bv__plabel {
  font-family: var(--ff-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  padding: 0 4px 6px;
  border-bottom: 1px dashed var(--line);
  margin-bottom: 2px;
}
.bv__widget {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 8px;
  font-family: var(--ff-ar);
  font-size: 10.5px;
  color: var(--ink-soft);
  background: var(--bg-soft);
  border: 1px solid transparent;
  transition: all 200ms;
}
html[lang="en"] .bv__widget { font-family: var(--ff-sans); }
.bv__widget:hover { background: var(--bg); border-color: var(--line); }
.bv__widget-ico {
  width: 16px; height: 16px;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--brand), var(--brand-peach));
  flex-shrink: 0;
  opacity: 0.85;
}
.bv__widget-ico--hero   { background: linear-gradient(135deg, var(--brand), var(--brand-peach)); }
.bv__widget-ico--prod   { background: linear-gradient(135deg, #ff8a5b, #ff7a8a); }
.bv__widget-ico--banner { background: linear-gradient(135deg, var(--brand-deep), var(--brand)); }
.bv__widget-ico--rev    { background: linear-gradient(135deg, var(--brand-light), #ff8a5b); }
.bv__widget-ico--faq    { background: linear-gradient(135deg, #ff8a5b, var(--brand)); }
.bv__widget-ico--cta    { background: linear-gradient(135deg, var(--brand), var(--brand-light)); }

.bv__widget--dragging {
  visibility: hidden;
}

/* Canvas */
.bv__canvas {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
  position: relative;
}
[data-theme="dark"] .bv__canvas { background: rgba(0,0,0,0.25); border-color: rgba(255,255,255,0.06); }
.bv__row {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  min-height: 0;
}
[data-theme="dark"] .bv__row { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.08); }
.bv__row-tag {
  position: absolute;
  top: 4px;
  inset-inline-start: 8px;
  font-family: var(--ff-mono);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand);
  opacity: 0.7;
}

/* Hero row */
.bv__row--hero { display: flex; flex-direction: column; gap: 6px; padding: 14px 12px 12px; }
.bv__hero-bar {
  height: 10px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--ink), var(--ink-soft) 70%, transparent);
  width: 70%;
  margin-top: 6px;
}
.bv__hero-bar--short { height: 6px; width: 45%; background: var(--ink-mute); opacity: 0.5; }
.bv__hero-btn {
  margin-top: 4px;
  width: 80px; height: 22px;
  border-radius: var(--r-pill);
  background: linear-gradient(135deg, var(--brand), var(--brand-peach));
  box-shadow: 0 4px 10px -2px rgba(240,80,96,0.4);
}

/* Drop row */
.bv__row--drop {
  background: rgba(240,80,96,0.06);
  border: 2px dashed rgba(240,80,96,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  animation: bv-drop-pulse 1.6s ease-in-out infinite;
}
@keyframes bv-drop-pulse {
  0%, 100% { background: rgba(240,80,96,0.06); border-color: rgba(240,80,96,0.45); }
  50%      { background: rgba(240,80,96,0.15); border-color: rgba(240,80,96,0.9); }
}
.bv__drop-line {
  position: absolute;
  inset-inline: 8px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--brand) 50%, transparent);
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  animation: bv-drop-line 6s ease-in-out infinite;
}
.bv__drop-label {
  font-family: var(--ff-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand);
}
@keyframes bv-drop-line {
  0%, 30%      { opacity: 0; }
  50%, 70%     { opacity: 1; }
  100%         { opacity: 0; }
}

/* Banner row */
.bv__banner { height: 36px; border-radius: 6px; background: linear-gradient(135deg, var(--brand), var(--brand-peach)); opacity: 0.9; margin-top: 8px; }

/* CTA row */
.bv__row--cta { padding: 12px; }
.bv__cta-bar {
  margin-top: 6px;
  height: 28px;
  border-radius: var(--r-pill);
  background: linear-gradient(135deg, var(--ink), var(--brand-mauve));
  width: 60%;
  margin-inline: auto;
  display: block;
}


/* ── Floating cursor + ghost widget ── */
.bv__cursor {
  position: absolute;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 6;
  display: flex;
  align-items: flex-start;
  gap: 6px;
  animation: bv-cursor 6s ease-in-out infinite;
  filter: drop-shadow(0 6px 16px rgba(16,0,48,0.35));
}
.bv__cursor svg { transform: translate(-2px, -2px); }
.bv__ghost {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: rgba(255,255,255,0.96);
  border: 1px solid var(--brand);
  border-radius: 8px;
  font-family: var(--ff-ar);
  font-size: 10.5px;
  font-weight: 600;
  color: var(--ink);
  box-shadow: 0 12px 28px -8px rgba(240,80,96,0.5);
  transform: translateY(-4px);
  white-space: nowrap;
}
[data-theme="dark"] .bv__ghost { background: #1a0a37; color: #fff; }
html[lang="en"] .bv__ghost { font-family: var(--ff-sans); }
.bv__ghost-ico {
  width: 14px; height: 14px;
  border-radius: 4px;
  background: linear-gradient(135deg, #ff8a5b, #ff7a8a);
  display: inline-block;
}
@keyframes bv-cursor {
  0%            { transform: translate3d(12%, 38%, 0)  scale(1); opacity: 0; }
  6%            { opacity: 1; }
  35%           { transform: translate3d(48%, 52%, 0)  scale(1); opacity: 1; }
  55%           { transform: translate3d(48%, 52%, 0)  scale(0.92); }
  70%           { transform: translate3d(48%, 50%, 0)  scale(1); }
  95%, 100%     { transform: translate3d(48%, 50%, 0)  scale(1); opacity: 0; }
}

/* RTL: cursor starts from the right side */
[dir="rtl"] .bv__cursor {
  left: auto; right: 0;
  flex-direction: row-reverse;
  animation-name: bv-cursor-rtl;
}
[dir="rtl"] .bv__cursor svg { transform: translate(2px, -2px) scaleX(-1); }
@keyframes bv-cursor-rtl {
  0%            { transform: translate3d(-12%, 38%, 0)  scale(1); opacity: 0; }
  6%            { opacity: 1; }
  35%           { transform: translate3d(-48%, 52%, 0)  scale(1); opacity: 1; }
  55%           { transform: translate3d(-48%, 52%, 0)  scale(0.92); }
  70%           { transform: translate3d(-48%, 50%, 0)  scale(1); }
  95%, 100%     { transform: translate3d(-48%, 50%, 0)  scale(1); opacity: 0; }
}

/* ── Style popover (floating in corner) ── */
.bv__style {
  position: absolute;
  bottom: 14px;
  inset-inline-end: 14px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 12px 28px -10px rgba(16,0,48,0.25);
  z-index: 5;
  animation: bv-style-float 4s ease-in-out infinite;
}
[data-theme="dark"] .bv__style { background: #1a0a37; border-color: rgba(255,255,255,0.1); }
@keyframes bv-style-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}
.bv__style-row { display: inline-flex; gap: 5px; }
.bv__swatch {
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 2px solid var(--bg-card);
  box-shadow: 0 0 0 1px var(--line);
  cursor: pointer;
}
[data-theme="dark"] .bv__swatch { border-color: #1a0a37; box-shadow: 0 0 0 1px rgba(255,255,255,0.15); }
.bv__swatch--1 { background: #100030; }
.bv__swatch--2 { background: #2db97a; }
.bv__swatch--3 { background: #2e7cfe; }
.bv__swatch--4 { background: linear-gradient(135deg, var(--brand), var(--brand-peach)); }
.bv__swatch.is-active { transform: scale(1.18); box-shadow: 0 0 0 2px var(--brand); }
.bv__style-slider {
  height: 6px;
  background: linear-gradient(90deg, var(--bg-soft), var(--brand-peach), var(--brand));
  border-radius: var(--r-pill);
  position: relative;
}
.bv__style-thumb {
  position: absolute;
  top: 50%;
  inset-inline-start: 0;
  transform: translateY(-50%);
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(16,0,48,0.4), 0 0 0 1px var(--brand);
  animation: bv-thumb 3.4s ease-in-out infinite;
}
@keyframes bv-thumb {
  0%, 100% { inset-inline-start: 8%; }
  50%      { inset-inline-start: 78%; }
}


/* ════════════ SYNC HUB VIZ ════════════ */

.sync-viz {
  position: relative;
  background: radial-gradient(ellipse at center, var(--bg-card) 0%, var(--bg-soft) 100%);
  overflow: hidden;
}
[data-theme="dark"] .sync-viz {
  background: radial-gradient(ellipse at center, #1a0540 0%, #0a0019 70%);
}

/* Dotted background grid */
.sync-viz::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(16,0,48,0.08) 1.2px, transparent 1.2px);
  background-size: 24px 24px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  z-index: 0;
  pointer-events: none;
}
[data-theme="dark"] .sync-viz::after {
  background-image: radial-gradient(rgba(255,255,255,0.08) 1.2px, transparent 1.2px);
}

/* Central hub */
.sv__hub {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 38%;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.sv__hub-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid var(--brand);
  opacity: 0;
  animation: sv-ring 3.2s ease-out infinite;
}
.sv__hub-ring--1 { animation-delay: 0s; }
.sv__hub-ring--2 { animation-delay: 1.0s; }
.sv__hub-ring--3 { animation-delay: 2.0s; }
@keyframes sv-ring {
  0%   { opacity: 0.7; transform: scale(0.6); }
  100% { opacity: 0;   transform: scale(1.4); }
}

.sv__hub-core {
  position: relative;
  width: 78%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: linear-gradient(160deg, #1a0540 0%, #100030 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow:
    0 30px 80px -16px rgba(240,80,96,0.45),
    0 0 0 1px rgba(255,255,255,0.06),
    inset 0 -10px 40px rgba(240,80,96,0.2);
  animation: sv-core 4s ease-in-out infinite;
}
@keyframes sv-core {
  0%, 100% { box-shadow: 0 30px 80px -16px rgba(240,80,96,0.45), 0 0 0 1px rgba(255,255,255,0.06), inset 0 -10px 40px rgba(240,80,96,0.2); }
  50%      { box-shadow: 0 30px 90px -10px rgba(240,80,96,0.7),  0 0 0 1px rgba(255,255,255,0.1),  inset 0 -10px 50px rgba(240,80,96,0.35); }
}
.sv__hub-logo {
  width: 32%;
  aspect-ratio: 1;
  border-radius: 22%;
  background: linear-gradient(135deg, var(--brand), var(--brand-peach));
  box-shadow: 0 8px 22px -4px rgba(240,80,96,0.7);
}
.sv__hub-label {
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: clamp(11px, 2vw, 15px);
  letter-spacing: -0.01em;
}
.sv__hub-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--ff-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.1);
  padding: 3px 9px;
  border-radius: var(--r-pill);
}
.sv__hub-status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--success); animation: pulse-dot 1.4s infinite; }

/* Connection lines SVG */
.sv__lines {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  z-index: 1;
  overflow: visible;
}

/* Role cards */
.sv__role {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px 8px 8px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 16px 36px -16px rgba(16,0,48,0.3);
  z-index: 3;
  min-width: 130px;
  animation: sv-card 5s ease-in-out infinite;
}
[data-theme="dark"] .sv__role { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.1); backdrop-filter: blur(8px); }
.sv__role--storefront { top: 8%;  inset-inline-start: 4%;  animation-delay: 0s;   }
.sv__role--admin      { top: 8%;  inset-inline-end:   4%;  animation-delay: 1.0s; }
.sv__role--pos        { bottom: 8%; inset-inline-start: 4%; animation-delay: 0.5s; }
.sv__role--driver     { bottom: 8%; inset-inline-end:   4%; animation-delay: 1.5s; }
@keyframes sv-card {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

.sv__role-ico {
  width: 30px; height: 30px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}
.sv__role--storefront .sv__role-ico { background: linear-gradient(135deg, var(--brand), var(--brand-peach)); }
.sv__role--admin      .sv__role-ico { background: linear-gradient(135deg, var(--brand-deep), var(--brand)); }
.sv__role--pos        .sv__role-ico { background: linear-gradient(135deg, var(--brand-peach), #ff7a8a); }
.sv__role--driver     .sv__role-ico { background: linear-gradient(135deg, var(--brand-mauve), var(--brand-deep)); }

.sv__role-body { display: flex; flex-direction: column; min-width: 0; }
.sv__role-body strong {
  font-family: var(--ff-ar-display);
  font-size: 11px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}
html[lang="en"] .sv__role-body strong { font-family: var(--ff-display); }
.sv__role-msg {
  font-family: var(--ff-mono);
  font-size: 9px;
  color: var(--brand);
  opacity: 0;
  animation: sv-msg 5s ease-in-out infinite;
}
.sv__role--storefront .sv__role-msg { animation-delay: 0.2s;  }
.sv__role--admin      .sv__role-msg { animation-delay: 1.2s;  }
.sv__role--pos        .sv__role-msg { animation-delay: 0.7s;  }
.sv__role--driver     .sv__role-msg { animation-delay: 1.7s;  }
@keyframes sv-msg {
  0%, 8%       { opacity: 0; transform: translateY(3px); }
  12%, 50%     { opacity: 1; transform: translateY(0); }
  60%, 100%    { opacity: 0; transform: translateY(-3px); }
}

.sv__role-pulse {
  position: absolute;
  inset-inline-start: 10px;
  top: 8px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 0 rgba(240,80,96,0.7);
  animation: pulse-dot 1.6s infinite;
}
.sv__role--storefront .sv__role-pulse { animation-delay: 0.3s; }
.sv__role--admin      .sv__role-pulse { animation-delay: 1.3s; }
.sv__role--pos        .sv__role-pulse { animation-delay: 0.8s; }
.sv__role--driver     .sv__role-pulse { animation-delay: 1.8s; }

/* Latency badge */
.sv__latency {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(45,185,122,0.12);
  border: 1px solid rgba(45,185,122,0.3);
  border-radius: var(--r-pill);
  color: var(--success);
  z-index: 4;
  font-family: var(--ff-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
}
[data-theme="dark"] .sv__latency { background: rgba(45,185,122,0.2); }
.sv__latency-bar { display: inline-flex; gap: 2px; align-items: flex-end; height: 12px; }
.sv__latency-bar span {
  width: 2px;
  background: var(--success);
  border-radius: 1px;
  animation: sv-bars 1.4s ease-in-out infinite;
}
.sv__latency-bar span:nth-child(1) { height: 35%; animation-delay: 0s;   }
.sv__latency-bar span:nth-child(2) { height: 55%; animation-delay: 0.1s; }
.sv__latency-bar span:nth-child(3) { height: 85%; animation-delay: 0.2s; }
.sv__latency-bar span:nth-child(4) { height: 65%; animation-delay: 0.3s; }
.sv__latency-bar span:nth-child(5) { height: 45%; animation-delay: 0.4s; }
@keyframes sv-bars {
  0%, 100% { transform: scaleY(0.6); }
  50%      { transform: scaleY(1); }
}

/* Reduced motion guards */
@media (prefers-reduced-motion: reduce) {
  .bv__cursor, .bv__widget--dragging, .bv__row--drop, .bv__style, .bv__style-thumb,
  .bv__drop-line { animation: none !important; }
  .sv__hub-ring, .sv__hub-core, .sv__role, .sv__role-msg, .sv__role-pulse,
  .sv__latency-bar span, .sv__lines circle { animation: none !important; }
  .sv__role-msg { opacity: 1 !important; }
  .bv__cursor { display: none !important; }
}
