/* ============================================================
   UNDANGAN DIGITAL KHITANAN
   Clean · Ceria · Elegant
   Static color palette – no dynamic theme
   ============================================================ */

/* ---- Color Tokens (STATIC) ---- */
:root {
    --bg: #FCFAF6;
    --bg-soft: #F3EDE2;
    --text: #2F3630;
    --text-muted: #5E6B61;
    --primary: #4A8C72;
    --primary-dark: #3A7260;
    --primary-light: #6BB595;
    --secondary: #C4943B;
    --secondary-dark: #A07830;
    --accent: #EFE0BA;
    --accent-light: #F8F2E4;
    --surface: rgba(255, 255, 255, 0.96);
    --surface-solid: #FFFFFF;
    --card-shadow: 0 6px 32px rgba(47, 54, 48, 0.07);
    --card-shadow-hover: 0 12px 40px rgba(47, 54, 48, 0.10);
    --card-border: rgba(74, 140, 114, 0.10);
    --radius: 24px;
    --radius-sm: 16px;
    --transition: 360ms cubic-bezier(.22, 1, .36, 1);
    --font-title: 'Fredoka', sans-serif;
    --font-body: 'Nunito', sans-serif;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.7;
    overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }

/* ---- Layout Shell ---- */
.page-shell { min-height: 100vh; height: 100%; }
.desktop-side { display: none; }
.mobile-stage { position: relative; width: 100%; min-height: 100vh; }
.stage-stack { position: relative; }

/* ============================================================
   SCENE SYSTEM — Seamless flow between sections
   Each scene fades FROM body color → shows bg → fades BACK
   ============================================================ */
.scene {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    overflow: hidden;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.scene-bg,
.scene-overlay,
.scene-gradient,
.scene-inner {
    position: absolute;
    inset: 0;
}

/* Background images – subtle Ken Burns */
.scene-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.06);
    animation: kenburns 24s ease-in-out infinite alternate;
    filter: saturate(0.9) brightness(1.05);
}

/* Soft warm wash over all bg images */
.scene-overlay {
    background: rgba(252, 250, 246, 0.35);
}

/* THE KEY: Gradient fades top & bottom to body color
   This makes adjacent scenes blend seamlessly */
.scene-gradient {
    background: linear-gradient(to bottom,
        #FCFAF6 0%,
        rgba(252, 250, 246, 0.72) 18%,
        rgba(252, 250, 246, 0.52) 40%,
        rgba(252, 250, 246, 0.52) 60%,
        rgba(252, 250, 246, 0.72) 82%,
        #FCFAF6 100%
    );
}

/* Content layer */
.scene-inner {
    position: relative;
    z-index: 2;
    padding: 32px 24px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
}

