:root {
  --bg-main: #f7fbf8;
  --bg-soft: #edf6f4;
  --surface: rgba(255, 255, 255, 0.76);
  --surface-strong: rgba(255, 255, 255, 0.94);
  --text: #20302d;
  --muted: #5e6b68;
  --line: rgba(32, 48, 45, 0.14);
  --pink: #d76b8f;
  --coral: #ee965f;
  --yellow: #f2c95c;
  --mint: #80d8c6;
  --teal: #2f9e8f;
  --sky: #78bce7;
  --purple: #9d90e8;
  --shadow: 0 24px 60px rgba(58, 98, 91, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Nunito", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(120, 188, 231, 0.2), transparent 30%),
    radial-gradient(circle at top right, rgba(128, 216, 198, 0.26), transparent 28%),
    radial-gradient(circle at bottom right, rgba(242, 201, 92, 0.22), transparent 26%),
    linear-gradient(180deg, var(--bg-main) 0%, #fffdf9 100%);
  position: relative;
  overflow-x: hidden;
}

.page-glow {
  position: fixed;
  border-radius: 999px;
  filter: blur(40px);
  pointer-events: none;
  opacity: 0.48;
  z-index: 0;
}

.page-glow-a {
  width: 280px;
  height: 280px;
  background: rgba(255, 126, 168, 0.25);
  top: 80px;
  left: -120px;
}

.page-glow-b {
  width: 340px;
  height: 340px;
  background: rgba(152, 214, 255, 0.24);
  bottom: 60px;
  right: -110px;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.site-main img:not(.social-avatar):not(.nav-avatar):not(.user-avatar):not(.avatar-fallback):not(.profile-preview):not(.party-date-icon):not(.party-photo):not(.memory-slide-image):not(.memory-card-image):not(.memory-admin-thumb) {
  width: 100%;
  height: clamp(240px, 44vh, 520px);
  object-fit: contain;
  object-position: center;
  border-radius: 1.35rem;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(237, 246, 244, 0.9)),
    var(--surface-strong);
  border: 1px solid rgba(32, 48, 45, 0.1);
  box-shadow: 0 18px 44px rgba(58, 98, 91, 0.12);
}

.container {
  position: relative;
  z-index: 1;
  width: min(1200px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: rgba(255, 248, 239, 0.82);
  border-bottom: 1px solid rgba(133, 88, 71, 0.08);
}

.shell-header,
.footer-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
}

.brand-logo {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(255, 126, 168, 0.18);
}

.brand-copy strong,
h1,
h2,
h3 {
  font-family: "Baloo 2", cursive;
}

.brand-copy strong {
  display: block;
  font-size: 1.05rem;
  line-height: 1;
}

.brand-copy span {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
}

.header-user-bubble {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-left: auto;
  padding: 0.45rem 0.8rem 0.45rem 0.45rem;
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 213, 106, 0.24)),
    rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 126, 168, 0.22);
  box-shadow: 0 14px 34px rgba(187, 122, 82, 0.14);
  min-width: 0;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.header-user-bubble:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(187, 122, 82, 0.18);
}

.header-user-copy {
  display: grid;
  min-width: 0;
  line-height: 1.05;
}

