/* =========================================================
   KasihRasa — Virtual Gift
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

:root {
  --bg1: #ff6fa5; --bg2: #ff9a76; --bg3: #9b6bff;
  --accent: #ff4f8b; --accent2: #7c4dff;
  --box: #ff5c8a; --ribbon: #ffd23f;
  --ink: #33203d; --fg: #ffffff;
  --paper: #fffaf3;
  --font: 'Fredoka', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --hand: 'Caveat', 'Segoe Print', cursive;
}

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: #fff7fa;
  min-height: 100vh; min-height: 100dvh;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
}
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }

#fx { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 30; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45em;
  padding: .85em 1.4em; border-radius: 999px;
  font-weight: 600; font-size: 1rem; line-height: 1.1;
  text-decoration: none; white-space: nowrap; user-select: none;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, opacity .2s;
}
.btn:active { transform: scale(.95); }
.btn:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 50%, transparent); outline-offset: 3px; }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: var(--onacc, #fff);
  box-shadow: 0 10px 24px -10px var(--accent);
}
@media (hover: hover) { .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -10px var(--accent); } }
.btn-ghost {
  background: rgba(255,255,255,.78); color: var(--ink);
  box-shadow: inset 0 0 0 2px rgba(0,0,0,.06);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
@media (hover: hover) { .btn-ghost:hover { background: #fff; transform: translateY(-2px); } }
.btn-wa { background: #25d366; color: #fff; box-shadow: 0 10px 22px -10px #25d366; }
.btn-small { padding: .65em 1.1em; font-size: .93rem; }
.btn-lg { padding: 1em 1.8em; font-size: 1.1rem; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: max(24px, env(safe-area-inset-bottom));
  transform: translate(-50%, calc(100% + 60px));
  visibility: hidden;
  background: #2a1f33; color: #fff; padding: .8em 1.3em; border-radius: 999px;
  font-weight: 500; font-size: .95rem; z-index: 60; max-width: calc(100% - 32px); text-align: center;
  box-shadow: 0 12px 30px -10px rgba(0,0,0,.5);
  transition: transform .35s cubic-bezier(.2,.9,.3,1.2), visibility 0s .35s;
}
.toast.show { transform: translate(-50%, 0); visibility: visible; transition-delay: 0s; }

/* =========================================================
   CREATE MODE
   ========================================================= */
.create {
  position: relative; min-height: 100vh; min-height: 100dvh;
  background:
    radial-gradient(900px 520px at 0% -10%, color-mix(in srgb, var(--bg1) 38%, transparent), transparent 65%),
    radial-gradient(800px 500px at 100% 5%, color-mix(in srgb, var(--bg3) 32%, transparent), transparent 65%),
    radial-gradient(700px 500px at 50% 100%, color-mix(in srgb, var(--bg2) 22%, transparent), transparent 70%),
    #fffafc;
  transition: background .6s;
  padding: 0 16px 32px;
}
.topbar { max-width: 900px; margin: 0 auto; padding: 18px 0; display: flex; align-items: center; }
.logo { font-weight: 700; font-size: 1.35rem; display: flex; align-items: center; gap: .4em; letter-spacing: -.01em; }
.logo-icon { display: inline-block; animation: wiggle 3s ease-in-out infinite; }

