/* ================================================
   Ticket Eighteen ("Ulaznica") — Digital Invitation Theme
   A VIP night out: guests open the invitation by tearing the stub off a
   paper concert ticket with a holographic foil strip (concept B of the
   approved prototype), then read a festival-style page on a night ground —
   a lineup for the program, "the entrance" for the map, an RSVP filled in on
   a paper ticket, and a ticket stub for the footer.
   Fonts (Big Shoulders Display / JetBrains Mono / Archivo) all ship Serbian
   Latin as served by Google Fonts.
   ================================================ */

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

:root {
    /* One recolourable seed (the editor's / demo's "Accent Color"); every
       other accent tint derives from it. */
    --accent: #E0533F;
    --accent-color: var(--accent);
    --accent-soft: color-mix(in srgb, var(--accent) 40%, transparent);
    --accent-deep: color-mix(in srgb, var(--accent) 75%, black);

    --night:   #0B0C16;
    --night-2: #12142A;
    --night-3: #1A1D33;
    --ink:     #F3F1EA;
    --body:    #C9C8D6;
    --muted:   #8D8FA6;
    --line:    rgba(243, 241, 234, .16);

    --paper:      #F4EFE3;
    --paper-ink:  #1B1A22;
    --paper-mute: #8A7D68;
    --paper-line: #B9AE97;
    --ticket-red: #A3372F;
    --holo: conic-gradient(from 210deg at 50% 50%, #9EE7FF, #C7A6FF, #FFB8E1, #FFF1B5, #A8FFD8, #9EE7FF);

    --radius: 10px;
    --btn-radius: 999px;
    --ff-display: 'Big Shoulders Display', 'Arial Narrow', sans-serif;
    --ff-mono:    'JetBrains Mono', ui-monospace, 'SFMono-Regular', monospace;
    --ff-body:    'Archivo', system-ui, -apple-system, sans-serif;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--ff-body);
    font-weight: 400;
    color: var(--body);
    background-color: var(--night);
    line-height: 1.65;
}

img { max-width: 100%; display: block; }
a { color: var(--ink); text-decoration: none; }
a:hover { text-decoration: underline; }

.vip-container         { max-width: 1080px; margin: 0 auto; }
.vip-container--narrow { max-width: 640px; }

/* ================================================================
   The stage — concept B of the approved prototype, one to one. A
   phone-proportioned frame (320:700) filling the screen height, centred
   on wider screens; inside it everything is placed in % of its height and
   sized in cqw of its width. Shared by the intro gate and the hero.
   ================================================================ */
.vip-stage {
    position: relative;
    width: min(100%, calc(100svh * 320 / 700));
    aspect-ratio: 320 / 700;
    max-height: 100svh;
    margin: 0 auto;
    container-type: inline-size;
    color: var(--ink);
}

.vip-spot {
    position: absolute;
    left: 50%;
    top: -20%;
    width: 120%;
    height: 90%;
    transform: translateX(-50%);
    background: radial-gradient(50% 50% at 50% 50%, rgba(255, 220, 170, .14), transparent 70%);
    pointer-events: none;
}

/* ---------- The ticket ---------- */
.vip-ticket {
    position: absolute;
    left: 50%;
    top: 4%;
    width: 72%;
    transform: translateX(-50%);
    z-index: 3;
    filter: drop-shadow(0 5cqw 8cqw rgba(0, 0, 0, .6));
}
.vip-ticket--whole { top: 9%; transition: top .9s cubic-bezier(.2, .7, .3, 1); }

.vip-ticket__body,
.vip-ticket__stub { position: relative; background: var(--paper); color: var(--paper-ink); }

