@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,500&family=Jost:wght@300;400;500;600&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ══════════════════════════════════════
   ROOT TOKENS
══════════════════════════════════════ */
:root {
    --gold: #C9A84C;
    --gold-light: #E0BF6A;
    --gold-dim: rgba(201, 168, 76, 0.25);
    --gold-glow: rgba(201, 168, 76, 0.18);
    --black: #0D0D0D;
    --dark: #111111;
    --dark-2: #161616;
    --dark-3: #1c1c1c;
    --cream: #F5F5F0;
    --cream-dim: rgba(245, 245, 240, 0.45);
}

body {
    font-family: 'Jost', sans-serif;
    background: var(--black);
    color: var(--cream);
    overflow-x: hidden;
}

/* ══════════════════════════════════════
   FLOATING BG IMAGES
══════════════════════════════════════ */
.bd-float-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.bd-float-img {
    position: absolute;
    width: clamp(110px, 18vw, 230px);
    height: clamp(85px, 14vw, 180px);
    object-fit: cover;
    border-radius: 14px;
    border: 1.5px solid rgba(201, 168, 76, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6), 0 0 0 0.5px rgba(201, 168, 76, 0.1);
    opacity: 0;
    filter: brightness(0.5) saturate(0.65);
    transition: opacity 1s ease;
    will-change: transform;
}

.bd-float-img.visible {
    opacity: 1;
}

.bd-float-overlay {
    position: fixed;
    inset: 0;
    z-index: 1;
    background: linear-gradient(160deg, rgba(13, 13, 13, 0.78) 0%, rgba(13, 13, 13, 0.88) 100%);
    backdrop-filter: blur(2px);
    pointer-events: none;
    transition: opacity 0.8s;
}

.bd-float-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

/* ══════════════════════════════════════
   CONFETTI CANVAS
══════════════════════════════════════ */
.bd-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 6;
}

/* ══════════════════════════════════════
   SHELL & CORNERS
══════════════════════════════════════ */
.bd-shell {
    position: relative;
    z-index: 5;
    min-height: 100svh;
    perspective: 1400px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: -110px;
}

.bd-corner {
    position: fixed;
    width: 44px;
    height: 44px;
    border-color: var(--gold);
    border-style: solid;
    opacity: 0.22;
    z-index: 6;
    pointer-events: none;
    transition: opacity 0.4s;
}

.bd-corner::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--gold);
    opacity: 0.5;
}

.bd-corner.tl {
    top: 18px;
    left: 18px;
    border-width: 1px 0 0 1px;
}

.bd-corner.tl::after {
    bottom: -2px;
    right: -2px;
}

.bd-corner.tr {
    top: 18px;
    right: 18px;
    border-width: 1px 1px 0 0;
}

.bd-corner.tr::after {
    bottom: -2px;
    left: -2px;
}

.bd-corner.bl {
    bottom: 80px;
    left: 18px;
    border-width: 0 0 1px 1px;
}

.bd-corner.bl::after {
    top: -2px;
    right: -2px;
}

.bd-corner.br {
    bottom: 80px;
    right: 18px;
    border-width: 0 1px 1px 0;
}

.bd-corner.br::after {
    top: -2px;
    left: -2px;
}

/* ══════════════════════════════════════
   CARD FLIP
══════════════════════════════════════ */
.bd-step {
    display: none;
    width: 100%;
    min-height: 100svh;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 80px 24px 64px;
    text-align: center;
    backface-visibility: hidden;
}

.bd-step.active {
    display: flex;
}

