/* ==========================================================================
   LAFFAZI — Haute Parfumerie Digital UI/UX Concept Modal & WhatsApp Engine
   Apple VisionOS Spatial Glassmorphism & Royal Dubai Gold Aesthetics
   ========================================================================== */

.laffazi-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(10, 15, 29, 0.68);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s ease;
}

.laffazi-modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.laffazi-modal-card {
  position: relative;
  width: 100%;
  max-width: 680px;
  max-height: 92vh;
  overflow-y: auto;
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 250, 252, 0.92) 100%);
  border: 1px solid rgba(184, 142, 47, 0.4);
  box-shadow: 
    0 32px 80px rgba(15, 23, 42, 0.3),
    0 0 45px rgba(184, 142, 47, 0.18),
    inset 0 1.5px 1px 0 #FFFFFF;
  padding: 34px 32px 30px;
  color: #1E293B;
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  transform: scale(0.93) translateY(14px);
  transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1);
}

.laffazi-modal-backdrop.active .laffazi-modal-card {
  transform: scale(1) translateY(0);
}

/* Close Button */
.laffazi-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(226, 232, 240, 0.9);
  background: rgba(255, 255, 255, 0.9);
  color: #475569;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.laffazi-modal-close:hover {
  background: #0F172A;
  color: #FFFFFF;
  border-color: #0F172A;
  transform: rotate(90deg);
}

/* Header & Crest */
.laffazi-modal-crest {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 14px;
}

.laffazi-crest-ring {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(223, 184, 108, 0.18) 0%, rgba(184, 142, 47, 0.05) 70%);
  border: 1.5px solid rgba(184, 142, 47, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 22px rgba(184, 142, 47, 0.25);
}

.laffazi-crest-letter {
  font-family: 'Cinzel', Georgia, serif;
  font-weight: 800;
  font-size: 1.7rem;
  background: linear-gradient(135deg, #DFB86C 0%, #B88E2F 50%, #8E6C28 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}

.laffazi-modal-tagline {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2.2px;
  color: #8E6C28;
  text-align: center;
  margin-bottom: 6px;
}

.laffazi-modal-title {
  font-family: 'Cinzel', Georgia, serif;
  font-size: 1.45rem;
  font-weight: 800;
  text-align: center;
  letter-spacing: 0.8px;
  line-height: 1.25;
  color: #0F172A;
  margin: 0 0 8px;
}

.laffazi-modal-subtitle {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: 1.05rem;
  font-weight: 600;
  text-align: center;
  color: #B88E2F;
  margin: 0 0 18px;
}

/* Notice Box */
.laffazi-notice-box {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 16px;
  padding: 16px 18px;
  margin-bottom: 16px;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.03);
}

.laffazi-notice-primary {
  font-size: 0.89rem;
  line-height: 1.6;
  color: #334155;
  margin: 0 0 12px;
}

.laffazi-notice-primary strong {
  color: #0F172A;
  font-weight: 700;
}

.laffazi-compliance-section {
  border-top: 1px solid rgba(226, 232, 240, 0.9);
  padding-top: 10px;
  margin-top: 10px;
}

.laffazi-compliance-header {
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #8E6C28;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.laffazi-compliance-text {
  font-size: 0.79rem;
  line-height: 1.55;
  color: #64748B;
  margin: 0 0 12px;
}

.laffazi-disclaimer-box {
  background: rgba(184, 142, 47, 0.07);
  border-left: 3.5px solid #B88E2F;
  border-radius: 6px;
  padding: 9px 12px;
  font-size: 0.8rem;
  line-height: 1.5;
  color: #1E293B;
}

.laffazi-disclaimer-box strong {
  color: #8E6C28;
}

/* Checkout Context Alert Ribbon */
.laffazi-checkout-alert {
  display: none;
  background: linear-gradient(135deg, rgba(225, 29, 72, 0.09) 0%, rgba(184, 142, 47, 0.09) 100%);
  border: 1px solid rgba(225, 29, 72, 0.35);
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 14px;
  font-size: 0.83rem;
  font-weight: 700;
  color: #9F1239;
  align-items: center;
  gap: 10px;
}

.laffazi-checkout-alert.active {
  display: flex;
}

/* ==========================================================================
   WhatsApp Hire & Project Discussion Box in Popup
   ========================================================================== */
.laffazi-hire-card {
  background: linear-gradient(135deg, rgba(240, 253, 244, 0.95) 0%, rgba(255, 255, 255, 0.98) 100%);
  border: 1.5px solid rgba(34, 197, 94, 0.4);
  border-radius: 16px;
  padding: 16px 18px;
  margin-bottom: 18px;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.1);
}

.laffazi-hire-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.laffazi-hire-icon-wrap {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(18, 140, 126, 0.35);
  flex-shrink: 0;
}

.laffazi-hire-tag {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #047857;
}

.laffazi-hire-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #0F172A;
  letter-spacing: 0.3px;
}