/* ---- Decorative Orbs (subtle colored blobs) ---- */
.scene-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    animation: float 10s ease-in-out infinite;
    opacity: .5;
}
.scene-orb.one {
    width: 140px; height: 140px;
    top: 10%; right: -40px;
    background: radial-gradient(circle, rgba(239, 224, 186, 0.3), transparent 70%);
}
.scene-orb.two {
    width: 110px; height: 110px;
    bottom: 16%; left: -30px;
    background: radial-gradient(circle, rgba(74, 140, 114, 0.15), transparent 70%);
    animation-delay: -4s;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
.editorial-mark {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: var(--primary);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
}
.editorial-mark::before,
.editorial-mark::after {
    content: "";
    width: 22px;
    height: 1.5px;
    border-radius: 1px;
    background: linear-gradient(90deg, var(--primary-light), var(--accent));
}

.section-eyebrow {
    color: var(--primary);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.section-title {
    font-family: var(--font-title);
    color: var(--text);
}

.scene-note {
    margin-top: 14px;
    color: var(--text-muted);
    font-size: 12.5px;
    font-style: italic;
    line-height: 1.7;
}

/* ============================================================
   GLASS CARDS (shared)
   ============================================================ */
.cover-card,
.quote-card,
.info-panel,
.form-panel,
.gift-panel,
.wish-panel {
    width: 100%;
    max-width: 400px;
    border: 1px solid var(--card-border);
    background: var(--surface);
    backdrop-filter: blur(14px);
    border-radius: var(--radius);
    box-shadow: var(--card-shadow);
    position: relative;
    overflow: hidden;
    padding: 28px 24px;
}

/* Top accent line – subtle gradient bar */
.cover-card::before,
.quote-card::before,
.info-panel::before,
.form-panel::before,
.gift-panel::before,
.wish-panel::before {
    content: "";
    position: absolute;
    left: 28px; right: 28px;
    top: 0;
    height: 2px;
    border-radius: 0 0 2px 2px;
    background: linear-gradient(90deg, var(--primary-light), var(--accent), var(--secondary), var(--accent), var(--primary-light));
    opacity: .6;
}

/* Inner decorative frame */
.panel-frame {
    position: absolute;
    inset: 14px;
    border: 1px solid rgba(74, 140, 114, 0.06);
    border-radius: calc(var(--radius) - 8px);
    pointer-events: none;
}
.panel-stack { position: relative; z-index: 1; }

/* Corner ornaments – tiny decorative dots */
.corner-ornament {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    pointer-events: none;
    opacity: .7;
}
.corner-ornament::before,
.corner-ornament::after { content: none; }
.corner-ornament.top-left { top: 20px; left: 20px; }
.corner-ornament.bottom-right { bottom: 20px; right: 20px; }

/* ============================================================
   PAGE LOADER
   ============================================================ */
.page-loader {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    background:
        radial-gradient(circle at 12% 0%, color-mix(in srgb, var(--accent), transparent 68%), transparent 30%),
        linear-gradient(180deg, var(--bg), var(--bg-soft));
    transition: opacity .4s ease, transform .4s ease;
}
.page-loader.is-done {
    opacity: 0;
    transform: scale(1.04);
    pointer-events: none;
}
.loader-spin {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid color-mix(in srgb, var(--primary), transparent 78%);
    border-top-color: var(--primary);
    animation: loader-spin .9s linear infinite;
}
.loader-text {
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .08em;
}
@keyframes loader-spin {
    to { transform: rotate(360deg); }
}

/* ============================================================
   SPLASH OVERLAY
   ============================================================ */
.splash-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 32px 24px;
    background:
        radial-gradient(circle at 12% 0%, color-mix(in srgb, var(--accent), transparent 68%), transparent 30%),
        linear-gradient(180deg, var(--bg), var(--bg-soft));
    opacity: 0;
    transition: opacity .5s ease;
    overflow-y: auto;
}
.splash-overlay.is-ready {
    opacity: 1;
    animation: fadeIn .5s ease;
}
.splash-overlay.is-closing {
    animation: fadeOut .32s ease forwards;
}
.splash-inner {
    position: relative;
    z-index: 2;
    max-width: 400px;
    width: 100%;
    text-align: center;
    display: grid;
    gap: 14px;
    margin: auto 0;
}
.splash-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    animation: float 10s ease-in-out infinite;
    opacity: .4;
}
.splash-orb.one {
    width: 160px; height: 160px;
    top: -40px; right: -50px;
    background: radial-gradient(circle, color-mix(in srgb, var(--secondary), transparent 24%), transparent 70%);
}
.splash-orb.two {
    width: 120px; height: 120px;
    bottom: -30px; left: -40px;
    background: radial-gradient(circle, color-mix(in srgb, var(--primary), transparent 30%), transparent 70%);
    animation-delay: -4s;
}
.splash-badge {
    display: inline-block;
    margin: 0 auto;
    padding: 8px 20px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--primary), var(--surface-solid) 72%);
    color: var(--primary-dark);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
}
.splash-name {
    margin: 0;
    font-family: var(--font-title);
    font-size: clamp(2.8rem, 12vw, 4.2rem);
    font-weight: 700;
    line-height: .96;
    color: var(--secondary-dark);
    text-shadow: 0 2px 20px color-mix(in srgb, var(--secondary), transparent 60%);
}
.splash-sub {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.7;
}
.splash-divider {
    width: 80px;
    height: 14px;
    margin: 2px auto;
    position: relative;
}
.splash-divider::before,
.splash-divider::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 28px;
    height: 1.5px;
    border-radius: 1px;
    transform: translateY(-50%);
    background: linear-gradient(90deg, transparent, var(--accent));
}
.splash-divider::before { left: 0; }
.splash-divider::after { right: 0; background: linear-gradient(90deg, var(--accent), transparent); }
.splash-divider span {
    position: absolute;
    left: 50%; top: 50%;
    width: 8px; height: 8px;
    margin: -4px 0 0 -4px;
    background: var(--accent);
    border-radius: 50%;
}
.splash-guest {
    color: var(--text);
    font-size: 15px;
}
.splash-guest strong { color: var(--primary-dark); }
.splash-text {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.85;
    max-width: 320px;
    margin: 0 auto;
}
.splash-btn {
    justify-self: center;
    min-width: 180px;
}
.splash-hint {
    color: var(--text-muted);
    font-size: 11px;
    letter-spacing: .12em;
    opacity: .7;
}