.header-user-copy strong,
.header-user-copy small {
  max-width: 8.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-user-copy strong {
  color: #3c2827;
  font-weight: 1000;
}

.header-user-copy small {
  color: var(--muted);
  font-weight: 800;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.55rem;
  padding: 0.82rem 1rem;
  border: 1px solid rgba(255, 157, 108, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: #5d4a48;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.nav-toggle-icon {
  font-size: 1rem;
  line-height: 1;
}

.top-nav a,
.nav-install-action {
  display: inline-flex;
  align-items: center;
  gap: 0.48rem;
  padding: 0.78rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid transparent;
  color: #5d4a48;
  font: inherit;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease;
}

.top-nav a:hover,
.top-nav a.nav-highlight,
.nav-install-action:hover {
  transform: translateY(-1px);
  background: var(--surface-strong);
  border-color: rgba(255, 157, 108, 0.24);
}

.nav-install-action[hidden] {
  display: none !important;
}

.nav-install-action {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fffdf9;
  background: linear-gradient(135deg, var(--teal), var(--coral) 54%, var(--yellow));
  border-color: rgba(255, 255, 255, 0.38);
  box-shadow: 0 12px 26px rgba(47, 158, 143, 0.24);
}

.nav-install-action::after,
.install-app-fab::after {
  content: "";
  position: absolute;
  inset: -40% auto -40% -65%;
  width: 48%;
  transform: rotate(18deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  animation: installShine 3.2s ease-in-out infinite;
  z-index: 0;
}

.nav-install-action > *,
.install-app-fab > * {
  position: relative;
  z-index: 1;
}

.nav-install-action:hover {
  color: #fffdf9;
  background: linear-gradient(135deg, #268a7d, var(--pink) 52%, var(--yellow));
  box-shadow: 0 16px 32px rgba(47, 158, 143, 0.3);
}

.install-phone-icon {
  position: relative;
  width: 0.92rem;
  height: 1.25rem;
  display: inline-block;
  flex: 0 0 auto;
  border: 2px solid currentColor;
  border-radius: 0.32rem;
  box-shadow: inset 0 -0.18rem 0 rgba(255, 255, 255, 0.28);
}

.install-phone-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0.08rem;
  width: 0.2rem;
  height: 0.2rem;
  border-radius: 999px;
  background: currentColor;
  transform: translateX(-50%);
}

.install-app-fab {
  position: sticky;
  top: calc(0.7rem + env(safe-area-inset-top));
  z-index: 18;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.78rem;
  width: min(1120px, calc(100% - 2rem));
  min-height: 3.65rem;
  margin: 0.75rem auto 0;
  padding: 0.72rem 1rem 0.72rem 0.82rem;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 1.25rem;
  color: #fffdf9;
  background:
    linear-gradient(135deg, rgba(47, 158, 143, 0.96), rgba(215, 107, 143, 0.94) 54%, rgba(238, 150, 95, 0.96)),
    var(--teal);
  box-shadow: 0 18px 42px rgba(47, 158, 143, 0.32);
  font: inherit;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  animation: installPulse 2.8s ease-in-out infinite;
}

.install-app-fab[hidden],
.install-hint[hidden],
.install-sheet[hidden] {
  display: none !important;
}

.install-app-fab .install-phone-icon {
  width: 1.12rem;
  height: 1.5rem;
}

.install-app-copy {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
  text-align: left;
  line-height: 1.05;
}

.install-app-copy strong {
  font-weight: 1000;
  white-space: nowrap;
}

.install-app-copy small {
  color: rgba(255, 253, 249, 0.82);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.install-hint {
  position: fixed;
  z-index: 39;
  right: max(1rem, env(safe-area-inset-right));
  bottom: calc(5.2rem + env(safe-area-inset-bottom));
  max-width: min(22rem, calc(100vw - 2rem));
  padding: 0.85rem 1rem;
  border-radius: 1rem;
  color: #20302d;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(32, 48, 45, 0.1);
  box-shadow: 0 18px 42px rgba(58, 98, 91, 0.22);
  font-weight: 900;
}

body.has-app-nav .install-hint {
  bottom: calc(9.25rem + env(safe-area-inset-bottom));
}

.install-sheet {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  align-items: end;
  justify-items: center;
  padding: 1rem;
}

.install-sheet-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(32, 48, 45, 0.38);
  backdrop-filter: blur(10px);
  cursor: pointer;
}

.install-sheet-card {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  display: grid;
  gap: 0.9rem;
  padding: 1.25rem;
  border-radius: 1.35rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 248, 239, 0.98)),
    var(--surface-strong);
  border: 1px solid rgba(32, 48, 45, 0.1);
  box-shadow: 0 28px 70px rgba(32, 48, 45, 0.26);
}

.install-sheet-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid rgba(32, 48, 45, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #4b3836;
  font: inherit;
  font-size: 1.2rem;
  font-weight: 1000;
  line-height: 1;
  cursor: pointer;
}

.install-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.install-action-row .button {
  flex: 1 1 11rem;
}

.install-step-list {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding-left: 1.25rem;
  color: #4d3937;
  font-weight: 850;
}

body.install-sheet-open {
  overflow: hidden;
}

.top-nav a.nav-profile-link {
  padding: 0.42rem 0.85rem 0.42rem 0.42rem;
  background: linear-gradient(135deg, rgba(255, 126, 168, 0.13), rgba(137, 224, 199, 0.16));
  border-color: rgba(133, 88, 71, 0.08);
}

.nav-link-with-badge,
.bottom-app-nav a {
  position: relative;
}

.message-badge {
  min-width: 1.35rem;
  height: 1.35rem;
  display: inline-grid;
  place-items: center;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: #e33f67;
  color: #fff;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 1000;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(227, 63, 103, 0.28);
}

.message-badge[hidden] {
  display: none !important;
}

.nav-badge,
.bottom-app-nav .message-badge {
  position: absolute;
  top: 0.18rem;
  right: 0.2rem;
}

.bottom-app-nav a.has-unread {
  color: #20302d;
}

.social-avatar,
.nav-avatar {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 999px;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 20px rgba(187, 122, 82, 0.18);
  flex: 0 0 auto;
}

.nav-avatar {
  width: 2rem;
  height: 2rem;
  border-width: 2px;
}

.bottom-app-nav {
  display: none;
}

.site-main {
  padding: 1.35rem 0 4rem;
}

.site-footer {
  margin-top: 1rem;
  border-top: 1px solid rgba(133, 88, 71, 0.08);
  background: rgba(255, 244, 231, 0.82);
}

.footer-brand strong {
  display: block;
  margin-bottom: 0.25rem;
}

.footer-brand p,
.footer-note span {
  margin: 0.18rem 0;
  color: var(--muted);
}

.footer-note {
  display: grid;
  gap: 0.25rem;
  text-align: right;
}

.flash-stack {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.flash {
  padding: 1rem 1.15rem;
  border-radius: 1.2rem;
  font-weight: 800;
  border: 1px solid rgba(133, 88, 71, 0.12);
  box-shadow: var(--shadow);
}

.flash-success {
  background: rgba(137, 224, 199, 0.46);
  color: #255951;
}

.flash-warning {
  background: rgba(255, 213, 106, 0.52);
  color: #7a5319;
}

.hero-section,
.content-section {
  padding: 1rem 0 1.35rem;
}

.hero-grid,
.card-grid,
.dashboard-grid,
.auth-grid,
.admin-summary-grid {
  display: grid;
  gap: 1.2rem;
}

.hero-grid {
  grid-template-columns: 1.2fr 0.85fr;
  align-items: stretch;
}

.hero-stack {
  display: grid;
  gap: 1.2rem;
}

.hero-copy {
  display: grid;
  gap: 1rem;
  align-content: start;
}

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

.dashboard-spotlight {
  display: grid;
  grid-template-columns: minmax(280px, 0.92fr) minmax(0, 1.28fr);
  gap: 1.2rem;
  align-items: start;
}

.three-col {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.two-col,
.auth-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.card {
  border-radius: 2rem;
  padding: 1.45rem;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.glass-card {
  background: var(--surface);
  border: 1px solid rgba(133, 88, 71, 0.1);
  backdrop-filter: blur(18px);
}

.happy-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 241, 222, 0.94));
  border: 1px solid rgba(255, 157, 108, 0.18);
}

.playful-card {
  background: linear-gradient(180deg, rgba(255, 249, 232, 0.96), rgba(229, 250, 243, 0.96));
  border: 1px solid rgba(57, 183, 170, 0.14);
}

.candy-card {
  background: linear-gradient(180deg, rgba(255, 241, 238, 0.98), rgba(255, 253, 244, 0.98));
  border: 1px solid rgba(255, 126, 168, 0.16);
}

.banner-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.2rem;
  padding: 1.5rem;
  border-radius: 2rem;
  background: linear-gradient(135deg, rgba(255, 157, 108, 0.22), rgba(152, 214, 255, 0.24), rgba(137, 224, 199, 0.22));
  border: 1px solid rgba(133, 88, 71, 0.12);
  box-shadow: var(--shadow);
}

