*{box-sizing:border-box}
body{margin:0;font:16px/1.7 Vazirmatn,Tahoma,system-ui,sans-serif;color:#0d2d52;background:#f7f7f5}
h1,h2,h3{margin:0 0 .4rem;line-height:1.4}h1{font-size:1.25rem}h2{font-size:1.15rem}
.muted{color:#4f6478;margin:0}
.demo{background:#fff3cd;padding:.5rem 1rem;text-align:center;font-size:.9rem}
.top{display:flex;justify-content:space-between;align-items:center;gap:1rem;padding:.8rem 1rem;background:#fff;border-bottom:1px solid #d5e7ec}
main{max-width:960px;margin:0 auto;padding:1rem}
.intro{background:#fff;border:1px solid #d5e7ec;border-radius:12px;padding:1rem;margin-bottom:1.2rem}
.row{display:flex;flex-wrap:wrap;gap:.6rem;margin-top:.8rem}
.btn{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 1rem;border:1px solid #0b7f90;border-radius:10px;background:#fff;color:#0b7f90;font:inherit;cursor:pointer;text-decoration:none}
.btn.primary{background:#0b7f90;color:#fff}
.btn:focus-visible,select:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid #fbb51f;outline-offset:2px}
.filters{display:flex;flex-wrap:wrap;gap:.7rem;margin:.6rem 0}
.filters label{display:flex;flex-direction:column;font-size:.9rem;gap:.2rem;min-width:140px}.grow{flex:1;min-width:200px!important}
select,input,textarea{font:inherit;min-height:44px;padding:.4rem .6rem;border:1px solid #a9c3cb;border-radius:8px;background:#fff}
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:.9rem}
.card{background:#fff;border:1px solid #d5e7ec;border-radius:12px;padding:.9rem;display:flex;flex-direction:column;gap:.35rem}
.card .price{font-weight:700;color:#0b7f90}.tag{font-size:.8rem;background:#e3f5f7;color:#0b7f90;border-radius:6px;padding:.05rem .5rem;align-self:flex-start}
.card .row{margin-top:auto;padding-top:.4rem}
dialog{width:min(560px,94vw);max-height:90vh;border:0;border-radius:14px;padding:1rem;overflow:auto}
dialog::backdrop{background:rgba(0,0,0,.45)}
dl{display:grid;grid-template-columns:auto 1fr;gap:.2rem .8rem;margin:.6rem 0}dt{color:#4f6478}dd{margin:0}
.note{background:#fdf3dc;border-radius:8px;padding:.5rem .7rem;margin:.4rem 0}
footer{text-align:center;color:#4f6478;font-size:.85rem;padding:1.5rem 1rem 5rem}
.fab{position:fixed;bottom:1rem;left:1rem;z-index:5;min-height:48px;padding:0 1.1rem;border:0;border-radius:24px;background:#0b7f90;color:#fff;font:inherit;box-shadow:0 3px 10px rgba(0,0,0,.25);cursor:pointer}
.chat{position:fixed;z-index:10;display:flex;flex-direction:column;background:#fff;inset:0;height:100vh;height:100dvh}
.chat[hidden]{display:none}
@media(min-width:700px){.chat{inset:auto 1rem 1rem auto;width:380px;height:min(600px,85vh);border-radius:14px;box-shadow:0 6px 24px rgba(0,0,0,.3)}}
.chat-head{display:flex;justify-content:space-between;align-items:center;padding:.6rem .9rem;background:#0b7f90;color:#fff;border-radius:inherit;border-end-start-radius:0;border-end-end-radius:0}
.chat-head button{background:none;border:0;color:#fff;font-size:1.2rem;min-width:44px;min-height:44px;cursor:pointer}
.msgs{flex:1;overflow:auto;padding:.8rem;display:flex;flex-direction:column;gap:.6rem;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;scroll-behavior:smooth}
.m{max-width:88%;padding:.6rem .9rem;border-radius:14px;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.85}
.m.bot{background:#eaf4f6;align-self:flex-start}.m.me{background:#0b7f90;color:#fff;align-self:flex-end}.m.sys{background:#fff3cd;align-self:center;font-size:.9rem}
.chips{display:flex;flex-wrap:wrap;gap:.4rem;padding:0 .8rem}.chips .btn{min-height:38px;font-size:.9rem}
.chat-form{display:flex;align-items:flex-end;gap:.5rem;padding:.6rem .6rem calc(.6rem + env(safe-area-inset-bottom));border-top:1px solid #d5e7ec;background:#f6fafb}
.compose{flex:1;min-width:0;display:flex;align-items:flex-end;gap:.1rem;padding:0 .25rem;border:1px solid #a9c3cb;border-radius:24px;background:#fff;transition:border-color .15s,box-shadow .15s}
.compose:focus-within{border-color:#0b7f90;box-shadow:0 0 0 3px rgba(11,127,144,.15)}
.chat-form .compose textarea{flex:1;min-width:0;order:2;resize:none;overflow-y:auto;border:0;border-radius:0;background:transparent;box-shadow:none;outline:none;min-height:48px;max-height:160px;padding:.7rem .5rem;font-size:16px;line-height:1.6}
.chat-form .compose textarea:focus-visible{outline:none}
.ib,.rb{flex:none;display:inline-flex;align-items:center;justify-content:center;padding:0;border:0;cursor:pointer;-webkit-tap-highlight-color:transparent}
.ib{order:1;width:40px;height:48px;background:transparent;color:#5b7a86}.ib:hover{color:#0b7f90}.ib:disabled{opacity:.5}
.ib svg,.rb svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.rb{width:48px;height:48px;border-radius:50%;background:#0b7f90;color:#fff}.rb:hover{background:#096a79}.rb:disabled{opacity:.55}
.rb .plane{transform:scaleX(-1) translateX(1px)}
.rb[hidden]{display:none}
.chat-form.mic-ok:not(.has-text) #sendBtn{display:none}
.chat-form.mic-ok.has-text #micBtn{display:none}

.card .cover{width:100%;height:150px;object-fit:cover;border-radius:8px;background:#eee}
.gallery{display:flex;gap:.4rem;overflow-x:auto;margin:.5rem 0}.gallery img{height:170px;border-radius:8px;flex:none}

.otp{max-width:95%;width:100%}.otp .row{margin:.4rem 0 0}.otp input{flex:1;min-width:110px;text-align:center;letter-spacing:.3em;font-size:1.1rem}
.m.wait{color:#4f6478;display:flex;align-items:center;gap:.7rem;width:min(88%,17.5rem);font-size:.93rem;line-height:1.7}
.m.wait .dots{flex:none;display:inline-flex;align-items:center;gap:4px;height:1.4em}
.m.wait .dots i{width:7px;height:7px;border-radius:50%;background:#0b7f90;opacity:.35;animation:bounce 1.2s ease-in-out infinite}
.m.wait .dots i:nth-child(2){animation-delay:.18s}.m.wait .dots i:nth-child(3){animation-delay:.36s}
.m.wait .wl{flex:1;min-width:0}
@keyframes bounce{0%,60%,100%{transform:translateY(0);opacity:.35}30%{transform:translateY(-5px);opacity:1}}
@media(prefers-reduced-motion:reduce){.m.wait .dots i{animation:none;opacity:.7}.msgs{scroll-behavior:auto}}
.m.upl progress{width:100%;height:8px;margin:.4rem 0;accent-color:#0b7f90}
.m.upl .thumbs{display:flex;flex-wrap:wrap;gap:.3rem;margin-top:.3rem}.m.upl .thumbs img{width:44px;height:44px;object-fit:cover;border-radius:6px}

/* هویت بصری لوگو */
.top{border-bottom:3px solid #26b5c8}
.brand{display:flex;align-items:center;gap:.7rem}.brand h1{margin:0;line-height:0}
.logo{display:block;height:56px;width:auto;max-width:100%}.brand h1{min-width:0;flex:0 1 auto}
.intro{border-top:4px solid #fbb51f;box-shadow:0 2px 8px rgba(13,45,82,.06)}
.card{border-top:3px solid #26b5c8;box-shadow:0 2px 8px rgba(13,45,82,.06)}
.btn:hover{background:#e3f5f7}.btn.primary:hover{background:#096a79}
h2{color:#0d2d52}
#call{white-space:nowrap;flex:none}
@media(max-width:480px){.top{gap:.5rem}.brand{gap:.5rem}.logo{height:44px}#call{padding:0 .7rem;font-size:.9rem}}

#micBtn.rec{background:#c62828;color:#fff;border-color:#c62828;animation:pulse 1.1s ease-in-out infinite}
#micBtn:disabled{opacity:.55}
@keyframes pulse{50%{box-shadow:0 0 0 6px rgba(198,40,40,.25)}}
@media(prefers-reduced-motion:reduce){#micBtn.rec{animation:none}}
.m .spk{display:inline-block;margin-inline-start:.5rem;min-height:32px;min-width:32px;padding:0 .4rem;border:1px solid #b9d7dd;border-radius:16px;background:#fff;color:#0b7f90;font:inherit;font-size:.85rem;cursor:pointer;vertical-align:middle}
.m .spk[aria-pressed="true"]{background:#0b7f90;color:#fff}
.m .spk:disabled{opacity:.6}

.chat-head .vt{min-width:0;margin-inline-start:auto;margin-inline-end:.5rem;min-height:36px;padding:0 .7rem;border:1px solid rgba(255,255,255,.55);border-radius:18px;background:transparent;color:inherit;font:inherit;font-size:.85rem;cursor:pointer}
.chat-head .vt[aria-pressed="true"]{background:#fff;color:#0b7f90;border-color:#fff}
