/* Bethany Events Plugin Styles */

:root {
  --be-navy: #1B3F8B;
  --be-navy-dark: #132e6a;
  --be-olive: #5A7A3A;
  --be-olive-light: #7a9e52;
  --be-cream: #F5F2EA;
  --be-warm-white: #FDFCF9;
  --be-charcoal: #3D3D3D;
  --be-text-light: #6B6B6B;
}

/* ============ EVENTS LIST (Shortcode) ============ */
.bethany-events-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  max-width: 860px;
  margin: 0 auto;
}

.bethany-event-card {
  display: flex;
  background: var(--be-warm-white);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: var(--be-charcoal);
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}

.bethany-event-card:active {
  transform: scale(0.98);
}

/* ── Happening Now — live pulse state ── */
.bethany-event-card.event-live {
  border-color: #C9A84C;
  box-shadow: 0 0 0 3px rgba(201,168,76,0.3);
  animation: bethany-event-live-pulse 2.5s ease-in-out infinite;
}
@keyframes bethany-event-live-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(201,168,76,0.3); }
  50%       { box-shadow: 0 0 0 9px rgba(201,168,76,0.06); }
}

.bethany-event-live-badge {
  display: none;
  position: absolute;
  top: 8px;
  left: 8px;
  align-items: center;
  gap: 5px;
  background: #C9A84C;
  color: white;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 9px 4px 7px;
  border-radius: 100px;
  z-index: 11;
}
.bethany-event-card.event-live .bethany-event-live-badge {
  display: inline-flex;
}
.bethany-event-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: white;
  animation: bethany-event-live-dot-blink 1.4s ease-in-out infinite;
}
@keyframes bethany-event-live-dot-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.35; }
}

.bethany-event-card-image {
  flex: 0 0 120px;
  min-height: 90px;
  background-color: var(--be-cream);
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
  position: relative;
  overflow: hidden;
}

.bethany-event-card-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--be-navy);
  opacity: 0.3;
}

.bethany-event-card-placeholder svg {
  width: 36px;
  height: 36px;
}

.bethany-event-card-placeholder {
  width: 40px;
  height: 40px;
  color: var(--be-navy);
  opacity: 0.4;
}

.bethany-event-card-placeholder svg {
  width: 100%;
  height: 100%;
}

.bethany-event-card-details {
  flex: 1;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.bethany-event-card-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--be-navy);
  margin: 0 0 6px;
  line-height: 1.25;
}

.bethany-event-reg-badge {
  display: inline-block;
  background: #C9A84C;
  color: white;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 100px;
  margin-bottom: 8px;
}
.bethany-event-reg-badge.is-full {
  background: #ddd;
  color: #777;
}

.bethany-event-card-meta {
  font-size: 13px;
  color: var(--be-text-light);
  margin: 0 0 4px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
}

.bethany-event-card-location {
  font-size: 12px;
  color: var(--be-olive);
  margin: 0;
  font-weight: 600;
}

.bethany-events-empty {
  text-align: center;
  color: var(--be-text-light);
  padding: 32px 16px;
}

/* ============ SINGLE EVENT PAGE ============ */
.bethany-single-event {
  max-width: 100%;
  margin: 0 auto;
  background: var(--be-cream);
  min-height: 100vh;
  padding-top: 64px; /* clear the fixed nav */
}

.bethany-event-hero {
  position: relative;
  width: 100%;
  height: 320px;
  overflow: hidden;
  background: var(--be-navy);
}

.bethany-event-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  filter: blur(16px);
  transform: scale(1.15); /* hides the soft/light edges that blur() creates */
}

.bethany-event-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(27, 63, 139, 0.35);
}

.bethany-event-hero-date {
  position: absolute;
  bottom: 0;
  right: 0;
  background: rgba(0,0,0,0.6);
  padding: 8px 16px 10px;
  text-align: center;
  min-width: 64px;
  z-index: 10;
  border-radius: 10px 0 0 0;
}
.bethany-event-hero-date .hero-date-month {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffffff;
  line-height: 1;
  margin-bottom: 3px;
}
.bethany-event-hero-date .hero-date-day {
  display: block;
  font-size: 44px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
}

.bethany-event-container {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 20px 64px;
}

