:root {
  --ink: #4a3b4a;
  --muted: #9a7f96;
  --pink: #ff7aab;
  --pink-deep: #ff4f95;
  --cream: #fff6fa;
  --line: rgba(255, 170, 205, 0.35);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  min-height: 100vh;
  min-height: 100dvh;
  font-family: "Nunito", system-ui, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 12%, #ffe3f0, transparent 38%),
    radial-gradient(circle at 88% 18%, #eadcff, transparent 34%),
    radial-gradient(circle at 50% 100%, #d9f6ef, transparent 42%),
    var(--cream);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 1rem;
  padding:
    max(0.75rem, env(safe-area-inset-top))
    max(0.75rem, env(safe-area-inset-right))
    max(0.75rem, env(safe-area-inset-bottom))
    max(0.75rem, env(safe-area-inset-left));
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

#app.shell {
  width: min(100%, 440px);
  position: relative;
  z-index: 1;
}

/* floating bg */
.floaty {
  position: fixed;
  bottom: -30px;
  font-size: 1rem;
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
  animation: rise linear forwards;
}

@keyframes rise {
  0% { transform: translateY(0) rotate(0); opacity: 0; }
  12% { opacity: 0.45; }
  100% { transform: translateY(-110vh) rotate(50deg); opacity: 0; }
}

.love-pop {
  position: fixed;
  z-index: 50;
  pointer-events: none;
  animation: loveFly ease-out forwards;
}

@keyframes loveFly {
  0% { opacity: 1; transform: translate(0, 0) scale(0.6); }
  100% {
    opacity: 0;
    transform: translate(var(--dx), var(--dy)) scale(1.25);
  }
}

/* NEW nav — underline tabs, not pink pills */
.topnav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.85rem;
  padding: 0.55rem 0.7rem;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--line);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 22px rgba(255, 140, 180, 0.1);
}

.brand-mini {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 800;
  font-size: 0.92rem;
  color: var(--ink);
  min-width: 0;
}

.brand-mini-img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ffe0ef;
  flex-shrink: 0;
}

.tabs {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.tab {
  border: none;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 800;
  font-size: 0.84rem;
  padding: 0.4rem 0.65rem;
  border-radius: 8px;
  cursor: pointer;
  position: relative;
  transition: color 0.15s ease, background 0.15s ease;
}

.tab:hover {
  color: var(--pink-deep);
  background: rgba(255, 143, 184, 0.1);
}

.tab.active {
  color: var(--pink-deep);
  background: transparent;
}

.tab.active::after {
  content: "";
  position: absolute;
  left: 0.55rem;
  right: 0.55rem;
  bottom: 0.15rem;
  height: 2.5px;
  border-radius: 99px;
  background: linear-gradient(90deg, #ff8fb8, #c084fc);
}

.fb-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: 0.25rem;
  padding: 0.35rem 0.6rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 800;
  color: #1877f2;
  text-decoration: none;
  background: rgba(24, 119, 242, 0.08);
  transition: background 0.15s ease;
}

.fb-link:hover {
  background: rgba(24, 119, 242, 0.14);
}

/* card */
.card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 30px;
  box-shadow: 0 20px 50px rgba(255, 120, 170, 0.2);
  backdrop-filter: blur(14px);
  padding: 1.35rem 1.2rem 1.25rem;
  text-align: center;
  animation: cardIn 0.45s ease both;
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(14px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.38rem 0.78rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffe6f2, #efe3ff);
  color: var(--pink-deep);
  font-size: 0.8rem;
  font-weight: 800;
  margin-bottom: 0.85rem;
  animation: softPulse 2.4s ease-in-out infinite;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pink-deep);
  animation: pulse 1.7s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 79, 149, 0.5); }
  70% { box-shadow: 0 0 0 10px rgba(255, 79, 149, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 79, 149, 0); }
}

@keyframes softPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}

.hero-img-wrap {
  position: relative;
  width: 170px;
  height: 170px;
  margin: 0 auto 0.65rem;
}

.hero-img-wrap::before {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #ff9ec8, #d7b8ff, #9ee9dc, #ffd0a8, #ff9ec8);
  animation: spin 6s linear infinite;
  opacity: 0.75;
  z-index: 0;
}

.hero-img-wrap::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: #fff;
  z-index: 0;
}

