/* =====================================================================
   MELATI — Classic Floral Wedding
   Kertas gading, tinta hangat, emas tua, ornamen melati.
   ===================================================================== */

.tpl-melati {
    --bg: #fbf6ea;
    --paper: #fbf6ea;
    --paper-2: #f4ecda;
    --card: #fffdf7;
    --ink: #3b3225;
    --ink-soft: #5b4f3c;
    --muted: #8d7d62;
    --accent: #a8843b;
    --accent-2: #d8bf8a;
    --accent-soft: rgba(168, 132, 59, .10);
    --line: rgba(168, 132, 59, .26);
    --field-bg: rgba(255, 253, 247, .6);
    --field-radius: 2px;
    --btn-ink: #fffdf7;
    --btn-radius: 2px;
    --dock-bg: rgba(43, 36, 25, .86);
    --dock-ink: #f6ecd8;
    --display: 'Cormorant Garamond', 'Times New Roman', Georgia, serif;
    --script: 'Great Vibes', 'Cormorant Garamond', cursive;
    --body: 'DM Sans', ui-sans-serif, system-ui, sans-serif;
    background-color: var(--bg);
    color: var(--ink);
}

.tpl-melati ::selection { background: var(--accent); color: #fffdf7; }

.tpl-melati .tpl-main {
    background:
        radial-gradient(1200px 600px at 50% -100px, rgba(216, 191, 138, .22), transparent 70%),
        radial-gradient(900px 500px at -10% 40%, rgba(168, 132, 59, .07), transparent 65%),
        linear-gradient(180deg, #fbf6ea, #f8f1e1 45%, #fbf6ea);
    overflow: hidden;
}

.tpl-melati .tpl-kicker { color: var(--accent); }
.tpl-melati .tpl-title {
    font-family: var(--display);
    font-size: clamp(2.15rem, 5.4vw, 3.4rem);
    font-weight: 400;
    letter-spacing: .015em;
    color: var(--ink);
}
.tpl-melati .tpl-rule {
    position: relative;
    width: 120px;
    height: 1px;
    margin: 26px auto;
    background: linear-gradient(90deg, transparent, var(--accent-2), transparent);
    opacity: 1;
}
.tpl-melati .tpl-rule::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 7px;
    height: 7px;
    border: 1px solid var(--accent);
    transform: translate(-50%, -50%) rotate(45deg);
    background: var(--bg);
}

/* ---------------------------------------------------------------------
   Cover
   --------------------------------------------------------------------- */
.tpl-melati .mel-cover { background: #221b12; color: #fbf6ea; }

.tpl-melati .mel-cover-media img {
    object-position: center 32%;
    transform: scale(1.04);
    filter: saturate(.82) contrast(1.02);
}

.tpl-melati .mel-cover-veil {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        radial-gradient(120% 70% at 50% 42%, rgba(20, 15, 8, .10), rgba(20, 15, 8, .56) 78%),
        linear-gradient(180deg, rgba(20, 15, 8, .55), rgba(20, 15, 8, .18) 38%, rgba(20, 15, 8, .64));
}

.tpl-melati .mel-cover-frame {
    width: min(540px, 100%);
    padding: clamp(28px, 6vw, 54px) clamp(20px, 5vw, 46px);
    border: 1px solid rgba(246, 236, 216, .62);
    outline: 1px solid rgba(246, 236, 216, .24);
    outline-offset: 9px;
    background: rgba(27, 21, 13, .20);
    backdrop-filter: blur(2.5px);
    -webkit-backdrop-filter: blur(2.5px);
    color: #fbf6ea;
    text-align: center;
}

.tpl-melati .mel-frame-corner {
    position: absolute;
    width: 26px;
    height: 26px;
    border-color: rgba(246, 236, 216, .86);
}
.tpl-melati .mel-frame-corner.tl { top: 7px; left: 7px; border-top: 1px solid; border-left: 1px solid; }
.tpl-melati .mel-frame-corner.tr { top: 7px; right: 7px; border-top: 1px solid; border-right: 1px solid; }
.tpl-melati .mel-frame-corner.bl { bottom: 7px; left: 7px; border-bottom: 1px solid; border-left: 1px solid; }
.tpl-melati .mel-frame-corner.br { bottom: 7px; right: 7px; border-bottom: 1px solid; border-right: 1px solid; }

.tpl-melati .mel-floral {
    position: absolute;
    z-index: 2;
    width: clamp(90px, 18vw, 150px);
    color: rgba(246, 236, 216, .42);
    pointer-events: none;
}
.tpl-melati .mel-floral svg { width: 100%; height: auto; }
.tpl-melati .mel-floral-tl { top: 0; left: 0; }
.tpl-melati .mel-floral-br { right: 0; bottom: 0; transform: rotate(180deg); }

.tpl-melati .mel-cover-eyebrow {
    margin: 0;
    font-family: var(--body);
    font-size: clamp(.52rem, 1.4vw, .64rem);
    font-weight: 500;
    letter-spacing: .42em;
    text-transform: uppercase;
    color: rgba(251, 246, 234, .82);
}

.tpl-melati .mel-cover-ornament {
    margin: 12px 0 4px;
    font-size: 1rem;
    color: #e0c793;
    letter-spacing: .2em;
}

.tpl-melati .mel-cover-names {
    margin: 0;
    font-family: var(--script);
    font-weight: 400;
    font-size: clamp(2.85rem, 10.5vw, 4.9rem);
    line-height: 1.02;
    letter-spacing: .01em;
    color: #fdf8ee;
    text-shadow: 0 2px 22px rgba(0, 0, 0, .28);
}
.tpl-melati .mel-cover-names span { display: block; }
.tpl-melati .mel-cover-names em {
    display: block;
    margin: .02em 0;
    font-family: var(--display);
    font-style: italic;
    font-size: .44em;
    font-weight: 300;
    color: #dfc38b;
}

.tpl-melati .mel-cover-date {
    margin: 18px 0 0;
    padding-top: 16px;
    border-top: 1px solid rgba(246, 236, 216, .32);
    font-family: var(--body);
    font-size: clamp(.6rem, 1.7vw, .72rem);
    letter-spacing: .38em;
    text-transform: uppercase;
    color: rgba(251, 246, 234, .9);
}

.tpl-melati .mel-guest { margin-top: 22px; color: rgba(251, 246, 234, .88); }
.tpl-melati .mel-guest span { color: rgba(251, 246, 234, .6); }
.tpl-melati .mel-guest strong {
    font-family: var(--display);
    font-size: clamp(1.1rem, 3.4vw, 1.4rem);
    color: #fdf8ee;
}

.tpl-melati .mel-open {
    margin-top: 24px;
    background: #fbf6ea;
    border-color: #fbf6ea;
    color: #4a3b22;
    box-shadow: 0 16px 36px rgba(0, 0, 0, .28);
}
.tpl-melati .mel-open:hover { background: #fffdf7; }

.tpl-melati .mel-cover-scroll {
    color: rgba(251, 246, 234, .55);
    font-size: .52rem;
}

/* ---------------------------------------------------------------------
   Hero / pembukaan
   --------------------------------------------------------------------- */
.tpl-melati .mel-hero {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 82vh;
    padding: clamp(90px, 13vw, 150px) 24px clamp(70px, 9vw, 110px);
    text-align: center;
}
.tpl-melati .mel-hero::before,
.tpl-melati .mel-hero::after {
    content: '';
    position: absolute;
    width: 1px;
    height: 54px;
    background: linear-gradient(180deg, transparent, var(--accent-2));
    left: 50%;
}
.tpl-melati .mel-hero::before { top: 34px; }
.tpl-melati .mel-hero::after { bottom: 26px; transform: rotate(180deg); }

.tpl-melati .mel-hero-inner { width: min(720px, 100%); }
.tpl-melati .mel-arabic {
    margin: 0 0 18px;
    font-family: 'Traditional Arabic', 'Scheherazade New', 'Amiri', serif;
    font-size: clamp(1.35rem, 4vw, 1.9rem);
    color: var(--accent);
    line-height: 1.9;
}
.tpl-melati .mel-eyebrow {
    margin: 0;
    font-family: var(--body);
    font-size: .64rem;
    font-weight: 500;
    letter-spacing: .34em;
    text-transform: uppercase;
    color: var(--accent);
}
.tpl-melati .mel-hero-text {
    margin: 26px auto 0;
    max-width: 580px;
    font-family: var(--display);
    font-size: clamp(1.02rem, 2.4vw, 1.18rem);
    line-height: 1.9;
    color: var(--ink-soft);
}
.tpl-melati .mel-hero-label {
    margin: 8px 0 0;
    font-family: var(--body);
    font-size: .6rem;
    letter-spacing: .3em;
    text-transform: uppercase;
    color: var(--muted);
}
.tpl-melati .mel-hero-names {
    margin: 14px 0 0;
    font-family: var(--script);
    font-size: clamp(2.6rem, 8vw, 4.2rem);
    font-weight: 400;
    line-height: 1.08;
    color: var(--ink);
}
.tpl-melati .mel-hero-names em {
    font-family: var(--display);
    font-style: italic;
    color: var(--accent);
    font-size: .72em;
}
.tpl-melati .mel-hero-date {
    margin: 12px 0 0;
    font-family: var(--body);
    font-size: .68rem;
    letter-spacing: .3em;
    text-transform: uppercase;
    color: var(--muted);
}
.tpl-melati .mel-scroll-hint {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin-top: 38px;
    font-family: var(--body);
    font-size: .56rem;
    letter-spacing: .26em;
    text-transform: uppercase;
    color: var(--accent);
    text-decoration: none;
}
.tpl-melati .mel-scroll-hint .tpl-icon { width: 16px; height: 16px; animation: mel-bob 2.4s ease-in-out infinite; }

@keyframes mel-bob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

/* ---------------------------------------------------------------------
   Section heading
   --------------------------------------------------------------------- */
.tpl-melati .mel-head { margin-bottom: clamp(36px, 6vw, 58px); }
.tpl-melati .mel-head .tpl-title { margin-top: 12px; }

/* ---------------------------------------------------------------------
   Couple
   --------------------------------------------------------------------- */
.tpl-melati .mel-couple { background: linear-gradient(180deg, rgba(244, 236, 218, .5), transparent 60%); }
.tpl-melati .mel-couple-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: clamp(18px, 4vw, 42px);
}

.tpl-melati .mel-person { text-align: center; }
.tpl-melati .mel-portrait {
    width: min(230px, 72%);
    margin-inline: auto;
    padding: 9px;
    border: 1px solid var(--accent-2);
    border-radius: 50%;
    background: var(--card);
}
.tpl-melati .mel-portrait img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 50%;
    filter: saturate(.92);
}
.tpl-melati .mel-person h3 {
    margin: 22px 0 0;
    font-family: var(--display);
    font-size: clamp(1.55rem, 3.5vw, 2.05rem);
    font-weight: 500;
    line-height: 1.2;
}
.tpl-melati .mel-nick {
    margin: 5px 0 0;
    font-family: var(--script);
    font-size: clamp(1.45rem, 3.6vw, 1.9rem);
    color: var(--accent);
    line-height: 1;
}
.tpl-melati .mel-parents {
    margin: 14px auto 0;
    max-width: 250px;
    font-size: .8rem;
    line-height: 1.8;
    color: var(--muted);
}
.tpl-melati .mel-social {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    font-size: .7rem;
    letter-spacing: .06em;
    color: var(--accent);
    text-decoration: none;
}
.tpl-melati .mel-social .tpl-icon { width: 14px; height: 14px; }

.tpl-melati .mel-amp {
    font-family: var(--script);
    font-size: clamp(3rem, 8vw, 5rem);
    line-height: 1;
    color: var(--accent-2);
}

/* ---------------------------------------------------------------------
   Quote
   --------------------------------------------------------------------- */
.tpl-melati .mel-quote {
    background:
        linear-gradient(180deg, rgba(168, 132, 59, .06), transparent),
        radial-gradient(600px 300px at 50% 50%, rgba(216, 191, 138, .18), transparent 70%);
}
.tpl-melati .mel-quote-inner {
    max-width: 760px;
    padding: 0 8px;
    text-align: center;
}
.tpl-melati .mel-quote-mark {
    display: block;
    font-family: var(--display);
    font-size: 4.6rem;
    line-height: .6;
    color: var(--accent-2);
}
.tpl-melati .mel-quote blockquote {
    margin: 0;
    font-family: var(--display);
    font-size: clamp(1.14rem, 2.9vw, 1.5rem);
    font-style: italic;
    font-weight: 300;
    line-height: 1.85;
    color: var(--ink-soft);
}
.tpl-melati .mel-quote cite {
    display: block;
    margin-top: 20px;
    font-family: var(--body);
    font-size: .62rem;
    font-style: normal;
    letter-spacing: .28em;
    text-transform: uppercase;
    color: var(--accent);
}

/* ---------------------------------------------------------------------
   Countdown
   --------------------------------------------------------------------- */
.tpl-melati .mel-countdown-section {
    background: linear-gradient(180deg, rgba(244, 236, 218, .55), rgba(251, 246, 234, 0));
}
.tpl-melati .mel-countdown-date {
    margin: 12px 0 0;
    font-family: var(--body);
    font-size: .64rem;
    letter-spacing: .3em;
    text-transform: uppercase;
    color: var(--muted);
}
.tpl-melati .mel-countdown {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(8px, 2vw, 18px);
    max-width: 640px;
    margin-inline: auto;
}
.tpl-melati .mel-count {
    padding: clamp(14px, 2.6vw, 24px) 6px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, #fffdf8, #f6eedc);
    box-shadow: 0 12px 30px rgba(91, 79, 60, .08);
    text-align: center;
}
.tpl-melati .mel-count strong {
    display: block;
    font-family: var(--display);
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    font-weight: 400;
    line-height: 1;
    color: var(--accent);
    font-variant-numeric: tabular-nums;
}
.tpl-melati .mel-count span {
    display: block;
    margin-top: 8px;
    font-family: var(--body);
    font-size: .52rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--muted);
}

