/* ==========================================================================
   Pray4CEP — CEP 2026 Intercession Platform Stylesheet
   Designed as a sacred, premium Catholic devotional experience
   Palette: Cream Parchment (#F9F5EC), Deep Burgundy (#6B111A),
            Sacred Red (#8B0000), Antique Gold (#C9A45C), Deep Navy (#17283A)
   ========================================================================== */

:root {
  --p-parchment: #F9F5EC;
  --p-parchment-light: #FDFBF7;
  --p-parchment-card: #FAF6EF;
  --p-burgundy: #6B111A;
  --p-burgundy-dark: #4A0810;
  --p-burgundy-light: #8E1C27;
  --p-sacred-red: #8B0000;
  --p-crimson: #A3121C;
  --p-gold: #C9A45C;
  --p-gold-light: #DFBF7A;
  --p-gold-pale: #F3E5C8;
  --p-gold-dark: #9E7934;
  --p-navy: #17283A;
  --p-navy-dark: #0D1926;
  --p-navy-light: #253D56;
  --p-text-main: #453B34;
  --p-text-muted: #74675C;
  --p-text-light: #A3968B;
  --p-border-gold: rgba(201, 164, 92, 0.35);
  --p-border-subtle: rgba(69, 59, 52, 0.12);
  --p-shadow-sm: 0 4px 14px rgba(23, 40, 58, 0.05);
  --p-shadow-md: 0 10px 28px rgba(23, 40, 58, 0.08), 0 2px 6px rgba(23, 40, 58, 0.04);
  --p-shadow-lg: 0 18px 45px rgba(23, 40, 58, 0.14), 0 4px 12px rgba(23, 40, 58, 0.06);
  --p-radius-sm: 10px;
  --p-radius-md: 16px;
  --p-radius-lg: 24px;
  --p-radius-full: 9999px;
  --p-font-serif: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --p-font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Base Body Styles */
body.pray4cep-body {
  margin: 0;
  padding: 0;
  background-color: var(--p-parchment);
  color: var(--p-text-main);
  font-family: var(--p-font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  background-image: radial-gradient(circle at 50% 0%, rgba(201, 164, 92, 0.08) 0%, transparent 60%);
}

/* Typography Helpers */
.p-serif { font-family: var(--p-font-serif); }
.p-gold-text {
  background: linear-gradient(135deg, #ECC880 0%, #C9A45C 50%, #9E7832 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}
.p-cream-text { color: var(--p-parchment-light); }

/* Container */
.pray-container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px;
  box-sizing: border-box;
}

/* ==========================================================================
   Hero Section: Eucharistic Adoration Chapel
   ========================================================================== */
.pray-hero {
  position: relative;
  min-height: 480px;
  padding: 130px 0 50px; /* Accounts for fixed navbar from Home page */
  background: #0d1a29;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.pray-hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../assets/clean_hero_bg.jpg');
  background-size: cover;
  background-position: right center;
  opacity: 0.95;
}

.pray-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(10, 20, 30, 0.9) 0%,
    rgba(10, 20, 30, 0.72) 45%,
    rgba(10, 20, 30, 0.15) 80%,
    rgba(10, 20, 30, 0.35) 100%
  );
}

.pray-hero-content {
  position: relative;
  z-index: 10;
  text-align: left;
  max-width: 580px;
}

.pray-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--p-gold-light);
  margin-bottom: 12px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
}

.pray-kicker::before,
.pray-kicker::after {
  content: '✦';
  font-size: 0.7rem;
  opacity: 0.8;
}

.pray-hero-title {
  font-family: var(--p-font-serif);
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.1;
  color: #ffffff;
  margin: 0 0 16px;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.8);
}

.pray-hero-title .p-gold-word {
  color: #E6C275;
  background: linear-gradient(135deg, #FFF1D0 0%, #ECC880 40%, #C9A45C 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-style: italic;
  display: block;
}

.pray-hero-subtitle {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.92);
  margin: 0 0 24px;
  line-height: 1.6;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
  max-width: 500px;
}

/* ==========================================================================
   Campaign Progress Goals Card (Exact match with reference)
   ========================================================================== */
.pray-goals-card {
  position: relative;
  z-index: 20;
  background: var(--p-parchment-light);
  border-radius: var(--p-radius-lg);
  border: 1px solid var(--p-border-gold);
  box-shadow: var(--p-shadow-lg), 0 0 35px rgba(201, 164, 92, 0.15);
  padding: 26px 22px;
  margin-top: -30px;
  margin-bottom: 28px;
}

.pray-goals-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 22px;
}

.pray-goals-header-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--p-gold), transparent);
}

.pray-goals-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--p-burgundy);
}

.pray-goals-badge i {
  color: var(--p-sacred-red);
  font-size: 0.95rem;
}

.pray-goals-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

/* Single Goal Item */
.pray-goal-item {
  display: flex;
  flex-direction: column;
}

.pray-goal-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.pray-goal-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
}

.pray-goal-icon-wrap.rosary-icon {
  background: linear-gradient(135deg, rgba(107, 17, 26, 0.12), rgba(139, 0, 0, 0.05));
  border: 1px solid rgba(139, 0, 0, 0.25);
  color: var(--p-sacred-red);
}

