@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Vazirmatn:wght@400;500;600;700;800&display=swap");
:root{--bg:#07090d;--panel:#0d1016;--panel2:#11161e;--line:#222936;--text:#f6f7fb;--muted:#8e98a9;--gold:#f59e0b;--gold2:#ffd37b;--green:#22c55e}
*{box-sizing:border-box}html,body{margin:0;height:100%;background:var(--bg);color:var(--text)}body{font-family:Vazirmatn,Inter,sans-serif;overflow:hidden}.noise{position:fixed;inset:0;pointer-events:none;opacity:.025;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.25'/%3E%3C/svg%3E")}
button,textarea{font:inherit}.app{display:flex;height:100dvh}
.sidebar{width:290px;flex:none;background:linear-gradient(180deg,#0c0f15,#080a0e);border-left:1px solid var(--line);display:flex;flex-direction:column;padding:18px}
.brand{display:flex;align-items:center;gap:11px;padding:4px 2px 18px}.brand img{width:48px;height:48px}.brand b{display:block;font-size:18px}.brand span{display:block;font:700 9px Inter;letter-spacing:1.5px;color:var(--gold);margin-top:2px}
.newChat{border:1px solid #5a4217;background:linear-gradient(180deg,#261d0d,#181208);color:var(--gold2);padding:13px 14px;border-radius:14px;font-weight:800;text-align:right}.newChat span{font-size:19px;vertical-align:-2px}.historyLabel{font-size:11px;color:#647084;margin:23px 4px 10px}.conversationList{overflow:auto;display:grid;gap:7px;padding-right:1px}.conversationList::-webkit-scrollbar{width:5px}.conversationList::-webkit-scrollbar-thumb{background:#252c38;border-radius:10px}
.conv{width:100%;display:flex;align-items:flex-start;gap:9px;text-align:right;color:#dde3ec;background:transparent;border:1px solid transparent;border-radius:12px;padding:11px}.conv:hover,.conv.active{background:var(--panel2);border-color:var(--line)}.conv strong{font-size:11px;font-weight:700;display:block}.conv small{display:block;color:#687386;margin-top:4px;font-size:9px}.sideBottom{margin-top:auto;text-align:center;color:#5f697a;font-size:9px;padding-top:15px}.dot{display:inline-block;width:7px;height:7px;background:var(--green);border-radius:50%;margin-left:6px}
.main{min-width:0;flex:1;display:flex;flex-direction:column;background:radial-gradient(circle at 50% -10%,#161e2b 0,#090b10 42%,#07090d 72%)}.top{height:64px;flex:none;display:flex;align-items:center;justify-content:space-between;padding:0 18px;border-bottom:1px solid rgba(255,255,255,.045)}.iconBtn{border:0;background:transparent;color:#cdd4df;width:42px;height:42px;border-radius:12px;font-size:21px}.iconBtn:hover{background:#121722}.online{font:600 10px Inter;color:#9da7b7;display:flex;align-items:center;gap:7px}.online i{width:8px;height:8px;background:var(--green);border-radius:50%;box-shadow:0 0 13px #22c55e}
.chat{min-height:0;flex:1;overflow:auto;padding:26px max(16px,calc((100% - 860px)/2));scroll-behavior:smooth}.welcome{min-height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:10px 8px 34px}.logoRing{width:92px;height:92px;border-radius:29px;display:grid;place-items:center;background:linear-gradient(145deg,#19170e,#0d1016);border:1px solid #4a3714;box-shadow:0 0 55px #f59e0b14;margin-bottom:18px}.logoRing img{width:74px}.eyebrow{font:800 9px Inter;letter-spacing:1.9px;color:#aa771e}.welcome h1{font-size:28px;line-height:1.5;margin:9px 0 8px;font-weight:600}.welcome h1 strong{color:var(--gold)}.welcome p{max-width:610px;color:var(--muted);font-size:12px;line-height:2.05;margin:0}.prompts{display:flex;justify-content:center;flex-wrap:wrap;gap:8px;margin-top:19px}.prompts button{border:1px solid var(--line);background:#0f131a;color:#d8deea;padding:10px 13px;border-radius:99px;font-size:10px}.prompts button:hover{border-color:#5d481f;color:#ffd37b}
.message{display:flex;max-width:860px;margin:0 auto 15px}.message.user{justify-content:flex-start}.message.assistant{justify-content:flex-end}.bubble{max-width:min(90%,720px);padding:13px 15px;border:1px solid var(--line);line-height:2;font-size:12px;white-space:pre-wrap;overflow-wrap:anywhere}.user .bubble{background:#181e29;border-radius:17px 17px 5px 17px}.assistant .bubble{background:#0f141c;border-radius:17px 17px 17px 5px}
.composer{width:min(860px,calc(100% - 32px));flex:none;margin:0 auto 7px;display:flex;gap:8px;background:#0d1118;border:1px solid #2a3240;border-radius:19px;padding:9px;box-shadow:0 12px 45px #0008}.composer textarea{flex:1;resize:none;max-height:180px;outline:0;border:0;background:transparent;color:var(--text);line-height:1.9;padding:8px 9px}.composer textarea::placeholder{color:#657084}.sendBtn{width:45px;height:45px;align-self:flex-end;border:0;border-radius:14px;background:linear-gradient(145deg,#ffc451,#da8409);color:#191000;font-size:21px;font-weight:900}.sendBtn:disabled{opacity:.45}.notice{text-align:center;color:#4f5969;font-size:9px;padding:0 10px 10px}.dots{display:inline-flex;gap:5px}.dots i{width:6px;height:6px;background:#a0a8b5;border-radius:50%;animation:d .8s infinite alternate}.dots i:nth-child(2){animation-delay:.15s}.dots i:nth-child(3){animation-delay:.3s}@keyframes d{to{transform:translateY(-4px);opacity:.3}}
@media(max-width:800px){.sidebar{position:fixed;z-index:20;top:0;right:0;bottom:0;transform:translateX(102%);transition:.22s;width:min(88%,310px);box-shadow:-30px 0 80px #0009}.sidebar.open{transform:translateX(0)}.welcome h1{font-size:23px}.chat{padding:20px 12px}.bubble{max-width:94%}}
