/* SILACOD home V2: sections added on 2026-11-06 (Swarm, WhatsApp set-up, Sila-mini, Anti fake leads, call center)
   and the product mock-ups redrawn from the real dashboard and mobile app. Logical properties, so AR and FR/EN mirror. */

.mx { --mx-card: #13153e; --mx-card2: #1a1d4d; --mx-ink: #fff; --mx-muted: #b0b2d4; --mx-line: rgba(255,255,255,.12); --mx-soft: rgba(255,255,255,.06); }
html[data-theme="light"] .mx { --mx-card: #fff; --mx-card2: #f5f6fb; --mx-ink: #0f172a; --mx-muted: #5b6478; --mx-line: rgba(15,23,42,.1); --mx-soft: rgba(35,40,99,.05); }
.mx .rv { opacity: 1; transform: none; }
.mx-card { background: var(--mx-card); border: 1px solid var(--mx-line); border-radius: 20px; color: var(--mx-ink); }
.mx h3 { margin: 0; font-size: 18px; font-weight: 800; line-height: 1.4; }
.mx-note { margin: 18px 0 0; font-size: 13px; color: var(--mx-muted); }
.mx-label { display: block; font-size: 13px; font-weight: 700; color: var(--mx-muted); }

/* the real product surface: same in both page themes, like the dashboard itself */
.ui { --ui-navy: #232863; --ui-navy2: #181a50; --ui-coral: #f06343; --ui-ink: #0f172a; --ui-muted: #64748b; --ui-faint: #94a3b8; --ui-line: rgba(15,23,42,.07); --ui-bg: #f4f5fa;
  font-family: "Cairo", "Inter", system-ui, sans-serif; color: var(--ui-ink); background: var(--ui-bg); text-align: start; }
html[lang="en"] .ui, html[lang="fr"] .ui { font-family: "Inter", system-ui, sans-serif; }
.ui-card { background: #fff; border: 1px solid var(--ui-line); border-radius: 20px; box-shadow: 0 1px 2px rgba(17,19,68,.04), 0 6px 16px -8px rgba(17,19,68,.12); }
.ui-pill { display: inline-flex; align-items: center; gap: 6px; min-height: 24px; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.ui-pill.ok { background: #dcfce7; color: #166534; } .ui-pill.wait { background: #fef3c7; color: #92400e; } .ui-pill.no { background: #fee2e2; color: #991b1b; } .ui-pill.info { background: #e0f2fe; color: #075985; } .ui-pill.navy { background: #eeeef8; color: #232863; }

/* ---------- web dashboard ---------- */
.fstage:has(.rd) { padding: clamp(10px, 1.6vw, 24px); }
.rd { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 12px; padding: 12px; border-radius: 26px; overflow: hidden; box-shadow: 0 40px 90px -40px rgba(6,7,29,.6);
  background: radial-gradient(60% 60% at 0 0, rgba(35,40,99,.1), transparent 70%), radial-gradient(60% 60% at 100% 100%, rgba(240,99,67,.12), transparent 70%), #f4f5fa; }
.rd-side { display: flex; flex-direction: column; gap: 3px; padding: 14px 10px; border-radius: 22px; background: rgba(255,255,255,.8); border: 1px solid rgba(255,255,255,.7); box-shadow: 0 10px 40px -14px rgba(17,19,68,.35); }
.rd-logo { display: flex; justify-content: center; padding: 4px 0 10px; } .rd-logo img { height: 20px; width: auto; }
.rd-ws { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; padding: 4px; margin-bottom: 8px; border-radius: 16px; background: rgba(241,245,249,.8); }
.rd-ws span { display: grid; place-items: center; min-height: 36px; border-radius: 12px; font-size: 12.5px; font-weight: 600; color: #64748b; }
.rd-ws .on { background: #fff; color: #232863; box-shadow: 0 1px 3px rgba(17,19,68,.14); }
.rd-sec { margin: 10px 8px 3px; font-size: 12px; font-weight: 700; color: #94a3b8; }
.rd-it { display: flex; align-items: center; gap: 9px; min-height: 38px; padding: 0 9px; border-radius: 12px; font-size: 13.5px; font-weight: 500; color: #334155; }
.rd-it svg { width: 17px; height: 17px; flex: none; color: #94a3b8; }
.rd-it.on { background: #252868; color: #fff; } .rd-it.on svg { color: #fff; }
.rd-main { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.rd-top { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 14px; border-radius: 16px; background: rgba(255,255,255,.75); }
.rd-crumb { display: inline-flex; align-items: center; min-height: 26px; padding: 0 11px; border-radius: 999px; background: #232863; color: #fff; font-size: 12px; font-weight: 700; }
.rd-top b { font-size: 14px; font-weight: 700; }
.rd-search { display: flex; align-items: center; gap: 8px; flex: 1; max-width: 288px; min-height: 36px; margin-inline-start: auto; padding: 0 12px; border-radius: 12px; background: rgba(241,245,249,.7); color: #94a3b8; font-size: 13px; }
.rd-ic { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 12px; background: rgba(241,245,249,.7); color: #64748b; } .rd-ic svg { width: 17px; height: 17px; }
.rd-hero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr); gap: 16px; align-items: center; padding: 20px 22px; border-radius: 24px; color: #fff; background: radial-gradient(120% 140% at 0 0, #2c2f74, #181a50 55%, #0a0c2e); }
.rd-hero small { display: block; font-size: 13px; color: #c8cbf0; } .rd-hero strong { display: block; margin-top: 2px; font-size: 24px; font-weight: 800; line-height: 1.3; }
.rd-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.rd-tile { padding: 12px; border-radius: 16px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); }
.rd-tile small { font-size: 12px; } .rd-tile b { display: block; margin-top: 3px; font-size: 18px; font-weight: 800; }
.rd-kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.rd-kpi { padding: 14px; } .rd-kpi small { display: block; font-size: 12.5px; font-weight: 500; color: #64748b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rd-kpi b { display: block; margin-top: 8px; font-size: 24px; font-weight: 800; line-height: 1.1; } .rd-kpi em { display: block; margin-top: 4px; font-style: normal; font-size: 12px; color: #94a3b8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rd-chart { padding: 16px 18px 10px; } .rd-chart header { display: flex; align-items: center; justify-content: space-between; gap: 12px; } .rd-chart header b { font-size: 15px; font-weight: 800; }
.rd-seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 12px; background: #f1f5f9; } .rd-seg span { display: grid; place-items: center; min-height: 30px; padding: 0 12px; border-radius: 10px; font-size: 12px; font-weight: 700; color: #64748b; } .rd-seg .on { background: #fff; color: #232863; }
.rd-chart svg { display: block; width: 100%; height: 190px; margin-top: 8px; }
@media (max-width: 1180px) { .rd { grid-template-columns: minmax(0, 1fr); } .rd-side { display: none; } .rd-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) { .rd-hero { grid-template-columns: minmax(0, 1fr); } .rd-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .rd-tile:last-child { grid-column: 1 / -1; } .rd-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .rd-search, .rd-ic { display: none; } .rd { padding: 8px; border-radius: 20px; } }

/* ---------- mobile app ---------- */
.rm { position: absolute; inset: 0; display: flex; flex-direction: column; background: #f8f9fa; color: #2e315e; font-family: Roboto, "Cairo", system-ui, sans-serif; overflow: hidden; text-align: start; }
.scr:has(> .rm) > .app { display: none; }
.rm-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 38px 14px 9px; background: #fff; border-bottom: 1px solid #edf2f7; }
.rm-brand { display: flex; align-items: center; gap: 5px; } .rm-brand img { height: 16px; width: auto; } .rm-head small { display: block; margin-top: 2px; font-size: 12px; color: #94a3b8; }
.rm-title { font-size: 16px; font-weight: 800; }
.rm-bell { position: relative; display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 10px; border: 1px solid #edf2f7; color: #2e315e; } .rm-bell svg { width: 17px; height: 17px; }
.rm-bell i { position: absolute; top: -3px; inset-inline-end: -3px; width: 9px; height: 9px; border-radius: 50%; background: #ff5722; }
.rm-body { flex: 1; min-height: 0; padding: 11px 12px 86px; overflow: hidden; display: flex; flex-direction: column; gap: 10px; }
.rm-bal { padding: 13px 14px; border-radius: 20px; background: #181a50; color: #fff; }
.rm-bal-t { display: flex; align-items: center; justify-content: space-between; gap: 8px; } .rm-bal small { font-size: 12px; color: #c9cbe6; } .rm-bal b { display: block; font-size: 23px; font-weight: 900; line-height: 1.3; }
.rm-with { display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; border-radius: 10px; background: #fff; color: #181a50; font-size: 12px; font-weight: 800; }
.rm-bal-b { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 9px; padding-top: 9px; border-top: 1px solid rgba(255,255,255,.14); } .rm-bal-b b { font-size: 14px; }
.rm-acts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; } .rm-act { display: grid; justify-items: center; gap: 4px; font-size: 12px; font-weight: 600; color: #475569; text-align: center; line-height: 1.2; }
.rm-act i { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; border: 1px solid #edf2f7; background: #fff; color: #2e315e; } .rm-act i svg { width: 18px; height: 18px; } .rm-act:first-child i { background: #ff5722; border-color: #ff5722; color: #fff; }
.rm-chips { display: flex; gap: 6px; } .rm-chips span { display: grid; place-items: center; min-height: 30px; padding: 0 11px; border-radius: 999px; border: 1px solid #e2e8f0; background: #fff; font-size: 12px; font-weight: 700; color: #64748b; white-space: nowrap; } .rm-chips .on { background: #2e315e; border-color: #2e315e; color: #fff; }
.rm-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; } .rm-stat { padding: 8px 4px; border-radius: 14px; border: 1px solid #edf2f7; background: #fff; text-align: center; } .rm-stat b { display: block; font-size: 17px; font-weight: 900; line-height: 1.2; } .rm-stat small { font-size: 12px; color: #64748b; }
.rm-lead { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 3px 9px; align-items: center; padding: 10px; border-radius: 16px; border: 1px solid #edf2f7; background: #fff; }
.rm-lead > i { grid-row: span 2; width: 38px; height: 38px; border-radius: 12px; background-size: cover; background-position: center; background-color: #eef0f6; }
.rm-lead b { font-size: 14px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .rm-lead strong { font-size: 14px; font-weight: 900; color: #ff5722; }
.rm-lead small { font-size: 12px; color: #64748b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .rm-lead .ui-pill { justify-self: end; min-height: 20px; padding: 0 8px; }
.rm-tabs { position: absolute; inset-inline: 10px; bottom: 12px; display: flex; align-items: center; justify-content: space-between; min-height: 56px; padding: 0 8px; border-radius: 30px; background: #fff; border: 1px solid #edf2f7; box-shadow: 0 10px 24px -12px rgba(17,19,68,.35); }
.rm-tabs span { display: grid; place-items: center; width: 34px; height: 34px; color: #94a3b8; } .rm-tabs svg { width: 19px; height: 19px; }
.rm-tabs .on { display: inline-flex; gap: 5px; width: auto; min-height: 42px; padding: 0 12px; border-radius: 22px; background: #ff5722; color: #fff; font-size: 12px; font-weight: 800; box-shadow: 0 0 0 4px #fef0ec; }

/* ---------- WhatsApp inbox: same colours as the real thread ---------- */
.ob-board { background: #f4f5fa !important; color: #0f172a !important; }
.ob-chat { background: #efeae2 !important; }
.ob-ch { background: #f0f2f5 !important; color: #0f172a !important; }
.ob-msgs .ob-me, .ob-msgs .me { background: #d9fdd3 !important; color: #111b21 !important; }
.inbox .ib-ch { background: #f0f2f5; } .inbox .ib-msgs { background: #efeae2; }
.rx-tabs { display: flex; gap: 4px; padding: 8px 10px 0; } .rx-tabs span { display: grid; place-items: center; min-height: 30px; padding: 0 10px; border-radius: 10px; font-size: 12px; font-weight: 700; color: #64748b; } .rx-tabs .on { background: #eeeef8; color: #232863; }

/* ---------- Swarm ---------- */
.sw-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: stretch; }
.sw-side { display: flex; flex-direction: column; gap: 14px; padding: 18px; }
.sw-stages { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.sw-stages li { display: flex; align-items: center; gap: 9px; min-height: 28px; font-size: 14px; font-weight: 600; color: var(--mx-muted); transition: color .3s; }
.sw-stages i { display: grid; place-items: center; width: 20px; height: 20px; flex: none; border-radius: 50%; border: 2px solid var(--mx-line); } .sw-stages i svg { width: 12px; height: 12px; opacity: 0; color: #fff; }
.sw-stages .on { color: var(--mx-ink); } .sw-stages .on i { border-color: #f06343; } .sw-stages .ok { color: var(--mx-ink); } .sw-stages .ok i { border-color: #10b981; background: #10b981; } .sw-stages .ok i svg { opacity: 1; }
.sw-roles { display: flex; flex-wrap: wrap; gap: 6px; } .sw-roles span { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 0 10px; border-radius: 999px; background: var(--mx-soft); font-size: 12px; font-weight: 700; color: var(--mx-ink); } .sw-roles i { width: 9px; height: 9px; border-radius: 50%; }
@media (max-width: 1100px) { .sw-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- WhatsApp set-up ---------- */
.ws-path { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; margin: 0 0 16px; padding: 0; list-style: none; }
.ws-path li { position: relative; padding: 12px; border-radius: 16px; background: var(--mx-soft); }
.ws-path b { display: block; font-size: 14px; font-weight: 800; color: var(--mx-ink); } .ws-path small { display: block; margin-top: 2px; font-size: 12px; line-height: 1.5; color: var(--mx-muted); }
.ws-path i { display: grid; place-items: center; width: 24px; height: 24px; margin-bottom: 7px; border-radius: 50%; background: #cc4426; color: #fff; font-family: var(--f-lat); font-size: 12px; font-style: normal; font-weight: 800; }
.ws-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 9fr); gap: 16px; align-items: stretch; }
.ws-left { display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 16px; min-width: 0; } #voCard { display: grid; min-width: 0; }
.ws-card { padding: 20px; border-radius: 20px; }
.ws-seg { display: inline-grid; grid-template-columns: 1fr 1fr; gap: 2px; margin-top: 12px; padding: 4px; border-radius: 14px; background: #f1f5f9; } .ws-seg button { min-height: 40px; padding: 0 16px; border: 0; border-radius: 11px; background: transparent; color: #64748b; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; } .ws-seg button[aria-pressed="true"] { background: #fff; color: #232863; box-shadow: 0 1px 3px rgba(17,19,68,.14); }
.ws-link { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 14px; margin-top: 14px; }
.ws-qr { position: relative; display: grid; place-items: center; width: 148px; height: 148px; padding: 8px; border-radius: 14px; background: #fff; border: 1px solid rgba(15,23,42,.08); overflow: hidden; }
.ws-qr svg { width: 100%; height: 100%; color: #111b21; }
.ws-qr::after { content: ""; position: absolute; inset-inline: 0; top: 0; height: 2px; background: #25d366; box-shadow: 0 0 10px #25d366; animation: ws-scan 2.6s ease-in-out infinite; }
.ws-code { font-family: var(--f-lat); font-size: 22px; font-weight: 800; letter-spacing: .08em; color: #232863; direction: ltr; text-align: center; }
@keyframes ws-scan { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(146px); } }
.ws-ok { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; align-content: center; gap: 6px; background: rgba(255,255,255,.95); color: #166534; font-size: 13px; font-weight: 800; opacity: 0; transition: opacity .3s; text-align: center; }
.ws-ok svg { width: 34px; height: 34px; padding: 7px; border-radius: 50%; background: #16a34a; color: #fff; } .ws-qr.ok .ws-ok { opacity: 1; } .ws-qr.ok::after { display: none; }
.ws-steps { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 13px; line-height: 1.55; color: #334155; } .ws-steps li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 8px; } .ws-steps i { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #eeeef8; color: #232863; font-family: var(--f-lat); font-size: 12px; font-style: normal; font-weight: 800; }
.ws-warn { display: block; margin-top: 14px; padding: 9px 12px; border-radius: 12px; background: #fef3c7; color: #92400e; font-size: 12.5px; font-weight: 600; line-height: 1.55; }
@media (max-width: 1100px) { .ws-grid { grid-template-columns: minmax(0, 1fr); } .ws-path { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 620px) { .ws-path { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ws-link { grid-template-columns: minmax(0, 1fr); justify-items: center; } .ws-steps { justify-self: stretch; }  }

/* ---------- Sila-mini ---------- */
.mi-grid { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 16px; align-items: stretch; }
.mi-tabs { display: grid; gap: 8px; align-content: start; }
.mi-tabs button { display: block; width: 100%; padding: 14px 16px; border: 1px solid var(--mx-line); border-radius: 16px; background: var(--mx-card); color: var(--mx-ink); font: inherit; text-align: start; cursor: pointer; transition: border-color .2s; }
.mi-tabs b { display: block; font-size: 16px; font-weight: 800; } .mi-tabs small { display: block; margin-top: 3px; font-size: 13.5px; line-height: 1.6; color: var(--mx-muted); }
.mi-tabs button:hover { border-color: rgba(240,99,67,.6); } .mi-tabs button[aria-selected="true"] { border-color: #f06343; box-shadow: inset 0 0 0 1px #f06343; }
.mi-stage { position: relative; min-height: 480px; padding: 14px; border-radius: 22px; overflow: hidden; background: radial-gradient(70% 70% at 100% 100%, rgba(240,99,67,.12), transparent 70%), #f4f5fa; }
.mi-page { padding: 14px 16px; border-radius: 16px; background: rgba(255,255,255,.75); display: flex; align-items: center; gap: 10px; }
.mi-skel { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 12px; } .mi-skel i { display: block; height: 170px; border-radius: 16px; background-size: cover; background-position: center; border: 1px solid rgba(15,23,42,.07); }
.mi-card { position: absolute; bottom: 14px; inset-inline-end: 112px; display: flex; flex-direction: column; gap: 8px; width: min(340px, calc(100% - 136px)); max-height: calc(100% - 28px); padding: 12px; border-radius: 18px; background: #fff; box-shadow: 0 18px 44px -18px rgba(17,19,68,.45); border: 1px solid rgba(15,23,42,.07); }
.mi-ask { align-self: flex-end; max-width: 92%; padding: 8px 12px; border-radius: 14px; background: #232863; color: #fff; font-size: 14px; font-weight: 600; line-height: 1.55; }
.mi-line { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: #334155; opacity: 0; transform: translateY(4px); transition: opacity .3s, transform .3s; } .mi-line.in { opacity: 1; transform: none; }
.mi-line i { display: grid; place-items: center; width: 18px; height: 18px; flex: none; border-radius: 50%; background: #10b981; color: #fff; } .mi-line i svg { width: 11px; height: 11px; }
.mi-rep { padding: 10px; border-radius: 14px; background: #f5f6fb; opacity: 0; transition: opacity .35s; } .mi-rep.in { opacity: 1; } .mi-rep b { font-size: 14px; font-weight: 800; }
.mi-shots { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 7px; } .mi-shots i { display: block; aspect-ratio: 16 / 10; border-radius: 10px; background-size: cover; background-position: center; }
.mi-btns { display: flex; gap: 6px; margin-top: 8px; } .mi-btns span { display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; border-radius: 10px; background: #232863; color: #fff; font-size: 12.5px; font-weight: 700; } .mi-btns span + span { background: #fff; color: #232863; box-shadow: inset 0 0 0 1px rgba(35,40,99,.2); }
.mi-sprite { position: absolute; bottom: 10px; inset-inline-end: 12px; height: 120px; background-repeat: no-repeat; filter: drop-shadow(0 8px 14px rgba(17,19,68,.3)); }
.mi-qr { width: 112px; height: 112px; padding: 6px; border-radius: 10px; border: 1px solid rgba(15,23,42,.08); margin-inline: auto; color: #111b21; } .mi-qr svg { width: 100%; height: 100%; }
@media (max-width: 1100px) { .mi-grid { grid-template-columns: minmax(0, 1fr); } .mi-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); } .mi-tabs small { display: none; } }
@media (max-width: 620px) { .mi-tabs { grid-template-columns: minmax(0, 1fr); } .mi-stage { min-height: 500px; } .mi-card { inset-inline: 10px; width: auto; bottom: 96px; max-height: calc(100% - 110px); } .mi-sprite { height: 84px; } }

/* ---------- Anti fake leads ---------- */
.sh-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 16px; }
.sh-river { padding: 20px; border-radius: 22px; }
.sh-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; } .sh-top b { display: block; font-size: 15px; font-weight: 800; } .sh-top small { display: block; font-size: 13px; color: #64748b; }
.sh-sw { position: relative; flex: none; width: 56px; height: 32px; border: 0; border-radius: 999px; background: #cbd5e1; cursor: pointer; transition: background .2s; } .sh-sw::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; transition: inset-inline-start .2s; } .sh-sw[aria-checked="true"] { background: #16a34a; } .sh-sw[aria-checked="true"]::after { inset-inline-start: 27px; }
.sh-flow { position: relative; height: 170px; margin-top: 14px; border-radius: 16px; overflow: hidden; background: #181a50; direction: ltr; }
.sh-wall { position: absolute; top: 0; bottom: 0; left: 50%; width: 76px; margin-left: -38px; display: grid; place-items: center; color: #fff; background: rgba(240,99,67,.14); border-inline: 1px solid rgba(240,99,67,.5); transition: opacity .3s; } .sh-wall svg { width: 30px; height: 30px; }
.sh-flow.off .sh-wall { opacity: .3; }
.sh-end { position: absolute; top: 8px; color: #c9cbe6; font-size: 12.5px; font-weight: 700; } .sh-end.a { left: 12px; } .sh-end.b { right: 12px; }
.sh-dot { position: absolute; left: -14px; width: 12px; height: 12px; border-radius: 50%; animation: sh-go var(--d, 4s) linear forwards; } .sh-dot.stop { animation-name: sh-stop; }
@keyframes sh-go { to { left: calc(100% + 14px); } }
@keyframes sh-stop { 0% { left: -14px; opacity: 1; } 46% { left: calc(50% - 44px); opacity: 1; } 56% { left: calc(50% - 40px); opacity: 0; transform: scale(1.8); } 100% { left: calc(50% - 40px); opacity: 0; } }
.sh-kinds { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin-top: 12px; }
.sh-kind { padding: 10px; border-radius: 14px; background: #f5f6fb; } .sh-kind b { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 800; } .sh-kind b i { width: 9px; height: 9px; border-radius: 50%; } .sh-kind small { display: block; margin-top: 3px; font-size: 12px; line-height: 1.45; color: #64748b; }
.sh-scan { padding: 20px; border-radius: 22px; display: flex; flex-direction: column; gap: 10px; }
.sh-lead { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 14px; background: #f5f6fb; } .sh-lead b { font-size: 14px; font-weight: 800; } .sh-lead small { display: block; font-size: 12.5px; color: #64748b; }
.sh-steps { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.sh-steps li { display: flex; align-items: center; gap: 9px; min-height: 30px; font-size: 13.5px; font-weight: 600; color: #94a3b8; transition: color .25s; } .sh-steps li.on { color: #0f172a; }
.sh-steps i { display: grid; place-items: center; width: 20px; height: 20px; flex: none; border-radius: 50%; border: 2px solid #e2e8f0; color: #fff; } .sh-steps i svg { width: 12px; height: 12px; opacity: 0; } .sh-steps .ok i { background: #16a34a; border-color: #16a34a; } .sh-steps .bad i { background: #dc2626; border-color: #dc2626; } .sh-steps .ok i svg, .sh-steps .bad i svg { opacity: 1; }
.sh-steps small { margin-inline-start: auto; font-size: 12px; color: #64748b; text-align: end; }
.sh-risk { height: 8px; border-radius: 4px; background: #e2e8f0; overflow: hidden; } .sh-risk i { display: block; height: 100%; width: 0; border-radius: 4px; background: #16a34a; transition: width .5s, background .4s; }
.sh-verdict { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13.5px; font-weight: 700; color: #334155; min-height: 28px; }
@media (max-width: 1100px) { .sh-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 620px) { .sh-kinds { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sh-kind:last-child { grid-column: 1 / -1; } }

@media (prefers-reduced-motion: reduce) {
  .sw-cur, .sw-b, .mi-line, .mi-rep { transition: none; }
  .ws-qr::after, .vo-wave i, .sh-dot { animation: none; }
}

/* ---------- call center ---------- */
.pl-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: stretch; }
.pl-app { padding: 18px; border-radius: 22px; overflow: hidden; }
.pl-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; min-height: 58px; } .pl-top > div > b { display: block; font-size: 22px; font-weight: 800; color: #0f172a; }
.pl-live { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: #047857; } .pl-live i { width: 9px; height: 9px; border-radius: 50%; background: #10b981; box-shadow: 0 0 0 0 rgba(16,185,129,.6); animation: pl-pulse 1.6s infinite; }
@keyframes pl-pulse { to { box-shadow: 0 0 0 9px rgba(16,185,129,0); } }
.pl-toast { max-width: 54%; min-height: 34px; padding: 7px 12px; border-radius: 12px; font-size: 12.5px; font-weight: 700; opacity: 0; transition: opacity .2s; } .pl-toast.on { opacity: 1; } .pl-toast.new { background: #dcfce7; color: #166534; } .pl-toast.lost { background: #fee2e2; color: #991b1b; }
.pl-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 12px; min-height: 276px; }
.pl-card { position: relative; display: flex; flex-direction: column; gap: 7px; padding: 12px; transition: transform .4s var(--ease), opacity .35s, border-color .2s, box-shadow .2s; }
.pl-card .ui-pill { align-self: flex-start; }
.pl-p { display: flex; align-items: center; gap: 9px; } .pl-p i { width: 48px; height: 48px; flex: none; border-radius: 12px; background-size: cover; background-position: center; } .pl-p b { font-size: 14px; font-weight: 800; line-height: 1.35; }
.pl-price small { display: block; font-size: 12px; color: #64748b; } .pl-price strong { font-size: 20px; font-weight: 800; color: #232863; }
.pl-who { font-size: 13px; color: #334155; } .pl-who b { font-weight: 800; } .pl-meta { font-size: 12px; color: #64748b; line-height: 1.45; }
.pl-cta { display: grid; place-items: center; min-height: 40px; margin-top: auto; padding: 0 8px; border-radius: 12px; background: #cc4426; color: #fff; font-size: 13px; font-weight: 700; text-align: center; transition: background .2s; }
.pl-racers { position: absolute; top: 10px; inset-inline-end: 10px; display: flex; } .pl-racers img { width: 30px; height: 30px; margin-inline-start: -8px; border-radius: 50%; border: 2px solid #fff; object-fit: cover; object-position: top; animation: pl-in .3s var(--ease) both; }
.pl-racers img:last-child { animation-delay: .12s; } @keyframes pl-in { from { transform: translateY(-14px) scale(.6); opacity: 0; } }
.pl-card.race { border-color: #f06343; box-shadow: 0 0 0 2px rgba(240,99,67,.35); }
.pl-card.taken .pl-cta { background: #16a34a; }
.pl-card.gone { transform: scale(.92); opacity: 0; }
.pl-card.drop { animation: pl-drop .55s var(--ease) both; } @keyframes pl-drop { from { transform: translateY(-34px); opacity: 0; } }
.pl-hide { margin: 12px 0 0; font-size: 13px; color: #64748b; }
.pl-side { padding: 16px; } .pl-side header b { display: block; font-size: 16px; font-weight: 800; } .pl-side header small { font-size: 12.5px; color: #64748b; }
.pl-board { display: grid; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; } .pl-board li { display: grid; grid-template-columns: 20px 38px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 8px; border-radius: 14px; background: #f5f6fb; }
.pl-board li:first-child { background: #fef0ec; } .pl-rank { font-size: 13px; font-weight: 800; color: #64748b; } .pl-board img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; object-position: top; }
.pl-board b { display: block; font-size: 14px; font-weight: 800; } .pl-board div i { display: block; height: 6px; margin-top: 4px; border-radius: 3px; background: #e2e8f0; overflow: hidden; } .pl-board u { display: block; height: 100%; border-radius: 3px; background: #cc4426; text-decoration: none; transition: width .45s; }
.pl-board strong { font-size: 18px; font-weight: 800; color: #232863; }
.pl-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 16px; } .pl-facts > div { padding: 16px; } .pl-facts b { display: block; font-size: 15px; font-weight: 800; } .pl-facts small { display: block; margin-top: 4px; font-size: 13.5px; line-height: 1.6; color: var(--mx-muted); }
@media (max-width: 1100px) { .pl-grid { grid-template-columns: minmax(0, 1fr); } .pl-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .pl-cards { grid-template-columns: minmax(0, 1fr); min-height: 0; } .pl-card:nth-child(n+2) { display: none; } .pl-toast { max-width: 100%; } .pl-top { flex-direction: column; min-height: 0; } }
@media (max-width: 480px) { .pl-facts { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .pl-live i, .pl-racers img, .pl-card.drop { animation: none; } .pl-card { transition: none; } }

/* the shield's river follows the reading direction */
html[dir="rtl"] .sh-flow { transform: scaleX(-1); }
html[dir="rtl"] .sh-end, html[dir="rtl"] .sh-wall svg { transform: scaleX(-1); }

/* Swarm: the real demo store in a scaled frame */
.sw-view { position: relative; overflow: hidden; height: clamp(440px, 46vw, 640px); background: #101112; }
.sw-view iframe { position: absolute; top: 0; left: 0; border: 0; transform-origin: 0 0; opacity: 0; pointer-events: none; transition: opacity .3s; }
.sw-view.ready iframe { opacity: 1; } .sw-view.live iframe { pointer-events: auto; }
@media (max-width: 620px) { .sw-view { height: 520px; } }

.sc-lv-seg { display: block; }
#scOpen { padding-inline: 12px; text-align: center; line-height: 1.35; white-space: normal; }
@media (max-width: 600px) {
  .sc-lv { padding: 10px; }
  #scOpen { padding-inline: 10px; font-size: 15px; }
}

/* Swarm: the frame's top bar */
.sw-state { display: inline-flex; align-items: center; gap: 8px; flex: none; font-size: 13px; font-weight: 700; color: #fff; white-space: nowrap; }
html[data-theme="light"] .sw-state { color: #0f172a; }
.sw-state i { width: 9px; height: 9px; flex: none; border-radius: 50%; background: #f06343; animation: sw-beat 1.2s ease-in-out infinite; } .sw-state.done i { background: #22c55e; animation: none; }
@keyframes sw-beat { 50% { opacity: .35; } }
.sw-tap { font-size: 12px; font-weight: 600; color: #ff8a6b; white-space: nowrap; } .sw-tap[hidden] { display: none; }
.sw-track { height: 2px; background: rgba(255,255,255,.1); } .sw-fill { display: block; width: 0; height: 100%; background: #f06343; transition: width .4s; }
@media (prefers-reduced-motion: reduce) { .sw-state i { animation: none; } }

/* Swarm: the bar is the examples section's bar (.sc-bar, .sc-pages); only the extras are here */
.sw-stage { position: relative; }
.sw-pages #swPages { display: flex; align-items: center; gap: 6px; flex: 1; min-width: 0; }
.sw-pages .sw-tap { flex: none; }
#swSound svg { width: 17px; height: 17px; } #swSound .x { display: none; } #swSound[aria-pressed="true"] { color: #ff8a6b; } #swSound[aria-pressed="false"] .w { display: none; } #swSound[aria-pressed="false"] .x { display: block; }
@media (pointer: coarse), (max-width: 900px) { #swSound, #swReplay, #swOpen { width: 44px; height: 44px; } .sw-pages .sw-tap { display: none; } }
@media (max-width: 620px) { .sw-state span { display: none; } }
/* voice card: the same layout as the real picker (SiCallPicker) and the WhatsApp voice tab */
.vo { display: grid; grid-template-columns: 300px minmax(0, 1fr); padding: 8px; border-radius: 24px; background: #fff; box-shadow: 0 40px 90px -44px rgba(6,7,29,.7); }
.vo-hero { position: relative; display: flex; flex-direction: column; min-height: 560px; padding: 20px; border-radius: 18px; color: #fff; overflow: hidden; background: radial-gradient(130% 70% at 50% 0, #6b3350, transparent 70%), radial-gradient(120% 140% at 0 0, #2c2f74, #181a50 55%, #0a0c2e); }
.vo-head { display: flex; align-items: center; gap: 10px; font-size: 14px; } .vo-head b { font-weight: 600; } .vo-tile { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: linear-gradient(135deg, #f06343, #f57853); } .vo-tile svg { width: 17px; height: 17px; }
.vo-mid { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 14px 0 8px; }
.vo-ring { position: relative; display: block; width: 152px; height: 152px; padding: 8px; border-radius: 50%; background: conic-gradient(from 210deg, #f06343, #ffb199, #f06343, #8a3a4c, #f06343); box-shadow: 0 0 0 16px rgba(255,255,255,.04), 0 0 46px rgba(240,99,67,.35); }
.vo-ring img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; object-position: top; border: 3px solid #0f1136; }
.vo.playing .vo-ring { animation: vo-pulse 1.4s ease-in-out infinite; } @keyframes vo-pulse { 50% { box-shadow: 0 0 0 22px rgba(255,255,255,.05), 0 0 66px rgba(240,99,67,.6); } }
.vo-name { display: flex; align-items: baseline; justify-content: center; gap: 8px; margin: 22px 0 0; font-size: 28px; font-weight: 700; line-height: 1.2; } .vo-name small { font-size: 15px; font-weight: 500; color: rgba(255,255,255,.55); }
.vo-role { margin: 4px 0 0; font-size: 14px; color: rgba(255,255,255,.72); }
.vo-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 12px; } .vo-pills span { display: inline-flex; align-items: center; gap: 7px; min-height: 28px; padding: 0 10px; border-radius: 999px; background: rgba(255,255,255,.08); color: rgba(255,255,255,.85); font-size: 12.5px; font-weight: 600; box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }
.vo-pills .ok { background: rgba(52,211,153,.1); color: #6ee7b7; box-shadow: inset 0 0 0 1px rgba(52,211,153,.25); } .vo-pills i { width: 7px; height: 7px; border-radius: 50%; background: #34d399; }
.vo-say { margin: 14px 0 0; font-size: 13.5px; line-height: 1.7; color: rgba(255,255,255,.82); }
.vo-wave { display: flex; align-items: center; justify-content: center; gap: 3px; height: 26px; margin-top: 8px; } .vo-wave i { width: 3px; height: 6px; border-radius: 2px; background: rgba(255,255,255,.28); }
.vo.playing .vo-wave i { background: #ff8a6b; animation: vo-wave 1s ease-in-out infinite; } @keyframes vo-wave { 50% { height: 24px; } }
.vo-bar { display: block; height: 3px; margin: 8px 0 10px; border-radius: 2px; background: rgba(255,255,255,.14); overflow: hidden; direction: ltr; } .vo-bar i { display: block; width: 0; height: 100%; background: #f06343; }
.vo-listen { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 48px; border: 0; border-radius: 14px; background: linear-gradient(135deg, #cc4426, #e4583a); color: #fff; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; box-shadow: 0 14px 30px -14px rgba(240,99,67,.9); } .vo-listen svg { width: 17px; height: 17px; }
.vo-miss { margin: 8px 0 0; font-size: 12.5px; color: #fecaca; text-align: center; } .vo-miss[hidden] { display: none; }
.vo-side { min-width: 0; padding: 12px 18px 14px; } .vo-h { margin: 16px 0 8px !important; font-size: 13.5px !important; font-weight: 600 !important; color: #1e293b; } .vo-h:first-child { margin-top: 6px !important; }
.vo-seg { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 2px; padding: 4px; border-radius: 14px; background: #f1f5f9; } .vo-seg button { min-height: 38px; padding: 0 8px; border: 0; border-radius: 11px; background: transparent; color: #64748b; font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; transition: background .15s, color .15s; } .vo-seg button[aria-pressed="true"] { background: #fff; color: #0f172a; box-shadow: 0 1px 3px rgba(17,19,68,.14); }
.vo-people { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; } .vo-people button { display: grid; justify-items: center; gap: 1px; padding: 9px 2px 7px; border: 0; border-radius: 16px; background: transparent; color: #0f172a; font: inherit; cursor: pointer; transition: background .15s; } .vo-people button:hover { background: #f8fafc; }
.vo-av { display: block; width: 58px; height: 58px; margin-bottom: 5px; padding: 3px; border-radius: 50%; box-shadow: 0 0 0 2px transparent; transition: box-shadow .2s; } .vo-av img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; object-position: top; }
.vo-people b { font-size: 14px; font-weight: 700; } .vo-people small { font-size: 12px; color: #64748b; } .vo-people button[aria-pressed="true"] .vo-av { box-shadow: 0 0 0 2px #f06343, 0 8px 20px -8px rgba(240,99,67,.6); } .vo-people button[aria-pressed="true"] small { color: #cc4426; }
.vo-dial { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; } .vo-dial button:first-child { grid-column: 1 / -1; } .vo-dial button { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 8px; border: 1px solid #e2e8f0; border-radius: 14px; background: #fff; color: #334155; font-family: "Cairo", sans-serif; font-size: 13.5px; font-weight: 700; cursor: pointer; transition: border-color .15s, background .15s; }
.vo-dial small { font-size: 12px; font-weight: 800; color: #64748b; } .vo-dial button:hover { border-color: #f06343; } .vo-dial button[aria-pressed="true"] { background: #fef0ec; border-color: #f06343; color: #7c2d12; box-shadow: 0 0 0 1px #f06343; } .vo-dial button[aria-pressed="true"] small { color: #cc4426; }
.vo-chips { display: flex; flex-wrap: wrap; gap: 6px; } .vo-chips button { min-height: 36px; padding: 0 12px; border: 1px solid #e2e8f0; border-radius: 999px; background: #fff; color: #334155; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; } .vo-chips button:hover { border-color: #f06343; } .vo-chips button[aria-pressed="true"] { background: #232863; border-color: #232863; color: #fff; }
@media (max-width: 1320px) { .ws-grid { grid-template-columns: minmax(0, 1fr); } .ws-link { grid-template-columns: 148px minmax(0, 1fr); justify-items: stretch; align-items: center; } }
@media (max-width: 760px) { .vo { grid-template-columns: minmax(0, 1fr); } .vo-hero { min-height: 0; } .vo-side { padding-inline: 8px; } .vo-av { width: 52px; height: 52px; } .ws-link { grid-template-columns: minmax(0, 1fr); justify-items: center; } }
@media (pointer: coarse) { .vo-seg button, .vo-chips button, .vo-dial button { min-height: 44px; } }
@media (prefers-reduced-motion: reduce) { .vo.playing .vo-ring { animation: none; } }

/* the numbers linked to the account: fills the column under the connection card */
.ws-nums { display: flex; flex-direction: column; justify-content: space-between; gap: 8px; padding: 12px 14px; border-radius: 20px; }
.ws-nums header { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.ws-nums h3 { margin: 0; font-size: 16px; font-weight: 800; color: #0f172a; } .ws-nums p { margin: 1px 0 0; font-size: 12px; line-height: 1.5; color: #586579; }
.ws-nums header > span { display: grid; place-items: center; flex: none; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 99px; background: #232863; color: #fff; font-size: 12px; font-weight: 800; }
#wsNums { display: grid; gap: 6px; }
.ws-row { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 4px 8px; border-radius: 12px; background: #f5f6fb; }
.ws-row img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; background: #232863; }
.ws-row span { min-width: 0; } .ws-row b { display: block; overflow: hidden; font-size: 13px; font-weight: 800; line-height: 1.35; color: #0f172a; white-space: nowrap; text-overflow: ellipsis; }
.ws-row small { display: block; font-size: 12px; font-weight: 600; line-height: 1.35; color: #586579; } html[dir="rtl"] .ws-row small { text-align: right; }
.ws-st { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 99px; background: #dcfce7; color: #166534; font-size: 12px; font-style: normal; font-weight: 700; white-space: nowrap; transition: background-color .25s, color .25s; }
.ws-st i { width: 6px; height: 6px; border-radius: 50%; background: #16a34a; transition: background-color .25s; } .ws-st.wait { background: #fef3c7; color: #92400e; } .ws-st.wait i { background: #d97706; }
