/* ─── PRAYER SENT POPUP ─────────────────────────────────────────────────────── */

.prayer-popup-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,10,0.78);
  z-index: 200;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(6px);
  animation: popupFadeIn 0.5s ease;
}

@keyframes popupFadeIn { from { opacity:0; } to { opacity:1; } }

.prayer-popup-box {
  background: linear-gradient(160deg, #0a1128 0%, #0d1f3c 60%, #0a1020 100%);
  border: 1px solid rgba(120,170,255,0.25);
  border-radius: 20px;
  padding: 36px 40px;
  max-width: 480px; width: 90%;
  text-align: center;
  box-shadow: 0 0 60px rgba(60,120,255,0.15), 0 0 120px rgba(60,80,200,0.08), inset 0 0 40px rgba(255,255,255,0.02);
  animation: popupRise 0.5s cubic-bezier(0.34,1.56,0.64,1);
}

@keyframes popupRise {
  from { transform: translateY(24px) scale(0.97); opacity:0; }
  to   { transform: translateY(0)    scale(1);    opacity:1; }
}

.prayer-popup-stars { font-size:18px; color:#7eb8f7; letter-spacing:10px; margin-bottom:16px; opacity:0.7; }
.prayer-popup-title { font-family:Georgia,serif; font-size:22px; font-weight:normal; color:#e8f2ff; margin:0 0 18px; letter-spacing:0.04em; }
.prayer-popup-body  { font-size:14px; color:#9bb8d9; line-height:1.7; margin:0 0 18px; }

.prayer-popup-code-block {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(100,160,255,0.2);
  border-radius: 10px; padding: 12px 18px; margin: 0 0 18px;
  display: flex; flex-direction: column; gap: 4px;
}
.prayer-popup-code-label { font-size:11px; text-transform:uppercase; letter-spacing:0.12em; color:#5a88c0; }
.prayer-popup-code { font-family:'Courier New',monospace; font-size:14px; color:#7eb8f7; letter-spacing:0.06em; word-break:break-all; }

.prayer-popup-divider { border:none; border-top:1px solid rgba(100,150,255,0.1); margin:18px 0; }
.prayer-popup-hint    { font-size:13px; color:#6a8aaa; line-height:1.8; margin:0 0 24px; }

.prayer-popup-btn {
  background: linear-gradient(135deg,#1a3a6e,#0f2247);
  color:#a8d0f8; border:1px solid rgba(100,160,255,0.35);
  padding:11px 36px; border-radius:40px; font-size:15px;
  cursor:pointer; letter-spacing:0.05em;
  transition:background 0.2s,box-shadow 0.2s;
  box-shadow:0 0 16px rgba(60,120,255,0.2);
}
.prayer-popup-btn:hover { background:linear-gradient(135deg,#2a4a8e,#1a3257); box-shadow:0 0 28px rgba(60,120,255,0.4); }

/* ─── CONTENT POPUP (menu items) ─────────────────────────────────────────────── */

.content-popup-overlay {
  position: fixed; inset: 0;
  background: rgba(0,3,15,0.90);
  backdrop-filter: blur(10px);
  z-index: 300;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  animation: popupFadeIn 0.3s ease;
}

.content-popup-box {
  position: relative;
  width: 100%; max-width: 580px; max-height: 82vh;
  display: flex; flex-direction: column; overflow: hidden;
  border-radius: 14px;
  background: linear-gradient(170deg, #04091c 0%, #07102a 35%, #060e22 65%, #03070f 100%);
  border: 1px solid rgba(245,197,24,0.55);
  box-shadow:
    inset 0 0 0 1px rgba(245,197,24,0.10),
    0 0 0 1px rgba(245,197,24,0.06),
    0 0 50px  rgba(180,130,0,0.30),
    0 0 100px rgba(100,70,0,0.18),
    0 24px 80px rgba(0,0,0,0.85);
  animation: contentPopupRise 0.4s cubic-bezier(0.34,1.56,0.64,1);
}

.content-popup-box::before {
  content:''; position:absolute; inset:7px;
  border:1px solid rgba(245,197,24,0.09);
  border-radius:8px; pointer-events:none; z-index:0;
}

@keyframes contentPopupRise {
  from { transform: translateY(20px) scale(0.97); opacity:0; }
  to   { transform: translateY(0)    scale(1);    opacity:1; }
}

.content-popup-header { padding:28px 34px 16px; text-align:center; flex-shrink:0; position:relative; z-index:1; }

.content-popup-ornament { display:flex; align-items:center; gap:14px; margin-bottom:14px; color:rgba(245,197,24,0.65); font-size:13px; letter-spacing:0.1em; }
.content-popup-ornament-line { flex:1; height:1px; background:linear-gradient(90deg,transparent 0%,rgba(245,197,24,0.55) 30%,rgba(245,197,24,0.55) 70%,transparent 100%); }

.content-popup-title {
  font-family:Georgia,'Times New Roman',serif; font-size:19px; font-weight:normal;
  color:#f5c518; letter-spacing:0.14em; text-transform:uppercase;
  text-shadow:0 0 24px rgba(245,197,24,0.45),0 0 48px rgba(180,120,0,0.2);
  margin:0 0 14px;
}

.content-popup-subtitle-line { height:1px; background:linear-gradient(90deg,transparent,rgba(80,120,200,0.40) 20%,rgba(100,150,255,0.55) 50%,rgba(80,120,200,0.40) 80%,transparent); }

.content-popup-body {
  flex:1; overflow-y:auto; padding:22px 34px;
  color:#b8d4f9; font-size:14px; line-height:1.85;
  position:relative; z-index:1;
  -webkit-mask-image:linear-gradient(to bottom,transparent 0px,black 16px,black calc(100% - 16px),transparent 100%);
  mask-image:linear-gradient(to bottom,transparent 0px,black 16px,black calc(100% - 16px),transparent 100%);
  scrollbar-width:thin; scrollbar-color:rgba(245,197,24,0.28) transparent;
}
.content-popup-body::-webkit-scrollbar       { width:4px; }
.content-popup-body::-webkit-scrollbar-track  { background:transparent; }
.content-popup-body::-webkit-scrollbar-thumb  { background:rgba(245,197,24,0.28); border-radius:4px; }

.content-placeholder { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:14px; padding:30px 0; text-align:center; color:#4a6a9a; }
.content-placeholder-icon { font-size:38px; opacity:0.5; }
.content-placeholder-text { font-size:13px; letter-spacing:0.06em; color:#3a5a80; font-style:italic; }

.content-popup-footer { padding:14px 34px 24px; text-align:center; flex-shrink:0; position:relative; z-index:1; }
.content-popup-footer-line { height:1px; background:linear-gradient(90deg,transparent,rgba(245,197,24,0.30) 25%,rgba(245,197,24,0.30) 75%,transparent); margin-bottom:18px; }

.content-popup-close-btn {
  background:linear-gradient(135deg,#0e1e3c 0%,#162848 100%);
  color:#f5c518; border:1px solid rgba(245,197,24,0.45);
  padding:10px 36px; border-radius:40px; font-size:13px;
  font-weight:600; letter-spacing:0.12em; cursor:pointer;
  transition:background 0.2s,box-shadow 0.2s,transform 0.15s;
  box-shadow:0 0 14px rgba(180,130,0,0.20);
}
.content-popup-close-btn:hover { background:linear-gradient(135deg,#162848 0%,#1e3460 100%); box-shadow:0 0 28px rgba(245,197,24,0.35); transform:translateY(-1px); }

/* ─── INTRODUCTION VIDEO POPUP ───────────────────────────────────────────────── */

.intro-popup-overlay {
  position: fixed; inset: 0;
  background: rgba(0,2,12,0.92);
  backdrop-filter: blur(12px);
  z-index: 350;    /* above content popup (300) */
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  animation: popupFadeIn 0.4s ease;
}

.intro-popup-box {
  position: relative;
  width: 100%;
  max-width: 720px;     /* wide enough for comfortable video viewing */
  max-height: 90vh;
  display: flex; flex-direction: column; overflow: hidden;
  border-radius: 16px;
  background: linear-gradient(170deg, #04091c 0%, #07102a 40%, #03070f 100%);
  border: 1px solid rgba(245,197,24,0.50);
  box-shadow:
    inset 0 0 0 1px rgba(245,197,24,0.09),
    0 0 60px  rgba(180,130,0,0.28),
    0 0 120px rgba(100,70,0,0.15),
    0 28px 80px rgba(0,0,0,0.88);
  animation: contentPopupRise 0.45s cubic-bezier(0.34,1.56,0.64,1);
}

/* Inner decorative frame */
.intro-popup-box::before {
  content:''; position:absolute; inset:7px;
  border:1px solid rgba(245,197,24,0.08);
  border-radius:10px; pointer-events:none; z-index:0;
}

/* Header */
.intro-popup-header {
  padding: 24px 30px 14px;
  text-align: center;
  flex-shrink: 0;
  position: relative; z-index: 1;
}

/* Video wrapper */
.intro-video-wrap {
  padding: 0 20px;
  position: relative; z-index: 1;
  flex-shrink: 0;
}

.intro-video-wrap video {
  width: 100%;
  border-radius: 10px;
  display: block;
  background: #000;
  /* Subtle gold border to match the galactic theme */
  box-shadow:
    0 0 0 1px rgba(245,197,24,0.25),
    0 0 24px rgba(180,130,0,0.20);
  /* Ensure the browser's native fullscreen button is accessible */
  max-height: 45vh;
  object-fit: contain;
}

/* Checkbox row */
.intro-checkbox-row {
  padding: 16px 24px 22px;
  position: relative; z-index: 1;
  flex-shrink: 0;
}

.intro-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 12px;
  color: #7a9ab9;
  line-height: 1.65;
}

.intro-checkbox-label input[type="checkbox"] {
  margin-top: 2px;
  flex-shrink: 0;
  width: 14px; height: 14px;
  accent-color: #f5c518;
  cursor: pointer;
}

.intro-checkbox-label em {
  color: #5a7a99;
  font-style: normal;
}
.intro-checkbox-label strong {
  color: #8abadd;
}

/* ─── MOBILE ─────────────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .content-popup-overlay  { padding:12px; }
  .content-popup-header   { padding:22px 22px 14px; }
  .content-popup-body     { padding:18px 22px; }
  .content-popup-footer   { padding:12px 22px 20px; }
  .content-popup-title    { font-size:16px; letter-spacing:0.10em; }

  .intro-popup-overlay    { padding:10px; }
  .intro-popup-header     { padding:20px 20px 10px; }
  .intro-video-wrap       { padding:0 12px; }
  .intro-video-wrap video { max-height:36vh; }
  .intro-checkbox-row     { padding:12px 16px 18px; }
}
