/* =====================================================================
   NIRMALA — Cinematic Dark Wedding
   Hitam kebiruan, perak, letterbox, dan film strip.
   ===================================================================== */

.tpl-nirmala {
    --bg: #0b0f14;
    --paper: #0b0f14;
    --paper-2: #10161e;
    --card: #131a23;
    --ink: #e9eef4;
    --ink-soft: #c3cfda;
    --muted: #8494a3;
    --accent: #a9bccd;
    --accent-2: #dce7f0;
    --accent-soft: rgba(169, 188, 205, .1);
    --line: rgba(169, 188, 205, .2);
    --field-bg: rgba(255, 255, 255, .035);
    --field-radius: 2px;
    --btn-ink: #0b0f14;
    --btn-radius: 999px;
    --dock-bg: rgba(15, 21, 28, .94);
    --dock-ink: #dce7f0;
    --display: 'Cormorant Garamond', Georgia, serif;
    --body: 'Jost', 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--ink);
    font-size: 16px;
}

.tpl-nirmala .nir-main { overflow: hidden; background: var(--bg); }

.tpl-nirmala .nir-wrap {
    position: relative;
    z-index: 2;
    width: min(1100px, calc(100% - 40px));
    margin-inline: auto;
}
.tpl-nirmala .nir-narrow { width: min(700px, calc(100% - 40px)); }

.tpl-nirmala .nir-grain {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: .5;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='.22'/%3E%3C/svg%3E");
    mix-blend-mode: overlay;
}

.tpl-nirmala .nir-chapter {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-family: var(--body);
    font-size: .56rem;
    font-weight: 500;
    letter-spacing: .3em;
    text-transform: uppercase;
    color: var(--muted);
}
.tpl-nirmala .nir-chapter strong {
    font-family: var(--display);
    font-size: .95rem;
    font-weight: 500;
    letter-spacing: .1em;
    color: var(--accent-2);
}
.tpl-nirmala .nir-chapter span:last-child { color: var(--accent); }
.tpl-nirmala .nir-chapter::after {
    content: '';
    flex: 1;
    height: 1px;
    margin-left: 8px;
    background: linear-gradient(90deg, var(--line), transparent);
}

.tpl-nirmala .nir-title {
    margin: 14px 0 0;
    font-family: var(--display);
    font-size: clamp(2rem, 5.6vw, 3.3rem);
    font-weight: 400;
    line-height: 1.02;
    letter-spacing: .01em;
}

.tpl-nirmala .nir-sub {
    margin: 10px 0 0;
    font-family: var(--body);
    font-size: .76rem;
    font-weight: 300;
    letter-spacing: .06em;
    color: var(--muted);
}

.tpl-nirmala .nir-head { margin-bottom: clamp(32px, 5vw, 54px); }

