/* ================================================
   MATRIMONIOS UNIDOS EN CRISTO — style.css
   Paleta: azul marino profundo + dorado + marfil
   ================================================ */

:root {
  --navy: #0c182e;
  --navy-2: #142645;
  --navy-3: #1c3358;
  --gold: #c9a24b;
  --gold-light: #e8c876;
  --ivory: #faf6ef;
  --cream: #f3ead9;
  --white: #ffffff;
  --text: #241d12;
  --text-light: #746c5c;
  --border: #e7ddc8;
  --shadow: 0 12px 32px rgba(12,24,46,0.14);
  --radius: 18px;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--ivory);
  color: var(--text);
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select { font-family: inherit; }
.hidden { display: none !important; }
a { color: inherit; text-decoration: none; }

/* ================================================ SPLASH ================================================ */
#splash {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  background: var(--navy);
  transition: opacity .6s ease;
}
#splash.fade-out { opacity: 0; pointer-events: none; }
.splash-bg {
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 20%, var(--navy-3) 0%, var(--navy) 70%);
}
.splash-bg::after {
  content: ''; position: absolute; inset: 0;
  background-image: url('/images/gallery/foto-11.jpg');
  background-size: cover; background-position: center;
  opacity: .18; mix-blend-mode: luminosity;
}
.splash-content { position: relative; z-index: 1; text-align: center; padding: 32px; max-width: 420px; }
.splash-logo {
  width: 190px; height: 190px; object-fit: contain; margin: 0 auto 22px;
  background: var(--white); border-radius: 28px; padding: 8px;
  box-shadow: 0 18px 40px rgba(0,0,0,.35);
}
.splash-title {
  font-family: var(--font-serif); color: var(--white); font-weight: 700;
  font-size: 30px; line-height: 1.25; margin-bottom: 14px;
}
.splash-title span { color: var(--gold-light); }
.splash-sub { color: #cbd4e6; font-size: 14px; font-style: italic; line-height: 1.6; margin-bottom: 30px; }
.btn-enter {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--navy); font-weight: 700; font-size: 16px;
  padding: 14px 44px; border-radius: 999px; letter-spacing: .04em;
  box-shadow: 0 10px 26px rgba(201,162,75,.4);
  transition: transform .2s ease;
}
.btn-enter:active { transform: scale(.96); }

/* ================================================ BOTONES FLOTANTES ================================================ */
.fab {
  position: fixed; z-index: 500; width: 50px; height: 50px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 20px rgba(12,24,46,.28); transition: transform .2s ease;
}
.fab:active { transform: scale(.92); }
.fab svg { width: 24px; height: 24px; }

