@font-face {
  font-family: 'NewYork';
  src: url('../assets/font/NewYork PERSONAL USE.otf') format('opentype');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'High Spirited';
  src: url('../assets/font/High Spirited.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'MADE TOMMY';
  src: url('../assets/font/MADE TOMMY Light_PERSONAL USE.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'MADE TOMMY';
  src: url('../assets/font/MADE TOMMY Regular_PERSONAL USE.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'MADE TOMMY';
  src: url('../assets/font/MADE TOMMY Medium_PERSONAL USE.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'MADE TOMMY';
  src: url('../assets/font/MADE TOMMY Bold_PERSONAL USE.otf') format('opentype');
  font-weight: 600 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --font-serif: 'NewYork', Georgia, serif;
  --font-script: 'High Spirited', cursive;
  --font-sans: 'MADE TOMMY', sans-serif;
  --bg: #0d0e10;
  --surface: linear-gradient(155deg, rgba(255, 252, 245, 0.025) 0%, rgba(255, 250, 242, 0.005) 55%, rgba(255, 252, 245, 0.015) 100%);
  --surface-strong: linear-gradient(155deg, rgba(255, 252, 245, 0.03) 0%, rgba(18, 19, 22, 0.08) 100%);
  --glass-blur: blur(8px) saturate(140%);
  --glass-border: rgba(255, 252, 245, 0.18);
  --glass-border-hover: rgba(255, 252, 245, 0.36);
  --glass-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.22), inset 0 -1px 0 0 rgba(214, 180, 117, 0.08), 0 6px 20px rgba(0, 0, 0, 0.14);
  --fg: #fffaf7;
  --muted: #ded8ce;
  --gold: #d6b475;
  --gold-line: rgba(214, 180, 117, 0.34);
  --border: rgba(255, 250, 247, 0.24);
  --radius-card: 18px;
  --radius-ctrl: 12px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  background: var(--bg);
  color: var(--fg);
  caret-color: var(--gold);
}
body.locked { overflow: hidden; }
::selection { background: rgba(214, 180, 117, 0.32); color: var(--fg); }
a { color: inherit; text-underline-offset: 4px; }
img { max-width: 100%; height: auto; display: block; }
.center { text-align: center; }
.sm { font-size: 14px; color: var(--muted); }
.prose { max-width: 44ch; margin: 0 auto; color: var(--muted); text-wrap: pretty; }
.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;
}

/* Focus ring konsisten */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* Tipografi nama & judul */
.nm {
  font-family: var(--font-serif);
  text-transform: uppercase;
  font-weight: 500;
  font-size: 46px;
  line-height: 0.96;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.65);
}
.dan {
  font-family: var(--font-script);
  font-weight: 400;
  font-size: 76px;
  line-height: 0.72;
  color: var(--gold);
  margin: -14px 0 -10px;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.65);
}
.heading {
  font-family: var(--font-serif);
  text-transform: uppercase;
  font-weight: 500;
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: 0.01em;
  color: var(--fg);
  margin-bottom: 12px;
  text-wrap: balance;
}
.section-desc { color: var(--muted); font-size: 15px; margin-bottom: 32px; text-wrap: pretty; }
.ornament { color: var(--gold); display: flex; justify-content: center; margin-bottom: 14px; opacity: 0.85; }
.floral-garland {
  width: 210px;
  height: auto;
  margin: 0 auto 14px;
  opacity: 0.94;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.4));
  animation: garland-breathe 7.5s ease-in-out infinite;
}
@keyframes garland-breathe {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-4px) scale(1.02); }
}

