/* ==========================================================
   WISHBOARD — Design tokens (pastel, teal accent)
   ========================================================== */

:root {
  --cream:        #FBFAF6;
  --paper:         #FFFFFF;
  --blush:         #CDEFEA;
  --blush-deep:    #A9E2DA;
  --sky:           #DCEBFF;
  --sky-deep:      #C3DEFF;
  --butter:        #FFF0C2;
  --butter-deep:   #FFE7A0;
  --mint:          #D9F2E3;
  --mint-deep:     #BFEBD1;
  --lilac:         #EAE0FF;
  --lilac-deep:    #D9C9FF;

  --ink:           #37423F;
  --ink-soft:      #62706C;
  --ink-faint:     #9AA6A2;

  --coral:         #1FA79E;
  --coral-dark:    #0E7C74;

  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 10px;

  --shadow-card: 0 10px 24px -14px rgba(20, 60, 55, 0.22), 0 2px 6px rgba(20, 60, 55, 0.07);
  --shadow-soft: 0 6px 16px -10px rgba(20, 60, 55, 0.16);

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Quicksand', system-ui, sans-serif;
  --font-logo: 'Fredoka', 'Quicksand', system-ui, sans-serif;
}

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

body {
  background: var(--cream);
  background-image:
    radial-gradient(circle at 10% 8%, rgba(31, 167, 158, 0.16), transparent 40%),
    radial-gradient(circle at 90% 15%, rgba(220, 235, 255, 0.45), transparent 42%),
    radial-gradient(circle at 50% 95%, rgba(217, 242, 227, 0.4), transparent 45%);
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  min-height: 100vh;
}

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; color: var(--ink); margin: 0 0 .4em; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
button, input, textarea, select { font-family: var(--font-body); font-size: 1rem; }

/* -------------------- Header -------------------- */
.site-header { padding: 22px 0; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.logo__mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 54px; height: 54px; border-radius: 50%; background: var(--blush);
  font-size: 1.5rem; transform: rotate(-8deg); overflow: hidden;
  box-shadow: 0 4px 10px -4px rgba(20, 60, 55, 0.35);
  transition: transform .25s cubic-bezier(.34,1.56,.64,1);
}
.logo:hover .logo__mark { transform: rotate(8deg) scale(1.08); }
.logo__text {
  font-family: var(--font-logo);
  font-weight: 700;
  font-size: 1.9rem;
  letter-spacing: -0.01em;
  background: linear-gradient(135deg, var(--coral-dark), var(--coral));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--coral-dark);
}
.logo-icon { width: 32px; height: 32px; object-fit: contain; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a { font-weight: 600; color: var(--ink-soft); padding: 8px 14px; border-radius: 999px; transition: background .2s ease, color .2s ease; }
.site-nav a:hover { background: var(--paper); color: var(--ink); }

/* -------------------- Buttons -------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 30px; border-radius: 999px; border: none;
  font-family: var(--font-body); font-weight: 700; font-size: 1rem;
  cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
  text-align: center;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary { background: linear-gradient(135deg, var(--coral), var(--coral-dark)); color: #fff; box-shadow: var(--shadow-soft); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-card); }
.btn-secondary { background: var(--paper); color: var(--ink); border: 2px solid var(--blush-deep); }
.btn-secondary:hover { background: var(--blush); }
.btn-ghost { background: transparent; color: var(--ink-soft); border: 2px dashed var(--ink-faint); }
.btn-ghost:hover { border-color: var(--ink-soft); color: var(--ink); }
.btn-danger { background: #FBECEC; color: #B14545; border: 2px solid #F3D5D5; }
.btn-danger:hover { background: #F6D9D9; }
.btn-block { width: 100%; }
.btn-sm { padding: 10px 18px; font-size: .9rem; }

/* -------------------- Hero -------------------- */
.hero { padding: 64px 0 44px; text-align: center; }
.hero__eyebrow {
  display: inline-block; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  font-size: .74rem; color: var(--coral-dark); background: var(--blush);
  padding: 6px 16px; border-radius: 999px; margin-bottom: 18px;
}
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.1; max-width: 780px; margin-left: auto; margin-right: auto; }
.hero h1 em { font-style: italic; color: var(--coral-dark); }
.hero p.lead { max-width: 560px; margin: 0 auto 30px; color: var(--ink-soft); font-size: 1.08rem; }
.hero__cta { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

/* -------------------- Sample guest box -------------------- */
.sample-section { padding: 10px 0 40px; }
.sample-section__label { text-align: center; color: var(--ink-faint); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: .74rem; margin-bottom: 18px; }
.guest-box {
  max-width: 480px; margin: 0 auto; background: var(--paper); border-radius: var(--radius-lg);
  padding: 30px 32px; box-shadow: var(--shadow-card); position: relative; transform: rotate(-1.2deg);
}
.guest-box::before {
  content: ""; position: absolute; top: -14px; left: 50%; transform: translateX(-50%) rotate(-3deg);
  width: 74px; height: 26px; background: var(--butter); opacity: .85; border-radius: 3px;
}
.guest-box__quote { font-family: var(--font-display); font-style: italic; font-size: 1.2rem; color: var(--ink); }
.guest-box__from { color: var(--ink-soft); font-weight: 600; font-size: .92rem; }

/* -------------------- Masonry wish grid -------------------- */
.section-title { text-align: center; margin: 46px 0 26px; }
.section-title h2 { margin-bottom: 6px; }
.section-title p { color: var(--ink-soft); margin: 0; }

.masonry { column-count: 1; column-gap: 22px; padding-bottom: 50px; }
@media (min-width: 640px)  { .masonry { column-count: 2; } }
@media (min-width: 980px)  { .masonry { column-count: 3; } }
@media (min-width: 1280px) { .masonry { column-count: 4; } }

.note-card {
  break-inside: avoid; margin: 0 0 22px; background: var(--paper); border-radius: var(--radius-md);
  padding: 22px 22px 18px; box-shadow: var(--shadow-card); position: relative;
}
.note-card:nth-child(6n+1) { transform: rotate(-1.4deg); background: var(--blush); }
.note-card:nth-child(6n+2) { transform: rotate(1.1deg); background: var(--sky); }
.note-card:nth-child(6n+3) { transform: rotate(-0.8deg); background: var(--butter); }
.note-card:nth-child(6n+4) { transform: rotate(1.6deg); background: var(--mint); }
.note-card:nth-child(6n+5) { transform: rotate(-1.1deg); background: var(--lilac); }
.note-card:nth-child(6n+6) { transform: rotate(0.9deg); background: var(--paper); }

.note-card__tape { position: absolute; top: -10px; left: 26px; width: 54px; height: 20px; background: rgba(255,255,255,.75); border: 1px solid rgba(74,68,88,.06); transform: rotate(-4deg); border-radius: 2px; }
.note-card__photo { width: 100%; border-radius: var(--radius-sm); margin-bottom: 12px; display: block; object-fit: cover; max-height: 260px; cursor: default; }
.note-card__type { display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-soft); margin-bottom: 8px; }
.type-icon { width: 16px; height: 16px; vertical-align: -3px; object-fit: contain; display: inline-block; }
.note-card__message { font-family: var(--font-display); font-size: 1.05rem; color: var(--ink); margin-bottom: 10px; }
.note-card__from { font-weight: 700; font-size: .88rem; color: var(--ink-soft); }
.note-card__from::before { content: "- "; }