.bethany-event-header {
  margin-bottom: 24px;
}

.bethany-event-label {
  font-size: 12px;
  color: var(--be-olive);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.bethany-event-label.is-live {
  color: #C9A84C;
}
.bethany-event-label-dot {
  display: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #C9A84C;
  animation: bethany-event-live-dot-blink 1.4s ease-in-out infinite;
}
.bethany-event-label.is-live .bethany-event-label-dot {
  display: inline-block;
}

.bethany-event-hero.event-live {
  box-shadow: inset 0 0 0 4px #C9A84C;
}

.bethany-event-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--be-navy);
  margin: 0 0 20px;
  line-height: 1.15;
}

.bethany-event-meta-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  background: var(--be-warm-white);
  border-radius: 10px;
}

.bethany-event-meta-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: var(--be-charcoal);
}

.bethany-event-meta-item svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--be-olive);
}

/* Actions */
.bethany-event-actions {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0;
}

.bethany-interested-btn,
.bethany-calendar-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  text-decoration: none;
  font-family: inherit;
  flex: 1;
}

.bethany-interested-btn {
  background: var(--be-navy);
  color: white;
}

.bethany-interested-btn:active {
  background: var(--be-navy-dark);
}

.bethany-interested-btn.is-interested {
  background: var(--be-olive);
  color: white;
}

.bethany-interested-btn.is-interested .bethany-star-icon {
  fill: white;
  stroke: white;
}

.bethany-interested-btn svg {
  width: 20px;
  height: 20px;
}

/* ── Registration ── */
.bethany-registration-box {
  background: var(--be-cream);
  border: 1.5px solid #C9A84C;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
  text-align: center;
}

.bethany-register-btn {
  display: block;
  width: 100%;
  padding: 15px;
  background: #C9A84C;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}
.bethany-register-btn:active { background: #b8933a; }

.bethany-registration-spots {
  font-size: 13px;
  font-weight: 600;
  color: #8a6800;
  margin: 10px 0 0;
}

.bethany-registration-full {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #888;
  margin: 0;
}
.bethany-registration-full svg { width: 18px; height: 18px; }

.bethany-reg-guest-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--be-charcoal);
  margin: 12px 0 6px;
  text-align: left;
}

#bethanyRegName,
#bethanyRegEmail,
#bethanyRegPhone,
#bethanyRegGuests,
#bethanyRegNotes {
  width: 100%;
  border: 1.5px solid rgba(0,0,0,0.12);
  border-radius: 8px;
  padding: 11px 14px;
  font-size: 14px;
  font-family: inherit;
  margin-bottom: 10px;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.2s;
}
#bethanyRegName:focus,
#bethanyRegEmail:focus,
#bethanyRegPhone:focus,
#bethanyRegGuests:focus,
#bethanyRegNotes:focus {
  border-color: var(--be-navy);
}
#bethanyRegNotes { resize: vertical; }

.bethany-reg-error {
  color: #c0392b;
  font-size: 13px;
  margin: 4px 0 10px;
}

.bethany-calendar-btn {
  background: var(--be-warm-white);
  color: var(--be-navy);
  border: 1.5px solid var(--be-navy);
}

.bethany-calendar-btn:active {
  background: var(--be-navy);
  color: white;
}

.bethany-calendar-btn svg {
  width: 20px;
  height: 20px;
}

/* Content */
.bethany-event-content {
  font-size: 16px;
  line-height: 1.7;
  color: var(--be-charcoal);
  margin: 32px 0;
}

.bethany-event-content p {
  margin: 0 0 16px;
}

/* Location block */
.bethany-event-location-block {
  background: var(--be-warm-white);
  border-radius: 10px;
  padding: 20px;
  margin: 24px 0;
}

.bethany-event-location-block h3 {
  margin: 0 0 8px;
  font-size: 14px;
  color: var(--be-olive);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.bethany-event-address {
  margin: 0 0 12px;
  color: var(--be-charcoal);
  font-size: 15px;
  line-height: 1.5;
}

.bethany-directions-link {
  color: var(--be-navy);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
}

.bethany-directions-link:active {
  color: var(--be-navy-dark);
}

/* Share */
.bethany-event-share {
  margin: 32px 0;
}

.bethany-event-share h3 {
  margin: 0 0 12px;
  font-size: 14px;
  color: var(--be-olive);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.bethany-share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.bethany-share-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--be-warm-white);
  color: var(--be-navy);
  border: 1px solid rgba(27, 63, 139, 0.2);
  border-radius: 6px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s;
}

