/* Glost assistant — terminal-style helper (home page) */
.gbot-launch{position:fixed;right:16px;bottom:16px;z-index:600;display:none;align-items:center;gap:10px;height:48px;padding:0 16px 0 12px;background:#0a0c12;border:1px solid rgba(0,255,0,.55);border-radius:24px;color:#0f0;font:600 13px/1 var(--font-mono,'Courier New',monospace);cursor:pointer;box-shadow:0 0 18px rgba(0,255,0,.25);direction:ltr;-webkit-tap-highlight-color:transparent}
.gbot-launch.show{display:inline-flex;animation:gbIn .5s ease both}
.gbot-launch:hover{box-shadow:0 0 26px rgba(0,255,0,.45)}
.gbot-launch:focus-visible,.gbot-chip:focus-visible,.gbot-ib:focus-visible{outline:2px solid #bf00ff;outline-offset:2px}
.gbot-pr{font-weight:800;font-size:15px}
.gbot-lb{font-family:'Vazirmatn',var(--font-mono,monospace);font-weight:600}
.gbot-dot{position:absolute;top:-3px;right:-3px;width:11px;height:11px;border-radius:50%;background:#bf00ff;box-shadow:0 0 10px #bf00ff;display:none}
.gbot-launch.show:not(.seen) .gbot-dot,.gbot-launch.nudge .gbot-dot{display:block;animation:gbPulse 1.6s ease-in-out infinite}
@keyframes gbIn{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
@keyframes gbPulse{0%,100%{transform:scale(1);opacity:1}50%{transform:scale(1.5);opacity:.5}}

.gbot-panel{position:fixed;right:16px;bottom:76px;z-index:700;width:min(420px,calc(100vw - 24px));max-height:min(640px,calc(100svh - 96px));display:flex;flex-direction:column;background:#0a0c12;border:1px solid rgba(0,255,0,.35);border-radius:14px;box-shadow:0 0 28px rgba(0,255,0,.2),0 18px 50px rgba(0,0,0,.6);direction:ltr;color:#cfe;font-family:var(--font-mono,'Courier New',monospace);overflow:hidden}
.gbot-panel[hidden],.gbot-bubble[hidden],.gbot-mini[hidden],.gbot-spot[hidden]{display:none!important}
.gbot-head{display:flex;align-items:center;gap:8px;padding:10px 12px;background:rgba(0,0,0,.55);border-bottom:1px solid rgba(0,255,0,.28)}
.gbot-dots{display:flex;gap:6px}.gbot-dots i{width:10px;height:10px;border-radius:50%;background:#ff5f56}.gbot-dots i:nth-child(2){background:#ffbd2e}.gbot-dots i:nth-child(3){background:#27c93f}
.gbot-ttl{flex:1;font-size:12px;color:#0f0;font-weight:600;margin-inline-start:4px}
.gbot-ib{width:34px;height:34px;display:grid;place-items:center;background:transparent;border:1px solid rgba(0,255,0,.25);border-radius:8px;color:#0f0;cursor:pointer}
.gbot-ib svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.gbot-ib.off{color:#889;border-color:rgba(255,255,255,.18)}.gbot-ib.off .w{display:none}
.gbot-log{flex:1;min-height:150px;overflow-y:auto;padding:12px 14px;font-size:13.5px;line-height:1.85;overscroll-behavior:contain}
.gbot-log:focus-visible{outline:2px solid #bf00ff;outline-offset:-2px}
.gbot-log .ln{margin:0 0 8px;text-align:start;word-break:break-word}
.gbot-log .ln.bot{color:#d8ffe0}.gbot-log .ps{color:#0f0;font-weight:700}
.gbot-log .ln.me{color:#9fb;opacity:.9}.gbot-log .ln.sys{color:#bf00ff;font-size:12px;letter-spacing:.02em;text-align:center}
.gbot-log b{color:#fff}.gbot-log a{color:#0f0;text-decoration:underline;text-underline-offset:3px}
.gbot-chips{display:flex;flex-wrap:wrap;gap:8px;padding:8px 12px 10px;border-top:1px solid rgba(0,255,0,.12);max-height:40%;overflow-y:auto}
.gbot-chips:empty{display:none}
.gbot-chip{font:600 12.5px/1.4 'Vazirmatn',var(--font-mono,monospace);padding:8px 12px;min-height:38px;background:rgba(0,255,0,.07);border:1px solid rgba(0,255,0,.4);border-radius:10px;color:#0f0;cursor:pointer;text-align:start}
.gbot-chip:hover{background:rgba(0,255,0,.16)}
.gbot-chip.pri{background:#0f0;color:#001a00;border-color:#0f0}.gbot-chip.pri:hover{background:#5f5}
.gbot-chip:disabled{opacity:.5;cursor:default}
.gbot-cmd{display:flex;align-items:center;gap:8px;padding:8px 12px;border-top:1px solid rgba(0,255,0,.25);background:rgba(0,0,0,.45)}
.gbot-ps{color:#0f0;font-weight:700}
.gbot-cmd input{flex:1;min-width:0;background:transparent;border:0;outline:0;color:#e8fff0;font:14px/1.6 'Vazirmatn',var(--font-mono,monospace);height:38px}
.gbot-cmd input::placeholder{color:#7a8}
.gbot-cmd:focus-within{box-shadow:inset 0 0 0 1px rgba(0,255,0,.55)}
.gbot-form{display:grid;gap:8px;margin-top:4px;padding:10px;border:1px dashed rgba(0,255,0,.35);border-radius:10px}
.gbot-form input,.gbot-form textarea{width:100%;background:#05070b;border:1px solid rgba(0,255,0,.3);border-radius:8px;color:#e8fff0;font:14px/1.6 'Vazirmatn',var(--font-mono,monospace);padding:9px 10px;resize:vertical}
.gbot-form input:focus,.gbot-form textarea:focus{outline:2px solid #bf00ff;outline-offset:1px}
.gbot-hp{position:absolute!important;left:-9999px!important;width:1px!important;height:1px!important;opacity:0!important}
.gbot-row{display:flex;gap:8px;flex-wrap:wrap}
.gbot-err{color:#ff8a8a;font-size:12.5px}.gbot-note{font-size:11.5px;color:#9ab;line-height:1.7}
.gbot-bubble{position:fixed;right:16px;bottom:76px;z-index:650;width:min(320px,calc(100vw - 32px));background:#0a0c12;border:1px solid rgba(0,255,0,.45);border-radius:14px;padding:12px;box-shadow:0 0 22px rgba(0,255,0,.25);direction:ltr;color:#d8ffe0;font:13px/1.7 'Vazirmatn',var(--font-mono,monospace)}
.gbot-bt{margin-bottom:8px}
.gbot-mb{display:flex;gap:6px;flex-wrap:wrap}
.gbot-mini{position:fixed;left:50%;bottom:12px;transform:translateX(-50%);z-index:1100;width:min(520px,calc(100vw - 20px));background:#0a0c12;border:1px solid rgba(0,255,0,.6);border-radius:14px;padding:10px 12px;box-shadow:0 0 26px rgba(0,255,0,.35);direction:ltr;color:#d8ffe0;font:13px/1.6 'Vazirmatn',var(--font-mono,monospace)}
.gbot-mt{color:#0f0;font-weight:700;margin-bottom:6px}.gbot-note2{color:#bf00ff;font-size:12px;margin-bottom:6px}.gbot-note2:empty{display:none}
.gbot-spot{position:fixed;z-index:1050;pointer-events:none;border:2px solid #0f0;border-radius:14px;box-shadow:0 0 0 4px rgba(0,255,0,.18),0 0 24px #0f0;animation:gbRing 1.3s ease-in-out infinite;transition:left .25s,top .25s,width .25s,height .25s}
@keyframes gbRing{0%,100%{box-shadow:0 0 0 3px rgba(0,255,0,.2),0 0 14px #0f0}50%{box-shadow:0 0 0 10px rgba(0,255,0,.05),0 0 30px #0f0}}
@media (max-width:560px){
  .gbot-launch{right:10px;bottom:10px;padding:0 14px 0 11px;height:44px}
  .gbot-panel{right:8px;left:8px;width:auto;bottom:62px;max-height:calc(100svh - 84px)}
  .gbot-bubble{right:8px;bottom:62px}
  .gbot-lb{display:none}.gbot-launch{width:48px;padding:0;justify-content:center}
}
@media (prefers-reduced-motion:reduce){.gbot-launch.show,.gbot-spot,.gbot-dot{animation:none!important}.gbot-spot{transition:none}}
html .gbot-launch{direction:ltr!important;flex-direction:row!important}
.gbot-pr{direction:ltr;unicode-bidi:isolate}
html[lang=fa] .gbot-chips,html[lang=fa] .gbot-mb,html[lang=fa] .gbot-row{direction:rtl}
html[lang=fa] .gbot-mini,html[lang=fa] .gbot-bubble{direction:rtl}

/* ===== mascot launcher ===== */
.gbot-launch{padding:0 16px 0 8px;height:46px;gap:6px}
.gbot-launch .glo-sm{width:46px;height:57px;margin-top:-18px;margin-bottom:-6px;filter:drop-shadow(0 4px 8px rgba(0,255,100,.35))}
.gbot-pr{display:none}
@media (max-width:560px){.gbot-launch{width:56px;height:56px;padding:0;justify-content:center;border-radius:50%}.gbot-launch .glo-sm{width:42px;height:52px;margin:-6px 0 0}}

/* ===== the guide (Glo + speech bubble) ===== */
.glo-guide{direction:ltr;position:fixed;left:0;top:0;z-index:1100;width:0;height:0;transition:transform .7s cubic-bezier(.2,.85,.25,1.15);will-change:transform;pointer-events:none}
.glo-guide[hidden]{display:none!important}
.gg-bub{position:relative;pointer-events:auto;padding:12px 16px 14px;border-radius:20px;background:linear-gradient(165deg,rgba(14,24,19,.97),rgba(6,8,13,.98));border:1px solid rgba(0,255,0,.55);box-shadow:0 0 0 1px rgba(191,0,255,.25),0 0 34px rgba(0,255,0,.3),0 22px 54px rgba(0,0,0,.7);color:#dff7e6;font:14px/1.9 'Vazirmatn','Space Grotesk',system-ui,sans-serif;opacity:0;transform:scale(.88) translateY(8px);transition:opacity .35s,transform .45s cubic-bezier(.2,1.2,.3,1)}
html[lang=fa] .gg-bub{direction:rtl}
.glo-guide.on .gg-bub{opacity:1;transform:none}
.gg-top{display:flex;align-items:flex-end;gap:10px;margin-top:-34px;margin-bottom:2px}
.gg-glo{width:62px;height:78px;flex:none;margin-inline-start:-4px}
.gg-head{flex:1;min-width:0;padding-bottom:4px}
.gg-step{display:block;color:#9fe;font-size:11.5px;letter-spacing:.02em;line-height:1.4}
.gg-title{margin:0;font-size:16px;font-weight:800;color:#0f0;line-height:1.5}
.gg-x{width:30px;height:30px;flex:none;display:grid;place-items:center;border-radius:9px;border:1px solid rgba(0,255,0,.3);background:rgba(0,0,0,.35);color:#0f0;cursor:pointer;margin-bottom:6px}
.gg-x svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round}
.gg-txt{position:relative;min-height:2em}.gg-full{opacity:0;pointer-events:none}.gg-typed{position:absolute;inset:0}
.gg-full,.gg-typed{text-align:start;word-break:break-word}.gg-full b,.gg-typed b{color:#fff}.gg-full a,.gg-typed a{color:#0f0}
.gg-bar{height:4px;border-radius:4px;background:rgba(0,255,0,.14);margin:10px 0 2px;overflow:hidden}.gg-bar i{display:block;height:100%;background:linear-gradient(90deg,#0f0,#bf00ff);border-radius:4px;transition:width .5s}
.gg-act{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
html[lang=fa] .gg-act{direction:rtl}
.gg-b{font:700 13px/1.35 'Vazirmatn',system-ui,sans-serif;min-height:40px;padding:8px 14px;border-radius:11px;border:1px solid rgba(0,255,0,.5);background:rgba(0,255,0,.07);color:#0f0;cursor:pointer;transition:transform .15s,box-shadow .15s}
.gg-b:hover{transform:translateY(-2px);box-shadow:0 6px 16px rgba(0,255,0,.28)}
.gg-b.pri{background:linear-gradient(135deg,#0f0,#7dffa6);color:#001a08;border-color:#0f0}
.gg-b:focus-visible,.gg-x:focus-visible{outline:2px solid #bf00ff;outline-offset:2px}
.gg-arrow{position:absolute;width:16px;height:16px;background:#0b1410;border:1px solid rgba(0,255,0,.55);transform:rotate(45deg);pointer-events:none}
.gg-arrow.ar-top{top:-9px;margin-left:-8px;border-right:0;border-bottom:0}
.gg-arrow.ar-bottom{bottom:-9px;margin-left:-8px;border-left:0;border-top:0}
.gg-arrow.ar-left{left:-9px;margin-top:-8px;border-right:0;border-top:0}
.gg-arrow.ar-right{right:-9px;margin-top:-8px;border-left:0;border-bottom:0}
.gg-arrow.ar-none{display:none}
.gg-confetti{position:fixed;inset:0;width:100%;height:100%;z-index:1200;pointer-events:none}
.gg-confetti[hidden]{display:none}
.gbot-spot{border-radius:16px}
@media (prefers-reduced-motion:reduce){.glo-guide{transition:none}.gg-bub{transition:none}}