.tpl-nirmala .nir-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 22px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: transparent;
    color: var(--accent-2);
    font-family: var(--body);
    font-size: .56rem;
    font-weight: 500;
    letter-spacing: .22em;
    text-transform: uppercase;
    text-decoration: none;
    transition: border-color .25s ease, background .25s ease, color .25s ease;
}
.tpl-nirmala .nir-link:hover { border-color: var(--accent); background: var(--accent); color: var(--btn-ink); }
.tpl-nirmala .nir-link-solid { background: var(--accent-2); border-color: var(--accent-2); color: var(--btn-ink); }
.tpl-nirmala .nir-link-solid:hover { background: #fff; border-color: #fff; }
.tpl-nirmala .nir-link .tpl-icon { width: 13px; height: 13px; }

/* ---------------------------------------------------------------------
   Cover
   --------------------------------------------------------------------- */
.tpl-nirmala .nir-cover { background: #070a0e; }

.tpl-nirmala .nir-cover-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(.55) contrast(1.08) brightness(.72) sepia(.08) hue-rotate(175deg);
    transform: scale(1.05);
    animation: nir-kenburns 22s ease-in-out infinite alternate;
}
@keyframes nir-kenburns {
    0% { transform: scale(1.05) translate3d(0, 0, 0); }
    100% { transform: scale(1.16) translate3d(-1.6%, -1.2%, 0); }
}

.tpl-nirmala .nir-cover-grade {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(180deg, rgba(7, 10, 14, .72), rgba(7, 10, 14, .18) 40%, rgba(7, 10, 14, .82) 100%),
        radial-gradient(circle at 50% 45%, rgba(169, 188, 205, .12), transparent 60%);
}

.tpl-nirmala .nir-letterbox {
    position: absolute;
    left: 0;
    right: 0;
    z-index: 3;
    height: clamp(20px, 6vh, 64px);
    background: #05070a;
    pointer-events: none;
}
.tpl-nirmala .nir-letterbox-top { top: 0; }
.tpl-nirmala .nir-letterbox-bottom { bottom: 0; }

.tpl-nirmala .nir-cover-inner {
    position: relative;
    z-index: 4;
    width: min(760px, 100%);
    color: var(--ink);
    text-align: center;
}

.tpl-nirmala .nir-credit-line {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin: 0 0 22px;
    font-family: var(--body);
    font-size: .5rem;
    font-weight: 400;
    letter-spacing: .34em;
    text-transform: uppercase;
    color: rgba(233, 238, 244, .55);
}
.tpl-nirmala .nir-cover-title {
    margin: 0;
    padding: 18px 0;
    border-top: 1px solid rgba(233, 238, 244, .24);
    border-bottom: 1px solid rgba(233, 238, 244, .24);
}
.tpl-nirmala .nir-cover-names {
    display: block;
    font-family: var(--display);
    font-size: clamp(2.1rem, 8vw, 4rem);
    font-weight: 400;
    line-height: 1.12;
    letter-spacing: .01em;
    color: #f4f8fb;
}
.tpl-nirmala .nir-cover-names em {
    font-size: .5em;
    color: var(--accent);
    margin: 0 .12em;
}
.tpl-nirmala .nir-cover-sub {
    display: block;
    margin-top: 8px;
    font-family: var(--body);
    font-size: clamp(.5rem, 1.6vw, .62rem);
    font-weight: 300;
    letter-spacing: .44em;
    text-transform: uppercase;
    color: rgba(233, 238, 244, .68);
}

.tpl-nirmala .nir-cover-date {
    margin: 18px 0 0;
    font-family: var(--body);
    font-size: .6rem;
    font-weight: 300;
    letter-spacing: .4em;
    color: rgba(233, 238, 244, .74);
}

.tpl-nirmala .nir-guest { margin-top: 20px; color: rgba(233, 238, 244, .8); }
.tpl-nirmala .nir-guest span { font-family: var(--body); font-size: .48rem; letter-spacing: .32em; color: rgba(233, 238, 244, .5); }
.tpl-nirmala .nir-guest strong { font-family: var(--display); font-size: 1.25rem; font-weight: 400; color: #f4f8fb; }

.tpl-nirmala .nir-open {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: 22px;
    padding: 12px 26px;
    border: 1px solid rgba(233, 238, 244, .55);
    border-radius: 999px;
    background: rgba(233, 238, 244, .06);
    color: #f4f8fb;
    font-family: var(--body);
    font-size: .54rem;
    font-weight: 500;
    letter-spacing: .3em;
    text-transform: uppercase;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: background .25s ease, color .25s ease;
}
.tpl-nirmala .nir-open:hover { background: #f4f8fb; color: #0b0f14; }
.tpl-nirmala .nir-open .tpl-icon { width: 13px; height: 13px; }

.tpl-nirmala .nir-cover-foot {
    position: absolute;
    bottom: clamp(30px, 8vh, 82px);
    left: 50%;
    z-index: 4;
    display: flex;
    gap: 18px;
    transform: translateX(-50%);
    margin: 0;
    font-family: var(--body);
    font-size: .44rem;
    letter-spacing: .32em;
    text-transform: uppercase;
    color: rgba(233, 238, 244, .42);
    white-space: nowrap;
}

/* ---------------------------------------------------------------------
   Hero
   --------------------------------------------------------------------- */
.tpl-nirmala .nir-hero {
    position: relative;
    padding: clamp(72px, 12vw, 140px) 0 clamp(56px, 9vw, 96px);
    overflow: hidden;
    background:
        radial-gradient(680px 440px at 50% 0, rgba(169, 188, 205, .1), transparent 68%),
        var(--bg);
    border-bottom: 1px solid rgba(169, 188, 205, .1);
}
.tpl-nirmala .nir-hero-inner { position: relative; z-index: 2; text-align: center; }

.tpl-nirmala .nir-hero .nir-chapter { justify-content: center; }
.tpl-nirmala .nir-hero .nir-chapter::after,
.tpl-nirmala .nir-hero .nir-chapter::before { display: none; }

.tpl-nirmala .nir-arabic {
    margin: 22px 0 6px;
    font-family: 'Traditional Arabic', 'Scheherazade New', serif;
    font-size: 1.5rem;
    color: var(--accent);
}

.tpl-nirmala .nir-kicker {
    margin: 16px 0 0;
    font-family: var(--body);
    font-size: .5rem;
    font-weight: 300;
    letter-spacing: .34em;
    text-transform: uppercase;
    color: var(--muted);
}

.tpl-nirmala .nir-hero-names {
    margin: 18px 0 0;
    font-family: var(--display);
    font-size: clamp(2.1rem, 7vw, 3.8rem);
    font-weight: 400;
    line-height: 1.2;
}
.tpl-nirmala .nir-hero-names span { display: block; }
.tpl-nirmala .nir-hero-names em {
    display: block;
    font-size: .46em;
    color: var(--accent);
    line-height: 1;
}

.tpl-nirmala .nir-hero-text {
    max-width: 620px;
    margin: 24px auto 0;
    font-family: var(--body);
    font-size: .86rem;
    font-weight: 300;
    line-height: 1.95;
    color: var(--muted);
}

.tpl-nirmala .nir-hero-date {
    margin: 22px 0 0;
    font-family: var(--body);
    font-size: .54rem;
    font-weight: 400;
    letter-spacing: .4em;
    text-transform: uppercase;
    color: var(--accent);
}

.tpl-nirmala .nir-scroll {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin-top: 28px;
    font-family: var(--body);
    font-size: .44rem;
    letter-spacing: .3em;
    text-transform: uppercase;
    color: var(--muted);
    text-decoration: none;
}
.tpl-nirmala .nir-scroll .tpl-icon { width: 14px; height: 14px; animation: nir-bob 2.8s ease-in-out infinite; }
@keyframes nir-bob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

/* ---------------------------------------------------------------------
   Couple / cast
   --------------------------------------------------------------------- */
.tpl-nirmala .nir-couple { padding: clamp(60px, 9vw, 108px) 0 0; background: var(--bg); }
.tpl-nirmala .nir-cast {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 0;
    margin-top: 8px;
}

.tpl-nirmala .nir-cast-panel {
    position: relative;
    min-height: 560px;
    overflow: hidden;
    background: var(--paper-2);
}
.tpl-nirmala .nir-cast-panel img {
    width: 100%;
    height: 100%;
    min-height: 560px;
    object-fit: cover;
    filter: grayscale(.4) contrast(1.06) brightness(.82);
    transition: transform 1.1s cubic-bezier(.2, .7, .2, 1), filter .5s ease;
}
.tpl-nirmala .nir-cast-panel:hover img { transform: scale(1.04); filter: grayscale(.1) contrast(1.03) brightness(.88); }
.tpl-nirmala .nir-cast-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 32%, rgba(7, 10, 14, .9) 100%);
    pointer-events: none;
}
.tpl-nirmala .nir-cast-info {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: clamp(22px, 3.4vw, 36px);
}
.tpl-nirmala .nir-cast-role {
    margin: 0;
    font-family: var(--body);
    font-size: .46rem;
    letter-spacing: .34em;
    text-transform: uppercase;
    color: var(--accent);
}
.tpl-nirmala .nir-cast-info h3 {
    margin: 8px 0 0;
    font-family: var(--display);
    font-size: clamp(1.5rem, 3.6vw, 2.1rem);
    font-weight: 400;
    color: #f4f8fb;
}
.tpl-nirmala .nir-cast-parents {
    margin: 6px 0 0;
    font-family: var(--body);
    font-size: .7rem;
    font-weight: 300;
    line-height: 1.7;
    color: rgba(233, 238, 244, .62);
}
.tpl-nirmala .nir-social {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 8px;
    font-family: var(--body);
    font-size: .56rem;
    letter-spacing: .1em;
    color: var(--accent);
    text-decoration: none;
}
.tpl-nirmala .nir-social .tpl-icon { width: 11px; height: 11px; }

.tpl-nirmala .nir-cast-sep {
    display: grid;
    place-items: center;
    width: clamp(50px, 8vw, 90px);
    background: var(--bg);
}
.tpl-nirmala .nir-cast-sep span {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 50%;
    font-family: var(--display);
    font-size: 1.2rem;
    font-style: italic;
    color: var(--accent);
}

/* ---------------------------------------------------------------------
   Quote
   --------------------------------------------------------------------- */
.tpl-nirmala .nir-quote {
    position: relative;
    padding: clamp(64px, 9vw, 110px) 0;
    background: #080b10;
    border-block: 1px solid rgba(169, 188, 205, .1);
}
.tpl-nirmala .nir-quote-inner { max-width: 820px; margin-inline: auto; text-align: center; }
.tpl-nirmala .nir-quote-label {
    margin: 0;
    font-family: var(--body);
    font-size: .5rem;
    letter-spacing: .4em;
    text-transform: uppercase;
    color: var(--accent);
}
.tpl-nirmala .nir-quote blockquote {
    margin: 20px 0 0;
    font-family: var(--display);
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 300;
    font-style: italic;
    line-height: 1.75;
    color: var(--ink-soft);
}
.tpl-nirmala .nir-quote cite {
    display: block;
    margin-top: 20px;
    font-family: var(--body);
    font-size: .5rem;
    font-style: normal;
    letter-spacing: .3em;
    text-transform: uppercase;
    color: var(--muted);
}

/* ---------------------------------------------------------------------
   Countdown
   --------------------------------------------------------------------- */
.tpl-nirmala .nir-countdown-section {
    position: relative;
    padding: clamp(64px, 9vw, 110px) 0;
    background:
        radial-gradient(600px 380px at 50% 0, rgba(169, 188, 205, .08), transparent 70%),
        var(--paper-2);
    overflow: hidden;
}
.tpl-nirmala .nir-countdown {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.tpl-nirmala .nir-count {
    padding: clamp(20px, 3.4vw, 34px) 8px;
    text-align: center;
    border-right: 1px solid var(--line);
}
.tpl-nirmala .nir-count:last-child { border-right: 0; }
.tpl-nirmala .nir-count strong {
    display: block;
    font-family: var(--display);
    font-size: clamp(1.9rem, 5vw, 3rem);
    font-weight: 300;
    line-height: 1;
    color: var(--accent-2);
    font-variant-numeric: tabular-nums;
}
.tpl-nirmala .nir-count span {
    display: block;
    margin-top: 10px;
    font-family: var(--body);
    font-size: .44rem;
    letter-spacing: .3em;
    text-transform: uppercase;
    color: var(--muted);
}

/* ---------------------------------------------------------------------
   Events
   --------------------------------------------------------------------- */
.tpl-nirmala .nir-events { padding: clamp(64px, 9vw, 110px) 0; background: var(--bg); }
.tpl-nirmala .nir-schedule { border-top: 1px solid var(--line); }
.tpl-nirmala .nir-event {
    display: grid;
    grid-template-columns: minmax(110px, 160px) 1fr;
    gap: clamp(16px, 4vw, 50px);
    padding: clamp(24px, 4vw, 38px) 0;
    border-bottom: 1px solid var(--line);
}
.tpl-nirmala .nir-event-time { padding-top: 2px; }
.tpl-nirmala .nir-event-time strong {
    display: block;
    font-family: var(--display);
    font-size: clamp(1.5rem, 3.4vw, 2rem);
    font-weight: 400;
    line-height: 1;
    color: var(--accent-2);
}
.tpl-nirmala .nir-event-time span {
    display: block;
    margin-top: 6px;
    font-family: var(--body);
    font-size: .48rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--muted);
}
.tpl-nirmala .nir-event-date {
    margin: 0;
    font-family: var(--body);
    font-size: .48rem;
    letter-spacing: .26em;
    text-transform: uppercase;
    color: var(--accent);
}
.tpl-nirmala .nir-event-body h3 {
    margin: 8px 0 0;
    font-family: var(--display);
    font-size: clamp(1.3rem, 3vw, 1.7rem);
    font-weight: 400;
}
.tpl-nirmala .nir-event-venue {
    margin: 8px 0 0;
    font-family: var(--body);
    font-size: .8rem;
    font-weight: 400;
    color: var(--ink-soft);
}
.tpl-nirmala .nir-event-address {
    margin: 3px 0 14px;
    font-family: var(--body);
    font-size: .7rem;
    font-weight: 300;
    line-height: 1.7;
    color: var(--muted);
}
.tpl-nirmala .nir-live {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 30px;
    padding: 18px 20px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .02);
}
.tpl-nirmala .nir-live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #c96a6a;
    box-shadow: 0 0 0 4px rgba(201, 106, 106, .16);
    animation: nir-live 2s ease-in-out infinite;
}
@keyframes nir-live {
    0%, 100% { opacity: 1; }
    50% { opacity: .4; }
}
.tpl-nirmala .nir-live p {
    flex: 1;
    margin: 0;
    font-family: var(--body);
    font-size: .7rem;
    font-weight: 300;
    color: var(--muted);
}