.bd-step.flip-in {
    animation: flipIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.bd-step.flip-out {
    animation: flipOut 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes flipIn {
    from {
        opacity: 0;
        transform: rotateY(-80deg) scale(0.92) translateZ(-60px);
    }

    to {
        opacity: 1;
        transform: rotateY(0deg) scale(1) translateZ(0);
    }
}

@keyframes flipOut {
    from {
        opacity: 1;
        transform: rotateY(0deg) scale(1) translateZ(0);
    }

    to {
        opacity: 0;
        transform: rotateY(80deg) scale(0.92) translateZ(-60px);
    }
}

/* ══════════════════════════════════════
   PANELS
══════════════════════════════════════ */
.bd-panel {
    width: 100%;
    max-width: 1000px;
    /* subtle glass card behind content */
    background: rgba(13, 13, 13, 0.55);
    backdrop-filter: blur(12px);
    border: 0.5px solid rgba(201, 168, 76, 0.12);
    border-radius: 24px;
    padding: 40px 32px 36px;
    margin-top: -50px;
    box-shadow:
        0 0 0 0.5px rgba(201, 168, 76, 0.06) inset,
        0 32px 80px rgba(0, 0, 0, 0.55),
        0 0 60px rgba(201, 168, 76, 0.04);
}

.bd-panel-wide {
    max-width: min(96vw, 580px);
    padding: 32px 24px 28px;
}

/* ══════════════════════════════════════
   TYPOGRAPHY
══════════════════════════════════════ */
.bd-eyebrow {
    font-size: 10px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-weight: 400;
}

.bd-eyebrow::before,
.bd-eyebrow::after {
    content: '';
    display: block;
    width: 28px;
    height: 0.5px;
    background: linear-gradient(90deg, transparent, var(--gold));
    opacity: 0.6;
}

.bd-eyebrow::after {
    background: linear-gradient(90deg, var(--gold), transparent);
}

.bd-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 42px;
    font-weight: 300;
    color: var(--cream);
    line-height: 1.12;
    margin-bottom: 10px;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.4);
}

.bd-title em {
    font-style: italic;
    color: var(--gold);
}

.bd-sub {
    font-size: 13px;
    font-weight: 300;
    color: var(--cream-dim);
    letter-spacing: 0.04em;
    margin-bottom: 28px;
    line-height: 1.65;
}

/* ══════════════════════════════════════
   BUTTONS
══════════════════════════════════════ */
.bd-btn-row {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.bd-btn-gold {
    background: linear-gradient(135deg, #D4B25A 0%, #C9A84C 50%, #B8922E 100%);
    color: var(--black);
    border: none;
    border-radius: 10px;
    padding: 14px 30px;
    font-family: 'Jost', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 20px rgba(201, 168, 76, 0.3), 0 1px 0 rgba(255, 255, 255, 0.15) inset;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.bd-btn-gold::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
    transition: left 0.5s ease;
}

.bd-btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(201, 168, 76, 0.4);
}

.bd-btn-gold:hover::after {
    left: 160%;
}

.bd-btn-gold:active {
    transform: translateY(0) scale(0.97);
}

.bd-btn-ghost {
    background: rgba(245, 245, 240, 0.04);
    color: rgba(245, 245, 240, 0.55);
    border: 0.5px solid rgba(245, 245, 240, 0.14);
    border-radius: 10px;
    padding: 14px 24px;
    font-family: 'Jost', sans-serif;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.25s ease;
    backdrop-filter: blur(4px);
}

.bd-btn-ghost:hover {
    border-color: rgba(201, 168, 76, 0.45);
    color: var(--gold);
    background: rgba(201, 168, 76, 0.06);
    box-shadow: 0 0 18px rgba(201, 168, 76, 0.1);
}

/* ══════════════════════════════════════
   PIN KEYPAD
══════════════════════════════════════ */
.bd-pin-wrap {
    width: 100%;
    max-width: 270px;
    margin: 0 auto;
}

.bd-pin-dots {
    display: flex;
    gap: 14px;
    justify-content: center;
    margin-bottom: 28px;
}

.bd-pin-dot {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    border: 1.5px solid rgba(201, 168, 76, 0.35);
    background: transparent;
    transition: all 0.25s ease;
    position: relative;
}

.bd-pin-dot.filled {
    background: var(--gold);
    border-color: var(--gold);
    box-shadow: 0 0 10px rgba(201, 168, 76, 0.6), 0 0 24px rgba(201, 168, 76, 0.25);
    animation: dotPop 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes dotPop {
    from {
        transform: scale(0.6)
    }

    to {
        transform: scale(1)
    }
}

.bd-pin-keypad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.bd-pin-key {
    background: var(--dark-2);
    border: 0.5px solid rgba(245, 245, 240, 0.07);
    border-radius: 14px;
    padding: 17px 0;
    font-family: 'Cormorant Garamond', serif;
    font-size: 24px;
    font-weight: 400;
    color: var(--cream);
    cursor: pointer;
    transition: all 0.15s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), 0 1px 0 rgba(255, 255, 255, 0.04) inset;
    position: relative;
    overflow: hidden;
}

.bd-pin-key:hover {
    background: rgba(201, 168, 76, 0.08);
    border-color: rgba(201, 168, 76, 0.3);
    color: var(--gold-light);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4), 0 0 12px rgba(201, 168, 76, 0.1);
}