/* Tombol (>= 44px touch target) */
.btn-light, .btn-outline, .btn-salin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 24px;
  font: 500 12px var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  border-radius: var(--radius-ctrl);
  cursor: pointer;
  text-decoration: none;
  border: 1px solid var(--fg);
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, opacity 0.2s ease, transform 0.2s ease;
}
.btn-light { background: var(--fg); color: var(--bg); }
.btn-light.sm { margin-top: 12px; }
.btn-outline { background: var(--gold); color: var(--bg); border-color: var(--gold); margin-top: 24px; }
.btn-light:hover { background: transparent; color: var(--fg); border-color: var(--gold); }
.btn-outline:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }

/* Tombol musik */
[hidden] { display: none !important; }
#buttonmusic {
  position: fixed;
  right: 16px;
  bottom: 20px;
  z-index: 1000;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: var(--surface);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  color: var(--fg);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--glass-shadow);
  transition: border-color 0.25s ease, transform 0.25s ease, color 0.25s ease;
}
#buttonmusic[hidden] { display: none; }
#buttonmusic img { width: 20px; height: 20px; object-fit: contain; filter: brightness(0) invert(1); }
#buttonmusic:hover { border-color: var(--glass-border-hover); color: var(--gold); transform: scale(1.04); }

/* COVER */
#cover {
  position: fixed;
  inset: 0;
  z-index: 2000;
  overflow: hidden;
  background: var(--bg);
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding: 24px 16px max(40px, 8vh);
  transform-origin: center center;
  transition: opacity 0.95s cubic-bezier(0.22, 1, 0.36, 1),
              transform 1.05s cubic-bezier(0.22, 1, 0.36, 1),
              filter 0.95s cubic-bezier(0.22, 1, 0.36, 1),
              visibility 0s linear 1.05s;
}
#cover.open {
  opacity: 0;
  transform: scale(1.04);
  filter: blur(6px);
  pointer-events: none;
  visibility: hidden;
}
.cover-bg, .header-img {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(13, 14, 16, 0.14) 0%, rgba(13, 14, 16, 0.32) 48%, rgba(13, 14, 16, 0.88) 100%),
    url(../assets/img/BackgroundModal.webp) 43% 44% / cover no-repeat,
    radial-gradient(circle at 50% 30%, #2c2a26, #0d0e10);
}
.cover-bg {
  transform: scale(1.1);
  transform-origin: 42% 48%;
}
@media (min-width: 900px) {
  .cover-bg {
    background:
      linear-gradient(180deg, rgba(13, 14, 16, 0.14) 0%, rgba(13, 14, 16, 0.38) 54%, rgba(13, 14, 16, 0.9) 100%),
      url(../assets/img/BackgroundModal.webp) center 40% / cover no-repeat,
      #0d0e10;
  }
}
.cover-body {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 460px;
  text-align: center;
  transition: opacity 0.55s ease, transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}
