/* Premium Wedding Invitation Design System & Styling */

:root {
    --envelope-bg-outside: #6b0c22;
    --envelope-bg-inside: #4a0314;
    --envelope-accent: #d4af37;
    --envelope-shadow: rgba(0, 0, 0, 0.4);

    --card-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 40px rgba(212, 175, 55, 0.1);

    --font-royal-head: 'Cinzel', serif;
    --font-floral-head: 'Great Vibes', cursive;
    --font-starry-head: 'Playfair Display', serif;
    --font-sans: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;

    --gold-grad: linear-gradient(135deg, #bf953f 0%, #fcf6ba 25%, #b38728 50%, #fbf5b7 75%, #aa771c 100%);
    --gold-text: #e5c060;

    --transition-slow: all 0.8s cubic-bezier(0.19, 1, 0.22, 1);
    --transition-medium: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-fast: all 0.3s ease;
}

/* Global Utilities */
.hidden {
    display: none !important;
}

/* Base Body Resets for App */
html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    height: 100vh;
    height: 100dvh;
    height: var(--app-height, 100vh);
    overflow: hidden;
}

body {
    background-color: #080c14;
    font-family: var(--font-body);
    user-select: none;
    -webkit-user-select: none;
}

/* Immersive Containers */
.app-container {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    height: var(--app-height, 100vh);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at center, #151e30 0%, #080c14 100%);
    transition: var(--transition-slow);
    z-index: 1;
}

/* Canvas Particle Overlay */
.particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: var(--app-height, 100vh);
    pointer-events: none;
    z-index: 5;
}

/* ==========================================================================
   ENVELOPE 3D STYLE & SCENOGRAPHY
   ========================================================================== */
.envelope-container {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    transition: opacity 1s ease, visibility 1s ease;
}

.envelope-container.fade-out {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

.envelope-wrapper {
    position: relative;
    width: 380px;
    height: 260px;
    perspective: 1200px;
}

.envelope {
    position: relative;
    width: 100%;
    height: 100%;
    background-color: var(--envelope-bg-inside);
    border-radius: 6px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
    transform-style: preserve-3d;
    transition: transform 1.2s cubic-bezier(0.19, 1, 0.22, 1);
}

/* 3D Flap */
.envelope-flap {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    border-left: 190px solid transparent;
    border-right: 190px solid transparent;
    border-top: 140px solid var(--envelope-bg-outside);
    border-radius: 4px;
    transform-origin: top;
    z-index: 4;
    transform: rotateX(0deg);
    transition: transform 0.8s ease, z-index 0.2s ease 0.4s;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.envelope.open .envelope-flap {
    transform: rotateX(180deg);
    z-index: 1;
}

/* Pocket inside shape */
.envelope-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--envelope-bg-inside);
    border-radius: 6px;
    z-index: 1;
}

/* Inner Letter Card preview inside */
.envelope-paper {
    position: absolute;
    bottom: 10px;
    left: 15px;
    width: 350px;
    height: 230px;
    background: #fffdf5;
    border-radius: 4px;
    z-index: 2;
    transform: translateY(0);
    transition: transform 1.2s cubic-bezier(0.19, 1, 0.22, 1);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.paper-preview-content {
    text-align: center;
    border: 1px solid rgba(212, 175, 55, 0.3);
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 10px;
}

.preview-tag {
    font-family: var(--font-royal-head);
    font-size: 0.75rem;
    letter-spacing: 3px;
    color: #8a6d25;
    margin-bottom: 5px;
}

.preview-divider {
    width: 40px;
    height: 1px;
    background: #d4af37;
    margin: 8px 0;
}

.preview-names {
    font-family: 'Great Vibes', cursive;
    font-size: 1.8rem;
    color: #4a0314;
}

.envelope.open .envelope-paper {
    transform: translateY(-130px);
}

/* Front Face Pocket */
.envelope-front {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--envelope-bg-outside);
    clip-path: polygon(0 45%, 50% 100%, 100% 45%, 100% 100%, 0 100%);
    border-radius: 6px;
    z-index: 3;
    box-shadow: inset 0 2px 5px rgba(255, 255, 255, 0.1);
}

/* Glowing Wax Seal */
.wax-seal-wrapper {
    position: absolute;
    top: 110px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    text-align: center;
    transition: opacity 0.5s ease 0.6s, transform 0.5s ease 0.6s;
}

.envelope.open .wax-seal-wrapper {
    opacity: 0;
    transform: translateX(-50%) translateY(30px) scale(0.8);
    pointer-events: none;
}

.wax-seal {
    width: 64px;
    height: 64px;
    background: radial-gradient(circle, #b81433 0%, #7e031a 80%, #560110 100%);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5), 0 0 15px rgba(184, 20, 51, 0.4);
    border: 2px dashed #e63956;
    animation: sealPulse 2s infinite;
    transition: transform 0.3s ease;
}

.wax-seal:hover {
    transform: scale(1.1);
    animation-play-state: paused;
}

.seal-inner {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    color: #ffd2db;
    font-size: 1.25rem;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4);
}

.wax-seal-shadow {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 10px;
    background: rgba(0, 0, 0, 0.4);
    filter: blur(4px);
    z-index: -1;
}

.seal-prompt {
    margin-top: 15px;
    color: #fffdf5;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    animation: textFloat 2s infinite ease-in-out;
}

@keyframes sealPulse {
    0% {
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5), 0 0 0 0 rgba(184, 20, 51, 0.5);
    }

    70% {
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5), 0 0 0 15px rgba(184, 20, 51, 0);
    }

    100% {
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5), 0 0 0 0 rgba(184, 20, 51, 0);
    }
}

@keyframes textFloat {

    0%,
    100% {
        transform: translateY(0);
        opacity: 0.8;
    }

    50% {
        transform: translateY(-5px);
        opacity: 1;
    }
}

/* ==========================================================================
   CINEMATIC CARD DECK LAYOUT
   ========================================================================== */
.invitation-card {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
    z-index: 8;
    opacity: 0;
    transition: opacity 1.5s ease 0.4s;
}

.invitation-card.visible {
    opacity: 1;
}

.invitation-card.hidden {
    display: none !important;
}

.card-deck {
    width: 100%;
    max-width: 440px;
    height: 90vh;
    height: 90dvh;
    height: var(--app-height, 90vh);
    max-height: 740px;
    background-color: var(--card-bg, #1a2238);
    border-radius: 24px;
    border: 1px solid var(--card-border, rgba(255, 255, 255, 0.1));
    box-shadow: var(--card-shadow);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Dynamic Slide Containers */
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 35px 25px;
    box-sizing: border-box;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transform: translateY(40px) scale(0.95);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1),
        transform 0.8s cubic-bezier(0.25, 1, 0.5, 1),
        visibility 0.8s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    z-index: 1;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
}

.slide::-webkit-scrollbar {
    display: none;
}

.slide.active {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    transform: translateY(0) scale(1);
    z-index: 2;
}

.slide.slide-out {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-40px) scale(0.95);
}

.slide-inner {
    width: 100%;
    height: auto;
    min-height: 100%;
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    border: 1px dashed var(--decor-border, rgba(212, 175, 55, 0.25));
    border-radius: 16px;
    padding: 30px 15px;
    box-sizing: border-box;
    position: relative;
}

/* ==========================================================================
   THEME STYLES (ROYAL, FLORAL, STARRY)
   ========================================================================== */

