/* =========================================================
   IN THE BOAT 2.0 — CONCEPT 7 "TWILIGHT HAVEN" DESIGN SYSTEM
   Deep Espresso Slate, Glowing Gold & Bronze, Debossed Cards
   Includes In the Boat 1.0 Sanctuary Vault & Google Drive Live Sync
   ========================================================= */

:root {
  --bg-primary: #101114;
  --bg-surface: #17181F;
  --bg-surface-elevated: #20222B;
  --bg-card: #191B22;
  --bg-card-debossed: #13141A;
  
  --gold-primary: #D4A373;
  --gold-bright: #E9C46A;
  --gold-glow: rgba(212, 163, 115, 0.25);
  --gold-glow-subtle: rgba(212, 163, 115, 0.12);
  --gold-border: #3A3228;
  --gold-border-bright: #5A4E3E;

  --brass-grad-start: #D8A468;
  --brass-grad-end: #8C5A28;
  --brass-shadow: rgba(216, 164, 104, 0.2);

  --text-main: #FDFBF7;
  --text-muted: #D1CDC7;
  --text-faint: #A8A49D;
  --gold-border: #4E4436;
  
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-brand: 'Cinzel', serif;
  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-hand: 'Caveat', cursive, sans-serif;

  --tag-answered: #E9C46A;
  --tag-grateful: #8FB996;
  --tag-peaceful: #70A9A1;
  --tag-valley: #E07A5F;
  --tag-guidance: #B5838D;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;
}

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

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-sans);
  min-height: 100vh;
  line-height: 1.5;
  overflow-x: hidden;
  position: relative;
}

/* Ambient glow orbs */
.app-ambient-glow {
  position: fixed;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(100px);
}
.app-ambient-glow.top-right {
  top: -100px;
  right: -100px;
  background: radial-gradient(circle, rgba(212, 163, 115, 0.15) 0%, rgba(16, 17, 20, 0) 70%);
}
.app-ambient-glow.bottom-left {
  bottom: -100px;
  left: -100px;
  background: radial-gradient(circle, rgba(140, 90, 40, 0.12) 0%, rgba(16, 17, 20, 0) 70%);
}

.app-container {
  max-width: 540px;
  margin: 0 auto;
  padding: 20px 18px 90px 18px;
  position: relative;
  z-index: 1;
}

/* ==================== HEADER ==================== */
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-top: 4px;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-emblem {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, #242631, #16171E);
  border: 1px solid var(--gold-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-bright);
  box-shadow: 0 4px 14px rgba(0,0,0,0.35);
}
.brand-emblem svg { width: 24px; height: 24px; }

.brand-title {
  font-family: var(--font-brand);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-main);
}
.brand-date {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 400;
}

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

.pill-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  background: rgba(23, 24, 31, 0.9);
  border: 1px solid rgba(212, 163, 115, 0.25);
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}
.pill-badge:hover {
  border-color: var(--gold-primary);
  color: var(--text-main);
}
.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #52B788;
  box-shadow: 0 0 8px #52B788;
}
.pulse-dot.warning {
  background: #E9C46A;
  box-shadow: 0 0 8px #E9C46A;
}

.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}
.icon-btn:hover {
  color: var(--gold-bright);
  border-color: var(--gold-border);
}
.icon-btn svg { width: 18px; height: 18px; }

.icon-btn-gold {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--bg-card-debossed);
  border: 1px solid var(--gold-border);
  color: var(--gold-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  flex-shrink: 0;
  transition: all 0.2s ease;
}
.icon-btn-gold:hover {
  border-color: var(--gold-bright);
  background: var(--bg-surface-elevated);
}

/* ==================== SCRIPTURE CARD (CONCEPT 7) ==================== */
.scripture-card-wrapper {
  margin-bottom: 24px;
}

.scripture-card {
  background: linear-gradient(165deg, #1C1E26 0%, #13141B 100%);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg);
  padding: 22px 20px;
  position: relative;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 10px 24px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.scripture-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.scripture-ref {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gold-bright);
  letter-spacing: 0.02em;
}

.btn-scripture-shuffle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  color: var(--text-muted);
  font-size: 0.65rem;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-scripture-shuffle:hover {
  background: rgba(212, 163, 115, 0.15);
  color: var(--gold-bright);
  border-color: var(--gold-border-bright);
}
.btn-scripture-shuffle svg {
  transition: transform 0.3s ease;
}
.btn-scripture-shuffle:hover svg {
  transform: rotate(180deg);
}

.scripture-tag {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  background: rgba(212, 163, 115, 0.12);
  color: var(--gold-primary);
  border: 1px solid rgba(212, 163, 115, 0.25);
  font-weight: 600;
}

.scripture-text {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-main);
  font-style: italic;
}

.scripture-thought {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-top: 4px;
}

.listen-btn {
  align-self: flex-end;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 10px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #2B241C, #1C1914);
  border: 1px solid var(--gold-border-bright);
  color: var(--gold-bright);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.listen-btn:hover {
  background: linear-gradient(135deg, #3A2F22, #262118);
  border-color: var(--gold-bright);
  box-shadow: 0 0 16px var(--gold-glow);
  transform: translateY(-1px);
}

.listen-icon-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-bright), var(--brass-grad-end));
  color: #101114;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.listen-icon-circle svg { width: 16px; height: 16px; }

.listen-label {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.audio-pulse-bars {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 14px;
}
.audio-pulse-bars span {
  width: 3px;
  height: 100%;
  background: #101114;
  border-radius: 2px;
  animation: pulseHeight 0.7s infinite alternate ease-in-out;
}
.audio-pulse-bars span:nth-child(1) { animation-delay: 0.1s; }
.audio-pulse-bars span:nth-child(2) { animation-delay: 0.3s; }
.audio-pulse-bars span:nth-child(3) { animation-delay: 0.5s; }

@keyframes pulseHeight {
  from { height: 4px; }
  to { height: 14px; }
}

/* ==================== 4-BUTTON BRASS ACTION DOCK ==================== */
.action-dock-section {
  margin-bottom: 28px;
}

.action-dock {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

@media (max-width: 480px) {
  .action-dock {
    gap: 6px;
  }
  .brass-btn {
    width: 54px !important;
    height: 54px !important;
  }
  .brass-btn svg {
    width: 22px !important;
    height: 22px !important;
  }
  .action-title {
    font-size: 0.74rem !important;
  }
  .action-subtitle {
    font-size: 0.62rem !important;
  }
}

.action-btn-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 5px;
}

.brass-btn {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #E8BC7E 0%, #B88044 50%, #6E441E 100%);
  border: 2px solid #F1CF9B;
  color: #1A130B;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  box-shadow: 0 8px 20px rgba(0,0,0,0.5), inset 0 2px 4px rgba(255,255,255,0.4), inset 0 -3px 6px rgba(0,0,0,0.5);
  transition: all 0.22s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.brass-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 26px var(--brass-shadow), 0 0 20px var(--gold-glow);
}
.brass-btn:active { transform: translateY(1px) scale(0.97); }
.brass-btn svg { width: 26px; height: 26px; stroke: #1B1207; stroke-width: 2.2; }

.brass-btn.recording {
  background: radial-gradient(circle at 35% 30%, #FF8A80 0%, #D32F2F 60%, #851010 100%);
  border-color: #FFA4A0;
}
.brass-btn.recording svg { stroke: #FFFFFF; }

.pulse-ring {
  position: absolute;
  top: -8px;
  left: -8px;
  right: -8px;
  bottom: -8px;
  border-radius: 50%;
  border: 2px solid #E07A5F;
  animation: rippleRing 1.4s infinite ease-out;
  pointer-events: none;
}
@keyframes rippleRing {
  0% { transform: scale(0.9); opacity: 1; }
  100% { transform: scale(1.4); opacity: 0; }
}

.action-title { font-size: 0.82rem; font-weight: 600; color: var(--text-main); margin-top: 2px; }
.action-subtitle { font-size: 0.68rem; color: var(--text-muted); }
.hidden-input { display: none; }

/* ==================== TABS & FILTER BAR ==================== */
.app-nav-tabs {
  display: flex;
  background: var(--bg-card-debossed);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-full);
  padding: 4px;
  margin-bottom: 20px;
  gap: 2px;
}

.nav-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 8px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 500;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.nav-tab svg { width: 15px; height: 15px; }
.nav-tab.active {
  background: var(--bg-surface-elevated);
  color: var(--gold-bright);
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0,0,0,0.35);
}

.tab-badge {
  background: rgba(233, 196, 106, 0.2);
  color: var(--gold-bright);
  font-size: 0.62rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: var(--radius-full);
}
.tab-badge.gold {
  background: rgba(212, 163, 115, 0.25);
  border: 1px solid rgba(212, 163, 115, 0.4);
}

.tab-pane { display: none; }
.tab-pane.active {
  display: block;
  animation: fadeIn 0.25s ease forwards;
}

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

.search-bar-wrapper {
  margin-bottom: 12px;
}
.search-bar-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card-debossed);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  padding: 8px 14px;
  transition: border-color 0.2s ease;
}
.search-bar-inner:focus-within {
  border-color: var(--gold-bright);
}
.search-bar-inner svg {
  color: var(--text-muted);
  flex-shrink: 0;
}
.search-bar-inner input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-main);
  font-size: 0.85rem;
  font-family: var(--font-sans);
  outline: none;
}
.search-bar-inner input::placeholder {
  color: var(--text-faint);
}