.fab-whatsapp { right: 16px; bottom: 88px; background: #25D366; color: #fff; }
.fab-music { right: 16px; top: 76px; background: var(--navy); color: var(--gold-light); }
.fab-music .icon-off { display: none; }
.fab-music.paused .icon-on { display: none; }
.fab-music.paused .icon-off { display: block; }
.fab-notif { right: 78px; top: 76px; background: var(--white); color: var(--navy); border: 2px solid var(--border); width: 44px; height: 44px; }
.fab-notif.active { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.fab-share { left: 16px; top: 76px; background: var(--white); color: var(--navy); border: 2px solid var(--border); width: 44px; height: 44px; }

/* ================================================ TOPBAR ================================================ */
.topbar {
  position: sticky; top: 0; z-index: 60; background: var(--navy);
  padding: 10px 16px; display: flex; justify-content: center;
}
.topbar-inner { display: flex; align-items: center; gap: 10px; max-width: 520px; width: 100%; }
.topbar-logo { width: 30px; height: 30px; object-fit: contain; background: #fff; border-radius: 8px; padding: 3px; }
.topbar-title { color: var(--white); font-family: var(--font-serif); font-weight: 600; font-size: 15px; }

/* ================================================ LAYOUT / SECTIONS ================================================ */
#app { max-width: 560px; margin: 0 auto; padding-bottom: 90px; background: var(--ivory); }
.section { display: none; }
.section.active { display: block; animation: fadeIn .35s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px);} to { opacity: 1; transform: none; } }
.section-pad { padding: 22px 16px 8px; }
.section-title { font-family: var(--font-serif); font-size: 23px; font-weight: 700; color: var(--navy); margin: 18px 0 6px; }
.section-subtitle { color: var(--text-light); font-size: 14px; margin-bottom: 16px; line-height: 1.5; }
.subsection-title { font-family: var(--font-serif); font-size: 17px; font-weight: 700; color: var(--navy); margin: 20px 0 10px; }
.btn-back-top {
  color: var(--gold); font-weight: 600; font-size: 13px; padding: 6px 0; margin-top: 4px;
}
.btn-back-inline {
  color: var(--gold); font-weight: 600; font-size: 13px; padding: 8px 0; display: inline-block;
}

/* ================================================ HERO ================================================ */
.hero { position: relative; height: 92vh; min-height: 560px; max-height: 780px; overflow: hidden; }
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; animation: heroFade 24s infinite;
}
.hero-slide:nth-child(1) { animation-delay: 0s; }
.hero-slide:nth-child(2) { animation-delay: 6s; }
.hero-slide:nth-child(3) { animation-delay: 12s; }
.hero-slide:nth-child(4) { animation-delay: 18s; }
@keyframes heroFade {
  0% { opacity: 0; }
  4% { opacity: 1; }
  25% { opacity: 1; }
  29% { opacity: 0; }
  100% { opacity: 0; }
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(12,24,46,.55) 0%, rgba(12,24,46,.72) 55%, var(--navy) 100%);
}
.hero-content {
  position: relative; z-index: 2; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 24px;
}
.hero-logo {
  width: 180px; height: 180px; object-fit: contain; background: #fff; border-radius: 28px;
  padding: 6px; margin-bottom: 20px; box-shadow: 0 14px 30px rgba(0,0,0,.35);
}
.hero-title {
  font-family: var(--font-serif); color: var(--white); font-size: 34px; line-height: 1.18;
  font-weight: 700; margin-bottom: 14px;
}
.hero-title span { color: var(--gold-light); }
.hero-tagline { color: #dde4f0; font-size: 15px; max-width: 340px; line-height: 1.6; margin-bottom: 26px; }
.hero-cta-row { display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 280px; }

.btn-gold, .btn-gold-sm {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--navy); font-weight: 700; padding: 13px 20px; border-radius: 999px;
  text-align: center; font-size: 14.5px; box-shadow: 0 8px 20px rgba(201,162,75,.35);
  display: inline-block;
}
.btn-gold-sm { padding: 11px 18px; font-size: 13.5px; white-space: nowrap; }
.btn-outline-light {
  background: transparent; border: 1.5px solid rgba(255,255,255,.6); color: var(--white);
  font-weight: 600; padding: 12px 20px; border-radius: 999px; font-size: 14.5px;
}
.hero-scroll-cue {
  position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.7); font-size: 22px; animation: bounce 2s infinite; z-index: 2;
}
@keyframes bounce { 0%,100%{transform:translate(-50%,0);} 50%{transform:translate(-50%,8px);} }