.pray-goal-icon-wrap.adoration-icon {
  background: linear-gradient(135deg, rgba(201, 164, 92, 0.2), rgba(236, 200, 128, 0.08));
  border: 1px solid var(--p-gold);
  color: var(--p-gold-dark);
}

.pray-goal-title-group h3 {
  font-family: var(--p-font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  margin: 0;
  line-height: 1;
  color: var(--p-navy-dark);
}

.pray-goal-title-group p {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--p-text-muted);
  margin: 4px 0 0;
}

/* Quick +1 Button Directly on Intention Goal Box */
.pray-goal-quick-btn {
  margin-left: auto;
  background: linear-gradient(135deg, var(--p-sacred-red), #5C1019);
  color: #fff;
  border: 1px solid var(--p-gold);
  border-radius: var(--p-radius-full);
  padding: 6px 14px;
  font-family: var(--p-font-sans);
  font-size: 0.84rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(107, 17, 26, 0.28);
  transition: all 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
  white-space: nowrap;
  flex-shrink: 0;
}

.pray-goal-quick-btn:hover {
  transform: translateY(-2px) scale(1.06);
  background: linear-gradient(135deg, #A80000, #7B131E);
  box-shadow: 0 5px 14px rgba(107, 17, 26, 0.42);
}

.pray-goal-quick-btn:active {
  transform: translateY(0) scale(0.95);
}

.pray-goal-quick-btn.adoration-btn {
  background: linear-gradient(135deg, #B58A38, #876219);
  border-color: #FFE5A3;
  color: #fff;
  box-shadow: 0 3px 10px rgba(135, 98, 25, 0.32);
}

.pray-goal-quick-btn.adoration-btn:hover {
  background: linear-gradient(135deg, #C79940, #9A701E);
  box-shadow: 0 5px 14px rgba(135, 98, 25, 0.48);
}

.pray-goal-stats-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 8px;
}

.pray-goal-offered {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--p-navy-dark);
}

.pray-goal-offered span {
  font-weight: 500;
  font-size: 0.88rem;
  color: var(--p-text-muted);
  margin-left: 4px;
}

.pray-goal-pct-pill {
  font-size: 0.82rem;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: var(--p-radius-full);
  background: rgba(69, 59, 52, 0.08);
  color: var(--p-text-main);
}

/* Progress Bars */
.pray-progress-track {
  width: 100%;
  height: 12px;
  background: #E8E2D5;
  border-radius: var(--p-radius-full);
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.08);
}

.pray-progress-fill {
  height: 100%;
  border-radius: var(--p-radius-full);
  transition: width 1.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.pray-progress-fill.rosary-fill {
  background: linear-gradient(90deg, #6B111A, #9E121F, #C41C2B);
}

.pray-progress-fill.adoration-fill {
  background: linear-gradient(90deg, #B58832, #DDAE4E, #ECC880);
}

.pray-progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.45) 50%,
    transparent 100%
  );
  animation: shineProgress 3s infinite;
}

/* ==========================================================================
   Primary Action Cards (Two Featured Hero Journeys)
   ========================================================================== */
.pray-action-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 36px;
}

.pray-card {
  position: relative;
  border-radius: var(--p-radius-md);
  padding: 24px;
  overflow: hidden;
  color: #fff;
  cursor: pointer;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: var(--p-shadow-md);
}

.pray-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--p-shadow-lg);
}

.pray-card:active {
  transform: translateY(-1px);
}

