/**
 * Sacred Heart Church, Cheruvannur
 * Native Mobile Web Application Stylesheet
 * Celestial Sky, Pure White Card, Royal Navy Altar & Sacred Gold Design System
 * (Reflected directly from the reference visual theme)
 */

:root {
  --app-bg: #cbe2f8;
  --app-bg-card: #ffffff;
  --app-bg-card-alt: #f8fafc;
  --app-sky-start: #c3dcf5;
  --app-sky-mid: #dbeaf9;
  --app-sky-end: #f4f8fe;
  --app-navy-deep: #082046;
  --app-navy-card: #0b254e;
  --app-navy-royal: #103c7e;
  --app-crimson-dark: #082046;
  --app-crimson: #0d3269;
  --app-crimson-bright: #1d4ed8;
  --app-gold-primary: #d4af37;
  --app-gold-light: #fef08a;
  --app-gold-dark: #b8860b;
  --app-text-main: #082046;
  --app-text-muted: #536b8c;
  --app-border: rgba(212, 175, 55, 0.35);
  --app-border-highlight: rgba(212, 175, 55, 0.7);
  --app-shadow: 0 6px 20px rgba(8, 32, 70, 0.08);
  --app-header-height: 60px;
  --app-nav-height: 64px;
  --font-serif: 'Cinzel', serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  background-color: var(--app-bg);
  color: var(--app-text-main);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* App Shell Layout with Celestial Sky Gradient */
.app-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
  background: linear-gradient(180deg, #cbe2f8 0%, #dbeaf9 18%, #edf4fc 50%, #f6faff 100%);
  background-attachment: fixed;
}

/* ==============================================================================
   APP TOP HEADER (Celestial Translucent Sky Header)
   ============================================================================== */
.app-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--app-header-height);
  background: rgba(215, 235, 252, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.35);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(8, 32, 70, 0.08);
}

.app-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}

.app-brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.8px solid var(--app-gold-primary);
  box-shadow: 0 2px 8px rgba(212, 175, 55, 0.35);
  object-fit: cover;
  flex-shrink: 0;
}

.app-brand-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--font-serif);
  line-height: 1.05;
  user-select: none;
}

.app-brand-title-line1 {
  display: block;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--app-navy-deep);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.app-brand-church {
  display: block;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  color: var(--app-navy-deep);
  text-align: center;
  margin-top: 1px;
}

.app-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Multilingual Selector Pill (White & Sky Blue from Reference) */
.app-lang-pill {
  position: relative;
  background: #ffffff;
  border: 1.5px solid #60a5fa;
  border-radius: 18px;
  padding: 4px 10px;
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--app-navy-deep);
  font-size: 0.75rem;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(8, 32, 70, 0.08);
  cursor: pointer;
}

.app-lang-select {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  -webkit-appearance: none;
  background-color: #ffffff !important;
  color: var(--app-navy-deep) !important;
}

.app-lang-select option {
  background-color: #ffffff !important;
  color: var(--app-navy-deep) !important;
  font-family: -apple-system, BlinkMacSystemFont, 'Plus Jakarta Sans', sans-serif !important;
  font-size: 0.88rem !important;
  padding: 12px 14px !important;
  border-bottom: 1px solid rgba(212, 175, 55, 0.15) !important;
}

.app-lang-select option:checked,
.app-lang-select option:hover {
  background-color: #e0f2fe !important;
  color: #1d4ed8 !important;
  font-weight: 700 !important;
}

/* App Header Social Bar & Circular Icons */
.app-social-links-bar {
  display: flex;
  align-items: center;
  gap: 5px;
}

.app-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #ffffff;
  border: 1.5px solid rgba(212, 175, 55, 0.45);
  box-shadow: 0 2px 6px rgba(8, 32, 70, 0.08);
  text-decoration: none;
  transition: transform 0.15s ease;
  flex-shrink: 0;
}

.app-social-btn:active {
  transform: scale(0.92);
}

.app-social-btn[title="Facebook"] svg {
  fill: #1877F2;
}

.app-social-btn[title="Instagram"] svg {
  stroke: #E1306C;
}

.app-social-btn[title="YouTube Live Mass"] svg {
  fill: #FF0000;
}

.app-social-btn svg {
  width: 15px;
  height: 15px;
}

.app-icon-btn {
  background: #ffffff;
  border: 1.5px solid rgba(212, 175, 55, 0.45);
  color: var(--app-navy-deep);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(8, 32, 70, 0.08);
}