.timeline-filter-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 12px;
  margin-bottom: 14px;
  scrollbar-width: none;
}
.timeline-filter-bar::-webkit-scrollbar { display: none; }

.filter-chip {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
}
.filter-chip:hover, .filter-chip.active {
  background: rgba(212, 163, 115, 0.15);
  border-color: var(--gold-border-bright);
  color: var(--gold-bright);
}

/* ==================== TIMELINE CARDS ==================== */
.timeline-stream { display: flex; flex-direction: column; gap: 20px; }
.journal-card {
  background: linear-gradient(165deg, #1A1C24 0%, #121319 100%);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  position: relative;
  transition: transform 0.2s ease;
}
.journal-card:hover { transform: translateY(-2px); border-color: var(--gold-border-bright); }

.card-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.card-timestamp {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
}
.card-location-tag {
  font-size: 0.72rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}
.card-drive-badge {
  font-size: 0.65rem;
  color: #52B788;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  background: rgba(82, 183, 136, 0.1);
  padding: 2px 7px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(82, 183, 136, 0.25);
}
.card-drive-badge:hover {
  background: rgba(82, 183, 136, 0.2);
}
.btn-card-icon-action {
  background: transparent;
  border: none;
  color: var(--text-faint);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: all 0.2s ease;
}
.btn-card-icon-action:hover {
  color: #E07A5F;
  background: rgba(224, 122, 95, 0.12);
}

/* Polaroid Moment Frame */
.polaroid-card-frame {
  background: #F4F1EA;
  padding: 10px 10px 16px 10px;
  border-radius: 6px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.4);
  margin-bottom: 14px;
  transform: rotate(-0.5deg);
}
.polaroid-media-box {
  width: 100%;
  height: 220px;
  border-radius: 3px;
  overflow: hidden;
  background: #20222B;
}
.polaroid-media-box img, .polaroid-media-box video { width: 100%; height: 100%; object-fit: cover; }
.polaroid-hand-note {
  font-family: var(--font-hand);
  font-size: 1.25rem;
  font-weight: 700;
  color: #242426;
  margin-top: 10px;
  padding: 0 4px;
  line-height: 1.3;
}

/* Waveform Player Bar */
.waveform-player-card {
  background: #121319;
  border: 1px solid rgba(212, 163, 115, 0.2);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.play-toggle-gold {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-bright), var(--brass-grad-end));
  border: none;
  color: #101114;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(212, 163, 115, 0.3);
}
.play-toggle-gold svg { width: 18px; height: 18px; margin-left: 2px; }
.waveform-canvas-box { flex: 1; height: 36px; display: flex; align-items: center; }
.waveform-canvas-box canvas { width: 100%; height: 100%; }
.time-stamp-label {
  font-size: 0.72rem;
  color: var(--gold-bright);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.card-title { font-family: var(--font-serif); font-size: 1.05rem; font-weight: 600; color: var(--text-main); margin-bottom: 6px; }
.card-text-body { font-size: 0.9rem; color: #D6D3CC; line-height: 1.6; white-space: pre-wrap; margin-bottom: 12px; }

.card-footer-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.badge-mood {
  font-size: 0.7rem;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.badge-mood.answered {
  background: rgba(233, 196, 106, 0.18);
  color: var(--tag-answered);
  border-color: rgba(233, 196, 106, 0.35);
  box-shadow: 0 0 10px rgba(233, 196, 106, 0.2);
}
.badge-mood.grateful { background: rgba(143, 185, 150, 0.15); color: var(--tag-grateful); }
.badge-mood.peaceful { background: rgba(112, 169, 161, 0.15); color: var(--tag-peaceful); }
.badge-mood.valley { background: rgba(224, 122, 95, 0.15); color: var(--tag-valley); }
.badge-mood.guidance { background: rgba(181, 131, 141, 0.15); color: var(--tag-guidance); }

/* ==================== PRAYER WALL ==================== */
.prayer-header-card {
  background: linear-gradient(165deg, #1C1E26 0%, #13141B 100%);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg);
  padding: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.prayer-header-info h3 { font-family: var(--font-brand); font-size: 1.1rem; color: var(--gold-bright); margin-bottom: 4px; }
.prayer-header-info p { font-size: 0.78rem; color: var(--text-muted); max-width: 320px; }

.gold-action-btn {
  padding: 8px 16px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--gold-bright), var(--brass-grad-end));
  border: 1px solid var(--gold-bright);
  color: #121319;
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(212, 163, 115, 0.3);
  transition: all 0.2s ease;
  white-space: nowrap;
}
.gold-action-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px var(--gold-glow); }

.prayer-categories-bar { display: flex; gap: 10px; margin-bottom: 16px; }
.prayer-cat-chip {
  flex: 1;
  padding: 10px;
  background: var(--bg-card-debossed);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}
.prayer-cat-chip.active {
  background: var(--bg-surface-elevated);
  border-color: var(--gold-border-bright);
  color: var(--gold-bright);
}

.prayers-list { display: flex; flex-direction: column; gap: 14px; }
.prayer-card {
  background: var(--bg-card);
  border: 1px solid rgba(212, 163, 115, 0.15);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.prayer-card.answered-state {
  border-color: rgba(233, 196, 106, 0.4);
  background: linear-gradient(165deg, #1E1C16, #141310);
}
.prayer-card-header { display: flex; justify-content: space-between; align-items: flex-start; }
.prayer-item-title { font-family: var(--font-serif); font-size: 1rem; font-weight: 600; color: var(--text-main); }
.btn-mark-answered {
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: rgba(233, 196, 106, 0.12);
  border: 1px solid var(--gold-bright);
  color: var(--gold-bright);
  cursor: pointer;
}
.btn-mark-answered:hover { background: var(--gold-bright); color: #101114; }

.prayer-testimony-box {
  background: rgba(233, 196, 106, 0.08);
  border-left: 3px solid var(--gold-bright);
  padding: 8px 12px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.82rem;
  color: #E2DFD7;
  font-style: italic;
}

/* ==================== IN THE BOAT 1.0 SANCTUARY VAULT ==================== */
.v1-anchor-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px;
  border-radius: var(--radius-lg);
  background: linear-gradient(165deg, #1E1B15 0%, #121318 100%);
  border: 1px solid var(--gold-border-bright);
  margin-bottom: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.45);
}

.anchor-ring-wrapper {
  position: relative;
  width: 110px;
  height: 110px;
  flex-shrink: 0;
}
.anchor-circle-svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: rgba(255, 255, 255, 0.06); stroke-width: 8; }
.ring-fill {
  fill: none;
  stroke: #E9C46A;
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 339;
  stroke-dashoffset: 260;
  transition: stroke-dashoffset 0.8s ease;
}

.anchor-ring-content {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.anchor-number {
  font-family: var(--font-brand);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gold-bright);
  line-height: 1;
}
.anchor-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 2px;
}

.anchor-info { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.anchor-header-badge {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-bright);
  font-weight: 700;
}
.anchor-title { font-family: var(--font-serif); font-size: 1.15rem; font-weight: 600; color: var(--text-main); }
.anchor-subtitle { font-size: 0.78rem; color: var(--text-muted); }
.gold-text { color: var(--gold-bright); font-weight: 600; }

.milestones-row { display: flex; gap: 5px; margin: 6px 0 8px 0; }
.milestone-badge {
  font-size: 0.65rem;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-faint);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.milestone-badge.earned {
  background: rgba(233, 196, 106, 0.2);
  color: var(--gold-bright);
  border-color: rgba(233, 196, 106, 0.4);
  font-weight: 600;
}
.milestone-badge.next {
  border-color: var(--gold-primary);
  color: var(--text-main);
  animation: pulseOpacity 1.5s infinite alternate;
}

@keyframes pulseOpacity {
  from { opacity: 0.6; }
  to { opacity: 1; }
}

.btn-subtle-gold {
  align-self: flex-start;
  background: transparent;
  border: none;
  color: var(--gold-primary);
  font-size: 0.72rem;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}

/* v1.0 Tools Grid */
.v1-tools-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.v1-tool-card {
  background: var(--bg-card);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-md);
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.3);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.v1-tool-card:hover { transform: translateY(-2px); border-color: var(--gold-border-bright); }
.v1-tool-card.emergency-card {
  border-color: rgba(224, 122, 95, 0.35);
  background: linear-gradient(165deg, #1C1514, #121319);
}

.v1-tool-icon { font-size: 1.8rem; line-height: 1; }
.v1-tool-card h4 { font-family: var(--font-serif); font-size: 0.95rem; font-weight: 600; color: var(--text-main); }
.v1-tool-card p { font-size: 0.75rem; color: var(--text-muted); line-height: 1.4; flex: 1; }

.v1-tool-launch-btn {
  padding: 7px 12px;
  border-radius: var(--radius-full);
  background: rgba(212, 163, 115, 0.12);
  border: 1px solid var(--gold-border-bright);
  color: var(--gold-bright);
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
}
.v1-tool-launch-btn:hover { background: var(--gold-bright); color: #101114; }
.v1-tool-launch-btn.emergency {
  background: rgba(224, 122, 95, 0.15);
  border-color: #E07A5F;
  color: #E07A5F;
}
.v1-tool-launch-btn.emergency:hover { background: #E07A5F; color: #FFF; }

.v1-tool-card.sparkvault-card {
  border-color: rgba(56, 189, 248, 0.35);
  background: linear-gradient(165deg, #101c26, #121319);
}
.v1-tool-launch-btn.spark {
  background: rgba(56, 189, 248, 0.15);
  border-color: #38bdf8;
  color: #38bdf8;
}
.v1-tool-launch-btn.spark:hover {
  background: #38bdf8;
  color: #0c121e;
}

/* Breathing Orb Interactive */
.text-center { text-align: center; }
.breathing-orb-container {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 0;
}
.breathing-orb {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(233, 196, 106, 0.3) 0%, rgba(212, 163, 115, 0.05) 70%);
  border: 2px solid var(--gold-bright);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 30px var(--gold-glow);
  transition: transform 4s cubic-bezier(0.4, 0, 0.2, 1);
}
.breathing-orb.expand {
  transform: scale(1.35);
  box-shadow: 0 0 50px rgba(233, 196, 106, 0.5);
}
.breathing-orb.contract {
  transform: scale(0.85);
  box-shadow: 0 0 15px rgba(233, 196, 106, 0.15);
}
.breathing-instruction { font-family: var(--font-serif); font-size: 1.15rem; font-weight: 600; color: var(--text-main); }
.breathing-count {
  font-family: var(--font-brand);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold-bright);
  margin-top: 4px;
}
.breathing-subtext { font-size: 0.85rem; color: var(--text-muted); }

/* Grounding & Crisis Details */
.grounding-lead { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 14px; }
.grounding-step-item {
  background: var(--bg-card-debossed);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 12px;
  margin-bottom: 12px;
}
.step-badge {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold-bright);
  font-weight: 700;
}
.step-prompt { font-size: 0.82rem; color: var(--text-main); margin: 4px 0 6px 0; }

.crisis-banner {
  background: rgba(224, 122, 95, 0.12);
  border: 1px solid rgba(224, 122, 95, 0.3);
  padding: 12px 14px;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
}
.crisis-banner h4 { color: #E07A5F; font-size: 0.95rem; margin-bottom: 4px; }
.crisis-banner p { font-size: 0.8rem; color: #E2DFD7; }

.helpline-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-card-debossed);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 12px 14px;
}
.helpline-info strong { font-size: 0.88rem; color: var(--text-main); display: block; }
.helpline-info p { font-size: 0.75rem; color: var(--text-muted); }
.helpline-call-btn {
  padding: 8px 16px;
  border-radius: var(--radius-full);
  background: #E07A5F;
  color: #FFF;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

/* ==================== MOMENTS GRID ==================== */
.moments-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.moment-thumb-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  aspect-ratio: 1;
  background: #17181F;
  border: 1px solid var(--gold-border);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.moment-thumb-item img, .moment-thumb-item video { width: 100%; height: 100%; object-fit: cover; }
.moment-overlay-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 8px 10px;
  background: linear-gradient(transparent, rgba(16, 17, 20, 0.9));
  font-size: 0.72rem;
  color: #FFF;
  font-weight: 500;
}

/* ==================== MODALS ==================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(8, 9, 12, 0.85);
  backdrop-filter: blur(8px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: fadeIn 0.2s ease;
}
.modal-overlay.hidden { display: none; }

.modal-card {
  background: #171821;
  border: 1px solid var(--gold-border-bright);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 24px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.7), 0 0 30px rgba(212, 163, 115, 0.1);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal-header { display: flex; justify-content: space-between; align-items: flex-start; }
.modal-kicker {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-bright);
  font-weight: 600;
}
.modal-title { font-family: var(--font-serif); font-size: 1.3rem; font-weight: 600; color: var(--text-main); }
.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.form-group { display: flex; flex-direction: column; gap: 6px; }
.field-label { font-size: 0.78rem; font-weight: 600; color: var(--text-muted); }

.custom-input, .custom-textarea, .custom-textarea-blank, .custom-input-title {
  width: 100%;
  background: var(--bg-card-debossed);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  outline: none;
  transition: border-color 0.2s;
}
.custom-input:focus, .custom-textarea:focus, .custom-textarea-blank:focus {
  border-color: var(--gold-bright);
}
.custom-input-title { font-family: var(--font-serif); font-size: 1.15rem; font-weight: 600; }

.meta-row, .write-meta-bar { display: flex; gap: 12px; }
.meta-item {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-card-debossed);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
}
.custom-input-inline, .custom-select-inline {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--text-main);
  font-size: 0.82rem;
  outline: none;
}
.custom-select-inline option { background: #171821; }

.mood-chips-selection, .prayer-tag-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.mood-tag-chip {
  padding: 6px 12px;
  border-radius: var(--radius-full);
  background: var(--bg-card-debossed);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  font-size: 0.76rem;
  cursor: pointer;
}
.mood-tag-chip.active {
  background: rgba(212, 163, 115, 0.18);
  border-color: var(--gold-bright);
  color: var(--gold-bright);
  font-weight: 600;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.btn-secondary {
  padding: 10px 18px;
  border-radius: var(--radius-full);
  background: var(--bg-card-debossed);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.85rem;
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary-gold {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--gold-bright), var(--brass-grad-end));
  border: 1px solid var(--gold-bright);
  color: #101114;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(212, 163, 115, 0.35);
  transition: all 0.2s ease;
  white-space: nowrap;
}
.btn-primary-gold:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px var(--gold-glow);
}
.btn-primary-gold svg { width: 16px; height: 16px; }
.full-width { width: 100%; }

/* Settings Modal Specifics */
.settings-account-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-card-debossed);
  border: 1px solid rgba(212, 163, 115, 0.2);
  border-radius: var(--radius-md);
  padding: 14px;
}
.account-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gold-bright);
  color: #101114;
  font-size: 1.2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.account-details {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}
