/* Price popup — Apple-style glass modal (Transferiste) */
:root {
  --popup-overlay: rgba(15, 23, 42, 0.45);
  --popup-glass: rgba(255, 255, 255, 0.72);
  --popup-glass-border: rgba(255, 255, 255, 0.55);
  --popup-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
  --popup-text: #0f172a;
  --popup-muted: #64748b;
  --popup-accent: #16a34a;
  --popup-accent-hover: #15803d;
  --popup-radius: 20px;
  --popup-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

.price-popup {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  box-sizing: border-box;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--popup-ease), visibility 0.35s;
}

.price-popup.is-visible {
  opacity: 1;
  visibility: visible;
}

.price-popup__backdrop {
  position: absolute;
  inset: 0;
  background: var(--popup-overlay);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.price-popup__dialog {
  position: relative;
  width: 100%;
  max-width: 400px;
  max-height: min(90vh, 640px);
  overflow-y: auto;
  transform: translateY(16px) scale(0.98);
  opacity: 0;
  transition: transform 0.45s var(--popup-ease), opacity 0.4s var(--popup-ease);
}

.price-popup.is-visible .price-popup__dialog {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.price-popup__surface {
  position: relative;
  border-radius: var(--popup-radius);
  background: var(--popup-glass);
  border: 1px solid var(--popup-glass-border);
  box-shadow: var(--popup-shadow);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  padding: 1.75rem 1.5rem 1.5rem;
}

@supports not (backdrop-filter: blur(1px)) {
  .price-popup__surface {
    background: rgba(255, 255, 255, 0.95);
  }
}

.price-popup__close {
  position: absolute;
  top: 0.875rem;
  right: 0.875rem;
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  color: var(--popup-muted);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.price-popup__close:hover {
  background: rgba(15, 23, 42, 0.1);
  color: var(--popup-text);
}

.price-popup__icon {
  text-align: center;
  font-size: 2.25rem;
  line-height: 1;
  margin-bottom: 0.75rem;
  user-select: none;
}

.price-popup__title {
  margin: 0 0 0.625rem;
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--popup-text);
  text-align: center;
  line-height: 1.25;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.price-popup__desc {
  margin: 0 0 1.25rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--popup-muted);
  text-align: center;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.price-popup__trust {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.price-popup__trust li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--popup-text);
  opacity: 0.9;
}

.price-popup__trust li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--popup-accent);
  flex-shrink: 0;
}

.price-popup__cta {
  display: block;
  width: 100%;
  padding: 0.875rem 1.25rem;
  border: none;
  border-radius: 14px;
  background: var(--popup-accent);
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  box-sizing: border-box;
  transition: transform 0.2s var(--popup-ease), box-shadow 0.2s, background 0.2s;
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.35);
}

.price-popup__cta:hover {
  background: var(--popup-accent-hover);
  transform: scale(1.02);
  box-shadow: 0 8px 24px rgba(22, 163, 74, 0.4);
}

.price-popup__cta:active {
  transform: scale(0.99);
}

.price-popup__response-note {
  margin: 0.625rem 0 0;
  font-size: 0.75rem;
  color: var(--popup-muted);
  text-align: center;
  line-height: 1.4;
}

.price-popup__dismiss {
  display: block;
  width: 100%;
  margin-top: 1rem;
  padding: 0.5rem;
  border: none;
  background: transparent;
  color: var(--popup-muted);
  font-size: 0.8125rem;
  cursor: pointer;
  font-family: inherit;
  transition: color 0.2s;
}

.price-popup__dismiss:hover {
  color: var(--popup-text);
}

@media (max-width: 480px) {
  .price-popup__surface {
    padding: 1.5rem 1.125rem 1.25rem;
  }

  .price-popup__dialog {
    max-width: none;
  }

  .price-popup__title {
    font-size: 1.25rem;
  }
}
