#osp_google_translate_element,
.osp-translate-holder,
.goog-te-banner-frame,
.goog-te-gadget,
.skiptranslate {
  display: none !important;
}

body {
  top: 0 !important;
}

.osp-language-global {
  position: fixed;
  top: 92px;
  right: 18px;
  z-index: 68;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 9px;
  border: 1px solid rgba(80, 120, 255, .24);
  border-radius: 999px;
  color: #2153d8;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(16px);
}

.osp-language-select {
  width: auto;
  min-width: 96px;
  max-width: 138px;
}

.osp-language-global select {
  border: 0;
  color: #0f234f;
  background: transparent;
  font-weight: 800;
  outline: 0;
}

.osp-ai-launcher {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 80;
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .32);
  border-radius: 50%;
  background: radial-gradient(circle at 30% 20%, #2be7ff, #236bff 38%, #7b36ff 72%, #061238);
  cursor: pointer;
  transition: transform .2s ease;
}

.osp-ai-launcher:hover {
  transform: translateY(-3px) scale(1.02);
}

.osp-ai-launcher img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.osp-ai-panel {
  position: fixed;
  right: 22px;
  bottom: 96px;
  z-index: 1200;
  width: min(420px, calc(100vw - 28px));
  max-height: min(560px, calc(100dvh - 132px));
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px) scale(.98);
  transition: opacity .2s ease, transform .2s ease;
}

.osp-ai-panel.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.osp-ai-card {
  overflow: hidden;
  max-height: inherit;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(130, 160, 255, .22);
  border-radius: 22px;
  color: #fff;
  background: linear-gradient(145deg, rgba(4, 15, 38, .98), rgba(17, 22, 60, .96));
  backdrop-filter: blur(18px);
}

.osp-ai-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px;
  background: linear-gradient(135deg, rgba(20, 117, 255, .24), rgba(139, 92, 255, .22));
}

.osp-ai-head img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.osp-ai-head h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.1;
}

.osp-ai-head p {
  margin: 3px 0 0;
  color: #bed0f3;
  font-size: 12px;
}

.osp-ai-close,
.osp-ai-minimize {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, .12);
  cursor: pointer;
}

.osp-ai-minimize {
  margin-left: auto;
}

.osp-ai-chat {
  flex: 1 1 auto;
  max-height: none;
  min-height: 210px;
  overflow-y: auto;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 16px;
}

.osp-ai-msg {
  max-width: 90%;
  padding: 11px 13px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 15px;
  color: #dbe8ff;
  background: rgba(255, 255, 255, .08);
  font-size: 14px;
  line-height: 1.55;
  white-space: pre-wrap;
}

.osp-ai-msg.user {
  justify-self: end;
  color: #fff;
  background: linear-gradient(135deg, #1475ff, #8b5cff);
}

.osp-ai-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.osp-ai-chips button {
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  padding: 8px 10px;
  color: #fff;
  background: rgba(255, 255, 255, .08);
  font-size: 12px;
  cursor: pointer;
}

.osp-ai-input {
  display: grid;
  grid-template-columns: 1fr 48px;
  gap: 8px;
  padding: 14px;
  border-top: 1px solid rgba(255, 255, 255, .12);
}

.osp-ai-input input {
  min-height: 46px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 14px;
  padding: 0 13px;
  color: #fff;
  background: rgba(255, 255, 255, .08);
  outline: 0;
}

.osp-ai-input input::placeholder {
  color: rgba(219, 232, 255, .62);
}

.osp-ai-input button {
  border: 0;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, #1475ff, #8b5cff);
  cursor: pointer;
}

@media (max-width: 620px) {
  .osp-language-global {
    top: 76px;
    right: 12px;
    padding: 6px 8px;
  }

  .osp-language-global select {
    max-width: 112px;
    font-size: 12px;
  }

  .osp-ai-launcher {
    right: 14px;
    bottom: 14px;
    width: 58px;
    height: 58px;
  }

  .osp-ai-panel {
    right: 12px;
    bottom: 78px;
    width: calc(100vw - 24px);
    max-height: calc(100dvh - 146px);
  }

  .osp-ai-chat {
    min-height: min(190px, 32dvh);
  }
}
