/* ===================================================================
   UNIVERSAL PRODUCTS — Features CSS
   Sales Banner · Sort Bar · Redesigned Modal · Hot Badge · Tags
   =================================================================== */

/* ===================================================================
   1. SALES BANNER STRIP (site-wide top banner)
   =================================================================== */

#up-sale-banner {
    width: 100%;
    padding: 0.55rem 1.5rem;
    text-align: center;
    font-family: 'Space Grotesk', monospace;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    position: relative;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    overflow: hidden;
}

#up-sale-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.08) 50%, transparent 100%);
    background-size: 200% 100%;
    animation: shimmerSweep 2.5s linear infinite;
    pointer-events: none;
}

@keyframes shimmerSweep {
    0%   { background-position: -200% 0; }
    100% { background-position:  200% 0; }
}

#up-sale-banner-close {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: inherit;
    opacity: 0.6;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    padding: 0.2rem 0.4rem;
    transition: opacity 0.2s ease;
}
#up-sale-banner-close:hover { opacity: 1; }

/* Banner color themes */
#up-sale-banner.banner-fire {
    background: linear-gradient(90deg, #7C2D12 0%, #B45309 50%, #7C2D12 100%);
    color: #FEF3C7;
}
#up-sale-banner.banner-gold {
    background: linear-gradient(90deg, #78350F 0%, #D97706 50%, #78350F 100%);
    color: #FFFBEB;
}
#up-sale-banner.banner-green {
    background: linear-gradient(90deg, #064E3B 0%, #059669 50%, #064E3B 100%);
    color: #ECFDF5;
}
#up-sale-banner.banner-royal {
    background: linear-gradient(90deg, #1E1B4B 0%, #4338CA 50%, #1E1B4B 100%);
    color: #EEF2FF;
}
#up-sale-banner.banner-red {
    background: linear-gradient(90deg, #7F1D1D 0%, #DC2626 50%, #7F1D1D 100%);
    color: #FEF2F2;
}
#up-sale-banner.banner-dark {
    background: linear-gradient(90deg, #0E0B08 0%, #211A15 50%, #0E0B08 100%);
    color: #D9B36E;
    border-bottom: 1px solid rgba(197,155,81,0.3);
}

/* ===================================================================
   2. SORT & FILTER BAR
   =================================================================== */

.catalog-sort-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.sort-label {
    font-family: 'Space Grotesk', monospace;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #C59B51;
    white-space: nowrap;
}