/* Live Mass Ticker Banner (Royal Navy Gradient) */
.app-live-ticker {
  margin-top: var(--app-header-height);
  background: linear-gradient(90deg, #082046 0%, #103c7e 100%);
  padding: 7px 14px;
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(212, 175, 55, 0.35);
  color: #fff;
}

.app-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 700;
  color: var(--app-gold-light);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #ef4444;
  border-radius: 50%;
  box-shadow: 0 0 8px #ef4444;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

/* ==============================================================================
   APP MAIN SCROLLABLE CONTENT & TABS
   ============================================================================== */
.app-main {
  flex: 1;
  padding: 12px 14px calc(var(--app-nav-height) + 24px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.tab-pane {
  display: none;
  animation: fadeInTab 0.22s ease-out;
}

.tab-pane.active {
  display: block;
}

@keyframes fadeInTab {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==============================================================================
   PURE WHITE CLEAN CARDS & APP WIDGETS (Matching Reference Visual)
   ============================================================================== */
.app-card {
  background: var(--app-bg-card);
  border: 1px solid var(--app-border);
  border-radius: 18px;
  padding: 16px;
  margin-bottom: 14px;
  box-shadow: var(--app-shadow);
  position: relative;
  overflow: hidden;
  color: var(--app-navy-deep);
}

.app-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.app-card-title {
  font-family: var(--font-serif);
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--app-navy-deep);
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.02em;
}

.app-badge-gold {
  background: #fffdf0;
  border: 1.5px solid var(--app-gold-primary);
  color: #78350f;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 14px;
  box-shadow: 0 1px 4px rgba(8, 32, 70, 0.05);
}

/* Hero Vision Card */
.app-hero-vision {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 14px;
  border: 1.5px solid rgba(212, 175, 55, 0.4);
  box-shadow: 0 8px 24px rgba(8, 32, 70, 0.1);
  background: radial-gradient(circle at 50% 30%, #e0f2fe 0%, #bae6fd 60%, #93c5fd 100%);
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.app-hero-vision-img-wrap {
  width: 100%;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  background: radial-gradient(circle at 50% 30%, #e0f2fe 0%, #bae6fd 60%, #93c5fd 100%);
  position: relative;
}

.app-hero-vision img {
  width: 100%;
  height: 100%;
  max-height: 204px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 4px 14px rgba(8, 32, 70, 0.25));
}

.app-hero-overlay {
  background: #ffffff;
  display: flex;
  flex-direction: column;
  padding: 12px 14px;
  border-top: 1px solid rgba(212, 175, 55, 0.3);
}

.app-hero-title {
  font-family: var(--font-serif);
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--app-navy-deep);
  margin-bottom: 2px;
}

.app-hero-sub {
  font-size: 0.8rem;
  font-weight: 600;
  color: #1d4ed8;
  margin-bottom: 4px;
}

/* Image containment card wrapper for build tab */
.app-card-img-wrap {
  width: 100%;
  height: 200px;
  background: #f1f5f9;
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  margin-bottom: 12px;
}

.app-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(8, 32, 70, 0.15));
}

/* Construction Progress Meter Widget */
.app-progress-wrap {
  margin: 10px 0 14px;
}

.app-progress-bar-bg {
  width: 100%;
  height: 12px;
  background: #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.25);
  position: relative;
}

.app-progress-bar-fill {
  height: 100%;
  width: 67%;
  background: linear-gradient(90deg, #1d4ed8, #3b82f6);
  border-radius: 8px;
  transition: width 1s ease-in-out;
}

.app-progress-stats {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 0.82rem;
  font-weight: 600;
}

/* ==============================================================================
   DEDICATED SEPARATE MENU FOR CHRISTMAS STAR, DONATE & OFFER PRAYER
   ============================================================================== */
.app-sacred-menu-banner {
  background: #ffffff;
  border: 1.5px solid var(--app-gold-primary);
  border-radius: 18px;
  padding: 12px 10px;
  margin-bottom: 14px;
  box-shadow: 0 6px 20px rgba(8, 32, 70, 0.08);
}

.app-sacred-menu-title {
  font-family: var(--font-serif);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--app-navy-deep);
  text-align: center;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.app-sacred-menu-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.app-sacred-menu-card {
  background: #ffffff;
  border: 1px solid rgba(212, 175, 55, 0.45);
  border-radius: 14px;
  padding: 10px 3px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  position: relative;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 4px 12px rgba(8, 32, 70, 0.06);
}

.app-sacred-menu-card:active {
  transform: scale(0.95);
  border-color: var(--app-gold-primary);
  box-shadow: 0 2px 6px rgba(8, 32, 70, 0.12);
}

.app-sacred-menu-card .menu-card-icon {
  font-size: 1.45rem;
  margin-bottom: 4px;
  line-height: 1;
}

.app-sacred-menu-card .menu-card-name {
  font-family: var(--font-serif);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--app-navy-deep);
  line-height: 1.15;
  margin-bottom: 3px;
  white-space: nowrap;
}

.app-sacred-menu-card .menu-card-badge {
  background: #fffbeb;
  border: 1px solid var(--app-gold-primary);
  border-radius: 8px;
  color: #92400e;
  font-size: 0.58rem;
  font-weight: 800;
  padding: 2px 4px;
  margin-top: 3px;
  white-space: nowrap;
  letter-spacing: -0.01em;
}

/* ==============================================================================
   VIRTUAL SANCTUARY CANDLE ALTAR - ROYAL NAVY STAND (Matching Reference Image)
   ============================================================================== */
.app-candle-altar-stand {
  background: radial-gradient(circle at 50% 30%, #103c7e 0%, #082046 70%, #05142e 100%);
  border: 1.5px solid #d4af37;
  border-radius: 16px;
  padding: 14px 6px 12px;
  box-shadow: inset 0 2px 14px rgba(0, 0, 0, 0.6), 0 4px 14px rgba(8, 32, 70, 0.25);
  position: relative;
  overflow: hidden;
  margin: 10px 0 12px;
}

/* Altar Sacred Aura Glow */
.app-candle-altar-stand::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 42px;
  background: radial-gradient(ellipse at 50% 0%, rgba(255, 215, 0, 0.25) 0%, transparent 75%);
  pointer-events: none;
}

/* Line 1: Top Horizontal Line of 6 Candles */
.mobile-candle-tier-top {
  display: grid !important;
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  gap: 3px !important;
  justify-items: center !important;
  align-items: end !important;
  width: 100% !important;
  margin: 0 auto !important;
  position: relative;
  z-index: 2;
}

/* Brass Divider Shelf Rail between the 2 Horizontal Lines */
.mobile-candle-shelf-rail {
  width: 96%;
  height: 4px;
  background: linear-gradient(90deg, transparent, #b8860b 12%, #ffe08a 50%, #b8860b 88%, transparent);
  border-radius: 3px;
  margin: 7px auto;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.9), 0 0 6px rgba(255, 224, 138, 0.4);
  position: relative;
  z-index: 3;
}

/* Line 2: Second Horizontal Line of 5 Candles */
.mobile-candle-tier-bottom {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 5px !important;
  justify-items: center !important;
  align-items: end !important;
  width: 86% !important;
  margin: 0 auto !important;
  position: relative;
  z-index: 2;
}

/* Individual Mobile Candle Item */
.mobile-candle-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  cursor: pointer;
  position: relative;
  padding: 3px 2px 2px;
  border-radius: 8px;
  width: 100%;
  max-width: 52px;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  user-select: none;
}

.mobile-candle-item:active {
  transform: scale(0.96);
}

.mobile-candle-item.active {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  outline: 1.8px solid #fde047;
  outline-offset: 2px;
  box-shadow: 0 0 12px rgba(253, 224, 71, 0.6);
  transform: translateY(-3px) scale(1.05);
}

/* Candle Halo Glow */
.mobile-candle-halo {
  position: absolute;
  top: -2px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.45) 0%, rgba(255, 140, 0, 0.15) 50%, transparent 72%);
  pointer-events: none;
  animation: mobileHaloPulse 2.2s infinite alternate ease-in-out;
}

