/* ============================================================
   Warta — stylesheet
   Every colour, radius and rhythm value lives in :root. Restyling the
   template for a client should not need edits below the token block.
   ============================================================ */

:root {
  /* palette */
  --bg:            #ffffff;
  --ink:           #060504;
  --gray:          #726b5e;
  --gray-soft:     #999182;
  --border:        #d6d2cc;
  --border-soft:   #e4e6eb;
  --accent:        #0f7c80;
  --accent-dark:   #0a5f63;
  --accent-ink:    #ffffff;
  --like:          #f33e58;
  --surface:       #f0f2f5;
  --chip:          #e4e6eb;
  --hover:         rgba(6, 5, 4, .05);
  --accent-wash:   rgba(15, 124, 128, .1);
  --like-wash:     rgba(243, 62, 88, .1);

  /* type */
  --font:      "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-deco: "Playfair Display", Georgia, serif;

  /* metrics */
  --shell:     500px;
  --gap:       12px;
  --radius:    10px;
  --radius-lg: 16px;
  --topbar:    104px;
  --tabbar:    58px;

  --shadow:    0 2px 10px rgba(6, 5, 4, .12);
  --shadow-lg: 0 -8px 40px rgba(6, 5, 4, .2);
  --ease:      cubic-bezier(.22, .61, .36, 1);
}

/* ============================================================
   BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

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

button, input, textarea, select { font: inherit; color: inherit; }

button {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.ico {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  display: inline-block;
  vertical-align: -.28em;
}

.verified { color: var(--accent); width: 1.05em; height: 1.05em; }

/* ============================================================
   AVATARS
   ============================================================ */
.avatar {
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 50%;
  background: linear-gradient(140deg, #3f9ea2, #d1a35f);
  background-size: cover;
  background-position: center;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .02em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.avatar--xs { width: 26px; height: 26px; font-size: 11px; }
.avatar--sm { width: 34px; height: 34px; font-size: 13px; }
.avatar--xl { width: 84px; height: 84px; font-size: 26px; }

/* ============================================================
   APP SHELL
   ============================================================ */
.app {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  min-height: 100vh;
  background: var(--surface);
  padding-bottom: calc(var(--tabbar) + 52px + env(safe-area-inset-bottom));
}

/* ============================================================
   COVER
   ============================================================ */
.cover {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 26px calc(40px + env(safe-area-inset-bottom));
  text-align: center;
  color: #fff;
  background: radial-gradient(120% 80% at 50% 0%, #14686c 0%, #0c3b3e 55%, #06191a 100%);
  transition: opacity .6s var(--ease), visibility .6s;
}

.cover__wash {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 40% at 50% 16%, rgba(15, 124, 128, .45), transparent 70%),
    radial-gradient(50% 35% at 18% 92%, rgba(243, 62, 88, .22), transparent 70%);
  pointer-events: none;
}

.cover.is-open { opacity: 0; visibility: hidden; pointer-events: none; }

.cover__logo {
  position: relative;
  width: 40px;
  height: 40px;
  color: #fff;
  margin-bottom: 28px;
  opacity: .92;
}

.cover__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: rise .8s var(--ease) both;
}

.cover__kicker {
  font-size: 11px;
  letter-spacing: .34em;
  text-transform: uppercase;
  font-weight: 700;
  opacity: .72;
}

.cover__names {
  font-family: var(--font-deco);
  font-weight: 500;
  font-size: clamp(38px, 12vw, 56px);
  line-height: 1.06;
  margin: 12px 0 8px;
}

.cover__date {
  margin: 0;
  font-size: 13px;
  letter-spacing: .16em;
  text-transform: uppercase;
  opacity: .78;
}

.cover__guest {
  margin: 30px 0 16px;
  padding: 16px 26px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .18);
  backdrop-filter: blur(6px);
}

.cover__to { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; opacity: .7; }
.cover__name { margin: 6px 0 0; font-size: 19px; font-weight: 700; }

.cover__note {
  max-width: 30ch;
  margin: 0 0 26px;
  font-size: 13px;
  line-height: 1.65;
  opacity: .74;
}

.cover__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  box-shadow: 0 12px 30px rgba(15, 124, 128, .45);
  transition: transform .2s var(--ease);
}

.cover__btn:active { transform: scale(.96); }

