@import url('https://fonts.googleapis.com/css2?family=Scheherazade+New:wght@400;700&family=Amiri:wght@400;700&display=swap');

html, body {
  margin: 0;
  padding: 0;
  background: #0b0f10;
}
* { box-sizing: border-box; }

a { color: oklch(58% 0.13 78); text-decoration: none; }
a:hover { color: oklch(50% 0.12 78); }
::selection { background: oklch(70% 0.13 82 / 0.3); }

body {
  font-family: 'Times New Roman', Times, serif;
}

h1, .serif { font-family: 'Times New Roman', Times, serif; }

@keyframes riseIn {
  from { opacity: 0; transform: translateY(1.2vmin); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes glow {
  0%, 100% { opacity: 1; text-shadow: 0 0 0 transparent; }
  50% { opacity: 0.85; text-shadow: 0 0 1.6vmin oklch(66% 0.135 78 / 0.45); }
}
@keyframes titleShimmer {
  0%, 100% { letter-spacing: 0.005em; }
  50% { letter-spacing: 0.02em; }
}
@keyframes overlayFade {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes ticketZoom {
  from { opacity: 0; transform: rotate(0deg) scale(0.3); }
  to { opacity: 1; transform: rotate(360deg) scale(1); }
}
@keyframes frameZoom {
  from { opacity: 0; transform: scale(0.94); }
  to { opacity: 1; transform: scale(1); }
}

.page {
  position: relative;
  width: 100vw;
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(120vmin 90vmin at 50% -8%, oklch(97% 0.012 95) 0%, oklch(96.2% 0.011 90) 45%, oklch(95% 0.012 88) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ornament {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(45deg, oklch(30% 0.03 230) 0, oklch(30% 0.03 230) 1.5px, transparent 1.5px, transparent 34px),
    repeating-linear-gradient(-45deg, oklch(30% 0.03 230) 0, oklch(30% 0.03 230) 1.5px, transparent 1.5px, transparent 34px);
  mask-image: radial-gradient(85% 85% at 50% 45%, black 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(85% 85% at 50% 45%, black 30%, transparent 78%);
}

.corner {
  display: none;
  position: absolute;
  width: 2.6vmin;
  height: 2.6vmin;
  border: 0.16vmin solid oklch(55% 0.05 210 / 0.35);
}
.corner-tl { top: 4vmin; left: 4vmin; border-right: none; border-bottom: none; }
.corner-tr { top: 4vmin; right: 4vmin; border-left: none; border-bottom: none; }
.corner-bl { bottom: 4vmin; left: 4vmin; border-right: none; border-top: none; }
.corner-br { bottom: 4vmin; right: 4vmin; border-left: none; border-top: none; }

.admin-btn {
  position: absolute;
  top: 3.4vmin;
  right: 3.4vmin;
  width: 4.2vmin;
  height: 4.2vmin;
  border-radius: 50%;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2vmin;
  color: oklch(55% 0.02 240 / 0.55);
  z-index: 5;
  transition: color 0.25s ease, background 0.25s ease, transform 0.3s ease;
}
.admin-btn:hover {
  color: oklch(38% 0.03 240);
  background: oklch(20% 0.02 250 / 0.05);
  transform: rotate(20deg);
}

.back-btn {
  display: flex;
  align-items: center;
  gap: 0.8vmin;
  padding: 1.1vmin 2.2vmin;
  border-radius: 10vmin;
  border: 0.13vmin solid oklch(85% 0.012 90);
  background: oklch(98% 0.008 90);
  font-family: 'Times New Roman', Times, serif;
  font-weight: 600;
  font-size: 1.6vmin;
  letter-spacing: 0.02em;
  color: oklch(38% 0.02 240);
  transition: background 0.25s ease, border-color 0.25s ease;
  cursor: pointer;
}
.back-btn:hover { background: oklch(95% 0.01 90); border-color: oklch(76% 0.02 90); }

.icon-btn {
  width: 4.1vmin;
  height: 4.1vmin;
  border-radius: 50%;
  border: 0.13vmin solid oklch(85% 0.012 90);
  background: oklch(98% 0.008 90);
  color: oklch(38% 0.02 240);
  font-size: 1.9vmin;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.4s ease;
}
.icon-btn:hover { background: oklch(95% 0.01 90); border-color: oklch(76% 0.02 90); transform: rotate(-90deg); }

.overlay {
  position: fixed;
  inset: 0;
  background: oklch(20% 0.02 250 / 0.6);
  backdrop-filter: blur(1.4vmin);
  -webkit-backdrop-filter: blur(1.4vmin);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  animation: overlayFade 0.25s ease both;
}

.btn-primary {
  padding: 1.3vmin 3.2vmin;
  border-radius: 1vmin;
  border: none;
  background: oklch(58% 0.13 78);
  color: #fff;
  font-family: 'Times New Roman', Times, serif;
  font-weight: 700;
  font-size: 1.7vmin;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: background 0.25s ease;
}
.btn-primary:hover { background: oklch(52% 0.12 78); }

.close-btn {
  position: absolute;
  width: 3.6vmin;
  height: 3.6vmin;
  border-radius: 50%;
  border: none;
  background: oklch(95% 0.01 90);
  color: oklch(40% 0.02 240);
  font-size: 1.8vmin;
  cursor: pointer;
}

/* ---------- index.html ---------- */

.logo-slot {
  width: 10vmin;
  height: 10vmin;
  border-radius: 50%;
  background: oklch(96% 0.008 90);
  border: 0.14vmin dashed oklch(78% 0.02 90);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  animation: riseIn 0.8s cubic-bezier(0.22,1,0.36,1) 0.05s both;
}
.logo-slot img { width: 100%; height: 100%; object-fit: cover; }
.logo-slot span {
  font-family: 'Times New Roman', Times, serif;
  font-weight: 700;
  font-size: 3.6vmin;
  color: oklch(55% 0.05 210 / 0.55);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2.2vmin;
  width: 100%;
  margin-top: 1vmin;
}

.stage-card {
  position: relative;
  border-radius: 1.6vmin;
  padding: 3.4vmin 2.6vmin;
  display: flex;
  flex-direction: column;
  gap: 1.7vmin;
  min-height: 40vmin;
  transition: transform 0.35s cubic-bezier(0.22,1,0.36,1), box-shadow 0.35s ease, border-color 0.35s ease;
  will-change: transform;
}
.stage-card:hover { transform: translateY(-1vmin) scale(1.015); }

.stage-card.active {
  background: oklch(99% 0.006 90);
  border: 0.18vmin solid oklch(66% 0.135 78 / 0.65);
  box-shadow: 0 1.8vmin 3.8vmin -1.4vmin oklch(66% 0.135 78 / 0.4), 0 0.5vmin 1.2vmin oklch(20% 0.02 250 / 0.1);
}
.stage-card.active:hover {
  box-shadow: 0 2.6vmin 4.8vmin -1.4vmin oklch(66% 0.135 78 / 0.5), 0 0.8vmin 1.6vmin oklch(20% 0.02 250 / 0.14);
  border-color: oklch(66% 0.135 78 / 0.85);
}
.stage-card.idle {
  background: #ffffff;
  border: 0.15vmin solid oklch(78% 0.012 90);
  box-shadow: 0 1vmin 2.4vmin -1vmin oklch(20% 0.02 250 / 0.16);
}
.stage-card.idle:hover {
  box-shadow: 0 2vmin 3.6vmin -1.2vmin oklch(20% 0.02 250 / 0.24);
  border-color: oklch(66% 0.02 90);
}

.stage-num {
  font-family: 'Times New Roman', Times, serif;
  font-weight: 600;
  font-size: 6.6vmin;
  line-height: 1;
}
.stage-num.accent { color: oklch(66% 0.135 78); }
.stage-num.muted { color: oklch(80% 0.01 90); }

.stage-icon {
  width: 6.4vmin;
  height: 6.4vmin;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.stage-icon.accent { background: oklch(66% 0.135 78 / 0.12); }
.stage-icon.muted { background: oklch(96% 0.008 90); }

.stage-title {
  margin: 0;
  font-family: 'Times New Roman', Times, serif;
  font-weight: 800;
  font-size: 2.8vmin;
  color: oklch(24% 0.025 255);
  letter-spacing: 0.005em;
}
.stage-desc {
  margin: 0;
  font-weight: 500;
  font-size: 1.9vmin;
  line-height: 1.5;
  color: oklch(48% 0.02 250);
}

.stage-status {
  display: flex;
  align-items: center;
  gap: 0.8vmin;
}
.status-dot { width: 1.2vmin; height: 1.2vmin; border-radius: 50%; }
.status-label {
  font-weight: 700;
  font-size: 1.8vmin;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.stage-cta {
  margin-top: 0.4vmin;
  width: 100%;
  padding: 1.5vmin 0;
  border-radius: 1vmin;
  font-family: 'Times New Roman', Times, serif;
  font-weight: 700;
  font-size: 1.8vmin;
  letter-spacing: 0.03em;
  text-align: center;
  display: block;
  transition: background 0.25s ease;
  cursor: pointer;
}
.stage-cta.accent { border: none; background: oklch(58% 0.13 78); color: #fff; }
.stage-cta.accent:hover { background: oklch(52% 0.12 78); }
.stage-cta.ghost { border: 0.14vmin solid oklch(82% 0.01 90); background: transparent; color: oklch(50% 0.015 90); }

/* ---------- tickets.html ---------- */

.tickets-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2vmin;
  width: 100%;
  flex: 1;
  align-content: center;
}

.ticket {
  position: relative;
  border-radius: 1.4vmin;
  padding: 2.6vmin 1vmin;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.9vmin;
  aspect-ratio: 1/1;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.22,1,0.36,1), box-shadow 0.3s ease, border-color 0.3s ease, opacity 0.3s ease;
  background: #ffffff;
  border: 0.15vmin solid oklch(80% 0.03 85);
  box-shadow: inset 0 0 0 0.3vmin oklch(98% 0.008 90), inset 0 0 0 0.44vmin oklch(66% 0.1 80 / 0.4), 0 1.2vmin 2.4vmin -1.2vmin oklch(20% 0.02 250 / 0.18);
}
.ticket:hover { transform: translateY(-0.8vmin) scale(1.03); border-color: oklch(58% 0.13 78 / 0.85); }
.ticket.taken {
  background: oklch(96% 0.006 90);
  border: 0.15vmin dashed oklch(82% 0.012 90);
  box-shadow: none;
}
.ticket-num {
  font-family: 'Times New Roman', Times, serif;
  font-weight: 700;
  font-size: 6vmin;
  line-height: 1;
  color: oklch(24% 0.025 255);
}
.ticket.taken .ticket-num { color: oklch(80% 0.01 90); }
.ticket-label {
  font-weight: 700;
  font-size: 1.2vmin;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: oklch(58% 0.1 80);
}
.ticket.taken .ticket-label { color: oklch(75% 0.01 90); }

.ticket-modal {
  position: relative;
  background: #ffffff;
  border-radius: 2.2vmin;
  border: 0.22vmin solid oklch(80% 0.03 85);
  box-shadow: inset 0 0 0 0.45vmin oklch(98% 0.008 90), inset 0 0 0 0.7vmin oklch(66% 0.1 80 / 0.45), 0 4vmin 7vmin -2vmin oklch(20% 0.02 250 / 0.5);
  width: 40vmin;
  height: 40vmin;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.4vmin;
  animation: ticketZoom 0.4s cubic-bezier(0.22,1,0.36,1) both;
}
.ticket-modal .close-btn { top: 1.8vmin; right: 1.8vmin; }
.ticket-modal-num {
  font-family: 'Times New Roman', Times, serif;
  font-weight: 700;
  font-size: 20vmin;
  line-height: 1;
  color: oklch(24% 0.025 255);
}
.ticket-modal-label {
  font-weight: 700;
  font-size: 2.2vmin;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: oklch(58% 0.1 80);
  text-align: center;
  max-width: 34vmin;
}

/* ---------- questions.html ---------- */

.question-card {
  position: relative;
  background: #ffffff;
  border-radius: 1.8vmin;
  border: 0.15vmin solid oklch(80% 0.03 85);
  box-shadow: inset 0 0 0 0.3vmin oklch(98% 0.008 90), inset 0 0 0 0.44vmin oklch(66% 0.1 80 / 0.35), 0 1.2vmin 2.6vmin -1.4vmin oklch(20% 0.02 250 / 0.18);
  padding: 2.8vmin 2.6vmin;
  display: flex;
  flex-direction: column;
  gap: 1.3vmin;
}
.question-eyebrow {
  font-weight: 700;
  font-size: 1.4vmin;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: oklch(58% 0.13 78);
}
.question-text {
  margin: 0;
  font-family: 'Times New Roman', Times, serif;
  font-weight: 500;
  font-size: 2.5vmin;
  line-height: 1.5;
  color: oklch(24% 0.025 255);
}
.question-text mark { background: #fde047; padding: 0 0.15em; border-radius: 0.2em; color: inherit; }
.question-btn { align-self: flex-end; padding: 1vmin 2.6vmin; font-size: 1.5vmin; }

.verse-modal {
  position: absolute;
  inset: 0.5cm;
  background: #ffffff;
  border-radius: 2vmin;
  border: 0.16vmin solid oklch(80% 0.03 85);
  box-shadow: inset 0 0 0 0.35vmin oklch(98% 0.008 90), inset 0 0 0 0.55vmin oklch(66% 0.1 80 / 0.4), 0 3vmin 6vmin -2vmin oklch(20% 0.02 250 / 0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2vmin;
  padding: 4vmin;
  animation: frameZoom 0.35s cubic-bezier(0.22,1,0.36,1) both;
}
.verse-modal .close-btn { top: 2vmin; right: 2vmin; }
.verse-eyebrow {
  font-weight: 700;
  font-size: 1.6vmin;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: oklch(58% 0.13 78);
}
.verse-surah {
  font-weight: 700;
  font-size: 2vmin;
  letter-spacing: 0.04em;
  color: oklch(38% 0.02 240);
}
.verse-arabic {
  margin: 0;
  max-width: 78%;
  text-align: center;
  font-family: 'Scheherazade New', 'Amiri', 'Traditional Arabic', 'Arial', 'Tahoma', sans-serif;
  font-weight: 400;
  font-size: 3.4vmin;
  line-height: 2.1;
  color: oklch(24% 0.025 255);
}

.hidden { display: none !important; }
