@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

/* ==========================================
   CSS CUSTOM VARIABLES & DESIGN TOKENS
   ========================================== */
:root {
  /* Colors - Light Theme Default */
  --bg-color: #fbfbfd;
  --surface-color: #ffffff;
  --card-bg: #ffffff;
  --surface-hover: #f5f5f7;
  --text-color: #0c0a09;
  --text-muted: #78716c;
  --accent-color: #10b981;
  --accent-hover: #059669;
  --accent-light: rgba(16, 185, 129, 0.1);
  --border-color: #e7e5e4;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
  
  /* Context Colors */
  --bible-blue: #3b82f6;
  --bible-blue-light: rgba(59, 130, 246, 0.1);
  --growth-amber: #f59e0b;
  --growth-amber-light: rgba(245, 158, 11, 0.1);
  --church-teal: #14b8a6;
  --church-teal-light: rgba(20, 184, 166, 0.1);
  --error-red: #ef4444;
  --success-green: #10b981;
  
  /* Font Families */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Layout Constants */
  --sidebar-width: 260px;
  --header-height: 70px;
  --nav-bar-height: 64px;
  --app-safe-area-top: env(safe-area-inset-top, 0px);
  --app-safe-area-bottom: env(safe-area-inset-bottom, 0px);

  /* Grid overlay for Daily Victory nature backdrop */
  --glass-bg: rgba(255, 255, 255, 0.65);
  --glass-border: rgba(255, 255, 255, 0.4);
  --glass-text: #0c0a09;
}

[data-theme="dark"] {
  /* Colors - Stark & High-Contrast Dark Theme */
  --bg-color: #000000;
  --surface-color: #000000;
  --card-bg: #000000;
  --surface-hover: #121212;
  --text-color: #ffffff;
  --text-muted: #a8a29e;
  --accent-color: #10b981;
  --accent-hover: #34d399;
  --accent-light: rgba(16, 185, 129, 0.15);
  --border-color: #262626;
  --shadow-sm: 0 0 0 1px #262626;
  --shadow-md: 0 0 0 1px #262626, 0 4px 12px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 0 0 1px #262626, 0 12px 24px rgba(0, 0, 0, 0.7);

  /* Glassmorphism Dark Layer */
  --glass-bg: rgba(0, 0, 0, 0.7);
  --glass-border: rgba(255, 255, 255, 0.15);
  --glass-text: #ffffff;
}

/* ==========================================
   RESET & RESET PLUMBING
   ========================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden; /* App shell scroll is handled in view container */
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.3s ease, color 0.3s ease;
}

html {
  min-height: 100%;
  background-color: var(--bg-color);
}

body {
  min-height: 100dvh;
}

/* ==========================================
   SPLASH SCREEN
   ========================================== */
.splash-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.splash-logo {
  width: 100px;
  height: 100px;
  animation: pulse-glow 2s infinite ease-in-out;
}

.splash-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  margin-top: 20px;
  color: var(--accent-color);
  letter-spacing: -0.025em;
}

.splash-subtitle {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 8px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ==========================================
   AUTHENTICATION VIEW
   ========================================== */
.auth-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 24px;
  background-color: var(--bg-color);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  overflow-y: auto;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.auth-card {
  background-color: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 40px;
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 24px;
  animation: slide-up 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.auth-header {
  text-align: center;
}

.auth-logo {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  display: block;
}

.auth-title {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.auth-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 6px;
}

.auth-form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.auth-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-color);
}

.auth-input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background-color: var(--surface-color);
  color: var(--text-color);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-input:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.auth-btn {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  border: none;
  background-color: var(--accent-color);
  color: white;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.auth-btn:hover {
  background-color: var(--accent-hover);
}

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

.auth-footer {
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 8px;
}

.auth-link {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
}

.auth-link:hover {
  text-decoration: underline;
}

.auth-error-msg {
  color: var(--error-red);
  font-size: 0.875rem;
  text-align: center;
  background-color: rgba(239, 68, 68, 0.08);
  padding: 10px;
  border-radius: 8px;
  border: 1px solid rgba(239, 68, 68, 0.2);
  display: none;
}

.code-inputs {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.code-input {
  width: 50px;
  height: 54px;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background-color: var(--surface-color);
  color: var(--text-color);
}

.hidden {
  display: none !important;
  opacity: 0;
  pointer-events: none;
}

/* ==========================================
   APP SHELL MAIN LAYOUT
   ========================================== */
.app-shell {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: var(--header-height) 1fr;
  width: 100%;
  height: 100%;
  padding-top: var(--app-safe-area-top);
  overflow: hidden;
  position: relative;
  background-color: var(--bg-color);
}

.app-shell::before,
.auth-container::before,
.splash-screen::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--app-safe-area-top);
  background-color: var(--bg-color);
  pointer-events: none;
  z-index: 10000;
}

/* Header */
.app-header {
  grid-column: 1 / -1;
  height: var(--header-height);
  background-color: var(--surface-color);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 100;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.header-logo {
  width: 36px;
  height: 36px;
}

.header-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--accent-color);
  letter-spacing: -0.01em;
}

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

.streak-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--growth-amber);
  background-color: var(--growth-amber-light);
  padding: 6px 12px;
  border-radius: 9999px;
  cursor: pointer;
  transition: transform 0.1s ease;
}

.streak-badge:active {
  transform: scale(0.95);
}

.header-btn {
  background: none;
  border: none;
  color: var(--text-color);
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
  position: relative;
}

.header-btn:hover {
  background-color: var(--surface-hover);
}

.badge-dot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 8px;
  height: 8px;
  background-color: var(--accent-color);
  border-radius: 50%;
  border: 2px solid var(--surface-color);
}

.profile-avatar-btn {
  appearance: none;
  background: var(--surface-color);
  padding: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--border-color);
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.15s ease;
}

.profile-avatar-btn:hover {
  border-color: var(--accent-color);
  transform: translateY(-1px);
}

.profile-avatar-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Sidebar (Desktop only) */
.app-sidebar {
  display: none;
  background-color: var(--surface-color);
  border-right: 1px solid var(--border-color);
  padding: 24px 16px;
  flex-direction: column;
  gap: 8px;
  z-index: 90;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.nav-link:hover {
  background-color: var(--surface-hover);
  color: var(--text-color);
}

.nav-link.active {
  background-color: var(--accent-light);
  color: var(--accent-color);
  font-weight: 600;
}

.nav-link-icon {
  width: 20px;
  height: 20px;
}

/* Mobile Navigation Bottom Bar */
.app-nav-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: var(--nav-bar-height);
  background-color: var(--surface-color);
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 100;
  padding-bottom: var(--app-safe-area-bottom);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.6875rem;
  font-weight: 500;
  flex: 1;
  padding: 8px 0;
  cursor: pointer;
  transition: color 0.2s ease;
}

.mobile-nav-item:hover {
  color: var(--text-color);
}

.mobile-nav-item.active {
  color: var(--accent-color);
  font-weight: 600;
}

.mobile-nav-item i {
  width: 22px;
  height: 22px;
}

/* Main View Area Container */
.app-main-content {
  width: 100%;
  height: 100%;
  overflow-y: auto;
  padding: 24px;
  padding-bottom: calc(var(--nav-bar-height) + 40px); /* For mobile padding */
  position: relative;
  scrollbar-width: thin;
  scrollbar-color: var(--border-color) transparent;
}

/* Scrollbars styling */
.app-main-content::-webkit-scrollbar {
  width: 6px;
}
.app-main-content::-webkit-scrollbar-thumb {
  background-color: var(--border-color);
  border-radius: 3px;
}

/* ==========================================
   VIEW SCREENS TRANSITIONS
   ========================================== */
.view-screen {
  width: 100%;
  max-width: 1024px;
  margin: 0 auto;
  animation: fade-in 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

#view-home {
  max-width: 680px;
  gap: 16px;
}

/* ==========================================
   DASHBOARD / HOME VIEW
   ========================================== */
.welcome-section {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 0;
}

.welcome-date {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent-color);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.welcome-section h1 {
  font-family: var(--font-heading);
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1.15;
}

.welcome-name {
  font-weight: 800;
}

/* Compact Daily Victory Card */
.daily-victory-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.44)),
    var(--daily-victory-bg, url("public/nature-bg-dawn.svg")) center / cover no-repeat,
    var(--surface-color);
  min-height: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-color);
  box-shadow: none;
  transition: border-color 0.2s ease;
}

[data-theme="dark"] .daily-victory-card {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.5)),
    var(--daily-victory-bg, url("public/nature-bg-dawn.svg")) center / cover no-repeat,
    #050505;
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: none;
}

.glass-overlay {
  background: rgba(0, 0, 0, 0.18);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-top: none;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: var(--text-color);
}

.victory-badge {
  background-color: transparent;
  color: var(--accent-color);
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0;
  border-radius: 0;
  align-self: flex-start;
  text-transform: none;
  letter-spacing: 0;
  border: 0;
}

.scripture-text {
  font-family: var(--font-body);
  font-size: 1.02rem;
  font-weight: 500;
  line-height: 1.45;
  font-style: italic;
  color: #ffffff;
  position: relative;
  padding-left: 0;
}

.scripture-text::before {
  content: none;
}

.scripture-ref {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.72);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: -4px;
}

.scripture-ref svg {
  width: 14px;
  height: 14px;
  color: var(--accent-color);
}

.victory-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 2px;
}

.victory-btn {
  background-color: var(--accent-color);
  color: white;
  border: none;
  padding: 9px 16px;
  border-radius: 12px;
  font-size: 0.8125rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.victory-btn:hover {
  background-color: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: none;
}

.victory-btn:active {
  transform: translateY(0);
}

.victory-btn.logged {
  background-color: transparent;
  border: 1px solid var(--accent-color);
  color: var(--accent-color);
  box-shadow: none;
  cursor: default;
  opacity: 0.8;
}

.secondary-victory-btn {
  background: rgba(0, 0, 0, 0.18);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 9px 16px;
  border-radius: 12px;
  font-size: 0.8125rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.secondary-victory-btn:hover {
  background: var(--surface-hover);
  border-color: var(--text-muted);
}

/* Quick Stats Row */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

@media(min-width: 640px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-card {
  background-color: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: none;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
  position: relative;
  overflow: hidden;
  min-height: 82px;
}

.stat-card::after {
  content: none;
}

.stat-card:hover {
  background-color: var(--surface-hover);
  border-color: var(--accent-color);
}

.stat-card:active {
  transform: none;
}

.stat-header {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0;
}

.stat-header svg,
.stat-header i {
  width: 13px;
  height: 13px;
}

.points-card .stat-header svg { color: var(--accent-color); }
.streak-card .stat-header svg { color: var(--growth-amber); }
.fasts-card .stat-header svg { color: var(--bible-blue); }
.growth-card .stat-header svg { color: var(--church-teal); }

.stat-value {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-color);
  line-height: 1.1;
}

.stat-footer {
  font-size: 0.725rem;
  color: var(--text-muted);
  font-weight: 500;
}

#view-home .scripture-ref svg,
#view-home .victory-actions svg {
  width: 16px;
  height: 16px;
}

/* Dashboard Action Cards */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

@media(min-width: 768px) {
  .dashboard-grid {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

.panel-card {
  background-color: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 14px;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.panel-title {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  color: var(--text-muted);
}

#view-home .panel-card {
  border-radius: 12px;
  padding: 14px;
  gap: 10px;
}

#view-home .panel-title {
  font-size: 0.92rem;
}

#view-home .panel-title svg,
#view-home .panel-title i {
  width: 16px;
  height: 16px;
  color: var(--accent-color);
}

/* Fasting Quick Card Widget */
.fasting-widget-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.fasting-ring-container {
  position: relative;
  width: 90px;
  height: 90px;
}

.fasting-ring-svg {
  display: none;
}

.fasting-ring-bg {
  fill: none;
  stroke: var(--border-color);
  stroke-width: 6;
}

.fasting-ring-indicator {
  fill: none;
  stroke: var(--accent-color);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 238.76;
  stroke-dashoffset: 238.76;
  transition: stroke-dashoffset 0.5s ease;
}

.fasting-ring-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 800;
  text-align: center;
  color: var(--text-color);
}