.account-name { font-size: 0.92rem; font-weight: 600; color: var(--text-main); word-break: break-word; }
.account-email { font-size: 0.76rem; color: var(--text-muted); word-break: break-word; }
.status-pill-green {
  display: inline-block;
  font-size: 0.68rem;
  color: #52B788;
  font-weight: 600;
  margin-top: 2px;
}

.settings-toggle-list { display: flex; flex-direction: column; gap: 12px; }
.toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.toggle-desc { font-size: 0.72rem; color: var(--text-muted); }

.settings-update-card {
  background: var(--bg-card-debossed);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 12px 14px;
}
.update-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.app-version-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold-bright);
  background: rgba(233, 196, 106, 0.15);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(233, 196, 106, 0.3);
}
.update-subtitle {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 4px;
}
.btn-update-app {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  background: rgba(212, 163, 115, 0.12);
  border: 1px solid var(--gold-border-bright);
  color: var(--gold-bright);
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.btn-update-app:hover {
  background: var(--gold-bright);
  color: #101114;
}
.btn-update-app.updating svg {
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }

/* ==================== AI COMPANION CONVERSATION & MEMORY UI ==================== */
.companion-conversation-card {
  background: linear-gradient(160deg, #1D1F2A 0%, #13141B 100%);
  border: 1px solid var(--gold-border-bright);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  margin-top: 12px;
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.4), 0 4px 16px rgba(0,0,0,0.3);
  position: relative;
  overflow: hidden;
}
.companion-conversation-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-bright), transparent);
}

.companion-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.companion-brand-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--gold-bright);
  font-weight: 600;
}
.companion-status-indicator {
  font-size: 0.68rem;
  font-weight: 400;
  color: var(--text-muted);
  background: rgba(255,255,255,0.06);
  padding: 2px 7px;
  border-radius: var(--radius-full);
}
.companion-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}
.btn-subtle-icon {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(212, 163, 115, 0.1);
  border: 1px solid rgba(212, 163, 115, 0.25);
  color: var(--gold-bright);
  font-size: 0.72rem;
  padding: 4px 8px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-subtle-icon:hover {
  background: rgba(212, 163, 115, 0.22);
}

.companion-exchanges-thread {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 10px;
  max-height: 180px;
  overflow-y: auto;
}
.exchange-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.82rem;
  padding: 8px 10px;
  border-radius: var(--radius-md);
  background: rgba(0,0,0,0.25);
  border-left: 2px solid var(--gold-primary);
}
.exchange-prompt {
  color: var(--gold-bright);
  font-style: italic;
}
.exchange-response {
  color: #E2DFD8;
  padding-left: 6px;
}

