/**
 * Sacred Heart Church, Cheruvannur
 * Native Mobile Web Application Stylesheet
 * Optimized for iOS Safari, Android Chrome, and PWA Standalone Mode
 */

:root {
  --app-bg: #1c070a;
  --app-bg-card: #2a0b10;
  --app-bg-card-alt: #360f15;
  --app-crimson-dark: #3b0c11;
  --app-crimson: #7f1d1d;
  --app-crimson-bright: #991b1b;
  --app-gold-primary: #dfc27d;
  --app-gold-light: #f3e5b8;
  --app-gold-dark: #b8860b;
  --app-text-main: #ffffff;
  --app-text-muted: #d6cfc7;
  --app-border: rgba(223, 194, 125, 0.3);
  --app-border-highlight: rgba(223, 194, 125, 0.65);
  --app-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
  --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 */
.app-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
  background: radial-gradient(circle at 50% 0%, #4a1016 0%, #1c070a 60%, #120406 100%);
}

/* ==============================================================================
   APP TOP HEADER
   ============================================================================== */
.app-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--app-header-height);
  background: rgba(42, 11, 16, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--app-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.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.5px solid var(--app-gold-primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  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);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--app-gold-light);
  line-height: 1.1;
  letter-spacing: 0.04em;
  user-select: none;
}

.app-brand-title-line1 {
  display: block;
  white-space: nowrap;
}

.app-brand-church {
  display: block;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--app-gold-primary);
  text-align: center;
  margin-top: 1px;
}

.app-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Language Selector Pill */
.app-lang-pill {
  position: relative;
  background: linear-gradient(135deg, #3d0c11, #55131a);
  border: 1.5px solid var(--app-gold-primary);
  border-radius: 18px;
  padding: 4px 10px;
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--app-gold-light);
  font-size: 0.75rem;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
  cursor: pointer;
}

.app-lang-select {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  -webkit-appearance: none;
  background-color: #24070b !important;
  color: #fbf8f2 !important;
}

/* Themed Language Options List (Replacing Default White Background) */
.app-lang-select option {
  background-color: #24070b !important;
  color: #fbf8f2 !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(223, 194, 125, 0.15) !important;
}

.app-lang-select option:checked,
.app-lang-select option:hover {
  background-color: #5c141d !important;
  color: #ffe08a !important;
  font-weight: 700 !important;
}

/* App Header Social Bar & 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: linear-gradient(145deg, #3d0c11, #5c131a);
  border: 1.5px solid var(--app-gold-primary);
  color: var(--app-gold-light) !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45), inset 0 1px 1px rgba(223, 194, 125, 0.25);
  text-decoration: none;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.app-social-btn:active {
  transform: scale(0.92);
  background: linear-gradient(135deg, #7f1d1d, #991b1b);
  border-color: #ffe08a;
  color: #ffffff !important;
}

.app-social-btn svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.app-icon-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--app-border);
  color: var(--app-gold-primary);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
}

/* Live Mass Ticker Banner */
.app-live-ticker {
  margin-top: var(--app-header-height);
  background: linear-gradient(90deg, #7f1d1d, #491217);
  padding: 7px 14px;
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(223, 194, 125, 0.25);
  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); }
}

/* ==============================================================================
   CARDS & APP WIDGETS
   ============================================================================== */
.app-card {
  background: var(--app-bg-card);
  border: 1px solid var(--app-border);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 14px;
  box-shadow: var(--app-shadow);
  position: relative;
  overflow: hidden;
}