.bd-pin-key:active {
    transform: scale(0.91);
}

.bd-pin-clear {
    color: var(--gold);
    font-size: 18px;
}

.bd-pin-submit {
    background: linear-gradient(135deg, #D4B25A, #C9A84C, #B8922E);
    color: var(--black);
    border-color: var(--gold);
    font-size: 18px;
    box-shadow: 0 4px 16px rgba(201, 168, 76, 0.35);
}

.bd-pin-submit:hover {
    box-shadow: 0 6px 22px rgba(201, 168, 76, 0.5);
    color: var(--black);
}

.bd-pin-error {
    font-family: 'Cormorant Garamond', serif;
    font-size: 13px;
    font-style: italic;
    color: rgba(235, 80, 80, 0.8);
    margin-top: 16px;
    min-height: 18px;
    letter-spacing: 0.02em;
}

.bd-pin-wrap.shake {
    animation: pinShake 0.45s cubic-bezier(.36, .07, .19, .97);
}

@keyframes pinShake {

    0%,
    100% {
        transform: translateX(0)
    }

    18% {
        transform: translateX(-10px)
    }

    36% {
        transform: translateX(10px)
    }

    54% {
        transform: translateX(-7px)
    }

    72% {
        transform: translateX(7px)
    }

    90% {
        transform: translateX(-3px)
    }
}

/* ══════════════════════════════════════
   LOADING CAKE
══════════════════════════════════════ */
.bd-loading-cake {
    width: 150px;
    height: 150px;
    margin: 0 auto 28px;
    filter: drop-shadow(0 0 18px rgba(201, 168, 76, 0.2));
}

.bd-load-svg {
    width: 150px;
    height: 150px;
}

.bd-load-tier {
    opacity: 0;
    transition: opacity 0.7s ease;
}

.bd-load-tier.visible {
    opacity: 1;
}

.bd-load-bar-wrap {
    max-width: 260px;
    margin: 0 auto;
}

.bd-load-bar {
    width: 100%;
    height: 2px;
    background: rgba(245, 245, 240, 0.06);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 14px;
    box-shadow: 0 0 8px rgba(201, 168, 76, 0.1);
}

.bd-load-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #B8922E, var(--gold), var(--gold-light));
    border-radius: 2px;
    transition: width 0.35s ease;
    box-shadow: 0 0 10px rgba(201, 168, 76, 0.6);
}

.bd-load-label {
    font-size: 12px;
    color: rgba(245, 245, 240, 0.38);
    letter-spacing: 0.1em;
    font-style: italic;
    font-family: 'Cormorant Garamond', serif;
}

/* ══════════════════════════════════════
   CAKE FLAMES
══════════════════════════════════════ */
.bd-flame {
    transform-origin: 50% 90%;
    animation: flicker 0.9s ease-in-out infinite alternate;
    filter: drop-shadow(0 0 4px rgba(201, 168, 76, 0.8));
}

.bd-flame-2 {
    transform-origin: 50% 90%;
    animation: flicker 0.7s ease-in-out infinite alternate-reverse;
    filter: drop-shadow(0 0 5px rgba(224, 191, 106, 0.9));
}

.bd-flame-3 {
    transform-origin: 50% 90%;
    animation: flicker 1.1s ease-in-out infinite alternate;
    filter: drop-shadow(0 0 4px rgba(201, 168, 76, 0.8));
}

@keyframes flicker {
    0% {
        transform: scaleX(1) scaleY(1) rotate(-4deg);
    }

    100% {
        transform: scaleX(0.82) scaleY(0.88) rotate(4deg);
    }
}

/* ══════════════════════════════════════
   DOOR
══════════════════════════════════════ */
.bd-door-wrap {
    position: relative;
    width: 170px;
    height: 234px;
    margin: 0 auto 36px;
    cursor: pointer;
    filter: drop-shadow(0 8px 28px rgba(0, 0, 0, 0.5));
    transition: filter 0.3s;
}