@keyframes rise {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}

/* ============================================================
   TOP BAR
   ============================================================ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--bg);
  border-bottom: 1px solid var(--border-soft);
}

.topbar__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px 8px;
}

.topbar__brand {
  font-size: 23px;
  font-weight: 600;
  font-style: italic;
  letter-spacing: 0;
  color: var(--accent);
  font-family: var(--font-deco);
}

.topbar__tools { display: flex; gap: 8px; }

.topbar__icon {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--chip);
  color: var(--ink);
  display: grid;
  place-items: center;
  font-size: 17px;
  transition: background .18s;
}

.topbar__icon:active { background: var(--border); }

.topbar__badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--like);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: grid;
  place-items: center;
  border: 2px solid var(--bg);
}

.railtabs {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
}

.railtab {
  padding: 10px 0 8px;
  color: var(--gray-soft);
  font-size: 19px;
  border-bottom: 3px solid transparent;
  display: grid;
  place-items: center;
  transition: color .18s, border-color .18s;
}

.railtab.is-active { color: var(--accent); border-bottom-color: var(--accent); }

/* ============================================================
   STORIES
   ============================================================ */
.stories { background: var(--bg); padding: 12px 0; margin-bottom: 8px; }

.stories__track {
  display: flex;
  gap: 8px;
  padding: 0 12px;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
}

.stories__track::-webkit-scrollbar { display: none; }

.story {
  position: relative;
  flex: none;
  width: 104px;
  height: 172px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(160deg, #6fb8ba, #e6c48e);
  background-size: cover;
  background-position: center;
  scroll-snap-align: start;
  color: #fff;
  text-align: left;
  display: block;
}

.story::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 45%, rgba(0, 0, 0, .58));
}

.story__ring {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 3px solid var(--accent);
  background: #fff;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  display: grid;
  place-items: center;
  background-size: cover;
  background-position: center;
}

.story__name {
  position: absolute;
  z-index: 2;
  left: 10px;
  right: 10px;
  bottom: 10px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
}

.story__num {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-deco);
  font-size: 34px;
  opacity: .5;
}

.story--create { background: var(--bg); border: 1px solid var(--border-soft); color: var(--ink); }
.story--create::after { display: none; }

.story--create .story__plus {
  position: absolute;
  left: 50%;
  bottom: 40px;
  transform: translateX(-50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  border: 3px solid var(--bg);
}

.story--create .story__cap {
  position: absolute;
  inset: 0 0 62px;
  background: linear-gradient(160deg, #d6ebeb, #eef5f4);
}

.story--create .story__name { color: var(--ink); text-align: center; }

/* ============================================================
   COMPOSER
   ============================================================ */
.composer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--bg);
  margin-bottom: 8px;
}

.composer__box {
  flex: 1;
  text-align: left;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--gray);
  font-size: 14px;
}

.composer__ico { color: #45bd62; font-size: 20px; display: grid; place-items: center; }

/* ============================================================
   POSTS
   ============================================================ */
.post {
  background: var(--bg);
  margin-bottom: 8px;
  padding: 12px 0 0;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}

.post.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .post { opacity: 1; transform: none; transition: none; }
}

.post__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px 8px;
}

.post__meta { flex: 1; min-width: 0; }

.post__name {
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 700;
  font-size: 15px;
}

.post__sub {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--gray);
  font-size: 12.5px;
}

.post__sub .ico { width: 1em; height: 1em; }

.post__more {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--gray);
  display: grid;
  place-items: center;
  font-size: 17px;
}

.post__more:active { background: var(--hover); }

.post__text {
  margin: 0;
  padding: 0 14px 12px;
  font-size: 15px;
  line-height: 1.5;
  white-space: pre-line;
}

.post__tags { display: block; margin-top: 8px; color: var(--accent); font-weight: 500; }
.post__tags span { margin-right: 6px; }

/* ---- stats row ---- */
.post__stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  color: var(--gray);
  font-size: 13px;
}

.stats__left { display: flex; align-items: center; gap: 6px; min-width: 0; }

.stats__emojis { display: inline-flex; }

.stats__emoji {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--bg);
  box-shadow: 0 0 0 1px var(--border-soft) inset;
  display: grid;
  place-items: center;
  font-size: 11px;
  margin-left: -6px;
}

.stats__emoji:first-child { margin-left: 0; }