.vip-ticket__body {
    border-radius: 3cqw 3cqw 0 0;
    padding: 5cqw 5cqw 4cqw;
    overflow: hidden;
}
/* the half-circle notches where the perforation runs (only when the stub is on) */
.vip-ticket--whole .vip-ticket__body {
    -webkit-mask: radial-gradient(circle 3.4cqw at 0 100%, transparent 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 3.4cqw at 100% 100%, transparent 98%, #000) right / 51% 100% no-repeat;
            mask: radial-gradient(circle 3.4cqw at 0 100%, transparent 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 3.4cqw at 100% 100%, transparent 98%, #000) right / 51% 100% no-repeat;
}
/* torn: a ragged bottom edge where the stub came off */
.vip-ticket:not(.vip-ticket--whole) .vip-ticket__body {
    border-radius: 3cqw 3cqw 0 0;
    -webkit-mask: linear-gradient(#000, #000) top / 100% calc(100% - 1.4cqw) no-repeat, conic-gradient(from -45deg at bottom, transparent 90deg, #000 0) bottom / 2.4cqw 1.4cqw repeat-x;
            mask: linear-gradient(#000, #000) top / 100% calc(100% - 1.4cqw) no-repeat, conic-gradient(from -45deg at bottom, transparent 90deg, #000 0) bottom / 2.4cqw 1.4cqw repeat-x;
    padding-bottom: 5.4cqw;
}

.vip-ticket__foil {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    width: 5cqw;
    background: var(--holo);
    opacity: .9;
}
.vip-ticket__head {
    display: flex;
    justify-content: space-between;
    font: 700 2.4cqw/1 var(--ff-mono);
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #6B5E4B;
    padding-right: 4cqw;
}
.vip-ticket__title {
    font: 900 12cqw/.86 var(--ff-display);
    text-transform: uppercase;
    margin: 2.5cqw 0 3cqw;
    padding-right: 4cqw;
    overflow-wrap: anywhere;
}
.vip-ticket__title em { font-style: normal; color: var(--ticket-red); }
.vip-ticket__photo {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: 50% 30%;
    border-radius: 1.6cqw;
    display: block;
    filter: grayscale(.15) contrast(1.05) sepia(.12);
}
.vip-ticket__photo--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12cqw;
    background: #E6DECC;
}
.vip-ticket__fields {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5cqw 2cqw;
    margin-top: 3.5cqw;
    padding-right: 4cqw;
}
.vip-ticket__field b {
    display: block;
    font: 700 2cqw/1 var(--ff-mono);
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--paper-mute);
    margin-bottom: 1cqw;
}
.vip-ticket__field span { font: 800 4.6cqw/1 var(--ff-display); text-transform: uppercase; }

.vip-ticket__perf {
    height: 0;
    border-top: .5cqw dashed var(--paper-line);
    margin: 0 4cqw;
    position: relative;
    z-index: 2;
}
.vip-ticket__stub {
    border-radius: 0 0 3cqw 3cqw;
    padding: 4cqw 5cqw;
    display: flex;
    align-items: center;
    gap: 4cqw;
    transform-origin: 0 0;
    -webkit-mask: radial-gradient(circle 3.4cqw at 0 0, transparent 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 3.4cqw at 100% 0, transparent 98%, #000) right / 51% 100% no-repeat;
            mask: radial-gradient(circle 3.4cqw at 0 0, transparent 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 3.4cqw at 100% 0, transparent 98%, #000) right / 51% 100% no-repeat;
}
.vip-ticket__code { flex: 1; height: 11cqw; display: flex; gap: .5cqw; }
.vip-ticket__code i { display: block; background: var(--paper-ink); }
.vip-ticket__gate { text-align: right; }
.vip-ticket__gate b {
    display: block;
    font: 700 2cqw/1 var(--ff-mono);
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--paper-mute);
}
.vip-ticket__gate span { font: 900 9cqw/1 var(--ff-display); }

/* ================================================================
   Intro gate (partials/intro.blade.php). Behaviour comes from the shared
   envelope JS via #theme-envelope (it adds body.env-has-envelope /
   env-scroll-lock and .is-open); the shared component's own CSS isn't on
   this page, so the two body rules live here.
   ================================================================ */
body.env-scroll-lock {
    position: fixed;
    left: 0;
    right: 0;
    width: 100%;
    overflow: hidden;
}

.vip-gate {
    position: fixed;
    inset: 0;
    z-index: 9998;
    display: none;
    justify-content: center;
    cursor: pointer;
    background: radial-gradient(70% 40% at 50% 34%, #2A1A33 0%, transparent 70%), linear-gradient(180deg, #120A16, #0B0C16);
    /* fade only once the stub has fallen and the ticket has slid into place */
    transition: opacity .55s ease 1.9s, visibility 0s linear 2.5s;
}
.env-has-envelope .vip-gate { display: flex; }
.vip-gate:focus-visible { outline: 2px solid var(--ink); outline-offset: -6px; }
.vip-gate.is-open { opacity: 0; visibility: hidden; pointer-events: none; }

.vip-gate__hint {
    position: absolute;
    left: 50%;
    bottom: 17%;
    transform: translateX(-50%);
    z-index: 4;
    font: 700 2.6cqw/1 var(--ff-mono);
    letter-spacing: .2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .7);
    white-space: nowrap;
    transition: opacity .3s;
}
.vip-gate__hint::before { content: '✂ '; }

.vip-gate__cta {
    position: absolute;
    left: 50%;
    bottom: 7%;
    transform: translateX(-50%);
    z-index: 20;
    font: 700 3cqw/1 var(--ff-mono);
    letter-spacing: .2em;
    text-transform: uppercase;
    white-space: nowrap;
    color: var(--night);
    background: #fff;
    border-radius: 999px;
    padding: 4cqw 6cqw;
    animation: vip-pulse 2.2s ease-out infinite;
    transition: opacity .35s ease, transform .35s ease;
}
@keyframes vip-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(255, 255, 255, .45); }
    100% { box-shadow: 0 0 0 5cqw rgba(255, 255, 255, 0); }
}

/* the tear: hint + button go, the stub rips off and falls, the ticket rises
   to the hero's spot (top 4%), then the gate fades onto the hero */
.vip-gate.is-open .vip-gate__hint { opacity: 0; }
.vip-gate.is-open .vip-gate__cta { opacity: 0; transform: translateX(-50%) translateY(3cqw); }
.vip-gate.is-open .vip-ticket__stub { animation: vip-tear 1.1s cubic-bezier(.5, 0, .7, .4) forwards; }
@keyframes vip-tear {
    0%   { transform: rotate(0); }
    25%  { transform: rotate(7deg) translateY(1cqw); }
    100% { transform: rotate(38deg) translate(10cqw, 140cqw); opacity: .9; }
}
.vip-gate.is-open .vip-ticket--whole { top: 4%; transition-delay: 1s; }
.vip-gate.is-open .vip-ticket__perf { opacity: 0; transition: opacity .2s ease .9s; }

/* ================================================================
   Hero — the torn ticket + copy (concept B after the tear)
   ================================================================ */
.vip-hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    justify-content: center;
    overflow: hidden;
    background: radial-gradient(70% 40% at 50% 34%, #2A1A33 0%, transparent 70%), linear-gradient(180deg, #120A16, #0B0C16);
}

.vip-copy {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 6%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.2cqw;
    text-align: center;
    z-index: 5;
    padding: 0 6cqw;
}
.vip-copy__eyebrow {
    font: 700 2.7cqw/1 var(--ff-mono);
    letter-spacing: .24em;
    text-transform: uppercase;
    opacity: .75;
}
.vip-copy__name {
    font: 900 13cqw/.9 var(--ff-display);
    text-transform: uppercase;
    letter-spacing: .01em;
    color: var(--ink);
    overflow-wrap: anywhere;
}
.vip-copy__name span {
    display: block;
    font-weight: 600;
    font-size: .52em;
    letter-spacing: .14em;
    opacity: .85;
}
.vip-copy__date {
    font: 700 3.2cqw/1.3 var(--ff-mono);
    letter-spacing: .08em;
    text-transform: uppercase;
}

/* the copy rises in, one line after another, once the gate is torn
   (app.js adds .is-revealed); without the gate it simply stays put */
.env-has-envelope .vip-hero:not(.is-revealed) .vip-copy > * { opacity: 0; transform: translateY(3cqw); }
.vip-hero.is-revealed .vip-copy > * { transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .3, 1); }
.vip-hero.is-revealed .vip-copy > :nth-child(2) { transition-delay: .12s; }
.vip-hero.is-revealed .vip-copy > :nth-child(3) { transition-delay: .24s; }