/* ---------------------------------------------------------------------
   Events
   --------------------------------------------------------------------- */
.tpl-melati .mel-event-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(16px, 3vw, 28px);
    max-width: 880px;
    margin-inline: auto;
}
.tpl-melati .mel-event {
    position: relative;
    padding: clamp(28px, 4vw, 42px) clamp(20px, 3vw, 32px);
    border: 1px solid var(--line);
    background: var(--card);
    box-shadow: 0 18px 44px rgba(91, 79, 60, .08);
    text-align: center;
}
.tpl-melati .mel-event::before {
    content: '';
    position: absolute;
    inset: 7px;
    border: 1px solid rgba(168, 132, 59, .14);
    pointer-events: none;
}
.tpl-melati .mel-event-icon {
    display: inline-grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 1px solid var(--accent-2);
    border-radius: 50%;
    color: var(--accent);
}
.tpl-melati .mel-event-icon .tpl-icon { width: 19px; height: 19px; }
.tpl-melati .mel-event h3 {
    margin: 16px 0 0;
    font-family: var(--display);
    font-size: clamp(1.45rem, 3.2vw, 1.85rem);
    font-weight: 500;
}
.tpl-melati .mel-event-date {
    margin: 8px 0 0;
    font-family: var(--body);
    font-size: .68rem;
    font-weight: 500;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--accent);
}
.tpl-melati .mel-event-time {
    margin: 4px 0 0;
    font-size: .78rem;
    color: var(--muted);
}
.tpl-melati .mel-event-line {
    display: block;
    width: 44px;
    height: 1px;
    margin: 16px auto;
    background: var(--accent-2);
}
.tpl-melati .mel-event-venue {
    margin: 0;
    font-family: var(--display);
    font-size: 1.16rem;
    font-weight: 500;
}
.tpl-melati .mel-event-address {
    margin: 6px 0 0;
    font-size: .78rem;
    line-height: 1.7;
    color: var(--muted);
}
.tpl-melati .mel-map-link { margin-top: 18px; }
.tpl-melati .mel-live {
    max-width: 620px;
    margin: 34px auto 0;
    text-align: center;
}
.tpl-melati .mel-live p { margin: 0 0 14px; font-size: .84rem; color: var(--muted); }

