.nqa { --nqa-night: #0B1020; --nqa-amber: #FFB020; --nqa-paper: #F5F3EE; --nqa-stone: #DAD6CB; font-family: 'IBM Plex Sans Arabic', 'Space Grotesk', system-ui, sans-serif; }
.nqa-launch { position: fixed; inset-inline-start: 18px; bottom: 18px; z-index: 9990; width: 66px; height: 66px; padding: 4px; border: 0; border-radius: 50%; background: var(--nqa-night); cursor: pointer; box-shadow: 0 10px 28px -8px rgba(11,16,32,.55); transition: transform .2s; }
.nqa-launch:hover { transform: scale(1.06); }
.nqa-launch:focus-visible, .nqa button:focus-visible, .nqa input:focus-visible { outline: 3px solid var(--nqa-amber); outline-offset: 2px; }
.nqa-launch svg { width: 100%; height: 100%; }
.nqa-panel { position: fixed; inset-inline-start: 18px; bottom: 96px; z-index: 9991; width: min(380px, calc(100vw - 24px)); max-height: min(560px, calc(100vh - 120px)); display: flex; flex-direction: column; background: var(--nqa-paper); color: var(--nqa-night); border: 1px solid var(--nqa-stone); border-radius: 18px; box-shadow: 0 24px 60px -18px rgba(11,16,32,.55); overflow: hidden; }
.nqa-panel[hidden] { display: none; }
.nqa-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 14px; background: var(--nqa-night); color: #fff; }
.nqa-head strong { font-size: .98rem; }
.nqa-x { background: none; border: 0; color: #fff; font-size: 1.4rem; cursor: pointer; line-height: 1; }
.nqa-log { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.nqa-m { max-width: 86%; padding: 10px 13px; border-radius: 14px; font-size: .94rem; line-height: 1.65; white-space: pre-wrap; }
.nqa-m.bot { align-self: flex-start; background: #fff; border: 1px solid var(--nqa-stone); }
.nqa-m.me { align-self: flex-end; background: var(--nqa-amber); }
.nqa-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--nqa-stone); background: #fff; }
.nqa-form input { flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid var(--nqa-stone); border-radius: 10px; font: inherit; }
.nqa-btn { padding: 10px 14px; border: 0; border-radius: 10px; background: var(--nqa-night); color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.nqa-foot { display: flex; justify-content: space-between; gap: 8px; padding: 6px 12px 10px; font-size: .74rem; color: #5a6075; background: #fff; }
.nqa-foot a { color: inherit; }
.nqa-lead { display: grid; gap: 8px; padding: 12px; background: #fff; border: 1px solid var(--nqa-stone); border-radius: 14px; }
.nqa-lead input[type=text], .nqa-lead input[type=email], .nqa-lead input[type=tel] { padding: 9px 11px; border: 1px solid var(--nqa-stone); border-radius: 9px; font: inherit; }
.nqa-lead label { display: flex; gap: 8px; font-size: .8rem; align-items: flex-start; }
.nqa-hp { position: absolute; left: -9999px; opacity: 0; height: 0; }
@media (prefers-reduced-motion: reduce) { .nqa-launch { transition: none; } }
.nqa-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.nqa-chip { padding: 8px 12px; border: 1px solid var(--nqa-night); border-radius: 999px; background: #fff; font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; }
.nqa-chip:hover { background: var(--nqa-amber); }
.nqa-aud { background: #fff; border: 1px solid var(--nqa-stone); border-radius: 14px; padding: 12px; align-self: stretch; }
.nqa-aud h4 { margin: 0 0 4px; font-size: .95rem; } .nqa-aud .sum { margin: 0 0 10px; font-size: .82rem; color: #5a6075; }
.nqa-aud ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.nqa-aud li { display: flex; gap: 8px; font-size: .84rem; line-height: 1.55; opacity: 0; transform: translateY(6px); animation: nqaIn .35s forwards; }
.nqa-aud .d { flex: none; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: .72rem; font-weight: 700; color: #fff; margin-top: 2px; }
.nqa-aud .ok .d { background: #0E8F6F; } .nqa-aud .warn .d { background: #C98A14; } .nqa-aud .bad .d { background: #B42318; }
.nqa-dots::after { content: ''; display: inline-block; width: 1.2em; text-align: start; animation: nqaDots 1.2s steps(4) infinite; }
@keyframes nqaIn { to { opacity: 1; transform: none; } }
@keyframes nqaDots { 0% { content: ''; } 25% { content: '.'; } 50% { content: '..'; } 75% { content: '...'; } }
@media (prefers-reduced-motion: reduce) { .nqa-aud li { animation: none; opacity: 1; transform: none; } .nqa-dots::after { animation: none; content: '…'; } }
@media (max-width: 480px) { .nqa-panel { inset-inline: 12px; width: auto; bottom: 92px; } }