.hero-badges,
.button-row,
.admin-actions,
.status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
}

.hero-badges span,
.head-chip {
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(133, 88, 71, 0.1);
  font-weight: 800;
  color: #5c4c4a;
}

.hero-trust-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
  margin-top: 0.2rem;
}

.hero-trust-strip div,
.summary-tile,
.flow-step,
.donation-impact {
  padding: 0.9rem;
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(133, 88, 71, 0.08);
}

.hero-trust-strip strong,
.summary-tile strong {
  display: block;
  font-family: "Baloo 2", cursive;
  font-size: 1.55rem;
  line-height: 1;
  color: #32201f;
  overflow-wrap: anywhere;
}

.hero-trust-strip span,
.summary-tile span,
.summary-tile small,
.donation-impact span {
  display: block;
  color: var(--muted);
  font-weight: 800;
}

.flow-card {
  display: grid;
  gap: 0.9rem;
}

.flow-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}

.flow-step {
  display: grid;
  gap: 0.25rem;
}

.flow-index {
  width: 2rem;
  height: 2rem;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--pink), var(--yellow));
  color: #4b2821;
  font-weight: 1000;
}

.profile-chip,
.user-cell {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.user-cell {
  min-width: 150px;
}

.user-avatar,
.avatar-fallback,
.profile-preview {
  width: 2.65rem;
  height: 2.65rem;
  border-radius: 999px;
  flex: 0 0 auto;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 22px rgba(187, 122, 82, 0.16);
}

.avatar-fallback,
.profile-placeholder {
  display: inline-grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(255, 126, 168, 0.22), rgba(255, 213, 106, 0.32));
  color: #7a4c48;
  font-size: 1.1rem;
}

.profile-preview-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-radius: 1.5rem;
  background: linear-gradient(135deg, rgba(255, 213, 106, 0.22), rgba(255, 255, 255, 0.82));
  border: 1px solid rgba(133, 88, 71, 0.1);
}

.profile-preview-card span,
.profile-upload span {
  display: block;
  color: var(--muted);
  font-weight: 700;
}

.profile-preview {
  width: 4.75rem;
  height: 4.75rem;
  border-radius: 1.5rem;
}

.eyebrow,
.card-tag,
.metric-label {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0;
  font-size: 0.79rem;
  font-weight: 800;
}

.eyebrow,
.card-tag {
  color: #ba5f7f;
  margin-bottom: 0.75rem;
}

h1,
h2,
h3 {
  margin: 0 0 0.55rem;
  line-height: 1.02;
  letter-spacing: 0;
  color: #2d1d1c;
}

h1 {
  font-size: 3.5rem;
}

h2 {
  font-size: 2.25rem;
}

h3 {
  font-size: 1.42rem;
}

p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.section-head,
.page-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1rem;
}

.section-side-copy {
  max-width: 340px;
  text-align: right;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.25rem;
  border-radius: 1rem;
  border: 1px solid transparent;
  font-weight: 900;
  transition: transform 0.18s ease, filter 0.18s ease;
}

.button:hover {
  transform: translateY(-1px) scale(1.01);
}

.button:focus-visible,
.top-nav a:focus-visible,
.nav-install-action:focus-visible,
.bottom-app-nav a:focus-visible,
.nav-toggle:focus-visible,
.amount-presets button:focus-visible,
.carousel-button:focus-visible,
.carousel-dot:focus-visible {
  outline: 3px solid rgba(57, 183, 170, 0.55);
  outline-offset: 3px;
}

.button:disabled {
  cursor: not-allowed;
  filter: grayscale(0.35);
  opacity: 0.62;
  transform: none;
}

.button.primary {
  background: linear-gradient(135deg, var(--pink) 0%, var(--coral) 48%, var(--yellow) 100%);
  color: #4b2821;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(133, 88, 71, 0.12);
  color: #584543;
}

.button.danger {
  background: rgba(255, 126, 126, 0.18);
  border-color: rgba(200, 72, 72, 0.24);
  color: #8b2d2d;
}

.button-inline {
  padding: 0.58rem 0.9rem;
  font-size: 0.82rem;
}

.inline-form {
  display: inline-flex;
  margin: 0;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.metric-card {
  border-radius: 1.5rem;
  padding: 1rem;
  display: grid;
  gap: 0.28rem;
}

.metric-card strong {
  font-family: "Baloo 2", cursive;
  font-size: 1.9rem;
  line-height: 1;
}

.metric-happy {
  background: linear-gradient(180deg, rgba(137, 224, 199, 0.55), rgba(255, 255, 255, 0.82));
}

.metric-sunny {
  background: linear-gradient(180deg, rgba(255, 213, 106, 0.62), rgba(255, 255, 255, 0.82));
}

.metric-soft {
  background: linear-gradient(180deg, rgba(152, 214, 255, 0.55), rgba(255, 255, 255, 0.82));
}

.hero-metric-card {
  display: grid;
  gap: 1rem;
}

.spotlight-list,
.clean-list,
.stacked-projects,
.info-bullets {
  display: grid;
  gap: 0.8rem;
}

.spotlight-item,
.inline-project,
.clean-list li,
.empty-state,
.empty-mini {
  padding: 0.95rem 1rem;
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(133, 88, 71, 0.08);
}

.spotlight-item span,
.clean-list li span,
.inline-project span,
.auth-note,
.form-intro,
small {
  display: block;
  color: var(--muted);
}

.empty-state {
  display: grid;
  justify-items: start;
  gap: 0.4rem;
}

.compact-empty {
  min-height: 0;
}

.empty-emoji {
  font-size: 2rem;
  line-height: 1;
}

.cheerful-link {
  transition: transform 0.16s ease, background 0.16s ease;
}

.cheerful-link:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.9);
}

