:root {
    --primary: #3498db;
    --primary-dark: #2980b9;
    --header-bg: #3498db;
    --bg: #f5f7f9;
    --text: #2c3e50;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(0,0,0,0.08);
    --border: #e1e8ed;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: #050505; /* Deep space black */
    color: #ffffff;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Cinematic Background */
#cosmic-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at 50% 50%, #0a0a14 0%, #000 100%);
    overflow: hidden;
}

.stars {
    position: absolute;
    width: 200%;
    height: 200%;
    background-image: 
        radial-gradient(1px 1px at 20px 30px, #eee, rgba(0,0,0,0)),
        radial-gradient(1.5px 1.5px at 100px 150px, #fff, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 300px 400px, #ddd, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 500px 50px, #fff, rgba(0,0,0,0));
    background-size: 600px 600px;
    opacity: 0.3;
    animation: drift 100s linear infinite;
}

@keyframes drift {
    from { transform: translate(-25%, -25%) rotate(0deg); }
    to { transform: translate(0, 0) rotate(5deg); }
}

.nebula {
    position: absolute;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(0, 122, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 0, 150, 0.03) 0%, transparent 50%);
    filter: blur(80px);
}

/* Header & Trust Notifications */
header {
    background: #000;
    color: white;
    padding: 100px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 120%, rgba(0, 122, 255, 0.25), transparent 70%);
    pointer-events: none;
}

#header-title {
    font-family: 'Syncopate', sans-serif;
    font-size: 5rem;
    font-weight: 700;
    letter-spacing: 25px;
    margin: 0;
    position: relative;
    z-index: 2;
    background: linear-gradient(to bottom, #fff, #999);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 10px 40px rgba(0,0,0,0.5);
    opacity: 0;
    animation: fadeScaleUp 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    margin-bottom: 20px;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.live-counter {
    background: rgba(46, 204, 113, 0.1);
    border: 1px solid rgba(46, 204, 113, 0.3);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.8rem;
    color: #2ecc71;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 2;
    margin-bottom: 10px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: #2ecc71;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.7);
    animation: counter-pulse 2s infinite;
}

@keyframes counter-pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(46, 204, 113, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(46, 204, 113, 0); }
}

@keyframes fadeScaleUp {
    from { opacity: 0; transform: scale(1.1); filter: blur(10px); }
    to { opacity: 1; transform: scale(1); filter: blur(0); }
}

#notification-bar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(44, 62, 80, 0.9);
    color: white;
    padding: 12px 25px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    z-index: 1000;
    backdrop-filter: blur(10px);
    transition: 0.5s;
}

.hidden { display: none !important; opacity: 0; }

.header-content {
    position: relative;
    z-index: 5;
}

#timer-box {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    display: inline-block;
    padding: 8px 25px;
    border-radius: 5px;
    font-size: 0.7rem;
    margin-top: 25px;
    letter-spacing: 3px;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #888;
}

#timer {
    color: #fff;
    font-weight: 700;
}

/* View Transitions */
.view {
    display: none;
    max-width: 1100px; /* Wider for 4 columns */
    margin: 40px auto;
    width: 95%;
    animation: slideIn 0.5s ease;
}

.view.active { display: block; }

@keyframes slideIn {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Catalog Grid */
.hero { text-align: center; margin-bottom: 40px; }
.hero h2 { font-size: 2rem; margin-bottom: 10px; }
.hero p { color: #7f8c8d; }

.grid-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.product-card {
    background: #111;
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255,255,255,0.08);
    height: 100%;
}

.product-card::before, .product-card::after {
    display: none; /* Removing cosmic glows */
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-color: #007aff;
}

/* Reference Style: Light Grey Image Area */
.product-card img {
    background: #1a1a2e;
    width: 100%;
    height: 220px;
    object-fit: contain;
    padding: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: transform 0.4s ease;
    mix-blend-mode: lighten;
}

.product-card:hover img {
    transform: scale(1.05);
}

.product-card-content {
    padding: 15px;
    background: transparent;
    text-align: left;
}

.product-card h3 {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 4px;
    letter-spacing: -0.2px;
}

.product-card p {
    font-size: 0.85rem;
    color: #888;
    margin: 0;
}

.tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #007aff;
    color: white;
    padding: 2px 8px;
    font-size: 0.65rem;
    font-weight: 600;
    border-radius: 4px;
    z-index: 5;
    box-shadow: 0 4px 6px rgba(0,122,255,0.2);
}

/* Configurator & Generic Panels */
.config-container, .form-container, .status-container, .locker-container {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 5px;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: #fff;
}

