:root {
  --bg: #f4efe7;
  --panel: #fffdf9;
  --panel-strong: #ece2d2;
  --primary: #123d2c;
  --primary-soft: #1e5f4d;
  --gold: #d9b36c;
  --gold-soft: #f3e5c4;
  --text: #1f2a26;
  --muted: #5f6a66;
  --border: rgba(18, 61, 44, 0.12);
  --shadow: 0 18px 38px rgba(20, 35, 31, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(180deg, #f7f1e8 0%, #eef2ee 100%);
  color: var(--text);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 34, 48, 0.12), rgba(18, 34, 48, 0.08));
  pointer-events: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.page-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 20px 40px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 22px;
  background: rgba(255, 255, 255, 0.28);
  border: 1px solid rgba(18, 61, 44, 0.06);
  border-radius: 18px;
  backdrop-filter: blur(12px);
  position: sticky;
  top: 12px;
  z-index: 20;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-soft) 100%);
  color: white;
}

.nav {
  display: flex;
  gap: 18px;
}

.nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}

.panel {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.poster-hero {
  margin-top: 26px;
  padding: 36px 20px 22px;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(255, 247, 233, 0.12), rgba(254, 247, 230, 0.06)),
    linear-gradient(180deg, rgba(94, 118, 137, 0.12), rgba(255, 214, 158, 0.18)),
    url('https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?auto=format&fit=crop&w=1400&q=80') center/cover no-repeat;
  border-radius: 26px;
  border: 1px solid rgba(18, 61, 44, 0.08);
  box-shadow: var(--shadow);
  min-height: 740px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.logo-emblem {
  position: relative;
  width: 118px;
  height: 80px;
  margin: 0 auto 8px;
  border: 4px solid #163859;
  border-bottom: none;
  border-radius: 60px 60px 0 0;
  background: rgba(255, 255, 255, 0.08);
}

.logo-stem {
  position: absolute;
  left: 50%;
  bottom: -38px;
  width: 4px;
  height: 44px;
  background: #163859;
  transform: translateX(-50%);
  border-radius: 3px;
}

.leaf {
  position: absolute;
  width: 26px;
  height: 30px;
  background: transparent;
  border: 3px solid #163859;
  border-color: #163859 transparent transparent transparent;
  border-radius: 50% 50% 0 45%;
  top: 18px;
}

.leaf-left {
  left: 20px;
  transform: rotate(-22deg);
}

.leaf-right {
  right: 20px;
  transform: rotate(22deg) scaleX(-1);
}

.main-title {
  margin: 0;
  font-size: clamp(5rem, 10vw, 13rem);
  line-height: 0.85;
  letter-spacing: -0.07em;
  font-weight: 800;
  color: #163859;
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.18);
}

.main-title span {
  display: block;
}

.ornament-line {
  width: min(600px, 70%);
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(190, 140, 64, 0.9) 20%, rgba(190, 140, 64, 0.9) 50%, rgba(190, 140, 64, 0.9) 80%, transparent 100%);
  margin: 16px auto 12px;
  position: relative;
}

.ornament-line::before,
.ornament-line::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d4a766;
  transform: translateY(-50%);
}

.ornament-line::before { left: 42%; }
.ornament-line::after { right: 42%; }

.tagline {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 3rem);
  color: #163859;
  font-style: italic;
  font-weight: 600;
}

.tagline span {
  color: #163859;
  font-weight: 700;
}

.feature-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  margin-top: 30px;
  width: min(920px, 100%);
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(22, 56, 89, 0.9);
  border-radius: 999px;
  padding: 12px 20px;
  color: white;
  font-weight: 700;
  font-size: clamp(1rem, 1.7vw, 1.5rem);
  box-shadow: 0 12px 30px rgba(13, 34, 46, 0.15);
}

.feature-icon {
  display: inline-flex;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.hero {
  margin-top: 26px;
  padding: 40px 32px;
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 28px;
  align-items: center;
}

.hero h2 {
  margin: 0;
  font-size: clamp(2.2rem, 3vw, 3rem);
  line-height: 1.1;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--primary-soft);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.08;
}

.subtitle {
  margin: 18px 0 0;
  font-size: 1.05rem;
  max-width: 620px;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.primary-btn,
.secondary-btn,
button {
  border: none;
  border-radius: 999px;
  padding: 0.88rem 1.3rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.primary-btn,
button.primary-btn {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-soft) 100%);
  color: white;
}

.secondary-btn,
button.secondary-btn {
  background: var(--gold-soft);
  color: var(--primary);
}

.primary-btn:hover,
.secondary-btn:hover,
button:hover {
  transform: translateY(-1px);
}

.hero-card {
  padding: 28px 24px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(217, 179, 108, 0.12), rgba(17, 61, 44, 0.08));
  border: 1px solid var(--border);
}

