/* ═══════════════════════════════════════════════════════════
   JollyPics Upload Page — Mobile App Experience CSS
   ═══════════════════════════════════════════════════════════ */

/* ─── Reset & Base ──────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --accent: #e86c6c;
}

html {
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
    overflow-x: hidden;
}

/* While a batch is uploading, disable the browser's pull-to-refresh gesture so a
   stray downward swipe can't reload the page and kill an in-flight upload. Normal
   pull-to-refresh stays available the rest of the time. */
html.uploading,
html.uploading body {
    overscroll-behavior-y: contain;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #fdf6f5;
    color: #3d3336;
    min-height: 100vh;
    min-height: 100dvh;
    line-height: 1.6;
    overflow-x: hidden;
    padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--accent, #e86c6c);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: #d45a5a;
}

h1,
h2,
h3,
h4 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.hidden {
    display: none !important;
}

/* ─── Top Header Bar ────────────────────────────────────── */
.app-header {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 0.65rem 0;
    background: linear-gradient(135deg, var(--accent, #e86c6c), color-mix(in srgb, var(--accent, #e86c6c) 80%, white));
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(232, 108, 108, 0.15);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.12);
}

.app-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 700px;
    margin: 0 auto;
    padding: 0 1rem;
}

.app-brand {
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 800;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.app-brand img {
    height: 28px;
    width: 28px;
    border-radius: 7px;
}

.app-header-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.13);
    color: rgba(255, 255, 255, 0.88);
    padding: 0.28rem 0.75rem;
    border-radius: 100px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* ─── Language Switcher ─────────────────────────────────── */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.lang-option {
    border: none;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 8px;
    transition: all 0.2s;
    line-height: 1;
}

.lang-option:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.lang-option.active {
    background: rgba(232, 108, 108, 0.4);
    box-shadow: 0 0 0 2px rgba(232, 108, 108, 0.5);
}

/* ─── Photo Strip (desktop only) ────────────────────────── */
.photo-strip {
    display: none;
}

/* ─── Desktop Tabs (hidden on mobile) ───────────────────── */
.desktop-tabs {
    display: none;
}

/* ─── App Content Area ──────────────────────────────────── */
.app-content {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 0.75rem;
    min-height: calc(100vh - 52px - 72px);
    min-height: calc(100dvh - 52px - 72px);
}

/* ─── Event Hero ────────────────────────────────────────── */
.event-hero {
    text-align: center;
    padding: 1.25rem 0.5rem 0.75rem;
}

.event-hero-emoji {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.25rem;
}

.event-hero-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 600;
    font-size: clamp(1.9rem, 7vw, 2.5rem);
    line-height: 1.08;
    letter-spacing: -0.01em;
    color: var(--accent, #e86c6c);
    margin-bottom: 0.3rem;
}

.event-hero-subtitle {
    color: #7a6b6e;
    font-size: 0.85rem;
    line-height: 1.4;
}

/* ─── Tab Panels ────────────────────────────────────────── */
.tab-panel {
    animation: tabFadeIn 0.25s ease;
}

@keyframes tabFadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

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

/* ═══ BOTTOM NAVIGATION BAR ═══════════════════════════════ */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 200;
    display: flex;
    align-items: stretch;
    justify-content: space-around;
    height: calc(64px + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: #ffffff;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.06);
}

.bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    border: none;
    background: none;
    cursor: pointer;
    color: #aa9d9f;
    transition: all 0.2s ease;
    position: relative;
    font-family: inherit;
    -webkit-tap-highlight-color: transparent;
    padding: 6px 0;
}

.bottom-nav-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 32px;
    height: 3px;
    border-radius: 0 0 4px 4px;
    background: var(--accent, #e86c6c);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.bottom-nav-item.active::before {
    transform: translateX(-50%) scaleX(1);
}

