#bgg-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 2147483647;
  width: 58px;
  height: 58px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #1e6fd9, #2e8aff);
  box-shadow: 0 4px 18px rgba(30, 111, 217, .55);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  animation: bgg-pulse 2.8s infinite;
}

#bgg-fab img {
  width: 58%;
  height: 58%;
  object-fit: contain;
}

#bgg-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: #ff3b3b;
  border: 2.5px solid #fff;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes bgg-pulse {
  0% { box-shadow: 0 4px 18px rgba(30, 111, 217, .55), 0 0 0 0 rgba(46, 138, 255, .5); }
  70% { box-shadow: 0 4px 18px rgba(30, 111, 217, .55), 0 0 0 12px rgba(46, 138, 255, 0); }
  100% { box-shadow: 0 4px 18px rgba(30, 111, 217, .55), 0 0 0 0 rgba(46, 138, 255, 0); }
}

#bgg-panel {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2147483646;
  height: 0;
  overflow: hidden;
  transition: height .28s cubic-bezier(.4, 0, .2, 1);
  background: #06111e;
  display: flex;
  flex-direction: column;
  font-family: var(--tj-ff-body, "Plus Jakarta Sans", system-ui, sans-serif);
}

#bgg-panel.bgg-open {
  height: 100dvh;
}

