/* =========================================================
   CANDY PHOTOBOOTH - MAIN BOOTH MASTER CSS
   Optimized & cleaned: duplicate selectors merged
========================================================= */

:root {
    --pb-primary: #6d5dfc;
    --pb-primary-dark: #5142e8;
    --pb-primary-soft: rgba(109, 93, 252, .12);
    --pb-candy: #ec4899;
    --pb-candy-soft: rgba(236, 72, 153, .12);
    --pb-sky: #0ea5e9;
    --pb-sky-soft: rgba(14, 165, 233, .12);
    --pb-mint: #22c55e;
    --pb-mint-soft: rgba(34, 197, 94, .12);
    --pb-dark: #101828;
    --pb-text: #344054;
    --pb-muted: #667085;
    --pb-border: #eaecf0;
    --pb-soft: #f8fafc;
    --pb-white: #ffffff;
    --pb-radius-sm: 14px;
    --pb-radius: 22px;
    --pb-radius-lg: 32px;
    --pb-radius-pill: 999px;
    --pb-shadow-sm: 0 10px 26px rgba(16, 24, 40, .05);
    --pb-shadow: 0 24px 70px rgba(16, 24, 40, .10);
    --pb-shadow-hover: 0 28px 80px rgba(109, 93, 252, .18);
    --pb-glass: rgba(255, 255, 255, .78);
    --pb-glass-strong: rgba(255, 255, 255, .88);
    --pb-glass-border: rgba(234, 236, 240, .9);
    --pb-font: 'Nunito', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    font-family: var(--pb-font);
    color: var(--pb-dark);
    background: radial-gradient(circle at 10% 8%, rgba(109, 93, 252, .18), transparent 30%), radial-gradient(circle at 88% 14%, rgba(236, 72, 153, .15), transparent 28%), radial-gradient(circle at 48% 100%, rgba(14, 165, 233, .11), transparent 34%), linear-gradient(135deg, #f8fafc 0%, #eef2ff 52%, #fff1f7 100%);
    overflow-x: hidden;
    isolation: isolate;
}

a {
    text-decoration: none;
}

button,
input,
select,
textarea {
    font-family: inherit;
}

.pb-bg-grid {
    position: fixed;
    inset: 0;
    z-index: -3;
    pointer-events: none;
    background-image: linear-gradient(rgba(109, 93, 252, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(109, 93, 252, .045) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(circle at center, black, transparent 72%);
}

.pb-bg-candy-line {
    position: fixed;
    inset: auto 0 0 0;
    z-index: -2;
    height: 34vh;
    pointer-events: none;
    background: linear-gradient(120deg, transparent 0 24%, rgba(109, 93, 252, .08) 24% 26%, transparent 26% 47%, rgba(236, 72, 153, .08) 47% 49%, transparent 49% 100%);
    opacity: .85;
}

.pb-bg-orb {
    position: fixed;
    z-index: -1;
    border-radius: var(--pb-radius-pill);
    pointer-events: none;
    filter: blur(10px);
    opacity: .75;
}

.pb-bg-orb.is-purple {
    width: 190px;
    height: 190px;
    left: 5%;
    top: 18%;
    background: rgba(109, 93, 252, .16);
    animation: pbFloatOrb 9s ease-in-out infinite;
}

.pb-bg-orb.is-pink {
    width: 260px;
    height: 260px;
    right: 4%;
    bottom: 9%;
    background: rgba(236, 72, 153, .14);
    animation: pbFloatOrb 11s ease-in-out infinite reverse;
}

.pb-bg-orb.is-blue {
    width: 120px;
    height: 120px;
    left: 48%;
    top: 8%;
    background: rgba(14, 165, 233, .13);
    animation: pbFloatOrbSmall 7s ease-in-out infinite;
}

.pb-app {
    position: relative;
    z-index: auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.pb-main {
    min-height: calc(100vh - 76px - 58px);
    padding: 10px;
    display: flex;
    align-items: stretch;
}

.pb-container {
    width: 100%;
    max-width: 100%;
    margin: 0;
    display: flex;
}

#stepSelect {
    display: none;
    flex-direction: column;
}

#selectCaptureList .col-md-2 {
    flex: 0 0 16.666667%;
    max-width: 16.666667%;
}

.select-card {
    height: 100%;
    border-radius: 22px;
    background: rgba(255, 255, 255, .78);
    border: 1px solid rgba(234, 236, 240, .95);
    box-shadow: var(--pb-shadow-sm);
    padding: 10px;
}

.select-card .position-relative {
    border-radius: 18px;
    overflow: hidden;
    background: #000;
}

#btnSaveSelection {
    flex: 0 0 auto;
    margin-top: 24px !important;
    min-height: 58px;
    border-radius: 18px;
    font-size: 16px;
}

.pb-footer {
    position: relative;
    z-index: 2;
    padding: 18px 28px 24px;
    text-align: center;
    color: var(--pb-muted);
    font-size: 13px;
}

.pb-navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    min-height: 76px;
    padding: 16px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    animation: pbFadeDown .7s ease both;
    background: white;
}

.pb-brand {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 14px;
}

.pb-brand-logo {
    width: 46px;
    height: 46px;
    flex: 0 0 auto;
    border-radius: 16px;
    background: rgba(255, 255, 255, .9);
    border: 1px solid rgba(234, 236, 240, .95);
    box-shadow: var(--pb-shadow-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.pb-brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 7px;
}

.pb-brand-text {
    min-width: 0;
    line-height: 1.2;
}

.pb-brand-text h5 {
    margin: 0;
    color: var(--pb-dark);
    font-size: 18px;
    font-weight: 950;
    letter-spacing: -.4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pb-brand-text span {
    display: block;
    max-width: 320px;
    color: var(--pb-muted);
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pb-status {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.pb-pill {
    min-height: 38px;
    padding: 9px 14px;
    border-radius: var(--pb-radius-pill);
    border: 1px solid rgba(234, 236, 240, .95);
    background: rgba(255, 255, 255, .78);
    color: var(--pb-muted);
    box-shadow: var(--pb-shadow-sm);
    backdrop-filter: blur(16px);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 850;
    transition: .22s ease;
}

.pb-pill:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, .95);
    color: var(--pb-primary);
}

.pb-pill svg {
    width: 15px;
    height: 15px;
    stroke-width: 2.6;
    color: var(--pb-primary);
}

.pb-live-dot {
    width: 8px;
    height: 8px;
    border-radius: var(--pb-radius-pill);
    background: var(--pb-mint);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, .45);
    animation: pbLivePulse 1.6s ease-in-out infinite;
}

.pb-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--pb-radius-lg);
    border: 1px solid var(--pb-glass-border);
    background: var(--pb-glass);
    box-shadow: var(--pb-shadow);
    backdrop-filter: blur(22px);
}

.pb-card::before {
    content: "";
    position: absolute;
    inset: -55%;
    background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .42), transparent 55%);
    opacity: 0;
    pointer-events: none;
}

.pb-card:hover::before {
    opacity: 1;
    animation: pbCardShine 1.4s ease;
}

.pb-card-body {
    position: relative;
    z-index: 2;
    padding: 26px;
}

.pb-panel {
    border-radius: var(--pb-radius);
    border: 1px solid var(--pb-border);
    background: rgba(255, 255, 255, .72);
    box-shadow: var(--pb-shadow-sm);
    padding: 18px;
}

.pb-panel-title {
    color: var(--pb-dark);
    font-size: 18px;
    font-weight: 950;
    margin-bottom: 4px;
}

.pb-panel-desc {
    color: var(--pb-muted);
    font-size: 13px;
    margin-bottom: 0;
}

.pb-btn {
    min-height: 52px;
    border-radius: 18px;
    padding: 14px 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    font-weight: 900;
    line-height: 1;
    transition: .22s ease;
}

.pb-btn svg {
    width: 17px;
    height: 17px;
    stroke-width: 2.6;
}

.pb-btn-primary {
    border: 0;
    color: #fff;
    background: linear-gradient(135deg, var(--pb-primary), var(--pb-candy));
    box-shadow: 0 16px 38px rgba(109, 93, 252, .25);
    position: relative;
    overflow: hidden;
}

.pb-btn-primary::before {
    content: "";
    position: absolute;
    top: 0;
    left: -80%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .35), transparent);
    transform: skewX(-18deg);
    transition: .6s ease;
}

.pb-btn-primary:hover::before {
    left: 130%;
}

.pb-btn-primary:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 20px 48px rgba(109, 93, 252, .34);
}

.pb-btn-light {
    border: 1px solid rgba(234, 236, 240, .9);
    color: var(--pb-dark);
    background: rgba(255, 255, 255, .78);
    backdrop-filter: blur(16px);
}

.pb-btn-light:hover {
    color: var(--pb-primary);
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(16, 24, 40, .08);
}

.pb-btn-soft {
    border: 1px solid rgba(109, 93, 252, .18);
    color: var(--pb-primary);
    background: rgba(109, 93, 252, .10);
}

.pb-btn-soft:hover {
    color: #fff;
    background: var(--pb-primary);
    transform: translateY(-2px);
}

.btn-booth-primary,
.btn-booth-light {
    min-height: 52px;
    border-radius: 18px;
    padding: 14px 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    font-weight: 900;
    transition: .22s ease;
}

.btn-booth-primary {
    border: 0;
    color: #fff;
    background: linear-gradient(135deg, var(--pb-primary), var(--pb-candy));
    box-shadow: 0 16px 38px rgba(109, 93, 252, .25);
}

.btn-booth-primary:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 20px 48px rgba(109, 93, 252, .34);
}

.btn-booth-light {
    border: 1px solid rgba(234, 236, 240, .9);
    color: var(--pb-dark);
    background: rgba(255, 255, 255, .78);
    backdrop-filter: blur(16px);
}

.btn-booth-light:hover {
    color: var(--pb-primary);
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(16, 24, 40, .08);
}

.pb-form-control,
.pb-form-select,
.form-control-booth,
.form-select-booth {
    height: 58px;
    border-radius: 18px;
    border: 1px solid rgba(234, 236, 240, .95);
    background: rgba(255, 255, 255, .82);
    color: var(--pb-dark);
    padding: 0 18px;
    box-shadow: none !important;
    transition: .22s ease;
}

.pb-form-control::placeholder,
.form-control-booth::placeholder {
    color: #98a2b3;
}

.pb-form-control:focus,
.pb-form-select:focus,
.form-control-booth:focus,
.form-select-booth:focus {
    background: #fff;
    color: var(--pb-dark);
    border-color: rgba(109, 93, 252, .65);
    box-shadow: 0 0 0 .25rem rgba(109, 93, 252, .12) !important;
    transform: translateY(-1px);
}

.pb-form-select option,
.form-select-booth option {
    color: #111827;
}

.pb-input-label {
    color: var(--pb-muted);
    font-size: 13px;
    font-weight: 850;
    margin-bottom: 7px;
}

.pb-hero-title {
    color: var(--pb-dark);
    font-size: clamp(30px, 5vw, 58px);
    font-weight: 950;
    letter-spacing: -1.8px;
    line-height: 1;
    margin-bottom: 12px;
}

.pb-hero-title .is-candy {
    background: linear-gradient(135deg, var(--pb-primary), var(--pb-candy), var(--pb-sky));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.pb-hero-desc {
    max-width: 680px;
    color: var(--pb-muted);
    font-size: 16px;
    line-height: 1.7;
}

.pb-camera-shell {
    position: relative;
    border-radius: 34px;
    padding: 12px;
    background: linear-gradient(135deg, rgba(109, 93, 252, .20), rgba(236, 72, 153, .18)), rgba(255, 255, 255, .70);
    border: 1px solid rgba(255, 255, 255, .72);
    box-shadow: 0 30px 90px rgba(16, 24, 40, .16);
}

.pb-camera-frame {
    position: relative;
    overflow: hidden;
    border-radius: 26px;
    background: #090b16;
    aspect-ratio: 4 / 3;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}

.pb-camera-frame video,
.pb-camera-frame canvas,
.pb-camera-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: #090b16;
}

.pb-camera-frame.is-contain video,
.pb-camera-frame.is-contain canvas,
.pb-camera-frame.is-contain img {
    object-fit: contain;
}

.pb-countdown {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: clamp(72px, 14vw, 180px);
    font-weight: 950;
    text-shadow: 0 18px 55px rgba(0, 0, 0, .55);
    background: radial-gradient(circle at center, rgba(109, 93, 252, .18), rgba(0, 0, 0, .42));
}

.pb-floating-action {
    width: 126px;
    height: 126px;
    border: 0;
    border-radius: var(--pb-radius-pill);
    background: radial-gradient(circle at 30% 24%, rgba(255, 255, 255, .45), transparent 28%), linear-gradient(135deg, var(--pb-primary), var(--pb-candy));
    color: #fff;
    box-shadow: 0 28px 80px rgba(236, 72, 153, .35);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: .25s ease;
    animation: pbCandyPulse 1.9s ease-in-out infinite;
}

.pb-floating-action:hover {
    transform: scale(1.06);
    box-shadow: 0 36px 95px rgba(236, 72, 153, .48);
}

.pb-floating-action svg {
    width: 50px;
    height: 50px;
}

.pb-step-list {
    display: grid;
    gap: 12px;
}

.pb-step-item {
    border: 1px solid var(--pb-border);
    border-radius: var(--pb-radius);
    background: rgba(255, 255, 255, .72);
    padding: 14px;
    display: flex;
    gap: 12px;
    align-items: center;
}