.laffazi-hire-text {
  font-size: 0.81rem;
  line-height: 1.55;
  color: #475569;
  margin: 0 0 12px;
}

.laffazi-btn-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 13px 20px;
  border-radius: 9999px;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #FFFFFF !important;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-decoration: none !important;
  box-shadow: 0 6px 20px rgba(18, 140, 126, 0.35);
  transition: all 0.25s ease;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
}

.laffazi-btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(18, 140, 126, 0.5);
  background: linear-gradient(135deg, #28E06C 0%, #159C8D 100%);
}

.laffazi-btn-whatsapp:active {
  transform: translateY(0);
}

/* Action Buttons */
.laffazi-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.laffazi-btn-enter {
  width: 100%;
  padding: 14px 24px;
  border-radius: 9999px;
  border: none;
  background: linear-gradient(135deg, #DFB86C 0%, #C5A059 50%, #8E6C28 100%);
  color: #0F172A;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.86rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(184, 142, 47, 0.35);
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.laffazi-btn-enter:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(184, 142, 47, 0.45);
  background: linear-gradient(135deg, #E6C57F 0%, #D4AF37 50%, #A07C2F 100%);
}

.laffazi-btn-enter:active {
  transform: translateY(0);
}

/* Floating Fair Use Badge (Bottom Left) */
.laffazi-floating-badge {
  position: fixed;
  bottom: 22px;
  left: 22px;
  z-index: 99998;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(184, 142, 47, 0.35);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
  color: #1E293B;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s ease;
}

.laffazi-floating-badge:hover {
  border-color: #B88E2F;
  box-shadow: 0 10px 28px rgba(184, 142, 47, 0.25);
  transform: translateY(-2px);
  color: #8E6C28;
}

.laffazi-floating-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #B88E2F;
  box-shadow: 0 0 8px #B88E2F;
  animation: laffaziPulse 2s infinite;
}

@keyframes laffaziPulse {
  0% { transform: scale(0.95); opacity: 0.7; }
  50% { transform: scale(1.25); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.7; }
}

/* ==========================================================================
   CLASSIC CIRCULAR FLOATING WHATSAPP BUTTON (Icon Only + Radar + Hover Tooltip)
   ========================================================================== */
.laffazi-floating-wa-wrap {
  position: fixed;
  bottom: 26px;
  right: 26px;
  z-index: 999997;
  display: flex;
  align-items: center;
  justify-content: center;
}

.laffazi-wa-radar-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2.5px solid rgba(37, 211, 102, 0.65);
  animation: waRadarPulse 2.2s cubic-bezier(0.25, 0.1, 0.25, 1) infinite;
  pointer-events: none;
}

@keyframes waRadarPulse {
  0% { transform: scale(0.85); opacity: 0.95; }
  70% { transform: scale(1.45); opacity: 0; }
  100% { transform: scale(1.45); opacity: 0; }
}

.laffazi-floating-wa-btn {
  position: relative;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  border: 2px solid rgba(255, 255, 255, 0.7);
  box-shadow: 
    0 10px 28px rgba(18, 140, 126, 0.45),
    0 0 24px rgba(37, 211, 102, 0.38),
    inset 0 1.5px 1px 0 rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none !important;
}

.laffazi-floating-wa-btn:hover {
  transform: translateY(-3px) scale(1.1);
  box-shadow: 
    0 16px 38px rgba(18, 140, 126, 0.55),
    0 0 32px rgba(37, 211, 102, 0.5);
  background: linear-gradient(135deg, #28E06C 0%, #159C8D 100%);
}

.laffazi-floating-wa-btn:active {
  transform: translateY(0) scale(0.96);
}

.laffazi-floating-wa-btn svg {
  width: 32px;
  height: 32px;
  fill: #FFFFFF;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}

/* Tooltip on Hover */
.laffazi-floating-wa-tooltip {
  position: absolute;
  right: calc(100% + 14px);
  white-space: nowrap;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(184, 142, 47, 0.45);
  color: #FFFFFF;
  padding: 8px 16px;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  pointer-events: none;
  opacity: 0;
  transform: translateX(10px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.laffazi-floating-wa-wrap:hover .laffazi-floating-wa-tooltip {
  opacity: 1;
  transform: translateX(0);
}

@media (max-width: 768px) {
  .laffazi-modal-card {
    padding: 26px 20px 22px;
    border-radius: 20px;
  }
  .laffazi-modal-title {
    font-size: 1.25rem;
  }
  .laffazi-modal-subtitle {
    font-size: 0.92rem;
  }
  .laffazi-floating-badge {
    bottom: 84px;
    left: 14px;
    padding: 6px 11px;
    font-size: 0.68rem;
  }
  .laffazi-floating-wa-wrap {
    bottom: 84px;
    right: 14px;
  }
  .laffazi-floating-wa-btn {
    width: 52px;
    height: 52px;
  }
  .laffazi-floating-wa-btn svg {
    width: 28px;
    height: 28px;
  }
  .laffazi-floating-wa-tooltip {
    display: none;
  }
}