.bgg-brand {
  background: linear-gradient(135deg, #060f1a, #091929);
  padding: 8px 14px 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-bottom: 1px solid #132a42;
  flex-shrink: 0;
}

.bgg-brand img {
  max-width: 138px;
  max-height: 24px;
  object-fit: contain;
  filter: drop-shadow(0 0 4px rgba(46, 138, 255, .2));
}

.bgg-bsep {
  width: 1px;
  height: 12px;
  background: #132a42;
}

.bgg-btag {
  font-size: 9px;
  color: #6b87a8;
  letter-spacing: .8px;
  text-transform: uppercase;
  font-weight: 600;
}

.bgg-hdr {
  background: #071422;
  padding: 9px 12px;
  display: flex;
  align-items: center;
  gap: 9px;
  border-bottom: 1px solid #132a42;
  flex-shrink: 0;
}

.bgg-avw {
  position: relative;
}

.bgg-av {
  width: 37px;
  height: 37px;
  border-radius: 50%;
  background: #071422;
  border: 2px solid #1e6fd9;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(46, 138, 255, .28);
  flex-shrink: 0;
}

.bgg-av img {
  width: 73%;
  height: 73%;
  object-fit: contain;
}

.bgg-dot {
  width: 10px;
  height: 10px;
  background: #22c55e;
  border-radius: 50%;
  border: 2px solid #071422;
  position: absolute;
  right: 0;
  bottom: 0;
}

.bgg-hi {
  flex: 1;
  min-width: 0;
}

.bgg-hn {
  font-size: 13px;
  font-weight: 700;
  color: #e2ebf6;
}

.bgg-hs {
  font-size: 10.5px;
  color: #22c55e;
  font-weight: 500;
  margin-top: 1px;
}

.bgg-hbtns {
  display: flex;
  align-items: center;
  gap: 7px;
}

.bgg-cbtn,
.bgg-xbtn,
.bgg-mi,
.bgg-chip,
.bgg-sbtn,
.bgg-ccl,
.bgg-cta {
  font-family: inherit;
}

.bgg-cbtn {
  background: rgba(30, 111, 217, .15);
  border: 1px solid rgba(46, 138, 255, .3);
  color: #2e8aff;
  padding: 5px 9px;
  border-radius: 16px;
  font-size: 10.5px;
  font-weight: 700;
  cursor: pointer;
}

.bgg-xbtn,
.bgg-ccl {
  background: rgba(255, 255, 255, .06);
  border: 1px solid #132a42;
  color: #8aa2bd;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bgg-xbtn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

.bgg-chat {
  flex: 1;
  overflow-y: auto;
  background: #091929;
  padding: 10px 10px 6px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  scroll-behavior: smooth;
  min-height: 0;
}

.bgg-chat::-webkit-scrollbar {
  width: 3px;
}

.bgg-chat::-webkit-scrollbar-thumb {
  background: #132a42;
  border-radius: 3px;
}

.bgg-ds {
  text-align: center;
  margin: 0 0 5px;
}

.bgg-ds span {
  background: rgba(9, 25, 41, .9);
  color: #6b87a8;
  font-size: 10px;
  padding: 2px 9px;
  border-radius: 8px;
  border: 1px solid #132a42;
}

.bgg-row {
  display: flex;
  max-width: 88%;
}

.bgg-row.out {
  align-self: flex-end;
}

.bgg-row.in {
  align-self: flex-start;
}

.bgg-bbl {
  padding: 9px 11px 6px;
  border-radius: 16px;
  font-size: 13px;
  line-height: 1.6;
  word-break: break-word;
  max-width: 100%;
  box-sizing: border-box;
}

.bgg-bbl.out {
  background: #1758c4;
  color: #fff;
  border-bottom-right-radius: 4px;
  box-shadow: 0 2px 8px rgba(23, 88, 196, .3);
}

.bgg-bbl.in {
  background: #0c2038;
  color: #e2ebf6;
  border-bottom-left-radius: 4px;
  border: 1px solid #132a42;
}

.bgg-ts {
  font-size: 9.5px;
  color: #6b87a8;
  text-align: right;
  margin-top: 5px;
  opacity: .65;
}

.bgg-bullets,
.bgg-menu,
.bgg-ctas {
  display: flex;
  flex-direction: column;
}

.bgg-bullets {
  gap: 4px;
  margin: 6px 0 3px;
}

.bgg-bullets div {
  font-size: 12.5px;
  line-height: 1.5;
}

.bgg-menu {
  gap: 5px;
  margin-top: 3px;
}

.bgg-mi {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  background: rgba(255, 255, 255, .03);
  border: 1px solid #132a42;
  color: #b8ceea;
  padding: 9px 11px;
  border-radius: 12px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
  text-align: left;
  box-sizing: border-box;
}

.bgg-mi:hover {
  background: rgba(30, 111, 217, .1);
  border-color: rgba(46, 138, 255, .4);
  color: #2e8aff;
}

.bgg-bot {
  background: #071422;
  border-top: 1px solid #132a42;
  flex-shrink: 0;
}

.bgg-chips {
  display: flex;
  gap: 5px;
  padding: 6px 10px 5px;
  overflow-x: auto;
  scrollbar-width: none;
}

.bgg-chips::-webkit-scrollbar {
  display: none;
}

.bgg-chip {
  background: rgba(255, 255, 255, .04);
  border: 1px solid #132a42;
  color: #8aa2bd;
  padding: 4px 10px;
  border-radius: 18px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all .15s;
}

.bgg-chip:hover {
  border-color: rgba(46, 138, 255, .5);
  color: #2e8aff;
  background: rgba(46, 138, 255, .07);
}

.bgg-ir {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  padding: 2px 8px 8px;
}

.bgg-iw {
  flex: 1;
  background: #091929;
  border: 1px solid #132a42;
  border-radius: 20px;
  padding: 7px 12px;
  display: flex;
  align-items: flex-end;
}

.bgg-ta {
  flex: 1;
  background: transparent;
  border: 0;
  outline: 0;
  color: #e2ebf6;
  font-family: inherit;
  font-size: 13px;
  resize: none;
  max-height: 80px;
  line-height: 1.5;
  display: block;
  width: 100%;
  padding: 0;
}

.bgg-ta::placeholder {
  color: #5d7691;
}

.bgg-sbtn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1e6fd9, #2e8aff);
  border: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(46, 138, 255, .22);
}

.bgg-sbtn:disabled {
  background: rgba(30, 111, 217, .2);
  cursor: not-allowed;
  box-shadow: none;
}

.bgg-typing {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 9px 12px;
  background: #0c2038;
  border-radius: 16px;
  border-bottom-left-radius: 4px;
  width: fit-content;
  align-self: flex-start;
  border: 1px solid #132a42;
}

.bgg-d {
  width: 6px;
  height: 6px;
  background: #6b87a8;
  border-radius: 50%;
}

.bgg-d1 { animation: bgg-dt 1.2s 0ms infinite; }
.bgg-d2 { animation: bgg-dt 1.2s 160ms infinite; }
.bgg-d3 { animation: bgg-dt 1.2s 320ms infinite; }

@keyframes bgg-dt {
  0%, 60%, 100% { transform: translateY(0); opacity: .35; }
  30% { transform: translateY(-5px); opacity: 1; }
}

.bgg-ctas {
  gap: 7px;
  margin-top: 10px;
}

.bgg-cta {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  border-radius: 12px;
  text-decoration: none;
  cursor: pointer;
  width: 100%;
  box-sizing: border-box;
  text-align: left;
}

.bgg-cta.wa {
  background: rgba(34, 197, 94, .09);
  border: 1.5px solid rgba(34, 197, 94, .28);
}

.bgg-cta.ca {
  background: rgba(30, 111, 217, .1);
  border: 1.5px solid rgba(46, 138, 255, .28);
}

.bgg-ctic {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
}

.bgg-ctic.wa { background: rgba(34, 197, 94, .14); }
.bgg-ctic.ca { background: rgba(46, 138, 255, .12); }

.bgg-ctlbl {
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.3;
}

.bgg-ctsub {
  font-size: 10.5px;
  color: #6b87a8;
  margin-top: 1px;
}

#bgg-cm {
  position: fixed;
  inset: 0;
  z-index: 2147483648;
  background: rgba(0, 0, 0, .76);
  display: none;
  align-items: flex-end;
  justify-content: center;
  backdrop-filter: blur(5px);
}