.bethany-share-btn svg {
  width: 16px;
  height: 16px;
}

.bethany-share-btn:active {
  background: var(--be-navy);
  color: white;
}

.bethany-share-btn.copied {
  background: var(--be-olive);
  color: white;
  border-color: var(--be-olive);
}

/* Modal */
.bethany-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.bethany-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(19, 46, 106, 0.8);
}

.bethany-modal-content {
  position: relative;
  background: var(--be-warm-white);
  border-radius: 12px;
  padding: 32px 24px;
  max-width: 400px;
  width: 100%;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.bethany-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  font-size: 28px;
  color: var(--be-text-light);
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.bethany-modal-close:active {
  background: var(--be-cream);
}

.bethany-modal h3 {
  margin: 0 0 8px;
  color: var(--be-navy);
  font-size: 22px;
}

.bethany-modal p {
  margin: 0 0 20px;
  color: var(--be-text-light);
  font-size: 14px;
  line-height: 1.5;
}

.bethany-modal input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 6px;
  font-size: 15px;
  margin-bottom: 10px;
  font-family: inherit;
  box-sizing: border-box;
}

.bethany-modal input:focus {
  outline: none;
  border-color: var(--be-navy);
}

.bethany-modal-btn {
  display: block;
  width: 100%;
  padding: 14px 20px;
  background: var(--be-navy);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 8px;
  text-decoration: none;
  text-align: center;
  font-family: inherit;
  box-sizing: border-box;
}

.bethany-modal-btn:active {
  background: var(--be-navy-dark);
}

.bethany-modal-link {
  display: block;
  width: 100%;
  background: none;
  border: none;
  color: var(--be-text-light);
  font-size: 13px;
  text-align: center;
  padding: 12px;
  cursor: pointer;
  margin-top: 4px;
  text-decoration: underline;
  font-family: inherit;
}

/* ============ Desktop ============ */
@media (min-width: 768px) {
  .bethany-events-list {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .bethany-event-card-image {
    flex: 0 0 140px;
  }

  .bethany-event-card-title {
    font-size: 20px;
  }

  .bethany-event-title {
    font-size: 42px;
  }

  .bethany-event-meta-row {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 24px;
  }

  .bethany-event-hero {
    height: 400px;
  }
}

/* Repeat indicator */
.bethany-event-repeat {
  font-size: 11px;
  color: var(--be-olive);
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* ============ DATE BADGE OVERLAY ============ */
.bethany-event-date-badge {
  position: absolute;
  bottom: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.58);
  border-radius: 6px 0 0 0;
  padding: 6px 10px 7px;
  text-align: center;
  min-width: 44px;
  line-height: 1;
  z-index: 2;
}

.be-date-month {
  display: block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
}

.be-date-day {
  display: block;
  font-size: 24px;
  font-weight: 700;
  color: white;
  line-height: 1.1;
}

/* ============ SHARE BUTTON (action row) ============ */
.bethany-share-trigger-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  border: 1.5px solid var(--be-navy);
  background: var(--be-warm-white);
  color: var(--be-navy);
  transition: all 0.2s;
  font-family: inherit;
  flex: 0 0 auto;
  width: 52px;
}

.bethany-share-trigger-btn .bethany-share-label {
  display: none;
}

.bethany-share-trigger-btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.bethany-share-trigger-btn:active {
  background: var(--be-navy);
  color: white;
}

/* ============ SHARE POPUP MODAL ============ */
.bethany-event-share-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.bethany-share-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.bethany-share-modal-sheet {
  position: relative;
  background: white;
  border-radius: 16px 16px 0 0;
  padding: 12px 24px 40px;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.15);
}

.bethany-share-modal-handle {
  width: 36px;
  height: 4px;
  background: #e0e0e0;
  border-radius: 2px;
  margin: 0 auto 20px;
}

