/* ────── Sacred Ayat — Brand-Cinematic CSS ────── */
:root {
  --gold: #f5d061;
  --gold-bright: #ffd76a;
  --midnight: #0b1e2d;
  --midnight-deep: #060f17;
  --ivory: #f3e9d2;
  --ivory-soft: rgba(243, 233, 210, 0.78);
  --shadow: rgba(0, 0, 0, 0.45);
  --max: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: auto; }  /* Lenis handles smooth scroll */

body {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 18px;
  line-height: 1.65;
  color: var(--ivory);
  background: var(--midnight-deep);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

h1, h2, h3, h4, h5 {
  font-family: 'Anton', Impact, sans-serif;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.05;
  color: var(--ivory);
}
h1 { font-size: clamp(2.8rem, 7vw, 5.8rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3.4rem); }
h3 { font-size: clamp(1.1rem, 1.8vw, 1.45rem); }
h4 { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.18em; color: var(--gold); }
h5 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.18em; color: var(--gold); margin-bottom: 0.85em; }

p { font-weight: 400; }
em { font-style: italic; color: var(--gold-bright); font-weight: 500; }
strong { color: var(--ivory); font-weight: 600; }

.kicker {
  font-family: 'Anton', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.32em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 1.4rem;
}

/* ────── Buttons ────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.6rem;
  font-family: 'Anton', sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn-gold {
  background: var(--gold);
  color: var(--midnight-deep);
  box-shadow: 0 0 24px rgba(245, 208, 97, 0.18);
}
.btn-gold:hover {
  background: var(--gold-bright);
  transform: translateY(-2px);
  box-shadow: 0 0 36px rgba(245, 208, 97, 0.32);
}
.btn-ghost {
  background: transparent;
  color: var(--ivory);
  border-color: rgba(243, 233, 210, 0.32);
}
.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

/* ────── Nav ────── */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.2rem 2.4rem;
  background: linear-gradient(180deg, rgba(6,15,23,0.85), rgba(6,15,23,0));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
#nav .brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: 'Anton', sans-serif;
  letter-spacing: 0.22em;
  color: var(--ivory);
  font-size: 1rem;
}
#nav .brand img { width: 36px; height: 36px; }
#nav ul { display: flex; gap: 2rem; }
#nav ul a {
  font-family: 'Anton', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ivory-soft);
  transition: color 0.2s;
}
#nav ul a:hover { color: var(--gold); }

@media (max-width: 720px) {
  #nav { padding: 0.9rem 1.2rem; gap: 1rem; }
  #nav ul { display: none; }
  #nav .brand span { display: none; }
}

/* ────── Hero ────── */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 2rem 6rem;
  overflow: hidden;
}
#bg-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 880px;
}
.hero-content h1 {
  margin-bottom: 1.5rem;
  text-shadow: 0 4px 32px rgba(0, 0, 0, 0.6);
}
.hero-content .lede {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  color: var(--ivory-soft);
  max-width: 640px;
  margin: 0 auto 2.5rem;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  color: rgba(243, 233, 210, 0.55);
  font-size: 0.95rem;
  margin-bottom: 1.4rem;
}

/* Social icons inside the nav, next to the Support button */
.nav-right {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.nav-social {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  color: var(--gold);
  background: transparent;
  transition: background 0.2s, transform 0.2s, color 0.2s;
}
.nav-social a:hover {
  background: var(--gold);
  color: var(--midnight-deep);
  transform: translateY(-1px);
}
.nav-social svg { display: block; }
@media (max-width: 720px) {
  .nav-social a { width: 30px; height: 30px; }
  .nav-social a:nth-child(n+4) { display: none; } /* keep YouTube + TikTok + IG only on small screens */
}
@media (max-width: 480px) {
  .nav-social { display: none; } /* drop entirely on phone — keep only Support button */
}
.hero-scroll-cue {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(243, 233, 210, 0.4);
  font-size: 0.7rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}
.hero-scroll-cue .line {
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, var(--gold), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(6px); }
}

