/* ══════════════════════════════════════════════
   INVITE PAGE — UI/UX Overhaul
   ══════════════════════════════════════════════ */

:root {
    --primary:       #7c3aed;
    --primary-light: #ede9fe;
    --primary-dark:  #5b21b6;
    --accent:        #e85d6e;
    --accent-dark:   #c94a5b;
    --surface:       #ffffff;
    --bg:            #fafafa;
    --border:        #e5e7eb;
    --text:          #111827;
    --muted:         #6b7280;
    --success:       #16a34a;
    --warning:       #d97706;
    --radius-sm:     8px;
    --radius-md:     14px;
    --radius-lg:     20px;
    --shadow-sm:     0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
    --shadow-md:     0 4px 16px rgba(0,0,0,.10);
    --shadow-lg:     0 12px 40px rgba(0,0,0,.14);
}

* { box-sizing: border-box; }

.invite-root {
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', -apple-system, sans-serif;
    min-height: 100vh;
}

/* ── Hero ── */
.inv-hero {
    min-height: 62vh;
    display: flex;
    align-items: flex-end;
    background: linear-gradient(160deg, #1a0a2e 0%, #2d0a4e 60%, #4a0e6e 100%);
    padding: 56px 24px 44px;
    position: relative;
    overflow: hidden;
}

.inv-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at 60% 20%, rgba(124,58,237,.25) 0%, transparent 70%);
    pointer-events: none;
}

.inv-hero-inner {
    max-width: 760px;
    margin: 0 auto;
    width: 100%;
    position: relative;
}

.inv-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.22);
    color: rgba(255,255,255,.9);
    padding: 5px 14px;
    border-radius: 100px;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-bottom: 18px;
    backdrop-filter: blur(6px);
}

.inv-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2rem, 7vw, 4.2rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.12;
    margin-bottom: 22px;
    text-shadow: 0 2px 20px rgba(0,0,0,.3);
}

.inv-meta {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.inv-meta span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: rgba(255,255,255,.82);
    font-size: .86rem;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.15);
    padding: 5px 12px;
    border-radius: 100px;
    backdrop-filter: blur(4px);
}

/* ── Body ── */
.inv-body {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 20px 80px;
}

.inv-section {
    padding: 44px 0;
    border-bottom: 1px solid var(--border);
}

.inv-section:last-child { border-bottom: none; }

.inv-sec-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.inv-sec-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--primary-light);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .95rem;
    flex-shrink: 0;
}

.inv-desc {
    color: #374151;
    font-size: .97rem;
    line-height: 1.85;
}

/* ── Poster ── */
.inv-poster-section {
    padding-top: 36px;
    display: flex;
    justify-content: center;
}

.inv-poster-flip {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    max-width: 400px;
    width: 100%;
}

.inv-poster-stage {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    perspective: 1000px;
}

.inv-poster-page {
    display: none;
    max-width: 100%;
    max-height: 80vh;
    border-radius: 16px;
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(0,0,0,.04);
}

.inv-poster-page.active {
    display: block;
    animation: posterIn .4s ease;
}

@keyframes posterIn {
    from { opacity: 0; transform: rotateY(-60deg) scale(.95); }
    to   { opacity: 1; transform: rotateY(0) scale(1); }
}

.inv-poster-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,.48);
    border: none;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .9rem;
    transition: background .15s, transform .15s;
    backdrop-filter: blur(4px);
}

.inv-poster-nav:hover { background: rgba(0,0,0,.72); transform: translateY(-50%) scale(1.08); }
.inv-poster-nav.prev { left: 10px; }
.inv-poster-nav.next { right: 10px; }

.inv-poster-dots { display: flex; gap: 7px; }

.inv-poster-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #d1c4e9;
    cursor: pointer;
    transition: background .15s, transform .15s;
}
.inv-poster-dot.active { background: var(--primary); transform: scale(1.3); }

/* ── Countdown ── */
.cd {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.cd-box {
    background: linear-gradient(135deg, #1a0a2e, #3d0a6e);
    border-radius: var(--radius-md);
    padding: 22px 12px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cd-box::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 70% 30%, rgba(124,58,237,.35), transparent 70%);
}

.cd-n {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 2.6rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
    position: relative;
    z-index: 1;
}

.cd-l {
    display: block;
    color: rgba(255,255,255,.6);
    font-size: .65rem;
    text-transform: uppercase;
    letter-spacing: .12em;
    margin-top: 8px;
    position: relative;
    z-index: 1;
}

/* ── RSVP form ── */
.rsvp-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-md);
}