#cover.open .cover-body {
  opacity: 0;
  transform: translateY(-18px);
}
.sub {
  font-size: 13px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.cover-date {
  margin-top: 10px;
  font-size: 15px;
  letter-spacing: 0;
  color: var(--fg);
}
.cover-divider {
  width: 56px;
  height: 1px;
  background: var(--gold-line);
  margin: 16px auto;
}
.cover-body .to { font-size: 14px; color: var(--muted); margin-bottom: 4px; }
.guest-name {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 16px;
  word-wrap: break-word;
}
@media (min-width: 768px) {
  .cover-body .nm, .title .nm { font-size: 58px; }
  .cover-body .dan, .title .dan { font-size: 92px; margin: -18px 0 -14px; }
}

/* LAYOUT SPLIT DESKTOP / SINGLE MOBILE */
.wrapper { display: flex; }
.title {
  position: sticky;
  top: 0;
  width: 66%;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  text-align: center;
  background: var(--bg);
  border-right: 1px solid var(--gold-line);
}
.title .header-img { z-index: 0; }
.header-body { position: relative; z-index: 1; margin-bottom: 88px; padding: 0 24px; }
.scroll { width: 34%; min-width: 420px; position: relative; overflow: hidden; }

.background-video {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 34%;
  min-width: 420px;
  height: 100%;
  z-index: -1;
  background: var(--bg);
}
.bg-overlay {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 34%;
  min-width: 420px;
  height: 100%;
  background: linear-gradient(180deg, rgba(13, 14, 16, 0.72), rgba(13, 14, 16, 0.68));
  z-index: 0;
  pointer-events: none;
}
.scroll > header, .scroll > section, .scroll > footer { position: relative; z-index: 2; }

/* Desktop: sembunyikan hero kanan agar tidak duplikasi dengan panel kiri .title */
@media (min-width: 821px) {
  #header { display: none; }
  #opening { padding-top: 96px; }
}
@media (max-width: 1024px) and (min-width: 821px) {
  .title { width: 56%; }
  .scroll, .background-video, .bg-overlay { width: 44%; min-width: 380px; }
}
@media (max-width: 820px) {
  .title { display: none; }
  .scroll, .background-video, .bg-overlay { width: 100%; min-width: 0; }
  #buttonmusic { bottom: 20px; }
  footer { padding-bottom: 88px; }
}

.pad { padding: 72px 24px; }
.pad-x { padding: 48px 24px; }

/* Slider fade */
.slider { position: relative; overflow: hidden; }
.slide { position: absolute; inset: 0; background: center / cover no-repeat; opacity: 0; transition: opacity 1s ease; }
.slide.on { opacity: 1; }
.background-video.slider { position: fixed; }

/* HERO (mobile) */
#header { position: relative; height: 100vh; height: 100dvh; min-height: 100vh; color: var(--fg); }
.hero-slider { position: absolute; inset: 0; background: var(--bg); }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(13, 14, 16, 0.9) 0%, rgba(13, 14, 16, 0.56) 36%, rgba(13, 14, 16, 0.12) 68%, transparent 100%);
}
.hero-body { position: absolute; bottom: 112px; width: 100%; text-align: center; padding: 0 20px; z-index: 3; }
.hero-text { font-size: 13px; letter-spacing: 0.02em; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
.hero-date { margin-top: 10px; font-size: 15px; letter-spacing: 0; }
.scroll-down {
  position: absolute;
  z-index: 3;
  bottom: 44px;
  left: 50%;
  transform: translateX(-50%);
  width: 44px;
  height: 44px;
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  background: var(--surface);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow);
  color: var(--fg);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: gentle-float 2.6s ease-in-out infinite;
}
@keyframes gentle-float {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 6px); }
}

/* MEMPELAI + ANIMASI BUNGA DARI BALIK FOTO */
.mempelai-wrap {
  position: relative;
  width: 88%;
  max-width: 345px;
  margin: 40px auto;
}
.flower {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  opacity: 0.94;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.45));
  transition: transform 1.3s cubic-bezier(0.16, 1, 0.3, 1) 0.28s;
}
.fl-tr { width: 165px; top: -38px; right: -28px; transform: translate(-38px, 38px) scale(0.76) rotate(-14deg); }
.fl-bl { width: 142px; bottom: -36px; left: -26px; transform: translate(36px, -36px) scale(0.76) rotate(12deg); }
.fl-tl { width: 142px; top: -36px; left: -26px; transform: translate(36px, 36px) scale(0.76) rotate(-12deg); }
.fl-br { width: 165px; bottom: -38px; right: -28px; transform: translate(-38px, -38px) scale(0.76) rotate(14deg); }

.mempelai-wrap.aos-in .flower { opacity: 0.94; }
.mempelai-wrap.aos-in .fl-tr { transform: translate(0, 0) scale(1) rotate(8deg); animation: sway-a 7s ease-in-out 1.3s infinite; }
.mempelai-wrap.aos-in .fl-bl { transform: translate(0, 0) scale(1) rotate(-6deg); animation: sway-b 8s ease-in-out 1.5s infinite; }
.mempelai-wrap.aos-in .fl-tl { transform: translate(0, 0) scale(1) rotate(-8deg); animation: sway-b 7.5s ease-in-out 1.3s infinite; }
.mempelai-wrap.aos-in .fl-br { transform: translate(0, 0) scale(1) rotate(6deg); animation: sway-a 8.5s ease-in-out 1.5s infinite; }

