/* TechRays Guide — help bot + guided tours */
.trg-fab { position: fixed; right: 22px; bottom: 22px; z-index: 1060; width: 58px; height: 58px; border-radius: 50%; border: 0;
  background: linear-gradient(145deg, #FF8500, #E87800); color: #fff; font-size: 1.6rem; box-shadow: 0 10px 28px rgba(232,120,0,.45); }
.trg-fab:hover { transform: translateY(-2px); }
.trg-dot { position: absolute; top: 6px; right: 6px; width: 12px; height: 12px; border-radius: 50%; background: #dc3b45; border: 2px solid #fff; }
.trg-panel { position: fixed; right: 22px; bottom: 92px; z-index: 1061; width: 380px; max-width: calc(100vw - 24px); height: 560px; max-height: calc(100vh - 120px);
  background: #fff; border-radius: 18px; box-shadow: 0 18px 50px rgba(10,31,64,.28); display: flex; flex-direction: column; overflow: hidden; }
.trg-panel header { background: linear-gradient(150deg, #0F2D5C, #0A1F40); color: #fff; padding: .8rem .9rem; display: flex; align-items: center; gap: .6rem; }
.trg-avatar { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,133,0,.9); display: grid; place-items: center; font-size: 1.2rem; }
.trg-hbtn { background: transparent; border: 0; color: #fff; opacity: .85; font-size: 1.05rem; padding: .25rem .4rem; }
.trg-hbtn:hover { opacity: 1; color: #fff; }
.trg-progress { height: 4px; background: #E4E9F1; } .trg-progress div { height: 100%; width: 0; background: #12a26a; transition: width .4s; }
.trg-body { flex: 1; overflow-y: auto; padding: .8rem; background: #F4F6FA; font-size: .9rem; }
.trg-msg { max-width: 88%; padding: .55rem .75rem; border-radius: 14px; margin-bottom: .55rem; line-height: 1.4; word-wrap: break-word; }
.trg-msg.bot { background: #fff; border: 1px solid #E4E9F1; border-top-left-radius: 4px; }
.trg-msg.me { background: #0F2D5C; color: #fff; margin-left: auto; border-top-right-radius: 4px; }
.trg-msg ol { padding-left: 1.1rem; margin: .3rem 0 0; } .trg-msg li { margin-bottom: .2rem; }
.trg-actions { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .45rem; }
.trg-actions a, .trg-actions button { font-size: .78rem; border-radius: 999px; padding: .2rem .65rem; border: 1px solid #c9d5ea; background: #EEF3FB; color: #0F2D5C; text-decoration: none; }
.trg-actions .tour { background: #FFF4E8; border-color: #ffc98f; color: #a85600; }
.trg-fb { font-size: .75rem; color: #6c7a90; margin-top: .3rem; } .trg-fb button { border: 0; background: none; color: #6c7a90; padding: 0 .25rem; }
.trg-chips { display: flex; gap: .35rem; overflow-x: auto; padding: .45rem .6rem; background: #fff; border-top: 1px solid #E4E9F1; }
.trg-chips button { white-space: nowrap; font-size: .78rem; border-radius: 999px; border: 1px solid #E4E9F1; background: #fff; padding: .25rem .7rem; color: #0F2D5C; }
.trg-chips button:hover { background: #EEF3FB; }
.trg-input { display: flex; gap: .4rem; padding: .55rem; border-top: 1px solid #E4E9F1; background: #fff; }
.trg-input input { flex: 1; border: 1px solid #E4E9F1; border-radius: 999px; padding: .45rem .9rem; font-size: .9rem; outline: none; }
.trg-input button { width: 40px; border-radius: 50%; border: 0; background: #FF8500; color: #fff; }
.trg-typing span { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #9aa7bb; margin-right: 3px; animation: trgb 1s infinite; }
.trg-typing span:nth-child(2) { animation-delay: .15s; } .trg-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes trgb { 0%, 80%, 100% { opacity: .3 } 40% { opacity: 1 } }
/* guided tour */
.trg-shade { position: fixed; inset: 0; z-index: 1070; pointer-events: none; }
.trg-ring { position: fixed; z-index: 1071; border-radius: 10px; box-shadow: 0 0 0 4px #FF8500, 0 0 0 9999px rgba(10,31,64,.55); transition: all .25s; pointer-events: none; }
.trg-pop { position: fixed; z-index: 1072; width: 320px; max-width: calc(100vw - 24px); background: #fff; border-radius: 14px; padding: .9rem 1rem;
  box-shadow: 0 16px 40px rgba(0,0,0,.3); font-size: .9rem; }
.trg-pop .trg-step { font-size: .72rem; color: #a85600; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.trg-pop .trg-nav { display: flex; justify-content: space-between; align-items: center; margin-top: .7rem; }
@media (max-width: 576px) { .trg-fab { right: 14px; bottom: 84px; width: 52px; height: 52px; } .trg-panel { right: 12px; left: 12px; width: auto; bottom: 146px; height: calc(100vh - 220px); } }