@keyframes fadeOut {
    from { opacity: 1; transform: scale(1); }
    to { opacity: 0; transform: scale(1.04); }
}

/* ============================================================
   COVER SECTION
   ============================================================ */
.cover-stack { display: grid; gap: 20px; max-width: 400px; }

.cover-name {
    margin: 0;
    font-family: var(--font-title);
    font-size: clamp(2.8rem, 13vw, 4.6rem);
    font-weight: 600;
    line-height: .96;
    color: var(--secondary-dark);
    text-shadow: 0 2px 16px rgba(160, 120, 48, 0.15);
}

.cover-family {
    margin: 10px 0 0;
    color: var(--text-muted);
    font-size: 14.5px;
    line-height: 1.8;
}

.cover-invitee {
    margin-top: 6px;
    font-family: var(--font-title);
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--text);
}

.section-copy {
    color: var(--text-muted);
    line-height: 1.85;
    font-size: 14.5px;
}

/* Divider – small star */
.divider-ornament {
    width: 100px;
    height: 16px;
    position: relative;
    margin: 12px auto;
}
.divider-ornament::before,
.divider-ornament::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 32px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent));
    transform: translateY(-50%);
}
.divider-ornament::before { left: 0; }
.divider-ornament::after { right: 0; background: linear-gradient(90deg, var(--accent), transparent); }
.divider-ornament span {
    position: absolute;
    left: 50%; top: 50%;
    width: 8px; height: 8px;
    margin: -4px 0 0 -4px;
    background: var(--accent);
    border-radius: 50%;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.primary-btn,
.ghost-btn,
.inline-btn,
.copy-btn {
    border: 0;
    border-radius: 999px;
    min-height: 50px;
    padding: 0 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 700;
    font-size: 14.5px;
    transition: transform var(--transition), box-shadow var(--transition);
}

.primary-btn {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 6px 20px rgba(74, 140, 114, 0.24);
}
.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(74, 140, 114, 0.30);
}
.primary-btn:active { transform: translateY(0); }

.ghost-btn, .copy-btn {
    color: var(--text);
    background: var(--surface-solid);
    border: 1px solid var(--card-border);
}
.ghost-btn:hover, .copy-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--card-shadow);
}

.inline-btn {
    min-height: 46px;
    padding: 0 20px;
    color: #fff;
    background: var(--primary);
    font-size: 13.5px;
    box-shadow: 0 4px 14px rgba(74, 140, 114, 0.20);
}
.inline-btn:hover { transform: translateY(-1px); }

