/* CLIPHORIUM_BOT_WIDGET_CSS_V1 (dark glass + fixed right + no jump) */
:root{
  --chBot-bg: rgba(11, 11, 18, 0.74);
  --chBot-bg2: rgba(16, 16, 28, 0.82);
  --chBot-border: rgba(124, 92, 255, 0.26);
  --chBot-border2: rgba(68, 187, 255, 0.22);
  --chBot-text: rgba(255,255,255,.92);
  --chBot-muted: rgba(255,255,255,.62);
  --chBot-line: rgba(255,255,255,.10);

  /* light gold accent (no brown) */
  --chBot-gold: rgba(212, 175, 55, 0.90);
  --chBot-goldSoft: rgba(212, 175, 55, 0.22);

  --chBot-shadow: 0 24px 70px rgba(0,0,0,.62);
  --chBot-radius: 18px;
  --chBot-radius2: 14px;
  --chBot-font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
}

/* launcher */
.ch-bot2-launch{
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 99999;
  font-family: var(--chBot-font);
}
.ch-bot2-btn{
  width: 56px;
  height: 56px;
  border-radius: 999px;
  border: 1px solid rgba(124, 92, 255, 0.32);
  background: radial-gradient(120% 140% at 30% 20%, rgba(124,92,255,.32), rgba(11,11,18,.86));
  box-shadow: 0 14px 40px rgba(0,0,0,.55);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform .12s ease, border-color .2s ease, filter .2s ease;
}
.ch-bot2-btn:hover{
  transform: translateY(-1px);
  border-color: rgba(68,187,255,.38);
  filter: brightness(1.06);
}
.ch-bot2-btn:active{
  transform: translateY(0px) scale(.98);
}
.ch-bot2-ico{
  width: 22px;
  height: 22px;
  display: block;
  filter:
    drop-shadow(0 0 10px rgba(124,92,255,.38))
    drop-shadow(0 0 18px rgba(68,187,255,.18));
}
.ch-bot2-badge{
  position: absolute;
  right: -6px;
  top: -6px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.95), rgba(212,175,55,.90));
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: 0 0 0 3px rgba(11,11,18,.8);
}

/* panel */
#chBot2Panel{
  position: fixed;
  right: 18px;
  bottom: 86px;
  z-index: 99999;

  width: min(440px, calc(100vw - 24px));
  height: min(620px, calc(100vh - 140px));

  display: none;
  overflow: hidden;
  border-radius: var(--chBot-radius);
  border: 1px solid rgba(124, 92, 255, 0.26);
  background: linear-gradient(180deg, var(--chBot-bg), var(--chBot-bg2));
  box-shadow: var(--chBot-shadow);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}
#chBot2Panel[data-open="1"]{ display: block; }

.ch-bot2-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 12px 12px 10px 12px;
  border-bottom: 1px solid var(--chBot-line);
  background:
    radial-gradient(120% 150% at 10% 0%, rgba(124,92,255,.26), rgba(0,0,0,0)),
    radial-gradient(120% 160% at 80% 10%, rgba(68,187,255,.16), rgba(0,0,0,0));
}
.ch-bot2-title{
  display:flex;
  flex-direction:column;
  gap:2px;
}
.ch-bot2-title strong{
  color: var(--chBot-text);
  font-size: 13.5px;
  letter-spacing:.2px;
}
.ch-bot2-title span{
  color: var(--chBot-muted);
  font-size: 12px;
}

.ch-bot2-actions{
  display:flex;
  gap:8px;
}
.ch-bot2-iconbtn{
  width: 34px;
  height: 34px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: var(--chBot-text);
  cursor: pointer;
  display:grid;
  place-items:center;
  transition: transform .12s ease, background .2s ease, border-color .2s ease;
  position: relative;
}
.ch-bot2-iconbtn:hover{
  background: rgba(255,255,255,.10);
  border-color: rgba(68,187,255,.20);
  transform: translateY(-1px);
}
.ch-bot2-iconbtn:active{ transform: translateY(0px) scale(.98); }

/* tooltip */
.ch-bot2-iconbtn[data-tip]::after{
  content: attr(data-tip);
  position:absolute;
  top: -34px;
  right: 0;
  padding: 6px 8px;
  border-radius: 10px;
  font-size: 11.5px;
  color: rgba(255,255,255,.92);
  background: rgba(0,0,0,.55);
  border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity .15s ease, transform .15s ease;
  white-space: nowrap;
}
.ch-bot2-iconbtn:hover::after{
  opacity: 1;
  transform: translateY(0);
}

