/* --- ARROW & PIXY: MASTER HUB & STORE STYLESHEET v3.0 --- */

:root {
    --gold: #ffcc00;
    --dark-bg: #050505;
    --card-bg: rgba(20, 20, 20, 0.95);
    --glass-border: rgba(255, 255, 255, 0.08);
    --input-bg: #111111;
}

* {
    box-sizing: border-box;
    transition: all 0.3s ease;
}

body {
    font-family: 'Inter', sans-serif;
    background: radial-gradient(circle at 50% 0%, #1a0505 0%, #050505 100%);
    color: #ffffff;
    margin: 0;
    overflow-x: hidden;
    min-height: 100vh;
}

/* --- CONTACT BADGES --- */
.header-contact-top {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.03);
    padding: 10px 15px;
    border-radius: 12px;
    border-left: 2px solid var(--gold);
    backdrop-filter: blur(5px);
    z-index: 10;
}

.footer-support {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(10, 10, 10, 0.95);
    padding: 12px 20px;
    border-radius: 15px;
    z-index: 99;
    border-right: 3px solid var(--gold);
}

.support-content { font-size: 0.75rem; color: #888; text-align: right; }
.support-content i { color: var(--gold); margin-right: 5px; }
.support-content span { color: #fff; font-weight: 600; }

/* --- SIDEBAR / COMING SOON --- */
.sidebar {
    position: fixed;
    left: 20px;
    top: 100px;
    width: 200px;
    z-index: 5;
}

.sidebar-card {
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 15px;
    text-align: center;
}

.sidebar-card h4 {
    font-size: 0.7rem;
    color: var(--gold);
    margin: 0 0 10px;
    text-transform: uppercase;
}

.mini-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.mini-grid img {
    width: 100%;
    border-radius: 5px;
    filter: grayscale(1);
    opacity: 0.5;
}

/* --- HEADERS & NAVIGATION --- */
header {
    text-align: center;
    padding: 120px 20px 40px;
    position: relative;
}

.header-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

header h1 {
    font-size: 2.8rem;
    margin: 0;
    letter-spacing: 2px;
    font-weight: 900;
    text-transform: uppercase;
}

.highlight {
    color: var(--gold);
    text-shadow: 0 0 25px rgba(255, 204, 0, 0.5);
}

header p {
    color: #888;
    margin: 10px 0 30px;
    font-size: 0.85rem;
    letter-spacing: 5px;
    font-weight: 700;
    text-transform: uppercase;
}

/* BACK BUTTON VISIBILITY FIX */
.btn-cancel {
    display: inline-block !important;
    background: var(--gold) !important;
    color: #000 !important;
    border: none;
    padding: 14px 35px;
    border-radius: 10px;
    text-transform: uppercase;
    font-weight: 900;
    font-size: 0.85rem;
    cursor: pointer;
    margin: 0 auto;
    text-decoration: none;
}

.btn-cancel:hover {
    filter: brightness(1.2);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 204, 0, 0.3);
}

/* --- HUB LAYOUT --- */
.hub-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto 100px;
    padding: 0 20px;
}

.hub-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 25px;
    overflow: hidden;
    cursor: pointer;
}

.hub-card:hover { border-color: var(--gold); transform: translateY(-10px); }

/* --- STORE SYMMETRY --- */
.game-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    width: 100%;
    text-align: left;
    margin-bottom: 35px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 15px;
}

.section-title h2 {
    color: var(--gold);
    text-transform: uppercase;
    font-size: 1.4rem;
    letter-spacing: 4px;
    margin: 0;
}

.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 35px;
    margin-bottom: 100px;
}

.item-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 22px;
    padding: 40px 25px;
    text-align: center;
}

.item-card img {
    width: 150px;
    height: 150px;
    object-fit: contain;
    margin-bottom: 30px;
    filter: drop-shadow(0 20px 20px rgba(0,0,0,0.7));
}

.price {
    color: var(--gold);
    font-weight: 900;
    font-size: 1.8rem;
    display: block;
    margin: 25px 0;
}

.variant-select {
    width: 100%;
    padding: 14px;
    background: #000;
    border: 1px solid #333;
    color: white;
    border-radius: 10px;
    margin-bottom: 15px;
    font-family: inherit;
}

/* --- BUTTONS --- */
button {
    width: 100%;
    padding: 18px;
    border-radius: 12px;
    border: none;
    font-weight: 900;
    background: var(--gold);
    color: #000;
    text-transform: uppercase;
    cursor: pointer;
}

/* --- MODAL ENGINE --- */
#checkout-modal {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.98);
    backdrop-filter: blur(20px);
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal-content {
    background: #0a0a0a;
    border: 1px solid #222;
    padding: 50px;
    border-radius: 35px;
    width: 95%;
    max-width: 480px;
    text-align: center;
}

.input-stack {
    text-align: left;
    margin-bottom: 25px;
}

.input-stack label {
    font-size: 0.65rem;
    color: #555;
    font-weight: 900;
    letter-spacing: 2px;
    margin-bottom: 8px;
    display: block;
}

input, select {
    width: 100%;
    padding: 16px;
    background: var(--input-bg);
    border: 1px solid #222;
    border-radius: 12px;
    color: white;
    margin-bottom: 20px;
    font-family: inherit;
}

input:focus { border-color: var(--gold); outline: none; }

.address-display {
    background: #000;
    padding: 20px;
    border-radius: 12px;
    font-family: monospace;
    color: var(--gold);
    border: 1px dashed #444;
    word-break: break-all;
    margin-bottom: 20px;
}