.fasting-widget-details {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  min-width: 0;
}

.fasting-widget-kicker {
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.fasting-widget-title {
  font-weight: 700;
  font-size: 0.95rem;
  font-family: var(--font-heading);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fasting-widget-subtitle {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}

.fasting-widget-time {
  color: var(--accent-color);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 800;
  white-space: nowrap;
}

.fasting-widget-btn {
  width: 32px;
  height: 32px;
  padding: 0;
  background-color: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  font-size: 0;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.fasting-widget-btn:hover {
  background-color: var(--surface-hover);
  color: var(--accent-color);
  transform: none;
}

.fasting-widget-btn svg {
  width: 16px;
  height: 16px;
}

.fasting-widget-text-btn {
  border: 1px solid var(--border-color);
  border-radius: 10px;
  background: transparent;
  color: var(--text-color);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 8px 12px;
}

.fasting-widget-text-btn:hover {
  background: var(--surface-hover);
  color: var(--accent-color);
}

/* Upcoming Fast Widget Card styles */
.upcoming-fast-widget-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: transparent;
  border-radius: 0;
  padding: 0;
  border: 0;
  box-shadow: none;
  transition: color 0.2s ease;
  cursor: pointer;
}

.upcoming-fast-widget-content:hover {
  border-color: transparent;
  transform: none;
  box-shadow: none;
}

.upcoming-fast-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.upcoming-fast-tag {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.tag-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  font-weight: 700;
}

.upcoming-fast-countdown {
  text-align: right;
  flex-shrink: 0;
}

.countdown-label {
  font-size: 0.64rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.countdown-value {
  font-family: var(--font-heading);
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--growth-amber);
  letter-spacing: 0;
}

.upcoming-fast-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-color);
  font-family: var(--font-heading);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.upcoming-fast-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 600;
}

.upcoming-fast-meta span {
  display: inline-flex;
  align-items: center;
}

.upcoming-fast-meta span + span::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 3px;
  margin-right: 6px;
  border-radius: 50%;
  background-color: var(--text-muted);
  opacity: 0.7;
}

/* Growth Checkin CTA Card */
.home-reflection-card {
  justify-content: center;
}

.growth-cta-box {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  transition: none;
}

[data-theme="dark"] .growth-cta-box {
  background: transparent;
  border: 0;
}

.growth-cta-box:hover {
  border-color: transparent;
  transform: none;
  box-shadow: none;
}

.growth-cta-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.growth-cta-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-color);
  font-family: var(--font-heading);
}

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

.home-mood-chart {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 8px;
}

.home-mood-row {
  display: grid;
  grid-template-columns: minmax(72px, 0.8fr) minmax(0, 1.4fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 22px;
  font-size: 0.74rem;
  color: var(--text-muted);
}

.home-mood-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-color);
  font-weight: 700;
}

.home-mood-track {
  height: 7px;
  border-radius: 999px;
  background-color: var(--border-color);
  overflow: hidden;
}

.home-mood-fill {
  display: block;
  height: 100%;
  min-width: 7px;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent-color), var(--growth-amber));
}

.home-mood-count {
  color: var(--text-muted);
  font-weight: 700;
  min-width: 18px;
  text-align: right;
}

.home-mood-summary,
.home-mood-empty {
  color: var(--text-muted);
  font-size: 0.76rem;
  line-height: 1.35;
}

.growth-cta-btn {
  margin-top: 6px;
  align-self: flex-start;
  background-color: var(--growth-amber);
  color: white;
  border: none;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: none;
}

.growth-cta-btn:hover {
  background-color: #d97706;
  transform: none;
  box-shadow: none;
}

/* ==========================================
   BIBLE READER SCREEN
   ========================================== */
.bible-header-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background-color: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 12px;
  box-shadow: var(--shadow-sm);
}

.bible-selectors {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 118px 42px;
  gap: 8px;
  align-items: center;
}

.bible-select {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  background-color: var(--surface-color);
  color: var(--text-color);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
}

.bible-select:focus {
  border-color: var(--bible-blue);
}

.translation-tabs {
  grid-column: 1 / -1;
  display: flex;
  background-color: var(--bg-color);
  border-radius: 10px;
  padding: 4px;
  border: 1px solid var(--border-color);
}

.translation-tab {
  flex: 1;
  min-height: 34px;
  padding: 6px 8px;
  border-radius: 6px;
  border: none;
  background: none;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.translation-tab.active {
  background-color: var(--surface-color);
  color: var(--bible-blue);
  box-shadow: var(--shadow-sm);
}

/* Bible Reader Content */
.bible-reader-card {
  background-color: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 32px 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.bible-chapter-navigation-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 16px;
  gap: 12px;
}

@media (max-width: 640px) {
  .bible-chapter-navigation-header {
    padding-bottom: 10px;
  }
}

.bible-nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background-color: var(--surface-color);
  color: var(--text-color);
  cursor: pointer;
  transition: all 0.2s ease;
}

.bible-nav-btn:hover {
  background-color: var(--surface-hover);
  border-color: var(--bible-blue);
  color: var(--bible-blue);
}

.bible-nav-btn svg, .bible-nav-btn i {
  width: 20px;
  height: 20px;
}

.bible-chapter-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-color);
  text-align: center;
  margin: 0;
  flex: 1;
}

.bible-content-area {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--text-color);
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-family: 'Inter', Georgia, serif;
}

.bible-verse-row {
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background-color 0.2s ease;
  position: relative;
}

.bible-verse-row:hover {
  background-color: var(--surface-hover);
}

.verse-num {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--bible-blue);
  vertical-align: super;
  margin-right: 6px;
}

/* Verse Highlighting Colors */
.hl-yellow { background-color: rgba(254, 240, 138, 0.4) !important; }
.hl-emerald { background-color: rgba(16, 185, 129, 0.2) !important; }
.hl-blue { background-color: rgba(59, 130, 246, 0.2) !important; }
.hl-orange { background-color: rgba(249, 115, 22, 0.2) !important; }

/* Highlight Action Menu Overlay */
.verse-highlight-popover {
  position: static;
  transform: none;
  background-color: var(--surface-color);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  border-radius: 12px;
  padding: 6px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 1;
  width: fit-content;
  max-width: calc(100% - 40px);
  margin: 4px auto 12px;
  animation: scale-up 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.hl-color-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: transform 0.1s ease;
}

.hl-color-btn:hover {
  transform: scale(1.15);
}

.hl-clear-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--border-color);
}

.hl-clear-btn:hover {
  color: var(--error-red);
  background-color: rgba(239, 68, 68, 0.05);
}

/* Claim Daily bread */
.bible-claim-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  margin-top: 24px;
}

.bible-claim-btn {
  background-color: var(--bible-blue);
  color: white;
  border: none;
  padding: 12px 32px;
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
  max-width: 260px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.bible-claim-btn:hover {
  background-color: #2563eb;
  transform: translateY(-1px);
}

.bible-claim-btn:disabled {
  background-color: var(--border-color);
  color: var(--text-muted);
  border: none;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ==========================================
   GROWTH / EMOTIONAL CHECK-IN SCREEN
   ========================================== */
.growth-header-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
}

.mood-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

@media(min-width: 480px) {
  .mood-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.mood-button {
  background-color: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 16px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mood-button:hover {
  border-color: var(--growth-amber);
  background-color: var(--surface-hover);
}

.mood-button.selected {
  border-color: var(--growth-amber);
  background-color: var(--growth-amber-light);
  box-shadow: 0 0 0 2px var(--growth-amber);
}

.mood-emoji {
  font-size: 2rem;
}

.mood-label {
  font-size: 0.8125rem;
  font-weight: 600;
}

/* Slider */
.slider-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 0;
}

.slider-label-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  font-weight: 600;
}

.mood-intensity-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: var(--border-color);
  outline: none;
}

.mood-intensity-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--growth-amber);
  cursor: pointer;
  box-shadow: var(--shadow-md);
  border: 2px solid white;
}

.mood-intensity-slider::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--growth-amber);
  cursor: pointer;
  box-shadow: var(--shadow-md);
  border: 2px solid white;
}

/* Growth Output Card */
.devotional-output-card {
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-left: 6px solid var(--growth-amber);
  background-color: var(--surface-color);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: var(--shadow-md);
  animation: slide-up 0.4s ease;
}

.devo-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.devo-section h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--growth-amber);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.devo-section p {
  font-size: 0.95rem;
  line-height: 1.5;
}

.devo-scripture {
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.5;
  border-left: 2px solid var(--border-color);
  padding-left: 14px;
  margin: 6px 0;
}

.devo-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.devo-btn {
  background-color: var(--growth-amber);
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
}

.devo-btn:hover {
  background-color: #d97706;
}

/* ==========================================
   FASTING TRACKER SCREEN
   ========================================== */
.fasting-setup-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media(min-width: 640px) {
  .fasting-setup-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.fasting-input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fasting-grid-full {
  grid-column: 1 / -1;
}

.fasting-input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  background-color: var(--surface-color);
  color: var(--text-color);
  font-family: var(--font-body);
}