@keyframes sway-a {
  0%, 100% { transform: translate(0, 0) rotate(7deg); }
  50% { transform: translate(3px, -5px) rotate(10deg); }
}
@keyframes sway-b {
  0%, 100% { transform: translate(0, 0) rotate(-7deg); }
  50% { transform: translate(-3px, 5px) rotate(-10deg); }
}

.mempelai {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--gold-line);
  background: #1a1b1f;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.42);
}
.mempelai-foto { position: absolute; inset: 0; }
.mempelai-foto .groom-a { transform: scale(1.48); transform-origin: center 94%; }
.mempelai-foto .groom-b { transform: scale(1.96); transform-origin: center 83%; }
.mempelai-foto .bride-a { transform: scale(1.46); transform-origin: center 89%; }
.mempelai-foto .bride-b { transform: scale(2); transform-origin: center 83%; }
.mempelai-overlay {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 62%;
  background: linear-gradient(180deg, transparent 0%, rgba(13, 14, 16, 0.58) 45%, rgba(13, 14, 16, 0.92) 100%);
}
.mempelai-info { position: absolute; bottom: 18px; width: 100%; padding: 0 18px; z-index: 2; }
.pria { text-align: left; }
.wanita { text-align: right; }
.mempelai-nama { font-family: var(--font-serif); font-size: 25px; font-weight: 600; line-height: 1.2; margin-bottom: 4px; }
.mempelai-info .sm { font-size: 12px; line-height: 1.45; }
.mempelai-info .sm:last-child { font-size: 11px; line-height: 1.4; }
.ortu { line-height: 1.45; font-size: 13px; margin: 4px 0; color: var(--fg); }
.mempelai-dan { font-family: var(--font-script); font-size: 78px; line-height: 1; color: var(--gold); text-align: center; margin: 14px 0 18px; }

/* QUOTE */
.quote-icon { font: 600 64px / 0.8 var(--font-serif); color: var(--gold); margin-bottom: 12px; }
.quote-text { font: italic 21px / 1.45 var(--font-serif); max-width: 38ch; margin: 0 auto 14px; }
.quote-source { display: block; font-style: normal; font-size: 13px; letter-spacing: 0.02em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.quote-translate { font-size: 14px; color: var(--muted); max-width: 44ch; margin: 0 auto; text-wrap: pretty; }

/* COUNTDOWN & ACARA */
.detail-header { position: relative; min-height: 480px; margin-bottom: 48px; background: #16171b; overflow: hidden; }
.detail-header img { width: 100%; height: 480px; object-fit: cover; object-position: center 38%; }
.detail-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 24px 16px 36px;
  background: linear-gradient(180deg, rgba(13, 14, 16, 0.1) 0%, rgba(13, 14, 16, 0.6) 52%, rgba(13, 14, 16, 0.92) 100%);
}
.overlay-title {
  font: 500 28px var(--font-serif);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin-bottom: 16px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
}
.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  max-width: 340px;
}
.countdown-item {
  background: var(--surface);
  border: 1px solid var(--glass-border);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow);
  padding: 12px 4px;
  border-radius: 14px;
  text-align: center;
}
.countdown-item span {
  display: block;
  font: 600 24px var(--font-sans);
  font-variant-numeric: tabular-nums;
  color: var(--gold);
  margin-bottom: 2px;
}
.countdown-item p { font-family: var(--font-sans); font-size: 11px; letter-spacing: 0.01em; text-transform: uppercase; color: var(--muted); }