/* A floating bottom bar (the demo's preview controls, or a guest's tasks
   pill) would cover the date line, so lift the copy clear of it only then. */
body:has(.dpb-fabs) .vip-copy,
body:has(.gt-pill) .vip-copy { bottom: 11%; }

/* ================================================================
   Page sections — one flat night ground, a perforation between them
   ================================================================ */
.vip-alt-sections > * {
    position: relative;
    background-color: var(--night);
}
.vip-alt-sections > *:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: min(80%, 520px);
    border-top: 2px dashed var(--line);
    pointer-events: none;
}

.vip-section-title {
    font: 800 clamp(2.2rem, 6vw, 3.2rem)/1 var(--ff-display);
    text-transform: uppercase;
    letter-spacing: .01em;
    color: var(--ink);
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: .9rem;
    text-wrap: balance;
}
.vip-section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 44px;
    height: 4px;
    border-radius: 2px;
    background: var(--accent);
}

.vip-note,
.vip-countdown,
.vip-audio,
.vip-story,
.vip-gallery,
.vip-lineup,
.vip-dress-code,
.vip-good-to-know,
.vip-location,
.vip-accommodation,
.vip-guest-wall,
.vip-gallery-upload,
.vip-rsvp { padding: 7rem 1.25rem; text-align: center; }

