/* ══════════════════════════════════════
   RIZA Web Popup — فشيخ Edition
   ══════════════════════════════════════ */

.riza-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.76);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  padding: 16px;
}
.riza-popup-overlay.riza-popup-visible {
  opacity: 1;
  pointer-events: all;
}
body.riza-popup-open { overflow: hidden; }

/* ── Panel ── */
.riza-popup-panel {
  position: relative;
  background: #0f0f13;
  border: 1px solid rgba(255, 215, 0, 0.15);
  border-radius: 26px;
  overflow: hidden;
  max-width: 660px;
  width: 100%;
  box-shadow:
    0 40px 100px rgba(0, 0, 0, 0.65),
    0 0 0 1px rgba(255, 215, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transform: translateY(32px) scale(0.95);
  transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}
.riza-popup-overlay.riza-popup-visible .riza-popup-panel {
  transform: translateY(0) scale(1);
}

/* ── Close button ── */
.riza-popup-close {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 10;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(15, 15, 19, 0.7);
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s, transform 0.15s;
  line-height: 1;
  backdrop-filter: blur(4px);
}
.riza-popup-close:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  transform: scale(1.08);
}

/* ── Image area ── */
.riza-popup-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
}
.riza-popup-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s ease;
}
.riza-popup-panel:hover .riza-popup-img { transform: scale(1.04); }

/* Shimmer sweep */
.riza-popup-img-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    transparent 25%,
    rgba(255, 255, 255, 0.07) 50%,
    transparent 75%
  );
  background-size: 200% 100%;
  animation: riza-shine 4s ease-in-out infinite;
}
@keyframes riza-shine {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Gradient overlay fading image into body */
.riza-popup-img-wrap::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 52%;
  background: linear-gradient(to top, #0f0f13 0%, transparent 100%);
  pointer-events: none;
}

/* ── Body ── */
.riza-popup-body {
  padding: 22px 28px 30px;
  direction: rtl;
  text-align: right;
}
.riza-popup-title {
  font-size: 22px;
  font-weight: 800;
  color: #f5c518;
  margin: 0 0 10px;
  line-height: 1.3;
  letter-spacing: -0.3px;
  text-shadow: 0 0 40px rgba(245, 197, 24, 0.28);
  font-family: 'Cairo', 'Tajawal', Tahoma, sans-serif;
}
.riza-popup-desc {
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.58);
  margin: 0 0 22px;
  line-height: 1.7;
  font-family: 'Cairo', 'Tajawal', Tahoma, sans-serif;
}

/* ── CTA button ── */
.riza-popup-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 40px;
  background: linear-gradient(135deg, #f5c518 0%, #e0a800 100%);
  color: #0f0f13;
  font-weight: 800;
  font-size: 15px;
  border-radius: 50px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 8px 28px rgba(245, 197, 24, 0.38);
  font-family: 'Cairo', 'Tajawal', Tahoma, sans-serif;
  letter-spacing: 0.3px;
}
.riza-popup-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(245, 197, 24, 0.52);
  color: #0f0f13;
  text-decoration: none;
}
.riza-popup-cta:active { transform: translateY(0); }

/* ── Mobile ── */
@media (max-width: 700px) {
  .riza-popup-panel { border-radius: 20px; }
  .riza-popup-body  { padding: 18px 20px 24px; }
  .riza-popup-title { font-size: 19px; }
  .riza-popup-cta   { width: 100%; padding: 14px 24px; font-size: 14px; }
}
