/* ============================================
   SIO QUBA — Design tokens & base styles
   Bold / modern / dark
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Manrope:wght@400;500;600;700&family=Space+Mono:wght@400;700&display=swap');

@font-face {
  font-family: 'OpenDyslexic';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(https://cdn.jsdelivr.net/fontsource/fonts/opendyslexic@latest/latin-400-normal.woff2) format('woff2');
}

:root {
  /* Color */
  --void: #050608;
  --elevated: #0E1116;
  --elevated-2: #161A21;
  --border-subtle: rgba(255, 255, 255, 0.10);

  --accent-cyan: #22D3EE;
  --accent-violet: #7C5CFC;
  --accent-blue: #3B82F6;

  --text-primary: #F5F7FA;
  --text-secondary: #9AA5B1;
  --text-faint: #5C6672;

  /* Type */
  --font-display: 'Space Grotesk', -apple-system, sans-serif;
  --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Space Mono', monospace;

  /* Layout */
  --max-width: 1180px;
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 6rem;
  --space-7: 9rem;

  --radius: 10px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--void);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  margin: 0;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

p { line-height: 1.65; margin: 0; color: var(--text-secondary); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-cyan);
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-3);
}

:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 3px;
}

/* ============================================
   Navigation
   ============================================ */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5, 6, 8, 0.75);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}

.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-2);
  padding-bottom: var(--space-2);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text-primary);
}

.brand-mark {
  height: 34px;
  width: auto;
  flex-shrink: 0;
  object-fit: contain;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.nav-links {
  display: flex;
  gap: var(--space-4);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s var(--ease);
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent-cyan);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
}

@media (max-width: 720px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--void);
    padding: var(--space-2) var(--space-3) var(--space-3);
    gap: var(--space-2);
    border-bottom: 1px solid var(--border-subtle);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
}

/* ============================================
   Buttons
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: linear-gradient(100deg, var(--accent-cyan), var(--accent-violet));
  color: #05060A;
}
.btn-primary:hover { box-shadow: 0 0 24px rgba(34, 211, 238, 0.35); }

.btn-ghost {
  background: transparent;
  border-color: var(--border-subtle);
  color: var(--text-primary);
}
.btn-ghost:hover { border-color: var(--accent-cyan); color: var(--accent-cyan); }

.btn-dark {
  background: var(--elevated-2);
  color: var(--text-primary);
  border-color: var(--border-subtle);
}
.btn-dark:hover { border-color: var(--accent-cyan); color: var(--accent-cyan); }

.btn-neon {
  position: relative;
  overflow: hidden;
  background: rgba(34, 211, 238, 0.05);
  border-color: rgba(34, 211, 238, 0.28);
  color: var(--text-primary);
}
.btn-neon::before,
.btn-neon::after {
  content: '';
  position: absolute;
  left: 12%;
  right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.btn-neon::before { top: 0; }
.btn-neon::after { bottom: 0; }
.btn-neon:hover {
  background: rgba(34, 211, 238, 0.09);
  border-color: rgba(34, 211, 238, 0.5);
}
.btn-neon:hover::before,
.btn-neon:hover::after { opacity: 1; }

/* ============================================
   Generic sections
   ============================================ */

.section {
  padding: var(--space-6) 0;
}

.section-sandstone { background: var(--elevated); }

.section-head {
  max-width: 60ch;
  margin-bottom: var(--space-5);
}

.section-head .eyebrow { margin-bottom: var(--space-1); display: block; }

.section-head h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  color: var(--text-primary);
}

.section-head p {
  margin-top: var(--space-2);
  font-size: 1.05rem;
}

/* reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease) var(--reveal-delay, 0s), transform 0.6s var(--ease);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* Shared microinteraction — quick press feedback on interactive controls site-wide */
.feature-card, .contact-card, .cine-action-btn, .story-action-btn,
.hijri-nav-btn, .era-pill, .btn {
  transition: transform 0.15s ease, border-color 0.25s, box-shadow 0.25s, background 0.2s;
}
.feature-card:active, .contact-card:active, .cine-action-btn:active,
.story-action-btn:active, .hijri-nav-btn:active, .era-pill:active, .btn:active {
  transform: scale(0.94);
}

/* value cards */
.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}

.value-card {
  background: var(--elevated-2);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: var(--space-3);
}

.value-card .mark {
  width: 32px;
  height: 32px;
  margin-bottom: var(--space-2);
}

.value-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.value-card p { font-size: 0.95rem; }

@media (max-width: 760px) {
  .value-grid { grid-template-columns: 1fr; }
}