.companion-bubble-active {
  background: rgba(25, 27, 35, 0.8);
  border: 1px dashed rgba(212, 163, 115, 0.35);
  border-radius: var(--radius-md);
  padding: 12px 14px;
}
.companion-spinner {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--gold-primary);
  font-size: 0.8rem;
  padding: 6px 0;
}
.companion-reflection {
  font-size: 0.88rem;
  color: #E6E3DB;
  line-height: 1.45;
  font-style: italic;
  margin-bottom: 6px;
}
.companion-question {
  font-size: 0.92rem;
  color: var(--gold-bright);
  font-weight: 500;
  line-height: 1.4;
}

.companion-reply-box {
  margin-top: 10px;
}
.reply-input-row {
  display: flex;
  align-items: center;
  gap: 6px;
}
.custom-input-reply {
  flex: 1;
  background: var(--bg-card-debossed);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-full);
  padding: 8px 14px;
  font-size: 0.84rem;
  color: var(--text-main);
  outline: none;
}
.custom-input-reply:focus {
  border-color: var(--gold-primary);
}
.btn-reply-mic, .btn-reply-send {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--gold-border-bright);
  background: linear-gradient(145deg, #2A2D3A, #181922);
  color: var(--gold-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.btn-reply-mic.recording {
  background: #E07A5F;
  color: white;
  border-color: #E07A5F;
  animation: pulse-ring 1.2s infinite;
}
.btn-reply-mic:hover, .btn-reply-send:hover {
  transform: scale(1.05);
  border-color: var(--gold-bright);
}

.pill-badge-gold {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  background: rgba(212, 163, 115, 0.15);
  border: 1px solid var(--gold-border-bright);
  color: var(--gold-bright);
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}
.pill-badge-gold:hover {
  background: rgba(212, 163, 115, 0.28);
}

/* Voice Prayer UI */
.brass-btn.large-mic {
  width: 72px;
  height: 72px;
  margin: 0 auto;
}
.voice-prayer-mic-wrap {
  display: flex;
  justify-content: center;
  margin: 12px 0;
}
.voice-prayer-status-text {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Insights Digest UI */
.insights-scope-bar {
  display: flex;
  gap: 6px;
}
.insights-content-card {
  background: var(--bg-card-debossed);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg);
  padding: 16px;
  min-height: 200px;
}
.markdown-rendered-body {
  font-size: 0.88rem;
  line-height: 1.6;
  color: #E2DFD8;
}
.markdown-rendered-body h3, .markdown-rendered-body h4 {
  color: var(--gold-bright);
  margin: 12px 0 6px 0;
  font-family: var(--font-serif);
}
.markdown-rendered-body ul {
  padding-left: 20px;
  margin: 6px 0;
}
.markdown-rendered-body li {
  margin-bottom: 4px;
}

/* Settings section card */
.settings-section-card {
  background: var(--bg-card-debossed);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-md);
  padding: 14px;
}
.section-badge-title {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--gold-bright);
  font-size: 0.9rem;
  font-weight: 600;
}

/* ==================== PRINT STYLES FOR COUNSELOR / PERSONAL EXPORT ==================== */
@media print {
  body {
    background: #ffffff !important;
    color: #111111 !important;
    font-family: 'Times New Roman', Georgia, serif !important;
  }
  .app-container, .modal-overlay, .app-ambient-glow, .app-nav-tabs, .action-dock-section, .scripture-card-wrapper {
    display: none !important;
  }
  .print-only {
    display: block !important;
    padding: 20px !important;
  }
  .print-entry-header {
    border-bottom: 1px solid #333;
    padding-bottom: 4px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
  }
  .print-companion-box {
    background: #f4f4f4 !important;
    border-left: 3px solid #8C5A28 !important;
    padding: 8px 12px !important;
    margin: 8px 0 !important;
  }
}
.print-only {
  display: none;
}

/* Responsive adjustments */
@media (max-width: 480px) {
  .app-container { padding: 14px 12px 80px 12px; }
  .modal-overlay { padding: 10px; }
  .modal-card {
    padding: 18px 14px;
    max-height: 92vh;
    border-radius: var(--radius-lg);
    width: 100%;
  }
  .modal-footer {
    flex-direction: column;
    gap: 8px;
  }
  .modal-footer button {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
  .update-info-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .btn-update-app {
    width: 100%;
    justify-content: center;
  }
  .brass-btn { width: 56px; height: 56px; }
  .brass-btn svg { width: 22px; height: 22px; }
  .action-title { font-size: 0.76rem; }
  .action-subtitle { font-size: 0.62rem; }
  .v1-tools-grid { grid-template-columns: 1fr; }
  .v1-anchor-card { flex-direction: column; text-align: center; }
  .btn-subtle-gold { align-self: center; }
  .milestones-row { justify-content: center; }
}

/* =========================================================
   FRONT-PAGE RECOVERY SUITE & TOOLBOX STYLING (OPTION A)
   ========================================================= */

.recovery-deck-wrapper {
  margin-bottom: 22px;
}

.recovery-hero-card {
  background: var(--bg-card-debossed);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-xl);
  padding: 16px 18px;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.6), 0 10px 24px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
}

.recovery-hero-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
}

.recovery-hero-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(212, 163, 115, 0.15);
}

.recovery-anchor-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-md);
  transition: var(--transition-fast, 0.15s ease);
}
.recovery-anchor-badge:hover {
  background: rgba(212, 163, 115, 0.08);
}

.anchor-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.anchor-text-wrap strong {
  display: block;
  font-family: var(--font-brand);
  font-size: 1.05rem;
  color: var(--gold-bright);
  letter-spacing: 0.5px;
}

.anchor-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.recovery-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pill-badge-companion {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(135deg, rgba(212, 163, 115, 0.2), rgba(140, 90, 40, 0.2));
  border: 1px solid var(--gold-primary);
  color: var(--gold-bright);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s ease;
}
.pill-badge-companion:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, rgba(212, 163, 115, 0.35), rgba(140, 90, 40, 0.35));
  box-shadow: 0 4px 12px var(--gold-glow);
}

.btn-sos-pulse {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(224, 122, 95, 0.15);
  border: 1px solid var(--tag-valley);
  color: #FF8A73;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-sos-pulse:hover {
  background: rgba(224, 122, 95, 0.3);
  box-shadow: 0 0 14px rgba(224, 122, 95, 0.4);
}

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

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

/* Toolbelt Grid */
.recovery-toolbelt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
@media (max-width: 480px) {
  .recovery-toolbelt-grid {
    grid-template-columns: 1fr;
  }
}

.toolbelt-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-surface);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.toolbelt-item:hover {
  background: var(--bg-surface-elevated);
  border-color: var(--gold-border-bright);
  transform: translateY(-1px);
}

.toolbelt-icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
}
.toolbelt-icon-wrap svg {
  width: 18px;
  height: 18px;
}