/* 1. ROYAL THEME */
.theme-royal {
    --card-bg: linear-gradient(145deg, #440412 0%, #200006 100%);
    --card-border: rgba(212, 175, 55, 0.25);
    --card-shadow: 0 25px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(212, 175, 55, 0.15);
    --decor-border: rgba(212, 175, 55, 0.3);

    --primary-color: #d4af37;
    --text-color: #fffdf5;
    --text-muted: #d5bca4;
}

.theme-royal .couple-names {
    font-family: var(--font-royal-head);
    color: var(--primary-color);
    background: var(--gold-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.theme-royal .slide-title {
    font-family: var(--font-royal-head);
    color: var(--primary-color);
    letter-spacing: 2px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.theme-royal .filigree-decoration {
    position: absolute;
    width: 80px;
    height: 25px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.8;
}

.theme-royal .top-decor {
    top: 10px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 30" fill="%23d4af37"><path d="M50 0 C40 10 20 10 0 15 C20 20 40 20 50 30 C60 20 80 20 100 15 C80 10 60 10 50 0 Z"/></svg>');
}

.theme-royal .bottom-decor {
    bottom: 10px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 30" fill="%23d4af37"><path d="M50 30 C40 20 20 20 0 15 C20 10 40 10 50 0 C60 10 80 10 100 15 C80 20 60 20 50 30 Z"/></svg>');
}

.theme-royal .floral-divider {
    width: 60px;
    height: 10px;
    margin: 5px auto 20px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 50 10" fill="%23d4af37"><circle cx="25" cy="5" r="4"/><path d="M15 5 C20 2 20 8 25 5 M35 5 C30 2 30 8 25 5"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
}

/* 2. FLORAL THEME */
.theme-floral {
    --card-bg: linear-gradient(145deg, #092e1e 0%, #03140c 100%);
    --card-border: rgba(243, 198, 198, 0.25);
    --card-shadow: 0 25px 50px rgba(0, 0, 0, 0.6), 0 0 35px rgba(243, 198, 198, 0.1);
    --decor-border: rgba(243, 198, 198, 0.2);

    --primary-color: #f3c6c6;
    --text-color: #fcf9f9;
    --text-muted: #b9cfc5;
}

.theme-floral .couple-names {
    font-family: var(--font-floral-head);
    font-size: 3.5rem;
    line-height: 1;
    font-weight: 400;
    color: #f3c6c6;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.theme-floral .slide-title {
    font-family: var(--font-floral-head);
    font-size: 2.8rem;
    font-weight: 400;
    color: var(--primary-color);
}

.theme-floral .top-decor {
    top: 5px;
    width: 60px;
    height: 35px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 40" fill="%23f3c6c6"><path d="M30 5 C25 20 10 20 5 35 C20 30 25 15 30 35 C35 15 40 30 55 35 C50 20 35 20 30 5 Z"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
}

.theme-floral .bottom-decor {
    bottom: 5px;
    width: 60px;
    height: 35px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 40" fill="%23f3c6c6"><path d="M30 35 C25 20 10 20 5 5 C20 10 25 25 30 5 C35 25 40 10 55 5 C50 20 35 20 30 35 Z"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
}

.theme-floral .floral-divider {
    width: 80px;
    height: 15px;
    margin: 0 auto 15px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 80 20" fill="%23f3c6c6"><path d="M40 10 C35 5, 20 5, 25 15 C30 15, 35 15, 40 10 M40 10 C45 5, 60 5, 55 15 C50 15, 45 15, 40 10"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
}

/* 3. STARRY THEME */
.theme-starry {
    --card-bg: linear-gradient(145deg, #090e1b 0%, #030408 100%);
    --card-border: rgba(96, 165, 250, 0.2);
    --card-shadow: 0 25px 50px rgba(0, 0, 0, 0.7), 0 0 35px rgba(59, 130, 246, 0.15);
    --decor-border: rgba(96, 165, 250, 0.15);

    --primary-color: #93c5fd;
    --text-color: #f8fafc;
    --text-muted: #94a3b8;
}

.theme-starry .couple-names {
    font-family: var(--font-starry-head);
    font-style: italic;
    font-weight: 700;
    color: var(--primary-color);
    text-shadow: 0 0 15px rgba(147, 197, 253, 0.4);
}

.theme-starry .slide-title {
    font-family: var(--font-starry-head);
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-color);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.theme-starry .top-decor {
    top: 15px;
    width: 30px;
    height: 30px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%2393c5fd"><path d="M12 0L14.6 9.4L24 12L14.6 14.6L12 24L9.4 14.6L0 12L9.4 9.4Z"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
}

.theme-starry .bottom-decor {
    bottom: 15px;
    width: 30px;
    height: 30px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%2393c5fd"><path d="M12 0L14.6 9.4L24 12L14.6 14.6L12 24L9.4 14.6L0 12L9.4 9.4Z"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
}

.theme-starry .floral-divider {
    width: 60px;
    height: 10px;
    margin: 5px auto 20px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 50 10" fill="%2393c5fd"><path d="M0 5h15l2-2 2 4 2-4 2 2h27"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
}


/* 4. SAPPHIRE THEME */
.theme-sapphire {
    --card-bg: linear-gradient(145deg, #021a30 0%, #010a15 100%);
    --card-border: rgba(99, 102, 241, 0.25);
    --card-shadow: 0 25px 50px rgba(0, 0, 0, 0.7), 0 0 35px rgba(99, 102, 241, 0.2);
    --decor-border: rgba(99, 102, 241, 0.15);

    --primary-color: #60a5fa;
    --text-color: #f1f5f9;
    --text-muted: #94a3b8;
}

.theme-sapphire .couple-names {
    font-family: var(--font-starry-head);
    font-style: italic;
    font-weight: 700;
    color: var(--primary-color);
    text-shadow: 0 0 15px rgba(96, 165, 250, 0.4);
}

.theme-sapphire .slide-title {
    font-family: var(--font-starry-head);
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-color);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.theme-sapphire .top-decor {
    top: 15px;
    width: 30px;
    height: 30px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%2360a5fa"><path d="M12 0L14.6 9.4L24 12L14.6 14.6L12 24L9.4 14.6L0 12L9.4 9.4Z"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
}

.theme-sapphire .bottom-decor {
    bottom: 15px;
    width: 30px;
    height: 30px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%2360a5fa"><path d="M12 0L14.6 9.4L24 12L14.6 14.6L12 24L9.4 14.6L0 12L9.4 9.4Z"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
}

.theme-sapphire .floral-divider {
    width: 60px;
    height: 10px;
    margin: 5px auto 20px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 50 10" fill="%2360a5fa"><path d="M0 5h15l2-2 2 4 2-4 2 2h27"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
}

/* Redefine envelope colors on other themes dynamically */
.theme-floral {
    --envelope-bg-outside: #092e1e;
    --envelope-bg-inside: #03140c;
    --envelope-accent: #f3c6c6;
}

.theme-starry {
    --envelope-bg-outside: #0b132b;
    --envelope-bg-inside: #050a18;
    --envelope-accent: #93c5fd;
}

.theme-sapphire {
    --envelope-bg-outside: #021a30;
    --envelope-bg-inside: #010c18;
    --envelope-accent: #60a5fa;
}

/* 5. Exquisite LANTERN THEME - Video replica */
.theme-lantern {
    --card-bg: #30574d;
    /* Sage watercolor base */
    --card-border: rgba(245, 192, 66, 0.25);
    --card-shadow: 0 25px 50px rgba(0, 0, 0, 0.65), 0 0 35px rgba(245, 192, 66, 0.15);
    --decor-border: rgba(245, 192, 66, 0.2);

    --primary-color: #f5c042;
    /* Traditional golden glow */
    --text-color: #1e293b;
    /* Dark text on translucent white arch panels */
    --text-muted: #475569;

    /* Envelope styling */
    --envelope-bg-outside: #092036;
    --envelope-bg-inside: #051424;
    --envelope-accent: #f5c042;
}

/* Evening dark teal-blue starry background with a large glowing golden palace dome outline */
.theme-lantern.app-container {
    background-image:
        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 200' fill='%23f5c042' opacity='0.22'><path d='M150 40 C150 25 158 10 158 5 C158 10 166 25 166 40 Z'/><path d='M120 140 C120 70 196 70 196 140 Z'/><rect x='116' y='140' width='84' height='10' rx='2'/><rect x='132' y='85' width='16' height='55' rx='8' fill='none' stroke='%23f5c042' stroke-width='2'/><rect x='168' y='85' width='16' height='55' rx='8' fill='none' stroke='%23f5c042' stroke-width='2'/><path d='M158 40 L158 85 M132 85 H184' stroke='%23f5c042' stroke-width='2'/><path d='M60 170 C60 110 100 110 100 170 Z' opacity='0.5'/><path d='M216 170 C216 110 256 110 256 170 Z' opacity='0.5'/><rect x='10' y='185' width='280' height='15' rx='3'/></svg>"),
        linear-gradient(to bottom, #071f38 0%, #0a2d52 50%, #051526 100%) !important;
    background-repeat: no-repeat !important;
    background-position: bottom center !important;
    background-size: 95% auto, cover !important;
}

/* Sage watercolor invitation canvas card deck inner container styling */
.theme-lantern .slide-inner {
    border: none;
    border-radius: 24px;
    background: radial-gradient(circle at center, #3c7063 0%, #23453d 100%);
    box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.3);
    padding: 20px 15px;
    overflow: hidden;
}

/* Translucent white pointed-arch-shaped content panel with rose-pink floral vectors and trailing leaves */
.theme-lantern .slide-content-panel {
    background: rgba(255, 255, 255, 0.94);
    width: 100%;
    height: auto;
    min-height: 100%;
    flex: 1 0 auto;
    border-radius: 120px 120px 20px 20px;
    /* Elegant traditional arch shape */
    border: 3px double rgba(245, 192, 66, 0.4);
    padding: 35px 20px 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    background-image:
        /* Left bottom floral corner decoration */
        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><path d='M0 100 Q40 90 30 60 C35 70 50 65 40 50 C50 60 70 60 75 75' fill='none' stroke='%233c7063' stroke-width='2'/><circle cx='30' cy='60' r='8' fill='%23f59f9f' opacity='0.9'/><circle cx='40' cy='50' r='6' fill='%23f59f9f' opacity='0.9'/><circle cx='25' cy='75' r='7' fill='%23f07a7a' opacity='0.9'/><circle cx='15' cy='85' r='5' fill='%23f59f9f'/><circle cx='48' cy='55' r='4' fill='%23f59f9f'/><path d='M0 100 Q15 65 30 60 Q20 50 10 70' fill='none' stroke='%234c8577' stroke-width='1.5'/></svg>"),
        /* Right top floral corner decoration */
        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><path d='M100 0 Q60 10 70 40 C65 30 50 35 60 50 C50 40 30 40 25 25' fill='none' stroke='%233c7063' stroke-width='2'/><circle cx='70' cy='40' r='8' fill='%23f59f9f' opacity='0.9'/><circle cx='60' cy='50' r='6' fill='%23f59f9f' opacity='0.9'/><circle cx='75' cy='25' r='7' fill='%23f07a7a' opacity='0.9'/><circle cx='85' cy='15' r='5' fill='%23f59f9f'/><circle cx='52' cy='45' r='4' fill='%23f59f9f'/><path d='M100 0 Q85 35 70 40 Q80 50 90 30' fill='none' stroke='%234c8577' stroke-width='1.5'/></svg>");
    background-repeat: no-repeat;
    background-position: left bottom, right top;
    background-size: 80px 80px, 80px 80px;
}

/* Gold arch border overlay inside the white panel */
.theme-lantern .arch-border-line {
    position: absolute;
    top: 6px;
    left: 6px;
    right: 6px;
    bottom: 6px;
    border: 1px solid rgba(245, 192, 66, 0.35);
    border-radius: 114px 114px 16px 16px;
    pointer-events: none;
}

.theme-lantern .couple-names {
    font-family: var(--font-royal-head);
    font-size: 2.2rem;
    line-height: 1.2;
    color: #b45309;
    /* Rich golden ochre */
    background: linear-gradient(135deg, #78350f 0%, #d97706 40%, #b45309 70%, #78350f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    margin: 10px 0;
}

.theme-lantern .slide-title {
    font-family: var(--font-royal-head);
    color: #78350f;
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-shadow: none;
}

/* Beautiful customized golden decorations for slide panels */
.theme-lantern .top-decor {
    top: 25px;
    width: 50px;
    height: 25px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 50" fill="%23d97706"><path d="M50 0 C40 15 15 15 0 20 C15 30 40 30 50 45 C60 30 85 30 100 20 C85 15 60 15 50 0 Z"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.theme-lantern .bottom-decor {
    bottom: 25px;
    width: 50px;
    height: 25px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 50" fill="%23d97706"><path d="M50 45 C40 30 15 30 0 25 C15 15 40 15 50 0 C60 15 85 15 100 25 C85 30 60 30 50 45 Z"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.theme-lantern .floral-divider {
    width: 50px;
    height: 8px;
    margin: 4px auto 12px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 50 10" fill="%23d97706"><circle cx="25" cy="5" r="3.5"/><path d="M15 5 C20 2 20 8 25 5 M35 5 C30 2 30 8 25 5"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
}

.theme-lantern .invitation-intro {
    font-size: 0.62rem;
    color: #475569;
    letter-spacing: 1.5px;
    line-height: 1.5;
    font-weight: 500;
}

/* Custom interactive inputs inside the translucent panel */
.theme-lantern .calendar-leaf {
    border: 2px solid rgba(245, 192, 66, 0.4);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.theme-lantern .calendar-header {
    background: #b45309;
}

.theme-lantern .calendar-day-num {
    color: #78350f;
}

.theme-lantern .countdown-val {
    color: #b45309;
    text-shadow: none;
}

.theme-lantern .countdown-lbl {
    color: #64748b;
}

.theme-lantern .venue-location-card {
    background: rgba(245, 192, 66, 0.04);
    border: 1px solid rgba(245, 192, 66, 0.25);
    color: #1e293b;
}

.theme-lantern .venue-heading {
    color: #78350f;
}

.theme-lantern .venue-text {
    color: #475569;
}

.theme-lantern .btn-directions {
    background: #b45309;
    color: white;
}

.theme-lantern .btn-directions:hover {
    background: #78350f;
    box-shadow: 0 4px 12px rgba(180, 83, 9, 0.3);
}

.theme-lantern .rsvp-heading {
    color: #78350f;
}

.theme-lantern .rsvp-card {
    background: rgba(245, 192, 66, 0.05);
    border-left-color: #b45309;
    color: #1e293b;
}

.theme-lantern .rsvp-name {
    color: #78350f;
}

.theme-lantern .rsvp-phone {
    color: #475569;
}

.theme-lantern .lock-text {
    color: #64748b;
}

/* 6. Premium ADVENTURE THEME - Scrapbook polaroid collage */
.theme-adventure {
    --card-bg: #faf9f5;
    --card-border: rgba(0, 0, 0, 0.06);
    --card-shadow: 0 15px 35px rgba(0, 0, 0, 0.05), 0 5px 15px rgba(0, 0, 0, 0.02);
    --decor-border: #d1d5db;
    --primary-color: #c5a880;
    /* Warm gold */
    --text-color: #1c1d1f;
    --text-muted: #5e6268;

    --envelope-bg-outside: #1c1d1f;
    --envelope-bg-inside: #2e3033;
    --envelope-accent: #c5a880;
}

.adventure-border {
    border-color: #c5a880 !important;
}

.adventure-screen-bg {
    background: #faf9f5 !important;
}

.adventure-btn {
    background: #1c1d1f !important;
    color: white !important;
}

.adventure-btn:hover {
    background: #c5a880 !important;
}

.theme-adventure.app-container {
    background: #f0eee7 !important;
}

.theme-adventure .slide-inner {
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: 16px;
    background: #faf9f5;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}

/* 7. Premium BOLLYWOOD ROYAL THEME */
.theme-bollywood {
    --card-bg: #0d0f22;
    --card-border: rgba(245, 192, 66, 0.3);
    --card-shadow: 0 25px 60px rgba(0, 0, 0, 0.65), 0 0 35px rgba(245, 192, 66, 0.15);
    --decor-border: rgba(245, 192, 66, 0.2);
    --primary-color: #f5c042;
    --text-color: #f3f4f6;
    --text-muted: #9ca3af;

    --envelope-bg-outside: #080a14;
    --envelope-bg-inside: #12142d;
    --envelope-accent: #f5c042;
}

.bollywood-border {
    border-color: #f5c042 !important;
}

.bollywood-screen-bg {
    background: #0d0f22 !important;
}

.bollywood-btn {
    background: #f5c042 !important;
    color: #0d0f22 !important;
}

.bollywood-btn:hover {
    background: #ffffff !important;
    color: #0d0f22 !important;
}

.theme-bollywood.app-container {
    background: radial-gradient(circle at center, #1b1e3d 0%, #080a14 100%) !important;
}

.theme-bollywood .slide-inner {
    border: 2px solid rgba(245, 192, 66, 0.35);
    border-radius: 20px;
    background: #0d0f22;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

/* 8. Retro VINYL THEME */
.theme-vinyl {
    --card-bg: #f2f5f3;
    --card-border: rgba(95, 117, 104, 0.15);
    --card-shadow: 0 15px 35px rgba(95, 117, 104, 0.08), 0 5px 15px rgba(0, 0, 0, 0.03);
    --decor-border: #8fa89b;
    --primary-color: #c9a56e;
    /* Retro gold */
    --text-color: #2a2d2b;
    --text-muted: #5c605d;

    --envelope-bg-outside: #e2e7e3;
    --envelope-bg-inside: #e9eee9;
    --envelope-accent: #c9a56e;
}

.vinyl-border {
    border-color: #c9a56e !important;
}

.vinyl-screen-bg {
    background: #f2f5f3 !important;
}

.vinyl-btn {
    background: #5f7568 !important;
    color: white !important;
}

.vinyl-btn:hover {
    background: #c9a56e !important;
}

.theme-vinyl.app-container {
    background: radial-gradient(circle at center, #ecefec 0%, #d8ded8 100%) !important;
}

.theme-vinyl .slide-inner {
    border: 1px solid rgba(95, 117, 104, 0.2);
    border-radius: 20px;
    background: #f2f5f3;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}






/* Global Typography binding details */
.couple-names {
    font-size: 2.6rem;
    margin: 0;
    line-height: 1.2;
    transition: var(--transition-slow);
}

.wedding-ampersand {
    display: block;
    font-family: 'Great Vibes', cursive;
    font-size: 2.2rem;
    font-weight: 400;
    color: var(--text-muted);
    margin: 5px 0;
    -webkit-text-fill-color: var(--text-muted) !important;
}

.invitation-intro {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 400;
    line-height: 1.8;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin: 10px 0;
}

/* ==========================================================================
   SLIDE 1: INTERACTIVE SCRATCH-OFF CARD
   ========================================================================== */
.scratch-area-wrapper {
    position: relative;
    width: 320px;
    height: 160px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    margin: 30px 0;
    background: rgba(0, 0, 0, 0.2);
}

.scratch-underlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
    padding: 10px;
    box-sizing: border-box;
}

.scratch-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="%23d4af37"><circle cx="12" cy="12" r="8"/></svg>') 12 12, pointer;
    touch-action: none;
    transition: opacity 0.5s ease;
}

.scratch-canvas.faded {
    opacity: 0;
    pointer-events: none;
}

.scratch-instruction-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 4;
    pointer-events: none;
    background: rgba(0, 0, 0, 0.15);
    color: #fffdf5;
    text-align: center;
    transition: opacity 0.4s ease;
    padding: 20px;
    box-sizing: border-box;
}

.scratch-instruction-overlay.hidden {
    opacity: 0;
}

.scratch-hand-icon {
    font-size: 1.8rem;
    color: #fbe599;
    margin-bottom: 8px;
    animation: handSwipe 1.8s infinite ease-in-out;
}

.scratch-instruction-overlay p {
    font-family: var(--font-sans);
    font-size: 0.72rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

@keyframes handSwipe {
    0% {
        transform: translate(-30px, 10px) rotate(0deg);
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    80% {
        transform: translate(30px, -10px) rotate(-15deg);
        opacity: 1;
    }

    100% {
        transform: translate(30px, -10px) rotate(-15deg);
        opacity: 0;
    }
}

/* Locked / Unlocked Footer elements */
.slide-footer-hint {
    width: 100%;
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lock-text {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-style: italic;
    margin: 0 0 10px;
    opacity: 0.8;
}

.btn-next,
.btn-next-step {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: transparent;
    border: 1px solid var(--primary-color);
    border-radius: 50px;
    color: var(--primary-color);
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition-medium);
}

.btn-next:hover:not(.disabled),
.btn-next-step:hover:not(.disabled) {
    background: var(--primary-color);
    color: #111;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.2);
}

.btn-next.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    border-color: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.4);
}

.btn-next i {
    animation: bounceDown 1.5s infinite;
}

@keyframes bounceDown {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(4px);
    }
}

/* ==========================================================================
   SLIDE 2: CALENDAR & COUNTDOWN TIMER
   ========================================================================== */
.calendar-widget {
    margin: 10px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.calendar-leaf {
    width: 130px;
    background: #fffdf5;
    border-radius: 12px;
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.3);
    transform: rotate(-2deg);
    transition: transform 0.3s ease;
}

.calendar-leaf:hover {
    transform: rotate(0deg) scale(1.03);
}

.calendar-header {
    background: var(--envelope-bg-outside);
    color: #fffdf5;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    padding: 6px 0;
    text-align: center;
    border-bottom: 2px dashed rgba(255, 255, 255, 0.15);
}

.calendar-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 0;
}

.calendar-day-num {
    font-family: var(--font-royal-head);
    font-size: 2.8rem;
    font-weight: 700;
    color: #4a0314;
    line-height: 1;
}

.calendar-year {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    color: #888;
    margin-top: 4px;
}

.calendar-footer {
    background: #f7f4ea;
    color: #4a0314;
    font-family: var(--font-sans);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    padding: 4px 0;
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.event-time {
    margin-top: 15px;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    color: var(--text-color);
    letter-spacing: 1px;
}

/* Countdown Grid */
.countdown-widget {
    width: 100%;
    margin-top: 10px;
}

.countdown-heading {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.countdown-grid {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.countdown-cell {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.countdown-val {
    font-family: var(--font-royal-head);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.countdown-lbl {
    font-family: var(--font-sans);
    font-size: 0.58rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-top: 4px;
}

.slide-nav-arrows {
    display: flex;
    gap: 15px;
}

.btn-prev,
.slide-nav-arrows .btn-next {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-prev:hover,
.slide-nav-arrows .btn-next:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* ==========================================================================
   SLIDE 3: ELEGANT GALLERY SLIDER
   ========================================================================== */
.gallery-slider-container {
    position: relative;
    width: 100%;
    height: 320px;
    border-radius: 16px;
    overflow: hidden;
    margin: 10px 0;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.gallery-slides {
    width: 100%;
    height: 100%;
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.gallery-img-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
}

.gallery-img-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-img-slide::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 35%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0) 100%);
    pointer-events: none;
}

/* Slider buttons */
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.8rem;
    transition: var(--transition-fast);
    z-index: 3;
    backdrop-filter: blur(2px);
}

.gallery-nav:hover {
    background: rgba(0, 0, 0, 0.7);
    border-color: var(--primary-color);
}

.gallery-nav.prev {
    left: 10px;
}

.gallery-nav.next {
    right: 10px;
}

.gallery-indicators {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 3;
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: var(--transition-fast);
}

.dot.active {
    background: var(--primary-color);
    width: 14px;
    border-radius: 10px;
}

/* ==========================================================================
   SLIDE 4: VENUE COORDINATES & RSVP
   ========================================================================== */
.venue-location-card {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 16px;
    margin: 10px 0;
    text-align: center;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15);
}

.venue-icon-wrapper {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.1);
    color: var(--primary-color);
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-size: 1.25rem;
    margin-bottom: 10px;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.venue-heading {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0 0 4px;
}

.venue-text {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin: 0 0 12px;
    line-height: 1.4;
}

.btn-directions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--primary-color);
    color: #111;
    font-family: var(--font-sans);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 30px;
    transition: var(--transition-fast);
}

.btn-directions:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(212, 175, 55, 0.3);
}

/* RSVP Entries Grid */
.rsvp-container {
    width: 100%;
}

.rsvp-heading {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.rsvp-contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.rsvp-member-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 10px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.rsvp-member-name {
    font-family: var(--font-sans);
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.rsvp-actions {
    display: flex;
    gap: 6px;
}

.btn-rsvp-call {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(56, 189, 248, 0.1);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.68rem;
    transition: var(--transition-fast);
}

.btn-rsvp-call:hover {
    background: #38bdf8;
    color: #111;
}

.btn-rsvp-wa {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.68rem;
    transition: var(--transition-fast);
}

.btn-rsvp-wa:hover {
    background: #22c55e;
    color: #111;
}

/* ==========================================================================
   FLOATING TOGGLES & CONTROLS (MUSIC, TEMPLATES)
   ========================================================================== */

/* Floating Audio Toggle */
.audio-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    color: white;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    backdrop-filter: blur(8px);
    transition: var(--transition-fast);
}

.audio-btn:hover {
    transform: scale(1.08);
    border-color: var(--primary-color);
}

/* Music wave particles */
.music-waves {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    position: absolute;
    bottom: 8px;
    display: none;
}

.music-waves span {
    width: 2px;
    background: var(--primary-color);
    animation: waveRise 1s infinite alternate;
}

.music-waves span:nth-child(1) {
    height: 6px;
    animation-delay: 0.1s;
}

.music-waves span:nth-child(2) {
    height: 10px;
    animation-delay: 0.3s;
}

.music-waves span:nth-child(3) {
    height: 5px;
    animation-delay: 0.2s;
}

.audio-btn.playing i {
    display: none;
}

.audio-btn.playing .music-waves {
    display: flex;
}

@keyframes waveRise {
    0% {
        transform: scaleY(0.4);
    }

    100% {
        transform: scaleY(1.2);
    }
}

/* Floating Template Swapper Panel */
.template-panel-wrapper {
    position: fixed;
    bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    left: 20px;
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.template-panel-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    border-radius: 30px;
    color: white;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    backdrop-filter: blur(8px);
    transition: var(--transition-fast);
}

.template-panel-toggle:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-1px);
}

.template-choices-menu {
    margin-bottom: 8px;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 6px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    opacity: 0;
    pointer-events: none;
    transform: translateY(15px);
    transition: var(--transition-medium);
}

.template-choices-menu.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.template-choice-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    border: none;
    background: transparent;
    color: #94a3b8;
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 500;
    text-align: left;
    width: 100%;
    cursor: pointer;
    border-radius: 10px;
    transition: var(--transition-fast);
}

.template-choice-btn:hover {
    color: white;
    background: rgba(255, 255, 255, 0.05);
}

.template-choice-btn.active {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    font-weight: 700;
}

.swatch-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.swatch-color.royal {
    background: #6b0c22;
}

.swatch-color.floral {
    background: #0b3c29;
}

.swatch-color.starry {
    background: #0b132b;
}

.swatch-color.sapphire {
    background: #021a30;
}

.swatch-color.lantern {
    background: #f97316;
}


/* ==========================================================================
   RESPONSIVE DESIGN ADAPTATIONS
   ========================================================================== */
@media (max-width: 480px) {
    body {
        padding: 0;
    }

    .invitation-card {
        padding: 0;
    }

    .card-deck {
        height: 100%;
        max-height: 100vh;
        border-radius: 0;
        border: none;
    }

    .slide-inner {
        border-radius: 0;
        border-width: 0;
        padding: 20px 5px;
    }

    .envelope-wrapper {
        width: 320px;
        height: 220px;
    }

    .envelope-flap {
        border-left-width: 160px;
        border-right-width: 160px;
        border-top-width: 120px;
    }

    .envelope-paper {
        width: 290px;
        height: 200px;
        left: 15px;
    }

    .wax-seal-wrapper {
        top: 90px;
    }

    .preview-names {
        font-size: 1.5rem;
    }

    .scratch-area-wrapper {
        width: 100%;
        height: 150px;
    }

    .couple-names {
        font-size: 2.2rem;
    }

    .theme-floral .couple-names {
        font-size: 3rem;
    }

    .countdown-cell {
        width: 55px;
        height: 55px;
    }

    .countdown-val {
        font-size: 1.15rem;
    }
}

/* ==========================================================================
   PORTAL TEMPLATE SELECTOR STYLES
   ========================================================================== */
body.portal-body {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    height: auto !important;
    min-height: 100vh !important;
    user-select: auto !important;
    -webkit-user-select: auto !important;
    background-color: #0f172a !important;
}

html:has(body.portal-body) {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    height: auto !important;
}



.portal-main {
    min-height: 100vh;
    padding-top: 160px;
    padding-bottom: 90px;
    background: #0f172a;
    position: relative;
    overflow-x: hidden;
}

.portal-particles-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 0),
        radial-gradient(rgba(255, 255, 255, 0.02) 2px, transparent 0);
    background-size: 40px 40px, 80px 80px;
    background-position: 0 0, 40px 40px;
    opacity: 0.8;
    pointer-events: none;
}

.portal-header-text {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 2rem;
    padding: 0 20px;
    box-sizing: border-box;
}

.portal-header-text h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    letter-spacing: -0.2px;
    line-height: 1.2;
}

.portal-subtext-container {
    text-align: center;
    max-width: 800px;
    margin: 3.5rem auto 0;
    padding: 0 20px;
    box-sizing: border-box;
}

.portal-subtext-container p {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: #94a3b8;
    line-height: 1.6;
    margin: 0;
}

/* Responsive 3D Smartphone Grid */
.mockup-grid {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    gap: 3.5rem;
    padding: 30px 20px 60px;
    max-width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

/* Premium custom scrollbar for horizontal scrolling templates */
.mockup-grid::-webkit-scrollbar {
    height: 8px;
}

.mockup-grid::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    margin: 0 20px;
}

.mockup-grid::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    border: 2px solid transparent;
}

.mockup-grid::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}

.mockup-card-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 320px;
    flex-shrink: 0;
    /* Prevent shrinking to maintain layout size */
    transition: all 0.4s ease;
}

.smartphone-mockup-link {
    text-decoration: none;
    display: block;
    width: 100%;
}

/* 3D Realistic Smartphone Mockup Outer */
.smartphone-mockup {
    width: 270px;
    height: 520px;
    background: #090d16;
    border-radius: 40px;
    padding: 10px;
    box-sizing: border-box;
    position: relative;
    margin: 0 auto;
    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        inset 0 0 15px rgba(255, 255, 255, 0.1);
    transform-style: preserve-3d;
    perspective: 1000px;
    transform: scale(var(--card-scale, 1));
    transform-origin: center center;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
}

.smartphone-mockup::before {
    /* Inner phone bezel line overlay */
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 38px;
    pointer-events: none;
    z-index: 10;
}

/* Screen Glass Diagonal Shine Effect */
.smartphone-mockup::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
    transform: skewX(-20deg);
    transition: left 0.8s ease;
    pointer-events: none;
    z-index: 5;
}