/* spotlight banner (Gallery page header) — drifting radial gradients, no blur, very light to render */
.spotlight-banner {
  position: relative; overflow: hidden; background: var(--void);
  min-height: 50vh; display: flex; align-items: flex-end;
  justify-content: center; padding-bottom: var(--space-5);
  border-bottom: 1px solid var(--border-subtle);
}
.sparkle-wrap { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.sparkle-wrap canvas { display: block; width: 100%; height: 100%; }
.spotlight-banner, .section, .site-footer, .dock-container, .brand-float,
.fluid-menu, .modal-overlay, .lightbox { position: relative; z-index: 1; }
.spotlight-content { position: relative; z-index: 2; text-align: center; }
.spotlight-content .eyebrow { display: block; margin-bottom: var(--space-1); }
.spotlight-content h1 { font-size: clamp(2rem,4vw,2.8rem); color: var(--text-primary); }
.page-banner { background: var(--void); color: var(--text-primary); padding: var(--space-5) 0; border-bottom: 1px solid var(--border-subtle); }
.page-banner .eyebrow { display: block; margin-bottom: var(--space-1); }
.page-banner h1 { color: var(--text-primary); font-size: clamp(2rem,4vw,2.8rem); }
.page-banner p { margin-top: var(--space-2); max-width: 56ch; }

/* ============================================
   Gallery — Horizon (pink/cyan blobs + horizontal scroll)
   ============================================ */
.gallery-page { background: #060814; }

/* Progress bar */
.gal-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, #ff5c8a, #23d5ff);
  z-index: 9500; box-shadow: 0 0 12px #ff5c8a; pointer-events: none;
}

/* Ambient gradient bg — single compositor-only layer, no filter/blur (perf-friendly) */
.gal-bg {
  position: fixed; z-index: -2; pointer-events: none;
  top: -15vh; left: -15vw; width: 130vw; height: 130vh;
  background:
    radial-gradient(38vw 38vw at 12% 15%, rgba(255,92,138,0.30), transparent 65%),
    radial-gradient(34vw 34vw at 88% 82%, rgba(35,213,255,0.26), transparent 65%),
    radial-gradient(30vw 30vw at 58% 48%, rgba(138,92,255,0.20), transparent 65%),
    #060814;
  will-change: transform;
  animation: galBgDrift 26s ease-in-out infinite;
}
@keyframes galBgDrift {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-3vw, 2.5vh); }
}

/* Grain overlay */
.gal-grain {
  position: fixed; inset: 0; z-index: -1; opacity: 0.05; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.gallery-hero {
  position: relative; min-height: 46vh;
  display: flex; align-items: center; justify-content: flex-start;
  padding: 120px 6% 40px; overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.gallery-hero::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6,8,20,0.25) 0%, rgba(6,8,20,0.8) 80%);
}
.gallery-hero-content { position: relative; z-index: 2; }
.gallery-hero-eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: #ff5c8a; margin-bottom: 1rem; padding: 0.25rem 0.9rem;
  border: 1px solid rgba(255,92,138,0.3); border-radius: 999px;
  background: rgba(255,92,138,0.08);
}
.gallery-hero h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.6rem,7.5vw,5rem); font-weight: 900;
  letter-spacing: -0.04em; line-height: 0.95; color: #fff; margin-bottom: 1rem;
}
.gallery-hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, #ff5c8a 0%, #23d5ff 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: #ff5c8a;
}
.gallery-hero p { font-size: 0.95rem; color: rgba(255,255,255,0.4); max-width: 36ch; line-height: 1.7; }
.gallery-hero-num {
  position: absolute; right: 5%; top: 50%; transform: translateY(-50%);
  font-size: clamp(8rem,22vw,18rem); font-weight: 900;
  color: rgba(255,255,255,0.04); line-height: 1;
  font-family: 'Space Grotesk', sans-serif;
  pointer-events: none; user-select: none; letter-spacing: -0.05em;
}

.gallery-toolbar {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 0; gap: 1rem; flex-wrap: wrap;
  position: relative; z-index: 1;
}
.gallery-count {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: #ff5c8a; opacity: 0.8;
}