.sort-select {
    font-family: 'Outfit', sans-serif;
    font-size: 0.82rem;
    font-weight: 500;
    color: #F5F0E8;
    background: #1E1710;
    border: 1px solid rgba(197,155,81,0.3);
    border-radius: 9999px;
    padding: 0.48rem 1.1rem 0.48rem 0.9rem;
    cursor: pointer;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23C59B51' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 10px;
    padding-right: 2rem;
    transition: border-color 0.2s ease;
}
.sort-select:focus { border-color: #C59B51; }
.sort-select option { background: #1E1710; color: #F5F0E8; }

.results-count {
    font-family: 'Space Grotesk', monospace;
    font-size: 0.7rem;
    color: #7A6E5F;
    margin-left: auto;
}

/* ===================================================================
   3. PRODUCT CARD — SALE & HOT BADGE ENHANCEMENTS
   =================================================================== */

/* Sale banner ribbon on card image */
.card-sale-ribbon {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 5;
    padding: 0.3rem 0.75rem;
    font-family: 'Space Grotesk', monospace;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-align: center;
    pointer-events: none;
}

.card-sale-ribbon.ribbon-fire   { background: linear-gradient(90deg,#B45309,#D97706); color:#FEF3C7; }
.card-sale-ribbon.ribbon-gold   { background: linear-gradient(90deg,#C59B51,#F7D070); color:#17120E; }
.card-sale-ribbon.ribbon-green  { background: linear-gradient(90deg,#059669,#10B981); color:#ECFDF5; }
.card-sale-ribbon.ribbon-royal  { background: linear-gradient(90deg,#4338CA,#6366F1); color:#EEF2FF; }
.card-sale-ribbon.ribbon-red    { background: linear-gradient(90deg,#DC2626,#EF4444); color:#FEF2F2; }
.card-sale-ribbon.ribbon-dark   { background: linear-gradient(90deg,#211A15,#3A2D24); color:#D9B36E; border-bottom:1px solid rgba(197,155,81,0.3); }

/* Hot / trending badge */
.badge-hot {
    background: linear-gradient(135deg, #EF4444, #DC2626) !important;
    color: #fff !important;
    border-color: rgba(239,68,68,0.4) !important;
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(239,68,68,0); }
    50%       { box-shadow: 0 0 0 6px rgba(239,68,68,0.2); }
}

/* ===================================================================
   4. REDESIGNED PRODUCT DETAIL MODAL
   =================================================================== */

.up-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 7, 5, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    overflow-y: auto;
}

.up-modal-overlay.open {
    display: flex;
    animation: modalOverlayIn 0.3s ease both;
}

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

.up-modal-sheet {
    background: #1A1410;
    border: 1px solid rgba(197,155,81,0.25);
    border-radius: 24px;
    max-width: 920px;
    width: 100%;
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    box-shadow: 0 40px 100px rgba(0,0,0,0.8), 0 0 0 1px rgba(197,155,81,0.15);
    animation: modalSheetIn 0.4s cubic-bezier(0.16,1,0.3,1) both;
}

@keyframes modalSheetIn {
    from { opacity: 0; transform: translateY(40px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0)    scale(1); }
}

/* Close button */
.up-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 20;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(20,15,10,0.85);
    border: 1px solid rgba(255,255,255,0.15);
    color: #F5F0E8;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
    line-height: 1;
    backdrop-filter: blur(8px);
    /* Sits over gallery column (left half), never over info text */
}
.up-modal-close:hover { background: rgba(197,155,81,0.2); border-color: rgba(197,155,81,0.4); transform: scale(1.08); }

/* Modal body scroll area */
.up-modal-body {
    overflow-y: auto;
    flex: 1;
    -webkit-overflow-scrolling: touch;
}

/* Two-column layout */
.up-modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

/* Left: gallery column */
.up-modal-gallery {
    padding: 1.75rem;
    border-right: 1px solid rgba(255,255,255,0.05);
    position: sticky;
    top: 0;
    align-self: start;
}

.up-modal-main-img-wrap {
    width: 100%;
    aspect-ratio: 1152 / 841;
    border-radius: 14px;
    overflow: hidden;
    background: #0E0B08;
    border: 1px solid rgba(197,155,81,0.12);
    position: relative;
    cursor: zoom-in;
}

/* Zoom-hint overlay on hover */
.up-modal-main-img-wrap::after {
    content: '\f00e'; /* fa-search-plus */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    bottom: 0.75rem;
    right: 0.75rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(14,11,8,0.75);
    border: 1px solid rgba(197,155,81,0.35);
    color: #C59B51;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(6px);
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
    z-index: 3;
    /* flex on pseudo-elements doesn't work — use text-align instead */
    text-align: center;
    line-height: 32px;
}
.up-modal-main-img-wrap:hover::after { opacity: 1; }

.up-modal-main-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.25s ease;
}

.up-modal-thumbs {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    scrollbar-width: none;
}
.up-modal-thumbs::-webkit-scrollbar { display: none; }

.up-modal-thumb {
    width: 70px;
    height: 52px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid transparent;
    cursor: pointer;
    flex-shrink: 0;
    transition: border-color 0.2s ease, opacity 0.2s ease;
    opacity: 0.65;
}
.up-modal-thumb.active,
.up-modal-thumb:hover { border-color: #C59B51; opacity: 1; }

/* Right: info column */
.up-modal-info {
    padding: 1.75rem;
    padding-top: 3.75rem; /* clears the absolute close button at top-right */
    display: flex;
    flex-direction: column;
    gap: 0;
    overflow-y: auto;
}

/* Brand + status row */
.up-modal-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.6rem;
}

.up-modal-brand {
    font-family: 'Space Grotesk', monospace;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #C59B51;
}

/* Product name */
.up-modal-name {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.25rem, 2.5vw, 1.6rem);
    font-weight: 700;
    color: #F5F0E8;
    line-height: 1.25;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

/* Price block */
.up-modal-price-block {
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-bottom: 0.4rem;
}

.up-modal-price {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    color: #FFFFFF;
    letter-spacing: -0.03em;
    line-height: 1;
}

.up-modal-mrp {
    font-family: 'Space Grotesk', monospace;
    font-size: 1rem;
    font-weight: 400;
    color: #6B6055;
    text-decoration: line-through;
    text-decoration-color: rgba(107,96,85,0.6);
}

.up-modal-discount-pill {
    font-family: 'Space Grotesk', monospace;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(135deg, #10B981, #059669);
    padding: 0.22rem 0.65rem;
    border-radius: 9999px;
}

.up-modal-savings {
    font-family: 'Space Grotesk', monospace;
    font-size: 0.78rem;
    font-weight: 600;
    color: #34D399;
    margin-bottom: 1rem;
}

/* Offer strip */
.up-modal-offer {
    background: rgba(197,155,81,0.1);
    border: 1px solid rgba(197,155,81,0.25);
    border-radius: 8px;
    padding: 0.65rem 1rem;
    font-family: 'Outfit', sans-serif;
    font-size: 0.83rem;
    color: #E2B96E;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

/* Description */
.up-modal-desc {
    font-family: 'Outfit', sans-serif;
    font-size: 0.88rem;
    line-height: 1.7;
    color: #AEA49A;
    margin-bottom: 1rem;
}

/* Feature pills */
.up-modal-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1.1rem;
}

.up-feature-pill {
    font-family: 'Space Grotesk', monospace;
    font-size: 0.68rem;
    font-weight: 600;
    color: #C4B79E;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(197,155,81,0.15);
    padding: 0.3rem 0.7rem;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}
.up-feature-pill i { color: #C59B51; font-size: 0.7rem; }

/* Specs table */
.up-modal-specs {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1.25rem;
}

.up-spec-row {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.7rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    font-size: 0.83rem;
}
.up-spec-row:last-child { border-bottom: none; }

.up-spec-icon {
    color: #C59B51;
    width: 16px;
    flex-shrink: 0;
    margin-top: 0.05rem;
}

.up-spec-label {
    font-family: 'Space Grotesk', monospace;
    font-weight: 600;
    color: #8A7B6E;
    font-size: 0.72rem;
    min-width: 115px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.up-spec-value {
    font-family: 'Outfit', sans-serif;
    color: #D4C9BC;
    font-size: 0.83rem;
    line-height: 1.4;
    flex: 1;
}

/* CTA button */
.up-modal-cta {
    font-family: 'Outfit', sans-serif;
    font-size: 0.92rem;
    font-weight: 700;
    color: #FFFFFF;
    background: linear-gradient(135deg, #132E27, #1C4238);
    border: 1px solid rgba(197,155,81,0.4);
    border-radius: 9999px;
    padding: 0.85rem 1.5rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    transition: all 0.28s cubic-bezier(0.16,1,0.3,1);
    box-shadow: 0 4px 20px rgba(0,0,0,0.35);
    margin-top: auto;
}
.up-modal-cta:hover {
    background: linear-gradient(135deg, #1C4238, #2D6A5E);
    border-color: #C59B51;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.5);
    color: #FFFFFF;
}
.up-modal-cta i { font-size: 1.1rem; }
.up-modal-cta .fa-whatsapp { color: #25D366; }

/* Mobile modal — full screen sheet */
@media (max-width: 767px) {
    .up-modal-overlay { padding: 0; align-items: flex-end; }

    .up-modal-sheet {
        border-radius: 24px 24px 0 0;
        max-height: 94vh;
        animation: modalMobileIn 0.4s cubic-bezier(0.16,1,0.3,1) both;
    }

    @keyframes modalMobileIn {
        from { opacity: 0; transform: translateY(100%); }
        to   { opacity: 1; transform: translateY(0); }
    }

    .up-modal-grid {
        grid-template-columns: 1fr;
    }

    .up-modal-gallery {
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        padding: 1.25rem;
        position: static;
    }

    .up-modal-info { padding: 1.25rem; padding-top: 3.5rem; }

    .up-modal-name { font-size: 1.2rem; }
    .up-modal-price { font-size: 1.5rem; }
}

/* ===================================================================
   5. PRODUCT CARD SORT HIGHLIGHT
   =================================================================== */

.product-card[data-sort-rank="1"] {
    border-color: rgba(197,155,81,0.5) !important;
}

/* ===================================================================
   6. EMPTY STATE
   =================================================================== */

.catalog-empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 1.5rem;
}

.catalog-empty-state h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.3rem;
    color: #F5F0E8;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.catalog-empty-state p {
    font-family: 'Outfit', sans-serif;
    color: #7A6E5F;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

/* ===================================================================
   IMAGE ZOOM LIGHTBOX
   =================================================================== */

#up-zoom-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(6, 4, 2, 0.96);
    backdrop-filter: blur(18px);
    display: none;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}

#up-zoom-lightbox.open {
    display: flex;
    animation: lbFadeIn 0.25s ease both;
}

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

/* Close btn */
#up-zoom-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    z-index: 10;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.18);
    color: #F5F0E8;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease;
    backdrop-filter: blur(8px);
}
#up-zoom-close:hover { background: rgba(197,155,81,0.25); border-color: rgba(197,155,81,0.5); }

/* Zoom controls */
#up-zoom-controls {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(14,11,8,0.8);
    border: 1px solid rgba(197,155,81,0.25);
    border-radius: 9999px;
    padding: 0.4rem 0.9rem;
    backdrop-filter: blur(10px);
    z-index: 10;
}

.up-zoom-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.1);
    color: #F5F0E8;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.18s ease;
    flex-shrink: 0;
}
.up-zoom-btn:hover { background: rgba(197,155,81,0.2); border-color: rgba(197,155,81,0.4); color: #C59B51; }

#up-zoom-level {
    font-family: 'Space Grotesk', monospace;
    font-size: 0.72rem;
    color: #C4B79E;
    min-width: 40px;
    text-align: center;
    letter-spacing: 0.04em;
}

/* Reset btn */
#up-zoom-reset {
    font-family: 'Space Grotesk', monospace;
    font-size: 0.68rem;
    color: #C59B51;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0 0.25rem;
    transition: opacity 0.2s;
    white-space: nowrap;
}
#up-zoom-reset:hover { opacity: 0.75; }

/* Nav arrows for multi-image */
.up-zoom-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(14,11,8,0.7);
    border: 1px solid rgba(255,255,255,0.12);
    color: #F5F0E8;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease;
    backdrop-filter: blur(8px);
    z-index: 10;
}
.up-zoom-nav:hover { background: rgba(197,155,81,0.2); border-color: rgba(197,155,81,0.4); }
#up-zoom-prev { left: 1.25rem; }
#up-zoom-next { right: 1.25rem; }

/* The image canvas */
#up-zoom-canvas {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
}
#up-zoom-canvas.dragging { cursor: grabbing; }

#up-zoom-img {
    max-width: 92vw;
    max-height: 88vh;
    object-fit: contain;
    transform-origin: center center;
    transition: transform 0.15s cubic-bezier(0.16,1,0.3,1);
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
}

/* Image counter */
#up-zoom-counter {
    position: absolute;
    top: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Space Grotesk', monospace;
    font-size: 0.72rem;
    color: #C4B79E;
    background: rgba(14,11,8,0.7);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 9999px;
    padding: 0.3rem 0.85rem;
    backdrop-filter: blur(8px);
    z-index: 10;
}

/* Hint text */
#up-zoom-hint {
    position: absolute;
    bottom: 5rem;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Space Grotesk', monospace;
    font-size: 0.65rem;
    color: rgba(196,183,158,0.5);
    white-space: nowrap;
    pointer-events: none;
    animation: lbFadeIn 0.5s ease 0.8s both, hintFade 0.5s ease 3.5s forwards;
}
@keyframes hintFade { to { opacity: 0; } }

/* ===================================================================
   MIND-BLOWING HERO ROOM FILL STAGE 3D TRANSITION ENGINE
   =================================================================== */

.room-fill-stage {
    position: relative;
    width: 100%;
    max-width: 1280px;
    height: 600px;
    margin: 0 auto;
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid rgba(197, 155, 81, 0.4);
    background-color: #0d0a07;
    box-shadow: 0 35px 90px rgba(0, 0, 0, 0.85), 0 0 45px rgba(197, 155, 81, 0.2);
    perspective: 1400px;
    transform-style: preserve-3d;
    user-select: none;
}

/* Multi-layer slides stack */
.stage-slides-container {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #0b0806;
}

.stage-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    z-index: 1;
    transition: opacity 1.1s cubic-bezier(0.22, 1, 0.36, 1),
                transform 1.4s cubic-bezier(0.16, 1, 0.3, 1),
                filter 1s ease;
    transform: scale(1.09) translateZ(-40px);
    filter: brightness(0.65) blur(3px);
    will-change: transform, opacity, filter;
}

.stage-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
    transform: scale(1) translateZ(0);
    filter: brightness(1) blur(0);
}

.stage-slide.exit-left {
    opacity: 0;
    transform: scale(0.95) translateX(-40px) translateZ(-60px);
    filter: brightness(0.5) blur(4px);
}

.stage-slide.exit-right {
    opacity: 0;
    transform: scale(0.95) translateX(40px) translateZ(-60px);
    filter: brightness(0.5) blur(4px);
}

/* Image with continuous Ken Burns motion */
.stage-slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform-origin: center center;
    transition: transform 0.25s ease-out;
}

.stage-slide.active .stage-slide-img {
    animation: stageKenBurnsDrift 14s ease-in-out infinite alternate;
}

@keyframes stageKenBurnsDrift {
    0% {
        transform: scale(1) translate(0, 0);
    }
    50% {
        transform: scale(1.055) translate(-1.2%, -0.8%);
    }
    100% {
        transform: scale(1.025) translate(1.4%, 0.6%);
    }
}

/* Cinematic Anamorphic Gold Flare Sweep */
.stage-light-sweep {
    position: absolute;
    inset: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        105deg,
        transparent 35%,
        rgba(197, 155, 81, 0.05) 45%,
        rgba(255, 235, 180, 0.35) 50%,
        rgba(197, 155, 81, 0.15) 55%,
        transparent 65%
    );
    transform: translateX(-150%) skewX(-20deg);
    pointer-events: none;
    z-index: 5;
    opacity: 0;
}