.pb-step-number {
    width: 34px;
    height: 34px;
    border-radius: 13px;
    background: linear-gradient(135deg, var(--pb-primary), var(--pb-candy));
    color: #fff;
    font-size: 14px;
    font-weight: 950;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.pb-step-text strong {
    display: block;
    color: var(--pb-dark);
    font-size: 14px;
    font-weight: 950;
    margin-bottom: 2px;
}

.pb-step-text span {
    display: block;
    color: var(--pb-muted);
    font-size: 12px;
}

.modal-backdrop {
    z-index: 1040 !important;
}

.modal {
    z-index: 1060 !important;
}

.modal-dialog,
.modal-content {
    position: relative;
    z-index: 1061 !important;
}

.swal2-container {
    z-index: 3000 !important;
}

@media (max-width: 991px) {
    .pb-main {
        padding: 10px;
    }

    .pb-card-body {
        padding: 22px;
    }

    .final-main-photo-wrap {
        min-height: auto;
    }

    .final-photo {
        max-width: 80%;
    }

    .gif-mini-card {
        position: relative;
        right: auto;
        bottom: auto;
        width: 100%;
        max-width: 240px;
        margin: 14px auto 0;
    }

    .final-side-panel {
        text-align: center;
    }

    .final-qr-box {
        width: 150px;
        height: 150px;
    }

    .final-action-grid {
        grid-template-columns: 1fr;
    }

    .final-new-session {
        grid-column: span 1;
    }

    .booth-event-page .camera-fullscreen-topbar {
        top: 10px;
        left: 10px;
        right: 10px;
        border-radius: 18px;
        align-items: center;
    }

    .booth-event-page .camera-topbar-subtitle {
        display: none;
    }

    .booth-event-page .camera-topbar-actions {
        overflow-x: auto;
        justify-content: flex-end;
        padding-bottom: 2px;
    }

    .booth-event-page .camera-select-mini {
        width: 160px;
        max-width: 160px;
        min-width: 145px;
    }

    .booth-event-page .camera-mini-btn.with-text span {
        display: none;
    }

    .booth-event-page .capture-floating-panel {
        top: auto;
        left: 10px;
        right: 10px;
        bottom: 102px;
        width: auto;
        max-height: 38vh;
        border-radius: 22px;
    }

    .booth-event-page .capture-floating-panel.is-hidden {
        transform: translateY(calc(100% + 24px)) scale(.98);
    }

    .booth-event-page .camera-frame.camera-frame-fullscreen .camera-status-pill {
        top: 74px !important;
    }

    .booth-event-page .camera-frame.camera-frame-fullscreen .camera-capture-btn {
        width: 150px;
        height: 76px;
        bottom: 18px !important;
    }

    .booth-event-page .floating-gallery-pill {
        right: 18px;
        bottom: 25px;
    }

    #templateList .template-preview-wrap {
        height: 280px !important;
        min-height: 280px !important;
        max-height: 280px !important;
    }

    .select-step-layout {
        grid-template-columns: 1fr;
    }

    .select-frame-panel {
        position: relative;
        top: auto;
        order: -1;
    }

    .select-frame-preview {
        min-height: 300px;
    }

    .select-frame-stage {
        height: 300px;
    }

    #stepSelect .select-frame-panel {
        margin-top: 0 !important;
    }

    #stepSelect .select-img {
        min-height: 118px !important;
    }

    #stepFinal {
        padding-top: 62px !important;
        padding-bottom: 92px !important;
    }

    #stepFinal .final-main-photo-wrap {
        width: 100% !important;
        justify-content: center !important;
    }

    #stepFinal .final-photo {
        max-width: min(520px, calc(100vw - 34px)) !important;
        max-height: calc(100vh - 220px) !important;
        border-radius: 22px !important;
    }

    #stepFinal .final-photo-top-action {
        top: 86px !important;
        right: 14px !important;
        position: fixed !important;
        z-index: 1060 !important;
        min-height: 40px !important;
        padding: 0 13px !important;
        border-radius: 999px !important;
        font-size: 12px !important;
        box-shadow: 0 16px 42px rgba(15, 23, 42, .14) !important;
        transform: none !important;
    }

    #stepFinal .final-photo-top-action svg {
        width: 15px !important;
        height: 15px !important;
    }

    #stepFinal .final-floating-side-panel {
        right: auto !important;
        width: auto !important;
        padding: 9px !important;
        position: fixed !important;
        left: 50% !important;
        bottom: 14px !important;
        top: auto !important;
        transform: translateX(-50%) !important;
        z-index: 1050 !important;
        max-width: calc(100vw - 24px) !important;
        border-radius: 999px !important;
        background: rgba(255, 255, 255, .84) !important;
        border: 1px solid rgba(226, 232, 240, .95) !important;
        box-shadow: 0 24px 70px rgba(15, 23, 42, .18) !important;
        backdrop-filter: blur(22px) !important;
    }

    #stepFinal .final-action-grid {
        display: flex !important;
        grid-template-columns: none !important;
        flex-direction: row !important;
        gap: 8px !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 !important;
    }

    #stepFinal .final-action-grid .btn,
    #stepFinal .final-action-grid a,
    #stepFinal .final-action-grid button {
        width: 48px !important;
        height: 48px !important;
        min-width: 48px !important;
        min-height: 48px !important;
    }

    #stepFinal .final-action-grid .btn svg,
    #stepFinal .final-action-grid a svg,
    #stepFinal .final-action-grid button svg {
        width: 20px !important;
        height: 20px !important;
    }

    #stepFinal .gif-mini-card {
        display: block !important;
        position: fixed !important;
        left: 14px !important;
        right: auto !important;
        bottom: 84px !important;
        top: auto !important;
        transform: none !important;
        z-index: 1045 !important;
        width: 136px !important;
        max-width: 136px !important;
        margin: 0 !important;
        border-radius: 16px !important;
        background: rgba(15, 23, 42, .72) !important;
        color: #fff !important;
        box-shadow: 0 18px 50px rgba(15, 23, 42, .22) !important;
        backdrop-filter: blur(18px) !important;
    }

    #stepFinal .gif-mini-card .gif-mini-header {
        padding: 8px 9px 5px !important;
        gap: 6px !important;
    }

    #stepFinal .gif-mini-card .gif-mini-header strong {
        font-size: 11px !important;
        line-height: 1.1 !important;
    }

    #stepFinal .gif-mini-card .gif-mini-header span {
        font-size: 9px !important;
        line-height: 1.1 !important;
    }

    #stepFinal .gif-mini-card .gif-mini-header svg {
        width: 16px !important;
        height: 16px !important;
    }

    #stepFinal .gif-mini-preview {
        height: 82px !important;
        width: 100% !important;
        object-fit: cover !important;
        border-radius: 12px !important;
    }

    #stepFinal .final-action-grid a[title]::after,
    #stepFinal .final-action-grid button[title]::after,
    #stepFinal .final-photo-top-action[title]::after {
        display: none !important;
    }

    #stepTemplate .template-preview-stage {
        height: 176px !important;
        max-width: 118px !important;
    }

    .template-compact-bar {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .template-countdown-pill {
        grid-column: 1 / -1;
        width: 100%;
        max-width: none;
        justify-content: flex-start;
    }

    .template-countdown-text strong,
    .template-countdown-text span {
        max-width: none;
    }

    #stepTemplate .template-col-slim,
    #stepTemplate .template-col-medium,
    #stepTemplate .template-col-wide {
        width: calc(33.333% - .5rem) !important;
    }

    #stepTemplate .template-preview-wrap {
        height: 166px !important;
        min-height: 166px !important;
        max-height: 166px !important;
    }

    #stepTemplate .template-compact-bar-centered {
        grid-template-columns: minmax(0, 1fr) auto !important;
    }

    #stepTemplate .template-compact-bar-centered .template-countdown-pill {
        grid-column: 1 / -1 !important;
        grid-row: 2 !important;
        justify-self: center !important;
        width: min(360px, 100%) !important;
        max-width: 100% !important;
    }

    #stepTemplate .template-compact-bar-centered .booth-template-result-info {
        justify-self: end !important;
    }

    #stepTemplate .booth-toolbar-template {
        grid-template-columns: minmax(0, 1fr) auto !important;
        gap: 10px !important;
    }

    #stepTemplate .template-toolbar-countdown {
        grid-column: 1 / -1 !important;
        grid-row: 2 !important;
        justify-self: center !important;
        width: 100% !important;
    }

    #stepTemplate .template-toolbar-countdown .template-countdown-pill {
        width: min(360px, 100%) !important;
        max-width: 100% !important;
    }

    #stepTemplate .booth-toolbar-template #btnBackToStart {
        grid-column: 2 !important;
        grid-row: 1 !important;
    }

    #stepSelect .booth-toolbar-select {
        grid-template-columns: minmax(0, 1fr) auto !important;
    }

    #stepSelect .select-toolbar-countdown {
        grid-column: 1 / -1 !important;
        grid-row: 2 !important;
        justify-self: center !important;
        width: 100% !important;
    }

    .select-countdown-pill {
        width: min(380px, 100%);
        max-width: 100%;
    }

    #stepSelect .booth-toolbar-select .select-retake-btn {
        grid-column: 2 !important;
        grid-row: 1 !important;
    }

    .final-auto-session-card {
        top: 8px;
        width: calc(100vw - 24px);
        align-items: flex-start;
        flex-direction: column;
    }

    .final-countdown-actions {
        width: 100%;
        justify-content: flex-end;
    }

    #stepFinal .final-preview-area-wide {
        width: 100% !important;
        padding-right: 0 !important;
        max-width: calc(100vw - 24px) !important;
        padding: 0 10px !important;
        margin: 0 auto !important;
        display: flex !important;
        justify-content: center !important;
        padding-top: 0 !important;
    }

    #stepFinal .final-preview-area-wide.has-final-auto-timer {
        padding-top: 78px !important;
    }
}

@media (max-width: 768px) {
    .pb-navbar {
        height: auto;
        padding: 16px;
        gap: 14px;
        flex-direction: column;
        align-items: flex-start;
    }

    .pb-status {
        width: 100%;
        justify-content: flex-start;
    }

    .pb-pill {
        min-height: 36px;
        padding: 8px 12px;
        font-size: 12px;
    }

    .pb-main {
        padding: 10px;
    }

    .pb-brand-text h5 {
        font-size: 16px;
    }

    .pb-brand-text span {
        max-width: 260px;
    }

    .pb-card {
        border-radius: 24px;
    }

    .pb-camera-shell {
        border-radius: 26px;
        padding: 8px;
    }

    .pb-camera-frame {
        border-radius: 20px;
    }

    .pb-floating-action {
        width: 104px;
        height: 104px;
    }

    .pb-floating-action svg {
        width: 42px;
        height: 42px;
    }

    .booth-start-card {
        padding: 24px 18px;
        border-radius: 28px;
    }

    .booth-box {
        padding: 18px;
        border-radius: 24px;
    }

    .booth-tool-actions,
    .camera-select,
    .booth-icon-btn {
        width: 100%;
    }

    .booth-icon-btn {
        justify-content: center;
    }

    #cameraPreview {
        height: 320px;
    }

    .capture-list {
        max-height: none;
    }

    .camera-capture-btn {
        bottom: 16px;
        min-width: 160px;
        height: 48px;
        font-size: 14px;
    }

    .camera-countdown-number {
        width: 126px;
        height: 126px;
        font-size: 78px;
    }

    .start-camera-btn {
        width: 108px;
        height: 108px;
    }

    .start-camera-btn svg {
        width: 42px;
        height: 42px;
    }

    .mixed-final-stage {
        width: 100%;
        border-radius: 18px;
        max-height: 70vh;
    }

    .selfbox-timer-card {
        align-items: flex-start;
        border-radius: 18px;
    }

    .selfbox-timer-icon {
        width: 38px;
        height: 38px;
        border-radius: 14px;
    }

    .selfbox-timer-number {
        min-width: 42px;
        height: 42px;
        font-size: 18px;
    }

    .final-auto-session-card {
        top: 8px;
        width: calc(100vw - 24px);
        padding: 10px;
    }

    .final-auto-session-card .selfbox-timer-left {
        gap: 8px;
    }

    .final-auto-session-card .selfbox-timer-right {
        width: 100%;
        justify-content: flex-end;
    }

    #stepTemplate #templateList {
        --bs-gutter-x: .6rem !important;
        --bs-gutter-y: .6rem !important;
    }

    #stepTemplate .template-col-slim .template-preview-stage {
        max-width: 58px !important;
    }

    #stepTemplate .template-col-medium .template-preview-stage {
        max-width: 72px !important;
    }

    #stepTemplate .template-col-wide .template-preview-stage {
        max-width: 102px !important;
    }

    .template-compact-bar {
        grid-template-columns: 1fr auto;
        gap: 7px;
    }

    .template-compact-bar .booth-template-result-info {
        padding: 0 10px !important;
    }

    #stepTemplate .template-col-slim,
    #stepTemplate .template-col-medium,
    #stepTemplate .template-col-wide {
        width: calc(50% - .32rem) !important;
    }

    #stepTemplate .template-preview-wrap {
        height: 154px !important;
        min-height: 154px !important;
        max-height: 154px !important;
        padding: 8px !important;
    }

    #stepTemplate .template-info {
        padding: 8px !important;
        min-height: 76px !important;
    }
}

@media (max-width: 480px) {
    .pb-status .pb-pill:last-child {
        display: none;
    }

    .pb-brand-text span {
        max-width: 220px;
    }

    .pb-card-body {
        padding: 18px;
    }

    .pb-btn,
    .btn-booth-primary,
    .btn-booth-light {
        width: 100%;
    }

    .selfbox-timer-card {
        gap: 9px;
        padding: 9px;
    }

    .selfbox-timer-title {
        font-size: 12px;
    }

    .selfbox-timer-desc {
        font-size: 10px;
    }

    .selfbox-timer-cancel {
        min-height: 34px;
        padding: 0 10px;
        font-size: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important;
    }
}

@keyframes pbFadeUp {
    from {
        opacity: 0;
        transform: translateY(22px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pbFadeDown {
    from {
        opacity: 0;
        transform: translateY(-16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pbFloatOrb {

    0%,
    100% {
        transform: translate3d(0, 0, 0) scale(1);
    }

    50% {
        transform: translate3d(22px, -28px, 0) scale(1.08);
    }
}

@keyframes pbFloatOrbSmall {

    0%,
    100% {
        transform: translate3d(0, 0, 0);
    }

    50% {
        transform: translate3d(-18px, 18px, 0);
    }
}

@keyframes pbLivePulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, .45);
    }

    50% {
        box-shadow: 0 0 0 8px rgba(34, 197, 94, 0);
    }
}

@keyframes pbCardShine {
    0% {
        transform: translateX(-35%);
    }

    100% {
        transform: translateX(35%);
    }
}

@keyframes pbCandyPulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 28px 80px rgba(236, 72, 153, .35);
    }

    50% {
        transform: scale(1.045);
        box-shadow: 0 34px 92px rgba(109, 93, 252, .42);
    }
}

.booth-event-page {
    width: 100%;
    min-height: calc(100vh - 76px - 58px);
}

.booth-event-page.theme-candy {
    --booth-card-blur: 22px;
    --booth-card-opacity: .78;
}

.booth-event-page.theme-elegant {
    --booth-card-blur: 18px;
    --booth-card-opacity: .84;
}

.booth-event-page.theme-fun {
    --booth-card-blur: 24px;
    --booth-card-opacity: .76;
}

.booth-event-page.theme-corporate {
    --booth-card-blur: 14px;
    --booth-card-opacity: .90;
}

.booth-event-page.theme-dark {
    --pb-dark: #f8fafc;
    --pb-text: #e5e7eb;
    --pb-muted: #cbd5e1;
    --pb-soft: rgba(255, 255, 255, .08);
    --pb-glass: rgba(15, 23, 42, .78);
    --pb-glass-border: rgba(255, 255, 255, .12);
    --booth-card-blur: 22px;
    --booth-card-opacity: .82;
}

.booth-event-page.layout-centered .booth-box {
    max-width: 1080px;
    margin: 0 auto;
}

.booth-event-page.layout-fullscreen .booth-start-screen,
.booth-event-page.layout-fullscreen .booth-box {
    min-height: calc(100vh - 160px);
}

.booth-event-page.layout-minimal .booth-box,
.booth-event-page.layout-minimal .template-card,
.booth-event-page.layout-minimal .final-side-panel {
    box-shadow: 0 12px 34px rgba(16, 24, 40, .07);
}

.booth-step,
.booth-workspace {
    display: none;
}

.booth-step.active,
.booth-workspace.active {
    display: block;
    animation: boothStepIn .25s ease both;
}

.booth-workspace.active {
    width: 100%;
    display: flex;
}

.booth-step.active {
    width: 100%;
    height: 100%;
}

#stepTemplate,
#stepCamera,
#stepSelect,
#stepFinal {
    min-height: 100%;
}

#stepSelect.active {
    display: flex;
    flex-direction: column;
}

#selectCaptureList {
    flex: 1;
    align-content: flex-start;
}

@keyframes boothStepIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.booth-start-screen {
    min-height: 72vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.booth-start-card {
    width: min(980px, 100%);
    position: relative;
    overflow: hidden;
    border-radius: 36px;
    border: 1px solid var(--pb-glass-border);
    background: radial-gradient(circle at top right, rgba(236, 72, 153, .18), transparent 34%), radial-gradient(circle at bottom left, rgba(14, 165, 233, .12), transparent 34%), rgba(255, 255, 255, var(--booth-card-opacity, .78));
    box-shadow: var(--pb-shadow);
    backdrop-filter: blur(var(--booth-card-blur, 22px));
    padding: 34px;
}

.theme-dark .booth-start-card {
    background: radial-gradient(circle at top right, rgba(236, 72, 153, .20), transparent 34%), radial-gradient(circle at bottom left, rgba(14, 165, 233, .14), transparent 34%), rgba(15, 23, 42, .78);
}

.booth-start-cover {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: .18;
}

.booth-start-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: saturate(1.15) contrast(1.05);
}

.booth-start-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, .72), rgba(255, 255, 255, .86)), radial-gradient(circle at top right, rgba(236, 72, 153, .22), transparent 38%);
}

.theme-dark .booth-start-cover::after {
    background: linear-gradient(135deg, rgba(15, 23, 42, .76), rgba(15, 23, 42, .88)), radial-gradient(circle at top right, rgba(236, 72, 153, .18), transparent 38%);
}

.booth-start-content {
    position: relative;
    z-index: 2;
    max-width: 720px;
    margin: 0 auto;
}

.booth-event-badge {
    width: fit-content;
    min-height: 38px;
    margin: 0 auto 18px;
    padding: 8px 14px;
    border-radius: var(--pb-radius-pill);
    background: rgba(255, 255, 255, .78);
    border: 1px solid rgba(234, 236, 240, .95);
    color: var(--pb-primary);
    font-size: 13px;
    font-weight: 950;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--pb-shadow-sm);
    backdrop-filter: blur(16px);
}

.theme-dark .booth-event-badge {
    background: rgba(255, 255, 255, .10);
    border-color: rgba(255, 255, 255, .14);
    color: #fff;
}

.booth-event-badge svg {
    width: 16px;
    height: 16px;
    stroke-width: 2.6;
}