/* ────── Generic section head ────── */
section { padding: 7rem 2rem; max-width: var(--max); margin: 0 auto; position: relative; }
section#hero { max-width: none; padding: 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 4rem; }
.section-head h2 { margin-bottom: 1rem; }
.section-head .sub { color: var(--ivory-soft); font-size: 1.1rem; }

.section-cta { text-align: center; margin-top: 3rem; }

/* ────── Watch grid ────── */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}
.video-card {
  display: block;
  background: rgba(11, 30, 45, 0.5);
  border: 1px solid rgba(245, 208, 97, 0.12);
  border-radius: 6px;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.3s, box-shadow 0.3s;
  will-change: transform;
}
.video-card:hover {
  transform: translateY(-8px);
  border-color: var(--gold);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45), 0 0 0 1px var(--gold);
}
.video-card .thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--midnight);
}
.video-card .thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s ease;
}
.video-card:hover .thumb img { transform: scale(1.06); }
.video-card h3 {
  padding: 1.2rem 1.4rem 0.4rem;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}
.video-card .meta {
  padding: 0 1.4rem 1.3rem;
  color: rgba(243, 233, 210, 0.55);
  font-size: 0.92rem;
}

/* ────── Stories ────── */
.story-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.story-card {
  position: relative;
  display: block;
  padding: 2.4rem 2rem;
  background: linear-gradient(160deg, rgba(11, 30, 45, 0.7), rgba(6, 15, 23, 0.85));
  border: 1px solid rgba(245, 208, 97, 0.12);
  border-radius: 6px;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.3s;
  transform-style: preserve-3d;
}
.story-card:hover {
  border-color: var(--gold);
  transform: translateY(-6px);
}
.story-card .story-art {
  width: 56px;
  height: 56px;
  margin-bottom: 1.4rem;
  background: var(--gold);
  border-radius: 50%;
  position: relative;
  box-shadow: 0 0 24px rgba(245, 208, 97, 0.35);
}
.story-card .story-art::before {
  content: '';
  position: absolute;
  inset: 8px;
  background: var(--midnight);
  border-radius: 50%;
}
.story-card .story-art::after {
  content: '';
  position: absolute;
  inset: 14px;
  background: var(--gold);
  clip-path: polygon(50% 0%, 65% 35%, 100% 50%, 65% 65%, 50% 100%, 35% 65%, 0% 50%, 35% 35%);
}
.story-card h3 { margin-bottom: 0.6rem; }
.story-card p { color: var(--ivory-soft); font-size: 1rem; }

/* ────── Donate ────── */
#donate { max-width: 1080px; }
.donate-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  margin-bottom: 2rem;
}
@media (max-width: 720px) { .donate-grid { grid-template-columns: 1fr; } }
.donate-tier {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 2.5rem 1.5rem;
  background: linear-gradient(180deg, rgba(11, 30, 45, 0.5), rgba(6, 15, 23, 0.7));
  border: 1px solid rgba(245, 208, 97, 0.18);
  border-radius: 6px;
  text-align: center;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.donate-tier:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}
.donate-tier.featured {
  border-color: var(--gold);
  background: linear-gradient(180deg, rgba(245, 208, 97, 0.08), rgba(11, 30, 45, 0.7));
  box-shadow: 0 0 0 1px var(--gold), 0 16px 48px rgba(245, 208, 97, 0.18);
}
.tier-amount {
  font-family: 'Anton', sans-serif;
  font-size: 3.2rem;
  color: var(--gold);
  line-height: 1;
}
.tier-amount small { font-size: 1.1rem; color: var(--ivory-soft); margin-left: 4px; }
.tier-label {
  font-family: 'Anton', sans-serif;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: var(--ivory);
}
.tier-detail { color: var(--ivory-soft); font-size: 0.95rem; }
.tier-badge {
  position: absolute;
  top: -10px;
  background: var(--gold);
  color: var(--midnight-deep);
  font-family: 'Anton', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 2px;
}
.donate-note {
  text-align: center;
  color: rgba(243, 233, 210, 0.5);
  font-size: 0.95rem;
}
.donate-note a { color: var(--gold); border-bottom: 1px solid rgba(245, 208, 97, 0.3); }