@keyframes mobileHaloPulse {
  0% { transform: scale(0.85); opacity: 0.7; }
  100% { transform: scale(1.15); opacity: 1; }
}

/* Flickering Flame */
.mobile-candle-flame {
  width: 11px;
  height: 18px;
  background: radial-gradient(ellipse at 50% 80%, #ffffff 0%, #ffea78 25%, #ff9100 65%, #dd2c00 100%);
  border-radius: 50% 50% 35% 35%;
  filter: drop-shadow(0 0 6px #ffc107) drop-shadow(0 0 12px #ff6d00);
  animation: mobileFlameFlicker 1.4s infinite alternate ease-in-out;
  transform-origin: center bottom;
  position: relative;
  z-index: 2;
}

@keyframes mobileFlameFlicker {
  0% { transform: rotate(-2deg) scale(0.95); opacity: 0.92; }
  35% { transform: rotate(2deg) scale(1.05); opacity: 1; }
  70% { transform: rotate(-1deg) scale(0.97); opacity: 0.9; }
  100% { transform: rotate(1deg) scale(1.02); opacity: 0.98; }
}

/* Wick */
.mobile-candle-wick {
  width: 2px;
  height: 5px;
  background-color: #1a1a1a;
  border-radius: 1px;
  margin-bottom: -1px;
  position: relative;
  z-index: 1;
}

/* Candle Wax Pillar (Cylindrical Ivory) */
.mobile-candle-wax {
  width: 20px;
  height: 38px;
  background: linear-gradient(90deg, #f1ece1 0%, #ffffff 35%, #fffdfa 65%, #e5ded2 100%);
  border-radius: 4px 4px 0 0;
  box-shadow: inset 0 -2px 4px rgba(0, 0, 0, 0.15), 0 1px 4px rgba(0, 0, 0, 0.25);
  position: relative;
  border: 0.5px solid rgba(255, 255, 255, 0.6);
}

/* Polished Brass Base */
.mobile-candle-brass-base {
  width: 26px;
  height: 7px;
  background: linear-gradient(180deg, #ffd777 0%, #c99326 50%, #7d5408 100%);
  border-radius: 0 0 4px 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Devotee Label Pill */
.mobile-candle-donor-label {
  font-size: 0.62rem;
  font-weight: 600;
  color: #fff;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  margin-top: 3px;
  line-height: 1.1;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

/* ==============================================================================
   SELECTED DEVOTEE INTENTION SHOWCASE CARD (Matching Reference Image)
   ============================================================================== */
.app-candle-intention-preview {
  background: #ffffff;
  border: 1.5px solid rgba(212, 175, 55, 0.4);
  border-radius: 16px;
  padding: 12px 14px;
  margin-top: 12px;
  box-shadow: 0 6px 18px rgba(8, 32, 70, 0.08);
  animation: fadeInTab 0.22s ease-out;
}

.app-candle-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px dashed rgba(212, 175, 55, 0.25);
  gap: 8px;
}

.app-candle-preview-devotee {
  display: flex;
  align-items: center;
  gap: 8px;
}

.app-candle-preview-patron {
  font-size: 0.7rem;
  color: #ffffff;
  background: #6b21a8;
  border: 1px solid #7e22ce;
  padding: 3px 10px;
  border-radius: 14px;
  white-space: nowrap;
  font-weight: 700;
}

.app-candle-preview-body {
  position: relative;
  background: linear-gradient(90deg, #dbeafe 0%, #edf4fc 100%);
  border-left: 3.5px solid var(--app-gold-primary);
  border-radius: 0 10px 10px 0;
  padding: 10px 14px 10px 24px;
  margin-bottom: 10px;
}

.app-candle-quote-mark {
  position: absolute;
  top: -2px;
  left: 6px;
  font-family: var(--font-serif);
  font-size: 1.8rem;
  line-height: 1;
  color: var(--app-gold-primary);
  opacity: 0.8;
}

.app-candle-preview-text {
  font-family: var(--font-serif);
  font-size: 0.92rem;
  font-weight: 700;
  font-style: italic;
  color: var(--app-navy-deep);
  line-height: 1.45;
  margin: 0;
  letter-spacing: 0.02em;
}

.app-candle-preview-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 4px;
}

.app-candle-nav-btns {
  display: inline-flex;
  align-items: center;
  background: #ffffff;
  border: 1.5px solid var(--app-gold-primary);
  border-radius: 16px;
  overflow: hidden;
  padding: 2px 4px;
}

.btn-candle-step {
  background: none;
  border: none;
  color: var(--app-navy-deep);
  font-size: 0.82rem;
  font-weight: 800;
  padding: 3px 8px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn-candle-step:active {
  background: #e2e8f0;
}

.app-candle-counter {
  font-family: var(--font-serif);
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--app-navy-deep);
  padding: 0 4px;
  min-width: 44px;
  text-align: center;
}

.app-candle-preview-amen-btn {
  background: #ffffff;
  border: 1.5px solid var(--app-gold-primary);
  border-radius: 16px;
  padding: 5px 14px;
  color: var(--app-navy-deep);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 2px 6px rgba(8, 32, 70, 0.06);
  transition: transform 0.15s ease;
}

.app-candle-preview-amen-btn:active {
  transform: scale(0.95);
  background: #fffbeb;
}

/* Sanctuary Prayer Stream Cards */
.app-sanctuary-prayer-card {
  background: #ffffff;
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 10px;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(8, 32, 70, 0.05);
  color: var(--app-navy-deep);
}

.app-sanctuary-prayer-card.active {
  border-color: var(--app-gold-primary);
  box-shadow: 0 0 14px rgba(212, 175, 55, 0.35);
  background: #f8fafc;
}

.app-sanctuary-patron-badge {
  background: #6b21a8;
  color: #ffffff;
  font-size: 0.68rem;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 700;
  white-space: nowrap;
}

/* Prayer Feed Cards */
.app-prayer-card {
  background: #ffffff;
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 10px;
  box-shadow: 0 2px 8px rgba(8, 32, 70, 0.05);
  color: var(--app-navy-deep);
}

.app-prayer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.app-prayer-name {
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--app-navy-deep);
}

.app-prayer-meta {
  font-size: 0.7rem;
  color: var(--app-text-muted);
}

.app-prayer-body {
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--app-navy-deep);
  margin-bottom: 8px;
}

.app-prayer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.app-amen-btn {
  background: #ffffff;
  border: 1px solid var(--app-gold-primary);
  border-radius: 16px;
  padding: 4px 12px;
  color: var(--app-navy-deep);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 1px 4px rgba(8, 32, 70, 0.06);
}

.app-amen-btn:active {
  background: #fffbeb;
  transform: scale(0.96);
}

/* App Buttons (Royal Blue & Sacred Gold from Reference) */
.btn-app-gold {
  background: linear-gradient(135deg, #d4af37, #fef08a);
  color: var(--app-navy-deep);
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: 0.88rem;
  padding: 10px 16px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.35);
  text-decoration: none;
  transition: transform 0.15s ease;
}

.btn-app-gold:active {
  transform: scale(0.98);
}

/* Royal Navy Primary Action Button */
.btn-app-crimson {
  background: linear-gradient(90deg, #082046 0%, #0d3269 50%, #103c7e 100%);
  color: #ffffff;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 11px 16px;
  border-radius: 14px;
  border: 1.5px solid var(--app-gold-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  box-shadow: 0 4px 14px rgba(8, 32, 70, 0.25);
  text-decoration: none;
  transition: transform 0.15s ease;
}

.btn-app-crimson:active {
  transform: scale(0.98);
}

/* Gallery Photo Grid in Mobile */
.app-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.app-gallery-thumb {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.35);
  background: #f1f5f9;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(8, 32, 70, 0.08);
}

.app-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.25s ease;
  filter: drop-shadow(0 2px 6px rgba(8, 32, 70, 0.15));
}

.app-gallery-thumb:active img {
  transform: scale(1.05);
}

.app-gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(0deg, rgba(8, 32, 70, 0.95) 0%, rgba(8, 32, 70, 0.7) 70%, transparent 100%);
  padding: 6px 8px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==============================================================================
   MOBILE GALLERY LIGHTBOX MODAL
   ============================================================================== */
.app-lightbox-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: fadeInTab 0.2s ease-out;
}

.app-lightbox-content {
  background: #ffffff;
  border: 2px solid var(--app-gold-primary);
  border-radius: 18px;
  max-width: 94vw;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 10px 30px rgba(8, 32, 70, 0.4);
}

.app-lightbox-close {
  position: absolute;
  top: 8px;
  right: 10px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--app-gold-primary);
  color: var(--app-navy-deep);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.4rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
}

.app-lightbox-img-wrap {
  width: 100%;
  max-height: 65vh;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}

.app-lightbox-img-wrap img {
  max-width: 100%;
  max-height: 62vh;
  object-fit: contain;
  display: block;
}

.app-lightbox-details {
  padding: 12px 14px;
  background: #ffffff;
}

.app-lightbox-title {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--app-navy-deep);
  margin-bottom: 4px;
}

