body {
    min-height: 100vh;
    background: linear-gradient(180deg, var(--theme-bg, #fff8fb) 0%, #ffffff 100%);
    color: #2e2545;
}

.page-shell {
    min-height: 100vh;
}

.eyebrow {
    letter-spacing: 0.18em;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--theme-secondary, #8f6bff);
}

.invitation-wrapper,
.admin-wrapper {
    max-width: 1120px;
}

.invitation-card,
.summary-card,
.thank-you-card,
.error-card {
    border-radius: 1.75rem;
}

.invitation-media {
    background: linear-gradient(180deg, rgba(255, 122, 162, 0.08), rgba(143, 107, 255, 0.08));
    padding-bottom: 1.25rem;
}

.invitation-media h1 {
    line-height: 1.05;
}

.form-panel {
    background: #ffffff;
}

.description {
    font-size: 1.05rem;
    line-height: 1.7;
}

.event-details {
    border-radius: 1.35rem;
    background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(255,255,255,0.78));
    border: 1px solid rgba(46, 37, 69, 0.06);
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.detail-label {
    display: block;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--theme-secondary, #8f6bff);
    margin-bottom: 0.35rem;
}

.detail-value {
    display: block;
    font-size: 0.98rem;
    line-height: 1.5;
    color: #2e2545;
}

.event-badges {
    gap: 0.5rem;
}

.event-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.8rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1;
    border: 1px solid rgba(46, 37, 69, 0.08);
    background: rgba(255, 255, 255, 0.9);
    color: #2e2545;
    box-shadow: 0 6px 18px rgba(46, 37, 69, 0.06);
}

.event-badge-time {
    color: #7a4dff;
    background: rgba(122, 77, 255, 0.08);
    border-color: rgba(122, 77, 255, 0.12);
}

.event-badge-code {
    color: #d95c86;
    background: rgba(255, 122, 162, 0.12);
    border-color: rgba(255, 122, 162, 0.18);
}

.detail-card-address {
    padding: 1rem 1rem 0.95rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, rgba(255, 122, 162, 0.08), rgba(143, 107, 255, 0.08));
    border: 1px solid rgba(255, 255, 255, 0.55);
}

.invitation-image,
.asset-placeholder,
video {
    width: 100%;
    object-fit: cover;
}

.media-view-trigger {
    position: relative;
    display: block;
    background: transparent;
    cursor: zoom-in;
}

.media-view-trigger img,
.media-view-trigger video {
    display: block;
    width: 100%;
    height: 100%;
}

.media-overlay {
    position: absolute;
    left: 50%;
    bottom: 0.75rem;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    background: rgba(46, 37, 69, 0.75);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    pointer-events: none;
}

.invitation-image,
.asset-placeholder {
    min-height: 180px;
}

.media-video {
    min-height: 180px;
}

.media-modal .modal-content {
    border-radius: 1.25rem;
    overflow: hidden;
}

.media-modal .btn-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 2;
    background-color: rgba(255, 255, 255, 0.85);
    border-radius: 999px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    padding: 0.7rem;
}

.media-modal-dialog {
    --media-stage-aspect-ratio: 1.7777778;
    width: min(94vw, calc(80vh * var(--media-stage-aspect-ratio)));
    margin: 0.75rem auto;
}

.media-viewer-stage {
    background: #000;
    max-height: 80vh;
    aspect-ratio: var(--media-stage-aspect-ratio, 16 / 9);
    display: flex;
    align-items: center;
    justify-content: center;
}

.media-viewer-stage img,
.media-viewer-stage video {
    max-height: 80vh;
    object-fit: contain;
}

.media-viewer-stage video {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
}

.media-viewer-stage video::-webkit-media-controls-panel {
    background-color: rgba(0, 0, 0, 0.35);
}

.asset-placeholder {
    background: rgba(255, 255, 255, 0.85);
    border: 1px dashed rgba(46, 37, 69, 0.2);
}

.placeholder-icon,
.thank-you-icon {
    font-size: 2.4rem;
}

.form-control,
.btn,
.card,
.alert {
    border-radius: 1rem;
}

.form-control:focus {
    border-color: var(--theme-primary, #ff7aa2);
    box-shadow: 0 0 0 0.25rem rgba(255, 122, 162, 0.15);
}

.btn-primary {
    background-color: var(--theme-primary, #ff7aa2);
    border-color: var(--theme-primary, #ff7aa2);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #ef5f8c;
    border-color: #ef5f8c;
}

.center-card-wrapper {
    min-height: 70vh;
    display: grid;
    place-items: center;
}

.thank-you-card,
.error-card {
    max-width: 720px;
}

.error-code {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--theme-secondary, #8f6bff);
}

.summary-card {
    background: #ffffff;
}

.meal-choice-group .btn {
    padding-top: 0.9rem;
    padding-bottom: 0.9rem;
}

.meal-choice-group .btn-check:checked + .btn {
    background-color: var(--theme-primary, #ff7aa2);
    border-color: var(--theme-primary, #ff7aa2);
    color: #fff;
}

.table thead th {
    white-space: nowrap;
}

.table tbody td {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

code {
    color: var(--theme-secondary, #8f6bff);
}

@media (max-width: 991.98px) {
    .invitation-card {
        border-radius: 1.25rem;
    }

    .invitation-media,
    .form-panel {
        padding: 1rem !important;
    }

    .invitation-media h1 {
        font-size: calc(1.375rem + 1vw);
    }

    .description {
        font-size: 0.98rem;
        line-height: 1.55;
    }

    .event-details {
        border-radius: 1.15rem;
    }

    .event-badge {
        width: 100%;
        justify-content: center;
        padding: 0.7rem 0.85rem;
        font-size: 0.8rem;
    }

    .detail-card-address {
        padding: 0.9rem;
    }

    .form-panel .form-control,
    .form-panel .btn-lg {
        font-size: 0.98rem;
    }

    .meal-choice-group .btn {
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
        font-size: 0.92rem;
    }

    .form-panel .mb-3,
    .form-panel .mb-4 {
        margin-bottom: 0.85rem !important;
    }

    .form-panel .form-text {
        font-size: 0.82rem;
    }

    .invitation-image,
    .asset-placeholder {
        min-height: 170px;
    }

    .media-video {
        min-height: 170px;
    }

    .media-overlay {
        bottom: 0.5rem;
        font-size: 0.75rem;
    }

    .event-details .card-body {
        padding-top: 0.9rem !important;
        padding-bottom: 0.9rem !important;
    }

    .media-modal-dialog {
        width: min(96vw, calc(88vh * var(--media-stage-aspect-ratio, 16 / 9)));
    }
}