.stats__count { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stats__right { display: flex; gap: 10px; flex: none; }

/* ---- action row ---- */
.post__actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border-soft);
  margin: 0 14px;
  padding: 2px 0 6px;
}

.act {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 0;
  border-radius: var(--radius);
  color: var(--gray);
  font-size: 14px;
  font-weight: 600;
  transition: background .16s, color .16s;
  user-select: none;
}

.act:active { background: var(--hover); }
.act .ico { font-size: 17px; }

.act--like.is-on { color: var(--reaction, var(--accent)); }
.act--like .act__emoji { font-size: 17px; line-height: 1; }

/* ============================================================
   REACTION PICKER
   ============================================================ */
.picker {
  position: fixed;
  z-index: 70;
  transform: translate(-50%, -100%);
  animation: pop .18s var(--ease) both;
}

@keyframes pop {
  from { opacity: 0; transform: translate(-50%, -90%) scale(.85); }
  to   { opacity: 1; transform: translate(-50%, -100%) scale(1); }
}

.picker__row {
  display: flex;
  gap: 4px;
  padding: 6px 8px;
  border-radius: 999px;
  background: var(--bg);
  box-shadow: 0 6px 24px rgba(6, 5, 4, .22);
  border: 1px solid var(--border-soft);
}

.picker__btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 26px;
  line-height: 1;
  display: grid;
  place-items: center;
  transition: transform .16s var(--ease);
}

.picker__btn:active,
.picker__btn:hover { transform: translateY(-6px) scale(1.18); }

/* ============================================================
   LIFE EVENT CARD (couple)
   ============================================================ */
.lifeevent { border-block: 1px solid var(--border-soft); background: var(--surface); }

.lifeevent__banner {
  height: 120px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(90% 120% at 50% 0%, #cfe9e9, transparent 70%),
    linear-gradient(140deg, #e5f2f1, #f7f1e6);
}

.lifeevent__ring {
  font-size: 40px;
  filter: drop-shadow(0 6px 12px rgba(6, 5, 4, .18));
}

.lifeevent__body { padding: 14px; display: grid; gap: 12px; }

.couple {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius);
  background: var(--bg);
  border: 1px solid var(--border-soft);
}

.couple__info { min-width: 0; }
.couple__name { margin: 0; font-weight: 700; font-size: 15px; }

.couple__handle {
  display: inline-block;
  color: var(--accent);
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 600;
}

.couple__parents { margin: 4px 0 0; color: var(--gray); font-size: 12.5px; line-height: 1.5; }
.couple__parents strong { color: var(--ink); font-weight: 600; }

.couple__amp {
  margin: 0;
  text-align: center;
  font-family: var(--font-deco);
  font-size: 22px;
  color: var(--gray-soft);
}

/* ============================================================
   BACKGROUND POST (quote)
   ============================================================ */
.bgpost {
  min-height: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 34px 28px;
  text-align: center;
  color: #fff;
  background:
    radial-gradient(80% 60% at 50% 0%, rgba(255, 255, 255, .2), transparent 70%),
    linear-gradient(150deg, #0f7c80, #b07a36 55%, #d9a25b);
}

.bgpost__text {
  margin: 0;
  font-family: var(--font-deco);
  font-style: italic;
  font-size: clamp(17px, 4.6vw, 21px);
  line-height: 1.55;
}

.bgpost__cite {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  opacity: .82;
}

/* ============================================================
   CAROUSEL (story)
   ============================================================ */
.carousel { border-block: 1px solid var(--border-soft); background: var(--surface); }

.carousel__track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.carousel__track::-webkit-scrollbar { display: none; }

.carousel__slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  padding: 26px 22px 22px;
  min-height: 190px;
}

.carousel__year {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--accent-wash);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
}

.carousel__title {
  margin: 12px 0 6px;
  font-family: var(--font-deco);
  font-weight: 600;
  font-size: 21px;
}

.carousel__text { margin: 0; color: var(--gray); font-size: 14px; line-height: 1.6; }

.carousel__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px 14px;
}

.carousel__dots { display: flex; gap: 6px; }

.carousel__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--border);
  transition: width .24s var(--ease), background .24s;
}

.carousel__dot.is-active { width: 20px; border-radius: 999px; background: var(--accent); }
.carousel__counter { color: var(--gray); font-size: 12px; font-weight: 600; }