.mockup-card-wrapper:hover .smartphone-mockup::after {
    left: 150%;
}

/* Speaker Notch */
.phone-speaker {
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 4px;
    background: #334155;
    border-radius: 10px;
    z-index: 10;
}

/* Phone Display Screen */
.phone-screen {
    width: 100%;
    height: 100%;
    border-radius: 32px;
    overflow: hidden;
    position: relative;
    background: #111827;
    z-index: 1;
}

.phone-screen .live-preview-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    pointer-events: none;
    z-index: 2;
}


/* Styled Inside Layout */
.mockup-screen-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 30px 15px;
    box-sizing: border-box;
    text-align: center;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.mockup-filigree {
    width: 50px;
    height: 15px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.6;
}

.royal-screen-bg {
    background-image: linear-gradient(135deg, #4c0519 0%, #1c0005 100%);
    border: 1px solid rgba(212, 175, 55, 0.15);
}

.royal-screen-bg .top-fil {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 30" fill="%23d4af37"><path d="M50 0 C40 10 20 10 0 15 C20 20 40 20 50 30 Z"/></svg>');
}

.royal-screen-bg .bottom-fil {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 30" fill="%23d4af37"><path d="M50 30 C40 20 20 20 0 15 C20 10 40 10 50 0 Z"/></svg>');
}

.floral-screen-bg {
    background-image: linear-gradient(135deg, #064e3b 0%, #022c1d 100%);
    border: 1px solid rgba(243, 198, 198, 0.15);
}

.floral-screen-bg .top-fil {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 40" fill="%23f3c6c6"><path d="M30 5 C25 20 10 20 5 35 Z"/></svg>');
}

.floral-screen-bg .bottom-fil {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 40" fill="%23f3c6c6"><path d="M30 35 C25 20 10 20 5 5 Z"/></svg>');
}

.starry-screen-bg {
    background-image: linear-gradient(135deg, #0f172a 0%, #030712 100%);
    border: 1px solid rgba(147, 197, 253, 0.15);
}

.starry-screen-bg .top-fil {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%2393c5fd"><path d="M12 0L14.6 9.4L24 12Z"/></svg>');
}

.starry-screen-bg .bottom-fil {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%2393c5fd"><path d="M12 24L9.4 14.6L0 12Z"/></svg>');
}

.lantern-screen-bg {
    background-image:
        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 100' fill='%23fdba74' opacity='0.15'><rect x='10' y='90' width='180' height='10' rx='1'/><rect x='20' y='45' width='6' height='45'/><path d='M18 45 L23 35 L28 45 Z'/><rect x='50' y='60' width='10' height='30'/><path d='M48 60 C48 50 62 50 62 60 Z'/><rect x='80' y='65' width='40' height='25'/><path d='M78 65 C78 40 122 40 122 65 Z'/><path d='M96 40 C96 30 100 20 100 15 C100 20 104 30 104 40 Z'/><rect x='140' y='60' width='10' height='30'/><path d='M138 60 C138 50 152 50 152 60 Z'/><rect x='174' y='45' width='6' height='45'/><path d='M172 45 L177 35 L182 45 Z'/></svg>"),
        linear-gradient(135deg, #091724 0%, #03080e 100%);
    background-repeat: no-repeat;
    background-position: bottom center;
    background-size: 90% auto, cover;
    border: 1px solid rgba(251, 146, 60, 0.15);
}

.lantern-screen-bg .top-fil {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 30" fill="%23fdba74"><circle cx="25" cy="5" r="4"/><path d="M15 5 C20 2 20 8 25 5 M35 5 C30 2 30 8 25 5"/></svg>');
}

.lantern-screen-bg .bottom-fil {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 30" fill="%23fdba74"><path d="M50 30 C40 20 20 20 0 15 C20 10 40 10 50 0 Z"/></svg>');
}

/* Stylized envelope drawing in the mockup */
.mockup-envelope-front {
    width: 140px;
    height: 90px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.mockup-seal {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.65rem;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    border: 1px dashed rgba(255, 255, 255, 0.3);
}

.gold-seal {
    background: radial-gradient(circle, #b81433 0%, #560110 100%);
    color: #d4af37;
    box-shadow: 0 0 12px rgba(184, 20, 51, 0.6);
}

.floral-seal {
    background: radial-gradient(circle, #b9cfc5 0%, #092e1e 100%);
    color: #f3c6c6;
    box-shadow: 0 0 12px rgba(243, 198, 198, 0.4);
}

.starry-seal {
    background: radial-gradient(circle, #1e293b 0%, #030712 100%);
    color: #93c5fd;
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.4);
}

/* Mockup Typography */
.theme-tag {
    font-family: 'Inter', sans-serif;
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 20px;
    margin-bottom: 8px;
    display: inline-block;
}

.theme-tag.royal {
    background: rgba(212, 175, 55, 0.15);
    color: #ffd866;
}

.theme-tag.floral {
    background: rgba(243, 198, 198, 0.15);
    color: #f3c6c6;
}

.theme-tag.starry {
    background: rgba(147, 197, 253, 0.15);
    color: #93c5fd;
}

.theme-tag.sapphire {
    background: rgba(96, 165, 250, 0.15);
    color: #60a5fa;
}

.theme-tag.lantern {
    background: rgba(251, 146, 60, 0.15);
    color: #fdba74;
}

.mockup-caption {
    margin-top: 10px;
}

.mockup-caption h4 {
    font-size: 0.95rem;
    margin: 5px 0 2px;
    color: #ffffff;
    letter-spacing: 0.5px;
}

.royal-screen-bg h4 {
    font-family: 'Cinzel', serif;
}

.lantern-screen-bg h4 {
    font-family: 'Cinzel', serif;
}

.floral-screen-bg h4 {
    font-family: 'Great Vibes', cursive;
    font-size: 1.5rem;
}

.starry-screen-bg h4 {
    font-family: 'Playfair Display', serif;
}

.mockup-caption p {
    font-family: 'Inter', sans-serif;
    font-size: 0.6rem;
    color: #94a3b8;
    margin: 0;
}

/* Hover Mockup Border Glows & Tilts */
.mockup-card-wrapper:hover .smartphone-mockup {
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.7);
}

.mockup-card-wrapper:hover .royal-border {
    transform: translateY(-12px) rotateY(-8deg) rotateX(8deg) scale(calc(var(--card-scale, 1) * 1.03));
    box-shadow:
        0 25px 50px rgba(184, 20, 51, 0.25),
        0 0 25px rgba(212, 175, 55, 0.15);
}

.mockup-card-wrapper:hover .floral-border {
    transform: translateY(-12px) rotateY(0deg) rotateX(8deg) scale(calc(var(--card-scale, 1) * 1.03));
    box-shadow:
        0 25px 50px rgba(34, 197, 94, 0.18),
        0 0 25px rgba(243, 198, 198, 0.15);
}

.mockup-card-wrapper:hover .starry-border {
    transform: translateY(-12px) rotateY(8deg) rotateX(8deg) scale(calc(var(--card-scale, 1) * 1.03));
    box-shadow:
        0 25px 50px rgba(59, 130, 246, 0.22),
        0 0 25px rgba(147, 197, 253, 0.15);
}

.mockup-card-wrapper:hover .lantern-border {
    transform: translateY(-12px) rotateY(0deg) rotateX(8deg) scale(calc(var(--card-scale, 1) * 1.03));
    box-shadow:
        0 25px 50px rgba(249, 115, 22, 0.25),
        0 0 25px rgba(253, 186, 116, 0.15);
}

/* Card Meta Descriptions & Buttons */
.mockup-meta {
    text-align: center;
    margin-top: 1.8rem;
    padding: 0 10px;
}

.mockup-meta h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 0.6rem;
}

.mockup-meta p {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: #94a3b8;
    line-height: 1.5;
    margin: 0 0 1.5rem;
    min-height: 65px;
    /* Alignment stability */
}

/* Styled Theme Launch Buttons */
.btn-select {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 24px;
    border-radius: 30px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #ffffff;
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    cursor: pointer;
}

.btn-select i {
    transition: transform 0.3s ease;
}

.btn-select:hover i {
    transform: translateX(4px);
}

.royal-btn:hover {
    background: #d4af37;
    color: #111111;
    border-color: #d4af37;
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.25);
}

.floral-btn:hover {
    background: #f3c6c6;
    color: #111111;
    border-color: #f3c6c6;
    box-shadow: 0 10px 20px rgba(243, 198, 198, 0.25);
}

.starry-btn:hover {
    background: #60a5fa;
    color: #111111;
    border-color: #60a5fa;
    box-shadow: 0 10px 20px rgba(96, 165, 250, 0.25);
}

/* Portal back button */
.portal-back-btn:hover {
    background: #ffffff !important;
    color: #0f172a !important;
    transform: scale(1.1);
    box-shadow: 0 12px 24px rgba(255, 255, 255, 0.2) !important;
}

/* Responsiveness adaptations for selection portal */
@media (min-width: 1600px) {
    .mockup-grid {
        justify-content: center;
    }
}

@media (max-width: 991px) {
    .portal-header-text h1 {
        font-size: 2.5rem;
    }

    .mockup-grid {
        gap: 2.5rem;
    }
}

@media (max-width: 767px) {
    .portal-main {
        padding-top: 110px;
    }

    .portal-header-text {
        margin-bottom: 3rem;
    }

    .portal-header-text h1 {
        font-size: 2.2rem;
    }

    .mockup-grid {
        gap: 3rem;
        padding-bottom: 50px;
    }

    .mockup-meta p {
        min-height: auto;
        margin-bottom: 1.2rem;
    }
}

/* Horizontal Slider Arrow Controls styling */
.mockup-slider-container {
    position: relative;
    width: 100%;
    margin: 0 auto;
}

.slider-arrow {
    position: absolute;
    top: 240px;
    /* Vertically centered relative to the smartphone mockups */
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 1.15rem;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 10;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    pointer-events: none;
}

.slider-arrow.visible {
    opacity: 1;
    pointer-events: auto;
}

.slider-arrow:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #d4af37;
    /* Royal gold highlight */
    color: #d4af37;
    transform: scale(1.12);
    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.5),
        0 0 15px rgba(212, 175, 55, 0.2);
}

.slider-arrow:active {
    transform: scale(0.95);
}

.slider-arrow.prev-arrow {
    left: -25px;
}

.slider-arrow.next-arrow {
    right: -25px;
}

/* Adjustments on medium/large screens to prevent page edge overlaps */
@media (max-width: 1300px) {
    .slider-arrow.prev-arrow {
        left: -10px;
    }

    .slider-arrow.next-arrow {
        right: -10px;
    }
}

@media (max-width: 991px) {
    .slider-arrow.prev-arrow {
        left: 5px;
    }

    .slider-arrow.next-arrow {
        right: 5px;
    }
}

@media (max-width: 767px) {

    /* Rely on natural swipe scrolling on smaller mobile viewports */
    .slider-arrow {
        display: none;
    }
}

/* ==========================================================================
   CREATOR PORTAL, AUTHENTICATION, AND DASHBOARD STYLES
   ========================================================================== */

/* Portal Body & Ambient Backgrounds */
.portal-body {
    background-color: #0b0f19;
    color: #f8fafc;
    min-height: 100vh;
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    position: relative;
}

.portal-body header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
}

.portal-body nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.portal-body .nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.portal-body .nav-links a {
    color: #94a3b8;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 20px;
}

.portal-body .nav-links a:hover,
.portal-body .nav-links a.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

@media (max-width: 768px) {
    .portal-body .nav-links {
        display: none;
        position: absolute;
        top: 100px;
        left: 0;
        width: 100%;
        background: #0b0f19;
        flex-direction: column;
        padding: 2rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        gap: 15px;
        z-index: 1000;
    }

    .portal-body .nav-links.active {
        display: flex;
    }

    .portal-body .mobile-menu-btn {
        display: block;
        font-size: 1.5rem;
        cursor: pointer;
        color: #ffffff;
    }
}

.portal-body .nav-logout-btn {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #f87171;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.portal-body .nav-logout-btn:hover {
    background: #ef4444;
    color: white;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

/* Ambient Floating Blobs */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    z-index: -1;
    pointer-events: none;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #3b82f6 0%, transparent 70%);
    top: 10%;
    left: 5%;
    animation: pulseBlob 8s infinite alternate;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #ec4899 0%, transparent 70%);
    bottom: 15%;
    right: 5%;
    animation: pulseBlob 12s infinite alternate-reverse;
}

@keyframes pulseBlob {
    0% {
        transform: scale(1) translate(0, 0);
        opacity: 0.15;
    }

    50% {
        transform: scale(1.1) translate(20px, -20px);
        opacity: 0.22;
    }

    100% {
        transform: scale(0.9) translate(-10px, 10px);
        opacity: 0.12;
    }
}

/* Glassmorphic Auth Sheet */
.auth-main {
    position: relative;
    padding: 2rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 120px);
}