.party-dates-card {
  position: relative;
  overflow: hidden;
}

.party-dates-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 16% 20%, rgba(255, 126, 168, 0.22) 0 0.35rem, transparent 0.38rem),
    radial-gradient(circle at 84% 18%, rgba(255, 213, 106, 0.32) 0 0.42rem, transparent 0.45rem),
    radial-gradient(circle at 72% 82%, rgba(137, 224, 199, 0.28) 0 0.38rem, transparent 0.42rem);
  opacity: 0.8;
}

.party-dates-card > * {
  position: relative;
  z-index: 1;
}

.party-date-list {
  display: grid;
  gap: 0.75rem;
}

.party-date-card {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.85rem;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(133, 88, 71, 0.1);
  box-shadow: 0 14px 32px rgba(187, 122, 82, 0.1);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.party-date-card::before {
  content: "";
  position: absolute;
  inset: -40% auto auto -12%;
  width: 6rem;
  height: 6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
  z-index: -1;
}

.party-date-card::after {
  content: "✦";
  position: absolute;
  right: 0.9rem;
  top: 0.7rem;
  color: rgba(44, 27, 27, 0.18);
  font-size: 1.1rem;
  animation: partyTwinkle 1.9s ease-in-out infinite;
}

.party-date-card:hover {
  transform: translateY(-2px) rotate(-0.2deg);
  box-shadow: 0 18px 38px rgba(187, 122, 82, 0.16);
}

.party-date-icon {
  width: 3.35rem;
  height: 3.35rem;
  border-radius: 1.2rem;
  display: inline-grid;
  place-items: center;
  font-size: 1.55rem;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.68);
  box-shadow: inset 0 -8px 18px rgba(255, 157, 108, 0.12);
  animation: partyFloat 2.7s ease-in-out infinite;
}

.party-date-copy {
  min-width: 0;
}

.party-date-card .party-date-chip {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 0.2rem;
  padding: 0.16rem 0.58rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
  color: #7b4b53;
  font-size: 0.72rem;
  font-weight: 1000;
  letter-spacing: 0;
  text-transform: uppercase;
}

.party-date-card strong {
  display: block;
  line-height: 1.12;
}

.party-date-card small,
.party-date-card span:not(.party-date-chip) {
  display: block;
  color: #655351;
}

.national-date {
  background:
    linear-gradient(135deg, rgba(137, 224, 199, 0.35), rgba(255, 255, 255, 0.82) 48%, rgba(255, 213, 106, 0.35)),
    repeating-linear-gradient(110deg, transparent 0 14px, rgba(255, 255, 255, 0.22) 14px 16px);
}

.local-date {
  background:
    linear-gradient(135deg, rgba(255, 126, 168, 0.28), rgba(255, 255, 255, 0.82) 48%, rgba(152, 214, 255, 0.35)),
    repeating-linear-gradient(110deg, transparent 0 14px, rgba(255, 255, 255, 0.22) 14px 16px);
}

.birthday-date {
  background:
    linear-gradient(135deg, rgba(198, 164, 255, 0.32), rgba(255, 255, 255, 0.82) 48%, rgba(255, 213, 106, 0.32)),
    repeating-linear-gradient(110deg, transparent 0 14px, rgba(255, 255, 255, 0.24) 14px 16px);
}

.compact-party-list {
  gap: 0.62rem;
}

.mini-date {
  padding: 0.72rem 0.82rem;
  border-radius: 1.15rem;
  box-shadow: none;
}

.mini-date .party-date-icon {
  width: 2.55rem;
  height: 2.55rem;
  border-radius: 0.9rem;
  font-size: 1.25rem;
}

.mini-date .party-photo {
  object-fit: cover;
  border-radius: 999px;
  border: 3px solid rgba(255, 255, 255, 0.88);
}

.mini-date .party-date-chip {
  font-size: 0.64rem;
  padding: 0.12rem 0.46rem;
}

.party-empty {
  background:
    linear-gradient(135deg, rgba(255, 213, 106, 0.28), rgba(255, 255, 255, 0.78)),
    repeating-linear-gradient(120deg, transparent 0 16px, rgba(255, 126, 168, 0.08) 16px 18px);
}

.project-card {
  display: grid;
  gap: 0.95rem;
}

.project-card .button {
  align-self: end;
}

.notice-card {
  display: grid;
  gap: 0.65rem;
  align-content: start;
}

.notice-card-head,
.project-progress-label,
.campaign-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.notice-card-head .card-tag {
  margin-bottom: 0;
}

.notice-card-head small,
.project-progress-label small,
.campaign-progress-head small {
  white-space: nowrap;
}

.campaign-summary-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.summary-tile {
  min-height: 7.25rem;
  display: grid;
  align-content: center;
  gap: 0.25rem;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(137, 224, 199, 0.2)),
    rgba(255, 255, 255, 0.62);
  box-shadow: 0 14px 34px rgba(187, 122, 82, 0.11);
}

.featured-card,
.monthly-card,
.carousel-card,
.form-card {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.monthly-notes {
  margin: 0;
}

.carousel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.carousel-controls {
  display: inline-flex;
  gap: 0.6rem;
  flex-shrink: 0;
}

.carousel-button,
.carousel-dot {
  border: 0;
  cursor: pointer;
}

.carousel-button {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(133, 88, 71, 0.1);
  color: #6a4f4b;
  font: inherit;
  font-weight: 900;
  transition: transform 0.18s ease, background 0.18s ease;
}

.carousel-button:hover,
.carousel-dot:hover {
  transform: translateY(-1px);
}

.carousel-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: stretch;
}

.carousel-viewport {
  height: clamp(200px, 24vw, 250px);
  overflow: hidden;
  border-radius: 1.6rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.48), rgba(255, 255, 255, 0.72));
  border: 1px solid rgba(133, 88, 71, 0.08);
}