.mini-label {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary-soft);
  font-weight: 800;
  margin-bottom: 16px;
}

.profile-pill {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(18, 61, 44, 0.08);
  border-radius: 16px;
  padding: 12px 14px;
  margin-bottom: 18px;
}

.profile-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-soft) 100%);
  color: white;
  font-size: 1.2rem;
}

.profile-label {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.welcome-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary);
}

.profile-box {
  margin-bottom: 18px;
}

.profile-box label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--primary-soft);
  font-weight: 700;
}

.focus-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(18, 61, 44, 0.12);
}

.focus-row:last-child {
  border-bottom: none;
}

.focus-row span {
  color: var(--muted);
}

.section {
  margin-top: 32px;
  padding: 28px 24px;
}

.section-header {
  margin-bottom: 22px;
}

.section-header h2 {
  margin: 0;
  font-size: clamp(1.7rem, 2vw, 2.4rem);
}

.prayer-layout,
.grow-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 24px;
}

.prayer-card,
.members-panel,
.grow-card,
.habit-box,
.bible-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 22px;
}

.prayer-avatar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  padding: 18px 0 8px;
}

.ring {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, rgba(217, 179, 108, 0.18), rgba(18, 61, 44, 0.06) 60%, rgba(18, 61, 44, 0.12));
  border: 10px solid rgba(18, 61, 44, 0.12);
  text-align: center;
  font-size: clamp(1.3rem, 2vw, 1.9rem);
  font-weight: 800;
  color: var(--primary);
  padding: 16px;
}

.countdown {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-soft);
}

.controls {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 12px;
}

.field-label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.85rem;
  color: var(--primary-soft);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

select,
input,
textarea {
  width: 100%;
  padding: 0.8rem 0.95rem;
  border-radius: 12px;
  border: 1px solid rgba(18, 61, 44, 0.15);
  background: rgba(255, 255, 255, 0.84);
  color: var(--text);
}

.member-list {
  list-style: none;
  padding: 0;
  margin: 18px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.member-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(18, 61, 44, 0.1);
  background: rgba(18, 61, 44, 0.02);
}

.member-item.active {
  background: linear-gradient(135deg, rgba(18, 61, 44, 0.93), rgba(30, 95, 77, 0.9));
  color: white;
}

.member-item small {
  font-size: 0.72rem;
  opacity: 0.8;
}

.summary-box {
  min-height: 56px;
  border-radius: 12px;
  padding: 14px 16px;
  background: rgba(217, 179, 108, 0.12);
  color: var(--primary);
  font-weight: 600;
}

.bible-tool {
  display: grid;
  grid-template-columns: 0.9fr 1.4fr;
  gap: 24px;
  align-items: start;
}

.bible-controls {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.search-row {
  display: flex;
  gap: 10px;
}

.bible-card {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(135deg, rgba(18, 61, 44, 0.04), rgba(217, 179, 108, 0.08));
}

.verse-reference {
  margin: 0;
  color: var(--primary-soft);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.verse-text {
  margin: 22px 0 12px;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  line-height: 1.7;
  color: var(--text);
}

.translation-label {
  margin: 0;
  color: var(--muted);
}

.quick-passages {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.quick-passages button {
  border: 1px solid rgba(18, 61, 44, 0.12);
  background: rgba(255, 255, 255, 0.8);
  color: var(--primary);
}

.grow-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.growth-plan {
  margin-top: 8px;
  padding: 16px;
  border-radius: 14px;
  background: rgba(18, 61, 44, 0.04);
  border: 1px solid rgba(18, 61, 44, 0.08);
  color: var(--text);
  line-height: 1.7;
}

.habit-box {
  margin-top: 22px;
}

.habit-box h3 {
  margin-top: 0;
}

.habit-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.habit-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(18, 61, 44, 0.02);
  border: 1px solid rgba(18, 61, 44, 0.08);
  border-radius: 12px;
  padding: 10px 12px;
}

.habit-item input {
  width: 18px;
  height: 18px;
}

.journal-note {
  min-height: 32px;
  color: var(--primary-soft);
  font-weight: 600;
}

.footer {
  padding: 22px 0 0;
  text-align: center;
  color: var(--muted);
}

@media (max-width: 900px) {
  .hero,
  .prayer-layout,
  .grow-grid,
  .bible-tool {
    grid-template-columns: 1fr;
  }

  .topbar {
    flex-direction: column;
    gap: 14px;
  }

  .nav {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 560px) {
  .page-shell {
    padding-left: 14px;
    padding-right: 14px;
  }

  .hero,
  .section {
    padding-left: 18px;
    padding-right: 18px;
  }

  .search-row,
  .controls {
    flex-direction: column;
  }

  .ring {
    width: 180px;
    height: 180px;
  }
}