.bethany-share-modal-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-align: center;
  color: #888;
  margin: 0 0 24px;
  text-transform: uppercase;
}

.bethany-share-circle-row {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-bottom: 28px;
}

.bethany-share-circle {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  color: #333;
}

.bethany-share-circle--facebook span:first-child,
.bethany-share-circle--x span:first-child {
  display: none; /* hide the SVG wrapper span */
}

.bethany-share-circle svg {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  padding: 14px;
  box-sizing: border-box;
}

.bethany-share-circle--facebook svg {
  background: #1877F2;
}

.bethany-share-circle--x svg {
  background: #000;
}

.bethany-share-link-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #888;
  text-transform: uppercase;
  margin: 0 0 8px;
}

.bethany-share-link-field {
  display: flex;
  gap: 8px;
  align-items: center;
  background: #f5f5f5;
  border-radius: 8px;
  padding: 4px 4px 4px 12px;
}

.bethany-share-link-input {
  flex: 1;
  background: transparent;
  border: none;
  font-size: 13px;
  color: #555;
  outline: none;
  min-width: 0;
  font-family: inherit;
}

.bethany-share-link-copy {
  background: #1877F2;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  flex-shrink: 0;
  transition: background 0.2s;
}

.bethany-share-link-copy.copied {
  background: var(--be-olive);
}

@media (min-width: 768px) {
  .bethany-event-actions {
    flex-wrap: nowrap;
  }
  .bethany-share-trigger-btn {
    flex: 1;
    width: auto;
    padding: 14px 20px;
  }
  .bethany-share-trigger-btn .bethany-share-label {
    display: inline;
  }
}

/* ============================================================
   SERMON NOTES
   ============================================================ */
.bethany-sermon-notes {
  margin: 32px 0 0;
  padding: 24px 20px;
  background: var(--be-warm-white);
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.06);
}

.bsn-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 18px;
}

.bsn-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--be-olive);
  margin: 0 0 3px;
}

.bsn-title {
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: 22px;
  font-weight: 400;
  color: var(--be-navy);
  margin: 0;
  line-height: 1.2;
}

.bsn-autosave {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: #aaa;
  flex-shrink: 0;
  margin-top: 6px;
}

.bsn-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4CAF50;
  flex-shrink: 0;
}

.bsn-field-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #999;
  margin-bottom: 7px;
}

.bsn-textarea {
  width: 100%;
  border: 1.5px solid rgba(0,0,0,0.1);
  border-radius: 8px;
  padding: 12px 14px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  line-height: 1.65;
  color: #333;
  background: white;
  resize: vertical;
  min-height: 130px;
  outline: none;
  transition: border-color 0.2s;
  margin-bottom: 16px;
  box-sizing: border-box;
}

.bsn-textarea:focus { border-color: var(--be-navy); }

.bsn-input {
  width: 100%;
  border: 1.5px solid rgba(0,0,0,0.1);
  border-radius: 8px;
  padding: 11px 14px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #333;
  background: white;
  outline: none;
  transition: border-color 0.2s;
  margin-bottom: 18px;
  box-sizing: border-box;
}

.bsn-input:focus { border-color: var(--be-navy); }

/* Action buttons */
.bsn-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 0;
}