.rooms-gradient {
  background: linear-gradient(135deg, #2E5A88, #1B3654);
  color: #79B8FF;
}
.iop-gradient {
  background: linear-gradient(135deg, #387D7A, #1C4442);
  color: #8CE3DF;
}
.marriage-gradient {
  background: linear-gradient(135deg, #8A4B6B, #53243D);
  color: #F8A7CB;
}
.schedule-gradient {
  background: linear-gradient(135deg, #8A723D, #54431C);
  color: #F8D88A;
}
.spark-gradient {
  background: linear-gradient(135deg, #0ea5e9, #0369a1);
  color: #38bdf8;
}

.live-dot {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 6px;
  height: 6px;
  background: #38D9A9;
  border-radius: 50%;
  box-shadow: 0 0 6px #38D9A9;
}

.toolbelt-info {
  flex: 1;
  min-width: 0;
}

.toolbelt-title {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==================== RECOVERY HUB DEDICATED TAB STYLING ==================== */
.recovery-fast-actions-bar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 540px) {
  .recovery-fast-actions-bar {
    grid-template-columns: 1fr;
  }
}

.recovery-action-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-card-debossed);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
}
.recovery-action-card.companion-action {
  background: linear-gradient(145deg, rgba(212, 163, 115, 0.12), rgba(16, 17, 20, 0.9));
  border-color: var(--gold-primary);
}
.recovery-action-card.companion-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px var(--gold-glow);
  background: linear-gradient(145deg, rgba(212, 163, 115, 0.2), rgba(16, 17, 20, 0.95));
}

.recovery-action-card.sos-action {
  background: linear-gradient(145deg, rgba(224, 122, 95, 0.12), rgba(16, 17, 20, 0.9));
  border-color: rgba(224, 122, 95, 0.4);
}
.recovery-action-card.sos-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(224, 122, 95, 0.35);
  background: linear-gradient(145deg, rgba(224, 122, 95, 0.2), rgba(16, 17, 20, 0.95));
}

.action-card-icon {
  font-size: 1.6rem;
  line-height: 1;
  flex-shrink: 0;
}
.action-card-text {
  flex: 1;
  min-width: 0;
}
.action-card-text strong {
  display: block;
  font-size: 0.88rem;
  color: var(--text-main);
  font-weight: 700;
}
.action-card-text p {
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-top: 2px;
  line-height: 1.35;
}

.btn-action-pill {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: var(--radius-full);
  background: rgba(212, 163, 115, 0.15);
  border: 1px solid var(--gold-primary);
  color: var(--gold-bright);
  white-space: nowrap;
  flex-shrink: 0;
}
.btn-action-pill.sos {
  background: rgba(224, 122, 95, 0.15);
  border-color: var(--tag-valley);
  color: #FF8A73;
}

.section-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.section-subheading {
  font-family: var(--font-brand);
  font-size: 0.95rem;
  color: var(--gold-bright);
  letter-spacing: 0.5px;
}

/* Recovery Toolbox Grid */
.recovery-toolbox-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (max-width: 600px) {
  .recovery-toolbox-grid {
    grid-template-columns: 1fr;
  }
}

.recovery-hub-card {
  display: flex;
  gap: 12px;
  background: var(--bg-card-debossed);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-md);
  padding: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.recovery-hub-card:hover {
  transform: translateY(-2px);
  border-color: var(--gold-border-bright);
  box-shadow: 0 4px 16px rgba(0,0,0,0.35);
  background: var(--bg-surface-elevated);
}

.recovery-hub-card.emergency-hub-card {
  border-color: rgba(224, 122, 95, 0.35);
  background: linear-gradient(165deg, #1C1514, #121319);
}

.hub-card-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.breathing-gradient {
  background: linear-gradient(135deg, #2A6060, #143535);
  color: #8CE3DF;
}
.grounding-gradient {
  background: linear-gradient(135deg, #3A6B4C, #1B3D28);
  color: #8AE6A2;
}
.soap-gradient {
  background: linear-gradient(135deg, #7A5B2E, #453116);
  color: #F8D88A;
}
.emergency-gradient {
  background: linear-gradient(135deg, #7A2E26, #451612);
  color: #FF9B8A;
}

.hub-card-info {
  flex: 1;
  min-width: 0;
}
.hub-card-title {
  font-family: var(--font-serif);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-main);
}
.hub-card-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.35;
  margin: 4px 0 6px 0;
}
.hub-card-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: rgba(212, 163, 115, 0.1);
  color: var(--gold-bright);
  border: 1px solid var(--gold-border);
}

/* ==================== IN THE ROOMS & FELLOWSHIP STYLING ==================== */
.rooms-hero-launch-card {
  background: linear-gradient(145deg, #16243A, #0F1826);
  border: 1px solid #28476F;
  border-radius: var(--radius-lg);
  padding: 20px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
}

.rooms-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(56, 217, 169, 0.15);
  border: 1px solid rgba(56, 217, 169, 0.4);
  color: #38D9A9;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 8px;
}

.live-beacon {
  width: 7px;
  height: 7px;
  background: #38D9A9;
  border-radius: 50%;
  box-shadow: 0 0 8px #38D9A9;
  animation: pulse-sos 1.5s infinite;
}

.rooms-hero-title {
  font-family: var(--font-brand);
  font-size: 1.4rem;
  color: #A5D8FF;
  margin-bottom: 6px;
}

.rooms-hero-desc {
  font-size: 0.82rem;
  color: #CAD5E2;
  line-height: 1.45;
  margin-bottom: 14px;
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
}

.btn-rooms-launch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #3A78C4, #20508B);
  color: #FFFFFF;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: var(--radius-full);
  box-shadow: 0 6px 18px rgba(58, 120, 196, 0.4);
  transition: all 0.2s ease;
}
.btn-rooms-launch:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(58, 120, 196, 0.6);
}

.fellowship-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
@media (max-width: 480px) {
  .fellowship-grid {
    grid-template-columns: 1fr;
  }
}

.fellowship-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-surface);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 12px;
  text-decoration: none;
  color: var(--text-main);
  transition: all 0.2s ease;
}
.fellowship-card:hover {
  background: var(--bg-surface-elevated);
  border-color: var(--gold-border-bright);
  transform: translateY(-2px);
}

.fellowship-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
}

.fellowship-info {
  flex: 1;
  min-width: 0;
}
.fellowship-info strong {
  display: block;
  font-size: 0.82rem;
  color: var(--text-main);
}
.fellowship-info p {
  font-size: 0.68rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.launch-arrow {
  color: var(--gold-primary);
  font-size: 0.9rem;
  font-weight: bold;
}

.saved-rooms-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.saved-room-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-card-debossed);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 10px 14px;
}

.saved-room-info strong {
  display: block;
  font-size: 0.84rem;
  color: var(--gold-bright);
}
.saved-room-info span {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.saved-room-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-join-room-pill {
  background: linear-gradient(135deg, var(--gold-primary), #A67341);
  color: #101114;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

/* ==================== MEETING SCHEDULE & REMINDERS ==================== */
.next-meeting-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, rgba(212, 163, 115, 0.15), rgba(140, 90, 40, 0.12));
  border: 1px solid var(--gold-border-bright);
  border-radius: var(--radius-md);
  padding: 12px 14px;
}

.next-meeting-icon {
  font-size: 1.6rem;
}

.next-meeting-info {
  flex: 1;
  min-width: 0;
}

.badge-next-up {
  display: inline-block;
  background: var(--gold-primary);
  color: #101114;
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 1px 6px;
  border-radius: 4px;
  margin-bottom: 2px;
}

.next-meeting-info strong {
  display: block;
  font-size: 0.88rem;
  color: var(--text-main);
}
.next-meeting-info p {
  font-size: 0.74rem;
  color: var(--gold-bright);
}

.btn-quick-join {
  background: var(--gold-bright);
  color: #101114;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.scheduled-meeting-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-surface);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  margin-bottom: 8px;
}

.sched-meeting-title {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-main);
}

.sched-meeting-meta {
  font-size: 0.72rem;
  color: var(--text-muted);
  display: flex;
  gap: 8px;
}

.meeting-log-card {
  background: var(--bg-card-debossed);
  border: 1px solid rgba(212, 163, 115, 0.15);
  border-radius: var(--radius-md);
  padding: 14px;
}

/* ==================== IOP & MARRIAGE TABS & CARDS ==================== */
.iop-subtabs-nav, .marriage-subtabs-nav {
  display: flex;
  gap: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 10px;
  margin-bottom: 12px;
  overflow-x: auto;
}

.iop-subtab, .marriage-subtab {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: var(--radius-full);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}
.iop-subtab.active, .marriage-subtab.active {
  background: var(--gold-primary);
  color: #101114;
  border-color: var(--gold-primary);
}

.iop-program-card {
  background: var(--bg-surface);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 10px;
}

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

.iop-program-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--gold-bright);
}

.iop-status-chip {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}
.iop-status-chip.exploring { background: rgba(142, 150, 170, 0.2); color: #B0BAC9; }
.iop-status-chip.to-call { background: rgba(233, 196, 106, 0.2); color: #E9C46A; }
.iop-status-chip.intake-scheduled { background: rgba(112, 169, 161, 0.2); color: #70A9A1; }
.iop-status-chip.enrolled { background: rgba(143, 185, 150, 0.25); color: #8FB996; }

.iop-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-top: 6px;
}

.intake-q-card {
  background: var(--bg-card-debossed);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 12px;
  margin-bottom: 8px;
}

.intake-q-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.intake-q-title {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-main);
}

.intake-q-desc {
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-top: 4px;
  margin-left: 24px;
  line-height: 1.4;
}

.marriage-intro-banner {
  background: linear-gradient(135deg, rgba(138, 75, 107, 0.2), rgba(83, 36, 61, 0.2));
  border: 1px solid rgba(248, 167, 203, 0.3);
  border-radius: var(--radius-md);
  padding: 12px 14px;
}
.marriage-intro-banner strong {
  color: #F8A7CB;
  font-size: 0.88rem;
}
.marriage-intro-banner p {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.checkin-step-card {
  background: var(--bg-surface);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 12px 14px;
}

.step-num-pill {
  display: inline-block;
  background: rgba(212, 163, 115, 0.15);
  color: var(--gold-bright);
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  margin-bottom: 4px;
}

.step-desc {
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-top: 2px;
  margin-bottom: 6px;
}

.trust-action-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--bg-surface);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 12px;
  cursor: pointer;
}

.trust-action-chk {
  margin-top: 3px;
  accent-color: var(--gold-primary);
}

.trust-action-info strong {
  display: block;
  font-size: 0.84rem;
  color: var(--text-main);
}
.trust-action-info p {
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ==================== SOS CRAVING & GROUNDING STYLING ==================== */
.sos-alert-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(224, 122, 95, 0.15);
  border: 1px solid var(--tag-valley);
  border-radius: var(--radius-md);
  padding: 12px 14px;
}
.sos-alert-banner strong {
  display: block;
  color: #FF8A73;
  font-size: 0.88rem;
}
.sos-alert-banner p {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.halt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
@media (max-width: 480px) {
  .halt-grid {
    grid-template-columns: 1fr;
  }
}

.halt-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-surface);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 10px 12px;
}