/* ────── Charity ────── */
#charity { max-width: 1100px; }
.charity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
.charity-card {
  background: linear-gradient(180deg, rgba(11, 30, 45, 0.65), rgba(6, 15, 23, 0.85));
  border: 1px solid rgba(245, 208, 97, 0.18);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s, transform 0.3s;
}
.charity-card:hover { border-color: var(--gold); transform: translateY(-4px); }
.charity-card .charity-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  background: var(--midnight-deep);
  filter: brightness(0.95);
  transition: transform 0.6s ease, filter 0.4s ease;
}
.charity-card:hover .charity-img { transform: scale(1.05); filter: brightness(1.05); }
.charity-card header {
  padding: 1.4rem 1.6rem 0.6rem;
}
.charity-card .charity-actions {
  padding: 0 1.6rem 1.6rem;
  margin-top: auto;
}
.charity-card header h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  color: var(--gold);
}
.charity-card .region-context {
  color: var(--ivory-soft);
  font-size: 0.95rem;
  line-height: 1.55;
}
.charity-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: auto;
}
.charity-btn {
  display: block;
  padding: 0.7rem 1rem;
  background: rgba(245, 208, 97, 0.08);
  color: var(--gold);
  border: 1px solid rgba(245, 208, 97, 0.32);
  border-radius: 4px;
  text-align: center;
  font-family: 'Anton', sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.charity-btn:hover {
  background: var(--gold);
  color: var(--midnight-deep);
  border-color: var(--gold);
  transform: translateY(-2px);
}
.charity-note {
  text-align: center;
  color: rgba(243, 233, 210, 0.5);
  font-size: 0.88rem;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 1rem;
}
.charity-note a { color: var(--gold); border-bottom: 1px solid rgba(245, 208, 97, 0.3); }

/* ────── Shop ────── */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.6rem;
  margin-bottom: 3rem;
}
.shop-card {
  background: rgba(11, 30, 45, 0.5);
  border: 1px solid rgba(245, 208, 97, 0.12);
  border-radius: 6px;
  overflow: hidden;
  transition: transform 0.3s, border-color 0.3s;
}
.shop-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
}
.shop-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  background: var(--midnight-deep);
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.shop-card:hover .shop-img { transform: scale(1.04); }
.shop-art {
  aspect-ratio: 1 / 1;
  background:
    radial-gradient(circle at 50% 35%, rgba(245, 208, 97, 0.18), transparent 60%),
    linear-gradient(135deg, var(--midnight), var(--midnight-deep));
  position: relative;
  overflow: hidden;
}
.shop-art::before {
  content: '';
  position: absolute;
  inset: 22%;
  background: var(--gold);
  clip-path: polygon(50% 0%, 65% 35%, 100% 50%, 65% 65%, 50% 100%, 35% 65%, 0% 50%, 35% 35%);
  opacity: 0.25;
  filter: blur(0.4px);
}
.shop-art[data-product="tee-honored"]::after {
  content: 'CHOSEN ABOVE\AALL WOMEN';
  white-space: pre;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Anton', sans-serif;
  font-size: 1.2rem;
  letter-spacing: 0.25em;
  text-align: center;
  color: var(--gold);
  text-shadow: 0 0 18px rgba(0, 0, 0, 0.6);
}
.shop-art[data-product="tee-paradise"]::after {
  content: 'BUILD ME\AA HOUSE\AWITH YOU';
  white-space: pre;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Anton', sans-serif;
  font-size: 1.2rem;
  letter-spacing: 0.22em;
  text-align: center;
  color: var(--gold);
}
.shop-art[data-product="tee-throne"]::after {
  content: 'IN A BLINK';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Anton', sans-serif;
  font-size: 1.7rem;
  letter-spacing: 0.32em;
  color: var(--gold);
}
.shop-art[data-product="cap-medallion"]::after {
  content: '◈';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  color: var(--gold);
  text-shadow: 0 0 32px rgba(245, 208, 97, 0.55);
}
.shop-card h3 { padding: 1.2rem 1.3rem 0.3rem; font-size: 1rem; }
.shop-card .meta { padding: 0 1.3rem 0.4rem; color: var(--ivory-soft); font-size: 0.9rem; }
.shop-card .price { padding: 0 1.3rem 0.4rem; color: var(--gold); font-family: 'Anton', sans-serif; letter-spacing: 0.1em; }