.bd-door-wrap:hover {
    filter: drop-shadow(0 12px 36px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 20px rgba(201, 168, 76, 0.15));
}

.bd-door-frame {
    position: absolute;
    inset: 0;
    border: 1.5px solid rgba(201, 168, 76, 0.45);
    border-radius: 12px 12px 0 0;
    background: linear-gradient(160deg, #141414, #0e0e0e);
    box-shadow: 0 0 0 0.5px rgba(201, 168, 76, 0.1) inset;
}

.bd-door-panel {
    position: absolute;
    inset: 0;
    border-radius: 12px 12px 0 0;
    background: linear-gradient(160deg, #222, #1a1a1a);
    border: 1.5px solid rgba(201, 168, 76, 0.3);
    transform-origin: left center;
    transition: transform 1s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.4);
}

/* door panel texture lines */
.bd-door-panel::before,
.bd-door-panel::after {
    content: '';
    position: absolute;
    left: 20%;
    right: 20%;
    height: 0.5px;
    background: rgba(201, 168, 76, 0.1);
}

.bd-door-panel::before {
    top: 28%;
}

.bd-door-panel::after {
    top: 60%;
}

.bd-door-knob {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, var(--gold-light), var(--gold), #8B6914);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5), 0 0 8px rgba(201, 168, 76, 0.3);
}

.bd-door-hint {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    color: rgba(245, 245, 240, 0.28);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    white-space: nowrap;
    transition: opacity 0.3s;
}

.bd-door-inside {
    position: absolute;
    inset: 0;
    border-radius: 12px 12px 0 0;
    background: radial-gradient(ellipse at center, #141414, #0a0a0a);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
}

.bd-door-inside span:first-child {
    font-size: 36px;
    filter: drop-shadow(0 0 12px rgba(201, 168, 76, 0.4));
}

/* glow pulse on door */
.bd-door-frame::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 12px 12px 0 0;
    border: 1px solid rgba(201, 168, 76, 0.2);
    animation: doorPulse 2.5s ease-in-out infinite;
}

@keyframes doorPulse {

    0%,
    100% {
        box-shadow: 0 0 0 rgba(201, 168, 76, 0);
    }

    50% {
        box-shadow: 0 0 18px rgba(201, 168, 76, 0.2);
    }
}

.bd-door-wrap.opened .bd-door-panel {
    transform: perspective(700px) rotateY(-135deg);
}

.bd-door-wrap.opened .bd-door-hint {
    opacity: 0;
}

.bd-door-wrap.opened .bd-door-frame::after {
    animation: none;
}

/* ══════════════════════════════════════
   WISH
══════════════════════════════════════ */
.bd-cake-wrap {
    margin: 0 auto 22px;
    width: 130px;
    height: 130px;
    filter: drop-shadow(0 0 16px rgba(201, 168, 76, 0.25));
}

.bd-cake-svg {
    width: 130px;
    height: 130px;
}

.bd-wish-wrap {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
}

.bd-wish-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 0.5px solid rgba(201, 168, 76, 0.22);
    border-radius: 12px;
    padding: 14px 18px;
    color: var(--cream);
    font-family: 'Jost', sans-serif;
    font-size: 14px;
    outline: none;
    margin-bottom: 14px;
    transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
    backdrop-filter: blur(4px);
}

.bd-wish-input::placeholder {
    color: rgba(245, 245, 240, 0.2);
}

.bd-wish-input:focus {
    border-color: var(--gold);
    background: rgba(201, 168, 76, 0.04);
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.1), 0 4px 20px rgba(0, 0, 0, 0.3);
}

.bd-wish-echo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 15px;
    font-style: italic;
    color: rgba(201, 168, 76, 0.7);
    margin-top: 16px;
    min-height: 22px;
}

/* ══════════════════════════════════════
   COUNTDOWN
══════════════════════════════════════ */
.bd-countdown-wrap {
    margin-bottom: 26px;
}

.bd-countdown {
    display: flex;
    gap: 14px;
    justify-content: center;
    align-items: center;
}

.bd-count-box {
    background: linear-gradient(160deg, var(--dark-3), var(--dark));
    border: 0.5px solid rgba(201, 168, 76, 0.22);
    border-radius: 14px;
    padding: 14px 16px;
    min-width: 60px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), 0 0 0 0.5px rgba(201, 168, 76, 0.08) inset;
}