.auth-card-container {
    max-width: 480px;
    width: 100%;
    margin: 0 auto;
}

.auth-card {
    background: rgba(17, 24, 39, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.auth-tabs {
    display: flex;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 2rem;
    gap: 10px;
}

.auth-tab {
    flex: 1;
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 1.05rem;
    font-weight: 600;
    padding: 12px 0;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.auth-tab.active {
    color: #ffffff;
}

.auth-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #d4af37;
}

.auth-form h1 {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #ffffff;
    text-align: center;
}

.auth-subtitle {
    font-size: 0.9rem;
    color: #94a3b8;
    margin-bottom: 2rem;
    text-align: center;
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #cbd5e1;
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
}

.form-group label i {
    margin-right: 6px;
    color: #d4af37;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: white;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #d4af37;
    background: rgba(15, 23, 42, 0.8);
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.15);
}

.auth-submit-btn {
    width: 100%;
    padding: 14px;
    font-size: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 12px;
    margin-top: 1rem;
}

.btn-spinner {
    display: inline-block;
}

.auth-status {
    margin-top: 1.5rem;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.88rem;
    line-height: 1.4;
    text-align: center;
    transition: all 0.3s ease;
}

.auth-status.success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    color: #4ade80;
}

.auth-status.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #f87171;
}

