/* ==========================================================================
   SANLILAS - GLOBAL HAUTE COUTURE LUXURY CUSTOM MODALS & DIALOG SYSTEM
   Replaces native browser alert() and confirm() dialogs site-wide.
   ========================================================================== */

.sanlilas-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 10, 6, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  padding: 1.5rem;
}

.sanlilas-modal-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

.sanlilas-modal-card {
  background: #FAF7F2;
  border: 1.5px solid #C8A46A;
  border-radius: 18px;
  width: 100%;
  max-width: 480px;
  padding: 2.6rem 2.2rem;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  text-align: center;
  transform: scale(0.94) translateY(10px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
}

.sanlilas-modal-overlay.is-active .sanlilas-modal-card {
  transform: scale(1) translateY(0);
}

.sanlilas-modal-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #C8A46A 0%, #F0E6D2 50%, #A8895A 100%);
}

.sanlilas-modal-emblem {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #C8A46A;
  margin: 0 auto 1rem auto;
  display: block;
  box-shadow: 0 8px 24px rgba(142, 111, 174, 0.35);
}

.sanlilas-modal-brand {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.15rem;
  letter-spacing: 0.25em;
  color: #C8A46A;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
  font-weight: 600;
}

.sanlilas-modal-message {
  font-size: 1.05rem;
  font-weight: 600;
  color: #2C211B;
  line-height: 1.6;
  margin-bottom: 2rem;
  white-space: pre-line;
}

.sanlilas-modal-actions {
  display: flex;
  gap: 0.9rem;
  justify-content: center;
}

.sanlilas-modal-btn {
  padding: 0.9rem 1.6rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sanlilas-modal-btn-confirm {
  background: #2C211B;
  color: #C8A46A;
  border: 1px solid #C8A46A;
  box-shadow: 0 6px 20px rgba(23, 20, 23, 0.25);
}

.sanlilas-modal-btn-confirm:hover {
  background: #C8A46A;
  color: #2C211B;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(142, 111, 174, 0.4);
}

.sanlilas-modal-btn-cancel {
  background: #FAF7F2;
  color: #8A7A6A;
  border: 1.5px solid rgba(142, 111, 174, 0.35);
}

.sanlilas-modal-btn-cancel:hover {
  background: #FAF7F2;
  color: #2C211B;
  border-color: #C8A46A;
  transform: translateY(-1px);
}

.sanlilas-modal-btn-danger {
  background: #991B1B;
  color: #FFFFFF;
  border: 1px solid #991B1B;
}

.sanlilas-modal-btn-danger:hover {
  background: #7F1D1D;
  transform: translateY(-2px);
}