.bd-count-num {
    font-family: 'Cormorant Garamond', serif;
    font-size: 32px;
    font-weight: 600;
    color: var(--gold);
    line-height: 1;
    text-shadow: 0 0 20px rgba(201, 168, 76, 0.4);
}

.bd-count-lab {
    font-size: 9px;
    color: rgba(245, 245, 240, 0.3);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-top: 4px;
}

.bd-count-sep {
    font-family: 'Cormorant Garamond', serif;
    font-size: 26px;
    color: rgba(201, 168, 76, 0.35);
    line-height: 1;
    margin-top: -10px;
    animation: sepBlink 1s ease-in-out infinite;
}

@keyframes sepBlink {

    0%,
    100% {
        opacity: 0.35
    }

    50% {
        opacity: 0.7
    }
}

/* ══════════════════════════════════════
   MESSAGE
══════════════════════════════════════ */
.bd-msg-box {
    background: linear-gradient(160deg, rgba(28, 28, 28, 0.95), rgba(17, 17, 17, 0.95));
    border: 0.5px solid rgba(201, 168, 76, 0.28);
    border-radius: 16px;
    padding: 26px 28px;
    max-width: 310px;
    margin: 0 auto 22px;
    display: none;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5), 0 0 0 0.5px rgba(201, 168, 76, 0.08) inset;
    position: relative;
    overflow: hidden;
}

.bd-msg-box::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 14px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 72px;
    color: rgba(201, 168, 76, 0.08);
    line-height: 1;
    pointer-events: none;
}

.bd-msg-box.show {
    display: block;
    animation: fadeSlideUp 0.7s ease both;
}

.bd-msg-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 17px;
    font-style: italic;
    color: var(--cream);
    line-height: 1.7;
}

/* ══════════════════════════════════════
   CELEBRATE & FIREWORKS
══════════════════════════════════════ */
.bd-big-cake {
    margin: 0 auto 14px;
    display: flex;
    justify-content: center;
    position: relative;
    filter: drop-shadow(0 0 24px rgba(201, 168, 76, 0.3));
}

.bd-fireworks {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 220px;
    pointer-events: none;
    overflow: visible;
}

.bd-fw {
    position: absolute;
    left: var(--x);
    top: var(--y);
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--c);
    animation: fwBurst 1.8s ease-out var(--d) infinite;
    box-shadow: 0 0 6px var(--c);
}

@keyframes fwBurst {
    0% {
        transform: scale(0);
        opacity: 1;
        box-shadow: 0 0 0 0 var(--c), 0 0 0 0 var(--c), 0 0 0 0 var(--c), 0 0 0 0 var(--c), 0 0 0 0 var(--c), 0 0 0 0 var(--c), 0 0 0 0 var(--c), 0 0 0 0 var(--c);
    }

    35% {
        transform: scale(1);
        opacity: 1;
        box-shadow: 0 -32px 0 0 var(--c), 23px -23px 0 0 var(--c), 32px 0 0 0 var(--c), 23px 23px 0 0 var(--c), 0 32px 0 0 var(--c), -23px 23px 0 0 var(--c), -32px 0 0 0 var(--c), -23px -23px 0 0 var(--c);
    }

    80% {
        opacity: 0.2;
    }

    100% {
        transform: scale(1.4);
        opacity: 0;
        box-shadow: 0 -58px 0 0 var(--c), 41px -41px 0 0 var(--c), 58px 0 0 0 var(--c), 41px 41px 0 0 var(--c), 0 58px 0 0 var(--c), -41px 41px 0 0 var(--c), -58px 0 0 0 var(--c), -41px -41px 0 0 var(--c);
    }
}

/* ══════════════════════════════════════
   SLIDESHOW
══════════════════════════════════════ */
.bd-slideshow {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin-bottom: 14px;
}

.bd-slide-track {
    flex: 1;
    border-radius: 16px;
    overflow: hidden;
    border: 0.5px solid rgba(201, 168, 76, 0.2);
    background: var(--dark);
    position: relative;
    height: clamp(200px, calc(100svh - 320px), 520px);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5), 0 0 0 0.5px rgba(201, 168, 76, 0.06) inset;
}