/* Scroll-scrub reveal text */
.gal-reveal {
  position: relative; z-index: 1; min-height: 34vh;
  display: flex; align-items: center; justify-content: center;
  padding: 6vh 6vw;
}
.gal-reveal-text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.3rem, 3.4vw, 2.3rem); font-weight: 800; line-height: 1.45;
  max-width: 900px; text-align: center;
}
.gal-reveal-text .word { color: rgba(255,255,255,0.12); transition: color 0.25s ease; }
.gal-reveal-text .word.lit { color: #fff; }

/* ===== HORIZONTAL SCROLL HIJACK ===== */
.h-scroll { position: relative; z-index: 1; }
.h-sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; align-items: center; }
.h-track { display: flex; gap: 4vw; padding: 0 8vw; will-change: transform; }

/* Cards — reuses .cine-item class from JS for hooks, restyled for horizontal layout */
.cine-item {
  position: relative; flex: 0 0 auto; cursor: pointer;
  width: 60vw; max-width: 640px; height: 62vh; border-radius: 22px; overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.55);
  background: rgba(255,255,255,0.03);
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.5s ease var(--reveal-delay, 0s), transform 0.35s cubic-bezier(.2,.8,.2,1);
}
.cine-item.in-view { opacity: 1; transform: translateY(0); }
.cine-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s ease; }
.cine-item:hover img { transform: scale(1.06); }

/* Skeleton shimmer while photos are loading */
.cine-skeleton {
  background: linear-gradient(100deg, rgba(255,255,255,0.03) 30%, rgba(255,255,255,0.09) 50%, rgba(255,255,255,0.03) 70%);
  background-size: 200% 100%;
  animation: galShimmer 1.6s ease-in-out infinite;
}
@keyframes galShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* cursor-follow spotlight glow — removed, was costing extra paint on hover for little gain */

.card-index {
  position: absolute; top: 20px; left: 24px; z-index: 2;
  font-family: 'Space Grotesk', sans-serif; font-size: clamp(2.4rem,4.5vw,4.2rem);
  font-weight: 900; color: #fff; opacity: 0.25; pointer-events: none; user-select: none;
}