/* Config Alert Warning Banner */
.config-alert {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 1.5rem;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    animation: fadeIn 0.4s ease forwards;
}

.config-alert .alert-icon {
    font-size: 1.5rem;
    color: #f59e0b;
    margin-top: 2px;
}

.config-alert h5 {
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: #f59e0b;
    margin: 0 0 4px;
}

.config-alert p {
    font-size: 0.8rem;
    color: #cbd5e1;
    margin: 0;
    line-height: 1.4;
}

.config-alert code {
    background: rgba(0, 0, 0, 0.3);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    color: white;
}

/* ==========================================================================
   CREATOR STUDIO LAYOUT
   ========================================================================== */
.creator-main {
    padding: 1.5rem 0 3rem;
}

.creator-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 30px;
    align-items: start;
}

.creator-left-panel {
    min-width: 0;
}

.creator-right-panel {
    position: sticky;
    top: 120px;
    display: flex;
    justify-content: center;
}

.creator-card {
    background: rgba(17, 24, 39, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

/* Wizard Stepper Header */
.stepper-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2.5rem;
    position: relative;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.step-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
    z-index: 2;
    cursor: pointer;
}

.step-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.15);
    color: #94a3b8;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.step-name {
    font-size: 0.75rem;
    font-weight: 500;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.step-indicator.active .step-num {
    border-color: #d4af37;
    background: #d4af37;
    color: #0f172a;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}

.step-indicator.active .step-name {
    color: #ffffff;
    font-weight: 600;
}

.step-indicator.completed .step-num {
    border-color: #22c55e;
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.step-indicator.completed .step-name {
    color: #22c55e;
}

/* Form panels */
.creator-step-panel {
    display: none;
    animation: fadeIn 0.4s ease forwards;
}

.creator-step-panel.visible {
    display: block;
}

.creator-step-panel h2 {
    font-family: 'Cinzel', serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: white;
    margin: 0 0 0.5rem;
}

.creator-step-desc {
    font-size: 0.88rem;
    color: #94a3b8;
    margin: 0 0 2rem;
}

.section-divider-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: white;
    margin: 2rem 0 1rem;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Theme picker cards selection */
.theme-picker-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 2rem;
}

.theme-choice-card {
    background: rgba(15, 23, 42, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 16px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-choice-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(15, 23, 42, 0.6);
    transform: translateY(-2px);
}

.theme-choice-card.active {
    border-color: #d4af37;
    background: rgba(212, 175, 55, 0.05);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.05);
}

.hidden-radio {
    position: absolute;
    width: 0;
    height: 0;
    opacity: 0;
    pointer-events: none;
}

.theme-preview-box {
    width: 100%;
    height: 60px;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.theme-preview-box.royal {
    background: #3c0613;
}

.theme-preview-box.floral {
    background: #052618;
}

.theme-preview-box.starry {
    background: #060a16;
}

.theme-preview-box.sapphire {
    background: #01101e;
}

.theme-preview-box.lantern {
    background: #07131e;
}

.theme-preview-box.petals {
    background: #3d141d;
}

.theme-preview-box.glow {
    background: #1c050d;
}

.theme-color-swatch {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.theme-color-swatch.burgundy {
    background: #6b0c22;
}

.theme-color-swatch.gold {
    background: #d4af37;
}

.theme-color-swatch.emerald {
    background: #0b3c29;
}

.theme-color-swatch.rose {
    background: #f3c6c6;
}

.theme-color-swatch.navy {
    background: #0b132b;
}

.theme-color-swatch.silver {
    background: #cbd5e1;
}

.theme-color-swatch.ocean {
    background: #021a30;
}

.theme-color-swatch.orange {
    background: #f97316;
}

.theme-color-swatch.blush {
    background: #fda4af;
}

.theme-color-swatch.rose-gold {
    background: #e5b869;
}

.theme-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: white;
}

/* Wizard Buttons Footer */
.creator-footer-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.creator-footer-nav .btn {
    padding: 12px 28px;
    font-size: 0.9rem;
}

.creator-footer-nav .btn.btn-prev {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 8px;
    width: auto;
    height: auto;
}

.creator-footer-nav .btn.btn-prev:hover {
    color: white;
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.05);
}

/* RSVP Rows Builder */
.rsvp-contacts-builder {
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 20px;
}

.rsvp-input-row {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 12px;
    align-items: flex-end;
    margin-bottom: 12px;
    animation: rowSlideIn 0.3s ease;
}

@keyframes rowSlideIn {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Lock Notice Badge for immutable fields in Edit Mode */
.lock-notice-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    padding: 6px 12px;
    background: rgba(212, 175, 55, 0.06);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 8px;
    font-size: 0.72rem;
    font-weight: 600;
    color: #d4af37;
    letter-spacing: 0.3px;
}

.lock-notice-badge i {
    font-size: 0.68rem;
}

.btn-delete-row {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #f87171;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    margin-bottom: 0px;
}

.btn-delete-row:hover {
    background: #ef4444;
    color: white;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25);
}