.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.05rem;
  font-weight: 700;
  color: var(--app-gold-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.app-badge-gold {
  background: rgba(223, 194, 125, 0.15);
  border: 1px solid var(--app-gold-primary);
  color: var(--app-gold-light);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
}

/* Quick Action Circle Buttons Grid */
.app-quick-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.app-quick-btn {
  background: linear-gradient(145deg, #380d12, #4d121a);
  border: 1px solid var(--app-border);
  border-radius: 14px;
  padding: 12px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.app-quick-btn:active {
  transform: scale(0.95);
  border-color: var(--app-gold-primary);
  background: #5c141d;
}

.app-quick-btn .icon {
  font-size: 1.45rem;
}

.app-quick-btn .label {
  font-size: 0.72rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.15;
  color: var(--app-gold-light);
}

/* Hero Vision Card */
.app-hero-vision {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 14px;
  border: 1.5px solid var(--app-gold-primary);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.65);
  background: radial-gradient(circle at 50% 50%, #24080e 0%, #0c0204 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% 50%, #20070c 0%, #0a0103 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(0, 0, 0, 0.8));
}

.app-hero-overlay {
  background: linear-gradient(180deg, rgba(20,4,7,0.7) 0%, rgba(12,2,4,0.96) 100%);
  display: flex;
  flex-direction: column;
  padding: 12px 14px;
  border-top: 1px solid rgba(223, 194, 125, 0.25);
}

.app-hero-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.app-hero-sub {
  font-size: 0.8rem;
  color: var(--app-gold-light);
  margin-bottom: 6px;
}

/* Image containment card wrapper for build tab */
.app-card-img-wrap {
  width: 100%;
  height: 200px;
  background: radial-gradient(circle at 50% 50%, #1c060a 0%, #0a0103 100%);
  border: 1px solid rgba(223, 194, 125, 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(0, 0, 0, 0.6));
}

/* Construction Progress Meter Widget */
.app-progress-wrap {
  margin: 10px 0 14px;
}

.app-progress-bar-bg {
  width: 100%;
  height: 14px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(223, 194, 125, 0.3);
  position: relative;
}

.app-progress-bar-fill {
  height: 100%;
  width: 67%;
  background: linear-gradient(90deg, #b8860b, #dfc27d, #ffdf79);
  border-radius: 10px;
  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;
}

/* ==============================================================================
   VIRTUAL SANCTUARY CANDLE ALTAR - 2 HORIZONTAL TIERS WITH BRASS RAIL (MOBILE)
   ============================================================================== */
.app-candle-altar-stand {
  background: radial-gradient(ellipse at 50% 20%, #3a0d14 0%, #170407 80%, #0d0204 100%);
  border: 1.5px solid rgba(223, 194, 125, 0.45);
  border-radius: 16px;
  padding: 14px 6px 12px;
  box-shadow: inset 0 2px 14px rgba(0, 0, 0, 0.8), 0 4px 16px rgba(0, 0, 0, 0.4);
  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.22) 0%, transparent 75%);
  pointer-events: none;
}

/* Line 1: Top Horizontal Line of 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 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), background 0.2s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.mobile-candle-item:active {
  transform: scale(0.96);
}

.mobile-candle-item.active {
  background: rgba(223, 194, 125, 0.22);
  border: 1px solid rgba(255, 224, 138, 0.7);
  box-shadow: 0 0 14px rgba(255, 193, 7, 0.45);
  transform: translateY(-4px) scale(1.06);
}

/* 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 */
.mobile-candle-wax {
  width: 20px;
  background: linear-gradient(90deg, #d4a754 0%, #fff7d6 30%, #ffebb3 65%, #c89532 100%);
  border-radius: 3px 3px 0 0;
  box-shadow: inset 0 -2px 4px rgba(0, 0, 0, 0.25), 0 1px 4px rgba(0, 0, 0, 0.35);
  position: relative;
  border: 0.5px solid rgba(255, 255, 255, 0.3);
}

.mobile-candle-wax::after {
  content: '';
  position: absolute;
  top: 0;
  left: 1px;
  right: 1px;
  height: 2px;
  background: #fffcf2;
  border-radius: 50%;
}

/* 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 */
.mobile-candle-donor-label {
  font-size: 0.6rem;
  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);
}

/* Devotee Selected Intention Showcase Card */
.app-candle-intention-preview {
  background: linear-gradient(135deg, rgba(28, 6, 10, 0.95), rgba(48, 12, 18, 0.95));
  border: 1.5px solid var(--app-gold-primary);
  border-radius: 14px;
  padding: 12px 14px;
  margin-top: 10px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5), inset 0 0 12px rgba(223, 194, 125, 0.08);
  animation: fadeInTab 0.22s ease-out;
}

.app-candle-preview-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px dashed rgba(223, 194, 125, 0.25);
  gap: 8px;
}

.app-candle-preview-devotee {
  display: flex;
  align-items: center;
  gap: 8px;
}

.app-candle-preview-patron {
  font-size: 0.72rem;
  color: var(--app-gold-primary);
  background: rgba(223, 194, 125, 0.12);
  border: 1px solid rgba(223, 194, 125, 0.3);
  padding: 2px 8px;
  border-radius: 12px;
  white-space: nowrap;
}

.app-candle-preview-body {
  position: relative;
  background: rgba(0, 0, 0, 0.25);
  border-left: 3px solid var(--app-gold-primary);
  border-radius: 0 8px 8px 0;
  padding: 8px 12px 8px 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.6;
}

.app-candle-preview-text {
  font-family: var(--font-serif);
  font-size: 0.88rem;
  font-style: italic;
  color: #fffdfa;
  line-height: 1.45;
  margin: 0;
}

.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: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(223, 194, 125, 0.35);
  border-radius: 14px;
  overflow: hidden;
}

.btn-candle-step {
  background: none;
  border: none;
  color: var(--app-gold-light);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 9px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn-candle-step:active {
  background: var(--app-gold-primary);
  color: #000;
}

.app-candle-counter {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--app-gold-primary);
  padding: 0 4px;
  min-width: 44px;
  text-align: center;
}

.app-candle-preview-amen-btn {
  background: linear-gradient(135deg, rgba(223, 194, 125, 0.18), rgba(223, 194, 125, 0.08));
  border: 1px solid var(--app-gold-primary);
  border-radius: 14px;
  padding: 5px 12px;
  color: var(--app-gold-light);
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
}

.app-candle-preview-amen-btn:active {
  background: var(--app-gold-primary);
  color: #000;
}

/* Sanctuary Prayer Stream Cards (Mirroring Website Prayer Wall) */
.app-sanctuary-prayer-card {
  background: linear-gradient(135deg, #24070a 0%, #350c12 100%);
  border: 1px solid rgba(223, 194, 125, 0.22);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 10px;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
}

.app-sanctuary-prayer-card.active {
  border-color: var(--app-gold-primary);
  box-shadow: 0 0 14px rgba(223, 194, 125, 0.35);
  background: linear-gradient(135deg, #3d0d14 0%, #52131b 100%);
}

.app-sanctuary-patron-badge {
  background: rgba(223, 194, 125, 0.14);
  border: 1px solid rgba(223, 194, 125, 0.35);
  color: var(--app-gold-light);
  font-size: 0.68rem;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 600;
  white-space: nowrap;
}

/* Prayer Feed Cards */
.app-prayer-card {
  background: #310d13;
  border: 1px solid rgba(223, 194, 125, 0.2);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 10px;
}

.app-prayer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.app-prayer-name {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--app-gold-light);
}

.app-prayer-meta {
  font-size: 0.7rem;
  color: var(--app-text-muted);
}

.app-prayer-body {
  font-size: 0.84rem;
  line-height: 1.45;
  color: #fbf8f2;
  margin-bottom: 8px;
}

.app-prayer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.app-amen-btn {
  background: rgba(223, 194, 125, 0.12);
  border: 1px solid var(--app-gold-primary);
  border-radius: 16px;
  padding: 4px 12px;
  color: var(--app-gold-light);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.app-amen-btn:active {
  background: var(--app-gold-primary);
  color: #000;
}

/* App Buttons */
.btn-app-gold {
  background: linear-gradient(135deg, #c59b27, #dfc27d);
  color: #2b080c;
  font-weight: 700;
  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(197, 155, 39, 0.35);
  text-decoration: none;
}

.btn-app-gold:active {
  transform: scale(0.98);
}

.btn-app-crimson {
  background: linear-gradient(135deg, #7f1d1d, #991b1b);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid var(--app-gold-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  box-shadow: 0 4px 12px rgba(127, 29, 29, 0.5);
  text-decoration: none;
}

.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(223, 194, 125, 0.35);
  background: radial-gradient(circle at 50% 50%, #1e070b 0%, #0b0103 100%);
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
}

.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(0, 0, 0, 0.6));
}

.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(12,2,4,0.92) 0%, rgba(12,2,4,0.65) 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.92);
  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: #190508;
  border: 1.5px solid var(--app-gold-primary);
  border-radius: 16px;
  max-width: 94vw;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 10px 30px rgba(0,0,0,0.8);
}

.app-lightbox-close {
  position: absolute;
  top: 8px;
  right: 10px;
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid var(--app-gold-primary);
  color: var(--app-gold-light);
  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: #090102;
  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;
}

.app-lightbox-title {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--app-gold-light);
  margin-bottom: 4px;
}