.app-lightbox-desc {
  font-size: 0.78rem;
  color: var(--app-text-muted);
  line-height: 1.4;
}

/* ==============================================================================
   APP BOTTOM NAVIGATION BAR (Royal Navy & Radiant Gold Matching Reference Image)
   ============================================================================== */
.app-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--app-nav-height);
  background: linear-gradient(180deg, #071b38 0%, #030d1c 100%);
  border-top: 1.5px solid var(--app-gold-primary);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 1000;
  box-shadow: 0 -4px 20px rgba(7, 27, 56, 0.4);
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.app-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.68rem;
  font-weight: 600;
  transition: color 0.15s ease;
  position: relative;
  background: transparent;
  border: none;
  cursor: pointer;
}

.app-nav-item .icon {
  font-size: 1.25rem;
  margin-bottom: 2px;
  transition: transform 0.15s ease;
}

.app-nav-item.active {
  color: var(--app-gold-light);
}

.app-nav-item.active .icon {
  transform: translateY(-2px) scale(1.1);
  color: var(--app-gold-light);
}

.app-nav-item.active::after {
  content: '';
  position: absolute;
  top: 0;
  width: 24px;
  height: 2.5px;
  background: var(--app-gold-primary);
  border-radius: 2px;
  box-shadow: 0 0 8px var(--app-gold-primary);
}