/* Rosary Card: Deep Burgundy */
.pray-card-rosary {
  background: linear-gradient(135deg, #7A1420 0%, #520912 60%, #350409 100%);
}

/* Adoration Card: Deep Royal Navy */
.pray-card-adoration {
  background: linear-gradient(135deg, #1C334A 0%, #112233 60%, #0A1521 100%);
}

.pray-card-art-thumb {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 42%;
  pointer-events: none;
  background-size: cover;
  background-position: center;
  opacity: 0.9;
  mask-image: linear-gradient(to left, black 50%, transparent 100%);
  -webkit-mask-image: linear-gradient(to left, black 50%, transparent 100%);
}

.pray-card-content {
  position: relative;
  z-index: 5;
  max-width: 62%;
}

.pray-card h4 {
  font-family: var(--p-font-serif);
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 8px;
  color: #fff;
}

.pray-card p {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 16px;
  line-height: 1.45;
}

.pray-card-arrow-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: var(--p-burgundy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, background 0.2s ease;
}

.pray-card-adoration .pray-card-arrow-btn {
  color: var(--p-navy-dark);
}

.pray-card:hover .pray-card-arrow-btn {
  transform: translateX(4px);
  background: #fff;
}

/* ==========================================================================
   Card 1: Direct Rosary Counter & Submit on Card
   ========================================================================== */
.pray-card-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  cursor: pointer;
  margin-bottom: 6px;
}

.pray-card-title-row h4 {
  margin: 0;
}

.pray-card-direct-log {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.pray-card-stepper {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: var(--p-radius-full);
  padding: 2px 6px;
  backdrop-filter: blur(8px);
}

.pray-card-step-btn {
  background: rgba(255, 255, 255, 0.28);
  border: none;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.15rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1;
}

.pray-card-step-btn:hover {
  background: rgba(255, 255, 255, 0.95);
  color: var(--p-burgundy);
  transform: scale(1.08);
}

.pray-card-step-input {
  width: 44px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 800;
  text-align: center;
  outline: none;
  -moz-appearance: textfield;
}

.pray-card-step-input::-webkit-outer-spin-button,
.pray-card-step-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.pray-card-submit-btn {
  background: linear-gradient(135deg, #F9E7B9, #DFBF7A);
  color: #5C1019;
  border: 1px solid #FFE9A8;
  padding: 8px 18px;
  border-radius: var(--p-radius-full);
  font-family: var(--p-font-sans);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.pray-card-submit-btn:hover {
  background: #FFF;
  color: #8B0000;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

.pray-card-submit-btn:active {
  transform: translateY(0);
}

/* ==========================================================================
   More Ways to Intercede Section (Grid of 6 Cards)
   ========================================================================== */
section[id],
.pray-section-wrap {
  scroll-margin-top: 85px;
}

.pray-section-title-wrap {
  text-align: center;
  margin: 32px 0 20px;
}

.pray-section-kicker {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--p-burgundy);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.pray-section-kicker::before,
.pray-section-kicker::after {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--p-gold);
}

.pray-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 36px;
}

.pray-mini-card {
  background: var(--p-parchment-light);
  border: 1px solid rgba(201, 164, 92, 0.28);
  border-radius: var(--p-radius-sm);
  padding: 14px 8px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: default; /* Entire card is not clickable */
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
  box-shadow: var(--p-shadow-sm);
  min-height: 98px;
  position: relative;
}

.pray-mini-card:hover {
  box-shadow: var(--p-shadow-md);
  border-color: rgba(201, 164, 92, 0.5);
}

.pray-mini-icon {
  font-size: 1.45rem;
  color: var(--p-burgundy);
  transition: transform 0.2s ease;
}

.pray-mini-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--p-navy-dark);
  line-height: 1.2;
}

.pray-mini-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 4px;
}

.pray-mini-count {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--p-gold-dark);
  background: rgba(201, 164, 92, 0.15);
  padding: 2px 7px;
  border-radius: var(--p-radius-full);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.25s ease, color 0.25s ease;
  display: inline-block;
}

.pray-mini-count.bump {
  transform: scale(1.3);
  background: var(--p-gold);
  color: #fff;
}

.pray-mini-add-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--p-sacred-red), var(--p-burgundy));
  color: #fff;
  border: 1.5px solid var(--p-gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(107, 17, 26, 0.4);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  z-index: 2;
}

.pray-mini-add-btn:hover {
  transform: scale(1.22);
  background: #A00000;
  box-shadow: 0 4px 10px rgba(160, 0, 0, 0.5);
}

.pray-mini-add-btn:active,
.btn-press-anim {
  transform: scale(0.88) !important;
}

/* ==========================================================================
   Live Intercession Feed Section
   ========================================================================== */
.pray-live-section {
  background: var(--p-parchment-light);
  border-radius: var(--p-radius-lg);
  border: 1px solid var(--p-border-gold);
  padding: 22px 18px;
  box-shadow: var(--p-shadow-md);
  margin-bottom: 36px;
}

.pray-live-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 10px;
}

.pray-live-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--p-font-serif);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--p-navy-dark);
  margin: 0;
}

.pray-live-title i {
  color: var(--p-sacred-red);
  animation: radarPulse 1.8s infinite;
}

.pray-online-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #2e7d32;
  background: #E8F5E9;
  padding: 4px 12px;
  border-radius: var(--p-radius-full);
  border: 1px solid rgba(46, 125, 50, 0.25);
}

.pray-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2e7d32;
  box-shadow: 0 0 0 0 rgba(46, 125, 50, 0.5);
  animation: liveDotPulse 2s infinite;
}

.pray-ticker-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
  scrollbar-color: var(--p-gold) transparent;
}

.pray-ticker-scroll::-webkit-scrollbar {
  height: 4px;
}

.pray-ticker-scroll::-webkit-scrollbar-thumb {
  background: var(--p-gold);
  border-radius: 4px;
}

.pray-ticker-item {
  flex: 0 0 220px;
  background: #FAF6EF;
  border: 1px solid rgba(201, 164, 92, 0.25);
  border-radius: var(--p-radius-sm);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--p-shadow-sm);
  transition: transform 0.2s ease;
}

.pray-ticker-item:hover {
  transform: translateY(-2px);
  border-color: var(--p-gold);
}

.pray-ticker-badge {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.pray-ticker-badge.rosary-badge {
  background: rgba(107, 17, 26, 0.1);
  color: var(--p-sacred-red);
  border: 1px solid rgba(107, 17, 26, 0.2);
}

.pray-ticker-badge.adoration-badge {
  background: rgba(201, 164, 92, 0.15);
  color: var(--p-gold-dark);
  border: 1px solid var(--p-gold);
}

.pray-ticker-info {
  display: flex;
  flex-direction: column;
}

.pray-ticker-offering {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--p-navy-dark);
  line-height: 1.2;
}

.pray-ticker-person {
  font-size: 0.78rem;
  color: var(--p-text-muted);
}