.bd-slide-frame {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.bd-slide-frame.active {
    opacity: 1;
}

.bd-slide-frame img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* caption overlay gradient */
.bd-slide-frame::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(to top, rgba(13, 13, 13, 0.55), transparent);
    pointer-events: none;
}

.bd-slide-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: rgba(201, 168, 76, 0.3);
    font-size: 40px;
}

.bd-slide-placeholder span {
    font-family: 'Jost', sans-serif;
    font-size: 12px;
    color: rgba(245, 245, 240, 0.22);
    letter-spacing: 0.1em;
}

.bd-slide-arrow {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border-radius: 50%;
    background: rgba(17, 17, 17, 0.9);
    border: 0.5px solid rgba(201, 168, 76, 0.28);
    color: var(--gold);
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.22s ease;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.bd-slide-arrow:hover {
    background: rgba(201, 168, 76, 0.1);
    border-color: var(--gold);
    box-shadow: 0 4px 20px rgba(201, 168, 76, 0.2);
    transform: scale(1.06);
}

.bd-slide-arrow:disabled {
    opacity: 0.2;
    cursor: default;
    transform: none;
}

.bd-slide-dots {
    display: flex;
    gap: 7px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.bd-slide-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(201, 168, 76, 0.2);
    transition: all 0.25s ease;
    cursor: pointer;
    border: none;
    padding: 0;
}

.bd-slide-dot.active {
    background: var(--gold);
    transform: scale(1.5);
    box-shadow: 0 0 8px rgba(201, 168, 76, 0.5);
}

.bd-slide-counter {
    font-size: 11px;
    color: rgba(245, 245, 240, 0.28);
    letter-spacing: 0.1em;
    margin-bottom: 6px;
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);

}

/* ══════════════════════════════════════
   GIFT BOX
══════════════════════════════════════ */
.bd-gift-wrap {
    position: relative;
    width: 150px;
    height: 172px;
    margin: 0 auto 24px;
    cursor: pointer;
    filter: drop-shadow(0 10px 32px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 18px rgba(201, 168, 76, 0.1));
    transition: filter 0.3s;
}

.bd-gift-wrap:hover {
    filter: drop-shadow(0 14px 40px rgba(0, 0, 0, 0.7)) drop-shadow(0 0 28px rgba(201, 168, 76, 0.2));
}

.bd-gift-box {
    position: absolute;
    inset: 0;
}

.bd-gift-lid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 48px;
    background: linear-gradient(160deg, #242424, #1a1a1a);
    border: 1px solid rgba(201, 168, 76, 0.55);
    border-radius: 8px 8px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-origin: center bottom;
    transition: transform 0.8s cubic-bezier(0.34, 1.3, 0.64, 1);
    z-index: 2;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3), 0 1px 0 rgba(255, 255, 255, 0.05) inset;
}

.bd-gift-ribbon-h {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #B8922E, var(--gold-light), #B8922E);
    transform: translateY(-50%);
}

.bd-gift-bow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 32px;
    height: 22px;
}

.bd-bow-l,
.bd-bow-r {
    position: absolute;
    top: 0;
    width: 14px;
    height: 20px;
    border-radius: 50% 0 0 50%;
    border: 2.5px solid var(--gold);
    background: rgba(201, 168, 76, 0.12);
    box-shadow: inset 0 0 6px rgba(201, 168, 76, 0.2);
}

.bd-bow-l {
    left: 0;
    transform: rotate(-30deg);
}

.bd-bow-r {
    right: 0;
    transform: rotate(30deg) scaleX(-1);
}

.bd-gift-body {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 124px;
    background: linear-gradient(160deg, #181818, #111);
    border: 1px solid rgba(201, 168, 76, 0.4);
    border-top: none;
    border-radius: 0 0 10px 10px;
    display: flex;
    align-items: stretch;
    justify-content: center;
    overflow: hidden;
    box-shadow: inset 0 -4px 20px rgba(0, 0, 0, 0.3);
}

.bd-gift-ribbon-v {
    width: 5px;
    background: linear-gradient(180deg, #B8922E, var(--gold-light), #B8922E);
}

.bd-gift-wrap.opened .bd-gift-lid {
    transform: rotateX(-150deg) translateY(-24px);
}

.bd-gift-burst {
    position: absolute;
    top: 4px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 5px;
    pointer-events: none;
    opacity: 0;
}

.bd-gift-burst span {
    font-size: 22px;
    display: block;
}

.bd-gift-wrap.opened .bd-gift-burst {
    animation: burstUp 1s ease-out 0.35s both;
}

@keyframes burstUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(0) scale(0.4);
    }

    45% {
        opacity: 1;
    }

    to {
        opacity: 0;
        transform: translateX(-50%) translateY(-90px) scale(1.3);
    }
}