.carousel-track {
  display: grid;
  grid-auto-rows: 100%;
  height: 100%;
  transition: transform 0.35s ease;
}

.carousel-slide {
  height: clamp(200px, 24vw, 250px);
  padding: 1rem;
  display: grid;
  align-content: start;
  gap: 1rem;
  overflow-y: auto;
}

.carousel-slide-head {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.slide-emoji {
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  background: linear-gradient(135deg, rgba(255, 126, 168, 0.24), rgba(255, 213, 106, 0.26));
}

.compact-list {
  gap: 0.65rem;
}

.compact-list li {
  padding: 0.85rem 0.95rem;
}

.carousel-dots {
  display: grid;
  gap: 0.5rem;
  align-content: center;
}

.carousel-dot {
  width: 0.8rem;
  height: 2.1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(133, 88, 71, 0.12);
  transition: transform 0.18s ease, background 0.18s ease, opacity 0.18s ease;
  opacity: 0.7;
}

.carousel-dot.active,
.carousel-button:focus-visible,
.carousel-dot:focus-visible {
  background: linear-gradient(180deg, var(--pink), var(--coral));
  opacity: 1;
}

@keyframes partyFloat {
  0%,
  100% {
    transform: translateY(0) rotate(-1deg);
  }

  50% {
    transform: translateY(-4px) rotate(2deg);
  }
}

@keyframes partyTwinkle {
  0%,
  100% {
    opacity: 0.35;
    transform: scale(0.85) rotate(0deg);
  }

  50% {
    opacity: 0.95;
    transform: scale(1.12) rotate(18deg);
  }
}

.project-meta,
.project-numbers {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
  color: var(--muted);
  font-weight: 800;
  font-size: 0.92rem;
}

.progress-shell {
  display: grid;
  gap: 0.55rem;
}

.project-progress-label span,
.campaign-progress-head strong {
  color: #3f2a28;
  font-weight: 1000;
}

.progress-bar {
  width: 100%;
  height: 0.8rem;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 157, 108, 0.18);
}

.progress-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--pink) 0%, var(--coral) 45%, var(--teal) 100%);
}

.campaign-hero-card {
  display: grid;
  gap: 0.95rem;
  align-content: start;
}

.campaign-hero-card .detail-stack {
  margin: 0;
}

.donation-impact {
  display: grid;
  gap: 0.25rem;
  background: linear-gradient(135deg, rgba(137, 224, 199, 0.26), rgba(255, 255, 255, 0.76));
}

.amount-presets {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}

.amount-presets button {
  min-height: 3rem;
  border: 1px solid rgba(133, 88, 71, 0.12);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.82);
  color: #4d3937;
  font: inherit;
  font-weight: 1000;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease;
}

.amount-presets button:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.96);
}

.form-shell {
  max-width: 860px;
}

.auth-form {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.auth-form label {
  display: grid;
  gap: 0.55rem;
  font-weight: 800;
  color: #3f2a28;
}

.profile-upload input[type="file"] {
  padding: 0.85rem;
  border-radius: 1rem;
  border: 1px dashed rgba(186, 95, 127, 0.35);
  background: rgba(255, 255, 255, 0.78);
  cursor: pointer;
}

.auth-form input,
.auth-form textarea,
.auth-form select {
  width: 100%;
  padding: 0.95rem 1rem;
  border-radius: 1.05rem;
  border: 1px solid rgba(133, 88, 71, 0.14);
  background: rgba(255, 255, 255, 0.88);
  color: var(--text);
  font: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.auth-form textarea {
  min-height: 140px;
  resize: vertical;
}

.checkbox-row {
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 0.8rem;
}

.checkbox-row input {
  width: 18px;
  height: 18px;
  margin-top: 0.15rem;
}

.table-wrap {
  overflow-x: auto;
  margin-top: 1rem;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: 0.9rem 0.75rem;
  border-bottom: 1px solid rgba(133, 88, 71, 0.1);
  text-align: left;
}

.data-table th {
  font-size: 0.82rem;
  color: #8d5d57;
  text-transform: uppercase;
  letter-spacing: 0;
}

.data-table td {
  color: #5a4746;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.social-list-user {
  margin-bottom: 0.35rem;
}

.status-pill {
  padding: 0.68rem 1rem;
  border-radius: 999px;
  font-weight: 900;
}

.status-pill.is-paid {
  background: rgba(137, 224, 199, 0.58);
  color: #215c52;
}

.status-pill.is-pending {
  background: rgba(255, 213, 106, 0.58);
  color: #835416;
}

.detail-stack {
  display: grid;
  gap: 0.7rem;
  margin: 1rem 0;
  color: var(--muted);
}

.reset-link {
  margin: 1rem 0;
  padding: 1rem;
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(133, 88, 71, 0.1);
  overflow-wrap: anywhere;
  color: #6d514d;
  white-space: pre-wrap;
}

.auth-hero-section {
  min-height: calc(100vh - 180px);
  display: grid;
  align-items: center;
  padding: 1.5rem 0 2rem;
}

.auth-hero-grid,
.chat-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.75fr);
  gap: 1.2rem;
  align-items: stretch;
}

.auth-story-panel,
.auth-entry-stack,
.signup-mini-card,
.reset-fun-card {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.auth-story-panel h1,
.reset-fun-card h1 {
  max-width: none;
}

.auth-story-panel h1 {
  font-size: 3.1rem;
  margin-bottom: 0;
}

.gossip-animation {
  position: relative;
  min-height: 310px;
  border-radius: 1.7rem;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(128, 216, 198, 0.32), rgba(255, 255, 255, 0.78), rgba(242, 201, 92, 0.28)),
    repeating-linear-gradient(120deg, transparent 0 18px, rgba(255, 255, 255, 0.24) 18px 20px);
  border: 1px solid rgba(32, 48, 45, 0.08);
}

.gossip-stage {
  isolation: isolate;
}

.compact-auth-animation {
  min-height: 230px;
}