/* body */
.ch-bot2-body{
  padding: 12px;
  height: calc(100% - 148px);
  overflow: auto;
}
.ch-bot2-msg{
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.06);
  border-radius: 16px;
  padding: 10px 10px;
  margin: 0 0 10px 0;
  color: var(--chBot-text);
  font-size: 13px;
  line-height: 1.35;
}
.ch-bot2-msg.bot{
  border-color: rgba(124,92,255,.18);
  box-shadow: inset 0 0 0 1px rgba(68,187,255,.06);
}
.ch-bot2-msg.user{
  background: rgba(212,175,55,.08);
  border-color: rgba(212,175,55,.16);
}
.ch-bot2-meta{
  color: var(--chBot-muted);
  font-size: 11.5px;
  margin-top: 6px;
}

/* quick chips */
.ch-bot2-quick{
  display:flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 12px 12px 12px;
  border-top: 1px solid var(--chBot-line);
}
.ch-bot2-chip{
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.86);
  font-size: 12px;
  cursor:pointer;
  transition: background .2s ease, border-color .2s ease, transform .12s ease;
}
.ch-bot2-chip:hover{
  background: rgba(255,255,255,.10);
  border-color: rgba(68,187,255,.22);
  transform: translateY(-1px);
}

/* input */
.ch-bot2-inputbar{
  padding: 10px 12px 12px 12px;
  display:flex;
  gap:10px;
  border-top: 1px solid var(--chBot-line);
  background: rgba(0,0,0,.12);
}
.ch-bot2-input{
  flex: 1;
  resize: none;
  min-height: 38px;
  max-height: 120px;
  padding: 9px 10px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: var(--chBot-text);
  outline: none;
  font-size: 13px;
}
.ch-bot2-input:focus{
  border-color: rgba(124,92,255,.40);
  box-shadow: 0 0 0 3px rgba(124,92,255,.14);
}
.ch-bot2-send{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(124,92,255,.28);
  background:
    radial-gradient(130% 140% at 30% 20%, rgba(68,187,255,.18), rgba(124,92,255,.26));
  color: rgba(255,255,255,.92);
  cursor:pointer;
  transition: transform .12s ease, filter .2s ease, border-color .2s ease;
  display:grid;
  place-items:center;
}
.ch-bot2-send:hover{
  filter: brightness(1.06);
  border-color: rgba(68,187,255,.30);
  transform: translateY(-1px);
}
.ch-bot2-send:active{ transform: translateY(0px) scale(.98); }

/* mobile safety */
@media (max-width: 520px){
  #chBot2Panel{
    right: 12px;
    left: 12px;
    width: auto;
    bottom: 84px;
    height: min(70vh, 560px);
  }
  .ch-bot2-launch{ right: 12px; bottom: 12px; }
}

/* --- Bot header logo (Cliphorium) --- */
.ch-bot2-brand{
  display:flex;
  align-items:center;
  gap:10px;
}
.ch-bot2-logo{
  width: 28px;
  height: 28px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.06);
  padding: 5px;
  box-shadow:
    0 0 0 1px rgba(124,92,255,.10) inset,
    0 10px 26px rgba(0,0,0,.35);
  object-fit: contain;
}

/* ===== CLIPHORIUM_BOT_LOGO_FORCE_V1 (make logo visible no matter what) ===== */
.ch-bot2-head{
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap: 12px !important;
}

.ch-bot2-brand{
  display:flex !important;
  align-items:center !important;
  gap:10px !important;
  min-width: 0;
}

.ch-bot2-logo{
  display:block !important;
  width: 34px !important;
  height: 34px !important;
  opacity: 1 !important;
  visibility: visible !important;

  border-radius: 10px !important;
  padding: 5px !important;

  background: rgba(255,255,255,.06) !important;
  border: 1px solid rgba(255,255,255,.14) !important;

  object-fit: contain !important;

  filter:
    drop-shadow(rgba(245,214,106,.35) 0px 0px 8px)
    drop-shadow(rgba(124,92,255,.18) 0px 0px 12px) !important;
}