.cine-overlay {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.3) 60%, transparent 100%);
  opacity: 1; padding: 1.6rem;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.cine-title { font-family: 'Space Grotesk',sans-serif; font-size: clamp(1.1rem,2vw,1.7rem); font-weight: 800; color: #fff; line-height: 1.3; margin-bottom: 0.3rem; }
.cine-caption { font-size: 0.85rem; color: rgba(255,255,255,0.65); line-height: 1.5; margin-bottom: 0.4rem; }
.cine-date { font-size: 0.65rem; color: #ff5c8a; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }

.cine-actions { position: absolute; top: 12px; right: 12px; display: none; gap: 5px; z-index: 3; }
.h-track.admin-mode .cine-actions { display: flex; }
.cine-action-btn {
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(6,8,20,0.8); border: 1px solid rgba(255,255,255,0.15);
  color: #fff; display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.18s;
}
.cine-action-btn:hover { background: rgba(255,92,138,0.25); border-color: #ff5c8a; color: #ff5c8a; }
.cine-delete-btn:hover { background: rgba(248,113,113,0.2); border-color: #f87171; color: #f87171; }

@media(max-width: 700px) {
  .cine-item { width: 84vw; max-width: 90vw; height: 50vh; }
  .h-track { gap: 5vw; padding: 0 7vw; }
  .card-index { top: 14px; left: 16px; }
  .cine-overlay { padding: 1.1rem; }
}

.gal-scroll-hint {
  position: absolute; bottom: 6vh; left: 50%; transform: translateX(-50%);
  font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255,255,255,0.45); z-index: 2; pointer-events: none;
  animation: galHintBob 1.8s ease-in-out infinite;
  transition: opacity 0.4s ease;
}
@keyframes galHintBob { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(8px); } }

/* Cinematic lightbox */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(4,5,14,0.96); backdrop-filter: blur(20px);
  z-index: 9000; display: none; align-items: center;
  justify-content: center; flex-direction: column; gap: 1rem;
}
.lightbox.active { display: flex; }
#lightbox-img { max-width: 90vw; max-height: 78vh; object-fit: contain; border-radius: 10px; box-shadow: 0 24px 80px rgba(0,0,0,0.6); }
.lightbox-meta { text-align: center; }
.lightbox-meta .lb-title { font-family: 'Space Grotesk',sans-serif; font-size: 1rem; font-weight: 700; color: #fff; }
.lightbox-meta .lb-date { font-size: 0.7rem; color: #ff5c8a; margin-top: 2px; letter-spacing: 0.08em; text-transform: uppercase; }
.lightbox-close {
  position: absolute; top: 1.2rem; right: 1.2rem;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.7); width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.2s; z-index: 9001;
}
.lightbox-close:hover { background: rgba(255,92,138,0.15); border-color: #ff5c8a; color: #fff; }

.gallery-empty { text-align: center; padding: var(--space-6) 0; position: relative; z-index: 1; }
.gallery-empty .eyebrow { display: block; margin-bottom: var(--space-2); }

/* compat aliases */
.story-gallery { display: contents; }
.story-action-btn { display: none !important; }

/* dock navigation (floating bottom nav, replaces top bar) */
.dock-container {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  max-width: calc(100vw - 24px);
}

.dock {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 14px 20px;
  background: rgba(10, 15, 30, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  backdrop-filter: blur(24px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}
.dock::-webkit-scrollbar { display: none; }

@media (max-width: 480px) {
  .dock { gap: 2px; padding: 10px 12px; }
  .dock-item { width: 38px; height: 38px; }
  .dock-item svg { width: 18px; height: 18px; }
  .dock-label { display: none !important; }
  .dock-divider { margin: 0 2px; }
}

.dock-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  text-decoration: none;
  color: #64748b;
  transition: all 0.3s ease;
  cursor: pointer;
}

.dock-item:hover {
  color: #22D3EE;
  transform: translateY(-6px) scale(1.1);
  background: rgba(34, 211, 238, 0.08);
}

.dock-item.active {
  color: #22D3EE;
  background: rgba(34, 211, 238, 0.08);
}

.dock-item svg {
  width: 22px;
  height: 22px;
}

.dock-item:hover svg {
  filter: drop-shadow(0 0 8px rgba(34, 211, 238, 0.6));
}

.dock-label {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 10px;
  background: rgba(10, 15, 30, 0.95);
  border: 1px solid rgba(34, 211, 238, 0.2);
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 500;
  color: #22D3EE;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s ease;
}

.dock-item:hover .dock-label {
  opacity: 1;
  top: -36px;
}

.dock-divider {
  width: 1px;
  height: 24px;
  background: rgba(255, 255, 255, 0.06);
  margin: 0 4px;
}

@media (max-width: 640px) {
  .dock { padding: 12px 16px; }
  .dock-item { width: 44px; height: 44px; }
  .dock-item svg { width: 20px; height: 20px; }
}

.brand-float {
  position: fixed;
  top: 24px;
  left: 24px;
  z-index: 60;
}
.brand-float .brand-mark { height: 30px; }

/* ============================================
   Events page — Islamic geometric card style
   ============================================ */
.events-list {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

/* Card */
.event-card {
  position: relative;
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 0;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  overflow: hidden;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s var(--ease) var(--reveal-delay, 0s), transform 0.5s var(--ease);
}
.event-card.in-view { opacity: 1; transform: translateY(0); }
.event-card:hover {
  border-color: rgba(34,211,238,0.28);
  box-shadow: 0 12px 34px rgba(34,211,238,0.08);
  transform: translateY(-4px);
  transition: transform 0.25s ease, border-color 0.25s, box-shadow 0.25s;
}
.event-card.upcoming-card {
  border-color: rgba(34,211,238,0.18);
}
.event-card.upcoming-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(34,211,238,0.04) 0%, transparent 60%);
  pointer-events: none;
  border-radius: 14px;
}

/* Skeleton shimmer while events load */
.event-skeleton {
  height: 110px;
  background: linear-gradient(100deg, rgba(255,255,255,0.03) 30%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.03) 70%);
  background-size: 200% 100%;
  animation: galShimmer 1.6s ease-in-out infinite;
}

/* Geometric date badge — left column */
.event-date-badge {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.35);
  border-right: 1px solid rgba(255,255,255,0.06);
  padding: 1.1rem 0.5rem;
  overflow: hidden;
  z-index: 0;
}
/* 8-pointed star watermark behind date */
.event-date-badge::before {
  content: '✦';
  position: absolute;
  font-size: 5rem;
  opacity: 0.04;
  color: var(--cyan, #22D3EE);
  pointer-events: none;
  line-height: 1;
}
.upcoming-card .event-date-badge {
  background: rgba(34,211,238,0.06);
  border-right-color: rgba(34,211,238,0.12);
}
.event-date-badge .day {
  display: block;
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(160deg, #22D3EE, #7C5CFC);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.event-date-badge .month {
  display: block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary, #aaa);
  margin-top: 3px;
}
.event-date-badge .year-label {
  display: block;
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  color: var(--text-secondary, #aaa);
  opacity: 0.55;
  margin-top: 1px;
}

/* Card body — right column */
.event-body {
  flex: 1;
  min-width: 0;
  padding: 1rem 1.1rem 1rem 1.1rem;
}
.event-top-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 0.35rem;
}
.event-title {
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary, #fff);
  line-height: 1.3;
}
.event-status {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  border: 1px solid;
  flex-shrink: 0;
}
.event-status.upcoming {
  color: #22D3EE;
  border-color: rgba(34,211,238,0.4);
  background: rgba(34,211,238,0.08);
}
.event-status.past {
  color: var(--text-secondary, #aaa);
  border-color: rgba(255,255,255,0.1);
  background: transparent;
}

.event-desc {
  font-size: 0.88rem;
  color: var(--text-secondary, #aaa);
  margin-bottom: 0.35rem;
  line-height: 1.5;
}
.event-location {
  font-size: 0.78rem;
  color: var(--text-secondary, #aaa);
  opacity: 0.65;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Countdown timer for upcoming events */
.event-countdown {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.6rem;
  flex-wrap: wrap;
}
.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(34,211,238,0.06);
  border: 1px solid rgba(34,211,238,0.15);
  border-radius: 8px;
  padding: 0.3rem 0.55rem;
  min-width: 44px;
}
.countdown-num {
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: #22D3EE;
  line-height: 1;
}
.countdown-label {
  font-size: 0.55rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary, #aaa);
  margin-top: 2px;
}
.countdown-expired {
  font-size: 0.78rem;
  color: var(--text-secondary, #aaa);
  font-style: italic;
  margin-top: 0.4rem;
}

/* Admin action buttons */
.event-actions {
  position: absolute;
  top: 8px;
  right: 8px;
  display: none;
  gap: 5px;
  z-index: 2;
}
.events-list.admin-mode .event-actions { display: flex; }

@media (max-width: 520px) {
  .event-card { grid-template-columns: 70px 1fr; }
  .event-date-badge .day { font-size: 1.5rem; }
  .event-body { padding: 0.75rem; }
  .countdown-unit { min-width: 36px; padding: 0.25rem 0.4rem; }
  .countdown-num { font-size: 0.95rem; }
}

/* fluid host menu (floating, hidden until opened) */
.fluid-menu {
  position: fixed;
  right: var(--space-3);
  bottom: var(--space-3);
  z-index: 60;
  width: 56px;
  height: 56px;
}

.fluid-menu-glow {
  position: absolute;
  inset: -22px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.16), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  filter: blur(6px);
}

.fluid-menu-trigger,
.fluid-menu-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  background: var(--elevated-2);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.fluid-menu-trigger {
  z-index: 2;
  transition: border-color 0.25s var(--ease);
}
.fluid-menu-trigger:hover { border-color: var(--accent-cyan); }
.fluid-menu-trigger .icon-close { display: none; }
.fluid-menu[data-expanded="true"] .fluid-menu-trigger .icon-open { display: none; }
.fluid-menu[data-expanded="true"] .fluid-menu-trigger .icon-close { display: block; }

.fluid-menu-item {
  z-index: 1;
  opacity: 0;
  transform: translateY(0);
  pointer-events: none;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}
.fluid-menu-item:hover { border-color: var(--accent-cyan); color: var(--accent-cyan); }

.fluid-menu[data-expanded="true"] .fluid-menu-item {
  opacity: 1;
  transform: translateY(-68px);
  pointer-events: auto;
}

/* lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(2, 3, 5, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: var(--space-3);
}
.lightbox.open { display: flex; }
.lightbox img { max-height: 88vh; max-width: 92vw; border-radius: 4px; }
.lightbox-close {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
}

/* admin modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 3, 5, 0.75);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: var(--space-3);
}
.modal-overlay.open { display: flex; }

.modal {
  background: var(--elevated-2);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: var(--space-4);
  width: 100%;
  max-width: 420px;
  position: relative;
}

.modal h3 { font-size: 1.15rem; margin-bottom: var(--space-2); color: var(--text-primary); }
.modal p.hint { font-size: 0.88rem; margin-bottom: var(--space-3); }

.field {
  margin-bottom: var(--space-2);
}
.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--text-primary);
}
.field input[type="password"],
.field input[type="file"],
.field input[type="text"],
.field select {
  width: 100%;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--void);
  color: var(--text-primary);
}

.modal-actions {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-3);
}

.modal-msg {
  font-size: 0.85rem;
  margin-top: var(--space-2);
  min-height: 1.2em;
}
.modal-msg.error { color: #F87171; }
.modal-msg.success { color: var(--accent-cyan); }

/* contact links (About page) */
.contact-links {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-top: var(--space-3);
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.3rem;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: var(--elevated-2);
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease), transform 0.2s var(--ease);
}

.contact-link:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  transform: translateY(-2px);
}

.contact-link svg { flex-shrink: 0; }

/* ============================================
   Footer
   ============================================ */

.site-footer {
  background: var(--void);
  color: var(--text-secondary);
  padding: var(--space-4) 0;
  font-size: 0.88rem;
  border-top: 1px solid var(--border-subtle);
}
.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.site-footer a { color: var(--text-secondary); text-decoration: none; }
.site-footer a:hover { color: var(--accent-cyan); }

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.footer-mark {
  height: 18px;
  width: auto;
  object-fit: contain;
  vertical-align: middle;
}

/* ============================================
   Editor (placeholder) page
   ============================================ */

.editor-locked {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--void);
  color: var(--text-primary);
  padding: var(--space-4);
}
.editor-locked .eyebrow { margin-bottom: var(--space-2); display: block; }
.editor-locked h1 { color: var(--text-primary); font-size: clamp(1.8rem, 4vw, 2.4rem); }
.editor-locked p { margin-top: var(--space-2); max-width: 46ch; }

/* ============================================
   Hijri Calendar — Glass Dark UI
   ============================================ */

.hijri-cal-section {
  padding-bottom: 0;
}

/* Outer card wrapper */
.hijri-cal-wrap {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 20px;
  padding: 1.4rem 1.2rem 1.2rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 40px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.06);
}

/* Header row */
.hijri-cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.4rem;
  gap: 0.8rem;
}

.hijri-month-display {
  text-align: center;
  flex: 1;
}

.hijri-month-name {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.15rem, 3vw, 1.55rem);
  font-weight: 800;
  color: #22D3EE; /* fallback if gradient clip fails */
  background: linear-gradient(100deg, #C9A24B 0%, #22D3EE 50%, #7C5CFC 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.hijri-year {
  display: inline-block;
  margin-top: 0.25rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  padding: 0.15rem 0.65rem;
}

.hijri-gregorian-label {
  display: block;
  font-size: 0.68rem;
  color: var(--text-secondary);
  opacity: 0.45;
  margin-top: 0.3rem;
  letter-spacing: 0.04em;
}

/* Nav pills */
.hijri-nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text-primary);
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 10px;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s, color 0.18s, transform 0.12s;
  flex-shrink: 0;
}
.hijri-nav-btn:hover {
  background: rgba(34,211,238,0.1);
  border-color: rgba(34,211,238,0.35);
  color: #22D3EE;
  transform: scale(1.08);
}
.hijri-nav-btn:active { transform: scale(0.95); }