.rsvp-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.field label {
    font-size: .8rem;
    font-weight: 600;
    color: #374151;
    letter-spacing: .01em;
}

.rsvp-card input,
.rsvp-card select,
.rsvp-card textarea {
    background: #f9fafb;
    border: 1.5px solid var(--border);
    color: var(--text);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: .9rem;
    font-family: 'Inter', sans-serif;
    transition: border-color .15s, box-shadow .15s;
    width: 100%;
    line-height: 1.4;
}

.rsvp-card input:focus,
.rsvp-card select:focus,
.rsvp-card textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(124,58,237,.12);
    outline: none;
    background: #fff;
}

.rsvp-card input::placeholder,
.rsvp-card textarea::placeholder { color: #9ca3af; }

/* RSVP status — 3 card radio buttons */
.rsvp-status-group {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.rsvp-status-opt {
    position: relative;
}

.rsvp-status-opt input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0; height: 0;
}

.rsvp-status-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 14px 10px;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all .18s;
    background: #f9fafb;
    text-align: center;
    user-select: none;
}

.rsvp-status-label:hover {
    border-color: var(--primary);
    background: var(--primary-light);
}

.rsvp-status-opt input:checked + .rsvp-status-label {
    border-color: var(--primary);
    background: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(124,58,237,.15);
}

.rsvp-status-opt.going input:checked + .rsvp-status-label {
    border-color: var(--success);
    background: #f0fdf4;
    box-shadow: 0 0 0 3px rgba(22,163,74,.12);
}

.rsvp-status-opt.declined input:checked + .rsvp-status-label {
    border-color: #ef4444;
    background: #fef2f2;
    box-shadow: 0 0 0 3px rgba(239,68,68,.12);
}

.rsvp-status-emoji { font-size: 1.5rem; line-height: 1; }

.rsvp-status-text {
    font-size: .75rem;
    font-weight: 600;
    color: #374151;
    line-height: 1.2;
}

/* Full-width fields inside rsvp-grid */
.field.full { grid-column: 1 / -1; }

/* Food preference breakdown */
.food-breakdown-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px 16px;
    align-items: center;
    background: #f9fafb;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px;
}

.food-breakdown-grid label {
    font-size: .88rem;
    font-weight: 500;
    color: var(--text);
    margin: 0;
}

.food-count-inp {
    width: 72px;
    text-align: center;
    padding: 8px 10px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: .9rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    background: #fff;
    color: var(--text);
    transition: border-color .15s;
}

.food-count-inp:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(124,58,237,.12);
    outline: none;
}

.food-status-bar {
    font-size: .82rem;
    font-weight: 600;
    margin-top: 10px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    background: #f3f4f6;
    color: var(--muted);
    transition: all .2s;
}

/* Submit button */
.btn-rsvp {
    width: 100%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    border: none;
    padding: 16px 24px;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 20px;
    transition: all .2s;
    font-family: 'Inter', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    letter-spacing: .01em;
    box-shadow: 0 4px 14px rgba(124,58,237,.35);
}

.btn-rsvp:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(124,58,237,.45);
}

.btn-rsvp:active { transform: translateY(0); }

/* ── Attendees ── */
.attendees {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.attendee-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #9333ea);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .95rem;
    border: 2px solid var(--surface);
    box-shadow: var(--shadow-sm);
    text-transform: uppercase;
}

.attendee-more {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .72rem;
    font-weight: 700;
    border: 2px solid var(--border);
}

/* ── Timeline ── */
.inv-timeline { display: flex; flex-direction: column; }

.inv-tl-item {
    display: flex;
    gap: 14px;
    padding-bottom: 24px;
    position: relative;
}
.inv-tl-item:last-child { padding-bottom: 0; }

.inv-tl-time {
    width: 56px;
    flex-shrink: 0;
    font-size: .76rem;
    font-weight: 700;
    color: var(--primary);
    padding-top: 3px;
}

.inv-tl-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary);
    flex-shrink: 0;
    margin-top: 4px;
    position: relative;
    box-shadow: 0 0 0 3px var(--primary-light);
}

.inv-tl-item:not(:last-child) .inv-tl-dot::after {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: calc(100% + 24px - 10px);
    background: linear-gradient(to bottom, var(--primary-light), transparent);
}

