/**
 * Steam XMR Store - Core Theme
 * Steam-Inspired Design System with Crypto Integration
 * Version: 2.0.0 (July 26, 2025)
 */

/* ===== GLOBAL RESET & BASE ===== */
/* ===== MODERN FONTS IMPORT ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Modern Steam Color Palette */
    --steam-dark-bg: #0a0e13;
    --steam-bg-primary: #0f1419;
    --steam-bg-secondary: #1a202c;
    --steam-bg-accent: #2d3748;
    --steam-bg-card: #1e2329;
    --steam-text-primary: #f7fafc;
    --steam-text-secondary: #cbd5e0;
    --steam-text-muted: #a0aec0;
    --steam-blue: #4299e1;
    --steam-blue-hover: #3182ce;
    --steam-green: #48bb78;
    --steam-green-hover: #38a169;
    --steam-border: #2d3748;
    --steam-border-light: #4a5568;
    --steam-hover-bg: rgba(66, 153, 225, 0.1);
    --steam-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4);
    
    /* Modern Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

body {
    font-family: var(--font-primary);
    background: linear-gradient(135deg, var(--steam-dark-bg) 0%, var(--steam-bg-primary) 50%, var(--steam-bg-secondary) 100%);
    color: var(--steam-text-primary);
    min-height: 100vh;
    font-size: 15px;
    line-height: 1.6;
    letter-spacing: -0.01em;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* ===== SEARCH STYLES ===== */
.search_filter {
    margin: 20px 0;
    width: 100%;
}

.search_inputs {
    display: flex;
    gap: 10px;
    max-width: 600px;
    margin: 0 auto;
}

.search_input {
    flex: 1;
    background: var(--steam-bg-card);
    border: 1px solid var(--steam-border);
    border-radius: 2px;
    color: var(--steam-text-primary);
    padding: 8px 12px;
    font-size: 14px;
}

.search_button {
    background: linear-gradient(to bottom, #4b6b8d 5%, #2a4763 95%);
    border: none;
    border-radius: 2px;
    color: #c7d5e0;
    padding: 8px 15px;
    text-transform: uppercase;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
}

.search_button:hover {
    background: linear-gradient(to bottom, #5b7a9c 5%, #3a5773 95%);
}

.clear_search {
    padding: 8px 15px;
    color: var(--steam-text-muted);
    text-decoration: underline;
    font-size: 13px;
}

/* ===== MODERN HEADER WITH LOGO + BRAND ===== */
#global_header {
    background: linear-gradient(90deg, var(--steam-bg-primary) 0%, var(--steam-bg-secondary) 100%);
    border-bottom: 1px solid var(--steam-border);
    box-shadow: var(--steam-shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(20px);
}

#global_header .content {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
    height: 72px; /* Fixed height for perfect alignment */
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 1001;
    height: 72px; /* Fixed height matching header */
}

.logo a {
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0; /* Remove padding for perfect alignment */
    border-radius: 12px;
    height: 100%;
}

.logo a:hover {
    background: var(--steam-hover-bg);
    transform: translateY(-1px);
    padding: 8px 12px; /* Add padding only on hover */
}

.logo_image {
    height: 40px;
    width: 40px; /* Fixed width for consistency */
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 8px rgba(66, 153, 225, 0.3));
    display: block; /* Ensure proper display */
}