.app-lightbox-desc {
  font-size: 0.78rem;
  color: var(--app-text-muted);
  line-height: 1.4;
}

/* ==============================================================================
   APP BOTTOM NAVIGATION BAR
   ============================================================================== */
.app-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--app-nav-height);
  background: rgba(30, 8, 11, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1.5px solid rgba(223, 194, 125, 0.4);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 1000;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.6);
  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: #bfaea5;
  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-primary);
}

.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 (Native App Feel)
   ============================================================================== */
.app-sheet-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  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: #2a0b10;
  border-top: 1.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(0, 0, 0, 0.8);
}

.app-bottom-sheet.active {
  transform: translateY(0);
}

.app-sheet-handle {
  width: 44px;
  height: 4.5px;
  background: rgba(223, 194, 125, 0.45);
  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: 700;
  color: var(--app-gold-light);
}

.app-sheet-close {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 1.1rem;
  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: 600;
  color: var(--app-gold-light);
  margin-bottom: 4px;
}

.app-form-input, .app-form-select, .app-form-textarea {
  width: 100%;
  background: rgba(18, 4, 7, 0.8);
  border: 1px solid var(--app-border);
  border-radius: 10px;
  padding: 10px 12px;
  color: #fff;
  font-size: 0.88rem;
  font-family: inherit;
  outline: none;
}

