/**
 * Rust Store Platform - Cyber Theme
 * Modern gaming/cyber aesthetic with dark gradient backgrounds
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500&display=swap');

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

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    min-height: 100vh;
    overflow-x: hidden;
    color: #e5e7eb;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #ef4444, #8b5cf6);
    border-radius: 5px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #dc2626, #7c3aed);
}

/* Fix for header/footer overflow */
custom-navbar, custom-footer, custom-header {
    display: block;
    width: 100%;
}

/* Custom Header with Slots */
custom-header {
    display: block;
    width: 100%;
}

custom-header [slot="title"] {
    display: none; /* Hidden, used by JS */
}

custom-header [slot="description"] {
    display: none; /* Hidden, used by JS */
}

custom-header [slot="content"] {
    display: block;
}

/* Cyber Border Enhancement for Tailwind */
.cyber-border {
    border: 1px solid rgba(139, 92, 246, 0.3);
    position: relative;
    border-radius: 1rem;
}

.cyber-border::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #ef4444, #8b5cf6, #3b82f6);
    z-index: -1;
    border-radius: inherit;
    opacity: 0.5;
    filter: blur(4px);
}

/* Ensure Tailwind utilities work with our theme */
@layer utilities {
    .bg-black\/30 {
        background-color: rgba(0, 0, 0, 0.3);
    }
    .bg-black\/40 {
        background-color: rgba(0, 0, 0, 0.4);
    }
    .bg-black\/60 {
        background-color: rgba(0, 0, 0, 0.6);
    }
    .bg-black\/80 {
        background-color: rgba(0, 0, 0, 0.8);
    }
    .bg-black\/90 {
        background-color: rgba(0, 0, 0, 0.9);
    }
    .border-purple-500\/20 {
        border-color: rgba(139, 92, 246, 0.2);
    }
    .border-purple-500\/50 {
        border-color: rgba(139, 92, 246, 0.5);
    }
    .text-purple-300 {
        color: #c4b5fd;
    }
    .bg-purple-900\/20 {
        background-color: rgba(88, 28, 135, 0.2);
    }
    .bg-green-900\/30 {
        background-color: rgba(20, 83, 45, 0.3);
    }
    .border-green-500\/50 {
        border-color: rgba(34, 197, 94, 0.5);
    }
    .text-green-300 {
        color: #86efac;
    }
    .bg-blue-900\/30 {
        background-color: rgba(30, 58, 138, 0.3);
    }
    .border-blue-500\/50 {
        border-color: rgba(59, 130, 246, 0.5);
    }
    .text-blue-300 {
        color: #93c5fd;
    }
    .bg-yellow-900\/30 {
        background-color: rgba(113, 63, 18, 0.3);
    }
    .border-yellow-500\/50 {
        border-color: rgba(234, 179, 8, 0.5);
    }
    .text-yellow-300 {
        color: #fde047;
    }
    .bg-red-900\/30 {
        background-color: rgba(127, 29, 29, 0.3);
    }
    .bg-purple-900\/30 {
        background-color: rgba(88, 28, 135, 0.3);
    }
    .bg-blue-900\/30 {
        background-color: rgba(30, 58, 138, 0.3);
    }
    .bg-cyan-900\/30 {
        background-color: rgba(22, 78, 99, 0.3);
    }
    .bg-pink-900\/30 {
        background-color: rgba(131, 24, 67, 0.3);
    }
    .bg-gray-900\/70 {
        background-color: rgba(17, 24, 39, 0.7);
    }
}

/* Animation classes */
.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* New global styles */
.glow {
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.3);
}

.glow-purple {
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.4);
}

.cyber-grid {
    background-image: 
        linear-gradient(rgba(139, 92, 246, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(139, 92, 246, 0.1) 1px, transparent 1px);
    background-size: 40px 40px;
}

.cyber-border {
    border: 1px solid rgba(139, 92, 246, 0.3);
    position: relative;
}

.cyber-border::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #ef4444, #8b5cf6, #3b82f6);
    z-index: -1;
    border-radius: inherit;
    opacity: 0.5;
}

.terminal-text {
    font-family: 'JetBrains Mono', monospace;
    color: #00ff9d;
    text-shadow: 0 0 5px #00ff9d;
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 0.8; }
    50% { opacity: 1; }
    100% { opacity: 0.8; }
}