.presets-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.preset-chip {
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: var(--surface-color);
  color: var(--text-color);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.preset-chip:hover {
  border-color: var(--accent-color);
}

.preset-chip.selected {
  background-color: var(--accent-color);
  color: white;
  border-color: var(--accent-color);
}

.fasting-stats-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.fasting-stat-card {
  border: 1px solid var(--border-color);
  background: var(--surface-color);
  border-radius: 12px;
  padding: 12px 10px;
  min-height: 76px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
}

.fasting-stat-card span {
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.fasting-stat-card strong {
  color: var(--text-color);
  font-family: var(--font-heading);
  font-size: 1.35rem;
  line-height: 1;
}

.fasting-schedule-card {
  gap: 16px;
}

.fasting-card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.fasting-card-heading svg {
  width: 22px;
  height: 22px;
  color: var(--accent-color);
}

.fasting-muted {
  color: var(--text-muted);
  font-size: 0.8125rem;
  line-height: 1.4;
}

.weekday-chip-row {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.weekday-chip {
  min-height: 38px;
  border: 1px solid var(--border-color);
  border-radius: 9px;
  background: var(--surface-color);
  color: var(--text-color);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
}

.weekday-chip.selected {
  background: var(--accent-color);
  border-color: var(--accent-color);
  color: #ffffff;
}

.fasting-schedule-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fasting-schedule-item {
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 14px;
  background: var(--surface-color);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fasting-schedule-item-main {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.fasting-schedule-title {
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.25;
}

.fasting-schedule-meta {
  color: var(--text-muted);
  font-size: 0.78rem;
  line-height: 1.45;
  margin-top: 4px;
}

.fasting-schedule-remove {
  flex: 0 0 auto;
  border: 1px solid var(--border-color);
  background: var(--surface-color);
  color: var(--text-muted);
  border-radius: 10px;
  min-height: 36px;
  padding: 0 10px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.fasting-schedule-remove svg {
  width: 14px;
  height: 14px;
}

/* Active Fasting Card */
.active-fast-card {
  background-color: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  animation: fade-in 0.3s ease;
}

.timer-ring-container {
  position: relative;
  width: 200px;
  height: 200px;
  flex: 0 0 auto;
  overflow: visible;
}

.timer-circle-svg {
  display: block;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  overflow: visible;
}

.timer-circle-bg {
  fill: none;
  stroke: var(--surface-hover);
  stroke-width: 12;
}

.timer-circle-indicator {
  fill: none;
  stroke: var(--accent-color);
  stroke-width: 12;
  stroke-linecap: round;
  stroke-dasharray: 565.48;
  stroke-dashoffset: 565.48;
  transition: stroke-dashoffset 0.5s linear;
}

.timer-text-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.timer-countdown {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.timer-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  margin-top: 4px;
}

.active-fast-details {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.active-fast-intention {
  font-size: 1.125rem;
  font-weight: 700;
}

.active-fast-times {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.active-fast-actions {
  display: flex;
  gap: 12px;
  width: 100%;
  max-width: 320px;
}

.cancel-fast-btn {
  flex: 1;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  background-color: transparent;
  color: var(--text-muted);
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
}

.cancel-fast-btn:hover {
  background-color: rgba(239, 68, 68, 0.05);
  color: var(--error-red);
  border-color: rgba(239, 68, 68, 0.2);
}

.complete-fast-btn {
  flex: 1;
  padding: 12px;
  border-radius: 10px;
  border: none;
  background-color: var(--accent-color);
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
}

.complete-fast-btn:hover {
  background-color: var(--accent-hover);
}

/* History Logs */
.history-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.history-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 16px;
}

.history-item-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.history-item-title {
  font-weight: 600;
  font-size: 0.95rem;
}

.history-item-subtitle {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.history-item-badge {
  background-color: var(--accent-light);
  color: var(--accent-color);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
}

/* ==========================================
   CHURCH FINDER SCREEN
   ========================================== */
.church-explorer-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media(min-width: 768px) {
  .church-explorer-layout {
    grid-template-columns: 1fr 1fr;
  }
}

/* OpenStreetMap styling */
.church-map-card {
  position: relative;
  background-color: #e0f2fe;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  height: min(58vh, 390px);
  min-height: 320px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.church-osm-map {
  width: 100%;
  height: 100%;
  display: block;
  z-index: 1;
}

.leaflet-container {
  font-family: var(--font-body);
}

.leaflet-control-attribution {
  font-size: 9px;
}

.church-map-pin {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--church-teal);
  border: 3px solid #ffffff;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.22);
  color: #ffffff;
  display: grid;
  place-items: center;
}

.church-map-pin.saved {
  background: #ec4899;
}

.church-map-pin.user {
  background: #3b82f6;
  width: 22px;
  height: 22px;
}

.church-map-pin::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: inset 0 0 0 999px rgba(255, 255, 255, 0.85);
}

.church-map-pin.user::after {
  width: 6px;
  height: 6px;
}

.map-control-overlay {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  z-index: 500;
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 10px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 8px;
}

.map-search-input {
  flex: 1;
  border: none;
  outline: none;
  font-family: var(--font-body);
  font-size: 0.875rem;
  background: transparent;
  color: var(--text-color);
}

.map-locate-btn {
  position: absolute;
  right: 12px;
  bottom: 42px;
  z-index: 500;
  border: none;
  border-radius: 999px;
  background: var(--surface-color);
  color: var(--text-color);
  box-shadow: var(--shadow-md);
  padding: 9px 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  font-weight: 700;
  cursor: pointer;
}

.map-locate-btn:active {
  transform: scale(0.97);
}

.map-status-pill {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 10px;
  z-index: 500;
  background: rgba(255, 255, 255, 0.92);
  color: #334155;
  border: 1px solid rgba(148, 163, 184, 0.45);
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 0.72rem;
  font-weight: 700;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .map-status-pill {
  background: rgba(0, 0, 0, 0.76);
  color: var(--text-muted);
}

/* Church Item List */
.church-list-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: none;
  overflow-y: auto;
  padding-right: 2px;
}

.church-card {
  background-color: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.church-card:hover {
  border-color: var(--church-teal);
  background-color: var(--surface-hover);
}

.church-card.selected {
  border-color: var(--church-teal);
  box-shadow: 0 0 0 2px var(--church-teal);
}

.church-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.church-name {
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.25;
}

.church-distance {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
}

.church-info-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.church-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 4px;
}

.fav-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8125rem;
  font-weight: 600;
  transition: color 0.15s ease;
}

.fav-btn.favorited {
  color: #ec4899; /* Pink-red for favorited */
}

.fav-btn:hover {
  opacity: 0.85;
}

.church-btn {
  background-color: var(--church-teal-light);
  color: var(--church-teal);
  border: none;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.15s;
}

.church-btn:hover {
  background-color: var(--church-teal);
  color: white;
}

/* Custom modal overlay for Church details */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-card {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 32px;
  width: 100%;
  max-width: 500px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: scale-up 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.modal-close-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
}

/* ==========================================
   PROFILE SCREEN
   ========================================== */
.profile-overview-card {
  background-color: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: var(--shadow-sm);
  align-items: center;
  text-align: center;
}

@media(min-width: 640px) {
  .profile-overview-card {
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: 32px;
  }
}

.profile-avatar-container {
  position: relative;
  width: 110px;
  height: 110px;
}

.profile-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--accent-light);
}

.profile-avatar-upload-btn {
  position: absolute;
  bottom: 0;
  right: 0;
  background-color: var(--accent-color);
  color: white;
  border: 2px solid var(--surface-color);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.profile-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  width: 100%;
}

.profile-name {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
}

.profile-level {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent-color);
}

.progress-track-wrapper {
  margin-top: 10px;
  width: 100%;
}

.progress-header-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.progress-bar-bg {
  width: 100%;
  height: 10px;
  background-color: var(--surface-hover);
  border-radius: 5px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #ec4899, #8b5cf6, #3b82f6);
  width: 0%;
  border-radius: 5px;
  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Points Breakdown Panel */
.points-intro {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.points-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.point-rule {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 12px;
  background-color: var(--surface-hover);
  border: 1px solid var(--border-color);
}

.point-rule-icon {
  color: var(--accent-color);
}

.point-rule-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.point-rule-title {
  font-size: 0.8125rem;
  font-weight: 600;
}

.point-rule-value {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Settings Form Preferences */
.profile-settings-card {
  gap: 16px;
}

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

.pref-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  background: var(--surface-color);
}

.pref-row:last-child {
  border-bottom: 1px solid var(--border-color);
}

.settings-action-row {
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

.settings-action-row:hover {
  background: var(--surface-hover);
  border-color: rgba(16, 185, 129, 0.35);
}

.settings-action-row:active {
  transform: scale(0.99);
}

.pref-label-col {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.settings-row-icon {
  width: 34px;
  height: 34px;
  padding: 8px;
  border-radius: 10px;
  background: var(--accent-light);
  color: var(--accent-color);
}

.pref-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.pref-title {
  font-size: 0.9rem;
  font-weight: 600;
}

.pref-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.settings-dev-tools {
  margin-top: 10px;
  padding-top: 16px;
  border-top: 1px dashed var(--border-color);
}

.profile-settings-actions {
  border-top: 1px solid var(--border-color);
  padding-top: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.settings-secondary-btn,
.settings-primary-btn {
  border: 1px solid var(--border-color);
  border-radius: 12px;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
}

.settings-secondary-btn {
  background: var(--surface-color);
  color: var(--text-color);
}

.settings-primary-btn {
  background: var(--accent-color);
  border-color: var(--accent-color);
  color: #ffffff;
}

.settings-secondary-btn svg,
.settings-primary-btn svg {
  width: 16px;
  height: 16px;
}

/* Toggle Switch Styling */
.switch-btn {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 24px;
  flex: 0 0 auto;
}

.switch-btn input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--border-color);
  transition: .3s;
  border-radius: 24px;
}

.switch-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}

input:checked + .switch-slider {
  background-color: var(--accent-color);
}

/* Profile action sheet */
.profile-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 2400;
  background: rgba(15, 23, 42, 0.38);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.profile-menu-sheet {
  width: 100%;
  max-width: 480px;
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-bottom: none;
  border-top-left-radius: 22px;
  border-top-right-radius: 22px;
  padding: 10px 16px 18px;
  box-shadow: 0 -12px 36px rgba(15, 23, 42, 0.18);
  animation: slideUpBottom 0.22s ease-out;
}

.profile-menu-handle {
  width: 42px;
  height: 4px;
  border-radius: 999px;
  background: var(--border-color);
  margin: 0 auto 14px;
}

.profile-menu-header {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 36px;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.profile-menu-header img {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  object-fit: cover;
  border: 2px solid var(--accent-color);
}

.profile-menu-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-color);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-menu-email {
  font-size: 0.78rem;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-menu-close {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 10px;
  background: var(--surface-hover);
  color: var(--text-color);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.profile-menu-close svg {
  width: 18px;
  height: 18px;
}

.profile-menu-actions {
  display: grid;
  gap: 8px;
  padding-top: 12px;
}

.profile-menu-action {
  width: 100%;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  min-height: 48px;
  background: var(--surface-color);
  color: var(--text-color);
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 700;
  font-family: var(--font-body);
  text-decoration: none;
  cursor: pointer;
}

.profile-menu-action:hover {
  background: var(--surface-hover);
}

.profile-menu-action svg {
  width: 18px;
  height: 18px;
  color: var(--accent-color);
}

.profile-menu-action.danger {
  color: var(--error-red);
}

.profile-menu-action.danger svg {
  color: var(--error-red);
}

input:checked + .switch-slider:before {
  transform: translateX(22px);
}

.profile-legal-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 12px;
}

.profile-legal-links a {
  color: var(--text-muted);
  text-decoration: none;
}

.profile-legal-links a:hover {
  text-decoration: underline;
  color: var(--text-color);
}

/* ==========================================
   ADMIN PANEL
   ========================================== */
.admin-panel-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.admin-stat-card {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 14px;
  min-height: 82px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
}

.admin-stat-card span {
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.admin-stat-card strong {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  line-height: 1;
}

.admin-toolbar {
  gap: 12px;
}

.admin-search-wrap {
  position: relative;
}

.admin-search-wrap svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--text-muted);
}

.admin-search-wrap input {
  padding-left: 40px;
}

.admin-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 6px;
}

.admin-tab {
  min-height: 38px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
}

.admin-tab.active {
  background: var(--accent-color);
  color: #ffffff;
}

.admin-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.admin-user-list-card {
  gap: 12px;
}

.admin-users-list,
.admin-detail-stack,
.admin-record-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.admin-user-row,
.admin-record-row {
  width: 100%;
  border: 1px solid var(--border-color);
  background: var(--surface-color);
  color: var(--text-color);
  border-radius: 12px;
  padding: 12px;
  text-align: left;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.admin-user-row {
  cursor: pointer;
}

.admin-user-row.active {
  border-color: var(--accent-color);
  background: var(--accent-light);
}

.admin-user-name,
.admin-record-title {
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.25;
}

.admin-user-meta,
.admin-record-meta,
.admin-selected-user-summary,
.admin-record-summary,
.admin-app-summary {
  color: var(--text-muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.admin-user-badge {
  flex: 0 0 auto;
  align-self: flex-start;
  border-radius: 999px;
  background: var(--accent-light);
  color: var(--accent-color);
  padding: 4px 8px;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.admin-edit-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.admin-grid-full {
  grid-column: 1 / -1;
}

.admin-record-summary,
.admin-app-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.admin-mini-stat {
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 10px;
  background: var(--surface-color);
}

.admin-mini-stat span {
  display: block;
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.admin-mini-stat strong {
  display: block;
  margin-top: 4px;
  color: var(--text-color);
  font-size: 1rem;
}

.admin-record-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}

.admin-danger-btn {
  min-height: 34px;
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: 8px;
  background: rgba(239, 68, 68, 0.08);
  color: var(--error-red);
  font-size: 0.76rem;
  font-weight: 800;
  padding: 0 10px;
  cursor: pointer;
}

@media (min-width: 900px) {
  .admin-stats-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .admin-toolbar {
    flex-direction: row;
    align-items: center;
  }

  .admin-search-wrap {
    flex: 1;
  }

  .admin-layout {
    grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.4fr);
  }

  .admin-edit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ==========================================
   NOTIFICATIONS INBOX OVERLAY PANEL
   ========================================== */
.notif-drawer-overlay {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(2px);
  z-index: 999;
  display: flex;
  justify-content: flex-end;
  transition: opacity 0.3s ease;
}

.notif-drawer {
  width: 100%;
  max-width: 400px;
  height: 100%;
  background-color: var(--surface-color);
  border-left: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  animation: slide-left 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.notif-drawer-header {
  padding: 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.notif-drawer-title {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
}

.notif-drawer-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-color);
}

.notif-list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.notif-item {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  gap: 12px;
  cursor: pointer;
  position: relative;
  transition: background-color 0.2s;
}

.notif-item:hover {
  background-color: var(--surface-hover);
}

.notif-item.unread::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background-color: var(--accent-color);
  border-radius: 50%;
}

.notif-item-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.notif-item-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.notif-item-title {
  font-size: 0.875rem;
  font-weight: 600;
}

.notif-item-text {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.notif-item-time {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.notif-empty-state {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 40px;
  color: var(--text-muted);
  text-align: center;
}

/* In-App Toast Push notification */
.toast-push {
  position: fixed;
  top: 24px;
  right: 24px;
  background-color: var(--surface-color);
  border: 1px solid var(--border-color);
  border-left: 5px solid var(--accent-color);
  border-radius: 16px;
  padding: 16px 20px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 2000;
  max-width: 350px;
  animation: slide-down-toast 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast-push-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
}

/* PWA Installation Banner Overlay */
.pwa-banner-floating {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--surface-color);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  border-radius: 20px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 950;
  animation: slide-up-toast 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  width: calc(100% - 48px);
  max-width: 480px;
}

.pwa-banner-text {
  flex: 1;
}

.pwa-banner-title {
  font-weight: 700;
  font-size: 0.875rem;
}

.pwa-banner-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.pwa-banner-actions {
  display: flex;
  gap: 8px;
}

.pwa-banner-close {
  background: none;
  border: none;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px 10px;
}

.pwa-banner-install {
  background-color: var(--accent-color);
  color: white;
  border: none;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 8px;
  padding: 6px 12px;
  cursor: pointer;
}

.pwa-banner-install:hover {
  background-color: var(--accent-hover);
}

/* ==========================================
   RESPONSIVE LAYOUT MATRIX
   ========================================== */
@media(min-width: 1024px) {
  .app-shell {
    grid-template-columns: var(--sidebar-width) 1fr;
    grid-template-rows: var(--header-height) 1fr;
  }
  
  .app-header {
    grid-column: 2 / -1;
  }
  
  .app-sidebar {
    display: flex;
    grid-column: 1;
    grid-row: 1 / -1;
  }
  
  .app-nav-bar {
    display: none;
  }

  .app-main-content {
    padding: 32px;
    padding-bottom: 32px; /* Normal padding on desktop */
  }
}

/* ==========================================
   ANIMATIONS KEYFRAMES
   ========================================== */
@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@keyframes slide-left {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

@keyframes slide-down-toast {
  from { opacity: 0; transform: translate(-50%, -30px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

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

@keyframes radar-ping {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(2.5); opacity: 0; }
}

@keyframes scale-up {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* ==========================================
   MOBILE SCREEN RESPONSIVENESS AND OPTIMIZATIONS
   ========================================== */
@media(max-width: 480px) {
  /* Prevent horizontal scrolling in main content */
  .app-main-content {
    padding: 14px;
    padding-bottom: calc(var(--nav-bar-height) + 24px);
    overflow-x: hidden;
  }

  /* Compact header on mobile to prevent overflow */
  .app-header {
    padding: 0 12px;
  }
  .header-brand {
    gap: 8px;
  }
  .header-logo {
    width: 32px;
    height: 32px;
  }
  .header-title {
    font-size: 1.15rem;
  }
  .header-actions {
    gap: 4px;
  }
  .header-btn {
    width: 34px;
    height: 34px;
  }
  .streak-badge {
    padding: 5px 8px;
    font-size: 0.8rem;
    gap: 4px;
  }
  .app-shell[data-active-view="home"] .header-btn {
    display: none;
  }
  .app-shell[data-active-view="home"] .streak-badge {
    background: transparent;
    padding-inline: 4px;
  }
  .app-shell[data-active-view="home"] .profile-avatar-btn {
    width: 32px;
    height: 32px;
  }
  .streak-label-days {
    display: none; /* Hide ' Days' to keep it compact (e.g. '🔥 3') */
  }

  #view-home {
    gap: 12px;
  }

  .welcome-section h1 {
    font-size: 1.38rem;
  }

  .glass-overlay {
    padding: 16px;
  }

  .scripture-text {
    font-size: 0.98rem;
  }

  .victory-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .victory-btn,
  .secondary-victory-btn {
    justify-content: center;
    padding-inline: 12px;
  }

  /* Optimize auth layout on phone screens */
  .auth-container {
    padding: 16px;
  }
  .auth-card {
    padding: 24px 20px;
    border-radius: 20px;
    gap: 16px;
  }

  /* Optimize home page card grids and elements */
  .stats-grid {
    gap: 8px;
  }
  .stat-card {
    padding: 10px;
    border-radius: 12px;
    gap: 6px;
    min-height: 76px;
  }
  .stat-value {
    font-size: 1.1rem;
  }
  .stat-footer {
    font-size: 0.7rem;
  }

  #view-home .panel-card {
    padding: 12px;
  }

  .upcoming-fast-header {
    gap: 10px;
  }

  .countdown-value {
    font-size: 0.88rem;
  }

  .upcoming-fast-meta {
    font-size: 0.72rem;
  }
}

/* ==========================================
   BIBLE DOWNLOADER & POPUP ACTIONS
   ========================================== */

/* Bible Action Icon Button */
.bible-action-icon-btn {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  color: var(--text-color);
  border-radius: 10px;
  width: 42px;
  height: 42px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.bible-action-icon-btn:hover {
  background: var(--accent-light);
  border-color: var(--accent-color);
  color: var(--accent-color);
}

/* Downloader Slide-Over Panel Overlay */
.download-panel-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 2000;
  display: flex;
  justify-content: flex-end;
  opacity: 1;
  transition: opacity 0.3s ease;
}
.download-panel-overlay.hidden {
  display: none !important;
}
.download-panel-content {
  width: 100%;
  max-width: 380px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  height: 100%;
  box-shadow: -4px 0 30px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  animation: slideInRight 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border-left: 1px solid var(--border-color);
}
@keyframes slideInRight {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

.download-panel-header {
  padding: 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.download-panel-header h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0;
}
.download-panel-close-btn {
  background: none;
  border: none;
  color: var(--text-color);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}
.download-panel-body {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
}

/* Download Scope Buttons */
.download-scope-btn {
  width: 100%;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  color: var(--text-color);
  border-radius: 12px;
  padding: 12px;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 8px;
}
.download-scope-btn:hover {
  border-color: var(--accent-color);
  background: var(--accent-light);
}
.download-scope-btn.selected {
  border-color: var(--accent-color);
  background: var(--accent-light);
  box-shadow: 0 0 0 1px var(--accent-color);
}

/* Verse Highlight Popover Styles */
.verse-highlight-popover {
  position: static;
  transform: none;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 1;
  min-width: 160px;
  width: fit-content;
  max-width: calc(100% - 40px);
  margin: 4px auto 12px;
  animation: popoverFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes popoverFadeIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.verse-highlight-popover::after {
  content: none;
}

.hl-color-btn {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.15s ease;
}
.hl-color-btn:hover {
  transform: scale(1.15);
}

/* Verse rows styling highlights */
.bible-verse-row.hl-yellow,
.bible-verse-row.highlight-yellow {
  background-color: rgba(254, 240, 138, 0.4) !important;
  border-left: 3px solid #facc15;
}
.bible-verse-row.hl-emerald {
  background-color: rgba(167, 243, 210, 0.4) !important;
  border-left: 3px solid #10b981;
}
.bible-verse-row.hl-blue {
  background-color: rgba(191, 219, 254, 0.4) !important;
  border-left: 3px solid #3b82f6;
}
.bible-verse-row.hl-orange {
  background-color: rgba(254, 215, 170, 0.4) !important;
  border-left: 3px solid #f97316;
}

/* Custom Bible Book Select Widget */
.bible-custom-select {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  color: var(--text-color);
  border-radius: 10px;
  min-height: 42px;
  padding: 8px 10px;
  font-size: 0.875rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  width: 100%;
  min-width: 0;
  justify-content: space-between;
}
.bible-custom-select span {
  min-width: 0;
  white-space: normal;
  line-height: 1.2;
}
.bible-custom-select:hover {
  border-color: var(--accent-color);
  background: var(--accent-light);
}

/* Bottom Sheet Picker Modal */
.picker-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 2500;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  opacity: 1;
  transition: opacity 0.3s ease;
}
.picker-modal-overlay.hidden {
  display: none !important;
}

.picker-modal-content {
  width: 100%;
  max-width: 480px;
  background: var(--glass-bg);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  max-height: 82vh;
  animation: slideUpBottom 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid var(--border-color);
  border-bottom: none;
}
@keyframes slideUpBottom {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

.picker-modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.picker-modal-header h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
}
.picker-modal-close-btn {
  background: none;
  border: none;
  color: var(--text-color);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
}

.picker-modal-search-row {
  padding: 12px 20px;
  border-bottom: 1px solid var(--border-color);
}
.picker-search-input {
  width: 100%;
  background: var(--card-bg);
  color: var(--text-color);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.85rem;
}
.picker-search-input:focus {
  border-color: var(--accent-color);
  outline: none;
}

.picker-modal-tabs {
  display: flex;
  gap: 8px;
  padding: 10px 20px;
  border-bottom: 1px solid var(--border-color);
}
.picker-tab {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s;
}
.picker-tab.active {
  background: var(--accent-color);
  color: white;
}

.picker-books-grid {
  padding: 16px 20px;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  flex: 1;
}
.picker-book-item {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  color: var(--text-color);
  border-radius: 8px;
  min-height: 42px;
  padding: 9px 10px;
  text-align: left;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: normal;
  overflow-wrap: anywhere;
  display: flex;
  align-items: center;
}
.picker-book-item:hover, .picker-book-item.selected {
  background: var(--accent-light);
  border-color: var(--accent-color);
  color: var(--accent-color);
}

/* ==========================================
   MOBILE-FIRST GLOBAL STYLING FOR DESKTOP VIEWS
   ========================================== */
html, body {
  background-color: var(--bg-color);
}

@media(min-width: 481px) {
  html, body {
    background-color: #0f172a; /* Slate 900 background around the mobile frame on desktop */
  }
}

@media(max-width: 480px) {
  html, body {
    background-color: var(--bg-color) !important;
  }
}

/* Constrain splash screen, auth cards, and main app container to mobile layout on tablets/small screens only */
@media(max-width: 1023px) {
  .app-shell, .auth-container, .splash-screen {
    max-width: 480px !important;
    width: 100% !important;
    height: 100dvh !important;
    margin: 0 auto !important;
    position: fixed !important;
    left: 50% !important;
    top: 0 !important;
    transform: translateX(-50%) !important;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.4) !important;
    border-left: 1px solid var(--border-color) !important;
    border-right: 1px solid var(--border-color) !important;
    background-color: var(--bg-color) !important;
  }

  /* Constrain bottom overlays to the mobile viewport area */
  .picker-modal-overlay,
  .profile-menu-overlay {
    max-width: 480px !important;
    width: 100% !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
  }

  /* Ensure sub-panels and grids inside mobile container never stretch into multi-column layout */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .dashboard-grid {
    grid-template-columns: 1fr !important;
  }

  .church-explorer-layout {
    grid-template-columns: 1fr !important;
  }

  .fasting-setup-grid {
    grid-template-columns: 1fr !important;
  }

  /* Completely hide desktop sidebar and keep bottom navigation bar visible */
  .app-sidebar {
    display: none !important;
  }

  .app-nav-bar {
    display: flex !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    max-width: 480px !important;
  }

  .app-header {
    grid-column: 1 / -1 !important;
    width: 100% !important;
  }

  /* Adjust padding inside the main content to match the forced mobile layout */
  .app-main-content {
    padding: 20px 16px !important;
    padding-bottom: calc(var(--nav-bar-height) + 40px) !important;
  }

  /* Media query to remove device frame styling on actual mobile screens */
  @media(max-width: 480px) {
    .app-shell, .auth-container, .splash-screen {
      border-left: none !important;
      border-right: none !important;
      box-shadow: none !important;
      max-width: 100% !important;
      width: 100% !important;
      left: 0 !important;
      transform: none !important;
    }
    
    .picker-modal-overlay,
    .profile-menu-overlay {
      max-width: 100% !important;
      width: 100% !important;
      left: 0 !important;
      transform: none !important;
    }
  }
}


/* ==========================================
   SUNDAY ATTENDANCE NUDGE CARDS
   ========================================== */

#sunday-nudge-widget-area {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 4px;
}

.sunday-nudge-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background-color: var(--surface-color);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  animation: nudge-slide-in 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes nudge-slide-in {
  from {
    opacity: 0;
    transform: translateY(-18px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.sunday-nudge-banner-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.sunday-nudge-body {
  padding: 20px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sunday-nudge-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: var(--accent-color);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  align-self: flex-start;
}

.sunday-nudge-badge.evening {
  background-color: var(--church-teal);
}

.sunday-nudge-title {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-color);
}

.sunday-nudge-subtitle {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.sunday-nudge-verse {
  font-style: italic;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-color);
  background-color: var(--accent-light);
  border-left: 3px solid var(--accent-color);
  padding: 10px 14px;
  border-radius: 0 12px 12px 0;
  line-height: 1.5;
}

.sunday-nudge-verse.evening {
  background-color: var(--church-teal-light);
  border-left-color: var(--church-teal);
}

.sunday-nudge-verse-ref {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 6px;
  display: block;
}

.sunday-nudge-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.sunday-nudge-btn-primary {
  flex: 1;
  min-width: 140px;
  background-color: var(--accent-color);
  color: white;
  border: none;
  padding: 12px 18px;
  border-radius: 14px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background-color 0.2s, transform 0.15s;
}

.sunday-nudge-btn-primary.teal {
  background-color: var(--church-teal);
}

.sunday-nudge-btn-primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-1px);
}

.sunday-nudge-btn-primary.teal:hover {
  background-color: #0f9a8c;
}

.sunday-nudge-btn-primary:active {
  transform: scale(0.97);
}

.sunday-nudge-btn-secondary {
  background: var(--surface-hover);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  padding: 12px 18px;
  border-radius: 14px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.15s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sunday-nudge-btn-secondary:hover {
  background: var(--border-color);
}

.sunday-nudge-btn-secondary:active {
  transform: scale(0.97);
}

.sunday-nudge-dismiss {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: background 0.2s, transform 0.15s;
}

.sunday-nudge-dismiss:hover {
  background: rgba(0,0,0,0.55);
  transform: scale(1.1);
}

/* Confetti burst animation */
@keyframes confetti-pop {
  0%   { opacity: 0; transform: scale(0) rotate(0deg); }
  60%  { opacity: 1; transform: scale(1.2) rotate(10deg); }
  100% { opacity: 0; transform: scale(1.8) rotate(30deg); }
}

.confetti-particle {
  position: fixed;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  pointer-events: none;
  animation: confetti-pop 0.9s ease-out forwards;
  z-index: 9999;
}

/* ==========================================
   PREMIUM SIMPLIFICATION PASS
   ========================================== */
#view-bible,
#view-growth,
#view-fasting,
#view-church {
  max-width: 760px;
  gap: 14px;
}

#view-bible .welcome-section,
#view-growth .welcome-section,
#view-fasting .welcome-section,
#view-church .welcome-section {
  margin-bottom: 2px;
}

#view-bible .welcome-section h1,
#view-growth .welcome-section h1,
#view-fasting .welcome-section h1,
#view-church .welcome-section h1 {
  font-size: 1.5rem;
}

#view-bible .panel-card,
#view-growth .panel-card,
#view-fasting .panel-card,
#view-church .panel-card,
.bible-header-panel,
.bible-reader-card,
.devotional-output-card,
.active-fast-card,
.church-map-card,
.church-card,
.fasting-stat-card,
.fasting-schedule-item {
  border-radius: 12px;
  border-color: var(--border-color);
  box-shadow: none;
}

#view-bible .panel-card,
#view-growth .panel-card,
#view-fasting .panel-card,
#view-church .panel-card {
  padding: 16px;
}

#view-bible .panel-title,
#view-growth .panel-title,
#view-fasting .panel-title,
#view-church .panel-title {
  color: var(--text-color);
  font-size: 0.98rem;
  justify-content: flex-start;
  gap: 8px;
}

#view-bible .panel-title svg,
#view-growth .panel-title svg,
#view-fasting .panel-title svg,
#view-church .panel-title svg {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
}

.bible-header-panel {
  padding: 10px;
}

.bible-selectors {
  grid-template-columns: minmax(0, 1fr) 112px 38px;
}

.bible-select,
.bible-custom-select,
.bible-action-icon-btn,
.fasting-input,
.auth-input {
  border-radius: 10px;
  background: transparent;
  font-size: 0.9rem;
  box-shadow: none;
}

.bible-action-icon-btn {
  width: 38px;
  height: 38px;
}

.translation-tabs {
  background: transparent;
  border-radius: 10px;
  padding: 2px;
}

.translation-tab {
  min-height: 32px;
  border-radius: 8px;
  font-size: 0.76rem;
}

.translation-tab.active {
  background: var(--surface-hover);
  color: var(--text-color);
  box-shadow: none;
}

.bible-reader-card {
  padding: 18px;
  gap: 18px;
}

.bible-chapter-title {
  border-bottom: 0;
  padding-bottom: 0;
  text-align: center;
  font-size: 1.2rem;
}

.bible-content-area {
  gap: 12px;
  font-size: 1rem;
  line-height: 1.7;
}

.bible-verse-row {
  padding: 6px 4px;
}

.verse-num {
  color: var(--text-muted);
}

.bible-claim-container {
  background: transparent;
  border-color: var(--border-color);
  border-radius: 12px;
  padding: 12px;
  gap: 12px;
}

.bible-claim-title,
.growth-cta-title,
.fasting-schedule-title,
.church-name {
  font-weight: 700;
}

.bible-claim-btn,
.bible-claim-btn:disabled,
#growth-submit-btn,
#fast-start-btn,
#schedule-create-btn,
.complete-fast-btn,
.devo-btn,
.church-btn {
  border-radius: 10px;
  box-shadow: none;
  font-size: 0.82rem;
  font-weight: 700;
}

.bible-claim-btn,
#growth-submit-btn,
#fast-start-btn,
#schedule-create-btn,
.complete-fast-btn {
  background: var(--accent-color);
  color: #ffffff;
}

.bible-claim-btn:disabled {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-color);
}

#growth-input-panel {
  gap: 16px;
}

.growth-header-title {
  text-align: left;
  font-size: 1.15rem;
}

.mood-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

@media(min-width: 640px) {
  .mood-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.mood-button {
  align-items: flex-start;
  border-radius: 10px;
  padding: 10px 12px;
  gap: 5px;
  min-height: 68px;
  box-shadow: none;
}

.mood-button:hover {
  background: var(--surface-hover);
  border-color: var(--border-color);
}

.mood-button.selected {
  border-color: var(--growth-amber);
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--growth-amber);
}

.mood-emoji {
  font-size: 1.15rem;
  line-height: 1;
}

.mood-label {
  font-size: 0.78rem;
}

.mood-select {
  min-height: 46px;
}

.slider-container {
  padding: 6px 0;
}

.slider-label-row,
.auth-label {
  color: var(--text-muted);
  font-size: 0.78rem;
}

.mood-intensity-slider {
  height: 4px;
}

.mood-intensity-slider::-webkit-slider-thumb {
  width: 18px;
  height: 18px;
  box-shadow: none;
}

.mood-intensity-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  box-shadow: none;
}

.devotional-output-card {
  border-left-width: 1px;
  padding: 18px;
  gap: 16px;
}

.devo-section h3 {
  color: var(--text-muted);
  font-size: 0.78rem;
  letter-spacing: 0;
  text-transform: none;
}

.devo-section p,
.devo-scripture {
  font-size: 0.94rem;
}

.devo-scripture {
  border-left: 0;
  padding-left: 0;
}

.devo-actions,
.active-fast-actions {
  gap: 8px;
}

.fasting-stats-row {
  gap: 8px;
}

.fasting-stat-card {
  min-height: 66px;
  padding: 10px;
}

.fasting-stat-card span {
  letter-spacing: 0;
  text-transform: none;
}

.fasting-stat-card strong {
  font-size: 1.15rem;
}

.fasting-setup-grid {
  gap: 14px;
}

.fasting-input-group {
  gap: 6px;
}

.presets-row,
.weekday-chip-row {
  gap: 6px;
}

.preset-chip,
.weekday-chip {
  border-radius: 9px;
  background: transparent;
  color: var(--text-color);
}

.preset-chip.selected,
.weekday-chip.selected {
  background: var(--surface-hover);
  border-color: var(--accent-color);
  color: var(--text-color);
}

.fasting-card-heading svg {
  color: var(--text-muted);
}

.fasting-schedule-card {
  gap: 12px;
}

.fasting-schedule-item {
  padding: 12px;
}

.fasting-schedule-meta,
.history-item-subtitle,
.church-info-row,
.fasting-muted {
  color: var(--text-muted);
  font-size: 0.78rem;
}

.fasting-schedule-remove,
.cancel-fast-btn {
  border-radius: 10px;
  background: transparent;
}

.active-fast-card {
  padding: 20px;
  gap: 16px;
}

.timer-ring-container {
  width: min(190px, 72vw);
  height: min(190px, 72vw);
}

.timer-circle-svg {
  width: 100%;
  height: 100%;
}

.timer-countdown {
  font-size: 1.55rem;
}

.timer-label {
  letter-spacing: 0;
  text-transform: none;
}

.history-list {
  gap: 8px;
}

.history-summary-row {
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.35;
}

.history-item {
  border-radius: 10px;
  padding: 12px;
  box-shadow: none;
  gap: 10px;
  align-items: flex-start;
}

.history-item-title {
  font-size: 0.9rem;
}

.history-item-title span {
  color: var(--text-muted);
  font-weight: 600;
}

.history-item-badge {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
}

.history-details {
  margin-top: 8px;
}

.history-details summary {
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 700;
}

.history-more-row {
  display: flex;
  justify-content: center;
  padding-top: 2px;
}

.history-more-btn {
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  color: var(--text-color);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 9px 12px;
  min-height: 38px;
}

.history-more-btn:hover {
  border-color: var(--accent-color);
  color: var(--accent-color);
}

.history-detail-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.panel-title-with-action {
  justify-content: space-between !important;
}

.log-toggle-btn {
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: 9px;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 6px 9px;
}

.log-toggle-btn:hover {
  background: var(--surface-hover);
  color: var(--text-color);
}

.history-more-note {
  color: var(--text-muted);
  font-size: 0.78rem;
  padding: 4px 2px;
  text-align: center;
}

.church-explorer-layout {
  gap: 12px;
}

@media(min-width: 768px) {
  .church-explorer-layout {
    grid-template-columns: 1fr;
  }
}

#sunday-scripture-panel-card {
  gap: 10px;
}