.app-form-input:focus, .app-form-select:focus, .app-form-textarea:focus {
  border-color: var(--app-gold-primary);
  box-shadow: 0 0 8px rgba(223, 194, 125, 0.3);
}

.app-form-select option {
  background: #2a0b10;
  color: #fff;
}

/* Desktop Switcher Notice in Footer */
.app-footer-switch {
  text-align: center;
  margin-top: 18px;
  padding: 12px;
  border-top: 1px solid rgba(223, 194, 125, 0.15);
  font-size: 0.78rem;
  color: var(--app-text-muted);
}

.app-footer-switch a {
  color: var(--app-gold-primary);
  text-decoration: underline;
  font-weight: 600;
}

/* ==============================================================================
   DEDICATED SEPARATE MENU FOR CHRISTMAS STAR, DONATE & OFFER PRAYER
   ============================================================================== */
.app-sacred-menu-banner {
  background: linear-gradient(135deg, rgba(68, 17, 24, 0.85), rgba(30, 7, 11, 0.98));
  border: 1.5px solid var(--app-gold-primary);
  border-radius: 16px;
  padding: 12px 10px;
  margin-bottom: 14px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.55), inset 0 1px 1px rgba(255, 224, 138, 0.25);
}

.app-sacred-menu-title {
  font-family: var(--font-serif);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--app-gold-light);
  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(3, 1fr);
  gap: 8px;
}

.app-sacred-menu-card {
  background: radial-gradient(circle at 50% 15%, #4a131b, #200609);
  border: 1px solid rgba(223, 194, 125, 0.4);
  border-radius: 14px;
  padding: 10px 4px 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 3px 10px rgba(0, 0, 0, 0.45);
}

.app-sacred-menu-card:active {
  transform: scale(0.95);
  border-color: var(--app-gold-light);
  box-shadow: 0 0 14px rgba(223, 194, 125, 0.4);
}

.app-sacred-menu-card.star-card {
  border-color: rgba(255, 222, 89, 0.6);
  background: radial-gradient(circle at 50% 15%, #561822, #24070c);
}
.app-sacred-menu-card.donate-card {
  border-color: rgba(223, 194, 125, 0.6);
  background: radial-gradient(circle at 50% 15%, #4e141d, #20060a);
}
.app-sacred-menu-card.prayer-card {
  border-color: rgba(248, 113, 113, 0.6);
  background: radial-gradient(circle at 50% 15%, #4a111a, #1e0508);
}

.app-sacred-menu-card .menu-card-icon {
  font-size: 1.6rem;
  margin-bottom: 4px;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.6));
}

.app-sacred-menu-card .menu-card-name {
  font-family: var(--font-serif);
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 3px;
}

.app-sacred-menu-card .menu-card-badge {
  background: rgba(223, 194, 125, 0.2);
  border: 1px solid var(--app-gold-primary);
  border-radius: 10px;
  color: var(--app-gold-light);
  font-size: 0.62rem;
  font-weight: 800;
  padding: 1px 6px;
  margin-top: 3px;
}

/* ==============================================================================
   APP SLIDE-OUT NAVIGATION DRAWER
   ============================================================================== */
.app-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  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: #180407;
  border-left: 1.5px solid var(--app-gold-primary);
  box-shadow: -8px 0 28px rgba(0, 0, 0, 0.8);
  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;
}

.app-drawer.active {
  transform: translateX(0);
}

.app-drawer-header {
  padding: 18px 16px 14px;
  background: linear-gradient(180deg, #3d0c11 0%, #1a0407 100%);
  border-bottom: 1px solid rgba(223, 194, 125, 0.3);
  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: 1px solid var(--app-gold-primary);
}

.app-drawer-title {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--app-gold-light);
}

.app-drawer-close {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--app-gold-primary);
  color: var(--app-gold-light);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.app-drawer-section-title {
  font-family: var(--font-serif);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--app-gold-primary);
  font-weight: 700;
  padding: 12px 16px 6px;
  text-transform: uppercase;
}