/* Tombol download 1 ucapan doang (khusus dipake di memory.php) --
   kecil & samar defaultnya, baru jelas pas kartunya di-hover, biar
   gak ganggu keindahan kartu tapi tetep gampang ditemuin. */
.note-card__download {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  color: var(--ink-soft);
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity .2s ease, transform .2s ease, background .2s ease, color .2s ease;
}
.note-card:hover .note-card__download,
.note-card__download:focus-visible {
  opacity: 1;
  transform: translateY(0);
}
.note-card__download:hover {
  background: var(--coral);
  color: #fff;
}
@media (hover: none) {
  /* Di HP gak ada hover, jadi tombolnya tetep keliatan (samar) dari awal */
  .note-card__download { opacity: .65; transform: translateY(0); }
}

/* -------------------- Forms / create board flow -------------------- */
.form-page { padding: 50px 0 70px; }
.form-card { max-width: 560px; margin: 0 auto; background: var(--paper); border-radius: var(--radius-lg); padding: 38px 36px; box-shadow: var(--shadow-card); }
.form-steps { display: flex; justify-content: center; gap: 10px; margin-bottom: 26px; }
.form-steps span { width: 34px; height: 6px; border-radius: 999px; background: var(--blush-deep); }
.form-steps span.active { background: var(--coral-dark); }

