.erotikchat-popup[hidden] {
  display: none !important;
}

.erotikchat-popup {
  position: fixed;
  inset: 0;
  z-index: 99999;
  font-family: 'Outfit', 'Varela Round', Arial, sans-serif;
}

.erotikchat-popup *,
.erotikchat-popup *::before,
.erotikchat-popup *::after {
  box-sizing: border-box;
}

.erotikchat-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 3, 8, 0.76);
  backdrop-filter: blur(10px);
}

.erotikchat-popup__dialog {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(900px, calc(100vw - 32px));
  max-height: calc(100svh - 32px);
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: clamp(22px, 4vw, 42px);
  align-items: center;
  padding: clamp(24px, 4vw, 44px);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  background:
    radial-gradient(circle at 88% 18%, rgba(156, 39, 176, 0.34), transparent 34%),
    radial-gradient(circle at 5% 0%, rgba(233, 30, 99, 0.28), transparent 34%),
    linear-gradient(145deg, rgba(10, 10, 15, 0.98), rgba(15, 15, 24, 0.98));
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.58), 0 0 65px rgba(233, 30, 99, 0.2);
  opacity: 0;
  transform: translate(-50%, -45%) scale(0.96);
  transition: opacity 260ms ease, transform 260ms ease;
}

.erotikchat-popup.is-visible .erotikchat-popup__dialog {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.erotikchat-popup__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.82);
  cursor: pointer;
  font-size: 26px;
  line-height: 38px;
  text-align: center;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.erotikchat-popup__close:hover,
.erotikchat-popup__close:focus {
  background: rgba(233, 30, 99, 0.26);
  color: #fff;
  outline: none;
  transform: rotate(4deg);
}

.erotikchat-popup__copy {
  min-width: 0;
}

.erotikchat-popup__kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
  color: #f48fb1;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.erotikchat-popup__live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #4caf50;
  box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7);
  animation: erotikchatPulse 1.8s infinite;
}

.erotikchat-popup__copy h2 {
  margin: 0;
  max-width: 540px;
  color: #fff;
  font-family: 'Outfit', 'Patua One', Arial, sans-serif;
  font-size: clamp(2rem, 4.5vw, 3.65rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: 0;
  text-transform: none;
}

.erotikchat-popup__copy p {
  max-width: 500px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.6;
}

.erotikchat-popup__features {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 22px;
}

.erotikchat-popup__features span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.86rem;
}

.erotikchat-popup__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  margin-top: 28px;
  padding: 0 24px;
  border-radius: 999px;
  background: linear-gradient(135deg, #e91e63 0%, #9c27b0 100%);
  color: #fff !important;
  font-weight: 800;
  text-decoration: none !important;
  box-shadow: 0 12px 34px rgba(233, 30, 99, 0.34);
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.erotikchat-popup__cta:hover,
.erotikchat-popup__cta:focus {
  color: #fff !important;
  filter: brightness(1.07);
  outline: none;
  transform: translateY(-2px);
  box-shadow: 0 16px 42px rgba(233, 30, 99, 0.45);
}

.erotikchat-popup__cta span {
  font-size: 1.25rem;
  line-height: 1;
}

.erotikchat-popup__visual {
  position: relative;
  min-height: 380px;
}

.erotikchat-popup__visual::before {
  content: '';
  position: absolute;
  inset: 34px -8px 10px 22px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(233, 30, 99, 0.34), rgba(156, 39, 176, 0.16));
  transform: rotate(6deg);
}

.erotikchat-popup__phone {
  position: relative;
  width: min(310px, 100%);
  min-height: 380px;
  margin-left: auto;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 28px;
  background: rgba(13, 13, 20, 0.95);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.38);
  animation: erotikchatFloat 5s ease-in-out infinite;
}

.erotikchat-popup__phone-top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.erotikchat-popup__phone-top strong,
.erotikchat-popup__phone-top small {
  display: block;
}

.erotikchat-popup__phone-top strong {
  color: #fff;
  font-size: 1rem;
}

