/* Align home SPA with anniversary / forum visual language */
:root {
  --pine: #064f3c;
  --emerald: #087451;
  --emerald-bright: #15936a;
  --gold: #d9a33f;
  --gold-soft: #f5c85e;
  --ink: #17362c;
  --muted: #6f847a;
  --paper: #f7fbf8;
  --line: #d7e6dd;
  --shadow: 0 10px 24px rgba(8, 76, 52, .12);
}

body {
  background:
    radial-gradient(circle at 12% 0%, rgba(217, 163, 63, .16), transparent 34%),
    linear-gradient(180deg, #e8f3ec 0%, #edf1ee 42%, #e7efe9 100%);
  color: var(--ink);
}

.app-shell {
  background: var(--paper);
  box-shadow: 0 0 46px rgba(4, 66, 46, .12);
}

.topbar {
  height: auto;
  min-height: 64px;
  padding: 12px 0;
  background: linear-gradient(115deg, var(--pine), var(--emerald) 63%, var(--emerald-bright));
  margin: 0 -18px;
  padding-left: 18px;
  padding-right: 18px;
  color: #fff;
}

.brand img {
  width: 43px;
  height: 43px;
  padding: 2px;
  border-radius: 50%;
  background: #fff;
  object-fit: contain;
}

.brand strong {
  color: #fff;
  font-size: 14px;
}

.brand span {
  color: #d8f0e4;
  font-size: 11px;
}

.icon-btn {
  color: #fff7df;
}

.hero {
  height: 320px;
  margin: 0 -18px;
  border-radius: 0 0 26px 26px;
  box-shadow: none;
}

.hero-overlay {
  background:
    radial-gradient(circle at 78% 22%, rgba(235, 183, 68, .92) 0 5%, transparent 5.4%),
    linear-gradient(180deg, rgba(6, 75, 57, .18), rgba(6, 75, 57, .88));
}

.hero-content {
  left: 22px;
  right: 22px;
  bottom: 28px;
}

.hero-date {
  display: inline-block;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: 999px;
  color: #fff7df;
  background: rgba(255, 255, 255, .1);
  letter-spacing: .12em;
  font-size: 11px;
  margin-bottom: 12px;
}

.hero h1 {
  font-family: STKaiti, KaiTi, "Songti SC", Georgia, serif;
  font-size: 32px;
  letter-spacing: 1px;
}

.hero h1 em {
  color: #f5d58a;
}

.hero p {
  color: #d6f1e4;
  opacity: 1;
}

.light-button {
  background: var(--gold-soft);
  color: #174b39;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(180, 130, 30, .22);
}

.countdown {
  margin-top: 8px;
  padding: 16px 14px;
  border: 0;
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow);
}

.countdown strong {
  color: var(--emerald);
}

.countdown-mark {
  min-width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, #f7d58a, #d9a33f);
  color: #5a4010;
  font-size: 18px;
  font-weight: 700;
  box-shadow: 0 6px 14px rgba(180, 130, 30, .25);
}

.countdown-mark small {
  display: block;
  font-size: 10px;
  font-weight: 700;
  opacity: .85;
}

.section-block {
  padding-top: 22px;
}

.section-title span {
  color: var(--gold);
  font-weight: 800;
  letter-spacing: .14em;
}

.section-title h2 {
  font-family: STKaiti, KaiTi, "Songti SC", Georgia, serif;
  color: var(--ink);
  font-size: 22px;
}

.text-link {
  color: var(--emerald);
  font-weight: 700;
}

.quick-grid {
  gap: 10px;
  background: transparent;
  border: 0;
}

.quick-item {
  min-height: 104px;
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow);
  padding: 14px 12px;
  transition: transform .18s ease, box-shadow .18s ease;
}

.quick-item:hover {
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 22px rgba(8, 76, 52, .14);
}