.inv-tl-content strong {
    color: var(--text);
    font-size: .9rem;
    display: block;
    font-weight: 600;
}
.inv-tl-content p {
    color: var(--muted);
    font-size: .82rem;
    margin-top: 4px;
    line-height: 1.5;
}

/* ── Gift registry ── */
.inv-reg-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
}

.inv-reg-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
    transition: box-shadow .2s, transform .2s;
    position: relative;
}

.inv-reg-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.inv-reg-card.claimed { opacity: .6; }

.inv-reg-name {
    color: var(--text);
    font-weight: 600;
    margin-bottom: 6px;
    font-size: .92rem;
}

.inv-reg-price {
    color: var(--warning);
    font-weight: 700;
    font-size: .9rem;
    margin-bottom: 8px;
}

.inv-reg-link {
    color: var(--primary);
    font-size: .78rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 10px;
    text-decoration: none;
}
.inv-reg-link:hover { text-decoration: underline; }

.inv-reg-claimed {
    font-size: .78rem;
    color: var(--muted);
    font-style: italic;
}

/* Contribution form */
.inv-field {
    width: 100%;
    background: #f9fafb;
    border: 1.5px solid var(--border);
    color: var(--text);
    padding: 9px 12px;
    border-radius: var(--radius-sm);
    font-size: .86rem;
    font-family: 'Inter', sans-serif;
    transition: border-color .15s;
    margin-bottom: 8px;
}
.inv-field:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 3px rgba(124,58,237,.1); }
.inv-field::placeholder { color: #9ca3af; }

.inv-claim-btn {
    width: 100%;
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    font-size: .84rem;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: background .15s;
}
.inv-claim-btn:hover { background: var(--primary-dark); }

/* ── Gallery ── */
.guest-upload-form {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 18px;
    padding: 14px 16px;
    background: var(--primary-light);
    border-radius: var(--radius-md);
    border: 1.5px dashed rgba(124,58,237,.35);
}

.inv-upload-btn {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 9px 18px;
    border-radius: 100px;
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: background .15s;
    font-family: 'Inter', sans-serif;
}
.inv-upload-btn:hover { background: var(--primary-dark); }

.guest-upload-form .inv-field {
    background: #fff;
    flex: 1;
    min-width: 120px;
    margin-bottom: 0;
}

.inv-photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
}

.inv-photo {
    border-radius: var(--radius-sm);
    overflow: hidden;
    aspect-ratio: 1;
    cursor: pointer;
    position: relative;
    background: #f3f4f6;
}
.inv-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .25s;
}
.inv-photo:hover img { transform: scale(1.06); }

.inv-photo-cap {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,.75));
    color: #fff;
    font-size: .68rem;
    padding: 18px 7px 6px;
}

.inv-empty {
    color: var(--muted);
    font-size: .88rem;
    font-style: italic;
    text-align: center;
    padding: 20px;
    background: #f9fafb;
    border-radius: var(--radius-md);
    border: 1px dashed var(--border);
}

/* ── Chat ── */
.chat-box {
    background: #f9fafb;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.chat-list {
    max-height: 340px;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chat-msg {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    box-shadow: var(--shadow-sm);
}
.chat-msg.host {
    background: #fff5f6;
    border-color: #fecaca;
}

.chat-msg-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 5px;
}

.chat-msg-sender {
    color: var(--text);
    font-size: .78rem;
    font-weight: 700;
}

.chat-msg-time {
    color: var(--muted);
    font-size: .7rem;
}

.chat-msg-text {
    color: #374151;
    font-size: .88rem;
    line-height: 1.5;
}

.chat-input-row,
.chat-name-row {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid var(--border);
    background: var(--surface);
}

.chat-input-row input,
.chat-name-row input {
    background: #f9fafb;
    border: 1.5px solid var(--border);
    color: var(--text);
    flex: 1;
    padding: 10px 14px;
    border-radius: 100px;
    font-size: .88rem;
    font-family: 'Inter', sans-serif;
    transition: border-color .15s;
}
.chat-input-row input:focus,
.chat-name-row input:focus {
    border-color: var(--primary);
    outline: none;
    background: #fff;
}

.btn-sm-ghost {
    background: transparent;
    border: 1.5px solid var(--primary);
    color: var(--primary);
    padding: 8px 16px;
    border-radius: 100px;
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    white-space: nowrap;
    transition: all .15s;
}
.btn-sm-ghost:hover { background: var(--primary); color: #fff; }

/* ── Wish wall ── */
.wish-form {
    background: #f9fafb;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    padding: 18px;
    margin-bottom: 20px;
}

.wish-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
}