/* ---------------------------------------------------------------------
   Story timeline
   --------------------------------------------------------------------- */
.tpl-melati .mel-story { background: linear-gradient(180deg, transparent, rgba(244, 236, 218, .5), transparent); }
.tpl-melati .mel-timeline {
    position: relative;
    max-width: 720px;
    margin-inline: auto;
    padding-left: 30px;
}
.tpl-melati .mel-timeline::before {
    content: '';
    position: absolute;
    top: 6px;
    bottom: 6px;
    left: 7px;
    width: 1px;
    background: linear-gradient(180deg, transparent, var(--accent-2) 12%, var(--accent-2) 88%, transparent);
}
.tpl-melati .mel-timeline-item {
    position: relative;
    padding: 0 0 30px 22px;
}
.tpl-melati .mel-timeline-item:last-child { padding-bottom: 0; }
.tpl-melati .mel-timeline-dot {
    position: absolute;
    top: 7px;
    left: -30px;
    width: 15px;
    height: 15px;
    border: 1px solid var(--accent);
    background: var(--bg);
    transform: rotate(45deg);
}
.tpl-melati .mel-timeline-date {
    margin: 0;
    font-family: var(--body);
    font-size: .62rem;
    letter-spacing: .24em;
    text-transform: uppercase;
    color: var(--accent);
}
.tpl-melati .mel-timeline-item h3 {
    margin: 6px 0 0;
    font-family: var(--display);
    font-size: 1.45rem;
    font-weight: 500;
}
.tpl-melati .mel-timeline-item p:last-child {
    margin: 6px 0 0;
    font-size: .86rem;
    line-height: 1.8;
    color: var(--muted);
}

