/* Centralized project CSS.
   Project-specific rules live here; Bootstrap utilities are used in Razor where they can preserve behavior. */

/* Shared utilities replacing former one-off inline styles. */
.z-rotating-word {
    display: inline-block;
    transition: opacity 260ms ease, transform 260ms ease, color 260ms ease;
}

    .z-rotating-word.is-out {
        opacity: 0;
        transform: translateY(-10px);
    }

    .z-rotating-word.is-in {
        opacity: 0;
        transform: translateY(10px);
    }

.z-muted-note {
    color: var(--muted);
    font-size: 0.92rem;
}

.z-muted-strong {
    color: var(--muted);
    font-weight: 700;
}

.z-muted-copy {
    color: var(--muted);
}

.z-muted-copy-xs {
    color: var(--muted);
    font-size: 0.82rem;
}

.z-muted-copy-sm {
    color: var(--muted);
    font-size: 0.85rem;
}

.z-muted-copy-md {
    color: var(--muted);
    font-size: 0.9rem;
}

.z-modal-help {
    color: var(--muted);
    font-size: 0.88rem;
    margin: 0 0 1rem;
}

.z-panel-title {
    color: var(--ink);
    font-weight: 800;
}

.z-panel-title-sm {
    color: var(--ink);
    font-size: 0.95rem;
    font-weight: 800;
}

.z-section-title-sm {
    color: var(--ink);
    font-size: 1.05rem;
    font-weight: 800;
}

.z-link-muted-strong {
    color: var(--muted);
    font-weight: 700;
}

.z-link-accent-strong {
    color: var(--purple);
    font-weight: 800;
}

.z-clickable {
    cursor: pointer;
}

.z-arrow-icon-sm {
    font-size: 0.75rem;
}

.z-list-dot-purple {
    color: var(--purple);
    font-size: 0.5rem;
}

.album-title--compact {
    font-size: 1.75rem;
}

.mw-640 {
    max-width: 640px;
}

.invite-copy {
    color: #5a4c74;
    font-size: 1rem;
}

.invite-help-copy {
    color: #6c6683;
    font-size: 0.9rem;
}

/* Source: wwwroot/css/site.css */
html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* Custom QR workbench: the editor needs a fixed control/preview split that Bootstrap columns do not model cleanly. */
.qr-workbench {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 520px);
    gap: 1.5rem;
    align-items: start;
}

.qr-controls,
.qr-preview-panel {
    border: 1px solid #d7dde2;
    border-radius: 8px;
    padding: 1rem;
    background: #ffffff;
}

.qr-color-control {
    display: grid;
    gap: 0.4rem;
    font-weight: 600;
}

    .qr-color-control input {
        width: 100%;
        height: 2.75rem;
        padding: 0.2rem;
        border: 1px solid #c6ced6;
        border-radius: 8px;
    }

.qr-center-image {
    padding-top: 1rem;
    border-top: 1px solid #e5e9ee;
}

.qr-center-image-preview {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border: 1px solid #d7dde2;
    border-radius: 8px;
    background: #f7f9fb;
}

    .qr-center-image-preview img {
        width: 64px;
        height: 64px;
        object-fit: contain;
        border-radius: 8px;
        background: #ffffff;
    }

.qr-preview-panel {
    position: sticky;
    top: 1rem;
}

.qr-preview-surface {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 320px;
    border: 1px dashed #b8c2cc;
    border-radius: 8px;
    background: linear-gradient(45deg, #f4f6f8 25%, transparent 25%), linear-gradient(-45deg, #f4f6f8 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #f4f6f8 75%), linear-gradient(-45deg, transparent 75%, #f4f6f8 75%);
    background-position: 0 0, 0 8px, 8px -8px, -8px 0;
    background-size: 16px 16px;
    overflow: hidden;
}

    .qr-preview-surface img {
        display: block;
        width: min(100%, 512px);
        height: auto;
        aspect-ratio: 1;
    }

.qr-preview-status {
    position: absolute;
    bottom: 0.75rem;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.35rem 0.65rem;
    border-radius: 8px;
    color: #ffffff;
    background: rgba(13, 15, 23, 0.82);
    font-size: 0.875rem;
}

.qr-error {
    margin: 0.75rem 0 0;
    color: #b42318;
}

.event-share-card {
    border: 1px solid #e4e7ec;
    border-radius: 8px;
    padding: 1rem;
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.event-share-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.event-share-help {
    color: #8a94a3;
    font-size: 0.85rem;
    text-decoration: none;
}

    .event-share-help:hover {
        color: #344054;
        text-decoration: underline;
    }

.event-language-control {
    display: block;
    margin-bottom: 0.75rem;
    padding: 0.45rem 0.6rem;
    border-radius: 8px;
    background: #f4f5f7;
    color: #667085;
    font-size: 0.82rem;
}

    .event-language-control select {
        margin-top: 0.15rem;
        border: 0;
        padding: 0;
        background-color: transparent;
        box-shadow: none;
        color: #101828;
    }

        .event-language-control select:focus {
            box-shadow: none;
        }

.event-share-url-wrap {
    margin-bottom: 0.55rem;
}

.event-share-url {
    width: 100%;
    min-height: 2.25rem;
    border: 0;
    border-radius: 6px;
    padding: 0.35rem 0.55rem;
    background: #f4f5f7;
    color: #101828;
}

.event-share-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    margin-bottom: 0.55rem;
}

    .event-share-actions .btn {
        border-radius: 6px;
    }

.event-share-copy {
    border-color: #111827;
    background: #111827;
    color: #ffffff;
}

    .event-share-copy:hover,
    .event-share-copy:focus {
        border-color: #000000;
        background: #000000;
        color: #ffffff;
    }

.event-live-share {
    margin: 0.85rem 0;
    padding: 0.75rem;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    background: #f8fafc;
}

.event-live-share-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.45rem;
    color: #344054;
    font-size: 0.88rem;
    font-weight: 700;
}

    .event-live-share-heading a {
        color: #0ea5e9;
        font-size: 0.82rem;
        font-weight: 600;
        text-decoration: none;
    }

        .event-live-share-heading a:hover {
            text-decoration: underline;
        }

.event-share-custom {
    margin-bottom: 1rem;
    color: #98a2b3;
    font-size: 0.86rem;
}

.event-share-socials {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
}

.event-share-social {
    display: inline-grid;
    place-items: center;
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 50%;
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
}

    .event-share-social:hover,
    .event-share-social:focus {
        color: #ffffff;
        opacity: 0.86;
    }

.event-share-email {
    background: #6b7280;
}

.event-share-whatsapp {
    background: #22c55e;
}

.event-share-x {
    background: #0ea5e9;
}

.event-share-telegram {
    background: #38bdf8;
}

.event-owner-media-card {
    border: 1px solid #e4e7ec;
    border-radius: 8px;
    padding: 1rem;
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.event-owner-media-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.event-owner-media-carousel-track {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.event-owner-media-carousel-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 0.75rem;
    color: #667085;
    font-size: 0.85rem;
}

    .event-owner-media-carousel-actions .btn {
        min-width: 2.75rem;
        border-radius: 6px;
    }

.event-owner-media-item {
    overflow: hidden;
    border: 1px solid #e4e7ec;
    border-radius: 8px;
    background: #f8fafc;
    transition: opacity 160ms ease, transform 160ms ease;
}

    .event-owner-media-item img,
    .event-owner-media-item video {
        display: block;
        width: 100%;
        aspect-ratio: 1;
        object-fit: cover;
        background: #101828;
    }

.event-media-stats {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: #667085;
}

.event-media-stat strong {
    color: #101828;
}

.event-media-stat-sep {
    color: #d0d5dd;
}

.event-owner-media-meta {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.5rem;
    color: #667085;
    font-size: 0.8rem;
}

.event-guest-body {
    margin-bottom: 0;
    min-height: 100vh;
    background: #f7f9fb;
    color: #101828;
}

.event-guest-topbar {
    display: flex;
    align-items: center;
    min-height: 4rem;
    padding: 0 1.25rem;
    background: #ffffff;
    border-bottom: 1px solid #e4e7ec;
}

.event-guest-brand {
    color: #101828;
    font-weight: 700;
    text-decoration: none;
}

.event-guest-hero {
    padding: 4rem 1.25rem 3rem;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.14), rgba(14, 165, 233, 0.16)), #ffffff;
    border-bottom: 1px solid #e4e7ec;
}

.event-guest-hero-inner {
    width: min(100%, 900px);
    margin: 0 auto;
    text-align: center;
}

.event-guest-kicker {
    margin-bottom: 0.75rem;
    color: #0f766e;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.event-guest-hero h1 {
    margin-bottom: 0.75rem;
    font-size: 2.75rem;
    line-height: 1.05;
}

.event-guest-date {
    margin-bottom: 0;
    color: #475467;
    font-size: 1.2rem;
}

.event-guest-hero-nav {
    margin-top: 1.25rem;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.event-guest-hero-nav-link {
    color: #0ea5e9;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
}

    .event-guest-hero-nav-link:hover {
        text-decoration: underline;
        color: #0284c7;
    }

.event-guest-hero-nav-sep {
    color: #98a2b3;
}

.event-guest-shell {
    width: min(100% - 2rem, 760px);
    margin: 2rem auto 4rem;
    padding: 1.25rem;
    border: 1px solid #e4e7ec;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.06);
}

.event-guest-intro {
    margin-bottom: 1.25rem;
}

    .event-guest-intro h2 {
        margin-bottom: 0.35rem;
    }

    .event-guest-intro p {
        margin-bottom: 0;
        color: #667085;
    }

.event-guest-name {
    margin-bottom: 1rem;
}

.event-upload-dropzone {
    display: grid;
    place-items: center;
    min-height: 260px;
    border: 2px dashed #98a2b3;
    border-radius: 8px;
    padding: 2rem 1rem;
    background: #fbfcfd;
    text-align: center;
    cursor: pointer;
    transition: border-color 160ms ease, background-color 160ms ease;
}

    .event-upload-dropzone:hover,
    .event-upload-dropzone:focus,
    .event-upload-dropzone.is-dragging {
        border-color: #0ea5e9;
        background: #eef9ff;
        outline: none;
    }

.event-upload-dropzone-icon {
    display: grid;
    place-items: center;
    width: 3.25rem;
    height: 3.25rem;
    margin-bottom: 1rem;
    border-radius: 50%;
    background: #dcfce7;
    color: #15803d;
    font-size: 2rem;
    line-height: 1;
}

.event-upload-dropzone h3 {
    margin-bottom: 0.35rem;
}

.event-upload-dropzone p {
    margin-bottom: 1rem;
    color: #667085;
}

.event-selected-files {
    display: grid;
    gap: 0.5rem;
    padding: 0;
    margin: 1rem 0 0;
    list-style: none;
}

    .event-selected-files li {
        border: 1px solid #e4e7ec;
        border-radius: 8px;
        padding: 0.55rem 0.75rem;
        background: #f8fafc;
        color: #344054;
        overflow-wrap: anywhere;
    }

.event-upload-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}

.event-upload-status {
    margin: 0;
    color: #475467;
}

/* ── Owner Album Page ─────────────────────────────────────── */

.album-header {
    padding-bottom: 1rem;
    border-bottom: 1px solid #e4e7ec;
}

.album-stats {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.album-stat {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.album-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #101828;
}

.album-stat-label {
    font-size: 0.82rem;
    color: #667085;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.album-empty {
    padding: 3rem 0;
    text-align: center;
}

.album-toolbar {
    padding: 0.5rem 0;
}

.album-controls,
.guest-album-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.album-page-size-form {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    color: #667085;
    font-size: 0.9rem;
}

    .album-page-size-form select {
        width: auto;
        min-width: 5rem;
    }

.album-page-summary {
    color: #667085;
    font-size: 0.9rem;
}

.album-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
    color: #667085;
}

/* Custom album grid: density toggles and media aspect ratios require precise CSS-grid tile behavior. */
.album-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

    /* ---- View mode overrides ---- */
    .album-grid.album-grid--compact {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.4rem;
    }

    .album-grid.album-grid--large {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

@media (min-width: 576px) {
    .album-grid.album-grid--compact {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 0.5rem;
    }

    .album-grid.album-grid--large {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    }
}

.album-grid.album-grid--large .album-item-thumb {
    aspect-ratio: 4 / 3;
}

.album-grid.album-grid--compact .album-item-meta {
    padding: 0.2rem 0.35rem;
    font-size: 0.68rem;
    gap: 0.3rem;
}

.album-grid.album-grid--compact .album-item-uploader,
.album-grid.album-grid--compact .album-item-size {
    display: none;
}

.album-grid.album-grid--compact .album-item-download {
    width: 1.25rem;
    height: 1.25rem;
    font-size: 0.75rem;
}

/* ---- View toggle (host album) ---- */
.album-view-toggle {
    display: inline-flex;
    gap: 3px;
    align-items: center;
    flex-shrink: 0;
}

.album-view-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.9rem;
    height: 1.9rem;
    border: 1.5px solid #d1d5db;
    border-radius: 6px;
    background: #f9fafb;
    color: #9ca3af;
    cursor: pointer;
    font-size: 0.78rem;
    padding: 0;
    transition: border-color 0.1s, color 0.1s, background 0.1s;
}

    .album-view-btn:hover {
        border-color: #9ca3af;
        color: #374151;
        background: #f3f4f6;
    }

    .album-view-btn.is-active {
        background: #344054;
        border-color: #344054;
        color: #fff;
    }

.album-item {
    position: relative;
    border: 2px solid #e4e7ec;
    border-radius: 8px;
    overflow: hidden;
    background: #f8fafc;
    transition: border-color 120ms ease;
}

    .album-item.is-selected {
        border-color: #0ea5e9;
    }

.album-item-checkbox-wrap {
    position: absolute;
    top: 0.45rem;
    left: 0.45rem;
    z-index: 2;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.9rem;
    height: 1.9rem;
    margin: 0;
}

    .album-item-checkbox-wrap input[type="checkbox"] {
        position: absolute;
        opacity: 0;
        inset: 0;
        width: 100%;
        height: 100%;
        margin: 0;
        cursor: pointer;
    }

.album-item-check-visual {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    transition: transform 120ms ease;
    pointer-events: none;
    filter: drop-shadow(0 1px 2px rgba(16, 24, 40, 0.55));
}

.album-item-check-icon {
    position: absolute;
    font-size: 1.5rem;
    line-height: 1;
    transition: opacity 120ms ease, transform 120ms ease;
}

.album-item-check-icon--off {
    color: #ffffff;
    opacity: 1;
}

.album-item-check-icon--on {
    color: #0ea5e9;
    opacity: 0;
    transform: scale(0.7);
}

.album-item-checkbox-wrap:hover .album-item-check-visual {
    transform: scale(1.08);
}

.album-item-check:checked ~ .album-item-check-visual {
    transform: scale(1.05);
}

    .album-item-check:checked ~ .album-item-check-visual .album-item-check-icon--off {
        opacity: 0;
        transform: scale(0.7);
    }

    .album-item-check:checked ~ .album-item-check-visual .album-item-check-icon--on {
        opacity: 1;
        transform: scale(1);
    }

.album-item-check:focus-visible ~ .album-item-check-visual {
    outline: 2px solid #0ea5e9;
    outline-offset: 2px;
    border-radius: 50%;
}

.album-item-delete-btn {
    position: absolute;
    top: 0.4rem;
    right: 0.4rem;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 1.75rem;
    height: 1.75rem;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(220, 38, 38, 0.88);
    color: #ffffff;
    font-size: 0.78rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(16, 24, 40, 0.25);
    opacity: 0;
    transition: opacity 120ms ease, background 120ms ease, transform 120ms ease;
}

.album-item:hover .album-item-delete-btn,
.album-item:focus-within .album-item-delete-btn {
    opacity: 1;
}

/* Always show controls on touch / small screens */
@media (hover: none), (max-width: 575.98px) {
    .album-item-delete-btn {
        opacity: 1;
    }
}

.album-item-delete-btn:hover {
    background: rgb(185, 28, 28);
    transform: scale(1.08);
}

.album-item-delete-btn:disabled {
    opacity: 0.6 !important;
    cursor: not-allowed;
}

/* ---- Compact action buttons (toolbar + filters) ---- */
.album-filter-btn,
.album-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.7rem;
    font-size: 0.85rem;
    line-height: 1.2;
    border-radius: 6px;
    white-space: nowrap;
}

    .album-filter-btn i,
    .album-action-btn i {
        font-size: 0.85rem;
    }

/* On phones, collapse action buttons to icon-only to save space */
@media (max-width: 575.98px) {
    .album-action-btn {
        padding: 0.4rem 0.55rem;
    }

        .album-action-btn .album-action-label {
            display: none;
        }

    .album-filter-btn {
        padding: 0.3rem 0.6rem;
        font-size: 0.78rem;
    }

        .album-filter-btn i {
            display: none;
        }
}

.album-item-thumb {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background: #101828;
}

    .album-item-thumb img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: opacity 120ms ease;
        pointer-events: none;
    }

    .album-item-thumb:hover img {
        opacity: 0.9;
    }

a.album-item-thumb {
    text-decoration: none;
}

.album-item-video {
    position: relative;
}

    .album-item-video video {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        pointer-events: none;
    }

.album-item-video-badge {
    position: absolute;
    bottom: 0.4rem;
    right: 0.4rem;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.7);
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.album-item-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.6rem;
    font-size: 0.78rem;
    color: #667085;
    background: #ffffff;
}

.album-item-uploader {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #344054;
    font-weight: 500;
}

.album-item-size {
    flex-shrink: 0;
    color: #98a2b3;
}

.album-item-download {
    flex-shrink: 0;
    display: inline-grid;
    place-items: center;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 4px;
    background: #f0f9ff;
    color: #0ea5e9;
    text-decoration: none;
    font-size: 0.78rem;
    line-height: 1;
    transition: background 120ms ease, color 120ms ease;
}

/* Download overlay (same pattern as guest-album-download) */
.album-item-download-overlay {
    position: absolute;
    bottom: calc(2rem + 0.45rem);
    right: 0.45rem;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: #fff;
    text-decoration: none;
    font-size: 0.78rem;
    opacity: 0;
    transition: opacity 0.15s ease, background 0.15s ease, transform 0.1s ease;
}

.album-item:hover .album-item-download-overlay,
.album-item:focus-within .album-item-download-overlay {
    opacity: 1;
}

.album-item-download-overlay:hover {
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    transform: scale(1.08);
}

@media (max-width: 575.98px), (hover: none) {
    .album-item-download-overlay {
        opacity: 1;
    }
}

.album-item-download:hover {
    background: #e0f2fe;
    color: #0284c7;
}

/* ── Guest Album Section (Public page) ───────────────────── */

.guest-album-section {
    width: min(100% - 2rem, 960px);
    margin: 0 auto 3rem;
}

.guest-album-header {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding-top: 2rem;
    border-top: 1px solid #e4e7ec;
}

    .guest-album-header h2 {
        margin: 0;
    }

.guest-album-count {
    color: #98a2b3;
    font-size: 0.9rem;
}

.guest-album-empty {
    text-align: center;
    padding: 3.5rem 1rem 2.5rem;
}

.guest-album-empty-icon {
    font-size: 3.75rem;
    color: #8f73c7;
    opacity: 0.38;
    display: block;
    margin-bottom: 1.1rem;
}

.guest-album-empty-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #352747;
    margin-bottom: 0.35rem;
}

.guest-album-empty-sub {
    font-size: 0.9rem;
    color: #98a2b3;
    margin: 0;
}

/* Guest album uses the same density-specific media grid as the owner album. */
.guest-album-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.75rem;
    align-content: start;
    align-items: start;
}

    /* ---- View mode overrides ---- */
    .guest-album-grid.guest-album-grid--compact {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.35rem;
    }

    .guest-album-grid.guest-album-grid--large {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

@media (min-width: 576px) {
    .guest-album-grid.guest-album-grid--compact {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 0.5rem;
    }

    .guest-album-grid.guest-album-grid--large {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}
/* Large view: 4:3 shows more of each photo */
.guest-album-grid.guest-album-grid--large .guest-album-thumb {
    aspect-ratio: 4 / 3;
}
/* Compact view: tighter meta strip, hide uploader name (too small) */
.guest-album-grid.guest-album-grid--compact .guest-album-meta {
    padding: 0.15rem 0.3rem;
    font-size: 0.68rem;
}

.guest-album-grid.guest-album-grid--compact .guest-album-uploader {
    display: none;
}

.guest-album-item {
    position: relative;
    border: 1px solid #e4e7ec;
    border-radius: 8px;
    overflow: hidden;
    background: #f8fafc;
    min-width: 0;
}

.guest-album-thumb {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background: #101828;
}

    .guest-album-thumb img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        pointer-events: none;
    }

.guest-album-video video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.guest-album-video {
    position: relative;
    background: #030303;
}

    .guest-album-video video:not([src]) {
        opacity: 0;
    }

.guest-album-video--tap-load {
    cursor: pointer;
}

.guest-album-video-lazy-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.85rem;
    color: #fff;
    background: #030303;
    text-align: center;
    pointer-events: none;
    transition: opacity 0.16s ease, visibility 0.16s ease;
}

.guest-album-video-lazy-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.35rem;
    height: 2.35rem;
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    font-size: 0.9rem;
}

.guest-album-video-lazy-text {
    max-width: 10.5rem;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.25;
}

.guest-album-video.is-video-loading .guest-album-video-lazy-text::after {
    content: "...";
}

.guest-album-video.is-video-ready .guest-album-video-lazy-overlay {
    opacity: 0;
    visibility: hidden;
}

.guest-album-preview-date {
    display: block;
    margin-top: 0.12rem;
    font-size: 0.85em;
    opacity: 0.78;
}

.guest-album-preview-separator {
    display: none;
}

a.guest-album-thumb {
    text-decoration: none;
}

.guest-album-meta {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.5rem;
    font-size: 0.78rem;
    background: #ffffff;
}

.guest-album-uploader {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #344054;
    font-weight: 500;
}

.guest-album-download {
    position: absolute;
    top: 0.45rem;
    right: 0.45rem;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: #fff;
    text-decoration: none;
    font-size: 0.75rem;
    opacity: 0;
    transition: opacity 0.15s ease, background 0.15s ease, transform 0.1s ease;
}

.guest-album-item:hover .guest-album-download,
.guest-album-item:focus-within .guest-album-download {
    opacity: 1;
}

.guest-album-download:hover {
    background: rgba(0, 0, 0, 0.65);
    transform: scale(1.08);
}

/* Always visible on mobile phones regardless of hover capability */
@media (max-width: 575.98px) {
    .guest-album-download {
        opacity: 1;
    }
}
/* Also always visible on pure touch screens (tablets etc.) */
@media (hover: none) {
    .guest-album-download {
        opacity: 1;
    }
}

/* ── Responsive breakpoints ───────────────────────────────── */

