/* Always-visible Perfect Home Tutor chatbot */
#phtChatToggle{position:fixed!important;right:24px!important;bottom:88px!important;z-index:2147483000!important;width:54px!important;height:54px!important;padding:0!important;border:0!important;border-radius:50%!important;display:flex!important;align-items:center!important;justify-content:center!important;background:linear-gradient(135deg,#08295b,#0d4f9d)!important;color:#fff!important;font:800 16px Manrope,Arial,sans-serif!important;letter-spacing:.5px!important;box-shadow:0 12px 30px rgba(3,28,67,.35)!important;cursor:pointer!important;visibility:visible!important;opacity:1!important;transition:transform .2s!important}
#phtChatToggle:hover{transform:translateY(-2px) scale(1.05)!important}
#phtChatToggle .chat-dot{position:absolute!important;top:5px!important;right:5px!important;width:11px!important;height:11px!important;border-radius:50%!important;background:#31d07c!important;border:2px solid #fff!important}
#phtChatPanel{position:fixed!important;right:24px!important;bottom:158px!important;z-index:2147483001!important;width:min(390px,calc(100vw - 28px))!important;height:590px!important;max-height:calc(100vh - 195px)!important;background:#fff!important;border:1px solid #dfe7f1!important;border-radius:24px!important;box-shadow:0 28px 80px rgba(3,28,67,.25)!important;display:flex!important;flex-direction:column!important;overflow:hidden!important;opacity:0!important;visibility:hidden!important;pointer-events:none!important;transform:translateY(20px) scale(.97)!important;transform-origin:bottom right!important;transition:.25s!important}
#phtChatPanel.open{opacity:1!important;visibility:visible!important;pointer-events:auto!important;transform:none!important}
.pht-chat-head{background:linear-gradient(135deg,#062653,#0d4f9d);color:#fff;padding:18px;display:flex;align-items:center;gap:12px}.pht-chat-avatar{width:44px;height:44px;border-radius:14px;background:#fff;padding:5px;object-fit:contain}.pht-chat-head strong{display:block;font-family:Outfit;font-size:17px}.pht-chat-head small{display:block;color:#dce9fa}.pht-chat-close{margin-left:auto;border:0;background:rgba(255,255,255,.12);color:#fff;width:35px;height:35px;border-radius:10px;cursor:pointer}.pht-chat-messages{flex:1;overflow:auto;padding:17px;background:linear-gradient(180deg,#f6f9fd,#fff)}.pht-chat-row{display:flex;margin-bottom:12px}.pht-chat-row.user{justify-content:flex-end}.pht-chat-bubble{max-width:88%;padding:12px 14px;border-radius:15px;background:#fff;border:1px solid #e2e9f2;color:#27364d;font-size:13px;line-height:1.55;box-shadow:0 7px 20px rgba(3,28,67,.05)}.pht-chat-row.user .pht-chat-bubble{background:#08295b;color:#fff;border-color:#08295b}.pht-chat-actions{display:flex;flex-wrap:wrap;gap:7px;margin-top:10px}.pht-chat-actions a{font-size:11px;font-weight:800;color:#08295b;background:#fff3cf;border:1px solid #ffd56a;padding:7px 9px;border-radius:8px}.pht-chat-quick{padding:0 16px 12px;background:#fff;display:flex;gap:7px;overflow-x:auto}.pht-chat-quick button{white-space:nowrap;border:1px solid #dce5ef;background:#f7f9fc;color:#08295b;border-radius:999px;padding:8px 11px;font:700 11px Manrope;cursor:pointer}.pht-chat-form{display:flex;gap:9px;padding:13px;border-top:1px solid #e7edf5;background:#fff}.pht-chat-form input{flex:1;height:46px;border:1px solid #d8e1ec;border-radius:12px;padding:0 13px;outline:none}.pht-chat-form button{width:46px;height:46px;border:0;border-radius:12px;background:#f5a400;color:#062653;cursor:pointer}
@media(max-width:600px){#phtChatToggle{right:16px!important;bottom:78px!important;width:52px!important;height:52px!important;padding:0!important}#phtChatPanel{right:16px!important;bottom:140px!important;width:calc(100vw - 28px)!important;height:68vh!important;max-height:610px!important}}

/* typing indicator dots */
.pht-chat-row.typing-row .pht-chat-bubble{display:flex;gap:5px;align-items:center;padding:14px 16px}
.pht-chat-row.typing-row .pht-chat-bubble span{width:7px;height:7px;border-radius:50%;background:#9db3cf;display:inline-block;animation:phtBlink 1.2s infinite ease-in-out}
.pht-chat-row.typing-row .pht-chat-bubble span:nth-child(2){animation-delay:.2s}
.pht-chat-row.typing-row .pht-chat-bubble span:nth-child(3){animation-delay:.4s}
@keyframes phtBlink{0%,80%,100%{opacity:.3;transform:translateY(0)}40%{opacity:1;transform:translateY(-3px)}}
