/* Burbank Big Condensed - Fortnite Font */
@font-face {
    font-family: 'Burbank Big Condensed';
    src: url('Burbank Big Condensed/burbankbigcondensed_bold.otf') format('opentype');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'Burbank Big Condensed';
    src: url('Burbank Big Condensed/burbankbigcondensed_black.otf') format('opentype');
    font-weight: 900;
    font-style: normal;
}

:root {
    --primary: #8a2be2;
    --primary-glow: rgba(138, 43, 226, 0.4);
    --secondary: #00f2ff;
    --secondary-glow: rgba(0, 242, 255, 0.4);
    --bg-dark: #060812;
    --bg-card: rgba(255, 255, 255, 0.05);
    --text-main: #ffffff;
    --text-muted: #a0a0c0;
    --glass-border: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Burbank Big Condensed', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-outfit);
    overflow-x: hidden;
    min-height: 100vh;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

img {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
}

/* Background Stars */
.stars-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at center, #1a1c3a 0%, #070912 100%);
}

.star {
    position: absolute;
    background: white;
    border-radius: 50%;
    opacity: 0.5;
    animation: twinkle var(--duration) infinite ease-in-out;
}

@keyframes twinkle {

    0%,
    100% {
        opacity: 0.3;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* Header Styles */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background: rgba(7, 9, 18, 0.8);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 2px;
}

.logo span {
    color: var(--primary);
}

/* Main Content */
main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 5%;
}

.hero {
    text-align: center;
    margin-bottom: 4rem;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.gradient-text {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    color: var(--text-muted);
    font-size: 1.2rem;
}

/* Filter Bar */
.filter-bar {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

/* --- UNIQUE MYSTERY-BOX PREMIUM LOCKER --- */
.locker-offers-premium {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
}

.mystery-offer-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, rgba(26, 30, 54, 0.8), rgba(17, 21, 42, 0.9));
    border: 1px solid rgba(138, 43, 226, 0.3);
    padding: 16px 20px;
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
}

.mystery-offer-card:hover {
    transform: scale(1.02) translateX(5px);
    border-color: #ffcc00;
    box-shadow: 0 0 25px rgba(255, 204, 0, 0.2);
    background: linear-gradient(135deg, rgba(30, 36, 68, 0.9), rgba(26, 30, 54, 1));
}

.mystery-offer-card.featured {
    border: 2px solid #ffcc00;
    background: linear-gradient(135deg, rgba(26, 30, 54, 1), rgba(138, 43, 226, 0.2));
}

.mystery-tag {
    position: absolute;
    top: 0;
    right: 0;
    background: #ffcc00;
    color: #000;
    font-size: 0.6rem;
    font-weight: 900;
    padding: 3px 10px;
    border-radius: 0 0 0 12px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.offer-title {
    color: #fff;
    font-weight: 700;
    font-size: 1.05rem;
    max-width: 70%;
    line-height: 1.3;
    text-align: left;
}

.claim-badge {
    background: #8a2be2;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 900;
    padding: 8px 18px;
    border-radius: 50px;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(138, 43, 226, 0.4);
    transition: 0.3s;
}

.mystery-offer-card:hover .claim-badge {
    background: #ffcc00;
    color: #000;
    transform: scale(1.1);
}

.verification-status-premium {
    margin-top: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    font-weight: 600;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00ff88;
    box-shadow: 0 0 10px #00ff88;
    animation: statusPulse 1.5s infinite;
}

@keyframes statusPulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.4);
        opacity: 0.5;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.loader-premium {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(138, 43, 226, 0.2);
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

h1,
h2,
h3,
.logo,
.btn-glow,
.btn-spin-premium {
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 1rem;
    color: #fff;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 0 20px var(--primary-glow);
    border-color: transparent;
}

/* Grid & Cards */
.boxes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.box-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.box-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px var(--primary-glow);
}

.box-image-container {
    width: 100%;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.box-image-container img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    transition: 0.5s;
}

.box-card:hover .box-image-container img {
    transform: scale(1.1) rotate(5deg);
}