@media (max-width: 991.98px) {
    .qr-workbench {
        grid-template-columns: 1fr;
    }

    .qr-preview-panel {
        position: static;
    }

    .event-owner-media-grid,
    .event-owner-media-carousel-track {
        grid-template-columns: 1fr;
    }

    .album-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

@media (max-width: 575.98px) {
    .event-guest-hero {
        padding: 3rem 1rem 2.5rem;
    }

        .event-guest-hero h1 {
            font-size: 2.1rem;
        }

    .event-guest-shell {
        width: calc(100% - 1rem);
        margin-top: 1rem;
        padding: 1rem;
    }

    .album-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .guest-album-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

        .guest-album-grid.guest-album-grid--compact {
            grid-template-columns: repeat(3, 1fr);
            gap: 0.3rem;
        }

        .guest-album-grid.guest-album-grid--large {
            grid-template-columns: 1fr;
        }
}

/* ── Package radio cards — keep inner text readable when selected ─── */
.btn-check:checked + .btn-outline-primary .text-primary,
.btn-check:checked + .btn-outline-primary .text-success,
.btn-check:checked + .btn-outline-primary .text-muted {
    color: rgba(255, 255, 255, 0.9) !important;
}

.btn-check:checked + .btn-outline-primary ul {
    color: rgba(255, 255, 255, 0.85);
}

/* Source: wwwroot/css/landing.css */
:root {
    --lavender: #C9B6E4;
    --purple: #A892D6;
    --peach: #F3A7A0;
    --gold-peach: #F6D3A2;
    --bg: #F7F5FB;
    --ink: #352747;
    --muted: #6f627d;
    --white: #ffffff;
    --line: rgba(53, 39, 71, 0.14);
    --shadow: 0 22px 70px rgba(53, 39, 71, 0.16);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    width: 100%;
}

body {
    width: 100%;
    /* Reserve scrollbar space even when page is short, so the header doesn't
     horizontally shift between tall and short pages. */
    scrollbar-gutter: stable;
    overflow-y: scroll;
    color: var(--ink);
    font-family: "Montserrat", Arial, Helvetica, sans-serif;
    line-height: 1.6;
}

button,
input,
select,
textarea {
    font-family: inherit;
}

.material-icons {
    font-family: "Material Icons";
    font-weight: normal;
    font-style: normal;
}

.material-symbols-outlined {
    font-family: "Material Symbols Outlined";
    font-weight: normal;
    font-style: normal;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
    /* Lock height so font-swap (Montserrat) doesn't cause a vertical reflow. */
    min-height: 82px;
}

/* ----- Header action buttons -----
   These live in landing.css (loaded from <head>) rather than in the partial's
   <style> tag so the rules are parsed BEFORE the first paint — otherwise the
   <button> briefly flashes its browser-default chrome during navigation. */
.header-logout-form {
    margin: 0;
}

.header-logout-btn {
    -webkit-appearance: none;
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    border: 1px solid rgba(53, 39, 71, 0.14);
    background: #ffffff;
    color: var(--ink);
    border-radius: 999px;
    font-weight: 700;
    font-size: .95rem;
    line-height: 1;
    cursor: pointer;
    outline: 0;
    padding: .55rem .9rem;
    transition: border-color 180ms ease, transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

    .header-logout-btn:hover {
        border-color: var(--purple);
        transform: translateY(-1px);
    }

    .header-logout-btn:focus {
        outline: 0;
        border-color: var(--purple);
    }

    .header-logout-btn:focus-visible {
        outline: 0;
        border-color: var(--purple);
        box-shadow: 0 0 0 3px rgba(168, 146, 214, 0.28);
    }

    .header-logout-btn:active {
        outline: 0;
        border-color: var(--purple);
        transform: translateY(0);
    }

    .header-logout-btn::-moz-focus-inner {
        border: 0;
        padding: 0;
    }

    .header-logout-btn .material-symbols-outlined {
        font-size: 1.2rem;
    }

/* Same focus reset for Moji događaji / Prijava pill so UA default ring
   doesn't flash between navigations. */


.brand img {
    width: 154px;
    min-width: 132px;
}

.main-nav {
    color: #4c3b61;
    font-size: 1rem;
    font-weight: 700;
}

    .main-nav a,
    .nav-drop-toggle {
        border-bottom: 2px solid transparent;
    }

        .main-nav a:hover,
        .main-nav a:focus-visible,
        .nav-drop-toggle:hover,
        .nav-drop-toggle:focus-visible {
            border-color: var(--peach);
        }

.nav-dropdown {
    position: relative;
}

.nav-drop-toggle {
    border-top: 0;
    border-right: 0;
    border-left: 0;
    color: inherit;
    background: transparent;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

    .nav-drop-toggle .material-icons,
    .menu-icon {
        font-size: 18px;
        line-height: 1;
    }

.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    z-index: 30;
    display: none;
    min-width: 230px;
    border: 0;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

    .dropdown-menu a {
        display: block;
        border: 0;
        border-radius: 18px;
    }

        .dropdown-menu a:hover,
        .dropdown-menu a:focus-visible {
            background: rgba(201, 182, 228, 0.22);
        }

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown.is-open .dropdown-menu {
    display: block;
}

.button,
.header-cta {
    min-height: 46px;
    border: 0;
    border-radius: 999px;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

    .button:hover,
    .header-cta:hover {
        transform: translateY(-2px);
    }

    .button::after,
    .header-cta::after {
        content: "chevron_right";
        font-family: "Material Icons";
        font-size: 18px;
        line-height: 1;
    }

.party-button::after {
    content: none;
}

.material-symbols-outlined {
    font-variation-settings: "FILL" 0, "wght" 600, "GRAD" 0, "opsz" 24;
}

.party-button .material-symbols-outlined {
    font-size: 20px;
    line-height: 1;
}

.btn-primary {
    color: var(--white);
    background: linear-gradient(90deg, #8f73c7 0%, #F3A7A0 100%);
    box-shadow: 0 12px 28px rgba(168, 146, 214, 0.34);
}

.btn-secondary {
    color: #51366b;
    background: #ffffff;
    box-shadow: 0 10px 26px rgba(53, 39, 71, 0.12);
}

.btn-purple {
    background: var(--purple);
    color: var(--white);
    box-shadow: 0 10px 26px rgba(53, 39, 71, 0.12);
}

.text-purple {
    color: var(--purple);
}


.hero {
    position: relative;
    min-height: 82vh;
    overflow: hidden;
    background: linear-gradient(120deg, rgba(249, 242, 245, 0.9) 0%, rgba(240, 222, 239, 0.7) 48%, rgba(246, 211, 162, 0.28) 100%), linear-gradient(135deg, rgba(182, 154, 197, 0.62), rgba(240, 222, 239, 0.44));
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: linear-gradient(90deg, rgba(249, 242, 245, 0.7) 0%, rgba(240, 222, 239, 0.5) 42%, rgba(246, 211, 162, 0.1) 100%), url("../img/hero-bg.png");
    background-position: left bottom;
    background-size: cover;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(145deg, rgba(182, 154, 197, 0.16), rgba(240, 222, 239, 0.2) 48%, rgba(246, 211, 162, 0.16));
    pointer-events: none;
}

.hero-content,
.hero-overlay,
.hero-wave,
.sparkle {
    position: relative;
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 4;
}

.hero-overlay {
    position: absolute;
    inset: -140px 0 0;
    z-index: 2;
    background: url("../img/hero-overlay.png") top center / 100% auto no-repeat;
    mix-blend-mode: normal;
    pointer-events: none;
}

.hero-wave {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0px;
    z-index: 1;
    width: 100%;
    height: clamp(200px, 40vw, 700px);
    color: var(--bg);
    opacity: 0.5;
    pointer-events: none;
}

    .hero-wave path {
        fill: currentColor;
    }

.hero-wave-front {
    bottom: 0px;
    height: clamp(100px, 20vw, 500px);
    z-index: 3;
    opacity: 1;
}

.eyebrow {
    color: #8064b4;
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

h1,
h2,
h3,
h4,
p {
    overflow-wrap: break-word;
}

h1,
h2,
h3 {
    font-family: "Montserrat", Arial, Helvetica, sans-serif;
    font-weight: 800;
    line-height: 1.08;
    word-break: normal;
}

h1 {
    max-width: 730px;
    font-size: clamp(2.5rem, 8vw, 5.9rem);
}

.hero h1 {
    max-width: 10.8ch;
    font-size: clamp(3.6rem, 5.1vw, 5.15rem);
}

h2 {
    max-width: 840px;
    font-size: clamp(2rem, 5vw, 4.2rem);
}


h4 {
    font-size: 1rem;
}

.sparkle {
    position: absolute;
    color: #b18bd1;
    font-size: clamp(1.5rem, 4vw, 3.6rem);
    text-shadow: 0 8px 22px rgba(53, 39, 71, 0.18);
}

.sparkle-one {
    top: 22%;
    left: 46%;
}

.sparkle-two {
    right: 9%;
    top: 19%;
    color: var(--gold-peach);
}

.sparkle-three {
    left: 7%;
    bottom: 12%;
    color: var(--peach);
}


.section-subtitle {  
    color: var(--muted);
    font-size: clamp(1rem, 1.35vw, 1.2rem);
    font-weight: 500;
}


.services {
    background: var(--white);
}

.service-feature {
    width: 100%;
    max-width: none;
}

    .service-feature p:not(.eyebrow) {
        color: var(--muted);
    }

.service-copy {
    height: 100%;
    border: 0;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.84);
    box-shadow: 0 16px 34px rgba(53, 39, 71, 0.09), 0 6px 14px rgba(168, 146, 214, 0.1);
    position: relative;
    z-index: 1;
}


.service-media-image {
    margin-left: -5%;
    z-index: 200;
    margin-top: -10%;
}

.wrap-card {
    border: 0;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 16px 34px rgba(53, 39, 71, 0.09), 0 6px 14px rgba(168, 146, 214, 0.1);
}

.service-grid > [class*="col"]:nth-child(1) .wrap-card {
    background: rgba(201, 182, 228, 0.5);
}

.service-grid > [class*="col"]:nth-child(2) .wrap-card {
    background: rgba(243, 167, 160, 0.5);
}

.service-grid > [class*="col"]:nth-child(3) .wrap-card {
    background: rgba(246, 211, 142, 0.5);
}

.card-mark,
.package-label {
    width: fit-content;
    border-radius: 0;
    color: #8064b4;
    background: transparent;
    font-size: 0.84rem;
    font-weight: 900;
    text-transform: uppercase;
}

.package-label {
    border-radius: 999px;
    color: #51366b;
    background: var(--lavender);
    text-transform: none;
}

.pricing-grid > [class*="col"]:nth-child(1) .package-label {
    background: #F7F5FB;
}

.pricing-grid > [class*="col"]:nth-child(2) .package-label {
    background: rgba(201, 182, 228, 0.7);
}

.pricing-grid > [class*="col"]:nth-child(3) .package-label {
    background: rgba(243, 167, 160, 0.55);
}

.pricing-grid > [class*="col"]:nth-child(4) .package-label {
    background: rgba(246, 211, 162, 0.75);
}

.price-card-badges {
    width: 100%;
}

.package-price {
    color: var(--ink);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
}

    .package-price span {
        color: var(--ink);
        font-size: 0.78rem;
        font-weight: 900;
        line-height: 1;
        text-transform: uppercase;
    }

.check-list {
    list-style: none;
}

    .check-list li {
        position: relative;
        min-height: 24px;
    }

        .check-list li::before {
            content: "celebration";
            position: absolute;
            top: 0;
            left: 0;
            width: 24px;
            height: 24px;
            color: #A892D6;
            background: transparent;
            font-family: "Material Symbols Outlined";
            font-size: 20px;
            font-variation-settings: "FILL" 0, "wght" 700, "GRAD" 0, "opsz" 24;
            line-height: 1;
            text-align: center;
        }

.templates {
    background: var(--bg);
}

.template-filter {
    width: 100%;
    color: #352747;
    font-size: 1rem;
    font-weight: 700;
}

    .template-filter a:first-child,
    .template-filter .is-active {
        color: #c6923f;
    }

    .template-filter span {
        color: rgba(53, 39, 71, 0.46);
    }

.template-card {
    display: block;
    position: relative;
    min-height: 220px;
    overflow: hidden;
    border-radius: 28px;
    background: #ffffff;
    box-shadow: 0 14px 28px rgba(53, 39, 71, 0.08), 0 6px 12px rgba(168, 146, 214, 0.1);
}

    .template-card img {
        width: 100%;
        height: 100%;
        min-height: 220px;
        object-fit: cover;
        transition: transform 220ms ease;
    }

    .template-card:hover img {
        transform: scale(1.04);
    }

    .template-card span {
        position: absolute;
        left: 16px;
        bottom: 16px;
        max-width: calc(100% - 32px);
        border-radius: 999px;
        color: #352747;
        background: rgba(255, 255, 255, 0.86);
        font-weight: 900;
        box-shadow: 0 8px 20px rgba(53, 39, 71, 0.12);
    }

.addons {
    background: var(--white);
}


.pricing {
    background: var(--bg);
}

.mobile-pricing-image {
    display: none;
}

/* ── Pricing accordion (mobile only) ─────────────────── */
.pricing-accordion-toggle {
    -webkit-appearance: none;
    appearance: none;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    border-radius: 28px;
    transition: background 160ms ease;
}

    .pricing-accordion-toggle:hover {
        background: rgba(168, 146, 214, 0.08);
    }

.pricing-toggle-price {
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--ink);
}

.pricing-chevron {
    font-size: 1.35rem;
    color: var(--muted);
    transition: transform 280ms ease;
    flex-shrink: 0;
}

@media (max-width: 991.98px) {
    .pricing-card-body {
        max-height: 0;
        overflow: hidden;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        transition: max-height 320ms ease, padding 320ms ease;
    }

    .pricing-card.is-open .pricing-card-body {
        max-height: 700px;
        padding-top: 1rem !important;
        padding-bottom: 1.5rem !important;
    }

    .pricing-card.is-open .pricing-chevron {
        transform: rotate(180deg);
    }

    .pricing-grid {
        gap: .75rem !important;
    }

    .pricing-grid .col-12 {
        padding: 0;
    }

    .pricing-grid .col-12:has(.featured) {
        order: -1;
    }
}

.price-card {
    position: relative;
}

.featured {
    background: linear-gradient(180deg, rgba(201, 182, 228, 0.32), rgba(255, 255, 255, 0.96) 42%, rgba(246, 211, 162, 0.28));
    border-color: rgba(168, 146, 214, 0.62);
}

.popular {
    border-radius: 999px;
    color: #ffffff;
    background: var(--purple);
    font-size: 0.8rem;
    font-weight: 900;
}

.mascot-section {
    background: var(--white);
    position: relative;
    min-height: clamp(330px, 28vw, 440px);
}


.contact {
    background: var(--bg);
}

.contact-layout {
    width: 100%;
    max-width: none;
}


.contact-details h3,
.faq-panel h3 {
    font-size: clamp(1.45rem, 3vw, 2rem);
}

label {   
    font-weight: 600;
}

input,
select,
textarea {
    width: 100%;
    min-height: 46px;
    border: 1px solid rgba(168, 146, 214, 0.52);
    border-radius: 18px;
    color: var(--ink);
    background: #ffffff;
    font: inherit;
}

    input[type="checkbox"],
    input[type="radio"] {
        width: 22px;
        min-width: 22px;
        max-width: 22px;
        height: 22px;
        min-height: 22px;
        max-height: 22px;
        border-radius: 6px;
    }

textarea {
    resize: vertical;
}

.form-note {
    min-height: 24px;
    color: #8064b4;
    font-weight: 800;
}

.contact-details p {
    color: var(--muted);
}

.contact-social-link {
    color: var(--ink);
    text-decoration: none;
    font-weight: 700;
    transition: color 160ms ease;
}

    .contact-social-link:hover {
        color: #c13584;
    }

details {
    border: 1px solid var(--line);
    border-top: 1px solid var(--line);
    border-radius: 18px;
    background: #ffffff;
    overflow: hidden;
    transition: box-shadow 200ms ease, border-color 200ms ease;
}

    details[open] {
        border-color: rgba(168, 146, 214, 0.42);
        box-shadow: 0 10px 22px rgba(53, 39, 71, 0.07);
    }

summary {
    cursor: pointer;
    color: #51366b;
    font-weight: 900;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    transition: color 160ms ease;
}

    summary::-webkit-details-marker {
        display: none;
    }

    summary::after {
        content: "expand_more";
        font-family: "Material Icons";
        font-size: 22px;
        color: #A892D6;
        transition: transform 240ms ease;
        flex-shrink: 0;
    }

details[open] > summary::after {
    transform: rotate(180deg);
}

/* Smooth slide + fade for the panel content. Animates on open across all
   evergreen browsers; close is instant (native details limitation without
   JS), but the open animation is what the eye tracks. */
details > *:not(summary) {
    animation: detailsReveal 280ms ease-out;
    transform-origin: top;
}

details > p {
    margin-top: .75rem;
    margin-bottom: 0;
    color: var(--ink);
}

@keyframes detailsReveal {
    from {
        opacity: 0;
        transform: translateY(-6px);
        max-height: 0;
    }

    to {
        opacity: 1;
        transform: translateY(0);
        max-height: 500px;
    }
}

/* Shared auth-page styling (Login / Register / CheckEmail / ConfirmEmail
   / ForgotPasswordConfirmation). Kept here so all auth views adopt the
   Zabavko card look without duplicating blocks across views. */
.auth-section {
    background: var(--bg);
    min-height: calc(100vh - 220px);
}

.auth-card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--line);
    border-radius: 28px;
    box-shadow: 0 16px 34px rgba(53, 39, 71, 0.09), 0 6px 14px rgba(168, 146, 214, 0.1);
    padding: 2.5rem;
}

    .auth-card h2 {
        color: var(--ink);
        font-weight: 800;
        letter-spacing: -0.01em;
        margin: 0 0 0.5rem;
    }

    .auth-card .form-label {
        color: var(--ink);
        font-weight: 700;
        font-size: 0.92rem;
        margin-bottom: 0.4rem;
    }

    .auth-card .form-control {
        border-radius: 18px;
        border: 1px solid var(--line);
        background: #fff;
        padding: 0.85rem 1rem;
        color: var(--ink);
        font-size: 1rem;
        transition: border-color 180ms ease, box-shadow 180ms ease;
    }

        .auth-card .form-control:focus {
            border-color: var(--purple);
            box-shadow: 0 0 0 4px rgba(168, 146, 214, 0.18);
            outline: none;
        }

    .auth-card .text-danger {
        color: #b63d53 !important;
        font-size: 0.85rem;
    }

.auth-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    margin-top: 1.25rem;
}

.auth-link {
    color: var(--purple);
    font-weight: 700;
    text-decoration: none;
    font-size: 0.92rem;
}

    .auth-link:hover {
        color: var(--ink);
        text-decoration: underline;
    }

.auth-divider {
    border: none;
    border-top: 1px solid var(--line);
    margin: 1.75rem 0 1.25rem;
}

.auth-google {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    background: #fff;
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0.8rem 1.2rem;
    font-weight: 700;
    text-decoration: none;
    transition: border-color 180ms ease, transform 180ms ease;
}

    .auth-google:hover {
        border-color: var(--purple);
        color: var(--ink);
        transform: translateY(-1px);
    }

.auth-message {
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0 0 1rem;
}

    .auth-message strong {
        color: var(--ink);
        font-weight: 700;
    }

.auth-hint {
    color: var(--muted);
    font-size: 0.9rem;
    margin: 0 0 1.5rem;
}

.auth-status-icon {
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    margin-bottom: 1rem;
}

    .auth-status-icon .material-symbols-outlined {
        font-size: 32px;
    }

.auth-status-icon--success {
    background: rgba(168, 146, 214, 0.18);
    color: #4a8e6a;
}

.auth-status-icon--info {
    background: rgba(201, 182, 228, 0.3);
    color: #8f73c7;
}

.auth-status-icon--warn {
    background: rgba(246, 211, 162, 0.4);
    color: #b07a1b;
}

.site-footer {
    border-top: 1px solid var(--line);
}

    .site-footer img {
        width: 160px;
    }

@media (max-width: 1320px) {
    .hero h1 {
        max-width: 10.5ch;
        font-size: clamp(3.35rem, 5vw, 4.25rem);
    }

    .hero-overlay {
        inset: -132px 0 0;
        background-position: bottom -50px center;
        background-size: 100% auto;
    }
}

@media (max-width: 1080px) {
    .service-media {
        display: none;
    }

    .menu-toggle {
        min-height: 42px;
        border: 0;
        border-radius: 999px;
        color: #51366b;
        background: #ffffff;
        font-weight: 900;
    }

    .main-nav {
        position: absolute;
        top: 100%;
        left: 18px;
        right: 18px;
        border: 0;
        border-radius: 28px;
        background: #ffffff;
        box-shadow: var(--shadow);
    }

        .main-nav a {
            border: 0;
            border-radius: 18px;
        }

    .nav-drop-toggle {
        width: 100%;
        border: 0;
        border-radius: 18px;
        text-align: left;
    }

    .dropdown-menu {
        position: static;
        min-width: 0;
        box-shadow: none;
    }

    .nav-dropdown:hover .dropdown-menu {
        display: none;
    }

    .nav-dropdown.is-open .dropdown-menu {
        display: block;
    }

    .hero {
        min-height: auto;
    }

    .hero-overlay {
        background-position: center right 18%;
    }

    .featured {
        transform: none;
    }
}

@media (max-width: 720px) {
    .brand {
        min-width: 0;
    }

        .brand img {
            width: 136px;
        }

    .menu-toggle {
        width: 44px;
        font-size: 0;
    }

    .header-cta {
        display: none;
    }

    .header-actions {
        width: auto;
    }

        .header-actions .button {
            min-width: 0;
        }

    .header-login {
        min-height: 38px;
        font-size: 0.84rem;
        white-space: nowrap;
    }

        .header-login::after {
            font-size: 16px;
        }

    h1 {
        font-size: clamp(2rem, 9vw, 2.35rem);
    }

    .hero h1 {
        max-width: 100%;
        font-size: clamp(2.2rem, 11vw, 3rem);
    }

    .hero-bg {
        background-image: linear-gradient(180deg, rgba(249, 242, 245, 0.86) 0%, rgba(240, 222, 239, 0.68) 58%, rgba(246, 211, 162, 0.24) 100%), url("../img/hero-bg.png");
        background-position: 64% center;
        background-size: auto 100%;
    }

    .hero-overlay {
        display: none;
    }

    .hero-actions,
    .hero-actions .button {
        width: 100%;
    }

    .mascot-section {
        min-height: auto;
        overflow: hidden;
    }

    .service-media {
        display: none;
    }

    .mobile-pricing-image {
        display: block;
    }

        .mobile-pricing-image img {
            width: min(100%, 420px);
            max-width: 100%;
        }

    .mascot-section img {
        position: relative;
        top: auto;
        right: auto;
        width: min(100%, 420px);
        max-width: 100%;
        transform: none;
        pointer-events: auto;
    }

    .price-card .button {
        width: 100%;
    }

    .template-card,
    .template-card img {
        min-height: 220px;
    }

    .popular {
        position: static;
        width: fit-content;
    }
}

/* Source: wwwroot/css/event-edit.css */
.event-edit-page {
    --card-radius: 1rem;
    --card-border: #e9ecef;
    --card-shadow: 0 12px 32px rgba(16, 24, 40, 0.06);
    --soft-bg: #f8f9fb;
    --soft-text: #667085;
}

    .event-edit-page .event-panel {
        background: #fff;
        border: 1px solid var(--card-border);
        border-radius: var(--card-radius);
        box-shadow: var(--card-shadow);
        padding: 1.25rem;
    }

        .event-edit-page .event-panel + .event-panel {
            margin-top: 1rem;
        }

    .event-edit-page .page-header {
        margin-bottom: 1.25rem;
    }

    .event-edit-page .page-title-row {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 0.75rem;
        margin-bottom: 0.5rem;
    }

        .event-edit-page .page-title-row h1 {
            margin: 0;
            font-size: clamp(1.7rem, 2.4vw, 2.2rem);
            line-height: 1.1;
        }

    .event-edit-page .page-subtitle {
        color: var(--soft-text);
        margin: 0;
    }

    .event-edit-page .section-title {
        margin: 0 0 0.25rem;
        font-size: 1rem;
        font-weight: 700;
    }

    .event-edit-page .section-subtitle {
        margin: 0;
        color: var(--soft-text);
        font-size: 0.95rem;
    }

    .event-edit-page .form-label.fw-semibold,
    .event-edit-page legend.h6 {
        font-size: 0.95rem;
    }

    .event-edit-page .form-control,
    .event-edit-page .form-select {
        min-height: 46px;
        border-radius: 0.75rem;
    }

    .event-edit-page textarea.form-control {
        min-height: 120px;
    }

    .event-edit-page .form-check {
        padding: 0.85rem 1rem;
        border: 1px solid var(--card-border);
        border-radius: 0.9rem;
        background: #fff;
        display: flex;
        align-items: flex-start;
        gap: 0.75rem;
        flex-wrap: wrap;
    }

        .event-edit-page .form-check + .form-check,
        .event-edit-page .form-check + .mb-4,
        .event-edit-page .mb-4 + .form-check {
            margin-top: 0.85rem;
        }

    .event-edit-page .form-check-input[type="checkbox"],
    .event-edit-page .form-check-input[type="radio"] {
        float: none !important;
        position: static !important;
        margin: 0.18rem 0 0 !important;
        flex-shrink: 0 !important;
        width: 22px !important;
        min-width: 22px !important;
        max-width: 22px !important;
        height: 22px !important;
        min-height: 22px !important;
        max-height: 22px !important;
        border: 2px solid rgba(168, 146, 214, 0.5) !important;
        border-radius: 7px !important;
        background-color: #fff !important;
        cursor: pointer;
        transition: border-color 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
        appearance: none !important;
        -webkit-appearance: none !important;
    }

        .event-edit-page .form-check-input[type="checkbox"]:hover,
        .event-edit-page .form-check-input[type="radio"]:hover {
            border-color: #a892d6 !important;
        }

        .event-edit-page .form-check-input[type="checkbox"]:focus,
        .event-edit-page .form-check-input[type="radio"]:focus {
            border-color: #a892d6 !important;
            box-shadow: 0 0 0 4px rgba(168, 146, 214, 0.22) !important;
            outline: none !important;
        }

        .event-edit-page .form-check-input[type="checkbox"]:checked {
            background-color: #a892d6 !important;
            border-color: #a892d6 !important;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M4 8.5l2.6 2.6L12 5.5'/%3E%3C/svg%3E") !important;
            background-repeat: no-repeat !important;
            background-position: center !important;
            background-size: 70% 70% !important;
        }

    .event-edit-page .form-text {
        color: var(--soft-text);
    }

    .event-edit-page .action-row {
        display: flex;
        flex-wrap: wrap;
        gap: 0.75rem;
        margin-top: 1.25rem;
    }

        .event-edit-page .action-row .btn {
            min-height: 46px;
            padding-inline: 1rem;
        }

.template-picker-shell {
    border: 1px solid var(--card-border);
    border-radius: 1rem;
    background: linear-gradient(180deg, #ffffff 0%, #fcfcfd 100%);
    padding: 1rem;
}

.template-picker-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.template-picker-header-meta {
    min-width: 0;
}

.template-picker-count {
    display: inline-block;
    font-size: 0.82rem;
    color: var(--soft-text);
    margin-top: 0.2rem;
}

/* Template preview cards are selectable thumbnails with fixed density, so this remains CSS grid. */
.template-picker-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.template-picker-item.is-hidden {
    display: none;
}

.event-edit-page .template-card {
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
    cursor: pointer;
    border: 1px solid #dee2e6;
    border-radius: 1rem;
    overflow: hidden;
    position: relative;
    background: #fff;
    height: 100%;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

    .event-edit-page .template-card:hover:not(.is-selected),
    .event-edit-page .template-card:focus-visible:not(.is-selected) {
        border-color: #bfc6d0;
        transform: translateY(-2px);
        box-shadow: 0 12px 24px rgba(16, 24, 40, 0.08);
        outline: none;
    }

    .event-edit-page .template-card.is-selected {
        border-color: var(--bs-primary) !important;
        box-shadow: 0 0 0 2px rgba(var(--bs-primary-rgb), 0.12), 0 12px 24px rgba(16, 24, 40, 0.08);
    }

.event-edit-page .template-card-thumb {
    height: 138px;
    overflow: hidden;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #eef0f3;
}

    .event-edit-page .template-card-thumb > * {
        width: 100%;
        height: 100%;
    }

.event-edit-page .template-card-footer {
    padding: 0.75rem 0.8rem 0.85rem;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-height: 74px;
}

.event-edit-page .template-card-name {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.2;
    display: block;
    color: #101828;
}

.event-edit-page .template-card-selected-label {
    display: none;
    font-size: 0.78rem;
    color: var(--bs-primary);
    font-weight: 600;
}

.event-edit-page .template-card.is-selected .template-card-selected-label {
    display: block;
}

.template-picker-actions {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

.template-picker-toggle {
    min-height: 42px;
    padding-inline: 1rem;
    border-radius: 999px;
}

.event-share-card,
.event-owner-media-card {
    background: #fff;
    border: 1px solid var(--card-border);
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
    padding: 1.25rem;
}

.event-share-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

    .event-share-header h2 {
        line-height: 1.2;
    }

.event-share-help {
    font-size: 0.9rem;
    color: var(--soft-text);
    text-decoration: none;
    white-space: nowrap;
}

    .event-share-help:hover {
        color: inherit;
        text-decoration: underline;
    }

.event-language-control {
    display: grid;
    gap: 0.45rem;
    margin-bottom: 1rem;
    font-size: 0.92rem;
    font-weight: 600;
}

.event-share-url-wrap {
    position: relative;
    margin-bottom: 0.9rem;
}

.event-share-url {
    width: 100%;
    min-height: 48px;
    padding: 0.8rem 0.9rem;
    border: 1px solid #d0d5dd;
    border-radius: 0.8rem;
    background: #f9fafb;
    color: #344054;
}

.event-share-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

    .event-share-actions .btn {
        min-height: 44px;
    }

.event-share-copy {
    background: var(--bs-primary);
    color: #fff;
    border: 1px solid var(--bs-primary);
    border-radius: 0.8rem;
    padding: 0.65rem 1rem;
}

    .event-share-copy:hover {
        color: #fff;
        opacity: 0.96;
    }

.event-live-share {
    border: 1px solid var(--card-border);
    background: var(--soft-bg);
    border-radius: 0.9rem;
    padding: 0.9rem;
    margin-bottom: 1rem;
}

.event-live-share-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.75rem;
    font-size: 0.93rem;
    font-weight: 700;
}

    .event-live-share-heading a {
        font-weight: 600;
        text-decoration: none;
    }

.event-share-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.event-share-social {
    min-width: 46px;
    min-height: 46px;
    padding: 0.65rem 0.8rem;
    border-radius: 999px;
    border: 1px solid #d0d5dd;
    background: #fff;
    color: #111827;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    transition: all 0.18s ease;
}

    .event-share-social:hover {
        transform: translateY(-1px);
        border-color: #b8c1cc;
        color: #111827;
    }

.event-media-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;
    color: var(--soft-text);
    font-size: 0.94rem;
}

.event-media-stat-sep {
    color: #c0c7d0;
}

.event-owner-media-carousel-track {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.event-owner-media-item {
    border: 1px solid var(--card-border);
    border-radius: 1rem;
    overflow: hidden;
    background: #fff;
}

    .event-owner-media-item a {
        display: block;
        aspect-ratio: 1 / 1;
        background: #f5f5f5;
    }

    .event-owner-media-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.event-owner-media-meta {
    display: flex;
    gap: 0.75rem;
    justify-content: space-between;
    align-items: center;
    padding: 0.7rem 0.8rem;
    font-size: 0.82rem;
    color: var(--soft-text);
}

.event-owner-media-uploader {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}

.event-owner-media-carousel-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 0.9rem;
}

    .event-owner-media-carousel-actions [data-carousel-status] {
        color: var(--soft-text);
        font-size: 0.92rem;
    }

@media (min-width: 768px) {
    .template-picker-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .event-share-card,
    .event-owner-media-card {
        margin-top: 0;
    }
}

@media (max-width: 767.98px) {
    .event-edit-page .event-panel,
    .event-share-card,
    .event-owner-media-card {
        padding: 1rem;
        border-radius: 0.9rem;
    }

    .event-edit-page .action-row {
        flex-direction: column;
        align-items: stretch;
    }

        .event-edit-page .action-row .btn,
        .event-edit-page .action-row a {
            width: 100%;
        }

    .event-share-actions {
        flex-direction: column;
    }

        .event-share-actions .btn,
        .event-share-copy {
            width: 100%;
        }

    .event-owner-media-carousel-track {
        grid-template-columns: 1fr;
    }
}

/* Source: wwwroot/css/event-templates.css */
/* ================================================================
   Event Templates — Admin UI
   Template CSS (dark, bloom, editorial, etc.) is stored in the
   EventTemplates DB table and injected per-page as a <style> block
   by _EventGuestLayout.cshtml. Classic is the default baseline.
   ================================================================ */

/* ── Shared: preview banner ──────────────────────────────────── */

.template-preview-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 0.55rem 1rem;
    background: #1e293b;
    color: #f1f5f9;
    font-size: 0.85rem;
    font-weight: 500;
}

    .template-preview-banner a {
        color: #93c5fd;
        text-decoration: none;
        font-weight: 600;
    }

        .template-preview-banner a:hover {
            text-decoration: underline;
        }

body:has(.template-preview-banner) .event-guest-topbar {
    top: 2.4rem;
}

/* ── Template picker row (cards + phone preview) ─────────────── */

.template-picker-row {
    display: block;
}

/* ── Template picker cards ───────────────────────────────────── */

.template-picker {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
    margin-top: 0.75rem;
}

.template-card:hover {
    border-color: #94a3b8;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
}

.template-card.is-selected {
    border-color: #0f766e;
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.28), 0 12px 28px rgba(15, 118, 110, 0.18);
}