/* Scroll cue */
.scroll-cue {
    margin-top: 18px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .14em;
}
.scroll-cue::after {
    content: "";
    width: 22px; height: 36px;
    border: 1.5px solid rgba(74, 140, 114, 0.3);
    border-radius: 999px;
}
.scroll-cue::before {
    content: "";
    position: relative;
    left: 27px;
    width: 3px; height: 8px;
    border-radius: 999px;
    background: var(--primary-light);
    animation: scrollDot 1.8s ease-in-out infinite;
}

/* ============================================================
   COUNTDOWN
   ============================================================ */
.countdown-wrap {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}
.count-item {
    padding: 14px 4px;
    border-radius: var(--radius-sm);
    background: var(--surface);
    border: 1px solid var(--card-border);
    text-align: center;
}
.count-number {
    display: block;
    font-family: var(--font-title);
    font-size: 1.65rem;
    font-weight: 600;
    color: var(--secondary-dark);
}
.count-number.tick-bounce {
    animation: count-pop .35s cubic-bezier(.34, 1.56, .64, 1);
}
.count-label {
    display: block;
    margin-top: 2px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* ============================================================
   QUOTE
   ============================================================ */
.quote-card blockquote {
    margin: 0;
    line-height: 2;
    font-size: 14.5px;
}
.quote-card blockquote .arabic {
    display: block;
    margin-bottom: 16px;
    font-size: 1.4rem;
    line-height: 1.9;
    color: var(--secondary-dark);
    direction: rtl;
}
.quote-card blockquote .translation {
    display: block;
    color: var(--text-muted);
    font-style: italic;
}
.quote-source {
    margin-top: 16px;
    color: var(--primary);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: .06em;
}

/* ============================================================
   PROFILES
   ============================================================ */
.profile-grid { display: grid; gap: 0; }
.profile-card { position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden; }
.profile-card .scene-inner { align-items: center; text-align: center; }

.profile-name {
    margin: 8px 0 0;
    font-family: var(--font-title);
    font-size: clamp(2.2rem, 9vw, 3.6rem);
    font-weight: 600;
    color: var(--secondary-dark);
}
.profile-copy {
    max-width: 320px;
    margin-top: 12px;
    color: var(--text-muted);
    font-size: 14.5px;
    line-height: 1.85;
}
.profile-meta {
    margin-top: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--card-border);
    color: var(--primary);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

/* ============================================================
   SCHEDULE / EVENT
   ============================================================ */
.schedule-list { display: grid; gap: 14px; margin-top: 18px; }
.schedule-card {
    padding: 18px 16px;
    border-radius: 20px;
    background: var(--surface);
    border: 1px solid var(--card-border);
    text-align: left;
    transition: transform .3s ease, box-shadow .3s ease;
}
.schedule-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--card-shadow-hover);
}
.schedule-row { display: grid; grid-template-columns: 58px 1fr; gap: 12px; align-items: start; }
.schedule-badge {
    border-right: 1.5px solid rgba(74, 140, 114, 0.12);
    padding-right: 10px;
    text-align: center;
}
.schedule-badge-month {
    color: var(--primary);
    letter-spacing: .12em;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}
.schedule-badge-day {
    margin-top: 2px;
    font-family: var(--font-title);
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--secondary-dark);
    line-height: 1;
}
.schedule-name { font-size: 1.2rem; font-weight: 800; color: var(--text); }
.schedule-date,
.schedule-time,
.schedule-place,
.schedule-address {
    margin-top: 6px;
    font-size: 13.5px;
    line-height: 1.7;
    color: var(--text-muted);
}
.schedule-place { color: var(--primary); font-weight: 700; }
.schedule-actions { margin-top: 14px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }

/* ============================================================
   PANEL TITLES & COPY
   ============================================================ */