/* ---------------------------------------------------------------------
   Gallery
   --------------------------------------------------------------------- */
.tpl-melati .mel-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 180px;
    gap: 12px;
}
.tpl-melati .mel-shot {
    position: relative;
    overflow: hidden;
    padding: 0;
    border: 0;
    background: var(--paper-2);
    cursor: zoom-in;
}
.tpl-melati .mel-shot.is-tall { grid-row: span 2; }
.tpl-melati .mel-shot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .8s cubic-bezier(.2, .7, .2, 1), filter .4s ease;
    filter: saturate(.94);
}
.tpl-melati .mel-shot::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255, 253, 247, .35);
    margin: 7px;
    opacity: 0;
    transition: opacity .3s ease;
}
.tpl-melati .mel-shot:hover img { transform: scale(1.06); }
.tpl-melati .mel-shot:hover::after { opacity: 1; }
.tpl-melati .mel-hashtag {
    margin: 26px 0 0;
    font-family: var(--script);
    font-size: clamp(1.7rem, 4.4vw, 2.4rem);
    text-align: center;
    color: var(--accent);
}

/* ---------------------------------------------------------------------
   Gifts
   --------------------------------------------------------------------- */
.tpl-melati .mel-gifts { background: linear-gradient(180deg, rgba(244, 236, 218, .55), transparent 70%); }
.tpl-melati .mel-gift-copy {
    max-width: 540px;
    margin: 18px auto 0;
    font-size: .85rem;
    line-height: 1.8;
    color: var(--muted);
}
.tpl-melati .mel-gift-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    max-width: 720px;
    margin-inline: auto;
}
.tpl-melati .mel-gift {
    padding: 26px 22px;
    border: 1px solid var(--line);
    background: var(--card);
    text-align: center;
    box-shadow: 0 14px 36px rgba(91, 79, 60, .07);
}
.tpl-melati .mel-gift-bank {
    font-family: var(--body);
    font-size: .64rem;
    font-weight: 600;
    letter-spacing: .24em;
    text-transform: uppercase;
    color: var(--accent);
}
.tpl-melati .mel-gift-number {
    margin: 10px 0 0;
    font-family: var(--display);
    font-size: clamp(1.3rem, 3.4vw, 1.7rem);
    letter-spacing: .04em;
    color: var(--ink);
    word-break: break-all;
}
.tpl-melati .mel-gift-name { margin: 4px 0 16px; font-size: .76rem; color: var(--muted); }
.tpl-melati .mel-copy { width: 100%; }

