/* Base Cyber Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

 @font-face {
        font-family: 'CustomFont';
        /* Crucial: It must point to the folder and name exactly, including .ttf case */
        src: url('fonts/PressStart2P-Regular.ttf') format('truetype'); 
        font-weight: normal;
        font-style: normal;
    }


body {
    font-family: 'Courier New', Courier, monospace, 'Segoe UI';
    background-color: #05050a; /* Ultra dark void */
    color: #00ffcc; /* Cyber Cyan */
    display: flex;
    min-height: 100vh;
    overflow-x: hidden;
}

/* 1. SIDEBAR MATRIX */
.side-panel {
    width: 260px;
    background-color: #0a0a14;
    padding: 40px 20px;
    position: fixed;
    height: 100vh;
    border-right: 2px solid #ff0080; /* Hot Neon Pink */
    box-shadow: 5px 0 20px rgba(255, 0, 85, 0.15);
    z-index: 10;
     background:/* linear-gradient(rgba(1, 1, 2, 0.85), rgba(30, 41, 59, 0.5)), */
                    url('/images/bg.gif')    
                    /*url('https://unsplash.com') */
                        no-repeat center center/cover;
}

.side-panel .logo h1 {
      margin: 0 0 40px 0;
                font-size: 28px;
                letter-spacing: 1px;
                text-align: center;
                font-family: 'CustomFont', Arial, sans-serif;

                /* 1. Core Neon Tone */
                color: #009dff; 

                /* 2. Stacking the text-shadow layers (The Bloom) */
                text-shadow: 0 0 5px #5d00ff, 
                            0 0 10px #0080ff, 
                            0 0 20px rgba(0, 0, 255, 0.6),
                            0 0 30px rgba(0, 89, 255, 0.4); /* Extra layer added for thick/custom fonts */

                /* 3. Hardware Acceleration Force (Fixes custom font filter clipping) */
                -webkit-font-smoothing: antialiased;
                -moz-osx-font-smoothing: grayscale;
                text-rendering: optimizeLegibility;
        
                /* Must match the font-family string from Stage 1 exactly */
                font-family: 'CustomFont', sans-serif; 
}

.side-panel nav a {
    display: block;
    color: #00ffcc;
    text-decoration: none;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 12px 16px;
    margin-bottom: 12px;
    border: 1px solid transparent;
    border-radius: 4px;
    transition: all 0.2s ease-in-out;
}

.side-panel nav a:hover, 
.side-panel nav a.active {
    color: #ffffff;
    background-color: rgba(255, 0, 85, 0.1);
    border-color: #ff0055;
    text-shadow: 0 0 8px #ffffff;
    box-shadow: inset 0 0 10px rgba(255, 0, 85, 0.3), 0 0 15px rgba(255, 0, 85, 0.2);
}

/* 2. MAIN HUB CONTENT */

  .main-content {
            margin-left: 260px; /* Pushes content right so it doesn't hide behind the menu */
            flex: 1;
            padding: 40px;
            box-sizing: border-box;
            
            /* --- MAIN SECTION BACKGROUND PLACEHOLDER --- */
            /* Right now it loads a subtle, clean grid/dot style image. Swap for 'images/main-bg.jpg' */
            background: /*linear-gradient(rgba(240, 242, 245, 0.9), rgba(240, 242, 245, 0.9)), */
                       linear-gradient(rgba(1, 1, 2, 0.85), rgba(30, 41, 59, 0.5)), 
                        url('/images/bgstatic.png') 
                        no-repeat center center/cover;
            background-attachment: fixed; /* Optional: keeps background fixed while you scroll */
        }


.header-banner {
    background: linear-gradient(145deg, #0e091a 0%, #030307 100%);
    padding: 40px;
    border-radius: 4px;
    border: 2px dashed #00ffcc;
    box-shadow: 0 0 20px rgba(0, 255, 204, 0.1);
    margin-bottom: 40px;
}

.header-banner h2 {
    font-size: 2.4rem;
    font-weight: 900;
    color: #ffff00; /* Neon Cyber Yellow Accent */
    text-shadow: 0 0 10px #ffff00;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.header-banner h6 {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #a0a5c0;
    margin-top: 20px;
}

.section-title {
    font-size: 1.2rem;
    color: #ff0055;
    text-shadow: 0 0 8px #ff0055;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

/* 3. NEON PHOTONIC GRID */
.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

/* Cyber Media Cards */
.media-card {
    background-color: #0b0b16;
    border: 1px solid #1a1a3a;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 0.3s ease, box-shadow 0.3s ease;
}

.media-card:hover {
    transform: scale(1.03);
    border-color: #00ffcc;
    box-shadow: 0 0 20px rgba(0, 255, 204, 0.3);
}

.image-box {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background-color: #020205;
    border-bottom: 2px solid #1a1a3a;
    transition: border-color 0.3s ease;
}

.media-card:hover .image-box {
    border-color: #00ffcc;
}

.image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.1) brightness(0.9);
    transition: transform 0.5s ease, filter 0.3s ease;
}