/* ---------- Note ---------- */
.vip-note__card {
    position: relative;
    border: 2px dashed var(--line);
    border-radius: var(--radius);
    padding: 2.75rem 2rem 2.25rem;
}
.vip-note__tag {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--accent);
    color: #fff;
    font: 700 .68rem/1 var(--ff-mono);
    letter-spacing: .18em;
    text-transform: uppercase;
    padding: .5rem .9rem;
    border-radius: 999px;
    white-space: nowrap;
}
.vip-note__text {
    font: 400 1.15rem/1.75 var(--ff-body);
    font-style: italic;
    color: var(--ink);
    white-space: pre-line;
}

/* ---------- Countdown: a departures board ---------- */
.vip-countdown__timer {
    display: flex;
    justify-content: center;
    gap: .75rem;
    flex-wrap: wrap;
}
.vip-countdown__unit {
    min-width: 92px;
    padding: 1.1rem .5rem .9rem;
    background: var(--night-3);
    border-radius: 8px;
    box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .5), 0 10px 24px rgba(0, 0, 0, .35);
    position: relative;
    overflow: hidden;
}
/* the split-flap seam across the middle of each digit card */
.vip-countdown__unit::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 42%;
    height: 1px;
    background: rgba(0, 0, 0, .55);
}
.vip-countdown__number {
    display: block;
    font: 700 2.6rem/1 var(--ff-mono);
    color: var(--ink);
    font-variant-numeric: tabular-nums;
}
.vip-countdown__label {
    display: block;
    margin-top: .6rem;
    font: 700 .62rem/1 var(--ff-mono);
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--muted);
}

/* ---------- Dress code: outline the swatches, a black one would vanish on night ---------- */
.vip-dress-code .dc-swatch { box-shadow: 0 0 0 2px var(--line); }

/* ---------- Story (generic <x-story-timeline>, two-class overrides) ---------- */
.vip-story .st-intro { color: var(--body); }
.vip-story .st-timeline { text-align: left; }
.vip-story .st-timeline::before { background: var(--line); }
.vip-story .st-item::before {
    background: var(--night);
    border: 2px solid var(--accent);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 20%, transparent);
}
.vip-story .st-item__card {
    background: var(--night-2);
    border: 1px solid var(--line);
}
.vip-story .st-item__period { font-family: var(--ff-mono); letter-spacing: .16em; color: var(--accent); }
.vip-story .st-item__title { font: 800 1.5rem/1.1 var(--ff-display); text-transform: uppercase; color: var(--ink); }
.vip-story .st-item__desc { color: var(--body); }