.bd-gift-wrap.shaking .bd-gift-box {
    animation: giftShake 0.7s cubic-bezier(.36, .07, .19, .97);
}

@keyframes giftShake {

    0%,
    100% {
        transform: rotate(0)
    }

    14% {
        transform: rotate(-9deg)
    }

    28% {
        transform: rotate(9deg)
    }

    42% {
        transform: rotate(-7deg)
    }

    56% {
        transform: rotate(7deg)
    }

    70% {
        transform: rotate(-4deg)
    }

    84% {
        transform: rotate(4deg)
    }
}

.bd-gift-msg {
    background: linear-gradient(160deg, rgba(28, 28, 28, 0.96), rgba(17, 17, 17, 0.96));
    border: 0.5px solid rgba(201, 168, 76, 0.3);
    border-radius: 16px;
    padding: 24px 26px;
    max-width: 310px;
    margin: 0 auto;
    display: none;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(201, 168, 76, 0.06);
    position: relative;
    overflow: hidden;
}

.bd-gift-msg::before {
    content: '"';
    position: absolute;
    top: -8px;
    left: 14px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 72px;
    color: rgba(201, 168, 76, 0.07);
    line-height: 1;
    pointer-events: none;
}

.bd-gift-msg.show {
    display: block;
}

@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.bd-gift-msg.show,
.bd-msg-box.show {
    animation: fadeSlideUp 0.7s ease both;
}

/* ══════════════════════════════════════
   BRAND
══════════════════════════════════════ */
.bd-brand {
    font-size: 9px;
    color: rgba(201, 168, 76, 0.22);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-top: 22px;
}

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media(max-width:480px) {
    .bd-panel {
        padding: 30px 20px 28px;
        border-radius: 18px;
    }

    .bd-title {
        font-size: 32px;
    }

    .bd-pin-key {
        padding: 14px 0;
        font-size: 20px;
    }

    .bd-slide-track {
        height: clamp(180px, calc(100svh - 350px), 400px);
    }

    .bd-slide-arrow {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .bd-gift-wrap {
        width: 130px;
        height: 150px;
    }

    
}

@media(min-width:768px) {
    .bd-slide-track {
        height: clamp(300px, 56vh, 540px);
    }

    .bd-panel {
        padding: 44px 40px 40px;
    }
    
}

/* ══════════════════════════════════════
   AMBIENT GLOW (global, behind everything)
══════════════════════════════════════ */
.bd-ambient {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(202, 174, 98, 0.445) 0%, transparent 30%);
    pointer-events: none;
    z-index: 2;
    transform: translate(-50%, -50%);
    top: 50%;
    left: 50%;
    transition: top .08s ease, left .08s ease;
    filter: blur(40px);
}

/* ══════════════════════════════════════
   WIND CANVAS
══════════════════════════════════════ */
.bd-wind-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 4;
    display: none;
}

.bd-wind-canvas.active {
    display: block;
}

/* ══════════════════════════════════════
   SMOKE ANIMATION
══════════════════════════════════════ */
.bd-smoke-line {
    animation: smokeRise 1.2s ease-out infinite;
    transform-origin: bottom center;
}

@keyframes smokeRise {
    0% {
        opacity: 0.4;
        transform: translateX(0) scaleY(0.5);
    }

    50% {
        opacity: 0.3;
        transform: translateX(3px) scaleY(1);
    }

    100% {
        opacity: 0;
        transform: translateX(-3px) scaleY(1.4);
    }
}

/* ══════════════════════════════════════
   DOOR LOADING SLIDER
══════════════════════════════════════ */



.bd-door-load-slider {
    position: relative;
    width: 100%;
    height: clamp(200px, 44vw, 300px);
    border-radius: 16px;
    overflow: hidden;
    border: 0.5px solid rgba(201, 168, 76, 0.22);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
    margin-bottom: 14px;
}