/* Buy button (primary) on shop cards */
.buy-btn {
  display: block;
  margin: 0.6rem 1.3rem 0.4rem;
  padding: 0.85rem 1rem;
  background: var(--gold);
  color: var(--midnight-deep);
  border: 1px solid var(--gold);
  border-radius: 2px;
  font-family: 'Anton', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: center;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 0 24px rgba(245, 208, 97, 0.18);
}
.buy-btn:hover {
  background: var(--gold-bright);
  transform: translateY(-2px);
  box-shadow: 0 4px 32px rgba(245, 208, 97, 0.4);
}

/* Secondary reserve-only button */
.preorder-btn-secondary {
  display: block;
  width: calc(100% - 2.6rem);
  margin: 0 1.3rem 1.3rem;
  padding: 0.55rem 0.8rem;
  background: transparent;
  color: rgba(243, 233, 210, 0.55);
  border: none;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.85rem;
  cursor: pointer;
  transition: color 0.2s;
}
.preorder-btn-secondary:hover { color: var(--gold); text-decoration: underline; }

/* Pre-order button on shop cards */
.preorder-btn {
  margin: 0.6rem 1.3rem 1.3rem;
  padding: 0.7rem 1rem;
  background: transparent;
  color: var(--gold);
  border: 1px solid rgba(245, 208, 97, 0.4);
  border-radius: 2px;
  font-family: 'Anton', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
  width: calc(100% - 2.6rem);
  display: block;
}
.preorder-btn:hover {
  background: var(--gold);
  color: var(--midnight-deep);
  border-color: var(--gold);
  transform: translateY(-2px);
}
.preorder-btn:disabled { opacity: 0.6; cursor: default; transform: none; }

/* Pre-order modal */
.preorder-card {
  max-width: 540px;
  width: 100%;
}
.preorder-card form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.4rem;
}
.field { display: flex; flex-direction: column; gap: 0.35rem; }
.field span {
  font-family: 'Anton', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}
.field span small {
  font-family: 'Cormorant Garamond', serif;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ivory-soft);
  margin-left: 6px;
}
.field input[type="text"], .field input[type="email"], .field input[type="number"],
.field select, .field textarea {
  background: rgba(11, 30, 45, 0.7);
  border: 1px solid rgba(245, 208, 97, 0.2);
  border-radius: 4px;
  color: var(--ivory);
  font-family: inherit;
  font-size: 1rem;
  padding: 0.7rem 0.9rem;
  resize: vertical;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr 80px;
  gap: 0.7rem;
}
@media (max-width: 480px) { .field-row { grid-template-columns: 1fr; } }
.preorder-status { margin: 0.4rem 0; }

.shop-notify {
  text-align: center;
  max-width: 500px;
  margin: 0 auto;
}
.shop-notify p { margin-bottom: 1rem; color: var(--ivory-soft); }
.shop-notify > div {
  display: flex;
  gap: 0.5rem;
}
.shop-notify input {
  flex: 1;
  padding: 0.85rem 1.1rem;
  background: rgba(11, 30, 45, 0.7);
  border: 1px solid rgba(245, 208, 97, 0.18);
  border-radius: 2px;
  color: var(--ivory);
  font-family: inherit;
  font-size: 1rem;
}
.shop-notify input:focus { outline: none; border-color: var(--gold); }
.shop-notify button {
  padding: 0.85rem 1.6rem;
  background: var(--gold);
  color: var(--midnight-deep);
  border: none;
  border-radius: 2px;
  font-family: 'Anton', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
}
.shop-notify button:hover { background: var(--gold-bright); }
.shop-notify button:disabled { opacity: 0.6; cursor: default; }