/* Weekday headers */
.hijri-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 2px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding-bottom: 0.5rem;
  margin-bottom: 0.5rem;
}
.hijri-weekdays span {
  text-align: center;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  opacity: 0.55;
  padding: 0.2rem 0;
}
/* Friday column gold tint */
.hijri-weekdays span:nth-child(6) {
  color: #C9A24B;
  opacity: 0.85;
}

/* Grid */
.hijri-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

/* Cells */
.hijri-cell {
  position: relative;
  aspect-ratio: 1 / 1.1;
  background: rgba(255,255,255,0.025);
  border: 1px solid transparent;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: default;
  transition: background 0.15s, border-color 0.15s, transform 0.12s, box-shadow 0.15s;
  padding: 2px 1px;
  overflow: hidden;
  gap: 1px;
}
.hijri-cell.empty {
  background: transparent;
  border-color: transparent;
  pointer-events: none;
}

/* Friday cells (col 6 = index 5, but CSS nth doesn't apply directly to grid position)
   We mark them in JS via .friday class */
.hijri-cell.friday:not(.empty) {
  background: rgba(201,162,75,0.04);
  border-color: rgba(201,162,75,0.1);
}

.hijri-cell:not(.empty):hover {
  background: rgba(34,211,238,0.07);
  border-color: rgba(34,211,238,0.2);
  transform: scale(1.04);
  z-index: 1;
}
.hijri-cell[data-tooltip] { cursor: pointer; }