.booth-start-title {
    color: var(--pb-dark);
    font-size: clamp(32px, 5vw, 58px);
    line-height: 1;
    font-weight: 950;
    letter-spacing: -1.8px;
    margin-bottom: 12px;
}

.booth-start-title .is-candy {
    background: linear-gradient(135deg, var(--pb-primary), var(--pb-candy), var(--pb-sky));
    background-size: 220% 220%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: boothGradientMove 4s ease-in-out infinite;
}

.booth-start-desc {
    max-width: 620px;
    margin: 0 auto 26px;
    color: var(--pb-muted);
    font-size: 16px;
    line-height: 1.7;
}

.booth-event-meta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}

.booth-event-chip {
    min-height: 36px;
    padding: 8px 12px;
    border-radius: var(--pb-radius-pill);
    background: rgba(255, 255, 255, .72);
    border: 1px solid rgba(234, 236, 240, .95);
    color: var(--pb-muted);
    font-size: 13px;
    font-weight: 850;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(16px);
}

.theme-dark .booth-event-chip {
    background: rgba(255, 255, 255, .10);
    border-color: rgba(255, 255, 255, .14);
    color: #e5e7eb;
}

.booth-event-chip svg {
    width: 15px;
    height: 15px;
    color: var(--pb-primary);
    stroke-width: 2.5;
}

.start-camera-btn {
    width: 126px;
    height: 126px;
    border: 0;
    border-radius: var(--pb-radius-pill);
    background: radial-gradient(circle at 30% 24%, rgba(255, 255, 255, .45), transparent 30%), linear-gradient(135deg, var(--pb-primary), var(--pb-candy));
    color: #fff;
    box-shadow: 0 28px 80px rgba(236, 72, 153, .35);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: .25s ease;
    animation: candyCameraFloat 2.4s ease-in-out infinite;
    margin: 0 auto;
}

.start-camera-btn::before {
    content: "";
    position: absolute;
    inset: -12px;
    border-radius: inherit;
    background: linear-gradient(135deg, var(--pb-primary), var(--pb-candy));
    opacity: .35;
    z-index: -1;
    animation: candyCameraPulse 1.8s ease-out infinite;
}

.start-camera-btn:hover {
    transform: scale(1.06);
    box-shadow: 0 36px 95px rgba(236, 72, 153, .48);
    animation-play-state: paused;
}

.start-camera-btn svg {
    width: 50px;
    height: 50px;
    position: relative;
    z-index: 2;
    animation: candyCameraWiggle 1.6s ease-in-out infinite;
}

.booth-box {
    width: 100%;
    min-height: calc(100vh - 76px - 58px - 48px);
    padding: 32px;
    border-radius: var(--pb-radius-lg);
    display: flex;
    flex-direction: column;
    border: 1px solid var(--pb-glass-border);
    background: var(--pb-glass);
    box-shadow: var(--pb-shadow);
    backdrop-filter: blur(var(--booth-card-blur, 22px));
}

.booth-toolbar {
    flex: 0 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.booth-tool-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.booth-title {
    color: var(--pb-dark);
    font-size: 22px;
    font-weight: 950;
    letter-spacing: -.8px;
    margin-bottom: 4px;
}

.booth-desc,
.booth-mini {
    color: var(--pb-muted);
}

.booth-desc {
    font-size: 14px;
    margin-bottom: 22px;
}

.booth-mini {
    font-size: 13px;
    font-weight: 750;
}

.booth-icon-btn {
    min-height: 44px;
    border-radius: 15px;
    border: 1px solid rgba(109, 93, 252, .16);
    background: rgba(255, 255, 255, .74);
    color: var(--pb-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 14px;
    font-weight: 850;
    transition: .2s ease;
    box-shadow: var(--pb-shadow-sm);
}

.booth-icon-btn:hover {
    color: var(--pb-primary);
    background: #fff;
    transform: translateY(-2px);
}

.booth-icon-btn svg {
    width: 18px;
    height: 18px;
}

.theme-dark .booth-icon-btn,
.theme-dark .camera-select,
.theme-dark .final-side-panel,
.theme-dark .template-card {
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .14);
    color: #f8fafc;
}

.template-card {
    height: 100%;
    border-radius: 20px;
    padding: 10px;
    background: rgba(255, 255, 255, .76);
    border: 1px solid rgba(234, 236, 240, .95);
    cursor: pointer;
    transition: .2s ease;
    box-shadow: var(--pb-shadow-sm);
}

.template-card:hover {
    transform: translateY(-3px);
    background: #fff;
    box-shadow: var(--pb-shadow-hover);
}

.template-card.active {
    border-color: var(--pb-candy);
    box-shadow: 0 0 0 4px rgba(236, 72, 153, .14), 0 24px 64px rgba(236, 72, 153, .16);
}

.template-check {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    border-radius: var(--pb-radius-pill);
    background: linear-gradient(135deg, var(--pb-primary), var(--pb-candy));
    color: #fff;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 30px rgba(236, 72, 153, .35);
}

.template-card.active .template-check {
    display: flex;
}

.template-start-overlay {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 14px;
    background: rgba(16, 24, 40, .18);
    backdrop-filter: blur(2px);
}

.template-card.active .template-start-overlay {
    display: flex;
}

.template-start-btn {
    border: 0;
    border-radius: var(--pb-radius-pill);
    padding: 11px 18px;
    background: linear-gradient(135deg, var(--pb-primary), var(--pb-candy));
    color: #fff;
    font-size: 13px;
    font-weight: 950;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 16px 42px rgba(236, 72, 153, .38);
    transition: .2s ease;
}

.template-start-btn:hover {
    transform: scale(1.05);
}

.template-info {
    padding-top: 10px;
}

.template-name {
    color: var(--pb-dark);
    font-size: 14px;
    font-weight: 950;
    line-height: 1.25;
    margin-bottom: 2px;
}

.template-meta {
    color: var(--pb-muted);
    font-size: 12px;
    font-weight: 750;
}

.camera-select {
    min-width: 190px;
    max-width: 260px;
    height: 44px;
    border-radius: 15px;
    border: 1px solid rgba(109, 93, 252, .16);
    background: rgba(255, 255, 255, .82);
    color: var(--pb-dark);
    padding: 0 14px;
    font-weight: 800;
    outline: none;
    box-shadow: var(--pb-shadow-sm);
}

.camera-frame {
    position: relative !important;
    overflow: hidden !important;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, .72);
    background: #090b16;
    box-shadow: 0 30px 90px rgba(16, 24, 40, .18);
}

#cameraPreview {
    width: 100%;
    height: 520px;
    object-fit: cover;
    display: block;
    transform: scaleX(-1);
    background: #090b16;
}

.camera-status-pill {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 5;
    padding: 8px 14px;
    border-radius: var(--pb-radius-pill);
    background: rgba(0, 0, 0, .52);
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, .16);
}

.camera-capture-btn {
    position: absolute;
    left: 50%;
    bottom: 24px;
    z-index: 6;
    transform: translateX(-50%);
    min-width: 190px;
    height: 54px;
    border: 0;
    border-radius: var(--pb-radius-pill);
    background: linear-gradient(135deg, var(--pb-primary), var(--pb-candy));
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 18px;
    font-weight: 950;
    box-shadow: 0 18px 45px rgba(236, 72, 153, .35);
    transition: .22s ease;
}

.camera-capture-btn:hover {
    transform: translateX(-50%) scale(1.04);
    box-shadow: 0 24px 58px rgba(236, 72, 153, .48);
}

.camera-capture-btn:disabled {
    opacity: .65;
    cursor: not-allowed;
    transform: translateX(-50%);
}

.camera-capture-btn.is-hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateX(-50%) translateY(10px) scale(.96);
}

.camera-countdown-overlay {
    position: absolute !important;
    inset: 0 !important;
    z-index: 30 !important;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .28);
    backdrop-filter: blur(2px);
    pointer-events: none;
}

.camera-countdown-number {
    width: 170px;
    height: 170px;
    border-radius: var(--pb-radius-pill);
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .22);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 110px;
    font-weight: 950;
    line-height: 1;
    text-shadow: 0 12px 45px rgba(0, 0, 0, .65);
    box-shadow: 0 30px 90px rgba(0, 0, 0, .35);
}

.capture-list {
    max-height: 520px;
    overflow-y: auto;
    padding-right: 4px;
}

.capture-card,
.select-card {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    background: #000;
    border: 1px solid rgba(255, 255, 255, .12);
    cursor: pointer;
}

.capture-img,
.select-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}

.select-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 18px;
}

.capture-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 8px;
    opacity: 0;
    transition: .2s ease;
    background: linear-gradient(to bottom, rgba(0, 0, 0, .38), transparent 48%);
}

.capture-card:hover .capture-overlay {
    opacity: 1;
}

.capture-btn {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 12px;
    color: #fff;
    background: rgba(0, 0, 0, .58);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .2s ease;
}

.capture-btn:hover {
    background: rgba(0, 0, 0, .85);
}

.select-card.selected .select-img {
    filter: brightness(.72);
}

.select-check,
.select-order {
    position: absolute;
    top: 10px;
    z-index: 3;
    border-radius: var(--pb-radius-pill);
    color: #fff;
    display: none;
    align-items: center;
    justify-content: center;
}

.select-check {
    right: 10px;
    width: 34px;
    height: 34px;
    background: linear-gradient(135deg, var(--pb-primary), var(--pb-candy));
    box-shadow: 0 12px 30px rgba(236, 72, 153, .35);
}

.select-order {
    left: 10px;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    background: rgba(0, 0, 0, .62);
    font-size: 13px;
    font-weight: 950;
    backdrop-filter: blur(10px);
}

.select-card.selected .select-check,
.select-card.selected .select-order {
    display: flex;
}

.select-overlay-text {
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 12px;
    z-index: 3;
    display: none;
    padding: 7px 10px;
    border-radius: var(--pb-radius-pill);
    background: rgba(0, 0, 0, .58);
    color: #fff;
    font-size: 12px;
    font-weight: 850;
    text-align: center;
    backdrop-filter: blur(10px);
}

.select-card.selected .select-overlay-text {
    display: block;
}

.voucher-modal {
    border: 0;
    border-radius: 28px;
    padding: 28px;
    background: #fff;
}

.voucher-icon {
    width: 58px;
    height: 58px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--pb-primary), var(--pb-candy));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 16px 42px rgba(236, 72, 153, .24);
}

.voucher-input {
    height: 56px;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    padding: 0 18px;
    font-weight: 850;
    text-transform: uppercase;
}

.voucher-input:focus {
    border-color: var(--pb-candy);
    box-shadow: 0 0 0 .25rem rgba(236, 72, 153, .15);
}

.voucher-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #9ca3af;
    font-size: 12px;
    margin: 14px 0;
}

.voucher-divider::before,
.voucher-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}

.qr-scanner-box {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    max-height: 360px;
    overflow: hidden;
    border-radius: 22px;
    background: #000;
    margin-bottom: 14px;
    border: 1px solid #e5e7eb;
}

#qrVideo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.qr-frame {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.qr-frame::before {
    content: "";
    width: 68%;
    max-width: 240px;
    aspect-ratio: 1 / 1;
    border-radius: 22px;
    border: 2px solid rgba(255, 255, 255, .95);
    box-shadow: 0 0 0 999px rgba(0, 0, 0, .38), 0 0 30px rgba(236, 72, 153, .35);
}

.qr-line {
    position: absolute;
    width: 58%;
    max-width: 210px;
    height: 3px;
    border-radius: var(--pb-radius-pill);
    background: linear-gradient(90deg, transparent, var(--pb-candy), #fff, var(--pb-candy), transparent);
    box-shadow: 0 0 18px rgba(236, 72, 153, .9);
    animation: qrScanMove 1.6s ease-in-out infinite alternate;
}

.qr-camera-tools {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    margin-bottom: 10px;
}

.qr-camera-select,
.qr-camera-switch-btn,
.qr-action-btn {
    height: 44px;
    border-radius: 14px;
    font-weight: 800;
}

.qr-camera-select,
.qr-camera-switch-btn {
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #111827;
}

.qr-camera-select {
    padding: 0 12px;
    font-size: 13px;
    outline: none;
}

.qr-camera-switch-btn {
    width: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.final-preview-area {
    position: relative;
}

.final-main-photo-wrap {
    width: 100%;
    min-height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.final-photo {
    max-width: 45%;
    max-height: 640px;
    border-radius: 28px;
    box-shadow: 0 30px 90px rgba(0, 0, 0, .35);
}

.final-side-panel {
    padding: 14px;
    border-radius: 26px;
    background: rgba(255, 255, 255, .76);
    border: 1px solid rgba(234, 236, 240, .95);
    backdrop-filter: blur(18px);
    box-shadow: var(--pb-shadow-sm);
}

.final-qr-card {
    width: 100%;
    padding: 16px;
    border-radius: 18px;
    text-align: center;
    background: var(--pb-soft);
}

.final-qr-box {
    width: 170px;
    height: 170px;
    padding: 10px;
    border-radius: 18px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: var(--pb-shadow-sm);
}

.final-qr-text {
    color: var(--pb-muted);
    font-size: 13px;
    font-weight: 750;
    margin-top: 10px;
}

.final-action-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.final-action-grid .btn,
#stepFinal .btn {
    min-height: 46px;
    border-radius: 14px;
    font-weight: 850;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.final-new-session {
    grid-column: span 2;
}

.gif-mini-card {
    position: absolute;
    right: 18px;
    bottom: 200px;
    width: 190px;
    padding: 10px;
    border-radius: 18px;
    background: rgba(0, 0, 0, .55);
    border: 1px solid rgba(255, 255, 255, .14);
    backdrop-filter: blur(16px);
    box-shadow: 0 20px 55px rgba(0, 0, 0, .35);
    z-index: 8;
}

.gif-mini-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: #fff;
    margin-bottom: 8px;
}

.gif-mini-header strong {
    display: block;
    font-size: 12px;
    line-height: 1.1;
}

.gif-mini-header span {
    display: block;
    font-size: 10px;
    color: rgba(255, 255, 255, .62);
    margin-top: 2px;
}

.gif-mini-preview {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 13px;
    display: block;
    background: #000;
}

@page {
    size: portrait;
    margin: 0;
}

@media print {

    html,
    body {
        width: 100%;
        height: 100%;
        margin: 0 !important;
        padding: 0 !important;
        background: #fff !important;
    }

    body * {
        visibility: hidden !important;
    }

    #printArea,
    #printArea * {
        visibility: visible !important;
    }

    #printArea {
        position: fixed !important;
        inset: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        margin: 0 !important;
        padding: 0 !important;
        background: #fff !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    #printArea img {
        width: auto !important;
        height: 100vh !important;
        max-width: 100vw !important;
        max-height: 100vh !important;
        object-fit: contain !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }
}

@keyframes candyCameraFloat {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-10px) scale(1.03);
    }
}

@keyframes candyCameraPulse {
    0% {
        transform: scale(.92);
        opacity: .45;
    }

    70%,
    100% {
        transform: scale(1.22);
        opacity: 0;
    }
}

@keyframes candyCameraWiggle {

    0%,
    100% {
        transform: rotate(0deg) scale(1);
    }

    40% {
        transform: rotate(-6deg) scale(1.06);
    }

    70% {
        transform: rotate(6deg) scale(1.04);
    }
}

@keyframes boothGradientMove {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

@keyframes qrScanMove {
    from {
        transform: translateY(-105px);
    }

    to {
        transform: translateY(105px);
    }
}

.booth-start-simple {
    min-height: calc(100vh - 190px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 22px;
    text-align: center;
    padding: 24px;
}

.booth-simple-logo {
    width: 118px;
    height: 118px;
    border-radius: 32px;
    padding: 10px;
    background: rgba(255, 255, 255, .78);
    border: 1px solid rgba(255, 255, 255, .72);
    box-shadow: 0 20px 60px rgba(15, 23, 42, .12);
    overflow: hidden;
}

.booth-simple-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 24px;
}

.simple-camera-btn {
    width: 138px;
    height: 138px;
    border-radius: 999px;
    border: 0;
    background: linear-gradient(135deg, var(--pb-primary), var(--pb-candy));
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 28px 80px rgba(236, 72, 153, .35);
    animation: cameraPulse 1.8s ease-in-out infinite;
}

.simple-camera-btn:hover {
    transform: scale(1.06);
    box-shadow: 0 36px 95px rgba(236, 72, 153, .48);
}

.simple-camera-btn svg {
    width: 56px;
    height: 56px;
    stroke-width: 2.2;
}

.booth-simple-text {
    font-size: 15px;
    font-weight: 800;
    color: #475569;
    letter-spacing: .2px;
    background: rgba(255, 255, 255, .72);
    border: 1px solid rgba(255, 255, 255, .75);
    padding: 10px 18px;
    border-radius: 999px;
    box-shadow: 0 14px 35px rgba(15, 23, 42, .08);
}

@keyframes cameraPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 28px 80px rgba(236, 72, 153, .35);
    }

    50% {
        transform: scale(1.07);
        box-shadow: 0 38px 100px rgba(236, 72, 153, .52);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 28px 80px rgba(236, 72, 153, .35);
    }
}