.app-drawer-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: #fbf8f2;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  border-bottom: 1px solid rgba(223, 194, 125, 0.1);
  cursor: pointer;
  transition: background 0.15s ease;
}

.app-drawer-item:active {
  background: rgba(223, 194, 125, 0.15);
  color: var(--app-gold-light);
}

.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: linear-gradient(145deg, #3d0c11, #5c131a);
  border: 1.5px solid var(--app-gold-primary);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45), inset 0 1px 1px rgba(223, 194, 125, 0.25);
  flex-shrink: 0;
  transition: all 0.25s ease;
}

.app-drawer-social-icon svg {
  width: 14px;
  height: 14px;
  fill: var(--app-gold-light);
  color: var(--app-gold-light);
}

.app-drawer-social-icon.ig svg {
  fill: none;
  stroke: var(--app-gold-light);
}

.app-drawer-item:hover .app-drawer-social-icon,
.app-drawer-item:active .app-drawer-social-icon {
  border-color: #ffd777;
  background: linear-gradient(135deg, #7f1d1d, #991b1b);
  transform: scale(1.08);
}

.app-drawer-item .item-badge {
  margin-left: auto;
  font-size: 0.68rem;
  background: rgba(223, 194, 125, 0.2);
  border: 1px solid var(--app-gold-primary);
  color: var(--app-gold-light);
  border-radius: 10px;
  padding: 2px 7px;
  font-weight: 700;
}

.app-drawer-footer {
  margin-top: auto;
  padding: 16px;
  border-top: 1px solid rgba(223, 194, 125, 0.2);
  background: #110204;
}

/* ==============================================================================
   THEMED LANGUAGE SELECTION MODAL (Crimson & Gold Grid)
   ============================================================================== */
.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: radial-gradient(circle at 50% 20%, #3a0d13, #1e0508);
  border: 1px solid rgba(223, 194, 125, 0.3);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #fbf8f2;
}

.app-lang-item.active {
  border-color: #ffd777;
  background: linear-gradient(135deg, #5c141d, #7f1d1d);
  box-shadow: 0 0 12px rgba(223, 194, 125, 0.35);
  font-weight: 700;
}

.app-lang-item:active {
  transform: scale(0.97);
}

.app-lang-native {
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
}

.app-lang-eng {
  font-size: 0.72rem;
  color: var(--app-gold-primary);
}

/* ==============================================================================
   PARISH SOCIAL MEDIA CHANNELS (YouTube, Instagram, Facebook)
   ============================================================================== */
.app-social-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.app-social-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: radial-gradient(circle at 20% 50%, #360c11, #1e0508);
  border: 1px solid rgba(223, 194, 125, 0.35);
  border-radius: 14px;
  padding: 10px 14px;
  text-decoration: none;
  color: #fbf8f2;
  transition: transform 0.15s ease, border-color 0.15s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.app-social-card:active {
  transform: scale(0.98);
  border-color: var(--app-gold-light);
}

.app-social-card .social-card-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #54131a, #360c11);
  border: 1.5px solid var(--app-gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--app-gold-light);
}

.app-social-card .social-card-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.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: 700;
  color: #fff;
}

.app-social-card .social-card-sub {
  font-size: 0.74rem;
  color: var(--app-gold-primary);
}

.app-social-card .social-card-arrow {
  color: var(--app-gold-light);
  font-size: 1.1rem;
  font-weight: 700;
}



/* ==============================================================================
   SACRED INTERCESSORY SAINTS SHRINES (OFFER PRAYER PETITIONS)
   ============================================================================== */
.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: radial-gradient(circle at 50% 15%, #3d0e15 0%, #200609 100%);
  border: 1.5px solid rgba(223, 194, 125, 0.35);
  border-radius: 14px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
  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-light);
  box-shadow: 0 0 14px rgba(223, 194, 125, 0.45);
}