/* Today — pulsing ring */
.hijri-cell.today {
  background: rgba(34,211,238,0.1);
  border-color: #22D3EE;
  box-shadow: 0 0 0 0 rgba(34,211,238,0.4);
  animation: hijri-pulse 2.4s ease-in-out infinite;
}
@keyframes hijri-pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(34,211,238,0.35); }
  50%      { box-shadow: 0 0 0 5px rgba(34,211,238,0); }
}
.hijri-cell.today .hijri-day-num {
  color: #22D3EE;
  font-weight: 800;
}

/* Marked cells */
.hijri-cell.has-annual  { border-color: rgba(201,162,75,0.35); }
.hijri-cell.has-history { border-color: rgba(34,211,238,0.25); }
.hijri-cell.has-event   { border-color: rgba(124,92,252,0.4); }
.hijri-cell.has-annual.has-history,
.hijri-cell.has-annual.has-event,
.hijri-cell.has-history.has-event { border-color: rgba(34,211,238,0.4); }

/* Day numbers */
.hijri-day-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(0.7rem, 1.8vw, 0.9rem);
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1;
}

.hijri-greg-num {
  font-size: 0.54rem;
  color: var(--text-secondary);
  opacity: 0.4;
  line-height: 1;
}

/* Dots row */
.cal-dots-row {
  display: flex;
  gap: 2px;
  justify-content: center;
  min-height: 6px;
}
.cal-dot {
  display: block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  flex-shrink: 0;
}
.cal-dot.annual  { background: #C9A24B; }
.cal-dot.history { background: #22D3EE; }
.cal-dot.event   { background: #7C5CFC; }

/* Legend */
.hijri-legend {
  display: flex;
  align-items: center;
  gap: 0.4rem 1.2rem;
  flex-wrap: wrap;
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 0.72rem;
  color: var(--text-secondary);
  opacity: 0.75;
}
.legend-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.legend-dot.annual  { background: #C9A24B; }
.legend-dot.history { background: #22D3EE; }
.legend-dot.event   { background: #7C5CFC; }

/* Tooltip */
.hijri-tooltip {
  position: fixed;
  z-index: 9999;
  background: rgba(8,8,18,0.96);
  border: 1px solid rgba(34,211,238,0.25);
  border-radius: 10px;
  padding: 0.55rem 0.85rem;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.12s;
  max-width: 230px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}
.hijri-tooltip.visible { opacity: 1; }
.hijri-tooltip span {
  display: block;
  font-size: 0.76rem;
  color: var(--text-primary);
  line-height: 1.55;
}
.hijri-tooltip span + span {
  margin-top: 0.25rem;
  padding-top: 0.25rem;
  border-top: 1px solid rgba(255,255,255,0.07);
}

@media (max-width: 480px) {
  .hijri-cal-wrap { padding: 1rem 0.75rem; border-radius: 14px; }
  .hijri-cell { border-radius: 7px; }
  .hijri-greg-num { display: none; }
  .cal-dot { width: 3px; height: 3px; }
  .hijri-grid { gap: 3px; }
}

/* ============================================
   Events page — Orb bg
   ============================================ */

.events-page { background: #05060A; }

.events-geo-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.events-geo-bg::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,162,75,0.12) 0%, transparent 70%);
  top: -150px; left: -100px;
  animation: orb-a 18s ease-in-out infinite alternate;
}
.events-geo-bg::after {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34,211,238,0.08) 0%, transparent 70%);
  bottom: -100px; right: -80px;
  animation: orb-b 22s ease-in-out infinite alternate;
}
@keyframes orb-a {
  0%   { transform: translate(0,0) scale(1); }
  100% { transform: translate(120px, 80px) scale(1.2); }
}
@keyframes orb-b {
  0%   { transform: translate(0,0) scale(1); }
  100% { transform: translate(-100px, -60px) scale(1.15); }
}

.events-page > *:not(.events-geo-bg):not(.hijri-tooltip):not(.dock-container):not(.brand-float):not(.fluid-menu):not(.modal-overlay) {
  position: relative;
  z-index: 1;
}
.events-page .dock-container,
.events-page .brand-float,
.events-page .fluid-menu,
.events-page .modal-overlay,
.events-page .hijri-tooltip { z-index: 100; }
@keyframes geo-drift {
  0%   { background-position: 0 0; }
  100% { background-position: 80px 80px; }
}

/* ============================================
   Quiz — Trivia (amber / purple spotlight)
   ============================================ */
.quiz-page { background: #0b0714; }

.quiz-spotlight {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(60vw 60vw at 50% -10%, rgba(245,196,81,0.16), transparent 60%),
    radial-gradient(50vw 50vw at 100% 100%, rgba(124,58,237,0.16), transparent 65%),
    #0b0714;
}

.quiz-hero {
  position: relative; min-height: 36vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 120px 6% 30px;
}
.quiz-hero-eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: #f5c451; margin-bottom: 1rem; padding: 0.25rem 0.9rem;
  border: 1px solid rgba(245,196,81,0.3); border-radius: 999px;
  background: rgba(245,196,81,0.08);
}
.quiz-hero h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.2rem,6vw,3.4rem); font-weight: 900;
  letter-spacing: -0.03em; line-height: 1.05; color: #fff; margin-bottom: 0.8rem;
}
.quiz-hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, #f5c451 0%, #7c3aed 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: #f5c451;
}
.quiz-hero p { font-size: 0.95rem; color: rgba(255,255,255,0.45); max-width: 42ch; }