.pray-ticker-time {
  font-size: 0.72rem;
  color: var(--p-text-light);
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.pray-ticker-just-now {
  color: #27ae60;
  font-weight: 700;
  font-size: 0.72rem;
  background: rgba(39, 174, 96, 0.12);
  padding: 1px 6px;
  border-radius: var(--p-radius-full);
  display: inline-flex;
  align-items: center;
  animation: fadeIn 0.4s ease;
}

/* ==========================================================================
   Prayer Intentions Wall & Submission Form
   ========================================================================== */
.pray-intentions-section {
  margin-bottom: 40px;
}

.pray-intentions-card {
  background: var(--p-parchment-light);
  border-radius: var(--p-radius-lg);
  border: 1px solid var(--p-border-gold);
  padding: 26px 20px;
  box-shadow: var(--p-shadow-md);
}

.pray-intentions-card h3 {
  font-family: var(--p-font-serif);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--p-navy-dark);
  margin: 0 0 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.pray-form-group {
  margin-bottom: 16px;
}

.pray-form-label {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--p-text-main);
  margin-bottom: 6px;
}

.pray-input,
.pray-textarea,
.pray-select {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--p-radius-sm);
  border: 1px solid #D6CEBE;
  background: #FFF;
  font-family: var(--p-font-sans);
  font-size: 0.95rem;
  color: var(--p-text-main);
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.pray-input:focus,
.pray-textarea:focus,
.pray-select:focus {
  outline: none;
  border-color: var(--p-gold);
  box-shadow: 0 0 0 3px rgba(201, 164, 92, 0.2);
}

.pray-checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.pray-checkbox-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--p-burgundy);
  cursor: pointer;
}