.media-card:hover .image-box img {
    transform: scale(1.08);
    filter: saturate(1.3) brightness(1.1);
}

/* Details Under Photo */
.card-info {
    padding: 20px;
    background-color: #07070f;
}

.card-info h3 {
    font-size: 1.1rem;
    color: #ffffff;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card-info p {
    font-size: 0.85rem;
    color: #636880;
    line-height: 1.4;
}

/* 4. LIGHTBOX LIGHTSPEED MODAL ELEMENT */
.lightbox {
    display: none; /* Invisible by default */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(5, 5, 10, 0.95);
    backdrop-filter: blur(8px); /* Sleek backdrop blur */
    justify-content: center;
    align-items: center;
    flex-direction: column;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Triggers flex alignment when active via js */
.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    max-width: 85%;
    max-height: 75%;
    border: 3px solid #ff0055;
    box-shadow: 0 0 30px #ff0055;
    border-radius: 4px;
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.lightbox.active .lightbox-content {
    transform: scale(1);
}

.lightbox-caption {
    margin-top: 20px;
    color: #ffff00;
    font-size: 1.2rem;
    text-shadow: 0 0 8px #ffff00;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
    padding: 0 20px;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #00ffcc;
    font-size: 3rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s, text-shadow 0.2s;
}

.lightbox-close:hover {
    color: #ff0055;
    text-shadow: 0 0 10px #ff0055;
}

/* MOBILE FALLBACK MATRIX */
@media (max-width: 900px) {
    body {
        flex-direction: column;
    }
    .side-panel {
        position: relative;
        width: 100%;
        height: auto;
        border-right: none;
        border-bottom: 2px solid #ff0055;
        padding: 25px;
    }
    .main-content {
        margin-left: 0;
        padding: 20px;
    }
    .lightbox-close {
        top: 15px;
        right: 25px;
        font-size: 2.5rem;
    }
}


/* ==========================================================================
   4. CYBERPUNK STORE & CHECKOUT DESIGNS 
   ========================================================================== */

/* Main layout containment structure split */
.store-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
    align-items: start;
}

/* Vertical listing alignment cards */
.inventory-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.product-card {
    background-color: #0b0b16;
    border: 1px solid #1a1a3a;
    border-radius: 4px;
    display: flex;
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    border-color: #00ffcc;
    box-shadow: 0 0 15px rgba(0, 255, 204, 0.15);
}

.prod-img {
    width: 180px;
    height: 140px;
    flex-shrink: 0;
    background-color: #020205;
    border-right: 1px solid #1a1a3a;
}