/* ================================================ ENCUENTRO CARD ================================================ */
.encuentro-card {
  background: var(--navy); border-radius: var(--radius); overflow: hidden; margin: -70px 0 22px;
  position: relative; z-index: 3; box-shadow: var(--shadow); border: 1px solid rgba(201,162,75,.35);
}
.encuentro-img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.encuentro-body { padding: 20px; text-align: center; }
.encuentro-badge {
  display: inline-block; background: rgba(201,162,75,.18); color: var(--gold-light);
  font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px; margin-bottom: 10px;
}
.encuentro-title { font-family: var(--font-serif); color: var(--white); font-size: 26px; font-weight: 700; margin-bottom: 6px; }
.encuentro-fecha { color: var(--gold-light); font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.encuentro-lema { color: #c9d2e3; font-style: italic; font-size: 13.5px; margin-bottom: 16px; }

/* ================================================ CARDS GENERALES ================================================ */
.daily-verse-card, .gospel-teaser-card {
  background: var(--white); border-radius: var(--radius); padding: 20px; margin-bottom: 16px;
  box-shadow: var(--shadow); border-left: 4px solid var(--gold);
}
.daily-verse-label, .gospel-teaser-label {
  font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gold);
  margin-bottom: 10px;
}
.daily-verse-text { font-family: var(--font-serif); font-style: italic; color: var(--navy); font-size: 16px; line-height: 1.55; margin-bottom: 8px; }
.daily-verse-ref { color: var(--text-light); font-size: 13px; font-weight: 600; }
.gospel-teaser-ref { color: var(--navy); font-weight: 700; font-size: 13.5px; margin-bottom: 8px; }
.gospel-teaser-text { color: var(--text-light); font-size: 13.5px; line-height: 1.6; }
.gospel-teaser-text.loading { font-style: italic; }
.gospel-teaser-link { margin-top: 12px; color: var(--gold); font-weight: 700; font-size: 13px; }

.qr-card {
  background: var(--navy); border-radius: var(--radius); padding: 20px; margin-bottom: 16px;
  box-shadow: var(--shadow); display: flex; align-items: center; gap: 16px;
}
.qr-img { width: 96px; height: 96px; border-radius: 12px; flex-shrink: 0; background: #fff; padding: 4px; }
.qr-body { flex: 1; }
.qr-title { color: var(--gold-light); font-weight: 700; font-size: 14.5px; margin-bottom: 6px; }
.qr-text { color: #cbd4e6; font-size: 12px; line-height: 1.5; margin-bottom: 12px; }

.quick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 10px; }
.quick-item {
  background: var(--white); border-radius: 14px; padding: 16px 8px; text-align: center;
  box-shadow: 0 4px 14px rgba(12,24,46,.08); font-size: 12.5px; font-weight: 600; color: var(--navy);
  display: flex; flex-direction: column; align-items: center; gap: 6px; transition: transform .15s ease;
}
.quick-item:active { transform: scale(.95); }
.quick-item span { font-size: 24px; }

.error-card {
  background: #fdf1ee; color: #a13a2a; padding: 14px 16px; border-radius: 12px; font-size: 13.5px;
}
.loading { color: var(--text-light); font-size: 13.5px; text-align: center; }

/* ================================================ NOSOTROS ================================================ */
.nosotros-card {
  background: var(--white); border-radius: var(--radius); padding: 20px; margin-bottom: 14px; box-shadow: var(--shadow);
}
.nosotros-card p { color: var(--text); font-size: 14px; line-height: 1.75; white-space: pre-line; }
.nosotros-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 4px; }
.nosotros-mini-card {
  background: var(--navy); border-radius: 14px; padding: 16px; color: var(--white);
}
.nosotros-mini-card h4 { color: var(--gold-light); font-family: var(--font-serif); font-size: 14px; margin-bottom: 8px; }
.nosotros-mini-card p { font-size: 12.5px; line-height: 1.6; color: #d7deec; }

/* ================================================ COMUNIDADES ================================================ */
.comunidades-list { display: flex; flex-direction: column; gap: 12px; }
.comunidad-card {
  background: var(--white); border-radius: 16px; padding: 16px; display: flex; gap: 12px;
  box-shadow: 0 4px 14px rgba(12,24,46,.08);
}
.comunidad-icon { font-size: 26px; flex-shrink: 0; }
.comunidad-nombre { font-weight: 700; color: var(--navy); font-size: 15px; margin-bottom: 4px; }
.comunidad-dir { color: var(--text-light); font-size: 13px; line-height: 1.5; margin-bottom: 6px; }
.comunidad-horario { font-size: 12.5px; color: var(--text); margin-bottom: 8px; }
.comunidad-maps { color: var(--gold); font-weight: 700; font-size: 12.5px; }

/* ================================================ GALERÍA ================================================ */
.galeria-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.gal-item { position: relative; aspect-ratio: 1/1; border-radius: 8px; overflow: hidden; background: var(--cream); }
.gal-item img { width: 100%; height: 100%; object-fit: cover; }
.gal-play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(12,24,46,.35); color: #fff; font-size: 20px;
}
#lightbox {
  position: fixed; inset: 0; z-index: 2000; background: rgba(5,10,20,.94);
  display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px;
}
#lightbox-close { position: absolute; top: 18px; right: 18px; color: #fff; font-size: 22px; width: 40px; height: 40px; }
#lightbox-body { max-width: 100%; max-height: 78vh; display: flex; align-items: center; justify-content: center; }
#lightbox-body img, #lightbox-body video { max-width: 100%; max-height: 78vh; border-radius: 8px; }
#lightbox-caption { color: #cbd4e6; margin-top: 14px; font-size: 13px; text-align: center; }

/* ================================================ EVANGELIO ================================================ */
.gospel-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.gospel-nav-btn {
  width: 40px; height: 40px; border-radius: 50%; background: var(--white); color: var(--navy);
  font-size: 20px; box-shadow: 0 4px 12px rgba(12,24,46,.1); flex-shrink: 0;
}
.gospel-nav-btn:disabled { opacity: .35; }
.gospel-dates { text-align: center; flex: 1; }
.gospel-liturgical { font-family: var(--font-serif); font-weight: 700; color: var(--navy); font-size: 16px; }
.gospel-civil { color: var(--text-light); font-size: 12px; text-transform: capitalize; }