/* ────── About ────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 4rem;
}
@media (max-width: 880px) { .about-grid { grid-template-columns: 1fr; } }
.about-text h2 { margin-bottom: 1.5rem; }
.about-text p { margin-bottom: 1.2rem; color: var(--ivory-soft); }
.about-aside {
  padding: 2rem;
  background: rgba(11, 30, 45, 0.5);
  border: 1px solid rgba(245, 208, 97, 0.12);
  border-radius: 6px;
}
.about-aside ul { display: flex; flex-direction: column; gap: 0.8rem; }
.about-aside li {
  position: relative;
  padding-left: 1.6rem;
  color: var(--ivory-soft);
  font-size: 0.97rem;
}
.about-aside li::before {
  content: '◈';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--gold);
  font-size: 0.9rem;
}

/* ────── Footer ────── */
footer {
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.4));
  padding: 5rem 2rem 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 3rem;
  max-width: var(--max);
  margin: 0 auto 3rem;
}
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid img { margin-bottom: 1rem; }
.footer-grid p { color: var(--ivory-soft); font-size: 0.95rem; }
.footer-grid ul { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-grid ul a {
  color: var(--ivory-soft);
  font-size: 0.95rem;
  transition: color 0.2s;
}
.footer-grid ul a:hover { color: var(--gold); }
.footer-grid form {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.8rem;
}
.footer-grid input {
  flex: 1;
  padding: 0.65rem 0.9rem;
  background: rgba(11, 30, 45, 0.7);
  border: 1px solid rgba(245, 208, 97, 0.18);
  border-radius: 2px;
  color: var(--ivory);
  font-family: inherit;
  font-size: 0.9rem;
}
.footer-grid button {
  padding: 0.65rem 1rem;
  background: var(--gold);
  color: var(--midnight-deep);
  border: none;
  border-radius: 2px;
  font-family: 'Anton', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  cursor: pointer;
}
.footer-base {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  max-width: var(--max);
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(245, 208, 97, 0.1);
  font-size: 0.85rem;
  color: rgba(243, 233, 210, 0.4);
}

/* ────── Tools (Prayer Times + Calendar + Quran) ────── */
#tools { max-width: 1200px; }
.tools-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.5rem;
}
@media (max-width: 980px) { .tools-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 680px) { .tools-grid { grid-template-columns: 1fr; } }

.tool-card {
  background: linear-gradient(180deg, rgba(11, 30, 45, 0.65), rgba(6, 15, 23, 0.85));
  border: 1px solid rgba(245, 208, 97, 0.18);
  border-radius: 8px;
  padding: 1.8rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: border-color 0.3s, transform 0.3s;
}
.tool-card:hover { border-color: var(--gold); }

.tool-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
}
.tool-head h3 { font-size: 1.15rem; }
.loc-btn {
  background: transparent;
  border: 1px solid rgba(245, 208, 97, 0.25);
  color: var(--gold);
  padding: 4px 10px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.82rem;
  cursor: pointer;
  display: inline-flex;
  gap: 6px;
  align-items: center;
  transition: border-color 0.2s, background 0.2s;
}
.loc-btn:hover { border-color: var(--gold); background: rgba(245, 208, 97, 0.08); }
.loc-edit { opacity: 0.55; font-size: 0.75rem; }