.detail-box {
  position: relative;
  overflow: hidden;
  max-width: 440px;
  margin: 0 auto 20px;
  background: var(--surface);
  border: 1px solid var(--glass-border);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: var(--radius-card);
  box-shadow: var(--glass-shadow);
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.detail-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.04) 0%, transparent 52%);
  pointer-events: none;
}
.detail-box:hover { transform: translateY(-4px); border-color: var(--glass-border-hover); }
.detail-icon { color: var(--gold); padding-top: 26px; display: flex; justify-content: center; }
.detail-icon img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(77%) sepia(32%) saturate(520%) hue-rotate(4deg) brightness(93%) contrast(88%);
}
.detail-info { padding: 12px 20px 28px; }
.detail-title { font: 500 28px var(--font-serif); text-transform: uppercase; letter-spacing: 0.01em; margin-bottom: 8px; }
.detail-date { font-weight: 500; }
.detail-time { color: var(--muted); font-size: 15px; }
.loc { margin-top: 10px; font-size: 15px; }
.loc span { font-size: 13px; color: var(--muted); }

/* GALERI (Kolase rapi disesuaikan orientasi & fokus setiap foto) */
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 86px;
  grid-auto-flow: dense;
  gap: 10px;
}
.grid-item {
  display: block;
  grid-row: span 3;
  border-radius: var(--radius-ctrl);
  overflow: hidden;
  border: 1px solid rgba(255, 250, 247, 0.14);
  background: #18191d;
}
.grid-item.tile-sm { grid-row: span 2; }
.grid-item.tile-md { grid-row: span 3; }
.grid-item.tile-tall { grid-row: span 4; }
.grid-item.tile-wide { grid-column: span 2; grid-row: span 3; }
.grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 50%;
  transition: transform 0.35s ease;
}
.grid-item.pos-top img { object-position: center 22%; }
.grid-item.pos-mid img { object-position: center 50%; }
.grid-item.pos-low img { object-position: center 68%; }
.grid-item.pos-bot img { object-position: center 80%; }
.grid-item:hover img { transform: scale(1.04); }

/* LIGHTBOX DIALOG */
#lightbox {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: 96vw;
  max-height: 92vh;
  margin: auto;
  overflow: visible;
}
#lightbox::backdrop { background: rgba(6, 7, 9, 0.92); backdrop-filter: blur(4px); }
.lb-stage { display: flex; flex-direction: column; align-items: stretch; }
.lb-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.lb-count { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
#lb-img { max-width: 90vw; max-height: 78vh; border-radius: var(--radius-ctrl); box-shadow: 0 16px 48px rgba(0, 0, 0, 0.65); }
#lb-close {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: rgba(13, 14, 16, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--fg);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}
#lb-close:hover { border-color: var(--gold); color: var(--gold); background: rgba(13, 14, 16, 0.9); }
.lb-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: var(--fg);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.85));
  transition: color 0.2s ease, transform 0.2s ease;
}
.lb-nav svg { width: 28px; height: 28px; }
.lb-nav:hover { color: var(--gold); }
.lb-prev { left: 8px; }
.lb-next { right: 8px; }

/* RSVP */
#rsvp form { margin-top: 20px; }
.field { margin-bottom: 16px; }
.fieldset-radio { border: 0; padding: 0; }
#rsvp label, #rsvp legend { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; color: var(--fg); }
.form-control {
  width: 100%;
  min-height: 44px;
  font: 15px var(--font-sans);
  color: var(--fg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-ctrl);
  padding: 10px 14px;
  background: var(--surface-strong);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.2);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-control::placeholder { color: #cbc5bb; opacity: 1; }
.form-control:focus { border-color: var(--gold); box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.28), 0 0 0 3px rgba(214, 180, 117, 0.22); outline: none; }
.form-control[aria-invalid="true"] { border-color: #f08a8a; }
textarea.form-control { resize: vertical; min-height: 96px; }
.field-err { margin-top: 5px; font-size: 13px; color: #f6a6a6; }

.radios { display: flex; gap: 16px; flex-wrap: wrap; }
.radio {
  position: relative;
  display: inline-flex !important;
  align-items: center;
  min-height: 44px;
  padding: 0 14px 0 38px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-ctrl);
  background: var(--surface-strong);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.2);
  cursor: pointer;
  font-size: 14px !important;
  font-weight: 400 !important;
  margin-bottom: 0 !important;
}
.radio input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.mark {
  position: absolute;
  left: 12px;
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--muted);
  border-radius: 50%;
}
.radio input:checked ~ .mark { border-color: var(--gold); background: var(--gold); box-shadow: inset 0 0 0 4px var(--bg); }
.radio:has(input:focus-visible) { outline: 2px solid var(--gold); outline-offset: 2px; }
.btn-submit { width: 100%; }

