:root {
  --ink: #073457;
  --muted: #6d7592;
  --white: #fff;
  --panel: rgba(255, 255, 255, 0.92);
  --panel-soft: rgba(255, 255, 255, 0.18);
  --line: rgba(255, 255, 255, 0.32);
  --accent: #e7a733;
  --success: #56c3d4;
  --aqua: #68c8d7;
  --aqua-dark: #217f96;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 50% 115%, rgba(160, 223, 234, 0.95) 0, rgba(90, 178, 214, 0.92) 32%, transparent 58%),
    linear-gradient(180deg, #124e73 0%, #1e7ea5 64%, #8fd2df 100%);
}

body.modal-open {
  overflow: hidden;
}

button {
  border: 0;
  font: inherit;
  cursor: pointer;
}

.app-shell {
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 36px 22px 30px;
}

.brand {
  text-align: center;
  padding-top: 4px;
}

.brand-logo {
  display: block;
  width: 112px;
  height: 112px;
  margin: 0 auto 16px;
  border-radius: 50%;
  object-fit: cover;
  filter: drop-shadow(0 10px 18px rgba(5, 34, 54, 0.24));
}

.brand h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 42px;
  line-height: 1.1;
  letter-spacing: 0;
}

.brand p {
  margin: 14px 0 28px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
}

.date-strip,
.status-card,
.action-row,
.thought-card,
.bottom-nav,
.progress-panel {
  border: 2px solid var(--line);
  background: var(--panel-soft);
  backdrop-filter: blur(12px);
}

.date-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 0 24px;
  border-radius: 32px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 19px;
}

.streak-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 96px;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 22px;
  color: var(--white);
  background: var(--accent);
}

.status-card {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 22px;
  padding: 22px 28px;
  border: 0;
  border-radius: 22px;
  color: #283056;
  background: var(--panel);
}

.status-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  border-radius: 50%;
  color: var(--aqua-dark);
  background: #e5f8fb;
  font-size: 32px;
  font-weight: 900;
}

.status-card strong {
  display: block;
  color: var(--success);
  font-size: 22px;
}

.status-card p {
  margin: 4px 0 0;
  font-size: 20px;
}

.meditation-card {
  margin-top: 24px;
  min-height: 360px;
  padding: 42px;
  border-radius: 26px;
  color: var(--ink);
  background: var(--panel);
}

.loading-state,
.error-state {
  min-height: 270px;
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
}

.wave {
  font-size: 44px;
  color: #2f80a6;
}

.loading-state h2,
.error-state h2,
.meditation-content h2 {
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0;
}

.loading-state h2,
.error-state h2 {
  margin: 12px 0 8px;
  font-size: 28px;
}

.loading-state p,
.error-state p {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 18px;
  font-weight: 650;
}

.ghost-button {
  padding: 12px 22px;
  border: 2px solid rgba(7, 52, 87, 0.12);
  border-radius: 12px;
  color: var(--ink);
  background: var(--white);
  font-weight: 800;
}

.section-label,
.reflection-box span,
.thought-card span {
  display: block;
  color: var(--aqua-dark);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.meditation-content h2 {
  margin: 14px 0 18px;
  font-size: 30px;
  line-height: 1.18;
}

.body-text,
.reflection-box p {
  white-space: pre-line;
  font-size: 18px;
  line-height: 1.65;
}

.reflection-box {
  margin-top: 28px;
  padding: 22px;
  border-radius: 16px;
  background: #eef7f4;
}

.source-note {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid rgba(7, 52, 87, 0.14);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.source-note p {
  margin: 0 0 6px;
}

.source-note a {
  color: var(--aqua-dark);
  font-weight: 850;
}

.action-row {
  display: grid;
  grid-template-columns: 70px minmax(0, 1.3fr) minmax(0, 1fr) 70px;
  gap: 14px;
  margin-top: 22px;
  padding: 0;
  border: 0;
  background: transparent;
}

.primary-action,
.icon-action,
.notify-action,
.share-action,
.tool-tile {
  min-height: 70px;
  border: 2px solid var(--line);
  border-radius: 12px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  font-weight: 900;
}

.primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-size: 20px;
}

.icon-action {
  display: grid;
  place-items: center;
  font-size: 24px;
}

.read-action {
  color: var(--aqua-dark);
  background: rgba(255, 255, 255, 0.9);
}

.prayer-action {
  border-color: rgba(255, 255, 255, 0.56);
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 26px rgba(4, 28, 45, 0.16);
}

.notify-action,
.share-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 16px;
}