.halt-letter {
  width: 28px;
  height: 28px;
  background: rgba(212, 163, 115, 0.2);
  color: var(--gold-bright);
  font-weight: 800;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.halt-info strong {
  display: block;
  font-size: 0.8rem;
  color: var(--text-main);
}
.halt-info p {
  font-size: 0.68rem;
  color: var(--text-muted);
}

.sos-breathing-card {
  background: var(--bg-card-debossed);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  text-align: center;
}

.breathing-circle-wrapper {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 0 auto 12px auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.breathing-ring-outer {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid var(--gold-primary);
  box-shadow: 0 0 20px var(--gold-glow);
  transition: transform 4s ease-in-out;
}
.breathing-ring-outer.inhale { transform: scale(1.2); }
.breathing-ring-outer.hold { transform: scale(1.2); }
.breathing-ring-outer.exhale { transform: scale(0.85); }

.breathing-ring-inner {
  position: relative;
  z-index: 1;
}

.breathing-phase-text {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--gold-bright);
  letter-spacing: 1px;
}

.breathing-timer-text {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-main);
}

.breathing-guidance {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.sponsor-connect-card {
  background: var(--bg-surface);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 14px;
}

.sponsor-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sponsor-btn-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.btn-call-sponsor {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #2E8540, #1B5E20);
  color: #FFFFFF;
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 700;
  padding: 10px;
  border-radius: var(--radius-md);
}

.btn-text-sponsor {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #1976D2, #0D47A1);
  color: #FFFFFF;
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 700;
  padding: 10px;
  border-radius: var(--radius-md);
}

.helpline-mini-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}

.helpline-pill {
  background: var(--bg-card-debossed);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  font-size: 0.72rem;
  text-decoration: none;
  padding: 5px 10px;
  border-radius: var(--radius-full);
}
.helpline-pill:hover {
  color: var(--gold-bright);
  border-color: var(--gold-primary);
}

/* ==================== LIVE CONVERSATIONAL COMPANION ==================== */
.live-companion-hero-box {
  text-align: center;
  padding: 14px 10px;
}

.live-companion-orb-wrapper {
  position: relative;
  width: 100px;
  height: 100px;
  margin: 0 auto 12px auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.live-companion-orb {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--gold-bright) 0%, var(--gold-primary) 50%, #8C5A28 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 25px var(--gold-glow);
  transition: all 0.3s ease;
}
.live-companion-orb.speaking {
  animation: orb-speaking 1.2s infinite alternate;
}
.live-companion-orb.listening {
  box-shadow: 0 0 35px rgba(56, 217, 169, 0.7);
  background: radial-gradient(circle, #8CE3DF 0%, #387D7A 100%);
}

@keyframes orb-speaking {
  0% { transform: scale(0.95); box-shadow: 0 0 20px var(--gold-glow); }
  100% { transform: scale(1.15); box-shadow: 0 0 40px rgba(233, 196, 106, 0.8); }
}

.live-orb-sparkle {
  font-size: 2rem;
}

.live-companion-status-title {
  font-family: var(--font-brand);
  font-size: 1.15rem;
  color: var(--gold-bright);
}

.live-companion-status-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  max-width: 380px;
  margin: 4px auto 0 auto;
}

.live-speech-card {
  background: var(--bg-card-debossed);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
}

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

.badge-live-mic {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  background: rgba(212, 163, 115, 0.2);
  color: var(--gold-bright);
  padding: 2px 6px;
  border-radius: 4px;
}

.auto-speak-indicator {
  font-size: 0.68rem;
  color: var(--text-muted);
}

.live-speech-transcribed-text {
  font-size: 0.86rem;
  font-style: italic;
  color: var(--text-main);
  min-height: 38px;
  line-height: 1.4;
}

.live-dialog-stream {
  max-height: 220px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dialog-bubble-user {
  background: var(--bg-surface-elevated);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 8px 12px;
  align-self: flex-end;
  max-width: 85%;
  font-size: 0.8rem;
  color: var(--text-main);
}

.dialog-bubble-ai {
  background: var(--bg-card-debossed);
  border-left: 3px solid var(--gold-primary);
  border-radius: var(--radius-md);
  padding: 8px 12px;
  align-self: flex-start;
  max-width: 88%;
  font-size: 0.82rem;
  color: var(--gold-bright);
}

.btn-live-mic-large {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  background: linear-gradient(135deg, var(--brass-grad-start), var(--brass-grad-end));
  color: #101114;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 14px;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 20px var(--brass-shadow);
  transition: all 0.2s ease;
}
.btn-live-mic-large.recording {
  background: linear-gradient(135deg, #E07A5F, #C25B40);
  color: #FFFFFF;
  animation: pulse-sos 1.5s infinite;
}

/* ==================== MEETING & GOOGLE CALENDAR SYNC STYLES ==================== */
.meeting-subtabs-nav {
  display: flex;
  gap: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 10px;
  margin-bottom: 12px;
  overflow-x: auto;
}

.meeting-subtab {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: var(--radius-full);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}
.meeting-subtab.active {
  background: var(--gold-primary);
  color: #101114;
  border-color: var(--gold-primary);
}

.gcal-status-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, rgba(46, 90, 136, 0.25), rgba(27, 54, 84, 0.2));
  border: 1px solid #2E5A88;
  border-radius: var(--radius-md);
  padding: 12px 14px;
}

.gcal-banner-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.gcal-icon {
  font-size: 1.6rem;
}

.gcal-status-banner strong {
  display: block;
  font-size: 0.88rem;
  color: #A5D8FF;
}

.gcal-status-banner p {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.gcal-banner-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.gcal-event-card {
  background: var(--bg-surface);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-bottom: 8px;
  transition: all 0.2s ease;
}
.gcal-event-card:hover {
  background: var(--bg-surface-elevated);
  border-color: var(--gold-border-bright);
}

.gcal-event-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.gcal-event-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
}

.gcal-event-badge {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}
.gcal-event-badge.counselor {
  background: rgba(112, 169, 161, 0.25);
  color: #8CE3DF;
  border: 1px solid rgba(112, 169, 161, 0.4);
}
.gcal-event-badge.marriage {
  background: rgba(248, 167, 203, 0.25);
  color: #F8A7CB;
  border: 1px solid rgba(248, 167, 203, 0.4);
}
.gcal-event-badge.iop {
  background: rgba(233, 196, 106, 0.25);
  color: #E9C46A;
  border: 1px solid rgba(233, 196, 106, 0.4);
}
.gcal-event-badge.recovery {
  background: rgba(56, 217, 169, 0.2);
  color: #38D9A9;
  border: 1px solid rgba(56, 217, 169, 0.4);
}
.gcal-event-badge.general {
  background: rgba(142, 150, 170, 0.2);
  color: #B0BAC9;
}

.gcal-event-time {
  font-size: 0.74rem;
  color: var(--gold-bright);
  display: flex;
  align-items: center;
  gap: 6px;
}

.gcal-event-location {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ==================== UNIVERSAL APP UPDATE STYLES ==================== */
.header-update-btn {
  color: var(--gold-bright);
  background: var(--bg-card-debossed);
  border: 1px solid var(--gold-border);
  transition: all 0.25s ease;
}
.header-update-btn:hover {
  background: var(--gold-primary);
  color: #101114;
  transform: rotate(180deg);
  box-shadow: 0 0 12px var(--gold-glow);
}

.settings-update-card {
  background: var(--bg-card-debossed);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}

.update-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.app-version-badge {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  background: rgba(212, 163, 115, 0.2);
  color: var(--gold-bright);
  padding: 3px 8px;
  border-radius: var(--radius-full);
  border: 1px solid var(--gold-border);
}

.update-subtitle {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.btn-update-app {
  display: flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--brass-grad-start), var(--brass-grad-end));
  color: #101114;
  font-weight: 700;
  font-size: 0.78rem;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 4px 14px var(--brass-shadow);
  transition: all 0.2s ease;
}
.btn-update-app:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px var(--brass-shadow);
}

.updating svg {
  animation: spin-update 1s linear infinite;
}

/* ==================== HAVEN LIFE OS & DUAL GOOGLE ACCOUNT STYLES ==================== */

/* Header & Avatar */
.haven-header-btn {
  background: linear-gradient(135deg, rgba(212, 163, 115, 0.22), rgba(160, 110, 60, 0.18));
  border: 1px solid rgba(212, 163, 115, 0.45);
  color: var(--gold-bright);
  cursor: pointer;
  transition: all 0.2s ease;
}
.haven-header-btn:hover {
  background: linear-gradient(135deg, rgba(212, 163, 115, 0.35), rgba(160, 110, 60, 0.3));
  border-color: var(--gold-bright);
  transform: translateY(-1px);
  box-shadow: 0 3px 12px rgba(212, 163, 115, 0.25);
}
.haven-header-btn .brain-sparkle {
  font-size: 0.95rem;
  margin-right: 4px;
}

.user-avatar-small {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--gold-primary);
  margin-right: 6px;
  object-fit: cover;
  flex-shrink: 0;
}