.pray-btn-submit {
  width: 100%;
  background: linear-gradient(135deg, var(--p-sacred-red), var(--p-burgundy));
  color: #fff;
  border: 1px solid var(--p-gold);
  padding: 14px 20px;
  border-radius: var(--p-radius-full);
  font-family: var(--p-font-sans);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(107, 17, 26, 0.35);
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.pray-btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(107, 17, 26, 0.5);
  background: linear-gradient(135deg, #A00000, #7B131E);
}

.pray-btn-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* ==========================================================================
   Scripture Banner (Cleaned backdrop without baked-in text)
   ========================================================================== */
.pray-scripture-banner {
  position: relative;
  border-radius: var(--p-radius-lg);
  overflow: hidden;
  margin-bottom: 30px;
  min-height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 26px 20px;
  background-image: url('../assets/clean_scripture_banner.jpg');
  background-size: cover;
  background-position: center;
  border: 1px solid var(--p-border-gold);
  box-shadow: var(--p-shadow-md);
}

.pray-scripture-overlay {
  position: absolute;
  inset: 0;
  background: rgba(13, 26, 41, 0.45);
}

.pray-scripture-content {
  position: relative;
  z-index: 5;
  color: #fff;
  max-width: 650px;
}

.pray-scripture-quote {
  font-family: var(--p-font-serif);
  font-size: 1.6rem;
  font-style: italic;
  font-weight: 600;
  line-height: 1.35;
  margin: 0 0 6px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.pray-scripture-ref {
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--p-gold-light);
  font-weight: 700;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

/* Footer Section */
.pray-footer {
  background: var(--p-navy-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 36px 0 28px;
  border-top: 1px solid var(--p-border-gold);
  font-size: 0.85rem;
  text-align: center;
}

.pray-footer a {
  color: var(--p-gold-light);
  text-decoration: none;
  transition: color 0.2s;
}

.pray-footer a:hover {
  color: #fff;
}

/* ==========================================================================
   Modals: Interactive Rosary & Adoration Chapel
   ========================================================================== */
.pray-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(10, 20, 30, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.pray-modal.active {
  display: flex;
  opacity: 1;
}

.pray-modal-box {
  background: var(--p-parchment-light);
  border-radius: var(--p-radius-lg);
  border: 1px solid var(--p-border-gold);
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
  position: relative;
  display: flex;
  flex-direction: column;
  animation: modalSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.pray-modal-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--p-border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--p-parchment-card);
  position: sticky;
  top: 0;
  z-index: 10;
}

.pray-modal-title {
  font-family: var(--p-font-serif);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--p-navy-dark);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.pray-modal-close {
  background: transparent;
  border: none;
  font-size: 1.4rem;
  color: var(--p-text-muted);
  cursor: pointer;
  padding: 4px;
  transition: color 0.2s;
}

.pray-modal-close:hover {
  color: var(--p-sacred-red);
}

.pray-modal-body {
  padding: 24px;
  flex: 1;
}

/* ==========================================================================
   Interactive Rosary Specifics (Round 10-Beads & Refactored Decade Alignment)
   ========================================================================== */

/* --- Round 10-Bead Rosary Widget --- */
.rosary-round-container {
  background: linear-gradient(180deg, #FDFBF7 0%, #F5EFE1 100%);
  border: 1px solid var(--p-border-gold);
  border-radius: var(--p-radius-lg);
  padding: 14px 12px 16px;
  box-shadow: 0 4px 16px rgba(107, 17, 26, 0.06);
  margin-bottom: 14px;
  position: relative;
  overflow: hidden;
}

.rosary-round-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  gap: 8px;
  flex-wrap: wrap;
}

.rosary-round-decade-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #FFF;
  border: 1px solid var(--p-border-gold);
  border-radius: var(--p-radius-full);
  padding: 4px 10px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: var(--p-burgundy);
  box-shadow: var(--p-shadow-sm);
  max-width: 160px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rosary-round-finish-btn {
  background: var(--p-parchment);
  border: 1px solid var(--p-border-gold);
  border-radius: var(--p-radius-full);
  padding: 4px 12px;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--p-navy-dark);
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.rosary-round-finish-btn:hover {
  background: var(--p-sacred-red);
  color: #fff;
  border-color: var(--p-gold);
  box-shadow: 0 2px 8px rgba(139, 0, 0, 0.3);
}

/* Round Rosary Stage & Ring */
.rosary-round-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 4px 0 2px;
  width: 100%;
}

/* Our Father Bead at Top */
.rosary-of-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  cursor: pointer;
  margin-bottom: 6px;
  z-index: 4;
  transition: transform 0.2s ease;
}

.rosary-of-node:hover {
  transform: translateY(-2px);
}

.rosary-of-bead {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #DFBF7A, #B38636);
  border: 2px solid #FFF;
  color: #FFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  box-shadow: 0 0 0 2px rgba(201, 164, 92, 0.4), 0 3px 8px rgba(0, 0, 0, 0.18);
  transition: all 0.25s ease;
}

.rosary-of-node.active .rosary-of-bead {
  background: linear-gradient(135deg, #FFE49E, #D4A034);
  box-shadow: 0 0 0 3px #FFF, 0 0 16px #DFBF7A, 0 0 24px rgba(223, 191, 122, 0.7);
  animation: beadPulseGlow 1.2s infinite alternate ease-in-out;
}

.rosary-of-node.completed .rosary-of-bead {
  background: var(--p-sacred-red);
  box-shadow: 0 0 0 2px #FFE49E, 0 0 10px rgba(139, 0, 0, 0.5);
}

.rosary-of-text {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--p-gold-dark);
}

/* Circular 10-Bead Ring */
.rosary-round-ring {
  width: 236px;
  height: 236px;
  border-radius: 50%;
  border: 2px dashed rgba(201, 164, 92, 0.45);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 18px rgba(201, 164, 92, 0.08);
  margin: 0 auto;
}

/* 10 Circular Beads positioned radially */
.rosary-ring-bead {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 24px;
  height: 24px;
  margin-left: -12px;
  margin-top: -12px;
  border-radius: 50%;
  background: #E2DAC8;
  border: 2px solid #FFF;
  color: #63523C;
  font-size: 0.68rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
  transition: all 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform: rotate(var(--bead-angle)) translateY(-106px) rotate(calc(-1 * var(--bead-angle)));
  user-select: none;
}

.rosary-ring-bead:hover {
  background: #FFF;
  border-color: var(--p-gold);
  transform: rotate(var(--bead-angle)) translateY(-106px) rotate(calc(-1 * var(--bead-angle))) scale(1.15);
}

.rosary-ring-bead.active {
  background: linear-gradient(135deg, #FFE6A3, #DFBF7A);
  color: #5C1019;
  border-color: #FFF;
  box-shadow: 0 0 0 3px #FFF, 0 0 14px #DFBF7A, 0 0 20px rgba(223, 191, 122, 0.85);
  transform: rotate(var(--bead-angle)) translateY(-106px) rotate(calc(-1 * var(--bead-angle))) scale(1.22);
  z-index: 5;
  animation: beadPulseGlow 1.2s infinite alternate ease-in-out;
}

.rosary-ring-bead.completed {
  background: linear-gradient(135deg, var(--p-sacred-red), var(--p-burgundy));
  color: #FFF;
  border-color: #FFDF85;
  box-shadow: 0 0 6px rgba(139, 0, 0, 0.5);
}

@keyframes beadPulseGlow {
  0% {
    box-shadow: 0 0 0 2px #FFF, 0 0 8px #DFBF7A;
  }
  100% {
    box-shadow: 0 0 0 3px #FFF, 0 0 18px #FFD700, 0 0 26px rgba(255, 215, 0, 0.7);
  }
}

/* Center Interactive Hub (Strictly bounded so text NEVER overflows) */
.rosary-round-hub {
  width: 124px;
  height: 124px;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(145deg, #FFFFFF, #FAF4E8);
  border: 2px solid var(--p-gold);
  box-shadow: 0 4px 16px rgba(107, 17, 26, 0.12), inset 0 0 10px rgba(201, 164, 92, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-align: center;
  padding: 8px 6px;
  box-sizing: border-box;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  z-index: 3;
}

.rosary-round-hub:hover {
  transform: translate(-50%, -50%) scale(1.03);
  box-shadow: 0 6px 20px rgba(201, 164, 92, 0.35);
}

.rosary-round-hub:active {
  transform: translate(-50%, -50%) scale(0.96);
}

.rosary-hub-icon {
  font-size: 1.15rem;
  color: var(--p-burgundy);
  margin-bottom: 2px;
  line-height: 1;
}

.rosary-round-hub:hover .rosary-hub-icon {
  transform: scale(1.12);
}

.rosary-hub-prayer {
  font-family: var(--p-font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--p-navy-dark);
  line-height: 1.15;
  margin-bottom: 2px;
  max-width: 108px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rosary-hub-count {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--p-gold-dark);
  letter-spacing: 0.3px;
  line-height: 1.1;
  max-width: 108px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rosary-hub-hint {
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--p-text-muted);
  margin-top: 3px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 3px;
}

/* --- Refactored Decade Bead Alignment (Clean CSS Flexbox Layout & Mobile Spacing) --- */
.rosary-decade-flow-container {
  background: #F7F3E9;
  border: 1px solid var(--p-border-gold);
  border-radius: var(--p-radius-md);
  padding: 8px 10px;
  margin-bottom: 14px;
  max-height: 140px;
  overflow-y: auto;
  scrollbar-width: thin;
}

.rosary-bead-chain {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

.rosary-decade-group {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(201, 164, 92, 0.35);
  border-radius: var(--p-radius-full);
  padding: 3px 8px;
  gap: 6px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
  overflow-x: auto;
  scrollbar-width: none;
}

.rosary-decade-group::-webkit-scrollbar {
  display: none;
}

.rosary-decade-group.current-decade {
  background: #FFFFFF;
  border-color: var(--p-gold);
  box-shadow: 0 2px 8px rgba(201, 164, 92, 0.25);
}

.rosary-decade-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--p-burgundy);
  white-space: nowrap;
  min-width: 56px;
  flex-shrink: 0;
}

/* Distinct Individual Our Father Bead */
.rosary-decade-of-bead {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, #DFBF7A, #B38636);
  border: 1.5px solid #FFF;
  color: #FFF;
  font-size: 0.55rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
}

.rosary-decade-of-bead.active {
  box-shadow: 0 0 0 2px #FFF, 0 0 8px #DFBF7A;
  transform: scale(1.15);
}

.rosary-decade-of-bead.completed {
  background: var(--p-sacred-red);
}

.rosary-decade-divider {
  width: 1px;
  height: 12px;
  background: rgba(201, 164, 92, 0.45);
  margin: 0 1px;
  flex-shrink: 0;
}

/* 10 Hail Mary Beads cluster */
.rosary-decade-hail-marys {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.rosary-decade-bead {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #D8CEBB;
  border: 1px solid rgba(255, 255, 255, 0.85);
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.rosary-decade-bead:hover {
  background: #FFF;
  transform: scale(1.18);
}

.rosary-decade-bead.active {
  background: var(--p-gold);
  border-color: #FFF;
  box-shadow: 0 0 0 2px #FFF, 0 0 8px var(--p-gold);
  transform: scale(1.22);
  z-index: 2;
}

.rosary-decade-bead.completed {
  background: var(--p-sacred-red);
  box-shadow: 0 0 3px rgba(139, 0, 0, 0.4);
}

/* Controls */
.rosary-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.rosary-btn-nav {
  background: var(--p-parchment-card);
  border: 1px solid var(--p-border-gold);
  color: var(--p-navy-dark);
  padding: 10px 18px;
  border-radius: var(--p-radius-full);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.rosary-btn-nav:hover {
  background: var(--p-gold);
  color: #fff;
}

.rosary-btn-next {
  background: linear-gradient(135deg, var(--p-sacred-red), var(--p-burgundy));
  color: #fff;
  border: 1px solid var(--p-gold);
  box-shadow: 0 4px 12px rgba(107, 17, 26, 0.3);
}

.rosary-btn-next:hover {
  background: linear-gradient(135deg, #A00000, #7B131E);
}

/* Audio chime toggle */
.rosary-audio-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--p-text-muted);
  cursor: pointer;
}

/* ==========================================================================
   Animations for Submissions & Interactivity
   ========================================================================== */
.pray-floating-badge {
  position: fixed;
  pointer-events: none;
  z-index: 999999;
  font-family: var(--p-font-sans);
  font-weight: 800;
  font-size: 1.15rem;
  color: #FFD700;
  background: rgba(107, 17, 26, 0.92);
  border: 1px solid #FFD700;
  border-radius: var(--p-radius-full);
  padding: 4px 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4), 0 0 12px rgba(255, 215, 0, 0.8);
  transform: translate(-50%, -50%);
  animation: floatUpFade 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes floatUpFade {
  0% {
    opacity: 0;
    transform: translate(-50%, 0) scale(0.6);
  }
  20% {
    opacity: 1;
    transform: translate(-50%, -20px) scale(1.15);
  }
  75% {
    opacity: 0.95;
    transform: translate(-50%, -60px) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -90px) scale(0.85);
  }
}

.pray-confetti-particle {
  position: fixed;
  pointer-events: none;
  z-index: 999999;
  border-radius: 50%;
  animation: confettiDrop linear forwards;
}

@keyframes confettiDrop {
  0% {
    opacity: 1;
    transform: translateY(0) rotate(0deg) scale(1);
  }
  85% {
    opacity: 0.9;
  }
  100% {
    opacity: 0;
    transform: translateY(90vh) rotate(720deg) scale(0.3);
  }
}

@keyframes countBumpGlow {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(1.25);
    color: #D4A747;
    text-shadow: 0 0 14px rgba(212, 167, 71, 0.9);
  }
  100% {
    transform: scale(1);
  }
}

.bump {
  animation: countBumpGlow 0.5s ease-out !important;
  display: inline-block;
}

@keyframes submissionFlash {
  0% {
    background-color: rgba(212, 167, 71, 0.35);
    transform: scale(1.02);
  }
  100% {
    background-color: var(--p-parchment-card);
    transform: scale(1);
  }
}

/* ==========================================================================
   Virtual Adoration Chapel Visual & Interactive Candle
   ========================================================================== */
.chapel-scene-box {
  background: linear-gradient(180deg, #09121c 0%, #17283A 60%, #2a1f1b 100%);
  border-radius: var(--p-radius-md);
  padding: 30px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--p-border-gold);
  margin-bottom: 20px;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.6);
}

.chapel-monstrance {
  width: 140px;
  height: 140px;
  margin: 0 auto 16px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chapel-host-glow {
  position: absolute;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0%, rgba(255, 230, 160, 0.8) 40%, rgba(201, 164, 92, 0.3) 70%, transparent 100%);
  box-shadow: 0 0 35px #FFD700;
  animation: hostPulse 3.5s ease-in-out infinite;
}

.chapel-altar {
  position: relative;
  margin-top: 10px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 24px;
}

/* Candle with realistic flame flicker */
.chapel-candle {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
}

.candle-flame {
  width: 10px;
  height: 18px;
  border-radius: 50% 50% 35% 35%;
  background: linear-gradient(to top, #FF7700 0%, #FFCC00 60%, #FFFFFF 100%);
  box-shadow: 0 0 10px #FF9900, 0 0 20px rgba(255, 153, 0, 0.4);
  animation: candleFlicker 1.5s ease-in-out infinite alternate;
  transform-origin: 50% 90%;
}

.candle-wax {
  width: 14px;
  height: 48px;
  background: linear-gradient(to right, #FAF0D7, #FFF, #E8DEC0);
  border-radius: 3px 3px 0 0;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

/* Tabs inside Adoration Modal */
.chapel-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--p-border-subtle);
  padding-bottom: 8px;
}

.chapel-tab-btn {
  background: transparent;
  border: none;
  font-family: var(--p-font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--p-text-muted);
  cursor: pointer;
  padding: 6px 14px;
  position: relative;
  transition: color 0.2s;
}

.chapel-tab-btn.active {
  color: var(--p-burgundy);
}

.chapel-tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -9px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--p-burgundy);
  border-radius: 2px;
}

/* ==========================================================================
   Micro-animations & Keyframes
   ========================================================================== */
@keyframes candleFlicker {
  0% { transform: scale(1) rotate(-1deg); opacity: 0.95; }
  25% { transform: scale(1.05, 0.95) rotate(1deg); opacity: 1; }
  50% { transform: scale(0.95, 1.05) rotate(-2deg); opacity: 0.9; }
  75% { transform: scale(1.03, 0.97) rotate(1.5deg); opacity: 1; }
  100% { transform: scale(0.98, 1.02) rotate(-0.5deg); opacity: 0.96; }
}

@keyframes hostPulse {
  0%, 100% { transform: scale(1); filter: brightness(1); }
  50% { transform: scale(1.08); filter: brightness(1.25); }
}

@keyframes shineProgress {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(200%); }
}

