/* Additional demo layouts: Google reviews, social, omnichannel, GenAI, agentic, multi-agent. */
.sim-body--split { grid-template-columns: minmax(0, 1.2fr) 28px minmax(0, 0.95fr); }
.sim-body--single { display: flex; flex-direction: column; gap: 12px; }
.sim-body--social { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 16px; }
.sim-body--omni { grid-template-columns: minmax(0, 0.8fr) 56px 150px minmax(0, 1.25fr); }
@keyframes spin { to { transform: rotate(360deg); } }

/* Shared chips / outcome line */
.chip-ai { font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 999px; color: var(--accent-2); background: rgba(25, 211, 255, 0.1); border: 1px solid rgba(25, 211, 255, 0.35); }
.chip-ai.warn { color: var(--warn); background: rgba(255, 181, 71, 0.1); border-color: rgba(255, 181, 71, 0.4); }
.rv-out { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; color: var(--good); }
.rv-out svg { width: 14px; height: 14px; flex: none; }
.rv-out.warn { color: var(--warn); }

/* Work rows: spinner, then tick */
.work-row { display: flex; gap: 10px; align-items: flex-start; font-size: 12px; line-height: 1.4; }
.work-row small { display: block; color: var(--accent-2); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.work-ico { flex: none; width: 20px; height: 20px; }
.work-ico .spin { display: block; width: 20px; height: 20px; border-radius: 50%; border: 2px solid rgba(25, 211, 255, 0.25); border-top-color: var(--accent-2); animation: spin 0.8s linear infinite; }
.work-ico .tick { display: none; width: 20px; height: 20px; border-radius: 50%; place-items: center; background: rgba(47, 216, 164, 0.15); color: var(--good); border: 1px solid rgba(47, 216, 164, 0.5); }
.work-ico .tick svg { width: 11px; height: 11px; }

/* ---------- Google reviews ---------- */
.rv-feed { display: flex; flex-direction: column; gap: 10px; }
.rv-g { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: #fff; color: #4285f4; font-size: 11px; font-weight: 800; margin-right: 6px; flex: none; }
.rv-feed .pane-title { justify-content: flex-start; margin-bottom: 0; }
.rv-feed .pane-title .pane-state { margin-left: auto; }
.rv { border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; background: rgba(255, 255, 255, 0.03); display: flex; flex-direction: column; gap: 6px; }
.rv-head { display: flex; gap: 8px; align-items: center; font-size: 12px; }
.rv-head small { color: var(--muted); margin-left: auto; font-size: 10.5px; }
.rv-stars { color: #ffc84a; letter-spacing: 1px; }
.rv-stars .off { color: rgba(255, 255, 255, 0.18); }
.rv-text { font-size: 12.5px; color: var(--text-2); }
.rv-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.rv-reply { font-size: 12px; line-height: 1.45; border-left: 2px solid var(--accent); padding: 6px 10px; background: rgba(47, 123, 255, 0.12); border-radius: 0 8px 8px 0; }
.rv-reply .who { display: block; font-size: 10px; opacity: 0.7; font-weight: 600; margin-bottom: 2px; }

/* ---------- Social calendar + phone ---------- */
.cal { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cal-day { border: 1px solid var(--border); border-radius: 10px; padding: 7px 10px; display: flex; flex-direction: column; gap: 1px; font-size: 11.5px; background: rgba(255, 255, 255, 0.03); }
.cal-day small { color: var(--accent-2); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.cal-day b { font-weight: 600; line-height: 1.3; }
.cal-fmt { font-size: 10px; color: var(--muted); }
.phone { border: 1px solid var(--border-strong); border-radius: 22px; padding: 12px; background: #030814; display: flex; flex-direction: column; gap: 8px; width: 100%; max-width: 300px; justify-self: center; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5); }
.phone-head { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.avatar-ai.sm { width: 24px; height: 24px; font-size: 10px; }
.ig-dot { margin-left: auto; font-size: 10px; color: var(--muted); }
.phone-img { position: relative; overflow: hidden; aspect-ratio: 16 / 10; border-radius: 12px; display: grid; place-items: center; font-weight: 800; font-size: 16px; letter-spacing: 0.04em; text-align: center; padding: 10px; background: linear-gradient(135deg, #0b2a6b, #2f7bff 55%, #19d3ff); }
.phone-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.25) 50%, transparent 70%); animation: scan 3.5s ease-in-out infinite; }
.phone-cap { font-size: 12px; line-height: 1.45; min-height: 3em; }
.phone-tags span { font-size: 10.5px; color: #7fb4ff; margin-right: 6px; }
.phone-cmt { font-size: 11.5px; background: rgba(255, 255, 255, 0.06); padding: 6px 9px; border-radius: 10px; line-height: 1.4; }
.phone-cmt.ai { background: rgba(47, 123, 255, 0.2); }
.phone-cmt b { margin-right: 4px; }

/* ---------- Omnichannel to CRM ---------- */
.omni-ch { display: flex; flex-direction: column; justify-content: space-around; }
.omni-src { font-size: 11.5px; font-weight: 600; padding: 7px 10px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.omni-lines { width: 100%; height: 100%; overflow: visible; }
.omni-base path { stroke: var(--border-strong); stroke-width: 1.5; fill: none; }
.omni-live path { stroke: var(--accent-2); stroke-width: 2.2; fill: none; filter: drop-shadow(0 0 4px var(--accent-2)); }
.omni-hub { position: relative; display: grid; place-items: center; }
.hub-ring { position: absolute; width: 136px; height: 136px; border-radius: 50%; border: 1px dashed rgba(25, 211, 255, 0.5); animation: spin 14s linear infinite; }
.hub-core { width: 112px; height: 112px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 2px; font-size: 12px; padding: 0 10px; background: radial-gradient(circle at 30% 30%, #2f7bff, #0b1f4d); box-shadow: 0 0 40px var(--accent-glow); }
.hub-core svg { width: 20px; height: 20px; }
.hub-core small { font-size: 9px; opacity: 0.8; line-height: 1.2; }
.omni-steps { margin-left: 14px; display: flex; flex-direction: column; gap: 9px; }

/* ---------- Generative AI ---------- */
.prompt { display: flex; flex-direction: column; gap: 4px; }
.prompt-who { font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 700; }
.prompt-box { border: 1px solid var(--border-strong); border-radius: 12px; padding: 10px 12px; font-size: 13px; background: rgba(0, 0, 0, 0.3); min-height: 2.6em; }
.gen-state { font-size: 12px; color: var(--accent-2); display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.gen-state .spark { display: inline-flex; }
.gen-state svg { width: 16px; height: 16px; }
.gen-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.gen-card { border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; min-height: 130px; background: linear-gradient(160deg, rgba(47, 123, 255, 0.14), rgba(255, 255, 255, 0.02)); }
.gen-card small { color: var(--accent-2); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.gen-card p { font-size: 12px; line-height: 1.45; margin-top: 6px; }

/* ---------- Agentic AI ---------- */
.goal { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; margin-bottom: 12px; font-size: 12.5px; font-weight: 600; background: rgba(255, 181, 71, 0.08); border: 1px solid rgba(255, 181, 71, 0.35); }
.goal > svg { width: 20px; height: 20px; color: var(--warn); flex: none; }
.goal small { display: block; font-size: 10px; color: var(--warn); text-transform: uppercase; letter-spacing: 0.06em; }
.agent-steps { display: flex; flex-direction: column; gap: 9px; }
.kind { font-size: 9.5px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-2); margin-right: 6px; }
.tool { font-size: 9.5px; padding: 1px 6px; border-radius: 6px; background: rgba(155, 140, 255, 0.15); color: #b9adff; border: 1px solid rgba(155, 140, 255, 0.4); }
.work-row small.res { color: var(--good); text-transform: none; letter-spacing: 0; font-weight: 600; font-size: 10.5px; }
.loop { font-size: 10px; color: var(--muted); display: inline-flex; gap: 4px; align-items: center; font-weight: 600; }
.loop svg { width: 12px; height: 12px; }

/* ---------- Multi-agent AI ---------- */
.ma-wrap { display: flex; flex-direction: column; gap: 10px; }
.ma-req { font-size: 12px; padding: 8px 10px; border-radius: 10px; background: rgba(255, 255, 255, 0.06); }
.ma-req small { display: block; font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.ma-net { position: relative; height: 250px; }
.ma-net > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ma-base { stroke: var(--border-strong); stroke-width: 1.5; stroke-dasharray: 4 4; }
.ma-live { stroke: var(--accent-2); stroke-width: 2.5; filter: drop-shadow(0 0 4px var(--accent-2)); }
.ma-pos { position: absolute; transform: translate(-50%, -50%); }
.ma-node { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 10px; border-radius: 12px; border: 1px solid var(--border-strong); background: #071533; font-size: 11px; text-align: center; min-width: 96px; }
.ma-node svg { width: 18px; height: 18px; color: var(--accent-2); }
.ma-orch { background: radial-gradient(circle at 30% 30%, #2f7bff, #0b1f4d); border-color: transparent; padding: 12px 14px; }
.ma-orch svg { color: #fff; }
.ma-log { display: flex; flex-direction: column; gap: 9px; }
.ma-entry { font-size: 11.5px; border-left: 2px solid var(--accent); padding: 3px 0 3px 10px; display: flex; flex-direction: column; gap: 2px; }
.ma-entry b { color: var(--accent-2); font-size: 11px; }
.ma-entry small { display: flex; gap: 4px; align-items: center; color: var(--good); font-size: 10.5px; font-weight: 600; }
.ma-entry small svg { width: 11px; height: 11px; }

/* ---------- WhatsApp → AI call → CRM ---------- */
.sim-body--callflow { grid-template-columns: minmax(0, 1fr) 26px minmax(0, 1.1fr) 26px minmax(0, 1fr); }
.cf-wa, .cf-call, .cf-crm { display: flex; flex-direction: column; gap: 10px; }
.cf-ico { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; margin-right: 6px; background: rgba(25, 211, 255, 0.15); color: var(--accent-2); }
.cf-ico.wa { background: rgba(37, 211, 102, 0.18); color: #25d366; }
.cf-ico svg { width: 12px; height: 12px; }
.cf-wa .pane-title, .cf-call .pane-title, .cf-crm .pane-title { justify-content: flex-start; margin-bottom: 0; }
.cf-call .pane-title > span:last-child, .cf-crm .pane-title .pane-state { margin-left: auto; }
.cf-lead { display: flex; gap: 6px; align-items: center; font-size: 11px; font-weight: 600; padding: 5px 9px; border-radius: 8px; color: var(--accent-2); background: rgba(25, 211, 255, 0.08); border: 1px dashed rgba(25, 211, 255, 0.4); }
.cf-lead svg { width: 13px; height: 13px; flex: none; }
.cf-msg { max-width: 100%; font-size: 12px; line-height: 1.45; }
.cf-ticks { display: block; text-align: right; font-size: 10px; opacity: 0.8; margin-top: 3px; }
.cf-wait { font-size: 11.5px; color: var(--text-2); display: flex; flex-direction: column; gap: 6px; }
.cf-wait-row { display: flex; gap: 6px; align-items: center; }
.cf-wait-row svg { width: 14px; height: 14px; color: var(--warn); }
.cf-bar { height: 4px; border-radius: 4px; background: var(--border); overflow: hidden; }
.cf-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--warn), #ff7a45); transform-origin: left; }
.cf-phone { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 12px; background: rgba(255, 255, 255, 0.04); }
.cf-ringer { position: relative; width: 38px; height: 38px; flex: none; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 30% 30%, #2f7bff, #0b1f4d); }
.cf-ringer svg { width: 18px; height: 18px; position: relative; z-index: 1; }
.cf-ringer span { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--accent-2); animation: ring 1.6s ease-out infinite; }
.cf-ringer span:nth-child(2) { animation-delay: 0.8s; }
@keyframes ring { from { transform: scale(1); opacity: 0.8; } to { transform: scale(1.8); opacity: 0; } }
.cf-wave { flex: 1; display: flex; align-items: center; gap: 3px; height: 28px; }
.cf-wave i { flex: 1; height: 30%; border-radius: 2px; background: var(--accent-2); animation: wave 0.9s ease-in-out infinite alternate; }
.cf-wave i:nth-child(3n) { animation-delay: 0.2s; }
.cf-wave i:nth-child(3n + 1) { animation-delay: 0.45s; }
.cf-wave i:nth-child(4n) { animation-delay: 0.65s; }
@keyframes wave { to { height: 100%; } }
.cf-transcript { display: flex; flex-direction: column; gap: 6px; font-size: 11.5px; line-height: 1.4; }
.cf-line { padding: 5px 9px; border-radius: 9px; }
.cf-line b { display: block; font-size: 9.5px; text-transform: uppercase; letter-spacing: 0.06em; opacity: 0.75; }
.cf-line.ai { background: rgba(47, 123, 255, 0.2); }
.cf-line.in { background: rgba(255, 255, 255, 0.06); }
.cf-rows { display: flex; flex-direction: column; gap: 6px; font-size: 11.5px; }
.cf-row { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px dashed var(--border); padding-bottom: 5px; }
.cf-row > span { color: var(--muted); flex: none; }
.cf-row b { font-weight: 600; text-align: right; }
.cf-row s { color: var(--muted); font-weight: 400; margin-right: 4px; }
.cf-row em { font-style: normal; color: var(--good); }

@media (max-width: 900px) {
  .sim-body--callflow { grid-template-columns: 1fr; gap: 12px; }
  .sim-body--callflow .sim-link { display: none; }
  .sim-body--split, .sim-body--social, .sim-body--omni { grid-template-columns: 1fr; gap: 12px; }
  .sim-body--split .sim-link, .omni-lines { display: none; }
  .omni-steps { margin-left: 0; }
  .omni-hub { min-height: 150px; }
  .gen-grid { grid-template-columns: 1fr; }
}