/* ---------------------------------------------------------------------
   Story
   --------------------------------------------------------------------- */
.tpl-nirmala .nir-story {
    padding: clamp(64px, 9vw, 110px) 0;
    background: #080b10;
    border-block: 1px solid rgba(169, 188, 205, .1);
}
.tpl-nirmala .nir-chapters { max-width: 820px; margin-inline: auto; }
.tpl-nirmala .nir-chapter-item {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: clamp(14px, 3vw, 30px);
    padding: clamp(20px, 3.4vw, 30px) 0;
    border-bottom: 1px solid rgba(169, 188, 205, .12);
}
.tpl-nirmala .nir-chapter-item:last-child { border-bottom: 0; }
.tpl-nirmala .nir-chapter-num {
    font-family: var(--display);
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    font-weight: 300;
    line-height: 1;
    color: rgba(169, 188, 205, .4);
}
.tpl-nirmala .nir-chapter-date {
    margin: 0;
    font-family: var(--body);
    font-size: .46rem;
    letter-spacing: .28em;
    text-transform: uppercase;
    color: var(--accent);
}
.tpl-nirmala .nir-chapter-body h3 {
    margin: 8px 0 0;
    font-family: var(--display);
    font-size: 1.3rem;
    font-weight: 400;
}
.tpl-nirmala .nir-chapter-body p { margin: 6px 0 0; font-family: var(--body); font-size: .76rem; font-weight: 300; line-height: 1.85; color: var(--muted); }