.hero h2 { color: #fff; text-shadow: 0 0 20px rgba(0, 122, 255, 0.3); }
.hero p { color: #888; }

.step-progress { margin-bottom: 30px; }
.progress-bar {
    background: #ecf0f1;
    height: 8px;
    border-radius: 10px;
    margin-top: 10px;
}
#progress-fill {
    background: var(--primary);
    height: 100%;
    border-radius: 10px;
    transition: 0.5s;
}

.options-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.select-card {
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 2px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.4s ease;
    text-align: left;
    background: rgba(255, 255, 255, 0.02);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
}

.select-card:hover { 
    border-color: #007aff;
    background: rgba(0, 122, 255, 0.1);
}

.color-choice {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 15px;
    padding-left: 25px;
}

.color-circle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid rgba(0,0,0,0.1);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.live-info {
    margin-top: 30px;
    color: #95a5a6;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pulse {
    width: 8px;
    height: 8px;
    background: #2ecc71;
    border-radius: 50%;
    animation: blink 1.5s infinite;
}

@keyframes blink { 0% { opacity: 1; } 50% { opacity: 0.3; } 100% { opacity: 1; } }

input, textarea {
    width: 100%;
    padding: 18px;
    border-radius: 2px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    margin-bottom: 15px;
    background: rgba(255, 255, 255, 0.05); /* Dark input */
    color: #fff; /* White text */
    transition: all 0.3s;
}

input:focus, textarea:focus {
    outline: none;
    border-color: #007aff;
    background: rgba(255, 255, 255, 0.08);
}

.primary-btn {
    width: 100%;
    background: #000;
    color: white;
    padding: 22px;
    border: none;
    border-radius: 0;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: 0.3s;
}

.primary-btn:hover {
    background: #333;
}

/* Locker Summary */
.selection-summary {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    padding: 20px;
    border-radius: 2px;
    margin: 20px 0;
    border: 1px dashed rgba(255, 255, 255, 0.2);
}

#locker-phone-img {
    height: 120px;
    object-fit: contain;
    margin-bottom: 10px;
}

#locker-summary-text {
    font-weight: 700;
    color: #007aff;
    font-size: 0.9rem;
}

/* Status View */
.locker-box {
    background: #ffffff;
    padding: 20px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid #eee;
}

.locker-btn {
    width: 100%;
    margin-top: 15px;
    background: #007aff !important;
}
.status-container {
    text-align: center;
    padding: 60px;
    border-radius: 5px;
}

.success-check { font-size: 4rem; margin-bottom: 20px; }

.tracking-card {
    background: rgba(255, 255, 255, 0.02);
    padding: 30px;
    border-radius: 5px;
    margin: 30px 0;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.success-check { font-size: 4rem; margin-bottom: 20px; }

.tracking-card {
    background: rgba(255, 255, 255, 0.02);
    padding: 30px;
    border-radius: 5px;
    margin: 30px 0;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.tracking-visual {
    display: flex;
    justify-content: space-between;
    margin: 30px 0;
    position: relative;
}

.track-step {
    font-size: 0.8rem;
    font-weight: 700;
    color: #95a5a6;
}

.track-step.completed { color: #2ecc71; }
.track-step.active { color: var(--primary); font-weight: 800; }

footer {
    text-align: center;
    padding: 40px;
    color: #bdc3c7;
    font-size: 0.8rem;
}

@media (max-width: 768px) {
    #header-title {
        font-size: 2.2rem;
        letter-spacing: 10px;
    }
    
    header {
        padding: 60px 5% 40px;
    }

    .grid-container { 
        grid-template-columns: repeat(2, 1fr); 
        gap: 12px;
    }
    
    .product-card {
        padding: 0;
        border-radius: 12px;
    }
    
    .product-card img {
        height: 160px;
        padding: 12px;
    }

    .product-card-content {
        padding: 10px 12px 14px;
    }

    .product-card h3 {
        font-size: 0.85rem;
    }

    .product-card p {
        font-size: 0.75rem;
    }

    .form-grid { grid-template-columns: 1fr; }
    
    .view {
        margin: 20px auto;
        width: 92%;
    }

    .config-container, .form-container, .status-container, .locker-container {
        padding: 25px 20px;
    }

    .hero h2 { font-size: 1.5rem; }
}

@media (max-width: 480px) {
    #header-title {
        font-size: 1.6rem;
        letter-spacing: 6px;
    }
    
    .grid-container {
        grid-template-columns: repeat(2, 1fr); /* Keep 2 columns always */
        gap: 8px;
    }

    .product-card img {
        height: 130px;
    }
}
/* === LOCKER CENTER FIX === */
iframe,
[id*="locker"],
[class*="locker"],
[id*="modal"],
[class*="modal"],
[id*="popup"],
[class*="popup"] {
    max-width: 95vw;
}

body > div[style*="position: fixed"],
body > div[style*="position:fixed"] {
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    margin: 0 !important;
}