.bsn-btn-primary {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 16px;
  background: var(--be-navy);
  color: white;
  border: none;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.bsn-btn-primary svg { width: 16px; height: 16px; }
.bsn-btn-primary:active { background: var(--be-navy-dark); }

.bsn-btn-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 13px 16px;
  background: white;
  color: var(--be-navy);
  border: 1.5px solid var(--be-navy);
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.bsn-btn-secondary svg { width: 15px; height: 15px; }

/* Email form (revealed on tap) */
.bsn-email-form {
  display: none;
  flex-direction: row;
  gap: 8px;
  margin-top: 12px;
  align-items: center;
}

.bsn-email-form.open { display: flex; }

.bsn-email-input {
  flex: 1;
  border: 1.5px solid rgba(0,0,0,0.12);
  border-radius: 8px;
  padding: 11px 14px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.bsn-email-input:focus { border-color: var(--be-navy); }

.bsn-send-btn {
  padding: 11px 20px;
  background: var(--be-navy);
  color: white;
  border: none;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

/* ============================================================
   SERMON NOTES SUCCESS MODAL
   ============================================================ */
.bsn-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  align-items: flex-end;
  justify-content: center;
}

.bsn-modal.open { display: flex; }

.bsn-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
}

.bsn-modal-sheet {
  position: relative;
  background: white;
  border-radius: 20px 20px 0 0;
  padding: 12px 24px 40px;
  width: 100%;
  max-width: 480px;
  text-align: center;
  box-shadow: 0 -4px 32px rgba(0,0,0,0.15);
}

.bsn-modal-handle {
  width: 36px;
  height: 4px;
  background: #e0e0e0;
  border-radius: 2px;
  margin: 0 auto 20px;
}

.bsn-modal-check {
  width: 56px;
  height: 56px;
  background: #e8f5e9;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  color: #4CAF50;
}

.bsn-modal-check svg { width: 28px; height: 28px; }

.bsn-modal-heading {
  font-size: 22px;
  font-weight: 700;
  color: var(--be-navy);
  margin: 0 0 8px;
}

.bsn-modal-sub {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
  margin: 0 0 20px;
}

.bsn-modal-sub strong { color: var(--be-navy); }

.bsn-modal-divider {
  height: 1px;
  background: #eee;
  margin: 0 0 20px;
}

.bsn-modal-cta-text {
  font-size: 14px;
  color: #555;
  margin: 0 0 6px;
}

.bsn-modal-cta-btn {
  display: block;
  width: 100%;
  padding: 14px;
  background: var(--be-navy);
  color: white;
  text-decoration: none;
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 12px;
  box-sizing: border-box;
}

.bsn-modal-done {
  width: 100%;
  padding: 14px;
  background: transparent;
  color: #888;
  border: 1.5px solid #e0e0e0;
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  box-sizing: border-box;
}

/* ── Study Guide tabs ───────────────────────────── */
.bsn-tabs {
  display: flex;
  gap: 4px;
  margin-top: 8px;
  background: rgba(0,0,0,0.06);
  border-radius: 8px;
  padding: 3px;
}

.bsn-tab {
  flex: 1;
  padding: 8px 12px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: #888;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s;
}

.bsn-tab--active {
  background: white;
  color: var(--be-navy);
  box-shadow: 0 1px 4px rgba(0,0,0,0.12);
}

/* ── Study Guide content ────────────────────────── */
.bsn-guide-text {
  font-size: 14px;
  line-height: 1.75;
  color: #333;
  background: white;
  border-radius: 8px;
  padding: 16px 18px;
  border-left: 3px solid var(--be-navy);
  margin-bottom: 16px;
  white-space: pre-wrap;
}

.bsn-download-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px;
  background: var(--be-olive);
  color: white;
  text-decoration: none;
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 600;
  box-sizing: border-box;
}

.bsn-download-btn svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ============================================================
   YOUVERSION INTEGRATION
   ============================================================ */
.bethany-yv-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  background: #6B4FA0;
  color: white;
  text-decoration: none;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 12px;
  transition: background 0.2s;
  -webkit-tap-highlight-color: transparent;
  box-sizing: border-box;
}

.bethany-yv-btn:active { background: #5a3f8a; }

.bethany-yv-logo {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.15);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.bethany-yv-logo svg { width: 24px; height: 24px; }

.bethany-yv-text { flex: 1; }

.bethany-yv-text strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: white;
  line-height: 1.2;
  margin-bottom: 3px;
}

.bethany-yv-text span {
  font-size: 11px;
  color: rgba(255,255,255,0.75);
}

.bethany-yv-arrow {
  width: 18px;
  height: 18px;
  opacity: 0.7;
  flex-shrink: 0;
}

/* ── Scripture chips ───────────────────────────── */
.bsn-scripture-chips {
  margin-bottom: 16px;
}

.bsn-scripture-chips-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6B4FA0;
  margin-bottom: 10px;
}

.bsn-scripture-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: white;
  border: 1.5px solid rgba(107,79,160,0.2);
  border-radius: 8px;
  text-decoration: none;
  color: var(--be-charcoal);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  transition: border-color 0.2s, background 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.bsn-scripture-chip:active {
  background: #f3f0f9;
  border-color: #6B4FA0;
}