.float {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.neon-text {
    color: #fff;
    text-shadow: 
        0 0 5px #fff,
        0 0 10px #fff,
        0 0 15px #ef4444,
        0 0 20px #ef4444,
        0 0 25px #ef4444;
}

.gradient-text {
    background: linear-gradient(90deg, #ef4444, #8b5cf6, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Utility classes */
.container {
    max-width: 1200px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

@media (max-width: 1024px) {
    .container {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* CSS Variables for theme consistency */
:root {
    --color-primary: #ef4444;
    --color-secondary: #8b5cf6;
    --color-accent: #3b82f6;
    --color-success: #00ff9d;
    --color-text: #e5e7eb;
    --color-text-muted: #9ca3af;
    --color-bg-dark: #0a0a0a;
    --color-bg-darker: #1a1a2e;
    --color-bg-darkest: #16213e;
}

/* Header Styles - Support both custom elements and standard HTML */
custom-header,
custom-navbar,
.main-header {
    background: rgba(26, 26, 46, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a,
.logo-glow {
    color: #fff;
    font-size: 1.75rem;
    font-weight: 700;
    text-decoration: none;
    background: linear-gradient(90deg, #ef4444, #8b5cf6, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
}

.logo a:hover {
    filter: brightness(1.2);
}

.main-nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.main-nav a,
.nav-link {
    color: #9ca3af;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
}

.main-nav a:hover,
.nav-link:hover,
.nav-link.active {
    color: #fff;
    background: rgba(139, 92, 246, 0.1);
}

.cart-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ef4444, #8b5cf6);
    color: #fff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 700;
    margin-left: 0.5rem;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
    animation: pulse 2s infinite;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 2rem 0;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    text-decoration: none;
    border: none;
    color: #fff;
    background: linear-gradient(135deg, #ef4444, #8b5cf6);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.3);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #dc2626, #7c3aed);
    transition: left 0.3s ease;
    z-index: -1;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(239, 68, 68, 0.5);
}

.btn:hover::before {
    left: 0;
}

.btn-primary {
    background: linear-gradient(135deg, #ef4444, #8b5cf6);
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 0 30px rgba(239, 68, 68, 0.5), 0 0 60px rgba(139, 92, 246, 0.2);
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}

.btn-block {
    width: 100%;
    display: block;
}

.btn-unlink {
    background: transparent;
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    box-shadow: none;
}

.btn-unlink:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: #ef4444;
}

/* Flash Messages */
.flash-message {
    padding: 1rem 1.5rem;
    margin: 1rem 0;
    border: 1px solid;
    border-radius: 8px;
    animation: slideIn 0.3s ease;
    backdrop-filter: blur(10px);
    font-weight: 500;
}

.flash-success {
    background: rgba(0, 255, 157, 0.1);
    border-color: #00ff9d;
    color: #00ff9d;
}

.flash-error {
    background: rgba(239, 68, 68, 0.15);
    border-color: #ef4444;
    color: #ef4444;
}

.flash-info {
    background: rgba(59, 130, 246, 0.1);
    border-color: #3b82f6;
    color: #3b82f6;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Homepage Hero */
.homepage-hero {
    text-align: center;
    padding: 6rem 0;
    background: radial-gradient(ellipse at center, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
    position: relative;
    overflow: hidden;
}

.homepage-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(139, 92, 246, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(59, 130, 246, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.homepage-hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(90deg, #fff, #e5e7eb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
    position: relative;
    z-index: 1;
}

.homepage-hero p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    color: #9ca3af;
    font-weight: 300;
    position: relative;
    z-index: 1;
}

/* Homepage Sections */
.homepage-section {
    padding: 4rem 0;
    border-bottom: 1px solid rgba(139, 92, 246, 0.1);
}

.homepage-section h2 {
    color: #fff;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
    letter-spacing: -0.5px;
    position: relative;
    display: inline-block;
    width: 100%;
}

.homepage-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #ef4444, #8b5cf6);
    border-radius: 2px;
}

.section-content {
    color: #e5e7eb;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
}

.homepage-image img {
    display: block;
    margin: 2rem auto;
    max-width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(139, 92, 246, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

.homepage-image img:hover {
    transform: scale(1.02);
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.4);
}

.video-container {
    margin: 2rem 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(139, 92, 246, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    background: rgba(26, 26, 46, 0.5);
}

.homepage-content {
    padding: 4rem 0;
}

.homepage-content h2 {
    color: #fff;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
    letter-spacing: -0.5px;
}

/* Footer */
custom-footer,
.main-footer {
    background: rgba(26, 26, 46, 0.8);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(139, 92, 246, 0.2);
    padding: 2rem 0;
    margin-top: auto;
    text-align: center;
}

.footer-content p {
    color: #9ca3af;
}

/* Products Page */
.products-page {
    padding: 2rem 0;
    color: #e5e7eb;
}

.products-page h1 {
    color: #ffffff;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.products-page p {
    color: #9ca3af;
}

.products-filters {
    background: rgba(26, 26, 46, 0.5);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.filter-form {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: flex-end;
}

.filter-group {
    flex: 1;
    min-width: 200px;
    position: relative;
}

.search-input,
.category-select {
    width: 100%;
    padding: 0.875rem 1rem;
    background: rgba(10, 10, 10, 0.5);
    border: 1px solid rgba(139, 92, 246, 0.2);
    color: #e5e7eb;
    font-size: 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.search-input:focus,
.category-select:focus {
    outline: none;
    border-color: #8b5cf6;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
    background: rgba(26, 26, 46, 0.7);
}

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(26, 26, 46, 0.95);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-top: none;
    border-radius: 0 0 12px 12px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    margin-top: -1px;
    backdrop-filter: blur(10px);
}

.search-suggestion-item {
    display: block;
    padding: 0.75rem 1rem;
    color: #e5e7eb;
    text-decoration: none;
    border-bottom: 1px solid rgba(139, 92, 246, 0.1);
    transition: all 0.3s ease;
}

.search-suggestion-item:last-child {
    border-bottom: none;
}

.search-suggestion-item:hover {
    background: rgba(139, 92, 246, 0.1);
    color: #fff;
}

.search-suggestion-item strong {
    display: block;
    margin-bottom: 0.25rem;
    color: #fff;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.product-card {
    background: rgba(26, 26, 46, 0.5);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    position: relative;
    backdrop-filter: blur(10px);
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(139, 92, 246, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 30px rgba(139, 92, 246, 0.4);
    border-color: rgba(139, 92, 246, 0.4);
}

.product-card:hover::before {
    opacity: 1;
}

.product-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: rgba(10, 10, 10, 0.5);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.product-info {
    padding: 1.5rem;
}

.product-info h3 {
    margin-bottom: 0.5rem;
}

.product-info h3 a {
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 600;
}

.product-info h3 a:hover {
    color: #8b5cf6;
    text-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
}

.product-sku {
    color: #9ca3af;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.product-categories {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.category-badge {
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: #8b5cf6;
    padding: 0.375rem 0.875rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.category-badge:hover {
    background: rgba(139, 92, 246, 0.25);
    border-color: #8b5cf6;
}

.product-items {
    color: #9ca3af;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.product-price {
    color: #3b82f6;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.subscription-badge {
    display: block;
    font-size: 0.875rem;
    color: #9ca3af;
    margin-top: 0.25rem;
}

.no-products {
    text-align: center;
    padding: 4rem 2rem;
    color: #9ca3af;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(75, 85, 99, 0.3);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

.page-info {
    color: #e5e7eb;
    padding: 0 1rem;
}

/* Single Product Page */
.product-page {
    padding: 2rem 0;
}

.product-details {
    background: rgba(26, 26, 46, 0.5);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.product-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.product-image-large {
    width: 100%;
    background: rgba(10, 10, 10, 0.5);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 12px;
    overflow: hidden;
}

.product-image-large img {
    width: 100%;
    height: auto;
    display: block;
}

.product-info-main h1 {
    color: #fff;
    margin-bottom: 1rem;
    font-weight: 700;
    font-size: 2.5rem;
    letter-spacing: -0.5px;
}

.product-price-large {
    margin: 1.5rem 0;
}

.product-price-large .price {
    color: #3b82f6;
    font-size: 2rem;
    font-weight: 700;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
}

.quantity-selector label {
    color: #e5e7eb;
    font-weight: 500;
}

.quantity-selector input {
    width: 80px;
    padding: 0.5rem;
    background: rgba(10, 10, 10, 0.5);
    border: 1px solid rgba(139, 92, 246, 0.2);
    color: #e5e7eb;
    border-radius: 6px;
    text-align: center;
}

.quantity-selector input:focus {
    outline: none;
    border-color: #8b5cf6;
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.3);
}

.product-items-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(139, 92, 246, 0.2);
}

.product-items-section h2 {
    color: #fff;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
}

.item-card {
    background: rgba(10, 10, 10, 0.5);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    transition: all 0.3s ease;
}

.item-card:hover {
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
    transform: translateY(-4px);
}

.item-card img {
    width: 100%;
    height: auto;
    margin-bottom: 0.5rem;
}

.item-card .item-name {
    color: #e5e7eb;
    font-size: 0.875rem;
}

/* Cart Page */
.cart-page {
    padding: 2rem 0;
}

.empty-cart {
    text-align: center;
    padding: 4rem 2rem;
    color: #9ca3af;
}

.cart-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.cart-items {
    background: rgba(26, 26, 46, 0.5);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
}

.cart-table th {
    text-align: left;
    padding: 1rem;
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
    color: #fff;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cart-table td {
    padding: 1rem;
    border-bottom: 1px solid rgba(139, 92, 246, 0.1);
    color: #e5e7eb;
}

.cart-table tr:last-child td {
    border-bottom: none;
}

.cart-product {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cart-product img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.cart-product-name {
    font-weight: 600;
    color: #fff;
}

.cart-product-sku {
    font-size: 0.875rem;
    color: #9ca3af;
}

.cart-quantity {
    width: 60px;
    padding: 0.5rem;
    background: rgba(10, 10, 10, 0.5);
    border: 1px solid rgba(139, 92, 246, 0.2);
    color: #e5e7eb;
    border-radius: 6px;
    text-align: center;
}

.cart-total {
    font-weight: 700;
    color: #3b82f6;
    font-size: 1.125rem;
}

.cart-summary {
    background: rgba(26, 26, 46, 0.5);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    height: fit-content;
    backdrop-filter: blur(10px);
}

.summary-box h2 {
    color: #fff;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(139, 92, 246, 0.1);
    color: #e5e7eb;
}

.summary-row:last-child {
    border-bottom: none;
    margin-top: 0.5rem;
    padding-top: 1rem;
    border-top: 2px solid rgba(139, 92, 246, 0.3);
    font-weight: 700;
    font-size: 1.25rem;
    color: #fff;
}

/* Checkout Page */
.checkout-page {
    padding: 2rem 0;
}

.checkout-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.checkout-form-section {
    background: rgba(26, 26, 46, 0.5);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 12px;
    padding: 2rem;
    backdrop-filter: blur(10px);
}

.checkout-box h2 {
    color: #fff;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.checkout-form {
    margin-top: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #e5e7eb;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.875rem 1rem;
    background: rgba(10, 10, 10, 0.5);
    border: 1px solid rgba(139, 92, 246, 0.2);
    color: #e5e7eb;
    font-size: 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #8b5cf6;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
    background: rgba(26, 26, 46, 0.7);
}

.form-group small {
    display: block;
    margin-top: 0.25rem;
    color: #9ca3af;
    font-size: 0.875rem;
}

.info-display {
    background: rgba(10, 10, 10, 0.5);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 8px;
    padding: 1rem;
    color: #e5e7eb;
}

.checkout-actions {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-top: 2rem;
}

.checkout-summary {
    position: sticky;
    top: 100px;
}

.order-items {
    margin-bottom: 1.5rem;
}

.order-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(139, 92, 246, 0.1);
    color: #e5e7eb;
}

.order-item:last-child {
    border-bottom: none;
}

/* Order Success Page */
.order-success-page {
    padding: 4rem 0;
    text-align: center;
}

.success-box {
    background: rgba(26, 26, 46, 0.5);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 12px;
    padding: 3rem;
    max-width: 600px;
    margin: 0 auto;
    backdrop-filter: blur(10px);
}

.success-box h1 {
    color: #00ff9d;
    margin-bottom: 1rem;
    font-size: 2rem;
}

.order-details {
    margin-top: 2rem;
    text-align: left;
}

.order-details h2 {
    color: #fff;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(139, 92, 246, 0.1);
    color: #e5e7eb;
}

.detail-row:last-child {
    border-bottom: none;
    margin-top: 0.5rem;
    padding-top: 1rem;
    border-top: 2px solid rgba(139, 92, 246, 0.3);
}

.detail-row .label {
    color: #9ca3af;
}

.detail-row .value {
    color: #fff;
    font-weight: 600;
}

.detail-row .value.total {
    color: #3b82f6;
    font-size: 1.25rem;
}

.success-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

/* Orders Page */
.orders-page {
    padding: 2rem 0;
}

.orders-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.order-card {
    background: rgba(26, 26, 46, 0.5);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.order-card:hover {
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
    transform: translateY(-4px);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.order-number {
    font-weight: 700;
    color: #fff;
    font-size: 1.125rem;
}

.order-date {
    color: #9ca3af;
    font-size: 0.875rem;
}

.order-status {
    margin-top: 1rem;
}

.status-badge {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-completed {
    background: rgba(0, 255, 157, 0.15);
    color: #00ff9d;
    border: 1px solid rgba(0, 255, 157, 0.3);
}

.status-pending {
    background: rgba(255, 193, 7, 0.15);
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.status-failed,
.status-refunded {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Account Page */
.account-page {
    padding: 2rem 0;
}

.account-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.account-section {
    background: rgba(26, 26, 46, 0.5);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 12px;
    padding: 2rem;
    backdrop-filter: blur(10px);
}

.account-section h2 {
    color: #fff;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.account-detail {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(139, 92, 246, 0.1);
    color: #e5e7eb;
}

.account-detail:last-child {
    border-bottom: none;
}

.account-detail .label {
    color: #9ca3af;
}

.account-detail .value {
    color: #fff;
    font-weight: 600;
}

.btn-link,
.btn-unlink {
    background: transparent;
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: #8b5cf6;
    box-shadow: none;
}

.btn-link:hover,
.btn-unlink:hover {
    background: rgba(139, 92, 246, 0.1);
    border-color: #8b5cf6;
}

.btn-steam {
    background: linear-gradient(135deg, #171a21, #1b2838);
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: #fff;
}

.btn-steam:hover {
    background: linear-gradient(135deg, #1b2838, #2a475e);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
}

/* Authentication Pages */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    padding: 2rem 0;
}

.auth-container .container {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 100%;
    width: 100%;
}

.auth-box {
    background: rgba(26, 26, 46, 0.8);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 16px;
    padding: 2.5rem;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    margin: 0 auto;
}

.auth-box h1 {
    color: #fff;
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 700;
    font-size: 2rem;
    letter-spacing: -0.5px;
}

.auth-form {
    margin-bottom: 1.5rem;
}

.auth-divider {
    text-align: center;
    margin: 1.5rem 0;
    position: relative;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 45%;
    height: 1px;
    background: rgba(139, 92, 246, 0.2);
}

.auth-divider::before {
    left: 0;
}

.auth-divider::after {
    right: 0;
}

.auth-divider span {
    background: rgba(26, 26, 46, 0.8);
    padding: 0 1rem;
    color: #9ca3af;
    position: relative;
    z-index: 1;
}

/* Admin Dashboard */
.admin-dashboard {
    padding: 2rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: rgba(26, 26, 46, 0.5);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ef4444, #8b5cf6);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 30px rgba(139, 92, 246, 0.4);
    border-color: rgba(139, 92, 246, 0.4);
}

.stat-card:hover::before {
    transform: scaleX(1);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    color: #9ca3af;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-section {
    background: rgba(26, 26, 46, 0.5);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.admin-section h2 {
    color: #fff;
    margin-bottom: 1.5rem;
    font-weight: 700;
    font-size: 1.75rem;
    letter-spacing: -0.5px;
    position: relative;
    padding-bottom: 0.75rem;
}

.admin-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #ef4444, #8b5cf6);
    border-radius: 2px;
}

.sales-panel {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(10, 10, 10, 0.5);
    border-radius: 8px;
    overflow: hidden;
}

.admin-table th {
    text-align: left;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
    color: #fff;
    background: rgba(26, 26, 46, 0.5);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-table td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(139, 92, 246, 0.1);
    color: #e5e7eb;
}

.admin-table tr:hover {
    background: rgba(139, 92, 246, 0.05);
}

.admin-table tr:last-child td {
    border-bottom: none;
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.action-card {
    background: rgba(26, 26, 46, 0.5);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    text-decoration: none;
    color: #fff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.action-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ef4444, #8b5cf6);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.action-card:hover {
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 30px rgba(139, 92, 246, 0.4);
    transform: translateY(-5px);
}

.action-card:hover::before {
    transform: scaleX(1);
}

.action-card h3 {
    color: #fff;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.action-card p {
    color: #9ca3af;
    font-size: 0.875rem;
}

.status-select {
    padding: 0.5rem 1rem;
    background: rgba(10, 10, 10, 0.5);
    border: 1px solid rgba(139, 92, 246, 0.2);
    color: #e5e7eb;
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
}

.status-select:focus {
    outline: none;
    border-color: #8b5cf6;
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.3);
}

/* Error Pages */
.error-page {
    padding: 4rem 0;
    text-align: center;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.error-content {
    max-width: 600px;
}

.error-content h1 {
    font-size: 6rem;
    font-weight: 800;
    background: linear-gradient(90deg, #ef4444, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.error-content h2 {
    color: #fff;
    margin-bottom: 1rem;
    font-size: 2rem;
}

.error-content p {
    color: #9ca3af;
    margin-bottom: 2rem;
}

/* Global mobile list/grid improvements */
@media (max-width: 768px) {
    /* Convert lists to grids on mobile */
    ul:not(.no-grid-mobile),
    ol:not(.no-grid-mobile),
    .list:not(.no-grid-mobile),
    [class*="list"]:not(.no-grid-mobile) {
        display: grid !important;
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important;
        gap: 1rem !important;
        list-style: none !important;
        padding-left: 0 !important;
    }
    
    /* Ensure product grids are responsive */
    .products-grid,
    [class*="product-grid"],
    [class*="products-grid"] {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
        gap: 1.5rem !important;
    }
    
    /* Items grid responsive */
    .items-grid,
    [class*="items-grid"],
    [class*="item-grid"] {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)) !important;
        gap: 1rem !important;
    }
    
    /* Admin tables become cards on mobile */
    .admin-table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Ensure containers have proper padding */
    .container,
    .mx-auto,
    main {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    /* Make buttons full width on mobile when in forms */
    form .btn,
    form button[type="submit"],
    .form-group .btn {
        width: 100% !important;
        margin-bottom: 0.5rem;
    }
    
    /* Improve text readability */
    body {
        font-size: 16px !important;
        line-height: 1.6 !important;
    }
    
    /* Ensure modals are mobile-friendly */
    .modal,
    [class*="modal"] {
        width: 95% !important;
        max-width: 95% !important;
        margin: 1rem auto !important;
        max-height: 90vh !important;
        overflow-y: auto !important;
    }
    
    /* Make cards stack properly */
    .card,
    [class*="card"] {
        margin-bottom: 1rem;
    }
    
    /* Improve form inputs */
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="number"],
    textarea,
    select {
        font-size: 16px !important; /* Prevents zoom on iOS */
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
    }
    
    /* Admin table mobile improvements - horizontal scroll */
    .admin-table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        width: 100%;
    }
    
    .admin-table {
        font-size: 0.75rem;
        min-width: 600px; /* Ensure table doesn't get too compressed */
    }
    
    .admin-table th,
    .admin-table td {
        padding: 0.75rem 0.5rem;
        white-space: nowrap;
    }
    
    /* Ensure admin sections are mobile-friendly */
    .admin-section,
    .admin-container {
        padding: 1rem !important;
    }
    
    /* Make stat cards responsive */
    .stat-card,
    [class*="stat"] {
        margin-bottom: 1rem;
    }
}

/* Responsive Design */
@media (max-width: 968px) {
    .checkout-content {
        grid-template-columns: 1fr;
    }

    .checkout-summary {
        position: static;
    }

    .checkout-actions {
        flex-direction: column;
    }

    .success-actions {
        flex-direction: column;
    }

    .product-main {
        grid-template-columns: 1fr;
    }

    .cart-content {
        grid-template-columns: 1fr;
    }

    .account-info {
        grid-template-columns: 1fr;
    }

    .homepage-hero h1 {
        font-size: 2rem;
    }

    .homepage-hero p {
        font-size: 1.2rem;
    }

    .auth-box {
        margin: 0 1rem;
    }

    .main-nav {
        gap: 1rem;
        flex-wrap: wrap;
    }

    .admin-table {
        font-size: 0.875rem;
    }

    .admin-table th,
    .admin-table td {
        padding: 0.5rem;
    }
}

@media (max-width: 768px) {

    .homepage-hero {
        padding: 4rem 0;
    }

    .homepage-hero h1 {
        font-size: 2rem;
    }

    .homepage-section h2 {
        font-size: 2rem;
    }
}

/* Theme Toggle Button */
.theme-toggle {
    background: transparent;
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: #e5e7eb;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.theme-toggle:hover {
    background: rgba(139, 92, 246, 0.1);
    border-color: #8b5cf6;
}

/* Dark mode styles */
.dark {
    /* Dark mode is default, so these are already applied */
}

/* Light mode styles (if theme toggle is implemented) */
:root:not(.dark) {
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 50%, #d0d0d0 100%);
    color: #1a1a1a;
}

/* Additional utility classes for stats animation */
#stat-routes,
#stat-latency,
#stat-uptime,
#stat-nodes {
    font-family: 'JetBrains Mono', monospace;
    color: #00ff9d;
    text-shadow: 0 0 5px #00ff9d;
}

#load-bar {
    height: 4px;
    background: linear-gradient(90deg, #ef4444, #8b5cf6);
    border-radius: 2px;
    transition: width 0.3s ease;
}

/* Dashboard Theme for Customer Pages */
.orders-page,
.account-container,
.cart-page,
.order-detail-page,
.checkout-page,
.product-page,
.success-page,
.order-success-page {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(75, 85, 99, 0.3);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.orders-page h1,
.account-container h1,
.cart-page h1,
.order-detail-page h1,
.checkout-page h1,
.product-page h1,
.success-page h1,
.order-success-page h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 2rem;
    background: linear-gradient(90deg, #ef4444, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Order Cards */
.order-card {
    background: rgba(26, 26, 46, 0.7);
    border: 1px solid rgba(75, 85, 99, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.order-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3), 0 0 15px rgba(139, 92, 246, 0.2);
    border-color: rgba(139, 92, 246, 0.5);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.order-header h3 {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.order-date {
    color: #9ca3af;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.order-summary {
    display: flex;
    gap: 2rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.summary-item {
    display: flex;
    gap: 0.5rem;
}

.summary-item label {
    color: #9ca3af;
    font-weight: 500;
}

.summary-item .total {
    color: #ef4444;
    font-weight: 700;
    font-size: 1.125rem;
}

.order-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

/* Order Detail Page */
.order-detail-content {
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
}

.order-info-card,
.order-items-card,
.order-status-card {
    background: rgba(26, 26, 46, 0.7);
    border: 1px solid rgba(75, 85, 99, 0.3);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.order-info-card h2,
.order-items-card h2,
.order-status-card h2 {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(139, 92, 246, 0.3);
    padding-bottom: 0.75rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.info-item label {
    color: #9ca3af;
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.info-item .value {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
}

.order-items-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.order-items-table th {
    background: rgba(26, 26, 46, 0.9);
    color: #e5e7eb;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(75, 85, 99, 0.3);
}

.order-items-table td {
    padding: 1rem;
    border-bottom: 1px solid rgba(75, 85, 99, 0.2);
    color: #e5e7eb;
}

.order-items-table tbody tr:hover {
    background: rgba(26, 26, 46, 0.5);
}

.order-items-table tfoot {
    font-weight: 700;
}

.status-history {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.history-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.5);
    border-radius: 8px;
    border-left: 3px solid rgba(139, 92, 246, 0.5);
}

.history-date {
    color: #9ca3af;
    font-size: 0.875rem;
}

.history-notes {
    color: #e5e7eb;
    margin-top: 0.25rem;
}

/* Account Page */
.account-section {
    background: rgba(26, 26, 46, 0.7);
    border: 1px solid rgba(75, 85, 99, 0.3);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.account-section h2 {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(139, 92, 246, 0.3);
    padding-bottom: 0.75rem;
}

.account-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.account-info .info-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Cart Page */
.cart-content {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 2rem;
    margin-top: 2rem;
}

.cart-items {
    background: rgba(26, 26, 46, 0.7);
    border: 1px solid rgba(75, 85, 99, 0.3);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.cart-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.cart-table th {
    background: rgba(26, 26, 46, 0.9);
    color: #e5e7eb;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(75, 85, 99, 0.3);
}

.cart-table td {
    padding: 1rem;
    border-bottom: 1px solid rgba(75, 85, 99, 0.2);
    color: #e5e7eb;
}

.cart-table tbody tr:hover {
    background: rgba(26, 26, 46, 0.5);
}

.cart-summary {
    background: rgba(26, 26, 46, 0.7);
    border: 1px solid rgba(75, 85, 99, 0.3);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    position: sticky;
    top: 100px;
    height: fit-content;
}

.cart-summary h2 {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(75, 85, 99, 0.2);
}

.summary-row.total {
    border-top: 2px solid rgba(139, 92, 246, 0.3);
    margin-top: 1rem;
    padding-top: 1rem;
    font-weight: 700;
    font-size: 1.25rem;
    color: #ef4444;
}

.empty-orders,
.empty-cart {
    text-align: center;
    padding: 4rem 2rem;
    color: #9ca3af;
}

.empty-orders p,
.empty-cart p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

@media (max-width: 968px) {
    .cart-content {
        grid-template-columns: 1fr;
    }
    
    .cart-summary {
        position: static;
    }
    
    .order-detail-content {
        grid-template-columns: 1fr;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .account-info {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   GDPR Cookie Consent Styles
   ============================================ */

/* Cookie Consent Banner */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    border-top: 2px solid rgba(139, 92, 246, 0.3);
    padding: 1.5rem;
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
}

.cookie-consent-banner.show {
    transform: translateY(0);
}

.cookie-consent-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.cookie-consent-text {
    flex: 1;
    min-width: 300px;
}

.cookie-consent-text h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #8b5cf6;
    margin-bottom: 0.5rem;
}

.cookie-consent-text p {
    font-size: 0.875rem;
    color: #9ca3af;
    line-height: 1.6;
    margin: 0;
}

.cookie-consent-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 0.625rem 1.25rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    white-space: nowrap;
}

.cookie-btn-primary {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: #ffffff;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.cookie-btn-primary:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

.cookie-btn-secondary {
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.cookie-btn-secondary:hover {
    background: rgba(139, 92, 246, 0.2);
    transform: translateY(-2px);
}

/* Cookie Preferences Modal */
.cookie-preferences-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cookie-preferences-modal.show {
    opacity: 1;
}

.cookie-preferences-content {
    background: rgba(10, 10, 10, 0.95);
    border: 2px solid rgba(139, 92, 246, 0.3);
    border-radius: 16px;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.cookie-preferences-modal.show .cookie-preferences-content {
    transform: scale(1);
}

.cookie-preferences-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
}

.cookie-preferences-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #8b5cf6;
    margin: 0;
}

.cookie-close-btn {
    background: transparent;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cookie-close-btn:hover {
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
}

.cookie-preferences-body {
    padding: 1.5rem;
}

.cookie-preference-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1.25rem;
    margin-bottom: 1rem;
    background: rgba(139, 92, 246, 0.05);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 12px;
    gap: 1.5rem;
}

.cookie-preference-info {
    flex: 1;
}

.cookie-preference-info h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.cookie-preference-info p {
    font-size: 0.875rem;
    color: #9ca3af;
    line-height: 1.6;
    margin: 0;
}

/* Toggle Switch */
.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
    flex-shrink: 0;
}

.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(139, 92, 246, 0.2);
    transition: 0.3s;
    border-radius: 26px;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.cookie-toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 2px;
    bottom: 2px;
    background-color: #9ca3af;
    transition: 0.3s;
    border-radius: 50%;
}

.cookie-toggle input:checked + .cookie-toggle-slider {
    background-color: rgba(139, 92, 246, 0.4);
    border-color: rgba(139, 92, 246, 0.5);
}

.cookie-toggle input:checked + .cookie-toggle-slider:before {
    transform: translateX(24px);
    background-color: #8b5cf6;
}

.cookie-toggle input:disabled + .cookie-toggle-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

.cookie-preferences-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1.5rem;
    border-top: 1px solid rgba(139, 92, 246, 0.2);
}

@media (max-width: 768px) {
    .cookie-consent-content {
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-consent-actions {
        width: 100%;
        justify-content: stretch;
    }

    .cookie-btn {
        flex: 1;
        min-width: 0;
    }

    .cookie-preference-item {
        flex-direction: column;
        gap: 1rem;
    }

    .cookie-preferences-footer {
        flex-direction: column;
    }

    .cookie-preferences-footer .cookie-btn {
        width: 100%;
    }
}