.quiz-wrap { max-width: 640px; margin: 0 auto; padding: 0 6% 10vh; position: relative; z-index: 1; }

.quiz-progress-track { height: 6px; border-radius: 999px; background: rgba(255,255,255,0.08); overflow: hidden; margin-bottom: 1.2rem; }
.quiz-progress-fill { height: 100%; background: linear-gradient(90deg,#f5c451,#7c3aed); border-radius: 999px; transition: width 0.4s ease; }

.quiz-meta-row {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.4rem;
  font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.45);
}
.quiz-score-badge { color: #f5c451; font-weight: 700; }

.quiz-card {
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px; padding: 2rem 1.6rem;
  opacity: 0; transform: translateY(12px);
  animation: quizCardIn 0.4s ease forwards;
}
@keyframes quizCardIn { to { opacity: 1; transform: translateY(0); } }

.quiz-question {
  font-family: 'Space Grotesk', sans-serif; font-size: clamp(1.15rem,3vw,1.5rem);
  font-weight: 800; color: #fff; margin-bottom: 1.6rem; line-height: 1.4;
}

.quiz-options { display: grid; gap: 0.7rem; }
.quiz-option {
  text-align: left; padding: 0.9rem 1.1rem; border-radius: 12px;
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08);
  color: #fff; font-size: 0.95rem; cursor: pointer; width: 100%;
  display: flex; align-items: center; gap: 0.7rem;
  transition: border-color 0.2s, background 0.2s, transform 0.15s ease;
}
.quiz-option:hover { border-color: rgba(245,196,81,0.35); background: rgba(245,196,81,0.06); }
.quiz-option:active { transform: scale(0.98); }
.quiz-option .quiz-opt-letter {
  width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,0.06);
  display: flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 700;
  flex-shrink: 0;
}
.quiz-option.correct { border-color: #34d399; background: rgba(52,211,153,0.12); }
.quiz-option.correct .quiz-opt-letter { background: #34d399; color: #05130d; }
.quiz-option.wrong { border-color: #f87171; background: rgba(248,113,113,0.12); }
.quiz-option.wrong .quiz-opt-letter { background: #f87171; color: #1a0505; }
.quiz-option.disabled { pointer-events: none; opacity: 0.75; }

.quiz-feedback { margin-top: 1rem; font-size: 0.85rem; font-weight: 600; min-height: 1.2em; }
.quiz-feedback.correct { color: #34d399; }
.quiz-feedback.wrong { color: #f87171; }

.quiz-next-btn { margin-top: 1.4rem; width: 100%; }

.quiz-result { text-align: center; padding: 3rem 1rem; }
.quiz-result .quiz-score-big {
  font-family: 'Space Grotesk', sans-serif; font-size: clamp(3rem,10vw,5rem); font-weight: 900;
  background: linear-gradient(90deg,#f5c451,#7c3aed); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: #f5c451;
}
.quiz-result .quiz-tier { font-size: 1rem; color: rgba(255,255,255,0.7); margin: 0.8rem 0 2rem; }

.quiz-skeleton-q {
  height: 220px; border-radius: 20px;
  background: linear-gradient(100deg, rgba(255,255,255,0.03) 30%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.03) 70%);
  background-size: 200% 100%; animation: galShimmer 1.6s ease-in-out infinite;
}

.quiz-manage-list {
  max-height: 240px; overflow-y: auto; margin-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.08); padding-top: 1rem; display: grid; gap: 0.5rem;
}
.quiz-manage-item {
  display: flex; justify-content: space-between; align-items: center; gap: 0.6rem;
  padding: 0.6rem 0.8rem; border-radius: 10px; background: rgba(255,255,255,0.03); font-size: 0.82rem;
}
.quiz-manage-item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.quiz-manage-actions { display: flex; gap: 4px; flex-shrink: 0; }

@media(max-width: 600px) {
  .quiz-card { padding: 1.5rem 1.1rem; }
}