.notify-action {
  font-size: 15px;
}

.share-action {
  font-size: 24px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(4, 28, 45, 0.68);
  backdrop-filter: blur(10px);
}

.prayer-modal {
  position: relative;
  width: min(100%, 560px);
  max-height: min(86vh, 760px);
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 26px;
  color: var(--white);
  background:
    linear-gradient(180deg, rgba(7, 52, 87, 0.26), rgba(7, 52, 87, 0.42)),
    url("expo/serenidade.jpg") center / cover;
  box-shadow: 0 22px 70px rgba(2, 18, 31, 0.45);
}

.prayer-modal::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(7px);
}

.prayer-content {
  position: relative;
  z-index: 1;
  padding: 44px 34px 34px;
  text-align: left;
  text-shadow: 0 3px 8px rgba(0, 0, 0, 0.34);
}

.prayer-content h2 {
  margin: 0 0 22px;
  font-size: 30px;
  line-height: 1.1;
  text-align: center;
}

.prayer-content p {
  margin: 0 0 18px;
  font-size: 20px;
  font-style: italic;
  font-weight: 850;
  line-height: 1.28;
}

.prayer-content img {
  display: block;
  width: 118px;
  height: 118px;
  margin: 28px auto 0;
  border: 5px solid rgba(255, 255, 255, 0.86);
  border-radius: 50%;
  object-fit: cover;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.86);
  font-size: 28px;
  font-weight: 800;
}

.quick-tools {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 22px;
}

.tool-tile {
  display: grid;
  place-items: center;
  align-content: center;
  min-height: 118px;
  padding: 18px 10px;
  gap: 10px;
  text-transform: uppercase;
}

.tool-tile span {
  font-size: 30px;
}

.tool-tile strong {
  font-size: 15px;
}

.thought-card {
  margin-top: 22px;
  padding: 28px;
  border-radius: 22px;
  text-align: center;
}

.thought-card span {
  color: rgba(255, 255, 255, 0.66);
}

.thought-card p {
  margin: 16px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-style: italic;
  font-weight: 700;
  line-height: 1.55;
}

.progress-panel,
.platform-panel {
  margin-top: 22px;
  padding: 28px;
  border-radius: 22px;
  color: var(--white);
}

.view-header {
  margin-bottom: 22px;
}

.view-header span {
  display: block;
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.view-header h2 {
  margin: 8px 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  line-height: 1.18;
}

.view-header p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 17px;
  line-height: 1.5;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  text-align: center;
}

.metric-grid > div,
.reward-list > div,
.feature-list > div {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.1);
}

.metric {
  display: block;
  font-size: 30px;
  font-weight: 950;
}

.metric-grid small {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 800;
  text-transform: uppercase;
}

.metric-grid > div {
  padding: 18px 10px;
}

.reward-list,
.feature-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.reward-list > div,
.feature-list > div {
  display: grid;
  gap: 4px;
  padding: 16px;
}

.reward-list strong,
.feature-list strong {
  font-size: 18px;
}

.reward-list span,
.feature-list span {
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.45;
}

.media-block {
  margin: 24px 0 16px;
}

.media-block h3 {
  margin: 0 0 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
}

.media-block iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.1);
}

.social-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 24px;
}