#sunday-scripture-text {
  color: var(--text-color);
  font-size: 0.98rem;
  font-style: italic;
  font-weight: 500;
  line-height: 1.5;
}

.sunday-scripture-footer {
  align-items: center;
  color: var(--text-muted);
  display: flex;
  font-size: 0.78rem;
  font-weight: 600;
  justify-content: space-between;
  gap: 12px;
}

.sunday-scripture-footer .devo-btn {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-color);
  padding: 7px 10px;
}

.church-map-card {
  height: min(46vh, 320px);
  min-height: 240px;
  background: var(--surface-color);
}

.map-control-overlay {
  border-radius: 10px;
  box-shadow: none;
  padding: 8px 10px;
}

.map-locate-btn,
.map-status-pill {
  box-shadow: none;
}

.map-locate-btn {
  border: 1px solid var(--border-color);
  border-radius: 10px;
  bottom: 40px;
}

.map-status-pill {
  border-radius: 10px;
  font-weight: 600;
}

.church-list-container {
  gap: 8px;
}

.church-card {
  padding: 12px;
  gap: 8px;
}

.church-card:hover,
.church-card.selected {
  background: var(--surface-hover);
  box-shadow: none;
}

.church-card.selected {
  border-color: var(--church-teal);
}

.church-distance {
  font-size: 0.75rem;
}

