/* Website assistant: floating "Contact us" badge + modal chat (dark intelligence theme). No inline styles (strict CSP). */
.chat-badge { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: inline-flex; align-items: center; gap: 9px;
  background: linear-gradient(135deg, #1d4ed8, #4f46e5); color: #fff; border: 1px solid rgba(165,180,252,.55); border-radius: 999px; padding: 11px 18px;
  font: 600 14px/1 var(--font); letter-spacing: .02em; box-shadow: 0 0 0 1px rgba(5,10,23,.6), 0 0 22px rgba(59,130,246,.45), 0 10px 26px rgba(0,0,0,.45); cursor: pointer; transition: box-shadow .15s, transform .15s; }
.chat-badge:hover { box-shadow: 0 0 0 1px rgba(5,10,23,.6), 0 0 30px rgba(99,102,241,.7), 0 10px 26px rgba(0,0,0,.45); transform: translateY(-1px); }
.chat-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: #67e8f9; box-shadow: 0 0 8px #22d3ee; }
.chat-overlay { position: fixed; inset: 0; z-index: 70; background: rgba(2,6,16,.6); backdrop-filter: blur(2px); display: none; }
.chat-overlay.open { display: block; }
.chat-modal { position: fixed; right: 20px; bottom: 20px; z-index: 80; width: min(400px, calc(100vw - 24px));
  height: min(600px, calc(100vh - 40px)); background: #0a1330; border-radius: 16px; color: var(--ink);
  box-shadow: 0 0 0 1px rgba(125,160,235,.3), 0 0 40px rgba(59,130,246,.25), 0 24px 60px rgba(0,0,0,.6);
  display: none; flex-direction: column; overflow: hidden; }
.chat-modal.open { display: flex; }
.chat-head { position: relative; display: flex; align-items: center; justify-content: space-between; padding: 15px 16px; background: linear-gradient(135deg, #1e3a8a, #312e81); color: #fff; }
.chat-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, #22d3ee, #3b82f6, #8b5cf6); box-shadow: 0 0 8px rgba(59,130,246,.8); }
.chat-head strong { display: block; font-size: 16px; font-family: var(--display); text-transform: uppercase; letter-spacing: .08em; }
.chat-head small { color: #dbe4ff; font-size: 12px; }
.chat-close { background: transparent; border: 1px solid transparent; border-radius: 8px; color: #fff; font-size: 22px; line-height: 1; cursor: pointer; padding: 4px 8px; }
.chat-close:hover { border-color: rgba(255,255,255,.4); }
.chat-log { flex: 1; overflow-y: auto; padding: 14px; background: #060d22; display: flex; flex-direction: column; gap: 10px; }
.chat-msg { max-width: 85%; padding: 9px 12px; border-radius: 12px; font-size: 14px; line-height: 1.45; white-space: pre-wrap; word-wrap: break-word; }
.chat-msg.visitor { align-self: flex-end; background: linear-gradient(135deg, #2563eb, #1d4ed8); color: #fff; border-bottom-right-radius: 4px; }
.chat-msg.assistant { align-self: flex-start; background: #0f1b3d; color: var(--ink-2); border: 1px solid var(--line-2); border-bottom-left-radius: 4px; }
.chat-msg.typing { color: var(--muted); font-style: italic; }
.chat-defer { align-self: stretch; background: rgba(59,130,246,.1); border: 1px solid rgba(96,165,250,.45); border-radius: 10px; padding: 10px 12px; font-size: 13px; color: var(--ink-2); }
.chat-defer a { font-weight: 600; }
.chat-lead { align-self: stretch; background: #0c1734; border: 1px solid var(--line-2); border-radius: 10px; padding: 12px; font-size: 13px; display: grid; gap: 8px; color: var(--ink-2); }
.chat-lead label { display: grid; gap: 3px; font-weight: 600; color: var(--ink-2); margin: 0; }
.chat-lead input, .chat-lead textarea { font: 14px var(--font); padding: 7px 9px; border: 1px solid var(--line-2); border-radius: 8px; width: 100%; background: #071029; color: var(--ink); }
.chat-lead textarea { min-height: 60px; resize: vertical; }
.chat-lead .hp { position: absolute; left: -9999px; }
.chat-lead button { justify-self: start; }
.chat-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); background: #0a1330; }
.chat-form textarea { flex: 1; resize: none; height: 42px; min-height: 42px; font: 14px var(--font); padding: 10px; border: 1px solid var(--line-2); border-radius: 10px; background: #071029; color: var(--ink); }
.chat-form textarea::placeholder { color: #7f8db0; }
.chat-form textarea:focus { outline: none; border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59,130,246,.3); }
.chat-form button { border: 1px solid rgba(147,197,253,.35); background: linear-gradient(135deg, #2563eb, #1d4ed8); color: #fff; border-radius: 10px; padding: 0 14px; font-weight: 600; cursor: pointer; }
.chat-form button:disabled { opacity: .5; cursor: default; }
.chat-foot { font-size: 11px; color: var(--muted); padding: 0 12px 10px; background: #0a1330; }
.chat-foot a { color: var(--muted); text-decoration: underline; }
@media (max-width: 520px) { .chat-modal { right: 12px; bottom: 12px; } .chat-badge { right: 12px; bottom: 12px; } }