/* ---------- Gallery ---------- */
.vip-gallery .gg-item { border-radius: 6px; }

/* ---------- Lineup (program) ---------- */
.vip-lineup__list {
    list-style: none;
    max-width: 520px;
    margin: 0 auto;
    text-align: left;
}
.vip-lineup__row {
    display: grid;
    grid-template-columns: 4.5rem 1fr;
    gap: 1rem;
    align-items: baseline;
    padding: 1.1rem 0;
    border-bottom: 2px dashed var(--line);
}
.vip-lineup__row:first-child { border-top: 2px dashed var(--line); }
.vip-lineup__time {
    font: 700 1rem/1 var(--ff-mono);
    color: var(--accent);
    font-variant-numeric: tabular-nums;
}
.vip-lineup__act {
    font: 800 clamp(1.6rem, 6vw, 2.1rem)/1 var(--ff-display);
    text-transform: uppercase;
    color: var(--ink);
    min-width: 0;
}
.vip-lineup__where {
    display: block;
    margin-top: .35rem;
    font: 500 .78rem/1.4 var(--ff-mono);
    text-transform: none;
    color: var(--muted);
}
.vip-lineup__where a { color: var(--accent); }

/* ---------- The entrance (map) ---------- */
.vip-location__map iframe {
    width: 100%;
    height: 300px;
    display: block;
    border: 0;
    border-radius: var(--radius) var(--radius) 0 0;
    /* a night map to match the page */
    filter: invert(.9) hue-rotate(180deg) saturate(.6) brightness(.9);
}
.vip-location__stub {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 1.4rem 1.5rem;
    background: var(--paper);
    color: var(--paper-ink);
    border-radius: 0 0 var(--radius) var(--radius);
    border-top: 2px dashed var(--paper-line);
    text-align: left;
}
.vip-location__stub b {
    display: block;
    font: 700 .62rem/1 var(--ff-mono);
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--paper-mute);
    margin-bottom: .35rem;
}
.vip-location__name { font: 800 1.6rem/1 var(--ff-display); text-transform: uppercase; }
.vip-location__address { font: 500 .85rem/1.4 var(--ff-body); color: #5B5444; margin-top: .25rem; }
.vip-location__stub .vip-btn { flex-shrink: 0; width: auto; margin-top: 0; }

@media (max-width: 520px) {
    .vip-location__stub { flex-direction: column; align-items: flex-start; }
}

/* ---------- Album / closing ---------- */
.vip-album { padding: 5rem 1.25rem; text-align: center; }
.vip-album__text { margin-bottom: 1.5rem; }
.vip-closing { padding: 2.75rem 1.25rem; text-align: center; }
.vip-closing p { font: 800 1.6rem/1.15 var(--ff-display); text-transform: uppercase; color: var(--ink); }

/* ---------- Gallery upload ---------- */
.vip-gallery-upload .gu-form {
    max-width: 620px;
    padding: 0 1.5rem;
    background: none;
    border: none;
    box-shadow: none;
}

/* ---------- Wishes slider (<x-guest-wall-slider>) ---------- */
.vip-guest-wall .gws-swiper {
    max-width: 560px;
    padding-top: 2rem;
    background: var(--night-2);
    border: 2px dashed var(--line);
    border-radius: var(--radius);
}
.vip-guest-wall .gws-quote-mark { font-family: var(--ff-display); color: var(--accent); opacity: 1; }
.vip-guest-wall .gws-text { font-family: var(--ff-body); color: var(--ink); }
.vip-guest-wall .gws-name { font-family: var(--ff-mono); color: var(--accent); }
.vip-guest-wall .gws-slide { padding-bottom: 1.5rem; }
.vip-guest-wall .gws-swiper .swiper-pagination { padding-bottom: 1.25rem; }

/* ---------- RSVP: filled in on a paper ticket ---------- */
.vip-rsvp { position: relative; }
.vip-rsvp .rsvp-layout-wrap {
    position: relative;
    max-width: 540px;
    margin: 0 auto;
    background: var(--paper);
    color: var(--paper-ink);
    border-radius: var(--radius);
    padding: 3rem 2.75rem 2.75rem 2.25rem;
    text-align: left;
    box-shadow: 0 24px 50px rgba(0, 0, 0, .45);
    overflow: hidden;
}
/* the ticket's holographic strip down the right edge */
.vip-rsvp .rsvp-layout-wrap::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    width: 12px;
    background: var(--holo);
}
.vip-rsvp .rsvp-deadline { background: transparent; color: #5B5444; }
.vip-rsvp .form__group label {
    display: block;
    font: 700 .66rem/1 var(--ff-mono);
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--paper-mute);
    margin-bottom: .45rem;
}
.vip-rsvp .form__group input[type="text"],
.vip-rsvp .form__group input[type="email"],
.vip-rsvp .form__group input[type="tel"],
.vip-rsvp .form__group select,
.vip-rsvp .form__group textarea {
    width: 100%;
    padding: .8rem .1rem;
    border: 0;
    border-bottom: 2px dashed var(--paper-line);
    border-radius: 0;
    font: 500 1rem/1.4 var(--ff-body);
    color: var(--paper-ink);
    background: transparent;
    outline: none;
    transition: border-color .2s;
}
.vip-rsvp .form__group .rsvp-stepper { background: transparent; }
.vip-rsvp .form__group input:focus,
.vip-rsvp .form__group select:focus,
.vip-rsvp .form__group textarea:focus { border-bottom-color: var(--accent); }
.vip-rsvp .form__error { display: block; color: var(--accent-deep); font-size: .82rem; margin-top: .3rem; }