.church-actions {
  margin-top: 2px;
}

.church-btn {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-color);
  padding: 7px 10px;
}

.church-btn:hover {
  background: var(--surface-hover);
  color: var(--text-color);
}

.fav-btn {
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 7px 10px;
}

#view-profile {
  max-width: 760px;
  gap: 14px;
}

#view-profile .welcome-section h1 {
  font-size: 1.5rem;
}

.profile-overview-card,
#view-profile .panel-card,
.point-rule,
.pref-row,
.profile-menu-sheet,
.profile-menu-action {
  border-radius: 12px;
  box-shadow: none;
}

.profile-overview-card {
  align-items: center;
  padding: 18px;
  gap: 16px;
}

.profile-avatar-container {
  width: 78px;
  height: 78px;
}

.profile-avatar-img {
  border-width: 1px;
  border-color: var(--border-color);
}

.profile-avatar-upload-btn {
  width: 28px;
  height: 28px;
  border-radius: 10px;
}

.profile-name {
  font-size: 1.22rem;
}

.profile-level {
  color: var(--text-muted);
}

.progress-bar-fill {
  background: var(--accent-color);
}

#view-profile .dashboard-grid {
  gap: 10px;
}

#view-profile .panel-card {
  padding: 16px;
}

#view-profile .panel-title {
  color: var(--text-color);
  font-size: 0.98rem;
}