.panel-title {
    margin: 0;
    font-family: var(--font-title);
    font-size: 1.65rem;
    font-weight: 600;
    color: var(--text);
}
.panel-copy {
    margin: 10px 0 0;
    color: var(--text-muted);
    font-size: 14.5px;
    line-height: 1.85;
}
.panel-copy.lead { color: var(--text); }
.soft-rule {
    width: 100%;
    height: 1px;
    margin: 16px 0;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.stat-line { display: grid; gap: 6px; text-align: left; }
.stat-line strong {
    color: var(--primary);
    font-size: 11px;
    letter-spacing: .10em;
    text-transform: uppercase;
}

/* ============================================================
   GALLERY
   ============================================================ */
.gallery-hero { display: grid; gap: 12px; margin-top: 20px; }
.gallery-main {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    aspect-ratio: 3 / 4;
    background: var(--accent-light);
    cursor: pointer;
    border: 1px solid var(--card-border);
}
.gallery-main img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: opacity .4s ease, transform .5s ease;
}
.gallery-main:hover img { transform: scale(1.02); }
.gallery-main::after {
    content: "Ketuk untuk memperbesar";
    position: absolute;
    left: 14px; bottom: 14px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.88);
    backdrop-filter: blur(8px);
    color: var(--text-muted);
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: .08em;
}
.gallery-thumbs-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.gallery-thumb {
    aspect-ratio: 1;
    border-radius: 14px;
    overflow: hidden;
    border: 1.5px solid var(--card-border);
    background: var(--accent-light);
    padding: 0;
    transition: transform .3s ease, border-color .3s ease;
}
.gallery-thumb:hover { transform: scale(1.05); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb.is-active {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(74, 140, 114, 0.15);
    transform: scale(1.05);
}

/* ============================================================
   FORMS
   ============================================================ */
.form-intro,
.wish-intro,
.gift-intro { display: grid; gap: 8px; margin-bottom: 8px; }
.field-list { display: grid; gap: 12px; margin-top: 16px; }
.form-grid-2 { display: grid; gap: 12px; }

.field label {
    display: block;
    margin-bottom: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--primary);
}
.input, .textarea, .choice-btn { font-family: var(--font-body); }

.input, .textarea {
    width: 100%;
    border: 1.5px solid rgba(74, 140, 114, 0.14);
    background: var(--surface-solid);
    color: var(--text);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    outline: none;
    font-size: 14.5px;
    transition: border-color .3s ease, box-shadow .3s ease;
}
.textarea { min-height: 110px; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: rgba(47, 54, 48, 0.32); }
.input:focus, .textarea:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(74, 140, 114, 0.10);
}

.choice-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.choice-btn {
    min-height: 46px;
    padding: 0 8px;
    border-radius: 14px;
    border: 1.5px solid rgba(74, 140, 114, 0.12);
    background: var(--surface-solid);
    color: var(--text-muted);
    font-weight: 700;
    font-size: 13.5px;
    transition: all .25s ease;
}
.choice-btn:hover { border-color: var(--primary-light); }
.choice-btn.is-active {
    border-color: var(--primary);
    color: #fff;
    background: var(--primary);
    box-shadow: 0 4px 12px rgba(74, 140, 114, 0.22);
}

.submit-btn {
    margin-top: 6px;
    width: 100%;
    min-height: 50px;
    border: 0;
    border-radius: 999px;
    background: var(--secondary);
    color: #fff;
    font-weight: 700;
    font-size: 14.5px;
    box-shadow: 0 6px 20px rgba(196, 148, 59, 0.22);
    transition: transform var(--transition), box-shadow .3s ease;
}
.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(196, 148, 59, 0.28);
}
.submit-btn:active { transform: translateY(0); }
.submit-btn.is-loading { opacity: .7; pointer-events: none; }