.btn-add-rsvp {
    background: rgba(255, 255, 255, 0.05);
    border: 1px dashed rgba(255, 255, 255, 0.15);
    color: #cbd5e1;
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 0.88rem;
    transition: all 0.3s ease;
    margin-top: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.btn-add-rsvp:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: #d4af37;
    color: white;
}

/* Smartphone Mockup */
.smartphone-mockup-wrapper {
    position: relative;
}

.smartphone-mockup {
    transform: rotateX(2deg) rotateY(-2deg) scale(var(--card-scale, 0.95));
    transition: all 0.5s ease;
}

.phone-screen {
    background: #000;
}

.live-preview-iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.preview-helper-badge {
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.25);
    color: #4ade80;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.preview-helper-badge i {
    font-size: 0.65rem;
}

/* ==========================================================================
   USER DASHBOARD SCREEN
   ========================================================================== */
.dashboard-main {
    padding: 2rem 0 4rem;
}

.dashboard-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    gap: 20px;
}

.dashboard-title {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    color: white;
}

.dashboard-subtitle {
    font-size: 0.95rem;
    color: #94a3b8;
    margin: 0;
}

.create-new-btn {
    padding: 12px 24px;
    border-radius: 30px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.dashboard-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 5rem 0;
    color: #d4af37;
}

.dashboard-loader p {
    margin-top: 1rem;
    color: #94a3b8;
    font-size: 0.95rem;
}

/* Invitations grid */
.invitations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}

.invite-dashboard-card {
    background: rgba(17, 24, 39, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.invite-dashboard-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.invite-dashboard-card:hover {
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);
}

.card-inner-banner {
    padding: 24px;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.card-inner-banner.theme-royal {
    background: linear-gradient(135deg, rgba(107, 12, 34, 0.4) 0%, rgba(17, 24, 39, 0.6) 100%);
}

.card-inner-banner.theme-floral {
    background: linear-gradient(135deg, rgba(11, 60, 41, 0.4) 0%, rgba(17, 24, 39, 0.6) 100%);
}

.card-inner-banner.theme-starry {
    background: linear-gradient(135deg, rgba(11, 19, 43, 0.4) 0%, rgba(17, 24, 39, 0.6) 100%);
}

.card-inner-banner.theme-sapphire {
    background: linear-gradient(135deg, rgba(2, 26, 48, 0.4) 0%, rgba(17, 24, 39, 0.6) 100%);
}

.card-inner-banner.theme-lantern {
    background: linear-gradient(135deg, rgba(245, 192, 66, 0.25) 0%, rgba(17, 24, 39, 0.6) 100%);
}

.card-inner-banner.theme-adventure {
    background: linear-gradient(135deg, rgba(197, 168, 128, 0.25) 0%, rgba(17, 24, 39, 0.6) 100%);
}

.card-inner-banner.theme-bollywood {
    background: linear-gradient(135deg, rgba(13, 15, 34, 0.6) 0%, rgba(17, 24, 39, 0.6) 100%);
}

.card-inner-banner.theme-vinyl {
    background: linear-gradient(135deg, rgba(95, 117, 104, 0.25) 0%, rgba(17, 24, 39, 0.6) 100%);
}

.card-inner-banner.theme-petals {
    background: linear-gradient(135deg, rgba(225, 29, 72, 0.25) 0%, rgba(17, 24, 39, 0.6) 100%);
}

.card-inner-banner.theme-glow {
    background: linear-gradient(135deg, rgba(107, 12, 34, 0.4) 0%, rgba(17, 24, 39, 0.6) 100%);
}

.card-theme-badge {
    align-self: flex-start;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-theme-badge.royal {
    background: rgba(212, 175, 55, 0.15);
    color: #facc15;
    border: 1px solid rgba(212, 175, 55, 0.25);
}

.card-theme-badge.floral {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.25);
}

.card-theme-badge.starry {
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.25);
}

.card-theme-badge.sapphire {
    background: rgba(99, 102, 241, 0.15);
    color: #818cf8;
    border: 1px solid rgba(99, 102, 241, 0.25);
}

.card-theme-badge.lantern {
    background: rgba(245, 192, 66, 0.15);
    color: #facc15;
    border: 1px solid rgba(245, 192, 66, 0.25);
}

.card-theme-badge.adventure {
    background: rgba(197, 168, 128, 0.15);
    color: #e2d1b9;
    border: 1px solid rgba(197, 168, 128, 0.25);
}

.card-theme-badge.bollywood {
    background: rgba(245, 192, 66, 0.15);
    color: #facc15;
    border: 1px solid rgba(245, 192, 66, 0.25);
}

.card-theme-badge.vinyl {
    background: rgba(95, 117, 104, 0.15);
    color: #a3b899;
    border: 1px solid rgba(95, 117, 104, 0.25);
}

.card-theme-badge.petals {
    background: rgba(225, 29, 72, 0.15);
    color: #fda4af;
    border: 1px solid rgba(225, 29, 72, 0.25);
}

.card-theme-badge.glow {
    background: rgba(107, 12, 34, 0.15);
    color: #f87171;
    border: 1px solid rgba(107, 12, 34, 0.25);
}

.card-inner-banner h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.35rem;
    color: white;
    margin: 4px 0 0;
    line-height: 1.3;
}

.card-details-body {
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-grow: 1;
}

.card-details-body .detail-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    color: #cbd5e1;
}

.card-details-body .detail-row i {
    width: 16px;
    color: #d4af37;
    font-size: 0.88rem;
}

.share-link-row {
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 4px 4px 4px 10px;
}

.copy-url-input {
    background: transparent !important;
    border: none !important;
    font-size: 0.72rem !important;
    color: #94a3b8 !important;
    padding: 0 !important;
    text-overflow: ellipsis;
    height: auto !important;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
}

.btn-copy-url {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    width: 28px;
    min-width: 28px;
    height: 28px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.75rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.btn-copy-url:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.btn-whatsapp-share {
    background: rgba(37, 211, 102, 0.12);
    border-color: rgba(37, 211, 102, 0.25);
    color: #25d366;
}

.btn-whatsapp-share:hover {
    background: rgba(37, 211, 102, 0.25);
    color: #25d366;
}

.card-actions-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(15, 23, 42, 0.2);
}

.card-actions-row .action-btn {
    text-align: center;
    padding: 14px 0;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.3s ease;
    border: none;
    background: transparent;
    cursor: pointer;
}

.card-actions-row .action-btn:not(:last-child) {
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.card-actions-row .action-btn:hover {
    color: white;
    background: rgba(255, 255, 255, 0.03);
}

.card-actions-row .action-btn.view:hover {
    color: #38bdf8;
}

.card-actions-row .action-btn.edit:hover {
    color: #fbbf24;
}

.card-actions-row .action-btn.delete:hover {
    color: #f87171;
    background: rgba(239, 68, 68, 0.05);
}

/* Empty state design */
.empty-state-container {
    background: rgba(17, 24, 39, 0.6);
    border: 1px dashed rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    padding: 4rem 2rem;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.empty-state-graphic {
    font-size: 3.5rem;
    color: #3b82f6;
    opacity: 0.8;
    margin-bottom: 1.5rem;
    animation: floatIcon 4s ease-in-out infinite alternate;
}

@keyframes floatIcon {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-10px);
    }
}

.empty-state-container h2 {
    font-family: 'Cinzel', serif;
    font-size: 1.6rem;
    margin: 0 0 1rem;
    color: white;
}

.empty-state-container p {
    font-size: 0.9rem;
    color: #94a3b8;
    line-height: 1.6;
    margin: 0 0 2rem;
}

.empty-cta-btn {
    padding: 12px 28px;
    border-radius: 30px;
}

/* ==========================================================================
   DELETE CONFIRMATION MODAL OVERLAY
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: modalOverlayFade 0.3s ease;
}

@keyframes modalOverlayFade {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

.modal-card {
    background: #111827;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 2.2rem;
    max-width: 440px;
    width: 90%;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.55);
    animation: modalZoomIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalZoomIn {
    0% {
        transform: scale(0.9) translateY(10px);
        opacity: 0;
    }

    100% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1.2rem;
}

.delete-modal-icon {
    font-size: 1.8rem;
    color: #ef4444;
}

.modal-header h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: white;
    margin: 0;
}

.modal-body p {
    font-size: 0.9rem;
    color: #94a3b8;
    line-height: 1.5;
    margin: 0 0 2rem;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.modal-footer .btn {
    padding: 10px 20px;
    font-size: 0.88rem;
    font-weight: 600;
    border-radius: 20px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
}

.modal-footer .btn-cancel {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
}

.modal-footer .btn-cancel:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.modal-footer .btn-confirm-delete {
    background: #ef4444;
    border: 1px solid #ef4444;
    color: white;
}

.modal-footer .btn-confirm-delete:hover {
    background: #dc2626;
    border-color: #dc2626;
    box-shadow: 0 5px 15px rgba(239, 68, 68, 0.3);
}

.modal-footer .btn-confirm-delete:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ==========================================================================
   TERMS & PRIVACY POLICY MODAL
   ========================================================================== */
.terms-modal-card {
    max-width: 640px;
    width: 95%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.terms-modal-icon {
    font-size: 1.8rem;
    color: #d4af37;
}

.terms-modal-body {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.terms-intro {
    font-size: 0.88rem;
    color: #94a3b8;
    line-height: 1.5;
    margin: 0 0 1rem;
}

.terms-scroll-container {
    max-height: 45vh;
    overflow-y: auto;
    padding: 1.2rem 1.4rem;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    margin-bottom: 1.2rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(212, 175, 55, 0.4) transparent;
}

.terms-scroll-container::-webkit-scrollbar {
    width: 6px;
}

.terms-scroll-container::-webkit-scrollbar-track {
    background: transparent;
}

.terms-scroll-container::-webkit-scrollbar-thumb {
    background-color: rgba(212, 175, 55, 0.4);
    border-radius: 10px;
}

.terms-scroll-container h4 {
    font-family: 'Cinzel', serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: #d4af37;
    margin: 0 0 0.6rem;
}

.terms-scroll-container h5 {
    font-size: 0.88rem;
    font-weight: 700;
    color: #e2e8f0;
    margin: 1.2rem 0 0.4rem;
}

.terms-scroll-container p {
    font-size: 0.8rem;
    color: #94a3b8;
    line-height: 1.6;
    margin: 0 0 0.6rem;
}

.terms-scroll-container ul {
    margin: 0.4rem 0 0.8rem 1.2rem;
    padding: 0;
}

.terms-scroll-container ul li {
    font-size: 0.78rem;
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 0.3rem;
}

.terms-scroll-container strong {
    color: #cbd5e1;
}

.terms-accept-row {
    padding: 0.8rem 1rem;
    background: rgba(212, 175, 55, 0.04);
    border: 1px solid rgba(212, 175, 55, 0.12);
    border-radius: 10px;
}

.terms-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 0.82rem;
    color: #cbd5e1;
    line-height: 1.5;
    margin: 0;
}

.terms-checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    min-width: 18px;
    margin-top: 2px;
    accent-color: #d4af37;
    cursor: pointer;
}

.terms-checkbox-label strong {
    color: #d4af37;
}