.stage-light-sweep.trigger-sweep {
    animation: lightSweepAction 1.1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes lightSweepAction {
    0% {
        transform: translateX(-120%) skewX(-20deg);
        opacity: 0;
    }
    20% {
        opacity: 0.9;
    }
    80% {
        opacity: 0.9;
    }
    100% {
        transform: translateX(120%) skewX(-20deg);
        opacity: 0;
    }
}

/* Atmospheric Vignette & Lighting */
.stage-vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 45%, transparent 35%, rgba(10, 8, 6, 0.5) 75%, rgba(8, 6, 4, 0.88) 100%),
                linear-gradient(180deg, rgba(14, 11, 8, 0.4) 0%, transparent 25%, transparent 60%, rgba(14, 11, 8, 0.96) 100%);
    pointer-events: none;
    z-index: 3;
}

/* Luxury Story Progress Indicators (Top Bar) */
.stage-story-indicators {
    position: absolute;
    top: 1.25rem;
    left: 2.25rem;
    right: 2.25rem;
    display: flex;
    gap: 0.6rem;
    z-index: 12;
    pointer-events: auto;
}

.stage-progress-bar {
    flex: 1;
    height: 3.5px;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 9999px;
    overflow: hidden;
    cursor: pointer;
    backdrop-filter: blur(4px);
    transition: height 0.2s ease, background 0.2s ease;
    position: relative;
}