.bd-dl-frame {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.6s ease;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.bd-dl-frame.active {
    opacity: 1;
}

.bd-dl-frame img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.bd-dl-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 16px;
    background: linear-gradient(to top, rgba(13, 13, 13, 0.85), transparent);
    font-family: 'Cormorant Garamond', serif;
    font-size: 16px;
    font-style: italic;
    color: var(--cream);
    letter-spacing: 0.02em;
}

.bd-dl-dots {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 4px;
}

.bd-dl-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(201, 168, 76, 0.2);
    transition: all 0.25s;
}

.bd-dl-dot.active {
    background: var(--gold);
    transform: scale(1.4);
    box-shadow: 0 0 8px rgba(201, 168, 76, 0.5);
}

/* ══════════════════════════════════════
   GIFT GALLERY (5 images)
══════════════════════════════════════ */
.bd-gift-gallery {
    width: 100%;
    margin-top: 16px;
}

.bd-gg-slider {
    position: relative;
    width: 100%;
    height: clamp(180px, 50vw, 260px);
    border-radius: 14px;
    overflow: hidden;
    border: 0.5px solid rgba(201, 168, 76, 0.22);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
    margin-bottom: 10px;
}

.bd-gg-frame {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.bd-gg-frame.active {
    opacity: 1;
}

.bd-gg-frame img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.bd-gg-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
}

.bd-gg-dots {
    display: flex;
    gap: 7px;
  justify-content: center;
  margin-top: 16px;
}



.bd-gg-hint {
    font-size: 11px;
    color: rgba(245, 245, 240, 0.3);
    letter-spacing: 0.08em;
    margin-top: 4px;
    font-style: italic;
    font-family: 'Cormorant Garamond', serif;
    font-size: 13px;
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%)
}

/* ══════════════════════════════════════
   CENTER CONFETTI (burst style)
══════════════════════════════════════ */
.bd-center-burst {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 99;
}

/* ══════════════════════════════════════
   VIDEO
══════════════════════════════════════ */
.bd-video-wrap {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    border: 0.5px solid rgba(201, 168, 76, 0.25);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
    background: #000;
    position: relative;
}

.bd-video {
    width: 100%;
    display: block;
    max-height: 50svh;
    object-fit: contain;
}

/* ══════════════════════════════════════
   FINAL COUNTDOWN (3-2-1)
══════════════════════════════════════ */
.bd-final-count {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(100px, 28vw, 180px);
    font-weight: 600;
    color: var(--gold);
    line-height: 1;
    text-shadow: 0 0 60px rgba(201, 168, 76, 0.5), 0 0 120px rgba(201, 168, 76, 0.2);
    animation: countPulse 0.8s ease-in-out infinite alternate;
}

@keyframes countPulse {
    from {
        transform: scale(1);
        opacity: 1;
    }

    to {
        transform: scale(1.08);
        opacity: 0.85;
    }
}

/* ══════════════════════════════════════
   ROMANTIC FINALE
══════════════════════════════════════ */
.bd-finale-heart {
    font-size: clamp(48px, 14vw, 80px);
    margin-bottom: 18px;
    animation: heartbeat 1.2s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(201, 168, 76, 0.5));
}

@keyframes heartbeat {

    0%,
    100% {
        transform: scale(1);
    }

    14% {
        transform: scale(1.15);
    }

    28% {
        transform: scale(1);
    }

    42% {
        transform: scale(1.1);
    }
}

.bd-finale-title {
    font-size: clamp(26px, 7vw, 38px) !important;
    margin-bottom: 14px;
    animation: fadeSlideUp 0.9s ease both;
}

.bd-finale-sub {
    animation: fadeSlideUp 0.9s 0.2s ease both;
    margin-bottom: 20px !important;
}

.bd-finale-divider {
    width: clamp(60px, 30%, 120px);
    height: 0.5px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    margin: 0 auto 14px;
    animation: fadeSlideUp 0.9s 0.35s ease both;
}

.bd-finale-signed {
    font-family: 'Cormorant Garamond', serif;
    font-size: 15px;
    font-style: italic;
    color: rgba(201, 168, 76, 0.6);
    letter-spacing: 0.06em;
    animation: fadeSlideUp 0.9s 0.5s ease both;
}