/* ============================================================
   EVENT CARD
   ============================================================ */
.eventcard { border-block: 1px solid var(--border-soft); background: var(--surface); }

.eventcard__hero {
  height: 128px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(140deg, #0f7c80, #c08a3e);
}

.eventcard__day { font-family: var(--font-deco); font-size: 52px; line-height: 1; }
.eventcard__mon { font-size: 12px; letter-spacing: .3em; text-transform: uppercase; opacity: .85; }

.eventcard__top { padding: 14px 16px 4px; }

.eventcard__when {
  margin: 0;
  color: var(--like);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.eventcard__title { margin: 4px 0 2px; font-size: 19px; font-weight: 700; }
.eventcard__place { margin: 0; color: var(--gray); font-size: 13.5px; }
.eventcard__going { margin: 8px 0 0; color: var(--gray); font-size: 12.5px; }

.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 14px 16px;
}

.cd {
  padding: 10px 4px;
  border-radius: var(--radius);
  background: var(--bg);
  border: 1px solid var(--border-soft);
  text-align: center;
}

.cd__num {
  display: block;
  font-family: var(--font-deco);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.1;
}

.cd__label {
  display: block;
  margin-top: 2px;
  color: var(--gray);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.eventcard__cta { display: flex; gap: 8px; padding: 0 16px 14px; }
.eventcard__cta .btn { flex: 1; }

.events { display: grid; gap: 10px; padding: 0 16px 16px; }

.event {
  padding: 14px;
  border-radius: var(--radius);
  background: var(--bg);
  border: 1px solid var(--border-soft);
}

.event__name { margin: 0 0 10px; font-size: 15px; font-weight: 700; }

.event__row {
  display: flex;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 13.5px;
  line-height: 1.45;
}

.event__row .ico { color: var(--accent); margin-top: 2px; }
.event__venue { font-weight: 600; }
.event__addr { color: var(--gray); font-size: 12.5px; }

.event__map {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--accent-wash);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

/* ============================================================
   ALBUM (gallery mosaic)
   ============================================================ */
.album {
  display: grid;
  gap: 2px;
  grid-template-columns: 1fr 1fr;
  background: var(--border-soft);
}

.album__cell {
  position: relative;
  aspect-ratio: 1 / 1;
  background: linear-gradient(150deg, #dcebea, #cfe2e1);
  background-size: cover;
  background-position: center;
  display: block;
  width: 100%;
}

/* The first photo spans the full width, the rest tile beneath it. */
.album__cell:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 10; }

.album__cell--empty::after {
  content: attr(data-index);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-deco);
  font-size: 30px;
  color: rgba(6, 5, 4, .26);
}

.album__cell--more::before {
  content: "+" attr(data-more);
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  background: rgba(6, 5, 4, .48);
  color: #fff;
  font-size: 26px;
  font-weight: 700;
}

/* ============================================================
   LINK CARD (gift)
   ============================================================ */
.linkcard {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 14px;
  border-block: 1px solid var(--border-soft);
  background: var(--surface);
}

.linkcard__ico {
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: var(--radius);
  background: var(--accent-wash);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 21px;
}

.linkcard__body { flex: 1; min-width: 0; display: grid; gap: 2px; }
.linkcard__body small { color: var(--gray); font-size: 10.5px; letter-spacing: .16em; }
.linkcard__body strong { font-size: 15px; }
.linkcard__body span { color: var(--gray); font-size: 12.5px; }
.linkcard__chev { color: var(--gray-soft); flex: none; }

/* ============================================================
   PALETTE
   ============================================================ */
.palette { padding: 0 14px 14px; }

.palette__label {
  margin: 0 0 10px;
  color: var(--gray);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .18em;
}

.palette__row { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; }
.palette__row::-webkit-scrollbar { display: none; }

.swatch { flex: none; width: 66px; text-align: center; }

.swatch__chip {
  height: 66px;
  border-radius: var(--radius);
  border: 1px solid rgba(6, 5, 4, .08);
  box-shadow: inset 0 -14px 22px rgba(0, 0, 0, .1);
}

.swatch__name { display: block; margin-top: 6px; font-size: 11px; color: var(--gray); }

/* ============================================================
   SIGN-OFF CARD
   ============================================================ */
.signcard {
  margin: 0 14px 14px;
  padding: 26px 20px;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, #ecf5f4, #f7f1e6);
  border: 1px solid var(--border-soft);
  text-align: center;
}

.signcard__ring { font-size: 30px; }
.sign__names { margin: 10px 0 2px; font-family: var(--font-deco); font-size: 27px; }
.sign__label { margin: 0; color: var(--gray); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; }
.sign__families { margin: 12px 0 0; color: var(--gray); font-size: 13px; line-height: 1.6; }
.sign__thanks { margin: 14px 0 0; font-family: var(--font-deco); font-size: 19px; }

/* ============================================================
   COMMENTS CTA
   ============================================================ */
.comments-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 14px;
  background: var(--bg);
  color: var(--gray);
  font-size: 13.5px;
}