/* ---------------------------------------------------------------------
   Gallery film strip
   --------------------------------------------------------------------- */
.tpl-nirmala .nir-gallery-section {
    padding: clamp(60px, 9vw, 104px) 0 clamp(50px, 7vw, 82px);
    background: var(--bg);
    overflow: hidden;
}
.tpl-nirmala .nir-filmstrip {
    position: relative;
    z-index: 2;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 18px 0;
    cursor: grab;
    scrollbar-width: thin;
    scrollbar-color: var(--line) transparent;
    touch-action: pan-y;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
}
.tpl-nirmala .nir-filmstrip.is-dragging { cursor: grabbing; scroll-behavior: auto; }
.tpl-nirmala .nir-film-track {
    display: flex;
    gap: 14px;
    width: max-content;
    padding: 0 max(20px, calc((100vw - 1100px) / 2));
}
.tpl-nirmala .nir-frame {
    position: relative;
    flex: none;
    width: clamp(220px, 26vw, 300px);
    padding: 16px 10px;
    border: 0;
    background: #151c25;
    cursor: zoom-in;
    overflow: hidden;
    transition: transform .4s ease;
}
.tpl-nirmala .nir-frame:hover { transform: translateY(-4px); }
.tpl-nirmala .nir-frame img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    filter: grayscale(.35) contrast(1.05) brightness(.9);
    transition: filter .4s ease;
}
.tpl-nirmala .nir-frame:hover img { filter: grayscale(0) contrast(1.04) brightness(.96); }
.tpl-nirmala .nir-frame-perf {
    position: absolute;
    left: 0;
    right: 0;
    height: 10px;
    background-image: repeating-linear-gradient(90deg, #0b0f14 0 8px, transparent 8px 18px);
    pointer-events: none;
}
.tpl-nirmala .nir-frame-perf-top { top: 3px; }
.tpl-nirmala .nir-frame-perf-bottom { bottom: 3px; }
.tpl-nirmala .nir-frame-num {
    position: absolute;
    right: 14px;
    bottom: 22px;
    font-family: var(--body);
    font-size: .46rem;
    letter-spacing: .18em;
    color: rgba(233, 238, 244, .68);
}
.tpl-nirmala .nir-hashtag {
    margin: 22px 0 0;
    font-family: var(--body);
    font-size: .56rem;
    font-weight: 300;
    letter-spacing: .3em;
    text-align: center;
    color: var(--accent);
}

/* ---------------------------------------------------------------------
   Gifts
   --------------------------------------------------------------------- */
.tpl-nirmala .nir-gifts {
    padding: clamp(64px, 9vw, 110px) 0;
    background: var(--paper-2);
    border-top: 1px solid rgba(169, 188, 205, .1);
}
.tpl-nirmala .nir-gift-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    max-width: 760px;
    margin-inline: auto;
}
.tpl-nirmala .nir-gift {
    padding: 26px 24px 22px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .02);
}
.tpl-nirmala .nir-gift-bank {
    display: block;
    font-family: var(--body);
    font-size: .48rem;
    font-weight: 500;
    letter-spacing: .3em;
    text-transform: uppercase;
    color: var(--accent);
}
.tpl-nirmala .nir-gift-number {
    margin: 12px 0 0;
    font-family: var(--display);
    font-size: clamp(1.25rem, 3.2vw, 1.55rem);
    font-weight: 400;
    letter-spacing: .06em;
    color: var(--ink);
    word-break: break-all;
}
.tpl-nirmala .nir-gift-name { margin: 2px 0 16px; font-family: var(--body); font-size: .66rem; font-weight: 300; color: var(--muted); }
.tpl-nirmala .nir-gift .nir-link { width: 100%; }

