:root {
  --m18-hs-bg: rgba(8, 15, 28, 0.72);
  --m18-hs-line: rgba(125, 226, 255, 0.36);
  --m18-hs-text: #eef8ff;
  --m18-hs-sub: rgba(238, 248, 255, 0.72);
  --m18-hs-brand: #36d9ff;
  --m18-hs-brand-2: #5cffc9;
}

.m18-hotspot-card-mask {
  position: fixed;
  inset: 0;
  z-index: 99996;
  background: radial-gradient(circle at 70% 30%, rgba(54,217,255,.13), transparent 34%), rgba(0,0,0,.16);
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease;
}

.m18-hotspot-card-mask.show {
  opacity: 1;
  pointer-events: auto;
}

.m18-hotspot-card {
  position: fixed;
  right: 24px;
  bottom: 96px;
  width: min(420px, calc(100vw - 32px));
  z-index: 99997;
  color: var(--m18-hs-text);
  background: linear-gradient(145deg, rgba(10,18,34,.86), rgba(5,10,20,.72));
  border: 1px solid var(--m18-hs-line);
  box-shadow: 0 24px 80px rgba(0,0,0,.38), inset 0 1px 0 rgba(255,255,255,.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: 22px;
  transform: translateY(18px) scale(.98);
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
  transition: all .24s cubic-bezier(.2,.8,.2,1);
}

.m18-hotspot-card.show {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.m18-hotspot-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--m18-hs-brand), var(--m18-hs-brand-2));
}

.m18-hotspot-card__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 20px 14px;
}

.m18-hotspot-card__icon {
  width: 42px;
  height: 42px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,.26), transparent 22%), linear-gradient(135deg, rgba(54,217,255,.95), rgba(92,255,201,.86));
  box-shadow: 0 10px 32px rgba(54,217,255,.24);
  color: #06121f;
  font-size: 20px;
  font-weight: 900;
}

.m18-hotspot-card__title {
  flex: 1;
  min-width: 0;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: .2px;
}

.m18-hotspot-card__type {
  margin-top: 5px;
  font-size: 12px;
  color: var(--m18-hs-sub);
}

.m18-hotspot-card__close {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: var(--m18-hs-text);
  border-radius: 12px;
  cursor: pointer;
}

.m18-hotspot-card__body {
  padding: 0 20px 20px;
  color: var(--m18-hs-sub);
  font-size: 14px;
  line-height: 1.8;
  white-space: pre-wrap;
}

.m18-hotspot-card__actions {
  display: flex;
  gap: 10px;
  padding: 0 20px 20px;
}

.m18-hotspot-card__btn {
  height: 38px;
  padding: 0 16px;
  border: 0;
  border-radius: 14px;
  color: #04131c;
  font-weight: 800;
  cursor: pointer;
  background: linear-gradient(135deg, var(--m18-hs-brand), var(--m18-hs-brand-2));
  box-shadow: 0 12px 30px rgba(54,217,255,.18);
}

.m18-hotspot-card__btn.ghost {
  color: var(--m18-hs-text);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: none;
}

.m18-hotspot-toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  z-index: 99998;
  transform: translateX(-50%) translateY(10px);
  opacity: 0;
  pointer-events: none;
  padding: 12px 16px;
  border-radius: 999px;
  color: #eaf8ff;
  background: rgba(8, 15, 28, .78);
  border: 1px solid rgba(125,226,255,.28);
  box-shadow: 0 18px 50px rgba(0,0,0,.24);
  backdrop-filter: blur(16px);
  transition: all .22s ease;
}

.m18-hotspot-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

@media (max-width: 640px) {
  .m18-hotspot-card {
    left: 12px;
    right: 12px;
    bottom: 82px;
    width: auto;
    border-radius: 20px;
  }

  .m18-hotspot-card__head {
    padding: 18px 16px 12px;
  }

  .m18-hotspot-card__body,
  .m18-hotspot-card__actions {
    padding-left: 16px;
    padding-right: 16px;
  }
}