.comments-cta__avatars { display: inline-flex; flex: none; }
.comments-cta__avatars .avatar { margin-left: -8px; border: 2px solid var(--bg); }
.comments-cta__avatars .avatar:first-child { margin-left: 0; }
.comments-cta__text { flex: 1; display: grid; gap: 2px; }
.comments-cta__text strong { color: var(--accent); font-size: 12.5px; }

.credit {
  margin: 0;
  padding: 18px 14px 8px;
  text-align: center;
  color: var(--gray-soft);
  font-size: 11.5px;
}

/* ============================================================
   MUSIC PILL
   ============================================================ */
.musicpill {
  position: fixed;
  z-index: 40;
  left: 50%;
  bottom: calc(var(--tabbar) + 12px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 9px;
  max-width: min(300px, calc(100vw - 28px));
  padding: 6px 14px 6px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .94);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.musicpill__disc {
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 13px;
}

.musicpill.is-playing .musicpill__disc { animation: spin 4s linear infinite; }

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

.musicpill__meta { display: grid; min-width: 0; text-align: left; }
.musicpill__title { font-size: 12px; font-weight: 700; }
.musicpill__artist { font-size: 10.5px; color: var(--gray); }

.musicpill__bars { display: flex; align-items: flex-end; gap: 2px; height: 14px; flex: none; }

.musicpill__bars i {
  width: 3px;
  height: 4px;
  border-radius: 2px;
  background: var(--border);
}

.musicpill.is-playing .musicpill__bars i {
  background: var(--accent);
  animation: eq .9s ease-in-out infinite;
}

.musicpill.is-playing .musicpill__bars i:nth-child(2) { animation-delay: .15s; }
.musicpill.is-playing .musicpill__bars i:nth-child(3) { animation-delay: .3s; }

@keyframes eq {
  0%, 100% { height: 4px; }
  50%      { height: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .musicpill.is-playing .musicpill__disc,
  .musicpill.is-playing .musicpill__bars i { animation: none; }
}

/* ============================================================
   TAB BAR
   ============================================================ */
.tabbar {
  position: fixed;
  z-index: 45;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--shell);
  height: calc(var(--tabbar) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  align-items: center;
  background: var(--bg);
  border-top: 1px solid var(--border-soft);
}

.tabbar__btn {
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--gray-soft);
  font-size: 21px;
  transition: color .18s;
}

.tabbar__btn.is-active { color: var(--accent); }

.tabbar__btn--fab .ico {
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 18px rgba(15, 124, 128, .4);
}

/* ============================================================
   SHEETS
   ============================================================ */
.sheet { position: fixed; inset: 0; z-index: 80; display: flex; align-items: flex-end; justify-content: center; }
.sheet__scrim { position: absolute; inset: 0; background: rgba(6, 5, 4, .48); animation: fade .25s ease both; }

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

.sheet__panel {
  position: relative;
  width: 100%;
  max-width: var(--shell);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  border-radius: 20px 20px 0 0;
  background: var(--bg);
  box-shadow: var(--shadow-lg);
  padding-bottom: env(safe-area-inset-bottom);
  animation: slideup .32s var(--ease) both;
}

.sheet__panel--tall { height: 88vh; }

@keyframes slideup { from { transform: translateY(100%); } to { transform: none; } }

.sheet__grab { padding: 10px 0 4px; display: grid; place-items: center; cursor: grab; }
.sheet__grab::before { content: ""; width: 40px; height: 4px; border-radius: 999px; background: var(--border); }

.sheet__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 16px 12px;
  border-bottom: 1px solid var(--border-soft);
}