.alert { margin-top: 12px; padding: 10px 14px; border-radius: var(--radius-ctrl); font-size: 13px; background: rgba(26, 71, 49, 0.85); color: #e6f7ee; border: 1px solid rgba(114, 211, 160, 0.4); }
.alert.err { background: rgba(94, 27, 32, 0.88); color: #fde8ea; border-color: rgba(240, 138, 138, 0.45); }

#list-ucapan { margin-top: 28px; max-height: 420px; overflow-y: auto; text-align: left; padding-right: 4px; }
.wish {
  background: var(--surface);
  border: 1px solid var(--glass-border);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 12px;
}
.wish-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.wish b { font-weight: 500; font-size: 15px; color: var(--fg); }
.wish .badge { font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold); }
.wish p { font-size: 14px; color: var(--muted); margin-bottom: 6px; word-wrap: break-word; }
.wish small { color: #b7b0a5; font-size: 12px; }
.wish-empty {
  text-align: center;
  padding: 24px 16px;
  background: var(--surface);
  border: 1px solid var(--glass-border);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow);
  border-radius: 14px;
  color: var(--muted);
  font-size: 14px;
}
#list-ucapan::-webkit-scrollbar { width: 6px; }
#list-ucapan::-webkit-scrollbar-track { background: rgba(255, 250, 247, 0.08); border-radius: 999px; }
#list-ucapan::-webkit-scrollbar-thumb { background: var(--gold-line); border-radius: 999px; }

/* TANDA KASIH (Solid Obsidian-Gold Debit Card) */
.atm-card {
  position: relative;
  overflow: hidden;
  max-width: 380px;
  min-height: 224px;
  margin: 0 auto 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: left;
  background: linear-gradient(145deg, #211d1a 0%, #141211 54%, #1d1714 100%);
  border: 1px solid rgba(214, 180, 117, 0.34);
  border-radius: 20px;
  padding: 20px 22px;
  box-shadow: inset 0 1px 0 0 rgba(255, 246, 228, 0.16), 0 16px 36px rgba(0, 0, 0, 0.5);
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.atm-card:hover { transform: translateY(-3px); border-color: var(--gold); }
.debit-arc { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.atm-top, .atm-mid, .rek-number, .atm-bottom { position: relative; z-index: 1; }
.atm-top { display: flex; justify-content: space-between; align-items: center; }
.atm-top-right { display: flex; align-items: center; gap: 10px; color: var(--gold); }
.atm-header { font-size: 16px; font-weight: 600; letter-spacing: 0.02em; color: var(--fg); }
.copied-badge { font-size: 11px; color: var(--gold); background: rgba(214, 180, 117, 0.14); border: 1px solid var(--gold-line); padding: 2px 8px; border-radius: 999px; }
.atm-mid { margin: 14px 0 12px; }
.emv-chip { display: block; border-radius: 6px; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35); }
.rek-number { font: 600 20px var(--font-sans); font-variant-numeric: tabular-nums; letter-spacing: 0.04em; margin-bottom: 14px; user-select: all; color: var(--fg); }
.atm-bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.rek-label { display: block; font-size: 11px; text-transform: uppercase; color: var(--muted); opacity: 0.85; margin-bottom: 2px; }
.rek-name { font-size: 14px; font-weight: 500; color: var(--fg); }
.btn-salin {
  min-width: 96px;
  min-height: 44px;
  padding: 8px 18px;
  background: var(--fg);
  color: var(--bg);
  border: 1px solid var(--fg);
  border-radius: 999px;
}
.btn-salin:hover { background: var(--gold); color: var(--bg); border-color: var(--gold); }
.btn-salin.is-fading { opacity: 0; transform: translateY(-2px); }
.btn-salin.is-copied { background: rgba(214, 180, 117, 0.18); color: var(--gold); border-color: var(--gold); }

/* FOOTER */
footer { padding: 64px 24px 88px; }
.footer-photo-wrap { position: relative; width: 180px; margin: 28px auto 72px; }
.footer-jasmine {
  position: absolute;
  top: -36px;
  width: 136px;
  height: auto;
  z-index: 0;
  opacity: 0.92;
  pointer-events: none;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.45));
}
.fj-l { left: -62px; transform: rotate(-22deg); animation: fj-sway-l 7.5s ease-in-out infinite; }
.fj-r { right: -62px; transform: scaleX(-1) rotate(-22deg); animation: fj-sway-r 8s ease-in-out infinite; }
@keyframes fj-sway-l {
  0%, 100% { transform: rotate(-22deg); }
  50% { transform: rotate(-18deg) translateY(-3px); }
}
@keyframes fj-sway-r {
  0%, 100% { transform: scaleX(-1) rotate(-22deg); }
  50% { transform: scaleX(-1) rotate(-18deg) translateY(-3px); }
}
.footer-garland {
  position: absolute;
  left: 50%;
  bottom: -58px;
  width: 248px;
  height: auto;
  transform: translateX(-50%) rotate(180deg);
  z-index: 0;
  opacity: 0.94;
  pointer-events: none;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.48));
  animation: footer-sway 8s ease-in-out infinite;
}
@keyframes footer-sway {
  0%, 100% { transform: translateX(-50%) rotate(180deg); }
  50% { transform: translateX(-50%) rotate(182deg) translateY(4px); }
}
.footer-photo { position: relative; z-index: 1; }
.footer-photo img { width: 180px; height: 180px; object-fit: cover; margin: 0 auto; border-radius: var(--radius-card); border: 1px solid var(--gold-line); box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35); }
.footer-ucapan { font-size: 15px; color: var(--muted); max-width: 42ch; margin: 0 auto 12px; text-wrap: pretty; }
.footer-salam { font: 500 18px var(--font-serif); text-transform: uppercase; letter-spacing: 0.02em; color: var(--gold); margin-bottom: 16px; }

/* CREATOR CREDIT */
.creator-credit { margin-top: 48px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.credit-divider { width: 48px; height: 1px; background: var(--gold-line); margin-bottom: 6px; }
.credit-text { font-size: 14px; color: var(--muted); }
.credit-text span { color: var(--gold); font-weight: 500; }
.credit-ig {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: var(--surface);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow);
  color: var(--fg);
  font-size: 12px;
  text-decoration: none;
  transition: border-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}
.credit-ig:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }

/* Scroll reveal dua arah (reverse saat scroll ke atas, dengan delay agar animasi terasa) */
[data-aos] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s ease, transform 0.55s ease;
  will-change: opacity, transform;
}
[data-aos].aos-above {
  transform: translateY(-28px);
}
[data-aos].aos-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1) var(--aos-delay, 0.14s),
              transform 0.95s cubic-bezier(0.22, 1, 0.36, 1) var(--aos-delay, 0.14s);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0ms !important; }
  [data-aos], [data-aos].aos-above { opacity: 1; transform: none; }
}