.gossip-face {
  position: absolute;
  width: 7rem;
  height: 7rem;
  border-radius: 42% 48% 45% 50%;
  background: linear-gradient(180deg, #ffe4c8, #f5b98e);
  border: 4px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 18px 34px rgba(58, 98, 91, 0.16);
  animation: faceBob 2.6s ease-in-out infinite;
}

.face-left {
  left: 8%;
  bottom: 2.4rem;
  transform: rotate(-7deg);
}

.face-right {
  right: 8%;
  top: 3.2rem;
  transform: rotate(7deg);
  animation-delay: 0.3s;
}

.face-hair {
  position: absolute;
  inset: -0.7rem 0.8rem auto 0.8rem;
  height: 2.1rem;
  border-radius: 999px 999px 45% 45%;
  background: #263936;
  box-shadow:
    -1.6rem 0.7rem 0 -0.55rem #263936,
    1.6rem 0.7rem 0 -0.55rem #263936;
}

.eye,
.phone-eye {
  position: absolute;
  width: 0.76rem;
  height: 0.76rem;
  border-radius: 999px;
  background: #263936;
  animation: blink 4s infinite;
}

.eye-left {
  left: 2.05rem;
  top: 3rem;
}

.eye-right {
  right: 2.05rem;
  top: 3rem;
}

.cheek {
  position: absolute;
  width: 1rem;
  height: 0.55rem;
  border-radius: 999px;
  background: rgba(215, 107, 143, 0.34);
  top: 4.1rem;
}

.cheek-left {
  left: 1.1rem;
}

.cheek-right {
  right: 1.1rem;
}

.mouth {
  position: absolute;
  left: 50%;
  top: 4.45rem;
  width: 1.5rem;
  height: 0.8rem;
  border-radius: 0 0 999px 999px;
  background: #7d3b47;
  transform: translateX(-50%);
  transform-origin: top center;
  animation: mouthTalk 0.72s ease-in-out infinite;
}

.gossip-phone {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 11.5rem;
  min-height: 14.5rem;
  transform: translate(-50%, -50%) rotate(-3deg);
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.5rem;
  border-radius: 2rem;
  background: #263936;
  color: #f9fffc;
  box-shadow: 0 24px 44px rgba(32, 48, 45, 0.24);
  animation: phoneFloat 3.8s ease-in-out infinite;
  z-index: 2;
}

.phone-speaker,
.gossip-phone div {
  display: block;
  width: 3.5rem;
  height: 0.35rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
}

.gossip-phone strong {
  font-family: "Baloo 2", cursive;
  font-size: 2.65rem;
  line-height: 1;
}

.phone-eye {
  top: 5.2rem;
  background: rgba(249, 255, 252, 0.92);
}

.phone-eye-left {
  left: 3.65rem;
}

.phone-eye-right {
  right: 3.65rem;
}

.phone-mouth {
  width: 2.1rem;
  height: 0.85rem;
  border-radius: 0 0 999px 999px;
  background: rgba(249, 255, 252, 0.9);
  animation: phoneMouth 1s ease-in-out infinite;
}

.gossip-phone > span:not(.phone-speaker):not(.phone-eye):not(.phone-mouth) {
  color: rgba(249, 255, 252, 0.75);
  font-weight: 900;
}

.bubble {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 5.2rem;
  padding: 0.65rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(32, 48, 45, 0.08);
  box-shadow: 0 12px 26px rgba(58, 98, 91, 0.12);
  color: #354541;
  font-weight: 1000;
  animation: bubbleDrift 3s ease-in-out infinite;
  z-index: 3;
}

.bubble::after {
  content: "";
  position: absolute;
  left: 1.15rem;
  bottom: -0.42rem;
  width: 0.85rem;
  height: 0.85rem;
  background: inherit;
  border-right: 1px solid rgba(32, 48, 45, 0.08);
  border-bottom: 1px solid rgba(32, 48, 45, 0.08);
  transform: rotate(45deg);
}

.bubble-a {
  left: 9%;
  top: 13%;
}

.bubble-b {
  right: 7%;
  top: 42%;
  animation-delay: 0.35s;
}

.bubble-c {
  left: 29%;
  bottom: 13%;
  animation-delay: 0.7s;
}

@keyframes phoneFloat {
  0%,
  100% {
    transform: translate(-50%, -50%) rotate(-3deg) translateY(0);
  }

  50% {
    transform: translate(-50%, -50%) rotate(2deg) translateY(-8px);
  }
}

@keyframes bubbleDrift {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

@keyframes faceBob {
  0%,
  100% {
    margin-top: 0;
  }

  50% {
    margin-top: -0.45rem;
  }
}

@keyframes mouthTalk {
  0%,
  100% {
    transform: translateX(-50%) scaleY(0.42);
  }

  35% {
    transform: translateX(-50%) scaleY(1.1);
  }

  70% {
    transform: translateX(-50%) scaleY(0.68);
  }
}

@keyframes phoneMouth {
  0%,
  100% {
    transform: scaleX(0.7) scaleY(0.42);
  }

  50% {
    transform: scaleX(1) scaleY(1);
  }
}

@keyframes blink {
  0%,
  92%,
  100% {
    transform: scaleY(1);
  }

  95% {
    transform: scaleY(0.08);
  }
}

.memory-carousel {
  position: relative;
  min-height: min(76vh, 680px);
  padding: 0;
  overflow: hidden;
}

.memory-stage {
  position: relative;
  min-height: min(76vh, 680px);
  background: #17201e;
}

.memory-slide {
  position: absolute;
  inset: 0;
  display: grid;
  margin: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.memory-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.memory-slide-image {
  width: 100%;
  height: min(76vh, 680px);
  object-fit: contain;
  background:
    radial-gradient(circle at top, rgba(128, 216, 198, 0.18), transparent 42%),
    #17201e;
}

.memory-slide figcaption {
  position: absolute;
  left: 1.25rem;
  right: 1.25rem;
  bottom: 1.25rem;
  display: grid;
  gap: 0.25rem;
  padding: 1rem;
  border-radius: 1.2rem;
  color: #fff;
  background: rgba(15, 25, 23, 0.72);
  backdrop-filter: blur(14px);
}

.memory-slide figcaption span,
.memory-slide figcaption p {
  color: rgba(255, 255, 255, 0.82);
}

.memory-control {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 3rem;
  height: 3rem;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: #20302d;
  font: inherit;
  font-size: 2rem;
  font-weight: 1000;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
}

.memory-prev {
  left: 1rem;
}

.memory-next {
  right: 1rem;
}

.memory-dots {
  position: absolute;
  left: 50%;
  bottom: 0.55rem;
  z-index: 4;
  display: flex;
  gap: 0.4rem;
  transform: translateX(-50%);
}

.memory-dot {
  width: 0.72rem;
  height: 0.72rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
}

.memory-dot.active {
  width: 2rem;
  background: #fff;
}

.memory-card {
  display: grid;
  gap: 0.75rem;
}

.memory-card-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 1.1rem;
}

.memory-admin-list {
  display: grid;
  gap: 0.8rem;
}

.memory-admin-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  gap: 0.8rem;
  align-items: center;
  padding: 0.8rem;
  border-radius: 1.1rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(32, 48, 45, 0.08);
}

.memory-admin-thumb {
  width: 4.4rem;
  height: 4.4rem;
  border-radius: 1rem;
  object-fit: cover;
}

.memory-admin-item span {
  display: block;
  color: var(--muted);
}

@keyframes installPulse {
  0%,
  100% {
    transform: translateY(0) scale(1);
    box-shadow: 0 18px 42px rgba(47, 158, 143, 0.3);
  }

  50% {
    transform: translateY(-3px) scale(1.015);
    box-shadow: 0 24px 54px rgba(215, 107, 143, 0.32);
  }
}

@keyframes installShine {
  0%,
  48% {
    transform: translateX(0) rotate(18deg);
    opacity: 0;
  }

  56% {
    opacity: 0.95;
  }

  100% {
    transform: translateX(420%) rotate(18deg);
    opacity: 0;
  }
}

.chat-layout {
  grid-template-columns: minmax(240px, 0.38fr) minmax(0, 1fr);
  align-items: start;
}

.chat-sidebar,
.chat-panel {
  display: grid;
  gap: 1rem;
}

.chat-contact-list {
  display: grid;
  gap: 0.65rem;
}

.dashboard-list-card {
  display: grid;
  gap: 0.95rem;
  align-content: start;
}

.member-message-list {
  max-height: 360px;
  overflow-y: auto;
  display: grid;
  gap: 0.65rem;
  padding-right: 0.15rem;
}

.member-message-link {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.72rem;
  padding: 0.72rem;
  border-radius: 1.1rem;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(32, 48, 45, 0.08);
  transition: transform 0.18s ease, background 0.18s ease;
}

.member-message-link:hover,
.member-message-link:focus-visible {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.94);
}

