/* Nexora help assistant (rule based, no AI) - website and member panel */
.nx-bot-btn { position: fixed; right: 18px; bottom: 18px; z-index: 1046; width: 58px; height: 58px; border-radius: 50%; border: 0; display: grid; place-items: center; font-size: 1.55rem; color: #2b1d02; background: linear-gradient(135deg, #f3d27a 0%, #dcaa3c 45%, #b8862a 100%); box-shadow: 0 12px 28px rgba(184, 134, 42, .45); cursor: pointer; }
.nx-bot-btn::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid rgba(220, 170, 60, .55); animation: nx-bot-pulse 2.2s ease-out infinite; }
@keyframes nx-bot-pulse { from { transform: scale(.92); opacity: 1; } to { transform: scale(1.3); opacity: 0; } }
.nx-bot-btn .nx-bot-hint { position: absolute; right: 68px; white-space: nowrap; background: #0a1838; color: #fff; font-size: .8rem; font-weight: 600; padding: .45rem .75rem; border-radius: 10px; box-shadow: 0 8px 20px rgba(0, 0, 0, .2); }
.nx-bot-btn.is-open::after, .nx-bot-btn.is-open .nx-bot-hint { display: none; }
@media (max-width: 991.98px) { body.nx-app .nx-bot-btn { bottom: 88px; right: 14px; width: 52px; height: 52px; } }

.nx-bot { position: fixed; right: 18px; bottom: 88px; z-index: 1047; width: min(380px, calc(100vw - 24px)); height: min(560px, calc(100vh - 120px)); display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; background: #fff; color: #0f172a; box-shadow: 0 24px 60px rgba(10, 24, 56, .35); transform: translateY(16px) scale(.98); opacity: 0; pointer-events: none; transition: all .22s ease; font-family: "Inter", system-ui, sans-serif; }
.nx-bot.is-open { transform: none; opacity: 1; pointer-events: auto; }
@media (max-width: 991.98px) { body.nx-app .nx-bot { bottom: 150px; height: min(520px, calc(100vh - 180px)); } }
@media (max-width: 479.98px) { .nx-bot { right: 12px; left: 12px; width: auto; } }
.nx-bot-head { display: flex; align-items: center; gap: .65rem; padding: .85rem 1rem; background: linear-gradient(120deg, #0a1838, #13306b); color: #fff; }
.nx-bot-head img { width: 38px; height: 38px; border-radius: 50%; background: #fff; padding: 3px; }
.nx-bot-head strong { display: block; font-size: .95rem; }
.nx-bot-head small { color: #c7cfdf; font-size: .74rem; }
.nx-bot-head small::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #22c55e; margin-right: 5px; }
.nx-bot-head button { margin-left: auto; background: none; border: 0; color: #fff; font-size: 1.35rem; line-height: 1; cursor: pointer; opacity: .8; }
.nx-bot-log { flex: 1 1 auto; overflow-y: auto; padding: 1rem; background: #f4f6fa; display: flex; flex-direction: column; gap: .6rem; }
.nx-bot-msg { max-width: 88%; padding: .6rem .8rem; border-radius: 14px; font-size: .88rem; line-height: 1.5; box-shadow: 0 1px 2px rgba(15, 23, 42, .06); }
.nx-bot-msg.bot { background: #fff; border-top-left-radius: 4px; align-self: flex-start; }
.nx-bot-msg.me { background: #13306b; color: #fff; border-top-right-radius: 4px; align-self: flex-end; }
.nx-bot-msg ul { margin: .35rem 0 0; padding-left: 1.1rem; }
.nx-bot-msg a.nx-bot-link { display: inline-flex; align-items: center; gap: .3rem; margin: .45rem .35rem 0 0; padding: .3rem .65rem; border-radius: 99px; background: #fdf3da; color: #8a6410; font-weight: 700; font-size: .8rem; text-decoration: none; }
.nx-bot-chips { display: flex; flex-wrap: wrap; gap: .4rem; align-self: flex-start; }
.nx-bot-chips button { border: 1.5px solid #dcaa3c; background: #fff; color: #8a6410; border-radius: 99px; padding: .3rem .7rem; font-size: .8rem; font-weight: 600; cursor: pointer; }
.nx-bot-chips button:hover { background: #fdf3da; }
.nx-bot-form { display: flex; gap: .4rem; padding: .65rem; border-top: 1px solid #e4e8f0; background: #fff; }
.nx-bot-form input { flex: 1 1 auto; min-width: 0; border: 1px solid #e4e8f0; border-radius: 99px; padding: .5rem .85rem; font-size: .9rem; outline: none; }
.nx-bot-form input:focus { border-color: #dcaa3c; box-shadow: 0 0 0 3px rgba(220, 170, 60, .2); }
.nx-bot-form button { border: 0; width: 40px; height: 40px; border-radius: 50%; background: #0a1838; color: #f3d27a; font-size: 1rem; cursor: pointer; }
.nx-bot-typing { align-self: flex-start; display: inline-flex; gap: 4px; padding: .7rem .85rem; background: #fff; border-radius: 14px; }
.nx-bot-typing span { width: 6px; height: 6px; border-radius: 50%; background: #94a3b8; animation: nx-bot-dot 1s infinite ease-in-out; }
.nx-bot-typing span:nth-child(2) { animation-delay: .15s; } .nx-bot-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes nx-bot-dot { 0%, 80%, 100% { transform: translateY(0); opacity: .5; } 40% { transform: translateY(-4px); opacity: 1; } }
.nx-bot-note { font-size: .7rem; color: #64748b; text-align: center; padding: 0 .5rem .4rem; background: #fff; }