.bsn-scripture-chip svg:first-child {
  width: 16px;
  height: 16px;
  color: #6B4FA0;
  flex-shrink: 0;
}

.bsn-chip-arrow {
  width: 16px;
  height: 16px;
  color: #999;
  margin-left: auto;
  flex-shrink: 0;
}

/* ── Ministry filter bar (shared between All Events and each ministry calendar) ── */
.ministry-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}
.ministry-filter-link {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--be-navy);
  background: white;
  border: 1.5px solid rgba(0,0,0,0.1);
  padding: 8px 16px;
  border-radius: 100px;
  text-decoration: none;
  transition: all 0.15s;
  cursor: default;
}
a.ministry-filter-link:hover {
  border-color: var(--be-navy);
  cursor: pointer;
}
.ministry-filter-link.is-active {
  background: var(--be-navy);
  color: white;
  border-color: var(--be-navy);
}

/* ── Events archive pagination ── */
.events-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 12px;
}
.events-pagination-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 90px;
  height: 40px;
  padding: 0 18px;
  border-radius: 6px;
  background: white;
  border: 1px solid rgba(0,0,0,0.08);
  color: var(--be-navy);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}
a.events-pagination-link:hover { background: var(--be-cream); }
.events-pagination-link.is-disabled {
  color: #bbb;
  cursor: default;
}
.events-pagination-status {
  font-size: 13px;
  color: var(--be-text-light);
  font-weight: 600;
  white-space: nowrap;
}

/* ── Song Requests — live poll with bar-chart results ── */
.bethany-song-requests {
  background: var(--be-cream);
  border: 1.5px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  padding: 22px 20px;
  margin-bottom: 16px;
}

.bethany-song-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 700;
  color: var(--be-navy);
  margin: 0 0 8px;
}
.bethany-song-heading svg { width: 20px; height: 20px; color: var(--be-olive); flex-shrink: 0; }

.bethany-song-sub {
  font-size: 13px;
  color: var(--be-text-light);
  line-height: 1.55;
  margin: 0 0 16px;
}

.bethany-song-form {
  display: flex;
  gap: 8px;
  margin-bottom: 6px;
}
#bethanySongInput {
  flex: 1;
  min-width: 0;
  border: 1.5px solid rgba(0,0,0,0.12);
  border-radius: 8px;
  padding: 11px 14px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}
#bethanySongInput:focus { border-color: var(--be-navy); }
#bethanySongSubmit {
  flex-shrink: 0;
  padding: 11px 20px;
  background: var(--be-navy);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}
#bethanySongSubmit:active { background: var(--be-navy-dark); }
#bethanySongSubmit:disabled { opacity: 0.6; cursor: not-allowed; }

.bethany-song-error {
  color: #c0392b;
  font-size: 13px;
  margin: 0 0 12px;
}

.bethany-song-tally { margin-top: 18px; }

.bethany-song-empty {
  text-align: center;
  font-size: 13px;
  color: var(--be-text-light);
  padding: 12px 0;
  margin: 0;
}

.bethany-song-bar-row {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 2px 10px;
  margin-bottom: 12px;
}
.bethany-song-bar-row:last-child { margin-bottom: 0; }

.bethany-song-bar-label {
  grid-column: 1;
  grid-row: 1;
  font-size: 13px;
  font-weight: 600;
  color: var(--be-charcoal);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bethany-song-bar-count {
  grid-column: 2;
  grid-row: 1;
  font-size: 12px;
  font-weight: 700;
  color: var(--be-navy);
  flex-shrink: 0;
}
.bethany-song-bar-track {
  grid-column: 1 / -1;
  grid-row: 2;
  height: 8px;
  background: rgba(0,0,0,0.06);
  border-radius: 100px;
  overflow: hidden;
}
.bethany-song-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--be-olive), var(--be-olive-light));
  border-radius: 100px;
  transition: width 0.5s ease;
}

/* First-place bar gets the gold treatment — the current favorite */
.bethany-song-bar-row:first-child .bethany-song-bar-fill {
  background: linear-gradient(90deg, #C9A84C, #e0c374);
}
.bethany-song-bar-row:first-child .bethany-song-bar-count { color: #8a6800; }