.haven-dock-btn {
  border-color: rgba(212, 163, 115, 0.5) !important;
  color: var(--gold-bright) !important;
  background: linear-gradient(135deg, rgba(45, 38, 28, 0.8), rgba(20, 22, 28, 0.9)) !important;
}
.haven-dock-btn:hover {
  border-color: var(--gold-bright) !important;
  box-shadow: 0 0 16px rgba(212, 163, 115, 0.35) !important;
}

/* Haven Today at a Glance Hero Card */
.haven-brief-card {
  padding: 16px 18px;
  border: 1px solid rgba(212, 163, 115, 0.28);
  background: linear-gradient(165deg, rgba(24, 26, 33, 0.85), rgba(16, 17, 21, 0.95));
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
}

.haven-brief-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.haven-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(212, 163, 115, 0.15);
  border: 1px solid rgba(212, 163, 115, 0.35);
  color: var(--gold-bright);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  letter-spacing: 0.03em;
}

.haven-account-tag {
  font-size: 0.72rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.haven-card-heading {
  font-family: 'Cinzel', serif;
  font-size: 1.15rem;
  color: var(--text-main);
  margin-top: 4px;
  letter-spacing: 0.02em;
}

.haven-brief-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.haven-brief-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 14px;
}

@media (max-width: 768px) {
  .haven-brief-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

.haven-agenda-col, .haven-tasks-col {
  background: rgba(14, 15, 19, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  padding: 12px;
}

.haven-col-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 8px;
}

.haven-col-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-main);
  letter-spacing: 0.02em;
}

.btn-text-gold {
  background: none;
  border: none;
  color: var(--gold-primary);
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
  transition: all 0.2s ease;
}
.btn-text-gold:hover {
  color: var(--gold-bright);
  text-decoration: underline;
}

.haven-events-list, .haven-tasks-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 50px;
}

.haven-agenda-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-sm);
  border-left: 2px solid var(--gold-primary);
}

.agenda-time {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gold-bright);
  min-width: 62px;
  flex-shrink: 0;
}

.agenda-title {
  font-size: 0.8rem;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.haven-task-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-sm);
}

.haven-task-check {
  cursor: pointer;
  width: 15px;
  height: 15px;
  accent-color: var(--gold-primary);
  flex-shrink: 0;
}

.task-title-label {
  font-size: 0.8rem;
  color: var(--text-main);
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.task-due-chip {
  font-size: 0.68rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  padding: 1px 6px;
  border-radius: 4px;
}

.haven-empty-notice {
  font-size: 0.76rem;
  color: var(--text-muted);
  padding: 10px 4px;
  font-style: italic;
}

.haven-quick-add-bar {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
}
.haven-quick-add-bar .custom-input {
  flex: 1;
  min-width: 220px;
}

.haven-brief-footer-row {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  flex-wrap: wrap;
}

.haven-brief-chip {
  font-size: 0.72rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

/* Brain Dump Modal Specifics */
.haven-intro-note {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
  background: rgba(212, 163, 115, 0.08);
  border: 1px solid rgba(212, 163, 115, 0.18);
  padding: 10px 14px;
  border-radius: var(--radius-md);
}

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

.haven-photo-preview-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  margin-top: 8px;
}
.haven-photo-preview-row img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gold-border);
}

.haven-triage-loading {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: rgba(212, 163, 115, 0.1);
  border: 1px solid rgba(212, 163, 115, 0.3);
  border-radius: var(--radius-md);
  color: var(--gold-bright);
  font-size: 0.84rem;
}

.haven-triage-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gold-bright);
  margin-bottom: 8px;
}

.haven-triage-cards-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.haven-staged-card {
  padding: 10px 12px;
  background: rgba(18, 20, 26, 0.7);
  border: 1px solid rgba(212, 163, 115, 0.2);
  border-radius: var(--radius-md);
}

.staged-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.84rem;
  color: var(--text-main);
}

.haven-card-time {
  font-size: 0.72rem;
  color: var(--gold-primary);
  font-weight: 600;
}

.staged-card-sub {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.staged-card-desc {
  font-size: 0.78rem;
  color: var(--text-subtle);
  margin-top: 4px;
  line-height: 1.35;
}

.haven-priority-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}
.haven-priority-badge.high {
  background: rgba(224, 122, 95, 0.2);
  color: #F88A72;
  border: 1px solid rgba(224, 122, 95, 0.4);
}
.haven-priority-badge.medium {
  background: rgba(233, 196, 106, 0.2);
  color: #E9C46A;
  border: 1px solid rgba(233, 196, 106, 0.4);
}
.haven-priority-badge.low {
  background: rgba(42, 157, 143, 0.2);
  color: #8CE3DF;
  border: 1px solid rgba(42, 157, 143, 0.4);
}

.haven-cat-pill {
  font-size: 0.68rem;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.haven-journal-preview-card {
  padding: 12px 14px;
  background: rgba(212, 163, 115, 0.07);
  border-left: 3px solid var(--gold-primary);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  color: var(--text-main);
  line-height: 1.45;
}

.haven-empty-hint {
  font-size: 0.76rem;
  color: var(--text-muted);
  font-style: italic;
  padding: 4px 0;
}

/* Life Vault Modal & Grid */
.life-vault-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 680px) {
  .life-vault-grid {
    grid-template-columns: 1fr;
  }
}

.life-vault-card {
  padding: 12px 14px;
  border: 1px solid rgba(212, 163, 115, 0.25);
  border-radius: var(--radius-md);
  background: rgba(18, 20, 26, 0.65);
  transition: all 0.2s ease;
}
.life-vault-card:hover {
  border-color: var(--gold-primary);
  transform: translateY(-1px);
}

.vault-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.vault-icon {
  font-size: 1rem;
}

.vault-key-title {
  font-size: 0.85rem;
  color: var(--gold-bright);
  flex: 1;
}

.btn-delete-fact {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  transition: color 0.2s;
}
.btn-delete-fact:hover {
  color: #F88A72;
}

.vault-val-text {
  font-size: 0.8rem;
  color: var(--text-main);
  line-height: 1.4;
}

.vault-filter-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* ==========================================================================
   Global Ecosystem Hub Dock (Unified App Navigation)
   ========================================================================== */
.hub-dock-details {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  max-width: 600px;
}

.hub-dock-summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 5px 16px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-muted, #94a3b8);
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
  transition: all 0.2s ease;
  user-select: none;
}
.hub-dock-summary::-webkit-details-marker { display: none; }

.hub-dock-summary:hover {
  color: var(--text-primary, #ffffff);
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.09);
}

.hub-dock-details[open] .hub-summary-arrow {
  transform: rotate(180deg);
}

.hub-summary-arrow {
  font-size: 0.7rem;
  transition: transform 0.2s ease;
}

.hub-dock-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: #151821;
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
  overflow-x: auto;
  max-width: 100%;
  scrollbar-width: none;
  margin-top: 8px;
}
.hub-dock-pill::-webkit-scrollbar { display: none; }

.hub-dock-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #cbd5e1;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.hub-dock-item:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.hub-dock-item.active {
  background: rgba(16, 185, 129, 0.18);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
  font-weight: 700;
}

/* =========================================================
   ☀️ SUNLIGHT OUTDOOR MODE (HIGH CONTRAST FOR BRIGHT WALKS)
   Engineered for outdoor sunlight legibility & glare prevention
   ========================================================= */

/* Header Sunlight Toggle Pill */
.sunlight-toggle-btn {
  background: rgba(234, 179, 8, 0.16) !important;
  color: #F59E0B !important;
  border: 1px solid rgba(234, 179, 8, 0.35) !important;
  font-weight: 700 !important;
  cursor: pointer;
  transition: all 0.2s ease;
}
.sunlight-toggle-btn:hover {
  background: rgba(234, 179, 8, 0.28) !important;
  border-color: #F59E0B !important;
}

body.sunlight-mode {
  --bg-primary: #F8F9FA;
  --bg-surface: #FFFFFF;
  --bg-surface-elevated: #F1F5F9;
  --bg-card: #FFFFFF;
  --bg-card-debossed: #F1F5F9;

  --gold-primary: #92400E;
  --gold-bright: #B45309;
  --gold-glow: rgba(180, 83, 9, 0.18);
  --gold-glow-subtle: rgba(180, 83, 9, 0.08);
  --gold-border: #CBD5E1;
  --gold-border-bright: #94A3B8;

  --brass-grad-start: #D97706;
  --brass-grad-end: #92400E;
  --brass-shadow: rgba(146, 64, 14, 0.25);

  --text-main: #0F172A; /* Deep dark slate for 100% contrast */
  --text-muted: #334155; /* High-contrast readable gray */
  --text-faint: #475569;

  --tag-answered: #B45309;
  --tag-grateful: #15803D;
  --tag-peaceful: #0369A1;
  --tag-valley: #C2410C;
  --tag-guidance: #7E22CE;

  background-color: #F8F9FA !important;
  color: #0F172A !important;
}

body.sunlight-mode .app-ambient-glow {
  opacity: 0.12;
}