.voucher-code-wrap {
    position: relative;
}

.voucher-prefix {
    position: absolute;
    left: 18px;
    top: 50%;
    z-index: 2;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 18px;
    font-weight: 950;
    pointer-events: none;
}

.voucher-number-input {
    padding-left: 62px !important;
    font-size: 18px;
    font-weight: 950;
    letter-spacing: 1px;
}

body.booth-camera-fullscreen {
    width: 100vw;
    height: 100dvh;
    overflow: hidden !important;
    background: #000;
}

body.booth-camera-fullscreen .booth-event-page {
    min-height: 100dvh;
    background: #000 !important;
}

.booth-event-page .booth-workspace.camera-fullscreen-mode {
    position: fixed !important;
    inset: 0 !important;
    z-index: 1080 !important;
    display: block !important;
    width: 100vw !important;
    height: 100dvh !important;
    padding: 0 !important;
    margin: 0 !important;
    background: #000 !important;
    overflow: hidden !important;
}

.booth-event-page .booth-workspace.camera-fullscreen-mode .booth-box {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    max-width: none !important;
    height: 100dvh !important;
    min-height: 100dvh !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    border: 0 !important;
    background: #000 !important;
    box-shadow: none !important;
    overflow: hidden !important;
}

.booth-event-page .booth-workspace.camera-fullscreen-mode #stepCamera.booth-step.active {
    position: fixed !important;
    inset: 0 !important;
    display: block !important;
    width: 100vw !important;
    height: 100dvh !important;
    padding: 0 !important;
    margin: 0 !important;
    background: #000 !important;
    overflow: hidden !important;
}

.booth-event-page .camera-fullscreen-shell {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100dvh !important;
    min-height: 100dvh !important;
    background: #000 !important;
    overflow: hidden !important;
}

.booth-event-page .camera-live-area {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100dvh !important;
    display: block !important;
    background: #000 !important;
    overflow: hidden !important;
}

.booth-event-page .camera-frame.camera-frame-fullscreen {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100dvh !important;
    min-height: 100dvh !important;
    max-height: none !important;
    border-radius: 0 !important;
    border: 0 !important;
    background: #000 !important;
    box-shadow: none !important;
    overflow: hidden !important;
}

.booth-event-page .camera-frame.camera-frame-fullscreen video,
body.booth-camera-fullscreen #cameraPreview {
    position: absolute !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100dvh !important;
    min-height: 100dvh !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: cover !important;
    background: #000 !important;
    display: block !important;
}

.booth-event-page .camera-fullscreen-topbar {
    position: fixed;
    top: 16px;
    left: 18px;
    right: 18px;
    z-index: 80;
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 10px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 22px;
    background: rgba(15, 23, 42, .52);
    backdrop-filter: blur(18px);
    color: #fff;
    box-shadow: 0 18px 48px rgba(0, 0, 0, .20);
}

.booth-event-page .camera-topbar-left,
.booth-event-page .camera-topbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.booth-event-page .camera-topbar-title {
    color: #fff;
    font-size: 15px;
    font-weight: 950;
    line-height: 1.05;
    white-space: nowrap;
}

.booth-event-page .camera-topbar-subtitle {
    margin-top: 3px;
    color: rgba(255, 255, 255, .68);
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.booth-event-page .camera-mini-btn {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, .16);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0;
    color: #fff;
    background: rgba(255, 255, 255, .10);
    backdrop-filter: blur(10px);
    box-shadow: none;
    transition: .18s ease;
}

.booth-event-page .camera-mini-btn:hover {
    transform: translateY(-1px);
    color: #fff;
    background: rgba(255, 255, 255, .18);
}

.booth-event-page .camera-mini-btn svg {
    width: 18px;
    height: 18px;
    stroke-width: 2.4;
}

.booth-event-page .camera-mini-btn.with-text {
    width: auto;
    min-width: 42px;
    padding: 0 13px;
    font-size: 12px;
    font-weight: 900;
}

.booth-event-page .camera-select-mini {
    width: 210px;
    max-width: 28vw;
    height: 42px !important;
    min-height: 42px !important;
    border-radius: 15px !important;
    border: 1px solid rgba(255, 255, 255, .16) !important;
    background: rgba(255, 255, 255, .10) !important;
    color: #fff !important;
    font-size: 12px !important;
    font-weight: 850;
    padding-inline: 12px;
    box-shadow: none !important;
    outline: none !important;
}

.booth-event-page .camera-select-mini option {
    color: #111827;
    background: #fff;
}

.booth-event-page .camera-frame.camera-frame-fullscreen .camera-status-pill {
    position: fixed !important;
    top: 88px !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    z-index: 72;
    width: auto !important;
    min-width: 96px;
    border-radius: 999px;
    padding: 9px 16px;
    background: rgba(15, 23, 42, .62) !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, .15);
    backdrop-filter: blur(14px);
    box-shadow: 0 14px 32px rgba(0, 0, 0, .20);
    font-size: 12px;
    font-weight: 950;
    text-align: center;
}

.booth-event-page .camera-frame.camera-frame-fullscreen .camera-capture-btn {
    position: fixed !important;
    left: 50% !important;
    bottom: 26px !important;
    top: auto !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    z-index: 84;
    width: 172px;
    height: 82px;
    border-radius: 999px;
    border: 0;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    color: #fff;
    background: linear-gradient(135deg, #7c3aed, #ec4899);
    box-shadow: 0 28px 75px rgba(236, 72, 153, .42);
    font-size: 12px;
    font-weight: 950;
}

.booth-event-page .camera-frame.camera-frame-fullscreen .camera-capture-btn svg {
    width: 30px;
    height: 30px;
}

.booth-event-page .capture-floating-panel {
    position: fixed;
    top: 88px;
    right: 18px;
    bottom: 18px;
    z-index: 78;
    width: min(330px, calc(100vw - 36px));
    display: flex;
    flex-direction: column;
    padding: 14px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, .15);
    background: rgba(15, 23, 42, .68);
    color: #fff;
    backdrop-filter: blur(18px);
    box-shadow: 0 26px 70px rgba(0, 0, 0, .32);
    transition: .22s ease;
}

.booth-event-page .capture-floating-panel.is-hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateX(calc(100% + 28px)) scale(.98);
}

.booth-event-page .capture-floating-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.booth-event-page .capture-floating-title {
    font-size: 15px;
    font-weight: 950;
    line-height: 1.15;
}

.booth-event-page .capture-floating-subtitle {
    font-size: 11px;
    color: rgba(255, 255, 255, .68);
    margin-top: 2px;
}

.booth-event-page .capture-floating-panel .pb-pill {
    background: rgba(255, 255, 255, .12);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .16);
}

.booth-event-page .capture-floating-panel .capture-list {
    flex: 1;
    min-height: 0;
    overflow: auto;
    padding-right: 2px;
}

.booth-event-page .capture-floating-panel .capture-list::-webkit-scrollbar {
    width: 5px;
}

.booth-event-page .capture-floating-panel .capture-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, .22);
    border-radius: 999px;
}

.booth-event-page .capture-floating-panel .capture-card {
    border-radius: 18px;
    overflow: hidden;
    background: rgba(255, 255, 255, .10);
}

.booth-event-page .capture-floating-panel .capture-img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
}

.booth-event-page .capture-floating-panel #btnGoSelect {
    min-height: 46px;
    border-radius: 18px;
    margin-top: 12px !important;
}

.booth-event-page .floating-gallery-pill {
    position: fixed;
    right: 22px;
    bottom: 34px;
    z-index: 83;
    min-width: 62px;
    height: 62px;
    border-radius: 999px;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #fff;
    background: rgba(15, 23, 42, .72);
    border: 1px solid rgba(255, 255, 255, .16);
    box-shadow: 0 18px 45px rgba(0, 0, 0, .25);
    backdrop-filter: blur(16px);
    font-weight: 950;
}

.booth-event-page .capture-floating-panel.is-hidden+.floating-gallery-pill {
    display: inline-flex;
}

.booth-event-page .fullscreen-icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, .16);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .10);
    color: #fff;
}

@media (max-width: 576px) {
    .booth-event-page .camera-topbar-title {
        font-size: 13px;
    }

    .booth-event-page .camera-fullscreen-topbar {
        gap: 8px;
        padding: 8px;
    }

    .booth-event-page .camera-topbar-left {
        max-width: 38vw;
    }

    .booth-event-page .camera-mini-btn {
        width: 40px;
        height: 40px;
        min-width: 40px;
        border-radius: 14px;
    }

    .booth-event-page .camera-select-mini {
        width: 132px;
        min-width: 132px;
        max-width: 132px;
        font-size: 11px !important;
    }

    .booth-event-page .capture-floating-panel .capture-list .row>[class*="col-"] {
        width: 33.333333%;
    }

    .booth-template-filter-inner {
        grid-template-columns: 1fr;
    }

    .booth-template-result-info {
        justify-content: flex-start;
    }

    #modalTrial .trial-step-dot {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
        font-size: 13px;
    }

    #modalTrial .trial-step-line {
        width: 52px;
        flex-basis: 52px;
    }

    #modalTrial .trial-otp-input {
        letter-spacing: 6px;
        font-size: 22px !important;
    }

    .template-slot-badge {
        font-size: 10px;
        padding: 6px 8px;
    }

    #templateList .template-preview-wrap {
        height: 230px !important;
        min-height: 230px !important;
        max-height: 230px !important;
        padding: 8px !important;
    }

    #templateList .template-info {
        min-height: 90px !important;
        padding: 10px 11px 12px !important;
    }

    .select-frame-card {
        padding: 12px;
        border-radius: 22px;
    }

    .select-frame-preview {
        min-height: 250px;
        padding: 9px;
    }

    .select-frame-stage {
        height: 250px;
    }

    #stepSelect .select-img {
        min-height: 110px !important;
    }

    #stepSelect .select-card {
        min-height: 142px !important;
        padding: 8px !important;
    }

    #stepSelect>.booth-toolbar {
        flex-direction: column !important;
        gap: 10px !important;
    }

    #stepSelect .select-retake-btn {
        width: fit-content !important;
    }

    .photo-filter-chip {
        min-height: 32px;
        padding: 0 10px;
        font-size: 11px;
    }

    #stepSelect .select-capture-panel .photo-filter-panel {
        gap: 6px !important;
        padding: 10px !important;
    }

    #stepSelect .photo-filter-label {
        width: 100%;
    }

    #stepSelect .photo-filter-chip {
        min-height: 32px !important;
        padding: 0 10px !important;
        font-size: 11px !important;
    }

    #stepFinal .final-preview-area-wide {
        padding-right: 64px !important;
        max-width: calc(100vw - 78px) !important;
    }

    #stepFinal {
        padding-top: 58px !important;
        padding-bottom: 86px !important;
    }

    #stepFinal .final-photo {
        max-width: calc(100vw - 22px) !important;
        max-height: calc(100vh - 235px) !important;
        border-radius: 20px !important;
    }

    #stepFinal .final-photo-top-action {
        top: 78px !important;
        right: 10px !important;
        min-height: 38px !important;
        padding: 0 12px !important;
        font-size: 11px !important;
    }

    #stepFinal .final-photo-top-action span {
        display: inline !important;
    }

    #stepFinal .final-floating-side-panel {
        bottom: 10px !important;
        max-width: calc(100vw - 16px) !important;
        padding: 7px !important;
    }

    #stepFinal .final-action-grid {
        gap: 6px !important;
    }

    #stepFinal .final-action-grid .btn,
    #stepFinal .final-action-grid a,
    #stepFinal .final-action-grid button {
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
        min-height: 44px !important;
    }

    #stepFinal .final-action-grid .btn svg,
    #stepFinal .final-action-grid a svg,
    #stepFinal .final-action-grid button svg {
        width: 19px !important;
        height: 19px !important;
    }

    #stepFinal .gif-mini-card {
        left: 10px !important;
        bottom: 72px !important;
        width: 118px !important;
        max-width: 118px !important;
        border-radius: 14px !important;
    }

    #stepFinal .gif-mini-card .gif-mini-header {
        padding: 7px 8px 4px !important;
    }

    #stepFinal .gif-mini-card .gif-mini-header strong {
        font-size: 10px !important;
    }

    #stepFinal .gif-mini-card .gif-mini-header span {
        display: none !important;
    }

    #stepFinal .gif-mini-preview {
        height: 74px !important;
        border-radius: 10px !important;
    }

    #stepTemplate .booth-template-filter-inner {
        grid-template-columns: 1fr !important;
    }

    #stepTemplate .template-preview-stage {
        height: 158px !important;
        max-width: 105px !important;
    }

    #stepTemplate .template-info {
        padding: 8px !important;
    }

    #stepTemplate .template-name {
        font-size: 11px !important;
    }
}

.capture-card {
    position: relative;
}

.capture-video {
    background: #000;
}

.capture-media-badge {
    position: absolute;
    left: 10px;
    bottom: 10px;
    z-index: 6;
    min-height: 26px;
    padding: 5px 9px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #fff;
    background: rgba(15, 23, 42, .72);
    border: 1px solid rgba(255, 255, 255, .14);
    backdrop-filter: blur(12px);
    font-size: 11px;
    font-weight: 900;
}

.capture-media-badge svg {
    width: 13px;
    height: 13px;
}

.mixed-final-stage video.mixed-final-media {
    pointer-events: auto;
}

.final-main-photo-wrap:has(.mixed-final-stage) {
    padding: 14px;
}

.mixed-final-stage {
    position: relative;
    width: 100%;
    max-height: 78vh;
    margin: 0 auto;
    overflow: hidden;
    background: #000;
    border-radius: 24px;
    box-shadow: 0 24px 70px rgba(16, 24, 40, .22);
}

.mixed-final-media,
.mixed-final-frame {
    position: absolute;
    display: block;
}

.mixed-final-media {
    position: absolute;
    z-index: 1;
    object-fit: cover;
    background: #000;
    transform-origin: center center;
}

.mixed-final-frame {
    position: absolute;
    inset: 0;
    z-index: 3;
    width: 100%;
    height: 100%;
    object-fit: fill;
    pointer-events: none;
}

.gif-mini-card:not(.d-none) {
    display: block;
}

.select-card.is-video-locked {
    cursor: default;
    border-color: rgba(59, 130, 246, .35);
    background: rgba(59, 130, 246, .08);
}

.select-card.is-video-locked .select-order {
    min-width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.select-card.is-video-locked .select-check {
    opacity: 1;
}

#stepFinal .final-preview-area:has(.mixed-final-stage) {
    align-items: center;
}

#stepFinal .mixed-live-preview {
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    border-radius: 26px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 24px 70px rgba(16, 24, 40, .18);
}

#stepFinal .mixed-final-stage {
    width: 100%;
    min-height: 620px;
    border-radius: 26px;
}

@media (min-width: 1200px) {
    #stepFinal .mixed-live-preview {
        max-width: 560px;
    }

    #stepFinal .mixed-final-stage {
        min-height: 680px;
    }

    .mixed-live-preview:fullscreen .mixed-final-stage,
    .mixed-live-preview.is-mixed-fullscreen .mixed-final-stage {
        max-width: min(86vw, 680px) !important;
    }

    .mixed-live-preview:fullscreen .mixed-fullscreen-btn,
    .mixed-live-preview.is-mixed-fullscreen .mixed-fullscreen-btn {
        right: calc(50% - min(43vw, 340px) + 18px);
    }

    #stepTemplate .template-col-slim {
        width: 128px !important;
    }

    #stepTemplate .template-col-medium {
        width: 142px !important;
    }

    #stepTemplate .template-col-wide {
        width: 160px !important;
    }
}

@media (max-width: 991.98px) {
    #stepFinal .mixed-live-preview {
        max-width: 480px;
    }

    #stepFinal .mixed-final-stage {
        min-height: 560px;
    }
}