.stage-progress-bar:hover {
    height: 6px;
    background: rgba(255, 255, 255, 0.3);
}

.stage-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #C59B51, #F6D785);
    border-radius: 9999px;
    box-shadow: 0 0 10px rgba(197, 155, 81, 0.7);
    transition: width 0.1s linear;
}

.stage-progress-bar.completed .stage-progress-fill {
    width: 100% !important;
    background: #C59B51;
}

/* Top Live Header & Counter */
.stage-top-meta {
    position: absolute;
    top: 2.2rem;
    left: 2.25rem;
    right: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 12;
    pointer-events: none;
}

.stage-atelier-tag {
    font-family: 'Space Grotesk', monospace;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #F5E8CE;
    background: rgba(18, 14, 10, 0.75);
    border: 1px solid rgba(197, 155, 81, 0.4);
    border-radius: 9999px;
    padding: 0.35rem 0.95rem;
    backdrop-filter: blur(10px);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
}

.stage-live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10B981;
    box-shadow: 0 0 8px #10B981;
    animation: livePulseDot 1.8s infinite;
}

@keyframes livePulseDot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.6; }
}

.stage-counter-badge {
    font-family: 'Space Grotesk', monospace;
    font-size: 0.75rem;
    font-weight: 700;
    color: #C59B51;
    background: rgba(18, 14, 10, 0.75);
    border: 1px solid rgba(197, 155, 81, 0.35);
    border-radius: 9999px;
    padding: 0.35rem 0.95rem;
    backdrop-filter: blur(10px);
    letter-spacing: 0.08em;
}