@media (max-width: 500px) {
    .vip-rsvp .rsvp-layout-wrap { padding: 2.25rem 1.75rem 2rem 1.25rem; }
}

/* ---------- Buttons ---------- */
.vip-btn {
    display: block;
    width: 100%;
    padding: .95rem 1.75rem;
    background: var(--accent);
    color: #fff;
    font: 700 .78rem/1 var(--ff-mono);
    letter-spacing: .16em;
    text-transform: uppercase;
    border: 2px solid var(--accent);
    border-radius: var(--btn-radius);
    cursor: pointer;
    margin-top: .5rem;
    transition: background .15s, border-color .15s, transform .15s;
}
.vip-btn:hover {
    background: var(--accent-deep);
    border-color: var(--accent-deep);
    color: #fff;
    transform: translateY(-2px);
    text-decoration: none;
}
.vip-btn--outline { background: transparent; color: var(--ink); border-color: var(--line); }
.vip-btn--outline:hover { background: var(--accent); border-color: var(--accent); }
.vip-album .vip-btn { display: inline-block; width: auto; }

/* ---------- Footer: the ticket stub ---------- */
.vip-footer {
    padding: 3.5rem 1.25rem 3.5rem;
    text-align: center;
    background: var(--night);
    border-top: 2px dashed var(--line);
}
.vip-footer__stub {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: .55rem;
    padding: 1.4rem 1.75rem 1.2rem;
    background: var(--paper);
    color: var(--paper-ink);
    border-radius: var(--radius);
    max-width: 100%;
}
.vip-footer__code { display: flex; gap: 2px; width: 200px; max-width: 100%; height: 38px; }
.vip-footer__code i { display: block; background: var(--paper-ink); }
.vip-footer__name { font: 900 1.9rem/1 var(--ff-display); text-transform: uppercase; overflow-wrap: anywhere; }
.vip-footer__meta { font: 700 .62rem/1 var(--ff-mono); letter-spacing: .18em; text-transform: uppercase; color: var(--paper-mute); }
.vip-footer__signoff { max-width: 22rem; margin: 1.5rem auto 1.25rem; color: var(--muted); }
.vip-footer__cal { display: inline-flex; width: auto; align-items: center; gap: .5rem; }
.vip-footer__cal-icon { width: 1rem; height: 1rem; flex-shrink: 0; }