.social-links a {
  display: grid;
  place-items: center;
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  font-weight: 900;
  text-decoration: none;
}

.community-block {
  margin-top: 24px;
}

.community-block h3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
}

.community-block h3 span {
  padding: 6px 10px;
  border-radius: 999px;
  color: #073457;
  background: rgba(255, 255, 255, 0.78);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.info-list {
  display: grid;
  gap: 10px;
}

.info-list article {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.1);
}

.info-list strong {
  display: block;
  margin-bottom: 4px;
  font-size: 17px;
}

.info-list p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.45;
}

.community-source {
  border-top-color: var(--line);
  color: rgba(255, 255, 255, 0.74);
}

.community-source a {
  color: var(--white);
}

.expo-hero {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #073457;
}

.expo-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.expo-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4, 28, 45, 0.12), rgba(4, 28, 45, 0.82));
}

.expo-hero-copy {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 1;
}

.expo-hero-copy span,
.expo-intro span {
  display: block;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.expo-hero-copy h2 {
  margin: 8px 0 6px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 44px;
  line-height: 1;
}

.expo-hero-copy p {
  margin: 0;
  max-width: 420px;
  font-size: 18px;
  font-weight: 750;
  line-height: 1.4;
}

.expo-intro {
  margin-top: 24px;
}

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

.expo-grid figure {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.1);
}

.expo-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.expo-grid figcaption {
  padding: 12px 14px 14px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 15px;
  font-weight: 900;
}

.bottom-nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 28px;
  padding: 14px;
  border-radius: 26px;
}

.bottom-nav button {
  min-height: 78px;
  border-radius: 18px;
  color: rgba(255, 255, 255, 0.72);
  background: transparent;
  font-weight: 900;
  text-transform: uppercase;
}

.bottom-nav .nav-icon {
  display: block;
  width: 25px;
  height: 25px;
  margin: 0 auto 8px;
  color: var(--white);
}

.bottom-nav .nav-icon svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.bottom-nav .nav-icon .filled {
  fill: currentColor;
  stroke: none;
}

.bottom-nav button > span:not(.nav-icon) {
  display: block;
  margin-bottom: 8px;
  font-size: 24px;
}

.bottom-nav button.active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
}

[hidden] {
  display: none !important;
}

@media (max-width: 620px) {
  .app-shell {
    padding: 22px 14px 22px;
  }

  .brand h1 {
    font-size: 34px;
  }

  .brand-logo {
    width: 92px;
    height: 92px;
  }

  .brand p {
    font-size: 12px;
    letter-spacing: 3px;
  }

  .date-strip {
    padding: 0 14px;
    font-size: 15px;
  }

  .meditation-card {
    padding: 28px 22px;
  }

  .action-row {
    grid-template-columns: 58px 1fr 58px;
    gap: 10px;
  }

  .prayer-action {
    grid-column: 2 / 4;
    font-size: 15px;
  }

  .notify-action {
    grid-column: 1 / 3;
  }

  .notify-action,
  .share-action {
    font-size: 12px;
  }

  .share-action {
    font-size: 22px;
  }

  .prayer-content {
    padding: 42px 24px 28px;
  }

  .prayer-content h2 {
    font-size: 25px;
  }

  .prayer-content p {
    font-size: 17px;
  }

  .quick-tools {
    grid-template-columns: 1fr;
  }

  .social-links {
    grid-template-columns: repeat(2, 1fr);
  }

  .community-block h3 {
    align-items: flex-start;
    flex-direction: column;
  }

  .metric-grid {
    grid-template-columns: 1fr;
  }

  .bottom-nav {
    gap: 4px;
    padding: 10px;
  }

  .bottom-nav button {
    min-height: 66px;
    font-size: 10px;
  }

  .expo-hero {
    min-height: 300px;
  }

  .expo-hero-copy h2 {
    font-size: 36px;
  }

  .expo-grid {
    grid-template-columns: 1fr;
  }
}
