/* Luxury Modal (Blog & Insights) */

.modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 18px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.modal-panel {
  position: relative;
  width: min(760px, 92vw);
  transform: translateY(18px) scale(0.985);
  transition: transform 320ms cubic-bezier(0.23, 1, 0.32, 1);
}

.modal.is-open .modal-panel {
  transform: translateY(0) scale(1);
}

.modal-frame {
  border-radius: 26px;
  border: 1px solid rgba(212, 175, 55, 0.30);
  background: linear-gradient(180deg, rgba(10, 6, 3, 0.78), rgba(10, 6, 3, 0.52));
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.65);
  overflow: hidden;
  position: relative;
}

.modal-frame::before {
  content: "";
  position: absolute;
  inset: -80px;
  background: radial-gradient(circle at 20% 10%, rgba(212, 175, 55, 0.22), transparent 55%),
    radial-gradient(circle at 80% 30%, rgba(212, 175, 55, 0.10), transparent 60%);
  pointer-events: none;
}

.modal-top {
  position: relative;
  z-index: 2;
  padding: 18px 18px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.modal-kicker {
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(200, 184, 152, 0.95);
  font-size: 0.78rem;
}

.modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.35);
  background: rgba(0, 0, 0, 0.25);
  color: var(--gold);
  padding: 10px 14px;
  cursor: pointer;
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
  font-weight: 900;
}

.modal-close:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(212, 175, 55, 0.18);
  border-color: rgba(212, 175, 55, 0.55);
}

.modal-close span[aria-hidden="true"] {
  font-size: 1.35rem;
  line-height: 1;
}

.modal-close-text {
  font-size: 0.86rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.modal-title {
  position: relative;
  z-index: 2;
  padding: 0 22px;
  font-family: "Playfair Display", serif;
  font-size: 1.85rem;
  margin-top: 2px;
  margin-bottom: 10px;
  color: #f6e7b8;
  text-shadow: 0 14px 50px rgba(0, 0, 0, 0.65);
}

.modal-body {
  position: relative;
  z-index: 2;
  padding: 0 22px 14px;
  display: grid;
  gap: 14px;
}

.modal-lang {
  border: 1px solid rgba(212, 175, 55, 0.16);
  background: rgba(0, 0, 0, 0.20);
  border-radius: 18px;
  padding: 14px 14px;
}

.modal-lang-title {
  font-weight: 1000;
  color: rgba(212, 175, 55, 0.95);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin-bottom: 8px;
}

.modal-desc {
  color: rgba(245, 240, 232, 0.95);
  font-weight: 600;
  line-height: 1.7;
}

.modal-lang .modal-desc[dir="rtl"] {
  direction: rtl;
  font-family: "Poppins", sans-serif;
}

.modal-footer {
  position: relative;
  z-index: 2;
  padding: 0 22px 18px;
}

.modal-hint {
  color: rgba(200, 184, 152, 0.72);
  font-size: 0.86rem;
}

@media (max-width: 520px) {
  .modal-title {
    font-size: 1.4rem;
    padding: 0 16px;
  }
  .modal-body,
  .modal-top,
  .modal-footer {
    padding-left: 16px;
    padding-right: 16px;
  }
  .modal-close-text {
    display: none;
  }
}