#view-profile .panel-title .streak-badge {
  background: transparent !important;
  border: 1px solid var(--border-color);
  color: var(--text-muted) !important;
  padding: 5px 8px;
}

.points-intro {
  font-size: 0.8rem;
}

.points-grid {
  gap: 8px;
}

.point-rule {
  background: transparent;
  padding: 10px;
}

.point-rule-icon,
.settings-row-icon,
.profile-menu-action svg {
  color: var(--text-muted);
}

.settings-row-icon {
  background: transparent;
  border: 1px solid var(--border-color);
}

.pref-row {
  padding: 10px;
}

.settings-action-row:hover {
  border-color: var(--border-color);
}

.settings-dev-tools {
  display: none;
}

.settings-secondary-btn,
.settings-primary-btn {
  border-radius: 10px;
  box-shadow: none;
}

.settings-primary-btn {
  background: var(--accent-color);
}

.profile-legal-links {
  gap: 10px;
}

/* Blog Announcements styles */
.blog-posts-area {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.blog-post-card {
  position: relative;
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: row;
  align-items: stretch;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.blog-post-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-color);
}

.blog-post-cover {
  width: 100px;
  min-width: 100px;
  height: auto;
  object-fit: cover;
  border-right: 1px solid var(--border-color);
  border-bottom: none;
}

.blog-post-body {
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
}

.blog-post-header {
  display: flex;
  align-items: center;
  margin-bottom: 1px;
}

.blog-post-category {
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent-color);
  padding: 2px 6px;
  border-radius: 5px;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.blog-post-dismiss-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  cursor: pointer;
  padding: 3px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease;
  z-index: 10;
  box-shadow: var(--shadow-sm);
}

.blog-post-dismiss-btn:hover {
  background: var(--border-color);
  color: var(--text-color);
}

.blog-post-title {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-color);
  margin: 0;
  line-height: 1.2;
  padding-right: 20px; /* Leave space for absolute dismiss button */
}

.blog-post-meta {
  font-size: 0.65rem;
  color: var(--text-muted);
}

.blog-post-content-preview {
  font-size: 0.75rem;
  line-height: 1.35;
  color: var(--text-muted);
  margin: 1px 0 2px 0;
}

.blog-post-readmore-btn {
  align-self: flex-start;
  background: none;
  border: none;
  color: var(--accent-color);
  font-weight: 600;
  font-size: 0.75rem;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 2px;
  transition: color 0.2s ease;
}

.blog-post-readmore-btn:hover {
  color: var(--text-color);
  text-decoration: underline;
}

.blog-post-card.fade-out {
  transform: scale(0.95);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Full-page blog details styling */
.blog-details-nav {
  margin-bottom: 20px;
}

.blog-back-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: var(--text-color);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 8px;
  transition: background 0.2s ease, color 0.2s ease;
  width: fit-content;
}

.blog-back-btn:hover {
  background: var(--surface-color);
  color: var(--accent-color);
}

.blog-details-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 40px;
}

.blog-details-header {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.blog-details-category {
  align-self: flex-start;
}

.blog-details-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-color);
  line-height: 1.25;
}

.blog-details-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.blog-details-cover {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}

.blog-details-content {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-muted);
  text-align: justify;
  text-justify: inter-word;
  white-space: pre-line;
}

.blog-details-content p {
  margin-bottom: 20px;
  text-align: justify;
  text-justify: inter-word;
}

.blog-details-content ul,
.blog-details-content ol {
  margin-left: 20px;
  margin-bottom: 16px;
}

.blog-details-content li {
  margin-bottom: 8px;
}

/* Standalone Full-Page Blog Details Screen */
#view-blog-details {
  background-color: var(--bg-color);
  padding: 24px;
  padding-top: max(24px, env(safe-area-inset-top));
  padding-bottom: max(40px, env(safe-area-inset-bottom));
  box-sizing: border-box;
  margin: 0;
  max-width: none;
  animation: slide-up-fullpage 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* When active view is blog-details, hide header, sidebar, and bottom nav to give a true full-page view */
.app-shell[data-active-view="blog-details"] {
  grid-template-columns: 1fr !important;
  grid-template-rows: 1fr !important;
}

.app-shell[data-active-view="blog-details"] .app-header,
.app-shell[data-active-view="blog-details"] .app-sidebar,
.app-shell[data-active-view="blog-details"] .app-nav-bar {
  display: none !important;
}

.app-shell[data-active-view="blog-details"] .app-main-content {
  padding: 0 !important;
}

#view-blog-details .blog-details-nav,
#view-blog-details .blog-details-container {
  max-width: 680px;
  margin: 0 auto;
  width: 100%;
}

@keyframes slide-up-fullpage {
  from {
    transform: translateY(40px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ==========================================
   LANDING PAGE PREMIUM STYLES
   ========================================== */
.landing-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  background-color: var(--bg-color);
  z-index: 999;
  display: flex;
  flex-direction: column;
  scroll-behavior: smooth;
  color: var(--text-color);
  font-family: var(--font-body);
}

/* ============================
   NAVBAR
   ============================ */
.landing-nav {
  position: sticky;
  top: 0;
  width: 100%;
  padding-top: max(16px, env(safe-area-inset-top, 0px));
  padding-bottom: 16px;
  padding-left: 40px;
  padding-right: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
  background-color: rgba(251, 251, 253, 0.82);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  z-index: 1000;
  transition: background-color 0.3s, border-color 0.3s;
}

[data-theme="dark"] .landing-nav {
  background-color: rgba(10, 10, 10, 0.82);
}

.landing-nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--accent-color);
}

.landing-logo {
  width: 32px;
  height: 32px;
}

.landing-nav-links {
  display: none;
  align-items: center;
  gap: 28px;
}

@media (min-width: 768px) {
  .landing-nav-links {
    display: flex;
  }
}

.landing-nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 550;
  transition: color 0.25s;
  position: relative;
}

.landing-nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-color);
  border-radius: 2px;
  transition: width 0.25s ease;
}

.landing-nav-links a:hover {
  color: var(--text-color);
}

.landing-nav-links a:hover::after {
  width: 100%;
}

/* Mobile hamburger menu */
.landing-hamburger {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  transition: background-color 0.2s;
}

.landing-hamburger:hover {
  background-color: var(--surface-hover);
}

.landing-hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background-color: var(--text-color);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.landing-hamburger.active span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.landing-hamburger.active span:nth-child(2) {
  opacity: 0;
}

.landing-hamburger.active span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

@media (min-width: 768px) {
  .landing-hamburger {
    display: none;
  }
}

/* Mobile menu dropdown */
.landing-nav-links.mobile-open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 70px;
  left: 0;
  right: 0;
  background-color: var(--bg-color);
  border-bottom: 1px solid var(--border-color);
  padding: 24px;
  gap: 20px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.08);
  animation: slideDown 0.3s ease;
}

[data-theme="dark"] .landing-nav-links.mobile-open {
  box-shadow: 0 16px 40px rgba(0,0,0,0.4);
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.landing-nav-ctas {
  display: flex;
  align-items: center;
  gap: 12px;
}

.landing-btn-text {
  background: none;
  border: none;
  color: var(--text-color);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 10px;
  transition: background-color 0.2s;
}

.landing-btn-text:hover {
  background-color: var(--surface-hover);
}

.landing-btn-primary {
  background-color: var(--accent-color);
  color: white;
  border: none;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  padding: 10px 22px;
  border-radius: 12px;
  transition: background-color 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
}

.landing-btn-primary:hover {
  background-color: var(--accent-hover);
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
  transform: translateY(-1px);
}

.landing-btn-primary:active {
  transform: scale(0.97) translateY(0);
}

.landing-theme-btn {
  background: none;
  border: none;
  color: var(--text-color);
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
}

.landing-theme-btn:hover {
  background-color: var(--surface-hover);
}

.landing-theme-btn svg {
  width: 18px;
  height: 18px;
}

/* ============================
   HERO SECTION
   ============================ */
.landing-hero {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 60px 24px 80px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
}

/* Subtle decorative gradient orb behind hero */
.landing-hero::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

[data-theme="dark"] .landing-hero::before {
  background: radial-gradient(circle, rgba(16, 185, 129, 0.04) 0%, transparent 70%);
}

@media (min-width: 992px) {
  .landing-hero {
    grid-template-columns: 1.1fr 0.9fr;
    padding: 100px 40px;
  }
}

.landing-hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  position: relative;
  z-index: 1;
}

.landing-hero-title {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.035em;
  margin-bottom: 20px;
}

@media (min-width: 576px) {
  .landing-hero-title {
    font-size: 3.5rem;
  }
}

.gradient-text {
  background: linear-gradient(135deg, #10b981 0%, #06b6d4 50%, #3b82f6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.landing-hero-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.65;
  margin-bottom: 36px;
  max-width: 520px;
}

.landing-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  width: 100%;
}

.landing-btn-primary-large {
  background-color: var(--accent-color);
  color: white;
  border: none;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  padding: 16px 36px;
  border-radius: 16px;
  transition: background-color 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.2);
}

.landing-btn-primary-large:hover {
  background-color: var(--accent-hover);
  box-shadow: 0 6px 28px rgba(16, 185, 129, 0.35);
  transform: translateY(-2px);
}

.landing-btn-primary-large:active {
  transform: scale(0.97) translateY(0);
}

.landing-btn-secondary-large {
  background-color: transparent;
  color: var(--text-color);
  border: 1.5px solid var(--border-color);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  padding: 16px 32px;
  border-radius: 16px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s, border-color 0.25s, transform 0.15s;
}

.landing-btn-secondary-large:hover {
  background-color: var(--surface-hover);
  border-color: var(--text-muted);
  transform: translateY(-1px);
}

/* ============================
   PHONE MOCKUP
   ============================ */
.landing-hero-teaser {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  position: relative;
  z-index: 1;
}

.phone-frame-wrapper {
  position: relative;
  width: 300px;
  height: 610px;
}

/* Floating Badges */
.floating-badge {
  position: absolute;
  background-color: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.06);
  z-index: 10;
  animation: float 5s ease-in-out infinite;
  transition: background-color 0.3s, border-color 0.3s;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

[data-theme="dark"] .floating-badge {
  box-shadow: 0 8px 30px rgba(0,0,0,0.35);
  background-color: rgba(38, 38, 38, 0.85);
}

.badge-streak {
  top: 15%;
  left: -20px;
}