/* ==============================================================================
   BOTTOM SHEET MODALS (Clean White Surface & Gold Borders)
   ============================================================================== */
.app-sheet-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(8, 32, 70, 0.6);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.app-sheet-backdrop.active {
  display: block;
  opacity: 1;
}

.app-bottom-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-height: 88vh;
  background: #ffffff;
  border-top: 2.5px solid var(--app-gold-primary);
  border-radius: 24px 24px 0 0;
  padding: 12px 18px 24px;
  z-index: 2001;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform 0.28s cubic-bezier(0.33, 1, 0.68, 1);
  box-shadow: 0 -8px 32px rgba(8, 32, 70, 0.25);
  color: var(--app-navy-deep);
}

.app-bottom-sheet.active {
  transform: translateY(0);
}

.app-sheet-handle {
  width: 44px;
  height: 4.5px;
  background: #cbd5e1;
  border-radius: 3px;
  margin: 0 auto 14px;
}

.app-sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.app-sheet-title {
  font-family: var(--font-serif);
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--app-navy-deep);
}

.app-sheet-close {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: var(--app-navy-deep);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Form Controls inside Bottom Sheet */
.app-form-group {
  margin-bottom: 12px;
}

.app-form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--app-navy-deep);
  margin-bottom: 4px;
}

.app-form-input, .app-form-select, .app-form-textarea {
  width: 100%;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 10px 12px;
  color: var(--app-navy-deep);
  font-size: 0.88rem;
  font-family: inherit;
  outline: none;
  pointer-events: auto !important;
  user-select: text !important;
  -webkit-user-select: text !important;
}

.app-form-input:focus, .app-form-select:focus, .app-form-textarea:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.app-form-select option {
  background: #ffffff;
  color: var(--app-navy-deep);
}

/* Desktop Switcher Notice in Footer */
.app-footer-switch {
  text-align: center;
  margin-top: 18px;
  padding: 12px;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
  font-size: 0.78rem;
  color: var(--app-text-muted);
}

.app-footer-switch a {
  color: #1d4ed8;
  text-decoration: underline;
  font-weight: 700;
}

/* ==============================================================================
   APP SLIDE-OUT NAVIGATION DRAWER (Clean Celestial Surface)
   ============================================================================== */
.app-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(8, 32, 70, 0.65);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 2100;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.app-drawer-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.app-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 82%;
  max-width: 320px;
  background: #ffffff;
  border-left: 2px solid var(--app-gold-primary);
  box-shadow: -8px 0 28px rgba(8, 32, 70, 0.25);
  z-index: 2200;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  color: var(--app-navy-deep);
}

.app-drawer.active {
  transform: translateX(0);
}

.app-drawer-header {
  padding: 18px 16px 14px;
  background: linear-gradient(180deg, #dbeafe 0%, #ffffff 100%);
  border-bottom: 1.5px solid rgba(212, 175, 55, 0.35);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.app-drawer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.app-drawer-logo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--app-gold-primary);
}

.app-drawer-title {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--app-navy-deep);
}

.app-drawer-close {
  background: #ffffff;
  border: 1px solid var(--app-gold-primary);
  color: var(--app-navy-deep);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(8, 32, 70, 0.1);
}

.app-drawer-section-title {
  font-family: var(--font-serif);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--app-gold-dark);
  font-weight: 800;
  padding: 12px 16px 6px;
  text-transform: uppercase;
}

.app-drawer-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: var(--app-navy-deep);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
  cursor: pointer;
  transition: background 0.15s ease;
}

.app-drawer-item:active {
  background: #f1f5f9;
  color: #1d4ed8;
}

.app-drawer-item .item-icon {
  font-size: 1.25rem;
  width: 28px;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.app-drawer-social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f1f5f9;
  border: 1px solid rgba(212, 175, 55, 0.4);
  flex-shrink: 0;
  transition: all 0.25s ease;
}

.app-drawer-social-icon.fb svg {
  fill: #1877F2;
}

.app-drawer-social-icon.ig svg {
  fill: none;
  stroke: #E1306C;
}