.template-card-thumb {
    height: 150px;
    overflow: hidden;
}

    .template-card-thumb > * {
        width: 100%;
        height: 100%;
    }

.template-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    min-height: 2.75rem;
    padding: 0.55rem 0.7rem;
    border-top: 1px solid #e4e7ec;
    background: #f8fafc;
}

.template-card-name {
    font-size: 0.88rem;
    font-weight: 700;
    color: #344054;
}

.template-card-footer a {
    font-size: 0.75rem;
    color: #667085;
    text-decoration: none;
}

    .template-card-footer a:hover {
        color: #344054;
        text-decoration: underline;
    }

.template-card.is-selected .template-card-footer {
    background: #ecfdf5;
    border-top-color: #99f6e4;
}

.template-card.is-selected .template-card-name {
    color: #0f766e;
}

.template-card-selected-label {
    display: none;
    flex-shrink: 0;
    border-radius: 999px;
    padding: 0.18rem 0.5rem;
    background: #0f766e;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1.2;
}

.template-card.is-selected .template-card-selected-label {
    display: inline-flex;
}

/* ── Phone mockup preview ────────────────────────────────────── */

/* ── Template gallery page ───────────────────────────────────── */

.template-gallery-card {
    border: 1px solid #e4e7ec;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
    transition: box-shadow 200ms ease, transform 200ms ease;
}

    .template-gallery-card:hover {
        box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
        transform: translateY(-2px);
    }

.template-gallery-thumb {
    height: 220px;
    overflow: hidden;
}

    .template-gallery-thumb > * {
        width: 100%;
        height: 100%;
    }

.template-gallery-footer {
    padding: 1rem;
    border-top: 1px solid #e4e7ec;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.template-gallery-name {
    font-weight: 600;
    color: #101828;
}

.template-gallery-subtitle {
    font-size: 0.8rem;
    color: #667085;
    margin-top: 0.15rem;
}

@media (max-width: 575.98px) {
    .template-picker {
        grid-template-columns: repeat(2, 1fr);
    }

    .template-gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .template-gallery-thumb {
        height: 160px;
    }
}

/* Source: wwwroot/css/event-guest.css */
:root {
    --guest-shell-max: 1120px;
    --guest-radius-lg: 24px;
    --guest-radius-md: 18px;
    --guest-radius-sm: 12px;
    --guest-shadow-soft: 0 20px 50px rgba(15, 23, 42, 0.08);
    --guest-shadow-hover: 0 24px 60px rgba(15, 23, 42, 0.12);
    --guest-ring: 0 0 0 3px rgba(14, 165, 233, 0.12);
}