.box-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.btn-open {
    width: 100%;
    background: var(--primary);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 1.35rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.box-card:hover .btn-open {
    background: var(--secondary);
    color: #000;
    box-shadow: 0 0 30px var(--secondary-glow);
}

/* Animations & WOW Factor */
.load-more {
    display: flex;
    justify-content: center;
    margin-top: 5rem;
}

.btn-glow {
    background: transparent;
    border: 2px solid var(--primary);
    color: white;
    padding: 18px 40px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.3s;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(138, 43, 226, 0.4);
    }

    70% {
        box-shadow: 0 0 0 20px rgba(138, 43, 226, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(138, 43, 226, 0);
    }
}

/* Utility Buttons */
.btn-primary {
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 1px solid var(--glass-border);
    padding: 10px 25px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
}

/* Modal & Animations */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(10px);
    overflow-y: auto;
    padding: 20px 0;
}

.unboxing-container {
    text-align: center;
    width: min(98%, 600px);
    position: relative;
    margin: auto;
    background: #0f1425;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.9);
    padding: 0;
    display: flex;
    flex-direction: column;
    max-height: 95vh;
    overflow: hidden;
}

/* Modal Header Section */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #161c31;
    border-bottom: 2px solid rgba(255, 255, 255, 0.05);
}

.box-info-mini {
    display: flex;
    align-items: center;
    gap: 15px;
    text-align: left;
}