@keyframes spin { to { transform: rotate(360deg); } }

.hero-img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  background: #fff;
  animation: bob 2.8s ease-in-out infinite;
  box-shadow: 0 10px 24px rgba(255, 120, 170, 0.18);
}

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

.spark {
  position: absolute;
  z-index: 2;
  font-size: 1.1rem;
  animation: pop 1.8s ease-in-out infinite;
}
.spark.s1 { top: 4px; right: 8px; }
.spark.s2 { bottom: 10px; left: 0; animation-delay: 0.4s; }
.spark.s3 { top: 20px; left: -4px; animation-delay: 0.8s; }

@keyframes pop {
  0%, 100% { transform: scale(1) rotate(-8deg); }
  50% { transform: scale(1.25) rotate(8deg); }
}

h1 {
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  font-weight: 800;
  margin-bottom: 0.9rem;
  line-height: 1.25;
}

h1 span {
  background: linear-gradient(135deg, #ff4f95, #c084fc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* About */
.about {
  text-align: left;
  background: linear-gradient(160deg, #fff5fa, #f6efff);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 0.9rem 1rem;
  margin-bottom: 0.95rem;
}

.about-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
}

.about-head h3 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--pink-deep);
}

.about p {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.45;
  margin-bottom: 0.3rem;
}

.about p:last-child { margin-bottom: 0; }

/* amount */
.amount-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.75rem;
}

.amount-box {
  flex: 1 1 160px;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  border: 2px solid #8ea8ff;
  border-radius: 999px;
  background: #fff;
  padding: 0 0.85rem;
  min-height: 46px;
  transition: 0.15s ease;
}

.amount-box:focus-within {
  box-shadow: 0 0 0 4px rgba(107, 140, 255, 0.18);
}

.amount-box .dollar {
  font-weight: 800;
  color: #8a9bb8;
  font-size: 1rem;
}

.amount-box input {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  font: inherit;
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--ink);
  padding: 0.7rem 0;
}

.amount-box input::placeholder {
  color: #a8b0c0;
  font-weight: 700;
}

.plus-row {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.plus-chip {
  border: 1.5px solid #d8deea;
  background: #fff;
  color: #6b728a;
  font: inherit;
  font-weight: 800;
  font-size: 0.85rem;
  padding: 0.55rem 0.75rem;
  border-radius: 999px;
  cursor: pointer;
  transition: 0.15s ease;
}

.plus-chip:hover {
  border-color: var(--pink);
  color: var(--pink-deep);
  background: #fff0f7;
}

/* message */
.msg-wrap {
  position: relative;
  margin-bottom: 0.75rem;
}

.say-nice {
  width: 100%;
  min-height: 88px;
  resize: vertical;
  border: none;
  outline: none;
  border-radius: 18px;
  background: #ebebed;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.9rem 3.1rem 0.9rem 1rem;
}

.say-nice::placeholder {
  color: #8b8e99;
  font-weight: 700;
}

.video-btn {
  position: absolute;
  right: 0.65rem;
  bottom: 0.65rem;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  font-size: 1rem;
  display: grid;
  place-items: center;
  transition: transform 0.15s ease;
}

.video-btn:hover { transform: scale(1.08); }

/* monthly */
.monthly-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0.15rem 0 0.9rem;
  position: relative;
}

.check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 0.9rem;
  color: #6b6f7a;
  cursor: pointer;
  user-select: none;
}

.check input {
  width: 17px;
  height: 17px;
  accent-color: var(--pink-deep);
  cursor: pointer;
}

.q-tip {
  position: relative;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid #b8bcc8;
  color: #8b8f9a;
  font-size: 0.72rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  cursor: help;
  flex-shrink: 0;
}

.tip-bubble {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(-50%) translateY(4px);
  width: 220px;
  background: #fff;
  color: #5c6070;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.35;
  padding: 0.65rem 0.75rem;
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(40, 40, 60, 0.14);
  opacity: 0;
  pointer-events: none;
  transition: 0.18s ease;
  z-index: 5;
  text-align: left;
}

.tip-bubble::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
  border: 7px solid transparent;
  border-top-color: #fff;
}

