/* MUSAED dark theme (v3) — loaded after ds.css + site.css.
   Direction: dark navy ground, orange primary actions, soft glows, rounded glass cards,
   product colours from the brand kit. Mix of source/inspiration/concept-01..08. */

:root {
  --color-bg: #0a1624;
  --color-surface: #10223a;
  --color-text: #e9eff6;
  --color-divider: rgba(255, 255, 255, .11);
  --color-accent: #f07a10;
  --color-accent-100: rgba(240, 122, 16, .12);
  --color-accent-200: #c9d6e4;
  --color-accent-300: #ffb36b;
  --color-accent-400: rgba(240, 122, 16, .55);
  --color-accent-500: #ff9a3d;
  --color-accent-600: #ff8a24;
  --color-accent-700: #ffa255;
  --color-accent-800: rgba(240, 122, 16, .16);
  --color-accent-900: #0f2a44;
  --color-neutral-100: rgba(255, 255, 255, .06);
  --color-neutral-500: #6f8399;
  --color-neutral-800: #c9d6e4;
  --font-heading: "Poppins", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --font-body: "Inter", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --card: linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .02));
  --card-border: rgba(255, 255, 255, .1);
  --glow: 0 20px 60px rgba(0, 0, 0, .35);
  --erp: #3fc1d1; --edu: #b98cf0; --crm: #ff9a3d; --masar: #b4c77a; --audit: #ff6b6b;
  --radius-card: 16px;
  color-scheme: dark;
}
html[lang="ar"] { --font-heading: "IBM Plex Sans Arabic", "Poppins", system-ui, sans-serif; --font-body: "IBM Plex Sans Arabic", "Inter", system-ui, sans-serif; }
body { background: var(--color-bg); }
::selection { background: rgba(240, 122, 16, .35); }

/* Background: faint grid + brand glows */
.grid-bg {
  background-image:
    radial-gradient(900px 500px at 85% -5%, rgba(63, 193, 209, .13), transparent 60%),
    radial-gradient(800px 500px at 0% 30%, rgba(185, 140, 240, .10), transparent 60%),
    radial-gradient(700px 400px at 100% 80%, rgba(240, 122, 16, .08), transparent 60%),
    linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
  background-size: auto, auto, auto, 48px 48px, 48px 48px;
}