.gospel-card { background: var(--white); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.gospel-season-badge {
  display: inline-block; font-size: 11px; font-weight: 700; padding: 4px 12px; border-radius: 999px;
  background: var(--cream); color: var(--navy); margin-bottom: 12px; text-transform: uppercase; letter-spacing: .04em;
}
.season-Adviento, .season-Cuaresma { background: #e6dcf2; color: #4a2f78; }
.season-Navidad, .season-Pascua { background: #fdeecb; color: #8a6210; }
.season-Semana-Santa { background: #f6dede; color: #8a2020; }
.gospel-ref-display { color: var(--gold); font-weight: 700; font-size: 14px; margin-bottom: 12px; }
.gospel-text { font-size: 14.5px; line-height: 1.85; color: var(--text); text-align: justify; }
.gospel-reflection {
  background: var(--navy); border-radius: var(--radius); padding: 18px; margin-top: 14px; color: var(--white);
}
.gospel-reflection-label { color: var(--gold-light); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 8px; }
#gospel-reflection-text { font-size: 13.5px; line-height: 1.7; color: #dbe1ee; }

/* ================================================ BIBLIA ================================================ */
.bible-search-row { display: flex; gap: 8px; margin-bottom: 14px; }
.bible-search-row input {
  flex: 1; border: 1.5px solid var(--border); border-radius: 999px; padding: 11px 16px; font-size: 14px; background: var(--white);
}
.bible-search-row input:focus { outline: none; border-color: var(--gold); }
.bible-book-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; }
.bible-book-item {
  background: var(--white); border: 1px solid var(--border); border-radius: 999px; padding: 8px 14px;
  font-size: 12.5px; font-weight: 600; color: var(--navy);
}
.bible-book-item:active { background: var(--cream); }
.bible-reader-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 12px 0; }
.bible-reader-center { text-align: center; flex: 1; }
.bible-reader-bookname { font-family: var(--font-serif); font-weight: 700; color: var(--navy); font-size: 17px; }
.bible-chapter-select { border: 1px solid var(--border); border-radius: 8px; padding: 4px 8px; font-size: 12.5px; margin-top: 4px; background: var(--white); }
.bible-chapter-area { background: var(--white); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.bible-chapter-text, .gospel-text { font-size: 14.5px; line-height: 1.9; text-align: justify; }
.verse-num { color: var(--gold); font-weight: 700; font-size: 10px; margin-right: 2px; }
.bible-result { background: var(--white); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); margin-bottom: 14px; }
.bible-result-ref { color: var(--gold); font-size: 11px; font-weight: 700; text-transform: uppercase; }
.bible-result-name { font-family: var(--font-serif); font-weight: 700; color: var(--navy); font-size: 17px; margin: 4px 0 10px; }
.bible-text { font-size: 14.5px; line-height: 1.8; }
.bible-translation { margin-top: 10px; color: var(--text-light); font-size: 11px; }

/* ================================================ ORACIONES ================================================ */
.prayer-tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.prayer-tab {
  flex: 1; padding: 10px 6px; border-radius: 999px; background: var(--white); color: var(--navy);
  font-weight: 600; font-size: 12.5px; border: 1px solid var(--border);
}
.prayer-tab.active { background: var(--navy); color: var(--white); border-color: var(--navy); }
.prayers-list { display: flex; flex-direction: column; gap: 10px; }
.prayer-card {
  background: var(--white); border-radius: 14px; padding: 14px 16px; display: flex; align-items: center; gap: 12px;
  box-shadow: 0 4px 12px rgba(12,24,46,.08);
}
.prayer-card-emoji { font-size: 24px; }
.prayer-card-body { flex: 1; }
.prayer-card-title { font-weight: 700; color: var(--navy); font-size: 14.5px; }
.prayer-card-sub { color: var(--text-light); font-size: 12px; margin-top: 2px; }
.prayer-card-arrow { color: var(--gold); font-size: 20px; }

.prayer-detail-header { text-align: center; padding: 10px 0 18px; }
.prayer-emoji { font-size: 40px; display: block; margin-bottom: 10px; }
.prayer-title { font-family: var(--font-serif); font-size: 22px; font-weight: 700; color: var(--navy); }
.prayer-subtitle { color: var(--text-light); font-size: 13px; margin: 4px 0; }
.prayer-ref { color: var(--gold); font-size: 12px; font-weight: 700; }
.prayer-text {
  background: var(--white); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow);
  white-space: pre-line; font-family: var(--font-serif); font-size: 16px; line-height: 1.85; color: var(--navy); text-align: center;
}
.prayer-context {
  margin-top: 14px; background: var(--cream); border-radius: 14px; padding: 14px 16px; font-size: 12.5px; color: var(--text-light); line-height: 1.6;
}

.rosario-intro { color: var(--text); font-size: 13.5px; line-height: 1.7; margin-bottom: 6px; }
.verse-card { background: var(--white); border-radius: 14px; padding: 16px; box-shadow: 0 4px 12px rgba(12,24,46,.08); }
.verse-card-ref { color: var(--gold); font-weight: 700; font-size: 12.5px; margin-bottom: 6px; }
.verse-card-text { color: var(--text); font-size: 13.5px; line-height: 1.6; }
.misterio-set { margin: 22px 0; }
.misterio-set-header { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.misterio-set-emoji { font-size: 20px; }
.misterio-set-title { font-family: var(--font-serif); font-weight: 700; color: var(--navy); font-size: 16px; flex: 1; }
.misterio-set-dia { color: var(--gold); font-size: 11px; font-weight: 700; }
.misterio-item { background: var(--white); border-radius: 12px; padding: 14px; margin-bottom: 8px; box-shadow: 0 3px 10px rgba(12,24,46,.06); }
.misterio-num { color: var(--gold); font-size: 11px; font-weight: 700; text-transform: uppercase; }
.misterio-nombre { font-weight: 700; color: var(--navy); font-size: 14px; margin: 3px 0; }
.misterio-ref { color: var(--text-light); font-size: 11.5px; margin-bottom: 6px; }
.misterio-meditacion { font-size: 12.5px; color: var(--text); line-height: 1.55; font-style: italic; }

/* ================================================ CONTACTO ================================================ */
.contact-row {
  display: flex; align-items: center; gap: 14px; background: var(--white); border-radius: 14px;
  padding: 14px 16px; margin-bottom: 10px; box-shadow: 0 4px 12px rgba(12,24,46,.08);
}
.contact-icon { font-size: 24px; width: 40px; text-align: center; }
.contact-name { font-weight: 700; color: var(--navy); font-size: 14.5px; }
.contact-sub { color: var(--text-light); font-size: 12.5px; }
.notif-cta { background: var(--navy); border-radius: var(--radius); padding: 20px; margin: 18px 0; text-align: center; }
.notif-cta-title { color: var(--gold-light); font-weight: 700; font-size: 15px; margin-bottom: 8px; }
.notif-cta p { color: #cbd4e6; font-size: 13px; line-height: 1.6; }

.app-footer { text-align: center; padding: 30px 0 10px; }
.footer-logo { width: 44px; height: 44px; object-fit: contain; margin: 0 auto 10px; background: var(--white); border-radius: 10px; padding: 6px; }
.app-footer p { color: var(--text-light); font-size: 12px; }
.footer-small { margin-top: 4px; font-size: 11px; }

/* ================================================ NAV INFERIOR ================================================ */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 100; background: var(--white);
  display: flex; box-shadow: 0 -4px 20px rgba(12,24,46,.12);
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.nav-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 10px 2px 8px; font-size: 10.5px; font-weight: 600; color: var(--text-light);
}
.nav-item.active { color: var(--gold); }
.nav-icon { font-size: 19px; }
#more-menu {
  position: fixed; bottom: 66px; right: 12px; z-index: 99; background: var(--navy);
  border-radius: 16px; padding: 8px; box-shadow: 0 14px 32px rgba(0,0,0,.3);
  display: flex; flex-direction: column; min-width: 180px;
}
#more-menu button {
  display: flex; align-items: center; gap: 10px; color: var(--white); padding: 11px 14px;
  font-size: 13.5px; font-weight: 600; border-radius: 10px; text-align: left;
}
#more-menu button:active { background: rgba(255,255,255,.08); }
#more-menu span { font-size: 17px; }

/* ================================================ LOADING / TOAST ================================================ */
#loading-overlay {
  position: fixed; inset: 0; z-index: 3000; background: rgba(12,24,46,.5);
  display: flex; align-items: center; justify-content: center;
}
.spinner { width: 38px; height: 38px; border: 4px solid rgba(255,255,255,.3); border-top-color: var(--gold); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
#toast {
  position: fixed; bottom: 78px; left: 50%; transform: translateX(-50%); z-index: 3000;
  background: var(--navy); color: var(--white); padding: 12px 22px; border-radius: 999px;
  font-size: 13px; box-shadow: 0 10px 24px rgba(0,0,0,.3); max-width: 88%; text-align: center;
}

/* ================================================ RESPONSIVE DESKTOP ================================================ */
@media (min-width: 640px) {
  #app { border-left: 1px solid var(--border); border-right: 1px solid var(--border); }
  .bottom-nav, #more-menu, .topbar-inner { max-width: 560px; margin: 0 auto; left: 50%; transform: translateX(-50%); right: auto; width: 100%; }
  #more-menu { right: calc(50% - 280px + 12px); left: auto; transform: none; }
}