.app-drawer-social-icon.yt svg {
  fill: #FF0000;
}

.app-drawer-social-icon svg {
  width: 14px;
  height: 14px;
}

.app-drawer-item .item-badge {
  margin-left: auto;
  font-size: 0.68rem;
  background: #fffbeb;
  border: 1px solid var(--app-gold-primary);
  color: #92400e;
  border-radius: 10px;
  padding: 2px 7px;
  font-weight: 700;
}

/* ==============================================================================
   DRAWER ACCORDION & SUB-MENU FOR ADMINISTRATION
   ============================================================================== */
.app-drawer-accordion {
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
}

.app-drawer-accordion-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: var(--app-navy-deep);
  background: none;
  border: none;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease;
}

.app-drawer-accordion-toggle:active {
  background: #f1f5f9;
}

.app-drawer-accordion-arrow {
  margin-left: 6px;
  font-size: 0.8rem;
  color: var(--app-gold-primary);
  transition: transform 0.22s ease;
  display: inline-block;
}

.app-drawer-submenu {
  display: none;
  background: #f8fafc;
  border-left: 3.5px solid var(--app-gold-primary);
  padding: 4px 8px 6px 12px;
  margin: 0 0 6px 16px;
  border-radius: 0 0 8px 8px;
}

.app-drawer-accordion.is-open .app-drawer-submenu {
  display: block;
}

.app-drawer-subitem {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  color: var(--app-navy-deep);
  text-decoration: none;
  font-size: 0.82rem;
  border-radius: 8px;
  margin-bottom: 3px;
  transition: background 0.15s ease, transform 0.15s ease;
}

.app-drawer-subitem:active,
.app-drawer-subitem:hover {
  background: #ffffff;
  color: #b91c1c;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.app-drawer-subitem .item-icon {
  font-size: 1.1rem;
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}

.app-drawer-subitem-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.app-drawer-subitem-title {
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--app-navy-deep);
}

.app-drawer-subitem-sub {
  font-size: 0.7rem;
  color: var(--app-text-muted);
}

/* Administration Bottom Sheet Styling */
.app-admin-sheet-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.app-admin-sheet-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: #ffffff;
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.app-admin-sheet-item:active {
  background: #fefce8;
  border-color: var(--app-gold-primary);
  transform: scale(0.99);
}

.app-admin-sheet-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--app-gold-primary);
  flex-shrink: 0;
}

.app-drawer-footer {
  margin-top: auto;
  padding: 16px;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
  background: #f8fafc;
}

/* ==============================================================================
   THEMED LANGUAGE SELECTION MODAL
   ============================================================================== */
.app-lang-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 10px;
  max-height: 55vh;
  overflow-y: auto;
  padding-bottom: 10px;
}

.app-lang-item {
  background: #ffffff;
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--app-navy-deep);
  box-shadow: 0 1px 4px rgba(8, 32, 70, 0.05);
}

.app-lang-item.active {
  border-color: #3b82f6;
  background: #eff6ff;
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.2);
  font-weight: 700;
}

.app-lang-item:active {
  transform: scale(0.97);
}

.app-lang-native {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--app-navy-deep);
}

.app-lang-eng {
  font-size: 0.72rem;
  color: var(--app-text-muted);
}

/* ==============================================================================
   PARISH SOCIAL MEDIA CHANNELS
   ============================================================================== */
.app-social-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.app-social-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 14px;
  padding: 10px 14px;
  text-decoration: none;
  color: var(--app-navy-deep);
  transition: transform 0.15s ease, border-color 0.15s ease;
  box-shadow: 0 2px 8px rgba(8, 32, 70, 0.06);
}

.app-social-card:active {
  transform: scale(0.98);
  border-color: var(--app-gold-primary);
}

.app-social-card .social-card-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #f8fafc;
  border: 1.5px solid rgba(212, 175, 55, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.app-social-card .social-card-icon svg {
  width: 18px;
  height: 18px;
}

.app-social-card .social-card-info {
  flex: 1;
}

.app-social-card .social-card-name {
  font-family: var(--font-serif);
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--app-navy-deep);
}

.app-social-card .social-card-sub {
  font-size: 0.74rem;
  color: var(--app-text-muted);
}

.app-social-card .social-card-arrow {
  color: var(--app-navy-deep);
  font-size: 1.1rem;
  font-weight: 700;
}

/* ==============================================================================
   SACRED INTERCESSORY SAINTS SHRINES
   ============================================================================== */
.mobile-saints-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 10px;
  margin-bottom: 16px;
}

@media (max-width: 340px) {
  .mobile-saints-grid {
    grid-template-columns: 1fr;
  }
}

.mobile-saint-card {
  background: #ffffff;
  border: 1.5px solid rgba(212, 175, 55, 0.35);
  border-radius: 14px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 14px rgba(8, 32, 70, 0.07);
  position: relative;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  overflow: hidden;
}

.mobile-saint-card:active {
  transform: scale(0.97);
  border-color: var(--app-gold-primary);
  box-shadow: 0 0 14px rgba(212, 175, 55, 0.35);
}

.mobile-saint-img-wrap {
  width: 100%;
  height: 140px;
  max-height: 150px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid rgba(212, 175, 55, 0.25);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  margin-bottom: 8px;
  position: relative;
}

