/* ==========================================================================
   SebaGhar — Coming Soon Modal
   A single reusable dialog. Phase 1 wires it to the hero "Become a
   Partner" CTA only; later phases will point more triggers at the same
   component via [data-coming-soon-trigger].
   ========================================================================== */

.modal {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-5);
  visibility: hidden;
}

.modal.is-open {
  visibility: visible;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity var(--duration-base) var(--ease-out);
}

.modal.is-open .modal__backdrop {
  opacity: 1;
}

.modal__panel {
  position: relative;
  width: 100%;
  max-width: 400px;
  background-color: var(--color-surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  padding: var(--space-8) var(--space-6) var(--space-6);
  text-align: center;
  opacity: 0;
  transform: translateY(16px) scale(0.97);
  transition: opacity var(--duration-base) var(--ease-out),
    transform var(--duration-base) var(--ease-out);
}

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

.modal__close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
}

.modal__close:hover {
  background-color: var(--color-surface-sunken);
  color: var(--color-text);
}

.modal__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--space-5);
  border-radius: var(--radius-lg);
  background-color: var(--color-accent-100);
  color: var(--color-accent-600);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal__icon svg {
  width: 26px;
  height: 26px;
}

.modal__title {
  font-size: var(--fs-xl);
  margin-bottom: var(--space-3);
}

.modal__message {
  color: var(--color-text-muted);
  line-height: var(--lh-relaxed);
  margin-bottom: var(--space-7);
}

@media (prefers-reduced-motion: reduce) {
  .modal__backdrop,
  .modal__panel {
    transition: none;
  }
}