/* ---------------------------------------------------------------------
   RSVP / wishes
   --------------------------------------------------------------------- */
.tpl-nirmala .nir-rsvp {
    padding: clamp(64px, 9vw, 110px) 0;
    background: var(--bg);
    border-top: 1px solid rgba(169, 188, 205, .1);
}
.tpl-nirmala .nir-wishes { padding: clamp(64px, 9vw, 110px) 0; background: #080b10; border-top: 1px solid rgba(169, 188, 205, .1); }
.tpl-nirmala .nir-form-panel {
    padding: clamp(24px, 4.5vw, 40px);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .02);
}
.tpl-nirmala .tw-label { font-family: var(--body); font-size: .48rem; letter-spacing: .26em; color: var(--muted); }
.tpl-nirmala .tw-input,
.tpl-nirmala .tw-textarea { background: rgba(255, 255, 255, .03); color: var(--ink); }
.tpl-nirmala .tw-input::placeholder,
.tpl-nirmala .tw-textarea::placeholder { color: rgba(132, 148, 163, .65); }
.tpl-nirmala .tw-choice { background: rgba(255, 255, 255, .025); color: var(--ink-soft); }
.tpl-nirmala .tw-btn { background: var(--accent-2); color: var(--btn-ink); letter-spacing: .24em; border-radius: 999px; }
.tpl-nirmala .tw-btn:hover { background: #fff; filter: none; }
.tpl-nirmala .tw-wish { background: rgba(255, 255, 255, .025); }
.tpl-nirmala .tw-wish-head strong { color: var(--accent-2); }
.tpl-nirmala .tw-wish-head span { color: var(--muted); }
.tpl-nirmala .tw-alert-ok { --ok-bg: rgba(120, 170, 140, .1); --ok-ink: #a9d6bb; --ok-line: rgba(140, 190, 160, .35); }
.tpl-nirmala .tw-alert-error { --err-bg: rgba(200, 110, 110, .1); --err-ink: #e6b3b3; --err-line: rgba(200, 110, 110, .35); }

/* ---------------------------------------------------------------------
   Closing
   --------------------------------------------------------------------- */
.tpl-nirmala .nir-closing {
    position: relative;
    padding: clamp(80px, 12vw, 150px) 0 clamp(60px, 8vw, 96px);
    overflow: hidden;
    background:
        radial-gradient(600px 420px at 50% 0, rgba(169, 188, 205, .08), transparent 70%),
        #070a0e;
    border-top: 1px solid rgba(169, 188, 205, .12);
    text-align: center;
}
.tpl-nirmala .nir-closing-inner { position: relative; z-index: 2; }
.tpl-nirmala .nir-closing-label {
    margin: 0;
    font-family: var(--body);
    font-size: .48rem;
    letter-spacing: .42em;
    text-transform: uppercase;
    color: var(--accent);
}
.tpl-nirmala .nir-closing-text {
    max-width: 660px;
    margin: 20px auto 0;
    font-family: var(--display);
    font-size: clamp(1.05rem, 2.4vw, 1.2rem);
    font-weight: 300;
    font-style: italic;
    line-height: 1.9;
    color: var(--ink-soft);
}
.tpl-nirmala .nir-closing-names {
    margin: 30px 0 0;
    font-family: var(--display);
    font-size: clamp(1.6rem, 5vw, 2.4rem);
    font-weight: 400;
    color: #f4f8fb;
}
.tpl-nirmala .nir-closing-names em { font-size: .62em; color: var(--accent); }
.tpl-nirmala .nir-closing-date {
    margin: 8px 0 0;
    font-family: var(--body);
    font-size: .48rem;
    letter-spacing: .36em;
    text-transform: uppercase;
    color: var(--muted);
}
.tpl-nirmala .nir-closing-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 28px;
}
.tpl-nirmala .nir-credit {
    margin: 44px 0 0;
    font-family: var(--body);
    font-size: .44rem;
    letter-spacing: .34em;
    text-transform: uppercase;
    color: rgba(132, 148, 163, .55);
}

/* ---------------------------------------------------------------------
   Efek khas: proyektor melayang
   --------------------------------------------------------------------- */
.nir-beam {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    background: radial-gradient(460px circle at var(--nir-x, 50%) var(--nir-y, 50%), rgba(220, 231, 240, .05), transparent 66%);
    transition: opacity .6s ease;
}

/* ---------------------------------------------------------------------
   Responsive
   --------------------------------------------------------------------- */
@media (max-width: 860px) {
    .tpl-nirmala .nir-cast { grid-template-columns: 1fr; }
    .tpl-nirmala .nir-cast-panel,
    .tpl-nirmala .nir-cast-panel img { min-height: 430px; }
    .tpl-nirmala .nir-cast-sep { width: 100%; height: 64px; }
}

@media (max-width: 680px) {
    .tpl-nirmala .nir-event { grid-template-columns: 1fr; gap: 10px; }
    .tpl-nirmala .nir-event-time { display: flex; align-items: baseline; gap: 10px; }
    .tpl-nirmala .nir-countdown { grid-template-columns: repeat(2, 1fr); }
    .tpl-nirmala .nir-count:nth-child(2) { border-right: 0; }
    .tpl-nirmala .nir-count:nth-child(1),
    .tpl-nirmala .nir-count:nth-child(2) { border-bottom: 1px solid var(--line); }
    .tpl-nirmala .nir-gift-grid { grid-template-columns: 1fr; }
    .tpl-nirmala .nir-chapter-item { grid-template-columns: 42px 1fr; }
    .tpl-nirmala .nir-cover-foot { flex-direction: column; gap: 4px; text-align: center; }
}

/* Inisial mempelai (pengganti foto bila tidak diunggah) */
.tpl-nirmala .nir-initials {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    min-height: 560px;
    background: linear-gradient(180deg, #232a33, #10141a);
    color: #d8c39a;
    font-family: var(--display, serif);
    font-size: clamp(3rem, 12vw, 5rem);
    font-weight: 500;
    letter-spacing: .08em;
    line-height: 1;
}

/* Kontrol musik: ikon berputar lambat saat diputar */
.tpl-nirmala [data-music-toggle].is-playing .tpl-icon { animation: nir-music-spin 4.5s linear infinite; }
@keyframes nir-music-spin { to { transform: rotate(360deg); } }