.member-message-link span {
  min-width: 0;
}

.member-message-link strong,
.member-message-link small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-contact {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 1.15rem;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(32, 48, 45, 0.08);
  transition: transform 0.18s ease, background 0.18s ease;
}

.chat-contact:hover,
.chat-contact.active {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.92);
}

.chat-contact em {
  min-width: 1.65rem;
  height: 1.65rem;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: var(--teal);
  color: white;
  font-style: normal;
  font-weight: 1000;
}

.chat-panel-head {
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(32, 48, 45, 0.08);
}

.message-thread {
  min-height: 360px;
  max-height: 56vh;
  overflow-y: auto;
  display: grid;
  align-content: start;
  gap: 0.75rem;
  padding: 0.4rem;
}

.message-bubble {
  width: min(78%, 560px);
  padding: 0.85rem 1rem;
  border-radius: 1.2rem;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(32, 48, 45, 0.08);
}

.message-bubble.mine {
  justify-self: end;
  background: linear-gradient(135deg, rgba(128, 216, 198, 0.45), rgba(255, 255, 255, 0.88));
}

.message-bubble.theirs {
  justify-self: start;
}

.chat-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.8rem;
}

.chat-form textarea {
  min-height: 3.4rem;
  max-height: 9rem;
  resize: vertical;
  padding: 0.95rem 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(32, 48, 45, 0.14);
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  font: inherit;
}

.admin-user-actions,
.password-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

.password-form input {
  width: 9.5rem;
  padding: 0.58rem 0.75rem;
  border-radius: 0.8rem;
  border: 1px solid rgba(32, 48, 45, 0.14);
  background: rgba(255, 255, 255, 0.88);
  color: var(--text);
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1080px) {
  .dashboard-spotlight,
  .dashboard-grid,
  .admin-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-side-copy {
    max-width: none;
    text-align: left;
  }
}

@media (min-width: 901px) {
  .header-user-bubble {
    display: none;
  }

  .top-nav {
    flex-wrap: nowrap;
    justify-content: flex-end;
    margin-left: auto;
    overflow-x: auto;
    padding: 0.15rem;
    scrollbar-width: none;
  }

  .top-nav::-webkit-scrollbar {
    display: none;
  }

  .top-nav a,
  .nav-install-action {
    white-space: nowrap;
  }
}

