:root{
  --fp-navy:#081b31;
  --fp-navy-2:#0c2747;
  --fp-red:#e63946;
  --fp-amber:#ffb703;
  --fp-bg:#07111f;
  --fp-panel:#0e2138;
  --fp-text:#f7fafc;
  --fp-muted:#a9b6c8;
  --fp-border:rgba(255,255,255,.10);
  --fp-shadow:0 24px 70px rgba(0,0,0,.38);
}
*{box-sizing:border-box}
html,body{margin:0;min-height:100%;font-family:Tahoma,Arial,sans-serif;background:
radial-gradient(circle at 20% 20%,rgba(230,57,70,.16),transparent 28%),
linear-gradient(135deg,#06101c,#0b1d32);color:var(--fp-text)}
button,textarea{font:inherit}
.demo-page{min-height:100vh;display:grid;place-items:center;padding:24px}
.hero{max-width:780px;text-align:center;padding:54px 26px;border:1px solid var(--fp-border);border-radius:30px;background:rgba(12,39,71,.58);backdrop-filter:blur(16px);box-shadow:var(--fp-shadow)}
.brand-mark{width:86px;height:86px;display:grid;place-items:center;margin:0 auto 18px;border-radius:50%;font-size:42px;background:linear-gradient(145deg,var(--fp-red),#8b1420);box-shadow:0 0 0 8px rgba(230,57,70,.12)}
.eyebrow{color:var(--fp-amber);letter-spacing:3px;text-transform:uppercase;font-weight:700}
.hero h1{font-size:clamp(32px,6vw,64px);margin:8px 0 14px}
.hero p{color:#d6dfeb;font-size:18px;line-height:1.8}
.primary-button{border:0;border-radius:14px;padding:14px 24px;background:linear-gradient(135deg,var(--fp-red),#b91f2c);color:#fff;font-weight:700;cursor:pointer}
.fp-launcher{position:fixed;left:22px;bottom:22px;width:66px;height:66px;border:0;border-radius:50%;background:linear-gradient(145deg,var(--fp-red),#991923);color:#fff;cursor:pointer;box-shadow:0 15px 35px rgba(230,57,70,.42);z-index:9998}
.launcher-icon{font-size:29px;position:relative;z-index:2}
.launcher-pulse{position:absolute;inset:-8px;border:2px solid rgba(230,57,70,.42);border-radius:50%;animation:pulse 2s infinite}
@keyframes pulse{0%{transform:scale(.8);opacity:1}100%{transform:scale(1.35);opacity:0}}
.fp-chat{position:fixed;left:22px;bottom:100px;width:min(390px,calc(100vw - 24px));height:min(650px,calc(100vh - 125px));display:flex;flex-direction:column;overflow:hidden;border:1px solid var(--fp-border);border-radius:22px;background:linear-gradient(180deg,#102945,#091a2d);box-shadow:var(--fp-shadow);z-index:9999;opacity:0;transform:translateY(18px) scale(.97);pointer-events:none;transition:.22s ease}
.fp-chat.open{opacity:1;transform:none;pointer-events:auto}
.fp-chat__header{display:flex;align-items:center;gap:12px;padding:16px;background:linear-gradient(135deg,var(--fp-red),#9f1b26)}
.fp-avatar,.message-avatar{display:grid;place-items:center;flex:0 0 auto;border-radius:50%;background:#fff;color:#111}
.fp-avatar{width:43px;height:43px;font-size:22px}
.fp-chat__header h2{margin:0;font-size:17px}
.fp-chat__header p{margin:5px 0 0;font-size:12px;color:#ffecee}
.status-dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:#38d996;margin-left:5px}
.icon-button{margin-right:auto;border:0;background:rgba(255,255,255,.13);color:#fff;width:34px;height:34px;border-radius:10px;font-size:23px;cursor:pointer}
.fp-quick-actions{display:flex;gap:7px;overflow-x:auto;padding:10px;border-bottom:1px solid var(--fp-border);scrollbar-width:none}
.fp-quick-actions button{white-space:nowrap;border:1px solid rgba(255,183,3,.35);background:rgba(255,183,3,.08);color:#ffcf55;border-radius:999px;padding:8px 11px;font-size:12px;cursor:pointer}
.fp-chat__messages{flex:1;overflow-y:auto;padding:16px;scroll-behavior:smooth}
.message{display:flex;gap:9px;margin:0 0 15px;align-items:flex-end}
.message.user{justify-content:flex-start;flex-direction:row-reverse}
.message-avatar{width:30px;height:30px;font-size:14px}
.message-bubble{max-width:82%;padding:11px 13px;border-radius:16px 16px 16px 4px;background:#163553;color:#edf5ff;line-height:1.7;font-size:14px;white-space:pre-wrap;word-break:break-word;border:1px solid var(--fp-border)}
.message.user .message-bubble{background:linear-gradient(135deg,var(--fp-red),#b91f2c);border-radius:16px 16px 4px 16px;color:#fff}
.message.error .message-bubble{background:rgba(255,183,3,.12);border-color:rgba(255,183,3,.35);color:#ffe39b}
.typing{display:flex;align-items:center;gap:5px;padding:0 17px 9px;color:var(--fp-muted)}
.typing span{width:7px;height:7px;border-radius:50%;background:#dfe8f4;animation:bounce 1.2s infinite}
.typing span:nth-child(2){animation-delay:.15s}.typing span:nth-child(3){animation-delay:.3s}
.typing small{margin-right:5px}
@keyframes bounce{0%,60%,100%{transform:translateY(0)}30%{transform:translateY(-5px)}}
.fp-chat__form{display:flex;gap:9px;align-items:flex-end;padding:11px;border-top:1px solid var(--fp-border);background:rgba(3,12,22,.42)}
.fp-chat__form textarea{flex:1;resize:none;max-height:110px;border:1px solid var(--fp-border);border-radius:14px;background:#071727;color:#fff;padding:12px;outline:none;line-height:1.5}
.fp-chat__form textarea:focus{border-color:rgba(230,57,70,.75)}
.fp-chat__form button{width:45px;height:45px;border:0;border-radius:13px;background:var(--fp-red);color:#fff;cursor:pointer;font-size:18px}
.fp-chat__form button:disabled{opacity:.45;cursor:not-allowed}
.fp-chat__footer{text-align:center;padding:8px;color:#8696aa;font-size:10px}
@media(max-width:540px){
  .fp-launcher{left:14px;bottom:14px}
  .fp-chat{left:8px;bottom:8px;width:calc(100vw - 16px);height:calc(100vh - 16px);border-radius:18px}
}
