/* Ato Studio bilingual assistant */
.ato-chatbot{position:fixed;z-index:140;inset-inline-end:24px;bottom:24px;font-family:Vazirmatn,Inter,sans-serif;text-align:start;color:#edf7f7}
html[dir="ltr"] .ato-chatbot{font-family:Inter,Vazirmatn,sans-serif}
.ato-chatbot *{box-sizing:border-box}
.ato-chatbot .sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.ato-chat-trigger{position:relative;isolation:isolate;display:flex;align-items:center;justify-content:center;gap:9px;min-width:62px;height:62px;padding:0 19px;cursor:pointer;border:1px solid rgba(160,255,247,.38);border-radius:999px;background:linear-gradient(135deg,#0e7883 0%,#22d3c5 58%,#55eadc 100%);color:#06161d;box-shadow:0 18px 48px -15px rgba(34,211,197,.95),0 9px 25px rgba(0,0,0,.32);transition:transform .25s ease,box-shadow .25s ease}
.ato-chat-trigger:hover{transform:translateY(-3px);box-shadow:0 23px 55px -14px rgba(34,211,197,1),0 12px 30px rgba(0,0,0,.38)}
.ato-chat-trigger:focus-visible,.ato-chat-head button:focus-visible,.ato-chat-form button:focus-visible,.ato-chat-quick button:focus-visible,.ato-chat-actions a:focus-visible{outline:3px solid rgba(94,234,212,.55);outline-offset:3px}
.ato-chat-trigger svg{position:relative;z-index:2;width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.ato-chat-trigger-label{position:relative;z-index:2;font-size:13px;font-weight:900;white-space:nowrap}
.ato-chat-trigger>i{position:absolute;z-index:3;top:4px;inset-inline-start:6px;width:11px;height:11px;border:2px solid #0c2130;border-radius:50%;background:#f0b429;box-shadow:0 0 0 3px rgba(240,180,41,.12)}
.ato-chat-trigger-glow{position:absolute;z-index:-1;inset:-9px;border-radius:inherit;border:1px solid rgba(34,211,197,.16);animation:ato-chat-pulse 2.6s ease-out infinite}
.ato-chat-icon-close{display:none}
.ato-chatbot.is-open .ato-chat-icon-open{display:none}
.ato-chatbot.is-open .ato-chat-icon-close{display:block}
.ato-chatbot.is-open .ato-chat-trigger-label,.ato-chatbot.is-open .ato-chat-trigger>i{display:none}
.ato-chatbot.is-open .ato-chat-trigger{min-width:62px;width:62px;padding:0}
.ato-chat-panel{position:absolute;inset-inline-end:0;bottom:76px;display:flex;visibility:hidden;flex-direction:column;width:min(390px,calc(100vw - 32px));height:min(620px,calc(100vh - 118px));overflow:hidden;border:1px solid rgba(102,232,222,.18);border-radius:26px;background:linear-gradient(165deg,rgba(17,40,57,.985),rgba(7,20,31,.99));box-shadow:0 35px 90px rgba(0,0,0,.58),0 0 0 1px rgba(255,255,255,.025) inset;opacity:0;pointer-events:none;transform:translateY(18px) scale(.96);transform-origin:bottom right;transition:opacity .22s ease,transform .25s cubic-bezier(.22,.9,.32,1),visibility .22s}
html[dir="rtl"] .ato-chat-panel{transform-origin:bottom left}
.ato-chatbot.is-open .ato-chat-panel{visibility:visible;opacity:1;pointer-events:auto;transform:translateY(0) scale(1)}
.ato-chat-head{position:relative;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:12px;min-height:82px;padding:16px 18px;border-bottom:1px solid rgba(255,255,255,.07);background:radial-gradient(circle at 85% -20%,rgba(34,211,197,.25),transparent 48%),rgba(12,30,44,.92)}
.ato-chat-avatar{position:relative;display:grid;place-items:center;width:48px;height:48px;border:1px solid rgba(84,238,225,.36);border-radius:17px;background:linear-gradient(145deg,#123c4a,#0b202f);box-shadow:0 10px 28px rgba(0,0,0,.26)}
.ato-chat-avatar span{font:900 22px/1 Inter,sans-serif;color:#2dd4bf}
.ato-chat-avatar i{position:absolute;right:-2px;bottom:-2px;width:12px;height:12px;border:3px solid #102536;border-radius:50%;background:#45e59a}
.ato-chat-head strong{display:block;font-size:15px;font-weight:900;color:#fff}
.ato-chat-head small{display:flex;align-items:center;gap:6px;margin-top:4px;font-size:10px;color:#91a8b5}
.ato-chat-head small i{width:6px;height:6px;border-radius:50%;background:#45e59a;box-shadow:0 0 8px rgba(69,229,154,.8)}
.ato-chat-head>button{display:grid;place-items:center;width:36px;height:36px;cursor:pointer;border:1px solid rgba(255,255,255,.09);border-radius:12px;background:rgba(255,255,255,.035);color:#a9bdc8;transition:.2s ease}
.ato-chat-head>button:hover{background:rgba(34,211,197,.11);color:#fff}
.ato-chat-head>button svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round}
.ato-chat-messages{display:flex;flex:1;flex-direction:column;gap:15px;min-height:0;padding:20px 17px 14px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:rgba(34,211,197,.35) transparent;background-image:linear-gradient(rgba(34,211,197,.022) 1px,transparent 1px),linear-gradient(90deg,rgba(34,211,197,.022) 1px,transparent 1px);background-size:28px 28px}
.ato-chat-messages::-webkit-scrollbar{width:5px}.ato-chat-messages::-webkit-scrollbar-thumb{border-radius:9px;background:rgba(34,211,197,.3)}
.ato-chat-message{display:flex;align-items:flex-end;gap:8px;max-width:92%;animation:ato-chat-in .24s ease both}
.ato-chat-message.is-bot{align-self:flex-start}.ato-chat-message.is-user{align-self:flex-end}
.ato-chat-message>div{min-width:54px;padding:11px 13px 8px;border:1px solid rgba(255,255,255,.065);border-radius:16px 16px 16px 5px;background:linear-gradient(150deg,#172d3f,#112535);box-shadow:0 8px 24px rgba(0,0,0,.16)}
html[dir="rtl"] .ato-chat-message.is-bot>div{border-radius:16px 16px 5px 16px}
.ato-chat-message.is-user>div{border-color:rgba(81,231,218,.32);border-radius:16px 16px 5px 16px;background:linear-gradient(135deg,#0f7e86,#1bbcaf);color:#fff}
html[dir="rtl"] .ato-chat-message.is-user>div{border-radius:16px 16px 16px 5px}
.ato-chat-message p{white-space:pre-line;margin:0;font-size:12.5px;line-height:1.85;color:#d8e5e8}
.ato-chat-message.is-user p{color:#fff;font-weight:600}
.ato-chat-message time{display:block;margin-top:6px;font:500 8px/1 Inter,Vazirmatn,sans-serif;color:#728994;direction:ltr;text-align:end}
.ato-chat-message.is-user time{color:rgba(255,255,255,.68)}
.ato-chat-mini-avatar{flex:0 0 auto;display:grid;place-items:center;width:26px;height:26px;border:1px solid rgba(34,211,197,.24);border-radius:9px;background:#0d2938;color:#2dd4bf;font:900 11px/1 Inter,sans-serif}
.ato-chat-actions{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}
.ato-chat-actions a{display:inline-flex;align-items:center;justify-content:center;min-height:30px;padding:6px 10px;border:1px solid rgba(34,211,197,.28);border-radius:10px;background:rgba(34,211,197,.075);color:#55e7da;font-size:9.5px;font-weight:800;transition:.18s ease}
.ato-chat-actions a:hover{border-color:#2dd4bf;background:rgba(34,211,197,.16);color:#fff}
.ato-chat-typing-dots{display:flex!important;align-items:center;gap:4px!important;min-width:54px!important;height:36px;padding:0 15px!important}
.ato-chat-typing-dots i{width:6px;height:6px;border-radius:50%;background:#41dacf;animation:ato-chat-dot 1.1s infinite ease-in-out}
.ato-chat-typing-dots i:nth-child(2){animation-delay:.14s}.ato-chat-typing-dots i:nth-child(3){animation-delay:.28s}
.ato-chat-quick{display:flex;flex:0 0 auto;gap:7px;padding:10px 16px 11px;overflow-x:auto;border-top:1px solid rgba(255,255,255,.045);scrollbar-width:none}
.ato-chat-quick::-webkit-scrollbar{display:none}
.ato-chat-quick button{flex:0 0 auto;cursor:pointer;padding:7px 11px;border:1px solid rgba(34,211,197,.2);border-radius:999px;background:rgba(34,211,197,.045);color:#aeece7;font-size:9.5px;font-weight:700;transition:.18s ease}
.ato-chat-quick button:hover{border-color:rgba(34,211,197,.6);background:rgba(34,211,197,.12);color:#fff}
.ato-chat-form{display:grid;grid-template-columns:1fr 42px;gap:9px;padding:10px 15px;border-top:1px solid rgba(255,255,255,.075);background:#091a28}
.ato-chat-form input{width:100%;height:42px;padding:0 14px;border:1px solid rgba(255,255,255,.09);border-radius:13px;outline:none;background:#071522;color:#fff;font-size:11px;text-align:start!important;transition:.18s ease}
.ato-chat-form input::placeholder{color:#5f7887}.ato-chat-form input:focus{border-color:rgba(34,211,197,.58);box-shadow:0 0 0 3px rgba(34,211,197,.07)}
.ato-chat-form button{display:grid;place-items:center;width:42px;height:42px;cursor:pointer;border:0;border-radius:13px;background:linear-gradient(135deg,#0e8d94,#29d6c8);color:#06161d;box-shadow:0 8px 20px -8px rgba(34,211,197,.9);transition:.18s ease}
.ato-chat-form button:hover{transform:translateY(-1px);filter:brightness(1.08)}.ato-chat-form button:disabled{cursor:wait;opacity:.55;transform:none}
.ato-chat-form button svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linejoin:round;stroke-linecap:round}
html[dir="rtl"] .ato-chat-form button svg{transform:scaleX(-1)}
.ato-chat-privacy{display:flex;align-items:center;justify-content:center;gap:5px;margin:0;padding:0 15px 11px;background:#091a28;color:#526d7c;font-size:8px}
.ato-chat-privacy svg{width:11px;height:11px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
@keyframes ato-chat-pulse{0%{opacity:.65;transform:scale(.92)}70%,100%{opacity:0;transform:scale(1.25)}}
@keyframes ato-chat-in{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
@keyframes ato-chat-dot{0%,60%,100%{opacity:.32;transform:translateY(0)}30%{opacity:1;transform:translateY(-4px)}}
@media(max-width:640px){.ato-chatbot{inset-inline-end:12px;bottom:12px}.ato-chat-trigger{width:56px;min-width:56px;height:56px;padding:0}.ato-chat-trigger-label{display:none}.ato-chat-trigger>i{top:2px;inset-inline-start:3px}.ato-chatbot.is-open .ato-chat-trigger{width:56px;min-width:56px}.ato-chat-panel{position:fixed;inset:74px 10px 78px;width:auto;height:auto;max-height:none;border-radius:22px;transform-origin:bottom center}.ato-chat-head{min-height:76px;padding:13px 15px}.ato-chat-avatar{width:44px;height:44px}.ato-chat-messages{padding-inline:14px}.ato-chat-message{max-width:95%}}
@media(prefers-reduced-motion:reduce){.ato-chat-trigger-glow{animation:none}.ato-chat-message,.ato-chat-typing-dots i{animation:none}}
@media print{.ato-chatbot{display:none!important}}