@media (max-width: 900px) {
  .dashboard-spotlight,
  .auth-hero-grid,
  .chat-layout,
  .hero-grid,
  .two-col,
  .three-col,
  .auth-grid,
  .dashboard-grid,
  .admin-summary-grid,
  .metric-grid {
    grid-template-columns: 1fr;
  }

  .shell-header,
  .footer-shell,
  .section-head,
  .page-head,
  .banner-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-note {
    text-align: left;
  }

  .site-header {
    position: sticky;
  }

  body.has-app-nav .site-main {
    padding-bottom: calc(6.75rem + env(safe-area-inset-bottom));
  }

  body.app-install-ready .site-main {
    padding-bottom: calc(6.2rem + env(safe-area-inset-bottom));
  }

  body.has-app-nav.app-install-ready .site-main {
    padding-bottom: calc(11rem + env(safe-area-inset-bottom));
  }

  .shell-header {
    position: relative;
    align-items: center;
    flex-direction: row;
    gap: 0.65rem;
    padding: 0.7rem 0;
  }

  .brand {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
  }

  .header-user-bubble {
    margin-left: 0;
    padding: 0.38rem;
  }

  .header-user-copy {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
    flex-shrink: 0;
  }

  .top-nav {
    position: absolute;
    top: calc(100% + 0.6rem);
    left: 0;
    right: 0;
    display: grid;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 1.5rem;
    background: rgba(255, 248, 239, 0.98);
    border: 1px solid rgba(133, 88, 71, 0.1);
    box-shadow: 0 18px 44px rgba(92, 66, 54, 0.18);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
  }

  .site-header.nav-open .top-nav {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .top-nav a {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .nav-install-action {
    width: 100%;
    justify-content: center;
  }

  .top-nav a.nav-profile-link {
    padding: 0.5rem 0.85rem;
  }

  .bottom-app-nav {
    position: fixed;
    z-index: 35;
    left: max(0.7rem, env(safe-area-inset-left));
    right: max(0.7rem, env(safe-area-inset-right));
    bottom: calc(0.7rem + env(safe-area-inset-bottom));
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    gap: 0.2rem;
    padding: 0.35rem;
    border-radius: 1.35rem;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(32, 48, 45, 0.1);
    box-shadow: 0 18px 44px rgba(58, 98, 91, 0.22);
    backdrop-filter: blur(18px);
  }

  .bottom-app-nav a {
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 0.1rem;
    min-width: 0;
    min-height: 3.2rem;
    padding: 0.4rem 0.25rem;
    border-radius: 1rem;
    color: #5d4a48;
    font-size: 0.72rem;
    font-weight: 950;
    line-height: 1;
  }

  .bottom-app-nav a.active {
    color: #20302d;
    background: linear-gradient(135deg, rgba(128, 216, 198, 0.28), rgba(242, 201, 92, 0.28));
    box-shadow: inset 0 0 0 1px rgba(47, 158, 143, 0.12);
  }

  .bottom-app-nav span {
    font-size: 1.15rem;
    line-height: 1;
  }

  .bottom-app-nav strong {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .carousel-shell {
    grid-template-columns: 1fr;
  }

  .carousel-viewport,
  .carousel-slide {
    height: min(320px, 56vh);
  }

  .carousel-dots {
    display: flex;
    justify-content: center;
  }

  .carousel-dot {
    width: 2.1rem;
    height: 0.8rem;
  }

  .campaign-summary-strip,
  .flow-steps {
    grid-template-columns: 1fr;
  }

  .auth-story-panel h1,
  .reset-fun-card h1 {
    max-width: none;
  }

  .message-thread {
    max-height: none;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100%, calc(100% - 1rem));
  }

  .site-main img:not(.social-avatar):not(.nav-avatar):not(.user-avatar):not(.avatar-fallback):not(.profile-preview):not(.party-date-icon):not(.party-photo):not(.memory-slide-image):not(.memory-card-image):not(.memory-admin-thumb) {
    height: clamp(180px, 38vh, 320px);
    border-radius: 1rem;
  }

  .memory-carousel,
  .memory-stage,
  .memory-slide-image {
    min-height: 0;
    height: 58vh;
  }

  .memory-control {
    width: 2.55rem;
    height: 2.55rem;
    font-size: 1.6rem;
  }

  .memory-slide figcaption {
    left: 0.75rem;
    right: 0.75rem;
    bottom: 1rem;
    padding: 0.85rem;
  }

  .memory-admin-item {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .memory-admin-item .inline-form {
    grid-column: span 2;
    width: 100%;
  }

  .memory-admin-item .button {
    width: 100%;
  }

  .button-row,
  .admin-actions,
  .status-row {
    width: 100%;
  }

  .button,
  .admin-actions .button {
    width: 100%;
    text-align: center;
  }

  .hero-trust-strip,
  .amount-presets {
    grid-template-columns: 1fr;
  }

  .notice-card-head,
  .project-progress-label,
  .campaign-progress-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .notice-card-head small,
  .project-progress-label small,
  .campaign-progress-head small {
    white-space: normal;
  }

  .chat-form {
    grid-template-columns: 1fr;
  }

  .message-bubble {
    width: 100%;
  }

  .gossip-animation {
    min-height: 230px;
  }

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

  .brand-copy strong {
    font-size: 1rem;
  }

  .brand-copy span {
    font-size: 0.88rem;
  }

  .bottom-app-nav {
    left: max(0.45rem, env(safe-area-inset-left));
    right: max(0.45rem, env(safe-area-inset-right));
    bottom: calc(0.45rem + env(safe-area-inset-bottom));
    border-radius: 1.15rem;
  }

  .bottom-app-nav a {
    min-height: 3rem;
    padding: 0.35rem 0.15rem;
    font-size: 0.66rem;
  }

  .bottom-app-nav span {
    font-size: 1.05rem;
  }

  .install-app-fab {
    width: calc(100% - 1.5rem);
    min-height: 3.35rem;
    margin-top: 0.55rem;
    border-radius: 1.1rem;
  }

  .install-hint,
  body.has-app-nav .install-hint {
    left: max(0.6rem, env(safe-area-inset-left));
    right: max(0.6rem, env(safe-area-inset-right));
    bottom: calc(8.85rem + env(safe-area-inset-bottom));
    max-width: none;
    text-align: center;
  }

  body:not(.has-app-nav) .install-hint {
    bottom: calc(4.9rem + env(safe-area-inset-bottom));
  }

  .social-avatar {
    width: 2.15rem;
    height: 2.15rem;
  }

  .card {
    border-radius: 1.5rem;
    padding: 1.15rem;
  }

  h1 {
    font-size: 2.35rem;
  }
}

body.nav-lock {
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