/* --- UTILITIES --- */
.hidden { display: none !important; }

@media (max-width: 768px) {
    header h1 { font-size: 2rem; }
    .sidebar, .header-contact-top { display: none; }
}

/* Debugging: Highlight the store if it's active */
#main-store:not(.hidden) {
    border: 2px solid lime !important;
    min-height: 100vh;
}

/* This ensures that when the store is active, it's visible */
#main-store:not(.hidden) {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    min-height: 100vh;
}

/* Temporary fix for layout */
.hub-container {
    min-height: 400px;
}

/* 1. Ensure the hidden class actually works */
.hidden {
    display: none !important;
}

#main-store {
    position: relative;
    z-index: 99;
    background: #050505; /* Matches your body background */
    min-height: 100vh;
}

#hub-view {
    position: relative;
    z-index: 10;
}
#main-store {
    background: #050505 !important; /* Forces the background color */
    min-height: 100vh !important;   /* Forces it to fill the screen height */
    position: relative !important;
    z-index: 999 !important;        /* Brings it to the very front */
    display: none;                  /* Hidden by default until JS triggers it */
}

#store-content {
    padding: 40px 20px;
    display: block !important;
    opacity: 1 !important;
}

.support-request-wrapper {
    /* Matches your hub-container max-width for perfect alignment */
    max-width: 1200px; 
    margin: 20px auto; /* Same gap as between the grid rows */
    padding: 0 10px; /* Slight padding for screen edges */
}

.support-request-box {
    background: #111; /* Dark background matching card bottoms */
    border: 1px solid rgba(255, 215, 0, 0.2); /* Subtle gold border */
    border-radius: 20px; /* Matches card corner radius */
    overflow: hidden; /* Keeps image corners rounded */
    transition: transform 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
}

.support-request-box:hover {
    transform: translateY(-5px);
    border-color: var(--gold);
}

.request-image-container {
    width: 100%;
    height: 300px; /* Adjust height to fit your wide image */
}

.request-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures image fills the area beautifully */
}

.request-info {
    padding: 20px;
    background: #111; /* Dark bottom matching card bottoms */
}

.request-text h3 {
    color: #fff;
    margin: 0 0 5px 0;
    font-size: 1.2rem;
    font-weight: 700;
}

.request-text p {
    color: #aaa;
    margin: 0 0 15px 0;
    font-size: 0.9rem;
}

/* Specific styling for the Contact Support button to match 'Enter Store' */
.support-btn {
    width: 100% !important;
    text-align: center;
    background: var(--gold);
    color: #000;
    font-weight: 700;
    padding: 12px 20px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: 0.3s;
    display: inline-block;
}

.support-btn:hover {
    background: #fff;
    color: #000;
}
.support-request-wrapper {
    /* Matches your hub-container max-width for perfect alignment */
    max-width: 1200px; 
    margin: 20px auto; /* Same gap as between the grid rows */
    padding: 0 10px; /* Slight padding for screen edges */
}

.support-request-box {
    background: #111; /* Dark background matching card bottoms */
    border: 1px solid rgba(255, 215, 0, 0.2); /* Subtle gold border */
    border-radius: 20px; /* Matches card corner radius */
    overflow: hidden; /* Keeps image corners rounded */
    transition: transform 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
}

.support-request-box:hover {
    transform: translateY(-5px);
    border-color: var(--gold);
}

.request-image-container {
    width: 100%;
    height: 300px; /* Adjust height to fit your wide image */
}

.request-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures image fills the area beautifully */
}

.request-info {
    padding: 20px;
    background: #111; /* Dark bottom matching card bottoms */
}

.request-text h3 {
    color: #fff;
    margin: 0 0 5px 0;
    font-size: 1.2rem;
    font-weight: 700;
}

.request-text p {
    color: #aaa;
    margin: 0 0 15px 0;
    font-size: 0.9rem;
}

/* Specific styling for the Contact Support button to match 'Enter Store' */
.support-btn {
    width: 100% !important;
    text-align: center;
    background: var(--gold);
    color: #000;
    font-weight: 700;
    padding: 12px 20px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: 0.3s;
    display: inline-block;
}

.support-btn:hover {
    background: #fff;
    color: #000;
}
.custom-request-banner {
    max-width: 1200px; /* Match your hub-container width */
    margin: 40px auto; /* Space below the grid */
    background: #111;
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 20px;
    display: flex; /* Side-by-side layout */
    overflow: hidden;
    align-items: center;
    transition: 0.3s;
}

.custom-request-banner:hover {
    border-color: var(--gold);
    transform: translateY(-5px);
}

.banner-image {
    width: 35%; /* Left side image */
    height: 200px;
}

.banner-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-content {
    width: 65%; /* Right side info */
    padding: 30px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.banner-text h3 {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.banner-text p {
    color: #888;
    font-size: 0.95rem;
    max-width: 400px;
}

.contact-btn {
    width: auto !important;
    padding: 12px 30px !important;
    white-space: nowrap;
    text-decoration: none;
    text-align: center;
}

/* Mobile: Stack vertically */
@media (max-width: 800px) {
    .custom-request-banner {
        flex-direction: column;
        margin: 20px;
    }
    .banner-image, .banner-content {
        width: 100%;
    }
    .banner-content {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    .contact-btn {
        width: 100% !important;
    }
}

/* --- STORE BANNER SPACING --- */
.store-banner {
    margin-top: 60px !important; /* Space between the items and the banner */
    margin-bottom: 60px !important;
}

#main-store {
    display: flex;
    flex-direction: column;
    align-items: center;
}