.modal-footer .btn-confirm-terms {
    background: linear-gradient(135deg, #d4af37 0%, #b8941e 100%);
    border: 1px solid #d4af37;
    color: #1a1a2e;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
}

.modal-footer .btn-confirm-terms:hover:not(:disabled) {
    background: linear-gradient(135deg, #e5c34a 0%, #d4af37 100%);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

.modal-footer .btn-confirm-terms:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    box-shadow: none;
}

/* ==========================================================================
   DYNAMIC DATABASE LOADER OVERLAY (IN GUEST INVITATION)
   ========================================================================== */
.db-loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0f172a;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    color: #d4af37;
    transition: opacity 0.5s ease;
}

.db-loader-overlay p {
    margin-top: 1.5rem;
    color: #cbd5e1;
    font-size: 1.05rem;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.5px;
}

.db-loader-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(212, 175, 55, 0.15);
    border-radius: 50%;
    border-top-color: #d4af37;
    animation: dbSpin 1s infinite linear;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.1);
}

@keyframes dbSpin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Responsive collapse grids and layouts */
@media (max-width: 991px) {
    .creator-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .creator-right-panel {
        position: static;
        order: -1;
        /* Place preview above wizard on tablets/mobiles */
    }

    .smartphone-mockup-wrapper {
        margin-bottom: 20px;
    }
}

@media (max-width: 576px) {
    .stepper-header {
        margin-bottom: 2rem;
    }

    .step-name {
        display: none;
        /* Hide labels on very small screens to fit numbers */
    }

    .theme-picker-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .rsvp-input-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .btn-delete-row {
        width: 100%;
        margin-top: 4px;
    }

    .dashboard-header-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .create-new-btn {
        width: 100%;
        justify-content: center;
    }

    .invitations-grid {
        grid-template-columns: 1fr;
    }

    .auth-card {
        padding: 1.5rem;
    }
}

/* ==========================================================================
   9. Premium ROSE PETALS AURA THEME - Selector Portal / Mockup Styling
   ========================================================================== */
.theme-petals {
    --card-bg: #fcf6f6;
    --card-border: rgba(225, 29, 72, 0.15);
    --card-shadow: 0 25px 60px rgba(225, 29, 72, 0.06), 0 4px 15px rgba(0, 0, 0, 0.02);
    --decor-border: rgba(225, 29, 72, 0.2);
    --primary-color: #e11d48;
    --text-color: #2c1a1d;
    --text-muted: #6b5558;

    --envelope-bg-outside: #e11d48;
    --envelope-bg-inside: #fda4af;
    --envelope-accent: #e5b869;
}

.petals-border {
    border-color: #e11d48 !important;
}