.badge-points {
  bottom: 25%;
  right: -25px;
  animation-delay: 2.5s;
}

.badge-icon-streak {
  color: var(--growth-amber);
  fill: var(--growth-amber-light);
  width: 20px;
  height: 20px;
}

.badge-icon-points {
  color: var(--bible-blue);
  width: 20px;
  height: 20px;
}

.badge-title {
  font-size: 0.75rem;
  font-weight: 700;
}

.badge-desc {
  font-size: 0.65rem;
  color: var(--text-muted);
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Phone Mockup Frame */
.phone-frame {
  width: 100%;
  height: 100%;
  border: 10px solid #1c1c1e;
  border-radius: 44px;
  box-shadow:
    0 30px 60px rgba(0,0,0,0.12),
    0 0 0 1px rgba(255,255,255,0.05) inset;
  position: relative;
  background-color: #1c1c1e;
  overflow: hidden;
}

[data-theme="dark"] .phone-frame {
  border-color: #2a2a2a;
  background-color: #2a2a2a;
  box-shadow:
    0 30px 60px rgba(0,0,0,0.5),
    0 0 0 1px rgba(255,255,255,0.03) inset;
}

.phone-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 20px;
  background-color: #000000;
  border-bottom-left-radius: 14px;
  border-bottom-right-radius: 14px;
  z-index: 100;
}

.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 34px;
  overflow: hidden;
  background-color: var(--bg-color);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: background-color 0.3s;
}

.phone-status-bar {
  height: 36px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-color);
  z-index: 10;
  margin-top: 4px;
}

.status-icons {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Simulated App Interior Layout */
.mock-app-shell {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0 12px 12px;
  font-size: 11px;
}

.mock-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 4px;
  border-bottom: 1px solid var(--border-color);
}

.mock-brand {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-heading);
  font-weight: 850;
  color: var(--accent-color);
  font-size: 0.8rem;
}

.mock-logo {
  width: 18px;
  height: 18px;
}

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

.mock-streak {
  display: flex;
  align-items: center;
  gap: 2px;
  font-weight: 700;
  color: var(--growth-amber);
  background-color: var(--growth-amber-light);
  padding: 2px 6px;
  border-radius: 999px;
  font-size: 0.6rem;
}

.mock-main-content {
  flex: 1;
  overflow-y: auto;
  padding: 10px 2px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Hide scrollbar for preview */
.mock-main-content::-webkit-scrollbar {
  display: none;
}

.mock-welcome {
  display: flex;
  flex-direction: column;
}

.mock-welcome-date {
  font-size: 0.5rem;
  font-weight: 700;
  color: var(--accent-color);
  letter-spacing: 0.05em;
}

.mock-welcome h2 {
  font-size: 0.9rem;
  font-weight: 850;
}

.mock-victory-card {
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.9), rgba(20, 184, 166, 0.7)), url("public/nature-bg-dawn.svg") center/cover;
  padding: 10px;
  color: white;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mock-victory-badge {
  font-size: 0.5rem;
  font-weight: 800;
  color: #10b981;
  background-color: white;
  padding: 1px 4px;
  border-radius: 4px;
  align-self: flex-start;
  text-transform: uppercase;
}

.mock-victory-scripture {
  font-size: 0.68rem;
  font-weight: 500;
  line-height: 1.3;
  font-style: italic;
}

.mock-victory-ref {
  font-size: 0.55rem;
  opacity: 0.9;
  display: flex;
  align-items: center;
  gap: 3px;
}

.mock-victory-actions {
  display: flex;
  margin-top: 2px;
}

.mock-btn-success {
  background-color: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.4);
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.55rem;
  font-weight: 700;
}

.mock-fast-card {
  border: 1px solid var(--border-color);
  background-color: var(--surface-color);
  border-radius: 12px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mock-card-title {
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 700;
  font-size: 0.65rem;
  color: var(--text-color);
}

.mock-fast-body {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mock-fast-circle {
  width: 50px;
  height: 50px;
  position: relative;
}

.mock-fast-circle svg {
  transform: rotate(-90deg);
}

.mock-fast-time {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
}

.mock-fast-time .time-left {
  font-size: 0.55rem;
  font-weight: 800;
}

.mock-fast-time .label {
  font-size: 0.35rem;
  color: var(--text-muted);
}

.mock-fast-info {
  display: flex;
  flex-direction: column;
  font-size: 0.55rem;
}

.mock-fast-info .info-label {
  color: var(--accent-color);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.45rem;
}

.mock-fast-info .info-val {
  font-weight: 700;
}

.mock-fast-info .info-target {
  color: var(--text-muted);
  font-size: 0.5rem;
}

.mock-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}

.mock-stat-card {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background-color: var(--surface-color);
  padding: 4px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mock-stat-label {
  font-size: 0.45rem;
  color: var(--text-muted);
}

.mock-stat-val {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--text-color);
}

.mock-reflection-card {
  border: 1px solid var(--border-color);
  border-radius: 12px;
  background-color: var(--surface-color);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mock-reflection-status {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}

.mock-reflection-status .mood-pill {
  background-color: var(--growth-amber-light);
  color: var(--growth-amber);
  font-size: 0.5rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
}

.mock-reflection-status .intensity {
  font-size: 0.5rem;
  color: var(--text-muted);
}

.mock-reflection-desc {
  font-size: 0.55rem;
  color: var(--text-muted);
  line-height: 1.3;
}

.mock-navbar {
  height: 40px;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-around;
  margin: 0 -12px -12px;
  padding-bottom: 2px;
  background-color: var(--surface-color);
}

.mock-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 0.45rem;
  color: var(--text-muted);
  cursor: default;
}

.mock-nav-item.active {
  color: var(--accent-color);
}

/* ============================
   FEATURES GRID
   ============================ */
.landing-features {
  background-color: var(--surface-color);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 80px 24px;
  transition: background-color 0.3s, border-color 0.3s;
}

@media (min-width: 768px) {
  .landing-features {
    padding: 100px 40px;
  }
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 60px;
}

.section-badge {
  color: var(--accent-color);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  display: inline-block;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
  line-height: 1.18;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.65;
}

.features-grid {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.feature-card {
  background-color: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: transform 0.3s ease, border-color 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-color), var(--church-teal));
  opacity: 0;
  transition: opacity 0.3s;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(16, 185, 129, 0.25);
  box-shadow: 0 16px 48px rgba(16, 185, 129, 0.08);
}

.feature-card:hover::before {
  opacity: 1;
}

[data-theme="dark"] .feature-card:hover {
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

.feature-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.feature-icon-wrapper svg {
  width: 24px;
  height: 24px;
}

.font-bible { background: linear-gradient(135deg, #3b82f6, #6366f1); }
.font-fasting { background: linear-gradient(135deg, #10b981, #14b8a6); }
.font-reflection { background: linear-gradient(135deg, #f59e0b, #ef4444); }
.font-church { background: linear-gradient(135deg, #14b8a6, #06b6d4); }

.feature-card-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
}

.feature-card-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

/* ============================
   STEPS / HABITS SECTION
   ============================ */
.landing-steps {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 80px 24px;
}

@media (min-width: 768px) {
  .landing-steps {
    padding: 100px 40px;
  }
}

.steps-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-top: 20px;
}

@media (min-width: 768px) {
  .steps-container {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  position: relative;
}

.step-number {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent-color), var(--church-teal));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.step-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
}

.step-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

/* ============================
   ABOUT SECTION
   ============================ */
.landing-about {
  background-color: var(--surface-color);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 80px 24px;
  transition: background-color 0.3s, border-color 0.3s;
}

@media (min-width: 768px) {
  .landing-about {
    padding: 100px 40px;
  }
}

.about-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
}

@media (min-width: 992px) {
  .about-inner {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.about-desc {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
}

.about-desc strong {
  color: var(--text-color);
}

.about-values {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-value-card {
  background-color: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.about-value-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.04);
  border-color: rgba(16, 185, 129, 0.2);
}

[data-theme="dark"] .about-value-card:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

.about-value-icon {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(20, 184, 166, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-color);
}

[data-theme="dark"] .about-value-icon {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(20, 184, 166, 0.15));
}

.about-value-icon svg {
  width: 20px;
  height: 20px;
}

.about-value-card h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 4px;
}

.about-value-card p {
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.55;
}

/* ============================
   CTA BANNER SECTION
   ============================ */
.landing-cta-section {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.landing-cta-card {
  background: linear-gradient(135deg, #047857, #10b981, #06b6d4);
  border-radius: 28px;
  padding: 60px 24px;
  text-align: center;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  position: relative;
  overflow: hidden;
}

/* Subtle pattern overlay */
.landing-cta-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 50%, rgba(255,255,255,0.06) 0%, transparent 50%),
              radial-gradient(circle at 80% 50%, rgba(255,255,255,0.04) 0%, transparent 50%);
  pointer-events: none;
}

@media (min-width: 768px) {
  .landing-cta-card {
    padding: 80px 40px;
  }
}

.cta-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  max-width: 580px;
  position: relative;
}

.cta-desc {
  opacity: 0.92;
  font-size: 1.05rem;
  max-width: 480px;
  line-height: 1.65;
  margin-bottom: 12px;
  position: relative;
}

.landing-btn-light {
  background-color: white;
  color: #047857;
  border: none;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  padding: 16px 40px;
  border-radius: 16px;
  transition: transform 0.15s, box-shadow 0.2s;
  position: relative;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.landing-btn-light:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,0.15);
  transform: translateY(-2px);
}

.landing-btn-light:active {
  transform: translateY(0) scale(0.97);
}

/* ============================
   FOOTER
   ============================ */
.landing-footer {
  border-top: 1px solid var(--border-color);
  background-color: var(--surface-color);
  padding: 80px 24px 30px;
  transition: background-color 0.3s, border-color 0.3s;
}

@media (min-width: 768px) {
  .landing-footer {
    padding: 80px 40px 30px;
  }
}

.footer-grid {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.5fr repeat(3, 1fr);
  }
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--accent-color);
}

.footer-logo {
  width: 28px;
  height: 28px;
}

.footer-tagline {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.55;
  max-width: 260px;
}

.footer-org {
  font-size: 0.75rem;
  color: var(--text-muted);
  opacity: 0.7;
}

.footer-links-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.footer-links-col h4 {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-color);
}

.footer-links-col a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.875rem;
  transition: color 0.2s;
}

.footer-links-col a:hover {
  color: var(--accent-color);
}

.footer-address {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer-bottom {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  border-top: 1px solid var(--border-color);
  padding-top: 30px;
  text-align: center;
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 0.8rem;
  opacity: 0.8;
}


/* Navbar */
.landing-nav {
  position: sticky;
  top: 0;
  width: 100%;
  padding-top: max(16px, env(safe-area-inset-top, 0px));
  padding-bottom: 16px;
  padding-left: 40px;
  padding-right: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
  background-color: rgba(251, 251, 253, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  transition: background-color 0.3s, border-color 0.3s;
}

[data-theme="dark"] .landing-nav {
  background-color: rgba(0, 0, 0, 0.8);
}

.landing-nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--accent-color);
}

.landing-logo {
  width: 32px;
  height: 32px;
}

.landing-nav-links {
  display: none;
  align-items: center;
  gap: 28px;
}

@media (min-width: 768px) {
  .landing-nav-links {
    display: flex;
  }
}

.landing-nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 550;
  transition: color 0.2s;
}

.landing-nav-links a:hover {
  color: var(--text-color);
}

.landing-nav-ctas {
  display: flex;
  align-items: center;
  gap: 16px;
}

.landing-btn-text {
  background: none;
  border: none;
  color: var(--text-color);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 8px;
  transition: background-color 0.2s;
}

.landing-btn-text:hover {
  background-color: var(--surface-hover);
}

.landing-btn-primary {
  background-color: var(--accent-color);
  color: white;
  border: none;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  padding: 10px 20px;
  border-radius: 12px;
  transition: background-color 0.2s, transform 0.1s;
}

.landing-btn-primary:hover {
  background-color: var(--accent-hover);
}

