/* "যোগ্যতা সহকারী" AI chat — jga-* (public pages and student panel) */
.jga { --jga-bottom: 22px; font-family: 'Hind Siliguri', 'Noto Sans Bengali', system-ui, sans-serif; }
.jga-fab { position: fixed; right: 22px; bottom: var(--jga-bottom); z-index: 1060; display: inline-flex; align-items: center; gap: 8px; height: 54px; padding: 0 20px 0 16px; border: 0; border-radius: 999px; cursor: pointer;
    background: linear-gradient(135deg, #7C3AED, #5B3DF5); color: #fff; font-size: 15px; font-weight: 700; box-shadow: 0 16px 30px -12px rgba(91, 61, 245, .75); transition: transform .15s, box-shadow .15s; }
.jga-fab:hover { transform: translateY(-2px); box-shadow: 0 20px 34px -12px rgba(91, 61, 245, .85); }
.jga-fab:focus-visible { outline: 3px solid #C4B5FD; outline-offset: 3px; }
.jga-fab-icon { font-size: 20px; }
.jga.is-open .jga-fab { display: none; }
.jga-panel { position: fixed; right: 22px; bottom: var(--jga-bottom); z-index: 1061; display: flex; flex-direction: column; width: 380px; max-width: calc(100vw - 24px); height: 580px; max-height: calc(100vh - var(--jga-bottom) - 20px);
    background: #fff; border-radius: 22px; overflow: hidden; box-shadow: 0 30px 60px -20px rgba(20, 15, 51, .45), 0 0 0 1px rgba(20, 15, 51, .06); }
.jga-panel[hidden] { display: none; }
.jga-head { display: flex; align-items: center; gap: 10px; padding: 14px 14px 14px 16px; background: linear-gradient(135deg, #140F33, #2A1F66); color: #fff; }
.jga-avatar { width: 38px; height: 38px; flex: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #F97316, #F59E0B); font-weight: 800; font-size: 18px; }
.jga-title { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.jga-title strong { font-size: 15.5px; color: #fff; }
.jga-title small { font-size: 12px; color: #C9C5F5; }
.jga-icon { width: 32px; height: 32px; border: 0; border-radius: 10px; background: rgba(255, 255, 255, .1); color: #fff; font-size: 15px; cursor: pointer; }
.jga-icon:hover { background: rgba(255, 255, 255, .2); }
.jga-body { flex: 1; overflow-y: auto; padding: 16px 14px 6px; background: #F7F7FB; }
.jga-msg { max-width: 86%; margin-bottom: 10px; padding: 10px 13px; border-radius: 16px; font-size: 14.5px; line-height: 1.65; word-break: break-word; }
.jga-msg.is-bot { background: #fff; color: #1F2340; border: 1px solid #ECEBF5; border-bottom-left-radius: 5px; }
.jga-msg.is-me { margin-left: auto; background: #5B3DF5; color: #fff; border-bottom-right-radius: 5px; }
.jga-msg.is-error { background: #FEF2F2; color: #991B1B; border: 1px solid #FECACA; }
.jga-msg a { color: #5B3DF5; font-weight: 700; text-decoration: underline; word-break: break-all; }
.jga-msg.is-me a { color: #fff; }
.jga-msg .jga-cta { display: inline-block; margin-top: 8px; padding: 7px 12px; border-radius: 10px; background: #5B3DF5; color: #fff !important; text-decoration: none; font-size: 13.5px; }
.jga-typing { display: inline-flex; gap: 4px; padding: 12px 14px; }
.jga-typing i { width: 7px; height: 7px; border-radius: 50%; background: #A78BFA; animation: jga-dot 1s infinite ease-in-out; }
.jga-typing i:nth-child(2) { animation-delay: .15s; } .jga-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes jga-dot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.jga-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 10px; }
.jga-chips button { padding: 7px 11px; border-radius: 999px; border: 1px solid #DDD6FE; background: #fff; color: #4C1D95; font-size: 13px; font-weight: 600; cursor: pointer; font-family: inherit; }
.jga-chips button:hover { background: #F5F3FF; }
.jga-handoff { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 12px; border-top: 1px solid #EEF0F5; background: #fff; }
.jga-handoff button { border: 0; background: none; color: #5B3DF5; font-weight: 700; font-size: 13px; cursor: pointer; padding: 4px 2px; font-family: inherit; }
.jga-handoff button.is-suggested { background: #FFF7ED; color: #C2410C; border-radius: 8px; padding: 4px 8px; }
.jga-left { font-size: 11.5px; color: #8A8FAD; }
.jga-form { display: flex; align-items: flex-end; gap: 8px; padding: 8px 12px; background: #fff; }
.jga-form textarea { flex: 1; min-height: 42px; max-height: 110px; resize: none; padding: 10px 12px; border: 1.5px solid #E3E5EF; border-radius: 14px; font-size: 14.5px; font-family: inherit; line-height: 1.4; outline: none; }
.jga-form textarea:focus { border-color: #A78BFA; }
.jga-form button { width: 42px; height: 42px; flex: none; border: 0; border-radius: 12px; background: #5B3DF5; color: #fff; font-size: 17px; cursor: pointer; }
.jga-form button:disabled { opacity: .5; cursor: wait; }
.jga-note { margin: 0; padding: 0 12px 10px; background: #fff; font-size: 11px; color: #8A8FAD; text-align: center; }
@media (max-width: 575px) {
    .jga-fab { right: 14px; height: 50px; padding: 0 16px 0 13px; }
    .jga-fab-text { font-size: 14px; }
    .jga-panel { right: 0; bottom: 0; width: 100vw; max-width: 100vw; height: 100%; max-height: 100%; border-radius: 0; }
}
/* Lead form (name + mobile) inside the chat */
.jga-lead { display: flex; flex-direction: column; gap: 8px; max-width: 92%; }
.jga-lead p { margin: 0; }
.jga-lead input { width: 100%; height: 42px; padding: 0 12px; border: 1.5px solid #E3E5EF; border-radius: 11px; font-size: 14.5px; font-family: inherit; outline: none; }
.jga-lead input:focus { border-color: #A78BFA; }
.jga-lead button { height: 42px; border: 0; border-radius: 11px; background: #5B3DF5; color: #fff; font-weight: 700; font-size: 14.5px; cursor: pointer; font-family: inherit; }
.jga-lead button:disabled { opacity: .6; cursor: wait; }
.jga-lead-err { color: #B91C1C; font-weight: 600; }
.jga-lead-note { color: #8A8FAD; font-size: 11.5px; }
/* Phones: the chat button is a round icon only, so it covers less of the page */
@media (max-width: 575px) {
    .jga-fab { width: 52px; height: 52px; padding: 0; justify-content: center; }
    .jga-fab-text { display: none; }
}

/* Cards, quick replies, ratings, the team's messages, WhatsApp, the nudge bubble */
.jga-card { display: block; margin-top: 10px; padding: 12px 13px; border-radius: 14px; background: #fff; border: 1.5px solid #DDD6FE; color: #1F2340 !important; text-decoration: none !important; font-weight: 400; box-shadow: 0 8px 18px -14px rgba(91, 61, 245, .6); }
.jga-card:hover { border-color: #A78BFA; }
.jga-card strong { display: block; font-size: 15px; }
.jga-card-price { display: block; margin-top: 2px; font-size: 16px; font-weight: 800; color: #5B3DF5; }
.jga-card-price del { font-size: 12.5px; font-weight: 500; color: #9CA3AF; }
.jga-card small { display: block; margin-top: 4px; font-size: 12.5px; color: #6B7090; line-height: 1.5; }
.jga-card em { display: inline-block; margin-top: 6px; padding: 2px 8px; border-radius: 999px; background: #FEF3C7; color: #92400E; font-style: normal; font-size: 11.5px; font-weight: 700; }
.jga-card-btn { display: block; margin-top: 10px; padding: 8px 10px; border-radius: 10px; background: linear-gradient(135deg, #7C3AED, #5B3DF5); color: #fff; text-align: center; font-weight: 700; font-size: 13.5px; }
.jga-quick { margin: -2px 0 10px; }
.jga-rate { display: flex; gap: 4px; margin-top: 6px; }
.jga-rate button { padding: 1px 7px; border: 1px solid #ECEBF5; border-radius: 8px; background: #fff; font-size: 12px; cursor: pointer; opacity: .55; }
.jga-rate button:hover, .jga-rate button.is-on { opacity: 1; border-color: #A78BFA; }
.jga-msg.is-staff { background: #ECFDF5; border-color: #BBF0D4; }
.jga-staff { display: block; margin-bottom: 3px; font-size: 11.5px; font-weight: 800; color: #047857; }
.jga-wa { margin-left: auto; margin-right: 8px; padding: 4px 9px; border-radius: 8px; background: #E7F7EC; color: #15803D; font-size: 12.5px; font-weight: 700; text-decoration: none; }
.jga-nudge { position: fixed; right: 22px; bottom: calc(var(--jga-bottom) + 64px); z-index: 1060; display: flex; align-items: flex-start; gap: 8px; max-width: 260px; padding: 12px 12px 12px 14px; border-radius: 16px 16px 4px 16px; background: #fff; color: #1F2340; font-size: 14px; line-height: 1.5; box-shadow: 0 18px 40px -16px rgba(20, 15, 51, .45), 0 0 0 1px rgba(20, 15, 51, .06); cursor: pointer; animation: jga-pop .35s ease; }
.jga-nudge button { flex: none; border: 0; background: none; color: #9CA3AF; font-size: 13px; cursor: pointer; padding: 0 2px; }
.jga.is-open .jga-nudge { display: none; }
@keyframes jga-pop { from { opacity: 0; transform: translateY(8px) scale(.96); } to { opacity: 1; transform: none; } }
@media (max-width: 575px) { .jga-nudge { right: 14px; bottom: calc(var(--jga-bottom) + 60px); max-width: calc(100vw - 90px); } }