@media (max-width: 575.98px) {
    #stepFinal .mixed-live-preview {
        max-width: 92vw;
        border-radius: 20px;
    }

    #stepFinal .mixed-final-stage {
        min-height: 500px;
        border-radius: 20px;
    }

    .mixed-live-preview:fullscreen .mixed-final-stage,
    .mixed-live-preview.is-mixed-fullscreen .mixed-final-stage {
        max-width: 94vw !important;
        height: auto !important;
        max-height: 96vh !important;
    }

    .mixed-live-preview:fullscreen .mixed-fullscreen-btn,
    .mixed-live-preview.is-mixed-fullscreen .mixed-fullscreen-btn {
        top: 14px;
        right: 14px;
    }

    .mixed-fullscreen-btn span {
        display: none;
    }

    .mixed-fullscreen-btn {
        width: 42px;
        height: 42px;
        justify-content: center;
        padding: 0;
    }
}

.mixed-live-preview {
    width: min(520px, 100%);
    margin-inline: auto;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(234, 236, 240, .9);
    background: #000;
    box-shadow: 0 18px 50px rgba(16, 24, 40, .18);
    margin-top: 14px;
    position: relative;
}

.mixed-fullscreen-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 30;
    border: 0;
    border-radius: 999px;
    padding: 10px 14px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(15, 23, 42, .72);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .02em;
    backdrop-filter: blur(12px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, .25);
    transition: .2s ease;
}

.mixed-fullscreen-btn svg {
    width: 16px;
    height: 16px;
}

.mixed-fullscreen-btn:hover {
    background: rgba(15, 23, 42, .9);
    transform: translateY(-1px);
}

.mixed-live-preview:fullscreen,
.mixed-live-preview.is-mixed-fullscreen {
    width: 100vw !important;
    max-width: 100vw !important;
    height: 100vh !important;
    max-height: 100vh !important;
    margin: 0 !important;
    border-radius: 0 !important;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none !important;
    overflow: hidden;
}

.mixed-live-preview:fullscreen .mixed-final-stage,
.mixed-live-preview.is-mixed-fullscreen .mixed-final-stage {
    width: auto !important;
    height: 100vh !important;
    max-width: min(92vw, 620px) !important;
    max-height: 100vh !important;
    min-height: unset !important;
    border-radius: 0 !important;
    aspect-ratio: inherit;
}

.mixed-live-preview:fullscreen .mixed-fullscreen-btn,
.mixed-live-preview.is-mixed-fullscreen .mixed-fullscreen-btn {
    top: 18px;
    right: calc(50% - min(46vw, 310px) + 18px);
    opacity: .92;
}

.booth-event-page .trial-step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    margin-bottom: 18px;
}

.booth-event-page .trial-step-dot {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(148, 163, 184, .14);
    color: #94a3b8;
    font-weight: 800;
    font-size: 15px;
    border: 1px solid rgba(148, 163, 184, .28);
    transition: .25s ease;
}

.booth-event-page .trial-step-dot.active {
    background: linear-gradient(135deg, var(--booth-primary), var(--booth-accent));
    color: #fff;
    box-shadow: 0 12px 30px rgba(236, 72, 153, .28);
    border-color: transparent;
}

.booth-event-page .trial-step-line {
    width: 64px;
    height: 3px;
    border-radius: 999px;
    background: rgba(148, 163, 184, .24);
}

.booth-event-page .trial-step-dot.active+.trial-step-line {
    background: linear-gradient(90deg, var(--booth-primary), rgba(148, 163, 184, .24));
}

body.booth-dark .trial-step-dot {
    color: #cbd5e1;
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .12);
}

body.booth-dark .trial-step-line {
    background: rgba(255, 255, 255, .16);
}

.booth-event-page .trial-otp-info {
    border: 1px solid rgba(14, 165, 233, .16);
    background: rgba(14, 165, 233, .08);
    border-radius: 18px;
    padding: 14px 16px;
    margin-bottom: 16px;
    color: #0369a1;
    font-size: 13px;
    line-height: 1.5;
}

.booth-event-page .trial-otp-input {
    text-align: center;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: 10px;
    width: 100%;
    height: 58px;
    border-radius: 18px;
    color: #0f172a;
    background: #fff;
    border: 1px solid rgba(148, 163, 184, .35);
    outline: none;
    transition: .25s ease;
}

.booth-event-page .trial-otp-input:focus {
    border-color: var(--booth-primary);
    box-shadow: 0 0 0 4px rgba(236, 72, 153, .14);
}

body.booth-dark .trial-otp-info {
    color: #bae6fd;
    background: rgba(14, 165, 233, .12);
    border-color: rgba(14, 165, 233, .22);
}

body.booth-dark .trial-otp-input {
    color: #fff;
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .14);
}

#modalTrial .trial-step-indicator {
    width: 100%;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px;
    margin: 4px 0 18px;
}

#modalTrial .trial-step-dot {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 999px;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #94a3b8;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    font-size: 14px;
    font-weight: 950;
    line-height: 1;
    transition: .25s ease;
}

#modalTrial .trial-step-dot.active {
    color: #fff !important;
    background: linear-gradient(135deg, var(--pb-candy), var(--pb-primary)) !important;
    border-color: transparent !important;
    box-shadow: 0 12px 28px rgba(236, 72, 153, .28);
}

#modalTrial .trial-step-line {
    width: 64px;
    height: 4px;
    flex: 0 0 64px;
    border-radius: 999px;
    background: #e2e8f0;
}

#modalTrial .trial-step-dot.active+.trial-step-line {
    background: linear-gradient(90deg, var(--pb-candy) 0%, var(--pb-primary) 46%, #e2e8f0 46%, #e2e8f0 100%);
}

#modalTrial .trial-otp-info {
    border: 1px solid rgba(236, 72, 153, .14);
    background: rgba(236, 72, 153, .065);
    border-radius: 18px;
    padding: 14px;
}

#modalTrial .trial-otp-input {
    text-align: center !important;
    font-size: 24px !important;
    font-weight: 950 !important;
    letter-spacing: 8px;
}

.booth-template-filter {
    margin: 14px 0 18px;
    padding: 12px;
    border-radius: 22px;
    background: rgba(255, 255, 255, .72);
    border: 1px solid rgba(255, 255, 255, .65);
    box-shadow: 0 18px 55px rgba(17, 24, 39, .08);
    backdrop-filter: blur(18px);
}

.booth-template-filter-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: center;
}

.booth-template-category-select {
    width: 100%;
    min-height: 46px;
    border: 1px solid rgba(226, 232, 240, .95);
    border-radius: 16px;
    padding: 0 14px;
    background: #fff;
    color: #344054;
    font-size: 13px;
    font-weight: 850;
    outline: none;
    transition: .2s ease;
}

.booth-template-category-select:focus {
    border-color: rgba(236, 72, 153, .55);
    box-shadow: 0 0 0 .2rem rgba(236, 72, 153, .10);
}

.booth-template-result-info {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 14px;
    border-radius: 16px;
    background: rgba(236, 72, 153, .08);
    color: #be185d;
    font-size: 12px;
    font-weight: 950;
    white-space: nowrap;
}

.booth-template-result-info svg {
    width: 15px;
    height: 15px;
    stroke-width: 2.7;
}

.template-store-empty {
    padding: 26px;
    border-radius: 24px;
    background: rgba(255, 255, 255, .78);
    border: 1px solid rgba(255, 255, 255, .72);
    text-align: center;
    color: #667085;
    font-weight: 850;
    box-shadow: var(--pb-shadow-sm);
}

.template-category-pill,
.template-slot-badges {
    position: static !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    z-index: auto !important;
}

.template-category-pill {
    display: inline-flex !important;
    align-items: center;
    width: fit-content;
    max-width: 100%;
    margin-bottom: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(236, 72, 153, .10);
    color: #be185d;
    font-size: 11px;
    font-weight: 950;
    line-height: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.template-slot-badges {
    display: flex !important;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.template-slot-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 950;
    line-height: 1;
    color: #fff;
}

.template-slot-badge svg {
    width: 13px;
    height: 13px;
    stroke-width: 2.8;
}

.template-slot-badge.is-photo {
    background: rgba(37, 99, 235, .88);
}

.template-slot-badge.is-video {
    background: rgba(220, 38, 38, .90);
}

.template-slot-badge.is-mixed {
    background: rgba(124, 58, 237, .90);
}

.template-preview-wrap .template-category-pill,
.template-preview-wrap .template-slot-badges {
    display: none !important;
}

.template-info .template-category-pill {
    display: inline-flex !important;
}

.template-info .template-slot-badges {
    display: flex !important;
}

.template-info .template-meta {
    display: none !important;
}

.template-preview-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 22px 22px 0 0;
    background: radial-gradient(circle at 30% 20%, rgba(236, 72, 153, .10), transparent 34%), linear-gradient(135deg, #f8fafc, #eef2ff);
    aspect-ratio: var(--template-ratio, 1200 / 1800);
    width: 100%;
    height: auto !important;
    min-height: 0 !important;
}

.template-slot-preview-layer {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.template-preview {
    width: 100% !important;
    height: 100% !important;
    object-fit: fill !important;
    display: block;
    position: absolute !important;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

.template-slot-preview {
    position: absolute;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: clamp(5px, 1.6vw, 10px);
    transform-origin: center center;
    overflow: hidden;
}

.template-slot-preview.is-photo {
    background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, .34), transparent 32%), linear-gradient(135deg, rgba(37, 99, 235, .54), rgba(59, 130, 246, .30));
    border: 1px dashed rgba(37, 99, 235, .72);
}

.template-slot-preview.is-video {
    background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, .34), transparent 32%), linear-gradient(135deg, rgba(220, 38, 38, .58), rgba(244, 63, 94, .32));
    border: 1px dashed rgba(220, 38, 38, .76);
}

.template-slot-preview-icon {
    width: clamp(16px, 22%, 36px);
    max-width: 42px;
    aspect-ratio: 1 / 1;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, .58);
    color: #fff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, .16);
    backdrop-filter: blur(8px);
}

.template-slot-preview-icon svg {
    width: 54%;
    height: 54%;
    stroke-width: 2.8;
}

.template-start-overlay,
.template-check {
    z-index: 6;
}

.mixed-final-stage video::-webkit-media-controls,
.mixed-final-stage video::-webkit-media-controls-enclosure,
.mixed-final-stage video::-webkit-media-controls-panel {
    display: none !important;
}

.mixed-final-stage video {
    pointer-events: none;
}

.theme-dark #modalTrial .voucher-modal,
body.booth-dark #modalTrial .voucher-modal,
body.dark #modalTrial .voucher-modal {
    background: #111827;
    color: #f8fafc;
}

.theme-dark #modalTrial .text-muted,
body.booth-dark #modalTrial .text-muted,
body.dark #modalTrial .text-muted {
    color: #cbd5e1 !important;
}

.theme-dark #modalTrial .trial-step-dot,
body.booth-dark #modalTrial .trial-step-dot,
body.dark #modalTrial .trial-step-dot {
    color: #cbd5e1;
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .14);
}

.theme-dark #modalTrial .trial-step-line,
body.booth-dark #modalTrial .trial-step-line,
body.dark #modalTrial .trial-step-line {
    background: rgba(255, 255, 255, .16);
}

.theme-dark .booth-template-filter,
.theme-dark .template-store-empty,
.theme-dark .booth-template-category-select {
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .14);
    color: #f8fafc;
}

.theme-dark .booth-template-result-info,
.theme-dark .template-category-pill {
    background: rgba(236, 72, 153, .18);
    color: #fbcfe8;
}

#templateList>[class*="col-"] {
    display: flex;
}

#templateList .template-card {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

#templateList .template-preview-stage .template-preview {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: fill !important;
    display: block !important;
}

#templateList .template-preview-stage .template-slot-preview-layer {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 3 !important;
    pointer-events: none !important;
    overflow: hidden !important;
}

#templateList .template-preview-stage[style*="602 / 1795"],
#templateList .template-preview-stage[style*="609 / 1795"],
#templateList .template-preview-stage[style*="685 / 2126"],
#templateList .template-preview-stage[style*="945 / 2362"] {
    max-width: none !important;
}

#templateList {
    align-items: stretch;
    row-gap: 18px !important;
}

#templateList .template-preview-wrap {
    position: relative !important;
    width: 100% !important;
    height: 310px !important;
    min-height: 310px !important;
    max-height: 310px !important;
    aspect-ratio: auto !important;
    padding: 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 22px 22px 0 0 !important;
    overflow: hidden !important;
    background: radial-gradient(circle at 30% 20%, rgba(236, 72, 153, .08), transparent 34%), linear-gradient(135deg, #f8fafc, #eef2ff) !important;
}

#templateList .template-preview-stage {
    position: relative !important;
    height: 100% !important;
    max-width: 100% !important;
    aspect-ratio: var(--template-ratio, 1200 / 1800) !important;
    overflow: hidden !important;
    border-radius: 16px !important;
    background: #050505 !important;
    box-shadow: 0 16px 40px rgba(15, 23, 42, .16);
    width: auto !important;
    flex: 0 0 auto !important;
    max-height: 100% !important;
}

#templateList .template-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 96px !important;
    padding: 12px 14px 14px !important;
}

#templateList .template-category-pill {
    margin-bottom: 7px !important;
    padding: 5px 9px !important;
    font-size: 10px !important;
}

#templateList .template-name {
    min-height: 30px !important;
    display: flex;
    align-items: flex-start;
    font-size: 13px !important;
    line-height: 1.22 !important;
}

#templateList .template-slot-badges {
    margin-top: 8px !important;
}

#templateList .template-slot-badge {
    padding: 5px 8px !important;
    font-size: 10px !important;
}

#templateList .template-start-btn {
    min-height: 42px !important;
    padding: 9px 16px !important;
    font-size: 12px !important;
}

.select-step-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
    gap: 20px;
    align-items: start;
}

.select-capture-panel {
    min-width: 0;
}

.select-frame-panel {
    position: sticky;
    top: 92px;
    align-self: start;
}

.select-frame-card {
    border-radius: 28px;
    padding: 16px;
    background: rgba(255, 255, 255, .82);
    border: 1px solid rgba(234, 236, 240, .95);
    box-shadow: 0 22px 62px rgba(16, 24, 40, .10);
    backdrop-filter: blur(18px);
}

.select-frame-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.select-frame-title {
    color: var(--pb-dark);
    font-size: 15px;
    font-weight: 950;
    line-height: 1.1;
}

.select-frame-subtitle {
    margin-top: 4px;
    color: var(--pb-muted);
    font-size: 11px;
    font-weight: 800;
    line-height: 1.35;
}

.select-frame-count {
    min-width: 48px;
    min-height: 30px;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(236, 72, 153, .10);
    color: #be185d;
    font-size: 12px;
    font-weight: 950;
    text-align: center;
}

.select-frame-preview {
    min-height: 360px;
    border-radius: 22px;
    padding: 12px;
    background: radial-gradient(circle at 30% 20%, rgba(236, 72, 153, .08), transparent 34%), linear-gradient(135deg, #f8fafc, #eef2ff);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: auto;
}

.select-frame-empty {
    min-height: 220px;
    width: 100%;
    border: 1px dashed rgba(148, 163, 184, .55);
    border-radius: 20px;
    color: #94a3b8;
    font-size: 12px;
    font-weight: 900;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.select-frame-empty svg {
    width: 30px;
    height: 30px;
}

.select-frame-media-layer,
.select-frame-template {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.select-frame-slot.is-video {
    background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, .30), transparent 32%), linear-gradient(135deg, rgba(220, 38, 38, .48), rgba(244, 63, 94, .25));
    border-color: rgba(220, 38, 38, .76);
}

.select-frame-slot img,
.select-frame-slot video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

.select-frame-slot-label,
.select-frame-slot>span {
    position: absolute;
    z-index: 2;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: rgba(15, 23, 42, .60);
    color: #fff;
    font-size: 12px;
    font-weight: 950;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
}

.select-frame-slot.is-filled .select-frame-slot-label {
    left: 8px;
    top: 8px;
    width: 24px;
    height: 24px;
    font-size: 11px;
    background: rgba(236, 72, 153, .86);
}

.select-frame-slot svg {
    width: 14px;
    height: 14px;
}

#stepSelect .select-card.selected {
    border-color: rgba(236, 72, 153, .85);
    box-shadow: 0 16px 38px rgba(236, 72, 153, .16);
}