.form-result {
    min-height: 22px;
    margin-top: 8px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.6;
}
.form-result.success { color: var(--primary); }
.form-result.error { color: #C0392B; }

/* ============================================================
   BANK / AMPLOP
   ============================================================ */
.bank-card {
    padding: 18px;
    border-radius: 20px;
    border: 1px solid var(--card-border);
    background: var(--surface-solid);
    display: grid;
    gap: 8px;
}
.bank-label {
    color: var(--primary);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
}
.bank-value {
    font-family: var(--font-title);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text);
}
.bank-owner { color: var(--text-muted); font-size: 13.5px; }
.copy-btn {
    margin-top: 4px;
    width: max-content;
    min-height: 40px;
    padding: 0 16px;
    font-size: 12.5px;
}

/* ============================================================
   UCAPAN / WISHES
   ============================================================ */
.wish-list { display: grid; gap: 10px; margin-top: 16px; }
.wish-item {
    position: relative;
    padding: 14px 14px 14px 48px;
    border-radius: var(--radius-sm);
    background: var(--surface-solid);
    border: 1px solid var(--card-border);
    transition: transform .3s ease;
}
.wish-item:hover { transform: translateX(3px); }
.wish-item::before {
    content: attr(data-initial);
    position: absolute;
    left: 14px; top: 14px;
    width: 26px; height: 26px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--primary);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
}
.wish-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.wish-name { font-weight: 700; color: var(--text); font-size: 14px; }
.wish-time, .wish-presence { font-size: 11.5px; color: var(--text-muted); }
.wish-text { margin-top: 6px; color: var(--text-muted); font-size: 13.5px; line-height: 1.8; }

/* ============================================================
   DESKTOP SIDE
   ============================================================ */
.desktop-copy { font-family: var(--font-body); text-align: center; }
.desktop-copy .small {
    color: var(--primary);
    letter-spacing: .18em;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}
.desktop-copy .big {
    margin-top: 10px;
    font-family: var(--font-title);
    font-size: 3.4rem;
    font-weight: 600;
    color: var(--secondary-dark);
    line-height: 1.1;
}
.desktop-copy .sub {
    margin-top: 12px;
    color: var(--text-muted);
    font-size: 14.5px;
}

/* ============================================================
   MUSIC FAB
   ============================================================ */
