/* ============================================================
   BirthdayNaija — Birthday Wall page
   Built from Figma (birthday-naija-coc wall). Reuses styles.css tokens:
   brand --g1/--g2/--g3, --hand (Mansalva), Poppins/Inter, .btn, .container.
   Fully responsive: 4 → 2 → 1 columns.
   ============================================================ */

/* ---------- Hero (Figma node 6:16692) ---------- */
.wallhero { position: relative; background: #151313; color: #fff; overflow: hidden; }
.wallhero__bg { position: absolute; inset: 0; object-fit: cover; width: 100%; height: 100%;
  filter: grayscale(1) contrast(1.05); opacity: .5; }
.wallhero::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10,10,10,.92) 0%, rgba(10,10,10,.75) 45%, rgba(10,10,10,.35) 100%); }
.wallhero__glow { position: absolute; top: -120px; right: -60px; width: 380px; height: 380px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,227,217,.5), rgba(255,75,43,0) 70%); pointer-events: none; z-index: 1; }
/* Content starts from the left with a generous gutter (~48px), not glued to the edge */
.wallhero__inner { position: relative; z-index: 2; max-width: 1067px;
  padding: 84px 0 96px; padding-left: clamp(20px, 4vw, 48px); padding-right: clamp(20px, 4vw, 48px);
  display: flex; flex-direction: column; align-items: flex-start; }
.wallhero__badge { display: inline-flex; align-items: center;
  color: #fff; font-family: var(--poppins); font-weight: 700; font-size: 12px;
  letter-spacing: .08em; text-transform: uppercase; margin: 0 0 24px; }
.wallhero__title { font-family: var(--poppins); font-weight: 800; font-size: clamp(34px, 5vw, 64px);
  line-height: 1.06; margin: 0 0 48px; max-width: 900px; text-transform: uppercase; }
