.wli-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(11, 11, 12, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  overflow-y: auto;
}

.wli-overlay.open {
  opacity: 1;
  visibility: visible;
}

.wli-modal {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: min(92vh, 920px);
  overflow-y: auto;
  background: #0b0b0c;
  color: #fff;
  border: 1px solid rgba(233, 231, 225, 0.14);
  border-radius: 12px;
  box-shadow: 0 32px 100px rgba(0, 0, 0, 0.55);
  transform: translateY(16px) scale(0.98);
  opacity: 0;
  transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.45s ease;
}

.wli-overlay.open .wli-modal {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.wli-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.75);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s, border-color 0.25s, color 0.25s;
  z-index: 2;
}

.wli-close:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
}

.wli-close svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
}

.wli-inner {
  padding: 36px 32px 28px;
}

.wli-brand {
  text-align: center;
  margin-bottom: 24px;
}

.wli-logo {
  display: block;
  height: clamp(28px, 6vw, 36px);
  width: auto;
  margin: 0 auto 16px;
  opacity: 0.95;
}

.wli-title {
  font-size: clamp(20px, 4vw, 28px);
  font-weight: 500;
  letter-spacing: 0.22em;
  line-height: 1.2;
  margin-bottom: 8px;
  text-transform: uppercase;
  color: #e9e7e1;
}

.wli-subtitle {
  font-size: clamp(14px, 2.2vw, 16px);
  font-weight: 400;
  color: #e9e7e1;
  line-height: 1.45;
  letter-spacing: 0.04em;
}

.wli-body {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.78);
}

.wli-body p {
  margin: 0 0 14px;
}

.wli-body p:last-child {
  margin-bottom: 0;
}

.wli-section {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.wli-section-title {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  color: #e9e7e1;
  margin-bottom: 14px;
}

.wli-section p {
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.78);
}

.wli-section p:last-child {
  margin-bottom: 0;
}

.wli-actions {
  display: flex;
  flex-direction: column-reverse;
  gap: 10px;
  margin-top: 0;
  padding: 0 32px 32px;
}

.wli-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 15px 22px;
  font-family: inherit;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.35s, color 0.35s, border-color 0.35s;
  border: 1px solid transparent;
}

.wli-btn-primary {
  background: #fff;
  color: #0b0b0c;
  border-color: #fff;
}

.wli-btn-primary:hover {
  background: #e9e7e1;
  border-color: #e9e7e1;
}

.wli-btn-secondary {
  background: transparent;
  color: rgba(255, 255, 255, 0.65);
  border-color: rgba(255, 255, 255, 0.18);
}

.wli-btn-secondary:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

@media (min-width: 520px) {
  .wli-actions {
    flex-direction: row;
    justify-content: flex-end;
  }

  .wli-btn {
    width: auto;
    min-width: 140px;
  }

  .wli-btn-primary {
    min-width: 180px;
  }
}

@media (max-width: 519px) {
  .wli-inner {
    padding: 32px 22px 22px;
  }

  .wli-actions {
    padding: 0 22px 24px;
  }
}

body.wli-open {
  overflow: hidden;
}