@media (min-width: 992px) {
    #stepSelect .select-step-layout {
        align-items: start !important;
    }

    #stepSelect .select-frame-panel {
        margin-top: -74px !important;
        top: 18px !important;
        z-index: 10 !important;
    }
}

#stepSelect #selectCaptureList {
    align-content: flex-start !important;
}

#stepSelect #selectCaptureList>[class*="col-"] {
    display: flex !important;
}

#stepSelect .select-card {
    cursor: pointer;
    width: 100% !important;
    min-height: 154px !important;
    padding: 10px !important;
}

#stepSelect .select-card .position-relative {
    border-radius: 18px !important;
}

#stepSelect .select-img {
    width: 100% !important;
    aspect-ratio: 4 / 3 !important;
    height: auto !important;
    min-height: 126px !important;
    object-fit: cover !important;
    border-radius: 18px !important;
    margin-bottom: 8px !important;
}

#stepSelect .select-card .booth-mini {
    font-size: 13px !important;
    font-weight: 900 !important;
    padding: 0 2px !important;
}

#stepSelect .select-frame-card {
    padding: 16px !important;
}

#stepSelect .select-frame-preview {
    min-height: 352px !important;
}

#stepSelect .select-frame-stage {
    height: 352px !important;
}

#stepSelect>.booth-toolbar {
    align-items: flex-start !important;
    justify-content: flex-start !important;
    gap: 14px !important;
    position: relative !important;
    z-index: 30 !important;
    margin-bottom: 18px !important;
}

#stepSelect .select-retake-btn {
    margin-left: 0 !important;
    margin-top: 2px !important;
    min-height: 42px !important;
    padding: 0 16px !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, .86) !important;
    border: 1px solid rgba(226, 232, 240, .95) !important;
    color: #334155 !important;
    box-shadow: 0 12px 30px rgba(16, 24, 40, .08) !important;
    backdrop-filter: blur(14px) !important;
    font-size: 13px !important;
    font-weight: 950 !important;
}

#stepSelect .select-retake-btn:hover {
    color: #fff !important;
    background: linear-gradient(135deg, var(--pb-primary), var(--pb-candy)) !important;
    border-color: transparent !important;
    transform: translateY(-1px) !important;
}

#stepSelect .select-retake-btn svg {
    width: 16px !important;
    height: 16px !important;
}

.photo-filter-panel {
    display: flex;
    gap: 7px;
    overflow-x: auto;
    padding: 2px 0 12px;
    margin-top: -2px;
    margin-bottom: 10px;
    scrollbar-width: thin;
}

.photo-filter-chip {
    flex: 0 0 auto;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid rgba(226, 232, 240, .95);
    border-radius: 999px;
    background: rgba(255, 255, 255, .86);
    color: #475569;
    font-size: 12px;
    font-weight: 950;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .05);
    transition: .18s ease;
}

.photo-filter-chip:hover {
    transform: translateY(-1px);
    color: #be185d;
    border-color: rgba(236, 72, 153, .30);
}

.photo-filter-chip.active {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, var(--pb-primary), var(--pb-candy));
    box-shadow: 0 12px 28px rgba(236, 72, 153, .22);
}

.select-img,
.select-frame-slot img,
.mixed-final-media {
    transition: filter .2s ease;
}

#stepSelect .select-capture-panel .photo-filter-panel {
    margin-top: 18px !important;
    padding: 12px !important;
    border-radius: 22px !important;
    background: rgba(255, 255, 255, .78) !important;
    border: 1px solid rgba(234, 236, 240, .95) !important;
    box-shadow: 0 16px 44px rgba(16, 24, 40, .07) !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
    overflow: visible !important;
}

#stepSelect .photo-filter-label {
    min-height: 34px;
    padding: 0 10px;
    border-radius: 999px;
    color: #64748b;
    background: #f8fafc;
    font-size: 12px;
    font-weight: 950;
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

#stepSelect .photo-filter-label svg {
    width: 14px;
    height: 14px;
}

#stepSelect .photo-filter-chip {
    cursor: pointer !important;
    flex: 0 0 auto !important;
    min-height: 34px !important;
    padding: 0 12px !important;
    border: 1px solid rgba(226, 232, 240, .95) !important;
    border-radius: 999px !important;
    background: #fff !important;
    color: #475569 !important;
    font-size: 12px !important;
    font-weight: 950 !important;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .05) !important;
    transition: .18s ease !important;
}

#stepSelect .photo-filter-chip:hover {
    transform: translateY(-1px) !important;
    color: #be185d !important;
    border-color: rgba(236, 72, 153, .30) !important;
}

#stepSelect .photo-filter-chip.active {
    color: #fff !important;
    border-color: transparent !important;
    background: linear-gradient(135deg, var(--pb-primary), var(--pb-candy)) !important;
    box-shadow: 0 12px 28px rgba(236, 72, 153, .22) !important;
}

#stepSelect .select-img,
#stepSelect .select-frame-slot img {
    transition: filter .2s ease !important;
}

.select-adjust-tools {
    margin-top: 12px;
    padding: 10px;
    border-radius: 18px;
    background: rgba(248, 250, 252, .92);
    border: 1px solid rgba(226, 232, 240, .92);
    display: grid;
    gap: 9px;
}

.select-adjust-hint {
    color: #64748b;
    font-size: 11px;
    font-weight: 850;
    display: flex;
    align-items: center;
    gap: 7px;
    line-height: 1.3;
}

.select-adjust-hint svg {
    width: 14px;
    height: 14px;
}

.select-adjust-actions {
    display: grid;
    grid-template-columns: 42px 1fr 42px;
    gap: 8px;
}

.select-adjust-btn {
    min-height: 36px;
    border: 1px solid rgba(226, 232, 240, .95);
    border-radius: 13px;
    background: #fff;
    color: #334155;
    font-size: 12px;
    font-weight: 950;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, .05);
}

.select-adjust-btn:hover {
    color: #be185d;
    border-color: rgba(236, 72, 153, .28);
}

.select-adjust-btn svg {
    width: 15px;
    height: 15px;
}

.select-frame-slot.is-adjustable:active {
    cursor: grabbing;
}

.select-frame-slot.is-adjustable::after {
    content: "Geser";
    position: absolute;
    right: 7px;
    bottom: 7px;
    z-index: 4;
    padding: 4px 7px;
    border-radius: 999px;
    background: rgba(15, 23, 42, .62);
    color: #fff;
    font-size: 9px;
    font-weight: 950;
    opacity: 0;
    transform: translateY(4px);
    transition: .18s ease;
    pointer-events: none;
}

.select-frame-slot.is-adjustable:hover::after,
.select-frame-slot.is-adjust-active::after {
    opacity: 1;
    transform: translateY(0);
}

.select-frame-stage {
    position: relative;
    width: auto;
    height: 360px;
    max-width: 100%;
    overflow: hidden;
    border-radius: 18px;
    background: #050505;
    box-shadow: 0 18px 46px rgba(15, 23, 42, .18);
    touch-action: none !important;
    user-select: none !important;
}

.select-frame-media-layer {
    z-index: 2 !important;
    pointer-events: auto !important;
}

.select-frame-template {
    z-index: 4 !important;
    object-fit: fill;
    pointer-events: none !important;
}

.select-frame-slot {
    position: absolute;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, .34), transparent 32%), linear-gradient(135deg, rgba(37, 99, 235, .45), rgba(59, 130, 246, .25));
    border: 1px dashed rgba(37, 99, 235, .72);
    pointer-events: auto !important;
}

.select-frame-slot.is-adjustable {
    cursor: grab !important;
    touch-action: none !important;
    z-index: 5 !important;
    pointer-events: auto !important;
}

.select-frame-slot.is-adjustable * {
    pointer-events: none !important;
}

.select-frame-stage.is-dragging-photo,
.select-frame-stage.is-dragging-photo .select-frame-slot.is-adjustable {
    cursor: grabbing !important;
}

.select-frame-slot.is-filled img {
    transform-origin: center center !important;
    will-change: transform !important;
    user-select: none !important;
    -webkit-user-drag: none !important;
}

.select-frame-slot.is-adjust-active {
    outline: 3px solid rgba(236, 72, 153, .85) !important;
    outline-offset: 3px !important;
    z-index: 5;
}

#stepFinal .final-floating-action-col {
    position: static !important;
    width: 0 !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}

#stepFinal .final-action-grid .final-new-session {
    background: #fff !important;
    color: #334155 !important;
}

.final-qr-modal {
    position: relative;
    border: 0;
    border-radius: 28px;
    padding: 26px;
    text-align: center;
    background: radial-gradient(circle at 20% 0%, rgba(236, 72, 153, .12), transparent 38%), #fff;
    box-shadow: 0 34px 100px rgba(15, 23, 42, .22);
}

.final-qr-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 999px;
    background: #f8fafc;
    color: #475569;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.final-qr-modal-close svg {
    width: 17px;
    height: 17px;
}

.final-qr-modal-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #be185d;
    background: rgba(236, 72, 153, .10);
}

.final-qr-modal-icon svg {
    width: 24px;
    height: 24px;
}

.final-qr-modal-title {
    margin: 0;
    color: #111827;
    font-size: 18px;
    font-weight: 950;
}

.final-qr-modal-desc {
    margin: 6px 0 16px;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
}

.final-qr-modal-box {
    width: 206px;
    height: 206px;
    margin: 0 auto;
    padding: 16px;
    border-radius: 24px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
}

.final-qr-modal-box img,
.final-qr-modal-box canvas {
    border-radius: 12px;
}

#stepFinal .final-qr-card {
    display: none !important;
}

#stepFinal {
    position: relative !important;
    min-height: calc(100vh - 140px);
}

#stepFinal .final-main-photo-wrap {
    width: fit-content !important;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    position: relative !important;
    max-width: 100% !important;
    margin: 0 auto !important;
}

#stepFinal .final-photo {
    max-width: min(860px, calc(100vw - 260px)) !important;
    max-height: calc(100vh - 120px) !important;
    object-fit: contain !important;
    border-radius: 24px !important;
    box-shadow: 0 24px 70px rgba(15, 23, 42, .12) !important;
    width: auto !important;
    display: block !important;
}

#stepFinal .final-photo-top-action {
    position: absolute !important;
    top: 12px !important;
    right: -156px !important;
    z-index: 1040 !important;
    min-height: 42px !important;
    padding: 0 15px !important;
    border: 1px solid rgba(226, 232, 240, .95) !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, .90) !important;
    color: #334155 !important;
    box-shadow: 0 18px 46px rgba(15, 23, 42, .12) !important;
    backdrop-filter: blur(18px) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    font-size: 13px !important;
    font-weight: 950 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
}

#stepFinal .final-photo-top-action:hover {
    color: #fff !important;
    background: linear-gradient(135deg, var(--pb-primary), var(--pb-candy)) !important;
    border-color: transparent !important;
    transform: translateY(-1px) !important;
}

#stepFinal .final-photo-top-action svg {
    width: 16px !important;
    height: 16px !important;
}

#stepFinal .final-floating-side-panel {
    position: fixed !important;
    right: 26px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 1030 !important;
    width: 70px !important;
    padding: 9px !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, .78) !important;
    border: 1px solid rgba(226, 232, 240, .95) !important;
    box-shadow: 0 28px 80px rgba(15, 23, 42, .16) !important;
    backdrop-filter: blur(22px) !important;
}

#stepFinal .final-action-grid {
    margin: 0 !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    align-items: center !important;
    justify-items: center !important;
}

#stepFinal .final-action-grid .btn,
#stepFinal .final-action-grid a,
#stepFinal .final-action-grid button {
    width: 52px !important;
    height: 52px !important;
    min-width: 52px !important;
    min-height: 52px !important;
    padding: 0 !important;
    border-radius: 999px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0 !important;
    box-shadow: 0 14px 34px rgba(16, 24, 40, .10) !important;
    margin: 0 !important;
    gap: 0 !important;
    border: 0 !important;
    position: relative !important;
    overflow: visible !important;
}

#stepFinal .final-action-grid .btn svg,
#stepFinal .final-action-grid a svg,
#stepFinal .final-action-grid button svg {
    width: 22px !important;
    height: 22px !important;
    margin: 0 !important;
    flex: 0 0 auto !important;
}

#stepFinal #btnDownloadPhoto,
#stepFinal #btnDownloadGif,
#stepFinal #btnPrintPhoto {
    color: #fff !important;
    background: linear-gradient(135deg, var(--pb-primary), var(--pb-candy)) !important;
}

#stepFinal #btnShowFinalQr,
#stepFinal #btnOpenSessionGallery {
    color: #334155 !important;
    background: #fff !important;
    border: 1px solid rgba(226, 232, 240, .95) !important;
}

#stepFinal #btnShowFinalQr:hover,
#stepFinal #btnOpenSessionGallery:hover {
    color: #fff !important;
    background: linear-gradient(135deg, var(--pb-primary), var(--pb-candy)) !important;
}

#stepFinal .final-action-grid a[title]::after,
#stepFinal .final-action-grid button[title]::after,
#stepFinal .final-photo-top-action[title]::after {
    content: attr(title);
    position: absolute;
    top: 50%;
    right: calc(100% + 12px);
    transform: translateY(-50%) translateX(6px);
    min-width: max-content;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(15, 23, 42, .88);
    color: #fff;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: .18s ease;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .22);
}

#stepFinal .final-action-grid a[title]:hover::after,
#stepFinal .final-action-grid button[title]:hover::after,
#stepFinal .final-action-grid a[title]:focus-visible::after,
#stepFinal .final-action-grid button[title]:focus-visible::after,
#stepFinal .final-photo-top-action[title]:hover::after,
#stepFinal .final-photo-top-action[title]:focus-visible::after {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

#stepFinal .final-photo-top-action[title]::after {
    top: calc(100% + 10px);
    right: 0;
    transform: translateY(4px);
}

#stepFinal .final-photo-top-action[title]:hover::after,
#stepFinal .final-photo-top-action[title]:focus-visible::after {
    transform: translateY(0);
}

#stepFinal .gif-mini-card .gif-mini-header {
    padding: 10px 12px 6px !important;
}

#stepFinal .gif-mini-preview {
    width: 100% !important;
    border-radius: 14px !important;
}

@media (max-width: 1199px) {
    #stepFinal .final-preview-area-wide {
        max-width: calc(100vw - 150px) !important;
    }

    #stepFinal .final-photo {
        max-width: calc(100vw - 150px) !important;
    }

    #stepFinal .gif-mini-card {
        right: 92px !important;
        bottom: 24px !important;
        top: auto !important;
        transform: none !important;
        width: 170px !important;
        display: none !important;
    }

    #stepFinal .final-photo-top-action {
        right: 0 !important;
        top: -56px !important;
    }
}

#stepFinal .gif-mini-card {
    position: absolute !important;
    right: auto !important;
    bottom: auto !important;
    z-index: 1010 !important;
    width: 190px !important;
    max-width: 190px !important;
    margin: 0 !important;
    border-radius: 18px !important;
    background: rgba(15, 23, 42, .72) !important;
    color: #fff !important;
    backdrop-filter: blur(18px) !important;
    top: 42% !important;
    transform: translateY(-50%) !important;
    left: calc(100% + 18px) !important;
    box-shadow: 0 22px 60px rgba(15, 23, 42, .20) !important;
    pointer-events: auto !important;
}

@media (max-width: 390px) {
    #stepFinal .final-photo-top-action span {
        display: none !important;
    }

    #stepFinal .final-photo-top-action {
        width: 38px !important;
        min-width: 38px !important;
        padding: 0 !important;
        justify-content: center !important;
    }

    #stepFinal .final-action-grid .btn,
    #stepFinal .final-action-grid a,
    #stepFinal .final-action-grid button {
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        min-height: 40px !important;
    }

    #stepFinal .gif-mini-card {
        width: 104px !important;
        max-width: 104px !important;
    }

    #stepFinal .gif-mini-preview {
        height: 66px !important;
    }

    #stepTemplate .template-preview-wrap {
        height: 142px !important;
        min-height: 142px !important;
        max-height: 142px !important;
    }

    #stepTemplate .template-name {
        font-size: 11px !important;
    }

    .final-wa-input-group {
        grid-template-columns: 1fr;
    }

    .final-wa-send-btn {
        width: 100%;
    }
}