/* Prayer times */
.prayer-times {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.prayer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.7rem 0.9rem;
  background: rgba(11, 30, 45, 0.4);
  border-left: 2px solid transparent;
  border-radius: 4px;
  transition: background 0.3s, border-color 0.3s, transform 0.3s;
}
.prayer-row .name {
  font-family: 'Anton', sans-serif;
  letter-spacing: 0.18em;
  font-size: 0.92rem;
  color: var(--ivory);
}
.prayer-row .time {
  font-family: 'Anton', sans-serif;
  font-size: 1.15rem;
  color: var(--gold);
  letter-spacing: 0.04em;
}
.prayer-row.current {
  background: rgba(245, 208, 97, 0.1);
  border-left-color: var(--gold);
}
.prayer-row.current .name { color: var(--gold); }
.prayer-row.upcoming {
  background: rgba(245, 208, 97, 0.05);
  border-left-color: rgba(245, 208, 97, 0.5);
  transform: translateX(2px);
}
.prayer-error {
  margin-top: 0.5rem;
  padding: 0.6rem 0.8rem;
  background: rgba(255, 80, 80, 0.1);
  color: #ff8a8a;
  border-radius: 4px;
  font-size: 0.88rem;
}
.next-prayer {
  margin-top: 0.5rem;
  padding: 0.9rem 1.1rem;
  background: linear-gradient(135deg, rgba(245, 208, 97, 0.15), rgba(245, 208, 97, 0.05));
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  border: 1px solid rgba(245, 208, 97, 0.18);
}
.next-label {
  font-family: 'Anton', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  color: var(--gold);
  text-transform: uppercase;
}
.next-name { font-family: 'Anton', sans-serif; font-size: 1.4rem; color: var(--ivory); }
.next-countdown {
  font-family: 'Anton', sans-serif;
  font-size: 1.05rem;
  color: var(--gold);
  letter-spacing: 0.06em;
}

/* Calendar */
.hijri-today {
  font-family: 'Anton', sans-serif;
  font-size: 0.85rem;
  color: var(--gold);
  letter-spacing: 0.08em;
}
.upcoming-label {
  font-family: 'Anton', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 0.7rem;
}
.event-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.event-skel, .event-empty {
  padding: 1rem;
  color: var(--ivory-soft);
  text-align: center;
  font-style: italic;
}
.event {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 0.8rem;
  align-items: start;
  padding: 0.7rem 0.5rem;
  border-radius: 4px;
  background: rgba(11, 30, 45, 0.4);
  transition: background 0.2s;
}
.event:hover { background: rgba(245, 208, 97, 0.06); }
.event-date {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.event-when {
  font-family: 'Anton', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  color: var(--gold);
  text-transform: uppercase;
}
.event-day {
  font-size: 0.78rem;
  color: var(--ivory-soft);
}
.event-body { display: flex; flex-direction: column; gap: 2px; }
.event-name { color: var(--ivory); font-weight: 500; }
.event-desc { color: var(--ivory-soft); font-size: 0.88rem; line-height: 1.4; }

/* Quran card */
.quran-tagline { color: var(--ivory-soft); font-size: 0.85rem; }
.quran-note { color: var(--ivory-soft); font-size: 0.95rem; line-height: 1.5; }
.quran-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: auto;
}
.quran-actions .btn { padding: 0.7rem 1rem; font-size: 0.78rem; }
.quran-fineprint { color: rgba(243, 233, 210, 0.4); font-size: 0.75rem; line-height: 1.4; }

