:root { color: #f4f1ff; background: #12111d; font-family: Inter, ui-sans-serif, system-ui, -apple-system, sans-serif; }
* { box-sizing: border-box; }
body { min-height: 100vh; margin: 0; display: grid; place-items: center; overflow: hidden; padding: 24px; background: radial-gradient(circle at 15% 15%, #30254f 0, transparent 31%), radial-gradient(circle at 84% 78%, #17404d 0, transparent 35%), #12111d; }
.orb { position: fixed; z-index: -1; border-radius: 50%; filter: blur(2px); opacity: .65; }
.orb-one { width: 32rem; height: 32rem; top: -15rem; right: -8rem; background: #805ad5; }
.orb-two { width: 25rem; height: 25rem; bottom: -12rem; left: -6rem; background: #119da4; }
.chat { width: min(820px, 100%); height: min(760px, calc(100vh - 48px)); min-height: 590px; display: flex; flex-direction: column; overflow: hidden; border: 1px solid #ffffff2b; border-radius: 28px; background: #1b1a2dcc; box-shadow: 0 24px 80px #03020b80, inset 0 1px #ffffff1f; backdrop-filter: blur(24px); }
header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; border-bottom: 1px solid #ffffff18; background: #ffffff08; }
.brand { display: flex; align-items: center; gap: 12px; } .brand-mark { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 13px; background: linear-gradient(145deg, #c9a5ff, #6f61ff); box-shadow: 0 6px 20px #8d75ff80; color: #161227; font-weight: 900; }
h1, p { margin: 0; } h1 { font-size: 1.35rem; letter-spacing: -.03em; } .eyebrow { color: #d7c8ff; font-size: .68rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.status { display: flex; align-items: center; gap: 7px; color: #dccdff; font-size: .8rem; white-space: nowrap; } .status::before { width: 7px; height: 7px; border-radius: 50%; background: #f6c453; content: ''; box-shadow: 0 0 10px #f6c453; } .status.ready { color: #c5f8d8; } .status.ready::before { background: #72e7a4; box-shadow: 0 0 10px #72e7a4; }
#messages { flex: 1; display: flex; flex-direction: column; gap: 14px; overflow-y: auto; padding: 28px; scrollbar-color: #bfa9ef55 transparent; }
.message { max-width: min(82%, 610px); padding: 13px 16px; border: 1px solid #ffffff14; border-radius: 18px; box-shadow: 0 8px 20px #0907131c; line-height: 1.5; white-space: pre-wrap; animation: appear .22s ease-out; }
.bot { align-self: flex-start; border-top-left-radius: 5px; background: #ffffff12; } .user { align-self: flex-end; border-top-right-radius: 5px; background: linear-gradient(135deg, #8065e6, #4f8fd9); }
form { display: flex; align-items: flex-end; gap: 10px; padding: 16px 18px 18px; border-top: 1px solid #ffffff18; background: #0f0e1d45; }
.input-wrap { position: relative; flex: 1; } textarea { width: 100%; min-height: 50px; max-height: 160px; resize: none; border: 1px solid #ffffff24; border-radius: 17px; outline: none; background: #0908174d; color: inherit; padding: 13px 16px 28px; font: inherit; line-height: 1.35; transition: border-color .2s, background .2s; } textarea:focus { border-color: #ba9bff; background: #0b0a1a80; box-shadow: 0 0 0 3px #9d7cff24; } textarea::placeholder { color: #c0b8d084; }
.hint { position: absolute; bottom: 8px; left: 16px; color: #c0b8d09c; font-size: .67rem; pointer-events: none; }
button { display: grid; width: 50px; height: 50px; flex: 0 0 50px; place-items: center; border: 0; border-radius: 17px; background: linear-gradient(145deg, #d4beff, #8375ff); box-shadow: 0 7px 18px #7656db75; color: #171225; cursor: pointer; font-size: 1.55rem; font-weight: 800; transition: transform .18s, filter .18s; } button:hover { filter: brightness(1.08); transform: translateY(-1px); } button:disabled { cursor: wait; filter: grayscale(.5); opacity: .65; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
@keyframes appear { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 600px) { body { padding: 0; } .chat { width: 100%; height: 100vh; min-height: 100vh; border: 0; border-radius: 0; } header { padding: 16px 18px; } #messages { padding: 22px 16px; } .message { max-width: 90%; } .hint { display: none; } textarea { padding-bottom: 13px; } form { padding: 12px; } }