.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 700; font-size: .88rem; margin-bottom: 7px; color: var(--ink); }
.field .hint { display: block; font-weight: 500; color: var(--ink-faint); font-size: .8rem; margin-top: 5px; }
.field input[type="text"], .field input[type="password"], .field input[type="email"], .field textarea, .field select {
  width: 100%; padding: 13px 15px; border-radius: var(--radius-sm); border: 2px solid #EFE6DC;
  background: #fff; color: var(--ink); outline: none; transition: border-color .18s ease;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--coral); }
.field textarea { resize: vertical; min-height: 100px; }

.type-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 22px; }
.type-option { cursor: pointer; border: 2px solid #EFE6DC; border-radius: var(--radius-sm); padding: 16px 12px; text-align: center; background: #fff; transition: border-color .18s ease, background .18s ease; }
.type-option input { display: none; }
.type-option .emoji { font-size: 1.5rem; display: block; margin-bottom: 6px; }
.type-option .emoji .type-icon { width: 32px; height: 32px; vertical-align: 0; }
.type-option span.label { font-weight: 700; font-size: .86rem; }
.type-option:has(input:checked) { border-color: var(--coral); background: var(--blush); }

.notice { background: var(--sky); border-radius: var(--radius-sm); padding: 14px 16px; font-size: .88rem; color: var(--ink); margin-bottom: 22px; }
.notice strong { color: var(--coral-dark); }

.error-box { background: #FFE3E3; border: 1px solid #FFB4B4; color: #A3403F; padding: 12px 16px; border-radius: var(--radius-sm); font-size: .88rem; margin-bottom: 18px; }

/* -------------------- Multi-photo preview (create-board.php) -------------------- */
.photo-multi-preview { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.photo-multi-preview__item { position: relative; width: 72px; height: 72px; border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow-soft); }
.photo-multi-preview__item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-multi-preview__remove {
  position: absolute; top: 2px; right: 2px; width: 20px; height: 20px; border-radius: 50%;
  border: none; background: rgba(0, 0, 0, 0.55); color: #fff; font-size: 14px; line-height: 1;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.photo-multi-preview__remove:hover { background: rgba(0, 0, 0, 0.75); }

/* -------------------- Dashboard photo management -------------------- */
.dashboard-photo-grid { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.dashboard-photo-grid__item { position: relative; width: 80px; height: 80px; border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow-soft); }
.dashboard-photo-grid__item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dashboard-photo-grid__remove {
  position: absolute; top: 2px; right: 2px; width: 22px; height: 22px; border-radius: 50%;
  border: none; background: rgba(177, 69, 69, 0.85); color: #fff; font-size: 15px; line-height: 1; cursor: pointer;
}
.dashboard-photo-grid__remove:hover { background: rgba(177, 69, 69, 1); }

/* -------------------- Polaroid gallery (memory.php) -------------------- */
.polaroid-gallery { display: flex; flex-wrap: wrap; justify-content: center; gap: 28px 20px; padding: 6px 24px 54px; }
.polaroid {
  background: #fff; padding: 14px 14px 34px; border-radius: 4px;
  box-shadow: var(--shadow-card);
  transform: rotate(var(--polaroid-rotate, 0deg)) scale(var(--polaroid-scale, 1)) translateY(var(--polaroid-offset-y, 0px));
  transition: transform .25s ease;
  width: 170px;
}
.polaroid:hover { transform: rotate(0deg) scale(1.06) translateY(0); z-index: 5; }
.polaroid img { width: 100%; height: 170px; object-fit: cover; display: block; border-radius: 2px; }

@media (max-width: 640px) {
  .polaroid { width: 130px; padding: 10px 10px 26px; }
  .polaroid img { height: 130px; }
}

/* -------------------- Memory page (kado digital) -------------------- */
.memory-hero { text-align: center; padding: 70px 0 30px; position: relative; z-index: 2; }
.memory-hero__badge {
  width: 84px; height: 84px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blush), var(--butter));
  display: flex; align-items: center; justify-content: center;
  font-size: 2.4rem; margin: 0 auto 18px; box-shadow: var(--shadow-card);
}
.memory-hero__badge .type-icon { width: 42px; height: 42px; vertical-align: 0; }
.memory-hero__eyebrow { text-transform: uppercase; letter-spacing: .08em; font-weight: 700; font-size: .76rem; color: var(--coral-dark); margin-bottom: 12px; }
.memory-hero h1 { font-size: clamp(2.4rem, 6vw, 3.6rem); margin-bottom: 10px; }
.memory-hero h1 em { font-style: italic; color: var(--coral-dark); }
.memory-hero__meta { color: var(--ink-soft); margin-bottom: 6px; }
.memory-hero__stats { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.memory-hero__stat {
  display: inline-block; background: var(--mint); color: var(--coral-dark);
  font-weight: 700; padding: 7px 18px; border-radius: 999px; font-size: .86rem;
}
/* Kartu "Simpan & Bagikan Momen Ini" -- gabungan tombol Slideshow,
   Download Instagram, dan Simpan PDF, ditaro sejajar sama QR & Share
   di bagian bawah halaman (bukan lagi di hero). */
.memory-actions-card {
  max-width: 460px;
  margin: 40px auto 0;
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  text-align: center;
  box-shadow: var(--shadow-soft);
}
.memory-actions-card__buttons {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.memory-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid #EFE6DC;
  background: transparent;
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .8rem;
  cursor: pointer;
  transition: border-color .18s ease, color .18s ease, background .18s ease;
}
.memory-action-btn:hover {
  border-color: var(--coral);
  color: var(--coral-dark);
  background: var(--blush);
}

/* Dekorasi mengambang -- cuma dirender kalo tipe board-nya gak sensitif
   (liat memory_decor_emojis() di functions.php). Posisinya absolute di
   dalem area hero doang, BUKAN fixed full-viewport, biar aman di HP. */
.memory-decor {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
}
.memory-decor__item {
  position: absolute;
  font-size: 1.8rem;
  opacity: .55;
  animation: memoryDecorFloat 7s ease-in-out infinite;
}
.memory-decor__item--1 { top: 8%;  left: 8%;  animation-delay: 0s; }
.memory-decor__item--2 { top: 18%; left: 85%; animation-delay: 1.2s; font-size: 1.4rem; }
.memory-decor__item--3 { top: 55%; left: 5%;  animation-delay: 2.4s; font-size: 1.5rem; }
.memory-decor__item--4 { top: 65%; left: 90%; animation-delay: .6s; }
@keyframes memoryDecorFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-18px) rotate(8deg); }
}
@media (max-width: 640px) {
  .memory-decor__item { font-size: 1.3rem; }
}

/* Animasi masuk yang lembut pas kartu/foto keliatan discroll */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Kartu QR code */
.memory-qr-card {
  max-width: 260px;
  margin: 30px auto 10px;
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: 22px;
  text-align: center;
  box-shadow: var(--shadow-soft);
}
.memory-qr-card__code { display: flex; justify-content: center; margin-bottom: 12px; }
.memory-qr-card__code img { border-radius: 8px; }
.memory-qr-card__caption { color: var(--ink-soft); font-size: .84rem; margin: 0; }

/* Kartu share sosial media di halaman Memory */
.memory-share-card {
  max-width: 420px;
  margin: 20px auto 10px;
  text-align: center;
  padding-bottom: 50px;
}
.memory-share-card__label {
  font-weight: 700;
  color: var(--ink-soft);
  font-size: .86rem;
  margin-bottom: 14px;
}
.memory-share-card__buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.memory-share-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink-soft);
  border: none;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}