#bgg-cm.bgg-open {
  display: flex;
}

.bgg-cs {
  width: 100%;
  max-width: 420px;
  background: #071422;
  border-radius: 22px 22px 0 0;
  border: 1.5px solid #132a42;
  border-bottom: 0;
  box-shadow: 0 -20px 50px rgba(0, 0, 0, .55);
  overflow: hidden;
  padding-bottom: env(safe-area-inset-bottom, 12px);
  font-family: var(--tj-ff-body, "Plus Jakarta Sans", system-ui, sans-serif);
}

.bgg-ch {
  background: linear-gradient(135deg, #091929, #0c2038);
  padding: 13px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #132a42;
}

.bgg-cav {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1e6fd9, #2e8aff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
}

.bgg-ct {
  font-size: 14px;
  font-weight: 800;
  color: #e2ebf6;
}

.bgg-csb {
  font-size: 10.5px;
  color: #6b87a8;
  margin-top: 1px;
}

.bgg-ccl {
  width: 30px;
  height: 30px;
  border-radius: 50%;
}

.bgg-cb {
  padding: 16px 16px 20px;
}

.bgg-cd {
  font-size: 13px;
  color: #8aa2bd;
  line-height: 1.7;
  margin: 0 0 14px;
}

.bgg-clink {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  padding: 13px 0;
  border-radius: 13px;
  background: linear-gradient(135deg, #1e6fd9, #2e8aff);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(46, 138, 255, .28);
}

.bgg-clink:hover {
  color: #fff;
}

.bgg-chint {
  text-align: center;
  margin: 9px 0 0;
  font-size: 10.5px;
  color: #58718d;
}

@media (min-width: 480px) {
  #bgg-panel {
    left: auto;
    right: 16px;
    bottom: 88px;
    width: 360px;
    border-radius: 20px;
    box-shadow: none;
  }

  #bgg-panel.bgg-open {
    height: 520px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .45), 0 0 0 1px rgba(46, 138, 255, .1);
  }
}