@keyframes radarPulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.8; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes liveDotPulse {
  0% { box-shadow: 0 0 0 0 rgba(46, 125, 50, 0.6); }
  70% { box-shadow: 0 0 0 8px rgba(46, 125, 50, 0); }
  100% { box-shadow: 0 0 0 0 rgba(46, 125, 50, 0); }
}

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

/* Toast Blessing Notification */
.pray-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2500;
  background: var(--p-parchment-light);
  border: 1px solid var(--p-gold);
  border-radius: var(--p-radius-md);
  padding: 16px 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--p-navy-dark);
  font-weight: 600;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.pray-toast.active {
  transform: translateY(0);
  opacity: 1;
}

.pray-toast i {
  color: var(--p-gold);
  font-size: 1.3rem;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Rosary Mode Tabs */
.rosary-mode-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--p-border-subtle);
  padding-bottom: 12px;
}

.rosary-mode-btn {
  background: var(--p-parchment-card);
  border: 1px solid var(--p-border-gold);
  border-radius: var(--p-radius-full);
  padding: 8px 18px;
  font-family: var(--p-font-sans);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--p-text-muted);
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.rosary-mode-btn:hover {
  background: var(--p-gold);
  color: #fff;
}

.rosary-mode-btn.active {
  background: linear-gradient(135deg, var(--p-sacred-red), var(--p-burgundy));
  color: #fff;
  border-color: var(--p-gold);
  box-shadow: 0 4px 12px rgba(107, 17, 26, 0.35);
}