/* ---------------------------------------------------------------------
   RSVP / wishes
   --------------------------------------------------------------------- */
.tpl-melati .mel-rsvp { background: radial-gradient(700px 400px at 50% 0, rgba(216, 191, 138, .2), transparent 70%); }
.tpl-melati .mel-form-wrap { max-width: 660px; }
.tpl-melati .mel-form-copy {
    max-width: 480px;
    margin: 16px auto 0;
    font-size: .85rem;
    line-height: 1.8;
    color: var(--muted);
}
.tpl-melati .mel-form-card {
    padding: clamp(24px, 5vw, 42px);
    border: 1px solid var(--line);
    background: rgba(255, 253, 247, .9);
    box-shadow: 0 22px 60px rgba(91, 79, 60, .1);
}
.tpl-melati .mel-form-card::before {
    content: '';
    display: block;
    width: 40px;
    height: 1px;
    margin: 0 auto 26px;
    background: var(--accent-2);
}
.tpl-melati .tw-label { color: var(--muted); }
.tpl-melati .tw-btn { border-radius: 2px; }

/* ---------------------------------------------------------------------
   Closing
   --------------------------------------------------------------------- */
.tpl-melati .mel-closing {
    position: relative;
    padding: clamp(90px, 13vw, 150px) 24px clamp(90px, 10vw, 120px);
    background:
        radial-gradient(700px 380px at 50% 0, rgba(168, 132, 59, .14), transparent 70%),
        linear-gradient(180deg, transparent, #f4ecda);
    text-align: center;
}
.tpl-melati .mel-closing-inner { width: min(680px, 100%); margin-inline: auto; }
.tpl-melati .mel-closing-crest {
    display: block;
    font-size: 1.7rem;
    color: var(--accent);
}
.tpl-melati .mel-closing-text {
    margin: 24px 0 0;
    font-family: var(--display);
    font-size: clamp(1rem, 2.4vw, 1.16rem);
    font-style: italic;
    line-height: 1.9;
    color: var(--ink-soft);
}
.tpl-melati .mel-closing-label {
    margin: 26px 0 0;
    font-family: var(--body);
    font-size: .62rem;
    letter-spacing: .24em;
    text-transform: uppercase;
    color: var(--muted);
}
.tpl-melati .mel-closing-names {
    margin: 18px 0 0;
    font-family: var(--script);
    font-size: clamp(2.5rem, 7vw, 3.6rem);
    font-weight: 400;
    color: var(--ink);
}
.tpl-melati .mel-closing-names em { font-family: var(--display); color: var(--accent); font-style: italic; font-size: .7em; }
.tpl-melati .mel-closing-date {
    margin: 8px 0 0;
    font-family: var(--body);
    font-size: .62rem;
    letter-spacing: .3em;
    text-transform: uppercase;
    color: var(--muted);
}
.tpl-melati .mel-closing-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}
.tpl-melati .mel-closing-actions .tpl-cta { padding: 12px 18px; }
.tpl-melati .mel-credit {
    margin: 42px 0 0;
    font-size: .66rem;
    letter-spacing: .06em;
    color: var(--muted);
}
.tpl-melati .mel-credit strong { color: var(--ink-soft); font-weight: 600; }