.box-info-mini img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.box-text-info h3 {
    font-size: 1.2rem;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.close-btn-top {
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: #fff;
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.close-btn-top:hover {
    background: rgba(255, 255, 255, 0.1);
}

.box-preview {
    padding: 0;
    display: flex;
    flex-direction: column;
}

.preview-stage {
    padding: 40px 10px;
    background: radial-gradient(circle at center, rgba(138, 43, 226, 0.15), transparent);
    min-height: 200px;
    display: flex;
    align-items: center;
}

.preview-grid {
    display: flex;
    gap: 20px;
    padding: 20px 30px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    width: 100%;
}

.preview-grid::-webkit-scrollbar {
    height: 6px;
}

.preview-grid::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.preview-grid::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
    box-shadow: 0 0 10px var(--primary-glow);
}

.preview-grid::-webkit-scrollbar-thumb:hover {
    background: var(--secondary);
}

.preview-item {
    min-width: 110px;
    flex-shrink: 0;
    scroll-snap-align: start;
    background: transparent;
    border: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.preview-item::before {
    content: '';
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    z-index: -1;
    top: 5px;
    filter: blur(20px);
    opacity: 0.6;
}

.preview-item.rarity-legendary::before {
    background: #ff8c00;
}

.preview-item.rarity-epic::before {
    background: #8a2be2;
}

.preview-item.rarity-basic::before {
    background: #00ff88;
}

.preview-item img {
    width: 90px;
    height: 90px;
    object-fit: contain;
    margin-bottom: 0px;
    z-index: 1;
}

.preview-item span {
    display: none;
    /* Only show image in preview according to screenshot */
}

/* Action Area & Spin Now */
.action-section {
    padding: 20px;
    background: #161c31;
}

.btn-spin-premium {
    width: 100%;
    background: #8a2be2;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 12px;
    font-size: 1.4rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 10px 20px rgba(138, 43, 226, 0.2);
}

.btn-spin-premium:hover {
    filter: brightness(1.2);
    transform: translateY(-2px);
}

/* Nexus Reveal - Modern 2026 Animation */
.unboxing-active {
    padding: 20px;
    background: radial-gradient(circle at center, rgba(138, 43, 226, 0.2), transparent);
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.nexus-reveal-container {
    perspective: 1000px;
    width: 300px;
    height: 300px;
    position: absolute;
    inset: 0;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nexus-stage {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nexus-reveal-container img {
    width: 180px;
    height: 180px;
    object-fit: contain;
    z-index: 2;
    filter: drop-shadow(0 0 20px rgba(138, 43, 226, 0.5));
    transition: transform 0.1s ease;
}

.nexus-glow {
    position: absolute;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, rgba(138, 43, 226, 0.3) 0%, transparent 70%);
    z-index: 1;
    animation: nexus-pulse 2s infinite alternate;
}

@keyframes nexus-pulse {
    from {
        transform: scale(0.8);
        opacity: 0.4;
    }

    to {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

/* High Energy Shuffle State */
.shuffling img {
    animation: shuffle-card 0.05s infinite alternate;
    filter: blur(4px) brightness(1.5);
}

@keyframes shuffle-card {
    from {
        transform: scale(0.95) rotateY(-5deg);
    }

    to {
        transform: scale(1.05) rotateY(5deg);
    }
}

.reveal-burst img {
    animation: reveal-burst 1s cubic-bezier(0.17, 0.67, 0.83, 0.67) forwards;
}

@keyframes reveal-burst {
    0% {
        transform: scale(0.5);
        filter: brightness(5) blur(10px);
    }

    50% {
        transform: scale(1.3);
        filter: brightness(2) blur(2px);
    }

    100% {
        transform: scale(1);
        filter: brightness(1) blur(0);
    }
}

/* Cleanup old carousel styles */
.scrolling-wrapper,
.scrolling-items,
.prize-item-card,
.slots-area,
.slots-grid {
    display: none !important;
}

/* Winner Card Fix */
.winner-card {
    background: #161c31;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 100px rgba(0, 0, 0, 1);
}

.preview-item span {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-muted);
    text-align: center;
}

/* Rarity Glow Effects */
.rarity-legendary {
    background: radial-gradient(circle, rgba(255, 140, 0, 0.4) 0%, rgba(16, 18, 35, 0) 70%) !important;
    border-color: rgba(255, 140, 0, 0.5) !important;
}

.rarity-legendary img {
    filter: drop-shadow(0 0 15px rgba(255, 140, 0, 0.6));
}

.rarity-epic {
    background: radial-gradient(circle, rgba(138, 43, 226, 0.4) 0%, rgba(16, 18, 35, 0) 70%) !important;
    border-color: rgba(138, 43, 226, 0.5) !important;
}

.rarity-epic img {
    filter: drop-shadow(0 0 15px rgba(138, 43, 226, 0.6));
}

.rarity-basic {
    background: radial-gradient(circle, rgba(50, 205, 50, 0.3) 0%, rgba(16, 18, 35, 0) 70%) !important;
    border-color: rgba(50, 205, 50, 0.4) !important;
}

.rarity-basic img {
    filter: drop-shadow(0 0 10px rgba(50, 205, 50, 0.4));
}

.btn-spin {
    background: linear-gradient(135deg, var(--primary), #6a11cb);
    color: white;
    border: none;
    padding: 18px 50px;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 800;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 0 0 30px var(--primary-glow);
    transition: 0.3s;
    animation: pulse-spin 2s infinite;
}

@keyframes pulse-spin {
    0% {
        transform: scale(1);
        box-shadow: 0 0 20px var(--primary-glow);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 0 40px var(--primary-glow);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 20px var(--primary-glow);
    }
}

.btn-spin:hover {
    filter: brightness(1.2);
    transform: scale(1.05);
}

.mystery-box-anim {
    width: 250px;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    inset: 0;
    margin: auto;
    z-index: 2;
}

.scrolling-wrapper {
    width: 100%;
    height: 200px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.8) 0%, rgba(16, 18, 35, 0.5) 50%, rgba(0, 0, 0, 0.8) 100%);
    border: 2px solid var(--primary);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    display: none;
    margin-top: 20px;
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.9);
}

.scrolling-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: var(--secondary);
    box-shadow: 0 0 15px var(--secondary-glow);
    z-index: 5;
}

.scrolling-items {
    display: flex;
    position: absolute;
    left: 0;
    height: 100%;
    transition: transform 6s cubic-bezier(0.1, 0, 0.1, 1);
    align-items: center;
}

.prize-item-card {
    min-width: 160px;
    height: 140px;
    margin: 0 10px;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.prize-item-card img {
    max-width: 80px;
    max-height: 80px;
    object-fit: contain;
    margin-bottom: 5px;
}

.prize-item-card span {
    font-size: 0.7rem;
    font-weight: 700;
    text-align: center;
    color: var(--text-main);
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 5px;
}

/* Modern Slot Blur */
.spinning .prize-item-card img {
    filter: blur(2px) brightness(1.2);
    transition: 0.3s;
}

/* Winner Overlay - Now a child of .unboxing-container, covers everything */
.winner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(6, 8, 18, 0.95);
    display: none;
    /* Hidden by default */
    align-items: center;
    justify-content: center;
    z-index: 200;
    border-radius: 20px;
    /* Match parent container */
    backdrop-filter: blur(12px);
}

.winner-overlay.active {
    display: flex;
    /* Show when active */
    pointer-events: auto;
    animation: winner-pop 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes winner-pop {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

.winner-card {
    background: #11152a;
    border: 3px solid #ffcc00;
    /* Fortnite gold border */
    border-radius: 24px;
    padding: 2.5rem 1.5rem;
    box-shadow: 0 0 100px rgba(0, 0, 0, 0.9), 0 0 40px rgba(255, 204, 0, 0.3);
    text-align: center;
    width: 90%;
    max-width: 400px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    transform: rotate(-2deg);
    /* Fortnite style tilt */
}

.winner-card h2 {
    color: #ffffff;
    text-shadow: 4px 4px 0px #000;
    margin-bottom: 1.5rem;
    font-size: 2.2rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.winner-card img {
    width: 180px;
    height: 180px;
    object-fit: contain;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 30px rgba(255, 204, 0, 0.5));
}

.winner-card .prize-name {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 2rem;
    color: #ffcc00;
    /* Fortnite Rare/Epic color */
    -webkit-text-stroke: 1px #000;
    text-shadow: 2px 2px 0px #000;
    line-height: 1.2;
}

/* WOW Effect: Shaking */
.shaking {
    animation: shake 0.5s infinite;
}

@keyframes shake {
    0% {
        transform: translate(1px, 1px) rotate(0deg);
    }

    10% {
        transform: translate(-1px, -2px) rotate(-1deg);
    }

    20% {
        transform: translate(-3px, 0px) rotate(1deg);
    }

    30% {
        transform: translate(3px, 2px) rotate(0deg);
    }

    40% {
        transform: translate(1px, -1px) rotate(1deg);
    }

    50% {
        transform: translate(-1px, 2px) rotate(-1deg);
    }

    60% {
        transform: translate(-3px, 1px) rotate(0deg);
    }

    70% {
        transform: translate(3px, 1px) rotate(-1deg);
    }

    80% {
        transform: translate(-1px, -1px) rotate(1deg);
    }

    90% {
        transform: translate(1px, 2px) rotate(0deg);
    }

    100% {
        transform: translate(1px, -2px) rotate(-1deg);
    }
}

/* WOW Effect: Exploding */
.exploding {
    animation: explode 1s forwards ease-out;
}

@keyframes explode {
    0% {
        transform: scale(1);
        filter: brightness(1);
    }

    50% {
        transform: scale(1.5);
        filter: brightness(3) blur(5px);
        opacity: 1;
    }

    100% {
        transform: scale(3);
        filter: brightness(5) blur(10px);
        opacity: 0;
    }
}

/* === RESPONSIVE: TABLET & MOBILE === */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 3.5rem;
    }

    .boxes-grid {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }

    /* Modal container centered card */
    .unboxing-container {
        width: 90%;
        max-width: 420px;
        max-height: 85vh;
        border-radius: 20px;
        margin: auto;
    }

    .modal-overlay {
        padding: 20px 10px;
        align-items: center;
        /* back to centered */
    }

    /* Header */
    .modal-header {
        padding: 14px 16px;
    }

    .box-info-mini img {
        width: 44px;
        height: 44px;
    }

    /* Prize preview strip */
    .preview-stage {
        padding: 20px 5px;
        min-height: 130px;
    }

    .preview-item {
        min-width: 85px;
    }

    .preview-item img {
        width: 72px;
        height: 72px;
    }

    /* Spin button */
    .action-section {
        padding: 14px 16px;
    }

    /* Nexus reveal mobile centering */
    .unboxing-active {
        padding: 0;
        min-height: 250px;
    }

    .nexus-reveal-container {
        width: 160px;
        height: 160px;
    }

    .nexus-reveal-container img {
        width: 120px;
        height: 120px;
    }

    .mystery-box-anim {
        width: 140px;
        height: 140px;
    }

    /* Winner card */
    .winner-overlay {
        width: 100%;
        padding: 12px;
    }

    .winner-card {
        padding: 1.5rem 1rem;
        max-width: 340px;
    }

    .winner-card h2 {
        font-size: 1.2rem;
        margin-bottom: 0.8rem;
    }

    .winner-card img {
        width: clamp(110px, 38vw, 160px);
        height: auto;
        margin-bottom: 0.8rem;
    }

    .winner-card .prize-name {
        font-size: 1rem;
        margin-bottom: 1.2rem;
    }
}

@media (max-width: 480px) {
    .boxes-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .box-card {
        padding: 12px;
        border-radius: 12px;
    }

    .box-image-container {
        height: 110px;
    }

    .box-title {
        font-size: 0.8rem;
        margin-bottom: 10px;
    }

    .btn-open {
        padding: 8px;
        font-size: 0.75rem;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    /* Modal: centered card feel */
    .modal-overlay {
        padding: 10px;
        align-items: center;
    }

    .unboxing-container {
        width: 92%;
        border-radius: 20px;
        max-height: 85vh;
    }

    /* Preview items */
    .preview-item {
        min-width: 72px;
    }

    .preview-item img {
        width: 60px;
        height: 60px;
    }

    /* Nexus animation */
    .nexus-reveal-container {
        width: 170px;
        height: 170px;
    }

    .nexus-reveal-container img {
        width: 120px;
        height: 120px;
    }

    .mystery-box-anim {
        width: 130px;
        height: 130px;
    }

    /* Winner card small screens */
    .winner-card {
        padding: 1.2rem 0.8rem;
        max-width: 300px;
    }

    .winner-card h2 {
        font-size: 1rem;
    }

    .winner-card img {
        width: clamp(90px, 35vw, 140px);
        height: auto;
    }

    .winner-card .prize-name {
        font-size: 0.9rem;
    }

    .btn-spin {
        font-size: 0.85rem;
    }
}

/* --- UNIQUE MYSTERY-BOX PREMIUM LOCKER --- */
.locker-offers-premium {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
}

.mystery-offer-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, rgba(26, 30, 54, 0.8), rgba(17, 21, 42, 0.9));
    border: 1px solid rgba(138, 43, 226, 0.3);
    padding: 16px 20px;
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
}

.mystery-offer-card:hover {
    transform: scale(1.02) translateX(5px);
    border-color: #ffcc00;
    box-shadow: 0 0 25px rgba(255, 204, 0, 0.2);
    background: linear-gradient(135deg, rgba(30, 36, 68, 0.9), rgba(26, 30, 54, 1));
}

.mystery-offer-card.featured {
    border: 2px solid #ffcc00;
    background: linear-gradient(135deg, rgba(26, 30, 54, 1), rgba(138, 43, 226, 0.2));
}

.mystery-offer-card.tiktok-highlight {
    border: 2px solid #ffcc00;
    background: linear-gradient(135deg, rgba(255, 204, 0, 0.1), rgba(26, 30, 54, 1));
    box-shadow: 0 0 30px rgba(255, 204, 0, 0.3);
    animation: tiktokPulse 2s infinite;
}

@keyframes tiktokPulse {
    0% {
        box-shadow: 0 0 15px rgba(255, 204, 0, 0.2);
    }

    50% {
        box-shadow: 0 0 35px rgba(255, 204, 0, 0.5);
    }

    100% {
        box-shadow: 0 0 15px rgba(255, 204, 0, 0.2);
    }
}

.mystery-tag {
    position: absolute;
    top: 0;
    right: 0;
    background: #8a2be2;
    color: #fff;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 0 0 0 12px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.tiktok-highlight .mystery-tag {
    background: #ffcc00;
    color: #000;
    box-shadow: 0 0 10px rgba(255, 204, 0, 0.5);
}

.offer-title {
    color: #fff;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-weight: 600;
    font-size: 1rem;
    max-width: 70%;
    line-height: 1.4;
    text-align: left;
}

.claim-badge {
    background: #8a2be2;
    color: #fff;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-size: 0.85rem;
    font-weight: 900;
    padding: 10px 22px;
    border-radius: 50px;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(138, 43, 226, 0.4);
    transition: 0.3s;
}

.mystery-offer-card:hover .claim-badge,
.tiktok-highlight .claim-badge {
    background: #ffcc00;
    color: #000;
    transform: scale(1.1);
}

.verification-status-premium {
    margin-top: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    font-weight: 600;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00ff88;
    box-shadow: 0 0 10px #00ff88;
    animation: statusPulse 1.5s infinite;
}

@keyframes statusPulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.4);
        opacity: 0.5;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.loader-premium {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(138, 43, 226, 0.2);
    border-top: 3px solid #8a2be2;
    border-radius: 50%;
    animation: spinLocker 1s linear infinite;
    margin: 0 auto;
}

@keyframes spinLocker {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}