.bottom-nav-item.active {
    color: var(--accent, #e86c6c);
}

.bottom-nav-icon {
    font-size: 24px;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    line-height: 1;
}

.bottom-nav-item.active .bottom-nav-icon {
    transform: scale(1.1);
}

.bottom-nav-label {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1;
}

.bottom-nav-badge {
    position: absolute;
    top: 4px;
    right: calc(50% - 18px);
    min-width: 16px;
    height: 16px;
    border-radius: 10px;
    background: #ef4444;
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

/* ─── Dropzone ──────────────────────────────────────────── */
.dropzone {
    border: 2px dashed #e8d0cb;
    border-radius: 20px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fff;
    margin-bottom: 1rem;
}

.dropzone:hover,
.dropzone.dragover {
    border-color: var(--accent, #e86c6c);
    background: #fef5f3;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(232, 108, 108, 0.1);
}

.dropzone-icon-wrap {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fef0ee, #fef5f3);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    transition: transform 0.3s ease;
}

.dropzone:hover .dropzone-icon-wrap {
    transform: scale(1.08);
}

.dropzone-material-icon {
    font-size: 28px;
    color: var(--accent, #e86c6c);
}

.dropzone-text {
    color: #5c4d50;
    font-size: 0.92rem;
}

.dropzone-text strong {
    color: var(--accent, #e86c6c);
    font-weight: 600;
}

.dropzone-hint {
    color: #9a8d8f;
    font-size: 0.78rem;
    margin-top: 0.3rem;
}

/* ─── Buttons ───────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.8rem;
    border: none;
    border-radius: 100px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent, #e86c6c), color-mix(in srgb, var(--accent, #e86c6c) 70%, white));
    color: #fff;
    box-shadow: 0 4px 16px rgba(232, 108, 108, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(232, 108, 108, 0.4);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-primary:active {
    transform: scale(0.97);
}

.btn-outline {
    background: transparent;
    color: var(--accent, #e86c6c);
    border: 2px solid #f5d5d0;
}

.btn-outline:hover {
    background: #fef0ee;
    border-color: #e8afa8;
}

.btn-ghost {
    background: transparent;
    color: #7a6b6e;
    padding: 0.5rem 1rem;
    font-size: 0.88rem;
}

.btn-ghost:hover {
    color: #e86c6c;
    background: #fef0ee;
    border-radius: 100px;
}

.btn-lg {
    padding: 1rem 2.2rem;
    font-size: 1rem;
}

.btn-full {
    width: 100%;
}

/* ─── File Count Badge ──────────────────────────────────── */
.file-count-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fef0ee;
    color: var(--accent, #e86c6c);
    padding: 0.4rem 0.9rem;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* ─── File Previews Grid ────────────────────────────────── */
.file-previews {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(75px, 1fr));
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.file-preview {
    position: relative;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid #f5ece9;
    animation: fadeInUp 0.3s ease forwards;
}

.file-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.file-preview-video {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #fef0ee, #fef5f3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: var(--accent, #e86c6c);
    gap: 4px;
}

.file-preview-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.file-preview-remove:hover {
    background: #ef4444;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

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

/* ─── Guest Info Fields ─────────────────────────────────── */
.guest-fields {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

/* ─── Progress ──────────────────────────────────────────── */
.progress-section {
    text-align: left;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.88rem;
    color: #5c4d50;
    font-weight: 500;
}

.progress-bar {
    width: 100%;
    height: 10px;
    background: #f5ece9;
    border-radius: 100px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, var(--accent, #e86c6c), color-mix(in srgb, var(--accent, #e86c6c) 70%, white));
    border-radius: 100px;
    transition: width 0.3s ease;
    width: 0%;
}

.file-status-list {
    margin-top: 1rem;
    max-height: 200px;
    overflow-y: auto;
}

.upload-file-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.65rem;
    border-radius: 10px;
    font-size: 0.83rem;
    margin-bottom: 2px;
    transition: all 0.25s ease;
    background: transparent;
}

.upload-file-item.is-active {
    background: #fef5f3;
}

.upload-file-item.is-done {
    opacity: 0.6;
}

.upload-file-item.is-failed {
    opacity: 0.7;
    background: #fef2f2;
}

.upload-file-name {
    color: #5c4d50;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
}

.upload-file-size {
    color: #aa9d9f;
    font-size: 0.73rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.upload-file-status {
    font-weight: 600;
    font-size: 0.82rem;
    min-width: 32px;
    text-align: right;
    flex-shrink: 0;
}

.upload-file-status.success {
    color: #34d399;
    font-size: 1rem;
}

.upload-file-status.failed {
    color: #ef4444;
    font-size: 0.78rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.upload-error-msg {
    font-weight: 500;
    font-size: 0.7rem;
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.upload-retry-btn {
    background: #ef4444;
    color: #fff;
    border: none;
    border-radius: 100px;
    padding: 6px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
    transition: background 0.2s;
    min-height: 32px;
    min-width: 70px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.upload-retry-btn:hover {
    background: #dc2626;
}

.upload-file-status.uploading {
    color: var(--accent, #e86c6c);
}

.upload-pct {
    font-variant-numeric: tabular-nums;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--accent, #e86c6c);
}

.upload-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid #f5ece9;
    border-top-color: var(--accent, #e86c6c);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    vertical-align: middle;
}

/* ─── Success ───────────────────────────────────────────── */
.success-box {
    text-align: center;
    padding: 1.5rem 0;
}

.success-emoji {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
    animation: successPulse 0.6s ease;
}

@keyframes successPulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.15);
    }

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

.success-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 600;
    color: #34d399;
    font-size: 1.65rem;
    margin-bottom: 0.3rem;
}

.success-subtitle {
    color: #7a6b6e;
    font-size: 0.92rem;
    margin-bottom: 1.5rem;
}

.success-actions {
    display: flex;
    gap: 0.75rem;
    flex-direction: column;
}

/* ─── Guest → host conversion CTA ───────────────────────── */
.guest-funnel-cta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding: 0.9rem 1rem;
    border-radius: 14px;
    text-align: left;
    text-decoration: none;
    background: color-mix(in srgb, var(--accent, #e86c6c) 8%, #fff);
    border: 1px solid color-mix(in srgb, var(--accent, #e86c6c) 22%, #fff);
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.guest-funnel-cta:hover {
    background: color-mix(in srgb, var(--accent, #e86c6c) 14%, #fff);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px color-mix(in srgb, var(--accent, #e86c6c) 18%, transparent);
}

.guest-funnel-emoji {
    font-size: 1.6rem;
    line-height: 1;
    flex-shrink: 0;
}

.guest-funnel-copy {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    flex: 1;
    min-width: 0;
}

.guest-funnel-copy strong {
    font-size: 0.95rem;
    color: #2e2326;
    font-weight: 700;
}

.guest-funnel-copy span {
    font-size: 0.8rem;
    color: #7a6b6e;
    line-height: 1.35;
}

.guest-funnel-arrow {
    font-size: 1.2rem;
    color: var(--accent, #e86c6c);
    flex-shrink: 0;
}

/* ─── Gallery Section ───────────────────────────────────── */
.gallery-section {
    padding-top: 0.5rem;
}

.gallery-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    position: sticky;
    top: 52px;
    background: #fdf6f5;
    padding: 0.5rem 0;
    z-index: 10;
}

.gallery-header h2 {
    font-size: 1.15rem;
    color: #2b2325;
}

.gallery-count {
    background: #fef0ee;
    color: var(--accent, #e86c6c);
    padding: 0.25rem 0.7rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.gallery-item {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: #f5ece9;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    border-radius: 16px;
    box-shadow: 0 6px 16px rgba(74, 40, 36, 0.1);
}

.gallery-item:active {
    transform: scale(0.98);
}

.gallery-item:hover {
    opacity: 0.92;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-item-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    padding-left: 3px;
    color: var(--accent, #e86c6c);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.gallery-video-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2a2025 0%, #3d2f35 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.gallery-video-play {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    padding-left: 3px;
    color: var(--accent, #e86c6c);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.gallery-video-label {
    font-size: 0.55rem;
    color: rgba(255, 255, 255, 0.55);
    font-weight: 500;
    max-width: 90%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: center;
    letter-spacing: 0.02em;
}

/* Thumbnail overlay — shown on top of placeholder when Drive provides a real thumbnail */
.gallery-video-thumb {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

/* Keep the play button overlay above the thumbnail */
.gallery-item .gallery-item-video {
    z-index: 2;
}

.gallery-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: #9a8d8f;
    font-size: 0.92rem;
}

.gallery-empty-icon {
    font-size: 2.5rem;
    opacity: 0.5;
    margin-bottom: 0.5rem;
}

.gallery-loading {
    text-align: center;
    padding: 3rem;
    color: #9a8d8f;
}

.spinner {
    width: 28px;
    height: 28px;
    border: 3px solid #f5ece9;
    border-top: 3px solid var(--accent, #e86c6c);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 0.5rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ─── Lightbox ──────────────────────────────────────────── */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.lightbox-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.94);
}

.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 1010;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1010;
    transition: all 0.2s;
    backdrop-filter: blur(8px);
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: 0.75rem;
}

.lightbox-next {
    right: 0.75rem;
}

.lightbox-content {
    position: relative;
    z-index: 1005;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 3.5rem 0.5rem 4.5rem;
    touch-action: pan-y;
    user-select: none;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 4px;
    object-fit: contain;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.lightbox-content img.loading {
    opacity: 0;
}

/* Spinner shown while the next image loads, so the previously viewed
   photo is never left lingering in the background. */
.lightbox-spinner {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 38px;
    height: 38px;
    margin: -19px 0 0 -19px;
    border: 3px solid rgba(255, 255, 255, 0.25);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    z-index: 1006;
    pointer-events: none;
}

.lightbox-content.is-loading .lightbox-spinner {
    display: block;
}

.lightbox-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
    z-index: 1010;
}

.lightbox-counter {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.82rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.lightbox-caption {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.85rem;
    max-width: 80%;
    text-align: center;
    word-break: break-word;
}

.lightbox-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.45rem 1.1rem;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
    border: 1px solid rgba(255, 255, 255, 0.18);
    white-space: nowrap;
}

.lightbox-download-btn:hover {
    background: rgba(255, 255, 255, 0.28);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    color: #fff;
}

/* ─── Video Lightbox ──────────────────────────────────── */
.video-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-lightbox.hidden {
    display: none !important;
}

.video-lightbox-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.video-lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10001;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
    font-size: 1.8rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    -webkit-tap-highlight-color: transparent;
}

.video-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.video-lightbox-content {
    position: relative;
    z-index: 10000;
    width: 90vw;
    max-width: 900px;
    min-height: 50vh;
    max-height: 85vh;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
    animation: videoSlideUp 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

.video-lightbox-content iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: #000;
}

/* Drive iframe fallback (HEVC and other formats desktop browsers can't decode).
   The container is normally auto-height so it can shrink-wrap the native <video>,
   but a percentage height on a child cannot resolve against an auto-height parent,
   so the iframe collapsed to the CSS default 150px inside a 50vh black box.
   Only the fallback path gets a definite height, leaving native playback as-is. */
.video-lightbox-content.iframe-mode {
    height: 80vh;
    min-height: 0;
}

.video-lightbox-content.iframe-mode iframe {
    align-self: stretch;
}

#video-lightbox-native {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    background: #000;
}

.video-processing-notice {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background: rgba(43, 35, 37, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.8rem;
    font-weight: 500;
    border-radius: 16px 16px 0 0;
    animation: fadeIn 0.3s ease;
}

@keyframes videoSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }

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

@media (max-width: 768px) {
    .video-lightbox-content {
        width: 100vw;
        height: 100vh;
        max-width: none;
        aspect-ratio: auto;
        border-radius: 0;
        box-shadow: none;
        display: flex;
        flex-direction: column;
        position: relative;
    }

    .video-lightbox-content iframe {
        display: none;
    }

    #video-lightbox-native {
        width: 100%;
        height: 100%;
        object-fit: contain;
        background: #000;
    }

    .video-lightbox-close {
        top: env(safe-area-inset-top, 0.5rem);
        right: 0.5rem;
        z-index: 10002;
    }

    .video-processing-notice {
        border-radius: 0;
        font-size: 0.75rem;
        padding: 0.5rem 0.75rem;
    }

    .video-lightbox .lightbox-bottom {
        position: fixed;
        bottom: env(safe-area-inset-bottom, 0);
        left: 0;
        right: 0;
        z-index: 10002;
        padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom, 0));
        background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    }
}

/* ─── Mobile Video Player Overlays ──────────────────────── */

/* Loading overlay — shown while video buffers */
.video-loading-overlay {
    position: absolute;
    inset: 0;
    z-index: 10001;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background: rgba(0, 0, 0, 0.6);
    pointer-events: none;
}

.video-loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(255, 255, 255, 0.15);
    border-top: 4px solid #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.video-loading-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.88rem;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
}

/* Play button overlay — shown when video is ready to play */
.video-play-overlay {
    position: absolute;
    inset: 0;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.35);
    border: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.video-play-icon {
    width: 72px;
    height: 72px;
    background: rgba(232, 108, 108, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #fff;
    padding-left: 4px;
    box-shadow: 0 4px 24px rgba(232, 108, 108, 0.4), 0 0 0 0 rgba(232, 108, 108, 0.3);
    animation: playPulse 2s ease infinite;
    transition: transform 0.15s ease;
}

.video-play-overlay:active .video-play-icon {
    transform: scale(0.92);
}

@keyframes playPulse {

    0%,
    100% {
        box-shadow: 0 4px 24px rgba(232, 108, 108, 0.4), 0 0 0 0 rgba(232, 108, 108, 0.3);
    }

    50% {
        box-shadow: 0 4px 24px rgba(232, 108, 108, 0.4), 0 0 0 16px rgba(232, 108, 108, 0);
    }
}

/* Fullscreen button — bottom-left corner */
.video-fullscreen-btn {
    position: absolute;
    bottom: 80px;
    left: 1rem;
    z-index: 10001;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.2s;
}

.video-fullscreen-btn:active {
    background: rgba(255, 255, 255, 0.3);
}

/* ─── Confetti ──────────────────────────────────────────── */
.confetti {
    position: fixed;
    top: -10px;
    z-index: 9999;
    pointer-events: none;
    animation: confettiFall 3s ease-out forwards;
}

@keyframes confettiFall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }

    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* ─── Footer ────────────────────────────────────────────── */
.footer {
    text-align: center;
    padding: 1.5rem;
    color: #9a8d8f;
    font-size: 0.78rem;
    margin-bottom: 0.5rem;
}

.footer a {
    color: var(--accent, #e86c6c);
    font-weight: 600;
}

/* ─── Password Gate ─────────────────────────────────────── */
.password-gate {
    position: fixed;
    inset: 0;
    z-index: 500;
    background: rgba(248, 247, 252, 0.97);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.password-card {
    background: #fff;
    border: 2px solid #f5ece9;
    border-radius: 24px;
    padding: 2.5rem 2rem;
    max-width: 400px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

.password-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.password-card h2 {
    font-size: 1.3rem;
    color: #2b2325;
    margin-bottom: 0.5rem;
}

.password-card p {
    color: #7a6b6e;
    font-size: 0.92rem;
    margin-bottom: 1.5rem;
}

.password-card .input {
    margin-bottom: 0.75rem;
}

.password-error {
    color: #ef4444;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

/* ─── Welcome Banner ────────────────────────────────────── */
.welcome-banner {
    max-width: 700px;
    margin: 0.75rem auto 0;
    padding: 0.65rem 1rem;
    background: linear-gradient(135deg, #fef0ee, #fef5f3);
    border-radius: 12px;
    text-align: center;
    color: var(--accent, #e86c6c);
    font-weight: 500;
    font-size: 0.88rem;
}

/* ─── Guestbook ─────────────────────────────────────────── */
.guestbook-section {
    padding: 0.5rem 0 1rem;
}

.guestbook-section h2 {
    font-size: 1.15rem;
    color: #2b2325;
    margin-bottom: 0.25rem;
}

.guestbook-subtitle {
    color: #7a6b6e;
    font-size: 0.88rem;
    margin-bottom: 1rem;
}

#guestbook-form .input {
    margin-bottom: 0.5rem;
}

.guestbook-textarea {
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}

#guestbook-form .btn {
    margin-top: 0.25rem;
}

.guestbook-messages {
    margin-top: 1.5rem;
}

.guestbook-message {
    background: #fff;
    border: 1px solid #f5ece9;
    border-radius: 14px;
    padding: 0.85rem 1rem;
    margin-bottom: 0.6rem;
    animation: fadeInUp 0.3s ease;
}

.guestbook-message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.3rem;
}

.guestbook-name {
    font-weight: 600;
    color: var(--accent, #e86c6c);
    font-size: 0.85rem;
}

.guestbook-date {
    color: #9a8d8f;
    font-size: 0.75rem;
}

.guestbook-text {
    color: #5c4d50;
    font-size: 0.88rem;
    line-height: 1.5;
}

.guestbook-empty {
    text-align: center;
    padding: 2rem;
    color: #9a8d8f;
    font-size: 0.92rem;
}

.guestbook-loading {
    text-align: center;
    padding: 1.5rem;
}

/* ─── Input ─────────────────────────────────────────────── */
.input {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 2px solid #f5d5d0;
    border-radius: 14px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    background: #fff;
    color: #3d3336;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.input:focus {
    border-color: var(--accent, #e86c6c);
    box-shadow: 0 0 0 3px rgba(232, 108, 108, 0.1);
}

.input::placeholder {
    color: #c4b8ba;
}


/* ═══════════════════════════════════════════════════════════
   DESKTOP STYLES (769px+)
   ═══════════════════════════════════════════════════════════ */
@media (min-width: 769px) {

    body {
        background: #fffbfa;
        padding-bottom: 0;
    }

    /* Show photo strip on desktop */
    .photo-strip {
        display: flex;
        justify-content: center;
        gap: 0.75rem;
        margin: 2rem auto 1.5rem;
        max-width: 600px;
        padding: 0 1rem;
    }

    .photo-strip img {
        width: 30%;
        height: 120px;
        object-fit: cover;
        border-radius: 14px;
        box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
        transition: transform 0.3s ease;
    }

    .photo-strip img:hover {
        transform: translateY(-4px) scale(1.02);
    }

    .photo-strip img:nth-child(1) {
        transform: rotate(-2deg);
    }

    .photo-strip img:nth-child(2) {
        transform: translateY(-8px);
    }

    .photo-strip img:nth-child(3) {
        transform: rotate(2deg);
    }

    .photo-strip img:nth-child(1):hover {
        transform: rotate(-2deg) translateY(-4px) scale(1.02);
    }

    .photo-strip img:nth-child(3):hover {
        transform: rotate(2deg) translateY(-4px) scale(1.02);
    }

    /* Desktop content gets card treatment */
    .app-content {
        max-width: 640px;
        padding: 0 1.5rem 3rem;
        min-height: auto;
    }

    /* Wider header */
    .app-header-inner {
        max-width: 700px;
        padding: 0 1.5rem;
    }

    .app-header {
        padding: 0.85rem 0;
    }

    .app-brand {
        font-size: 1.3rem;
    }

    .app-brand img {
        height: 32px;
        width: 32px;
    }

    /* Hide bottom nav on desktop, use desktop tabs */
    .bottom-nav {
        display: none;
    }

    /* Desktop tabs shown as inline buttons */
    .desktop-tabs {
        display: flex;
        gap: 0;
        margin-bottom: 1.5rem;
        border-bottom: 2px solid #f5ece9;
    }

    .desktop-tab {
        flex: 1;
        padding: 0.85rem 1rem;
        background: none;
        border: none;
        border-bottom: 3px solid transparent;
        margin-bottom: -2px;
        font-family: 'Inter', sans-serif;
        font-size: 0.92rem;
        font-weight: 600;
        color: #9a8d8f;
        cursor: pointer;
        transition: all 0.2s ease;
        white-space: nowrap;
    }

    .desktop-tab:hover {
        color: var(--accent, #e86c6c);
        background: #fef5f3;
    }

    .desktop-tab.active {
        color: var(--accent, #e86c6c);
        border-bottom-color: var(--accent, #e86c6c);
    }

    /* Gallery gets wider items on desktop */
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 0.6rem;
    }

    .gallery-item {
        border-radius: 14px;
        border: 2px solid transparent;
        transition: all 0.3s ease;
    }

    .gallery-item:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 30px rgba(232, 108, 108, 0.12);
        border-color: var(--accent, #e86c6c);
    }

    .gallery-item:hover img {
        transform: scale(1.05);
    }

    .gallery-item img {
        transition: transform 0.3s ease;
    }

    .gallery-header {
        position: static;
        background: none;
    }

    .guest-fields {
        flex-direction: row;
    }

    .guest-fields .input {
        flex: 1;
    }

    /* Dropzone bigger on desktop */
    .dropzone {
        padding: 3rem 2rem;
    }

    .dropzone-icon-wrap {
        width: 80px;
        height: 80px;
    }

    .dropzone-material-icon {
        font-size: 36px;
    }

    /* Lightbox adjustments */
    .lightbox-content {
        padding: 4rem 4rem 5rem;
    }

    .lightbox-content img {
        border-radius: 8px;
    }

    .lightbox-nav {
        width: 48px;
        height: 48px;
        font-size: 1.3rem;
    }

    .lightbox-prev {
        left: 1rem;
    }

    .lightbox-next {
        right: 1rem;
    }

    .event-hero {
        padding: 1.5rem 0.5rem 1rem;
    }

    .event-hero-emoji {
        font-size: 2.8rem;
    }

    .welcome-banner {
        margin: 0 auto 1rem;
    }
}

/* ─── Small mobile tweaks ───────────────────────────────── */
@media (max-width: 360px) {
    .app-header-badge {
        display: none;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
}

/* ─── Custom Hero Image ─────────────────────────────────── */
.custom-hero-image {
    display: block;
    width: calc(100% - 2rem);
    max-width: 480px;
    aspect-ratio: 12 / 5; /* fallback; JS sets the host's chosen ratio inline */
    object-fit: cover;
    border-radius: 16px;
    margin: 0.75rem auto 0;
    animation: fadeInUp 0.4s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.custom-hero-image.hidden {
    display: none !important;
}

/* ─── Slow Connection Tip ────────────────────────────── */
.slow-conn-banner {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    padding: 15px 15px 15px 16px;
    margin: 0 0 18px 0;
    background: #fbe0db;
    border: 1px solid rgba(225, 93, 84, 0.18);
    border-radius: 18px;
    font-size: 0.83rem;
    color: #8a6e69;
    font-weight: 400;
    line-height: 1.5;
    animation: slideDown 0.3s ease;
}

.slow-conn-banner > span:not(.slow-conn-icon) {
    flex: 1;
    min-width: 0;
}

.slow-conn-banner.hidden {
    display: none !important;
}

/* iOS-only file-preparation notice (calm, informational) */
/* ─── iOS one-time popup overlay ─── */
.ios-prepare-popup {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(30, 27, 46, 0.45);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    animation: iosPopupFadeIn 0.25s ease-out;
}

.ios-prepare-popup.hidden {
    display: none;
}

@keyframes iosPopupFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.ios-popup-content {
    background: #fff;
    border-radius: 20px;
    padding: 2rem 1.5rem;
    max-width: 340px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    animation: iosPopupSlideUp 0.3s ease-out;
}

@keyframes iosPopupSlideUp {
    from { opacity: 0; transform: translateY(30px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.ios-popup-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.ios-popup-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e1b2e;
    margin-bottom: 0.6rem;
}

.ios-popup-text {
    font-size: 0.88rem;
    line-height: 1.6;
    color: #6a5a5d;
    margin-bottom: 1.25rem;
}

.ios-popup-btn {
    display: inline-block;
    padding: 0.65rem 2.5rem;
    border: none;
    border-radius: 12px;
    background: var(--accent, #7c5df5);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
}

.ios-popup-btn:active {
    transform: scale(0.96);
}

.ios-popup-btn:hover {
    box-shadow: 0 4px 16px rgba(124, 93, 245, 0.3);
}

/* In-app browser guard: copy-link row */
.inapp-link-row {
    display: flex;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.inapp-link-input {
    flex: 1;
    min-width: 0;
    padding: 0.6rem 0.7rem;
    border: 1px solid #e8e0ee;
    border-radius: 10px;
    font-size: 0.8rem;
    color: #6a5a5d;
    background: #f8f7fc;
}

.inapp-copy-btn {
    flex-shrink: 0;
    padding: 0.6rem 0.9rem;
    border: none;
    border-radius: 10px;
    background: var(--accent, #7c5df5);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s;
}

.inapp-copy-btn:active {
    transform: scale(0.96);
}

.slow-conn-icon {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: #fff;
    color: #e15d54;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 2px 6px rgba(225, 93, 84, 0.12);
}

.slow-conn-close {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border: none;
    background: rgba(225, 93, 84, 0.1);
    border-radius: 8px;
    color: #c44a41;
    cursor: pointer;
    font-size: 0.95rem;
    line-height: 1;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slow-conn-close:hover {
    background: rgba(225, 93, 84, 0.18);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

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

/* ─── Upload Limit Reached Banner ────────────────────── */
.upload-limit-banner {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    padding: 15px 16px;
    margin: 0 0 18px 0;
    background: #fbe0db;
    border: 1px solid rgba(225, 93, 84, 0.18);
    border-radius: 18px;
    font-size: 0.83rem;
    color: #8a6e69;
    font-weight: 400;
    line-height: 1.5;
    animation: slideDown 0.3s ease;
}

.upload-limit-banner.hidden {
    display: none !important;
}

.upload-limit-icon {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: #fff;
    color: #e15d54;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 2px 6px rgba(225, 93, 84, 0.12);
}

/* ═══════════════════════════════════════════════════════════
   PHOTOBOOTH
   ═══════════════════════════════════════════════════════════ */

.booth-section {
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.booth-camera-container {
    position: relative;
    width: 100%;
    max-width: 400px;
    aspect-ratio: 3 / 4;
    border-radius: 16px;
    overflow: hidden;
    background: #111;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.booth-camera-container video {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transform: scaleX(-1); /* mirror for selfie */
}

/* All frame decorative elements hidden by default */
.booth-frame-overlay,
.booth-corner, .booth-vine, .booth-floral,
.booth-film-line, .booth-glass-corner,
.booth-polaroid-border, .booth-polaroid-text,
.booth-event-title {
    position: absolute;
    pointer-events: none;
    z-index: 2;
    display: none;
}
.booth-frame-overlay { inset: 0; transition: opacity 0.4s ease; }

/* ── GOLD FRAME ─────────────────────── */
.booth-frame-gold .booth-frame-overlay {
    display: block;
    border: 6px solid transparent;
    border-image: linear-gradient(135deg, #c9a634 0%, #f5d76e 25%, #c9a634 50%, #f5d76e 75%, #c9a634 100%) 1;
}
.booth-frame-gold .booth-frame-overlay::before {
    content: ''; position: absolute; inset: 8px;
    border: 1.5px solid rgba(201,166,52,0.5);
}
.booth-frame-gold .booth-frame-overlay::after {
    content: ''; position: absolute; inset: 16px;
    border: 0.5px solid rgba(245,215,110,0.25);
}
.booth-frame-gold .booth-corner { display: block; width: 25%; height: 25%; z-index: 3; }
.booth-frame-gold .booth-corner-tl { top: 3px; left: 3px; }
.booth-frame-gold .booth-corner-tr { top: 3px; right: 3px; transform: scaleX(-1); }
.booth-frame-gold .booth-corner-bl { bottom: 3px; left: 3px; transform: scaleY(-1); }
.booth-frame-gold .booth-corner-br { bottom: 3px; right: 3px; transform: scale(-1,-1); }
.booth-frame-gold .booth-event-title {
    display: block; bottom: 0; left: 0; right: 0;
    text-align: center; z-index: 5;
    padding: 14px 12px 10px;
    font-family: 'Playfair Display', 'Inter', serif;
    font-size: 0.9rem; letter-spacing: 2px; text-transform: uppercase;
    color: #f5d76e;
    background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
}

/* ── ROMANTIC VINE FRAME ────────────── */
.booth-frame-romantic .booth-frame-overlay {
    display: block;
    border: 3px solid rgba(255,182,193,0.6);
    box-shadow: inset 0 0 30px rgba(255,182,193,0.1);
}
.booth-frame-romantic .booth-frame-overlay::before {
    content: ''; position: absolute; inset: 6px;
    border: 1px solid rgba(255,182,193,0.3); border-radius: 2px;
}
.booth-frame-romantic .booth-vine { display: block; width: 35%; height: 35%; z-index: 3; opacity: 0.85; }
.booth-frame-romantic .booth-vine-tl { top: 0; left: 0; }
.booth-frame-romantic .booth-vine-tr { top: 0; right: 0; transform: scaleX(-1); }
.booth-frame-romantic .booth-vine-bl { bottom: 0; left: 0; transform: scaleY(-1); }
.booth-frame-romantic .booth-vine-br { bottom: 0; right: 0; transform: scale(-1,-1); }

/* ── CINEMATIC FRAME ────────────────── */
.booth-frame-cinematic .booth-frame-overlay {
    display: block;
    background: linear-gradient(to bottom, rgba(0,0,0,0.55) 0%, transparent 18%, transparent 82%, rgba(0,0,0,0.55) 100%);
}
.booth-frame-cinematic .booth-frame-overlay::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.4) 0%, transparent 12%, transparent 88%, rgba(0,0,0,0.4) 100%);
}
.booth-frame-cinematic .booth-frame-overlay::after {
    content: ''; position: absolute; inset: 12px;
    border: 1px solid rgba(255,255,255,0.15);
}
.booth-frame-cinematic .booth-film-line {
    display: block; left: 0; right: 0; height: 1px;
    background: rgba(255,255,255,0.12); z-index: 3;
}
.booth-frame-cinematic .booth-film-line-top { top: 8%; }
.booth-frame-cinematic .booth-film-line-bottom { bottom: 8%; }
.booth-frame-cinematic .booth-event-title {
    display: block; bottom: 0; left: 0; right: 0;
    text-align: center; z-index: 5;
    padding: 14px 12px 10px;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem; letter-spacing: 3px; text-transform: uppercase;
    color: rgba(255,255,255,0.7);
    background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
}

/* ── FLORAL FRAME ───────────────────── */
.booth-frame-floral .booth-frame-overlay {
    display: block;
    border: 3px solid rgba(255,255,255,0.5);
}
.booth-frame-floral .booth-floral { display: block; z-index: 3; }
.booth-frame-floral .booth-floral-tl { top: -2px; left: -2px; width: 40%; height: 40%; }
.booth-frame-floral .booth-floral-br { bottom: -2px; right: -2px; width: 40%; height: 40%; transform: rotate(180deg); }

/* ── MINIMAL GLASS FRAME ────────────── */
.booth-frame-glass .booth-frame-overlay {
    display: block; background: transparent;
}
.booth-frame-glass .booth-frame-overlay::before {
    content: ''; position: absolute; inset: 16px;
    border: 1.5px solid rgba(255,255,255,0.35); border-radius: 2px;
}
.booth-frame-glass .booth-frame-overlay::after {
    content: ''; position: absolute; inset: 22px;
    border: 0.5px solid rgba(255,255,255,0.15); border-radius: 1px;
}
.booth-frame-glass .booth-glass-corner {
    display: block; width: 30px; height: 30px;
    border-color: rgba(255,255,255,0.7); border-style: solid; z-index: 3;
}
.booth-frame-glass .booth-glass-tl { top: 10px; left: 10px; border-width: 2px 0 0 2px; }
.booth-frame-glass .booth-glass-tr { top: 10px; right: 10px; border-width: 2px 2px 0 0; }
.booth-frame-glass .booth-glass-bl { bottom: 10px; left: 10px; border-width: 0 0 2px 2px; }
.booth-frame-glass .booth-glass-br { bottom: 10px; right: 10px; border-width: 0 2px 2px 0; }

/* ── POLAROID FRAME ─────────────────── */
.booth-frame-polaroid .booth-polaroid-border {
    display: block; position: absolute; inset: 0;
    border: 12px solid rgba(255,255,255,0.88);
    border-bottom-width: 60px; z-index: 3;
}
.booth-frame-polaroid .booth-polaroid-text {
    display: block; position: absolute;
    bottom: 8px; left: 0; right: 0; text-align: center;
    font-family: 'Great Vibes', cursive; font-size: 1.4rem;
    color: #5c4d50; z-index: 4; letter-spacing: 1px;
}


.booth-countdown {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-size: 6rem;
    font-weight: 900;
    color: white;
    text-shadow: 0 4px 24px rgba(0,0,0,0.5);
    z-index: 10;
    animation: countdownPulse 0.6s ease-out;
}

@keyframes countdownPulse {
    0% { transform: translate(-50%, -50%) scale(1.5); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

.booth-flash {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: white;
    opacity: 0;
    pointer-events: none;
    z-index: 11;
    transition: opacity 0.15s ease;
}

.booth-flash.active {
    opacity: 1;
    transition: opacity 0.05s ease;
}

/* Frame selector strip */
.booth-frame-selector {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 0.5rem 4px;
    width: 100%;
    max-width: 400px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
}

.booth-frame-selector::-webkit-scrollbar { display: none; }

.booth-frame-chip {
    flex-shrink: 0;
    padding: 7px 14px;
    border-radius: 50px;
    border: 1.5px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.05);
    color: #b09a9c;
    font-size: 0.78rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    user-select: none;
    -webkit-user-select: none;
}

.booth-frame-chip:hover {
    border-color: rgba(255,215,0,0.4);
    color: #fff;
}

.booth-frame-chip.active {
    background: linear-gradient(135deg, rgba(201,166,52,0.25), rgba(245,215,110,0.15));
    border-color: #c9a634;
    color: #f5d76e;
    font-weight: 600;
}



/* Filter selector strip */
.booth-filter-selector {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 0 4px 0.5rem;
    width: 100%;
    max-width: 400px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
}

.booth-filter-selector::-webkit-scrollbar { display: none; }

.booth-filter-chip {
    flex-shrink: 0;
    padding: 5px 12px;
    border-radius: 50px;
    border: 1.5px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.03);
    color: #9b8fa0;
    font-size: 0.72rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    user-select: none;
    -webkit-user-select: none;
}

.booth-filter-chip:hover {
    border-color: rgba(168,130,255,0.4);
    color: #fff;
}

.booth-filter-chip.active {
    background: linear-gradient(135deg, rgba(124,93,245,0.2), rgba(168,130,255,0.12));
    border-color: rgba(124,93,245,0.6);
    color: #c4b0ff;
    font-weight: 600;
}

/* Controls */
.booth-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    width: 100%;
    max-width: 400px;
    padding: 0.5rem 0;
}

.booth-capture-btn {
    width: 58px; height: 58px;
    border-radius: 50%;
    border: 3px solid var(--accent, #7c5df5);
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, background 0.2s;
    box-shadow: 0 4px 12px rgba(124,93,245,0.25);
}

.booth-capture-btn .material-icons-round {
    font-size: 1.6rem;
    color: var(--accent, #7c5df5);
}

.booth-capture-btn:active {
    transform: scale(0.9);
    background: var(--accent, #7c5df5);
}

.booth-capture-btn:active .material-icons-round {
    color: white;
}

.booth-flip-btn {
    width: 44px; height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(0,0,0,0.05);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.booth-flip-btn .material-icons-round {
    font-size: 1.5rem;
    color: #666;
}

.booth-flip-btn:hover {
    background: rgba(0,0,0,0.1);
}

.booth-spacer {
    width: 44px;
}

/* Review mode */
.booth-review {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: 100%;
    max-width: 400px;
}

.booth-review-frame-container {
    position: relative;
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}

.booth-review-frame-container canvas {
    width: 100%;
    display: block;
}

/* Show CSS frame elements inside the review container */
.booth-review-frame-container .booth-frame-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
    display: none;
}

/* Gold frame in review */
.booth-review-frame-container.booth-frame-gold .booth-frame-overlay {
    display: block;
    border: 6px solid transparent;
    border-image: linear-gradient(135deg, #c9a634 0%, #f5d76e 25%, #c9a634 50%, #f5d76e 75%, #c9a634 100%) 1;
}
.booth-review-frame-container.booth-frame-gold .booth-frame-overlay::before {
    content: ''; position: absolute; inset: 8px;
    border: 1.5px solid rgba(201,166,52,0.5);
}
.booth-review-frame-container.booth-frame-gold .booth-frame-overlay::after {
    content: ''; position: absolute; inset: 16px;
    border: 0.5px solid rgba(245,215,110,0.25);
}

/* Romantic frame in review */
.booth-review-frame-container.booth-frame-romantic .booth-frame-overlay {
    display: block;
    border: 3px solid rgba(255,182,193,0.6);
    box-shadow: inset 0 0 30px rgba(255,182,193,0.1);
}
.booth-review-frame-container.booth-frame-romantic .booth-frame-overlay::before {
    content: ''; position: absolute; inset: 6px;
    border: 1px solid rgba(255,182,193,0.3); border-radius: 2px;
}

/* Cinematic frame in review */
.booth-review-frame-container.booth-frame-cinematic .booth-frame-overlay {
    display: block;
    background: linear-gradient(to bottom, rgba(0,0,0,0.55) 0%, transparent 18%, transparent 82%, rgba(0,0,0,0.55) 100%);
}
.booth-review-frame-container.booth-frame-cinematic .booth-frame-overlay::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.4) 0%, transparent 12%, transparent 88%, rgba(0,0,0,0.4) 100%);
}
.booth-review-frame-container.booth-frame-cinematic .booth-frame-overlay::after {
    content: ''; position: absolute; inset: 12px;
    border: 1px solid rgba(255,255,255,0.15);
}

/* Floral frame in review */
.booth-review-frame-container.booth-frame-floral .booth-frame-overlay {
    display: block;
    border: 3px solid rgba(255,255,255,0.5);
}

/* Glass frame in review */
.booth-review-frame-container.booth-frame-glass .booth-frame-overlay {
    display: block; background: transparent;
}
.booth-review-frame-container.booth-frame-glass .booth-frame-overlay::before {
    content: ''; position: absolute; inset: 16px;
    border: 1.5px solid rgba(255,255,255,0.35); border-radius: 2px;
}
.booth-review-frame-container.booth-frame-glass .booth-frame-overlay::after {
    content: ''; position: absolute; inset: 22px;
    border: 0.5px solid rgba(255,255,255,0.15); border-radius: 1px;
}

/* Polaroid frame in review */
.booth-review-frame-container.booth-frame-polaroid .booth-frame-overlay {
    display: block;
    border: 12px solid rgba(255,255,255,0.88);
    border-bottom-width: 60px;
}

/* Event title in review for gold */
.booth-review-frame-container.booth-frame-gold .booth-event-title {
    display: block; position: absolute; bottom: 0; left: 0; right: 0;
    text-align: center; z-index: 5;
    padding: 14px 12px 10px;
    font-family: 'Playfair Display', 'Inter', serif;
    font-size: 0.9rem; letter-spacing: 2px; text-transform: uppercase;
    color: #f5d76e;
    background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
}

/* Event title in review for cinematic */
.booth-review-frame-container.booth-frame-cinematic .booth-event-title {
    display: block; position: absolute; bottom: 0; left: 0; right: 0;
    text-align: center; z-index: 5;
    padding: 14px 12px 10px;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem; letter-spacing: 3px; text-transform: uppercase;
    color: rgba(255,255,255,0.7);
    background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
}

/* Polaroid text in review */
.booth-review-frame-container.booth-frame-polaroid .booth-polaroid-text {
    display: block; position: absolute;
    bottom: 8px; left: 0; right: 0; text-align: center;
    font-family: 'Great Vibes', cursive; font-size: 1.4rem;
    color: #5c4d50; z-index: 4; letter-spacing: 1px;
}


.booth-review-actions {
    display: flex;
    gap: 1rem;
    width: 100%;
}

.booth-review-actions .btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Unavailable state */
.booth-unavailable {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 3rem 1rem;
    text-align: center;
    color: #999;
}

/* ═══════════════════════════════════════════════════════════
   AUDIO GUESTBOOK
   ═══════════════════════════════════════════════════════════ */

.audio-record-section {
    background: linear-gradient(135deg, #faf5ff, #f3eeff);
    border: 1px solid #e8dff5;
    border-radius: 16px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.audio-record-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #1e1b2e;
    margin-bottom: 1rem;
}

.audio-record-header .material-icons-round {
    color: var(--accent, #7c5df5);
    font-size: 1.3rem;
}

.audio-state.hidden { display: none; }

.audio-record-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.audio-record-btn .material-icons-round {
    color: var(--accent, #7c5df5);
}

/* Recording indicator */
.audio-recording-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #e53e3e;
    margin-bottom: 0.75rem;
}

.audio-recording-dot {
    width: 12px; height: 12px;
    border-radius: 50%;
    background: #e53e3e;
    animation: audioPulse 1s ease-in-out infinite;
}

@keyframes audioPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.8); }
}

.audio-timer-max {
    color: #999;
    font-weight: 400;
    font-size: 0.85rem;
}

/* Progress bar */
.audio-progress-bar {
    height: 4px;
    background: rgba(0,0,0,0.1);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.audio-progress-fill {
    height: 100%;
    background: var(--accent, #7c5df5);
    border-radius: 2px;
    width: 0%;
    transition: width 0.5s linear;
}

/* Audio player */
.audio-player-full {
    width: 100%;
    margin-bottom: 0.75rem;
    border-radius: 8px;
}

.audio-preview-actions {
    display: flex;
    gap: 0.75rem;
}

.audio-preview-actions .btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Equal-height action buttons (audio guestbook + photobooth review).
   Icons default to 24px and long labels (BG) wrapped inside the wide
   default .btn padding, so the primary button grew taller than the
   ghost button next to it on phones. */
.audio-preview-actions .btn,
.booth-review-actions .btn {
    padding: 0.8rem 0.75rem;
    font-size: clamp(0.8rem, 3.4vw, 0.92rem);
    white-space: nowrap;
    min-width: 0;
    min-height: 48px;
}

.audio-preview-actions .btn .material-icons-round,
.booth-review-actions .btn .material-icons-round {
    font-size: 1.25rem;
}

/* Audio message in guestbook list */
.guestbook-audio-player {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.guestbook-audio-player audio {
    width: 100%;
    height: 36px;
    border-radius: 8px;
}

.guestbook-audio-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: var(--accent, #7c5df5);
    font-weight: 600;
}

.guestbook-audio-badge .material-icons-round {
    font-size: 0.9rem;
}

/* ─── Voice Tab ──────────────────────────────────────────── */
.voice-hero-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(232,108,108,0.1), rgba(232,108,108,0.05));
    margin: 1rem auto 1.5rem;
}

.audio-ready-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
    border: 1px solid #bbf7d0;
    border-radius: 16px;
    margin-bottom: 1rem;
    text-align: center;
}

/* Pre-send playback preview player */
.audio-player-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    max-width: 320px;
    margin-top: 0.85rem;
}

.audio-play-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: var(--accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 0.15s, opacity 0.15s;
}

.audio-play-btn:active {
    transform: scale(0.92);
}

.audio-play-btn:disabled {
    opacity: 0.55;
    cursor: wait;
}

.audio-player-track {
    flex: 1;
    height: 6px;
    border-radius: 3px;
    background: rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.audio-player-fill {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 0%;
    background: var(--accent);
    border-radius: 3px;
    transition: width 0.1s linear;
}

.audio-player-time {
    font-size: 0.8rem;
    color: #9a8d8f;
    min-width: 34px;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

/* ─── Navigation by input type ──────────────────────────────
   Decide nav by how the guest points, not by screen width, so every touch
   device (phones AND iPads of any size) gets the thumb-reachable bottom bar,
   while mouse/desktop keeps the inline top tabs. Placed last so it overrides
   the width-based nav rules above. */
@media (pointer: coarse) {
    .bottom-nav {
        display: flex;
    }
    .desktop-tabs {
        display: none;
    }
    body {
        padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
    }
}

@media (pointer: fine) {
    .bottom-nav {
        display: none;
    }
    .desktop-tabs {
        display: flex;
    }
    body {
        padding-bottom: 0;
    }
}


/* ─── Disposable camera mode (Oct 2026) ─────────────────────
   Banner under the hero, shots-left counter, camera-full state,
   camera-only line, hidden-album panel, success-panel line. */
.dc-banner {
    margin: 0 0 1rem;
    padding: 0.85rem 1rem;
    border-radius: 16px;
    background: linear-gradient(135deg, #fef0ee, #fef5f3);
    border: 1px solid rgba(232, 108, 108, 0.16);
    color: #5a4a4d;
    text-align: left;
}

.dc-banner-title {
    display: block;
    font-weight: 700;
    color: var(--accent, #e86c6c);
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
}

.dc-banner-text {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.45;
}

.dc-banner-revealed {
    background: linear-gradient(135deg, #eefbf1, #f4fdf6);
    border-color: rgba(34, 197, 94, 0.2);
}

.dc-banner-revealed .dc-banner-title {
    color: #15803d;
}

.dc-full {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    padding: 15px 16px;
    margin: 0 0 18px;
    background: #fbe0db;
    border: 1px solid rgba(225, 93, 84, 0.18);
    border-radius: 18px;
    color: #8a6e69;
    font-size: 0.86rem;
    line-height: 1.5;
}

.dc-full-icon {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: #fff;
    color: var(--accent, #e86c6c);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.dc-full-copy strong {
    display: block;
    color: #5a4a4d;
    font-size: 0.95rem;
    margin-bottom: 0.15rem;
}

.dc-full-copy p {
    margin: 0;
}

.dc-line,
.dc-shots-left,
.dc-success-locked {
    margin: 0.6rem 0 0;
    text-align: center;
    font-size: 0.84rem;
    color: #8a7a7d;
}

.dc-shots-left {
    font-weight: 600;
    color: var(--accent, #e86c6c);
}

.dc-success-locked {
    margin: 0.25rem 0 0;
    padding: 0.7rem 1rem;
    border: 1px dashed rgba(138, 122, 125, 0.4);
    border-radius: 12px;
    color: #9a8d8f;
}

.dc-locked p strong {
    display: block;
    color: #5a4a4d;
    margin-bottom: 0.25rem;
}

.dc-disabled,
.booth-capture-btn:disabled,
.audio-record-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}

/* ── CUSTOM FRAME (the host's own transparent PNG) ─────────────
   The PNG is set as the overlay's background image from JS and stretched
   edge to edge; the capture is cropped to the same 3:4 so it maps 1:1. */
.booth-frame-custom .booth-frame-overlay,
.booth-review-frame-container.booth-frame-custom .booth-frame-overlay {
    display: block;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
}

/* Custom frame chips carry a small preview of the PNG (up to five per event),
   so guests can tell "Our frame 1" from "Our frame 2" at a glance. */
.booth-frame-chip.has-thumb {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 4px 12px 4px 5px;
}

.booth-frame-chip.has-thumb img {
    width: 27px;
    height: 36px;
    border-radius: 5px;
    background: rgba(128,128,128,0.28);
    pointer-events: none;
}

/* ── iOS zoom guard ───────────────────────────────────────────
   iOS Safari zooms the whole page when a focused field is under 16px and often
   stays zoomed after the keyboard closes: the page then pans sideways and taps
   land off target until a reload. On touch screens every field is 16px. */
@media (hover: none) and (pointer: coarse) {
    input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
    textarea,
    select,
    .input,
    .inapp-link-input {
        font-size: 16px !important;
    }
}

/* ─── Guest to host loop (Oct 2026) ─────────────────────── */
/* The card is one link; the button is a styled span inside it */
.guest-funnel-copy .guest-funnel-btn {
    display: inline-block;
    align-self: flex-start;
    margin-top: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 100px;
    background: var(--accent, #e86c6c);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
}

/* Album tab: after the photos, at the bottom of the grid */
.guest-funnel-album {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

/* Disposable camera reveal banner: one line under the revealed text */
.dc-host-line {
    margin-top: 0.4rem;
}

.dc-host-line a {
    color: #15803d;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Footer: "Powered by JollyPics. Host your own event." stays one line of text */
.footer a.footer-host-link {
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}