.wish-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 18px;
    box-shadow: var(--shadow-sm);
    position: relative;
}

.wish-card::before {
    content: '\201C';
    position: absolute;
    top: 10px; left: 14px;
    font-size: 2.5rem;
    line-height: 1;
    color: var(--primary-light);
    font-family: Georgia, serif;
}

.wish-text {
    color: #374151;
    font-size: .88rem;
    line-height: 1.65;
    margin-top: 14px;
}

.wish-meta {
    color: var(--muted);
    font-size: .75rem;
    margin-top: 10px;
    font-style: italic;
    font-weight: 500;
}

/* ── Map ── */
.inv-map-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--text);
    color: #fff;
    padding: 12px 22px;
    border-radius: 100px;
    font-size: .88rem;
    font-weight: 600;
    text-decoration: none;
    margin-top: 12px;
    transition: all .2s;
    box-shadow: var(--shadow-sm);
}
.inv-map-btn:hover { background: #374151; color: #fff; transform: translateY(-1px); }

/* ── Toast ── */
.invite-toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #6ee7b7;
    padding: 12px 24px;
    border-radius: 100px;
    font-size: .86rem;
    font-weight: 600;
    box-shadow: 0 8px 32px rgba(0,0,0,.2);
    white-space: nowrap;
    animation: slideIn .3s ease;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-50%) translateY(-10px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ── Footer ── */
.inv-footer {
    text-align: center;
    padding: 28px 24px;
    color: #9ca3af;
    font-size: .78rem;
    border-top: 1px solid var(--border);
    background: var(--surface);
}

/* ── Tab bar ── */
.inv-tab-bar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

.inv-tab-bar-inner {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    gap: 2px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.inv-tab-bar-inner::-webkit-scrollbar { display: none; }

.inv-tab-btn {
    padding: 14px 20px;
    font-size: .9rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    color: var(--muted);
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    transition: color .15s, border-color .15s;
    display: flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
    margin-bottom: -1px;
}

.inv-tab-btn:hover { color: var(--primary); }

.inv-tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

/* ── Tab panels ── */
.inv-tab-panel { display: none; }
.inv-tab-panel.active { display: block; }

/* ── Wish compose box ── */
.wish-compose {
    background: linear-gradient(135deg, #fdf4ff, #fce7f3);
    border: 1.5px solid #f0abfc;
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 8px;
}

.wish-compose-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wish-compose-fields {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wish-compose .inv-field {
    background: rgba(255,255,255,.8);
    border-color: #f0abfc;
    margin-bottom: 0;
}

.wish-compose .inv-field:focus {
    border-color: #d946ef;
    box-shadow: 0 0 0 3px rgba(217,70,239,.12);
}

/* ── Floating RSVP button (mobile) ── */
.inv-fab {
    display: none;
    position: fixed;
    bottom: 24px;
    right: 20px;
    z-index: 100;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    border: none;
    border-radius: 100px;
    padding: 14px 22px;
    font-size: .9rem;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    box-shadow: 0 6px 24px rgba(124,58,237,.4);
    cursor: pointer;
    text-decoration: none;
    align-items: center;
    gap: 8px;
    animation: fabIn .4s ease .6s both;
}

@keyframes fabIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Responsive ── */
@media (max-width: 640px) {
    .inv-hero {
        min-height: 52vh;
        padding: 36px 18px 32px;
    }

    .inv-body { padding: 0 16px 100px; }

    .rsvp-grid { grid-template-columns: 1fr; }

    .rsvp-card { padding: 22px 18px; }

    .cd { gap: 8px; }

    .cd-box { padding: 16px 10px; }

    .cd-n { font-size: 2rem; }

    .rsvp-status-group { grid-template-columns: repeat(3, 1fr); gap: 8px; }

    .rsvp-status-label { padding: 12px 6px; }

    .rsvp-status-emoji { font-size: 1.3rem; }

    .rsvp-status-text { font-size: .7rem; }

    .inv-fab { display: inline-flex; }

    .inv-reg-grid { grid-template-columns: 1fr 1fr; }

    .wish-grid { grid-template-columns: 1fr; }

    .inv-photo-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
}

@media (max-width: 400px) {
    .inv-meta span { font-size: .78rem; padding: 4px 10px; }
    .rsvp-status-group { grid-template-columns: 1fr; }
}