.event-guest-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(4rem, 8vw, 7rem) 1rem 2rem;
    border-bottom: 1px solid var(--t-border, #e5e7eb);
    background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.65), transparent 34%), linear-gradient(180deg, rgba(255, 255, 255, 0.45) 0%, rgba(255, 255, 255, 0.02) 100%);
}

    .event-guest-hero::after {
        content: "";
        position: absolute;
        inset: auto 0 0 0;
        height: 1px;
        background: linear-gradient(to right, transparent, var(--t-border, #e5e7eb), transparent);
        opacity: 0.75;
    }

    .event-guest-hero.has-preview-banner {
        padding-top: clamp(5.25rem, 9vw, 8rem);
    }

.event-guest-hero-inner {
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
}

.event-guest-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.42rem 0.8rem;
    margin-bottom: 1rem;
    border-radius: 999px;
    border: 1px solid var(--t-border, #e5e7eb);
    background: rgba(255, 255, 255, 0.6);
    color: var(--t-muted, #6b7280);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    backdrop-filter: blur(8px);
}

.event-guest-hero h1 {
    margin: 0;
    color: var(--t-text, #111827);
    line-height: 1.02;
    text-wrap: balance;
}

.event-guest-date {
    margin: 1rem 0 0;
    color: var(--t-muted, #6b7280);
    font-size: 1.05rem;
    font-weight: 500;
}

.event-guest-subtitle {
    max-width: 620px;
    margin: 1rem auto 0;
    color: var(--t-muted, #6b7280);
    font-size: 1rem;
    line-height: 1.7;
}

.event-guest-hero-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    align-items: center;
    max-width: 900px;
    margin: 2rem auto 0;
}

.event-guest-hero-nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0.7rem 1rem;
    border-radius: 999px;
    border: 1px solid var(--t-border, #e5e7eb);
    background: rgba(255, 255, 255, 0.75);
    color: var(--t-text, #111827);
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
    backdrop-filter: blur(8px);
}

    .event-guest-hero-nav-link:hover,
    .event-guest-hero-nav-link:focus-visible {
        transform: translateY(-1px);
        background: var(--t-surface, #ffffff);
        border-color: var(--t-accent, #0ea5e9);
        box-shadow: var(--guest-ring);
        outline: none;
    }

.event-guest-shell {
    width: min(var(--guest-shell-max), calc(100% - 2rem));
    margin: 1.25rem auto 0;
}

.event-guest-card {
    background: var(--t-surface, #ffffff);
    color: var(--t-text, #111827);
    border: 1px solid var(--t-border, #e5e7eb);
    border-radius: var(--guest-radius-lg);
    box-shadow: var(--guest-shadow-soft);
    padding: clamp(1.1rem, 2vw, 2rem);
}

.event-guest-state-card {
    text-align: center;
    padding-block: clamp(2rem, 4vw, 3rem);
}

.event-upload-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.75fr) minmax(280px, 0.9fr);
    gap: 1.25rem;
    align-items: start;
}

.event-upload-main-card,
.event-upload-side-card {
    min-width: 0;
}

.event-upload-side-card {
    position: sticky;
    top: 1rem;
}

.event-guest-intro {
    margin-bottom: 1.5rem;
}

    .event-guest-intro h2 {
        margin: 0.3rem 0 0.55rem;
        color: var(--t-text, #111827);
        line-height: 1.15;
    }

    .event-guest-intro p {
        margin: 0;
        color: var(--t-muted, #6b7280);
        line-height: 1.7;
    }

.event-section-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--t-accent, #0ea5e9) 25%, var(--t-border, #e5e7eb));
    background: color-mix(in srgb, var(--t-accent, #0ea5e9) 8%, white);
    color: var(--t-accent, #0ea5e9);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.event-guest-name {
    margin-bottom: 1.25rem;
}

    .event-guest-name .form-label {
        font-weight: 700;
        color: var(--t-text, #111827);
        margin-bottom: 0.45rem;
    }

    .event-guest-name .form-control,
    .event-password-gate-card .form-control {
        min-height: 52px;
        border-radius: 14px;
        border: 1px solid var(--t-border, #d1d5db);
        background: #fff;
        color: var(--t-text, #111827);
        padding-inline: 0.95rem;
        box-shadow: none;
    }

        .event-guest-name .form-control:focus,
        .event-password-gate-card .form-control:focus {
            border-color: var(--t-accent, #0ea5e9);
            box-shadow: var(--guest-ring);
        }

    .event-guest-name .form-text {
        margin-top: 0.45rem;
        color: var(--t-muted, #6b7280);
    }

.event-upload-dropzone {
    position: relative;
    border: 1.5px dashed var(--t-border, #d1d5db);
    border-radius: calc(var(--guest-radius-lg) - 4px);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.8) 100%);
    padding: clamp(1.4rem, 4vw, 2.4rem);
    text-align: center;
    cursor: pointer;
    transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

    .event-upload-dropzone:hover,
    .event-upload-dropzone:focus-visible,
    .event-upload-dropzone.is-dragging {
        border-color: var(--t-accent, #0ea5e9);
        box-shadow: var(--guest-ring);
        background: linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(248, 250, 252, 0.95) 100%);
        outline: none;
    }

    .event-upload-dropzone.is-disabled {
        cursor: not-allowed;
        opacity: 0.72;
    }

        .event-upload-dropzone.is-disabled:hover,
        .event-upload-dropzone.is-disabled:focus-visible {
            border-color: var(--t-border, #d1d5db);
            box-shadow: none;
            transform: none;
        }

.event-upload-dropzone-content {
    display: grid;
    justify-items: center;
    gap: 0.8rem;
}

.event-upload-dropzone-icon {
    width: 68px;
    height: 68px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: color-mix(in srgb, var(--t-accent, #0ea5e9) 10%, white);
    border: 1px solid color-mix(in srgb, var(--t-accent, #0ea5e9) 18%, var(--t-border, #d1d5db));
    color: var(--t-accent, #0ea5e9);
    font-size: 2rem;
    line-height: 1;
    font-weight: 300;
}

.event-upload-dropzone h3 {
    margin: 0;
    color: var(--t-text, #111827);
    font-size: 1.25rem;
}

.event-upload-dropzone p {
    margin: 0;
    max-width: 34rem;
    color: var(--t-muted, #6b7280);
    line-height: 1.6;
}

.event-selected-files-shell {
    margin-top: 1.25rem;
}

.event-selected-files-header {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.75rem;
}

    .event-selected-files-header h3 {
        margin: 0;
        font-size: 1rem;
        color: var(--t-text, #111827);
    }

.event-selected-files-note {
    color: var(--t-muted, #6b7280);
    font-size: 0.9rem;
}

.event-selected-files {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.65rem;
}

    .event-selected-files li {
        padding: 0.85rem 0.95rem;
        border: 1px solid var(--t-border, #e5e7eb);
        border-radius: 14px;
        background: color-mix(in srgb, var(--t-bg, #f8fafc) 70%, white);
        color: var(--t-text, #111827);
        font-size: 0.95rem;
        line-height: 1.45;
        overflow-wrap: anywhere;
    }

.event-upload-actions {
    display: grid;
    gap: 0.8rem;
    margin-top: 1.25rem;
}

.event-upload-progress {
    height: 12px;
    overflow: hidden;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--t-accent, #0ea5e9) 18%, var(--t-border, #e5e7eb));
    background: color-mix(in srgb, var(--t-bg, #f8fafc) 82%, white);
}

    .event-upload-progress[hidden],
    .event-upload-progress-text[hidden] {
        display: none;
    }

.event-upload-progress-bar {
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--t-accent, #0ea5e9), color-mix(in srgb, var(--t-accent, #0ea5e9) 45%, #22c55e));
    transition: width 0.22s ease;
}

.event-upload-progress.is-error .event-upload-progress-bar {
    background: #dc3545;
}

.event-upload-progress.is-complete .event-upload-progress-bar {
    background: #16a34a;
}

.event-upload-progress-text,
.event-upload-status {
    min-height: 1.5rem;
    margin: 0;
    color: var(--t-muted, #6b7280);
    line-height: 1.5;
}

.event-upload-progress-text {
    font-size: 0.92rem;
}

.event-state-actions {
    margin-top: 1.25rem;
}

.event-info-list {
    display: grid;
    gap: 0.9rem;
    margin-top: 1rem;
}

.event-info-item {
    display: grid;
    gap: 0.25rem;
    padding: 0.95rem 1rem;
    border: 1px solid var(--t-border, #e5e7eb);
    border-radius: 16px;
    background: color-mix(in srgb, var(--t-bg, #f8fafc) 70%, white);
}

    .event-info-item strong {
        color: var(--t-text, #111827);
        font-size: 0.96rem;
    }

    .event-info-item span {
        color: var(--t-muted, #6b7280);
        font-size: 0.94rem;
        line-height: 1.55;
    }

.event-password-gate {
    position: fixed;
    inset: 0;
    z-index: 1050;
    background: rgba(13, 15, 23, 0.74);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    backdrop-filter: blur(8px);
}

    .event-password-gate[hidden] {
        display: none;
    }

.event-password-gate-card {
    width: min(100%, 420px);
    background: var(--t-surface, #fff);
    color: var(--t-text, #111827);
    border: 1px solid var(--t-border, #e5e7eb);
    border-radius: 24px;
    padding: 1.4rem;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.event-password-gate-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0.3rem 0.7rem;
    margin-bottom: 0.85rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--t-accent, #0ea5e9) 10%, white);
    color: var(--t-accent, #0ea5e9);
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.event-password-gate-card h2 {
    margin: 0 0 0.55rem;
    line-height: 1.15;
}

/* Upload thumbnails have compact media-tile states that need CSS grid rather than Bootstrap columns. */
.event-my-uploads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.9rem;
}

.event-my-upload-item {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    background: color-mix(in srgb, var(--t-bg, #f8fafc) 78%, #eef2f7);
    border: 1px solid var(--t-border, #e5e7eb);
    aspect-ratio: 1;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

    .event-my-upload-item img,
    .event-my-upload-item video {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        background: #f2f4f7;
    }

.event-my-upload-delete {
    position: absolute;
    top: 8px;
    right: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.72);
    color: #fff;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(6px);
    transition: transform 0.18s ease, background-color 0.18s ease;
}

    .event-my-upload-delete:hover,
    .event-my-upload-delete:focus-visible {
        transform: scale(1.04);
        background: rgba(220, 53, 69, 0.92);
        outline: none;
    }

.btn.btn-primary,
.btn.btn-outline-primary {
    min-height: 50px;
    font-weight: 700;
}

.btn.btn-primary {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

    .btn.btn-primary:disabled {
        opacity: 0.65;
        box-shadow: none;
    }

@media (max-width: 991.98px) {
    .event-upload-layout {
        grid-template-columns: 1fr;
    }

    .event-upload-side-card {
        position: static;
    }
}

@media (max-width: 767.98px) {
    .event-guest-shell {
        width: min(100%, calc(100% - 1rem));
        margin-top: 0.9rem;
    }

    .event-guest-card {
        padding: 1rem;
        border-radius: 20px;
    }

    .event-guest-hero {
        padding: 3.4rem 0.85rem 1.5rem;
    }

    .event-guest-subtitle {
        font-size: 0.96rem;
    }

    .event-guest-hero-nav {
        gap: 0.6rem;
    }

    .event-guest-hero-nav-link {
        width: 100%;
        min-height: 46px;
    }

    .event-upload-dropzone {
        padding: 1.15rem 0.9rem;
    }

    .event-upload-dropzone-icon {
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
    }

    .event-upload-dropzone h3 {
        font-size: 1.12rem;
    }

    .event-selected-files li {
        font-size: 0.92rem;
    }

    .event-my-uploads-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem;
    }

    .event-password-gate-card {
        padding: 1.15rem;
        border-radius: 20px;
    }
}

@media (max-width: 399.98px) {
    .event-my-uploads-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Source: wwwroot/css/guestbook.css */
/* =============================================================
   Guestbook public page — modals, hero buttons, uploads
   ============================================================= */

/* ---- Password gate ---- */
.event-password-gate {
    position: fixed;
    inset: 0;
    z-index: 1060;
    background: rgba(13, 15, 23, .85);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    backdrop-filter: blur(4px);
}

    .event-password-gate[hidden] {
        display: none;
    }

.event-password-gate-card {
    background: var(--t-surface, #fff);
    border-radius: 12px;
    padding: 2rem;
    max-width: 380px;
    width: 100%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, .3);
}

/* ---- Hero buttons + gallery hint ---- */
.gb-hero-btns {
    margin-top: 1.75rem;
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
}

    .gb-hero-btns .btn {
        min-width: 180px;
    }

/* The "N photos below ↓" link — sits below the buttons, always centered */
.gb-gallery-hint {
    margin-top: 0.75rem;
    display: flex;
    justify-content: center;
}

    .gb-gallery-hint .event-guest-hero-nav-link {
        font-size: 0.85rem;
        padding: 0.45rem 1.25rem;
        min-height: unset;
        width: auto;
        flex: none;
    }

/* ---- Modal base ---- */
.gb-modal {
    position: fixed;
    inset: 0;
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

    .gb-modal[hidden] {
        display: none;
    }

.gb-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(13, 15, 23, .72);
    backdrop-filter: blur(5px);
}

.gb-modal-dialog {
    position: relative;
    background: var(--t-surface, #fff);
    border: 1px solid var(--t-border, #e5e7eb);
    border-radius: 18px;
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    box-shadow: 0 24px 64px rgba(0, 0, 0, .22);
    display: flex;
    flex-direction: column;
}

.gb-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 1.5rem;
    border-bottom: 1px solid var(--t-border, #e5e7eb);
    flex-shrink: 0;
}

    .gb-modal-header h2 {
        margin: 0;
        font-size: 1.05rem;
        font-weight: 600;
        color: var(--t-text, #111827);
    }

.gb-modal-close {
    background: none;
    border: none;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    cursor: pointer;
    color: var(--t-muted, #6b7280);
    font-size: 1rem;
    transition: color .15s, background .15s;
    flex-shrink: 0;
}

    .gb-modal-close:hover {
        color: var(--t-text, #111827);
        background: var(--t-bg, #f1f5f9);
    }

.gb-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.25rem 1.5rem;
    min-height: 0;
}

.gb-modal-footer {
    border-top: 1px solid var(--t-border, #e5e7eb);
    padding: 1rem 1.5rem;
    flex-shrink: 0;
}

/* ---- File list (upload modal) ---- */
.gb-file-list {
    max-height: 88px;
    overflow-y: auto;
    margin: 0.5rem 0 0;
    padding-left: 1.1rem;
    font-size: 0.8rem;
    color: var(--t-muted, #6b7280);
    line-height: 1.6;
}

.gb-status-text {
    margin: 0.5rem 0 0;
    font-size: 0.83rem;
    min-height: 1.2em;
    color: var(--t-muted, #6b7280);
    text-align: center;
}

.gb-limit-reached-notice {
    margin: 0.6rem 0 0;
    font-size: 0.82rem;
    color: #b45309;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 6px;
    padding: 0.45rem 0.75rem;
    text-align: center;
}

    .gb-limit-reached-notice[hidden] {
        display: none;
    }

/* ---- Upload success state ---- */
.gb-success-state {
    text-align: center;
    padding: 1.5rem 0.5rem 0.5rem;
}

.gb-success-icon {
    font-size: 2.75rem;
    color: #22c55e;
    display: block;
    margin-bottom: 0.75rem;
}

.gb-success-state h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

/* ---- My uploads grid ---- */
.gb-my-uploads-empty {
    text-align: center;
    padding: 2rem 0;
    color: var(--t-muted, #6b7280);
}

.event-my-uploads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 0.6rem;
}

.event-my-upload-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background: #f0f0f0;
    aspect-ratio: 1;
}

    .event-my-upload-item img,
    .event-my-upload-item video {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

/* Delete button: always visible (works on touch/mobile too) */
.event-my-upload-delete {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(15, 23, 42, .55);
    border: none;
    color: #fff;
    border-radius: 7px;
    width: 30px;
    height: 30px;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: background .15s, transform .12s;
    backdrop-filter: blur(6px);
}

    .event-my-upload-delete:hover,
    .event-my-upload-delete:focus-visible {
        background: rgba(220, 53, 69, .92);
        transform: scale(1.1);
    }

/* ---- No-album placeholder ---- */
.gb-no-album {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 1.5rem;
    text-align: center;
    gap: 0.35rem;
    color: var(--t-muted, #9ca3af);
}

.gb-no-album-icon {
    font-size: 2.25rem;
    opacity: 0.45;
    margin-bottom: 0.5rem;
}

.gb-no-album-text {
    font-size: 1rem;
    font-weight: 500;
    margin: 0;
}

.gb-no-album-sub {
    font-size: 0.85rem;
    margin: 0;
    opacity: 0.75;
}

/* ---- Guest album section — keep header/pagination centered ---- */
.guest-album-section {
    padding: 0 0.5rem;
}

.guest-album-header {
    justify-content: space-between;
}
/* Filter buttons: lock border-radius + reduce height */
.guest-album-filter-btn {
    border-radius: 0.25rem !important;
    padding-top: 0.18rem !important;
    padding-bottom: 0.18rem !important;
    line-height: 1.3 !important;
}

/* ---- Title + download-link stacked ---- */
.guest-album-header-title {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
}

/* ---- View toggle buttons ---- */
.guest-album-view-toggle {
    display: flex;
    gap: 3px;
    align-items: center;
    flex-shrink: 0;
}

.guest-album-view-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.7rem;
    height: 1.7rem;
    border: 1.5px solid var(--t-border, #d1d5db);
    border-radius: 6px;
    background: var(--t-surface, #f9fafb);
    color: var(--t-muted, #9ca3af);
    cursor: pointer;
    font-size: 0.7rem;
    padding: 0;
    transition: border-color 0.1s, color 0.1s, background 0.1s;
}

    .guest-album-view-btn:hover {
        border-color: var(--t-muted, #9ca3af);
        color: var(--t-text, #374151);
        background: var(--t-surface, #f3f4f6);
    }

    .guest-album-view-btn.is-active {
        background: var(--t-text, #374151);
        border-color: var(--t-text, #374151);
        color: #fff;
    }
/* Download modal buttons: force flex centering so template btn-primary overrides don't misalign content */
#downloadModal .btn {
    display: flex;
    align-items: center;
    justify-content: center;
}

.album-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

/* ---- Mobile ---- */
@media (max-width: 600px) {
    /* Modals stay centered, just use full width with a small margin */
    .gb-modal {
        padding: 0.75rem;
        align-items: center;
    }

    .gb-modal-dialog {
        border-radius: 18px;
        max-height: 88vh;
        max-width: 100%;
    }

    .gb-hero-btns {
        flex-direction: column;
        align-items: center;
    }

        .gb-hero-btns .btn {
            width: 100%;
            max-width: 300px;
            min-width: unset;
        }
    /* Larger touch targets for delete on small screens */
    .event-my-upload-delete {
        width: 34px;
        height: 34px;
        font-size: 13px;
    }
    /* Tighter grid in narrow modal */
    .event-my-uploads-grid {
        grid-template-columns: repeat(auto-fill, minmax(85px, 1fr));
        gap: 0.4rem;
    }
}

/* Source: Web/Views/Account/ForgotPassword.cshtml */
.auth-helper {
    color: var(--muted);
    font-size: 0.95rem;
    margin: 0 0 1.5rem;
}

.auth-actions {
    display: flex;
    justify-content: center;
    margin-top: 1.25rem;
}

/* Source: Web/Views/Events/AlbumV2.cshtml */
.album-section {
    background: var(--bg);
    min-height: calc(100vh - 220px);
}

.album-panel {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--line);
    border-radius: 28px;
    box-shadow: 0 16px 34px rgba(53, 39, 71, 0.09), 0 6px 14px rgba(168, 146, 214, 0.1);
    padding: 1.75rem;
}

.album-back {
    color: var(--purple);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.92rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

    .album-back:hover {
        color: var(--ink);
    }

.album-title {
    color: var(--ink);
    font-weight: 800;
    letter-spacing: -0.01em;
    margin: 0;
}

.album-status-pill {
    display: inline-flex;
    align-items: center;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    white-space: nowrap;
}

    .album-status-pill.is-active {
        background: linear-gradient(135deg, rgba(168, 146, 214, 0.2), rgba(243, 167, 160, 0.25));
        color: #6a4fae;
        border: 1px solid rgba(168, 146, 214, 0.4);
    }

    .album-status-pill.is-expired {
        background: rgba(111, 98, 125, 0.15);
        color: var(--muted);
        border: 1px solid rgba(111, 98, 125, 0.3);
    }

.album-stat-card {
    background: linear-gradient(135deg, rgba(201, 182, 228, 0.18), rgba(246, 211, 162, 0.14));
    border-radius: 22px;
    padding: 1rem 1.25rem;
    min-width: 150px;
    flex: 1;
}

.album-stat-value {
    display: block;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--ink);
    line-height: 1.1;
}

.album-stat-label {
    display: block;
    font-size: 0.82rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 700;
    margin-top: 0.3rem;
}

.album-alert {
    background: rgba(246, 211, 162, 0.25);
    border: 1px solid rgba(243, 167, 160, 0.45);
    color: var(--ink);
    border-radius: 18px;
    padding: 0.9rem 1.1rem;
    font-size: 0.95rem;
}

.album-empty {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--line);
    border-radius: 28px;
    padding: 3rem 2rem;
    text-align: center;
}

    .album-empty p {
        color: var(--muted);
        margin: 0 0 1rem;
    }

.album-filter-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1.1rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    background: #fff;
    color: var(--ink);
    border: 1px solid var(--line);
    transition: transform 160ms ease, border-color 160ms ease;
}

    .album-filter-pill:hover {
        color: var(--ink);
        border-color: var(--purple);
        transform: translateY(-1px);
    }

    .album-filter-pill.is-active {
        background: linear-gradient(135deg, #8f73c7, #F3A7A0);
        color: #fff;
        /* border:0 instead of transparent — a transparent 1px ring still shows
           as a faint halo because the page background bleeds through it. */
        border: 0;
        padding: calc(0.5rem + 1px) calc(1.1rem + 1px);
    }

.album-page-size-form {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

    .album-page-size-form label {
        color: var(--muted);
        font-weight: 700;
        font-size: 0.88rem;
        margin: 0;
    }

    .album-page-size-form select {
        border-radius: 999px;
        border: 1px solid var(--line);
        padding: 0.35rem 2rem 0.35rem 0.9rem;
        background-color: #fff;
        color: var(--ink);
        font-weight: 700;
        font-size: 0.88rem;
    }

.album-toolbar-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.85rem;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--ink);
    transition: transform 160ms ease, border-color 160ms ease, opacity 160ms ease, background 160ms ease;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
}

    .album-toolbar-btn:hover:not(:disabled) {
        border-color: var(--purple);
        color: var(--ink);
        transform: translateY(-1px);
    }

    .album-toolbar-btn:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

    .album-toolbar-btn.danger {
        color: #b63d53;
        border-color: rgba(182, 61, 83, 0.3);
    }

        .album-toolbar-btn.danger:hover:not(:disabled) {
            border-color: #b63d53;
            background: rgba(182, 61, 83, 0.08);
        }

    .album-toolbar-btn.primary {
        background: linear-gradient(135deg, #8f73c7, #F3A7A0);
        color: #fff;
        /* No transparent 1px ring halo — drop the border entirely and pad to
           compensate so the button stays the same visual size. */
        border: 0;
        padding: calc(0.45rem + 1px) calc(0.9rem + 1px);
    }

        .album-toolbar-btn.primary:hover:not(:disabled) {
            color: #fff;
            border: 0;
        }

    .album-toolbar-btn i {
        font-size: 0.85rem;
    }

    /* Kill global .button::after chevron inheritance from landing.css (line 222
       adds content: "chevron_right" to .button/.header-cta — and any ambient
       rule that might leak a trailing pseudo onto these pills). We boost
       specificity with a tag qualifier so we always win over .button::after. */
    a.album-toolbar-btn::before,
    a.album-toolbar-btn::after,
    button.album-toolbar-btn::before,
    button.album-toolbar-btn::after,
    a.album-filter-pill::before,
    a.album-filter-pill::after,
    button.album-view-btn::before,
    button.album-view-btn::after,
    .album-toolbar-btn::before,
    .album-toolbar-btn::after,
    .album-filter-pill::before,
    .album-filter-pill::after,
    .album-view-btn::before,
    .album-view-btn::after {
        content: none !important;
        display: none !important;
    }

/* Phones: tighten padding + font but keep labels visible so buttons remain self-explanatory */
@media (max-width: 575.98px) {
    .album-toolbar-btn {
        padding: 0.4rem 0.75rem;
        font-size: 0.8rem;
        gap: 0.35rem;
    }

        .album-toolbar-btn i {
            font-size: 0.78rem;
        }

    .album-filter-pill {
        padding: 0.35rem 0.85rem;
        font-size: 0.82rem;
    }
}

/* ---- View toggle (density) ---- */
.album-view-toggle {
    display: inline-flex;
    gap: 4px;
    align-items: center;
    flex-shrink: 0;
}

.album-view-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    color: var(--muted);
    cursor: pointer;
    font-size: 0.85rem;
    padding: 0;
    transition: border-color 160ms ease, color 160ms ease, background 160ms ease, transform 160ms ease;
}

    .album-view-btn:hover {
        border-color: var(--purple);
        color: var(--ink);
    }

    .album-view-btn.is-active {
        background: linear-gradient(135deg, #8f73c7, #F3A7A0);
        /* Kill the 1px ring halo — border:0 + matching box-sizing so the button
           stays the same 2rem × 2rem square as its siblings. */
        border: 0;
        width: calc(2rem);
        height: calc(2rem);
        box-shadow: inset 0 0 0 0 transparent;
        color: #fff;
    }

.album-selection-count {
    color: var(--muted);
    font-weight: 700;
    font-size: 0.88rem;
}

.album-page-summary {
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 600;
}

.album-grid {
    display: grid;
    gap: 0.75rem;
    /* Phone default (normal view): force exactly 2 columns so there's a clear
           visual step between compact (3), normal (2) and large (1). */
    grid-template-columns: repeat(2, 1fr);
}

    /* ---- View mode density variants ---- */
    .album-grid.album-grid--compact {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.45rem;
    }

@media (min-width: 576px) {
    .album-grid {
        gap: 1rem;
        grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    }

        .album-grid.album-grid--compact {
            grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
            gap: 0.55rem;
        }

        .album-grid.album-grid--large {
            grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
        }
}

.album-grid.album-grid--compact .album-item {
    border-radius: 14px;
}
/* Compact: no meta strip, controls hug the tile corners, smaller icons */
.album-grid.album-grid--compact .album-item-meta {
    display: none;
}

.album-grid.album-grid--compact .album-item-checkbox-wrap {
    top: 4px;
    left: 4px;
    width: 1.6rem;
    height: 1.6rem;
}

.album-grid.album-grid--compact .album-item-check-visual {
    width: 1.5rem;
    height: 1.5rem;
}

.album-grid.album-grid--compact .album-item-check-icon {
    font-size: 1.3rem;
}

.album-grid.album-grid--compact .album-item-delete-btn {
    top: 4px;
    right: 4px;
    width: 24px;
    height: 24px;
    font-size: 0.68rem;
}

.album-grid.album-grid--compact .album-item-download-overlay {
    bottom: 4px;
    right: 4px;
    width: 1.6rem;
    height: 1.6rem;
    font-size: 0.7rem;
}

/* Large: download overlay can breathe a bit more */
.album-grid.album-grid--large .album-item-download-overlay {
    bottom: calc(2.8rem + 10px);
}

.album-item {
    position: relative;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 22px;
    overflow: hidden;
    transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

    .album-item:hover {
        transform: translateY(-3px);
        box-shadow: 0 16px 32px rgba(53, 39, 71, 0.1);
    }

    .album-item.is-selected {
        border-color: var(--purple);
        box-shadow: 0 0 0 3px rgba(168, 146, 214, 0.28);
    }

/* ---- Custom checkbox ---- */
.album-item-checkbox-wrap {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    margin: 0;
}

.album-item-check {
    position: absolute;
    inset: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    cursor: pointer;
}

.album-item-check-visual {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.9rem;
    height: 1.9rem;
    transition: transform 160ms ease;
    pointer-events: none;
    filter: drop-shadow(0 2px 3px rgba(16, 24, 40, 0.55));
}

.album-item-check-icon {
    position: absolute;
    font-size: 1.65rem;
    line-height: 1;
    transition: opacity 160ms ease, transform 160ms ease;
}

.album-item-check-icon--on {
    color: #8f73c7;
    opacity: 0;
    transform: scale(0.7);
}

.album-item-check:focus-visible ~ .album-item-check-visual {
    outline: 2px solid var(--purple);
    outline-offset: 3px;
    border-radius: 50%;
}

/* ---- Delete (trash) ---- */
.album-item-delete-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(182, 61, 83, 0.92);
    border: none;
    color: #fff;
    font-size: 0.82rem;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 8px rgba(53, 39, 71, 0.2);
    opacity: 0;
    transition: background 160ms ease, transform 160ms ease, opacity 160ms ease;
}

.album-item:hover .album-item-delete-btn {
    opacity: 1;
}

.album-item-delete-btn:hover:not(:disabled) {
    background: #8c2a3e;
    transform: scale(1.08);
}

/* Touch devices / phones: always visible */
@media (hover: none), (max-width: 575.98px) {
    .album-item-delete-btn {
        opacity: 1;
    }
}

/* ---- Download overlay (per-item) ---- */
.album-item-download-overlay {
    position: absolute;
    right: 10px;
    bottom: calc(2.4rem + 10px);
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: rgba(53, 39, 71, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: #fff;
    text-decoration: none;
    font-size: 0.82rem;
    opacity: 0;
    transition: opacity 160ms ease, background 160ms ease, transform 160ms ease;
}

.album-item:hover .album-item-download-overlay {
    opacity: 1;
}

.album-item-download-overlay:hover {
    background: rgba(53, 39, 71, 0.85);
    color: #fff;
    transform: scale(1.08);
}

@media (hover: none), (max-width: 575.98px) {
    .album-item-download-overlay {
        opacity: 1;
    }
}

.album-item-thumb {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    position: relative;
    /* Kill native iOS "save image" / "copy image" long-press menu, and keep
           the long-press gesture from highlighting text while the user holds. */
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}

    .album-item-thumb img,
    .album-item-thumb video {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        -webkit-user-drag: none;
    }

.album-item-video {
    background: #030303;
}

    .album-item-video video:not([src]) {
        opacity: 0;
    }

.album-item-video--tap-load {
    cursor: pointer;
}

.album-item-video-lazy-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.85rem;
    color: #fff;
    background: #030303;
    text-align: center;
    pointer-events: none;
    transition: opacity 160ms ease, visibility 160ms ease;
}

.album-item-video-lazy-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.35rem;
    height: 2.35rem;
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    font-size: 0.9rem;
}

.album-item-video-lazy-text {
    max-width: 10.5rem;
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1.25;
}

.album-item-video.is-video-loading .album-item-video-lazy-text::after {
    content: "...";
}

.album-item-video.is-video-ready .album-item-video-lazy-overlay {
    opacity: 0;
    visibility: hidden;
}

/* ---- Selection mode (entered via long-press or any checkbox check) ----
       Visual cue: selected items keep their purple ring (see .is-selected above);
       unselected items get a light dim so the selected ones pop. */
.album-grid.is-selecting .album-item:not(.is-selected) {
    opacity: 0.72;
    transition: opacity 160ms ease;
}

.album-grid.is-selecting .album-item-thumb {
    cursor: pointer;
}

.album-item-video-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(53, 39, 71, 0.82);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    z-index: 2;
}

.album-item-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.8rem;
    font-size: 0.82rem;
}

.album-item-uploader {
    color: var(--ink);
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}

.album-item-size {
    color: var(--muted);
    font-size: 0.78rem;
    margin-left: auto;
}


.album-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
    color: var(--muted);
    font-weight: 600;
}

    .album-pagination .album-toolbar-btn.disabled {
        opacity: 0.4;
        pointer-events: none;
    }

@media (max-width: 720px) {
    .album-panel {
        padding: 1.25rem;
    }
}

/* Source: Web/Views/Events/Create.cshtml */
.create-wrap {
    background: var(--bg);
}

.create-panel {
    border: 0;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 16px 34px rgba(53, 39, 71, 0.09), 0 6px 14px rgba(168, 146, 214, 0.1);
    padding: 1.75rem;
    border: 2px solid white;
}

.create-section-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--ink);
    margin: 0 0 .25rem;
}

.create-section-subtitle {
    color: var(--muted);
    font-size: .95rem;
    margin: 0 0 1.1rem;
}

.create-field-label {
    color: #51366b;
    font-weight: 800;
    font-size: .92rem;
    margin-bottom: .4rem;
    display: block;
}

.create-wrap .form-control,
.create-wrap .form-select {
    border-radius: 18px;
    border: 1px solid var(--line);
    background: #fff;
    padding: .85rem 1rem;
    color: var(--ink);
    font-size: 1rem;
    transition: border-color 180ms ease, box-shadow 180ms ease;
}

    .create-wrap .form-control:focus,
    .create-wrap .form-select:focus {
        border-color: var(--purple);
        box-shadow: 0 0 0 4px rgba(168, 146, 214, 0.18);
        outline: none;
    }

.create-wrap .text-danger {
    color: #b63d53 !important;
    font-size: .85rem;
}

.plan-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(53, 39, 71, 0.12);
}

.btn-check:checked + label {
    border: 2px solid var(--purple);
}


.plan-card-price {
    font-size: 1.25rem;
    font-weight: 800;
}

    .plan-card-price.is-free {
        background: linear-gradient(135deg, #8f73c7, #F3A7A0);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        color: transparent;
    }

    .plan-card-price.is-paid {
        color: var(--ink);
    }


.plan-card-bullets {
    list-style: none;
    padding: 0;
    margin: .25rem 0 0;
    font-size: .88rem;
    color: var(--ink);
}

    .plan-card-bullets li {
        display: flex;
        gap: .5rem;
        align-items: flex-start;
        padding: .2rem 0;
    }

        .plan-card-bullets li::before {
            content: "\2713";
            color: var(--purple);
            font-weight: 800;
            flex-shrink: 0;
        }

.plan-card-chip {
    display: none;
    align-self: flex-start;
    font-size: .72rem;
    color: #fff;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
    background: linear-gradient(135deg, #8f73c7, #F3A7A0);
    padding: .25rem .65rem;
    border-radius: 999px;
    margin-bottom: .35rem;
}

.btn-check:checked + .plan-card .plan-card-chip {
    display: inline-block;
}

.addon-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: .85rem;
}


.addon-price {
    color: var(--purple);
    font-weight: 900;
    white-space: nowrap;
}

/* Custom checkbox */
.create-wrap .form-check {
    padding-left: 0;
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    flex-wrap: wrap;
}

.create-wrap .form-check-input {
    float: none;
    margin: .15rem 0 0 0;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    border: 2px solid rgba(168, 146, 214, 0.5);
    border-radius: 7px;
    background-color: #fff;
    cursor: pointer;
    transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

    .create-wrap .form-check-input:hover {
        border-color: var(--purple);
    }

    .create-wrap .form-check-input:focus {
        border-color: var(--purple);
        box-shadow: 0 0 0 4px rgba(168, 146, 214, 0.22);
        outline: none;
    }

    .create-wrap .form-check-input:checked {
        background-color: var(--purple);
        border-color: var(--purple);
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M4 8.5l2.6 2.6L12 5.5'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: center;
        background-size: 70% 70%;
    }

.create-wrap .form-check-label {
    color: var(--ink);
    font-weight: 700;
    font-size: .98rem;
    cursor: pointer;
    padding-top: 1px;
}

.create-wrap .form-check .form-text {
    width: 100%;
    padding-left: 34px;
    color: var(--muted);
    font-size: .88rem;
}

.create-back-link {
    color: var(--purple);
    font-weight: 700;
    text-decoration: none;
    font-size: .92rem;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
}

    .create-back-link:hover {
        color: var(--ink);
    }

/* Source: Web/Views/Events/EditV2.cshtml */
/* Edit page — landing design */
.edit-wrap {
    background: var(--bg);
}

.edit-panel {
    border: 0;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 16px 34px rgba(53,39,71,0.09), 0 6px 14px rgba(168,146,214,0.1);
}

.edit-status-pill {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    border-radius: 999px;   
    font-size: .78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .02em;
}

    .edit-status-pill.is-active {
        color: #6a4fae;
        background: linear-gradient(135deg, rgba(168, 146, 214, 0.2), rgba(243, 167, 160, 0.25));
        border: 1px solid rgba(168, 146, 214, 0.4);
    }

    .edit-status-pill.is-expired {
        color: var(--muted);
        background: rgba(111, 98, 125, 0.15);
        border: 1px solid rgba(111, 98, 125, 0.3);
    }

    .edit-status-pill.is-pending {
        color: #8a5e00;
        background: rgba(246, 180, 80, 0.18);
        border: 1px solid rgba(246, 180, 80, 0.45);
    }

.edit-plan-chip {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .35rem .85rem;
    border-radius: 999px;
    font-weight: 800;
    font-size: .82rem;
    background: linear-gradient(135deg, rgba(168, 146, 214, 0.18), rgba(243, 167, 160, 0.18));
    border: 1px solid rgba(168, 146, 214, 0.35);
    color: #51366b;
}

    .edit-plan-chip i {
        color: var(--purple);
        font-size: .85rem;
    }

    .edit-plan-chip .chip-sep {
        width: 4px;
        height: 4px;
        border-radius: 50%;
        background: var(--muted);
        opacity: .6;
    }

    .edit-plan-chip .chip-price {
        color: var(--ink);
        font-weight: 800;
    }

        .edit-plan-chip .chip-price.is-free {
            color: #4a8e6a;
        }

/* Landing-themed banners (replace bootstrap alerts) */
.edit-banner {
    font-weight: 600;
    line-height: 1.4;
}

    .edit-banner > i {
        font-size: 1.1rem;
        margin-top: .1rem;
    }

    .edit-banner strong {
        font-weight: 800;
    }

.edit-banner-muted {
    color: var(--muted);
    font-weight: 500;
}

.edit-banner.is-info {
    background: rgba(201, 182, 228, 0.22);
    border: 1px solid rgba(168, 146, 214, 0.38);
    color: var(--ink);
}

    .edit-banner.is-info > i {
        color: var(--purple);
    }

.edit-banner.is-warning {
    background: rgba(246, 211, 162, 0.35);
    border: 1px solid rgba(246, 180, 110, 0.5);
    color: #6b4a12;
}

    .edit-banner.is-warning > i {
        color: #b47a21;
    }

.edit-banner.is-danger {
    background: rgba(243, 167, 160, 0.28);
    border: 1px solid rgba(221, 105, 96, 0.45);
    color: #7a2a2a;
}

    .edit-banner.is-danger > i {
        color: #c04a3f;
    }

.edit-banner.is-expired {
    background: rgba(111, 98, 125, 0.14);
    border: 1px solid rgba(111, 98, 125, 0.3);
    color: var(--ink);
}

    .edit-banner.is-expired > i {
        color: var(--muted);
    }

.edit-section-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--ink);
    margin-bottom: .25rem;
}

.edit-section-subtitle {
    color: var(--muted);
    font-size: .95rem;
    margin: 0 0 1rem;
}

/* Template picker uses Bootstrap grid; custom classes style selectable cards. */
.tpl-picker-item.is-hidden {
    display: none;
}

.tpl-card {
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 22px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 10px 22px rgba(53,39,71,0.08);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

    .tpl-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 16px 32px rgba(53,39,71,0.12);
    }

    .tpl-card.is-selected {
        border-color: var(--purple);
        box-shadow: 0 0 0 3px rgba(168,146,214,.22), 0 16px 32px rgba(53,39,71,0.12);
    }

.tpl-card-thumb {
    height: 140px;
    overflow: hidden;
    background: #F7F5FB;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .tpl-card-thumb > * {
        width: 100%;
        height: 100%;
    }

.tpl-card-foot {
    padding: .7rem .85rem .85rem;
    display: flex;
    flex-direction: column;
    gap: .15rem;
}

.tpl-card-name {
    font-size: .95rem;
    font-weight: 800;
    color: var(--ink);
}

.tpl-card-chip {
    display: none;
    font-size: .75rem;
    color: var(--purple);
    font-weight: 800;
}

.tpl-card.is-selected .tpl-card-chip {
    display: inline;
}

/* Share card */
.share-url {
    width: 100%;
    min-height: 48px;
    padding: .8rem 1rem;
    border: 1px solid rgba(168,146,214,.52);
    border-radius: 18px;
    background: #fff;
    color: var(--ink);
    font-size: .95rem;
}

.share-socials {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
}

.share-social {
    width: 46px;
    height: 46px;
    border-radius: 999px;
    border: 1px solid rgba(168,146,214,.4);
    background: #fff;
    color: #51366b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.15rem;
    line-height: 1;
    transition: transform .15s ease, box-shadow .18s ease, color .18s ease, border-color .18s ease, background .18s ease;
}

    .share-social:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 22px rgba(53,39,71,.14);
    }

    .share-social:focus-visible {
        outline: 0;
        box-shadow: 0 0 0 3px rgba(168, 146, 214, 0.28);
    }

    .share-social.is-mail:hover {
        color: #fff;
        background: #8f73c7;
        border-color: #8f73c7;
    }

    .share-social.is-sms:hover {
        color: #fff;
        background: #4a8e6a;
        border-color: #4a8e6a;
    }

    .share-social.is-whatsapp:hover {
        color: #fff;
        background: #25D366;
        border-color: #25D366;
    }

    .share-social.is-messenger:hover {
        color: #fff;
        background: #0084FF;
        border-color: #0084FF;
    }

    .share-social.is-viber:hover {
        color: #fff;
        background: #7360F2;
        border-color: #7360F2;
    }

/* Upgraded album header pill */
.album-pill-link {
    color: var(--ink);
    background: rgba(201, 182, 228, 0.22);
    border: 1px solid rgba(168, 146, 214, 0.45);
    border-radius: 999px;
    font-weight: 800;
    font-size: .85rem;
    letter-spacing: 0.02em;
    text-decoration: none;
    transition: transform .15s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}

    .album-pill-link:hover {
        transform: translateY(-1px);
        background: rgba(168, 146, 214, 0.28);
        border-color: var(--purple);
        color: var(--ink);
        box-shadow: 0 10px 22px rgba(168, 146, 214, 0.22);
    }

    .album-pill-link i {
        color: var(--purple);
    }

/* Full-width "Otvori cijeli album" CTA at the bottom of media aside */
.album-cta-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.15rem;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(168, 146, 214, 0.14) 0%, rgba(243, 167, 160, 0.14) 100%);
    border: 1px solid rgba(168, 146, 214, 0.38);
    color: var(--ink);
    text-decoration: none;
    transition: transform .18s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
}

    .album-cta-card:hover {
        transform: translateY(-2px);
        color: var(--ink);
        border-color: var(--purple);
        background: linear-gradient(135deg, rgba(168, 146, 214, 0.22) 0%, rgba(243, 167, 160, 0.22) 100%);
        box-shadow: 0 16px 34px rgba(168, 146, 214, 0.22);
    }

        .album-cta-card:hover .album-cta-arrow {
            transform: translateX(4px);
        }

.album-cta-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #8f73c7 0%, #A892D6 55%, #F3A7A0 100%);
    color: #fff;
    font-size: 1.25rem;
    box-shadow: 0 8px 18px rgba(168, 146, 214, 0.32);
}

.album-cta-text {
    display: flex;
    flex-direction: column;
    gap: .15rem;
    flex: 1;
    min-width: 0;
}

.album-cta-title {
    font-weight: 800;
    font-size: 1rem;
    line-height: 1.25;
}

.album-cta-sub {
    font-size: .82rem;
    color: var(--muted);
    line-height: 1.35;
}

.album-cta-arrow {
    color: var(--purple);
    flex-shrink: 0;
    transition: transform .2s ease;
}

.carousel-nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--line);
    color: var(--ink);
    cursor: pointer;
    transition: border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

    .carousel-nav-btn:hover:not(:disabled) {
        border-color: var(--purple);
        color: var(--purple);
        transform: translateY(-1px);
    }

    .carousel-nav-btn:disabled {
        opacity: 0.45;
        cursor: not-allowed;
    }

    .carousel-nav-btn::after {
        content: none !important;
    }

.live-share-box {
    border: 1px solid rgba(168,146,214,.28);
    background: rgba(247,245,251,.6);
    border-radius: 22px;
    padding: 1rem;
}

/* Media preview */
.media-stats {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem .75rem;
    color: var(--muted);
    font-size: .95rem;
}

    .media-stats strong {
        color: var(--ink);
    }

    .media-stats .sep {
        color: #c0c7d0;
    }

.media-carousel-track {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: .85rem;
}

@media (max-width: 767.98px) {
    .media-carousel-track {
        grid-template-columns: 1fr;
    }
}

.media-item {
    border: 0;
    border-radius: 22px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 10px 22px rgba(53,39,71,.08);
}

    .media-item > a {
        display: block;
        aspect-ratio: 1/1;
        background: #f5f5f5;
    }

    .media-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.media-item-meta {
    display: flex;
    gap: .75rem;
    justify-content: space-between;
    align-items: center;
    padding: .55rem .75rem;
    font-size: .82rem;
    color: var(--muted);
}

.media-item-uploader {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}

/* Usage bar */
.usage-banner {
    border: 1px solid var(--usage-banner-border, rgba(168, 146, 214, 0.38));
    background: var(--usage-banner-bg, rgba(201, 182, 228, 0.22));
    border-radius: 22px;
    padding: 1rem 1.25rem;
}

.usage-bar {
    background: rgba(53, 39, 71, 0.08);
    border-radius: 999px;
    height: 10px;
    overflow: hidden;
}

.usage-bar-fill {
    background: var(--usage-progress-fill, linear-gradient(135deg, #8f73c7 0%, #A892D6 55%, #F3A7A0 100%));
    height: 100%;
    border-radius: 999px;
    transition: width .3s ease;
    width: var(--usage-progress-width, 0%);
}

.usage-emphasis {
    color: var(--usage-emphasis-color, var(--muted));
}

/* Custom checkboxes — Zabavko palette */
.edit-wrap .form-check {
    padding-left: 0;
    display: flex;
    align-items: flex-start;
    gap: .75rem;
}

.edit-wrap .form-check-input {
    float: none;
    margin-left: 0;
    margin-top: .15rem;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    border: 2px solid rgba(168, 146, 214, 0.5);
    border-radius: 7px;
    background-color: #fff;
    cursor: pointer;
    transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

    .edit-wrap .form-check-input:hover:not(:disabled) {
        border-color: var(--purple);
    }

    .edit-wrap .form-check-input:focus {
        border-color: var(--purple);
        box-shadow: 0 0 0 4px rgba(168, 146, 214, 0.22);
        outline: none;
    }

    .edit-wrap .form-check-input:checked {
        background-color: var(--purple);
        border-color: var(--purple);
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M4 8.5l2.6 2.6L12 5.5'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: center;
        background-size: 70% 70%;
    }

    .edit-wrap .form-check-input:disabled {
        opacity: .45;
        cursor: not-allowed;
    }

.edit-wrap .form-check-label {
    color: var(--ink);
    font-weight: 700;
    font-size: .98rem;
    cursor: pointer;
    padding-top: 1px;
}

.edit-wrap .form-check .form-text {
    display: block;
    color: var(--muted);
    font-size: .88rem;
    margin-top: .15rem;
}
/* When a form-check contains a nested form-text, lay label + helper in a column */
.edit-wrap .form-check:has(.form-text) {
    align-items: flex-start;
}

    .edit-wrap .form-check:has(.form-text) > .form-check-label,
    .edit-wrap .form-check:has(.form-text) > .form-text {
        display: block;
    }


/* Occasions panel + modal */
.occ-list {
    display: flex;
    flex-direction: column;
    gap: .7rem;
}

.occ-row {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    align-items: center;
    gap: .9rem;
    padding: .85rem 1rem;
    border-radius: 20px;
    background: rgba(247, 245, 251, .7);
    border: 1px solid rgba(168, 146, 214, 0.28);
}

.occ-row-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(201, 182, 228, 0.42), rgba(243, 167, 160, 0.4));
    color: #51366b;
    font-size: 1.05rem;
    flex-shrink: 0;
}

.occ-row-main {
    min-width: 0;
}

.occ-row-title {
    font-weight: 800;
    color: var(--ink);
    font-size: 1rem;
    line-height: 1.25;
    display: flex;
    flex-wrap: wrap;
    gap: .4rem .6rem;
    align-items: baseline;
}

    .occ-row-title .occ-type-pill {
        font-size: .72rem;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: .04em;
        color: #51366b;
        background: rgba(168, 146, 214, 0.2);
        border: 1px solid rgba(168, 146, 214, 0.4);
        border-radius: 999px;
        padding: .15rem .55rem;
    }

.occ-row-meta {
    margin-top: .2rem;
    display: flex;
    flex-wrap: wrap;
    gap: .35rem .85rem;
    color: var(--muted);
    font-size: .9rem;
    font-weight: 650;
}

    .occ-row-meta i {
        color: var(--purple);
        margin-right: .3rem;
    }

.occ-row-actions {
    display: flex;
    gap: .35rem;
    flex-shrink: 0;
}

.occ-icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    border: 1px solid rgba(168, 146, 214, 0.38);
    background: #fff;
    color: #51366b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color .15s, color .15s, background .15s, transform .15s;
}

    .occ-icon-btn:hover {
        transform: translateY(-1px);
        border-color: var(--purple);
        color: var(--purple);
    }

    .occ-icon-btn.is-danger {
        color: #7a2a2a;
        border-color: rgba(243, 167, 160, 0.5);
        background: rgba(243, 167, 160, 0.12);
    }

        .occ-icon-btn.is-danger:hover {
            background: rgba(243, 167, 160, 0.24);
            color: #7a2a2a;
            border-color: rgba(243, 167, 160, 0.7);
        }

    .occ-icon-btn:disabled {
        opacity: .55;
        cursor: wait;
        transform: none;
    }

.occ-empty {
    color: var(--muted);
    font-weight: 650;
    padding: 1rem 0 .25rem;
}

/* Zabavko-themed modal (self-contained — landing layout doesn't load guestbook.css) */
.z-modal {
    position: fixed;
    inset: 0;
    z-index: 1080;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

    .z-modal[hidden] {
        display: none;
    }

.z-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(53, 39, 71, .55);
    backdrop-filter: blur(5px);
}

.z-modal-dialog {
    position: relative;
    background: #fff;
    border: 1px solid rgba(168, 146, 214, 0.32);
    border-radius: 26px;
    width: 100%;
    max-width: 540px;
    max-height: 90vh;
    box-shadow: 0 28px 64px rgba(53, 39, 71, 0.22), 0 10px 22px rgba(168, 146, 214, 0.18);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 0;
}

    .z-modal-dialog > form {
        display: flex;
        flex-direction: column;
        flex: 1 1 auto;
        min-height: 0;
        overflow: hidden;
    }

.z-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.15rem 1.4rem;
    border-bottom: 1px solid rgba(168, 146, 214, 0.22);
    flex-shrink: 0;
}

    .z-modal-header h3 {
        margin: 0;
        font-size: 1.1rem;
        font-weight: 900;
        color: var(--ink);
    }

.z-modal-close {
    background: none;
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: 1.05rem;
    cursor: pointer;
    transition: color .15s, background .15s;
}

    .z-modal-close:hover {
        color: var(--ink);
        background: rgba(168, 146, 214, 0.14);
    }

.z-modal-body {
    flex: 1 1 auto;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 1.25rem 1.4rem;
    min-height: 0;
    -webkit-overflow-scrolling: touch;
}

.z-modal-footer {
    border-top: 1px solid rgba(168, 146, 214, 0.22);
    padding: 1rem 1.4rem;
    display: flex;
    justify-content: flex-end;
    gap: .6rem;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.z-field-label {
    display: block;
    color: #51366b;
    font-weight: 800;
    font-size: .88rem;
    margin-bottom: .35rem;
}

.z-control {
    width: 100%;
    min-height: 46px;
    padding: .7rem .95rem;
    border: 1px solid rgba(168,146,214,.5);
    border-radius: 16px;
    background: #fff;
    color: var(--ink);
    font-weight: 650;
}

    .z-control:focus {
        outline: 0;
        border-color: var(--purple);
        box-shadow: 0 0 0 4px rgba(168, 146, 214, 0.2);
    }

.z-form-error {
    color: #7a2a2a;
    font-weight: 750;
    font-size: .88rem;
    margin-top: .6rem;
    min-height: 1.2em;
}

/* Occasion type picker inside modal */
.occ-type-picker {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .5rem;
}

.occ-type-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.occ-type-option label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .3rem;
    padding: .75rem .4rem;
    border-radius: 16px;
    border: 2px solid rgba(168, 146, 214, 0.28);
    background: #fff;
    color: #5a4c74;
    font-weight: 800;
    font-size: .85rem;
    cursor: pointer;
    text-align: center;
    transition: all .15s ease;
}

    .occ-type-option label i {
        font-size: 1.25rem;
        color: var(--purple);
    }

.occ-type-option input:checked + label {
    border-color: var(--purple);
    background: linear-gradient(135deg, rgba(168, 146, 214, 0.16), rgba(243, 167, 160, 0.16));
    color: var(--ink);
    box-shadow: 0 8px 18px rgba(168, 146, 214, 0.22);
}

    .occ-type-option input:checked + label i {
        color: #6a4fae;
    }

@media (max-width: 575.98px) {
    .occ-row {
        grid-template-columns: 40px minmax(0, 1fr);
        gap: .7rem;
    }

    .occ-row-actions {
        grid-column: 1 / -1;
        justify-content: flex-end;
    }

    .occ-row-icon {
        width: 40px;
        height: 40px;
    }

    .z-modal {
        padding: .5rem;
        align-items: stretch;
    }

    .z-modal-dialog {
        max-height: calc(100vh - 1rem);
        max-height: calc(100dvh - 1rem);
        border-radius: 22px;
        max-width: 100%;
    }

    .z-modal-header {
        padding: .9rem 1rem;
    }

    .z-modal-body {
        padding: 1rem;
    }

    .z-modal-footer {
        padding: .75rem 1rem;
    }

    .occ-type-picker {
        gap: .4rem;
    }

    .occ-type-option label {
        padding: .55rem .25rem;
        font-size: .78rem;
        border-radius: 14px;
    }

        .occ-type-option label i {
            font-size: 1.05rem;
        }

    .z-modal-footer .button {
        flex: 1 1 auto;
    }
}

/* Addon upsell panel */
.upsell-addon-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .75rem;
    padding: .85rem .95rem;
    border: 1px solid rgba(168, 146, 214, .28);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.7);
    margin-bottom: .65rem;
}

.upsell-addon-info strong {
    display: block;
    color: var(--ink);
    font-size: .95rem;
    margin-bottom: .15rem;
}

.upsell-addon-info > span {
    display: block;
    color: var(--muted);
    font-size: .85rem;
}

.upsell-addon-price {
    color: var(--purple);
    font-weight: 900;
    font-size: 1rem;
    white-space: nowrap;
    padding-top: .1rem;
}

.upsell-feature-tag {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    font-size: .75rem;
    font-weight: 700;
    color: #51366b;
    background: linear-gradient(135deg, rgba(168, 146, 214, 0.15), rgba(243, 167, 160, 0.12));
    border: 1px solid rgba(168, 146, 214, 0.28);
    border-radius: 999px;
    padding: .2rem .55rem;
}

/* Source: Web/Views/Events/Index.cshtml */
.events-section {
    background: var(--bg);
    min-height: calc(100vh - 220px);
}

.events-empty {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--line);
    border-radius: 28px;
    box-shadow: 0 16px 34px rgba(53, 39, 71, 0.09), 0 6px 14px rgba(168, 146, 214, 0.1);
    padding: 3.5rem 2rem;
    text-align: center;
}

.events-empty-icon {
    font-size: 3rem;
    color: var(--purple);
    margin-bottom: 1rem;
}

.events-empty h2 {
    color: var(--ink);
    font-weight: 800;
    margin: 0 0 0.5rem;
}

.events-empty p {
    color: var(--muted);
    margin: 0 0 1.5rem;
}

.event-card-title {
    color: var(--ink);
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    margin: 0;
}

.event-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    white-space: nowrap;
}

    .event-status-pill.is-active {
        background: linear-gradient(135deg, rgba(168, 146, 214, 0.2), rgba(243, 167, 160, 0.25));
        color: #6a4fae;
        border: 1px solid rgba(168, 146, 214, 0.4);
    }

    .event-status-pill.is-expired {
        background: rgba(111, 98, 125, 0.15);
        color: var(--muted);
        border: 1px solid rgba(111, 98, 125, 0.3);
    }

    .event-status-pill.is-pending {
        background: rgba(246, 180, 80, 0.18);
        color: #8a5e00;
        border: 1px solid rgba(246, 180, 80, 0.45);
    }

.event-card-pay-cta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.1rem;
    margin-top: 0.5rem;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(168, 146, 214, 0.18), rgba(201, 182, 228, 0.22));
    border: 1px solid rgba(168, 146, 214, 0.45);
    color: #51366b;
    font-weight: 800;
    font-size: 0.88rem;
    text-decoration: none;
    transition: background 0.18s, box-shadow 0.18s;
}

    .event-card-pay-cta i {
        color: var(--purple);
    }

    .event-card-pay-cta:hover {
        background: linear-gradient(135deg, rgba(168, 146, 214, 0.28), rgba(201, 182, 228, 0.34));
        color: #352747;
        box-shadow: 0 4px 14px rgba(168, 146, 214, 0.25);
    }

.event-card-stats {
    background: linear-gradient(135deg, rgba(201, 182, 228, 0.15), rgba(246, 211, 162, 0.12));
    border-radius: 18px;
    padding: 0.9rem 1.1rem;
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.event-card-stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--ink);
    font-size: 0.92rem;
}

    .event-card-stat i {
        color: var(--purple);
        font-size: 1rem;
    }

    .event-card-stat strong {
        font-weight: 800;
        font-size: 1.05rem;
    }

    .event-card-stat .stat-label {
        color: var(--muted);
        font-weight: 500;
    }

.event-card-deletion {
    color: var(--muted);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

    .event-card-deletion i {
        color: var(--purple);
    }

.event-card-plan {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    align-self: flex-start;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-weight: 800;
    font-size: 0.82rem;
    background: linear-gradient(135deg, rgba(168, 146, 214, 0.18), rgba(243, 167, 160, 0.18));
    border: 1px solid rgba(168, 146, 214, 0.35);
    color: #51366b;
}

    .event-card-plan i {
        color: var(--purple);
        font-size: 0.85rem;
    }

    .event-card-plan .plan-price {
        color: var(--ink);
        font-weight: 700;
    }

        .event-card-plan .plan-price.is-free {
            color: #4a8e6a;
        }

.event-card-addons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: -0.25rem;
}

.event-addon-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(168, 146, 214, 0.35);
    color: #51366b;
}

    .event-addon-tag i {
        font-size: 0.72rem;
        color: var(--purple);
    }

.cancel-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(53, 39, 71, 0.45);
    backdrop-filter: blur(4px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

    .cancel-modal-overlay.is-open {
        display: flex;
    }

.cancel-modal {
    background: #fff;
    border-radius: 24px;
    padding: 2rem;
    max-width: 420px;
    width: 90%;
    box-shadow: 0 24px 60px rgba(53, 39, 71, 0.18);
    text-align: center;
}

.cancel-modal-icon {
    font-size: 2.2rem;
    color: #c0392b;
    margin-bottom: 1rem;
}

.cancel-modal h3 {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--ink);
    margin: 0 0 0.5rem;
}

.cancel-modal p {
    color: var(--muted);
    font-size: 0.92rem;
    margin: 0 0 1.5rem;
    line-height: 1.55;
}

.cancel-modal-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

    .cancel-modal-actions .btn-keep {
        padding: 0.6rem 1.4rem;
        border-radius: 12px;
        border: 1px solid var(--line);
        background: #fff;
        color: var(--ink);
        font-weight: 700;
        cursor: pointer;
        transition: background 0.15s;
    }

        .cancel-modal-actions .btn-keep:hover {
            background: #f5f3fa;
        }

    .cancel-modal-actions .btn-confirm {
        padding: 0.6rem 1.4rem;
        border-radius: 12px;
        border: none;
        background: #c0392b;
        color: #fff;
        font-weight: 800;
        cursor: pointer;
        transition: background 0.15s;
    }

        .cancel-modal-actions .btn-confirm:hover {
            background: #a93226;
        }

.event-card-slug {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--purple);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.88rem;
    word-break: break-all;
}

    .event-card-slug:hover {
        color: var(--ink);
        text-decoration: underline;
    }

.event-card-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 0.5rem;
}

    .event-card-actions .button {
        width: 100%;
    }

/* Source: Web/Views/Events/Invitations.cshtml */
.guest-wrap {
    background: var(--bg);
}

.guest-panel {
    border: 0;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 16px 34px rgba(53,39,71,0.09), 0 6px 14px rgba(168,146,214,0.1);
}

.guest-section-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--ink);
    margin-bottom: .25rem;
}

.guest-section-subtitle {
    color: var(--muted);
    font-size: .95rem;
    margin: 0;
}

.guest-field-label {
    display: block;
    color: #51366b;
    font-weight: 800;
    font-size: .88rem;
    margin-bottom: .35rem;
}

.guest-control {
    width: 100%;
    min-height: 48px;
    padding: .75rem 1rem;
    border: 1px solid rgba(168,146,214,.52);
    border-radius: 18px;
    background: #fff;
    color: var(--ink);
    font-weight: 650;
}

    .guest-control:focus {
        outline: 0;
        border-color: var(--purple);
        box-shadow: 0 0 0 4px rgba(168, 146, 214, 0.22);
    }

.guest-ajax-status {
    color: var(--muted);
    font-weight: 750;
    font-size: .88rem;
    min-height: 1.35rem;
}

.guest-count-pill {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .4rem .9rem;
    border-radius: 999px;
    background: rgba(201, 182, 228, 0.22);
    border: 1px solid rgba(168, 146, 214, 0.45);
    color: var(--ink);
    font-weight: 800;
    font-size: .85rem;
}

.guest-list {
    display: flex;
    flex-direction: column;
}

.guest-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    padding: 1.15rem 0;
    border-top: 1px solid rgba(168,146,214,.24);
}

    .guest-row:first-child {
        border-top: 0;
        padding-top: 0;
    }

    .guest-row:last-child {
        padding-bottom: 0;
    }

@media (min-width: 992px) {
    .guest-row {
        grid-template-columns: minmax(0, 1fr) minmax(330px, 380px);
        align-items: start;
    }
}

.guest-main {
    min-width: 0;
}

.guest-name-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .55rem;
    margin-bottom: .4rem;
}

.guest-name {
    color: var(--ink);
    font-size: 1.05rem;
    font-weight: 900;
    line-height: 1.25;
}

.guest-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem .75rem;
    color: var(--muted);
    font-size: .9rem;
    font-weight: 650;
}

.guest-chip {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    border-radius: 999px;
    padding: .28rem .7rem;
    font-weight: 800;
    font-size: .78rem;
    border: 1px solid transparent;
}

.guest-status-pill {
    padding: .34rem .78rem;
    color: #51366b;
    background: linear-gradient(135deg, rgba(201, 182, 228, 0.32), rgba(255, 255, 255, 0.92));
    border-color: rgba(168, 146, 214, 0.45);
    box-shadow: 0 6px 14px rgba(168, 146, 214, 0.13);
}

    .guest-status-pill.is-yes {
        color: #51366b;
        background: linear-gradient(135deg, rgba(201, 182, 228, 0.36), rgba(168, 146, 214, 0.14));
        border-color: rgba(168, 146, 214, 0.48);
    }

    .guest-status-pill.is-no {
        color: #7a2a2a;
        background: linear-gradient(135deg, rgba(243, 167, 160, 0.25), rgba(255, 255, 255, 0.92));
        border-color: rgba(243, 167, 160, 0.5);
    }

    .guest-status-pill.is-maybe {
        color: #6b4a12;
        background: linear-gradient(135deg, rgba(246, 211, 162, 0.38), rgba(255, 255, 255, 0.92));
        border-color: rgba(246, 211, 162, 0.65);
    }

.guest-extra-pill {
    color: var(--ink);
    background: rgba(247, 245, 251, 0.85);
    border-color: rgba(168, 146, 214, 0.28);
}

.guest-attendees {
    margin-top: .75rem;
}

.guest-attendees-toggle {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    border: 1px solid rgba(168, 146, 214, 0.32);
    border-radius: 999px;
    background: rgba(201, 182, 228, 0.16);
    color: #51366b;
    cursor: pointer;
    font-weight: 850;
    padding: .42rem .8rem;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

    .guest-attendees-toggle:hover {
        background: rgba(168, 146, 214, 0.23);
        border-color: rgba(168, 146, 214, 0.52);
        color: var(--ink);
    }

    .guest-attendees-toggle:focus-visible {
        outline: 0;
        box-shadow: 0 0 0 3px rgba(168, 146, 214, 0.26);
    }

    .guest-attendees-toggle i {
        color: var(--purple);
        font-size: .76rem;
        transition: transform .18s ease;
    }

.guest-attendees.is-open .guest-attendees-toggle i {
    transform: rotate(180deg);
}

.guest-attendees-list {
    margin: .65rem 0 0;
    padding: .75rem 1rem .75rem 1.3rem;
    border-radius: 16px;
    background: rgba(247,245,251,.7);
    color: var(--ink);
    font-weight: 650;
}

    .guest-attendees-list[hidden] {
        display: none !important;
    }

.guest-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 48px;
    gap: .65rem;
    align-items: end;
    align-content: start;
    min-width: 0;
}

    .guest-actions > * {
        min-width: 0;
    }

.guest-status-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: .6rem;
    align-items: end;
    min-width: 0;
}

    .guest-status-form > div {
        min-width: 0;
    }

    .guest-status-form .button {
        min-height: 48px;
        white-space: nowrap;
        width: 100%;
        padding-left: 1rem;
        padding-right: 1rem;
    }

@media (min-width: 768px) {
    .guest-status-form {
        grid-template-columns: minmax(0, 1fr) auto;
    }

        .guest-status-form .button {
            width: auto;
        }
}

.guest-delete-form {
    display: flex;
    justify-content: stretch;
    align-self: end;
}

.guest-delete-button {
    width: 48px;
    min-width: 48px;
    min-height: 48px;
    border: 1px solid rgba(243, 167, 160, 0.5);
    border-radius: 999px;
    background: rgba(243, 167, 160, 0.14);
    color: #7a2a2a;
    box-shadow: 0 10px 20px rgba(243, 167, 160, 0.14);
}

@media (max-width: 575.98px) {
    .guest-wrap {
        padding-left: .75rem !important;
        padding-right: .75rem !important;
    }

    .guest-panel {
        border-radius: 20px;
    }

        .guest-panel.p-4,
        .guest-panel.p-lg-5 {
            padding: 1rem !important;
        }

    .guest-name-line,
    .guest-meta {
        gap: .45rem;
    }

    .guest-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .guest-actions {
        grid-template-columns: minmax(0, 1fr) 44px;
        gap: .5rem;
    }

    .guest-status-form {
        display: contents;
    }

        .guest-status-form > div {
            grid-column: 1 / -1;
        }

        .guest-status-form .button {
            grid-column: 1;
            min-height: 44px;
            padding-left: .75rem;
            padding-right: .75rem;
        }

    .guest-delete-form {
        grid-column: 2;
        grid-row: 2;
    }

    .guest-delete-button {
        width: 44px;
        min-width: 44px;
        min-height: 44px;
    }
}

.guest-delete-button::after {
    content: none;
}

.guest-delete-button:hover {
    background: rgba(243, 167, 160, 0.24);
    color: #7a2a2a;
}

.guest-delete-button:disabled {
    cursor: wait;
    opacity: .65;
    transform: none;
}

.guest-empty {
    border-top: 1px solid rgba(168,146,214,.24);
    padding-top: 1.5rem;
    color: var(--muted);
    font-weight: 650;
}

.guest-list.is-loading {
    opacity: .58;
    pointer-events: none;
}

.z-response-group {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .5rem;
}

.z-response-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.z-response-option label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .3rem;
    padding: .75rem .4rem;
    border-radius: 16px;
    border: 2px solid rgba(168, 146, 214, 0.28);
    background: #fff;
    color: #5a4c74;
    font-weight: 800;
    font-size: .85rem;
    cursor: pointer;
    text-align: center;
    transition: all .15s ease;
}

    .z-response-option label i {
        font-size: 1.25rem;
        color: var(--purple);
    }

.z-response-option input:checked + label {
    border-color: var(--purple);
    background: linear-gradient(135deg, rgba(168, 146, 214, 0.16), rgba(243, 167, 160, 0.16));
    color: var(--ink);
    box-shadow: 0 8px 18px rgba(168, 146, 214, 0.22);
}

    .z-response-option input:checked + label i {
        color: #6a4fae;
    }

.add-guest-respondee-row {
    background: rgba(247, 245, 251, .7);
    border-radius: 16px;
    padding: .85rem;
    border: 1px solid rgba(168, 146, 214, 0.24);
    margin-bottom: .65rem;
}

    .add-guest-respondee-row .row-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: .45rem;
        font-weight: 800;
        color: #51366b;
        font-size: .82rem;
        letter-spacing: .06em;
        text-transform: uppercase;
    }

.add-guest-remove {
    background: transparent;
    border: 0;
    color: #a05e5e;
    font-weight: 800;
    padding: .2rem .45rem;
    cursor: pointer;
    border-radius: 8px;
}

    .add-guest-remove:hover {
        color: #7a2a2a;
        background: rgba(243, 167, 160, 0.14);
    }

.add-guest-add-respondee {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    margin-top: .35rem;
    padding: .55rem 1rem;
    background: rgba(168, 146, 214, 0.12);
    border: 1px dashed rgba(168, 146, 214, 0.5);
    border-radius: 999px;
    color: #6a4fae;
    font-weight: 800;
    cursor: pointer;
    font-size: .9rem;
}

    .add-guest-add-respondee:hover {
        background: rgba(168, 146, 214, 0.22);
    }

    .add-guest-add-respondee:disabled {
        opacity: .55;
        cursor: not-allowed;
    }

.guest-source-pill {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .25rem .55rem;
    border-radius: 999px;
    font-weight: 800;
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .04em;
}

    .guest-source-pill.is-digital {
        background: rgba(168, 146, 214, 0.18);
        color: #51366b;
        border: 1px solid rgba(168, 146, 214, 0.4);
    }

    .guest-source-pill.is-manual {
        background: rgba(243, 167, 160, 0.16);
        color: #7a2a2a;
        border: 1px solid rgba(243, 167, 160, 0.4);
    }

.guest-share-row {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
    margin-top: .65rem;
    align-items: center;
}

.guest-share-button, .guest-edit-respondees {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .45rem .85rem;
    border-radius: 999px;
    font-weight: 800;
    font-size: .8rem;
    border: 1px solid rgba(168, 146, 214, 0.4);
    background: rgba(168, 146, 214, 0.08);
    color: #51366b;
    cursor: pointer;
    transition: background .15s, border-color .15s, color .15s;
    line-height: 1;
}

    .guest-share-button:hover, .guest-edit-respondees:hover {
        background: rgba(168, 146, 214, 0.18);
        border-color: rgba(168, 146, 214, 0.6);
    }

    .guest-share-button.is-copied {
        background: rgba(129, 189, 150, 0.22);
        color: #1e5738;
        border-color: rgba(129, 189, 150, 0.55);
    }

    .guest-share-button[disabled] {
        opacity: .55;
        cursor: not-allowed;
    }

.guest-share-url {
    font-size: .78rem;
    color: var(--muted);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
    flex: 1 1 160px;
}

.contact-import-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    margin-bottom: 1rem;
}

    .contact-import-actions .button::after,
    .contact-import-row-remove::after {
        content: none;
    }

.contact-import-note {
    border: 1px solid rgba(168, 146, 214, 0.28);
    border-radius: 16px;
    background: rgba(201, 182, 228, 0.14);
    color: var(--muted);
    font-weight: 700;
    font-size: .86rem;
    padding: .75rem .9rem;
    margin-bottom: 1rem;
}

.contact-import-paste {
    border: 1px dashed rgba(168, 146, 214, 0.42);
    border-radius: 16px;
    background: rgba(247, 245, 251, .68);
    padding: .85rem;
    margin-bottom: 1rem;
}

    .contact-import-paste textarea {
        min-height: 126px;
        resize: vertical;
    }

.contact-import-summary {
    color: var(--muted);
    font-weight: 800;
    font-size: .88rem;
    margin: 1rem 0 .65rem;
}

.contact-import-empty {
    border: 1px solid rgba(168, 146, 214, 0.24);
    border-radius: 16px;
    background: rgba(247, 245, 251, .7);
    color: var(--muted);
    font-weight: 700;
    padding: .9rem;
}

.contact-import-list {
    display: grid;
    gap: .65rem;
}

.contact-import-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 38px;
    gap: .55rem;
    align-items: end;
    border: 1px solid rgba(168, 146, 214, 0.24);
    border-radius: 16px;
    background: rgba(247, 245, 251, .72);
    padding: .8rem;
}

.contact-import-row-remove {
    width: 38px;
    min-width: 38px;
    min-height: 38px;
    border: 1px solid rgba(243, 167, 160, 0.5);
    border-radius: 999px;
    background: rgba(243, 167, 160, 0.14);
    color: #7a2a2a;
    padding: 0;
}

@media (max-width: 575.98px) {
    .z-response-group {
        gap: .4rem;
    }

    .z-response-option label {
        padding: .55rem .25rem;
        font-size: .78rem;
        border-radius: 14px;
    }

        .z-response-option label i {
            font-size: 1.05rem;
        }

    .add-guest-respondee-row {
        padding: .7rem;
    }

    .contact-import-actions .button {
        width: 100%;
    }
}

/* Source: Web/Views/Events/PublicCloudflareV2.cshtml */
/* Swipe affordance — tells the browser we handle horizontal gestures ourselves */
#guestAlbum {
    touch-action: pan-y;
}

#guestAlbumGrid {
    cursor: grab;
    user-select: none;
}

    #guestAlbumGrid:active {
        cursor: grabbing;
    }

/* Source: Web/Views/Events/UpgradePlan.cshtml */
.upgrade-wrap {
    background: var(--bg);
}

.upgrade-panel {
    border: 0;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 16px 34px rgba(53, 39, 71, 0.09), 0 6px 14px rgba(168, 146, 214, 0.1);
    padding: 1.75rem;
}

.upgrade-back {
    color: var(--purple);
    text-decoration: none;
    font-weight: 700;
    font-size: .92rem;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
}

    .upgrade-back:hover {
        color: var(--ink);
    }

.plan-card {
    position: relative;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 22px;
    overflow: hidden;
    background: #fff;
    padding: 1.2rem 1.1rem 1.1rem;
    box-shadow: 0 10px 22px rgba(53, 39, 71, 0.08);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
    display: flex;
    flex-direction: column;
    gap: .35rem;
}

    .plan-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 16px 32px rgba(53, 39, 71, 0.12);
    }

.btn-check:checked + .plan-card {
    border-color: var(--purple);
    box-shadow: 0 0 0 3px rgba(168, 146, 214, .22), 0 16px 32px rgba(53, 39, 71, 0.12);
}

.btn-check:disabled + .plan-card {
    opacity: .75;
    cursor: default;
    border-color: rgba(168, 146, 214, 0.4);
    background: rgba(247, 245, 251, 0.7);
}

.plan-card-head {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: .1rem;
}

.plan-card-current-pill {
    font-size: .68rem;
    color: var(--muted);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
    background: rgba(111, 98, 125, 0.15);
    padding: .2rem .55rem;
    border-radius: 999px;
}

.btn-check:checked:not(:disabled) + .plan-card .plan-card-chip {
    display: inline-block;
}

.plan-card-price {
    font-size: 1.25rem;
    font-weight: 800;
}

    .plan-card-price.is-paid {
        color: var(--ink);
    }

.upgrade-info-banner {
    background: rgba(201, 182, 228, 0.18);
    border: 1px solid rgba(168, 146, 214, 0.35);
    color: var(--ink);
    border-radius: 18px;
    padding: .9rem 1.1rem;
    font-size: .92rem;
    display: flex;
    align-items: flex-start;
    gap: .6rem;
}

    .upgrade-info-banner i {
        color: var(--purple);
        margin-top: .15rem;
    }

.upgrade-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    align-items: center;
    margin-top: 1.5rem;
}

/* Source: Web/Views/Invitations/Index.cshtml */
.invite-share-card {
    margin-top: 1.5rem;
    padding: 1.25rem 1.1rem;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(168, 146, 214, 0.12), rgba(243, 167, 160, 0.1));
    border: 1px solid rgba(168, 146, 214, 0.35);
    text-align: left;
}

.invite-share-title {
    font-weight: 900;
    color: #352747;
    margin: 0 0 .3rem;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: .45rem;
}

.invite-share-sub {   
    font-weight: 600;
    margin: 0 0 .85rem;  
}

.invite-share-row {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    align-items: center;
}

.invite-share-url {
    flex: 1 1 200px;
    min-width: 0;
    padding: .55rem .8rem;
    border-radius: 12px;
    background: #fff;
    border: 1px solid rgba(168, 146, 214, 0.35);
    color: #352747;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: .8rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.invite-share-button {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .55rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(168, 146, 214, 0.5);
    background: rgba(168, 146, 214, 0.14);
    color: #51366b;
    font-weight: 800;
    font-size: .85rem;
    cursor: pointer;
    transition: background .15s, border-color .15s, color .15s;
}

    .invite-share-button:hover {
        background: rgba(168, 146, 214, 0.24);
        border-color: rgba(168, 146, 214, 0.65);
    }

    .invite-share-button.is-copied {
        background: rgba(129, 189, 150, 0.22);
        color: #1e5738;
        border-color: rgba(129, 189, 150, 0.55);
    }

.invite-hero {
    font-family: 'Montserrat', Arial, Helvetica, sans-serif;
    background: radial-gradient(circle at 20% 10%, rgba(168,146,214,0.22), transparent 55%), radial-gradient(circle at 85% 15%, rgba(243,167,160,0.18), transparent 55%), linear-gradient(180deg, #faf7ff 0%, #f4efff 100%);
    position: relative;
 
}

    .invite-hero .sparkle {
        z-index: 0;
        pointer-events: none;
        opacity: .65;
    }

.invite-panel {
    position: relative;
    z-index: 1;
    max-width: 760px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 28px;
    padding: 2.25rem 1.5rem;
    box-shadow: 0 24px 60px rgba(53, 39, 71, 0.1), 0 8px 20px rgba(168, 146, 214, 0.12);
}

@media (min-width: 768px) {
    .invite-panel {
        padding: 3rem 3rem;
    }
}

.invite-eyebrow {
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #7b5cc5;
}

.invite-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    color: #352747;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    line-height: 1.15;
    margin: .75rem 0 1rem;
}

.invite-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem .85rem;
    font-weight: 600;
    color: #5a4c74;
}

.invite-meta-pill {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .35rem .85rem;
    border-radius: 999px;
    background: rgba(168, 146, 214, 0.15);
    border: 1px solid rgba(168, 146, 214, 0.3);
    color: #51366b;
    font-size: .88rem;
}

.invite-section-title {
    font-weight: 800;
    color: #352747;
    margin-top: 2rem;
    margin-bottom: .5rem;
    font-size: 1.05rem;
}

.invite-response-group {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: 1fr;
    gap: .75rem;
    margin-top: 1rem;
    align-items: stretch;
}

.invite-response-option {
    display: flex;
    position: relative;
}

    .invite-response-option input {
        position: absolute;
        opacity: 0;
        pointer-events: none;
    }

    .invite-response-option label {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: .35rem;
        width: 100%;
        min-height: 108px;
        padding: 1rem .5rem;
        border-radius: 18px;
        border: 2px solid rgba(168, 146, 214, 0.3);
        background: #fff;
        color: #5a4c74;
        cursor: pointer;
        font-weight: 800;
        text-align: center;
        transition: all .18s ease;
        line-height: 1.15;
    }

        .invite-response-option label span {
            overflow-wrap: anywhere;
        }

        .invite-response-option label i {
            font-size: 1.5rem;
            color: #a892d6;
        }

    .invite-response-option input:checked + label {
        border-color: #a892d6;
        background: linear-gradient(135deg, rgba(168, 146, 214, 0.18), rgba(243, 167, 160, 0.18));
        color: #352747;
        box-shadow: 0 10px 22px rgba(168, 146, 214, 0.3);
    }

        .invite-response-option input:checked + label i {
            color: #6a4fae;
        }

.invite-respondee-row {
    background: #fbf9ff;
    border-radius: 18px;
    padding: 1rem;
    border: 1px solid rgba(168, 146, 214, 0.2);
    margin-bottom: .75rem;
}

    .invite-respondee-row .row-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: .5rem;
    }

    .invite-respondee-row .row-index {
        font-weight: 800;
        color: #6a4fae;
        font-size: .82rem;
        letter-spacing: .06em;
        text-transform: uppercase;
    }

.invite-remove-respondee {
    background: transparent;
    border: 0;
    color: #a05e5e;
    font-weight: 700;
    padding: .25rem .5rem;
    cursor: pointer;
}

    .invite-remove-respondee:hover {
        color: #7a2a2a;
    }

.invite-add-respondee {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin-top: .25rem;
    padding: .65rem 1.1rem;
    background: rgba(168, 146, 214, 0.12);
    border: 1px dashed rgba(168, 146, 214, 0.5);
    border-radius: 999px;
    color: #6a4fae;
    font-weight: 800;
    cursor: pointer;
}

    .invite-add-respondee:hover {
        background: rgba(168, 146, 214, 0.18);
    }

.invite-form-control {
    font-family: inherit;
    width: 100%;
    padding: .7rem .9rem;
    border-radius: 14px;
    border: 1px solid rgba(168, 146, 214, 0.3);
    background: #fff;
    color: #352747;
    font-weight: 600;
}

    .invite-form-control::placeholder {
        color: #8c819d;
        opacity: 1;
    }

    .invite-form-control:focus {
        outline: none;
        border-color: #a892d6;
        box-shadow: 0 0 0 4px rgba(168, 146, 214, 0.2);
    }

.invite-form-label {
    font-weight: 800;
    color: #352747;
    font-size: .85rem;
    letter-spacing: .02em;
    margin-bottom: .35rem;
}

.invite-error {
    color: #a05e5e;
    font-size: .82rem;
    font-weight: 700;
    margin-top: .2rem;
}

.invite-submit-row {
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
}

    .invite-submit-row .material-symbols-outlined {
        font-family: 'Material Symbols Outlined';
        font-variation-settings: "FILL" 0, "wght" 500, "GRAD" 0, "opsz" 24;
        line-height: 1;
    }

/* Occasion timeline */

.invite-timeline-heading {
    font-family: 'Montserrat', sans-serif;   
    color: #352747;
    font-size: 1.05rem;
    margin: 0 0 1rem;
    display: flex;
    align-items: center;
    gap: .5rem;
}

    .invite-timeline-heading i {
        color: #7b5cc5;
    }

.invite-timeline-list {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: .9rem;    
}

.invite-timeline-item {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: .9rem;
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 18px;
    padding: .85rem 1rem;
    border: 1px solid rgba(168, 146, 214, 0.22);
}

.invite-timeline-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #8f73c7 0%, #A892D6 55%, #F3A7A0 100%);
    color: #fff;
    font-size: 1.2rem;
    box-shadow: 0 10px 22px rgba(168, 146, 214, 0.28);
}

.invite-timeline-main {
    min-width: 0;
}

.invite-timeline-title {
    font-weight: 700;
    color: #352747;
    font-size: 1.02rem;
    line-height: 1.25;
    margin-bottom: .15rem;
    display: flex;
    flex-wrap: wrap;
    gap: .4rem .6rem;
    align-items: baseline;
}

.invite-timeline-type {
    display: inline-block;
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #51366b;
    background: rgba(168, 146, 214, 0.2);
    border: 1px solid rgba(168, 146, 214, 0.38);
    border-radius: 999px;
    padding: .12rem .55rem;
}

.invite-timeline-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem .85rem;
    color: #5a4c74;
    font-size: .9rem;
    font-weight: 650;
}

    .invite-timeline-meta i {
        color: #7b5cc5;
        margin-right: .25rem;
    }

.invite-timeline-time {
    color: #51366b;
    font-weight: 700;
    font-size: .95rem;
}

@media (max-width: 480px) {
    
    .invite-timeline-item {
        grid-template-columns: 44px minmax(0, 1fr);
        gap: .7rem;
        padding: .7rem .85rem;
    }

    .invite-timeline-icon {
        width: 44px;
        height: 44px;
        font-size: 1rem;
    }
}

/* Password gate */
.invite-password-gate {
    position: fixed;
    inset: 0;
    z-index: 1500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(35, 25, 55, .78);
    backdrop-filter: blur(6px);
    font-family: 'Montserrat', sans-serif;
}

    .invite-password-gate[hidden] {
        display: none;
    }

.invite-password-gate-card {
    width: min(100%, 420px);
    background: #fff;
    border-radius: 24px;
    padding: 1.75rem;
    box-shadow: 0 24px 60px rgba(53, 39, 71, 0.35);
    border: 1px solid rgba(168, 146, 214, 0.3);
}

.invite-password-gate-badge {
    display: inline-flex;
    align-items: center;
    padding: .3rem .75rem;
    margin-bottom: .9rem;
    border-radius: 999px;
    background: rgba(168, 146, 214, 0.2);
    color: #6a4fae;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.invite-password-gate-card h2 {
    margin: 0 0 .5rem;
    font-weight: 900;
    color: #352747;
    font-size: 1.25rem;
    line-height: 1.2;
}

.invite-password-gate-card p {
    color: #6c6683;
    font-size: .92rem;
    margin-bottom: 1rem;
}

.invite-password-gate-card .invite-form-control {
    margin-bottom: .75rem;
}

.invite-password-gate-card button {
    width: 100%;
    padding: .8rem 1rem;
    border-radius: 14px;
    border: none;
    background: linear-gradient(135deg, #8f73c7, #a892d6);
    color: #fff;
    font-family: inherit;
    font-weight: 800;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease;
}

    .invite-password-gate-card button:hover {
        box-shadow: 0 10px 22px rgba(168, 146, 214, 0.4);
        transform: translateY(-1px);
    }

    .invite-password-gate-card button:disabled {
        opacity: .6;
        cursor: not-allowed;
        transform: none;
        box-shadow: none;
    }

.invite-password-gate-error {
    color: #a05e5e;
    font-size: .85rem;
    font-weight: 700;
    margin-top: .6rem;
}

/* Tables section + modal */
.invite-tables-section {
    margin-top: 1.75rem;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(168, 146, 214, 0.28);
    border-radius: 22px;
}

.invite-tables-heading {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    color: #352747;
    font-size: 1.05rem;
    margin: 0 0 .35rem;
    display: flex;
    align-items: center;
    gap: .5rem;
}

    .invite-tables-heading i {
        color: #7b5cc5;
    }

.invite-tables-desc {
    color: #6c6683;
    font-size: .9rem;
    margin: 0 0 .9rem;
}

.invite-tables-open {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .7rem 1.15rem;
    background: linear-gradient(135deg, #8f73c7, #a892d6);
    color: #fff;
    border: none;
    border-radius: 999px;
    font-family: inherit;
    font-weight: 800;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease;
}

    .invite-tables-open:hover {
        box-shadow: 0 10px 22px rgba(168, 146, 214, 0.4);
        transform: translateY(-1px);
    }

    .invite-tables-open i {
        color: #fff;
    }

.invite-tables-modal {
    position: fixed;
    inset: 0;
    z-index: 1400;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    font-family: 'Montserrat', sans-serif;
}

    .invite-tables-modal[hidden] {
        display: none;
    }

.invite-tables-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(35, 25, 55, .72);
    backdrop-filter: blur(5px);
}

.invite-tables-dialog {
    position: relative;
    width: 100%;
    max-width: 560px;
    max-height: 85vh;
    background: #fff;
    border-radius: 22px;
    border: 1px solid rgba(168, 146, 214, 0.3);
    box-shadow: 0 24px 64px rgba(53, 39, 71, 0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.invite-tables-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(168, 146, 214, 0.22);
    flex-shrink: 0;
}

    .invite-tables-header h2 {
        margin: 0;
        font-size: 1.05rem;
        font-weight: 800;
        color: #352747;
        display: flex;
        align-items: center;
        gap: .5rem;
    }

        .invite-tables-header h2 i {
            color: #7b5cc5;
        }

.invite-tables-close {
    background: none;
    border: none;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: #5a4c74;
    cursor: pointer;
}

    .invite-tables-close:hover {
        background: rgba(168, 146, 214, 0.15);
        color: #352747;
    }

.invite-tables-body {
    padding: 1rem 1.25rem 1.25rem;
    overflow-y: auto;
}

.invite-table-block {
    background: #fbf9ff;
    border: 1px solid rgba(168, 146, 214, 0.22);
    border-radius: 16px;
    padding: .85rem 1rem;
    margin-bottom: .75rem;
}

    .invite-table-block:last-child {
        margin-bottom: 0;
    }

.invite-table-label {
    font-weight: 900;
    color: #352747;
    font-size: .98rem;
    margin-bottom: .45rem;
    display: flex;
    align-items: baseline;
    gap: .5rem;
}

.invite-table-count {
    font-size: .78rem;
    font-weight: 700;
    color: #7b5cc5;
    background: rgba(168, 146, 214, 0.15);
    border-radius: 999px;
    padding: .1rem .55rem;
}

.invite-table-guests {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: .25rem;
}

    .invite-table-guests li {
        font-size: .92rem;
        font-weight: 600;
        color: #51366b;
        padding: .25rem 0;
        border-bottom: 1px dashed rgba(168, 146, 214, 0.18);
    }

        .invite-table-guests li:last-child {
            border-bottom: none;
        }

.invite-table-empty {
    color: #8c819d;
    font-size: .88rem;
    font-style: italic;
    margin: 0;
}

/* Source: Web/Views/Invitations/Submitted.cshtml */
.invite-thanks-hero {
    min-height: 60vh; 
    background: radial-gradient(circle at 20% 10%, rgba(168,146,214,0.22), transparent 55%), radial-gradient(circle at 85% 15%, rgba(243,167,160,0.18), transparent 55%), linear-gradient(180deg, #faf7ff 0%, #f4efff 100%);
}

.invite-thanks-card {
    max-width: 560px;
    text-align: center;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 28px;
    padding: 3rem 2rem;
    box-shadow: 0 24px 60px rgba(53, 39, 71, 0.1), 0 8px 20px rgba(168, 146, 214, 0.12);
}

.invite-thanks-icon {
    font-size: 3.25rem;
    color: #a892d6;
    margin-bottom: 1rem;
}

.invite-thanks-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    color: #352747;
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    margin: 0 0 .5rem;
}

.invite-thanks-sub {
    color: #5a4c74;
    font-weight: 600;
    margin: 0 0 1.5rem;
}

.invite-thanks-event {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .4rem 1rem;
    border-radius: 999px;
    background: rgba(168, 146, 214, 0.15);
    border: 1px solid rgba(168, 146, 214, 0.3);
    color: #51366b;
    font-weight: 700;
    font-size: .9rem;
}
/* Source: Web/Views/LivePresentation/Index.cshtml */
.live-presentation-page {
    width: 100%;
    height: 100%;
    margin: 0;
    overflow: hidden;
    background: #030712;
    color: #ffffff;
    font-family: Arial, Helvetica, sans-serif;
}

.live-stage {
    position: fixed;
    inset: 0;
    overflow: hidden;
    background: #030712;
}

.live-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transform: translateX(6%) scale(1.04);
    filter: blur(8px);
    transition: opacity 900ms cubic-bezier(0.4, 0, 0.2, 1), transform 900ms cubic-bezier(0.4, 0, 0.2, 1), filter 900ms cubic-bezier(0.4, 0, 0.2, 1);
    background: #030712;
    will-change: opacity, transform, filter;
}

    .live-photo.is-active {
        opacity: 1;
        transform: translateX(0) scale(1);
        filter: blur(0px);
    }

    .live-photo.is-exiting {
        opacity: 0;
        transform: translateX(-6%) scale(0.97);
        filter: blur(6px);
    }

.live-overlay {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 5;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    padding: 2rem;
    background: linear-gradient(to top, rgba(3, 7, 18, 0.78), rgba(3, 7, 18, 0));
    pointer-events: none;
}

    .live-overlay[hidden] {
        display: none;
    }

.live-meta {
    color: rgba(255, 255, 255, 0.74);
    font-size: 0.95rem;
}

@media (max-width: 720px) {
    .live-overlay {
        align-items: start;
        flex-direction: column;
        padding: 1.25rem;
    }
}

/* Source: Web/Views/Payments/CheckoutResult.cshtml */
.payment-result {
    min-height: calc(100vh - 96px);
    background: var(--bg);
    position: relative;
    overflow: hidden;
}

    .payment-result::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(135deg, rgba(168, 146, 214, .22), rgba(243, 167, 160, .16)), url('/img/services.png') right 300px center / min(48vw, 620px) auto no-repeat;
        opacity: .92;
        pointer-events: none;
    }

.payment-shell {
    position: relative;
    z-index: 1;
    width: min(100%, 1080px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(220px, .7fr);
    gap: 2rem;
    align-items: center;
}

.payment-copy {
    background: rgba(255, 255, 255, .94);
    border: 1px solid rgba(53, 39, 71, .08);
    border-radius: 8px;
    box-shadow: 0 18px 40px rgba(53, 39, 71, .10);
    padding: clamp(1.25rem, 4vw, 3rem);
}

.payment-eyebrow {
    margin: 0 0 .85rem;
    color: var(--purple);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0;
    font-size: .78rem;
}

.payment-title {
    color: var(--ink);
    font-weight: 900;
    font-size: clamp(2rem, 6vw, 4.25rem);
    line-height: 1.02;
    margin: 0;
    letter-spacing: 0;
}

.payment-message {
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.7;
    margin: 1.1rem 0 0;
    max-width: 680px;
}

.payment-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .85rem;
    margin: 1.5rem 0;
}

.payment-summary-item {
    border: 1px solid rgba(168, 146, 214, .24);
    border-radius: 8px;
    padding: .95rem;
    background: rgba(247, 245, 251, .76);
}

    .payment-summary-item span {
        display: block;
        color: var(--muted);
        font-size: .82rem;
        font-weight: 800;
        margin-bottom: .3rem;
    }

    .payment-summary-item strong {
        color: var(--ink);
        font-size: 1rem;
        overflow-wrap: anywhere;
    }

.payment-status {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    border-radius: 8px;
    padding: .75rem .95rem;
    background: rgba(201, 182, 228, .22);
    color: var(--ink);
    font-weight: 800;
    margin-bottom: 1.25rem;
}

    .payment-status.is-canceled {
        background: rgba(243, 167, 160, .24);
    }

.payment-spinner {
    width: 18px;
    height: 18px;
    border: 3px solid rgba(168, 146, 214, .28);
    border-top-color: var(--purple);
    border-radius: 50%;
    animation: payment-spin .9s linear infinite;
}

.payment-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    align-items: center;
    margin-top: 1.4rem;
}

.payment-mascot {
    display: flex;
    justify-content: center;
    align-items: end;
    min-height: 320px;
}

    .payment-mascot img {
        width: min(100%, 340px);
        height: auto;
        filter: drop-shadow(0 18px 28px rgba(53, 39, 71, .16));
    }

@keyframes payment-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 900px) {
    .payment-result::before {
        background: linear-gradient(135deg, rgba(168, 146, 214, .24), rgba(243, 167, 160, .16)), url('/img/services.png') center bottom / 92vw auto no-repeat;
        opacity: .5;
    }

    .payment-shell {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .payment-summary {
        grid-template-columns: 1fr;
    }

    .payment-mascot {
        min-height: 180px;
        order: -1;
    }

        .payment-mascot img {
            width: min(70vw, 230px);
        }
}

/* Source: Web/Views/Shared/_LandingHeader.cshtml */
/* Hover bridge: keeps the dropdown open while the cursor crosses the
       10px gap between the toggle button and the menu panel. Without this,
       :hover drops on the dead zone and the menu snaps shut mid-travel. */
@media (min-width: 1200px) {
    .main-nav .nav-dropdown {
        position: relative;
    }

        .main-nav .nav-dropdown:hover::after,
        .main-nav .nav-dropdown.is-open::after {
            content: "";
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            height: 14px;
            background: transparent;
            pointer-events: auto;
        }
}

/* Lock body scroll while the mobile hamburger is open so the page
       behind doesn't drift under the floating panel. The panel itself has
       its own overflow-y: auto so its contents stay scrollable. Scoped to
       mobile breakpoints only — on desktop the nav is inline and the
       `nav-open` class never gets applied. */
@media (max-width: 1199.98px) {
    body.nav-open {
        overflow: hidden;
    }
}

/* ---------- Mobile hamburger menu polish ---------- */
@media (max-width: 1199.98px) {
    .main-nav.is-open {
        padding: 1rem 1rem 1.25rem !important;
        gap: .15rem !important;
        max-height: calc(100vh - 90px);
        overflow-y: auto;
        /* Inherits the template's floating-card base from landing.css
               (position: absolute; border-radius: 28px; background: #fff;
               box-shadow: var(--shadow)). We only amplify the shadow so
               the card reads clearly above the hero behind it — same
               deep-ink + lavender palette the rest of index.cshtml uses,
               just stronger. No accent borders or extra colours. */
        box-shadow: 0 28px 70px rgba(53, 39, 71, 0.28), 0 12px 32px rgba(168, 146, 214, 0.22);
    }

        .main-nav.is-open > a,
        .main-nav.is-open .nav-drop-toggle {
            font-size: 1rem;
            font-weight: 700;
            color: #352747;
            padding: .75rem 1rem !important;
            border-radius: 14px;
            transition: background 160ms ease, color 160ms ease;
        }

            .main-nav.is-open > a:hover,
            .main-nav.is-open > a:focus-visible,
            .main-nav.is-open .nav-drop-toggle:hover,
            .main-nav.is-open .nav-drop-toggle:focus-visible {
                background: rgba(168, 146, 214, 0.14);
                color: #352747;
            }

        .main-nav.is-open .nav-dropdown {
            gap: 0 !important;
        }

        .main-nav.is-open .dropdown-menu {
            padding: .25rem .25rem .5rem !important;
            margin: 0 !important;
            background: transparent;
        }

            .main-nav.is-open .dropdown-menu a {
                padding: .6rem .9rem !important;
                font-size: .95rem;
                font-weight: 600;
                color: #6f627d;
                border-radius: 12px;
            }

                .main-nav.is-open .dropdown-menu a:hover,
                .main-nav.is-open .dropdown-menu a:focus-visible {
                    background: rgba(201, 182, 228, 0.22);
                    color: #352747;
                }
}

/* ---------- Mobile quick-action CTAs ---------- */
.nav-mobile-actions {
    border-top: 1px solid rgba(53, 39, 71, 0.08);
}

.nav-mobile-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    width: 100%;
    padding: .85rem 1.1rem;
    border-radius: 999px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1rem;
    line-height: 1;
    text-decoration: none;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

    .nav-mobile-btn .material-symbols-outlined {
        font-size: 1.25rem;
    }

.nav-mobile-btn--primary {
    color: #fff !important;
    background: linear-gradient(135deg, #8f73c7 0%, #A892D6 45%, #F3A7A0 100%);
    box-shadow: 0 14px 28px rgba(168, 146, 214, 0.32);
    border: 0;
}

    .nav-mobile-btn--primary:hover,
    .nav-mobile-btn--primary:focus-visible {
        transform: translateY(-1px);
        box-shadow: 0 18px 34px rgba(168, 146, 214, 0.4);
        color: #fff !important;
    }

/* Tinted-lavender fill so the secondary action is clearly visible on
       the white hamburger panel. Uses the same rgba(201,182,228,…) tint
       that landing.css already uses for .dropdown-menu a:hover — keeps
       the button firmly inside the site's existing colour language
       without introducing a competing outline. */
.nav-mobile-btn--secondary {
    color: #352747 !important;
    background: rgba(201, 182, 228, 0.32);
    border: 0;
}

    .nav-mobile-btn--secondary .material-symbols-outlined {
        color: #8f73c7;
    }

    .nav-mobile-btn--secondary:hover,
    .nav-mobile-btn--secondary:focus-visible {
        transform: translateY(-1px);
        background: rgba(201, 182, 228, 0.5);
        color: #352747 !important;
    }

/* Logout button inside the hamburger: muted outlined style that sits
       quietly inside the Zabavko lavender palette. The red-tinted variant
       we had before read as an error state next to the primary/secondary
       CTAs — this softer outline keeps the destructive meaning without
       shouting. */
.nav-mobile-logout-form {
    width: 100%;
    margin-top: .35rem !important;
    padding-top: .6rem;
}

.nav-mobile-btn--logout {
    color: #6f627d !important;
    background: transparent;
    border: 1px solid rgba(53, 39, 71, 0.14);
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
}

    .nav-mobile-btn--logout .material-symbols-outlined {
        color: #8f73c7;
    }

    .nav-mobile-btn--logout:hover,
    .nav-mobile-btn--logout:focus-visible {
        transform: translateY(-1px);
        background: rgba(168, 146, 214, 0.1);
        border-color: rgba(168, 146, 214, 0.4);
        color: #352747 !important;
    }

/* Strip the default chevron from the header login pill — replaced by
       the inline `login` material icon in the markup, which reads better
       than a generic arrow. */
.header-login::after {
    content: none !important;
}

.header-login .material-symbols-outlined {
    font-size: 1.1rem;
}

/* Small "who am I" line so users know whose session they are about
       to end. Muted tone matches body-copy elsewhere in Index.cshtml. */
.nav-mobile-user {
    font-family: 'Montserrat', sans-serif;
    font-size: .85rem;
    font-weight: 600;
    color: #6f627d;
    padding: .25rem .5rem;
}

    .nav-mobile-user .material-symbols-outlined {
        font-size: 1.1rem;
        color: #A892D6;
    }

/* Mobile header: keep the row compact so brand + hamburger + icon
       buttons don't overlap each other when the user is signed in. */
@media (max-width: 767.98px) {
    .site-header {
        gap: .5rem !important;
        padding-left: .75rem !important;
        padding-right: .75rem !important;
    }

    .header-actions {
        gap: .35rem !important;
    }

        .header-actions .button.header-login,
        .header-actions .header-logout-btn {
            padding-left: .6rem !important;
            padding-right: .6rem !important;
            min-width: 40px;
            height: 40px;
        }

            .header-actions .button.header-login .material-symbols-outlined,
            .header-actions .header-logout-btn .material-symbols-outlined {
                font-size: 1.25rem;
                margin: 0;
            }

    .menu-toggle {
        padding: .4rem !important;
    }
}

/* Source: Web/Views/Shared/_LandingLayout.cshtml */
/* Global landing-themed overrides for Bootstrap alerts so any
           remaining `alert alert-*` usages adopt the Zabavko palette. */
.alert {
    border-radius: 22px;
    padding: 1rem 1.25rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    line-height: 1.4;
    border-width: 1px;
    border-style: solid;
}

    .alert strong {
        font-weight: 800;
    }

.alert-info {
    background: rgba(201, 182, 228, 0.22);
    border-color: rgba(168, 146, 214, 0.38);
    color: #352747;
}

.alert-primary {
    background: rgba(201, 182, 228, 0.22);
    border-color: rgba(168, 146, 214, 0.45);
    color: #352747;
}

.alert-success {
    background: rgba(168, 146, 214, 0.18);
    border-color: rgba(74, 142, 106, 0.35);
    color: #2f5f44;
}

.alert-warning {
    background: rgba(246, 211, 162, 0.35);
    border-color: rgba(246, 180, 110, 0.5);
    color: #6b4a12;
}

.alert-danger {
    background: rgba(243, 167, 160, 0.28);
    border-color: rgba(221, 105, 96, 0.45);
    color: #7a2a2a;
}

.alert-secondary {
    background: rgba(111, 98, 125, 0.14);
    border-color: rgba(111, 98, 125, 0.3);
    color: #352747;
}

/* Source: Web/Views/Shared/_NotificationPartial.cshtml */
.veseljko-toast-container {
    position: fixed;
    bottom: 1.25rem;
    right: 1.25rem;
    z-index: 1080;
    display: flex;
    flex-direction: column-reverse;
    gap: .75rem;
    max-width: calc(100vw - 2rem);
    pointer-events: none;
}

@media (max-width: 575.98px) {
    .veseljko-toast-container {
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
        max-width: none;
    }
}

.veseljko-toast {
    pointer-events: auto;
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    min-width: 260px;
    max-width: 420px;
    padding: .9rem 1.05rem .9rem 1.05rem;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(53, 39, 71, 0.14);
    border-left: 4px solid #A892D6;
    box-shadow: 0 16px 34px rgba(53, 39, 71, 0.18), 0 6px 14px rgba(168, 146, 214, 0.12);
    color: #352747;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: .95rem;
    line-height: 1.4;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transform: translateY(16px);
    opacity: 0;
    animation: veseljkoToastIn .3s cubic-bezier(.22, 1, .36, 1) forwards;
}

@media (max-width: 575.98px) {
    .veseljko-toast {
        max-width: none;
    }
}

@keyframes veseljkoToastIn {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.veseljko-toast.is-hiding {
    transition: transform .25s ease, opacity .25s ease;
    transform: translateY(12px);
    opacity: 0;
}

.veseljko-toast.is-success {
    border-left-color: #4a8e6a;
}

    .veseljko-toast.is-success .veseljko-toast-icon {
        color: #4a8e6a;
    }

.veseljko-toast.is-danger {
    border-left-color: #c04a3f;
}

    .veseljko-toast.is-danger .veseljko-toast-icon {
        color: #c04a3f;
    }

.veseljko-toast.is-warning {
    border-left-color: #b47a21;
}

    .veseljko-toast.is-warning .veseljko-toast-icon {
        color: #b47a21;
    }

.veseljko-toast.is-info {
    border-left-color: #A892D6;
}

    .veseljko-toast.is-info .veseljko-toast-icon {
        color: #A892D6;
    }

.veseljko-toast-icon {
    font-size: 1.35rem;
    line-height: 1;
    flex-shrink: 0;
    margin-top: .05rem;
}

.veseljko-toast-body {
    flex: 1;
    min-width: 0;
    word-wrap: break-word;
}

.veseljko-toast-close {
    flex-shrink: 0;
    background: transparent;
    border: 0;
    color: #6f627d;
    cursor: pointer;
    padding: .15rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 160ms ease, color 160ms ease;
}

    .veseljko-toast-close:hover {
        background: rgba(53, 39, 71, 0.08);
        color: #352747;
    }

    .veseljko-toast-close .material-symbols-outlined {
        font-size: 1.1rem;
    }

/* Source: Web/Views/Tables/Index.cshtml */
/* Table seating is a custom drag/drop canvas; Bootstrap grid cannot replace the interaction model safely. */
/* ── Page shell ─────────────────────────────────────── */
.tbl-page {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 64px); /* subtract landing header height */
    background: var(--bg);
    font-family: 'Montserrat', Arial, sans-serif;
}

/* ── Top toolbar ────────────────────────────────────── */
.tbl-toolbar {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .65rem 1.25rem;
    background: rgba(255,255,255,.96);
    border-bottom: 1px solid rgba(168,146,214,.22);
    box-shadow: 0 2px 12px rgba(53,39,71,.06);
    flex-wrap: wrap;
    z-index: 10;
}

.tbl-toolbar-title {
    font-weight: 900;
    font-size: 1rem;
    color: var(--ink);
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

    .tbl-toolbar-title span {
        color: var(--purple);
    }

.tbl-save-status {
    font-size: .8rem;
    font-weight: 750;
    color: var(--muted);
    min-width: 120px;
    text-align: right;
}
/* ── Body (sidebar + canvas) ───────────────────────── */
.tbl-body {
    flex: 1 1 auto;
    display: flex;
    overflow: hidden;
    min-height: 0;
    position: relative;
}

/* ── Sidebar ────────────────────────────────────────── */
.tbl-sidebar {
    width: 270px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    background: rgba(255,255,255,.95);
    border-right: 1px solid rgba(168,146,214,.22);
    overflow: hidden;
}

.tbl-sidebar-head {
    flex-shrink: 0;
    padding: .85rem 1rem .5rem;
    border-bottom: 1px solid rgba(168,146,214,.18);
}

.tbl-sidebar-heading {
    font-weight: 900;
    font-size: .9rem;
    color: var(--ink);
    margin: 0 0 .55rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.tbl-pool-count {
    font-size: .78rem;
    font-weight: 800;
    color: var(--purple);
    background: rgba(168,146,214,.14);
    border: 1px solid rgba(168,146,214,.35);
    border-radius: 999px;
    padding: .1rem .55rem;
}

.tbl-sidebar-filter {
    display: flex;
    gap: .4rem;
    flex-direction: column;
}

.tbl-filter-control {
    width: 100%;
    padding: .5rem .7rem;
    border: 1px solid rgba(168,146,214,.4);
    border-radius: 12px;
    background: #fff;
    color: var(--ink);
    font-size: .85rem;
    font-weight: 650;
    font-family: inherit;
}

    .tbl-filter-control:focus {
        outline: 0;
        border-color: var(--purple);
        box-shadow: 0 0 0 3px rgba(168,146,214,.18);
    }

.tbl-pool {
    flex: 1 1 auto;
    overflow-y: auto;
    overflow-x: hidden;
    padding: .6rem .75rem;
    -webkit-overflow-scrolling: touch;
}

.tbl-person {
    display: flex;
    align-items: center;
    gap: .55rem;
    padding: .55rem .65rem;
    border-radius: 14px;
    border: 1px solid rgba(168,146,214,.24);
    background: #fff;
    margin-bottom: .4rem;
    cursor: grab;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    transition: border-color .14s, box-shadow .14s, transform .12s;
}

    .tbl-person:hover {
        border-color: rgba(168,146,214,.55);
        box-shadow: 0 6px 14px rgba(53,39,71,.08);
    }

    .tbl-person:active {
        transform: scale(.97);
    }

    .tbl-person.is-dragging {
        opacity: .35;
    }

.tbl-person-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: linear-gradient(135deg, #8f73c7, #F3A7A0);
    color: #fff;
    font-size: .75rem;
    font-weight: 900;
}

.tbl-person-info {
    min-width: 0;
    flex: 1;
}

.tbl-person-name {
    font-weight: 800;
    font-size: .88rem;
    color: var(--ink);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tbl-person-status {
    font-size: .72rem;
    font-weight: 800;
    border-radius: 999px;
    padding: .1rem .45rem;
    display: inline-block;
    margin-top: .15rem;
}

    .tbl-person-status.is-yes {
        color: #51366b;
        background: rgba(168,146,214,.2);
    }

    .tbl-person-status.is-no {
        color: #7a2a2a;
        background: rgba(243,167,160,.22);
    }

    .tbl-person-status.is-maybe {
        color: #6b4a12;
        background: rgba(246,211,162,.32);
    }

.tbl-pool-empty {
    color: var(--muted);
    font-size: .88rem;
    font-weight: 650;
    padding: .75rem .25rem;
    text-align: center;
}

/* Kill the ambient chevron_right ::after from landing.css on every toolbar button. */
.tbl-toolbar .button::after,
.tbl-toolbar a.button::after,
.tbl-toolbar button.button::after {
    content: none !important;
}

/* Mobile sidebar toggle */
.tbl-sidebar-toggle {
    display: none;
    position: fixed;
    bottom: calc(1rem + env(safe-area-inset-bottom));
    left: 1rem;
    z-index: 1200;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg,#8f73c7,#A892D6);
    color: #fff;
    border: none;
    box-shadow: 0 8px 22px rgba(168,146,214,.45);
    font-size: 1.15rem;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

/* ── Canvas ─────────────────────────────────────────── */
.tbl-canvas-wrapper {
    flex: 1 1 auto;
    overflow: auto;
    position: relative;
    background: radial-gradient(circle at 15% 20%, rgba(201,182,228,.12), transparent 55%), radial-gradient(circle at 85% 80%, rgba(243,167,160,.1), transparent 55%), #f7f5fb;
    /* Subtle dot-grid */
    background-image: radial-gradient(circle at 15% 20%, rgba(201,182,228,.12), transparent 55%), radial-gradient(circle at 85% 80%, rgba(243,167,160,.1), transparent 55%), radial-gradient(rgba(168,146,214,.18) 1px, transparent 1px);
    background-size: auto, auto, 28px 28px;
    -webkit-overflow-scrolling: touch;
}

.tbl-canvas-zoom {
    position: relative;
    min-width: 100%;
    min-height: 100%;
}

.tbl-canvas-surface {
    position: absolute;
    left: 0;
    top: 0;
    width: 2000px;
    height: 1400px;
    transform-origin: 0 0;
}

    .tbl-canvas-surface.is-dragover {
        outline: 2px dashed rgba(168,146,214,.5);
        outline-offset: -8px;
    }

.tbl-canvas-tools {
    position: absolute;
    top: .75rem;
    right: .75rem;
    z-index: 90;
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    padding: .25rem;
    border-radius: 8px;
    border: 1px solid rgba(168,146,214,.34);
    background: rgba(255,255,255,.94);
    box-shadow: 0 10px 24px rgba(53,39,71,.13);
}

    .tbl-canvas-tools button {
        width: 34px;
        height: 34px;
        border-radius: 8px;
        border: 1px solid rgba(168,146,214,.28);
        background: #fff;
        color: #51366b;
        font: inherit;
        font-size: 1rem;
        font-weight: 900;
        line-height: 1;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }

        .tbl-canvas-tools button:hover,
        .tbl-canvas-tools button:focus-visible {
            outline: 0;
            border-color: rgba(168,146,214,.65);
            background: rgba(247,245,251,.95);
        }

    .tbl-canvas-tools span {
        min-width: 48px;
        text-align: center;
        color: var(--ink);
        font-size: .78rem;
        font-weight: 900;
    }

/* ── Table circles ──────────────────────────────────── */
.tbl-wrap {
    position: absolute;
    pointer-events: none; /* children opt-in */
}

.tbl-circle {
    position: absolute;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg,rgba(201,182,228,.38),rgba(255,255,255,.95));
    border: 2.5px solid rgba(168,146,214,.65);
    box-shadow: 0 8px 22px rgba(168,146,214,.22), 0 2px 6px rgba(53,39,71,.12);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    cursor: grab;
    pointer-events: all;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    transition: border-color .15s, box-shadow .15s;
}

    .tbl-circle:hover {
        border-color: var(--purple);
        box-shadow: 0 12px 28px rgba(168,146,214,.32);
    }

    .tbl-circle.is-drag-target {
        border-color: #6a4fae;
        box-shadow: 0 0 0 4px rgba(168,146,214,.28), 0 12px 28px rgba(168,146,214,.3);
    }

.tbl-label {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: .88rem;
    color: #51366b;
    background: none;
    border: none;
    cursor: inherit;
    padding: 0 2px;
    max-width: 58px;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    pointer-events: none;
    line-height: 1.2;
}

.tbl-remove-btn {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(243,167,160,.9);
    border: 1.5px solid rgba(220,100,90,.5);
    color: #7a2a2a;
    font-size: .72rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    pointer-events: all;
    opacity: 0;
    transition: opacity .15s, transform .15s;
}

.tbl-circle:hover .tbl-remove-btn,
.tbl-wrap:hover .tbl-remove-btn {
    opacity: 1;
}

.tbl-remove-btn:hover {
    transform: scale(1.15);
    background: rgba(243,167,160,1);
}

.tbl-drag-handle {
    position: absolute;
    left: 50%;
    bottom: -10px;
    width: 30px;
    height: 22px;
    transform: translateX(-50%);
    border-radius: 8px;
    border: 1px solid rgba(168,146,214,.45);
    background: rgba(255,255,255,.96);
    color: #51366b;
    box-shadow: 0 6px 12px rgba(53,39,71,.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    font-size: .78rem;
    pointer-events: all;
    touch-action: none;
    -webkit-tap-highlight-color: transparent;
}

    .tbl-drag-handle:hover,
    .tbl-drag-handle:focus-visible {
        outline: 0;
        border-color: var(--purple);
        color: var(--ink);
    }

.tbl-wrap.is-moving .tbl-drag-handle {
    cursor: grabbing;
    background: rgba(247,245,251,.98);
}

/* ── Seat circles ───────────────────────────────────── */
.tbl-seat {
    position: absolute;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg,rgba(201,182,228,.45),rgba(255,255,255,.9));
    border: 2px solid rgba(168,146,214,.55);
    box-shadow: 0 4px 12px rgba(53,39,71,.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    pointer-events: all;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    transition: border-color .14s, box-shadow .14s, transform .12s;
    z-index: 2;
}

    .tbl-seat:hover {
        border-color: var(--purple);
        box-shadow: 0 6px 16px rgba(168,146,214,.28);
        transform: scale(1.06);
    }

    .tbl-seat.is-dragging {
        opacity: .3;
    }

    .tbl-seat.is-swap-target {
        border-color: #6a4fae;
        box-shadow: 0 0 0 4px rgba(168,146,214,.32), 0 8px 18px rgba(168,146,214,.32);
        transform: scale(1.14);
    }

.tbl-seat-initials {
    font-size: .7rem;
    font-weight: 900;
    color: #51366b;
    line-height: 1;
    pointer-events: none;
}

.tbl-seat-nameplate {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(53,39,71,.82);
    color: #fff;
    font-size: .62rem;
    font-weight: 800;
    white-space: nowrap;
    padding: .15rem .4rem;
    border-radius: 6px;
    pointer-events: none;
    opacity: 1;
    transition: opacity .14s;
}

.tbl-seat-remove {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(243,167,160,.9);
    border: 1px solid rgba(220,100,90,.5);
    color: #7a2a2a;
    font-size: .62rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    pointer-events: all;
    opacity: 0;
    transition: opacity .14s, transform .14s;
    z-index: 3;
}

.tbl-seat:hover .tbl-seat-remove {
    opacity: 1;
}

.tbl-seat-remove:hover {
    transform: scale(1.2);
}

/* ── Drop-zone hint on empty table ─────────────────── */
.tbl-drop-hint {
    position: absolute;
    font-size: .68rem;
    font-weight: 800;
    color: rgba(107,79,174,.55);
    text-align: center;
    pointer-events: none;
    width: 58px;
    left: 7px;
    top: 76px;
    line-height: 1.3;
    opacity: 0;
    transition: opacity .18s;
}

.tbl-circle.is-drag-target + .tbl-drop-hint {
    opacity: 1;
}

/* ── Drag ghost ─────────────────────────────────────── */
.tbl-ghost {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    opacity: .85;
    transform: scale(1.08);
    transition: none;
}

/* ── Bottom list view ───────────────────────────────── */
.tbl-listview {
    flex-shrink: 0;
    max-height: 280px;
    overflow-y: auto;
    overscroll-behavior: contain;
    border-top: 1px solid rgba(168,146,214,.22);
    background: rgba(255,255,255,.96);
    padding: .75rem 1.25rem;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
}

.tbl-listview-toggle {
    display: flex;
    align-items: center;
    gap: .5rem;
    cursor: pointer;
    font-weight: 900;
    font-size: .92rem;
    color: var(--ink);
    padding: 0;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    margin-bottom: .6rem;
    position: sticky;
    top: 0;
    z-index: 2;
    background: rgba(255,255,255,.96);
}

    .tbl-listview-toggle i {
        color: var(--purple);
        transition: transform .2s;
    }

    .tbl-listview-toggle.is-open i {
        transform: rotate(180deg);
    }

#listViewBody[hidden] {
    display: none !important;
}

.tbl-list-table {
    margin-bottom: .6rem;
    padding: .65rem .7rem;
    border-radius: 8px;
    border: 1px solid rgba(168,146,214,.2);
    background: rgba(255,255,255,.9);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

    .tbl-list-table:hover {
        border-color: rgba(168,146,214,.5);
        background: #fff;
    }

.tbl-list-table-head {
    font-weight: 900;
    font-size: .88rem;
    color: #51366b;
    margin-bottom: .45rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .45rem;
}

.tbl-list-label {
    display: flex;
    align-items: center;
    gap: .42rem;
    min-width: 0;
}

    .tbl-list-label span {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

.tbl-list-table-head .tbl-list-count {
    font-size: .75rem;
    font-weight: 800;
    color: var(--muted);
    flex-shrink: 0;
}

.tbl-list-guests {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
}

.tbl-list-chip,
.tbl-list-empty {
    display: inline-flex;
    max-width: 100%;
    min-width: 0;
    border-radius: 999px;
    padding: .22rem .48rem;
    font-size: .78rem;
    font-weight: 800;
    line-height: 1.25;
}

.tbl-list-chip {
    color: var(--ink);
    background: rgba(247,245,251,.95);
    border: 1px solid rgba(168,146,214,.25);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tbl-list-empty {
    color: var(--muted);
    background: rgba(168,146,214,.08);
}

/* Swap-mode: a chip is picked up for tap-to-move. */
.tbl-list-chip {
    cursor: pointer;
    user-select: none;
}

    .tbl-list-chip[data-selected="1"] {
        background: linear-gradient(135deg,#8f73c7,#A892D6) !important;
        color: #fff !important;
        border-color: transparent !important;
        box-shadow: 0 4px 12px rgba(168,146,214,.5);
    }

.tbl-listview.is-swap-mode .tbl-list-table {
    border-color: rgba(168,146,214,.5);
    box-shadow: 0 0 0 2px rgba(168,146,214,.15);
}

/* Drag states on list chip + target row */
.tbl-list-chip.is-chip-dragging {
    background: rgba(168,146,214,.12) !important;
    color: transparent !important;
    border-style: dashed !important;
    border-color: rgba(168,146,214,.55) !important;
    box-shadow: none !important;
    text-shadow: none;
}

.tbl-list-table.is-drop-target {
    border-color: #8f73c7 !important;
    background: rgba(168,146,214,.14) !important;
    box-shadow: 0 0 0 3px rgba(168,146,214,.35);
    transition: background .12s ease-out, border-color .12s ease-out, box-shadow .12s ease-out;
}

.tbl-ghost-chip {
    position: fixed;
    left: 0;
    top: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: .96;
    box-shadow: 0 14px 28px rgba(53,39,71,.32), 0 0 0 1px rgba(168,146,214,.35);
    will-change: transform;
}

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 991.98px) {
    .tbl-sidebar {
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        z-index: 150;
        transform: translateX(-100%);
        transition: transform .24s ease;
        box-shadow: 4px 0 24px rgba(53,39,71,.18);
        width: 88vw;
        max-width: 300px;
        padding-top: 60px; /* header */
    }

        .tbl-sidebar.is-open {
            transform: translateX(0);
        }

    .tbl-sidebar-toggle {
        display: inline-flex;
    }

    .tbl-sidebar-overlay {
        display: none;
        position: fixed;
        inset: 0;
        z-index: 140;
        background: rgba(53,39,71,.35);
        backdrop-filter: blur(2px);
    }

        .tbl-sidebar-overlay.is-open {
            display: block;
        }

    .tbl-page {
        height: calc(100vh - 64px);
    }

    .tbl-listview {
        max-height: 200px;
    }
}

@media (max-width: 575.98px) {
    .tbl-page {
        height: calc(100dvh - 58px);
    }

    .tbl-toolbar {
        display: flex;
        padding: .55rem .75rem;
        gap: .5rem;
    }

    .tbl-toolbar-title {
        flex: 1 0 100%;
        order: -1;
        font-size: .9rem;
    }

    .tbl-toolbar .button {
        flex: 1 1 calc(50% - .25rem);
        justify-content: center;
        min-height: 40px;
        border-radius: 8px;
        padding-left: .8rem !important;
        padding-right: .8rem !important;
        font-size: .8rem !important;
    }

    .tbl-save-status {
        flex: 1 0 100%;
        min-width: 0;
        min-height: 1rem;
        text-align: left;
        font-size: .74rem;
    }

    .tbl-listview {
        max-height: none;
        padding: .4rem .75rem calc(.4rem + env(safe-area-inset-bottom));
        overflow: hidden;
    }

        .tbl-listview #listViewBody {
            display: none;
        }

        .tbl-listview.is-expanded {
            position: fixed;
            inset: 0;
            max-height: none;
            height: 100dvh;
            z-index: 1400;
            padding: calc(.55rem + env(safe-area-inset-top)) .85rem calc(.85rem + env(safe-area-inset-bottom));
            display: flex;
            flex-direction: column;
            background: #fff;
            overflow: hidden;
            box-shadow: 0 -8px 32px rgba(53,39,71,.18);
        }

            .tbl-listview.is-expanded #listViewBody {
                display: block;
                flex: 1 1 auto;
                overflow-y: auto;
                overscroll-behavior: contain;
                -webkit-overflow-scrolling: touch;
                padding-bottom: 1rem;
            }

    .tbl-listview-toggle {
        min-height: 40px;
        margin-bottom: 0;
        font-size: .9rem;
        padding: .25rem .1rem;
    }

    .tbl-listview.is-expanded .tbl-listview-toggle {
        margin-bottom: .55rem;
        padding-bottom: .55rem;
        border-bottom: 1px solid rgba(168,146,214,.2);
    }

    .tbl-list-table {
        margin-bottom: .48rem;
        padding: .55rem .6rem;
    }

    .tbl-list-table-head {
        font-size: .82rem;
        margin-bottom: .38rem;
    }

    .tbl-list-chip,
    .tbl-list-empty {
        font-size: .74rem;
        padding: .2rem .42rem;
    }

    .tbl-canvas-tools {
        top: .55rem;
        right: .55rem;
    }

        .tbl-canvas-tools button {
            width: 32px;
            height: 32px;
        }

        .tbl-canvas-tools span {
            min-width: 44px;
            font-size: .74rem;
        }

    .tbl-sidebar-toggle {
        width: 46px;
        height: 46px;
        bottom: calc(64px + .6rem + env(safe-area-inset-bottom));
        left: .75rem;
    }

    .tbl-page.is-list-expanded ~ .tbl-sidebar-toggle {
        display: none;
    }

    .tbl-sidebar {
        width: min(94vw, 360px);
        max-width: none;
    }
}

/* ── Touch behaviour on interactive items ────────────── */
.tbl-circle, .tbl-seat, .tbl-person {
    touch-action: none;
}

.tbl-canvas-wrapper {
    touch-action: pan-x pan-y;
}

/* ── Selected / tap-to-assign mode ───────────────────── */
.tbl-circle.is-selected {
    border-color: #6a4fae;
    border-width: 3px;
    animation: tblPulse 1.5s ease-in-out infinite;
}

@keyframes tblPulse {
    0%, 100% {
        box-shadow: 0 0 0 4px rgba(168,146,214,.35), 0 10px 24px rgba(168,146,214,.35);
    }

    50% {
        box-shadow: 0 0 0 10px rgba(168,146,214,.15), 0 10px 24px rgba(168,146,214,.35);
    }
}

/* Visible "move mode" after long-press engages drag */
.tbl-wrap.is-moving .tbl-circle {
    border-color: #6a4fae;
    box-shadow: 0 0 0 4px rgba(168,146,214,.45), 0 14px 32px rgba(168,146,214,.45);
    transform: scale(1.06);
    transition: transform .15s, box-shadow .15s;
}

.tbl-assign-banner {
    display: flex;
    align-items: center;
    gap: .5rem;
    background: linear-gradient(135deg,#8f73c7,#A892D6);
    color: #fff;
    padding: .55rem .7rem;
    border-radius: 12px;
    font-weight: 750;
    font-size: .82rem;
    margin-bottom: .55rem;
    box-shadow: 0 4px 12px rgba(168,146,214,.35);
}

    .tbl-assign-banner[hidden] {
        display: none;
    }

.tbl-assign-banner-label {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

    .tbl-assign-banner-label strong {
        font-weight: 900;
    }

.tbl-assign-banner-done {
    background: rgba(255,255,255,.25);
    border: 1px solid rgba(255,255,255,.55);
    color: #fff;
    border-radius: 8px;
    padding: .28rem .6rem;
    font-weight: 800;
    font-size: .76rem;
    font-family: inherit;
    cursor: pointer;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
}

    .tbl-assign-banner-done:hover,
    .tbl-assign-banner-done:active {
        background: rgba(255,255,255,.4);
    }

/* "Add" plus icon appears on people while a table is selected */
.tbl-assign-mode .tbl-person {
    cursor: pointer;
    border-color: rgba(168,146,214,.55);
    background: linear-gradient(135deg,#fff 60%,rgba(201,182,228,.22));
}

    .tbl-assign-mode .tbl-person::after {
        content: '+';
        margin-left: auto;
        flex-shrink: 0;
        width: 26px;
        height: 26px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        background: linear-gradient(135deg,#8f73c7,#A892D6);
        color: #fff;
        font-weight: 900;
        font-size: 1rem;
        line-height: 1;
        box-shadow: 0 2px 6px rgba(168,146,214,.4);
    }

/* Sidebar slides out of the way during a person-drag on mobile */
.tbl-sidebar.is-drag-hidden {
    transform: translateX(-105%) !important;
    transition: transform .16s ease !important;
}

.tbl-sidebar-overlay.is-drag-hidden {
    opacity: 0;
    transition: opacity .16s ease;
}

/* Small hint under the filter row */
.tbl-sidebar-hint {
    font-size: .72rem;
    font-weight: 650;
    color: var(--muted);
    line-height: 1.4;
    padding: .5rem .25rem 0;
    text-align: center;
}

/* Floating "close sidebar" chip on mobile */
.tbl-sidebar-close {
    display: none;
    position: absolute;
    top: .5rem;
    right: .5rem;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(53,39,71,.12);
    border: none;
    color: var(--ink);
    font-size: .9rem;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
}

    .tbl-sidebar-close:hover {
        background: rgba(53,39,71,.2);
    }

/* ── Table options modal / bottom sheet ─────────────── */
.tbl-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 800;
    background: rgba(53,39,71,.45);
    backdrop-filter: blur(3px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease;
}

    .tbl-modal-backdrop.is-open {
        opacity: 1;
        pointer-events: auto;
    }

.tbl-modal {
    background: #fff;
    border-radius: 20px;
    width: 100%;
    max-width: 640px;
    max-height: calc(100dvh - 2rem);
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 60px rgba(53,39,71,.35);
    transform: translateY(20px) scale(.97);
    transition: transform .22s ease;
    overflow: hidden;
}

.tbl-modal-backdrop.is-open .tbl-modal {
    transform: translateY(0) scale(1);
}

.tbl-modal-head {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: 1rem 1.1rem .75rem;
    border-bottom: 1px solid rgba(168,146,214,.18);
}

.tbl-modal-label {
    flex: 1;
    min-width: 0;
    background: none;
    border: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.15rem;
    font-weight: 900;
    color: var(--ink);
    text-align: left;
    padding: .2rem .4rem;
    border-radius: 8px;
    cursor: text;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
    transition: background .15s;
}

    .tbl-modal-label:hover {
        background: rgba(168,146,214,.12);
    }

.tbl-modal-label-input {
    flex: 1;
    min-width: 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.15rem;
    font-weight: 900;
    color: var(--ink);
    padding: .2rem .4rem;
    border-radius: 8px;
    border: 1px solid rgba(168,146,214,.55);
    background: #fff;
    outline: 0;
}

.tbl-modal-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(53,39,71,.08);
    color: var(--ink);
    cursor: pointer;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
}

    .tbl-modal-close:hover {
        background: rgba(53,39,71,.16);
    }

.tbl-modal-body {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: .8rem 1.1rem;
    -webkit-overflow-scrolling: touch;
}

.tbl-modal-count {
    font-weight: 800;
    font-size: .82rem;
    color: var(--muted);
    margin-bottom: .5rem;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: rgba(168,146,214,.14);
    padding: .25rem .6rem;
    border-radius: 999px;
}

    .tbl-modal-count i {
        color: var(--purple);
    }

.tbl-modal-guests {
    display: flex;
    flex-direction: column;
    gap: .35rem;
    margin-top: .25rem;
}

.tbl-modal-guest {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr) auto;
    align-items: center;
    gap: .55rem;
    padding: .5rem .6rem;
    border-radius: 12px;
    background: rgba(247,245,251,.8);
    border: 1px solid rgba(168,146,214,.2);
}

.tbl-modal-guest-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: linear-gradient(135deg,#8f73c7,#F3A7A0);
    color: #fff;
    font-size: .7rem;
    font-weight: 900;
}

.tbl-modal-guest-name {
    min-width: 0;
    font-size: .88rem;
    font-weight: 800;
    color: var(--ink);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tbl-modal-guest-actions {
    display: flex;
    align-items: center;
    gap: .28rem;
    min-width: 0;
}

.tbl-modal-icon-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid rgba(168,146,214,.35);
    color: #51366b;
    cursor: pointer;
    font-size: .72rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
}

    .tbl-modal-icon-btn:hover {
        background: rgba(168,146,214,.12);
    }

    .tbl-modal-icon-btn:disabled {
        opacity: .4;
        cursor: not-allowed;
    }

.tbl-modal-move-select {
    width: 126px;
    min-height: 30px;
    border-radius: 10px;
    border: 1px solid rgba(168,146,214,.35);
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-size: .74rem;
    font-weight: 750;
    padding: .25rem .42rem;
}

.tbl-modal-guest-remove {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(243,167,160,.25);
    border: 1px solid rgba(220,100,90,.35);
    color: #7a2a2a;
    cursor: pointer;
    font-size: .75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
}

    .tbl-modal-guest-remove:hover {
        background: rgba(243,167,160,.45);
    }

.tbl-modal-section {
    margin-top: 1rem;
    padding-top: .9rem;
    border-top: 1px solid rgba(168,146,214,.18);
}

.tbl-modal-section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    color: var(--ink);
    font-size: .86rem;
    font-weight: 900;
    margin-bottom: .55rem;
}

    .tbl-modal-section-title span {
        color: var(--muted);
        font-size: .76rem;
        font-weight: 800;
    }

.tbl-modal-search {
    width: 100%;
    min-height: 42px;
    border-radius: 12px;
    border: 1px solid rgba(168,146,214,.36);
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-size: .84rem;
    font-weight: 650;
    padding: .58rem .75rem;
    margin-bottom: .6rem;
}

    .tbl-modal-search:focus {
        outline: 0;
        border-color: var(--purple);
        box-shadow: 0 0 0 3px rgba(168,146,214,.18);
    }

.tbl-modal-available {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .45rem;
}

.tbl-modal-add-guest {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    align-items: center;
    gap: .5rem;
    width: 100%;
    min-height: 48px;
    text-align: left;
    border: 1px solid rgba(168,146,214,.25);
    border-radius: 12px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    cursor: pointer;
    padding: .45rem .55rem;
    -webkit-tap-highlight-color: transparent;
}

    .tbl-modal-add-guest:hover,
    .tbl-modal-add-guest:focus-visible {
        outline: 0;
        border-color: rgba(168,146,214,.58);
        background: rgba(247,245,251,.75);
    }

.tbl-modal-add-guest-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: .84rem;
    font-weight: 800;
}

.tbl-modal-empty {
    color: var(--muted);
    font-size: .88rem;
    font-weight: 650;
    padding: .75rem .25rem;
    text-align: center;
    font-style: italic;
}

.tbl-modal-hint {
    font-size: .72rem;
    color: var(--muted);
    font-weight: 650;
    margin-top: .85rem;
    padding: .5rem .65rem;
    background: rgba(168,146,214,.08);
    border-radius: 10px;
    line-height: 1.4;
}

    .tbl-modal-hint i {
        color: var(--purple);
        margin-right: .3rem;
    }

.tbl-modal-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .55rem;
    padding: .85rem 1.1rem 1rem;
    border-top: 1px solid rgba(168,146,214,.18);
    background: rgba(247,245,251,.45);
}

.tbl-modal-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    padding: .7rem .6rem;
    border-radius: 14px;
    font-weight: 800;
    font-size: .85rem;
    font-family: inherit;
    cursor: pointer;
    border: 1px solid transparent;
    -webkit-tap-highlight-color: transparent;
    transition: transform .12s, box-shadow .15s, background .15s;
}

    .tbl-modal-action:active {
        transform: scale(.97);
    }

    .tbl-modal-action.primary {
        background: linear-gradient(135deg,#8f73c7,#A892D6);
        color: #fff;
        grid-column: 1 / -1;
        box-shadow: 0 6px 16px rgba(168,146,214,.35);
    }

        .tbl-modal-action.primary:hover {
            box-shadow: 0 10px 22px rgba(168,146,214,.45);
        }

    .tbl-modal-action.secondary {
        background: #fff;
        color: var(--ink);
        border-color: rgba(168,146,214,.45);
    }

        .tbl-modal-action.secondary:hover {
            background: rgba(168,146,214,.1);
        }

    .tbl-modal-action.danger {
        background: rgba(243,167,160,.18);
        color: #7a2a2a;
        border-color: rgba(220,100,90,.4);
    }

        .tbl-modal-action.danger:hover {
            background: rgba(243,167,160,.32);
        }

/* Bottom-sheet on mobile */
@media (max-width: 575.98px) {
    .tbl-modal-backdrop {
        padding: 0;
        align-items: flex-end;
    }

    .tbl-modal {
        border-radius: 20px 20px 0 0;
        max-width: 100%;
        max-height: 94dvh;
        transform: translateY(100%);
    }

    .tbl-modal-backdrop.is-open .tbl-modal {
        transform: translateY(0);
    }

    .tbl-modal-head {
        padding: 1.1rem 1.1rem .75rem;
    }

    .tbl-modal-guest {
        grid-template-columns: 30px minmax(0, 1fr);
    }

    .tbl-modal-guest-actions {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: 34px 34px minmax(0, 1fr) 34px;
        gap: .35rem;
    }

    .tbl-modal-icon-btn,
    .tbl-modal-guest-remove {
        width: 34px;
        height: 34px;
    }

    .tbl-modal-move-select {
        width: 100%;
        min-height: 34px;
    }

    .tbl-modal-available {
        grid-template-columns: minmax(0, 1fr);
    }
    /* Drag-handle affordance */
    .tbl-modal::before {
        content: '';
        display: block;
        width: 44px;
        height: 4px;
        background: rgba(168,146,214,.4);
        border-radius: 2px;
        margin: .55rem auto 0;
    }
}

/* ── Mobile tweaks ───────────────────────────────────── */
@media (max-width: 991.98px) {
    .tbl-sidebar {
        width: 78vw;
        max-width: 280px;
    }

    .tbl-sidebar-close {
        display: inline-flex;
    }
    /* Tap targets: remove buttons always visible, slightly larger */
    .tbl-seat-remove {
        opacity: 1;
        width: 22px;
        height: 22px;
        font-size: .7rem;
        top: -7px;
        right: -7px;
    }

    .tbl-remove-btn {
        opacity: 1;
        width: 26px;
        height: 26px;
        font-size: .78rem;
    }
    /* FAB a little more prominent when something is selected */
    .tbl-page.is-assigning .tbl-sidebar-toggle {
        background: linear-gradient(135deg,#6a4fae,#8f73c7);
        animation: tblPulse 1.5s ease-in-out infinite;
    }
}

/* ── Cookie consent banner ────────────────────────────── */
.cookie-banner {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%) translateY(0);
    z-index: 9999;
    width: min(100% - 2rem, 680px);
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 8px 40px rgba(53, 39, 71, 0.18), 0 2px 12px rgba(168, 146, 214, 0.14);
    border: 1px solid rgba(168, 146, 214, 0.25);
    transition: opacity 320ms ease, transform 320ms ease;
}

    .cookie-banner[hidden] {
        display: none;
    }

    .cookie-banner.is-hiding {
        opacity: 0;
        transform: translateX(-50%) translateY(12px);
    }

.cookie-banner-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 1rem 1.25rem;
    flex-wrap: wrap;
}

.cookie-banner-text {
    margin: 0;
    font-size: 0.88rem;
    color: var(--muted);
    flex: 1;
    min-width: 200px;
}

    .cookie-banner-text a {
        color: var(--purple);
        font-weight: 700;
        white-space: nowrap;
    }

.cookie-banner-actions {
    display: flex;
    gap: .6rem;
    flex-shrink: 0;
}

    .cookie-banner-actions .button {
        font-size: 0.85rem;
        min-width: 96px;
    }

    .cookie-banner-actions .button::after {
        content: none;
    }