.quick-item:nth-child(1) .quick-icon { color: #087451; }
.quick-item:nth-child(2) .quick-icon { color: #1f7f9a; }
.quick-item:nth-child(3) .quick-icon { color: #c58a2b; }
.quick-item:nth-child(4) .quick-icon { color: #3d7cc9; }
.quick-item:nth-child(5) .quick-icon { color: #b85c6a; }
.quick-item:nth-child(6) .quick-icon { color: #8a5a2a; }

.quick-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--green-soft, #e8f6ee);
  font-size: 18px;
  margin-bottom: 10px;
}

.activity-section .activity-card {
  border: 0;
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow);
  padding: 14px;
  margin-bottom: 10px;
}

.activity-section .activity-card:last-child {
  border: 0;
  margin-bottom: 0;
}

.activity-date {
  width: 52px;
  padding: 8px 0;
  border-radius: 12px;
  background: linear-gradient(160deg, #0b7958, #0a5f48);
  color: #fff;
}

.activity-date b {
  color: #fff;
}

.activity-date span {
  color: #d8f0e4;
}

.activity-info small {
  color: #b8892f;
}

.outline-button {
  border: 0;
  background: #f5c85e;
  color: #174b39;
  font-weight: 800;
  border-radius: 999px;
}

.muted-card {
  opacity: 1;
}

.muted-card .activity-date {
  background: linear-gradient(160deg, #1f6c70, #43a49c);
}

.memory-strip {
  margin-top: 24px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 88% 18%, rgba(245, 200, 94, .35), transparent 28%),
    linear-gradient(125deg, #064b39, #087651 60%, #17a171);
  box-shadow: var(--shadow);
}

.memory-strip span {
  color: #f2d48d;
  font-weight: 800;
}

.dark-button {
  background: #f5c85e;
  color: #174b39;
  font-weight: 800;
}

.memory-collage div {
  border-color: rgba(255, 255, 255, .85);
  box-shadow: 0 6px 14px rgba(0, 0, 0, .18);
}

.blessing-preview {
  padding-top: 24px;
}

.quote-card,
.blessing-home-list .quote-card {
  border: 0;
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow);
  padding: 14px;
}

.avatar {
  background: linear-gradient(135deg, #e1aa56, #a76838);
  color: #fff;
}

.heart {
  color: #c58a2b !important;
}

.bottom-nav {
  position: fixed !important;
  z-index: 30 !important;
  left: 50% !important;
  bottom: 0 !important;
  transform: translateX(-50%) !important;
  width: min(100%, 480px) !important;
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  align-items: stretch !important;
  gap: 6px !important;
  height: auto !important;
  margin: 0 !important;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px)) !important;
  border: 0 !important;
  border-radius: 0 !important;
  border-top: 1px solid rgba(255,220,140,.42) !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,.12) 0%, transparent 28%),
    radial-gradient(ellipse at 50% -20%, rgba(245,200,94,.28), transparent 55%),
    linear-gradient(180deg, #0e9469 0%, #087451 48%, #055c40 100%) !important;
  box-shadow:
    0 -10px 28px rgba(3,55,38,.32),
    inset 0 1px 0 rgba(255,255,255,.18) !important;
}

.nav-item {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 3px !important;
  height: auto !important;
  min-height: 52px !important;
  padding: 7px 4px 9px !important;
  color: rgba(236,250,242,.86) !important;
  text-decoration: none;
  border: 0 !important;
  border-radius: 16px !important;
  background: rgba(255,255,255,.04) !important;
  font-weight: 650 !important;
  letter-spacing: .02em !important;
  transform: none !important;
  transition: color .2s ease, background .2s ease, box-shadow .2s ease, transform .15s ease !important;
}

.nav-item span {
  display: grid !important;
  place-items: center !important;
  width: 36px !important;
  height: 30px !important;
  border-radius: 12px !important;
  font-size: 18px !important;
  line-height: 1 !important;
  background: rgba(255,255,255,.08) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12) !important;
  color: inherit !important;
  transition: background .2s ease, color .2s ease, box-shadow .2s ease, transform .15s ease !important;
}

.nav-item:active {
  transform: scale(.97) !important;
}

.nav-item.is-active,
.nav-item[aria-current="page"] {
  color: #163f30 !important;
  font-weight: 800 !important;
  background:
    radial-gradient(circle at 50% 0%, rgba(255,255,255,.65), transparent 60%),
    linear-gradient(165deg, #fff8e2 0%, #f7d27a 52%, #efbf4f 100%) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.85),
    0 6px 14px rgba(0,0,0,.18),
    0 0 0 1px rgba(255,220,140,.35) !important;
  transform: none !important;
}

.nav-item.is-active span,
.nav-item[aria-current="page"] span {
  background: rgba(255,255,255,.72) !important;
  box-shadow: 0 2px 8px rgba(110,75,10,.2) !important;
  color: #0a5f48 !important;
  transform: translateY(-1px) !important;
}

.nav-item.is-active:before,
.nav-item[aria-current="page"]:before {
  content: "";
  position: absolute;
  left: 50%;
  top: 5px;
  width: 18px;
  height: 3px;
  border-radius: 999px;
  background: rgba(10,107,79,.35);
  transform: translateX(-50%);
}

.nav-item.is-active:after,
.nav-item[aria-current="page"]:after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 5px;
  width: 18px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #0a6b4f, #12a879);
  transform: translateX(-50%);
}

.nav-item[aria-current="false"] {
  color: rgba(236,250,242,.86) !important;
  background: rgba(255,255,255,.04) !important;
  transform: none !important;
  font-weight: 650 !important;
}

.toast {
  background: rgba(6, 79, 60, .94);
}