/* ---------- Floating topbar ---------- */
.vip-topbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 200;
    padding: .9rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    transition: background .3s ease, backdrop-filter .3s ease;
}
@media (min-width: 601px) {
    .vip-topbar.scrolled {
        background: color-mix(in srgb, var(--night) 88%, transparent);
        backdrop-filter: blur(10px);
    }
}
.vip-topbar__links { display: flex; gap: 1.25rem; }
.vip-topbar__links a {
    font: 700 .7rem/1 var(--ff-mono);
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--body);
    transition: color .2s;
}
.vip-topbar__links a:hover { color: var(--accent); text-decoration: none; }
.vip-topbar__toggle { display: none; }

/* The demo colour picker's panel is always white, but it inks its text with
   the theme's --ink, which here is the light night-ground text. Give it the
   ticket ink instead (body .dcp outranks the component's pushed .dcp rule). */
body .dcp { --dcp-ink: var(--paper-ink); }

/* Demo-only Basic/Standard switch + close + cart badge — shared look defined
   globally in layouts/theme.blade.php, positioned here at opposite bottom
   corners at every screen width. */
.dpb-switch,
.dpb-fab {
    position: fixed;
    bottom: 1rem;
    z-index: 9999;
}
.dpb-fab { right: 1rem; }
.dpb-close { right: 4rem; }
.dpb-switch {
    left: 1rem;
    display: flex;
    align-items: center;
    height: 2.5rem;
    padding: 0 .25rem;
}
.dpb-switch a {
    display: inline-flex;
    align-items: center;
    height: 2rem;
    padding: 0 .9rem;
    font-size: 12px;
}

@media (max-width: 600px) {
    .vip-topbar { justify-content: flex-start; }
    .vip-topbar__toggle {
        order: -1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        width: 3rem;
        height: 3rem;
        padding: 0;
        border: 1.5px solid var(--line);
        border-radius: 50%;
        background: color-mix(in srgb, var(--night-3) 80%, transparent);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        cursor: pointer;
    }
    .vip-topbar__toggle span {
        display: block;
        width: 20px;
        height: 2px;
        border-radius: 1px;
        background: var(--ink);
        transition: transform .25s ease, opacity .2s ease;
    }
    .vip-topbar__toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .vip-topbar__toggle.is-active span:nth-child(2) { opacity: 0; }
    .vip-topbar__toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    .vip-topbar__links {
        flex-direction: column;
        gap: .25rem;
        position: absolute;
        top: calc(100% + .5rem);
        left: 1rem;
        right: 1rem;
        padding: .5rem;
        background: var(--night-2);
        border: 1px solid var(--line);
        border-radius: 14px;
        box-shadow: 0 12px 32px rgba(0, 0, 0, .5);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-6px);
        transition: opacity .2s ease, transform .2s ease, visibility .2s;
    }
    .vip-topbar__links.is-open { display: flex; opacity: 1; visibility: visible; transform: translateY(0); }
    .vip-topbar__links a { text-align: center; padding: .7rem 1rem; border-radius: 8px; }
    .vip-topbar__links a:hover { background: color-mix(in srgb, var(--accent) 16%, transparent); }
}

/* ---------- Responsive ---------- */
@media (max-width: 500px) {
    .vip-countdown__timer { gap: .45rem; flex-wrap: nowrap; }
    .vip-countdown__unit { min-width: 0; flex: 1; padding: .95rem .3rem .8rem; }
    .vip-countdown__number { font-size: 2rem; }
}

@media (max-width: 600px) {
    .vip-note,
    .vip-countdown,
    .vip-audio,
    .vip-story,
    .vip-gallery,
    .vip-lineup,
    .vip-dress-code,
    .vip-good-to-know,
    .vip-location,
    .vip-accommodation,
    .vip-guest-wall,
    .vip-gallery-upload,
    .vip-album,
    .vip-closing,
    .vip-rsvp,
    .vip-footer { padding-left: 1rem; padding-right: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
    .vip-gate__cta { animation: none; }
    .vip-gate.is-open .vip-ticket__stub { animation-duration: .01ms; }
    .vip-gate, .vip-ticket--whole { transition-duration: .01ms; transition-delay: 0s; }
    .vip-hero.is-revealed .vip-copy > * { transition: none; }
}
