:root {
        --bg: #1a0f0a;
        --bg-elevated: #2a1810;
        --cream: #faf7f2;
        --gold: #d4b896;
        --gold-soft: #c9b8a0;
        --gold-muted: #a88a72;
        --accent: #e8d5b7;
        --dark: #0f0805;
        
        --font-display: 'Cinzel', serif;
        --font-body: 'Cormorant Garamond', serif;
        
        --ease-smooth: cubic-bezier(0.25, 0, 0.1, 1);
    }

    *, *::before, *::after { 
        box-sizing: border-box; 
        margin: 0; 
        padding: 0; 
        -webkit-tap-highlight-color: transparent;
    }

    html, body {
        height: 100%; 
        width: 100%;
        background: var(--bg);
        color: var(--cream);
        font-family: var(--font-body);
        overflow: hidden;
        -webkit-font-smoothing: antialiased;
        touch-action: none;
    }

    /* ── CINEMATIC LAYERS ── */
    body::before {
        content: '';
        position: fixed; 
        inset: 0; 
        z-index: 0;
        background:
            radial-gradient(ellipse 120% 70% at 50% -10%, rgba(212, 184, 150, 0.08) 0%, transparent 55%),
            radial-gradient(ellipse 80% 60% at 100% 110%, rgba(180, 130, 80, 0.06) 0%, transparent 50%);
        pointer-events: none;
    }

    .vignette {
        position: fixed; 
        inset: 0; 
        z-index: 0;
        background: radial-gradient(ellipse 140% 140% at 50% 50%, transparent 30%, rgba(10, 4, 0, 0.85) 100%);
        pointer-events: none;
    }

    #hero-bg {
        position: fixed; 
        inset: 0; 
        z-index: 0;
        background: url('https://i.postimg.cc/655670jr/image.png') center center / cover no-repeat;
        opacity: 0;
        transition: opacity 2s var(--ease-smooth);
        transform: scale(1.05);
        animation: kenBurns 30s ease-in-out infinite alternate;
        filter: brightness(0.32) saturate(0.6) contrast(1.05);
    }

    #hero-bg.show { opacity: 1; }

    @keyframes kenBurns {
        0% { transform: scale(1.05) translate(0%, 0%); }
        100% { transform: scale(1.12) translate(-0.5%, -0.5%); }
    }

    #particles { 
        position: fixed; 
        inset: 0; 
        z-index: 2; 
        pointer-events: none; 
    }

    /* ── GLASS PANEL ── */
    .glass-panel {
        background: rgba(30, 18, 12, 0.4);
        backdrop-filter: blur(20px) saturate(140%);
        -webkit-backdrop-filter: blur(20px) saturate(140%);
        border: 1px solid rgba(212, 184, 150, 0.08);
        border-radius: 1px;
    }

    /* ── LOADER ── */
    #curtain {
        position: fixed; 
        inset: 0; 
        z-index: 900;
        background: var(--bg);
        display: flex; 
        flex-direction: column; 
        align-items: center; 
        justify-content: center;
        transition: opacity 1.2s ease, transform 1.6s var(--ease-smooth);
    }

    #curtain.gone { 
        opacity: 0; 
        transform: translateY(-100%); 
        pointer-events: none; 
    }

    .crt-tag {
        font-family: var(--font-display);
        font-size: 0.6rem;
        font-weight: 300;
        letter-spacing: 0.8em;
        color: var(--gold-soft);
        text-transform: uppercase;
        margin-bottom: 2rem;
        opacity: 0;
        animation: riseUp 1s var(--ease-smooth) forwards 0.3s;
    }

    .crt-names {
        font-family: var(--font-body);
        font-style: italic;
        font-weight: 400;
        font-size: clamp(2.8rem, 9vw, 4.5rem);
        letter-spacing: 0.06em;
        color: var(--cream);
        text-align: center;
        line-height: 1.2;
        opacity: 0;
        animation: riseUpSlow 1.4s var(--ease-smooth) forwards 0.55s;
    }

    .crt-date {
        font-family: var(--font-display);
        font-size: 0.75rem;
        font-weight: 300;
        letter-spacing: 0.6em;
        color: var(--gold);
        text-transform: uppercase;
        margin-top: 1.2rem;
        opacity: 0;
        animation: riseUp 1s var(--ease-smooth) forwards 0.9s;
    }

    .crt-orn {
        display: flex;
        align-items: center;
        gap: 1rem;
        margin: 2rem 0;
        opacity: 0;
        animation: riseUp 1s var(--ease-smooth) forwards 1.1s;
    }

    .orn-ln {
        width: 60px;
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(212, 184, 150, 0.3));
    }

    .orn-ln.r {
        background: linear-gradient(90deg, rgba(212, 184, 150, 0.3), transparent);
    }

    .orn-gem {
        width: 5px;
        height: 5px;
        background: var(--gold);
        transform: rotate(45deg);
        opacity: 0.7;
    }

    .crt-bar-wrap {
        width: 180px;
        height: 1px;
        background: rgba(212, 184, 150, 0.1);
        position: relative;
        overflow: visible;
        opacity: 0;
        animation: riseUp 1s var(--ease-smooth) forwards 1.3s;
    }

    #crt-bar {
        height: 100%;
        width: 0%;
        background: var(--gold-soft);
        transition: width 0.5s var(--ease-smooth);
    }

    .crt-count {
        display: flex;
        gap: 3rem;
        margin-top: 3rem;
        font-family: var(--font-display);
        font-size: 0.55rem;
        font-weight: 300;
        letter-spacing: 0.4em;
        color: var(--gold-muted);
        text-align: center;
        opacity: 0;
        animation: riseUp 1s var(--ease-smooth) forwards 1.5s;
    }

    .cnt-n {
        display: block;
        font-size: 1.5rem;
        color: var(--cream);
        font-weight: 400;
        margin-bottom: 6px;
        font-variant-numeric: tabular-nums;
    }

    /* ── KEYFRAMES ── */
    @keyframes riseUp {
        from { opacity: 0; transform: translateY(30px); }
        to { opacity: 1; transform: translateY(0); }
    }

    @keyframes riseUpSlow {
        from { opacity: 0; transform: translateY(50px); }
        to { opacity: 1; transform: translateY(0); }
    }

    @keyframes spin {
        to { transform: rotate(360deg); }
    }

    @keyframes flickerGold {
        0%, 100% { opacity: 1; }
        92% { opacity: 0.9; }
        94% { opacity: 1; }
        96% { opacity: 0.95; }
    }

    /* ── STAGES ── */
    #app {
        position: relative;
        height: 100%;
        width: 100%;
        overflow: hidden;
        z-index: 3;
    }

    .stage {
        position: absolute;
        inset: 0;
        display: none;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 6vh 2rem 4vh;
        text-align: center;
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s var(--ease-smooth), transform 0.8s var(--ease-smooth);
    }

    .stage.active { display: flex; }
    .stage.visible { opacity: 1; transform: translateY(0); }
    .stage.exiting { opacity: 0; transform: translateY(-20px); }

    #step-1 {
        justify-content: flex-start;
        padding-top: 7vh;
    }

    /* ── BACK BTN ── */
    #back-btn {
        position: fixed;
        top: 0.8rem;
        left: 0.8rem;
        z-index: 800;
        font-family: var(--font-display);
        font-size: 0.55rem;
        font-weight: 300;
        letter-spacing: 0.35em;
        text-transform: uppercase;
        color: var(--gold-soft);
        background: transparent;
        border: none;
        cursor: pointer;
        opacity: 0;
        pointer-events: none;
        transition: all 0.4s var(--ease-smooth);
        padding: 0.5rem;
    }

    #back-btn.on {
        opacity: 0.6;
        pointer-events: all;
    }

    #back-btn:hover {
        opacity: 1;
        color: var(--gold);
        transform: translateX(-4px);
    }

    /* ── DASHBOARD LINK (TOP RIGHT - STEP 0 ONLY) ── */
    #dash-link {
        position: fixed;
        top: 0.8rem;
        right: 0.8rem;
        z-index: 800;
        font-family: var(--font-display);
        font-size: 0.55rem;
        font-weight: 300;
        letter-spacing: 0.35em;
        text-transform: uppercase;
        color: rgba(212, 184, 150, 0.15);
        background: transparent;
        border: none;
        cursor: pointer;
        text-decoration: none;
        transition: opacity 0.4s var(--ease-smooth), color 0.3s;
        padding: 0.5rem;
        opacity: 1;
    }

    #dash-link.hidden {
        opacity: 0;
        pointer-events: none;
    }

    #dash-link:hover {
        color: rgba(212, 184, 150, 0.4);
    }

    /* ── LANDING PAGE REFINED ── */
    #step-0 {
        justify-content: flex-start;
        padding-top: 10vh;
        gap: 0;
    }

    #step-0 .hero-section {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-bottom: 2.5rem;
    }

    #step-0 .couple-photo {
        width: 110px;
        height: 110px;
        margin-bottom: 1.5rem;
        border: 1px solid rgba(212, 184, 150, 0.25);
    }

    #step-0 .t-tag {
        font-size: 0.65rem;
        letter-spacing: 0.5em;
        margin-bottom: 0.8rem;
        opacity: 0.8;
    }

    #step-0 .t-main {
        font-size: clamp(2.6rem, 9vw, 4.5rem);
        line-height: 1.05;
        margin-bottom: 0.5rem;
    }

    #step-0 .t-sub {
        font-family: var(--font-display);
        font-size: clamp(1.2rem, 3.5vw, 1.8rem);
        font-weight: 300;
        letter-spacing: 0.25em;
        color: var(--gold);
        margin-top: 0.6rem;
        opacity: 0.9;
        font-style: normal;
    }

    #step-0 .action-section {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        max-width: 340px;
    }

    #step-0 .div-row {
        margin: 0 0 1.5rem 0;
        max-width: 200px;
    }

    #step-0 .lang-wrap {
        margin-top: 0;
        gap: 0.7rem;
        width: 100%;
    }

    #step-0 .lang-hint {
        font-size: 0.6rem;
        letter-spacing: 0.35em;
        margin-bottom: 1.2rem;
        line-height: 1.8;
        opacity: 0.6;
    }

    #step-0 .btn-lang {
        padding: 1.2rem 1rem;
        font-size: 0.9rem;
        letter-spacing: 0.4em;
    }

    #step-0 .visit-section {
        margin-top: 2rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.4rem;
    }

    #step-0 .visit-hint {
        font-size: 0.55rem;
        letter-spacing: 0.25em;
        margin: 0;
        opacity: 0.4;
    }

    #step-0 .btn-visit-alt {
        font-family: var(--font-display);
        font-size: 0.7rem;
        font-weight: 300;
        letter-spacing: 0.25em;
        text-transform: uppercase;
        color: var(--gold-muted);
        background: transparent;
        border: none;
        border-bottom: 1px solid rgba(212, 184, 150, 0.15);
        padding: 0.2rem 0.3rem;
        cursor: pointer;
        text-decoration: none;
        transition: all 0.3s var(--ease-smooth);
    }

    #step-0 .btn-visit-alt:hover {
        color: var(--gold-soft);
        border-bottom-color: rgba(212, 184, 150, 0.35);
        letter-spacing: 0.3em;
    }

    /* ── DIVIDER ── */
    .div-row {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 1.2rem;
        margin: 2rem auto;
        width: 100%;
        max-width: 360px;
    }

    .div-ln {
        flex: 1;
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(212, 184, 150, 0.25));
    }

    .div-ln.r {
        background: linear-gradient(90deg, rgba(212, 184, 150, 0.25), transparent);
    }

    .div-gem {
        width: 4px;
        height: 4px;
        background: var(--gold);
        transform: rotate(45deg);
        opacity: 0.6;
    }

    /* ── TYPOGRAPHY ── */
    .t-tag {
        font-family: var(--font-display);
        font-size: 0.75rem;
        font-weight: 300;
        letter-spacing: 0.7em;
        color: var(--gold-soft);
        text-transform: uppercase;
        margin-bottom: 0.5rem;
    }

    .t-main {
        font-family: var(--font-display);
        font-size: clamp(2.4rem, 10vw, 5rem);
        font-weight: 300;
        line-height: 1.05;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: var(--cream);
        text-shadow: 0 0 60px rgba(212, 184, 150, 0.15);
    }

    .t-sub {
        font-family: var(--font-body);
        font-style: italic;
        font-weight: 400;
        font-size: clamp(1.3rem, 4vw, 1.9rem);
        color: var(--gold);
        margin-top: 0.8rem;
        letter-spacing: 0.02em;
    }

    .t-body {
        font-family: var(--font-body);
        font-size: clamp(1.1rem, 3vw, 1.35rem);
        font-weight: 400;
        color: var(--cream);
        line-height: 1.8;
        opacity: 0.85;
        max-width: 340px;
    }

    /* ── COUPLE PHOTO ── */
    .couple-photo {
        width: 100px;
        height: 100px;
        border-radius: 50%;
        object-fit: cover;
        border: 1px solid rgba(212, 184, 150, 0.3);
        margin-bottom: 1.5rem;
        display: block;
        filter: brightness(1.05) contrast(1.05);
        animation: floatPhoto 6s ease-in-out infinite;
    }

    .couple-photo-lg {
        width: 130px;
        height: 130px;
        border-radius: 50%;
        object-fit: cover;
        border: 1px solid rgba(212, 184, 150, 0.4);
        display: block;
        margin-bottom: 2rem;
        filter: brightness(1.05) contrast(1.05);
        animation: floatPhoto 5s ease-in-out infinite;
    }

    @keyframes floatPhoto {
        0%, 100% { transform: translateY(0); }
        50% { transform: translateY(-8px); }
    }

    /* ── LANG BUTTONS ── */
    .lang-wrap {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        max-width: 340px;
        margin-top: 1rem;
    }

    .lang-hint {
        font-family: var(--font-display);
        font-size: 0.7rem;
        font-weight: 300;
        letter-spacing: 0.5em;
        color: var(--gold-muted);
        text-transform: uppercase;
        line-height: 2.4;
        margin-bottom: 0.5rem;
        opacity: 0.8;
    }

    .btn-lang {
        font-family: var(--font-display);
        font-size: 1rem;
        font-weight: 400;
        letter-spacing: 0.5em;
        padding: 1.4rem 1rem;
        color: var(--dark);
        background: var(--gold);
        border: none;
        text-transform: uppercase;
        cursor: pointer;
        width: 100%;
        transition: all 0.4s var(--ease-smooth);
        position: relative;
        z-index: 1000;
        touch-action: manipulation;
    }

    .btn-lang:hover {
        background: var(--accent);
        letter-spacing: 0.55em;
        transform: translateY(-2px);
    }

    .btn-lang:active {
        transform: scale(0.98) translateY(-1px);
    }

    /* ── GUEST SEARCH ── */
    .panel {
        width: 100%;
        max-width: 480px;
        padding: 1.2rem;
        margin-top: 0.5rem;
        flex: 1;
        display: flex;
        flex-direction: column;
        min-height: 0;
    }

    .search-wrap {
        position: relative;
        width: 100%;
        margin-bottom: 1rem;
        flex-shrink: 0;
    }

    .search-icon {
        position: absolute;
        left: 1.2rem;
        top: 50%;
        transform: translateY(-50%);
        color: var(--gold-soft);
        font-size: 0.8rem;
        pointer-events: none;
        opacity: 0.5;
    }

    .search-input {
        width: 100%;
        padding: 1rem 1rem 1rem 3rem;
        background: rgba(212, 184, 150, 0.04);
        border: 1px solid rgba(212, 184, 150, 0.2);
        color: var(--cream);
        font-family: var(--font-body);
        font-style: italic;
        font-size: 1.25rem;
        outline: none;
        transition: all 0.3s var(--ease-smooth);
        -webkit-appearance: none;
    }

    .search-input:focus {
        border-color: rgba(212, 184, 150, 0.5);
        background: rgba(212, 184, 150, 0.06);
    }

    .search-input::placeholder {
        color: rgba(250, 247, 242, 0.25);
    }

    /* ── GUEST GRID ── */
    .guest-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        width: 100%;
        flex: 1;
        min-height: 0;
        overflow-y: auto;
        padding: 2px;
        scrollbar-width: thin;
        scrollbar-color: rgba(212, 184, 150, 0.2) transparent;
        -webkit-overflow-scrolling: touch;
        align-content: start;
        touch-action: pan-y;
    }

    .guest-grid::-webkit-scrollbar {
        width: 3px;
    }

    .guest-grid::-webkit-scrollbar-track {
        background: transparent;
    }

    .guest-grid::-webkit-scrollbar-thumb {
        background: rgba(212, 184, 150, 0.2);
        border-radius: 2px;
    }

    .g-box {
        min-height: var(--tile, 110px);
        height: var(--tile, 110px);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        border: 1px solid rgba(212, 184, 150, 0.12);
        background: rgba(20, 12, 8, 0.5);
        cursor: pointer;
        position: relative;
        transition: all 0.3s var(--ease-smooth);
        padding: 12px 8px;
        touch-action: manipulation;
        user-select: none;
        -webkit-user-select: none;
    }

    .g-box::before {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(160deg, rgba(212, 184, 150, 0.05) 0%, transparent 60%);
        pointer-events: none;
        opacity: 0;
        transition: opacity 0.3s;
    }

    .g-box:hover::before {
        opacity: 1;
    }

    .g-name {
        position: relative;
        z-index: 1;
        font-family: var(--font-display);
        font-size: clamp(0.6rem, 0.85vw + 0.2rem, 0.72rem);
        font-weight: 400;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        color: var(--cream);
        line-height: 1.5;
        text-align: center;
        opacity: 0.9;
        transition: all 0.3s;
        pointer-events: none;
    }

    .g-box:hover {
        border-color: rgba(212, 184, 150, 0.3);
        background: rgba(30, 18, 12, 0.6);
        transform: translateY(-2px);
    }

    .g-box:hover .g-name {
        opacity: 1;
        color: var(--gold);
    }

    .g-box.sel {
        border-color: var(--gold);
        background: rgba(212, 184, 150, 0.12);
    }

    .g-box.sel .g-name {
        color: var(--cream);
        opacity: 1;
        font-weight: 500;
    }

    .g-box.sel::after {
        content: '✦';
        position: absolute;
        top: 8px;
        right: 8px;
        font-size: 0.7rem;
        color: var(--gold);
        animation: popIn 0.3s var(--ease-smooth);
    }

    @keyframes popIn {
        from { transform: scale(0); opacity: 0; }
        to { transform: scale(1); opacity: 1; }
    }

    /* ── CONFIRM BUTTON ── */
    .btn-confirm {
        margin-top: 1rem;
        width: 100%;
        max-width: 340px;
        font-family: var(--font-display);
        font-size: 0.9rem;
        font-weight: 400;
        letter-spacing: 0.35em;
        padding: 1.2rem 1rem;
        text-transform: uppercase;
        cursor: pointer;
        color: var(--dark);
        background: var(--gold);
        border: none;
        transition: all 0.4s var(--ease-smooth);
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
        touch-action: manipulation;
        flex-shrink: 0;
    }

    .btn-confirm.show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .btn-confirm:hover {
        background: var(--accent);
        letter-spacing: 0.4em;
        transform: translateY(-2px);
    }

    .btn-confirm:active {
        transform: scale(0.98);
    }

    /* ── ATTENDANCE ── */
    #step-2 {
        gap: 0.8rem;
    }

    .att-wrap {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        max-width: 340px;
        margin-top: 1rem;
    }

    .btn-yes {
        font-family: var(--font-display);
        font-size: 0.95rem;
        font-weight: 400;
        letter-spacing: 0.4em;
        padding: 1.5rem 1rem;
        text-transform: uppercase;
        cursor: pointer;
        width: 100%;
        color: var(--dark);
        background: var(--gold);
        border: none;
        transition: all 0.4s var(--ease-smooth);
        line-height: 1.4;
        touch-action: manipulation;
    }

    .btn-yes:hover {
        background: var(--accent);
        letter-spacing: 0.48em;
        transform: translateY(-2px);
    }

    .btn-yes:active {
        transform: scale(0.98);
    }

    .btn-no {
        font-family: var(--font-display);
        font-size: 0.85rem;
        font-weight: 300;
        letter-spacing: 0.4em;
        padding: 1.2rem 1rem;
        text-transform: uppercase;
        cursor: pointer;
        width: 100%;
        color: var(--gold-muted);
        background: transparent;
        border: 1px solid rgba(212, 184, 150, 0.15);
        transition: all 0.3s var(--ease-smooth);
        line-height: 1.4;
        touch-action: manipulation;
    }

    .btn-no:hover {
        border-color: rgba(212, 184, 150, 0.35);
        color: var(--cream);
        background: rgba(212, 184, 150, 0.04);
    }

    /* ── SHARE CARD ── */
    #share-card {
        display: none;
        flex-direction: column;
        align-items: center;
        width: 320px;
        height: 320px;
        background: linear-gradient(160deg, #2a1810 0%, #1a0f0a 100%);
        border: 1px solid rgba(212,184,150,0.25);
        margin-top: 1.8rem;
        position: relative;
        overflow: hidden;
        flex-shrink: 0;
    }
    #share-card::before {
        content: '';
        position: absolute; inset: 0;
        background: radial-gradient(ellipse 100% 60% at 50% 100%, rgba(212,184,150,0.08) 0%, transparent 65%);
        pointer-events: none;
        z-index: 1;
    }
    /* Top photo area */
    .share-card-photo {
        width: 100%;
        height: 180px;
        background: linear-gradient(180deg, #2a1810 0%, #1a0f0a 100%);
        flex-shrink: 0;
        position: relative;
        overflow: hidden;
    }
    .share-card-photo-placeholder {
        width: 100%; height: 100%;
        display: flex; flex-direction: column;
        align-items: center; justify-content: center;
        gap: 0.4rem;
        border-bottom: 1px solid rgba(212,184,150,0.1);
    }
    .share-card-photo-placeholder span {
        font-family: var(--font-display);
        font-size: 0.45rem; letter-spacing: 0.4em; text-transform: uppercase;
        color: rgba(212,184,150,0.2);
    }
    .share-card-photo img {
        width: 100%; height: 100%; object-fit: cover; opacity: 0.75;
    }
    /* Corner ornaments */
    .share-card-corner {
        position: absolute; width: 14px; height: 14px; z-index: 2;
    }
    .share-card-corner.tl { top: 10px; left: 10px; border-top: 1px solid rgba(212,184,150,0.4); border-left: 1px solid rgba(212,184,150,0.4); }
    .share-card-corner.tr { top: 10px; right: 10px; border-top: 1px solid rgba(212,184,150,0.4); border-right: 1px solid rgba(212,184,150,0.4); }
    .share-card-corner.bl { bottom: 10px; left: 10px; border-bottom: 1px solid rgba(212,184,150,0.4); border-left: 1px solid rgba(212,184,150,0.4); }
    .share-card-corner.br { bottom: 10px; right: 10px; border-bottom: 1px solid rgba(212,184,150,0.4); border-right: 1px solid rgba(212,184,150,0.4); }
    /* Bottom text area */
    .share-card-body {
        width: 100%;
        flex: 1;
        display: flex; flex-direction: column;
        align-items: center; justify-content: center;
        padding: 0.8rem 1.2rem 1rem;
        gap: 0.25rem;
        position: relative; z-index: 2;
    }
    .share-card-attending {
        font-family: var(--font-display);
        font-size: 0.45rem; letter-spacing: 0.55em; text-transform: uppercase;
        color: var(--gold-muted); opacity: 0.8;
    }
    .share-card-guest {
        font-family: var(--font-body);
        font-style: italic;
        font-size: 1.35rem;
        color: var(--cream);
        text-align: center;
        line-height: 1.2;
        word-break: break-word;
        max-width: 100%;
    }
    .share-card-divider {
        width: 30px; height: 1px;
        background: linear-gradient(90deg, transparent, rgba(212,184,150,0.45), transparent);
        margin: 0.35rem 0;
    }
    .share-card-names {
        font-family: var(--font-display);
        font-size: 0.52rem; letter-spacing: 0.45em; text-transform: uppercase;
        color: var(--gold); text-align: center;
    }
    .share-card-date {
        font-family: var(--font-display);
        font-size: 0.42rem; letter-spacing: 0.4em; text-transform: uppercase;
        color: var(--gold-muted); opacity: 0.6; margin-top: 0.1rem;
    }
    /* Photo upload button */
    .share-card-upload-btn {
        position: absolute; bottom: 6px; right: 6px; z-index: 5;
        font-family: var(--font-display); font-size: 0.42rem; letter-spacing: 0.3em; text-transform: uppercase;
        background: rgba(26,15,10,0.85); border: 1px solid rgba(212,184,150,0.3);
        color: var(--gold-muted); padding: 0.35rem 0.6rem; cursor: pointer;
        transition: all 0.2s;
    }
    .share-card-upload-btn:hover { border-color: var(--gold); color: var(--gold); }
    .share-btns { display:flex; gap:0.7rem; margin-top:1rem; width:100%; max-width:320px; }
    .btn-share-action {
        flex:1; font-family:var(--font-display); font-size:0.6rem; letter-spacing:0.35em; text-transform:uppercase;
        padding:0.9rem 0.5rem; cursor:pointer; transition:all 0.3s var(--ease-smooth);
        border:1px solid rgba(212,184,150,0.25); background:transparent; color:var(--gold-soft); touch-action:manipulation;
    }
    .btn-share-action:hover  { border-color:var(--gold); color:var(--cream); }
    .btn-share-action.primary { background:rgba(212,184,150,0.1); }

    /* ── VISIT SITE BUTTON ── */
    .btn-visit {
        font-family: var(--font-display);
        font-size: 0.85rem;
        font-weight: 300;
        letter-spacing: 0.4em;
        padding: 1.2rem 1rem;
        text-transform: uppercase;
        cursor: pointer;
        width: 100%;
        max-width: 340px;
        color: var(--gold-soft);
        background: transparent;
        border: 1px solid rgba(212, 184, 150, 0.25);
        transition: all 0.4s var(--ease-smooth);
        line-height: 1.4;
        touch-action: manipulation;
        text-decoration: none;
        display: inline-block;
        margin-top: 1rem;
    }

    .btn-visit:hover {
        border-color: var(--gold);
        color: var(--cream);
        background: rgba(212, 184, 150, 0.08);
        letter-spacing: 0.45em;
        transform: translateY(-2px);
    }

    .btn-visit:active {
        transform: scale(0.98);
    }

    /* ── SUCCESS ── */
    #step-3 {
        gap: 0.5rem;
    }

    .t-date-big {
        font-family: var(--font-display);
        font-size: clamp(3rem, 13vw, 6rem);
        font-weight: 300;
        letter-spacing: 0.12em;
        color: var(--cream);
        font-variant-numeric: tabular-nums;
        margin-top: 0.5rem;
        animation: flickerGold 6s ease-in-out infinite;
        line-height: 1;
    }

    .btn-close {
        margin-top: 3rem;
        font-family: var(--font-display);
        font-size: 0.7rem;
        font-weight: 300;
        letter-spacing: 0.4em;
        text-transform: uppercase;
        background: transparent;
        border: none;
        border-bottom: 1px solid rgba(212, 184, 150, 0.25);
        color: var(--gold-soft);
        padding-bottom: 6px;
        cursor: pointer;
        opacity: 0.5;
        transition: all 0.3s var(--ease-smooth);
        touch-action: manipulation;
    }

    .btn-close:hover {
        opacity: 1;
        color: var(--gold);
        border-bottom-color: var(--gold);
    }

    /* ── MULTI-SELECT HINT ── */
    .multi-hint {
        font-family: var(--font-display);
        font-size: 0.6rem;
        font-weight: 300;
        letter-spacing: 0.35em;
        text-transform: uppercase;
        color: var(--gold-muted);
        opacity: 0.6;
        margin-bottom: 0.5rem;
        text-align: center;
        flex-shrink: 0;
    }

    /* ── SPINNER ── */
    .spinner {
        display: inline-block;
        width: 16px;
        height: 16px;
        border: 1.5px solid rgba(212, 184, 150, 0.1);
        border-top-color: var(--gold);
        border-radius: 50%;
        animation: spin 0.8s linear infinite;
        vertical-align: middle;
        margin-left: 10px;
    }

    /* ── SKELETON ── */
    .skeleton-guest {
        background: rgba(212, 184, 150, 0.05);
        border: 1px solid rgba(212, 184, 150, 0.08);
        animation: pulse 2s ease-in-out infinite;
    }

    @keyframes pulse {
        0%, 100% { opacity: 0.3; }
        50% { opacity: 0.6; }
    }

    /* ── MOBILE ── */
    @media (max-width: 430px) {
        .stage {
            padding-left: 1.2rem;
            padding-right: 1.2rem;
        }
        
        #step-0 {
            padding-top: 8vh;
        }
        
        #step-0 .hero-section {
            margin-bottom: 2rem;
        }
        
        #step-0 .couple-photo {
            width: 95px;
            height: 95px;
            margin-bottom: 1.2rem;
        }
        
        #step-0 .t-main {
            font-size: clamp(2.2rem, 8vw, 3.5rem);
        }
        
        #step-0 .t-sub {
            font-size: 1rem;
            letter-spacing: 0.2em;
            margin-top: 0.4rem;
        }
        
        #step-0 .div-row {
            max-width: 160px;
            margin-bottom: 1.2rem;
        }
        
        #step-0 .lang-hint {
            font-size: 0.55rem;
            margin-bottom: 1rem;
        }
        
        #step-0 .btn-lang {
            padding: 1.1rem 1rem;
            font-size: 0.85rem;
        }
        
        #step-0 .visit-section {
            margin-top: 1.5rem;
        }
        
        #step-1 {
            padding-top: 6vh;
        }
        
        .guest-grid {
            gap: 8px;
        }
        
        .t-main {
            font-size: clamp(1.6rem, 7vw, 2.8rem);
        }
        
        .panel {
            padding: 1rem;
        }
        
        .couple-photo-lg {
            width: 100px;
            height: 100px;
        }
        
        .btn-confirm {
            margin-top: 0.8rem;
            padding: 1.1rem 1rem;
            font-size: 0.85rem;
            letter-spacing: 0.3em;
        }
        
        .lang-wrap {
            max-width: 300px;
        }
        
        .btn-lang {
            padding: 1.2rem 1rem;
            font-size: 0.9rem;
            letter-spacing: 0.45em;
        }
        
        .att-wrap {
            max-width: 300px;
        }
        
        .btn-yes {
            padding: 1.3rem 1rem;
            font-size: 0.85rem;
            letter-spacing: 0.35em;
        }
        
        .btn-no {
            padding: 1.1rem 1rem;
            font-size: 0.8rem;
        }
        
        .btn-visit {
            padding: 1.1rem 1rem;
            font-size: 0.8rem;
            letter-spacing: 0.35em;
        }
        
        #back-btn {
            top: 0.5rem;
            left: 0.5rem;
            font-size: 0.55rem;
        }
        
        #dash-link {
            top: 0.5rem;
            right: 0.5rem;
            font-size: 0.55rem;
        }
    }

    @media (prefers-reduced-motion: reduce) {
        *, *::before, *::after {
            animation-duration: 0.01ms !important;
            animation-iteration-count: 1 !important;
            transition-duration: 0.01ms !important;
        }
    }

    ::selection {
        background: rgba(212, 184, 150, 0.2);
        color: var(--cream);
    }

    :focus-visible {
        outline: 1px solid var(--gold-soft);
        outline-offset: 3px;
    }