/* Glassmorphism Floating Navigation Arrows */
.stage-nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(18, 14, 10, 0.72);
    border: 1px solid rgba(197, 155, 81, 0.45);
    color: #F5E8CE;
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(12px);
    z-index: 15;
    transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    outline: none;
}

.stage-nav-prev { left: 1.5rem; }
.stage-nav-next { right: 1.5rem; }

.stage-nav-arrow:hover {
    background: rgba(197, 155, 81, 0.3);
    border-color: #F6D785;
    color: #FFF;
    transform: translateY(-50%) scale(1.12);
    box-shadow: 0 12px 32px rgba(197, 155, 81, 0.35);
}

.stage-nav-arrow:active {
    transform: translateY(-50%) scale(0.96);
}

/* Bottom Controls & Dynamic Info Badge */
.stage-bottom-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    z-index: 12;
    pointer-events: none;
}

.stage-controls-pills {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 1.15rem;
    pointer-events: auto;
    flex-wrap: wrap;
    justify-content: center;
}

.stage-pill-btn {
    background: rgba(18, 14, 10, 0.82);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(197, 155, 81, 0.35);
    color: #BBAF9E;
    padding: 0.45rem 1.05rem;
    border-radius: 9999px;
    font-family: 'Space Grotesk', monospace;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.stage-pill-btn:hover {
    color: #FFF;
    border-color: #C59B51;
    background: rgba(197, 155, 81, 0.2);
    transform: translateY(-2px);
}

.stage-pill-btn.active {
    background: linear-gradient(135deg, #C59B51, #A37B34);
    color: #0E0B08;
    border-color: #F6D785;
    font-weight: 700;
    box-shadow: 0 6px 20px rgba(197, 155, 81, 0.5);
    transform: translateY(-2px);
}

/* Stage Info Badge with Animated Content */
.stage-badge {
    background: rgba(16, 12, 9, 0.88);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(197, 155, 81, 0.45);
    padding: 0.95rem 1.75rem;
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 1.15rem;
    text-align: left;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.75), 0 0 24px rgba(197, 155, 81, 0.15);
    pointer-events: auto;
    transition: all 0.35s ease;
    max-width: 680px;
    width: 100%;
}

.stage-badge-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(197, 155, 81, 0.15);
    border: 1px solid rgba(197, 155, 81, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #C59B51;
    font-size: 1.3rem;
    flex-shrink: 0;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.stage-badge:hover .stage-badge-icon-wrap {
    transform: scale(1.1) rotate(5deg);
    color: #F6D785;
}

.stage-badge-title {
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: #F5F0E8;
    line-height: 1.3;
    margin-bottom: 0.2rem;
}

.stage-badge-spec {
    font-family: 'Space Grotesk', monospace;
    font-size: 0.76rem;
    color: #C59B51;
    font-weight: 500;
    line-height: 1.4;
}

/* Mobile Responsiveness for 3D Stage */
@media (max-width: 768px) {
    .room-fill-stage {
        height: auto !important;
        aspect-ratio: 4 / 3 !important;
        min-height: 380px;
        border-radius: 16px;
    }

    .stage-story-indicators {
        top: 0.85rem;
        left: 1rem;
        right: 1rem;
        gap: 0.35rem;
    }

    .stage-top-meta {
        top: 1.6rem;
        left: 1rem;
        right: 1rem;
    }

    .stage-atelier-tag,
    .stage-counter-badge {
        font-size: 0.62rem;
        padding: 0.25rem 0.65rem;
    }

    .stage-nav-arrow {
        width: 38px;
        height: 38px;
        font-size: 0.9rem;
    }

    .stage-nav-prev { left: 0.65rem; }
    .stage-nav-next { right: 0.65rem; }

    .stage-bottom-overlay {
        padding: 1rem;
    }

    .stage-controls-pills {
        overflow-x: auto;
        white-space: nowrap;
        display: flex;
        flex-wrap: nowrap;
        justify-content: flex-start;
        width: 100%;
        gap: 0.4rem;
        padding-bottom: 0.3rem;
        margin-bottom: 0.6rem;
        scrollbar-width: none;
    }
    .stage-controls-pills::-webkit-scrollbar { display: none; }

    .stage-pill-btn {
        font-size: 0.64rem;
        padding: 0.3rem 0.7rem;
        flex-shrink: 0;
    }

    .stage-badge {
        padding: 0.65rem 0.95rem;
        gap: 0.75rem;
        border-radius: 10px;
    }

    .stage-badge-icon-wrap {
        width: 34px;
        height: 34px;
        font-size: 1rem;
    }

    .stage-badge-title {
        font-size: 0.8rem;
    }

    .stage-badge-spec {
        font-size: 0.68rem;
    }
}