.prod-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.prod-details {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.prod-details h3 {
    font-size: 1.2rem;
    color: #ffffff;
    text-transform: uppercase;
}

.prod-details p {
    font-size: 0.85rem;
    color: #636880;
    margin: 8px 0 15px 0;
    line-height: 1.4;
}

.prod-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.prod-row .price {
    font-size: 1.15rem;
    color: #ffff00;
    text-shadow: 0 0 6px rgba(255, 255, 0, 0.4);
    font-weight: bold;
}

/* Dynamic Interactive Buttons */
.cyber-btn {
    background: transparent;
    border: 1px solid #00ffcc;
    color: #00ffcc;
    padding: 8px 16px;
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: bold;
    cursor: pointer;
    border-radius: 2px;
    transition: all 0.2s ease;
}

.cyber-btn:hover {
    background-color: rgba(0, 255, 204, 0.1);
    color: #ffffff;
    box-shadow: 0 0 10px #00ffcc;
}

/* TERMINAL INTERFACE CONTAINER */
.checkout-column {
    position: sticky;
    top: 40px; /* Locks right alongside the viewport on scroll movements */
}

.checkout-terminal {
    background-color: #0a0a14;
    border: 2px solid #ff0055;
    box-shadow: 0 0 20px rgba(255, 0, 85, 0.15);
    padding: 25px;
    border-radius: 4px;
}

.terminal-title {
    font-size: 1rem;
    color: #ff0055;
    text-shadow: 0 0 8px #ff0055;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

/* List element items within receipt */
.cart-manifest-list {
    min-height: 80px;
    border-bottom: 1px dashed #23283d;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.empty-msg {
    font-size: 0.8rem;
    color: #4b4f63;
    text-align: center;
    line-height: 4;
}

.manifest-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    font-size: 0.85rem;
    margin-bottom: 12px;
    background: rgba(255, 0, 85, 0.03);
    padding: 8px;
    border-left: 2px solid #ff0055;
}

.manifest-name {
    color: #ffffff;
    font-weight: bold;
}

.manifest-qty {
    color: #636880;
    font-size: 0.75rem;
    margin-top: 3px;
}

.manifest-price {
    color: #ffff00;
}

.manifest-remove {
    font-size: 0.7rem;
    color: #ff0055;
    cursor: pointer;
    display: inline-block;
    margin-top: 4px;
}

.manifest-remove:hover {
    color: #ffffff;
    text-shadow: 0 0 5px #ff0055;
}

/* Checkout Pricing Blocks */
.terminal-pricing {
    border-bottom: 1px dashed #23283d;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.price-line {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #a0a5c0;
    margin-bottom: 6px;
}

.price-line.highlight {
    font-size: 1.05rem;
    color: #00ffcc;
    font-weight: bold;
    text-shadow: 0 0 8px rgba(0, 255, 204, 0.4);
    margin-top: 12px;
}

/* FORM OVERRIDES & SECURE PAY SUBMISSIONS */
.checkout-form .form-group {
    margin-bottom: 15px;
}

.checkout-form label {
    display: block;
    font-size: 0.75rem;
    color: #ff0055;
    margin-bottom: 6px;
    letter-spacing: 1px;
}

.checkout-form input {
    width: 100%;
    background-color: #05050a;
    border: 1px solid #23283d;
    padding: 10px 12px;
    color: #ffffff;
    font-family: inherit;
    font-size: 0.85rem;
    border-radius: 2px;
    transition: border-color 0.2s;
}

.checkout-form input:focus {
    outline: none;
    border-color: #00ffcc;
    box-shadow: 0 0 10px rgba(0, 255, 204, 0.2);
}

.execute-btn {
    width: 100%;
    background: #ff0055;
    border: none;
    color: #ffffff;
    padding: 14px;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: bold;
    cursor: pointer;
    border-radius: 2px;
    box-shadow: 0 0 15px rgba(255, 0, 85, 0.3);
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.execute-btn:hover {
    background: #ff2a75;
    box-shadow: 0 0 25px #ff0055;
}

/* MOBILE CONSTRAINTS SCREEN BREAKPOINT RESPONSIVENESS */
@media (max-width: 1100px) {
    .store-grid {
        grid-template-columns: 1fr;
    }
    .checkout-column {
        position: relative;
        top: 0;
    }
}

@media (max-width: 600px) {
    .product-card {
        flex-direction: column;
    }
    .prod-img {
        width: 100%;
        height: 160px;
        border-right: none;
        border-bottom: 1px solid #1a1a3a;
    }
}

/* Container scales perfectly to the image bounds ---- MOUSE HOVER*/
.interactive-image-container {
    position: relative;
    display: inline-block;
    width: 50%; /* Scales dynamically to half the parent layout width */
}

.base-image {
    display: block;
    width: 100%;
    height: auto;
}

/* Base style for all defined regions */
.hover-region {
    position: absolute;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Optional: Uncomment the line below to view your regions while debugging */
    /* border: 2px dashed rgba(255, 0, 0, 0.5); */
}

/* Define Region 1: Dimensions and coordinates AREA#1 -Magnification Screen */
.region-MagnificationScreen {
    top: 0;
    left: 0;
     right: 30%;
    width: 60%;
    height: 30%; /* Covers top 40% of the image */
}

.region-ArcadeButtons{
    top: 20%;
    left: 70%;
    right: 10%;
    width: 60%;
    height: 30%; 
}

.region-PowerOnButton{
    top: 30%;
    left: 10%;
    right: 90%;
    width: 30%;
    height: 10%; 
}

.region-Trigger1{
    top: 45%;
    left: 20%;
    right: 80%;
    width: 10%;
    height: 20%; 
}

.region-Trigger2{
    top: 50%;
    left: 20%;
    right: 80%;
    width: 10%;
    height: 20%; 
}

.region-TriggerUnitLEDs{
   top: 50%;
    left: 40%;
    right: 60%;
    width: 10%;
    height: 30%; 
}

.region-Grip{
   top: 60%;
    left: 50%;
    right: 30%;
    width: 10%;
    height: 30%; 
}


.region-Vol {
    top: 0;
    left: 0;
     right: 30%;
    width: 60%;
    height: 30%; /* Covers top 40% of the image */
}


/* Define Region 2: Dimensions and coordinates (e.g., Bottom Right corner) */
.region-bottom-right {
    bottom: 10%;
    right: 5%;
    width: 30%;
    height: 35%;
}

/* Hidden message style */
.hover-message {
    background-color: rgba(0, 0, 0, 0.85);
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 4px;
    font-family: sans-serif;
    font-size: 14px;
    pointer-events: none; /* Prevents the text box from interrupting mouse placement */
    
    /* Animation settings */
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.hover-infobox {
    /* 1. Change to absolute screen positioning */
    position: fixed;
    bottom: 20px;               /* Distance from the bottom of the screen */
    left: 50%;                  /* Move to the horizontal center */
    transform: translateX(-50%) translateY(30px); /* Centers it perfectly and prepares down-slide */
    z-index: 9999;              /* Keeps it on top of all other elements */
    
    /* 2. Visual layout tweaks for a widescreen bottom bar */
    background-color: rgba(42, 172, 16, 0.95); /* Slightly less see-through for text readability */
    color: #170f0f;
    padding: 16px 24px;         /* Generous padding for a premium look */
    border-radius: 8px;         /* Smooth rounded corners */
    font-family: sans-serif;
    font-size: 15px;
    width: 90%;                 /* Adaptive width on mobile devices */
    max-width: 500px;           /* Clean max-width layout on desktop */
    box-shadow: 0 10px 30px rgba(0,0,0,0.3); /* Premium drop shadow */
    pointer-events: none;       /* Prevents the text box from interrupting mouse placement */
    
    /* 3. Smooth animation transition */
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.25, 1, 0.5, 1), 
                transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    white-space: pre-line;
}

/* Reveal message when hovering over the specific parent region */
.hover-region:hover .hover-message{
    opacity: 1;
    transform: translateY(0);
}

/* Reveal message when hovering over the specific parent region */
.hover-region:hover .hover-infobox{
    opacity: 1;
   transform: translateX(-50%) translateY(0); 
}

/* --- MAINTENANCE PAGE STYLING --- */
.maintenance-page {
    background-color: #0a0a0c;
    color: #ffffff;
    font-family: system-ui, -apple-system, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    box-sizing: border-box;
}

.construction-container {
    width: 100%;
    max-width: 650px;
    padding: 24px;
    text-align: center;
}

/* Header & Brand Identity */
.brand-title {
    font-size: 32px;
    font-weight: 900;
    letter-spacing: 4px;
    margin: 0 0 8px 0;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.status-badge {
    display: inline-block;
    background-color: rgba(42, 172, 16, 0.1);
    border: 1px solid #2aac10;
    color: #2aac10;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 1.5px;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 30px;
    box-shadow: 0 0 12px rgba(42, 172, 16, 0.2);
}

/* Media Box & Futuristic Scan Overlay */
.spotlight-box {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    margin: 0 auto 30px auto;
    background-color: #121216;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.spotlight-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
}

/* Moving laser radar line overlay */
.radar-scan {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent, #2aac10, transparent);
    box-shadow: 0 0 15px #2aac10;
    z-index: 2;
    animation: scanAnimation 4s linear infinite;
    pointer-events: none;
}

@keyframes scanAnimation {
    0% { top: 0%; opacity: 0; }
    5% { opacity: 1; }
    95% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

/* Typography Messaging */
.construction-content h2 {
    font-size: 24px;
    letter-spacing: 2px;
    margin: 0 0 12px 0;
    color: #f1f5f9;
}

.announcement-text {
    font-size: 14px;
    line-height: 1.6;
    color: #94a3b8;
    margin: 0 0 40px 0;
}

/* Countdown Clock Display */
.timer-wrapper {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 16px;
    border-radius: 8px;
}

.countdown-label {
    display: block;
    font-size: 10px;
    letter-spacing: 2px;
    color: #64748b;
    margin-bottom: 6px;
    font-weight: bold;
}

#countdown-clock {
    font-family: monospace;
    font-size: 22px;
    font-weight: bold;
    color: #f1f5f9;
    letter-spacing: 1px;
}

.card-row-full {
    width: 100%;
    display: block; /* Forces it to occupy the entire horizontal line */
    clear: both;
}