.selfbox-timer-card {
    width: 100%;
    margin: 0 0 16px;
    padding: 12px;
    border-radius: 22px;
    border: 1px solid rgba(236, 72, 153, .18);
    background: radial-gradient(circle at 0% 0%, rgba(236, 72, 153, .10), transparent 34%), linear-gradient(135deg, rgba(255, 255, 255, .88), rgba(248, 250, 252, .82));
    box-shadow: 0 18px 55px rgba(15, 23, 42, .08);
    backdrop-filter: blur(18px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.selfbox-timer-card-compact {
    margin: 14px 0 0;
    padding: 10px;
    border-radius: 18px;
}

.selfbox-timer-left {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.selfbox-timer-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(135deg, var(--pb-primary), var(--pb-candy));
    box-shadow: 0 14px 34px rgba(236, 72, 153, .22);
}

.selfbox-timer-icon svg {
    width: 19px;
    height: 19px;
    stroke-width: 2.8;
}

.selfbox-timer-title {
    color: var(--pb-dark);
    font-size: 13px;
    font-weight: 950;
    line-height: 1.2;
}

.selfbox-timer-desc {
    color: var(--pb-muted);
    font-size: 11px;
    font-weight: 800;
    line-height: 1.35;
}

.selfbox-timer-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.selfbox-timer-right.is-row {
    flex-wrap: wrap;
    justify-content: flex-end;
}

.selfbox-timer-number {
    min-width: 46px;
    height: 46px;
    padding: 0 10px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: #be185d;
    border: 1px solid rgba(236, 72, 153, .16);
    font-size: 20px;
    font-weight: 950;
    line-height: 1;
    box-shadow: 0 10px 26px rgba(15, 23, 42, .06);
}

.selfbox-timer-cancel {
    min-height: 38px;
    border: 0;
    border-radius: 999px;
    padding: 0 12px;
    background: rgba(15, 23, 42, .07);
    color: #475569;
    font-size: 11px;
    font-weight: 950;
    white-space: nowrap;
}

.selfbox-timer-cancel:hover {
    background: rgba(236, 72, 153, .12);
    color: #be185d;
}

.final-preview-area-wide {
    position: relative;
}

#stepTemplate .booth-title {
    font-size: 20px !important;
}

#stepTemplate .booth-desc {
    font-size: 12px !important;
}

#stepTemplate .booth-template-filter {
    margin: 10px 0 12px !important;
    padding: 9px !important;
    border-radius: 18px !important;
}

#stepTemplate .booth-template-filter-inner {
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 8px !important;
}

#stepTemplate .booth-template-category-select {
    min-height: 40px !important;
    border-radius: 14px !important;
    font-size: 12px !important;
    padding: 0 12px !important;
}

#stepTemplate .booth-template-result-info {
    min-height: 40px !important;
    border-radius: 14px !important;
    padding: 0 11px !important;
    font-size: 11px !important;
}

#stepTemplate .template-card .template-preview-stage[style*="51 / 152"],
#stepTemplate .template-card .template-preview-stage[style*="58 /"],
#stepTemplate .template-card .template-preview-stage[style*="80 /"] {
    max-width: 76px !important;
}

#stepTemplate .template-slot-preview-layer {
    z-index: 1 !important;
}

#stepTemplate .template-slot-preview.is-photo {
    background: radial-gradient(circle at 28% 18%, rgba(255, 255, 255, .34), transparent 34%), linear-gradient(135deg, rgba(147, 197, 253, .78), rgba(191, 219, 254, .48)) !important;
    border: 1.2px dashed rgba(96, 165, 250, .88) !important;
}

#stepTemplate .template-slot-preview.is-video {
    background: radial-gradient(circle at 28% 18%, rgba(255, 255, 255, .32), transparent 34%), linear-gradient(135deg, rgba(252, 165, 165, .82), rgba(254, 205, 211, .50)) !important;
    border: 1.2px dashed rgba(244, 63, 94, .82) !important;
}

#stepTemplate .template-slot-preview-icon {
    width: clamp(14px, 18%, 28px) !important;
}

#stepTemplate .template-start-overlay {
    background: rgba(15, 23, 42, .18) !important;
}

#stepTemplate #templateList {
    --bs-gutter-x: .75rem !important;
    --bs-gutter-y: .75rem !important;
    align-items: flex-start !important;
}

#stepTemplate .template-card:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 18px 44px rgba(15, 23, 42, .11) !important;
}

#stepTemplate .template-card.active {
    border-color: rgba(236, 72, 153, .55) !important;
    box-shadow: 0 0 0 3px rgba(236, 72, 153, .12), 0 18px 44px rgba(236, 72, 153, .13) !important;
}

#stepTemplate .template-preview,
#stepTemplate .template-slot-preview-layer {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
}

#stepTemplate .template-preview {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: fill !important;
    z-index: 4 !important;
    filter: drop-shadow(0 12px 20px rgba(15, 23, 42, .12));
}

#stepTemplate .template-category-pill {
    margin-bottom: 6px !important;
    padding: 5px 8px !important;
    font-size: 10px !important;
    display: inline-flex !important;
    width: fit-content !important;
    max-width: 100% !important;
    line-height: 1 !important;
}

#stepTemplate .template-slot-badges {
    margin-top: 7px !important;
    gap: 5px !important;
}

#stepTemplate .template-slot-badge {
    padding: 5px 7px !important;
    font-size: 10px !important;
    border-radius: 999px !important;
    line-height: 1 !important;
}

#stepTemplate .template-slot-badge svg {
    width: 11px !important;
    height: 11px !important;
}

#stepTemplate .template-check {
    right: 8px !important;
    top: 8px !important;
    width: 26px !important;
    height: 26px !important;
}

#stepTemplate .template-start-btn {
    min-height: 36px !important;
    padding: 0 12px !important;
    font-size: 11px !important;
    border-radius: 999px !important;
}

#selectAutoFinalTimerBox {
    display: flex;
    margin: 14px 0 0 !important;
    border-color: rgba(34, 197, 94, .20) !important;
    background: radial-gradient(circle at 0% 0%, rgba(34, 197, 94, .10), transparent 34%), linear-gradient(135deg, rgba(255, 255, 255, .92), rgba(240, 253, 244, .82)) !important;
}

#selectAutoFinalTimerBox.d-none {
    display: none !important;
}

#selectAutoFinalTimerBox .selfbox-timer-icon {
    background: linear-gradient(135deg, #22c55e, #0ea5e9) !important;
}

#selectAutoFinalTimerBox .selfbox-timer-title {
    color: #166534 !important;
}

#stepTemplate .booth-toolbar {
    margin-bottom: 10px !important;
}

.template-compact-bar {
    width: 100%;
    margin: 8px 0 12px !important;
    display: grid;
    grid-template-columns: minmax(180px, 1fr) auto auto;
    gap: 8px;
    align-items: center;
}

.template-compact-filter {
    min-width: 0;
}

#stepTemplate .template-compact-bar .booth-template-category-select {
    width: 100% !important;
    min-height: 40px !important;
    height: 40px !important;
    border-radius: 14px !important;
    padding: 0 12px !important;
    background: rgba(255, 255, 255, .88) !important;
    border: 1px solid rgba(226, 232, 240, .95) !important;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .045) !important;
    font-size: 12px !important;
    font-weight: 850 !important;
}

#stepTemplate .template-compact-bar .booth-template-result-info {
    min-height: 40px !important;
    height: 40px !important;
    padding: 0 12px !important;
    border-radius: 14px !important;
    background: rgba(236, 72, 153, .08) !important;
    border: 1px solid rgba(236, 72, 153, .10) !important;
    color: #be185d !important;
    font-size: 11px !important;
    font-weight: 950 !important;
    white-space: nowrap;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .045) !important;
}

.template-countdown-pill {
    height: 40px;
    min-width: 0;
    max-width: 280px;
    padding: 0 8px 0 10px;
    border-radius: 14px;
    border: 1px solid rgba(236, 72, 153, .16);
    background: rgba(255, 255, 255, .90);
    box-shadow: 0 8px 22px rgba(15, 23, 42, .045);
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #be185d;
}

.template-countdown-pill.d-none {
    display: none !important;
}

.template-countdown-pill svg {
    width: 15px;
    height: 15px;
    flex: 0 0 auto;
}

.template-countdown-text {
    min-width: 0;
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.template-countdown-text strong {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #111827;
    font-size: 11px;
    font-weight: 950;
}

.template-countdown-text span {
    max-width: 135px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #64748b;
    font-size: 9px;
    font-weight: 800;
}

.template-countdown-pill b {
    min-width: 28px;
    height: 28px;
    padding: 0 6px;
    border-radius: 10px;
    background: rgba(236, 72, 153, .10);
    color: #be185d;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 950;
    line-height: 1;
}

.template-countdown-cancel {
    min-height: 28px;
    border: 0;
    border-radius: 999px;
    padding: 0 8px;
    background: rgba(15, 23, 42, .07);
    color: #475569;
    font-size: 10px;
    font-weight: 950;
}

.template-list-compact-row {
    --bs-gutter-x: .75rem !important;
    --bs-gutter-y: .75rem !important;
}

#stepTemplate>.booth-template-filter {
    display: none !important;
}

#stepTemplate .selfbox-timer-card#templateSelfboxTimerBox {
    display: none !important;
}

#stepTemplate .template-col {
    flex: 0 0 auto !important;
    width: auto !important;
    max-width: none !important;
}

#stepTemplate .template-col-slim {
    width: 178px !important;
}

#stepTemplate .template-col-medium {
    width: 188px !important;
}

#stepTemplate .template-col-wide {
    width: 204px !important;
}

#stepTemplate .template-card {
    border-radius: 18px !important;
    padding: 0 !important;
    background: rgba(255, 255, 255, .88) !important;
    border: 1px solid rgba(226, 232, 240, .95) !important;
    box-shadow: 0 12px 32px rgba(15, 23, 42, .07) !important;
    overflow: hidden !important;
    width: 100% !important;
    min-height: auto !important;
}

#stepTemplate .template-preview-wrap {
    padding: 10px !important;
    background: radial-gradient(circle at 24% 14%, rgba(255, 255, 255, .72), transparent 34%), linear-gradient(135deg, #f8fafc, #eef2ff) !important;
    height: 178px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-height: 178px !important;
    max-height: 178px !important;
}

#stepTemplate .template-preview-stage {
    width: auto !important;
    height: 100% !important;
    max-width: 128px !important;
    margin: 0 auto !important;
    aspect-ratio: var(--template-ratio, 1200 / 1800) !important;
    position: relative !important;
    max-height: 158px !important;
}

#stepTemplate .template-col-slim .template-preview-stage {
    max-width: 76px !important;
}

#stepTemplate .template-col-medium .template-preview-stage {
    max-width: 92px !important;
}

#stepTemplate .template-col-wide .template-preview-stage {
    max-width: 128px !important;
}

#stepTemplate .template-info {
    padding: 9px 10px 10px !important;
    min-height: 82px !important;
    background: rgba(255, 255, 255, .95) !important;
}

#stepTemplate .template-name {
    font-size: 12px !important;
    line-height: 1.25 !important;
    margin: 0 !important;
    min-height: 28px !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-transform: none !important;
    color: var(--pb-dark) !important;
    font-weight: 950 !important;
    letter-spacing: 0 !important;
}

@media (max-width: 430px) {
    .template-compact-bar {
        grid-template-columns: 1fr;
    }

    .template-countdown-pill,
    #stepTemplate .template-compact-bar .booth-template-result-info {
        width: 100%;
        justify-content: flex-start;
    }
}

#stepTemplate .template-compact-bar-centered .template-compact-filter {
    justify-self: stretch !important;
    min-width: 0 !important;
}

#stepTemplate .template-compact-bar-centered .template-countdown-pill.d-none {
    display: none !important;
}

#stepTemplate .template-compact-bar-centered .booth-template-result-info {
    justify-self: end !important;
}

#stepTemplate .template-compact-bar-centered .template-countdown-text {
    text-align: left !important;
}

#stepTemplate .template-compact-bar-centered .template-countdown-text strong {
    max-width: 135px !important;
}

#stepTemplate .template-compact-bar-centered .template-countdown-text span {
    max-width: 150px !important;
}

@media (max-width: 520px) {
    #stepTemplate .template-compact-bar-centered {
        grid-template-columns: 1fr !important;
    }

    #stepTemplate .template-compact-bar-centered .template-countdown-pill {
        grid-column: auto !important;
        width: 100% !important;
        justify-self: stretch !important;
    }

    #stepTemplate .template-compact-bar-centered .booth-template-result-info {
        justify-self: stretch !important;
        justify-content: center !important;
        width: 100% !important;
    }

    #stepTemplate .booth-toolbar-template {
        grid-template-columns: 1fr !important;
    }

    #stepTemplate .booth-toolbar-template #btnBackToStart {
        grid-column: auto !important;
        grid-row: auto !important;
        justify-self: stretch !important;
    }

    #stepTemplate .template-toolbar-countdown {
        grid-column: auto !important;
        grid-row: auto !important;
    }

    #stepTemplate .template-toolbar-countdown .template-countdown-pill {
        width: 100% !important;
    }

    #stepTemplate .template-compact-bar-filter-only {
        grid-template-columns: 1fr !important;
    }

    #stepTemplate .template-compact-bar-filter-only .booth-template-result-info {
        width: 100% !important;
        justify-content: center !important;
    }

    #stepSelect .booth-toolbar-select {
        grid-template-columns: 1fr !important;
    }

    #stepSelect .booth-toolbar-select .select-retake-btn {
        grid-column: auto !important;
        grid-row: auto !important;
        justify-self: stretch !important;
    }

    #stepSelect .select-toolbar-countdown {
        grid-column: auto !important;
        grid-row: auto !important;
    }

    .select-countdown-pill {
        width: 100%;
        min-width: 0;
        justify-content: flex-start;
    }

    .select-countdown-text span {
        white-space: normal;
    }

    .final-countdown-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .final-countdown-btn {
        width: 100%;
    }

    #stepFinal .final-preview-area-wide {
        padding-top: 0 !important;
    }

    #stepFinal .final-preview-area-wide.has-final-auto-timer {
        padding-top: 112px !important;
    }
}

#stepTemplate .booth-toolbar-template {
    display: grid !important;
    grid-template-columns: minmax(220px, 1fr) auto minmax(120px, 1fr) !important;
    align-items: center !important;
    gap: 12px !important;
    margin-bottom: 10px !important;
}

#stepTemplate .booth-toolbar-title {
    min-width: 0 !important;
    justify-self: start !important;
}

#stepTemplate .template-toolbar-countdown {
    justify-self: center !important;
    min-width: 0 !important;
    display: flex !important;
    justify-content: center !important;
}

#stepTemplate .booth-toolbar-template #btnBackToStart {
    justify-self: end !important;
}

#stepTemplate .template-toolbar-countdown .template-countdown-pill {
    width: auto !important;
    min-width: 260px !important;
    max-width: 360px !important;
    height: 44px !important;
    padding: 0 9px 0 11px !important;
    border-radius: 16px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    background: rgba(255, 255, 255, .92) !important;
    border: 1px solid rgba(236, 72, 153, .18) !important;
    box-shadow: 0 10px 30px rgba(15, 23, 42, .055) !important;
}

#stepTemplate .template-toolbar-countdown .template-countdown-pill.d-none {
    display: none !important;
}

#stepTemplate .template-toolbar-countdown .template-countdown-pill svg {
    width: 16px !important;
    height: 16px !important;
    flex: 0 0 auto !important;
    color: #be185d !important;
}

#stepTemplate .template-toolbar-countdown .template-countdown-text {
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    line-height: 1.08 !important;
}

#stepTemplate .template-toolbar-countdown .template-countdown-text strong {
    max-width: 160px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    color: #111827 !important;
    font-size: 12px !important;
    font-weight: 950 !important;
}

#stepTemplate .template-toolbar-countdown .template-countdown-text span {
    max-width: 170px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    color: #64748b !important;
    font-size: 10px !important;
    font-weight: 800 !important;
}

#stepTemplate .template-toolbar-countdown .template-countdown-pill b {
    min-width: 32px !important;
    height: 32px !important;
    padding: 0 7px !important;
    border-radius: 12px !important;
    background: rgba(236, 72, 153, .10) !important;
    color: #be185d !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 16px !important;
    font-weight: 950 !important;
    line-height: 1 !important;
}

#stepTemplate .template-compact-bar-filter-only {
    display: grid !important;
    grid-template-columns: minmax(180px, 1fr) auto !important;
    gap: 8px !important;
    align-items: center !important;
    margin: 8px 0 12px !important;
}