.mobile-saint-img-wrap {
  width: 100%;
  height: 140px;
  max-height: 150px;
  border-radius: 10px;
  background: radial-gradient(circle at 50% 50%, #1a0407 0%, #0d0103 100%);
  border: 1px solid rgba(223, 194, 125, 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 3px 8px rgba(0, 0, 0, 0.75));
  transition: transform 0.2s ease;
}

.mobile-saint-card:active .mobile-saint-img-wrap img {
  transform: scale(1.04);
}

.mobile-saint-feast-tag {
  position: absolute;
  top: 4px;
  right: 4px;
  background: rgba(18, 4, 7, 0.85);
  border: 0.5px solid var(--app-gold-primary);
  border-radius: 8px;
  font-size: 0.58rem;
  font-weight: 700;
  color: var(--app-gold-light);
  padding: 2px 5px;
  line-height: 1;
}

.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: 700;
  color: var(--app-gold-light);
  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(135deg, #7f1d1d, #991b1b);
  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(127, 29, 29, 0.4);
  transition: all 0.15s ease;
  width: 100%;
}

.mobile-saint-btn:active {
  transform: scale(0.95);
  background: linear-gradient(135deg, #b91c1c, #dc2626);
  border-color: #ffe08a;
}

/* ==============================================================================
   MOBILE INTERACTIVE "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(0, 0, 0, 0.5);
}

.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(18, 4, 7, 0.88);
  border: 1px solid var(--app-gold-primary);
  color: var(--app-gold-light);
  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 Detail Popover Card */
.mobile-star-popover-card {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  background: rgba(26, 6, 10, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid var(--app-gold-primary);
  border-radius: 14px;
  padding: 12px 14px;
  z-index: 20;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.85);
  display: none;
  animation: fadeInTab 0.2s ease-out;
}

.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: radial-gradient(circle at 50% 15%, #3d0e15 0%, #200609 100%);
  border: 1.5px solid rgba(223, 194, 125, 0.35);
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
  position: relative;
  overflow: hidden;
}

.mobile-sponsor-card.featured {
  border-color: var(--app-gold-primary);
  box-shadow: 0 4px 18px rgba(223, 194, 125, 0.25), 0 4px 14px rgba(0, 0, 0, 0.6);
  background: radial-gradient(circle at 50% 15%, #4e131d 0%, #25060b 100%);
}

.mobile-sponsor-badge {
  position: absolute;
  top: 10px;
  right: 12px;
  background: var(--app-crimson-bright);
  border: 1px solid var(--app-gold-light);
  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-gold-light);
  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: 700;
  color: #ffffff;
  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, #dfc27d, #c59b27);
  color: #2b080c;
  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(197, 155, 39, 0.35);
  text-decoration: none;
}

.mobile-sponsor-btn:active {
  transform: scale(0.97);
}

/* Mobile Instant UPI QR Scan Card */
.mobile-qr-card {
  background: radial-gradient(circle at 50% 15%, #340c12 0%, #1a0407 100%);
  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(0, 0, 0, 0.55);
}

.mobile-qr-box {
  background: #ffffff;
  border-radius: 12px;
  padding: 10px;
  width: 170px;
  height: 170px;
  margin: 10px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
}

.mobile-qr-box img {
  width: 150px;
  height: 150px;
  object-fit: contain;
  display: block;
}

.mobile-upi-id-badge {
  background: rgba(18, 4, 7, 0.9);
  border: 1px solid var(--app-gold-primary);
  color: var(--app-gold-light);
  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: rgba(223, 194, 125, 0.15);
  border: 1px solid rgba(223, 194, 125, 0.35);
  color: var(--app-gold-light);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 12px;
}

.mobile-upi-pay-btn {
  background: linear-gradient(135deg, #7f1d1d, #991b1b);
  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(127, 29, 29, 0.5);
  margin-top: 6px;
  width: 100%;
}

.mobile-upi-pay-btn:active {
  transform: scale(0.98);
  background: linear-gradient(135deg, #b91c1c, #dc2626);
}