.hero { position: relative; max-width: 760px; margin: 0 auto; text-align: center; padding: clamp(24px, 7vw, 70px) 0 clamp(30px, 6vw, 56px); }
.hero-badge {
  display: inline-block; font-size: .85rem; font-weight: 500; padding: .45em 1em; border-radius: 999px;
  background: rgba(255,255,255,.8); box-shadow: 0 4px 14px -6px rgba(0,0,0,.15); margin-bottom: 18px;
}
.hero h1 { font-size: clamp(2.1rem, 7.5vw, 3.8rem); line-height: 1.08; letter-spacing: -.02em; font-weight: 700; }
.hero h1 em {
  font-style: normal;
  background: linear-gradient(120deg, var(--accent), var(--accent2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { margin: 18px auto 28px; max-width: 560px; font-size: clamp(1rem, 3.6vw, 1.15rem); line-height: 1.55; opacity: .8; }
.hero-floats { position: absolute; inset: -10px -40px; pointer-events: none; z-index: -0; }
.hero-floats span { position: absolute; font-size: clamp(1.4rem, 4vw, 2.2rem); opacity: .85; animation: floaty 6s ease-in-out infinite; }
.hero-floats span:nth-child(1) { left: 2%;  top: 12%; animation-delay: 0s; }
.hero-floats span:nth-child(2) { right: 4%; top: 8%;  animation-delay: -1s; }
.hero-floats span:nth-child(3) { left: 6%;  bottom: 18%; animation-delay: -2s; }
.hero-floats span:nth-child(4) { right: 2%; bottom: 26%; animation-delay: -3s; }
.hero-floats span:nth-child(5) { left: 22%; top: -2%; animation-delay: -4s; font-size: 1.3rem; }
.hero-floats span:nth-child(6) { right: 20%; top: -4%; animation-delay: -2.5s; font-size: 1.3rem; }
.hero-floats span:nth-child(7) { left: 14%; bottom: 0; animation-delay: -1.5s; font-size: 1.1rem; }
.hero-floats span:nth-child(8) { right: 14%; bottom: 4%; animation-delay: -3.5s; font-size: 1.3rem; }
@media (max-width: 560px) {
  .hero-floats { inset: -10px 0; }
  .hero-floats span:nth-child(n+5) { display: none; }
  .hero-floats span:nth-child(3), .hero-floats span:nth-child(4) { bottom: 4%; }
}

.panel {
  position: relative; max-width: 860px; margin: 0 auto;
  background: rgba(255,255,255,.88);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-radius: 28px;
  padding: clamp(20px, 4.5vw, 44px);
  box-shadow: 0 30px 70px -30px rgba(60, 20, 70, .35), inset 0 0 0 1px rgba(255,255,255,.8);
  scroll-margin-top: 16px;
}
.step { display: flex; align-items: center; gap: 12px; margin: 6px 0 18px; }
.step:not(:first-child) { margin-top: 34px; }
.step h2 { font-size: clamp(1.2rem, 4vw, 1.45rem); font-weight: 600; }
.step-num {
  flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent2)); color: var(--onacc, #fff); font-weight: 700;
}

.occasions { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.occ {
  position: relative; overflow: hidden; text-align: left;
  min-height: 120px; padding: 14px; border-radius: 20px;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 2px;
  background: linear-gradient(140deg, var(--o1), var(--o2));
  color: var(--ofg, #fff);
  box-shadow: 0 10px 24px -14px var(--o1);
  transition: transform .25s cubic-bezier(.2,.9,.3,1.3), box-shadow .25s;
}
.occ::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 80% 10%, rgba(255,255,255,.45), transparent 55%); }
.occ .e { position: absolute; top: 10px; right: 12px; font-size: 2.3rem; filter: drop-shadow(0 4px 6px rgba(0,0,0,.18)); transition: transform .3s; }
.occ b { position: relative; font-size: 1.05rem; font-weight: 600; }
.occ small { position: relative; font-size: .8rem; opacity: .9; line-height: 1.3; }
@media (hover: hover) { .occ:hover { transform: translateY(-4px); } .occ:hover .e { transform: rotate(-10deg) scale(1.1); } }
.occ[aria-checked="true"] { transform: translateY(-4px); box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--o1), 0 16px 30px -14px var(--o1); }
.occ[aria-checked="true"]::after {
  content: '✓'; position: absolute; top: 10px; left: 12px; width: 24px; height: 24px; border-radius: 50%;
  background: #fff; color: #222; display: grid; place-items: center; font-weight: 700; font-size: .85rem;
}
@media (max-width: 420px) {
  .occasions { grid-template-columns: 1fr 1fr; gap: 10px; }
  .occ { min-height: 136px; padding: 12px; }
  .occ .e { font-size: 1.9rem; top: 8px; right: 10px; }
  .occ b { font-size: .98rem; line-height: 1.15; }
}

.form { display: grid; gap: 16px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.row-title { grid-template-columns: 1fr 120px; }
.row-title.no-age { grid-template-columns: 1fr; }
@media (max-width: 560px) { .row { grid-template-columns: 1fr; } .row-title { grid-template-columns: 1fr 96px; } }
.field { display: grid; gap: 7px; position: relative; }
.field > span { font-size: .9rem; font-weight: 600; opacity: .75; }
.label-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.field input, .field textarea {
  width: 100%; border: 2px solid #efe7ef; background: #fff; border-radius: 16px;
  padding: .8em 1em; font-size: 1rem; outline: none; transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; line-height: 1.5; min-height: 150px; }
.field input:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
.field.invalid input, .field.invalid textarea { border-color: #ff4d4f; animation: shake .4s; }
.counter { justify-self: end; font-size: .8rem; opacity: .55; margin-top: -2px; }
.chip {
  font-size: .85rem; font-weight: 600; padding: .45em .9em; border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 12%, #fff); color: color-mix(in srgb, var(--accent) 80%, #000);
  transition: transform .2s, background .2s; opacity: 1;
}
.chip:active { transform: scale(.94); }

.switch { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; font-weight: 500; width: fit-content; user-select: none; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.slider { position: relative; width: 48px; height: 28px; border-radius: 999px; background: #ddd2dc; transition: background .25s; flex: none; }
.slider::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.2); transition: transform .25s cubic-bezier(.2,.9,.3,1.3); }
.switch input:checked + .slider { background: var(--accent); }
.switch input:checked + .slider::after { transform: translateX(20px); }
.switch input:focus-visible + .slider { outline: 3px solid color-mix(in srgb, var(--accent) 40%, transparent); outline-offset: 2px; }

.actions { display: flex; gap: 12px; justify-content: flex-end; flex-wrap: wrap; margin-top: 6px; }
@media (max-width: 560px) { .actions { flex-direction: column-reverse; flex-wrap: nowrap; } .actions .btn { width: 100%; } }

.result { margin-top: 10px; animation: sceneIn .6s cubic-bezier(.2,.9,.3,1.2) both; }
.link-box { display: flex; gap: 8px; background: #fff; border: 2px dashed color-mix(in srgb, var(--accent) 45%, #fff); border-radius: 18px; padding: 6px 6px 6px 14px; align-items: center; }
.link-box input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: .95rem; color: #555; }
.share-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
@media (max-width: 560px) { .share-row .btn { flex: 1 1 100%; } }
.note { margin-top: 14px; font-size: .88rem; line-height: 1.5; background: #fff7e0; border-radius: 14px; padding: 12px 14px; color: #6b5310; }

.foot { text-align: center; padding: 30px 0 10px; opacity: .55; font-size: .9rem; }

/* =========================================================
   VIEW MODE
   ========================================================= */
.view { position: fixed; inset: 0; overflow: hidden; color: var(--fg); }
.view-bg {
  position: absolute; inset: 0;
  background: linear-gradient(155deg, var(--bg1), var(--bg2) 55%, var(--bg3));
  background-size: 220% 220%;
  animation: bgShift 18s ease-in-out infinite;
}
.view-bg::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 50% 38%, rgba(255,255,255,.32), transparent 55%),
    radial-gradient(circle at 15% 85%, rgba(255,255,255,.14), transparent 40%);
}
.view-bg::after {
  content: ''; position: absolute; inset: 0; opacity: .5;
  background-image: radial-gradient(rgba(255,255,255,.35) 1px, transparent 1.5px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(circle at 50% 40%, transparent 30%, #000 85%);
  mask-image: radial-gradient(circle at 50% 40%, transparent 30%, #000 85%);
}

.fab {
  position: fixed; top: max(14px, env(safe-area-inset-top)); right: 14px; z-index: 40;
  min-width: 46px; height: 46px; padding: 0 12px; border-radius: 999px; font-size: 1.15rem;
  background: rgba(255,255,255,.25); color: var(--fg);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.35);
  transition: transform .2s;
}
.fab:active { transform: scale(.92); }
.fab-left { left: 14px; right: auto; font-size: .95rem; font-weight: 600; }

.scene {
  position: absolute; inset: 0; z-index: 10;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  padding: max(70px, env(safe-area-inset-top)) 20px max(30px, env(safe-area-inset-bottom));
  text-align: center;
}
.scene.enter { animation: sceneIn .75s cubic-bezier(.2,.9,.3,1.15) both; }
.scene.leave { animation: sceneOut .42s ease-in both; pointer-events: none; }
.scene > h1, .scene > h2, .scene > p { text-shadow: var(--tsh, 0 2px 16px rgba(0,0,0,.18)); }

.kicker { font-size: clamp(1rem, 4vw, 1.25rem); font-weight: 500; opacity: .92; letter-spacing: .02em; }
.intro-name { font-family: var(--hand); font-size: clamp(3rem, 14vw, 5.2rem); line-height: 1; font-weight: 700; margin-top: -6px; word-break: break-word; max-width: 100%; }
.scene-title { font-size: clamp(1.6rem, 6.5vw, 2.4rem); font-weight: 700; line-height: 1.15; max-width: 640px; word-break: break-word; }
.scene-sub { font-size: clamp(1rem, 3.8vw, 1.15rem); opacity: .9; max-width: 480px; }
.hint { font-size: 1rem; font-weight: 500; opacity: .92; }
.pulse { animation: pulse 1.6s ease-in-out infinite; }

/* ---------- Gift box ---------- */
.gift-wrap { position: relative; width: min(62vw, 260px); aspect-ratio: 1; display: grid; place-items: center; margin: 6px 0; }
.gift-wrap:focus-visible { outline: none; }
.gift-wrap:focus-visible .gift { filter: drop-shadow(0 0 12px #fff); }
.rays {
  position: absolute; inset: -38%; border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, rgba(255,255,255,.3) 0 9deg, transparent 9deg 18deg);
  -webkit-mask-image: radial-gradient(circle, #000 18%, transparent 66%);
  mask-image: radial-gradient(circle, #000 18%, transparent 66%);
  animation: spin 22s linear infinite;
  pointer-events: none;
}
.gift {
  position: relative; display: block; width: 76%; height: 76%;
  font-size: min(4.7vw, 19.7px); /* 1em = 1/10 lebar kotak */
  animation: wobble 2.6s ease-in-out infinite;
  transform-origin: 50% 100%;
}
.gift > span { position: absolute; display: block; }
.gift-body {
  left: .7em; right: .7em; bottom: .4em; height: 6.2em; border-radius: .5em;
  background:
    linear-gradient(90deg, transparent 42%, var(--ribbon) 42% 58%, transparent 58%),
    linear-gradient(180deg, var(--box), color-mix(in srgb, var(--box) 78%, #000));
  box-shadow: inset -.9em 0 0 rgba(0,0,0,.08), inset .5em 0 0 rgba(255,255,255,.08);
}
.gift-lid {
  left: 0; right: 0; top: 1.6em; height: 2.1em; border-radius: .45em; z-index: 2;
  background:
    linear-gradient(90deg, transparent 42%, color-mix(in srgb, var(--ribbon) 92%, #fff) 42% 58%, transparent 58%),
    linear-gradient(180deg, color-mix(in srgb, var(--box) 80%, #fff), var(--box));
  box-shadow: 0 .4em .5em -.2em rgba(0,0,0,.28);
  transition: transform 1s cubic-bezier(.2,.8,.2,1), opacity 1s;
}
.bow { position: absolute; left: 50%; bottom: 92%; width: 0; height: 0; }
.bow i {
  position: absolute; bottom: -.3em; width: 2.6em; height: 2em;
  border: .55em solid var(--ribbon); border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
}
.bow i:first-child { right: -.15em; transform: rotate(-28deg); transform-origin: 100% 100%; }
.bow i:last-child  { left: -.15em;  transform: rotate(28deg);  transform-origin: 0 100%; }
.bow b { position: absolute; left: -.65em; bottom: -.55em; width: 1.3em; height: 1.15em; border-radius: .4em; background: color-mix(in srgb, var(--ribbon) 85%, #000); }
.gift-shadow { left: 8%; right: 8%; bottom: -.7em; height: 1.2em; background: radial-gradient(ellipse, rgba(0,0,0,.28), transparent 70%); z-index: -1; }
.gift-wrap::after {
  content: ''; position: absolute; left: 50%; top: 48%; width: 24px; height: 24px; border-radius: 50%;
  background: #fff; opacity: 0; transform: translate(-50%, -50%) scale(0); pointer-events: none;
}
.gift-wrap.open .gift { animation: pop .6s cubic-bezier(.2,.9,.3,1.4); }
.gift-wrap.open .gift-lid { transform: translate(1em, -10em) rotate(-38deg); opacity: 0; }
.gift-wrap.open::after { animation: flash 1s ease-out; }
.gift-wrap.open + .hint { opacity: 0; transition: opacity .3s; }

/* ---------- Cake ---------- */
.cake { position: relative; font-size: min(3vw, 11px); width: 26em; height: 31em; margin-top: 6px; }
.cake-glow { position: absolute; left: 50%; top: 0; width: 34em; height: 22em; transform: translateX(-50%); background: radial-gradient(ellipse at 50% 40%, rgba(255, 214, 120, .55), transparent 65%); transition: opacity 1s; pointer-events: none; }
.cake.dark .cake-glow { opacity: 0; }
.plate { position: absolute; bottom: 0; left: -1.5em; right: -1.5em; height: 2.4em; border-radius: 50%; background: radial-gradient(ellipse at 50% 30%, #fff, #e6e0ee); box-shadow: 0 .8em 1.4em rgba(0,0,0,.18); }
.tier {
  position: absolute; left: 50%; transform: translateX(-50%);
  border-radius: 1.4em 1.4em .9em .9em;
  background:
    linear-gradient(90deg, rgba(0,0,0,.07), transparent 25%, transparent 70%, rgba(0,0,0,.1)),
    var(--cake);
  box-shadow: 0 .5em 1em -.4em rgba(0,0,0,.25);
}
.tier::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3.4em; border-radius: 1.4em 1.4em 0 0;
  background:
    radial-gradient(circle at 50% 0, #fff 1.2em, transparent 1.26em) .4em 1.5em / 2.6em 2em repeat-x,
    linear-gradient(#fff, #fff) 0 0 / 100% 1.6em no-repeat;
}
.tier-bottom { bottom: 1.2em; width: 26em; height: 10.5em; --cake: #ff8fb1; }
.tier-bottom::after {
  content: ''; position: absolute; inset: 3.6em 1.2em 1em;
  background:
    radial-gradient(circle, #ffd23f .25em, transparent .3em) 0 0 / 3.1em 2.3em,
    radial-gradient(circle, #7c4dff .22em, transparent .27em) 1.5em 1.1em / 3.4em 2.6em,
    radial-gradient(circle, #2ec4b6 .22em, transparent .27em) .8em 1.9em / 2.9em 2.4em;
  opacity: .9;
}
.tier-top { bottom: 11.2em; width: 19em; height: 8em; --cake: #ffb3c9; }
.age-tag { position: absolute; left: 0; right: 0; bottom: 1.2em; z-index: 2; font-family: var(--hand); font-weight: 700; font-size: 4.2em; color: #fff; text-shadow: 0 .05em 0 rgba(0,0,0,.15); line-height: 1; }
.candles { position: absolute; bottom: 19em; left: 50%; transform: translateX(-50%); display: flex; gap: var(--gap, 1.6em); align-items: flex-end; z-index: 3; }
.candle {
  position: relative; width: 1.5em; height: 6.2em; border-radius: .45em .45em .15em .15em;
  background: repeating-linear-gradient(135deg, #fff 0 .55em, var(--c) .55em 1.1em);
  box-shadow: inset -.3em 0 0 rgba(0,0,0,.08);
}
.candle::before { content: ''; position: absolute; inset: -4em -.9em -1em; } /* area sentuh lebih besar */
.candle::after { content: ''; position: absolute; bottom: 100%; left: 50%; width: .22em; height: .7em; margin-left: -.11em; background: #3b2b2b; border-radius: .1em; }
.flame {
  position: absolute; left: 50%; bottom: calc(100% + .45em); width: 1.5em; height: 2.7em; margin-left: -.75em;
  border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%;
  background: radial-gradient(ellipse at 50% 72%, #fff 0 18%, #ffe066 34%, #ff9f1c 66%, rgba(255,120,0,0) 72%);
  filter: drop-shadow(0 0 .7em #ffb703) drop-shadow(0 0 1.6em rgba(255,183,3,.6));
  transform-origin: 50% 90%;
  animation: flicker .12s ease-in-out infinite alternate;
  transition: opacity .3s, transform .3s;
}
.candle:nth-child(2n) .flame { animation-duration: .15s; }
.candle:nth-child(3n) .flame { animation-duration: .1s; }
.candle.out .flame { animation: none; opacity: 0; transform: scale(.2) translateY(-1em); }
.smoke { position: absolute; left: 50%; bottom: calc(100% + .6em); width: 1.2em; height: 1.2em; margin-left: -.6em; border-radius: 50%; background: rgba(230,230,230,.8); filter: blur(.35em); animation: smoke 1.6s ease-out forwards; pointer-events: none; }
.mic-on { animation: pulse 1s ease-in-out infinite; box-shadow: 0 0 0 4px rgba(255,255,255,.5) !important; }

/* ---------- Sorry ---------- */
.sorry-face { font-size: clamp(5rem, 24vw, 8.5rem); line-height: 1; animation: bob 2.2s ease-in-out infinite; filter: drop-shadow(0 12px 18px rgba(0,0,0,.18)); }
.sorry-face.happy { animation: pop .6s cubic-bezier(.2,.9,.3,1.5), bob 2.2s ease-in-out .6s infinite; }
.sorry-btns { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; align-items: center; min-height: 80px; margin-top: 6px; }
#yesBtn { transition: transform .35s cubic-bezier(.2,.9,.3,1.4), box-shadow .2s; }
#noBtn.flee { position: fixed; z-index: 35; margin: 0; transition: left .28s cubic-bezier(.2,.9,.3,1.2), top .28s cubic-bezier(.2,.9,.3,1.2), transform .3s, opacity .3s; }
#noBtn.poof { transform: scale(0) rotate(30deg); opacity: 0; }

/* ---------- Graduation cap ---------- */
.cap-btn { width: min(62vw, 250px); margin-top: 10px; }
.cap { width: 100%; height: auto; filter: drop-shadow(0 20px 24px rgba(0,0,0,.35)); animation: floaty 3s ease-in-out infinite; transform-origin: 50% 60%; }
.cap-btn.toss .cap { animation: toss 1.6s cubic-bezier(.25,.7,.35,1) forwards; }

/* ---------- Envelope ---------- */
.envelope { position: relative; display: block; width: min(84vw, 360px); aspect-ratio: 3 / 2; margin-top: 50px; animation: floaty 3.2s ease-in-out infinite; }
.envelope > span { position: absolute; display: block; }
.env-back { inset: 0; border-radius: 14px; background: color-mix(in srgb, var(--accent) 72%, #000); box-shadow: 0 24px 40px -18px rgba(0,0,0,.45); }
.env-letter {
  left: 6%; right: 6%; top: 7%; height: 86%; z-index: 1; border-radius: 10px;
  background: var(--paper); color: var(--ink);
  display: grid !important; place-items: center; padding: 10px;
  font-family: var(--hand); font-size: clamp(1.5rem, 6vw, 2rem); font-weight: 700;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
  transition: transform .9s .45s cubic-bezier(.2,.8,.2,1);
}
.env-front {
  inset: 0; z-index: 2; border-radius: 14px;
  background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 88%, #fff), var(--accent));
  clip-path: polygon(0 0, 50% 54%, 100% 0, 100% 100%, 0 100%);
}
.env-flap {
  left: 0; right: 0; top: 0; height: 62%; z-index: 3;
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 80%, #fff), color-mix(in srgb, var(--accent) 92%, #000));
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  border-radius: 14px 14px 0 0;
  transform-origin: 50% 0;
  transform: perspective(900px) rotateX(0deg);
  transition: transform .6s ease-in-out, z-index 0s .3s;
}
.seal { left: 50%; top: 56%; z-index: 4; font-size: clamp(2rem, 9vw, 2.6rem); transform: translate(-50%, -50%); transition: opacity .25s, transform .25s; filter: drop-shadow(0 4px 6px rgba(0,0,0,.25)); }
.envelope.open { animation: none; }
.envelope.open .seal { opacity: 0; transform: translate(-50%, -50%) scale(1.6); }
.envelope.open .env-flap { transform: perspective(900px) rotateX(180deg); z-index: 0; }
.envelope.open .env-letter { transform: translateY(-58%); }

/* ---------- Card ---------- */
.scene-card { display: flex; justify-content: flex-start; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding-top: max(76px, env(safe-area-inset-top)); }
.card {
  position: relative; width: min(100%, 580px); margin: auto;
  background: var(--paper); color: var(--ink);
  border-radius: 28px; text-align: center;
  padding: clamp(46px, 9vw, 60px) clamp(20px, 6vw, 46px) clamp(24px, 5vw, 36px);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.45);
  background-image:
    radial-gradient(circle at 0 0, color-mix(in srgb, var(--accent) 10%, transparent), transparent 40%),
    radial-gradient(circle at 100% 100%, color-mix(in srgb, var(--accent2) 10%, transparent), transparent 40%);
  animation: cardIn .9s cubic-bezier(.2,.9,.3,1.15) both;
  cursor: default;
}
.card::before { content: ''; position: absolute; inset: 10px; border: 2px dashed color-mix(in srgb, var(--accent) 30%, transparent); border-radius: 20px; pointer-events: none; }
.card-badge {
  position: absolute; left: 50%; top: 0; transform: translate(-50%, -50%);
  width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; font-size: 2.6rem;
  background: var(--paper); box-shadow: 0 10px 24px -8px rgba(0,0,0,.3), inset 0 0 0 4px color-mix(in srgb, var(--accent) 25%, transparent);
  animation: bob 2.6s ease-in-out infinite;
}
.card-title {
  font-size: clamp(1.75rem, 7vw, 2.5rem); line-height: 1.15; font-weight: 700; word-break: break-word;
  background: linear-gradient(135deg, var(--t1, var(--accent)), var(--t2, var(--accent2)));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.card-to { margin-top: 8px; font-size: 1.05rem; opacity: .7; word-break: break-word; }
.card-msg {
  font-family: var(--hand); font-size: clamp(1.45rem, 5vw, 1.75rem); line-height: 1.42; font-weight: 500;
  text-align: left; white-space: pre-wrap; word-break: break-word;
  margin: 22px 0 10px; min-height: 5em;
}
.cursor { display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -.12em; background: var(--accent); animation: blink 1s steps(1) infinite; }
.card-from { font-family: var(--hand); font-size: 1.45rem; text-align: right; line-height: 1.25; word-break: break-word; }
.card-from b { font-size: 1.8rem; color: color-mix(in srgb, var(--accent) 75%, var(--ink)); }
.card-from, .card-actions { opacity: 0; transform: translateY(12px); transition: opacity .6s, transform .6s; }
.card-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 26px; pointer-events: none; }
.card.done .card-from { opacity: 1; transform: none; }
.card.done .card-actions { opacity: 1; transform: none; transition-delay: .4s; pointer-events: auto; }
.skip-hint { font-size: .8rem; opacity: .45; margin-top: -20px; transition: opacity .3s; }
.card.done .skip-hint { opacity: 0; }

/* =========================================================
   Keyframes
   ========================================================= */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes wobble {
  0%, 55%, 100% { transform: rotate(0) translateY(0); }
  62% { transform: rotate(-7deg) translateY(-6%); }
  69% { transform: rotate(6deg) translateY(-8%); }
  76% { transform: rotate(-4deg) translateY(-3%); }
  83% { transform: rotate(2deg) translateY(0); }
  90% { transform: rotate(0); }
}
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.18, .86); } 70% { transform: scale(.94, 1.06); } 100% { transform: scale(1); } }
@keyframes flash { 25% { opacity: .95; } 100% { opacity: 0; transform: translate(-50%, -50%) scale(42); } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-10px) rotate(3deg); } }
.card-badge { animation-name: badgeBob; }
@keyframes badgeBob { 0%, 100% { transform: translate(-50%, -50%) rotate(-4deg); } 50% { transform: translate(-50%, -58%) rotate(4deg); } }
@keyframes wiggle { 0%, 80%, 100% { transform: rotate(0); } 85% { transform: rotate(-14deg); } 90% { transform: rotate(12deg); } 95% { transform: rotate(-6deg); } }
@keyframes pulse { 0%, 100% { opacity: .95; transform: scale(1); } 50% { opacity: .6; transform: scale(.97); } }
@keyframes flicker { from { transform: scale(1, 1) rotate(-2deg); } to { transform: scale(.92, 1.08) rotate(2deg); } }
@keyframes smoke { 0% { opacity: .9; transform: translate(0, 0) scale(.6); } 100% { opacity: 0; transform: translate(.8em, -6em) scale(2.6); } }
@keyframes toss {
  0% { transform: translateY(0) rotate(0); }
  20% { transform: translateY(20px) rotate(-8deg) scale(.95); }
  100% { transform: translateY(-130vh) rotate(720deg) scale(.7); }
}
@keyframes sceneIn { from { opacity: 0; transform: translateY(28px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes sceneOut { to { opacity: 0; transform: translateY(-20px) scale(.97); } }
@keyframes cardIn { from { opacity: 0; transform: translateY(60px) rotate(-3deg) scale(.9); } to { opacity: 1; transform: none; } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes bgShift { 0%, 100% { background-position: 0% 0%; } 50% { background-position: 100% 100%; } }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

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

/* Layar pendek (HP landscape) */
@media (max-height: 560px) {
  .scene { gap: 10px; padding-top: 60px; }
  .gift-wrap { width: min(40vh, 200px); }
  .gift { font-size: min(3vh, 15px); }
  .cake { font-size: min(1.9vh, 9px); }
  .sorry-face { font-size: 4rem; }
  .cap-btn { width: min(40vh, 200px); }
  .envelope { width: min(60vh, 300px); margin-top: 30px; }
}

/* =========================================================
   BOARD — kanvas foto, stiker & teks
   ========================================================= */
.board {
  position: relative; width: 100%; container-type: inline-size;
  border-radius: 4cqw; overflow: hidden; isolation: isolate;
  margin: 22px 0 8px; user-select: none; -webkit-user-select: none;
}
.board-paper {
  background:
    radial-gradient(color-mix(in srgb, var(--accent) 16%, transparent) 1px, transparent 1.4px) 0 0 / 5cqw 5cqw,
    linear-gradient(160deg, #fffdf8, #fff3ec);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.05);
}
.board-theme { background: linear-gradient(155deg, var(--bg1), var(--bg2) 55%, var(--bg3)); }
.board-soft { background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 14%, #fff), color-mix(in srgb, var(--accent2) 14%, #fff)); }
.board-dark { background: radial-gradient(circle at 50% 30%, #3a2f4a, #17121f); }
.board-clear { background: transparent; overflow: visible; }
.board-custom { background: var(--board-bg); }

.bi { position: absolute; transform-origin: 50% 50%; touch-action: none; }
.bi-in { position: relative; width: 100%; }
.board.reveal .bi-in { animation: biIn .7s cubic-bezier(.2,.9,.3,1.4) both; }
@keyframes biIn { from { opacity: 0; transform: scale(.3) rotate(-12deg); } to { opacity: 1; transform: none; } }

/* foto */
.bi-photo .ph { position: relative; width: 100%; aspect-ratio: var(--ar, 1); overflow: hidden; background: #eee; }
.bi-photo img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; -webkit-user-drag: none; }
.fr-none .bi-in { filter: drop-shadow(0 1.2cqw 1.6cqw rgba(0,0,0,.18)); }
.fr-rounded .ph { border-radius: calc(var(--w) * .09cqw); }
.fr-rounded .bi-in { filter: drop-shadow(0 1.2cqw 1.6cqw rgba(0,0,0,.2)); }
.fr-polaroid .bi-in, .fr-tape .bi-in {
  background: #fff; padding: 5% 5% 0; box-shadow: 0 1.2cqw 2.4cqw rgba(0,0,0,.22), 0 0 0 1px rgba(0,0,0,.04);
}
.fr-polaroid .bi-in { padding-bottom: 5%; }
.fr-polaroid .bi-in:not(:has(.cap)) { padding-bottom: 20%; }
.fr-tape .bi-in { padding-bottom: 5%; }
.fr-tape .bi-in::before, .fr-tape .bi-in::after {
  content: ''; position: absolute; top: -4%; width: 32%; height: 9%; z-index: 2;
  background: rgba(255, 236, 170, .75); box-shadow: 0 1px 2px rgba(0,0,0,.08);
}
.fr-tape .bi-in::before { left: -6%; transform: rotate(-32deg); }
.fr-tape .bi-in::after { right: -6%; transform: rotate(32deg); }
.bi .cap {
  font-family: var(--hand); font-weight: 700; color: #3a2f3d; text-align: center; line-height: 1.1;
  font-size: calc(var(--w) * .1cqw); padding: 3% 2% 4%; word-break: break-word;
}
.fr-round .ph, .fr-heart .ph { aspect-ratio: 1; }
.fr-round .ph { border-radius: 50%; box-shadow: 0 0 0 calc(var(--w) * .025cqw) #fff; }
.fr-round .bi-in { filter: drop-shadow(0 1.2cqw 1.6cqw rgba(0,0,0,.22)); }
.fr-heart .ph {
  background: transparent;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 92'%3E%3Cpath d='M50 18C50 2 30-3 16 4 1 12-3 32 7 48c9 15 28 28 43 44 15-16 34-29 43-44 10-16 6-36-9-44C70-3 50 2 50 18z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 92'%3E%3Cpath d='M50 18C50 2 30-3 16 4 1 12-3 32 7 48c9 15 28 28 43 44 15-16 34-29 43-44 10-16 6-36-9-44C70-3 50 2 50 18z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.fr-heart .bi-in { filter: drop-shadow(0 1.2cqw 1.6cqw rgba(0,0,0,.22)); }

/* stiker & teks */
.bi-sticker .bi-in { font-size: calc(var(--w) * .82cqw); line-height: 1.15; text-align: center; filter: drop-shadow(0 .8cqw 1cqw rgba(0,0,0,.18)); }
.bi-text .bi-in { font-size: calc(var(--fs, 7) * 1cqw); line-height: 1.15; text-align: center; white-space: pre-wrap; word-break: break-word; }
.font-hand { font-family: var(--hand); font-weight: 700; }
.font-bold { font-family: var(--font); font-weight: 700; letter-spacing: -.01em; }
.font-serif { font-family: 'Playfair Display', Georgia, serif; font-style: italic; font-weight: 600; }
.outlined { -webkit-text-stroke: calc(var(--fs, 7) * .06cqw) #fff; paint-order: stroke fill; text-shadow: 0 .6cqw 1.4cqw rgba(0,0,0,.18); }

/* =========================================================
   VIDEO YOUTUBE
   ========================================================= */
.video-block { margin: 22px 0 6px; }
.video-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: #000; box-shadow: 0 16px 30px -14px rgba(0,0,0,.5); }
.video-frame iframe, .video-frame > div { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-cap { font-family: var(--hand); font-size: 1.35rem; margin-top: 10px; opacity: .8; }
#ytMusic { position: fixed; left: -400px; top: 0; width: 200px; height: 200px; opacity: 0; pointer-events: none; }

/* =========================================================
   LOADING & PESAN KESALAHAN
   ========================================================= */
.loading { position: fixed; inset: 0; display: grid; place-items: center; z-index: 50; background: linear-gradient(155deg, #ff6fa5, #9b6bff); color: #fff; text-align: center; padding: 20px; }
.loading .big { font-size: 4rem; animation: bob 1.6s ease-in-out infinite; }
.loading p { margin-top: 12px; font-weight: 500; }
.loading .btn { margin-top: 18px; }

/* =========================================================
   LANDING
   ========================================================= */
.landing { min-height: 100dvh; padding: 0 16px 40px; background:
  radial-gradient(900px 520px at 0% -10%, rgba(255,111,165,.35), transparent 65%),
  radial-gradient(800px 500px at 100% 5%, rgba(155,107,255,.3), transparent 65%),
  #fffafc; }
.features { max-width: 900px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.feature { background: rgba(255,255,255,.85); border-radius: 22px; padding: 20px; box-shadow: 0 20px 40px -26px rgba(60,20,70,.4); }
.feature .fi { font-size: 2rem; }
.feature h3 { margin: 8px 0 4px; font-size: 1.1rem; }
.feature p { opacity: .75; line-height: 1.5; font-size: .95rem; }
.moments { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 760px; margin: 0 auto 40px; }
.moment { padding: .55em 1em; border-radius: 999px; color: #fff; font-weight: 600; background: linear-gradient(135deg, var(--o1), var(--o2)); box-shadow: 0 8px 18px -10px var(--o1); }
.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.foot a { color: inherit; }
.land-h { text-align: center; font-size: clamp(1.4rem, 5vw, 1.9rem); margin: 44px 0 16px; }
.landing .features + .land-h { margin-top: 56px; }
.landing .moments { margin-bottom: 20px; }

/* =========================================================
   Brand KasihRasa, ikon garis, latar foto
   ========================================================= */
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 1.3rem; letter-spacing: -.01em; }
.logo [data-logo], .logo[data-logo] { display: inline-flex; align-items: center; gap: 10px; }
.logo-mark { width: 34px; height: 34px; flex: none; }
.logo b { font-weight: 700; color: var(--accent); }
.ic { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }
.btn .ic { margin-right: -.1em; }
.fi .ic { width: 30px; height: 30px; color: var(--accent); }
.feature .fi { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 16px; background: color-mix(in srgb, var(--accent) 12%, #fff); }
.fab .ic { width: 22px; height: 22px; }
.hero h1 em { background: none; -webkit-background-clip: initial; background-clip: initial; color: var(--accent); }
.hero-badge { box-shadow: inset 0 0 0 1px rgba(0,0,0,.07); }

.spinner { width: 46px; height: 46px; margin: 0 auto; border-radius: 50%; border: 4px solid rgba(255,255,255,.35); border-top-color: #fff; animation: spin .9s linear infinite; }
.spinner.stop { animation: none; border-color: rgba(255,255,255,.5); }

/* latar foto kartu ucapan: foto di bawah, gradasi tema di atas dengan opacity */
.view-photo { position: absolute; inset: 0; background: center / cover no-repeat; opacity: 0; transition: opacity .8s ease; }
.view-photo + .view-bg { transition: opacity .8s ease; }

/* ---------- Beranda: topbar, cara pesan, FAQ, ajakan akhir, tombol WA ---------- */
.topbar { justify-content: space-between; gap: 12px; }
.topbar-r { display: flex; align-items: center; gap: 10px; }
.topbar .socials { flex-basis: auto; margin: 0; gap: 8px; }
.landing .social { width: 38px; height: 38px; color: var(--accent); background: #fff; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.landing .social svg { width: 20px; height: 20px; }
@media (max-width: 420px) { .topbar .socials { display: none; } }
.steps { max-width: 900px; margin: 0 auto; padding: 0; list-style: none; counter-reset: st; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.steps li { counter-increment: st; position: relative; background: rgba(255,255,255,.85); border-radius: 22px; padding: 20px 20px 18px; box-shadow: 0 20px 40px -26px rgba(60,20,70,.4); display: grid; gap: 4px; }
.steps li::before { content: counter(st); width: 34px; height: 34px; display: grid; place-items: center; border-radius: 12px; margin-bottom: 6px; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent2)); }
.steps b { font-size: 1.05rem; }
.steps span { opacity: .75; line-height: 1.5; font-size: .95rem; }
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { background: rgba(255,255,255,.85); border-radius: 18px; padding: 0 18px; box-shadow: 0 14px 30px -24px rgba(60,20,70,.4); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 28px 16px 0; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.4rem; font-weight: 400; color: var(--accent); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq p { padding: 0 0 16px; opacity: .78; line-height: 1.6; }
.cta-end { max-width: 760px; margin: 56px auto 10px; padding: 34px 22px; border-radius: 28px; text-align: center; color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent2)); box-shadow: 0 30px 60px -34px color-mix(in srgb, var(--accent) 80%, transparent); display: grid; gap: 10px; justify-items: center; }
.cta-end h2 { font-size: clamp(1.4rem, 5vw, 1.9rem); line-height: 1.2; }
.cta-end p { opacity: .9; margin-bottom: 8px; }
.cta-end .btn-primary { background: #fff; color: var(--accent); }
.cta-end .social { color: #fff; background: rgba(255,255,255,.18); box-shadow: inset 0 0 0 1px rgba(255,255,255,.4); }
.wa-float { position: fixed; right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); z-index: 40; width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #25d366; box-shadow: 0 12px 28px -10px rgba(0,0,0,.45); transition: transform .2s; }
.wa-float svg { width: 30px; height: 30px; }
@media (hover: hover) { .wa-float:hover { transform: scale(1.06); } }
.wa-float[hidden] { display: none; }
.landing .foot { padding-bottom: 84px; }

/* ---------- Beranda & halaman produk ---------- */
.top-nav { display: flex; gap: 4px; margin-right: auto; margin-left: 10px; }
.top-nav a { padding: .45em .8em; border-radius: 999px; font-weight: 600; font-size: .92rem; text-decoration: none; color: #5a4a5e; }
.top-nav a.on, .top-nav a:hover { background: #fff; color: var(--accent); box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); }
@media (max-width: 560px) {
  .topbar { flex-wrap: wrap; row-gap: 8px; }
  .top-nav { order: 3; width: 100%; margin: 0; justify-content: center; }
  .top-nav a { flex: 1; text-align: center; background: rgba(255,255,255,.6); }
}
.wa-float { display: none; }
body[data-mode="landing"] .wa-float:not([hidden]), body[data-mode="gallery"] .wa-float:not([hidden]) { display: grid; }
.gallery-page .foot { padding-bottom: 84px; }
.prod-cards { max-width: 900px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 16px; }
.prod-card { display: grid; grid-template-rows: auto 1fr; border-radius: 28px; overflow: hidden; background: #fff; color: var(--ink); text-decoration: none; box-shadow: 0 24px 50px -30px rgba(60,20,70,.55); transition: transform .25s; }
@media (hover: hover) { .prod-card:hover { transform: translateY(-4px); } }
.pc-art { position: relative; aspect-ratio: 16 / 9; display: grid; place-content: center; justify-items: center; gap: 6px; text-align: center; overflow: hidden; }
.pc-inv .pc-art { background: radial-gradient(circle at 50% 30%, #fffaf2, #f2e5cf 60%, #e3cfae); color: #8a6a3a; }
.pc-inv .pc-art b { font-family: 'Great Vibes', cursive; font-weight: 400; font-size: 2.6rem; line-height: 1; }
.pc-inv .pc-art i { width: 70px; height: 1px; background: currentColor; order: 2; }
.pc-inv .pc-art small { order: 3; letter-spacing: .15em; font-size: .78rem; text-transform: uppercase; }
.pc-card .pc-art { background: linear-gradient(150deg, #ff6fa5, #ff9a76 55%, #9b6bff); color: #fff; }
.pc-card .pc-art b { font-size: 1.5rem; }
.pc-card .pc-art small { opacity: .9; }
.pc-gift { width: 64px; height: 54px; border-radius: 8px; background: linear-gradient(90deg, transparent 43%, #ffd23f 43% 57%, transparent 57%), #ff5c8a; box-shadow: 0 -12px 0 -2px #ff3d7f, 0 14px 24px -10px rgba(0,0,0,.4); animation: wiggle 3s ease-in-out infinite; margin-bottom: 8px; }
.pc-body { display: grid; gap: 8px; padding: 18px 20px 20px; align-content: start; }
.pc-body > b { font-size: 1.3rem; }
.pc-body > span:not(.btn):not(.pc-tags) { opacity: .75; line-height: 1.5; }
.pc-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.pc-tags i { font-style: normal; font-size: .75rem; font-weight: 600; padding: .3em .7em; border-radius: 999px; background: #f4eef4; color: #5a4a5e; }
.pc-body .btn { justify-self: start; margin-top: 4px; }
.land-sub { max-width: 620px; margin: -6px auto 18px; text-align: center; opacity: .72; line-height: 1.55; }
.pkgs { max-width: 1000px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(270px, 100%), 1fr)); gap: 16px; align-items: stretch; }
.pkg { display: grid; grid-template-rows: auto auto 1fr auto; gap: 12px; padding: 0 0 20px; border-radius: 26px; overflow: hidden; background: #fff; box-shadow: 0 22px 46px -30px rgba(60,20,70,.55); }
.pkg-h { position: relative; display: grid; padding: 18px 20px 16px; color: #fff; background: linear-gradient(135deg, var(--p1), var(--p2)); }
.pkg-h small { font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; opacity: .85; }
.pkg-h b { font-size: 1.7rem; line-height: 1.1; }
.pkg-best { position: absolute; right: 14px; top: 16px; font-size: .72rem; font-weight: 700; padding: .3em .7em; border-radius: 999px; background: rgba(255,255,255,.25); }
.pkg-manis { --p1: #ff7eb6; --p2: #ff5c8a; } .pkg-seru { --p1: #38bdf8; --p2: #6366f1; } .pkg-spesial { --p1: #a855f7; --p2: #7e22ce; }
.pkg-klasik { --p1: #c9a46a; --p2: #8a6a3a; } .pkg-modern { --p1: #4b4b4b; --p2: #111; } .pkg-premium { --p1: #8e2c3a; --p2: #4a1020; }
.pkg-desc { padding: 0 20px; opacity: .78; line-height: 1.5; font-size: .95rem; }
.pkg ul { list-style: none; margin: 0; padding: 0 20px; display: grid; gap: 8px; align-content: start; }
.pkg li { position: relative; padding-left: 22px; line-height: 1.45; font-size: .92rem; }
.pkg li::before { content: ''; position: absolute; left: 2px; top: .45em; width: 10px; height: 6px; border-left: 2px solid var(--p2); border-bottom: 2px solid var(--p2); transform: rotate(-45deg); }
.pkg li.pkg-inc { padding-left: 0; font-weight: 600; opacity: .7; }
.pkg li.pkg-inc::before { display: none; }
.pkg .btn { justify-self: start; margin: 0 20px; }
.gal-head .land-h { margin-top: 56px; margin-bottom: 4px; }
.gal-pkgs { margin-top: 6px; }
.gal-pkgs a.on { background: var(--accent); }
.demo-empty { text-align: center; opacity: .65; padding: 20px; }
.dt-pkg { margin-left: 8px; vertical-align: 2px; font-size: .7rem; font-weight: 700; padding: .25em .65em; border-radius: 999px; background: #f3e8ff; color: #7e22ce; }
.p-hero { padding-bottom: 26px; }

/* ---------- pesan lewat DM ---------- */
.dm-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.cta-end .dm-row .btn-ghost { background: rgba(255,255,255,.16); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.6); }
.dm-float { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.dm-float svg { width: 28px; height: 28px; }
.pkg-nusantara { --p1: #b8844a; --p2: #5a2e14; }

/* ---------- latar foto berganti (memudar) ---------- */
.bg-slide { position: absolute; inset: 0; background: center / cover no-repeat; opacity: 0; transition: opacity 1.8s ease; pointer-events: none; }
.bg-slide.on { opacity: 1; animation: bgZoom 9s ease-out both; }
@keyframes bgZoom { from { transform: scale(1.1); } to { transform: scale(1.01); } }
@media (prefers-reduced-motion: reduce) { .bg-slide.on { animation: none; } }
.view-photo { overflow: hidden; }

/* ---------- harga paket & program mitra ---------- */
.pkg-price { margin-top: 4px; font-size: 1.05rem; font-weight: 700; opacity: .95; }
.pkg-btns { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 20px; }
.pkg-btns .btn { margin: 0; }
.mitra { max-width: 900px; margin: 56px auto 0; padding: 26px 24px; border-radius: 28px; background: #fff; display: grid; gap: 16px; align-items: center; box-shadow: 0 22px 46px -30px rgba(60,20,70,.55); }
@media (min-width: 760px) { .mitra { grid-template-columns: 1fr auto; padding: 30px 34px; } }
.mitra-kick { font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.mitra h2 { font-size: clamp(1.4rem, 5vw, 1.9rem); line-height: 1.2; margin: 4px 0 8px; }
.mitra p:last-child { opacity: .75; line-height: 1.55; }

/* ---------- gaya "Custom": pemilih warna & huruf (formulir /isi & Studio) ---------- */
.cpick-wrap { display: grid; gap: 10px; }
.cpick-wrap:empty { display: none; }
.cpick { display: grid; gap: 10px; padding: 14px; border-radius: 18px; background: #fdf8f3; box-shadow: inset 0 0 0 1.5px #f0e4e0; }
.cpick-colors { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cpick-color { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 8px 10px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px #f0e4e0; cursor: pointer; }
.cpick-color input { grid-row: span 2; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 12px; background: none; cursor: pointer; }
.cpick-color input::-webkit-color-swatch-wrapper { padding: 0; }
.cpick-color input::-webkit-color-swatch { border: 0; border-radius: 12px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.cpick-color span { font-size: .86rem; font-weight: 600; }
.cpick-color small { font-size: .74rem; color: #8a7a7e; font-variant-numeric: tabular-nums; }
.cpick-h { margin: 2px 0 0; font-size: .86rem; font-weight: 600; color: #7c6a6e; }
.cpick-fonts { display: flex; flex-wrap: wrap; gap: 6px; }
.cpick-font { padding: .4em .9em; border-radius: 999px; border: 0; background: #fff; box-shadow: inset 0 0 0 1.5px #f0e4e0; font-size: 1.02rem; color: #2e1a1f; cursor: pointer; }
.cpick-font[aria-pressed="true"] { background: #4a1420; color: #fff; box-shadow: none; }
@media (max-width: 420px) { .cpick-colors { grid-template-columns: 1fr; } }
/* huruf judul pilihan pembeli di kartu */
.has-cfont .card-title, .has-cfont .scene-title { font-family: var(--cfont) !important; }