.music-fab {
    position: fixed;
    right: 14px; bottom: 16px;
    z-index: 80;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(12px);
    box-shadow: var(--card-shadow);
}
.music-btn {
    width: 40px; height: 40px;
    border-radius: 50%;
    border: 0;
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--primary);
    font-size: 16px;
    box-shadow: 0 3px 10px rgba(74, 140, 114, 0.20);
}
.music-meta { display: grid; gap: 3px; }
.music-label {
    color: var(--primary);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.music-bars { display: flex; align-items: flex-end; gap: 2px; height: 12px; }
.music-bars span { width: 3px; height: 5px; background: var(--primary-light); border-radius: 999px; }
.music-fab.is-playing .music-bars span { animation: bars .9s ease-in-out infinite; }
.music-fab.is-playing .music-bars span:nth-child(2) { animation-delay: .12s; }
.music-fab.is-playing .music-bars span:nth-child(3) { animation-delay: .24s; }

/* ============================================================
   BOTTOM NAV
   ============================================================ */
.bottom-nav {
    position: fixed;
    left: 50%; bottom: 16px;
    transform: translateX(-50%) translateY(0);
    z-index: 60;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 7px 10px;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 16px rgba(47, 54, 48, 0.06);
    transition: transform .48s cubic-bezier(.22,1,.36,1), opacity .48s ease;
}
.bottom-nav.is-idle {
    transform: translateX(-50%) translateY(20px);
    opacity: 0;
    pointer-events: none;
}
@media (max-width: 767px) {
    .bottom-nav.is-idle { transform: translateX(-50%) translateY(30px); }
}
.bottom-nav button {
    width: 8px; height: 8px;
    border-radius: 50%;
    border: 0;
    background: rgba(74, 140, 114, 0.20);
    transition: all .25s ease;
}
.bottom-nav button.is-active {
    background: var(--primary);
    transform: scale(1.3);
}

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .7s ease, transform .7s cubic-bezier(.22, 1, .36, 1);
}
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(47, 54, 48, 0.60);
    backdrop-filter: blur(10px);
    animation: fadeIn .25s ease;
}
.lightbox-dialog { width: min(100%, 480px); }
.lightbox-image {
    width: 100%;
    border-radius: 16px;
    max-height: 78vh;
    object-fit: contain;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25);
}
.lightbox-caption { margin-top: 10px; text-align: center; color: #fff; font-weight: 600; font-size: 14px; }
.lightbox-close {
    position: absolute;
    top: 16px; right: 16px;
    width: 40px; height: 40px;
    border-radius: 50%;
    border: 0;
    background: rgba(255,255,255,0.90);
    color: var(--text);
    font-size: 16px;
    font-weight: 700;
    transition: transform .25s ease;
}
.lightbox-close:hover { transform: rotate(90deg) scale(1.1); }

/* ============================================================
   CONFETTI (JS-triggered only)
   ============================================================ */
.confetti-container {
    position: fixed;
    inset: 0;
    z-index: 100;
    pointer-events: none;
    overflow: hidden;
}
.confetti-piece {
    position: absolute;
    width: 8px; height: 8px;
    top: -16px;
    border-radius: 2px;
    animation: confetti-fall linear forwards;
}
.confetti-piece:nth-child(odd) { border-radius: 50%; }

/* ============================================================
   KEYFRAMES
   ============================================================ */
@keyframes kenburns {
    0% { transform: scale(1.06) translateY(0); }
    100% { transform: scale(1.10) translateY(-6px); }
}
@keyframes scrollDot {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(10px); opacity: .25; }
}
@keyframes bars {
    0%, 100% { height: 5px; }
    50% { height: 12px; }
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
@keyframes count-pop {
    0% { transform: scale(1); }
    40% { transform: scale(1.15); }
    100% { transform: scale(1); }
}
@keyframes confetti-fall {
    0% { transform: translateX(0) rotateZ(0) rotateY(0); opacity: 1; }
    25% { transform: translateX(24px) rotateZ(90deg) rotateY(180deg); }
    50% { transform: translateX(-16px) rotateZ(180deg) rotateY(360deg); opacity: .85; }
    75% { transform: translateX(12px) rotateZ(270deg) rotateY(180deg); opacity: .5; }
    100% { transform: translateX(0) rotateZ(360deg) rotateY(360deg); opacity: 0; top: 110vh; }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ============================================================
   DYNAMIC KHITANAN THEME OVERRIDES
   ============================================================ */
:root {
    --bg: var(--dynamic-bg, #FCFAF6);
    --bg-soft: var(--dynamic-bg-soft, #F3EDE2);
    --text: var(--dynamic-text, #2F3630);
    --primary: var(--dynamic-primary, #4A8C72);
    --primary-dark: color-mix(in srgb, var(--primary), #17352b 28%);
    --primary-light: color-mix(in srgb, var(--primary), #ffffff 34%);
    --secondary: var(--dynamic-secondary, #C4943B);
    --secondary-dark: color-mix(in srgb, var(--secondary), #4a3411 24%);
    --accent: var(--dynamic-accent, #EFE0BA);
    --font-title: var(--dynamic-title-font, 'Fredoka', sans-serif);
    --font-body: var(--dynamic-body-font, 'Nunito', sans-serif);
}

body {
    background:
        radial-gradient(circle at 12% 0%, color-mix(in srgb, var(--accent), transparent 68%), transparent 30%),
        linear-gradient(180deg, var(--bg), var(--bg-soft));
}

.scene { background: var(--bg); }
.scene-bg {
    background-image: var(--section-bg-image), radial-gradient(circle at 24% 18%, rgba(255,255,255,.96), transparent 24%), linear-gradient(145deg, var(--bg), var(--bg-soft));
    background-size: cover;
    background-position: center;
    transform: scale(1.04);
    animation: kenburns-bg 24s ease-in-out infinite alternate;
    filter: saturate(.92) brightness(1.04);
}
.scene-bg img { display: none; }
.scene-overlay {
    background:
        radial-gradient(circle at 16% 18%, rgba(255,255,255,.58), transparent 26%),
        radial-gradient(circle at 90% 12%, color-mix(in srgb, var(--accent), transparent 70%), transparent 24%),
        linear-gradient(180deg, rgba(252,250,246,.58), rgba(252,250,246,.42));
}
.scene-gradient {
    background: linear-gradient(to bottom,
        var(--bg) 0%,
        color-mix(in srgb, var(--bg), transparent 20%) 16%,
        color-mix(in srgb, var(--bg), transparent 44%) 42%,
        color-mix(in srgb, var(--bg), transparent 44%) 58%,
        color-mix(in srgb, var(--bg), transparent 18%) 84%,
        var(--bg) 100%
    );
}
.scene::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    opacity: .28;
    background-image:
        radial-gradient(circle at 18px 18px, color-mix(in srgb, var(--primary), transparent 78%) 0 2px, transparent 2px),
        radial-gradient(circle at 58px 46px, color-mix(in srgb, var(--secondary), transparent 82%) 0 1.5px, transparent 2px);
    background-size: 86px 86px;
}
.cover-card,
.quote-card,
.info-panel,
.form-panel,
.gift-panel,
.wish-panel {
    background: color-mix(in srgb, var(--surface-solid), transparent 7%);
    border-color: color-mix(in srgb, var(--primary), transparent 86%);
    box-shadow: 0 12px 38px rgba(47, 54, 48, .08);
}
.panel-frame { border-color: color-mix(in srgb, var(--primary), transparent 86%); }
.cover-name,
.profile-name,
.count-number,
.bank-value { color: var(--secondary-dark); }
.primary-btn,
.inline-btn,
.choice-btn.is-active,
.music-btn,
.wish-item::before { background: var(--primary); }
.submit-btn { background: var(--secondary); }
.bottom-nav,
.music-fab { background: rgba(255,255,255,.88); }

@keyframes kenburns-bg {
    0% { transform: scale(1.04) translateY(0); }
    100% { transform: scale(1.09) translateY(-7px); }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (min-width: 768px) {
    html, body { overflow: hidden; height: 100%; }
    .page-shell {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(390px, 430px);
        height: 100vh;
        overflow: hidden;
    }
    .desktop-side {
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        background-image: var(--section-bg-image);
        background-size: cover;
        background-position: center;
        position: relative;
    }
    .desktop-side::before {
        content: '';
        position: absolute;
        inset: 0;
        background:
            radial-gradient(ellipse at 40% 40%, rgba(74, 140, 114, 0.06), transparent 55%),
            radial-gradient(ellipse at 60% 65%, rgba(239, 224, 186, 0.10), transparent 50%),
            linear-gradient(180deg, rgba(252,250,246,.78), rgba(252,250,246,.52));
        pointer-events: none;
    }
    .desktop-copy { position: relative; z-index: 1; }
    .mobile-stage {
        width: min(100%, 430px);
        margin-left: auto;
        height: 100vh;
        min-height: 100vh;
        overflow-y: auto;
        overscroll-behavior: contain;
        box-shadow: -16px 0 48px rgba(47, 54, 48, 0.05);
    }
    .stage-stack { position: relative; }
    .form-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mobile-stage { scroll-behavior: smooth; }
}
@media (max-width: 767px) {
    html, body { overflow: auto; height: auto; }
    .scene-orb { display: none; }
    .bottom-nav { bottom: 72px; }
}