/* Blueprint frames become rounded glass cards; registration marks retire */
.blueprint > .corner { display: none; }
.blueprint { border-radius: var(--radius-card); border-color: var(--card-border); background: var(--card); }
.btn { border-radius: 10px; font-family: var(--font-heading); font-weight: 600; letter-spacing: 0; }
.btn-primary, .btn-primary.blueprint { background: var(--color-accent); border-color: var(--color-accent); color: #fff; box-shadow: 0 8px 24px rgba(240, 122, 16, .28); }
.btn-primary:hover, .btn-primary.blueprint:hover { background: #ff8a24; color: #fff; }
.btn-secondary { border-color: rgba(255, 255, 255, .22); color: var(--color-text); background: rgba(255, 255, 255, .03); }
.btn-secondary:hover { background: rgba(255, 255, 255, .08); }
.input { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .14); color: var(--color-text); border-radius: 10px; }
select.input option { background: var(--color-surface); }
.tag { border-radius: 999px; }
.tag-accent { background: rgba(240, 122, 16, .16); color: #ffb36b; }
.tag-outline { border-color: #ffa255; color: #ffa255; }
.tag-neutral { background: rgba(255, 255, 255, .08); color: #c9d6e4; }
a { color: #ffa255; }

/* Type: modern title case instead of condensed caps */
.display, .h-cond, .shared-grid .t, .mod-card .t, .ai-band h2, .cta-row h2 { text-transform: none; letter-spacing: -.02em; }
.display { font-weight: 700; line-height: 1.08; }
.display-xl { font-size: clamp(42px, 5.6vw, 76px); }
.display-l, .display-m { font-size: clamp(38px, 5vw, 64px); }
.display .acc { background: linear-gradient(90deg, #ffa255, #f07a10 45%, #ff5a5f); -webkit-background-clip: text; background-clip: text; color: transparent; }
html[lang="ar"] .display { line-height: 1.3; }
.code-big, .prod-row .code-huge, .arch-cell .code, .tabs a, .links-list .c, .choice-code, .chat-head .t, .arch-core b, .agenda b, .milestone b { font-family: "Poppins", sans-serif; font-weight: 700; letter-spacing: 0; }
.kicker, .small-caps, .prod-kind, .arch-cell .kind, .step-label { letter-spacing: .1em; }
.lead { color: #b8c6d6; }

/* Header */
.site-header { background: rgba(10, 22, 36, .78); border-bottom-color: rgba(255, 255, 255, .08); }
.main-nav a { color: #c9d6e4; }
.main-nav a[aria-current="page"], .main-nav a:hover { color: #fff; border-bottom-color: var(--color-accent); }
.lang-link { color: #c9d6e4; }

/* Home hero: full-bleed image with the text and the architecture card on top */
.hero-banner { position: relative; isolation: isolate; overflow: hidden; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.hero-banner::before { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--hero, url("/img/hero.jpg")) center / cover no-repeat; }
.hero-banner::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(10, 22, 36, .96) 0%, rgba(10, 22, 36, .78) 45%, rgba(10, 22, 36, .45) 100%),
              linear-gradient(0deg, var(--color-bg) 0%, transparent 35%); }
[dir="rtl"] .hero-banner::after { background: linear-gradient(270deg, rgba(10, 22, 36, .96) 0%, rgba(10, 22, 36, .78) 45%, rgba(10, 22, 36, .45) 100%), linear-gradient(0deg, var(--color-bg) 0%, transparent 35%); }
.hero { padding-top: 96px; padding-bottom: 96px; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .05); font-size: 13px; color: #c9d6e4; margin-bottom: 22px; }
.hero-badge i { width: 8px; height: 8px; border-radius: 50%; background: #3fc1d1; box-shadow: 0 0 10px #3fc1d1; }
.hero-tags span { display: inline-flex; align-items: center; gap: 8px; }
.hero-tags span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--color-accent); }
.arch-card { backdrop-filter: blur(10px); background: rgba(10, 22, 36, .6) !important; box-shadow: var(--glow); }
.arch::before { border-top-color: rgba(255, 255, 255, .15); }
.arch::after { border-left-color: rgba(255, 255, 255, .15); }
.arch-cell { background: rgba(255, 255, 255, .03); border-radius: 12px; }
.arch-cell.on { background: rgba(240, 122, 16, .12); border-color: rgba(240, 122, 16, .6); }
.arch-cell[data-hov="erp"] svg { stroke: var(--erp); } .arch-cell[data-hov="edu"] svg { stroke: var(--edu); }
.arch-cell[data-hov="crm"] svg { stroke: var(--crm); } .arch-cell[data-hov="masar"] svg { stroke: var(--masar); }
.arch-core { border-radius: 50%; background: radial-gradient(circle at 30% 30%, #ff9a3d, #f07a10 55%, #b4520a); box-shadow: 0 0 40px rgba(240, 122, 16, .55); color: #fff; }

/* Product cards with images */
.prod-card { padding: 0; overflow: hidden; gap: 0; }
.prod-card:hover { background: var(--card); transform: translateY(-4px); box-shadow: var(--glow); border-color: rgba(255, 255, 255, .2); }
.prod-card { transition: transform .25s, box-shadow .25s, border-color .25s; }
.prod-card .thumb { aspect-ratio: 4 / 3; background-size: cover; background-position: center; border-bottom: 1px solid var(--card-border); }
.prod-card .body { padding: 22px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.prod-card .more { color: #fff; }
.prod-card .more-btn { margin-top: auto; align-self: flex-start; }
.pbar { border-radius: 2px; }

/* Shared features */
.shared-grid { gap: 16px; }
.shared-grid > div { background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius-card); padding: 22px; }
.shared-grid .n { color: #ffa255; }

/* AI band */
.ai-band { border-radius: 24px; background:
  radial-gradient(600px 300px at 90% 0%, rgba(240, 122, 16, .25), transparent 60%),
  radial-gradient(500px 300px at 0% 100%, rgba(63, 193, 209, .18), transparent 60%), #0f2a44;
  border: 1px solid rgba(255, 255, 255, .08); }
.ai-band .kicker { color: #ffb36b; }
.ai-band p { color: #c9d6e4; }
.prompt-btn { border-radius: 12px; border-color: rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .04); }
.prompt-btn:hover { background: rgba(240, 122, 16, .14); border-color: rgba(240, 122, 16, .6); }

/* Product detail hero image */
.product-hero { position: relative; isolation: isolate; }
.product-figure { margin: 0 0 18px; border-radius: var(--radius-card); overflow: hidden; border: 1px solid var(--card-border); aspect-ratio: 16 / 9; background-size: cover; background-position: center; box-shadow: var(--glow); }
.tabs { border-radius: 12px; overflow: hidden; border-color: var(--card-border); }
.tabs a { color: #c9d6e4; }
.tabs a[aria-current="page"] { color: #fff; }
.kpis, .course, .deal, .table th, .gantt-h { border-color: var(--card-border); }
.kpis { border-radius: 12px; overflow: hidden; }
.course, .deal { border-radius: 10px; }
.course .bar { background: rgba(255, 255, 255, .08); border-radius: 3px; overflow: hidden; }
.gantt-row .bar { border-radius: 4px; background: rgba(240, 122, 16, .18); }
.gantt-row.done .bar { background: var(--color-accent); }
.mod-card .n { color: #ffa255; }
.check-list svg { stroke: #3fc1d1; }

/* Products page rows */
.prod-row { padding: 0; overflow: hidden; grid-template-columns: minmax(0, 280px) repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.prod-row .row-img { align-self: stretch; min-height: 220px; background-size: cover; background-position: center; }
.prod-row > div:not(.row-img) { padding-block: 26px; }
.prod-row > div:last-child { padding-inline-end: 26px; }
@media (max-width: 760px) { .prod-row { grid-template-columns: 1fr; } .prod-row > div:not(.row-img) { padding-inline: 22px; } }
.chooser a:hover, .links-list a:hover, .gantt-row:hover, .ask-card:hover { background: rgba(255, 255, 255, .04); }

/* Choices, forms */
.choice { border-radius: 10px; border-color: rgba(255, 255, 255, .16); }
.choice.on { background: var(--color-accent); border-color: var(--color-accent); color: #fff; }
.seg-row { border-radius: 12px; overflow: hidden; border-color: rgba(255, 255, 255, .16); }
.seg-row .choice { border-radius: 0; }
.error-box { border-radius: 10px; border-color: rgba(255, 90, 95, .6); background: rgba(255, 90, 95, .1); color: #ffb3b5; }
.ok-badge { border-radius: 50%; }
.about-figure { border-radius: var(--radius-card); background: radial-gradient(circle at 50% 40%, #16365a, #0f2a44 70%); }

/* Footer */
.site-footer { background: #07111c; border-top-color: rgba(255, 255, 255, .06); }
.foot-col .small-caps { color: #ffb36b; }
.foot-col a, .foot-col button { color: #c9d6e4; }

/* Chat */
.chat-panel { background: #0d1d30 !important; border-radius: 18px; }
.chat-launch { border-radius: 999px; }
.msg { border-radius: 14px; }
.msg.user { background: rgba(240, 122, 16, .18); color: #ffe2c7; }
.msg.ai { border-color: rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .03); }
.suggest button { border-radius: 10px; color: #ffb36b; border-color: rgba(255, 255, 255, .14); }
.typing { border-radius: 14px; }

/* fixes */
.ai-band { color: #fff; }
.ai-band h2 { color: #fff; }
.prompt-btn { color: #e9eff6; }
.hero-banner::after { background: linear-gradient(90deg, rgba(10, 22, 36, .95) 0%, rgba(10, 22, 36, .7) 45%, rgba(10, 22, 36, .25) 100%), linear-gradient(0deg, var(--color-bg) 0%, transparent 30%); }
[dir="rtl"] .hero-banner::after { background: linear-gradient(270deg, rgba(10, 22, 36, .95) 0%, rgba(10, 22, 36, .7) 45%, rgba(10, 22, 36, .25) 100%), linear-gradient(0deg, var(--color-bg) 0%, transparent 30%); }

/* v3.1 — Grok images (portrait): hero image on the inline-end side, fading into the page */
.hero-banner::before { inset: 0 0 0 auto; width: 58%; background-position: center 40%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 45%); mask-image: linear-gradient(90deg, transparent 0%, #000 45%); }
[dir="rtl"] .hero-banner::before { inset: 0 auto 0 0; -webkit-mask-image: linear-gradient(270deg, transparent 0%, #000 45%); mask-image: linear-gradient(270deg, transparent 0%, #000 45%); }
.hero-banner::after { background: linear-gradient(90deg, rgba(10, 22, 36, .92) 0%, rgba(10, 22, 36, .55) 50%, rgba(10, 22, 36, .2) 100%), linear-gradient(0deg, var(--color-bg) 0%, transparent 30%); }
[dir="rtl"] .hero-banner::after { background: linear-gradient(270deg, rgba(10, 22, 36, .92) 0%, rgba(10, 22, 36, .55) 50%, rgba(10, 22, 36, .2) 100%), linear-gradient(0deg, var(--color-bg) 0%, transparent 30%); }
@media (max-width: 900px) { .hero-banner::before, [dir="rtl"] .hero-banner::before { width: 100%; -webkit-mask-image: none; mask-image: none; opacity: .45; } }
/* frame each product image on its subject */
[style*="/img/crm.jpg"] { background-position: center 42% !important; }
[style*="/img/masar.jpg"] { background-position: center 55% !important; }
[style*="/img/erp.jpg"] { background-position: center center !important; }
.product-figure { aspect-ratio: 4 / 3; }
[style*="/img/edu.jpg"] { background-position: center 45% !important; }

/* v3.2 — homepage hero video (Grok loop, dark side behind the headline) */
.hero-banner.has-video::before { display: none; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; background: #05090f; }
[dir="rtl"] .hero-video { transform: scaleX(-1); }
.hero-banner.has-video::after { background: linear-gradient(90deg, rgba(10, 22, 36, .85) 0%, rgba(10, 22, 36, .35) 50%, rgba(10, 22, 36, .1) 100%), linear-gradient(0deg, var(--color-bg) 0%, transparent 28%); }
[dir="rtl"] .hero-banner.has-video::after { background: linear-gradient(270deg, rgba(10, 22, 36, .85) 0%, rgba(10, 22, 36, .35) 50%, rgba(10, 22, 36, .1) 100%), linear-gradient(0deg, var(--color-bg) 0%, transparent 28%); }
@media (max-width: 900px) { .hero-banner.has-video::after { background: rgba(10, 22, 36, .7); } }
.hero-video { transition: opacity .9s linear; }
.hero-video.standby { opacity: 0; }

/* v3.3 — brand film player */
.btn-film { gap: 10px; }
.btn-film .play-dot { width: 26px; height: 26px; border-radius: 50%; background: #fff; color: var(--color-accent); display: inline-grid; place-items: center; font-size: 11px; padding-inline-start: 2px; box-shadow: 0 0 0 6px rgba(255, 255, 255, .12); }
.film { position: fixed; inset: 0; z-index: 100; background: rgba(3, 8, 14, .92); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 20px; }
.film[hidden] { display: none; }
.film-stage { position: relative; width: min(1100px, 100%); aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: #000; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); border: 1px solid rgba(255, 255, 255, .1); }
.film-v { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .6s linear; }
.film-v.standby { opacity: 0; }
.film-shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0, 0, 0, .75) 0%, rgba(0, 0, 0, 0) 45%); pointer-events: none; }
.film-title { position: absolute; inset-inline: 6%; bottom: 13%; color: #fff; opacity: 0; transform: translateY(10px); transition: opacity .5s, transform .5s; pointer-events: none; }
.film-title.show { opacity: 1; transform: none; }
.film-k { display: block; font-family: var(--font-heading); font-weight: 700; font-size: clamp(13px, 1.6vw, 18px); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 6px; }
.film-line { margin: 0; font-family: var(--font-heading); font-weight: 600; font-size: clamp(18px, 3vw, 34px); line-height: 1.3; max-width: 26ch; text-shadow: 0 2px 20px rgba(0, 0, 0, .6); }
.film-end { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; padding: 24px;
  background: radial-gradient(600px 300px at 50% 40%, rgba(240, 122, 16, .18), transparent 70%), #0a1624; color: #fff; animation: filmIn .7s ease; }
.film-end[hidden] { display: none; }
.film-end img { height: clamp(36px, 6vw, 64px); width: auto; }
.film-end h2 { margin: 6px 0 0; font-family: var(--font-heading); font-size: clamp(20px, 3.2vw, 36px); }
.film-end p { margin: 0; color: #9fb7c9; }
.film-end-btns { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }
@keyframes filmIn { from { opacity: 0; } to { opacity: 1; } }
.film-bar { position: absolute; inset-inline: 6%; bottom: 6%; display: flex; gap: 6px; }
.film-bar span { flex: 1; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .25); cursor: pointer; overflow: hidden; }
.film-bar span i { display: block; height: 100%; width: 0; background: #fff; }
.film-bar span.done i { width: 100% !important; }
.film-bar span:not(.on):not(.done) i { width: 0 !important; }
.film-ctrl { position: absolute; inset-inline-end: 6%; bottom: calc(6% + 14px); display: flex; gap: 8px; }
.film-btn, .film-close { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); background: rgba(0, 0, 0, .45); color: #fff; cursor: pointer; font-size: 14px; display: grid; place-items: center; }
.film-btn:hover, .film-close:hover { background: rgba(240, 122, 16, .8); border-color: transparent; }
.film-close { position: absolute; top: 14px; inset-inline-end: 14px; }
@media (max-width: 640px) { .film { padding: 0; } .film-stage { border-radius: 0; } .film-ctrl { bottom: calc(6% + 10px); } .film-title { bottom: 18%; } }

/* ---------- AI chat v2: cards, recommendations, quick replies ---------- */
.chat-panel { width: min(420px, calc(100vw - 24px)); height: min(660px, calc(100vh - 110px)); }
.suggest { flex-direction: row; flex-wrap: wrap; }
.suggest button { border-radius: 999px; padding: 7px 13px; }
.chat-log > * { flex-shrink: 0; }
.chat-card { align-self: stretch; border: 1px solid rgba(255, 255, 255, .12); border-radius: 14px; overflow: hidden; background: rgba(255, 255, 255, .04); font-size: 13px; }
.cc-img { height: 96px; background-size: cover; background-position: center; position: relative; }
.cc-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13, 29, 48, 0) 30%, rgba(13, 29, 48, .9)); }
.cc-code { position: absolute; z-index: 1; bottom: 8px; inset-inline-start: 12px; font: 700 22px "Poppins", sans-serif; color: var(--pc); }
.cc-body { padding: 10px 12px 12px; }
.cc-name { font-weight: 700; font-size: 14px; color: #fff; }
.cc-short { color: rgba(255, 255, 255, .7); margin-top: 2px; line-height: 1.5; }
.cc-mods { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.cc-mods span { font-size: 11px; padding: 3px 8px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--pc) 45%, transparent); color: var(--pc); }
.cc-acts { display: flex; gap: 8px; margin-top: 10px; }
.chat-card.rec .cc-acts { padding: 0 12px 12px; margin-top: 4px; }
.cc-btn { flex: 1; cursor: pointer; border-radius: 10px; padding: 8px 10px; font: inherit; font-weight: 600; background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .2); }
.cc-btn:hover { border-color: #fff; }
.cc-btn.primary { background: #f07a10; border-color: #f07a10; }
.cc-btn.primary:hover { background: #ff8f2e; }
.cc-kicker { padding: 10px 12px 2px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #ffb36b; }
.rec-row { display: block; width: calc(100% - 24px); margin: 8px 12px 0; text-align: start; cursor: pointer; font: inherit; color: inherit; background: rgba(255, 255, 255, .03); border: 1px solid rgba(255, 255, 255, .1); border-inline-start: 3px solid var(--pc); border-radius: 10px; padding: 8px 10px; }
.rec-row:hover { background: rgba(255, 255, 255, .07); }
.rec-head { display: flex; gap: 8px; align-items: baseline; }
.rec-code { font: 700 15px "Poppins", sans-serif; color: var(--pc); }
.rec-name { color: #fff; font-weight: 600; }
.rec-why { color: rgba(255, 255, 255, .72); margin-top: 3px; line-height: 1.5; }
.chat-card.saved { display: flex; gap: 10px; align-items: center; padding: 12px; border-color: rgba(37, 163, 90, .5); background: rgba(37, 163, 90, .1); color: #c9f2d8; }
.saved-ic { flex: none; width: 26px; height: 26px; border-radius: 50%; background: #25a35a; color: #fff; display: grid; place-items: center; font-weight: 700; }
/* mini previews */
.mini { margin-top: 10px; padding: 8px; border-radius: 10px; background: rgba(0, 0, 0, .25); border: 1px solid rgba(255, 255, 255, .06); font-size: 11px; }
.mrow { display: grid; grid-template-columns: auto 1fr auto auto; gap: 8px; align-items: center; padding: 4px 2px; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.mrow:last-child { border: 0; }
.mid { color: rgba(255, 255, 255, .45); direction: ltr; }
.mname { color: rgba(255, 255, 255, .85); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mnum { color: #fff; font-variant-numeric: tabular-nums; }
.mtag { padding: 1px 7px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .2); color: rgba(255, 255, 255, .6); }
.mtag.ok { background: var(--pc); border-color: var(--pc); color: #0d1d30; }
.mtag.due { border-color: var(--pc); color: var(--pc); }
.mcourse { padding: 4px 2px; }
.mtop { display: flex; justify-content: space-between; color: rgba(255, 255, 255, .85); }
.mbar { height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .1); margin-top: 4px; overflow: hidden; }
.mbar i { display: block; height: 100%; background: var(--pc); border-radius: 3px; }
.mini-crm { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.mcol { background: rgba(255, 255, 255, .04); border-radius: 7px; padding: 5px; min-height: 58px; }
.mh { color: rgba(255, 255, 255, .7); font-size: 10px; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mdeal { height: 12px; border-radius: 4px; background: rgba(255, 255, 255, .14); margin-top: 4px; }
.mcol.won .mdeal { background: var(--pc); }
.mgantt { display: grid; grid-template-columns: 38% 1fr; gap: 8px; align-items: center; padding: 3px 2px; color: rgba(255, 255, 255, .85); }
.mtrack { position: relative; height: 8px; background: rgba(255, 255, 255, .06); border-radius: 4px; }
.mtrack i { position: absolute; top: 0; height: 100%; border-radius: 4px; background: color-mix(in srgb, var(--pc) 45%, transparent); }
.mtrack i.done { background: var(--pc); }
/* chat start menu */
.chat-menu { display: flex; flex-direction: column; gap: 10px; }
.cm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cm-tile { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: start; cursor: pointer; font: inherit; color: #fff; padding: 12px; border-radius: 14px;
  background: linear-gradient(160deg, color-mix(in srgb, var(--pc) 16%, transparent), rgba(255, 255, 255, .02)); border: 1px solid color-mix(in srgb, var(--pc) 35%, transparent); transition: transform .15s, border-color .15s; }
.cm-tile:hover { transform: translateY(-2px); border-color: var(--pc); }
.cm-ic { color: var(--pc); line-height: 0; margin-bottom: 4px; }
.cm-code { font: 700 20px "Poppins", sans-serif; color: var(--pc); }
.cm-kind { font-size: 12px; color: rgba(255, 255, 255, .7); line-height: 1.35; }
.cm-more { display: flex; flex-direction: column; gap: 6px; }
.cm-link { cursor: pointer; font: inherit; font-size: 13px; text-align: start; padding: 9px 12px; border-radius: 10px; background: rgba(255, 255, 255, .03); color: #ffb36b; border: 1px solid rgba(255, 255, 255, .12); }
.cm-link:hover { border-color: #ff9a3d; background: rgba(240, 122, 16, .1); }
/* chat v3: action bar, typing, small cards */
.chat-actions { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 14px 0; border-top: 1px solid rgba(255, 255, 255, .08); }
.chat-actions:empty { display: none; }
.chat-actions + .chat-form { border-top: 0; padding-top: 8px; }
.ca { cursor: pointer; font: inherit; font-size: 12px; font-weight: 600; padding: 6px 11px; border-radius: 999px; background: rgba(255, 255, 255, .05); color: rgba(255, 255, 255, .85); border: 1px solid rgba(255, 255, 255, .14); }
.ca:hover:not(:disabled) { border-color: #fff; }
.ca:disabled { opacity: .45; cursor: default; }
.ca-menu::before { content: "⊞ "; }
.ca-primary { background: rgba(240, 122, 16, .18); border-color: rgba(240, 122, 16, .6); color: #ffc48f; }
.typing { align-items: center; gap: 8px; border-radius: 14px; border-color: rgba(255, 255, 255, .12) !important; background: rgba(255, 255, 255, .03); }
.ty-dots { display: flex; gap: 4px; }
.ty-dots span { width: 6px; height: 6px; border-radius: 50%; background: #ff9a3d; animation: musaedDot 1.2s infinite; }
.ty-dots span:nth-child(2) { animation-delay: .15s; } .ty-dots span:nth-child(3) { animation-delay: .3s; }
.ty-text { font-size: 12px; color: rgba(255, 255, 255, .7); }
.mini-card { display: flex; align-items: center; gap: 10px; padding: 10px 12px; }
.mini-card .mc-text { flex: 1; color: rgba(255, 255, 255, .85); line-height: 1.5; }
.mini-card .cc-btn { flex: none; }
.typing > .ty-dots, .typing > .ty-text { width: auto; height: auto; background: none; animation: none; }
/* chat v4: clickable modules, audience, module card */
.cc-label { margin-top: 10px; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: rgba(255, 255, 255, .5); }
.cc-mods { margin-top: 6px; }
.cc-mod { cursor: pointer; font: inherit; font-size: 11.5px; padding: 4px 10px; border-radius: 999px; background: color-mix(in srgb, var(--pc) 10%, transparent); border: 1px solid color-mix(in srgb, var(--pc) 45%, transparent); color: var(--pc); transition: background .15s; }
.cc-mod:hover { background: color-mix(in srgb, var(--pc) 25%, transparent); border-color: var(--pc); }
.cc-mod::after { content: " ›"; opacity: .7; }
[dir="rtl"] .cc-mod::after { content: " ‹"; }
.cc-aud { margin-top: 4px; color: rgba(255, 255, 255, .8); line-height: 1.5; }
.cc-desc { margin-top: 6px; color: rgba(255, 255, 255, .85); line-height: 1.6; font-size: 13.5px; }
.flash { animation: musaedFlash 1.6s ease; }
@keyframes musaedFlash { 0%, 100% { box-shadow: none; } 30% { box-shadow: 0 0 0 3px rgba(240, 122, 16, .7); } }
.chat-new { width: auto !important; gap: 5px; padding: 0 10px !important; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .16) !important; font-size: 12px; font-weight: 600; color: rgba(255, 255, 255, .85); }
.chat-new:hover { border-color: #ff9a3d !important; color: #ffb36b; }
/* ---------- ERP mini demo ---------- */
.erp-demo, .edu-demo { --pc: #3fc1d1; font-size: 14px; }
.edu-demo { --pc: #b98cf0; }
.ed-order { border: 1px solid var(--card-border); border-radius: 12px; padding: 14px; background: rgba(255, 255, 255, .02); }
.ed-oh { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.ed-oh span { color: var(--pc); font-size: 13px; }
.ed-line { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 12px; padding: 10px 0; border-top: 1px solid rgba(255, 255, 255, .08); border-bottom: 1px solid rgba(255, 255, 255, .08); }
.ed-line small { display: block; font-size: 12px; color: rgba(255, 255, 255, .55); }
.ed-qty { display: inline-flex; align-items: center; gap: 10px; }
.ed-qty b { min-width: 22px; text-align: center; font-size: 16px; }
.ed-qty button { width: 30px; height: 30px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .2); background: transparent; color: #fff; font-size: 16px; cursor: pointer; }
.ed-qty button:disabled { opacity: .3; cursor: default; }
.ed-sum { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; margin-top: 10px; font-size: 13px; color: rgba(255, 255, 255, .7); }
.ed-sum b { color: #fff; text-align: end; font-variant-numeric: tabular-nums; }
.ed-sum b.big { font-size: 17px; color: var(--pc); }
.ed-go, .ee-reset { margin-top: 12px; width: 100%; padding: 11px; border-radius: 10px; border: 0; background: #f07a10; color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.ed-go:hover { background: #ff8f2e; }
.ed-tiles { display: grid; grid-template-columns: 1fr 1.4fr 1fr; gap: 8px; margin-top: 12px; }
.ed-tile { border: 1px solid var(--card-border); border-radius: 12px; padding: 10px 12px; transition: border-color .3s, background .3s; }
.ed-tile .l { font-size: 11px; color: rgba(255, 255, 255, .55); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.ed-tile .v { font: 600 18px "Poppins", sans-serif; margin-top: 4px; font-variant-numeric: tabular-nums; }
.ed-gl { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; margin-top: 4px; font-size: 12px; color: rgba(255, 255, 255, .7); }
.ed-gl b { color: #fff; font-variant-numeric: tabular-nums; }
.ed-tile.hit { border-color: var(--pc); background: color-mix(in srgb, var(--pc) 12%, transparent); animation: edPulse .9s ease; }
@keyframes edPulse { 30% { transform: scale(1.04); } }
.ed-log { margin-top: 10px; font-size: 13px; color: rgba(255, 255, 255, .7); min-height: 20px; }
@media (max-width: 560px) { .ed-tiles { grid-template-columns: 1fr; } }
/* ---------- EDU mini demo ---------- */
.ee-head { display: flex; justify-content: space-between; align-items: center; }
.ee-head small { display: block; color: rgba(255, 255, 255, .55); font-size: 12px; }
.ee-pct { font: 700 22px "Poppins", sans-serif; color: var(--pc); }
.ee-bar { height: 7px; margin: 8px 0 12px; }
.ee-bar i { transition: width .5s; }
.ee-lessons { display: flex; flex-direction: column; gap: 6px; }
.ee-l { display: grid; grid-template-columns: 26px 1fr auto; align-items: center; gap: 10px; text-align: start; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--card-border); background: transparent; color: rgba(255, 255, 255, .45); font: inherit; }
.ee-l .ic { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .06); font-size: 12px; }
.ee-l .ac { font-size: 12px; font-weight: 600; }
.ee-l.ok { color: rgba(255, 255, 255, .85); }
.ee-l.ok .ic { background: var(--pc); color: #0d1d30; }
.ee-l.ok .ac { color: var(--pc); }
.ee-l.next { color: #fff; border-color: #f07a10; cursor: pointer; background: rgba(240, 122, 16, .08); }
.ee-l.next .ac { color: #fff; background: #f07a10; padding: 4px 10px; border-radius: 999px; }
.ee-l.next:hover { background: rgba(240, 122, 16, .16); }
.ee-panels { display: grid; grid-template-columns: 1fr 1.6fr 1fr; gap: 8px; margin-top: 12px; }
.ee-p { border: 1px solid var(--card-border); border-radius: 12px; padding: 10px 12px; }
.ee-p .l { font-size: 11px; color: rgba(255, 255, 255, .55); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.ee-p .v { font: 600 20px "Poppins", sans-serif; margin-top: 4px; }
.ee-p small { color: rgba(255, 255, 255, .55); font-size: 11.5px; }
.ee-feed { margin-top: 4px; font-size: 12px; line-height: 1.45; display: flex; flex-direction: column; gap: 4px; }
.ee-feed div:first-child { color: #fff; }
.ee-feed div:not(:first-child) { color: rgba(255, 255, 255, .55); }
.ee-p.cert-on { border-color: var(--pc); background: color-mix(in srgb, var(--pc) 14%, transparent); }
.ee-reset { background: transparent; border: 1px solid rgba(255, 255, 255, .2); font-weight: 600; }
@media (max-width: 560px) { .ee-panels { grid-template-columns: 1fr; } }
/* slim one-line action bar */
.chat-actions { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; gap: 5px; padding: 6px 12px 0; }
.chat-actions::-webkit-scrollbar { display: none; }
.ca { flex: none; font-size: 11px; padding: 4px 9px; white-space: nowrap; }
/* chat: talk-to-sales form */
.sf-body { padding: 4px 12px 12px; display: flex; flex-direction: column; gap: 8px; }
.sf-lead { margin: 0 0 2px; color: rgba(255, 255, 255, .78); line-height: 1.5; }
.sf label { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.sf label span, .sf-l { font-size: 11px; font-weight: 600; color: rgba(255, 255, 255, .6); }
.sf input { font: inherit; font-size: 13.5px; padding: 8px 10px; border-radius: 9px; border: 1px solid rgba(255, 255, 255, .16); background: rgba(0, 0, 0, .25); color: #fff; width: 100%; }
.sf input:focus { outline: none; border-color: #ff9a3d; }
.sf input.bad { border-color: #ff5a5f; }
.sf-row { display: flex; gap: 8px; }
.sf-seg { display: flex; flex-wrap: wrap; gap: 5px; }
.sf-seg button { cursor: pointer; font: inherit; font-size: 12px; font-weight: 600; padding: 5px 11px; border-radius: 999px; background: transparent; color: rgba(255, 255, 255, .75); border: 1px solid rgba(255, 255, 255, .18); }
.sf-seg button.on { background: rgba(240, 122, 16, .2); border-color: #f07a10; color: #ffc48f; }
.sf .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.sf-err { color: #ff8a8e; font-size: 12px; min-height: 0; }
.sf-err:empty { display: none; }
.sf-send { width: 100%; padding: 10px; }
.sf-send:disabled { opacity: .6; }
.sf-note { margin: 0; font-size: 11px; color: rgba(255, 255, 255, .45); }

/* ---------- Audit (5th product) ---------- */
.arch { padding: 22px; }
.arch::before, .arch::after { display: none; }
.arch-quad { position: relative; }
.arch-quad::before { content: ""; position: absolute; inset-inline: 0; top: 50%; border-top: 1px dashed rgba(255, 255, 255, .15); }
.arch-quad::after { content: ""; position: absolute; top: 0; bottom: -22px; left: 50%; border-left: 1px dashed rgba(255, 255, 255, .15); }
.arch-cell { min-height: 124px; }
.arch-extra { position: relative; z-index: 1; margin-top: 22px; }
.arch-cell.arch-wide { min-height: 0; flex-direction: row; align-items: center; gap: 14px; padding: 14px 18px; }
.arch-cell.arch-wide .code { margin-top: 0; font-size: 28px; }
.arch-cell.arch-wide .kind { margin-inline-start: auto; }
.arch-cell[data-hov="audit"] svg { stroke: var(--audit); }
.dot-audit { color: var(--audit); }
/* chat: five tiles, the fifth spans the row */
.cm-grid .cm-tile:nth-child(5):last-child { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 10px; }
.cm-grid .cm-tile:nth-child(5):last-child .cm-ic { margin: 0; }
.cm-grid .cm-tile:nth-child(5):last-child .cm-kind { margin-inline-start: auto; text-align: end; }
/* risk tags */
.mtag.risk-hi { border-color: #ff6b6b; color: #ff8f8f; }
.mtag.risk-md { border-color: #f5b041; color: #f5c46b; }
.mtag.risk-lo { border-color: rgba(255, 255, 255, .3); color: rgba(255, 255, 255, .7); }
.mfind { grid-template-columns: 1fr auto; }
/* Audit live demo */
.audit-demo { --pc: #ff6b6b; font-size: 14px; }
.ad-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ad-kpis > div { border: 1px solid var(--card-border); border-radius: 12px; padding: 10px 12px; }
.ad-kpis .l { font-size: 11px; color: rgba(255, 255, 255, .55); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.ad-kpis .v { font: 600 20px "Poppins", sans-serif; margin-top: 4px; }
.ad-kpis .v.warn { color: #ff8f8f; } .ad-kpis .v.ok { color: #7fd9a0; }
.ad-list { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.ad-row { display: grid; grid-template-columns: auto 1fr auto auto; gap: 10px; align-items: center; text-align: start; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--card-border); background: transparent; color: #fff; font: inherit; font-size: 13px; cursor: pointer; }
.ad-row:hover { border-color: rgba(255, 255, 255, .3); }
.ad-row.on { border-color: #f07a10; background: rgba(240, 122, 16, .08); }
.ad-row.closed .ad-n { text-decoration: line-through; color: rgba(255, 255, 255, .5); }
.ad-row .mtag { font-size: 11px; padding: 1px 8px; border-radius: 999px; border: 1px solid; }
.ad-id { color: rgba(255, 255, 255, .45); font-size: 12px; direction: ltr; }
.ad-s { font-size: 11.5px; color: rgba(255, 255, 255, .6); }
.ad-row.closed .ad-s { color: #7fd9a0; }
.ad-detail { margin-top: 12px; border: 1px solid var(--card-border); border-radius: 12px; padding: 12px 14px; }
.ad-h b { display: block; } .ad-h small { color: rgba(255, 255, 255, .55); }
.ad-steps { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 10px; }
.ad-steps span { font-size: 11px; padding: 4px 9px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .12); color: rgba(255, 255, 255, .45); }
.ad-steps span.done { border-color: var(--pc); color: var(--pc); }
.ad-steps span.cur { background: #f07a10; border-color: #f07a10; color: #fff; }
.ad-note { margin-top: 8px; font-size: 13px; color: #7fd9a0; min-height: 18px; }
@media (max-width: 560px) { .ad-row { grid-template-columns: 1fr auto; } .ad-id, .ad-s { display: none; } }