.sheet__title { margin: 0; font-size: 17px; font-weight: 700; }
.sheet__count { color: var(--gray); font-weight: 500; }

.sheet__x {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--chip);
  color: var(--ink);
  display: grid;
  place-items: center;
  font-size: 15px;
}

.sheet__scroll { overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 16px; }
.sheet__intro { margin: 0 0 16px; color: var(--gray); font-size: 13.5px; line-height: 1.6; }

/* ---- profile ---- */
.profile { text-align: center; }

.profile__banner {
  height: 130px;
  margin: -16px -16px 0;
  background: linear-gradient(140deg, #0f7c80, #c08a3e);
  background-size: cover;
  background-position: center;
}

.profile__avatar { margin-top: -46px; border: 4px solid var(--bg); }
.profile__name { margin: 10px 0 2px; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 21px; }
.profile__intro { margin: 0 0 12px; color: var(--gray); font-size: 13.5px; }
.profile__bio p { margin: 0 0 4px; font-size: 14px; }

.profile__meta {
  list-style: none;
  margin: 16px 0 0;
  padding: 14px 0 0;
  border-top: 1px solid var(--border-soft);
  display: grid;
  gap: 10px;
  text-align: left;
}

.profile__meta li { display: flex; align-items: center; gap: 10px; color: var(--gray); font-size: 13.5px; }
.profile__meta .ico { color: var(--gray-soft); }
.profile__meta strong { color: var(--ink); }

/* ---- form ---- */
.compose { display: flex; gap: 10px; margin-bottom: 16px; }
.compose__body { flex: 1; min-width: 0; }

.field { display: block; position: relative; margin-bottom: 16px; }

.field__label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--gray);
  text-transform: uppercase;
}

.field__label em { font-style: normal; font-weight: 500; text-transform: none; letter-spacing: 0; }

.field__input {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 15px;
  outline: none;
  transition: border-color .18s, box-shadow .18s;
}

.field__input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-wash); background: var(--bg); }
.field__input.is-invalid { border-color: var(--like); box-shadow: 0 0 0 3px var(--like-wash); }
.field__input--area { resize: vertical; min-height: 96px; line-height: 1.5; }

.field__count { position: absolute; right: 10px; bottom: 8px; color: var(--gray-soft); font-size: 11px; }
.field__hint { margin: 8px 0 0; color: var(--gray); font-size: 12px; line-height: 1.5; }

.choices { border: 0; margin: 0 0 16px; padding: 0; display: grid; gap: 8px; }

.choice { position: relative; display: block; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }

.choice span {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 14.5px;
  font-weight: 600;
  transition: border-color .18s, background .18s, color .18s;
}

.choice span .ico { color: var(--gray-soft); }

.choice input:checked + span {
  border-color: var(--accent);
  background: var(--accent-wash);
  color: var(--accent);
}

.choice input:checked + span .ico { color: var(--accent); }

.stepper {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.stepper__btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--bg);
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
  display: grid;
  place-items: center;
}

.stepper__value {
  width: 48px;
  border: 0;
  background: none;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  -moz-appearance: textfield;
}

.stepper__value::-webkit-outer-spin-button,
.stepper__value::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* ---- buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: var(--radius);
  font-size: 14.5px;
  font-weight: 700;
  transition: filter .18s, background .18s;
}

.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:active { filter: brightness(.92); }
.btn--soft { background: var(--chip); color: var(--ink); }
.btn--ghost { background: var(--surface); color: var(--gray); border: 1px solid var(--border); }
.btn--block { width: 100%; padding: 13px; }

/* ---- success ---- */
.success { text-align: center; padding: 26px 10px 10px; }

.success__mark {
  width: 60px;
  height: 60px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--accent-wash);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 26px;
}

.success__title { margin: 0 0 8px; font-size: 19px; }
.success__text { margin: 0 0 20px; color: var(--gray); font-size: 14px; line-height: 1.6; }

/* ---- banks ---- */
.banks { display: grid; gap: 10px; }

.bank {
  position: relative;
  display: grid;
  gap: 2px;
  width: 100%;
  text-align: left;
  padding: 14px 46px 14px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: border-color .18s, background .18s;
}