.rosary-stepper-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.rosary-preset-btn {
  background: var(--p-parchment);
  border: 1px solid var(--p-border-gold);
  border-radius: var(--p-radius-sm);
  padding: 8px 14px;
  font-weight: 700;
  color: var(--p-burgundy);
  cursor: pointer;
  transition: all 0.2s ease;
}

.rosary-preset-btn:hover,
.rosary-preset-btn.active {
  background: var(--p-burgundy);
  color: #fff;
}

/* ==========================================================================
   Responsive Scaling (320px to Desktop)
   ========================================================================== */
@media (max-width: 900px) {
  /* 1) In mobile view, countdown and registration button are not necessary */
  .nav-countdown-wrapper {
    display: none !important;
  }
  .navbar .nav-right,
  .navbar .btn-nav {
    display: none !important;
  }
  .nav-container {
    padding: 12px 14px !important;
    flex-direction: column !important;
    gap: 8px !important;
  }
  .nav-links {
    gap: 14px !important;
    font-size: 0.9rem !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
  }
  .logo-text {
    display: flex !important;
  }
  .logo-text strong {
    font-size: 0.95rem !important;
  }
  .logo-text span {
    font-size: 0.65rem !important;
  }
  .pray-hero {
    padding-top: 135px !important; /* Compact header clearance */
    min-height: 420px;
  }
  .pray-hero-content {
    text-align: center;
    max-width: 100%;
  }
  .pray-hero-subtitle {
    margin: 0 auto 20px;
  }
  .pray-hero-title {
    font-size: 2.5rem;
  }
  .pray-card-content {
    max-width: 60%;
  }
}