/* ────── City picker modal ────── */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(6, 15, 23, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.modal[hidden] { display: none; }
.modal-card {
  background: linear-gradient(180deg, rgba(11, 30, 45, 0.95), rgba(6, 15, 23, 0.98));
  border: 1px solid var(--gold);
  border-radius: 8px;
  padding: 2rem;
  max-width: 440px;
  width: 100%;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(245, 208, 97, 0.1);
}
.modal-card h4 { color: var(--gold); margin-bottom: 0.4rem; }
.modal-card > p { color: var(--ivory-soft); font-size: 0.95rem; margin-bottom: 1rem; }
.modal-card input {
  width: 100%;
  padding: 0.85rem 1rem;
  background: rgba(11, 30, 45, 0.7);
  border: 1px solid rgba(245, 208, 97, 0.2);
  border-radius: 4px;
  color: var(--ivory);
  font-family: inherit;
  font-size: 1.05rem;
  margin-bottom: 1.2rem;
}
.modal-card input:focus { outline: none; border-color: var(--gold); }
.modal-actions {
  display: flex;
  gap: 0.6rem;
  justify-content: flex-end;
}
.modal-help {
  margin-top: 1rem;
  font-size: 0.82rem;
  color: rgba(243, 233, 210, 0.5);
}
.modal-help code {
  background: rgba(245, 208, 97, 0.12);
  color: var(--gold);
  padding: 1px 6px;
  border-radius: 2px;
  font-size: 0.78rem;
}

/* ────── Entry overlay ────── */
#entry-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background:
    radial-gradient(circle at 50% 40%, rgba(245, 208, 97, 0.08), transparent 70%),
    linear-gradient(180deg, var(--midnight), var(--midnight-deep));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  transition: opacity 1.2s ease, visibility 1.2s ease;
}
#entry-overlay.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.entry-content {
  text-align: center;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.entry-medallion {
  width: 120px;
  height: 120px;
  margin-bottom: 1.5rem;
  background: var(--gold);
  border-radius: 50%;
  position: relative;
  box-shadow: 0 0 60px rgba(245, 208, 97, 0.4), 0 0 120px rgba(245, 208, 97, 0.2);
  animation: medallionBreathe 3s ease-in-out infinite;
}
.entry-medallion::before {
  content: '';
  position: absolute;
  inset: 14px;
  background: var(--midnight-deep);
  border-radius: 50%;
}
.entry-medallion::after {
  content: '';
  position: absolute;
  inset: 26px;
  background: var(--gold);
  clip-path: polygon(50% 0%, 65% 35%, 100% 50%, 65% 65%, 50% 100%, 35% 65%, 0% 50%, 35% 35%);
  filter: drop-shadow(0 0 12px rgba(245, 208, 97, 0.7));
}
@keyframes medallionBreathe {
  0%, 100% { transform: scale(1); box-shadow: 0 0 60px rgba(245, 208, 97, 0.4), 0 0 120px rgba(245, 208, 97, 0.2); }
  50%      { transform: scale(1.04); box-shadow: 0 0 80px rgba(245, 208, 97, 0.55), 0 0 160px rgba(245, 208, 97, 0.3); }
}
.entry-arabic {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  color: var(--gold);
  margin-bottom: 0.4rem;
  letter-spacing: 0.02em;
  font-weight: 500;
  direction: rtl;
}
.entry-translit {
  font-family: 'Anton', sans-serif;
  font-size: 1rem;
  letter-spacing: 0.32em;
  color: var(--ivory);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.entry-eng {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  color: var(--ivory-soft);
  margin-bottom: 2rem;
  font-style: italic;
}
.entry-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 1rem 2.4rem;
  background: var(--gold);
  color: var(--midnight-deep);
  border: none;
  border-radius: 2px;
  font-family: 'Anton', sans-serif;
  font-size: 1rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 0 36px rgba(245, 208, 97, 0.35);
  transition: transform 0.25s, box-shadow 0.25s, background 0.25s;
}
.entry-btn:hover {
  background: var(--gold-bright);
  transform: translateY(-2px);
  box-shadow: 0 4px 48px rgba(245, 208, 97, 0.55);
}
.entry-btn-icon {
  font-size: 0.9rem;
  color: var(--midnight-deep);
}
.entry-hint {
  margin-top: 1.4rem;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  color: rgba(243, 233, 210, 0.5);
  text-transform: uppercase;
  font-family: 'Anton', sans-serif;
}

/* Lock body scroll while overlay is up */
body.entry-locked { overflow: hidden; height: 100vh; }

/* ────── Reveal animations (controlled by GSAP) ────── */
.reveal { opacity: 0; transform: translateY(40px); }