.bank.is-copied { border-color: var(--accent); background: var(--accent-wash); }
.bank__name { font-size: 11px; font-weight: 700; letter-spacing: .16em; color: var(--gray); text-transform: uppercase; }
.bank__number { font-size: 19px; font-weight: 700; letter-spacing: .04em; }
.bank__holder { font-size: 12.5px; color: var(--gray); }
.bank__copy { position: absolute; top: 50%; right: 14px; transform: translateY(-50%); color: var(--accent); }

.ship {
  margin-top: 16px;
  padding: 14px;
  border-radius: var(--radius);
  border: 1px dashed var(--border);
  background: var(--surface);
}

.ship__label { margin: 0 0 6px; font-size: 11px; font-weight: 700; letter-spacing: .16em; color: var(--gray); text-transform: uppercase; }
.ship__name { margin: 0 0 4px; font-weight: 700; }
.ship__addr { margin: 0; color: var(--gray); font-size: 13px; line-height: 1.6; }

/* ---- wishes ---- */
.wishes { list-style: none; margin: 0; padding: 12px 16px; flex: 1; overflow-y: auto; display: grid; gap: 12px; align-content: start; }

.wish { display: flex; gap: 10px; }
.wish__body { flex: 1; min-width: 0; }

.wish__bubble {
  padding: 9px 13px;
  border-radius: 16px;
  background: var(--surface);
}

.wish__top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.wish__name { font-weight: 700; font-size: 13.5px; }

.wish__badge {
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  background: var(--chip);
  color: var(--gray);
}

.wish__badge--hadir { background: rgba(69, 189, 98, .16); color: #2e8c46; }
.wish__badge--ragu  { background: rgba(247, 177, 37, .18); color: #9a6c05; }
.wish__badge--tidak { background: var(--like-wash); color: var(--like); }

.wish__msg { margin: 3px 0 0; font-size: 14px; line-height: 1.5; word-break: break-word; }

.wish__foot { display: flex; gap: 14px; padding: 4px 13px 0; color: var(--gray); font-size: 11.5px; font-weight: 600; }

.wishes__empty { color: var(--gray); font-size: 13.5px; text-align: center; padding: 40px 20px; }

.wishbar {
  display: flex;
  gap: 8px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--border-soft);
  background: var(--bg);
}

.wishbar__name, .wishbar__msg {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 14px;
  outline: none;
  min-width: 0;
}

.wishbar__name { flex: 0 0 104px; }
.wishbar__msg { flex: 1; }
.wishbar__name:focus, .wishbar__msg:focus { border-color: var(--accent); }
.wishbar__name.is-invalid, .wishbar__msg.is-invalid { border-color: var(--like); }

.wishbar__send {
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 17px;
}

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(6, 5, 4, .95);
  animation: fade .25s ease both;
}

.lightbox__stage {
  width: min(94vw, 560px);
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  background: linear-gradient(150deg, #2a3a3a, #1a2626);
  background-size: cover;
  background-position: center;
  display: grid;
  place-items: center;
  font-family: var(--font-deco);
  font-size: 56px;
  color: rgba(255, 255, 255, .28);
}

.lightbox__x {
  position: absolute;
  top: calc(14px + env(safe-area-inset-top));
  right: 14px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 17px;
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 17px;
}

.lightbox__nav--prev { left: 10px; }
.lightbox__nav--next { right: 10px; }

.lightbox__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(24px + env(safe-area-inset-bottom));
  margin: 0;
  text-align: center;
  color: rgba(255, 255, 255, .8);
  font-size: 13px;
}

/* ============================================================
   TOAST
   ============================================================ */
.toast {
  position: fixed;
  z-index: 95;
  left: 50%;
  bottom: calc(var(--tabbar) + 64px + env(safe-area-inset-bottom));
  transform: translate(-50%, 14px);
  max-width: calc(100vw - 40px);
  padding: 11px 20px;
  border-radius: 999px;
  background: rgba(6, 5, 4, .9);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s, transform .25s var(--ease);
}

.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ============================================================
   DESKTOP
   ============================================================ */
@media (min-width: 620px) {
  .app { box-shadow: 0 0 0 1px var(--border-soft); }
  .post { border-radius: var(--radius-lg); overflow: hidden; }
  .stories, .composer { border-radius: var(--radius-lg); }
}