.wallhero__sub { font-family: var(--hand); font-size: clamp(19px, 2vw, 24px); line-height: 1.35;
  margin: 0 0 48px; max-width: 858px; color: #fbfbfb; }
.wallhero__cta { display: inline-flex; padding: 16px 28px; font-size: 15px; }

/* ---------- Filter bar (Figma node 6:16709) ---------- */
.wallbar { display: flex; align-items: center; gap: 16px; margin: 120px 0 0; flex-wrap: wrap; }
.wallbar__tabs { display: inline-flex; gap: 4px; background: #f4f1ee; border-radius: 999px; padding: 4px; }
.wallbar__tab { padding: 10px 20px; border-radius: 999px; border: 0; background: transparent;
  font-family: var(--poppins); font-weight: 500; font-size: 13px; color: #404040;
  white-space: nowrap; cursor: pointer; transition: background-color .2s var(--ease), color .2s var(--ease); }
.wallbar__tab.is-active { background: #111; color: #fff; }
.wallbar__right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.wallbar__pickwrap, .wallbar__filterwrap { position: relative; }
/* Bordered fields: date, filter-by, search — border #e9e2de, radius 10 */
.wallbar__field { display: inline-flex; align-items: center; gap: 10px; padding: 12px 14px;
  border: 1px solid #e9e2de; border-radius: 10px; background: var(--white);
  font-family: var(--poppins); font-weight: 400; font-size: 13px; color: #111; white-space: nowrap;
  cursor: pointer; transition: border-color .2s var(--ease), background-color .2s var(--ease); }
.wallbar__field:hover { background: #faf8f6; border-color: #dcd3cc; }
.wallbar__field svg { width: 17px; height: 17px; color: #404040; flex: none; }
.wallbar__field span[data-datelabel] { color: #111; }
.wallbar__field span[data-filterlabel] { color: #404040; }
.wallbar__chev { width: 15px !important; height: 15px !important; }
.wallbar__pickwrap.is-open .wallbar__field, .wallbar__filterwrap.is-open .wallbar__field { border-color: var(--g1); }
.wallbar__search { display: inline-flex; align-items: center; gap: 5px; padding: 12px 14px;
  border: 0; border-radius: 10px; background: var(--white); min-width: 210px; }
.wallbar__search svg { width: 16px; height: 16px; color: #404040; flex: none; }
.wallbar__search input { border: 0; outline: 0; background: none; font-family: var(--poppins); font-size: 13px;
  color: #111; width: 100%; }
.wallbar__search input::placeholder { color: #404040; }

/* Range calendar popover (Figma 6:17104) — presets rail + two months + range */
/* Anchored to the RIGHT of the trigger so the two-month popover never clips the viewport edge. */
.wcal { position: absolute; top: calc(100% + 8px); right: 0; left: auto; z-index: 40; display: flex;
  background: var(--white); border: 1px solid #e9e2de; border-radius: 16px; overflow: hidden;
  box-shadow: 0 20px 48px rgba(16,24,40,.18); animation: wpop .16s var(--ease); width: 560px; max-width: calc(100vw - 32px); }
.wcal[hidden] { display: none; }
.wcal__main { flex: 1; padding: 16px; display: flex; flex-direction: column; }
.wcal__months { display: flex; gap: 24px; }
.wcal__month { flex: 1; }
.wcal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.wcal__label { font-family: var(--poppins); font-weight: 600; font-size: 14px; color: #111; }

/* Month + Year dropdown caption (replaces static label span) */
.wcal__caption-dropdowns { display: flex; align-items: center; gap: 6px; }
.wcal__caption-sel {
  font-family: var(--poppins); font-weight: 600; font-size: 13px; color: var(--ink);
  background: var(--grey-100); border: 1px solid var(--line); border-radius: 6px;
  padding: 4px 24px 4px 8px; cursor: pointer; outline: none;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%238a8a8a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 6px center; background-size: 14px;
  transition: border-color .15s;
}
.wcal__caption-sel:focus { border-color: var(--g2); }
.wcal__caption-sel:hover { border-color: var(--grey-500); }
.wcal__nav { width: 28px; height: 28px; border: 0; background: none; border-radius: 8px; color: #404040;
  display: grid; place-items: center; cursor: pointer; transition: background-color .2s var(--ease); }
.wcal__nav:hover { background: #f4f1ee; }
.wcal__nav svg { width: 16px; height: 16px; }
.wcal__navspacer { width: 28px; height: 28px; }
.wcal__nav--m { display: none; }   /* mobile-only "next" arrow on the single month */
.wcal__dow { display: grid; grid-template-columns: repeat(7, 1fr); }
.wcal__dow span { text-align: center; font-family: var(--inter); font-size: 12px; font-weight: 500; color: #98a2b3; padding: 6px 0; }
.wcal__grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.wcal__day { aspect-ratio: 1; border: 0; background: none; cursor: pointer; position: relative;
  font-family: var(--inter); font-size: 13px; color: #111; transition: background-color .12s var(--ease), color .12s var(--ease); }
.wcal__day:hover { background: #f4f1ee; border-radius: 999px; }
.wcal__day.is-out { color: #cbd0d6; pointer-events: none; }
.wcal__day.is-today { font-weight: 700; }
/* in-range shading (pill row) */
.wcal__day.is-inrange { background: #f6ede9; border-radius: 0; }
/* range endpoints — solid orange circle */
.wcal__day.is-end { background: var(--g1); color: #fff; border-radius: 999px; z-index: 1; font-weight: 600; }
.wcal__day.is-end:hover { background: var(--g1); }
/* Birthday indicator dot */
.wcal__dot { position: absolute; left: 50%; bottom: 5px; transform: translateX(-50%); width: 4px; height: 4px;
  border-radius: 999px; background: var(--g1); }
.wcal__day.is-end .wcal__dot { background: #fff; }
.wcal__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; padding-top: 16px; border-top: 1px solid #f0ece8; }
.wcal__inputs { display: flex; align-items: center; gap: 10px; }
.wcal__inp { font-family: var(--inter); font-size: 13px; color: #111; border: 1px solid #e9e2de; border-radius: 8px; padding: 8px 12px; min-width: 108px; text-align: center; }
.wcal__dash { color: #98a2b3; }
.wcal__actions { display: flex; gap: 8px; }
.wcal__cancel { border: 1px solid #e9e2de; background: var(--white); border-radius: 8px; padding: 9px 18px;
  font-family: var(--poppins); font-weight: 500; font-size: 13px; color: #111; cursor: pointer; transition: background-color .2s var(--ease); }
.wcal__cancel:hover { background: #f4f1ee; }
.wcal__apply { border: 0; background: var(--g1); color: #fff; border-radius: 8px; padding: 9px 20px;
  font-family: var(--poppins); font-weight: 600; font-size: 13px; cursor: pointer; transition: filter .2s var(--ease); }
.wcal__apply:hover { filter: brightness(1.05); }

/* DOB calendar trigger button — looks like a wfield__input but acts as a button */
.wfield__dob-trigger { display: flex; align-items: center; justify-content: space-between; text-align: left;
  cursor: pointer; width: 100%; box-sizing: border-box; overflow: visible;
  font-family: var(--inter); font-size: 14px; color: var(--ink);
  background: var(--white); border: 1px solid var(--line-m); border-radius: 8px; padding: 11px 14px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
.wfield__dob-trigger:focus { outline: 0; border-color: var(--g2); box-shadow: 0 0 0 3px rgba(255,65,108,.12); }
.wfield__dob-trigger span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #98a2b3; }
.wfield__dob-trigger.has-value span { color: var(--ink); }
.wfield__dob-trigger svg { flex-shrink: 0; margin-left: 8px; color: var(--grey-500); }
/* DOB calendar — single month, anchored below trigger */
.wcal--dob { width: 300px; left: 0; right: auto; }
.wcal--dob .wcal__months--single { display: block; }
.wcal--dob .wcal__foot { justify-content: flex-end; }
.wcal__actions--full { justify-content: flex-end; }

/* Filter-by dropdown */
.wfilter { position: absolute; top: calc(100% + 8px); right: 0; z-index: 40; min-width: 180px;
  background: var(--white); border: 1px solid #e9e2de; border-radius: 12px; padding: 6px;
  box-shadow: 0 16px 40px rgba(16,24,40,.14); animation: wpop .16s var(--ease); }
.wfilter[hidden] { display: none; }
.wfilter button { display: block; width: 100%; text-align: left; padding: 10px 12px; border: 0; background: none;
  border-radius: 8px; font-family: var(--poppins); font-size: 13px; color: #111; cursor: pointer; transition: background-color .15s var(--ease); }
.wfilter button:hover { background: #f4f1ee; }
.wfilter button.is-active { background: #fff0e5; color: var(--g1); font-weight: 500; }

/* ---------- Grid ---------- */
/* Default: single-column social feed layout */
.wallgrid { display: grid; grid-template-columns: 1fr; gap: 0; margin: 40px 0 120px; max-width: 600px; margin-left: auto; margin-right: auto; }
/* Index page teaser: 2-col grid for homepage preview — flush with .container edges */
.wall__grid--teaser.wallgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; max-width: none; margin-left: 0; margin-right: 0; }
/* Teaser cards get rounded borders instead of feed-style border-bottom */
.wall__grid--teaser .dwall-card { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.wall__grid--teaser .dwall-card:hover { box-shadow: 0 4px 16px rgba(16,24,40,.08); }
.bcard { background: var(--white); border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
  display: flex; flex-direction: column; transition: box-shadow .25s var(--ease), transform .25s var(--ease); cursor: pointer; }
.bcard:hover { box-shadow: 0 4px 16px rgba(16,24,40,.08); }
.bcard[hidden] { display: none; }
.bcard__media { position: relative; aspect-ratio: 4 / 3; background: var(--grey-100); }
.bcard__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wall__grid--teaser .bcard { cursor: pointer; }
.bcard__hover { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(17,17,17,0); opacity: 0; transition: background-color .22s var(--ease), opacity .22s var(--ease);
  pointer-events: none; }
.bcard__hover svg { width: 30px; height: 30px; color: #fff; transform: scale(.85); transition: transform .22s var(--ease); }
.wall__grid--teaser .bcard:hover .bcard__hover { background: rgba(17,17,17,.45); opacity: 1; }
.wall__grid--teaser .bcard:hover .bcard__hover svg { transform: scale(1); }
/* FEATURED pill (top-left) — replaces the old gradient ring + save badge */
.bcard__feat { position: absolute; top: 10px; left: 10px; display: inline-flex; align-items: center; gap: 4px;
  padding: 5px 10px; border-radius: 999px; background: rgba(255,255,255,.92); backdrop-filter: blur(4px);
  font-family: var(--poppins); font-weight: 700; font-size: 10px; letter-spacing: .6px; color: var(--g1); }
.bcard__body { padding: 14px 16px 12px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.bcard__name { font-family: var(--poppins); font-weight: 600; font-size: 15px; color: var(--ink); margin: 0; line-height: 1.3; }
.bcard__msg { font-family: var(--inter); font-size: 14px; color: var(--text-800); line-height: 1.5; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bcard__foot { display: flex; align-items: center; gap: 14px; padding: 10px 16px 14px; border-top: 1px solid var(--line); margin-top: auto; }
.bcard__act { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; cursor: pointer;
  font-family: var(--inter); font-size: 13px; font-weight: 500; color: var(--text-800); transition: color .2s var(--ease); }
.bcard__act svg { width: 18px; height: 18px; }
.bcard__act:hover { color: var(--ink); }
.bcard__act.is-liked { color: var(--g1); }
.bcard__act.is-liked svg { fill: currentColor; }
.bcard__date { margin-left: auto; font-family: var(--inter); font-size: 12px; color: var(--grey-500); white-space: nowrap; }

/* ---- Desktop wall card — Twitter/X social feed style
   Avatar+name row → message → photo → action bar
   Two cards per row on desktop, left-aligned ---- */
.wallgrid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  align-items: start;        /* each card keeps its own height */
}

/* `hidden` must win over the display rules above — without this the grid stays
   visible when switching to My Posting and the wall cards pile up underneath it. */
.wallgrid[hidden],
.wallempty[hidden],
.dwall-myposting[hidden] { display: none !important; }

.dwall-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
/* No hover state at all — the card keeps its white frame on hover. */

.dwall-card__body {
  padding: 16px 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1;
}

/* Header: avatar + name/handle/dot/date in one row */
.dwall-card__header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 4px;
}
.dwall-card__avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--grey-100);
}
.dwall-card__avatar-init {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--g1), var(--g2));
  color: #fff;
  font-family: var(--poppins); font-size: 14px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  /* The avatar photo lies over the initials, which show through if it fails. */
  position: relative; overflow: hidden;
}
.dwall-card__avatar-init > .dwall-card__avatar {
  position: absolute; inset: 0; width: 100%; height: 100%;
}
.dwall-card__meta {
  flex: 1; min-width: 0;
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px;
}
.dwall-card__name {
  font-family: var(--poppins); font-size: 15px; font-weight: 600; color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.dwall-card__handle {
  font-family: var(--inter); font-size: 14px; color: var(--grey-500);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.dwall-card__dot {
  font-family: var(--inter); font-size: 14px; color: var(--grey-500);
}
.dwall-card__date {
  font-family: var(--inter); font-size: 14px; color: var(--grey-500);
  white-space: nowrap; flex-shrink: 0;
}

/* Message */
.dwall-card__msg {
  font-family: var(--inter); font-size: 15px; color: var(--ink);
  line-height: 1.55; margin: 0 0 12px;
}

/* Photo — 16:9 aspect, rounded corners, inside the body padding */
.dwall-card__photo-wrap {
  position: relative;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 12px;
  background: var(--grey-100);
}
.dwall-card__photo {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* Action bar — like + comment sit together on the left, share pushed to the far right */
.dwall-card__actions {
  display: flex;
  align-items: center;
  gap: 2px;
  padding-top: 4px;
}
.dwall-card__actions .dwall-card__action:last-child { margin-left: auto; }
.dwall-card__action {
  display: inline-flex; align-items: center; gap: 6px;
  border: 0; background: none; cursor: pointer;
  font-family: var(--inter); font-size: 13px; color: var(--grey-500);
  padding: 6px 8px; border-radius: 99px;
  transition: color .15s ease, background .15s ease;
}
.dwall-card__action svg { width: 18px; height: 18px; flex-shrink: 0; }
.dwall-card__action:hover { color: var(--g2); background: rgba(255,65,108,.08); }
.dwall-card__action.is-liked { color: var(--g1); }
.dwall-card__action.is-liked svg { fill: currentColor; }
.dwall-card__action.is-active { color: var(--g1); }
.dwall-card__action.is-active svg { fill: currentColor; }

/* ---- Media grid (multi-image + video) — Twitter/X style ---- */
.dwall-card__media,
.wfeed-card__media { margin: 8px 0 0; }

/* Image grid container */
.media-grid {
  display: grid;
  gap: 2px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
}
.media-grid--1 { grid-template-columns: 1fr; }
/* Fixed row heights rather than aspect-ratio: the card is full width, so a
   square cell would be ~500px tall, and capping it with max-height left the
   cell narrower than its column (a gap beside each photo). Rows give every
   grid the same overall height whatever the card width; object-fit crops. */
.media-grid--2 {
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: 230px;
}
.media-grid--3 {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 114px 114px;   /* 114 + 2 gap + 114 = 230, same as 2-up */
}

/* Image cells */
.media-grid__cell {
  position: relative;
  overflow: hidden;
  background: var(--grey-100);
}
.media-grid__cell img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .2s ease;
}
.media-grid__cell:hover img { transform: scale(1.03); }

/* 1 image: natural aspect, capped */
.media-grid--1 .media-grid__cell { max-height: 400px; }
.media-grid--1 .media-grid__cell img { height: auto; max-height: 400px; }

/* 3 images: the lead image fills the whole left column */
.media-grid--3 .media-grid__cell:first-child { grid-row: 1 / 3; }

/* Video player */
.media-video { margin-top: 8px; border-radius: 16px; overflow: hidden; background: #000; }
.media-video__player {
  display: block;
  width: 100%;
  max-height: 400px;
  border-radius: 16px;
}

/* ---- Lightbox overlay ---- */
.media-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .2s ease;
}
.media-lightbox.is-open { opacity: 1; }
/* Cross-fade + slight drift when navigating between images */
.media-lightbox__img {
  transition: opacity var(--t-base) var(--fx), transform var(--t-base) var(--fx);
}
.media-lightbox__img.is-swapping { opacity: 0; }
.media-lightbox__img.slide-next { transform: translateX(-24px); }
.media-lightbox__img.slide-prev { transform: translateX(24px); }

.media-lightbox__img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  user-select: none;
}
.media-lightbox__close {
  position: absolute;
  top: 16px; right: 16px;
  background: rgba(255,255,255,.15);
  border: 0;
  color: #fff;
  font-size: 28px;
  width: 44px; height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background .15s;
  z-index: 2;
}
.media-lightbox__close:hover { background: rgba(255,255,255,.3); }
.media-lightbox__prev,
.media-lightbox__next {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.15);
  border: 0;
  color: #fff;
  font-size: 36px;
  width: 48px; height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background .15s;
  z-index: 2;
}
.media-lightbox__prev { left: 16px; }
.media-lightbox__next { right: 16px; }
.media-lightbox__prev:hover,
.media-lightbox__next:hover { background: rgba(255,255,255,.3); }
.media-lightbox__counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.7);
  font-family: var(--inter);
  font-size: 14px;
  background: rgba(0,0,0,.5);
  padding: 4px 14px;
  border-radius: 99px;
}

/* ---- Motion ----
   One easing curve and two durations across the feed, so every
   transition feels like it belongs to the same interface. */
:root {
  --fx:      cubic-bezier(.4, 0, .2, 1);
  --fx-out:  cubic-bezier(.16, 1, .3, 1);   /* soft landing for things that appear */
  --t-fast:  .16s;
  --t-base:  .24s;
}

/* New cards and comments ease in rather than snapping into place */
@keyframes feed-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.dwall-card,
.wfeed-card { animation: feed-in var(--t-base) var(--fx-out) both; }

.dwall-comment { animation: feed-in var(--t-fast) var(--fx-out) both; }

/* Media reveals gently once decoded */
.media-grid__cell img { animation: feed-in var(--t-base) var(--fx-out) both; }

/* Respect the system setting — no motion for anyone who asked for none */
@media (prefers-reduced-motion: reduce) {
  .dwall-card, .wfeed-card, .dwall-comment,
  .media-grid__cell img, .reaction-picker { animation: none; }
  * { transition-duration: .01ms !important; }
}

/* ---- Post modal media: photo thumbnails + video preview ---- */
.wmedia-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.wmedia-grid:empty { display: none; }
.wmedia-grid:not(:empty) { margin-bottom: 10px; }

.wmedia-thumb {
  position: relative;
  width: 88px;
  height: 88px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--grey-100);
  flex: none;
}
.wmedia-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wmedia-thumb__size {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.7));
  color: #fff; font-family: var(--inter); font-size: 10px;
  padding: 10px 6px 3px; text-align: center;
}

/* Shared remove button for a photo thumb and the video preview */
.wmedia-remove {
  position: absolute; top: 4px; right: 4px;
  width: 22px; height: 22px;
  border: 0; border-radius: 50%;
  background: rgba(0,0,0,.6); color: #fff;
  font-size: 16px; line-height: 1; cursor: pointer;
  display: grid; place-items: center; padding: 0;
  transition: background var(--t-fast) var(--fx);
}
.wmedia-remove:hover { background: rgba(0,0,0,.85); }

.wmedia-video { position: relative; border-radius: 8px; overflow: hidden; background: #000; margin-bottom: 10px; }
.wmedia-video[hidden] { display: none; }
.wmedia-video__player { display: block; width: 100%; max-height: 220px; }

/* ---- Emoji reactions ---- */
.reaction-row {
  position: relative;          /* anchors the picker so it never clips the card edge */
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 2px 0 0;
}

/* A reaction chip: emoji + count */
.reaction-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 99px;
  padding: 4px 10px 4px 8px;
  cursor: pointer;
  font-family: var(--inter);
  line-height: 1;
  transition: background .15s, border-color .15s, transform .12s;
}
.reaction-chip:hover { background: #faf8f7; transform: translateY(-1px); }
.reaction-chip.is-mine { background: rgba(255,65,108,.08); border-color: var(--g2); }
.reaction-chip__emoji { font-size: 15px; }
.reaction-chip__count { font-size: 13px; font-weight: 600; color: var(--text-800); }
.reaction-chip.is-mine .reaction-chip__count { color: var(--g1); }

/* "Add a reaction" button + its popup picker */
.reaction-add-wrap { display: inline-flex; }
.reaction-add {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 99px;
  cursor: pointer;
  color: var(--grey-500);
  padding: 0;
  transition: background .15s, border-color .15s, color .15s;
}
.reaction-add svg { width: 17px; height: 17px; display: block; }
.reaction-add:hover,
.reaction-add.is-open { background: rgba(255,65,108,.08); border-color: var(--g2); color: var(--g1); }

.reaction-picker {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  display: flex;
  gap: 2px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 6px 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  z-index: 40;
  animation: reaction-pop .16s ease;
}
.reaction-picker[hidden] { display: none; }
@keyframes reaction-pop {
  from { opacity: 0; transform: translateY(6px) scale(.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.reaction-picker__btn {
  border: 0;
  background: none;
  font-size: 21px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 5px;
  border-radius: 50%;
  transition: transform .12s ease, background .12s ease;
}
.reaction-picker__btn:hover { transform: scale(1.25); background: var(--grey-100); }
.reaction-picker__btn.is-mine { background: rgba(255,65,108,.12); }

/* Share — sits at the far right of the reaction row */
.reaction-share {
  margin-left: auto;
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 0;
  background: none;
  border-radius: 50%;
  cursor: pointer;
  color: var(--grey-500);
  padding: 0;
  transition: color var(--t-fast) var(--fx), background var(--t-fast) var(--fx);
}
.reaction-share svg { width: 18px; height: 18px; display: block; }
.reaction-share:hover { color: var(--g2); background: rgba(255,65,108,.08); }

/* ---- Comment section ---- */
.dwall-card__comments { display: block; border-top: 1px solid var(--line); padding: 12px 0 4px; margin-top: 4px; }

/* Comment input row */
.dwall-comment-input { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
/* The composer avatar is gone — the input fills the row instead. */
.dwall-comment-input__field { flex: 1; font-family: var(--inter); font-size: 14px; color: var(--ink); background: #f5f3f1; border: 1px solid transparent; border-radius: 99px; padding: 9px 16px; outline: 0; transition: border-color .15s, box-shadow .15s; }
.dwall-comment-input__field:focus { border-color: var(--g2); box-shadow: 0 0 0 3px rgba(255,65,108,.10); background: #fff; }
.dwall-comment-input__field::placeholder { color: var(--grey-500); }
.dwall-comment-input__send { border: 0; background: none; cursor: pointer; color: var(--g1); padding: 6px; border-radius: 50%; transition: background .15s; flex: none; }
.dwall-comment-input__send:hover { background: rgba(255,65,108,.08); }
.dwall-comment-input__send svg { width: 20px; height: 20px; display: block; }
.dwall-comment-input__send:disabled { opacity: .4; cursor: not-allowed; }

/* Comment list */
.dwall-comment-list { display: flex; flex-direction: column; gap: 10px; }
.dwall-comment-list:empty { display: none; }
/* Collapsed: only the first two comments show; "See all" removes this class. */
.dwall-comment-list.is-collapsed .dwall-comment:nth-child(n+3) { display: none; }

/* "See all N comments" */
.dwall-comment-more {
  align-self: flex-start;
  border: 0;
  background: none;
  padding: 0 0 10px;
  cursor: pointer;
  font-family: var(--inter);
  font-size: 13px;
  font-weight: 600;
  color: var(--grey-500);
  transition: color var(--t-fast) var(--fx);
}
.dwall-comment-more:hover { color: var(--g2); }
.dwall-comment { display: flex; gap: 10px; align-items: flex-start; }
.dwall-comment__avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--grey-100); color: var(--grey-500); display: grid; place-items: center; font-family: var(--poppins); font-weight: 600; font-size: 10px; flex: none;
  /* The commenter's photo lies over the initials, which show through if the
     file is missing. */
  position: relative; overflow: hidden; }
.dwall-comment__avatar-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dwall-comment__body { flex: 1; min-width: 0; }
.dwall-comment__top { display: flex; align-items: baseline; gap: 6px; }
.dwall-comment__name { font-family: var(--poppins); font-weight: 500; font-size: 13px; color: var(--ink); }
.dwall-comment__time { font-family: var(--inter); font-size: 12px; color: var(--grey-500); }
.dwall-comment__text { font-family: var(--inter); font-size: 14px; color: var(--ink); line-height: 1.5; margin: 2px 0 0; }

/* Same comment styles for mobile feed cards */
.wfeed-card__comments { display: block; border-top: 1px solid var(--line); padding: 12px 0 4px; margin-top: 4px; }
.wfeed-card__comments .dwall-comment-input,
.wfeed-card__comments .dwall-comment-list,
.wfeed-card__comments .dwall-comment,
.wfeed-card__comments .dwall-comment__avatar,
.wfeed-card__comments .dwall-comment__body,
.wfeed-card__comments .dwall-comment__top,
.wfeed-card__comments .dwall-comment__name,
.wfeed-card__comments .dwall-comment__time,
.wfeed-card__comments .dwall-comment__text,
.wfeed-card__comments .dwall-comment-input__field,
.wfeed-card__comments .dwall-comment-input__send { /* inherits desktop styles above */ }

/* Show More — outline pill, brand border (Figma node 6:17014) */
.wallmore { display: flex; justify-content: center; margin: 8px 0 64px; }
.wallmore[hidden] { display: none; }
.wallmore__btn { border: 1px solid var(--g1); background: var(--white); color: var(--g1);
  font-family: var(--poppins); font-weight: 600; font-size: 16px; padding: 14px 24px; border-radius: 999px;
  cursor: pointer; transition: background-color .2s var(--ease), color .2s var(--ease); }
.wallmore__btn:hover { background: var(--g1); color: #fff; }

/* Empty state */
.wallempty { text-align: center; padding: 72px 24px; display: none; flex-direction: column; align-items: center; gap: 20px; }
.wallempty.show { display: flex; }
.wallempty__img { width: 138px; height: auto; display: block; margin: 0 auto; }
.wallempty__inner { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.wallempty__title { font-family: var(--poppins); font-weight: 600; font-size: 20px; color: var(--ink); margin: 0; }
.wallempty__text { font-family: var(--inter); font-size: 15px; color: var(--text-800); margin: 0; max-width: 360px; }

/* ---------- CTA band ---------- */
.wallcta { position: relative; overflow: hidden; background: #151313; color: #fff; text-align: center;
  border-radius: 24px; padding: 72px 24px; margin: 24px 0 80px; }
.wallcta__glow { position: absolute; inset: 0; background: radial-gradient(600px 200px at 50% 120%, rgba(255,75,43,.5), transparent); }
.wallcta__title { position: relative; font-family: var(--hand); font-size: clamp(30px, 4vw, 52px); line-height: 1.1; margin: 0 auto 16px; max-width: 720px; min-height: 2.2em; }
.wallcta__sub { position: relative; font-family: var(--inter); font-size: 15px; color: rgba(255,255,255,.82); line-height: 1.6; margin: 0 auto 28px; max-width: 560px; }
.wallcta__btn { position: relative; display: inline-flex; }

/* ---------- Post-to-wall modal (node 6:17024) ---------- */
.wmodal { position: fixed; inset: 0; z-index: 80; background: rgba(16,24,40,.5); display: none;
  align-items: flex-start; justify-content: center; padding: 40px 16px; overflow-y: auto; }
.wmodal.show { display: flex; }
.wmodal__card { background: var(--white); border-radius: 16px; width: 100%; max-width: 460px;
  box-shadow: 0 20px 24px -4px rgba(10,13,18,.08); overflow: hidden; animation: wpop .2s var(--ease); }
@keyframes wpop { from { transform: scale(.97); opacity: .6; } to { transform: scale(1); opacity: 1; } }
.wmodal__head { display: flex; align-items: flex-start; gap: 12px; padding: 24px 24px 0; }
.wmodal__head-txt h2 { font-family: var(--poppins); font-weight: 600; font-size: 18px; color: var(--ink); margin: 0; }
.wmodal__head-txt p { font-family: var(--inter); font-size: 14px; color: var(--text-800); margin: 4px 0 0; }
.wmodal__close { margin-left: auto; background: none; border: 0; width: 40px; height: 40px; border-radius: 8px;
  color: var(--text-800); display: grid; place-items: center; cursor: pointer; flex: none; }
.wmodal__close:hover { background: var(--grey-100); }
.wmodal__close svg { width: 22px; height: 22px; }
.wmodal__body { padding: 20px 24px; display: flex; flex-direction: column; gap: 18px; max-height: 70vh; overflow-y: auto; }
.wsection-label { font-family: var(--inter); font-weight: 600; font-size: 14px; color: var(--ink); margin: 4px 0 0; }
.wfield { display: flex; flex-direction: column; gap: 6px; }
.wfield__label { font-family: var(--inter); font-weight: 500; font-size: 13px; color: var(--grey-800); display: flex; justify-content: space-between; }
.wfield__label span { color: var(--grey-500); font-weight: 400; }
.wfield__input, .wfield__area { width: 100%; font-family: var(--inter); font-size: 14px; color: var(--ink);
  background: var(--white); border: 1px solid var(--line-m); border-radius: 8px; padding: 11px 14px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
.wfield__area { resize: vertical; min-height: 96px; }
.wfield__input:focus, .wfield__area:focus { outline: 0; border-color: var(--g2); box-shadow: 0 0 0 3px rgba(255,65,108,.12); }
.wfield__input::placeholder, .wfield__area::placeholder { color: #98a2b3; }
.wfield.has-error .wfield__input, .wfield.has-error .wfield__area { border-color: var(--red); }
.wfield__err { font-family: var(--inter); font-size: 12px; color: var(--red); display: none; }
.wfield.has-error .wfield__err { display: block; }
.wupload { border: 1.5px dashed var(--line-m); border-radius: 10px; padding: 22px; text-align: center; cursor: pointer;
  transition: border-color .2s var(--ease), background-color .2s var(--ease); }
.wupload:hover { border-color: var(--g2); background: #fff9f5; }
.wupload__icon { width: 36px; height: 36px; border-radius: 999px; background: #fff0e5; color: var(--g1);
  display: grid; place-items: center; margin: 0 auto 8px; }
.wupload__icon svg { width: 18px; height: 18px; }
.wupload__t { font-family: var(--inter); font-size: 14px; color: var(--ink); margin: 0; }
.wupload__t b { color: var(--g1); }
.wupload__h { font-family: var(--inter); font-size: 12px; color: var(--grey-500); margin: 4px 0 0; }
.wnotice { display: flex; align-items: center; gap: 10px; background: #fff0ef; border-radius: 8px; padding: 10px 12px;
  font-family: var(--inter); font-size: 13px; color: var(--text-800); }
.wnotice svg { width: 18px; height: 18px; color: var(--g1); flex: none; }
.wconsent { display: flex; align-items: flex-start; gap: 8px; font-family: var(--inter); font-size: 12px; color: var(--text-800); cursor: pointer; }
.wconsent input { margin-top: 2px; accent-color: var(--g2); width: 16px; height: 16px; flex: none; }
.wmodal__foot { display: flex; gap: 12px; justify-content: flex-end; padding: 16px 24px; border-top: 1px solid var(--line); }
.wmodal__foot .btn { min-width: 110px; }

/* ---------- Sign in to post modal (Figma 9:2029 / 9:2094) ---------- */
.wmodal--auth { align-items: center; }
.wauth { position: relative; background: var(--white); border-radius: 20px; width: 100%; max-width: 440px;
  padding: 40px 40px 32px; box-shadow: 0 24px 48px -12px rgba(16,24,40,.18); text-align: center;
  animation: wpop .2s var(--ease); }
.wauth__close { position: absolute; top: 14px; right: 14px; margin: 0; }
.wauth__logo { width: 52px; height: 52px; border-radius: 999px; margin: 0 auto 20px; }
.wauth__logo img { width: 100%; height: 100%; display: block; }
.wauth__title { font-family: var(--poppins); font-weight: 700; font-size: 26px; color: var(--ink); margin: 0; }
.wauth__sub { font-family: var(--inter); font-size: 14px; color: var(--text-800); margin: 8px 0 28px; }
.wauth__form { display: flex; flex-direction: column; gap: 18px; text-align: left; }
.wauth__pw { position: relative; }
.wauth__pw .wfield__input { padding-right: 44px; }
.wauth__eye { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px;
  border: 0; background: none; color: #98a2b3; display: grid; place-items: center; cursor: pointer; }
.wauth__eye svg { width: 18px; height: 18px; }
.wauth__eye.is-on { color: var(--g1); }
.wauth__row { display: flex; align-items: center; justify-content: space-between; margin-top: -4px; }
.wauth__check { display: inline-flex; align-items: center; gap: 8px; font-family: var(--inter); font-size: 13px; color: var(--text-800); cursor: pointer; }
.wauth__check input { width: 16px; height: 16px; accent-color: var(--g1); }
.wauth__link { font-family: var(--poppins); font-weight: 600; font-size: 13px; color: var(--g1); text-decoration: none; }
.wauth__link:hover { text-decoration: underline; }
.wauth__submit { width: 100%; justify-content: center; margin-top: 4px; padding: 13px 16px; }
.wauth__google { width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px; border: 1px solid var(--line-m); border-radius: 999px; background: var(--white);
  font-family: var(--poppins); font-weight: 600; font-size: 15px; color: var(--ink); cursor: pointer;
  transition: background-color .2s var(--ease); }
.wauth__google:hover { background: var(--grey-100); }
.wauth__foot { font-family: var(--inter); font-size: 14px; color: var(--text-800); margin: 24px 0 0; }

/* Confirm modals (delete / unsaved / gate) */
.wconfirm { position: fixed; inset: 0; z-index: 85; background: rgba(16,24,40,.5); display: none; place-items: center; padding: 16px; }
.wconfirm.show { display: grid; }
.wconfirm__card { background: var(--white); border-radius: 16px; max-width: 420px; width: 100%; padding: 24px;
  box-shadow: 0 20px 24px -4px rgba(10,13,18,.08); }
.wconfirm__icon { width: 48px; height: 48px; border-radius: 999px; display: grid; place-items: center; margin-bottom: 16px; }
.wconfirm__icon svg { width: 24px; height: 24px; }
.wconfirm__icon--warn { background: #fff0e5; color: var(--g1); }
.wconfirm__icon--danger { background: #fee4e2; color: #d92d20; }
.wconfirm__icon--brand { background: #fff0e5; color: var(--g1); }
.wconfirm__title { font-family: var(--poppins); font-weight: 700; font-size: 18px; color: var(--ink); margin: 0 0 6px; }
.wconfirm__text { font-family: var(--inter); font-size: 14px; color: var(--text-800); margin: 0 0 20px; line-height: 1.5; }
.wconfirm__foot { display: flex; gap: 12px; justify-content: flex-end; }

/* Toast */
.wtoast { position: fixed; top: 20px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff;
  font-family: var(--inter); font-size: 14px; font-weight: 500; padding: 12px 20px; border-radius: 999px;
  box-shadow: 0 8px 24px rgba(0,0,0,.2); z-index: 100; opacity: 0; transition: opacity .3s, transform .3s; pointer-events: none; }
.wtoast.show { opacity: 1; }

/* ---------- Responsive ---------- */
/* Grid stays 2-col on all wide screens; collapses to 1-col at tablet and smaller */
@media (max-width: 900px) {
  .wallbar { flex-wrap: wrap; }
  .wallbar__right { width: 100%; margin-left: 0; flex-wrap: wrap; }
  .wallbar__search { flex: 1; min-width: 140px; }
  .wallgrid { gap: 16px; }
  /* Mobile calendar: simplest form — one month, just prev/next + tap a date. */
  .wcal { flex-direction: column; width: min(340px, calc(100vw - 32px)); }
  .wcal__months { flex-direction: column; gap: 16px; }
  .wcal__month:nth-child(2) { display: none; }   /* single month */
  .wcal__nav--m { display: grid; }               /* reveal the "next" arrow on month 1 */
  .wcal__foot { flex-direction: column; align-items: stretch; }
  .wcal__actions { justify-content: flex-end; }
}
@media (max-width: 680px) {
  .wallgrid { grid-template-columns: 1fr; }
  .wall__grid--teaser.wallgrid { grid-template-columns: 1fr; gap: 16px; }
}
@media (max-width: 560px) {
  .wallhero__inner { padding: 56px 20px 64px; }
  .wallbar { margin-top: 40px; }
  .wallbar__tabs { width: 100%; }
  /* Post modal becomes a full-height sheet on phones */
  .wmodal:not(.wmodal--auth) { padding: 0; align-items: stretch; }
  .wmodal:not(.wmodal--auth) .wmodal__card { max-width: 100%; border-radius: 0; min-height: 100vh; }
  .wmodal:not(.wmodal--auth) .wmodal__body { max-height: none; }
  .wauth { padding: 32px 22px 26px; }
  .wauth__title { font-size: 22px; }
  .wcal { position: fixed; top: 50%; bottom: auto; left: 50%; right: auto; transform: translate(-50%, -50%);
    width: calc(100% - 32px); max-width: 360px; border-radius: 20px; max-height: calc(100vh - 48px); overflow-y: auto;
    animation: wpop .2s var(--ease); }
  /* The rule above centres the calendar on the viewport, which is right
     inside the full-height post sheet — anchoring it to a field in a sheet
     that scrolls under you would put it off-screen. Every .mpf__date-wrap
     field is the opposite case: an ordinary in-page form (My Countdown,
     Send a Gift, Post a wish, Personal details), where a panel floating in
     the middle of the screen has nothing to do with the field you tapped.
     Those anchor under their input, the way a popover should. */
  .mpf__date-wrap .wcal {
    position: absolute; top: calc(100% + 8px); bottom: auto; left: 0; right: auto;
    transform: none; width: min(340px, calc(100vw - 34px)); max-height: none;
    animation: wpop .16s var(--ease);
  }
  /* 17px side padding — filter bar, grid, empty state, show-more all slide in from the edges */
  .wallbar { padding-left: 17px; padding-right: 17px; }
  .wallgrid { padding-left: 17px; padding-right: 17px; }
  .wallempty { padding-left: 17px; padding-right: 17px; }
  .wallmore { padding-left: 17px; padding-right: 17px; }
}


/* ---------- Celebrant full-screen profile overlay (card click → full view) ---------- */
/* Backdrop / overlay container — hidden by default, shown via .show */
.celeb-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0, 0, 0, .72);
  display: none; align-items: center; justify-content: center;
  padding: 16px;
}
.celeb-overlay.show { display: flex; }
.celeb-overlay[hidden] { display: none !important; }

/* The white panel */
.celeb-panel {
  position: relative;
  background: var(--white);
  border-radius: 24px;
  width: 100%; max-width: 520px;
  max-height: calc(100vh - 32px);
  display: flex; flex-direction: column;
  overflow: hidden;
  box-shadow: 0 32px 72px rgba(16,24,40,.28);
  animation: wpop .22s var(--ease);
}

/* Hero photo section */
.celeb-hero {
  position: relative; flex: none;
  height: 260px; background: var(--grey-100);
}
.celeb-hero__img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
/* Dark gradient over photo so text is readable */
.celeb-hero__grad {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.15) 0%, rgba(0,0,0,.72) 100%);
}
/* Close button */
.celeb-close {
  position: absolute; top: 14px; right: 14px; z-index: 3;
  background: rgba(17,17,17,.55); border: 0;
  width: 38px; height: 38px; border-radius: 999px;
  color: #fff; display: grid; place-items: center;
  cursor: pointer; transition: background-color .18s var(--ease);
}
.celeb-close:hover { background: rgba(17,17,17,.85); }
.celeb-close svg { width: 18px; height: 18px; }

/* Name + age overlay on hero */
.celeb-hero__meta {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 2;
  padding: 20px 22px 18px;
}
.celeb-name {
  font-family: var(--poppins); font-weight: 700;
  font-size: clamp(22px, 5vw, 28px); color: #fff;
  margin: 0 0 4px; line-height: 1.15;
  text-shadow: 0 2px 8px rgba(0,0,0,.4);
}
.celeb-age {
  font-family: var(--poppins); font-weight: 500;
  font-size: 13px; color: rgba(255,255,255,.85);
  margin: 0; letter-spacing: .01em;
}

/* Scrollable content body */
.celeb-body {
  flex: 1 1 auto; overflow-y: auto;
  padding: 20px 22px 28px;
  display: flex; flex-direction: column; gap: 18px;
  -webkit-overflow-scrolling: touch;
}

/* Date row */
.celeb-date-row {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--poppins); font-size: 13px;
  color: var(--grey-800); font-weight: 500;
}
.celeb-date-row svg { width: 16px; height: 16px; flex: none; color: var(--g1); }

/* Birthday message blockquote */
.celeb-msg {
  margin: 0;
  font-family: var(--hand); font-size: clamp(17px, 4vw, 22px);
  line-height: 1.55; color: var(--ink);
  padding: 0 0 0 16px;
  border-left: 3px solid var(--g1);
}

/* Emoji reactions row */
.celeb-reacts {
  display: flex; gap: 10px;
}
.celeb-emoji {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 999px;
  border: 1.5px solid var(--line); background: #faf8f6;
  font-family: var(--poppins); font-size: 13px;
  font-weight: 600; color: var(--grey-800);
  cursor: pointer; transition: border-color .18s var(--ease), background-color .18s var(--ease), transform .15s var(--ease);
}
.celeb-emoji:hover { background: #f2ede8; border-color: var(--g1); }
.celeb-emoji.is-active { border-color: var(--g1); background: #fff0ec; color: var(--g1); }
.celeb-emoji.is-active:hover { transform: scale(1.06); }

/* Action buttons row */
.celeb-actions {
  display: flex; gap: 10px;
  padding-top: 4px; border-top: 1px solid var(--line);
}
.celeb-act {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 11px 14px; border-radius: 12px;
  border: 1.5px solid var(--line); background: #fff;
  font-family: var(--poppins); font-size: 13px; font-weight: 600;
  color: var(--grey-800); cursor: pointer; text-decoration: none;
  transition: border-color .18s var(--ease), background-color .18s var(--ease), color .18s var(--ease);
}
.celeb-act svg { width: 17px; height: 17px; flex: none; }
.celeb-act:hover { border-color: var(--grey-500); background: #faf8f6; color: var(--ink); }
.celeb-act--like.is-liked { border-color: #e8304a; color: #e8304a; background: #fff5f6; }
.celeb-act--like.is-liked svg { fill: #e8304a; stroke: #e8304a; }
.celeb-act--wish { background: linear-gradient(135deg, var(--g1), var(--g2)); border-color: transparent; color: #fff; }
.celeb-act--wish:hover { opacity: .9; background: linear-gradient(135deg, var(--g1), var(--g2)); color: #fff; }

/* CTA band */
.celeb-cta {
  background: linear-gradient(135deg, #1a1a1a 0%, #111 100%);
  border-radius: 16px; padding: 22px 20px;
  text-align: center;
}
.celeb-cta__title {
  font-family: var(--poppins); font-weight: 700; font-size: 16px;
  color: #fff; margin: 0 0 6px;
}
.celeb-cta__sub {
  font-family: var(--inter); font-size: 13px; line-height: 1.5;
  color: rgba(255,255,255,.7); margin: 0 0 16px;
}
.celeb-cta__btn { display: inline-flex; padding: 12px 28px; font-size: 14px; }

/* Mobile: bottom-sheet panel */
@media (max-width: 560px) {
  .celeb-overlay { padding: 0; align-items: flex-end; }
  .celeb-panel {
    max-width: 100%; max-height: 96vh;
    border-radius: 20px 20px 0 0;
  }
  .celeb-hero { height: 220px; }
}


/* ---------- Home page Birthday Wall teaser: no hover lift/shadow (kept plain) ---------- */
.wall__grid--teaser .bcard:hover { box-shadow: none; transform: none; }


/* ============================================================
   SEND A GIFT — styles appended to wall.css
   Reuses: wallempty, mwall-header, mwall-seg, wmodal, wfield,
           mpf, btn, dwall-toolbar  (no duplicate rules)
   ============================================================ */

/* ── Gift list (desktop + mobile shared) ── */
.gift-list { display: flex; flex-direction: column; gap: 16px; padding: 0; min-width: 0; }
.gift-list:empty { display: none; }
/* Mobile: the card rests on the site's 17px gutter. */
@media (max-width: 900px) {
  .gift-list { padding-left: 17px; padding-right: 17px; }
}
/* Desktop renders a table, which wants the full panel width — the old 720px
   cap was for the card stack and would crush the columns. */

/* ── Gift card — Figma 237:1920 (processing) / 237:2071 (awaiting payment) ──
   One card renderer serves the mobile list and the desktop panel, so both
   views stay identical to the design. ── */
.gcard {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.gcard[hidden] { display: none; }

/* Header: grey initials avatar, name, "Birthday · <date>" */
.gcard__head { display: flex; align-items: center; gap: 12px; }
.gcard__avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--grey-100);
  display: grid; place-items: center;
  font-family: var(--poppins); font-weight: 600; font-size: 14px;
  color: var(--text-800);
  flex-shrink: 0; text-transform: uppercase;
}
.gcard__meta { min-width: 0; }
.gcard__name {
  font-family: var(--poppins); font-weight: 600; font-size: 16px;
  color: var(--ink); margin: 0; line-height: 1.3;
}
.gcard__date {
  font-family: var(--inter); font-size: 13px; color: var(--grey-500);
  margin: 3px 0 0;
}

.gcard__chiprow { margin: 12px 0 0; }
.gcard__rule { height: 1px; background: var(--line); margin: 14px 0 0; }
.gcard__body { display: flex; flex-direction: column; gap: 14px; padding-top: 14px; }

/* Label / value pairs */
.gfield__label {
  font-family: var(--inter); font-size: 13px; color: var(--grey-500); margin: 0;
}
.gfield__value {
  font-family: var(--inter); font-size: 15px; color: var(--ink);
  margin: 4px 0 0; line-height: 1.45;
}
.gfield__value--amount {
  font-family: var(--poppins); font-weight: 600; font-size: 19px;
}

/* "Payment received" confirmation line */
.gpaid {
  display: flex; align-items: center; gap: 8px; margin: 0;
  font-family: var(--inter); font-weight: 600; font-size: 14px;
  color: #15803d;
}
.gpaid svg { width: 18px; height: 18px; flex-shrink: 0; }

/* Reference / submitted lines */
.gref {
  font-family: var(--inter); font-size: 13px; color: var(--grey-500); margin: 0;
}
.gref + .gref { margin-top: -8px; }

/* Amber 48-hour notice */
.gnotice {
  display: flex; gap: 10px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 8px;
  padding: 12px 14px;
}
.gnotice__icon { color: #d97706; flex-shrink: 0; line-height: 0; margin-top: 1px; }
.gnotice__icon svg { width: 18px; height: 18px; display: block; }
.gnotice__title {
  font-family: var(--poppins); font-weight: 600; font-size: 14px;
  color: #b45309; margin: 0;
}
.gnotice__body {
  font-family: var(--inter); font-size: 13px; line-height: 1.5;
  color: #b45309; margin: 4px 0 0;
}

/* Full-width gradient action */
.gcard__cta {
  margin-top: 16px;
  width: 100%;
  border: 0; cursor: pointer;
  background: linear-gradient(90deg, var(--g2), var(--g1), var(--g3));
  color: #fff;
  font-family: var(--poppins); font-weight: 600; font-size: 15px;
  border-radius: 99px; padding: 14px 20px;
  transition: opacity .15s var(--ease), transform .12s var(--ease);
}
.gcard__cta:hover { opacity: .92; }
.gcard__cta:active { transform: translateY(1px); }

/* ── Status chips ── */
.gchip {
  display: inline-flex; align-items: center;
  font-family: var(--inter); font-weight: 500; font-size: 13px;
  border-radius: 8px; padding: 5px 10px;
  background: var(--grey-100); color: var(--text-800);
  border: 1px solid transparent;
  white-space: nowrap;
}
.gchip--warn { background: #fffbeb; color: #b45309; border-color: #fde68a; }
.gchip--done { background: #e6f9ef; color: #15803d; border-color: #bbf7d0; }

/* Legacy badge class kept so older markup keeps rendering */
.gbadge {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--inter); font-weight: 500; font-size: 13px;
  border-radius: 8px; padding: 5px 10px; white-space: nowrap;
  background: var(--grey-100); color: var(--text-800);
}
.gbadge--pending   { background: #fffbeb; color: #b45309; }
.gbadge--confirmed { background: var(--grey-100); color: var(--text-800); }
.gbadge--progress  { background: var(--grey-100); color: var(--text-800); }
.gbadge--delivered { background: #e6f9ef; color: #15803d; }

/* ── Gift table (desktop) — Figma 239:13857 adapted to our tokens ──
   Cards stack fine on a phone but waste a desktop panel; the table puts the
   reference, date, status, celebrant, gift and amount on one scannable line.
   Mobile keeps the cards — see the media query at the end of this block. ── */
/* Horizontal scroll rather than wrapped cells: every column stays on one
   line and the member scrolls sideways to reach Make payment if the panel is
   too narrow.

   min-width:0 is what keeps that scrollbar INSIDE the card. A flex item
   defaults to min-width:auto, so the wrap refused to shrink below the
   table's min-width and pushed the whole page wide — which is where the
   second scrollbar along the bottom of the window came from. */
.gtable-wrap {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  min-width: 0;
  max-width: 100%;
}
.gtable { width: 100%; border-collapse: collapse; min-width: 1020px; }

.gtable thead th {
  text-align: left;
  font-family: var(--inter); font-weight: 500; font-size: 13px;
  color: var(--grey-500);
  padding: 14px 16px;
  background: #fafafa;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.gtable__row { border-bottom: 1px solid var(--line); transition: background-color .15s var(--ease); }
.gtable__row:last-child { border-bottom: 0; }
.gtable__row:hover { background: #fafafa; }

.gtable__cell {
  padding: 14px 16px;
  font-family: var(--inter); font-size: 14px; color: var(--ink);
  vertical-align: middle;
  white-space: nowrap;          /* no column wraps onto a second line */
}
.gtable__cell--ref { font-weight: 500; white-space: nowrap; }
.gtable__cell--muted { color: var(--text-800); }
.gtable__cell--amount { font-family: var(--poppins); font-weight: 600; white-space: nowrap; }
.gtable__cell--actions { text-align: right; white-space: nowrap; }

/* Celebrant cell */
.gtable__person { display: flex; align-items: center; gap: 10px; }
.gtable__avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--grey-100); color: var(--text-800);
  display: grid; place-items: center; flex-shrink: 0;
  font-family: var(--poppins); font-weight: 600; font-size: 12px;
  text-transform: uppercase;
}
.gtable__person-meta { display: flex; flex-direction: column; min-width: 0; }
.gtable__person-name { font-weight: 500; color: var(--ink); white-space: nowrap; }
.gtable__person-sub { font-size: 13px; color: var(--grey-500); white-space: nowrap; }

/* Row actions: the pay button plus a three-dot menu for everything else */
.gtable__cell--actions { position: relative; }
.gtable__cell--actions > * { vertical-align: middle; }
.gmenu { position: relative; display: inline-block; margin-left: 6px; }
.gmenu__trigger {
  border: 0; background: none; cursor: pointer;
  color: var(--grey-500); padding: 7px; border-radius: 50%;
  display: inline-grid; place-items: center;
  transition: color .15s var(--ease), background-color .15s var(--ease);
}
.gmenu__trigger svg { width: 18px; height: 18px; display: block; }
.gmenu__trigger:hover,
.gmenu__trigger[aria-expanded="true"] { color: var(--ink); background: var(--grey-100); }

.gmenu__pop {
  position: absolute; top: calc(100% + 6px); right: 0;
  min-width: 190px; z-index: 60;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(16,24,40,.12);
  padding: 6px;
  display: flex; flex-direction: column;
  animation: gmenu-in .14s cubic-bezier(.16,1,.3,1);
}
.gmenu__pop[hidden] { display: none; }
@keyframes gmenu-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.gmenu__item {
  border: 0; background: none; cursor: pointer; text-align: left;
  font-family: var(--inter); font-size: 14px; color: var(--ink);
  padding: 9px 12px; border-radius: 7px; white-space: nowrap;
  transition: background-color .12s var(--ease);
}
.gmenu__item:hover { background: var(--grey-100); }

/* Pay button */
.gtable__pay {
  border: 0; cursor: pointer;
  background: linear-gradient(90deg, var(--g2), var(--g1), var(--g3));
  color: #fff;
  font-family: var(--poppins); font-weight: 600; font-size: 13px;
  border-radius: 99px; padding: 8px 20px;
  transition: opacity .15s var(--ease), transform .12s var(--ease);
}
.gtable__pay:hover { opacity: .92; }
.gtable__pay:active { transform: translateY(1px); }

.gtable__view {
  border: 0; background: none; cursor: pointer;
  color: var(--grey-500); padding: 6px; border-radius: 50%;
  display: inline-grid; place-items: center;
  transition: color .15s var(--ease), background-color .15s var(--ease), transform .15s var(--ease);
}
.gtable__view svg { width: 18px; height: 18px; display: block; }
.gtable__view:hover { color: var(--g1); background: rgba(255,65,108,.08); transform: translateX(2px); }

.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;
}

/* ── Desktop checkout modal ──
   Hosts the same checkout/success markup the mobile screens use. The .gco and
   .gpaid padding is for a full screen, so it is neutralised inside the modal,
   which supplies its own. ── */
.wmodal--checkout .wmodal__card { max-width: 560px; width: 100%; }
.wmodal--checkout .wmodal__body { max-height: 72vh; overflow-y: auto; padding: 20px 24px 24px; }
.wmodal--checkout .gco,
.wmodal--checkout .gpaid { padding: 0; gap: 14px; max-width: none; }
.wmodal--checkout .gco__title { margin-top: 0; }
.wmodal--checkout .gpaid__mark { margin-top: 0; }

/* ── Gift details — Figma 237:1847 ──
   Summary card plus the vertical "Track your gift" timeline. ── */
.gtrack__content { display: flex; flex-direction: column; gap: 16px; padding: 17px; }

.gcard--summary { padding: 16px; }
.gsum__row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.gsum__row .gfield__value { margin: 0; }
.gsum__row .gfield__value--amount { margin-top: 6px; }

.gtrack-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 16px;
}
.gtrack-card__title {
  font-family: var(--poppins); font-weight: 600; font-size: 17px;
  color: var(--ink); margin: 0 0 18px;
}

/* Timeline */
.gsteps { list-style: none; margin: 0; padding: 0; }
.gstep { display: flex; gap: 12px; }
.gstep__rail { display: flex; flex-direction: column; align-items: center; flex-shrink: 0; }

.gstep__icon {
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--grey-100); color: var(--grey-500);
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.gstep__icon svg { width: 17px; height: 17px; display: block; }

/* The connector fills in as far as the gift has actually got to. */
.gstep__line { width: 2px; flex: 1; min-height: 26px; background: var(--line); margin: 4px 0; }

.gstep.is-done .gstep__icon    { background: #e6f9ef; color: #15803d; }
.gstep.is-done .gstep__line    { background: #15803d; }
.gstep.is-current .gstep__icon { background: #fff1ec; color: var(--g1); }

.gstep__body { flex: 1; min-width: 0; padding-bottom: 20px; }
.gstep:last-child .gstep__body { padding-bottom: 0; }
.gstep__top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.gstep__title {
  font-family: var(--poppins); font-weight: 600; font-size: 15px;
  color: var(--ink); margin: 0;
}
.gstep.is-current .gstep__title { color: var(--g1); }
.gstep__state {
  font-family: var(--inter); font-size: 13px; color: var(--grey-500);
  white-space: nowrap; flex-shrink: 0;
}
.gstep.is-done .gstep__state    { color: #15803d; }
.gstep.is-current .gstep__state { color: var(--g1); }
.gstep__text {
  font-family: var(--inter); font-size: 14px; line-height: 1.5;
  color: var(--text-800); margin: 4px 0 0;
}

/* ── Gift checkout — Figma 237:1999 ── */
/* Horizontal padding is 0 here: the parent .pf-screen already supplies the
   gutter (set to 17px below). Adding 17px here too stacked on the parent's
   and pushed the content out to 33px.
   Bottom padding clears the fixed mobile tab bar, which sits over the button. */
.gco { display: flex; flex-direction: column; gap: 14px; padding: 4px 0 120px; }
.gco__title { font-family: var(--poppins); font-weight: 600; font-size: 22px; color: var(--ink); margin: 6px 0 0; }
.gco__lead { font-family: var(--inter); font-size: 14px; color: var(--text-800); margin: -8px 0 6px; }
.gco__yourgift { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.gco__h { font-family: var(--poppins); font-weight: 600; font-size: 17px; color: var(--ink); margin: 0; }
.gco__sub { font-family: var(--inter); font-size: 14px; color: var(--text-800); margin: 4px 0 0; }
.gco__section { display: flex; flex-direction: column; gap: 12px; }

.gsum__amount { text-align: right; }
.gsum__amount .gfield__value { margin-top: 4px; }

/* Payment method choices — each option full width on its own line, so the
   label never wraps ("Bank transfer" was breaking across two lines). */
.gco__methods { display: flex; flex-direction: column; gap: 10px; }
.gco__method {
  position: relative;
  min-width: 0;
  display: flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 14px; cursor: pointer;
  transition: border-color .15s var(--ease), background-color .15s var(--ease);
}
.gco__method:hover { border-color: var(--grey-500); }
.gco__method.is-active { border-color: var(--g1); background: #fff5f2; }
.gco__method input { position: absolute; opacity: 0; pointer-events: none; }
.gco__method-ico { color: var(--text-800); line-height: 0; }
.gco__method.is-active .gco__method-ico { color: var(--g1); }
.gco__method-ico svg { width: 18px; height: 18px; display: block; }
.gco__method-label { font-family: var(--inter); font-size: 14px; color: var(--ink); flex: 1; white-space: nowrap; }
.gco__radio {
  width: 16px; height: 16px; border-radius: 50%;
  border: 1.5px solid var(--line); flex-shrink: 0;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.gco__method.is-active .gco__radio {
  border-color: var(--g1); background: var(--g1);
  box-shadow: inset 0 0 0 3px #fff;
}

/* Card fields */
.gco__fields { display: flex; flex-direction: column; gap: 12px; }
.gco__fields[hidden], .gco__bank[hidden] { display: none; }
/* min-width:0 — an input's intrinsic width otherwise overflows a 1fr grid
   column, pushing the CVV field past the edge of the screen. */
.gco__field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.gco__label { font-family: var(--inter); font-size: 14px; color: var(--ink); }
.gco__input {
  width: 100%;
  box-sizing: border-box;
  font-family: var(--inter); font-size: 15px; color: var(--ink);
  border: 1px solid var(--line); border-radius: 10px;
  padding: 13px 14px; outline: 0; background: #fff;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.gco__input::placeholder { color: var(--grey-500); }
.gco__input:focus { border-color: var(--g2); box-shadow: 0 0 0 3px rgba(255,65,108,.10); }
.gco__row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.gco__bank { display: flex; flex-direction: column; gap: 8px; }
.gco__bank-line { font-family: var(--inter); font-size: 14px; line-height: 1.55; color: var(--text-800); margin: 0; }

.gco__rule { height: 1px; background: var(--line); margin: 6px 0; }
.gco__total {
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--poppins); font-size: 16px; color: var(--ink);
}
.gco__total strong { font-weight: 600; font-size: 19px; }
/* Breathing room on either side of the encrypted note — it sat flush against
   the pay button above and the reference lines below. */
.gco__secure {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  font-family: var(--inter); font-size: 13px; color: var(--grey-500);
  margin: 4px 0 10px;
}
.gco__secure svg { width: 14px; height: 14px; }

/* ── Payment successful — Figma 237:1965 ── */
.gpaid { display: flex; flex-direction: column; gap: 14px; padding: 12px 0 120px; }
.gpaid__mark {
  width: 56px; height: 56px; border-radius: 50%;
  background: #e6f9ef; color: #15803d;
  display: grid; place-items: center; margin: 12px auto 0;
}
.gpaid__mark svg { width: 28px; height: 28px; }
.gpaid__title {
  font-family: var(--poppins); font-weight: 600; font-size: 22px;
  color: var(--ink); text-align: center; margin: 8px 0 0;
}
.gpaid__lead {
  font-family: var(--inter); font-size: 14px; line-height: 1.55;
  color: var(--text-800); text-align: center; margin: 0;
}
.gpaid__amount {
  font-family: var(--poppins); font-weight: 600; font-size: 34px;
  color: var(--ink); text-align: center; margin: 10px 0 0;
}
.gpaid__amount-label {
  font-family: var(--inter); font-size: 14px; color: var(--grey-500);
  text-align: center; margin: 2px 0 8px;
}
.gpaid__note {
  display: flex; gap: 12px;
  background: var(--grey-100); border-radius: 8px; padding: 16px;
}
.gpaid__note-ico { color: var(--text-800); line-height: 0; flex-shrink: 0; }
.gpaid__note-ico svg { width: 20px; height: 20px; display: block; }
.gpaid__note-title {
  font-family: var(--poppins); font-weight: 600; font-size: 15px;
  color: var(--ink); margin: 0;
}
.gpaid__note-body {
  font-family: var(--inter); font-size: 14px; line-height: 1.55;
  color: var(--text-800); margin: 4px 0 0;
}

/* Desktop: both screens read as a column, not a stretched banner */
@media (min-width: 901px) {
  .gco, .gpaid { max-width: 560px; padding-bottom: 40px; }
}

/* ── Desktop gift toolbar spacing ── */
.dgift-toolbar.dwall-toolbar { margin-bottom: 24px; }

/* ── Amount input with ₦ prefix — desktop modal ── */
.wfield__amount-wrap {
  position: relative; display: flex; align-items: center;
}
.wfield__amount-prefix {
  position: absolute; left: 14px;
  font-family: var(--inter); font-size: 15px; color: var(--grey-500);
  pointer-events: none; user-select: none;
}
.wfield__amount-input {
  padding-left: 30px !important;
  /* removes spinners */
  -moz-appearance: textfield;
}
.wfield__amount-input::-webkit-outer-spin-button,
.wfield__amount-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* ── Amount input with ₦ prefix — mobile form ── */
.mpf__amount-wrap {
  position: relative; display: flex; align-items: center;
}
.mpf__amount-prefix {
  position: absolute; left: 14px;
  font-family: var(--inter); font-size: 15px; color: var(--grey-500);
  pointer-events: none; user-select: none;
}
.mpf__amount-input {
  padding-left: 30px !important;
  -moz-appearance: textfield;
}
.mpf__amount-input::-webkit-outer-spin-button,
.mpf__amount-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* ── mpf optional badge ── */
.mpf__opt-badge {
  font-size: 11px; font-weight: 500; font-family: var(--inter);
  color: var(--grey-500); text-transform: none; letter-spacing: 0;
  vertical-align: middle; margin-left: 6px;
}

/* ── mpf consent error ── */
.mpf__err--consent {
  display: block; font-family: var(--inter); font-size: 12px;
  color: var(--red); margin-top: -8px; margin-bottom: 8px;
}
.mpf__err--consent[hidden] { display: none; }

/* ── wmodal gift: badge styling ── */
.wsub__badge--gift {
  background: #fff8e6; color: #b45309;
}

/* ── Reference code block ── */
.wgift-ref, .mgift-ref {
  background: var(--grey-100); border-radius: 12px;
  padding: 14px 16px; margin: 12px 0;
  display: flex; flex-direction: column; gap: 4px; align-items: center; text-align: center;
}
.wgift-ref__label, .mgift-ref__label {
  font-family: var(--inter); font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .06em; color: var(--grey-500); margin: 0;
}
.wgift-ref__code, .mgift-ref__code {
  font-family: var(--poppins); font-weight: 600; font-size: 22px;
  color: var(--ink); margin: 4px 0; letter-spacing: .04em;
}
.wgift-ref__hint, .mgift-ref__hint {
  font-family: var(--inter); font-size: 12px; color: var(--text-800); margin: 0;
}

/* ── Bank details block ── */
.wgift-bank, .mgift-bank {
  border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 16px; margin-bottom: 16px;
  display: flex; flex-direction: column; gap: 0;
}
.wgift-bank__label, .mgift-bank__label {
  font-family: var(--poppins); font-weight: 600; font-size: 12px;
  text-transform: uppercase; letter-spacing: .06em; color: var(--grey-500);
  margin: 0 0 10px;
}
.wgift-bank__row, .mgift-bank__row {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 8px; padding: 7px 0; border-top: 1px solid var(--grey-100);
}
.wgift-bank__row:first-of-type, .mgift-bank__row:first-of-type { border-top: none; }
.wgift-bank__key, .mgift-bank__key {
  font-family: var(--inter); font-size: 13px; color: var(--grey-500); white-space: nowrap;
}
.wgift-bank__val, .mgift-bank__val {
  font-family: var(--inter); font-size: 13px; font-weight: 600; color: var(--ink);
  text-align: right;
}

/* ── Mobile gift header ── */
.mgift-header { /* inherits all mwall-header styles; nothing extra needed */ }

/* ── wallempty shown via JS — gift uses same .show class ── */
.wallempty[data-gift-empty].show { display: flex; }

/* ── Gift filter menu: needs [hidden] override same as wfilter ── */
[data-gift-filtermenu][hidden] { display: none; }



/* ── Public wall page: dwall-toolbar (replaces old wallbar) ── */
.dwall-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 32px 0 20px; flex-wrap: wrap;
}
.dwall-toolbar__left { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dwall-search {
  display: flex; align-items: center; gap: 8px;
  width: 235px; height: 40px;
  border: 1.5px solid #dfe4ed; border-radius: 8px;
  padding: 0 14px; background: #fff;
  transition: border-color .15s;
}
.dwall-search:focus-within { border-color: #aab0bc; }
.dwall-search__icon { width: 16px; height: 16px; flex-shrink: 0; opacity: .5; }
.dwall-search__input {
  border: 0; outline: 0; background: none;
  font-family: var(--inter); font-size: 13px; color: var(--ink); width: 100%;
}
.dwall-search__input::placeholder { color: #aaa; }
.dwall-filterwrap { position: relative; }
.dwall-filter-btn {
  display: flex; align-items: center; gap: 7px;
  height: 40px; padding: 0 14px;
  border: 1.5px solid #dfe4ed; border-radius: 8px; background: #fff;
  font-family: var(--inter); font-size: 13px; color: #555;
  cursor: pointer; white-space: nowrap;
  transition: border-color .18s, background .15s;
}
.dwall-filter-btn:hover,
.dwall-filter-btn[aria-expanded="true"] { border-color: #aab0bc; background: #f9f9f9; }
.dwall-filter-btn__chev {
  width: 14px; height: 14px; color: #aaa; flex-shrink: 0;
  transition: transform .22s cubic-bezier(.4,0,.2,1);
}
.dwall-filter-btn[aria-expanded="true"] .dwall-filter-btn__chev { transform: rotate(180deg); }
.dwall-filter-menu {
  /* JS sets position:fixed + top/right when opening, so the menu escapes
     any overflow:hidden ancestor. The static absolute fallback is kept for
     contexts where JS hasn't run yet. */
  position: absolute; top: calc(100% + 8px); right: 0; left: auto;
  background: #fff; border: 1.5px solid #dfe4ed; border-radius: 12px;
  min-width: 180px; z-index: 8000;
  box-shadow: 0 4px 20px rgba(0,0,0,.10); overflow: hidden;
  transform-origin: top right;
  transform: scaleY(0.85) translateY(-8px); opacity: 0; pointer-events: none;
  transition: transform .22s cubic-bezier(.22,.61,.36,1), opacity .18s cubic-bezier(.22,.61,.36,1);
}
.dwall-filter-menu.is-open { transform: scaleY(1) translateY(0); opacity: 1; pointer-events: auto; }
/* Closed menu MUST be display:none. Kept in layout but invisible, it sat past
   the right edge of the phone and made the whole page ~505px wide on a 390px
   screen — that was the sideways shift on iOS. JS removes [hidden] before
   adding .is-open, so the open animation still plays. */
.dwall-filter-menu[hidden] { display: none !important; }
.dwall-filter-menu.is-open[hidden] { visibility: visible; }
.dwall-filter-menu button {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; text-align: left; padding: 13px 16px;
  font-family: var(--inter); font-size: 14px; color: #333;
  background: none; border: 0; cursor: pointer; transition: background .12s;
}
.dwall-filter-menu button:hover { background: #f7f7f7; }
.dwall-filter-menu button.is-active { font-weight: 600; color: var(--ink); }
.dwall-check { width: 16px; height: 16px; color: var(--ink); flex-shrink: 0; opacity: 0; transition: opacity .15s; }
.dwall-filter-menu button.is-active .dwall-check { opacity: 1; }
.dwall-toolbar__cta {
  height: 40px; padding: 0 18px; font-size: 13px; flex-shrink: 0;
  border-radius: 100px; display: flex; align-items: center; gap: 7px;
}

@media (max-width: 640px) {
  /* The page gutter is 17px (post headers, titles, the profile Wall). This
     bar sat at 37: the container's own 20px plus its 17px of padding. The
     container that holds it gives up its side padding so the bar's 17 is
     the only gutter, and it lines up with everything else on the page. */
  .container:has(> .dwall-toolbar) { padding-left: 0; padding-right: 0; }
  .dwall-toolbar { padding: 24px 17px 16px; flex-direction: column; gap: 10px; }
  /* Row 1: search fills remaining space, filter becomes icon-only square */
  .dwall-toolbar__left { width: 100%; flex-wrap: nowrap; gap: 10px; }
  .dwall-search {
    flex: 1; width: auto; height: 48px;
    border-radius: 9999px;
    border: 1.5px solid #e0e4ed;
    box-shadow: 0 1px 3px rgba(10,13,18,.06);
    padding: 0 18px;
  }
  .dwall-search__input { font-size: 14px; }
  /* Filter: icon-only square, same height as search */
  .dwall-filter-btn {
    width: 48px; height: 48px; padding: 0;
    border-radius: 10px; flex-shrink: 0;
    justify-content: center;
  }
  .dwall-filter-btn__label { display: none; }
  .dwall-filter-btn__chev { display: none; }
  .dwall-filter-btn__icon { opacity: .65; width: 18px; height: 18px; }
  /* Row 2: CTA full-width */
  .dwall-toolbar__cta { width: 100%; justify-content: center; height: 48px; font-size: 15px; border-radius: 9999px; }
}

/* A card arrived at from "View post" in My Posting — a brief ring so the
   member can see which of the cards on the wall is theirs. */
.is-spotlight {
  animation: bn-spotlight 1.7s ease-out 1;
}
@keyframes bn-spotlight {
  0%   { box-shadow: 0 0 0 0 rgba(255, 75, 43, .55); }
  35%  { box-shadow: 0 0 0 4px rgba(255, 75, 43, .35); }
  100% { box-shadow: 0 0 0 0 rgba(255, 75, 43, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .is-spotlight { animation: none; outline: 2px solid var(--g1); outline-offset: 2px; }
}

/* A media cell whose file is missing removes itself (see mediaHtml) — the
   grid must honour that, since .media-grid__cell has an unconditional
   display and would otherwise beat the browser's [hidden] default. */
.media-grid__cell[hidden] { display: none !important; }

/* ==========================================================================
   FEED POST — Figma 252:2951 (desktop) / 252:3040 (mobile)
   --------------------------------------------------------------------------
   Frameless: no border, no radius, no shadow, no card background. A single
   column on the page, posts separated by a hairline. The media is the only
   thing that touches the column edges on a phone; everything else sits on
   the 17px gutter.
   ========================================================================== */

.igfeed {
  display: flex;
  flex-direction: column;
  gap: 24px;                      /* Figma: Feed gap */
  width: 100%;
  max-width: 600px;               /* Figma: Feed column 600px */
  margin: 0;                      /* left aligned, not centred */
}

.fpost {
  display: flex;
  flex-direction: column;
  gap: 14px;                      /* Figma: Feed post gap */
  width: 100%;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}
/* The hairline between posts, drawn by the feed rather than by the post so
   the last one has none. */
.igfeed > .fpost + .fpost { border-top: 1px solid #dfe4ed; padding-top: 24px; }

/* ---- Header: avatar, name · time ---- */
.fpost__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 2px;                 /* desktop gutter */
}
.fpost__avatar {
  position: relative;
  width: 42px; height: 42px;
  border-radius: 999px;
  overflow: hidden;
  flex: none;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--g1), var(--g2));
  color: #fff;
  font-family: var(--poppins); font-weight: 600; font-size: 14px;
}
.fpost__avatar-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fpost__author { margin: 0; min-width: 0; font-family: var(--inter); font-size: 14px; line-height: 20px; }
.fpost__name { font-weight: 600; color: var(--ink); }
.fpost__sep  { color: #96999e; }
.fpost__time { color: #404040; }

/* ---- Media: a snap scroller, so a swipe is the browser's job ---- */
.fpost__media {
  position: relative;
  width: 100%;
  /* A ratio with a cap, which is what Facebook and Instagram actually do,
     rather than the flat 650px this took from Figma. A fixed pixel height
     cannot mean "the same height" at two column widths: 650 cropped every
     photo to 350x650 on a phone — taller than the screen is wide — and to
     600x650, nearly square, on a desktop. The same upload came out as two
     different pictures depending on who was looking.
     4:5 is the portrait cap both of those products settle on, and the
     max-height stops the wider desktop column from turning that ratio into
     a 750px wall of photo. Every slide is object-fit: cover, so whatever
     someone uploads fills the same box. */
  aspect-ratio: 4 / 5;
  height: auto;
  max-height: 560px;
  border-radius: 4px;
  overflow: hidden;
  background: var(--grey-100);
}
.fpost__track {
  display: flex;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.fpost__track::-webkit-scrollbar { display: none; }
.fpost__slide {
  flex: 0 0 100%;
  height: 100%;
  scroll-snap-align: start;
  cursor: zoom-in;
}
.fpost__slide[hidden] { display: none; }
.fpost__slide > img,
.fpost__video { width: 100%; height: 100%; object-fit: cover; display: block; }
.fpost__slide--video { cursor: default; }

.fpost__count {
  position: absolute; top: 16px; right: 16px;
  background: rgba(0,0,0,.5);
  color: #f4f4f5;
  font-family: var(--inter); font-size: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  pointer-events: none;
}
.fpost__next {
  position: absolute; top: 50%; right: 16px;
  transform: translateY(-50%);
  width: 30px; height: 30px;
  border: 0; border-radius: 999px;
  background: rgba(255,255,255,.9);
  display: grid; place-items: center;
  cursor: pointer;
  padding: 0;
}
.fpost__next[hidden] { display: none; }
/* Left arrow: same button, mirrored, on the left edge. */
.fpost__prev { right: auto; left: 16px; }
.fpost__prev img { transform: scaleX(-1); }

/* ---- Pagination dots ---- */
.fpost__dots { display: flex; gap: 4px; justify-content: center; height: 5px; }
.fpost__dot {
  width: 5px; height: 5px; border-radius: 999px;
  background: #d7dae0;
  transition: background-color .15s var(--ease);
}
.fpost__dot.is-on { background: var(--g1); }

/* ---- Details ---- */
.fpost__details {
  display: flex; flex-direction: column; gap: 12px;
  padding: 0 2px;
}
.fpost__engagement { display: flex; align-items: center; justify-content: space-between; }
.fpost__actions { display: flex; align-items: center; gap: 17px; }
.fpost__action {
  display: inline-flex; align-items: center; gap: 6px;
  border: 0; background: none; padding: 0; cursor: pointer;
  font-family: var(--inter); font-size: 14px; font-weight: 500; color: var(--ink);
  transition: opacity .15s var(--ease);
}
.fpost__action:hover { opacity: .65; }
.fpost__action img { display: block; }
/* A reaction of the member's own fills the heart with the brand red. */
.fpost__action.is-mine img {
  filter: brightness(0) saturate(100%) invert(36%) sepia(89%) saturate(4242%) hue-rotate(344deg) brightness(99%) contrast(97%);
}
.fpost__pickwrap { position: relative; display: inline-flex; }
/* Left-anchored, not centred: the pop-in keyframe animates transform, so a
   translateX here would be overridden for the length of the animation and
   then snap sideways when it ended. */
.fpost__pickwrap .reaction-picker { top: auto; bottom: calc(100% + 8px); left: -8px; }

.fpost__caption {
  margin: 0;
  font-family: var(--inter); font-size: 14px; line-height: 20px; color: #404040;
}
.fpost__cap-name { font-weight: 600; color: var(--ink); }
.fpost__for {
  margin: 0;
  font-family: var(--inter); font-size: 14px; line-height: 20px; color: #404040;
}
.fpost__for strong { color: var(--ink); font-weight: 600; }

.fpost__viewall,
.fpost__addcomment {
  border: 0; background: none; padding: 0; cursor: pointer; text-align: left;
  font-family: var(--inter); font-size: 14px; color: #96999e;
}
.fpost__viewall:hover, .fpost__addcomment:hover { color: var(--ink); }

/* ---- Phone: media runs edge to edge, everything else on the 17px gutter -- */
@media (max-width: 860px) {
  .igfeed { gap: 0; max-width: none; }
  .igfeed > .fpost + .fpost { border-top: 1px solid #dfe4ed; padding-top: 0; }
  .fpost { padding: 17px 0; gap: 14px; }
  .fpost__head,
  .fpost__details { padding: 0 17px; }
  .fpost__media { border-radius: 0; }
  /* The rules above put the gutter on the head and the details so the photo
     can run edge to edge — but only the signed-in wall got that, because
     wall.html sits its feed inside .container and its 20px side padding held
     the photo in. Same component, two widths: one upload came out 350 wide
     to a visitor and 390 to a member, and at a fixed ratio that is two
     different heights. The feed breaks out of that padding so both match.
     The homepage teaser is excluded: it is a band inside the page, not a
     feed, and is meant to sit on the container's gutter.
     width:auto is part of the breakout, not a tidy-up: .igfeed is width:100%,
     which resolves against the container's content box, so the negative
     margins alone shifted the feed left without widening it. */
  .container > .igfeed:not(.wall__grid--teaser) {
    width: auto;
    margin-left: -20px;
    margin-right: -20px;
  }
}

/* ==========================================================================
   COMMENT OVERLAY — a dialog on a desktop, a sheet on a phone
   ========================================================================== */
.fmodal { position: fixed; inset: 0; z-index: 1200; }
.fmodal[hidden] { display: none; }
.fmodal__scrim {
  position: absolute; inset: 0;
  background: rgba(10,10,10,.72);
  opacity: 0; transition: opacity .2s var(--ease);
}
.fmodal.is-open .fmodal__scrim { opacity: 1; }

.fmodal__panel {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(.98);
  display: flex;
  width: min(1100px, calc(100vw - 80px));
  height: min(720px, calc(100vh - 80px));
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  opacity: 0;
  transition: opacity .2s var(--ease), transform .2s var(--ease);
}
.fmodal.is-open .fmodal__panel { opacity: 1; transform: translate(-50%, -50%) scale(1); }

.fmodal__x {
  position: absolute; top: 10px; right: 14px; z-index: 2;
  border: 0; background: none; cursor: pointer;
  font-size: 26px; line-height: 1; color: var(--grey-500);
}
.fmodal__x:hover { color: var(--ink); }

.fmodal__media { flex: 1 1 auto; min-width: 0; background: #000; display: flex; }
/* The overlay sizes the photo to the dialog, so it opts out of the feed ratio. */
.fmodal__media .fpost__media { height: 100%; aspect-ratio: auto; max-height: none; border-radius: 0; background: #000; }
.fmodal__media .fpost__dots { display: none; }

.fmodal__side {
  flex: 0 0 380px;
  display: flex; flex-direction: column;
  border-left: 1px solid var(--line);
  min-width: 0;
}
.fmodal__head {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}
.fmodal__thread { flex: 1 1 auto; overflow-y: auto; padding: 16px 18px; display: flex; flex-direction: column; gap: 14px; }
.fmodal__thread .dwall-comment-list { display: flex; flex-direction: column; gap: 14px; }
.dwall-comment--caption { padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.fmodal__none { margin: 0; font-family: var(--inter); font-size: 14px; color: #96999e; }

.fmodal__composer { border-top: 1px solid var(--line); padding: 12px 18px; }
.fmodal__composer .dwall-comment-input { margin: 0; }
.fmodal__post {
  border: 0; background: none; cursor: pointer;
  font-family: var(--poppins); font-weight: 600; font-size: 14px;
  color: var(--g1); padding: 0 4px;
}
.fmodal__post[disabled] { opacity: .4; cursor: default; }
.fmodal__post-icon { display: none; }

/* ---- Phone: a sheet that rises from the bottom ---- */
@media (max-width: 860px) {
  .fmodal__panel {
    top: auto; bottom: 0; left: 0;
    transform: translateY(100%);
    width: 100%;
    height: min(72vh, 620px);
    border-radius: 16px 16px 0 0;
    flex-direction: column;
  }
  .fmodal.is-open .fmodal__panel { transform: translateY(0); }
  /* The media is already on screen behind the sheet — the sheet is for
     reading and writing comments. */
  .fmodal__media { display: none; }
  .fmodal__side { flex: 1 1 auto; border-left: 0; }
  .fmodal__x { top: 8px; right: 14px; }
  /* A grab handle, so it reads as something you can pull down. */
  .fmodal__panel::before {
    content: ""; position: absolute; top: 8px; left: 50%;
    transform: translateX(-50%);
    width: 38px; height: 4px; border-radius: 999px; background: var(--line);
  }
  .fmodal__head { padding-top: 22px; }
  .fmodal__post-label { display: none; }
  .fmodal__post-icon { display: block; }
}

body.fmodal-open { overflow: hidden; }

/* --------------------------------------------------------------------------
   Feed fixes
   -------------------------------------------------------------------------- */

/* .igfeed sets display:flex unconditionally, which beats the browser's
   [hidden]{display:none}. That is why the public wall kept showing under My
   Posting: switchWallView hides the container with the attribute and the
   rule simply outranked it. Same trap as the filter panel and the empty
   state before it. */
.igfeed[hidden] { display: none; }

/* The member's own reaction, whichever one they left, fills in brand red.
   The heart is an <img> so it takes the filter; the picker icons are inline
   SVG and take currentColor. */
.fpost__heart.is-mine { color: var(--g1); }
.fpost__heart.is-mine img {
  filter: brightness(0) saturate(100%) invert(36%) sepia(89%) saturate(4242%)
          hue-rotate(344deg) brightness(99%) contrast(97%);
}
.fpost__heart .ricon { width: 25px; height: 25px; display: block; }

/* Picker: stroke icons in the same family as the row, not colour emoji. */
.reaction-picker__btn .ricon { width: 22px; height: 22px; display: block; }
.reaction-picker__btn { color: var(--grey-800); }
.reaction-picker__btn:hover { color: var(--ink); }
.reaction-picker__btn.is-mine { color: var(--g1); }

@media (max-width: 860px) {
  /* The divider needs air on both sides — without this the next post's
     header sat directly on the stroke. */
  .igfeed > .fpost + .fpost { padding-top: 17px; }
}

/* Homepage teaser: two live posts side by side, read-only. */
.igfeed.wall__grid--teaser {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  max-width: none;
  /* Clear of the section's body copy. Measured from the visible last line,
     not from .wall__head: the paragraph overflows that container by ~27px,
     so a 56px margin only read as 29px of air. */
  margin-top: 84px;
}
/* The feed's divider belongs to a single scrolling column. Side by side it
   drew a line over the second card and pushed its header out of line with
   the first. */
.igfeed.wall__grid--teaser > .fpost + .fpost {
  border-top: 0;
  padding-top: 0;
}
.igfeed.wall__grid--teaser[hidden] { display: none; }
.fpost--teaser { text-decoration: none; color: inherit; }
/* The homepage teaser is its own fixed-height band, not a feed post. */
.fpost--teaser .fpost__media { height: 420px; aspect-ratio: auto; max-height: none; }
.fpost--teaser .fpost__media[hidden] { display: none; }
.fpost--teaser:hover .fpost__caption { opacity: .8; }
@media (max-width: 860px) {
  .igfeed.wall__grid--teaser { grid-template-columns: minmax(0, 1fr); gap: 28px; margin-top: 60px; }
  .fpost--teaser { padding: 0; }
  .fpost--teaser .fpost__media { height: 380px; aspect-ratio: auto; max-height: none; }
}

/* Signed-out comment overlay: read the wall, join to write on it. */
.fmodal__composer--guest { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.fmodal__guest { margin: 0; font-family: var(--inter); font-size: 14px; color: var(--text-800); }
.fmodal__guest-actions { display: flex; gap: 8px; }

/* The gift control sits with the reaction icons in the feed's action row. */
.ricon--25 { width: 25px; height: 25px; display: block; }
.fpost__action[data-gift] { color: var(--ink); }
.fpost__action[data-gift]:hover { color: var(--g1); opacity: 1; }

/* ---------- Locked by plan ----------
   Replaces an upload the member's plan does not include. It names the plan
   and what would unlock it: a greyed-out control with no reason reads as a
   broken page rather than a boundary. */
.wlocked { display: flex; align-items: center; gap: 12px; padding: 14px 16px;
  border: 1.5px dashed var(--line-m); border-radius: 10px; background: #fafafa; }
.wlocked[hidden] { display: none; }
.wlocked > svg { width: 22px; height: 22px; flex-shrink: 0; color: var(--grey-500); }
.wlocked > div { flex: 1 1 auto; min-width: 0; }
.wlocked__t { font-family: var(--poppins); font-size: 14px; font-weight: 600; color: var(--ink); margin: 0; }
.wlocked__h { font-family: var(--inter); font-size: 13px; line-height: 1.5; color: var(--text-800); margin: 2px 0 0; }
.wlocked__cta { flex-shrink: 0; font-family: var(--poppins); font-size: 13px; font-weight: 600;
  text-transform: uppercase; text-decoration: none; color: #fff;
  background: linear-gradient(135deg, var(--g1), var(--g2), var(--g3));
  padding: 9px 16px; border-radius: 99px; }
.wlocked__cta:hover { opacity: .92; }
@media (max-width: 560px) {
  .wlocked { flex-wrap: wrap; }
  .wlocked__cta { width: 100%; text-align: center; }
}

/* ===========================================================
   Send a Gift — Figma 283:3116 (desktop), 283:3313 (phone),
   283:3106 (the phone's filter menu)
   ===========================================================
   One card serves both layouts: the desktop lays them out three across,
   the phone stacks them, and the card itself is identical in the design.
   These rules are appended so they win over the older .gcard block above
   without a range edit deleting anything that sits between. */

/* A wrapping row of fixed 360px cards on the desktop, a stack on the
   phone — which is what the design is. Not a grid: auto-fill counts how
   many tracks fit using the track's MAXIMUM, so minmax(320px, 360px) in a
   1094px column fitted two 360s and left room for a third sitting empty. */
.gift-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
}
.gcard { width: 360px; }
@media (max-width: 900px) {
  .gift-list { gap: 16px; }
  .gcard { width: 100%; }
}

.gcard {
  background: #fff;
  border: 1px solid #dfe4ed;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.gcard:hover { border-color: #c7cedb; box-shadow: 0 2px 10px rgba(16, 24, 40, .06); }
.gcard:focus-visible { outline: 2px solid var(--g1); outline-offset: 2px; }

.gcard__head { display: flex; align-items: center; gap: 12px; margin: 0; }
.gcard__avatar {
  width: 40px; height: 40px; flex-shrink: 0;
  border-radius: 999px;
  background: #f3f3f3;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--inter); font-weight: 600; font-size: 14px; color: #404040;
}
.gcard__meta { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.gcard__name {
  font-family: var(--poppins); font-weight: 500; font-size: 14px; color: #333;
  margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.gcard__date {
  font-family: var(--inter); font-size: 12px; color: #666; margin: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.gcard__rule { height: 1px; background: #dfe4ed; margin: 0; }
.gcard__body { display: flex; flex-direction: column; gap: 12px; padding-top: 0; }

/* Amount on the left, reference on the right, as a pair. */
.gcard__row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.gcard__pair { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.gcard__row .gcard__pair:last-child { text-align: right; }
.gcard__label { font-family: var(--inter); font-size: 12px; color: #666; margin: 0; }
.gcard__value { font-family: var(--inter); font-weight: 500; font-size: 14px; color: #333; margin: 0; }
/* The address is a sentence, not a figure, so it sets at the label size. */
.gcard__body > .gcard__pair .gcard__value { font-size: 12px; font-weight: 400; }

/* Status pill, top right of the card. */
.gchip {
  flex-shrink: 0;
  font-family: var(--inter); font-weight: 500; font-size: 10px; line-height: 18px;
  padding: 2px 8px; border-radius: 9999px; border: 1px solid; white-space: nowrap;
}
.gchip--warn { background: #fffaeb; border-color: #fedf89; color: #b54708; }
.gchip--ok   { background: #ecfdf3; border-color: #abefc6; color: #067647; }

/* The notice strip at the foot of the card. */
.gnotice {
  display: flex; align-items: center; gap: 10px;
  padding: 12px; border-radius: 8px; border: 1px solid;
}
.gnotice--warn { background: #fffaeb; border-color: #fedf89; }
.gnotice--ok   { background: #ecfdf3; border-color: #abefc6; }
.gnotice__icon { flex-shrink: 0; display: block; }
.gnotice__text { font-family: var(--inter); font-size: 12px; line-height: 18px; margin: 0; }
.gnotice--warn .gnotice__text { color: #b54708; }
.gnotice--ok   .gnotice__text { color: #067647; }

/* ---------- desktop toolbar ---------- */
/* 32px above, as Figma 283:3165 has it (pt-[32px]) and as the Vendors tab
   next door already does. Without it the search pill sat flush against the
   page header, which no other tab does. */
.dgift-bar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding-top: 32px;
  margin-bottom: 32px;
}

.dgift-search {
  display: flex; align-items: center; gap: 8px;
  width: 337px; max-width: 100%;
  background: #fff; border: 1px solid #dfe4ed; border-radius: 9999px;
  padding: 14px 16px 14px 20px;
  box-shadow: 0 1px 2px rgba(10, 13, 18, .05);
}
.dgift-search img { flex-shrink: 0; display: block; }
.dgift-search input {
  flex: 1 1 auto; min-width: 0; border: 0; outline: 0; background: none;
  font-family: var(--inter); font-size: 14px; line-height: 20px; color: var(--ink);
}
.dgift-search input::placeholder { color: #717680; }
.dgift-search input::-webkit-search-decoration,
.dgift-search input::-webkit-search-cancel-button { -webkit-appearance: none; }

.dgift-seg {
  display: flex; align-items: center; gap: 4px;
  background: #f7f7f7; border: 1px solid #dfe4ed; border-radius: 999px;
  padding: 8px; min-height: 46px;
  filter: drop-shadow(0 1px 1px rgba(10, 13, 18, .05));
}
.dgift-seg__btn {
  height: 34px; padding: 0 25px; border: 0; border-radius: 29px; background: none;
  font-family: var(--poppins); font-weight: 500; font-size: 12px; color: #5c5b5a;
  cursor: pointer; white-space: nowrap;
  transition: background-color .15s ease, color .15s ease;
}
.dgift-seg__btn:hover { color: var(--ink); }
.dgift-seg__btn.is-on { background: #fff; color: var(--g1); }

/* ---------- the phone's header actions ---------- */
/* The gift screen is one of the few left out of .pf-screen's 20px top
   padding, so its header began at y=0 while the Vendors screen beside it
   began at 20. Made up here rather than by editing that exclusion list,
   which exists so these headers can run full width. */
/* 17px, not 37 — the Birthday Wall's own header padding, which is the
   reference every mobile screen now follows. This was 37 from an earlier
   pass that was matching the vendor screen; the vendor screen turned out to
   be the one that was low. The bottom 20 stays: without it the first gift
   card sat flush against the header. */
.pf-screen--gift .mgift-header { padding-top: 17px; padding-bottom: 20px; }
/* The header had no bottom padding, so the first card butted straight
   against it — Vendors leaves 39px in the same place and Gifts left 0.
   20px here plus the card list's own 16px makes 36. */

.mgift-actions { display: flex; align-items: center; gap: 12px; }
.mgift-filterwrap { position: relative; }
.mgift-abtn {
  width: 40px; height: 40px; flex-shrink: 0; padding: 0;
  border: 0; background: none; cursor: pointer; line-height: 0;
}
.mgift-abtn img { display: block; }
/* Only the search button carries its own disc — the plus and the filter
   come from Figma already drawn with theirs. */
.mgift-abtn--round {
  background: #f3f3f3; border-radius: 9999px;
  display: flex; align-items: center; justify-content: center;
}
.mgift-abtn:active { transform: scale(.94); }

.mgift-search {
  display: flex; align-items: center; gap: 8px; margin-top: 14px;
  background: #fff; border: 1.5px solid #dfe4ed; border-radius: 9999px;
  padding: 12px 16px;
}
.mgift-search[hidden] { display: none; }
.mgift-search img { flex-shrink: 0; display: block; }
.mgift-search input {
  flex: 1 1 auto; min-width: 0; border: 0; outline: 0; background: none;
  font-family: var(--inter); font-size: 14px; color: var(--ink);
}
.mgift-search input::placeholder { color: #717680; }

/* ---------- the phone's filter menu — Figma 283:3106 ---------- */
.gdrop {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 60;
  min-width: 232px;
  background: #fff; border: 1px solid #dfe2e9; border-radius: 12px;
  box-shadow: 0 3px 16px rgba(24, 43, 77, .13);
  padding: 1px 0; overflow: hidden;
}
.gdrop[hidden] { display: none; }
.gdrop__opt {
  width: 100%; height: 44px; padding: 0 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border: 0; background: none; cursor: pointer; text-align: left;
  font-family: var(--inter); font-size: 14px; line-height: 20px; color: #404040;
}
.gdrop__opt:hover { background: #f7f7f7; }
/* The chosen row is the bold one with the tick, as drawn. */
.gdrop__opt.is-on { font-weight: 700; color: var(--ink); }
.gdrop__tick { display: none; flex-shrink: 0; }
.gdrop__opt.is-on .gdrop__tick { display: block; }


/* ---------- public Birthday Wall toolbar: Send a Gift style on desktop ----------
   Same pill search and segmented switcher as Send a Gift, so every screen's
   filter row reads as one. Below 861px the original search + dropdown stay,
   because five segments do not fit a phone. */
@media (min-width: 861px) {
  .dwall-toolbar .dwall-search {
    width: 337px; height: auto; border: 1px solid #dfe4ed; border-radius: 9999px;
    padding: 14px 16px 14px 20px; box-shadow: 0 1px 2px rgba(10, 13, 18, .05);
  }
  .dwall-toolbar .dwall-filterwrap { display: none; }
}
@media (max-width: 860px) {
  .dwall-toolbar .dwall-seg { display: none; }
}

/* ---------------------------------------------------------------------------
   Poster sheet, 2026-10-27 — tap a poster's avatar or name.
--------------------------------------------------------------------------- */
button.fpost__name,
button.fpost__cap-name {
  appearance: none; -webkit-appearance: none;
  border: 0; background: none; padding: 0; margin: 0;
  font: inherit; font-weight: 600; color: var(--ink); cursor: pointer; text-align: left;
}
button.fpost__name:hover,
button.fpost__cap-name:hover { text-decoration: underline; }
.fpost__avatar[data-poster] { cursor: pointer; }

body.bnposter-open { overflow: hidden; }
.bnposter { position: fixed; inset: 0; z-index: 1300; }
.bnposter[hidden] { display: none; }
.bnposter__scrim {
  position: absolute; inset: 0; background: rgba(17,17,17,.45);
  opacity: 0; transition: opacity .22s ease;
}
.bnposter.is-open .bnposter__scrim { opacity: 1; }
.bnposter__panel {
  position: absolute; left: 0; right: 0; bottom: 0;
  max-height: 86vh; overflow-y: auto; -webkit-overflow-scrolling: touch;
  background: #fff; border-radius: 20px 20px 0 0;
  padding: 10px 16px calc(24px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -8px 32px rgba(0,0,0,.14);
  transform: translateY(100%); transition: transform .26s cubic-bezier(.16,1,.3,1);
}
.bnposter.is-open .bnposter__panel { transform: translateY(0); }
.bnposter__grab { display: block; width: 40px; height: 4px; border-radius: 99px; background: #ddd; margin: 0 auto 14px; }
.bnposter__x {
  position: absolute; top: 14px; right: 14px; width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  border: 0; border-radius: 50%; background: #f3f3f3; color: var(--ink); cursor: pointer;
}
.bnposter__x svg { width: 16px; height: 16px; }
.bnposter__head { display: flex; align-items: center; gap: 14px; padding-right: 40px; }
.bnposter__avatar { width: 60px !important; height: 60px !important; font-size: 20px !important; flex-shrink: 0; }
.bnposter__who { min-width: 0; }
.bnposter__name { font-family: var(--poppins); font-weight: 600; font-size: 18px; color: var(--ink); margin: 0; }
.bnposter__meta { font-family: var(--inter); font-size: 13px; color: var(--text-800); margin: 2px 0 0; }
.bnposter__count {
  font-family: var(--poppins); font-weight: 600; font-size: 12px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--text-800); margin: 22px 0 10px;
}
.bnposter__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.bnposter__tile {
  position: relative; aspect-ratio: 1; overflow: hidden; border: 0; padding: 0;
  border-radius: 10px; background: #f3f3f3; cursor: pointer;
}
.bnposter__tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bnposter__txt {
  position: absolute; inset: 0; padding: 10px; text-align: left;
  font-family: var(--inter); font-size: 11px; line-height: 1.4; color: var(--text-800);
  overflow: hidden;
}
.bnposter__for {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 8px 6px;
  font-family: var(--inter); font-size: 11px; font-weight: 600; color: #fff; text-align: left;
  background: linear-gradient(transparent, rgba(0,0,0,.6));
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
@media (min-width: 761px) {
  .bnposter__panel {
    left: 50%; right: auto; bottom: auto; top: 50%; width: min(520px, 92vw);
    border-radius: 16px; padding: 24px;
    transform: translate(-50%, -46%); opacity: 0;
    transition: transform .22s cubic-bezier(.16,1,.3,1), opacity .22s ease;
  }
  .bnposter.is-open .bnposter__panel { transform: translate(-50%, -50%); opacity: 1; }
  .bnposter__grab { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .bnposter__panel, .bnposter__scrim { transition: none; }
}

/* ============================================================
   Guest "Join to continue" modal  — shared across wall + vendors
   ============================================================ */
.bngm { position: fixed; inset: 0; z-index: 9000; display: flex;
        align-items: flex-end; justify-content: center; }
.bngm[hidden] { display: none; }
.bngm__scrim { position: absolute; inset: 0; background: rgba(0,0,0,.55);
               opacity: 0; transition: opacity .25s ease; }
.bngm.is-open .bngm__scrim { opacity: 1; }
.bngm__card { position: relative; z-index: 1; background: #fff; border-radius: 24px 24px 0 0;
              width: 100%; max-width: 480px; padding: 28px 24px 36px;
              text-align: center;
              transform: translateY(100%);
              transition: transform .28s cubic-bezier(.16,1,.3,1); }
.bngm.is-open .bngm__card { transform: translateY(0); }
.bngm__x { position: absolute; top: 14px; right: 14px; background: none; border: none;
           cursor: pointer; color: #666; padding: 4px; line-height: 1;
           display: flex; align-items: center; justify-content: center; }
.bngm__x:hover { color: #111; }
.bngm__icon { font-size: 44px; line-height: 1; margin-bottom: 12px; }
.bngm__title { font-family: var(--poppins); font-size: 20px; font-weight: 700;
               color: var(--ink); margin: 0 0 8px; }
.bngm__body  { font-family: var(--inter); font-size: 14px; line-height: 1.55;
               color: var(--text-800); margin: 0 0 24px; }
.bngm__btns  { display: flex; flex-direction: column; gap: 10px; }
.bngm__signup { display: block; }
.bngm__login  { display: block; background: var(--grey-100); color: var(--ink);
                font-family: var(--poppins); font-weight: 600; font-size: 14px;
                text-transform: uppercase; letter-spacing: .04em;
                padding: 12px 20px; border-radius: 99px; text-decoration: none;
                transition: background .15s; }
.bngm__login:hover { background: #e0e0e0; }

@media (min-width: 600px) {
  .bngm { align-items: center; }
  .bngm__card { border-radius: 20px; padding: 36px 32px 40px;
                transform: translateY(20px) scale(.97); opacity: 0;
                transition: transform .25s cubic-bezier(.16,1,.3,1), opacity .25s ease; }
  .bngm.is-open .bngm__card { transform: translateY(0) scale(1); opacity: 1; }
  .bngm__btns { flex-direction: row; justify-content: center; }
  .bngm__signup, .bngm__login { flex: 1; max-width: 180px; }
}