.q-tip:hover .tip-bubble,
.q-tip:focus .tip-bubble {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* buttons */
.btn {
  width: 100%;
  border: none;
  border-radius: 999px;
  padding: 0.9rem 1rem;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(135deg, #ff8fb8, #ff4f95);
  box-shadow: 0 12px 26px rgba(255, 79, 149, 0.3);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 16px 30px rgba(255, 79, 149, 0.36);
}

.btn.bounce {
  animation: btnBounce 0.45s ease;
}

@keyframes btnBounce {
  0% { transform: scale(1); }
  40% { transform: scale(0.96); }
  70% { transform: scale(1.04); }
  100% { transform: scale(1); }
}

.join-btn {
  background: linear-gradient(135deg, #8ea8ff, #6b8cff);
  box-shadow: 0 12px 26px rgba(107, 140, 255, 0.32);
  margin: 0.85rem 0 1rem;
}

/* membership on home + page */
.member-embed {
  margin-top: 1.25rem;
  text-align: center;
}

.member-embed.compact {
  padding-top: 1.15rem;
  border-top: 1.5px dashed rgba(255, 170, 205, 0.45);
}

.member-title {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 0.85rem;
  color: #1f2430;
}

.member-box {
  text-align: left;
  border: 1.5px solid var(--line);
  border-radius: 20px;
  padding: 1.1rem 1rem 0.95rem;
  background: linear-gradient(180deg, #fff, #fff7fb);
}

.member-box h3 {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 0.2rem;
}

.member-price {
  color: #5c6070;
  font-weight: 700;
  font-size: 1.02rem;
}

.member-price strong {
  font-size: 1.3rem;
  color: var(--pink-deep);
}

.member-list {
  list-style: none;
  margin-top: 0.15rem;
}

.member-list li {
  position: relative;
  padding: 0.32rem 0 0.32rem 1.15rem;
  color: #5c6070;
  font-weight: 700;
  font-size: 0.9rem;
}

.member-list li::before {
  content: "•";
  position: absolute;
  left: 0.15rem;
  color: #8b8f9a;
  font-size: 1.1rem;
}

.member-card {
  padding: 1.5rem 1.2rem 1.3rem;
}

/* coffee mug avatars */
.coffee-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(80, 60, 40, 0.12);
}

.coffee-avatar.xs { width: 22px; height: 22px; }
.coffee-avatar.sm { width: 40px; height: 40px; }
.coffee-avatar.md { width: 56px; height: 56px; }
.coffee-avatar.lg { width: 72px; height: 72px; }

.mug {
  position: relative;
  width: 52%;
  height: 48%;
  background: #fff;
  border-radius: 3px 3px 6px 6px;
  display: grid;
  place-items: center;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.mug::before {
  content: "";
  position: absolute;
  top: -18%;
  left: 10%;
  right: 10%;
  height: 22%;
  background: #fff;
  border-radius: 2px 2px 0 0;
}

.mug::after {
  content: "";
  position: absolute;
  right: -28%;
  top: 18%;
  width: 28%;
  height: 42%;
  border: 2px solid #fff;
  border-left: none;
  border-radius: 0 8px 8px 0;
}

.mug-letters {
  position: relative;
  z-index: 1;
  font-size: 0.55rem;
  font-weight: 800;
  color: #6b5a48;
  letter-spacing: -0.02em;
  line-height: 1;
  text-transform: lowercase;
}

.coffee-avatar.md .mug-letters { font-size: 0.7rem; }
.coffee-avatar.lg .mug-letters { font-size: 0.85rem; }
.coffee-avatar.xs .mug-letters { font-size: 0.38rem; }
.coffee-avatar.xs .mug::after { border-width: 1.5px; }

/* supporters list on home */
.supporters {
  margin-top: 1.25rem;
  text-align: left;
}

.supporters > h3 {
  text-align: center;
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
  color: var(--pink-deep);
}

.sup-card {
  background: linear-gradient(160deg, #fff8fc, #f4efff);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 0.85rem 0.9rem;
  margin-bottom: 0.65rem;
  animation: fadeUp 0.45s ease both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.sup-top {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  margin-bottom: 0.45rem;
}

.sup-meta strong {
  display: block;
  font-size: 0.92rem;
}

.sup-meta span {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 700;
}

.sup-msg {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.5rem;
  padding-left: 0.15rem;
}

.sup-reply {
  background: rgba(255, 255, 255, 0.8);
  border-left: 3px solid var(--pink);
  border-radius: 0 12px 12px 0;
  padding: 0.55rem 0.7rem;
}

.reply-label {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--pink-deep);
  margin-bottom: 0.2rem;
}

.sup-reply p {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
  line-height: 1.35;
}

.see-more {
  width: 100%;
  margin-top: 0.15rem;
  border: 1.5px dashed rgba(255, 140, 180, 0.55);
  background: rgba(255, 255, 255, 0.7);
  color: var(--pink-deep);
  font: inherit;
  font-weight: 800;
  font-size: 0.9rem;
  padding: 0.75rem;
  border-radius: 14px;
  cursor: pointer;
  transition: 0.15s ease;
}

.see-more:hover {
  background: #fff0f7;
  border-style: solid;
}

/* See more modal — BMC style */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(70, 70, 85, 0.55);
  display: grid;
  place-items: center;
  padding: 1rem;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.supporters-modal {
  position: relative;
  width: min(100%, 420px);
  max-height: min(90vh, 720px);
  overflow: auto;
  background: #f4f2fa;
  border-radius: 22px;
  padding: 1.15rem 1rem 1rem;
  box-shadow: 0 24px 60px rgba(30, 20, 40, 0.28);
  animation: modalUp 0.28s ease;
}

@keyframes modalUp {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.85rem;
  border: none;
  background: transparent;
  color: #444;
  font-size: 1.1rem;
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  line-height: 1;
  z-index: 10;
  pointer-events: auto;
}

.modal-close:hover {
  background: rgba(0, 0, 0, 0.06);
}

.pay-modal .modal-close {
  z-index: 20;
}

.modal-close:hover {
  background: rgba(0, 0, 0, 0.06);
}

.modal-header {
  text-align: center;
  padding-top: 0.35rem;
  margin-bottom: 1rem;
}

.laurel-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
}

.laurel {
  font-size: 1.1rem;
  opacity: 0.75;
}

.laurel.flip {
  transform: scaleX(-1);
}

.modal-count strong {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  color: #1a1a1a;
  line-height: 1.1;
}

.modal-count span {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1a1a1a;
}

.modal-sub {
  margin-top: 0.45rem;
  font-size: 0.82rem;
  color: #6b6f7a;
  font-weight: 600;
}

.top-supporters {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 1.1rem;
  margin-bottom: 1.1rem;
  padding: 0.25rem 0 0.5rem;
}

.top-item {
  text-align: center;
  width: 88px;
}

.top-item.rank-1 {
  order: 0;
}

.top-item.rank-2 {
  order: -1;
}

.top-item.rank-3 {
  order: 1;
}

.top-avatar-wrap {
  position: relative;
  display: inline-grid;
  place-items: center;
  margin-bottom: 0.4rem;
}

.rank-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #f5c542;
  color: #3a2a00;
  font-size: 0.65rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.top-item.rank-2 .rank-badge,
.top-item.rank-3 .rank-badge {
  background: #d8d8e0;
  color: #444;
}

.top-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: #2a2a2a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.modal-list-card {
  background: #fff;
  border-radius: 18px;
  padding: 0.9rem 0.85rem 0.5rem;
  box-shadow: 0 4px 16px rgba(40, 30, 60, 0.06);
}

.modal-list-card > h3 {
  font-size: 1rem;
  font-weight: 800;
  color: #1a1a1a;
  margin-bottom: 0.65rem;
  padding: 0 0.2rem;
}

.modal-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.4rem;
  padding: 0.65rem 0.15rem;
  border-top: 1px solid #f0eef5;
}

.modal-row:first-of-type {
  border-top: none;
}

.modal-row-main {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  min-width: 0;
  flex: 1;
}

.modal-row-text {
  min-width: 0;
  flex: 1;
}

.modal-became {
  font-size: 0.9rem;
  color: #3a3a3a;
  font-weight: 600;
  line-height: 1.35;
}

.modal-became strong {
  font-weight: 800;
  color: #1a1a1a;
}

.modal-bubble {
  margin-top: 0.45rem;
  background: #eef0fb;
  border-radius: 12px;
  padding: 0.7rem 0.8rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: #3a3f55;
  line-height: 1.4;
}

.modal-sign {
  margin-top: 0.55rem;
  white-space: pre-line;
  color: #4a4f62;
}

.modal-creator-reply {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  margin-top: 0.45rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #6b6f7a;
  line-height: 1.35;
}

.modal-more {
  border: none;
  background: transparent;
  color: #9aa0b0;
  font-size: 1.15rem;
  cursor: pointer;
  padding: 0 0.25rem;
  line-height: 1;
  flex-shrink: 0;
}

.foot {
  margin-top: 0.9rem;
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 700;
  text-align: center;
}

/* site footer + policies */
.site-footer {
  margin-top: 0.65rem;
  padding: 0.45rem 0.35rem 0.25rem;
  text-align: center;
}

.cancel-badge {
  margin: 0.35rem 0 0.15rem;
  font-size: 0.85rem;
  font-weight: 800;
  color: #1f8a5b;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.25rem;
  justify-content: center;
  align-items: center;
  margin-bottom: 0.25rem;
}

.footer-link {
  border: none;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 700;
  font-size: 0.75rem;
  cursor: pointer;
  padding: 0.15rem 0.3rem;
  border-radius: 6px;
}

.footer-link:hover {
  color: var(--pink-deep);
}

.footer-dot {
  color: #c9b0c2;
  font-weight: 700;
  font-size: 0.75rem;
}

.footer-meta {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
  line-height: 1.35;
}

.policy-card {
  text-align: left;
  padding: 1.25rem 1.15rem 1.4rem;
}

.policy-back {
  border: none;
  background: rgba(255, 143, 184, 0.12);
  color: var(--pink-deep);
  font: inherit;
  font-weight: 800;
  font-size: 0.85rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  cursor: pointer;
  margin-bottom: 0.85rem;
}

.policy-back:hover {
  background: rgba(255, 143, 184, 0.2);
}

.policy-title {
  font-size: 1.55rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
  color: #2a2430;
  text-align: left;
}

.policy-updated {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.policy-intro {
  font-size: 0.92rem;
  font-weight: 700;
  color: #5c5460;
  line-height: 1.5;
  margin-bottom: 1rem;
  padding: 0.75rem 0.85rem;
  background: linear-gradient(160deg, #fff5fa, #f6efff);
  border-radius: 14px;
  border: 1px solid var(--line);
}

.policy-section {
  margin-bottom: 0.95rem;
}

.policy-section h3 {
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--pink-deep);
  margin-bottom: 0.35rem;
}

.policy-section p {
  font-size: 0.88rem;
  font-weight: 600;
  color: #5a5460;
  line-height: 1.5;
  margin-bottom: 0.4rem;
}

.policy-note {
  margin-top: 0.5rem;
  padding: 0.75rem 0.85rem;
  border-radius: 14px;
  background: #eef2ff;
  border: 1px solid #d5defa;
}

.policy-note p {
  font-size: 0.84rem;
  font-weight: 700;
  color: #4a5580;
  line-height: 1.45;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.15rem;
  transform: translateX(-50%) translateY(120%);
  background: #fff;
  border: 1px solid rgba(255, 143, 184, 0.35);
  box-shadow: 0 12px 30px rgba(255, 100, 160, 0.22);
  padding: 0.75rem 1.05rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.88rem;
  opacity: 0;
  transition: 0.3s ease;
  z-index: 60;
  max-width: 90vw;
  text-align: center;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ——— Mobile animations ——— */
@media (max-width: 520px) {
  body {
    padding-bottom: max(1rem, env(safe-area-inset-bottom));
  }

  .topnav {
    flex-direction: column;
    align-items: stretch;
    animation: slideDownSoft 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  .tabs {
    justify-content: space-between;
  }

  .brand-mini {
    justify-content: center;
  }

  .card {
    animation: cardPop 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  .badge {
    animation: softPulse 2.4s ease-in-out infinite, fadeUp 0.4s 0.05s both;
  }

  .hero-img-wrap {
    animation: heroIn 0.6s 0.08s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  h1 {
    animation: fadeUp 0.45s 0.14s both;
  }

  .about {
    animation: fadeUp 0.45s 0.18s both;
  }

  .amount-row {
    animation: fadeUp 0.45s 0.22s both;
  }

  .msg-wrap {
    animation: fadeUp 0.45s 0.26s both;
  }

  .monthly-row {
    animation: fadeUp 0.45s 0.3s both;
  }

  .btn {
    animation: fadeUp 0.45s 0.34s both;
    transition: transform 0.12s ease, box-shadow 0.12s ease;
  }

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

  .member-embed {
    animation: fadeUp 0.5s 0.38s both;
  }

  .supporters > h3 {
    animation: fadeUp 0.4s 0.42s both;
  }

  .sup-card {
    animation: cardSlide 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  .sup-card:nth-child(2) { animation-delay: 0.46s; }
  .sup-card:nth-child(3) { animation-delay: 0.52s; }
  .sup-card:nth-child(4) { animation-delay: 0.58s; }
  .sup-card:nth-child(5) { animation-delay: 0.64s; }

  .coffee-avatar {
    animation: mugPop 0.5s cubic-bezier(0.34, 1.4, 0.64, 1) both;
  }

  .sup-card:nth-child(2) .coffee-avatar { animation-delay: 0.5s; }
  .sup-card:nth-child(3) .coffee-avatar { animation-delay: 0.56s; }
  .sup-card:nth-child(4) .coffee-avatar { animation-delay: 0.62s; }
  .sup-card:nth-child(5) .coffee-avatar { animation-delay: 0.68s; }

  .see-more {
    animation: fadeUp 0.4s 0.72s both, seeMoreGlow 2.4s 1s ease-in-out infinite;
  }

  .see-more:active {
    transform: scale(0.98);
  }

  .plus-chip:active,
  .tab:active,
  .fb-link:active {
    transform: scale(0.95);
  }

  /* Modal = bottom sheet on mobile */
  .modal-backdrop {
    align-items: flex-end;
    padding: 0;
    animation: fadeIn 0.25s ease;
  }

  .supporters-modal {
    width: 100%;
    max-height: min(92dvh, 92vh);
    border-radius: 22px 22px 0 0;
    padding-bottom: max(1rem, env(safe-area-inset-bottom));
    animation: sheetUp 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  .modal-header {
    animation: fadeUp 0.35s 0.08s both;
  }

  .top-supporters {
    animation: fadeUp 0.4s 0.14s both;
  }

  .top-item.rank-1 .coffee-avatar {
    animation: mugBounce 0.55s 0.2s cubic-bezier(0.34, 1.45, 0.64, 1) both;
  }

  .top-item.rank-2 .coffee-avatar {
    animation: mugBounce 0.55s 0.12s cubic-bezier(0.34, 1.45, 0.64, 1) both;
  }

  .top-item.rank-3 .coffee-avatar {
    animation: mugBounce 0.55s 0.28s cubic-bezier(0.34, 1.45, 0.64, 1) both;
  }

  .modal-list-card {
    animation: fadeUp 0.4s 0.22s both;
  }

  .modal-row {
    animation: rowIn 0.35s ease both;
  }

  .modal-row:nth-child(1) { animation-delay: 0.24s; }
  .modal-row:nth-child(2) { animation-delay: 0.29s; }
  .modal-row:nth-child(3) { animation-delay: 0.34s; }
  .modal-row:nth-child(4) { animation-delay: 0.39s; }
  .modal-row:nth-child(5) { animation-delay: 0.44s; }
  .modal-row:nth-child(6) { animation-delay: 0.49s; }
  .modal-row:nth-child(7) { animation-delay: 0.54s; }
  .modal-row:nth-child(8) { animation-delay: 0.59s; }
  .modal-row:nth-child(9) { animation-delay: 0.64s; }
  .modal-row:nth-child(10) { animation-delay: 0.69s; }
  .modal-row:nth-child(11) { animation-delay: 0.74s; }
  .modal-row:nth-child(12) { animation-delay: 0.79s; }

  /* subtle sparkle trail on hero for mobile */
  .hero-img-wrap::before {
    animation: spin 6s linear infinite, ringPulse 2.8s ease-in-out infinite;
  }

  .spark {
    animation: pop 1.8s ease-in-out infinite, sparkFloat 2.2s ease-in-out infinite;
  }

  .toast {
    bottom: max(1.2rem, env(safe-area-inset-bottom));
    animation: none;
  }

  .toast.show {
    animation: toastIn 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
  }
}

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

@keyframes cardPop {
  from { opacity: 0; transform: translateY(22px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes heroIn {
  from { opacity: 0; transform: scale(0.86) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes cardSlide {
  from { opacity: 0; transform: translateX(-14px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes mugPop {
  from { opacity: 0; transform: scale(0.5); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes mugBounce {
  0% { opacity: 0; transform: scale(0.4) translateY(12px); }
  70% { transform: scale(1.08) translateY(-2px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes sheetUp {
  from { opacity: 0; transform: translateY(100%); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes rowIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes seeMoreGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 79, 149, 0); }
  50% { box-shadow: 0 0 0 6px rgba(255, 79, 149, 0.08); }
}

@keyframes ringPulse {
  0%, 100% { opacity: 0.75; filter: brightness(1); }
  50% { opacity: 1; filter: brightness(1.08); }
}

@keyframes sparkFloat {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -4px; }
}

@keyframes toastIn {
  from { opacity: 0; transform: translateX(-50%) translateY(24px) scale(0.94); }
  to { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
}

/* EPS checkout modal */
.pay-backdrop {
  z-index: 200 !important;
  pointer-events: auto;
}

.pay-modal {
  position: relative;
  width: min(100%, 400px);
  max-height: min(92vh, 720px);
  overflow: auto;
  margin: auto;
  background: #fff;
  border-radius: 22px;
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(90, 40, 70, 0.18);
  padding: 1.25rem 1.15rem 1.1rem;
  animation: cardPop 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
  pointer-events: auto;
  z-index: 201;
}

.pay-form {
  display: flex;
  flex-direction: column;
}

.pay-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 0.35rem;
  padding-right: 1.5rem;
}

.pay-sub {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--pink-deep);
  margin-bottom: 0.35rem;
}

.pay-note {
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 0.9rem;
  line-height: 1.4;
}

.pay-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 0.7rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
}

.pay-input {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 0.7rem 0.85rem;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
  background: #fffafc;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.pay-input:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(255, 122, 171, 0.18);
}

.pay-input:disabled {
  opacity: 0.65;
}

.pay-error {
  background: #ffe8ef;
  color: #b4235a;
  border-radius: 10px;
  padding: 0.55rem 0.7rem;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 0.7rem;
}

.pay-error[hidden] {
  display: none !important;
}

.pay-submit {
  width: 100%;
  margin-top: 0.25rem;
  pointer-events: auto;
  cursor: pointer;
  position: relative;
  z-index: 2;
}

.pay-submit:disabled {
  opacity: 0.75;
  cursor: wait;
}

.pay-secure {
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.75rem;
}

/* Trust / security badges */
.trust-block {
  margin: 1.1rem 0 0.4rem;
  padding: 0.9rem 0.85rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #fff, #fff8fc);
  text-align: center;
}

.trust-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 0.35rem;
}

.trust-text {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.45;
  margin-bottom: 0.65rem;
}

.trust-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-bottom: 0.55rem;
}

.trust-logo {
  height: 36px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  background: #fff;
  border-radius: 8px;
  padding: 4px 8px;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.trust-safe {
  font-size: 0.72rem;
  font-weight: 800;
  color: #1a7f4b;
}

.hidden-file {
  display: none !important;
}

.msg-image-preview {
  width: 100%;
  margin-top: 0.5rem;
}

.msg-image-preview img {
  width: 100%;
  max-height: 180px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
}

.msg-image-remove {
  margin-top: 0.35rem;
  border: none;
  background: transparent;
  color: var(--pink-deep);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
}

.sup-photo {
  width: 100%;
  max-height: 160px;
  object-fit: cover;
  border-radius: 12px;
  margin-top: 0.45rem;
  border: 1px solid var(--line);
}

.member-bdt {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
  margin-left: 0.2rem;
}

.payment-result-card {
  text-align: center;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.payment-result-emoji {
  font-size: 2.4rem;
  margin-bottom: 0.5rem;
}

.payment-result-msg {
  color: var(--muted);
  margin: 0.6rem 0 0.8rem;
  line-height: 1.45;
}

.payment-result-meta {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.35rem;
}

.payment-result-meta.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.72rem;
  color: var(--muted);
  word-break: break-all;
  margin-bottom: 1rem;
}

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