.logo_text {
    font-family: var(--font-primary);
    font-size: 28px;
    font-weight: 800;
    color: var(--steam-text-primary);
    letter-spacing: -0.02em;
    text-transform: uppercase;
    background: linear-gradient(135deg, var(--steam-blue) 0%, var(--steam-text-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1; /* Perfect line height for alignment */
    display: flex;
    align-items: center;
}

.logo a:hover .logo_image {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 12px rgba(66, 153, 225, 0.5));
}

.logo a:hover .logo_text {
    background: linear-gradient(135deg, var(--steam-blue-hover) 0%, var(--steam-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Hamburger Menu - Hidden by default */
.mobile_menu_toggle {
    display: none;
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    padding: 12px;
    z-index: 1002;
    height: 48px;
    width: 48px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.hamburger span {
    width: 22px;
    height: 2px;
    background: var(--steam-text-primary);
    margin: 2px 0;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
    display: block;
}

/* Desktop Menu */
.header_menu {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.header_link, .username, .balance {
    color: var(--steam-text-secondary);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.5px;
}

.header_link:hover {
    color: var(--steam-text-primary);
    background: var(--steam-hover-bg);
    border-color: var(--steam-blue);
    transform: translateY(-1px);
}

.balance {
    background: linear-gradient(45deg, var(--steam-green), #47a043);
    color: white;
    font-weight: 600;
    border: none;
    box-shadow: 0 2px 8px rgba(91, 163, 45, 0.4);
}

/* ===== MODERN MOBILE DESIGN ===== */
@media (max-width: 768px) {
    #global_header {
        min-height: 80px;
    }
    
    #global_header .content {
        padding: 0 1rem;
        min-height: 80px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        height: 80px;
        position: relative;
    }
    
    .logo {
        display: flex;
        align-items: center;
        gap: 12px;
        height: 80px; /* Fixed height matching mobile header */
    }
    
    .logo a {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 0; /* Remove padding for perfect alignment */
        border-radius: 8px;
        height: 100%;
        transition: all 0.3s ease;
    }
    
    .logo a:hover {
        padding: 4px 8px; /* Add padding only on hover */
        background: var(--steam-hover-bg);
    }
    
    .logo_image {
        height: 36px;
        width: 36px; /* Fixed width for consistency */
        display: block;
    }
    
    .logo_text {
        font-size: 22px;
        font-weight: 700;
        line-height: 1; /* Perfect line height for alignment */
        display: flex;
        align-items: center;
    }
    
    /* Modern hamburger - PERFECTLY CENTERED */
    .hamburger {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 0;
        border-radius: 8px;
        transition: all 0.3s ease;
        height: 48px;
        width: 48px;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .hamburger:hover {
        background: rgba(255, 255, 255, 0.1);
        border-color: rgba(255, 255, 255, 0.2);
    }
    
    .hamburger span {
        width: 20px;
        height: 2px;
        background: var(--steam-text-primary);
        margin: 2px 0;
        transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        border-radius: 2px;
        display: block;
    }
    
    /* Modern mobile menu */
    .header_menu {
        position: fixed;
        top: 80px;
        right: -320px;
        width: 320px;
        height: calc(100vh - 80px);
        background: linear-gradient(135deg, var(--steam-bg-primary) 0%, var(--steam-bg-secondary) 100%);
        border-left: 1px solid var(--steam-border);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
        flex-direction: column;
        gap: 0;
        padding: 2rem 0;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        backdrop-filter: blur(20px);
    }
    
    .header_menu .header_link,
    .header_menu .username,
    .header_menu .balance {
        width: 100%;
        padding: 1.2rem 2rem;
        border: none;
        border-bottom: 1px solid var(--steam-border);
        border-radius: 0;
        text-align: left;
        font-size: 14px;
        letter-spacing: 0.5px;
        transition: all 0.3s ease;
    }
    
    .header_menu .header_link:hover {
        background: var(--steam-hover-bg);
        padding-left: 2.5rem;
    }
    
    .header_menu .balance {
        background: linear-gradient(135deg, var(--steam-green) 0%, var(--steam-green-hover) 100%);
        color: white;
        font-weight: 700;
        margin: 1rem 2rem;
        border-radius: 12px;
        text-align: center;
        border: none;
    }
    
    /* Hamburger animation */
    .mobile_menu_toggle:checked ~ .header_menu {
        right: 0;
    }
    
    .mobile_menu_toggle:checked ~ .hamburger span:nth-child(1) {
        transform: rotate(-45deg) translate(-6px, 6px);
        background: var(--steam-blue);
    }
    
    .mobile_menu_toggle:checked ~ .hamburger span:nth-child(2) {
        opacity: 0;
        transform: rotate(0deg) scale(0.2, 0.2);
    }
    
    .mobile_menu_toggle:checked ~ .hamburger span:nth-child(3) {
        transform: rotate(45deg) translate(-6px, -6px);
        background: var(--steam-blue);
    }
}

/* ===== MAIN CONTENT CONTAINER ===== */
.responsive_page_frame {
    min-height: calc(100vh - 80px);
    background: var(--steam-bg-primary);
    width: 100%;
}

.responsive_page_content {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    padding: 3rem 0.5rem;
}

/* ===== PAGE HEADER ===== */
.page_header_ctn {
    text-align: center !important;
    margin-bottom: 4rem;
    padding: 2rem 0;
    border-bottom: 1px solid var(--steam-border);
}

.page_header {
    text-align: center !important;
}

.page_header h1 {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--steam-text-primary);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    background: linear-gradient(45deg, var(--steam-blue), var(--steam-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center !important;
}

.page_header p {
    font-size: 1.2rem;
    color: var(--steam-text-muted);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
    text-align: center !important;
}

/* ===== STORE INFO BAR ===== */
.store_info {
    background: var(--steam-bg-secondary);
    padding: 1.5rem 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    border: 1px solid var(--steam-border);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.total_products {
    font-size: 1.1rem;
    color: var(--steam-text-secondary);
    font-weight: 500;
    text-align: center;
    letter-spacing: 0.5px;
    width: 100%;
    margin-bottom: 15px;
}

/* ===== PRODUCTS LIST - ENTERPRISE STYLE ===== */
.products_container {
    background: var(--steam-bg-secondary);
    border-radius: 16px;
    border: 1px solid var(--steam-border);
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    width: 100%;
    max-width: 100%;
}

.products_grid {
    display: flex;
    flex-direction: column;
}

/* ===== INDIVIDUAL PRODUCT ITEM ===== */
.product_item {
    display: grid;
    grid-template-columns: 60px 120px 1fr 120px 200px;
    gap: 2rem;
    align-items: center;
    padding: 2rem;
    border-bottom: 1px solid var(--steam-border);
    transition: all 0.3s ease;
    background: linear-gradient(90deg, transparent 0%, rgba(26, 159, 217, 0.05) 100%);
}

.product_item:last-child {
    border-bottom: none;
}

.product_item:hover {
    background: linear-gradient(90deg, rgba(26, 159, 217, 0.1) 0%, rgba(91, 163, 45, 0.1) 100%);
    transform: translateX(5px);
    box-shadow: inset 4px 0 0 var(--steam-blue);
}

/* Product Flag */
.product_flag {
    font-size: 2rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: var(--steam-bg-primary);
    border-radius: 50%;
    border: 2px solid var(--steam-border);
    transition: all 0.3s ease;
}

.product_item:hover .product_flag {
    border-color: var(--steam-blue);
    transform: scale(1.1);
}

/* Product Number */
.product_number {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--steam-text-muted);
    font-weight: 600;
    background: var(--steam-dark-bg);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    text-align: center;
    border: 1px solid var(--steam-border);
}

/* Product Name */
.product_name {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--steam-text-primary);
    letter-spacing: 0.5px;
}

/* Product Price */
.product_price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--steam-green);
    text-align: center;
    font-family: var(--font-mono);
}

/* Product Actions */
.product_actions {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ===== MODERN BUTTONS ===== */
.btn_green_white_innerfade, .btn_grey_white_innerfade {
    background: linear-gradient(135deg, var(--steam-green) 0%, var(--steam-green-hover) 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-family: var(--font-primary);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(72, 187, 120, 0.3);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    position: relative;
    overflow: hidden;
}

.btn_green_white_innerfade::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s;
}

.btn_green_white_innerfade:hover::before {
    left: 100%;
}

.btn_green_white_innerfade:hover {
    background: linear-gradient(135deg, var(--steam-green-hover) 0%, var(--steam-green) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(72, 187, 120, 0.4);
}

.btn_green_white_innerfade:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(72, 187, 120, 0.3);
}

.btn_grey_white_innerfade {
    background: linear-gradient(135deg, var(--steam-border-light) 0%, var(--steam-text-muted) 100%);
    box-shadow: 0 4px 12px rgba(74, 85, 104, 0.3);
}

.btn_grey_white_innerfade:hover {
    background: linear-gradient(135deg, var(--steam-text-muted) 0%, var(--steam-border-light) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(74, 85, 104, 0.4);
}

/* ===== PAGINATION ===== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin: 3rem 0;
    padding: 2rem;
}

.pagination_btn {
    background: var(--steam-bg-secondary);
    color: var(--steam-text-secondary);
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    border: 1px solid var(--steam-border);
    font-weight: 500;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.pagination_btn:hover {
    background: var(--steam-blue);
    color: white;
    border-color: var(--steam-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 159, 217, 0.4);
}

.pagination_info {
    color: var(--steam-text-muted);
    font-size: 1rem;
    font-weight: 500;
    padding: 1rem 2rem;
    background: var(--steam-bg-primary);
    border-radius: 8px;
    border: 1px solid var(--steam-border);
}

/* ===== NO PRODUCTS MESSAGE ===== */
.no_products {
    text-align: center;
    padding: 4rem;
    color: var(--steam-text-muted);
}

.no_products h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--steam-text-secondary);
}

.no_products p {
    font-size: 1.1rem;
    line-height: 1.8;
}

/* ===== FOOTER ===== */
.store_footer {
    background: var(--steam-dark-bg);
    border-top: 1px solid var(--steam-border);
    padding: 2rem 0;
    margin-top: 4rem;
}

.footer_content {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
    color: var(--steam-text-muted);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
    .product_item {
        grid-template-columns: 50px 100px 1fr 100px 160px;
        gap: 1.5rem;
        padding: 1.5rem;
    }
    
    .page_header h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .header_menu {
        gap: 1rem;
    }
    
    .header_link, .username, .balance {
        padding: 0.5rem 0.8rem;
        font-size: 10px;
    }
    
    .product_item {
        grid-template-columns: 1fr;
        gap: 1rem;
        text-align: center;
        padding: 2rem;
    }
    
    .product_flag {
        margin: 0 auto;
    }
    
    .page_header h1 {
        font-size: 2rem;
    }
    
    .responsive_page_content {
        padding: 2rem 1rem;
    }
}

@media (max-width: 480px) {
    .logo_image {
        height: 24px;
    }
    
    .page_header h1 {
        font-size: 1.5rem;
        letter-spacing: 1px;
    }
    
    .product_item {
        padding: 1.5rem;
    }
    
    .btn_green_white_innerfade, .btn_grey_white_innerfade {
        padding: 0.8rem 1.5rem;
        font-size: 0.8rem;
        min-width: 120px;
    }
}

/* ===== FORM STYLES (LOGIN/REGISTER) ===== */
.login_form_container, .responsive_page_frame.with_header {
    min-height: calc(100vh - 80px);
    background: var(--steam-bg-primary);
}

.login_page_content {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
    padding: 2rem;
}

.login_box_ctn {
    max-width: 450px;
    width: 100%;
}

.login_box {
    background: var(--steam-bg-secondary);
    padding: 3rem;
    border-radius: 16px;
    border: 1px solid var(--steam-border);
    box-shadow: 0 16px 64px rgba(0, 0, 0, 0.6);
}

.login_box_title h2 {
    color: var(--steam-text-primary);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: linear-gradient(45deg, var(--steam-blue), var(--steam-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login_form_fields {
    margin-bottom: 2rem;
}

.input_group {
    margin-bottom: 2rem;
}

.input_group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--steam-text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
}

.login_input, .auth_form input[type="text"], .auth_form input[type="password"] {
    width: 100%;
    padding: 1rem;
    background: var(--steam-bg-primary);
    border: 1px solid var(--steam-border);
    border-radius: 8px;
    color: var(--steam-text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.login_input:focus, .auth_form input[type="text"]:focus, .auth_form input[type="password"]:focus {
    outline: none;
    border-color: var(--steam-blue);
    box-shadow: 0 0 0 3px rgba(26, 159, 217, 0.2);
    background: var(--steam-dark-bg);
}

.login_form_submit_container, .auth_form_row {
    margin-bottom: 2rem;
}

.login_submit, .auth_form button {
    background: linear-gradient(135deg, var(--steam-green) 0%, #47a043 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(91, 163, 45, 0.4);
    width: 100%;
}

.login_submit:hover, .auth_form button:hover {
    background: linear-gradient(135deg, #4e8a26 0%, var(--steam-green) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(91, 163, 45, 0.6);
}

.auth_message {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    text-align: center;
    font-weight: 500;
}

.auth_message.error {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid #dc3545;
    color: #ff6b7a;
}

.auth_message.success {
    background: rgba(40, 167, 69, 0.1);
    border: 1px solid #28a745;
    color: #5cbf60;
}

.auth_form_link {
    text-align: center;
    margin-top: 2rem;
}

.auth_form_link a {
    color: var(--steam-blue);
    text-decoration: none;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.auth_form_link a:hover {
    color: var(--steam-blue-hover);
    text-decoration: underline;
}

.input_group small {
    color: var(--steam-text-tertiary);
    font-size: 0.8rem;
    margin-top: 0.3rem;
    display: block;
    font-style: italic;
}

.secure_store_info {
    background: rgba(26, 159, 217, 0.05);
    border: 1px solid rgba(26, 159, 217, 0.2);
    border-radius: 12px;
    padding: 2rem;
    margin-top: 2rem;
}

.secure_store_info h3 {
    color: var(--steam-blue);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.secure_store_info ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.secure_store_info li {
    color: var(--steam-text-secondary);
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
    line-height: 1.5;
}

.secure_store_info li:last-child {
    margin-bottom: 0;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.product_item {
    animation: fadeIn 0.6s ease forwards;
}

.product_item:nth-child(1) { animation-delay: 0.1s; }
.product_item:nth-child(2) { animation-delay: 0.2s; }
.product_item:nth-child(3) { animation-delay: 0.3s; }
.product_item:nth-child(4) { animation-delay: 0.4s; }
.product_item:nth-child(5) { animation-delay: 0.5s; }

/* ===== SCROLLBAR STYLING ===== */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--steam-dark-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--steam-bg-accent);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--steam-blue);
}

.logo a {
    color: #ffffff;
    text-decoration: none;
    font-size: 28px;
    font-weight: bold;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    background: linear-gradient(135deg, #67c1f5 0%, #417a9b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: "Motiva Sans", Arial, sans-serif;
    transition: all 0.3s ease;
}

.logo a:hover {
    text-shadow: 0 0 10px rgba(103, 193, 245, 0.5);
}

/* Steam Navigation Links - MY PURCHASES, YOUR CREDIT, DEPOSIT, LOGOUT */
#global_actions {
    display: flex;
    align-items: center;
    gap: 0;
    height: 100%;
}

.global_action_link {
    color: #c7d5e0;
    text-decoration: none;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 12px 16px;
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
    transition: all 0.2s ease;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    font-weight: 400;
}

.global_action_link:first-child {
    border-left: none;
}

.global_action_link:hover {
    background: linear-gradient(to bottom, rgba(103, 193, 245, 0.1) 0%, rgba(103, 193, 245, 0.05) 100%);
    color: #67c1f5;
    text-shadow: 0 0 5px rgba(103, 193, 245, 0.3);
}

/* Steam Credit Display Styling */
.global_action_link.credit {
    color: #beee11;
    font-weight: bold;
}

.global_action_link.credit:hover {
    color: #d4ff3d;
    background: linear-gradient(to bottom, rgba(190, 238, 17, 0.1) 0%, rgba(190, 238, 17, 0.05) 100%);
}

/* ================================================
   STEAM PAGE LAYOUT - EXACT STRUCTURE
   ================================================ */

.responsive_page_frame {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    padding: 24px 16px;
    min-height: calc(100vh - 104px);
}

.responsive_page_content {
    width: 100%;
    max-width: 100%;
    background: rgba(0, 0, 0, 0.2);
    background: linear-gradient(135deg, rgba(42, 71, 94, 0.1) 0%, rgba(0, 0, 0, 0.3) 100%);
    border-radius: 3px;
    padding: 24px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ================================================
   STEAM PRODUCT GRID - RESPONSIVE LAYOUT
   ================================================ */

.store_content {
    margin-top: 24px;
}

.store_content h1, .page_header_ctn h1 {
    color: #ffffff;
    font-size: 32px;
    font-weight: 300;
    margin-bottom: 8px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.store_content h2 {
    color: #ffffff;
    font-size: 24px;
    font-weight: 300;
    margin-bottom: 24px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page_header_ctn p {
    color: #8f98a0;
    font-size: 14px;
    margin-bottom: 32px;
    line-height: 1.6;
}

/* ================================================
   STEAM PRODUCT LIST - EXACT TABLE LAYOUT
   BANDERA | ID NUMBER | NAME | PRICE | BUY
   ================================================ */

.games_grid {
    display: block;
    margin-top: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    background: rgba(0, 0, 0, 0.2);
}

/* Steam Product Table Header */
.games_header {
    display: grid;
    grid-template-columns: 60px 120px 1fr 120px 120px;
    gap: 16px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #2a475e 0%, #1b2838 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 12px;
    text-transform: uppercase;
    color: #8f98a0;
    font-weight: bold;
}

/* Steam Product Row */
.game_row {
    display: grid;
    grid-template-columns: 60px 120px 1fr 120px 120px;
    gap: 16px;
    padding: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease;
    align-items: center;
    min-height: 60px;
}

.game_row:hover {
    background: linear-gradient(135deg, rgba(103, 193, 245, 0.05) 0%, rgba(42, 71, 94, 0.1) 100%);
    border-color: rgba(103, 193, 245, 0.2);
}

.game_row:last-child {
    border-bottom: none;
}

/* Flag Column */
.game_flag {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flag_icon {
    width: 32px;
    height: 24px;
    background: linear-gradient(45deg, #67c1f5, #2a475e);
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #ffffff;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* ID Number Column */
.game_id {
    color: #67c1f5;
    font-weight: bold;
    font-size: 14px;
    text-align: center;
}

/* Name Column */
.game_name {
    color: #ffffff;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.3;
}

.game_name .game_subtitle {
    color: #8f98a0;
    font-size: 12px;
    margin-top: 2px;
}

/* Price Column */
.game_price_col {
    text-align: right;
    color: #beee11;
    font-size: 16px;
    font-weight: bold;
}

.game_price_col .currency {
    color: #8f98a0;
    font-size: 12px;
    margin-left: 4px;
}

.game_price_col .original_price {
    color: #8f98a0;
    text-decoration: line-through;
    font-size: 12px;
    display: block;
    margin-bottom: 2px;
}

/* Buy Button Column */
.game_buy_col {
    display: flex;
    justify-content: center;
}

.btn_buy_row {
    background: linear-gradient(to bottom, #75b022 5%, #588a1b 50%, #4e7c17 95%);
    border: 1px solid #4e7c17;
    border-radius: 2px;
    color: #d2efa7;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
    padding: 8px 16px;
    text-align: center;
    text-decoration: none;
    text-shadow: 1px 1px 0px rgba(0, 0, 0, 0.3);
    display: inline-block;
    transition: all 0.2s ease;
    min-width: 80px;
    text-transform: uppercase;
}

.btn_buy_row:hover {
    background: linear-gradient(to bottom, #8bc53f 5%, #678f1e 50%, #5e8a1a 95%);
    border-color: #5e8a1a;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.btn_buy_row:active {
    background: linear-gradient(to bottom, #588a1b 0%, #4e7c17 100%);
    transform: translateY(0);
}

.btn_buy_row.unavailable {
    background: linear-gradient(to bottom, #4a4a4a 5%, #3a3a3a 50%, #2a2a2a 95%);
    border-color: #2a2a2a;
    color: #8f98a0;
    cursor: not-allowed;
}

/* Mobile optimization for product grid */
@media (max-width: 768px) {
    .product_grid {
        margin: 0;
        border-radius: 4px;
        overflow: hidden;
    }
    
    .product_grid_header {
        padding: 8px 4px;
        font-size: 10px;
        display: grid;
        grid-template-columns: 30px 60px 1fr 50px 60px;
        gap: 4px;
        align-items: center;
    }
    
    .product_item_list {
        padding: 8px 4px;
        font-size: 10px;
        display: grid;
        grid-template-columns: 30px 60px 1fr 50px 60px;
        gap: 4px;
        align-items: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        min-height: 40px;
    }
    
    .product_flag {
        font-size: 14px;
        text-align: center;
    }
    
    .product_number {
        font-size: 9px;
        color: var(--steam-text-secondary);
        font-family: 'JetBrains Mono', monospace;
    }
    
    .product_name {
        font-size: 10px;
        line-height: 1.2;
        color: var(--steam-text-primary);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .product_price {
        font-size: 10px;
        font-weight: 600;
        color: var(--steam-green);
        text-align: center;
    }
    
    .product_actions {
        display: flex;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .product_grid_header {
        grid-template-columns: 28px 50px 1fr 45px 50px;
        gap: 2px;
        padding: 6px 2px;
        font-size: 9px;
    }
    
    .product_item_list {
        grid-template-columns: 28px 50px 1fr 45px 50px;
        gap: 2px;
        padding: 6px 2px;
        font-size: 9px;
        min-height: 36px;
    }
    
    .product_flag {
        font-size: 12px;
    }
    
    .product_number {
        font-size: 8px;
    }
    
    .product_name {
        font-size: 9px;
        line-height: 1.1;
    }
    
    .product_price {
        font-size: 9px;
    }
}

/* Button text optimization for mobile */
@media (max-width: 600px) {
    .btn_buy_row {
        font-size: 8px;
        padding: 4px 6px;
        min-width: 50px;
        max-width: 65px;
        letter-spacing: -0.3px;
    }
}

/* Button text optimization for mobile */
@media (max-width: 600px) {
    .btn_green_white_innerfade, .btn_grey_white_innerfade {
        font-size: 8px;
        padding: 4px 8px;
        min-width: 50px;
        max-width: 70px;
        letter-spacing: -0.3px;
    }
    
    .btn_green_white_innerfade span, .btn_grey_white_innerfade span {
        font-size: 8px;
        letter-spacing: -0.2px;
    }
}

@media (max-width: 480px) {
    .btn_green_white_innerfade, .btn_grey_white_innerfade {
        font-size: 7px;
        padding: 3px 6px;
        min-width: 45px;
        max-width: 60px;
        letter-spacing: -0.5px;
        line-height: 1.1;
    }
    
    .btn_green_white_innerfade span, .btn_grey_white_innerfade span {
        font-size: 7px;
        line-height: 1;
    }
}

@media (max-width: 400px) {
    .btn_green_white_innerfade, .btn_grey_white_innerfade {
        font-size: 6px;
        padding: 2px 5px;
        min-width: 40px;
        max-width: 50px;
        letter-spacing: -0.5px;
        border-radius: 2px;
    }
    
    .btn_green_white_innerfade span, .btn_grey_white_innerfade span {
        font-size: 6px;
        text-transform: uppercase;
    }
    
    /* Ultra compact text for very small screens */
    .btn_green_white_innerfade span:after {
        content: "BUY";
        display: none;
    }
    
    .btn_grey_white_innerfade span:after {
        content: "LOGIN";
        display: none;
    }
}

/* ================================================
   STEAM LOGIN/REGISTER FORMS - EXACT STYLING
   ================================================ */

.login_form_container {
    max-width: 400px;
    margin: 40px auto;
    background: linear-gradient(135deg, #16202d 0%, #1e2329 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    padding: 32px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    position: relative;
}

.login_form_container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #67c1f5, #417a9b, #2a475e);
    border-radius: 4px 4px 0 0;
}

.page_header_ctn h1 {
    color: #ffffff;
    font-size: 28px;
    font-weight: 300;
    margin-bottom: 8px;
    text-align: center !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page_header_ctn p {
    color: #8f98a0;
    font-size: 14px;
    text-align: center !important;
    margin-bottom: 32px;
    line-height: 1.6;
}

/* Asegurar centrado en todos los elementos de page_header_ctn */
.page_header_ctn * {
    text-align: center !important;
}

.page_header_ctn div {
    text-align: center !important;
}

/* Form Elements - Steam Style */
.auth_form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.auth_form_row {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.auth_form_label {
    color: #c7d5e0;
    font-size: 13px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.auth_form_input {
    background: #32414b;
    background: linear-gradient(135deg, #32414b 0%, #2a3940 100%);
    border: 1px solid #000000;
    border-radius: 3px;
    color: #ffffff;
    font-size: 16px;
    padding: 14px 16px;
    outline: none;
    transition: all 0.3s ease;
    font-family: "Motiva Sans", Arial, sans-serif;
}

.auth_form_input:focus {
    border-color: #1999ff;
    box-shadow: 0 0 8px rgba(25, 153, 255, 0.4);
    background: linear-gradient(135deg, #3a4a55 0%, #32414b 100%);
}

.auth_form_input::placeholder {
    color: #8f98a0;
    font-style: italic;
}

/* Error/Success Messages - Steam Style */
.auth_message {
    padding: 16px;
    border-radius: 3px;
    margin-bottom: 20px;
    font-size: 14px;
    border-left: 4px solid;
    position: relative;
}

.auth_message.error {
    background: linear-gradient(135deg, rgba(229, 75, 75, 0.15) 0%, rgba(229, 75, 75, 0.05) 100%);
    border-color: #e54b4b;
    color: #ff9999;
}

.auth_message.success {
    background: linear-gradient(135deg, rgba(75, 229, 75, 0.15) 0%, rgba(75, 229, 75, 0.05) 100%);
    border-color: #4be54b;
    color: #99ff99;
}

.auth_message.warning {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.15) 0%, rgba(255, 193, 7, 0.05) 100%);
    border-color: #ffc107;
    color: #ffeb3b;
}

/* Form Links */
.auth_form_link {
    color: #67c1f5;
    text-decoration: none;
    font-size: 13px;
    text-align: center;
    margin-top: 20px;
    display: block;
    transition: color 0.2s ease;
}

.auth_form_link:hover {
    color: #ffffff;
    text-decoration: underline;
    text-shadow: 0 0 5px rgba(103, 193, 245, 0.5);
}

/* Checkbox Styling */
.auth_checkbox {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: #c7d5e0;
    margin: 16px 0;
}

.auth_checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #67c1f5;
    cursor: pointer;
}

.auth_checkbox label {
    cursor: pointer;
    line-height: 1.4;
}

/* Form Submit Button */
.auth_form .btn_steam {
    margin-top: 8px;
    width: 100%;
    font-size: 16px;
    padding: 16px;
}

/* ================================================
   STEAM BUTTONS - EXACT BUTTON STYLES
   ================================================ */

/* Primary Steam Button (Green) */
.btn_steam {
    background: linear-gradient(to bottom, #75b022 5%, #588a1b 50%, #4e7c17 95%);
    border: 1px solid #4e7c17;
    border-radius: 2px;
    color: #d2efa7;
    cursor: pointer;
    font-size: 15px;
    font-weight: normal;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    text-shadow: 1px 1px 0px rgba(0, 0, 0, 0.3);
    display: inline-block;
    transition: all 0.2s ease;
    font-family: "Motiva Sans", Arial, sans-serif;
    min-width: 120px;
    position: relative;
    overflow: hidden;
}

.btn_steam::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.btn_steam:hover::before {
    left: 100%;
}

.btn_steam:hover {
    background: linear-gradient(to bottom, #8bc53f 5%, #678f1e 50%, #5e8a1a 95%);
    border-color: #5e8a1a;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.btn_steam:active {
    background: linear-gradient(to bottom, #588a1b 0%, #4e7c17 100%);
    transform: translateY(0);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Secondary Steam Button (Blue) */
.btn_steam_secondary {
    background: linear-gradient(to bottom, #4c6b22 5%, #3e5a1c 50%, #365018 95%);
    border: 1px solid #365018;
    color: #becd92;
}

.btn_steam_secondary:hover {
    background: linear-gradient(to bottom, #67c1f5 5%, #417a9b 50%, #2a475e 95%);
    border-color: #2a475e;
    color: #ffffff;
}

/* Small Steam Button */
.btn_steam_small {
    padding: 6px 12px;
    font-size: 13px;
    min-width: 80px;
}

/* Purchase Button */
.btn_purchase {
    background: linear-gradient(to bottom, #6cb2e8 5%, #4a90c2 50%, #2a6496 95%);
    border: 1px solid #2a6496;
    color: #ffffff;
    font-weight: bold;
}

.btn_purchase:hover {
    background: linear-gradient(to bottom, #8bc7f2 5%, #67a9d1 50%, #4a8ab8 95%);
    border-color: #4a8ab8;
}

/* Disabled Button */
.btn_steam:disabled,
.btn_steam.disabled {
    background: linear-gradient(to bottom, #4a4a4a 5%, #3a3a3a 50%, #2a2a2a 95%);
    border-color: #2a2a2a;
    color: #8f98a0;
    cursor: not-allowed;
    opacity: 0.6;
}

.btn_steam:disabled:hover,
.btn_steam.disabled:hover {
    transform: none;
    box-shadow: none;
}

/* ================================================
   RESPONSIVE DESIGN - MOBILE FIRST
   ================================================ */

/* Mobile Devices (320px - 768px) */
@media (max-width: 768px) {
    #global_header {
        height: 80px;
    }
    
    #global_header .content {
        padding: 0 12px;
        flex-wrap: wrap;
    }
    
    .logo a {
        font-size: 24px;
    }
    
    #global_actions {
        flex-wrap: wrap;
        gap: 0;
    }
    
    .global_action_link {
        padding: 8px 12px;
        font-size: 10px;
    }
    
    .responsive_page_frame {
        padding: 16px 8px;
    }
    
    .responsive_page_content {
        padding: 16px;
    }
    
    .login_form_container {
        margin: 16px;
        padding: 24px;
    }
    
    .games_grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .game_card {
        max-width: 100%;
    }
}

/* Tablet Devices (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
    .games_grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .responsive_page_frame {
        padding: 20px 12px;
    }
}

/* Desktop Large (1024px+) */
@media (min-width: 1024px) {
    .games_grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    
    .game_card:hover {
        transform: translateY(-5px) scale(1.02);
    }
}

/* ================================================
   LOADING STATES & ANIMATIONS
   ================================================ */

.btn_steam:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.loading {
    opacity: 0.7;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #67c1f5;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ================================================
   ACCESSIBILITY & FOCUS STATES
   ================================================ */

.auth_form_input:focus-visible,
.btn_steam:focus-visible,
.global_action_link:focus-visible {
    outline: 2px solid #67c1f5;
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    body {
        background: #000000;
        color: #ffffff;
    }
    
    .game_card {
        border: 2px solid #ffffff;
    }
    
    .btn_steam {
        border: 2px solid #ffffff;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ================================================
   STEAM STORE SPECIFIC ELEMENTS
   ================================================ */

/* Featured Badge */
.featured_badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
    color: white;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    z-index: 2;
}

/* Discount Badge */
.discount_badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(45deg, #beee11, #d4ff3d);
    color: #1b2838;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: bold;
    z-index: 2;
}

/* Steam Store Footer */
.steam_footer {
    margin-top: 60px;
    padding: 24px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: #8f98a0;
    font-size: 12px;
}

/* Store Stats */
.store_stats {
    display: flex;
    justify-content: space-around;
    margin: 24px 0;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.stat_item {
    text-align: center;
}

.stat_number {
    color: #67c1f5;
    font-size: 24px;
    font-weight: bold;
    display: block;
}

.stat_label {
    color: #8f98a0;
    font-size: 12px;
    text-transform: uppercase;
}

/* Search Bar (if needed) */
.steam_search {
    width: 100%;
    max-width: 400px;
    margin: 20px auto;
    position: relative;
}

.steam_search input {
    width: 100%;
    padding: 12px 40px 12px 16px;
    background: #32414b;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    color: #ffffff;
    font-size: 14px;
}

.steam_search::after {
    content: '🔍';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #8f98a0;
}

/* ================================================
   PAGINATION - STEAM STYLE
   ================================================ */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 32px;
    padding: 20px 0;
}

.pagination_btn {
    display: inline-block;
    padding: 8px 16px;
    background: linear-gradient(135deg, #2a475e 0%, #1b2838 100%);
    color: #ffffff;
    text-decoration: none;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
    min-width: 40px;
    text-align: center;
}

.pagination_btn:hover {
    background: linear-gradient(135deg, #66c0f4 0%, #4b9cd3 100%);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(102, 192, 244, 0.3);
}

.pagination_btn.current {
    background: linear-gradient(135deg, #66c0f4 0%, #4b9cd3 100%);
    color: #ffffff;
    cursor: default;
    box-shadow: 0 2px 8px rgba(102, 192, 244, 0.3);
}

.pagination_btn.current:hover {
    transform: none;
}

/* Store Statistics */
.store_stats {
    color: #66c0f4 !important;
    font-size: 13px !important;
    margin-top: 8px !important;
}

/* Footer Statistics */
.footer_stats {
    margin-top: 8px !important;
    color: #66c0f4 !important;
    font-size: 11px !important;
}

/* No Products Message */
.no_products {
    text-align: center;
    padding: 60px 20px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.no_products h3 {
    color: #ffffff;
    font-size: 24px;
    margin-bottom: 16px;
    font-weight: 300;
}

.no_products p {
    color: #8f98a0;
    font-size: 14px;
    line-height: 1.6;
}

/* Mobile Pagination */
@media (max-width: 768px) {
    .pagination {
        flex-wrap: wrap;
        gap: 4px;
    }
    
    .pagination_btn {
        padding: 6px 12px;
        font-size: 11px;
        min-width: 32px;
    }
}

/* ================================================
   PURCHASES PAGE - STEAM STYLE
   ================================================ */

.purchases_grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 24px;
}

.purchase_item {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.purchase_item:hover {
    border-color: rgba(102, 192, 244, 0.3);
    box-shadow: 0 2px 8px rgba(102, 192, 244, 0.1);
}

.purchase_header {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    background: linear-gradient(135deg, #2a475e 0%, #1b2838 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.purchase_flag {
    font-size: 24px;
    margin-right: 16px;
    min-width: 40px;
    text-align: center;
}

.purchase_info h3 {
    color: #ffffff;
    font-size: 18px;
    font-weight: 400;
    margin: 0 0 8px 0;
}

.purchase_meta {
    color: #8f98a0;
    font-size: 12px;
    line-height: 1.4;
}

.purchase_content {
    padding: 20px;
}

.digital_key {
    margin-bottom: 20px;
}

.digital_key label {
    display: block;
    color: #67c1f5;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.key_display {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.key_display input {
    flex: 1;
    padding: 12px 16px;
    background: #32414b;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    color: #ffffff;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    font-weight: bold;
}

.key_display input:focus {
    outline: none;
    border-color: #67c1f5;
    box-shadow: 0 0 5px rgba(103, 193, 245, 0.3);
}

.copy_btn {
    padding: 12px 20px;
    background: linear-gradient(135deg, #2a475e 0%, #1b2838 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    color: #ffffff;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 80px;
}

.copy_btn:hover {
    background: linear-gradient(135deg, #67c1f5 0%, #4b9cd3 100%);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(103, 193, 245, 0.3);
}

.copy_btn:active {
    transform: translateY(0);
}

.instructions {
    margin-bottom: 20px;
}

.instructions label {
    display: block;
    color: #67c1f5;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.instructions_text {
    background: rgba(0, 0, 0, 0.3);
    padding: 16px;
    border-radius: 3px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: #c7d5e0;
    font-size: 13px;
    line-height: 1.6;
}

.transaction_info {
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.transaction_info small {
    color: #8f98a0;
    font-size: 11px;
    font-family: 'Courier New', monospace;
}

/* Mobile Purchases */
@media (max-width: 768px) {
    .purchase_header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .purchase_flag {
        margin-right: 0;
        align-self: center;
    }
    
    .purchase_content {
        padding: 16px;
    }
    
    .key_display {
        flex-direction: column;
    }
    
    .copy_btn {
        align-self: stretch;
    }
}

/* ===== MODERN PRODUCT LIST ===== */
.products_list {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 1200px;
    margin: 0 auto;
    background: var(--steam-bg-card);
    border-radius: 16px;
    border: 1px solid var(--steam-border);
    overflow: hidden;
    box-shadow: var(--steam-shadow);
}

/* Modern List Header */
.products_list_header {
    display: grid;
    grid-template-columns: 60px 120px 1fr 100px 140px;
    gap: 1rem;
    padding: 1.2rem 1.5rem;
    background: linear-gradient(135deg, var(--steam-bg-accent) 0%, var(--steam-bg-secondary) 100%);
    border-bottom: 1px solid var(--steam-border);
    font-family: var(--font-primary);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--steam-text-secondary);
    letter-spacing: 1px;
}

.products_list_header span {
    display: flex;
    align-items: center;
    justify-content: center;
}

.products_list_header span:first-child {
    justify-content: center;
}

.products_list_header span:nth-child(3) {
    justify-content: flex-start;
}

/* Modern Product Item Row */
.product_item_list {
    display: grid !important;
    grid-template-columns: 60px 120px 1fr 100px 140px !important;
    gap: 1rem !important;
    align-items: center !important;
    padding: 1.2rem 1.5rem !important;
    border-bottom: 1px solid var(--steam-border) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    background: var(--steam-bg-card) !important;
    border-radius: 0 !important;
    margin: 0 !important;
    min-height: auto !important;
    position: relative !important;
}

.product_item_list::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(135deg, var(--steam-blue) 0%, var(--steam-blue-hover) 100%);
    transition: width 0.3s ease;
}

.product_item_list:last-child {
    border-bottom: none;
}

.product_item_list:hover {
    background: var(--steam-hover-bg) !important;
    transform: translateX(8px) !important;
}

.product_item_list:hover::before {
    width: 4px;
}

/* Flag - Clean Modern Style */
.product_item_list .product_flag {
    font-size: 2rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: none !important;
    border: none !important;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* Modern BIN Number & Product Info */
.product_info {
    display: contents !important;
}

.product_info .product_number {
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 600;
    color: var(--steam-blue);
    background: linear-gradient(135deg, rgba(66, 153, 225, 0.1) 0%, rgba(66, 153, 225, 0.05) 100%);
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid rgba(66, 153, 225, 0.2);
    text-align: center;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.product_item_list:hover .product_info .product_number {
    background: linear-gradient(135deg, rgba(66, 153, 225, 0.2) 0%, rgba(66, 153, 225, 0.1) 100%);
    border-color: rgba(66, 153, 225, 0.4);
    transform: scale(1.02);
}

/* Modern Product Name */
.product_info .product_name {
    font-family: var(--font-primary);
    font-size: 15px;
    font-weight: 600;
    color: var(--steam-text-primary);
    text-align: left;
    line-height: 1.4;
    letter-spacing: -0.01em;
    transition: all 0.3s ease;
}

.product_item_list:hover .product_info .product_name {
    color: var(--steam-blue);
}

/* Modern Price */
.product_item_list .product_price {
    font-family: var(--font-primary);
    font-size: 18px;
    font-weight: 700;
    color: var(--steam-green);
    text-align: center;
    margin: 0;
    transition: all 0.3s ease;
}

.product_item_list:hover .product_price {
    color: var(--steam-green-hover);
    transform: scale(1.05);
}

/* Modern Buy Button Container */
.product_item_list .product_actions {
    display: flex;
    justify-content: center;
    margin: 0;
}

.product_item_list .purchase_form {
    margin: 0;
    width: 100%;
}

.product_item_list .btn_medium {
    padding: 0.6rem 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: 100%;
    max-width: 120px;
}

/* ===== RESPONSIVE MOBILE LIST ===== */
@media (max-width: 768px) {
    /* Mobile List Header - SHOW IT */
    .products_list_header {
        display: grid !important;
        grid-template-columns: 50px 80px 1fr 70px 80px !important;
        gap: 0.5rem !important;
        padding: 0.8rem 1rem !important;
        font-size: 0.7rem !important;
        letter-spacing: 0.5px !important;
    }
    
    /* Mobile List Container */
    .products_list {
        border-radius: 6px;
        margin: 0 0.5rem;
    }
    
    /* Mobile Product Item */
    .product_item_list {
        display: grid !important;
        grid-template-columns: 50px 80px 1fr 70px 80px !important;
        gap: 0.5rem !important;
        align-items: center !important;
        padding: 0.8rem 1rem !important;
        border-bottom: 1px solid var(--steam-border);
    }
    
    .product_item_list:hover {
        transform: none;
        box-shadow: inset 0 3px 0 var(--steam-blue);
    }
    
    .product_item_list .product_flag {
        font-size: 1.3rem !important;
        text-align: center !important;
    }
    
    .product_info .product_number {
        font-size: 0.7rem !important;
        padding: 0.3rem 0.5rem !important;
    }
    
    .product_info .product_name {
        font-size: 0.85rem !important;
        line-height: 1.2 !important;
    }
    
    .product_item_list .product_price {
        font-size: 1rem !important;
        text-align: center !important;
    }
    
    .product_item_list .btn_medium {
        padding: 0.4rem 0.6rem !important;
        font-size: 0.7rem !important;
        width: 100% !important;
    }
}

/* ===== TOOLTIP SYSTEM - CSS ONLY (No JavaScript) ===== */
.product_name {
    position: relative;
    cursor: pointer;
}

/* Tooltip Base */
.product_name[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 130%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.95);
    color: var(--steam-text-primary);
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.4;
    white-space: normal;
    max-width: 280px;
    width: max-content;
    text-align: center;
    border: 1px solid var(--steam-border);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

/* Tooltip Arrow */
.product_name[data-tooltip]::before {
    content: '';
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid rgba(0, 0, 0, 0.95);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

/* Show tooltip on hover */
.product_name[data-tooltip]:hover::after,
.product_name[data-tooltip]:hover::before {
    opacity: 1;
    visibility: visible;
}

/* Mobile tooltip positioning */
@media (max-width: 768px) {
    .product_name[data-tooltip]::after {
        bottom: 120%;
        max-width: 220px;
        font-size: 0.8rem;
        padding: 10px 12px;
    }
    
    /* Touch support for mobile */
    .product_name[data-tooltip]:active::after,
    .product_name[data-tooltip]:active::before {
        opacity: 1;
        visibility: visible;
    }
}

/* Tooltip for BIN numbers too */
.product_number {
    position: relative;
    cursor: pointer;
}

.product_number[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 130%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.95);
    color: var(--steam-text-primary);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
    border: 1px solid var(--steam-border);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.product_number[data-tooltip]::before {
    content: '';
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid rgba(0, 0, 0, 0.95);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.product_number[data-tooltip]:hover::after,
.product_number[data-tooltip]:hover::before,
.product_number[data-tooltip]:active::after,
.product_number[data-tooltip]:active::before {
    opacity: 1;
    visibility: visible;
}

/* ===== IMPORT COMPONENT STYLES ===== */
@import url('../components/components.css');