@media (min-width: 600px) {
  .pray-goals-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
  .pray-action-cards {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .pray-mini-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

@media (min-width: 860px) {
  .pray-hero {
    min-height: 520px;
    padding: 150px 0 60px;
  }
  .pray-hero-title {
    font-size: 3.6rem;
  }
  .pray-goals-card {
    padding: 32px 36px;
    margin-top: -45px;
  }
  .pray-card {
    min-height: 195px;
    padding: 28px;
  }
  .pray-card h4 {
    font-size: 1.9rem;
  }
}

/* --- Mobile Specific Optimization (iPhone / 320px to 480px Viewports) --- */
@media (max-width: 480px) {
  .pray-modal-box {
    width: 95vw !important;
    max-height: 92vh !important;
    margin: 8px auto !important;
    border-radius: 16px !important;
  }
  .pray-modal-header {
    padding: 14px 16px !important;
  }
  .pray-modal-title {
    font-size: 1.15rem !important;
  }
  .pray-modal-body {
    padding: 14px 10px !important;
  }
  .rosary-mode-tabs {
    gap: 6px !important;
    margin-bottom: 12px !important;
  }
  .rosary-mode-btn {
    padding: 6px 12px !important;
    font-size: 0.8rem !important;
  }
  .rosary-round-container {
    padding: 10px 8px 12px !important;
    margin-bottom: 10px !important;
  }
  .rosary-round-top-bar {
    margin-bottom: 8px !important;
  }
  .rosary-round-decade-badge {
    font-size: 0.72rem !important;
    padding: 3px 8px !important;
    max-width: 140px !important;
  }
  .rosary-round-finish-btn {
    font-size: 0.72rem !important;
    padding: 3px 9px !important;
  }
  .rosary-round-ring {
    width: 218px !important;
    height: 218px !important;
  }
  .rosary-ring-bead {
    width: 22px !important;
    height: 22px !important;
    margin-left: -11px !important;
    margin-top: -11px !important;
    transform: rotate(var(--bead-angle)) translateY(-96px) rotate(calc(-1 * var(--bead-angle))) !important;
    font-size: 0.65rem !important;
  }
  .rosary-ring-bead:hover {
    transform: rotate(var(--bead-angle)) translateY(-96px) rotate(calc(-1 * var(--bead-angle))) scale(1.12) !important;
  }
  .rosary-ring-bead.active {
    transform: rotate(var(--bead-angle)) translateY(-96px) rotate(calc(-1 * var(--bead-angle))) scale(1.18) !important;
  }
  .rosary-round-hub {
    width: 114px !important;
    height: 114px !important;
    padding: 6px 4px !important;
  }
  .rosary-hub-icon {
    font-size: 1rem !important;
    margin-bottom: 1px !important;
  }
  .rosary-hub-prayer {
    font-size: 0.95rem !important;
    max-width: 96px !important;
  }
  .rosary-hub-count {
    font-size: 0.65rem !important;
    max-width: 96px !important;
  }
  .rosary-hub-hint {
    font-size: 0.55rem !important;
  }
  .rosary-decade-flow-container {
    max-height: 115px !important;
    padding: 6px 6px !important;
    margin-bottom: 10px !important;
  }
  .rosary-decade-group {
    padding: 2px 6px !important;
    gap: 4px !important;
  }
  .rosary-decade-label {
    font-size: 0.65rem !important;
    min-width: 48px !important;
  }
  .rosary-decade-of-bead {
    width: 16px !important;
    height: 16px !important;
    font-size: 0.52rem !important;
  }
  .rosary-decade-bead {
    width: 11px !important;
    height: 11px !important;
  }
  .rosary-decade-hail-marys {
    gap: 3px !important;
  }
  .rosary-controls {
    gap: 6px !important;
  }
  .rosary-btn-nav {
    padding: 8px 12px !important;
    font-size: 0.8rem !important;
  }
  .pray-goal-top {
    gap: 10px !important;
  }
  .pray-goal-icon-wrap {
    width: 44px !important;
    height: 44px !important;
  }
  .pray-goal-title-group h3 {
    font-size: 1.8rem !important;
  }
  .pray-goal-title-group p {
    font-size: 0.85rem !important;
  }
  .pray-goal-quick-btn {
    padding: 5px 10px !important;
    font-size: 0.78rem !important;
  }
}