#stepTemplate .template-compact-bar-centered {
    display: grid !important;
    grid-template-columns: minmax(180px, 1fr) auto !important;
    align-items: center !important;
    gap: 8px !important;
}

#stepTemplate .template-compact-bar-centered .template-countdown-pill {
    justify-self: center !important;
    width: auto !important;
    min-width: 245px !important;
    max-width: 320px !important;
    height: 42px !important;
    padding: 0 9px 0 11px !important;
    display: none !important;
    justify-content: center !important;
}

#templateSelfboxTimerBox .template-countdown-cancel {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

#templateSelfboxTimerBox .template-countdown-cancel.d-none {
    display: none !important;
}

#stepSelect .booth-toolbar-select {
    display: grid !important;
    grid-template-columns: minmax(220px, 1fr) auto minmax(120px, 1fr) !important;
    align-items: center !important;
    gap: 12px !important;
    margin-bottom: 14px !important;
}

#stepSelect .booth-toolbar-select .booth-toolbar-title {
    min-width: 0 !important;
    justify-self: start !important;
}

#stepSelect .select-toolbar-countdown {
    justify-self: center !important;
    display: flex !important;
    justify-content: center !important;
    min-width: 0 !important;
}

#stepSelect .booth-toolbar-select .select-retake-btn {
    justify-self: end !important;
}

.select-countdown-pill {
    height: 44px;
    min-width: 285px;
    max-width: 380px;
    padding: 0 9px 0 12px;
    border-radius: 16px;
    border: 1px solid rgba(34, 197, 94, .20);
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 10px 30px rgba(15, 23, 42, .055);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
}

.select-countdown-pill.d-none {
    display: none !important;
}

.select-countdown-pill svg {
    width: 16px;
    height: 16px;
    color: #15803d;
    flex: 0 0 auto;
}

.select-countdown-text {
    min-width: 0;
    display: flex;
    flex-direction: column;
    line-height: 1.08;
}

.select-countdown-text strong {
    color: #14532d;
    font-size: 12px;
    font-weight: 950;
    white-space: nowrap;
}

.select-countdown-text span {
    color: #64748b;
    font-size: 10px;
    font-weight: 800;
    white-space: nowrap;
}

#selectAutoFinalNumber {
    font-weight: 950;
    color: #15803d;
    min-width: 26px;
    height: 26px;
    padding: 0 6px;
    border-radius: 10px;
    background: rgba(34, 197, 94, .11);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    line-height: 1;
}

.select-countdown-cancel {
    min-height: 30px;
    border: 0;
    border-radius: 999px;
    padding: 0 10px;
    background: rgba(15, 23, 42, .07);
    color: #475569;
    font-size: 10px;
    font-weight: 950;
    white-space: nowrap;
}

.select-countdown-cancel:hover {
    background: rgba(34, 197, 94, .12);
    color: #15803d;
}

#selectAutoFinalTimerBox.selfbox-timer-card,
.selfbox-timer-card#selectAutoFinalTimerBox {
    display: none !important;
}

.final-auto-session-card {
    position: absolute;
    left: 50%;
    top: 14px;
    z-index: 30;
    width: min(560px, calc(100vw - 32px));
    transform: translateX(-50%);
    margin: 0;
    min-height: 54px;
    padding: 10px;
    border-radius: 20px;
    border: 1px solid rgba(236, 72, 153, .18);
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 18px 54px rgba(15, 23, 42, .10);
    backdrop-filter: blur(18px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.final-auto-session-card.d-none {
    display: none !important;
}

.final-countdown-main {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.final-countdown-main>i,
.final-countdown-main>svg {
    width: 38px;
    height: 38px;
    padding: 10px;
    border-radius: 15px;
    color: #fff;
    background: linear-gradient(135deg, var(--pb-primary), var(--pb-candy));
    box-shadow: 0 14px 34px rgba(236, 72, 153, .22);
    flex: 0 0 auto;
}

.final-countdown-main strong {
    display: block;
    color: #111827;
    font-size: 13px;
    font-weight: 950;
    line-height: 1.15;
}

.final-countdown-main span {
    display: block;
    color: #64748b;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.2;
}

#finalAutoSessionNumber {
    min-width: 30px;
    height: 30px;
    padding: 0 7px;
    border-radius: 11px;
    background: rgba(236, 72, 153, .10);
    color: #be185d;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 950;
    line-height: 1;
}

.final-countdown-actions {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 7px;
}

.final-countdown-btn {
    min-height: 34px;
    border: 0;
    border-radius: 999px;
    padding: 0 12px;
    background: rgba(109, 93, 252, .10);
    color: var(--pb-primary);
    font-size: 11px;
    font-weight: 950;
    white-space: nowrap;
}

.final-countdown-btn:hover {
    background: rgba(109, 93, 252, .18);
}

.final-countdown-btn.is-danger {
    background: rgba(244, 63, 94, .10);
    color: #e11d48;
}

.final-countdown-btn.is-danger:hover {
    background: rgba(244, 63, 94, .18);
}

#stepFinal .final-preview-area-wide {
    width: fit-content !important;
    margin: 0 auto !important;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    position: relative !important;
    padding-top: 0 !important;
    max-width: min(860px, calc(100vw - 260px)) !important;
    padding: 0 !important;
    transition: padding-top .22s ease;
}

#stepFinal .final-preview-area-wide.has-final-auto-timer {
    padding-top: 64px !important;
}

#stepFinal .final-preview-area-wide:not(.has-final-auto-timer) .final-auto-session-card {
    display: none !important;
}

#stepFinal .final-auto-session-card {
    top: 0 !important;
    z-index: 60 !important;
}

.final-wa-share-box {
    padding: 12px;
    border-radius: 18px;
    background: radial-gradient(circle at 0% 0%, rgba(34, 197, 94, .10), transparent 34%), rgba(248, 250, 252, .92);
    border: 1px solid rgba(34, 197, 94, .14);
}

.final-wa-label {
    display: block;
    margin-bottom: 7px;
    color: #14532d;
    font-size: 12px;
    font-weight: 950;
}

.final-wa-input-group {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
}

.final-wa-input {
    min-height: 44px;
    border-radius: 14px !important;
    border: 1px solid rgba(226, 232, 240, .95) !important;
    background: #fff !important;
    color: #111827 !important;
    font-size: 13px;
    font-weight: 800;
}

.final-wa-send-btn {
    min-height: 44px;
    border: 0;
    border-radius: 14px;
    padding: 0 13px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 950;
    box-shadow: 0 14px 30px rgba(34, 197, 94, .22);
}

.final-wa-send-btn svg {
    width: 15px;
    height: 15px;
    stroke-width: 2.8;
}

.final-wa-send-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 38px rgba(34, 197, 94, .30);
}

.final-wa-send-btn:disabled {
    opacity: .55;
    cursor: not-allowed;
    box-shadow: none;
}

.final-wa-hint {
    margin-top: 7px;
    color: #64748b;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.35;
}

.booth-template-filter {
    margin: 14px 0 18px;
    padding: 12px;
    border-radius: 22px;
    background: rgba(255, 255, 255, .72);
    border: 1px solid rgba(255, 255, 255, .65);
    box-shadow: 0 18px 55px rgba(17, 24, 39, .08);
    backdrop-filter: blur(18px);
}

.booth-template-filter-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: center;
}

.booth-template-category-select {
    width: 100%;
    min-height: 46px;
    border: 1px solid rgba(226, 232, 240, .95);
    border-radius: 16px;
    padding: 0 14px;
    background: #fff;
    color: #344054;
    font-size: 13px;
    font-weight: 800;
    outline: none;
}

.booth-template-category-select:focus {
    border-color: rgba(236, 72, 153, .55);
    box-shadow: 0 0 0 .2rem rgba(236, 72, 153, .10);
}

.booth-template-result-info {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 14px;
    border-radius: 16px;
    background: rgba(236, 72, 153, .08);
    color: #be185d;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.template-category-pill {
    position: absolute;
    left: 10px;
    top: 10px;
    z-index: 4;
    max-width: calc(100% - 20px);
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(15, 23, 42, .70);
    color: #fff;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
    backdrop-filter: blur(10px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.template-slot-badges {
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 10px;
    z-index: 4;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.template-slot-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 950;
    line-height: 1;
    color: #fff;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, .18);
}

.template-slot-badge svg {
    width: 13px;
    height: 13px;
}

.template-slot-badge.is-photo {
    background: rgba(37, 99, 235, .86);
}

.template-slot-badge.is-video {
    background: rgba(220, 38, 38, .88);
}

.template-slot-badge.is-mixed {
    background: rgba(124, 58, 237, .88);
}

.template-store-empty {
    padding: 26px;
    border-radius: 24px;
    background: rgba(255, 255, 255, .78);
    border: 1px solid rgba(255, 255, 255, .72);
    text-align: center;
    color: #667085;
    font-weight: 800;
}

.mixed-final-stage video::-webkit-media-controls,
.mixed-final-stage video::-webkit-media-controls-enclosure,
.mixed-final-stage video::-webkit-media-controls-panel {
    display: none !important;
}

.mixed-final-stage video {
    pointer-events: none;
}

@media (max-width: 576px) {
    .booth-template-filter-inner {
        grid-template-columns: 1fr;
    }

    .booth-template-result-info {
        justify-content: flex-start;
    }
}

.template-preview-wrap {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 30% 20%, rgba(236, 72, 153, .10), transparent 34%),
        linear-gradient(135deg, #f8fafc, #eef2ff);
}

.template-slot-preview-layer {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.template-slot-preview {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    transform-origin: center;
    overflow: hidden;
}

.template-slot-preview.is-photo {
    background:
        radial-gradient(circle at 30% 20%, rgba(255, 255, 255, .35), transparent 32%),
        linear-gradient(135deg, rgba(37, 99, 235, .62), rgba(59, 130, 246, .40));
    border: 1px dashed rgba(37, 99, 235, .82);
}

.template-slot-preview.is-video {
    background:
        radial-gradient(circle at 30% 20%, rgba(255, 255, 255, .35), transparent 32%),
        linear-gradient(135deg, rgba(220, 38, 38, .66), rgba(244, 63, 94, .42));
    border: 1px dashed rgba(220, 38, 38, .86);
}

.template-slot-preview-icon {
    width: clamp(18px, 22%, 42px);
    aspect-ratio: 1 / 1;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, .58);
    color: #fff;
    box-shadow: 0 10px 26px rgba(15, 23, 42, .18);
    backdrop-filter: blur(8px);
}

.template-slot-preview-icon svg {
    width: 54%;
    height: 54%;
    stroke-width: 2.8;
}

.template-preview {
    position: relative;
    z-index: 2;
}

.template-check,
.template-start-overlay,
.template-category-pill,
.template-slot-badges {
    z-index: 5;
}

/* =========================================================
   STEP SELECT - FRAME SLOT PASTEL + FOTO TIDAK TERPOTONG
========================================================= */

#stepSelect .select-frame-preview {
    background: radial-gradient(circle at 22% 16%, rgba(255,255,255,.82), transparent 34%), linear-gradient(135deg, #f8fbff, #eef4ff 52%, #fff1f8) !important;
}

#stepSelect .select-frame-stage {
    background: #fff !important;
    border-radius: 12px !important;
    box-shadow: 0 16px 44px rgba(15,23,42,.13), inset 0 0 0 1px rgba(15,23,42,.06) !important;
}

#stepSelect .select-frame-slot {
    border-radius: 3px !important;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.42) !important;
}

#stepSelect .select-frame-slot:not(.is-filled),
#stepSelect .select-frame-slot.is-photo:not(.is-filled) {
    background: linear-gradient(135deg, rgba(191,219,254,.70), rgba(219,234,254,.50)) !important;
    border: 1px dashed rgba(96,165,250,.82) !important;
}

#stepSelect .select-frame-slot.is-video:not(.is-filled) {
    background: linear-gradient(135deg, rgba(254,202,202,.70), rgba(255,228,230,.52)) !important;
    border: 1px dashed rgba(248,113,113,.82) !important;
}

#stepSelect .select-frame-slot.is-filled {
    background: rgba(248,250,252,.92) !important;
    border: 1px solid rgba(226,232,240,.92) !important;
}

#stepSelect .select-frame-slot img,
#stepSelect .select-frame-slot video {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center center !important;
    background: rgba(255,255,255,.64) !important;
    border-radius: 0 !important;
}

#stepSelect .select-frame-slot.is-filled img {
    transform-origin: center center !important;
    will-change: transform !important;
    user-select: none !important;
    -webkit-user-drag: none !important;
}

#stepSelect .select-frame-slot-label,
#stepSelect .select-frame-slot > span {
    border-radius: 7px !important;
    background: rgba(71,85,105,.62) !important;
}

#stepSelect .select-frame-slot.is-filled .select-frame-slot-label {
    border-radius: 7px !important;
    background: rgba(236,72,153,.82) !important;
}

#stepSelect .select-adjust-tools {
    background: radial-gradient(circle at 0% 0%, rgba(236,72,153,.08), transparent 38%), rgba(248,250,252,.94) !important;
}

/* =========================================================
   STEP SELECT - FOTO UTUH + AUTO ZOOM MEMENUHI SLOT
   Base tetap object-fit: contain, lalu JS memberi scale awal.
========================================================= */

#stepSelect .select-frame-slot {
    overflow: hidden !important;
    border-radius: 3px !important;
}

#stepSelect .select-frame-slot img,
#stepSelect .select-frame-slot.is-filled img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center center !important;
    transform-origin: center center !important;
    pointer-events: none !important;
    user-select: none !important;
    -webkit-user-drag: none !important;
    background: transparent !important;
    border-radius: 0 !important;
    will-change: transform;
}

#stepSelect .select-frame-slot:not(.is-filled),
#stepSelect .select-frame-slot.is-photo:not(.is-filled) {
    background: linear-gradient(135deg, rgba(191,219,254,.70), rgba(219,234,254,.50)) !important;
    border: 1px dashed rgba(96,165,250,.82) !important;
}

#stepSelect .select-frame-slot.is-video:not(.is-filled) {
    background: linear-gradient(135deg, rgba(254,202,202,.70), rgba(255,228,230,.52)) !important;
    border: 1px dashed rgba(248,113,113,.82) !important;
}

#stepSelect .select-frame-slot-label,
#stepSelect .select-frame-slot > span {
    border-radius: 7px !important;
}

/* =========================================================
   STEP SELECT - VIDEO THUMBNAIL ADJUSTABLE LIKE PHOTO
   Slot video tetap locked dari pilihan, tapi bisa digeser dan zoom.
========================================================= */

#stepSelect .select-frame-slot.is-video.is-adjustable-video {
    cursor: move !important;
}

#stepSelect .select-frame-slot.is-video.is-filled img,
#stepSelect .select-frame-slot.is-video.is-filled video {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center center !important;
    transform-origin: center center !important;
    pointer-events: none !important;
    user-select: none !important;
    -webkit-user-drag: none !important;
    background: transparent !important;
    border-radius: 0 !important;
    will-change: transform;
}

#stepSelect .select-frame-slot.is-video.is-filled.is-adjust-active {
    outline: 2px solid rgba(236, 72, 153, .76) !important;
    outline-offset: 2px !important;
}

#stepSelect .select-frame-slot.is-video.is-filled .select-frame-slot-label {
    background: rgba(236, 72, 153, .88) !important;
    border-radius: 7px !important;
}

/* =========================================================
   STEP SELECT - VIDEO THUMBNAIL DRAG ZOOM FINAL
   Video tetap locked, tapi thumbnail bisa digeser dan zoom seperti foto.
========================================================= */

#stepSelect .select-frame-slot.is-video.is-adjustable-video {
    cursor: move !important;
    touch-action: none !important;
}

#stepSelect .select-frame-slot.is-video.is-filled img,
#stepSelect .select-frame-slot.is-video.is-filled video {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center center !important;
    transform-origin: center center !important;
    pointer-events: none !important;
    user-select: none !important;
    -webkit-user-drag: none !important;
    background: transparent !important;
    border-radius: 0 !important;
    will-change: transform;
}

#stepSelect .select-frame-slot.is-video.is-filled.is-adjust-active {
    outline: 2px solid rgba(236, 72, 153, .76) !important;
    outline-offset: 2px !important;
}

#stepSelect .select-frame-slot.is-video.is-filled .select-frame-slot-label {
    background: rgba(236, 72, 153, .88) !important;
    border-radius: 7px !important;
}