.petals-screen-bg {
    background: radial-gradient(circle at center, #fbf2f2 0%, #f2dfdf 100%) !important;
}

.petals-btn {
    background: #e11d48 !important;
    color: white !important;
}

.petals-btn:hover {
    background: #e5b869 !important;
}

.theme-petals.app-container {
    background: radial-gradient(circle at center, #fbf2f2 0%, #f2dfdf 100%) !important;
}

.theme-petals .slide-inner {
    border: 1px solid rgba(225, 29, 72, 0.1);
    border-radius: 20px;
    background: #fcf6f6;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}

/* ==========================================================================
   10. Premium GLOW DIVINE THEME - Selector Portal / Mockup Styling
   ========================================================================== */
.theme-glow {
    --card-bg: #fdf8f5;
    --card-border: rgba(107, 12, 34, 0.15);
    --card-shadow: 0 25px 60px rgba(107, 12, 34, 0.06), 0 4px 15px rgba(0, 0, 0, 0.02);
    --decor-border: rgba(107, 12, 34, 0.2);
    --primary-color: #6b0c22;
    --text-color: #1e1b18;
    --text-muted: #57534e;

    --envelope-bg-outside: #6b0c22;
    --envelope-bg-inside: #fcdad7;
    --envelope-accent: #e5b869;
}

.glow-border {
    border-color: #6b0c22 !important;
}

.glow-screen-bg {
    background: radial-gradient(circle at center, #fdf8f5 0%, #f7eae1 100%) !important;
}

.glow-btn {
    background: #6b0c22 !important;
    color: white !important;
}

.glow-btn:hover {
    background: #e5b869 !important;
}

.theme-glow .slide-inner {
    border: 1px solid rgba(107, 12, 34, 0.1);
    border-radius: 20px;
    background: #fdf8f5;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}

/* ==========================================================================
   11. Premium CRIMSON LUXE THEME - Selector Portal / Mockup Styling
   ========================================================================== */
.theme-preview-box.crimson {
    background: #4c0519;
}

.card-inner-banner.theme-crimson {
    background: linear-gradient(135deg, rgba(136, 19, 55, 0.6) 0%, rgba(17, 24, 39, 0.6) 100%);
}

.card-theme-badge.crimson {
    background: rgba(136, 19, 55, 0.15);
    color: #fda4af;
    border: 1px solid rgba(136, 19, 55, 0.25);
}

.theme-crimson {
    --card-bg: #fffbeb;
    --card-border: rgba(136, 19, 55, 0.15);
    --card-shadow: 0 25px 60px rgba(136, 19, 55, 0.06), 0 4px 15px rgba(0, 0, 0, 0.02);
    --decor-border: rgba(136, 19, 55, 0.2);
    --primary-color: #881337;
    --text-color: #2c050f;
    --text-muted: #574c4e;

    --envelope-bg-outside: #881337;
    --envelope-bg-inside: #fbcfe8;
    --envelope-accent: #fbbf24;
}

.crimson-border {
    border-color: #881337 !important;
}

.crimson-screen-bg {
    background: radial-gradient(circle at center, #fffbeb 0%, #faecd5 100%) !important;
}

.crimson-btn {
    background: #881337 !important;
    color: white !important;
}

.crimson-btn:hover {
    background: #fbbf24 !important;
    color: #4c0519 !important;
}

.theme-crimson.app-container {
    background: radial-gradient(circle at center, #fffbeb 0%, #faecd5 100%) !important;
}

.theme-crimson .slide-inner {
    border: 1px solid rgba(136, 19, 55, 0.1);
    border-radius: 20px;
    background: #fffbeb;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}

/* ==========================================================================
   12. Premium FLORAL BURGUNDY THEME - Selector Portal / Mockup Styling
   ========================================================================== */
.theme-preview-box.burgundy {
    background: #581c24;
}

.card-inner-banner.theme-burgundy {
    background: linear-gradient(135deg, rgba(88, 28, 36, 0.6) 0%, rgba(143, 155, 135, 0.6) 100%);
}

.card-theme-badge.burgundy {
    background: rgba(88, 28, 36, 0.15);
    color: #fca5a5;
    border: 1px solid rgba(88, 28, 36, 0.25);
}

.theme-burgundy {
    --card-bg: #fffcf9;
    --card-border: rgba(88, 28, 36, 0.12);
    --card-shadow: 0 20px 45px rgba(88, 28, 36, 0.05), 0 4px 12px rgba(0, 0, 0, 0.01);
    --decor-border: rgba(88, 28, 36, 0.15);
    --primary-color: #581c24;
    --text-color: #2e090f;
    --text-muted: #5e5254;

    --envelope-bg-outside: #581c24;
    --envelope-bg-inside: #fca5a5;
    --envelope-accent: #8f9b87;
}

.burgundy-border {
    border-color: #581c24 !important;
}

.burgundy-screen-bg {
    background: radial-gradient(circle at center, #fffcf9 0%, #f7f1e6 100%) !important;
}

.burgundy-btn {
    background: #581c24 !important;
    color: white !important;
}

.burgundy-btn:hover {
    background: #8f9b87 !important;
    color: #fffcf9 !important;
}

.theme-burgundy.app-container {
    background: radial-gradient(circle at center, #fffcf9 0%, #f7f1e6 100%) !important;
}

.theme-burgundy .slide-inner {
    border: 1px solid rgba(88, 28, 36, 0.08);
    border-radius: 20px;
    background: #fffcf9;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}

/* Premium Customizer Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
    flex-shrink: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-switch .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
    border-radius: 24px;
}

.toggle-switch .slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: #94a3b8;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50%;
}

.toggle-switch input:checked+.slider {
    background-color: rgba(212, 175, 55, 0.15);
    border-color: #d4af37;
}

.toggle-switch input:checked+.slider:before {
    transform: translateX(24px);
    background-color: #d4af37;
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.5);
}

.toggle-switch input:focus+.slider {
    box-shadow: 0 0 1px #d4af37;
}

/* Wizard Buttons Footer Override for high hover contrast visibility */
.creator-footer-nav .btn-next:hover,
.creator-footer-nav .btn-save:hover {
    background: #d4af37 !important;
    color: #111111 !important;
    border-color: #d4af37 !important;
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.4) !important;
    transform: translateY(-2px) !important;
}

/* ==========================================================================
   SCHEDULE OF EVENTS TIMELINE SLIDE
   ========================================================================== */
.timeline-container {
    max-height: 260px;
    overflow-y: auto;
    width: 100%;
    padding-right: 6px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 3;
    margin: 15px 0;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) rgba(255, 255, 255, 0.05);
}

.timeline-container::-webkit-scrollbar {
    width: 4px;
}

.timeline-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 4px;
}

.timeline-container::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.timeline-card-row {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 3px solid var(--primary-color);
    border-radius: 8px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
    transition: var(--transition-fast);
}

.timeline-card-row:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(2px);
}

.timeline-badge {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    padding: 4px 8px;
    font-family: var(--font-sans);
    font-size: 0.58rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.timeline-details {
    flex: 1;
}

.timeline-details h4 {
    font-family: var(--font-royal-head);
    font-size: 0.72rem;
    color: var(--text-color);
    font-weight: 700;
    letter-spacing: 0.5px;
}

.timeline-details p {
    font-family: var(--font-body);
    font-size: 0.6rem;
    color: var(--text-muted);
    margin-top: 2px;
    line-height: 1.4;
}

.timeline-date-tag {
    font-size: 0.55rem;
    color: var(--primary-color);
    font-family: var(--font-sans);
    font-weight: 700;
    text-transform: uppercase;
    display: block;
    margin-bottom: 2px;
}

/* ==========================================================================
   PAYMENT & CHECKOUT MODAL
   ========================================================================== */
.payment-modal-card {
    max-width: 480px;
    width: 90%;
    animation: modalZoomIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.payment-modal-icon {
    font-size: 1.8rem;
    color: #d4af37;
}

.price-summary-box {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1.2rem;
    margin-bottom: 1.5rem;
}

.price-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #94a3b8;
    margin-bottom: 0.6rem;
}

.price-row.discount-row {
    color: #10b981;
}

.price-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0.8rem 0;
}

.price-row.total-row {
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0;
}

.price-row.total-row .total-amount {
    color: #d4af37;
}

.coupon-section {
    margin-bottom: 1.8rem;
}

.coupon-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #cbd5e1;
    margin-bottom: 0.5rem;
}

.coupon-input-group {
    display: flex;
    gap: 10px;
}

.coupon-input {
    flex: 1;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 10px 14px;
    color: white;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.coupon-input:focus {
    border-color: #d4af37;
    outline: none;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

.btn-apply-coupon {
    background: transparent;
    border: 1px solid #d4af37 !important;
    color: #d4af37 !important;
    padding: 10px 20px !important;
    border-radius: 12px !important;
}

.btn-apply-coupon:hover {
    background: rgba(212, 175, 55, 0.1);
}

.coupon-message {
    font-size: 0.8rem;
    margin-top: 0.5rem;
    display: none;
}

.coupon-message.success {
    color: #10b981;
    display: block;
}

.coupon-message.error {
    color: #ef4444;
    display: block;
}

.btn-confirm-pay {
    background: linear-gradient(135deg, #d4af37 0%, #b3922e 100%) !important;
    border: none !important;
    color: #111827 !important;
    font-weight: 700 !important;
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-confirm-pay:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.4);
}

.btn-confirm-pay:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Styling browser-default HTML5 date & time picker icons to be visible in dark mode */
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator,
input[type="datetime-local"]::-webkit-calendar-picker-indicator {
    filter: invert(0.95) sepia(1) saturate(5) hue-rotate(15deg);
    /* Golden/White bright color */
    cursor: pointer;
    opacity: 0.85;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

input[type="date"]::-webkit-calendar-picker-indicator:hover,
input[type="time"]::-webkit-calendar-picker-indicator:hover,
input[type="datetime-local"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* ==========================================================================
   MOBILE RESPONSIVENESS OVERRIDES (Vibrant & Premium optimization)
   ========================================================================== */
@media screen and (max-width: 480px) {

    /* 1. Global Page Adjustments */
    body:not(.portal-body) {
        overflow: hidden !important;
    }

    /* 2. Target ALL Deck Containers */
    .card-deck,
    .adventure-deck-container,
    .bollywood-deck-container,
    .vinyl-deck-container,
    .crimson-deck-container,
    .glow-deck-container,
    .card-deck-container,
    .petals-deck-container {
        width: 92% !important;
        max-width: 380px !important;
        height: 92vh !important;
        /* Fallback */
        height: 92dvh !important;
        /* Dynamic viewport height to clear dynamic browser bars */
        height: var(--app-height, 90dvh) !important;
        /* JS-computed actual visible height */
        max-height: 640px !important;
        /* Ensure it remains fully visible on tight screens */
        border-radius: 20px !important;
        margin: auto !important;
    }

    .slide-deck {
        width: 100% !important;
        height: 100% !important;
        max-width: 100% !important;
        max-height: 100% !important;
        margin: 0 auto !important;
    }

    /* 3. Scale down slide inner elements to fit in shorter deck height */
    .slide {
        padding: 16px 12px 80px 12px !important; /* Extra bottom padding to clear mobile browser bars */
    }

    .slide-inner,
    .slide-content-panel {
        padding: 15px 10px !important;
        border-radius: 12px !important;
    }

    /* 4. Couple Names Typography adjustment */
    .couple-names {
        font-size: 1.8rem !important;
        /* Scale down standard names */
    }

    /* Floral template names are huge (3.5rem) */
    .theme-floral .couple-names {
        font-size: 2.2rem !important;
    }

    .theme-lantern .couple-names {
        font-size: 1.6rem !important;
    }

    .slide-title {
        font-size: 1.3rem !important;
    }

    .theme-floral .slide-title {
        font-size: 1.8rem !important;
    }

    .invitation-intro {
        font-size: 0.58rem !important;
        line-height: 1.4 !important;
        margin-bottom: 5px !important;
    }

    /* 5. Scratch Foil Area (adapts beautifully on mobile) */
    .scratch-area-wrapper {
        width: 280px !important;
        height: 130px !important;
        margin: 10px 0 !important;
    }

    /* 6. Calendar & Countdown (save vertical space) */
    .calendar-widget {
        margin: 8px 0 !important;
    }

    .calendar-leaf {
        transform: scale(0.85) !important;
        margin-bottom: 0 !important;
        transform-origin: center center !important;
    }

    .event-time {
        font-size: 0.65rem !important;
        margin-top: -8px !important;
    }

    .countdown-widget {
        margin: 5px 0 !important;
    }

    .countdown-heading {
        font-size: 0.62rem !important;
        margin-bottom: 5px !important;
    }

    .countdown-grid,
    .sleek-countdown-grid {
        gap: 6px !important;
    }

    .countdown-cell,
    .sleek-countdown-cell {
        padding: 6px 3px !important;
        border-radius: 6px !important;
    }

    .countdown-val,
    .sleek-countdown-val {
        font-size: 1rem !important;
    }

    .countdown-lbl,
    .sleek-countdown-lbl {
        font-size: 0.4rem !important;
        margin-top: 3px !important;
    }

    /* 7. Gallery Slide Adjustments */
    .gallery-slider-container {
        height: 180px !important;
        margin: 10px 0 !important;
    }

    .gallery-nav {
        width: 28px !important;
        height: 28px !important;
        font-size: 0.75rem !important;
    }

    /* 8. Venue & RSVP Adjustments (prevents cutoffs!) */
    .venue-location-card {
        padding: 10px !important;
        margin: 5px 0 !important;
        border-radius: 10px !important;
    }

    .venue-icon-wrapper {
        width: 32px !important;
        height: 32px !important;
        font-size: 0.9rem !important;
        margin-bottom: 5px !important;
    }

    .venue-heading {
        font-size: 0.8rem !important;
    }

    .venue-text {
        font-size: 0.62rem !important;
        margin-bottom: 6px !important;
    }

    .btn-directions {
        padding: 6px 12px !important;
        font-size: 0.6rem !important;
    }

    .rsvp-container {
        margin-top: 5px !important;
    }

    .rsvp-heading {
        font-size: 0.55rem !important;
        margin-bottom: 4px !important;
    }

    .rsvp-contacts-grid,
    .rsvp-grid-box {
        gap: 6px !important;
        max-width: 260px !important;
    }

    .rsvp-member-card,
    .rsvp-card {
        padding: 6px 10px !important;
        border-radius: 6px !important;
    }

    .rsvp-member-name,
    .rsvp-name {
        font-size: 0.6rem !important;
    }

    .rsvp-actions a {
        width: 22px !important;
        height: 22px !important;
        font-size: 0.65rem !important;
    }

    /* 9. Timeline Container (ensure events fit!) */
    .timeline-container {
        max-height: 200px !important;
        gap: 6px !important;
        margin: 8px 0 !important;
    }

    .timeline-card-row {
        padding: 6px 10px !important;
        gap: 8px !important;
        border-radius: 6px !important;
    }

    .timeline-badge {
        padding: 2px 6px !important;
        font-size: 0.5rem !important;
    }

    .timeline-details h4 {
        font-size: 0.65rem !important;
    }

    .timeline-details p {
        font-size: 0.55rem !important;
        line-height: 1.3 !important;
    }

    /* 10. Nav Footers & Arrow Adjustments */
    .slide-footer-hint {
        margin-top: 6px !important;
    }

    .slide-nav-arrows {
        gap: 12px !important;
    }

    .slide-nav-arrows button,
    .btn-prev,
    .slide-nav-arrows .btn-next {
        width: 32px !important;
        height: 32px !important;
        font-size: 0.75rem !important;
    }

    .btn-next-step {
        width: auto !important;
        height: auto !important;
        padding: 8px 18px !important;
        font-size: 0.6rem !important;
        border-radius: 30px !important;
    }

    .btn-next span {
        font-size: 0.6rem !important;
    }

    /* 11. Theme-Specific Mobile Adapters */
    /* Adventure polaroid collage sizing */
    .theme-adventure .collage-container {
        height: 240px !important;
        margin: 10px auto !important;
    }

    .theme-adventure .collage-card.center-main {
        width: 160px !important;
        height: 200px !important;
    }

    .theme-adventure .collage-card.center-main img {
        height: 140px !important;
    }

    .theme-adventure .collage-card.side-left {
        width: 90px !important;
        height: 120px !important;
        left: 10px !important;
        bottom: 20px !important;
    }

    .theme-adventure .collage-card.side-left img {
        height: 80px !important;
    }

    .theme-adventure .collage-card.side-right {
        width: 90px !important;
        height: 120px !important;
        right: 10px !important;
        top: 20px !important;
    }

    .theme-adventure .collage-card.side-right img {
        height: 80px !important;
    }

    .theme-adventure .cover-names {
        font-size: 1.6rem !important;
    }

    .theme-adventure .story-collage-grid {
        height: 130px !important;
        margin: 10px 0 !important;
    }

    .theme-adventure .invite-cursive-intro {
        font-size: 1.1rem !important;
        margin-bottom: 12px !important;
    }

    .theme-adventure .invite-main-names {
        font-size: 1.5rem !important;
        margin: 10px 0 !important;
    }

    .theme-adventure .invite-narrative {
        font-size: 0.7rem !important;
        line-height: 1.5 !important;
        max-width: 280px !important;
    }

    .theme-adventure .quote-overlay-card {
        margin-bottom: 10px !important;
    }

    .theme-adventure .quote-overlay-img {
        height: 100px !important;
    }

    .theme-adventure .quote-overlay-text {
        font-size: 0.72rem !important;
    }

    /* Lantern custom pointed arches styling */
    .theme-lantern .slide-content-panel {
        padding: 20px 12px 10px !important;
        border-radius: 80px 80px 15px 15px !important;
    }

    .theme-lantern .arch-border-line {
        border-radius: 74px 74px 12px 12px !important;
    }

    .theme-lantern .slide-inner {
        padding: 12px 8px !important;
    }

    /* Bollywood template layout tweaks */
    .theme-bollywood .slide-inner {
        padding: 15px 10px !important;
    }
}

/* 12. Extra tight viewports (iPhone SE / smaller devices <= 375px) */
@media screen and (max-width: 375px) {
    .envelope-wrapper {
        transform: scale(0.8) !important;
    }

    .physical-envelope-card {
        transform: scale(0.9) !important;
    }


    .slide-inner,
    .slide-content-panel {
        padding: 10px 8px !important;
    }

    .couple-names {
        font-size: 1.6rem !important;
    }

    .scratch-area-wrapper {
        width: 250px !important;
        height: 120px !important;
    }

    .timeline-container {
        max-height: 160px !important;
    }

    .gallery-slider-container {
        height: 150px !important;
    }
}

/* ==========================================================================
   13. Global Premium Button Alignment, Centering & Touch Target Resets
   ========================================================================== */

/* Perfect vertical alignment for all templates' circular buttons */
body .btn-prev,
body .slide-nav-arrows .btn-next,
body .slide-nav-arrows button,
body .gallery-nav,
body .audio-btn,
body .btn-prev-step,
body .btn-next-step {
    display: inline-flex !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    line-height: 1 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

/* Ensure Font Awesome icons inside are perfectly centered without offsets */
body .btn-prev i,
body .slide-nav-arrows .btn-next i,
body .slide-nav-arrows button i,
body .gallery-nav i,
body .audio-btn i,
body .btn-prev-step i,
body .btn-next-step i {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
    display: inline-block !important;
}

/* Absolute center-alignment for step capsule buttons with text + icons */
body .btn-next-step,
body .btn-prev-step,
body .btn-lock-next {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    line-height: 1 !important;
    padding: 10px 20px !important;
}

body .btn-next-step span,
body .btn-prev-step span {
    line-height: 1 !important;
    display: inline-block !important;
}

/* Touch Target Boundary Expansion: 48px min tap footprint */
body .btn-prev,
body .btn-next,
body .slide-nav-arrows button,
body .gallery-nav {
    position: relative !important;
}

body .btn-prev::after,
body .btn-next::after,
body .slide-nav-arrows button::after,
body .gallery-nav::after {
    content: '' !important;
    position: absolute !important;
    top: -12px !important;
    left: -12px !important;
    right: -12px !important;
    bottom: -12px !important;
    width: auto !important;
    height: auto !important;
    background: transparent !important;
    cursor: pointer !important;
    z-index: 100 !important;
}

/* Ensure slide decks adapt height perfectly to the mobile containers */
body .slide-deck {
    height: 100% !important;
    max-height: 100% !important;
}


/* Database Loading State */
html.waiting-for-db body>*:not(#db-loader) {
    display: none !important;
}

html.waiting-for-db #db-loader {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Ensure decorative overlays don't block clicks/touches */
.filigree-decoration,
.bottom-decor,
.top-decor,
.floral-divider {
    pointer-events: none !important;
}