body.sunlight-mode .sunlight-toggle-btn {
  background: #0F172A !important;
  color: #F8F9FA !important;
  border-color: #334155 !important;
}

body.sunlight-mode .brand-title {
  color: #0F172A !important;
}

body.sunlight-mode .brand-date {
  color: #475569 !important;
}

body.sunlight-mode .brand-emblem {
  background: linear-gradient(145deg, #FFFFFF, #E2E8F0) !important;
  border: 1.5px solid #CBD5E1 !important;
  color: #B45309 !important;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08) !important;
}

body.sunlight-mode .scripture-card {
  background: #FFFFFF !important;
  border: 1.5px solid #CBD5E1 !important;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06) !important;
}

body.sunlight-mode .scripture-text {
  color: #0F172A !important;
}

body.sunlight-mode .scripture-thought {
  color: #334155 !important;
}

body.sunlight-mode .scripture-ref {
  color: #B45309 !important;
}

body.sunlight-mode .scripture-tag {
  background: #FEF3C7 !important;
  color: #92400E !important;
  border-color: #FCD34D !important;
}

body.sunlight-mode .listen-btn {
  background: #B45309 !important;
  color: #FFFFFF !important;
  border: 1px solid #78350F !important;
  box-shadow: 0 4px 12px rgba(180, 83, 9, 0.25) !important;
}

body.sunlight-mode .listen-icon-circle {
  background: #FFFFFF !important;
  color: #B45309 !important;
}

/* Action Dock in Sunlight Mode */
body.sunlight-mode .brass-btn {
  background: radial-gradient(circle at 35% 30%, #F59E0B 0%, #D97706 60%, #92400E 100%) !important;
  border: 2px solid #78350F !important;
  box-shadow: 0 6px 14px rgba(146, 64, 14, 0.3), inset 0 2px 4px rgba(255,255,255,0.4) !important;
}

body.sunlight-mode .brass-btn svg {
  stroke: #FFFFFF !important;
}

body.sunlight-mode .action-title {
  color: #0F172A !important;
  font-weight: 700 !important;
}

body.sunlight-mode .action-subtitle {
  color: #334155 !important;
  font-weight: 600 !important;
}

/* Nav Tabs in Sunlight Mode */
body.sunlight-mode .app-nav-tabs {
  background: #E2E8F0 !important;
  border: 1px solid #CBD5E1 !important;
}

body.sunlight-mode .nav-tab {
  color: #475569 !important;
}

body.sunlight-mode .nav-tab.active {
  background: #FFFFFF !important;
  color: #B45309 !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.1) !important;
}

body.sunlight-mode .debossed-card {
  background: #FFFFFF !important;
  border: 1.5px solid #CBD5E1 !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06) !important;
}

body.sunlight-mode .haven-brief-card {
  background: #FFFFFF !important;
  border: 1.5px solid #CBD5E1 !important;
}

body.sunlight-mode .haven-card-heading {
  color: #0F172A !important;
}

body.sunlight-mode .haven-col-title {
  color: #0F172A !important;
}

body.sunlight-mode .haven-events-list,
body.sunlight-mode .haven-tasks-list {
  background: #F8FAFC !important;
  border: 1px solid #CBD5E1 !important;
}

body.sunlight-mode .haven-brief-chip {
  background: #F1F5F9 !important;
  color: #334155 !important;
  border-color: #CBD5E1 !important;
}

body.sunlight-mode .timeline-filter-bar .filter-chip {
  background: #FFFFFF !important;
  color: #334155 !important;
  border: 1.5px solid #CBD5E1 !important;
}

body.sunlight-mode .timeline-filter-bar .filter-chip.active {
  background: #B45309 !important;
  color: #FFFFFF !important;
  border-color: #92400E !important;
}

body.sunlight-mode .journal-card {
  background: #FFFFFF !important;
  border: 1.5px solid #CBD5E1 !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06) !important;
}

body.sunlight-mode .journal-card:hover {
  border-color: #B45309 !important;
}

body.sunlight-mode .journal-title {
  color: #0F172A !important;
}

body.sunlight-mode .journal-body {
  color: #1E293B !important;
}

body.sunlight-mode .card-timestamp,
body.sunlight-mode .card-location-tag {
  color: #475569 !important;
}

body.sunlight-mode .search-bar-inner {
  background: #FFFFFF !important;
  border: 1.5px solid #CBD5E1 !important;
}

body.sunlight-mode .search-bar-inner input {
  color: #0F172A !important;
}

body.sunlight-mode .modal-card {
  background: #FFFFFF !important;
  color: #0F172A !important;
  border: 2px solid #CBD5E1 !important;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.25) !important;
}

body.sunlight-mode .modal-title {
  color: #0F172A !important;
}

body.sunlight-mode .modal-kicker {
  color: #B45309 !important;
}

body.sunlight-mode .field-label {
  color: #0F172A !important;
  font-weight: 700 !important;
}

body.sunlight-mode .custom-textarea,
body.sunlight-mode .custom-input,
body.sunlight-mode .custom-input-reply {
  background: #F8FAFC !important;
  color: #0F172A !important;
  border: 1.5px solid #94A3B8 !important;
}

body.sunlight-mode .custom-textarea:focus,
body.sunlight-mode .custom-input:focus {
  border-color: #B45309 !important;
  box-shadow: 0 0 0 3px rgba(180, 83, 9, 0.15) !important;
}

body.sunlight-mode .companion-conversation-card {
  background: #F8FAFC !important;
  border: 1.5px solid #CBD5E1 !important;
}

body.sunlight-mode .companion-reflection {
  color: #0F172A !important;
}

body.sunlight-mode .companion-question {
  color: #B45309 !important;
}

body.sunlight-mode .voice-audio-card {
  background: #F1F5F9 !important;
  border: 1.5px solid #CBD5E1 !important;
}

/* =========================================================
   🧭 IN THE BOAT PROCESS GUIDE & OUTLINE ACCORDION
   ========================================================= */
.journey-guide-details {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 22px;
  border: 1px solid var(--gold-border);
  background: var(--bg-card);
  transition: all 0.25s ease;
}

.journey-guide-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  cursor: pointer;
  list-style: none;
  user-select: none;
  background: rgba(255, 255, 255, 0.02);
  transition: background 0.2s ease;
}
.journey-guide-summary::-webkit-details-marker { display: none; }
.journey-guide-summary:hover {
  background: rgba(212, 163, 115, 0.08);
}

.guide-summary-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.guide-compass-icon {
  font-size: 1.4rem;
  background: rgba(212, 163, 115, 0.15);
  padding: 6px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(212, 163, 115, 0.3);
}

.guide-summary-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  display: block;
}

.guide-summary-sub {
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.guide-expand-pill {
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: rgba(212, 163, 115, 0.12);
  color: var(--gold-bright);
  border: 1px solid rgba(212, 163, 115, 0.25);
  font-weight: 600;
  white-space: nowrap;
}

.journey-guide-body {
  padding: 16px 18px 20px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

body.sunlight-mode .journey-guide-body {
  border-top-color: #CBD5E1;
}

.guide-process-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.guide-card {
  display: flex;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition: all 0.2s ease;
}
.guide-card:hover {
  border-color: var(--gold-border-bright);
  background: rgba(212, 163, 115, 0.04);
}

body.sunlight-mode .guide-card {
  background: #F8FAFC;
  border: 1.5px solid #CBD5E1;
}

.guide-card-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
  padding-top: 2px;
}

.guide-card-content h4 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--gold-bright);
  margin-bottom: 4px;
}
body.sunlight-mode .guide-card-content h4 {
  color: #B45309;
}

.guide-card-content p {
  font-size: 0.8rem;
  color: var(--text-main);
  line-height: 1.45;
  margin-bottom: 4px;
}

.guide-card-content .guide-sub-note {
  font-size: 0.74rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* =========================================================
   🎙️ ENHANCED VOICE RECORDING & COMPANION CONTROLS
   ========================================================= */
.btn-get-companion-reflection {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px 16px;
  background: linear-gradient(135deg, rgba(212, 163, 115, 0.2), rgba(184, 128, 68, 0.25));
  border: 1.5px solid var(--gold-bright);
  border-radius: var(--radius-md);
  color: var(--gold-bright);
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 8px;
}
.btn-get-companion-reflection:hover {
  background: linear-gradient(135deg, rgba(212, 163, 115, 0.35), rgba(184, 128, 68, 0.4));
  transform: translateY(-1px);
}
body.sunlight-mode .btn-get-companion-reflection {
  background: #FEF3C7;
  color: #92400E;
  border-color: #B45309;
}

.voice-recording-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: #991B1B;
  color: #FFFFFF;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 10px 25px rgba(153, 27, 27, 0.5);
  z-index: 9999;
  cursor: pointer;
  animation: pulseRecording 1.5s infinite;
}
@keyframes pulseRecording {
  0% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7); }
  70% { box-shadow: 0 0 0 14px rgba(220, 38, 38, 0); }
  100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); }
}

.multi-photo-count-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #10B981;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 8px;
}