.landing-btn-primary:active {
  transform: scale(0.97);
}

.landing-theme-btn {
  background: none;
  border: none;
  color: var(--text-color);
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
}

.landing-theme-btn:hover {
  background-color: var(--surface-hover);
}

.landing-theme-btn svg {
  width: 18px;
  height: 18px;
}

/* Hero Section */
.landing-hero {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 80px 24px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
  align-items: center;
}

@media (min-width: 992px) {
  .landing-hero {
    grid-template-columns: 1.1fr 0.9fr;
    padding: 100px 40px;
  }
}

.landing-hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.landing-hero-badge {
  background-color: var(--accent-light);
  color: var(--accent-color);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 24px;
  display: inline-block;
}

.landing-hero-title {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

@media (min-width: 576px) {
  .landing-hero-title {
    font-size: 3.5rem;
  }
}

.gradient-text {
  background: linear-gradient(135deg, #10b981, #14b8a6, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.landing-hero-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 36px;
  max-width: 540px;
}

.landing-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  width: 100%;
}

.landing-btn-primary-large {
  background-color: var(--accent-color);
  color: white;
  border: none;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  padding: 16px 32px;
  border-radius: 16px;
  transition: background-color 0.2s, transform 0.1s;
}

.landing-btn-primary-large:hover {
  background-color: var(--accent-hover);
}

.landing-btn-primary-large:active {
  transform: scale(0.97);
}

.landing-btn-secondary-large {
  background-color: var(--surface-hover);
  color: var(--text-color);
  border: 1px solid var(--border-color);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  padding: 16px 32px;
  border-radius: 16px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s, border-color 0.2s;
}

.landing-btn-secondary-large:hover {
  background-color: var(--border-color);
}

/* Mobile Teaser Mockup */
.landing-hero-teaser {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.phone-frame-wrapper {
  position: relative;
  width: 300px;
  height: 610px;
}

/* Floating Badges */
.floating-badge {
  position: absolute;
  background-color: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.06);
  z-index: 10;
  animation: float 5s ease-in-out infinite;
  transition: background-color 0.3s, border-color 0.3s;
}

[data-theme="dark"] .floating-badge {
  box-shadow: 0 10px 25px rgba(0,0,0,0.4);
}

.badge-streak {
  top: 15%;
  left: -20px;
}

.badge-points {
  bottom: 25%;
  right: -25px;
  animation-delay: 2.5s;
}

.badge-icon-streak {
  color: var(--growth-amber);
  fill: var(--growth-amber-light);
  width: 20px;
  height: 20px;
}

.badge-icon-points {
  color: var(--bible-blue);
  width: 20px;
  height: 20px;
}

.badge-title {
  font-size: 0.75rem;
  font-weight: 700;
}

.badge-desc {
  font-size: 0.65rem;
  color: var(--text-muted);
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Phone Mockup Frame */
.phone-frame {
  width: 100%;
  height: 100%;
  border: 10px solid #1f2937;
  border-radius: 40px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.12);
  position: relative;
  background-color: #1f2937;
  overflow: hidden;
}

[data-theme="dark"] .phone-frame {
  border-color: #262626;
  background-color: #262626;
  box-shadow: 0 30px 60px rgba(0,0,0,0.6);
}

.phone-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 20px;
  background-color: #000000;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  z-index: 100;
}

.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 30px;
  overflow: hidden;
  background-color: var(--bg-color);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: background-color 0.3s;
}

.phone-status-bar {
  height: 36px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-color);
  z-index: 10;
  margin-top: 4px;
}

.status-icons {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Simulated App Interior Layout */
.mock-app-shell {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0 12px 12px;
  font-size: 11px;
}

.mock-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 4px;
  border-bottom: 1px solid var(--border-color);
}

.mock-brand {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-heading);
  font-weight: 850;
  color: var(--accent-color);
  font-size: 0.8rem;
}

.mock-logo {
  width: 18px;
  height: 18px;
}

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

.mock-streak {
  display: flex;
  align-items: center;
  gap: 2px;
  font-weight: 700;
  color: var(--growth-amber);
  background-color: var(--growth-amber-light);
  padding: 2px 6px;
  border-radius: 999px;
  font-size: 0.6rem;
}

.mock-main-content {
  flex: 1;
  overflow-y: auto;
  padding: 10px 2px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Hide scrollbar for preview */
.mock-main-content::-webkit-scrollbar {
  display: none;
}

.mock-welcome {
  display: flex;
  flex-direction: column;
}

.mock-welcome-date {
  font-size: 0.5rem;
  font-weight: 700;
  color: var(--accent-color);
  letter-spacing: 0.05em;
}

.mock-welcome h2 {
  font-size: 0.9rem;
  font-weight: 850;
}

.mock-victory-card {
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.9), rgba(20, 184, 166, 0.7)), url("public/nature-bg-dawn.svg") center/cover;
  padding: 10px;
  color: white;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mock-victory-badge {
  font-size: 0.5rem;
  font-weight: 800;
  color: #10b981;
  background-color: white;
  padding: 1px 4px;
  border-radius: 4px;
  align-self: flex-start;
  text-transform: uppercase;
}

.mock-victory-scripture {
  font-size: 0.68rem;
  font-weight: 500;
  line-height: 1.3;
  font-style: italic;
}

.mock-victory-ref {
  font-size: 0.55rem;
  opacity: 0.9;
  display: flex;
  align-items: center;
  gap: 3px;
}

.mock-victory-actions {
  display: flex;
  margin-top: 2px;
}

.mock-btn-success {
  background-color: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.4);
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.55rem;
  font-weight: 700;
}

.mock-fast-card {
  border: 1px solid var(--border-color);
  background-color: var(--surface-color);
  border-radius: 12px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mock-card-title {
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 700;
  font-size: 0.65rem;
  color: var(--text-color);
}

.mock-fast-body {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mock-fast-circle {
  width: 50px;
  height: 50px;
  position: relative;
}

.mock-fast-circle svg {
  transform: rotate(-90deg);
}

.mock-fast-time {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
}

.mock-fast-time .time-left {
  font-size: 0.55rem;
  font-weight: 800;
}

.mock-fast-time .label {
  font-size: 0.35rem;
  color: var(--text-muted);
}

.mock-fast-info {
  display: flex;
  flex-direction: column;
  font-size: 0.55rem;
}

.mock-fast-info .info-label {
  color: var(--accent-color);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.45rem;
}

.mock-fast-info .info-val {
  font-weight: 700;
}

.mock-fast-info .info-target {
  color: var(--text-muted);
  font-size: 0.5rem;
}

.mock-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}

.mock-stat-card {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background-color: var(--surface-color);
  padding: 4px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mock-stat-label {
  font-size: 0.45rem;
  color: var(--text-muted);
}

.mock-stat-val {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--text-color);
}

.mock-reflection-card {
  border: 1px solid var(--border-color);
  border-radius: 12px;
  background-color: var(--surface-color);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mock-reflection-status {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}

.mock-reflection-status .mood-pill {
  background-color: var(--growth-amber-light);
  color: var(--growth-amber);
  font-size: 0.5rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
}

.mock-reflection-status .intensity {
  font-size: 0.5rem;
  color: var(--text-muted);
}

.mock-reflection-desc {
  font-size: 0.55rem;
  color: var(--text-muted);
  line-height: 1.3;
}

.mock-navbar {
  height: 40px;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-around;
  margin: 0 -12px -12px;
  padding-bottom: 2px;
  background-color: var(--surface-color);
}

.mock-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 0.45rem;
  color: var(--text-muted);
  cursor: default;
}

.mock-nav-item.active {
  color: var(--accent-color);
}

/* Features Grid */
.landing-features {
  background-color: var(--surface-color);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 80px 24px;
  transition: background-color 0.3s, border-color 0.3s;
}

@media (min-width: 768px) {
  .landing-features {
    padding: 100px 40px;
  }
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 60px;
}

.section-badge {
  color: var(--accent-color);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
  display: inline-block;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
  line-height: 1.2;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
}

.features-grid {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.feature-card {
  background-color: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-color);
  box-shadow: var(--shadow-lg);
}

.feature-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.feature-icon-wrapper svg {
  width: 24px;
  height: 24px;
}

.font-bible { background-color: var(--bible-blue); }
.font-fasting { background-color: var(--accent-color); }
.font-reflection { background-color: var(--growth-amber); }
.font-church { background-color: var(--church-teal); }

.feature-card-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
}

.feature-card-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Steps section */
.landing-steps {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 80px 24px;
}

@media (min-width: 768px) {
  .landing-steps {
    padding: 100px 40px;
  }
}

.steps-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-top: 20px;
}

@media (min-width: 768px) {
  .steps-container {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  position: relative;
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--accent-light);
  color: var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
}

.step-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
}

.step-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* CTA Banner Section */
.landing-cta-section {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.landing-cta-card {
  background: linear-gradient(135deg, #047857, #10b981, #06b6d4);
  border-radius: 32px;
  padding: 60px 24px;
  text-align: center;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  box-shadow: var(--shadow-lg);
}

@media (min-width: 768px) {
  .landing-cta-card {
    padding: 80px 40px;
  }
}

.cta-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  max-width: 580px;
}

.cta-desc {
  opacity: 0.9;
  font-size: 1rem;
  max-width: 480px;
  line-height: 1.6;
  margin-bottom: 12px;
}

.landing-btn-light {
  background-color: white;
  color: var(--accent-hover);
  border: none;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  padding: 16px 36px;
  border-radius: 16px;
  transition: transform 0.1s, box-shadow 0.2s;
}

.landing-btn-light:hover {
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  transform: translateY(-1px);
}

.landing-btn-light:active {
  transform: translateY(0) scale(0.98);
}

/* Footer */
.landing-footer {
  border-top: 1px solid var(--border-color);
  background-color: var(--surface-color);
  padding: 80px 24px 30px;
  transition: background-color 0.3s, border-color 0.3s;
}

@media (min-width: 768px) {
  .landing-footer {
    padding: 80px 40px 30px;
  }
}

.footer-grid {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.5fr repeat(3, 1fr);
  }
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--accent-color);
}

.footer-logo {
  width: 28px;
  height: 28px;
}

.footer-tagline {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
  max-width: 240px;
}

.footer-org {
  font-size: 0.75rem;
  color: var(--text-muted);
  opacity: 0.8;
}

.footer-links-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.footer-links-col h4 {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links-col a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.875rem;
  transition: color 0.2s;
}

.footer-links-col a:hover {
  color: var(--text-color);
}

.footer-address {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer-bottom {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  border-top: 1px solid var(--border-color);
  padding-top: 30px;
  text-align: center;
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* ============================
   LEGAL DOCUMENT VIEW (Proper Page)
   ============================ */
.legal-page-view {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-color);
  color: var(--text-color);
  z-index: 2000;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.legal-page-nav {
  position: sticky;
  top: 0;
  width: 100%;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  border-bottom: 1px solid var(--border-color);
  background-color: var(--surface-color);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  z-index: 10;
}

.legal-back-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: var(--surface-hover);
  border: 1px solid var(--border-color);
  color: var(--text-color);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  padding: 8px 16px;
  border-radius: 10px;
  transition: all 0.2s;
}

.legal-back-btn:hover {
  background-color: var(--border-color);
  transform: translateX(-2px);
}

.legal-page-content {
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
  padding: 60px 24px 80px;
}

.legal-page-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.legal-page-meta {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 20px;
}

.legal-page-body {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-muted);
}

.legal-page-body h3 {
  font-family: var(--font-heading) !important;
  font-size: 1.3rem !important;
  font-weight: 700 !important;
  color: var(--text-color) !important;
  margin-top: 32px !important;
  margin-bottom: 12px !important;
}

.legal-page-body p {
  margin-bottom: 16px !important;
  font-size: 1rem !important;
  line-height: 1.7 !important;
}

.legal-page-body ul, .legal-page-body ol {
  margin-bottom: 20px !important;
  padding-left: 20px !important;
}

.legal-page-body li {
  margin-bottom: 8px !important;
  font-size: 1rem !important;
}