/* ---------------------------------------------------------------------
   Kelopak melati (animasi khas template)
   --------------------------------------------------------------------- */
.mel-petals {
    position: fixed;
    inset: 0;
    z-index: 90;
    overflow: hidden;
    pointer-events: none;
}

.mel-petal {
    position: absolute;
    top: -6vh;
    width: 9px;
    height: 13px;
    border-radius: 62% 38% 56% 44%;
    background: radial-gradient(circle at 35% 30%, #fffdf6, #ecdcb8 72%);
    box-shadow: 0 0 6px rgba(255, 251, 240, .5);
    opacity: 0;
    animation: mel-fall linear infinite;
}

@keyframes mel-fall {
    0% { transform: translate3d(0, -6vh, 0) rotate(0deg); opacity: 0; }
    8% { opacity: .85; }
    50% { transform: translate3d(var(--mel-drift, 30px), 52vh, 0) rotate(280deg); }
    100% { transform: translate3d(var(--mel-drift-end, -20px), 108vh, 0) rotate(620deg); opacity: 0; }
}

/* ---------------------------------------------------------------------
   Responsive
   --------------------------------------------------------------------- */
@media (max-width: 760px) {
    .tpl-melati .mel-couple-grid { grid-template-columns: 1fr; gap: 26px; }
    .tpl-melati .mel-amp { margin: -4px 0; }
    .tpl-melati .mel-portrait { width: min(210px, 64%); }
    .tpl-melati .mel-event-grid,
    .tpl-melati .mel-gift-grid { grid-template-columns: 1fr; }
    .tpl-melati .mel-gallery { grid-auto-rows: 150px; gap: 9px; }
    .tpl-melati .mel-timeline { padding-left: 24px; }
}

@media (max-width: 420px) {
    .tpl-melati .mel-countdown { grid-template-columns: repeat(4, 1fr); gap: 6px; }
    .tpl-melati .mel-count { padding: 12px 4px; }
    .tpl-melati .mel-count span { font-size: .44rem; letter-spacing: .12em; }
    .tpl-melati .mel-gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 140px; }
    .tpl-melati .mel-shot.is-tall { grid-row: span 1; }
}

/* Inisial mempelai (pengganti foto bila tidak diunggah) */
.tpl-melati .mel-initials {
    display: grid;
    place-items: center;
    width: 100%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle at 32% 26%, #fffdf8, #ece2d0 72%);
    color: var(--accent, #8e6d2f);
    font-family: var(--display, serif);
    font-size: clamp(2.4rem, 8vw, 3.4rem);
    font-weight: 500;
    letter-spacing: .06em;
    line-height: 1;
}

/* Kontrol musik: ikon berdenyut lembut saat diputar */
.tpl-melati [data-music-toggle].is-playing .tpl-icon { animation: mel-music-pulse 1.6s ease-in-out infinite; }
@keyframes mel-music-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.22); opacity: .72; }
}