.erotikchat-popup__phone-top small {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.54);
  font-size: 0.78rem;
}

.erotikchat-popup__avatar {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 50%;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(135deg, #e91e63, #9c27b0);
}

.erotikchat-popup__avatar::after {
  content: '';
  position: absolute;
  right: 1px;
  bottom: 2px;
  width: 10px;
  height: 10px;
  border: 2px solid #0d0d14;
  border-radius: 50%;
  background: #4caf50;
}

.erotikchat-popup__avatar img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.erotikchat-popup__avatar--pink {
  background: linear-gradient(135deg, #ff4c88, #e91e63);
}

.erotikchat-popup__avatar--violet {
  background: linear-gradient(135deg, #b75cff, #7b2cff);
}

.erotikchat-popup__avatar--blue {
  background: linear-gradient(135deg, #4aa3ff, #e91e63);
}

.erotikchat-popup__message {
  width: fit-content;
  max-width: 86%;
  margin-top: 18px;
  padding: 12px 14px;
  border-radius: 17px;
  font-size: 0.92rem;
  line-height: 1.35;
}

.erotikchat-popup__message--incoming {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.88);
}

.erotikchat-popup__message--outgoing {
  margin-left: auto;
  background: linear-gradient(135deg, #e91e63, #9c27b0);
  color: #fff;
  box-shadow: 0 10px 22px rgba(233, 30, 99, 0.28);
}

.erotikchat-popup__profile-row {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.055);
}

.erotikchat-popup__profile-row .erotikchat-popup__avatar {
  width: 38px;
  height: 38px;
  flex-basis: 38px;
  margin-right: -16px;
  border: 2px solid #12121b;
  font-size: 0.9rem;
}

.erotikchat-popup__typing {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 28px;
  margin-left: auto;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.erotikchat-popup__typing i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  animation: erotikchatTyping 1.2s ease-in-out infinite;
}

.erotikchat-popup__typing i:nth-child(2) {
  animation-delay: 0.15s;
}

.erotikchat-popup__typing i:nth-child(3) {
  animation-delay: 0.3s;
}

.erotikchat-popup-is-open {
  overflow: hidden;
}

@keyframes erotikchatPulse {
  0% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.6); }
  70% { box-shadow: 0 0 0 9px rgba(76, 175, 80, 0); }
  100% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0); }
}

@keyframes erotikchatFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes erotikchatTyping {
  0%, 100% { opacity: 0.35; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-3px); }
}

@media (max-width: 760px) {
  .erotikchat-popup__features {
    display: none;
  }

  .erotikchat-popup__dialog {
    width: min(420px, calc(100vw - 22px));
    max-height: calc(100svh - 22px);
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 28px 22px 22px;
    overflow-y: auto;
    border-radius: 18px;
  }

  .erotikchat-popup__visual {
    min-height: 236px;
    order: -1;
  }

  .erotikchat-popup__visual::before {
    inset: 28px 24px 4px 54px;
    border-radius: 22px;
  }

  .erotikchat-popup__phone {
    width: min(260px, 92%);
    min-height: 296px;
    margin: 0 auto;
    border-radius: 22px;
  }

  .erotikchat-popup__message {
    margin-top: 12px;
    font-size: 0.82rem;
  }

  .erotikchat-popup__profile-row {
    padding: 10px;
  }

  .erotikchat-popup__copy h2,
  .erotikchat-popup__copy p {
    max-width: none;
  }

  .erotikchat-popup__cta {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .erotikchat-popup__dialog {
    padding: 26px 18px 18px;
  }

  .erotikchat-popup__features span {
    font-size: 0.78rem;
    padding-inline: 10px;
  }

  .erotikchat-popup__copy h2 {
    font-size: 1.95rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .erotikchat-popup__dialog,
  .erotikchat-popup__close,
  .erotikchat-popup__cta,
  .erotikchat-popup__phone,
  .erotikchat-popup__live-dot,
  .erotikchat-popup__typing i {
    animation: none !important;
    transition: none !important;
  }
}