.memory-share-icon:hover { transform: translateY(-2px); box-shadow: var(--shadow-card); }
.memory-share-icon--whatsapp:hover { background: #25D366; color: #fff; }
.memory-share-icon--facebook:hover { background: #1877F2; color: #fff; }
.memory-share-icon--x:hover { background: #000; color: #fff; }
.memory-share-icon--copy:hover { background: var(--coral); color: #fff; }
.memory-share-icon--copied { background: #25D366 !important; color: #fff !important; }

/* Lightbox foto khusus memory.php (mobile-safe: body di-lock pas kebuka) */
.memory-lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  height: 100dvh;
  background: rgba(20, 18, 22, 0.9);
  z-index: 999;
  align-items: center;
  justify-content: center;
  padding: 24px;
  touch-action: none;
}
.memory-lightbox-overlay.active { display: flex; }
.memory-lightbox-overlay img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  cursor: default;
}
.memory-lightbox-close {
  position: absolute;
  top: 16px; right: 18px;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  transition: background .18s ease;
}
.memory-lightbox-close:hover { background: rgba(255, 255, 255, 0.3); }
.memory-lightbox-trigger { cursor: zoom-in; }

/* ============================================================
   GAYA HALAMAN MEMORY -- 4 tema alternatif, dipilih per board.
   Strategi: nimpa custom property (--coral, --cream, --font-display,
   dst) yang UDAH dipake di komponen-komponen di atas, jadi banyak
   elemen (tombol, kartu, teks) otomatis ikut ganti warna/font tanpa
   perlu nulis ulang tiap selector. Sisanya baru override manual buat
   flourish spesifik tiap tema (bentuk kartu, dekorasi, dst).
   ============================================================ */

/* -------------------- Tema: Modern (default, dikasih tekstur halus) -------------------- */
body.memory-style-modern {
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='70' height='70'%3E%3Cg fill='%231FA79E' opacity='0.07'%3E%3Ccircle cx='12' cy='12' r='1.6'/%3E%3Cpath d='M45 40h6v2h-6v6h-2v-6h-6v-2h6v-6h2z'/%3E%3Ccircle cx='55' cy='10' r='1.2'/%3E%3C/g%3E%3C/svg%3E"),
    radial-gradient(circle at 10% 8%, rgba(31, 167, 158, 0.16), transparent 40%),
    radial-gradient(circle at 90% 15%, rgba(220, 235, 255, 0.45), transparent 42%),
    radial-gradient(circle at 50% 95%, rgba(217, 242, 227, 0.4), transparent 45%);
  background-size: 70px 70px, auto, auto, auto;
  background-repeat: repeat, no-repeat, no-repeat, no-repeat;
  background-attachment: fixed, fixed, fixed, fixed;
}

/* -------------------- Tema: Scrapbook -------------------- */
body.memory-style-scrapbook {
  --font-display: 'Caveat', cursive;
  /* Nimpa palet warna kartu jadi cuma nuansa KERTAS doang (krem,
     kraft, ivory, manila) -- sengaja gak warna-warni, biar kesannya
     beneran sobekan kertas macem-macem, bukan kertas origami. */
  --blush: #F2ECDD;
  --blush-deep: #E4D6BC;
  --sky: #EAE0C8;
  --sky-deep: #DACBA4;
  --butter: #F7F1E4;
  --butter-deep: #E9DCBE;
  --mint: #E4D8BC;
  --mint-deep: #D2C09A;
  --lilac: #EFE7D3;
  --lilac-deep: #DECEA8;
  --paper: #FBF8F0;
  background-color: #E8DCC4;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cg fill='none' stroke='%235a4a2e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' opacity='0.16'%3E%3Cpath d='M20 28l3 9h9l-7 6 3 9-8-6-8 6 3-9-7-6h9z' fill='%235a4a2e' stroke='none'/%3E%3Cpath d='M100 20c0-5 5-8 9-4 4-4 9-1 9 4 0 7-9 13-9 13s-9-6-9-13z'/%3E%3Cpath d='M40 100q6-9 12 0t12 0'/%3E%3Cpath d='M120 110l5 5m-5 0l5-5' stroke-width='2.5'/%3E%3Ccircle cx='70' cy='135' r='2.2' fill='%235a4a2e' stroke='none'/%3E%3C/g%3E%3C/svg%3E"),
    repeating-linear-gradient(0deg, rgba(120, 100, 60, 0.035) 0px, transparent 2px, transparent 5px),
    radial-gradient(circle at 15% 10%, rgba(255, 255, 255, 0.35), transparent 45%);
  background-size: 160px 160px, auto, auto;
  background-repeat: repeat, repeat, no-repeat;
  background-attachment: fixed, scroll, scroll;
}
body.memory-style-scrapbook .memory-hero h1 { font-size: clamp(3.2rem, 8vw, 5.2rem); }
body.memory-style-scrapbook .memory-hero__eyebrow { color: #8A6B3D; }
body.memory-style-scrapbook .memory-hero__badge {
  background: #fff;
  border: 4px solid #fff;
  box-shadow: 0 10px 20px rgba(60, 40, 10, 0.25);
  transform: rotate(-6deg);
}
body.memory-style-scrapbook .note-card,
body.memory-style-scrapbook .polaroid {
  position: relative;
  box-shadow: 0 10px 20px -6px rgba(60, 40, 10, 0.3);
}
body.memory-style-scrapbook .note-card::before,
body.memory-style-scrapbook .note-card::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 11px;
  background-color: #E8DCC4;
  background-image:
    linear-gradient(135deg, #E8DCC4 25%, transparent 25%),
    linear-gradient(225deg, #E8DCC4 25%, transparent 25%);
  background-size: 14px 18px;
  background-repeat: repeat-x;
}
body.memory-style-scrapbook .note-card::before { top: -1px; background-position: 0 0; }
body.memory-style-scrapbook .note-card::after { bottom: -1px; transform: rotate(180deg); }
body.memory-style-scrapbook .note-card__tape {
  width: 76px; height: 28px;
  background: rgba(255, 241, 181, 0.9);
  border: 1px solid rgba(120, 100, 40, 0.15);
  transform: rotate(-7deg);
  left: 50%; margin-left: -38px;
}
/* Washi tape gantian warna & sudut miring tiap kartu, biar berasa
   ditempel manual satu-satu, gak seragam kayak dicetak mesin. */
body.memory-style-scrapbook .note-card:nth-child(6n+1) .note-card__tape { background: rgba(232, 196, 104, 0.88); transform: rotate(-7deg); }
body.memory-style-scrapbook .note-card:nth-child(6n+2) .note-card__tape { background: rgba(217, 169, 160, 0.88); transform: rotate(5deg); }
body.memory-style-scrapbook .note-card:nth-child(6n+3) .note-card__tape { background: rgba(168, 185, 154, 0.88); transform: rotate(-4deg); }
body.memory-style-scrapbook .note-card:nth-child(6n+4) .note-card__tape { background: rgba(184, 168, 196, 0.88); transform: rotate(6deg); }
body.memory-style-scrapbook .note-card:nth-child(6n+5) .note-card__tape { background: rgba(159, 184, 200, 0.88); transform: rotate(-6deg); }
body.memory-style-scrapbook .note-card:nth-child(6n+6) .note-card__tape { background: rgba(232, 196, 104, 0.88); transform: rotate(4deg); }
body.memory-style-scrapbook .note-card__message { font-size: 1.3rem; line-height: 1.35; }
body.memory-style-scrapbook .polaroid { padding: 14px 14px 40px; }
body.memory-style-scrapbook .memory-qr-card,
body.memory-style-scrapbook .memory-actions-card,
body.memory-style-scrapbook .memory-share-icon,
body.memory-style-scrapbook .form-card,
body.memory-style-scrapbook .board-item { box-shadow: 0 10px 20px -6px rgba(60, 40, 10, 0.25); }

/* Ukuran & sudut sobekan dibikin acak per kartu (rotasi lebih
   ekstrem + skala beda-beda + padding beda), biar kesannya beneran
   sobekan kertas macem-macem ukuran yang ditumpuk asal, bukan kartu
   seragam yang dicetak rapi. */
body.memory-style-scrapbook .note-card:nth-child(7n+1) { transform: rotate(-5deg) scale(1.04); padding: 26px 24px 20px; }
body.memory-style-scrapbook .note-card:nth-child(7n+2) { transform: rotate(4deg) scale(0.93); padding: 16px 16px 14px; }
body.memory-style-scrapbook .note-card:nth-child(7n+3) { transform: rotate(-2deg) scale(1.08); padding: 28px 26px 22px; }
body.memory-style-scrapbook .note-card:nth-child(7n+4) { transform: rotate(6deg) scale(0.96); padding: 18px 18px 16px; }
body.memory-style-scrapbook .note-card:nth-child(7n+5) { transform: rotate(-7deg) scale(1.0); padding: 22px 22px 18px; }
body.memory-style-scrapbook .note-card:nth-child(7n+6) { transform: rotate(3deg) scale(0.9); padding: 15px 15px 13px; }
body.memory-style-scrapbook .note-card:nth-child(7n+7) { transform: rotate(-3deg) scale(1.05); padding: 24px 22px 20px; }
body.memory-style-scrapbook .polaroid:nth-child(5n+1) { transform: rotate(-8deg) scale(1.05); }
body.memory-style-scrapbook .polaroid:nth-child(5n+2) { transform: rotate(6deg) scale(0.92); }
body.memory-style-scrapbook .polaroid:nth-child(5n+3) { transform: rotate(-3deg) scale(1.1); }
body.memory-style-scrapbook .polaroid:nth-child(5n+4) { transform: rotate(7deg) scale(0.95); }
body.memory-style-scrapbook .polaroid:nth-child(5n+5) { transform: rotate(-5deg) scale(1.0); }
body.memory-style-scrapbook .polaroid:hover,
body.memory-style-scrapbook .note-card:hover { transform: rotate(0deg) scale(1.02); z-index: 5; }

/* -------------------- Tema: Editorial Minimalis -------------------- */
body.memory-style-editorial {
  background-color: #FAFAF8;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='70'%3E%3Ctext x='0' y='45' font-family='Georgia, serif' font-size='13' letter-spacing='4' fill='%23000000' fill-opacity='0.03'%3EMEMORIES%3C/text%3E%3C/svg%3E");
  background-size: 260px 70px;
  background-repeat: repeat;
  background-attachment: fixed;
}
body.memory-style-editorial .memory-hero { padding: 90px 0 44px; }
body.memory-style-editorial .memory-hero__badge { display: none; }
body.memory-style-editorial .memory-hero__eyebrow { letter-spacing: .22em; }
body.memory-style-editorial .memory-hero h1 { font-weight: 400; letter-spacing: -0.01em; }
body.memory-style-editorial .memory-hero h1 em { font-style: normal; font-weight: 600; }
body.memory-style-editorial .memory-hero__stats { margin-top: 20px; }
body.memory-style-editorial .memory-hero__stat { background: transparent; border: 1px solid #DEDAD0; color: var(--ink-soft); }
body.memory-style-editorial .masonry { column-count: 1 !important; max-width: 680px; margin: 0 auto; }
body.memory-style-editorial .note-card {
  background: transparent !important;
  transform: none !important;
  box-shadow: none;
  border-bottom: 1px solid #E5E0D8;
  border-radius: 0;
  padding: 30px 4px;
  margin-bottom: 0;
}
/* Kartu yang punya foto dibikin 2 kolom ala koran: foto kotak kecil
   di kiri, nama+pesan ucapan sejajar di kanan (bukan foto di atas). */
body.memory-style-editorial .note-card--has-photo {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 18px;
  align-items: start;
}
body.memory-style-editorial .note-card__tape { display: none; }
body.memory-style-editorial .note-card__message { font-size: 1.22rem; }
body.memory-style-editorial .note-card--has-photo .note-card__message,
body.memory-style-editorial .note-card--has-photo .note-card__from,
body.memory-style-editorial .note-card--has-photo .wish-like-btn {
  grid-column: 2;
}
body.memory-style-editorial .note-card--has-photo .note-card__photo {
  grid-column: 1;
  grid-row: 1 / span 2;
}
body.memory-style-editorial .note-card__photo {
  width: 108px;
  height: 108px;
  object-fit: cover;
  display: block;
  margin: 0 0 16px;
  border: 1.5px solid #2a2a2a;
  padding: 0;
  background: transparent;
  border-radius: 0;
  filter: grayscale(85%) contrast(1.08);
}
body.memory-style-editorial .polaroid-gallery { flex-direction: row; justify-content: center; flex-wrap: wrap; gap: 14px; }
body.memory-style-editorial .polaroid {
  transform: none !important;
  box-shadow: none;
  border-radius: 0;
  width: 108px;
  max-width: 108px;
  padding: 0;
  margin: 0;
}
body.memory-style-editorial .polaroid img {
  width: 108px;
  height: 108px;
  object-fit: cover;
  border: 1.5px solid #2a2a2a;
  padding: 0;
  background: transparent;
  border-radius: 0;
  filter: grayscale(85%) contrast(1.08);
}
body.memory-style-editorial .polaroid:hover { transform: none !important; }

/* -------------------- Tema: Candlelight Memorial -------------------- */
body.memory-style-candlelight {
  --cream: #17151a;
  --paper: #221f26;
  --ink: #EDE6D6;
  --ink-soft: #B8AF9E;
  --ink-faint: #8A8272;
  --blush: #2a2530;
  --sky: #24222b;
  --butter: #2a2620;
  --mint: #202521;
  --lilac: #262230;
  --coral: #C9A227;
  --coral-dark: #A9822E;
  --font-display: 'Cormorant Garamond', serif;
  background-image:
    radial-gradient(circle, rgba(255, 223, 140, 0.22) 1.4px, transparent 2px),
    radial-gradient(circle, rgba(255, 223, 140, 0.13) 1px, transparent 1.6px),
    radial-gradient(circle at 50% 0%, rgba(201, 162, 39, 0.1), transparent 55%);
  background-size: 90px 90px, 55px 55px, auto;
  background-position: 0 0, 27px 30px, 0 0;
  background-repeat: repeat, repeat, no-repeat;
  background-attachment: fixed, fixed, scroll;
}
body.memory-style-candlelight .memory-hero h1 { font-weight: 500; }
body.memory-style-candlelight .memory-action-btn { border-color: rgba(201, 162, 39, 0.3); }
body.memory-style-candlelight .memory-action-btn:hover { background: rgba(201, 162, 39, 0.12); }
body.memory-style-candlelight .memory-hero__badge {
  box-shadow: 0 0 40px 6px rgba(201, 162, 39, 0.35);
  animation: candleFlicker 3s ease-in-out infinite;
}
@keyframes candleFlicker {
  0%, 100% { box-shadow: 0 0 36px 4px rgba(201, 162, 39, 0.32); }
  50% { box-shadow: 0 0 54px 10px rgba(201, 162, 39, 0.5); }
}
body.memory-style-candlelight .note-card,
body.memory-style-candlelight .polaroid,
body.memory-style-candlelight .memory-qr-card,
body.memory-style-candlelight .memory-actions-card {
  border: 1px solid rgba(201, 162, 39, 0.22);
}
body.memory-style-candlelight .note-card__tape { background: rgba(201, 162, 39, 0.18); border: 1px solid rgba(201, 162, 39, 0.15); }
body.memory-style-candlelight .memory-share-icon { background: var(--paper); }
body.memory-style-candlelight .site-footer__inner { border-top-color: rgba(201, 162, 39, 0.18); }

/* -------------------- Tema: Watercolor Botanical -------------------- */
body.memory-style-watercolor {
  --font-display: 'Dancing Script', cursive;
  /* Nimpa palet kartu jadi lebih pudar/"basah" kayak cat air yang
     nge-blur ke kertas, bukan pastel solid ala tema Modern. */
  --blush: #F3E3EA;
  --blush-deep: #E6C9D6;
  --sky: #E1EBF5;
  --sky-deep: #C9DCEF;
  --butter: #FBF2DC;
  --butter-deep: #F3E3B8;
  --mint: #E1F0E6;
  --mint-deep: #C7E3D0;
  --lilac: #EBE3F5;
  --lilac-deep: #D7C7EC;
  --paper: #FFFDFB;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cg fill='none' stroke-linecap='round' opacity='0.22'%3E%3Cpath d='M20 140q-4-22 18-30q-6 22-18 30z' stroke='%237a9b7e' stroke-width='1.6'/%3E%3Cpath d='M20 140q22-4 22-26' stroke='%237a9b7e' stroke-width='1.2'/%3E%3Cpath d='M130 30q18 6 16 26q-20-4-16-26z' stroke='%23b98fae' stroke-width='1.6'/%3E%3Ccircle cx='100' cy='100' r='3' fill='%23c9a8c0' stroke='none'/%3E%3Ccircle cx='108' cy='96' r='2.4' fill='%23c9a8c0' stroke='none'/%3E%3Ccircle cx='96' cy='92' r='2.4' fill='%23c9a8c0' stroke='none'/%3E%3Cpath d='M60 60q6-14 0-24' stroke='%237a9b7e' stroke-width='1.4'/%3E%3C/g%3E%3C/svg%3E"),
    radial-gradient(circle at 15% 15%, rgba(234, 224, 255, 0.75), transparent 45%),
    radial-gradient(circle at 85% 12%, rgba(217, 242, 227, 0.65), transparent 45%),
    radial-gradient(circle at 50% 92%, rgba(255, 240, 194, 0.55), transparent 50%);
  background-color: var(--cream);
  background-size: 180px 180px, auto, auto, auto;
  background-repeat: repeat, no-repeat, no-repeat, no-repeat;
  background-attachment: fixed, scroll, scroll, scroll;
}
body.memory-style-watercolor .memory-hero h1 { font-size: clamp(3.2rem, 7vw, 4.8rem); font-weight: 700; }
body.memory-style-watercolor .memory-hero__badge {
  background: radial-gradient(circle, rgba(255, 255, 255, 0.95), rgba(234, 224, 255, 0.55));
}
body.memory-style-watercolor .note-card { border-radius: 28px; box-shadow: 0 16px 32px -16px rgba(120, 100, 160, 0.35); }
body.memory-style-watercolor .note-card__tape { display: none; }
body.memory-style-watercolor .note-card__message { font-size: 1.4rem; line-height: 1.3; }
body.memory-style-watercolor .polaroid { border-radius: 14px; }
body.memory-style-watercolor .polaroid img { border-radius: 8px; }

/* -------------------- Board page -------------------- */
.board-hero { padding: 40px 0 20px; text-align: center; }
.board-hero__type { display: inline-block; background: var(--blush); color: var(--coral-dark); font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; padding: 6px 16px; border-radius: 999px; margin-bottom: 14px; margin-right: 6px; }
.board-hero h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.board-hero p { color: var(--ink-soft); }

.board-toolbar { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 20px 0 40px; }

.link-box { max-width: 620px; margin: 0 auto 30px; background: var(--paper); border-radius: var(--radius-md); padding: 18px 20px; box-shadow: var(--shadow-soft); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.link-box input { flex: 1; min-width: 200px; border: none; background: var(--cream); padding: 10px 14px; border-radius: var(--radius-sm); color: var(--ink-soft); font-size: .88rem; }

.memory-link-box {
  max-width: 620px;
  margin: 0 auto 30px;
  background: linear-gradient(135deg, var(--blush), var(--butter));
  border-radius: var(--radius-md);
  padding: 20px 22px;
  box-shadow: var(--shadow-soft);
}
.memory-link-box__label { font-weight: 700; color: var(--coral-dark); margin-bottom: 4px; }
.memory-link-box__hint { font-size: .84rem; color: var(--ink-soft); margin-bottom: 14px; }

.add-wish-card { max-width: 560px; margin: 0 auto 90px; background: var(--paper); border-radius: var(--radius-lg); padding: 30px 32px; box-shadow: var(--shadow-card); }

.photo-preview { margin-top: 10px; max-width: 200px; border-radius: var(--radius-sm); display: none; }

.empty-state { text-align: center; color: var(--ink-faint); padding: 40px 20px 60px; }

/* -------------------- Dashboard / board list -------------------- */
.board-list { display: flex; flex-direction: column; gap: 22px; max-width: 760px; margin: 0 auto; }
.board-item { background: var(--paper); border: 1px solid #F0EBE2; border-radius: var(--radius-lg); padding: 26px 28px; box-shadow: var(--shadow-soft); }
.board-item__head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; }
.board-item__type { display: inline-block; background: var(--blush); color: var(--coral-dark); font-weight: 700; font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; padding: 5px 14px; border-radius: 999px; }
.board-item__date { color: var(--ink-faint); font-size: .82rem; }
.board-item__title { margin-bottom: 4px; font-size: 1.35rem; }
.board-item__meta { color: var(--ink-soft); font-size: .92rem; margin-bottom: 16px; }
.board-item__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.board-link-input { flex: 1; min-width: 180px; border: none; background: var(--cream); padding: 10px 14px; border-radius: var(--radius-sm); color: var(--ink-soft); font-size: .86rem; }
.board-item__summary { margin-top: 18px; border-top: 1px solid #F0EBE2; padding-top: 16px; }
.board-item__summary summary { cursor: pointer; font-weight: 700; font-size: .92rem; color: var(--ink); }
.summary-textarea { width: 100%; min-height: 150px; margin-top: 10px; padding: 14px 16px; border-radius: var(--radius-sm); border: 2px solid #EFE6DC; background: var(--cream); color: var(--ink-soft); font-family: var(--font-body); font-size: .86rem; resize: vertical; }

/* -------------------- Admin panel -------------------- */
.admin-wish-list { display: flex; flex-direction: column; gap: 14px; margin-top: 14px; }
.admin-wish-row { background: var(--cream); border-radius: var(--radius-sm); padding: 14px 16px; }
.admin-wish-row__view { display: flex; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.admin-wish-row__photo { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.admin-wish-row__text { flex: 1; min-width: 160px; }
.admin-wish-row__text p { margin: 2px 0 0; color: var(--ink-soft); font-size: .92rem; }
.admin-wish-row__actions { display: flex; gap: 6px; flex-shrink: 0; }
.admin-wish-row__edit { margin-top: 12px; }

/* -------------------- Reaction / like (stylish) -------------------- */
.wish-like-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
  padding: 7px 16px 7px 12px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 0 2px 8px -2px rgba(20, 60, 55, 0.18), inset 0 0 0 1.5px rgba(31, 167, 158, 0.18);
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .86rem;
  cursor: pointer;
  transition: box-shadow .2s ease, background .2s ease, transform .12s ease;
}
.wish-like-btn:hover {
  box-shadow: 0 4px 14px -4px rgba(20, 60, 55, 0.28), inset 0 0 0 1.5px rgba(31, 167, 158, 0.35);
  transform: translateY(-1px);
}
.wish-like-btn:active { transform: translateY(0) scale(.94); }
.wish-like-btn.liked {
  background: linear-gradient(135deg, #FFE9EC, #FFF3ED);
  box-shadow: 0 4px 14px -4px rgba(232, 110, 130, 0.35), inset 0 0 0 1.5px rgba(232, 110, 130, 0.4);
  color: #C4536B;
}
.wish-like-icon {
  font-size: 1.05rem;
  display: inline-block;
  transform-origin: center;
}
.wish-like-count {
  min-width: 12px;
  display: inline-block;
  text-align: left;
}
.wish-like-btn.pop .wish-like-icon {
  animation: wishLikePop .45s cubic-bezier(.17,.89,.32,1.49);
}
@keyframes wishLikePop {
  0%   { transform: scale(1); }
  35%  { transform: scale(1.45) rotate(-8deg); }
  60%  { transform: scale(0.9) rotate(4deg); }
  100% { transform: scale(1) rotate(0deg); }
}

/* -------------------- Edit/hapus ucapan sendiri -------------------- */
.own-wish-controls { margin-top: 12px; }
.own-wish-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.own-wish-edit-form { margin-top: 10px; }
.own-wish-edit-form .field { margin-bottom: 12px; }

/* -------------------- Floating "Tulis Ucapan" button -------------------- */
.fab-write {
  position: fixed;
  right: 20px;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  z-index: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--coral), var(--coral-dark));
  color: #fff;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .92rem;
  box-shadow: 0 10px 24px -8px rgba(14, 124, 116, 0.5);
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease;
}
.fab-write span { font-size: 1.05rem; }
.fab-write:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -8px rgba(14, 124, 116, 0.6); }
.fab-write:active { transform: translateY(0) scale(.96); }

@media (max-width: 640px) {
  .fab-write {
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    padding: 13px 18px;
    font-size: .86rem;
  }
}

/* -------------------- Highlight kartu ucapan yang baru diposting -------------------- */
.note-card--new {
  animation: noteCardNewGlow 1.8s ease;
}
@keyframes noteCardNewGlow {
  0%   { box-shadow: 0 0 0 4px rgba(31, 167, 158, 0.55), var(--shadow-card); }
  70%  { box-shadow: 0 0 0 4px rgba(31, 167, 158, 0.25), var(--shadow-card); }
  100% { box-shadow: var(--shadow-card); }
}

/* -------------------- Statistik situs (admin-stats.php) -------------------- */
.stats-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  max-width: 720px;
  margin: 0 auto;
}
.stats-summary-card {
  background: var(--paper);
  border-radius: var(--radius-md);
  padding: 22px 18px;
  text-align: center;
  box-shadow: var(--shadow-soft);
}
.stats-summary-card__num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--coral-dark);
}
.stats-summary-card__label {
  display: block;
  color: var(--ink-soft);
  font-size: .82rem;
  font-weight: 600;
  margin-top: 4px;
}
.stats-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}
.stats-box {
  background: var(--paper);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-soft);
}
.stats-box h3 { font-size: 1.05rem; margin-bottom: 14px; }
.stats-table { width: 100%; border-collapse: collapse; }
.stats-table tr:not(:last-child) { border-bottom: 1px solid #F0EBE2; }
.stats-table td { padding: 8px 4px; font-size: .88rem; }
.stats-table__main { color: var(--ink); font-weight: 600; }
.stats-table__num { text-align: right; color: var(--ink-soft); font-weight: 700; white-space: nowrap; }
.stats-table__truncate { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stats-table-scroll { overflow-x: auto; max-width: 1100px; margin: 0 auto; }
.stats-table--full { min-width: 780px; background: var(--paper); border-radius: var(--radius-md); box-shadow: var(--shadow-soft); overflow: hidden; }
.stats-table--full th {
  text-align: left; padding: 12px 14px; font-size: .76rem; text-transform: uppercase;
  letter-spacing: .04em; color: var(--ink-faint); border-bottom: 2px solid #F0EBE2;
}
.stats-table--full td { padding: 10px 14px; border-bottom: 1px solid #F5F1EA; }
.stats-badge {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  font-size: .74rem; font-weight: 700;
}
.stats-badge--pageview { background: var(--sky); color: #2B5B7A; }
.stats-badge--click { background: var(--blush); color: var(--coral-dark); }

/* -------------------- Footer -------------------- */
.site-footer { padding: 30px 0 50px; }
.site-footer__inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; border-top: 1px solid rgba(74,68,88,.1); padding-top: 22px; }
.site-footer__copy { margin: 0; font-size: .86rem; color: var(--ink-soft); }
.site-footer__links { display: flex; align-items: center; gap: 16px; }
.footer-icon { color: var(--ink-soft); display: inline-flex; transition: color .18s ease; }
.footer-icon:hover { color: var(--coral-dark); }
.footer-link { font-weight: 700; font-size: .86rem; color: var(--ink-soft); }
.footer-link:hover { color: var(--coral-dark); }

/* -------------------- Print (PDF export) -------------------- */
@media print {
  .site-header, .site-footer, .board-toolbar, .link-box, .add-wish-card, .own-wish-controls, .wish-like-btn, .no-print { display: none !important; }
  body { background: #fff; }
  .note-card { box-shadow: none !important; border: 1px solid #eee; transform: none !important; }
  /* Pastiin semua kartu/foto kepake full-opacity pas print, biarpun
     animasi reveal-on-scroll-nya belom sempet "kepicu" karena orang
     langsung print tanpa scroll dulu. */
  .reveal-on-scroll { opacity: 1 !important; transform: none !important; }
  .polaroid { box-shadow: none !important; border: 1px solid #eee; }
  .memory-lightbox-overlay { display: none !important; }
}

/* -------------------- Responsive tweaks -------------------- */
@media (max-width: 640px) {
  .form-card, .add-wish-card { padding: 26px 22px; }
  .hero { padding: 44px 0 30px; }
  .type-grid { grid-template-columns: 1fr 1fr; }
}