.mobile-saint-img-wrap img {
  width: 100%;
  height: 100%;
  max-height: 128px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 6px rgba(8, 32, 70, 0.15));
  transition: transform 0.2s ease;
  position: relative;
  z-index: 1;
}

.mobile-saint-card:active .mobile-saint-img-wrap img {
  transform: scale(1.04);
}

.mobile-saint-feast-tag {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 20;
  background: rgba(8, 32, 70, 0.94);
  border: 1px solid var(--app-gold-primary);
  border-radius: 8px;
  font-size: 0.62rem;
  font-weight: 800;
  color: #ffffff;
  padding: 3px 7px;
  line-height: 1.1;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  pointer-events: none;
  white-space: nowrap;
}

.mobile-saint-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  text-align: center;
}

.mobile-saint-name {
  font-family: var(--font-serif);
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--app-navy-deep);
  line-height: 1.2;
  margin-bottom: 3px;
}

.mobile-saint-sub {
  font-size: 0.68rem;
  color: var(--app-text-muted);
  line-height: 1.25;
  margin-bottom: 8px;
  flex: 1;
}

.mobile-saint-btn {
  background: linear-gradient(90deg, #082046 0%, #103c7e 100%);
  border: 1px solid var(--app-gold-primary);
  border-radius: 10px;
  padding: 6px 8px;
  color: #ffffff;
  font-size: 0.74rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(8, 32, 70, 0.2);
  transition: all 0.15s ease;
  width: 100%;
}

.mobile-saint-btn:active {
  transform: scale(0.95);
  background: #1d4ed8;
}

/* ==============================================================================
   MOBILE "LIGHT A CHRISTMAS STAR" NIGHT SKY CANVAS
   ============================================================================== */
.mobile-sky-canvas-wrapper {
  position: relative;
  background: linear-gradient(180deg, #070d1f 0%, #0d1a38 45%, #142750 75%, #081024 100%);
  border: 1.5px solid var(--app-gold-primary);
  border-radius: 16px;
  min-height: 360px;
  overflow: hidden;
  margin: 10px 0 14px;
  box-shadow: inset 0 2px 20px rgba(0, 0, 0, 0.8), 0 4px 18px rgba(8, 32, 70, 0.25);
}

.mobile-sky-church-silhouette {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 125px;
  background: url('../images/SHC%20Images/Propossed%20Church%20001.png') center bottom/cover no-repeat;
  filter: brightness(0.18) contrast(1.4) grayscale(0.85);
  opacity: 0.42;
  pointer-events: none;
  mask-image: linear-gradient(to top, rgba(0,0,0,1) 40%, rgba(0,0,0,0) 100%);
  -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,1) 40%, rgba(0,0,0,0) 100%);
  z-index: 1;
}

.mobile-sky-stars-stage {
  position: relative;
  min-height: 350px;
  width: 100%;
  padding: 10px;
  z-index: 2;
}

.mobile-christmas-star-item {
  position: absolute;
  cursor: pointer;
  transform: translate(-50%, -50%);
  transition: transform 0.2s ease;
  z-index: 5;
  -webkit-tap-highlight-color: transparent;
}

.mobile-christmas-star-item:active {
  transform: translate(-50%, -50%) scale(1.3);
  z-index: 10;
}

.mobile-star-icon-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.mobile-star-svg {
  width: 28px;
  height: 28px;
  fill: #ffd700;
  filter: drop-shadow(0 0 8px #ffb703) drop-shadow(0 0 16px #fb8500);
  animation: mobileStarPulse 2.2s infinite alternate ease-in-out;
}

@keyframes mobileStarPulse {
  0% { transform: scale(0.9); filter: drop-shadow(0 0 6px #ffd166); }
  50% { transform: scale(1.12); filter: drop-shadow(0 0 16px #ffb703) drop-shadow(0 0 24px #fb8500); }
  100% { transform: scale(0.95); filter: drop-shadow(0 0 8px #ffd166); }
}

.mobile-star-donor-tag {
  background: rgba(8, 32, 70, 0.9);
  border: 1px solid var(--app-gold-primary);
  color: #fef08a;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 8px;
  white-space: nowrap;
  max-width: 90px;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
  pointer-events: none;
}

.mobile-star-popover-card {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  background: #ffffff;
  border: 1.5px solid var(--app-gold-primary);
  border-radius: 14px;
  padding: 12px 14px;
  z-index: 20;
  box-shadow: 0 8px 24px rgba(8, 32, 70, 0.35);
  display: none;
  animation: fadeInTab 0.2s ease-out;
  color: var(--app-navy-deep);
}

.mobile-star-popover-card.active {
  display: block;
}

/* ==============================================================================
   MOBILE CONSTRUCTION FUND MODULE: SPONSORSHIP CARDS & INSTANT QR CODE
   ============================================================================== */
.mobile-sponsor-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 12px 0 16px;
}

.mobile-sponsor-card {
  background: #ffffff;
  border: 1.5px solid rgba(212, 175, 55, 0.35);
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 4px 14px rgba(8, 32, 70, 0.07);
  position: relative;
  overflow: hidden;
  color: var(--app-navy-deep);
}

.mobile-sponsor-card.featured {
  border-color: var(--app-gold-primary);
  box-shadow: 0 4px 18px rgba(212, 175, 55, 0.25), 0 4px 14px rgba(8, 32, 70, 0.1);
  background: #f8fafc;
}

.mobile-sponsor-badge {
  position: absolute;
  top: 10px;
  right: 12px;
  background: #1d4ed8;
  border: 1px solid var(--app-gold-primary);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.mobile-sponsor-amount {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--app-navy-deep);
  margin-bottom: 2px;
}

.mobile-sponsor-amount small {
  font-size: 0.75rem;
  color: var(--app-text-muted);
  font-weight: 600;
}

.mobile-sponsor-name {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--app-navy-deep);
  margin-bottom: 4px;
}

.mobile-sponsor-desc {
  font-size: 0.8rem;
  color: var(--app-text-muted);
  line-height: 1.4;
  margin-bottom: 10px;
}

.mobile-sponsor-btn {
  background: linear-gradient(135deg, #d4af37, #fef08a);
  color: var(--app-navy-deep);
  font-weight: 800;
  font-size: 0.82rem;
  padding: 8px 14px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
  text-decoration: none;
}

.mobile-sponsor-btn:active {
  transform: scale(0.97);
}

/* Mobile Instant UPI QR Scan Card */
.mobile-qr-card {
  background: #ffffff;
  border: 1.5px solid var(--app-gold-primary);
  border-radius: 16px;
  padding: 16px 14px;
  text-align: center;
  margin-bottom: 14px;
  box-shadow: 0 4px 18px rgba(8, 32, 70, 0.08);
  color: var(--app-navy-deep);
}

.mobile-qr-box {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #cbd5e1;
  padding: 10px;
  width: 170px;
  height: 170px;
  margin: 10px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(8, 32, 70, 0.1);
}

.mobile-qr-box img {
  width: 150px;
  height: 150px;
  object-fit: contain;
  display: block;
}

.mobile-upi-id-badge {
  background: #f1f5f9;
  border: 1px solid var(--app-gold-primary);
  color: var(--app-navy-deep);
  padding: 6px 12px;
  border-radius: 10px;
  font-family: monospace;
  font-size: 0.88rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0 10px;
}

.mobile-upi-apps-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  margin: 8px 0 12px;
}

.mobile-upi-pill {
  background: #eff6ff;
  border: 1px solid #93c5fd;
  color: #1d4ed8;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 12px;
}

.mobile-upi-pay-btn {
  background: linear-gradient(90deg, #082046 0%, #103c7e 100%);
  border: 1.5px solid var(--app-gold-primary);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.88rem;
  padding: 10px 16px;
  border-radius: 12px;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(8, 32, 70, 0.25);
  margin-top: 6px;
  width: 100%;
}

.mobile-upi-pay-btn:active {
  transform: scale(0.98);
  background: #1d4ed8;
}

/* ==============================================================================
   NATIVE MOBILE SUB-PAGE VIEWS (ADMINISTRATION HIERARCHY)
   ============================================================================== */
.app-subpage-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: #ffffff;
  border-bottom: 1px solid rgba(212, 175, 55, 0.25);
  margin: -12px -12px 14px -12px;
  position: sticky;
  top: 0;
  z-index: 10;
}

.btn-app-back {
  background: #f8fafc;
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: var(--app-navy-deep);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 20px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s ease;
}

.btn-app-back:active {
  background: var(--app-gold-primary);
  color: #ffffff;
}

.app-subpage-badge {
  font-size: 0.72rem;
  font-weight: 800;
  color: #92400e;
  background: #fef3c7;
  border: 1px solid rgba(212, 175, 55, 0.5);
  padding: 3px 9px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.app-admin-mobile-hero {
  text-align: center;
  padding: 14px 6px 6px;
}

.app-admin-mobile-avatar-wrap {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 0 auto 12px;
}

.app-admin-mobile-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3.5px solid var(--app-gold-primary);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  display: block;
}

.app-admin-mobile-ribbon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #7f1d1d, #991b1b);
  color: #ffffff;
  font-size: 0.74rem;
  font-weight: 800;
  padding: 4px 14px;
  border-radius: 20px;
  border: 1px solid rgba(254, 240, 138, 0.5);
  box-shadow: 0 3px 8px rgba(127, 29, 29, 0.25);
  margin-bottom: 8px;
}

.app-admin-mobile-name {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--app-navy-deep);
  margin: 4px 0 2px;
  line-height: 1.25;
}

.app-admin-mobile-title {
  font-size: 0.8rem;
  color: var(--app-gold-dark);
  font-weight: 700;
  margin-bottom: 10px;
}

.app-admin-mobile-quote {
  background: #fffdf5;
  border-left: 3.5px solid var(--app-gold-primary);
  padding: 10px 14px;
  border-radius: 0 10px 10px 0;
  font-style: italic;
  font-size: 0.82rem;
  color: #78350f;
  line-height: 1.55;
  text-align: left;
  margin: 10px 0 14px;
}

.app-admin-fact-list {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
  margin: 6px 0;
}

.app-admin-fact-list tr {
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
}

.app-admin-fact-list td {
  padding: 7px 4px;
  vertical-align: top;
}

.app-admin-fact-list td.lbl {
  color: var(--app-text-muted);
  font-weight: 600;
  width: 42%;
}

.app-admin-fact-list td.val {
  color: var(--app-navy-deep);
  font-weight: 700;
}

.app-admin-switcher-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.app-admin-switcher-btn {
  background: #ffffff;
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 10px;
  padding: 8px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.app-admin-switcher-btn:active {
  background: #fefce8;
  border-color: var(--app-gold-primary);
  transform: scale(0.97);
}

.app-admin-switcher-btn img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--app-gold-primary);
}
