/* ===== MODERN SOULY STYLES (CLEAN VERSION) ===== */

/* CSS Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* CSS Variables */
:root {
    /* Modern Dark Theme */
    --bg: #0a0a0a;
    --surface: #141414;
    --elevated: #1a1a1a;
    --border: #2a2a2a;
    --text: #ffffff;
    --text-dim: #a3a3a3;
    --text-muted: #6b7280;
    --accent: #3b82f6;
    --accent-dim: #2563eb;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
}

/* Light Theme */
[data-theme="light"] {
    --bg: #ffffff;
    --surface: #f9fafb;
    --elevated: #ffffff;
    --border: #e5e7eb;
    --text: #111827;
    --text-dim: #6b7280;
    --text-muted: #9ca3af;
    --accent: #3b82f6;
    --accent-dim: #2563eb;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
}

/* Body & Global */
body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #0a0a0a 0%, rgba(14, 14, 14, 0.95) 100%);
    color: var(--text);
    transition: background-color 0.3s, color 0.3s;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Hide scrollbar when hero page is shown */
body.hero-active {
    overflow: hidden;
    height: 100vh;
}

/* Make sure only hero page is visible when active */
body.hero-active .welcome,
body.hero-active .retro-homepage,
body.hero-active #items,
body.hero-active .items,
body.hero-active #detail,
body.hero-active .detail,
body.hero-active .builder-modal {
    display: none !important;
    visibility: hidden !important;
}

[data-theme="light"] body {
    background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%) !important;
}

/* ===== MODERN NAVBAR ===== */

.modern-navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: rgba(10, 10, 10, 0.4);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    z-index: 1001;
    padding: 0 2rem;
    transition: all 0.3s ease;
}

.modern-navbar:hover {
    background: rgba(10, 10, 10, 0.98);
    border-bottom-color: rgba(59, 130, 246, 0.3);
}

/* Navbar Brand */
.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.02);
}

.brand-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.3));
}

.brand-name {
    font-family: 'Press Start 2P', cursive;
    font-size: 1.2rem;
    font-weight: 400;
    background: linear-gradient(135deg, #ffffff 0%, #a3a3a3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.02em;
}

/* Navbar Navigation */
.navbar-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.nav-link {
    font-family: 'Press Start 2P', cursive;
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: none;
    border-radius: 12px;
    color: var(--text-dim);
    font-size: 0.65rem;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    letter-spacing: 0.02em;
}

.nav-link:hover {
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent);
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15);
}

/* Navbar Auth */
.navbar-auth {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.signin-btn {
    font-family: 'Press Start 2P', cursive;
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: none;
    border-radius: 12px;
    color: var(--text-dim);
    font-size: 0.65rem;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    letter-spacing: 0.02em;
}

.signin-btn:hover {
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent);
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15);
}

.discord-btn {
    background: transparent;
    color: var(--text-dim);
    border: none;
    padding: 0.75rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.75rem;
    font-size: 0.875rem;
    position: relative;
}

.discord-btn:hover {
    color: #5865F2;
    background: rgba(88, 101, 242, 0.1);
    transform: translateY(-1px);
}

.discord-btn svg {
    width: 20px;
    height: 20px;
    transition: all 0.3s ease;
}

.discord-btn:hover svg {
    transform: scale(1.1);
}

/* ===== MODERN HERO PAGE ===== */

.modern-hero-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--bg);
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    overflow: hidden;
}

/* Video Background */
.hero-video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.hero-video {
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    border: none;
    outline: none;
    position: absolute;
    top: 0;
    left: 0;
    transform: scale(1.1); /* Slight scale to ensure no black bars */
}

/* Video Overlay */
.modern-hero-page::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: -1;
}

/* Hero Background Animation */
.modern-hero-page::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(16, 185, 129, 0.06) 0%, transparent 50%);
    animation: heroFloat 20s ease-in-out infinite;
}

@keyframes heroFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(2deg); }
    66% { transform: translateY(10px) rotate(-1deg); }
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
}

.hero-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.hero-brand-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    filter: drop-shadow(0 0 20px rgba(59, 130, 246, 0.4));
    animation: heroLogoPulse 3s ease-in-out infinite;
}

@keyframes heroLogoPulse {
    0%, 100% { 
        filter: drop-shadow(0 0 20px rgba(59, 130, 246, 0.4)) brightness(1); 
        transform: scale(1);
    }
    50% { 
        filter: drop-shadow(0 0 30px rgba(59, 130, 246, 0.6)) brightness(1.1); 
        transform: scale(1.05);
    }
}

.hero-brand-text {
    font-family: 'Press Start 2P', cursive;
    font-size: 2.5rem;
    font-weight: 400;
    background: linear-gradient(135deg, #ffffff 0%, #a3a3a3 50%, #6b7280 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.03em;
    text-shadow: 0 0 40px rgba(255, 255, 255, 0.1);
}

/* Hero Search Section */
.hero-search-section {
    margin-top: 2rem;
}

.search-container {
    position: relative;
    margin-bottom: 2rem;
}

.hero-search-input {
    width: 100%;
    padding: 1.25rem 1.5rem;
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    font-size: 1.125rem;
    color: var(--text);
    outline: none;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.hero-search-input:focus {
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 
        0 0 0 3px rgba(59, 130, 246, 0.1),
        0 8px 32px rgba(59, 130, 246, 0.2);
    background: rgba(20, 20, 20, 0.8);
}

.hero-search-input::placeholder {
    color: var(--text-muted);
}

/* Typing Animation */
.typing-animation {
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.125rem;
    color: var(--text-dim);
    pointer-events: none;
    opacity: 0;
    white-space: nowrap;
    overflow: hidden;
    max-width: calc(100% - 3rem);
    width: auto;
}

.hero-search-input:placeholder-shown ~ .typing-animation {
    opacity: 1;
}

.hero-search-input:not(:placeholder-shown) ~ .typing-animation,
.hero-search-input:focus ~ .typing-animation {
    opacity: 0;
}


.typing-cursor::after {
    content: '|';
    animation: blink 1s infinite;
    color: var(--accent);
}

@keyframes blink {
    0%, 50% { border-right: 2px solid var(--accent); }
    51%, 100% { border-right: none; }
}

/* Hero Description */
.hero-description {
    margin-top: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.feature-text {
    text-align: center;
    margin-top: 1.5rem;
}

.feature-text p {
    font-family: 'Press Start 2P', cursive;
    font-size: 0.7rem;
    color: var(--text-dim);
    margin: 0.75rem 0;
    letter-spacing: 0.02em;
    line-height: 1.6;
}

/* Hero Search Suggestions */
.hero-search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, 
        rgba(20, 20, 20, 0.95) 0%, 
        rgba(15, 15, 15, 0.98) 100%
    );
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    margin-top: 0.5rem;
    max-height: 300px;
    overflow-y: auto;
    z-index: 200;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.8),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.hero-suggestion-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.hero-suggestion-item:hover,
.hero-suggestion-item.selected {
    background: rgba(59, 130, 246, 0.1);
    border-left: 3px solid rgba(59, 130, 246, 0.5);
}

.hero-suggestion-icon-container {
    position: relative;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.05) 0%, 
        rgba(255, 255, 255, 0.02) 100%
    );
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.hero-suggestion-sprite {
    display: block;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

.hero-suggestion-fallback-icon {
    font-size: 1rem;
    opacity: 0.8;
}

.hero-suggestion-content {
    flex: 1;
    min-width: 0;
}

.hero-suggestion-name {
    font-family: 'Press Start 2P', cursive;
    font-size: 0.7rem;
    font-weight: 400;
    color: var(--text);
    margin: 0 0 0.25rem 0;
    letter-spacing: 0.02em;
    line-height: 1.2;
    word-break: break-word;
}

.hero-suggestion-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.6rem;
    color: var(--text-dim);
    font-family: 'Press Start 2P', cursive;
    letter-spacing: 0.01em;
}

.hero-suggestion-type {
    color: var(--accent);
}

.hero-suggestion-rarity {
    opacity: 0.8;
}

/* Custom scrollbar for hero suggestions */
.hero-search-suggestions::-webkit-scrollbar {
    width: 6px;
}

.hero-search-suggestions::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.hero-search-suggestions::-webkit-scrollbar-thumb {
    background: rgba(59, 130, 246, 0.3);
    border-radius: 3px;
}

.hero-search-suggestions::-webkit-scrollbar-thumb:hover {
    background: rgba(59, 130, 246, 0.5);
}

/* ===== SIGN-IN MODAL ===== */

.signin-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    cursor: pointer;
}

.signin-modal-content {
    position: relative;
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.95) 0%, rgba(10, 10, 10, 0.98) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    max-width: 400px;
    width: 100%;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.05);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

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

.modal-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-dim);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem;
    transition: all 0.2s ease;
    border-radius: 8px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text);
}

.signin-options {
    margin-bottom: 1.5rem;
}

.signin-btn-discord,
.signin-btn-email {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: transparent;
    color: var(--text);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    backdrop-filter: blur(10px);
    margin-bottom: 1rem;
}

.signin-btn-discord:hover {
    background: rgba(114, 137, 218, 0.1);
    border-color: rgba(114, 137, 218, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(114, 137, 218, 0.15);
}

.signin-btn-email:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15);
}

.signin-icon {
    font-size: 1.2rem;
    opacity: 0.9;
}

.divider {
    position: relative;
    text-align: center;
    margin: 1.5rem 0;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    z-index: -1;
}

.divider span {
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.95) 0%, rgba(10, 10, 10, 0.98) 100%);
    padding: 0 1rem;
}

.email-signin-form {
    margin: 0;
}

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

.signin-input {
    width: 100%;
    padding: 1rem 1.25rem;
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-size: 1rem;
    color: var(--text);
    outline: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.signin-input:focus {
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 
        0 0 0 3px rgba(59, 130, 246, 0.1),
        0 8px 32px rgba(59, 130, 246, 0.1);
    background: rgba(20, 20, 20, 0.8);
}

.signin-input::placeholder {
    color: var(--text-muted);
}

.modal-footer {
    text-align: center;
    margin-top: 1.5rem;
}

.terms-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin: 0;
}

/* ===== RESPONSIVE DESIGN ===== */

@media (max-width: 768px) {
    .modern-navbar {
        padding: 0 1rem;
        height: 60px;
    }
    
    .navbar-nav {
        gap: 0.25rem;
    }
    
    .nav-link {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
    
    .signin-btn {
        padding: 0.5rem 1.25rem;
        font-size: 0.55rem;
    }
    
    .brand-name {
        font-size: 1rem;
    }
    
    .hero-brand-text {
        font-size: 1.8rem;
    }
    
    .hero-brand-logo {
        width: 60px;
        height: 60px;
    }
    
    .feature-text p {
        font-size: 0.6rem;
        margin: 0.5rem 0;
    }
}

@media (max-width: 480px) {
    .modern-navbar {
        padding: 0 0.75rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.5rem;
    }
    
    .hero-content {
        padding: 0 1rem;
        margin-top: -2rem;
    }
    
    .hero-brand {
        flex-direction: column;
        gap: 0.5rem;
        margin-bottom: 2rem;
    }
    
    .hero-brand-text {
        font-size: 1.5rem;
    }
    
    .feature-text p {
        font-size: 0.55rem;
        margin: 0.4rem 0;
    }
    
    .signin-modal-content {
        padding: 1.5rem;
        margin: 1rem;
        border-radius: 16px;
    }
    
    .modal-header h2 {
        font-size: 1.25rem;
    }
    
    .signin-btn-discord,
    .signin-btn-email,
    .signin-input {
        padding: 0.875rem 1.25rem;
        font-size: 0.95rem;
    }
}

/* ===== HIDE OLD ELEMENTS ===== */

/* Hide old welcome page and retro elements */
.welcome,
.retro-homepage,
.retro-hero,
#items,
.items,
.filters,
.welcome .search-container,
.items .search-container,
#detail,
.detail,
#item-builder-modal,
#item-compare-modal,
.builder-modal {
    display: none !important;
}

/* Item icon styles for hero search suggestions */
.item-icon {
    width: 32px;
    height: 32px;
    background: var(--elevated);
    border: 1px solid var(--border);
    border-radius: 0;
    background-repeat: no-repeat;
    flex-shrink: 0;
    overflow: hidden;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

/* ===== COOKIE CONSENT STYLES ===== */

.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    z-index: 10000;
    animation: slideUp 0.3s ease-out;
}

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

.cookie-text h3 {
    font-family: 'Press Start 2P', cursive;
    font-size: 0.7rem;
    color: var(--text);
    margin: 0 0 0.5rem 0;
    letter-spacing: 0.02em;
}

.cookie-text p {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: var(--text-dim);
    margin: 0;
    line-height: 1.5;
    max-width: 600px;
}

.cookie-actions {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

.cookie-btn {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.cookie-btn.accept {
    background: var(--success);
    color: white;
}

.cookie-btn.accept:hover {
    background: #059669;
    transform: translateY(-1px);
}

.cookie-btn.decline {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-dim);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-btn.decline:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text);
}

.cookie-btn.settings {
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.cookie-btn.settings:hover {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.3);
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(100%);
        opacity: 0;
    }
}

/* Responsive Cookie Banner */
@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .cookie-actions {
        align-self: stretch;
        justify-content: space-between;
    }
    
    .cookie-btn {
        flex: 1;
        font-size: 0.75rem;
        padding: 0.5rem 0.8rem;
    }
}

/* ===== FOOTER STYLES ===== */

/* Main content area */
.main-content {
    flex: 1;
}

.site-footer {
    background: linear-gradient(135deg, rgba(15, 15, 15, 0.95), rgba(25, 25, 35, 0.9));
    padding: 1rem 0;
    font-family: 'Press Start 2P', cursive;
    flex-shrink: 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.copyright {
    font-size: 0.5rem;
    color: var(--text-primary);
    letter-spacing: 0.05em;
    text-shadow: 0 0 8px rgba(59, 130, 246, 0.3);
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .copyright,
    .discord-link {
        font-size: 0.75rem;
    }
}

/* ===== PRICE DISPLAY STYLES ===== */

/* Market Price Display - Beta Design */
.price-display-container {
    /* No extra margin - matches item-detail-section-content */
}

.market-price-display {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
}

.market-price-display::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.market-price-display:hover {
    border-color: var(--accent);
    background: rgba(59, 130, 246, 0.05);
}

.market-price-display:hover::before {
    opacity: 1;
}

.price-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.price-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Press Start 2P', cursive;
    font-size: 0.6rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    flex-shrink: 0;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    position: relative;
    flex-shrink: 0;
}

/* Status Colors */
.market-price-display.active .status-indicator {
    background: var(--success);
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
    animation: pulse-green 2s infinite;
}

.market-price-display.active .price-badge {
    color: var(--success);
}

.market-price-display.recent-sale .status-indicator {
    background: linear-gradient(45deg, var(--success), #22c55e);
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.3);
    animation: pulse-sale 2s infinite;
}

.market-price-display.recent-sale .price-badge {
    color: var(--success);
    background: rgba(16, 185, 129, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.market-price-display.old-sale .status-indicator {
    background: linear-gradient(45deg, #10b981, #059669);
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.market-price-display.old-sale .price-badge {
    color: #10b981;
}

.market-price-display.expired .status-indicator {
    background: var(--warning);
    box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.2);
}

.market-price-display.expired .price-badge {
    color: var(--warning);
}

.market-price-display.unavailable .status-indicator {
    background: var(--text-muted);
    opacity: 0.5;
}

.market-price-display.unavailable .price-badge {
    color: var(--text-muted);
}

.market-price-display.loading .status-indicator {
    background: var(--text-muted);
    animation: pulse-gray 1.5s infinite;
}

.market-price-display.loading .price-badge {
    color: var(--text-muted);
}

.market-price-display.error .status-indicator {
    background: var(--danger);
}

.market-price-display.error .price-badge {
    color: var(--danger);
}

.price-main {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    align-items: start;
}

.price-value-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.price-value {
    font-family: 'Press Start 2P', cursive;
    font-size: 1rem;
    color: var(--text);
    letter-spacing: 0.02em;
    margin: 0;
}

.price-context {
    margin: 0;
}

.price-context-text {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.02);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: inline-block;
}

.price-metadata {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.price-metadata-item {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.price-metadata-label {
    font-size: 0.65rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    font-weight: 600;
}

.listing-count,
.sales-count,
.last-seen,
.data-freshness {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    color: var(--text-muted);
    margin: 0;
}

.price-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.action-btn {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.5rem;
    color: var(--text-dim);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-btn:hover {
    background: var(--elevated);
    color: var(--text);
    border-color: var(--accent);
}

/* Compact Price Display for Search Results */
.market-price-compact {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 0.8rem;
    transition: all 0.2s ease;
}

.market-price-compact:hover {
    background: var(--elevated);
    border-color: var(--accent);
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
}

.status-dot.active {
    background: var(--success);
}

.status-dot.recent-sale {
    background: var(--success);
    box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.3);
}

.status-dot.old-sale {
    background: #10b981;
}

.status-dot.expired {
    background: var(--warning);
}

.status-dot.unavailable {
    background: var(--text-muted);
}

.compact-price {
    font-weight: 600;
    color: var(--text);
}

/* Removed: Result Item Layout for Price Display - no longer needed */

/* Loading States */
.loading-dots {
    display: flex;
    gap: 0.25rem;
    align-items: center;
}

.loading-dots span {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--text-muted);
    animation: loading-pulse 1.4s infinite ease-in-out;
}

.loading-dots span:nth-child(1) { animation-delay: -0.32s; }
.loading-dots span:nth-child(2) { animation-delay: -0.16s; }
.loading-dots span:nth-child(3) { animation-delay: 0s; }

/* Login Required State */
.market-price-display.login-required {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0.75rem;
}

.login-prompt-simple {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.login-text {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    color: var(--text-muted);
    flex: 1;
    line-height: 1.6;
}

.login-cta-btn {
    background: var(--accent);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-family: 'Press Start 2P', cursive;
    font-size: 0.6rem;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    white-space: nowrap;
}

.login-cta-btn:hover {
    background: var(--accent-dim);
    transform: translateY(-1px);
}

/* Compact Login */
.login-prompt-compact {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
}

.compact-login-btn {
    background: var(--accent);
    color: white;
    border: none;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-family: 'Press Start 2P', cursive;
    font-size: 0.55rem;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: all 0.2s ease;
}

.compact-login-btn:hover {
    background: var(--accent-dim);
}

/* Animations */
@keyframes pulse-green {
    0%, 100% { box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2); }
    50% { box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1); }
}

@keyframes pulse-sale {
    0%, 100% { box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.3); }
    50% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0.1); }
}

@keyframes pulse-gray {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes loading-pulse {
    0%, 80%, 100% { transform: scale(0); opacity: 0.5; }
    40% { transform: scale(1); opacity: 1; }
}

/* Responsive Design */
@media (max-width: 768px) {
    .price-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .price-actions {
        align-self: stretch;
        justify-content: flex-end;
    }
    
    .price-main {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .price-metadata {
        grid-template-columns: 1fr;
        gap: 0.4rem;
    }
    
    .price-metadata-item {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 0.5rem;
    }
}

/* ===== ACCOUNT DROPDOWN STYLES ===== */

/* User Info Container */
.user-info {
    position: relative;
    display: flex;
    align-items: center;
    z-index: 99999;
}

/* User Profile Button */
.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 8px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.user-profile:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.2);
}

/* Avatar Container */
.avatar-container {
    position: relative;
    display: flex;
    align-items: center;
}

.user-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.profile-notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--danger);
    color: white;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

/* User Name */
.user-name {
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
    font-family: 'Press Start 2P', cursive;
    font-size: 10px;
    letter-spacing: 0.5px;
}

/* Dropdown Arrow */
.dropdown-arrow {
    font-size: 10px;
    color: var(--text-dim);
    transition: transform 0.2s ease;
}

.user-info.open .dropdown-arrow {
    transform: rotate(180deg);
}

/* Account Menu Dropdown */
.account-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(20px);
    z-index: 99999;
    min-width: 180px;
    overflow: hidden;
    animation: fadeInDown 0.3s ease-out;
}

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

.account-menu-item {
    padding: 14px 18px;
    color: var(--text);
    font-family: 'Press Start 2P', cursive;
    font-size: 9px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.account-menu-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
    transition: left 0.5s ease;
}

.account-menu-item:hover::before {
    left: 100%;
}

.account-menu-item:hover {
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent);
}

.account-menu-item.logout {
    color: var(--danger);
}

.account-menu-item.logout:hover {
    background: rgba(239, 68, 68, 0.1);
}

.account-menu-divider {
    height: 1px;
    background: var(--border);
    margin: 4px 0;
}

/* Notification Badge in Menu */
.notification-badge {
    background: var(--danger);
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

/* Account Modal Styles */
.account-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100000;
    backdrop-filter: blur(10px);
}

.account-modal-content {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 0;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow: hidden;
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.account-modal-header {
    padding: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.account-modal-header h3 {
    font-family: 'Press Start 2P', cursive;
    font-size: 14px;
    color: var(--text);
    margin: 0;
    letter-spacing: 0.5px;
}

.close-account-modal {
    background: none;
    border: none;
    color: var(--text-dim);
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-account-modal:hover {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.account-modal-body {
    padding: 24px;
    max-height: 60vh;
    overflow-y: auto;
}

/* User Builds Container */
.user-builds-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.user-build-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 18px;
    transition: all 0.3s ease;
}

.user-build-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent);
    transform: translateY(-2px);
}

.build-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.build-card-header h4 {
    font-family: 'Press Start 2P', cursive;
    font-size: 11px;
    color: var(--text);
    margin: 0;
    letter-spacing: 0.5px;
}

.build-card-actions {
    display: flex;
    gap: 8px;
}

.load-build-btn, .delete-build-btn {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 6px 12px;
    border-radius: 6px;
    font-family: 'Press Start 2P', cursive;
    font-size: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.load-build-btn:hover {
    background: var(--accent);
    color: white;
}

.delete-build-btn {
    background: rgba(239, 68, 68, 0.1);
    border-color: var(--danger);
    color: var(--danger);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.delete-build-btn:hover {
    background: var(--danger);
    color: white;
}

.build-description {
    color: var(--text-dim);
    font-size: 12px;
    margin: 8px 0;
    line-height: 1.4;
}

.build-card-meta {
    display: flex;
    gap: 12px;
    font-size: 10px;
    color: var(--text-muted);
}

.no-builds {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-dim);
}

.loading {
    text-align: center;
    padding: 40px;
    color: var(--text-dim);
    font-family: 'Inter', sans-serif;
}

/* Account Info Styles */
.account-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.account-avatar-section {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.large-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent);
}

.account-details h4 {
    font-family: 'Press Start 2P', cursive;
    font-size: 12px;
    color: var(--text);
    margin: 0 0 8px 0;
    letter-spacing: 0.5px;
}

.account-email, .account-provider {
    color: var(--text-dim);
    font-size: 12px;
    margin: 4px 0;
}

.account-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.account-stat {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 16px;
    text-align: center;
}

.stat-label {
    display: block;
    color: var(--text-dim);
    font-size: 10px;
    margin-bottom: 8px;
    font-family: 'Press Start 2P', cursive;
    letter-spacing: 0.5px;
}

.stat-value {
    display: block;
    color: var(--text);
    font-size: 12px;
    font-weight: 600;
}

.danger-zone {
    background: rgba(239, 68, 68, 0.05);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 12px;
    padding: 20px;
}

.danger-zone h4 {
    font-family: 'Press Start 2P', cursive;
    font-size: 11px;
    color: var(--danger);
    margin: 0 0 12px 0;
    letter-spacing: 0.5px;
}

.danger-zone p {
    color: var(--text-dim);
    font-size: 12px;
    line-height: 1.4;
    margin-bottom: 16px;
}

.delete-account-btn {
    background: var(--danger);
    border: none;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    font-family: 'Press Start 2P', cursive;
    font-size: 9px;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.delete-account-btn:hover {
    background: #dc2626;
    transform: translateY(-1px);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .user-avatar {
        width: 24px;
        height: 24px;
    }
    
    .dropdown-arrow {
        display: none;
    }
    
    .account-menu {
        right: -10px;
        min-width: 160px;
    }
    
    .account-modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .account-avatar-section {
        flex-direction: column;
        text-align: center;
    }
    
    .account-stats {
        grid-template-columns: 1fr;
    }
}

/* ===== SAVE BUILD MODAL STYLES ===== */

.save-build-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100000;
    backdrop-filter: blur(10px);
}

.save-build-modal-content {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 0;
    width: 90%;
    max-width: 500px;
    overflow: hidden;
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: modalFadeIn 0.3s ease-out;
}

.save-build-header {
    padding: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.save-build-header h3 {
    font-family: 'Press Start 2P', cursive;
    font-size: 14px;
    color: var(--text);
    margin: 0;
    letter-spacing: 0.5px;
}

.close-save-build {
    background: none;
    border: none;
    color: var(--text-dim);
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-save-build:hover {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.save-build-form {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.save-build-form input[type="text"],
.save-build-form textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px 16px;
    color: var(--text);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    transition: all 0.3s ease;
    resize: vertical;
}

.save-build-form input[type="text"]:focus,
.save-build-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.save-build-form textarea {
    min-height: 80px;
    max-height: 120px;
}

.public-build-option {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 12px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.public-build-option:hover {
    background: rgba(255, 255, 255, 0.05);
}

.public-build-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
}

.public-build-option span {
    color: var(--text);
    font-size: 14px;
    font-family: 'Inter', sans-serif;
}

.save-build-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 8px;
}

.cancel-save,
.confirm-save {
    padding: 12px 24px;
    border-radius: 8px;
    font-family: 'Press Start 2P', cursive;
    font-size: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    letter-spacing: 0.5px;
}

.cancel-save {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-dim);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cancel-save:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text);
}

.confirm-save {
    background: var(--accent);
    color: white;
    border: 1px solid var(--accent);
}

.confirm-save:hover {
    background: var(--accent-dim);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

@media (max-width: 768px) {
    .save-build-modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .save-build-actions {
        flex-direction: column;
    }
    
    .cancel-save,
    .confirm-save {
        width: 100%;
    }
}

/* ===== EQUIPMENT TOOLTIP STYLES ===== */

.equipment-tooltip {
    position: absolute;
    background: rgba(0, 0, 0, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 12px;
    max-width: 280px;
    z-index: 100000;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px);
    display: none;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    line-height: 1.4;
    pointer-events: none;
}

.tooltip-header {
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 8px;
}

.tooltip-name {
    font-family: 'Press Start 2P', cursive;
    font-size: 11px;
    font-weight: bold;
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}

.tooltip-name.common { color: #ffffff; }
.tooltip-name.uncommon { color: #1eff00; }
.tooltip-name.rare { color: #0070dd; }
.tooltip-name.epic { color: #a335ee; }
.tooltip-name.legendary { color: #ff8000; }
.tooltip-name.mythic { color: #e6cc80; }

.tooltip-type {
    color: rgba(255, 255, 255, 0.7);
    font-size: 11px;
    text-transform: capitalize;
}

.tooltip-stats,
.tooltip-requirements,
.tooltip-price {
    margin-top: 8px;
}

.stats-title,
.requirements-title,
.price-title {
    font-family: 'Press Start 2P', cursive;
    font-size: 9px;
    color: var(--accent);
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.tooltip-stats .stat,
.requirement {
    color: rgba(255, 255, 255, 0.9);
    margin: 2px 0;
    font-size: 12px;
}

.tooltip-stats .stat.positive {
    color: #1eff00;
}

.tooltip-stats .stat.negative {
    color: #ff6b6b;
}

.requirement {
    color: rgba(255, 255, 255, 0.8);
    font-size: 11px;
}

/* Pricing styles */
.price-active {
    color: #10b981; /* Green for current listings */
    font-size: 11px;
    margin: 2px 0;
}

.price-last {
    color: rgba(255, 255, 255, 0.7);
    font-size: 11px;
    margin: 2px 0;
}

.price-loading {
    color: var(--accent);
    font-size: 11px;
    font-style: italic;
}

.price-not-found,
.price-unavailable,
.price-error {
    color: var(--text-muted);
    font-size: 11px;
    font-style: italic;
}

.price-average {
    color: #f59e0b; /* Gold/yellow for average prices */
    font-size: 11px;
    margin: 2px 0;
}

.price-debug {
    color: #ef4444; /* Red for debug info */
    font-size: 10px;
    font-style: italic;
}

/* Tooltip animations */
.equipment-tooltip.show {
    animation: tooltipFadeIn 0.2s ease-out;
}

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

/* ===== ABOUT PAGE STYLES ===== */

.about-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    margin-top: 90px; /* Account for fixed navbar */
    min-height: calc(100vh - 90px);
}

/* About Hero Section */
.about-hero {
    text-align: center;
    padding: 3rem 0 4rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(14, 14, 14, 0.8) 100%);
    border-radius: 16px;
    margin-bottom: 3rem;
    border: 1px solid rgba(59, 130, 246, 0.1);
    backdrop-filter: blur(10px);
}

.about-hero-content {
    max-width: 600px;
    margin: 0 auto;
}

.about-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.about-logo {
    width: 80px;
    height: 80px;
    filter: drop-shadow(0 4px 20px rgba(59, 130, 246, 0.3));
    animation: logoGlow 2s ease-in-out infinite alternate;
}

@keyframes logoGlow {
    from {
        filter: drop-shadow(0 4px 20px rgba(59, 130, 246, 0.3));
    }
    to {
        filter: drop-shadow(0 4px 30px rgba(59, 130, 246, 0.5));
    }
}

.about-title {
    font-family: 'Press Start 2P', cursive;
    font-size: 2.5rem;
    color: var(--text);
    text-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
    margin: 0;
}

.about-subtitle {
    font-size: 1.2rem;
    color: var(--text-dim);
    font-weight: 500;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* About Content */
.about-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.about-section {
    background: var(--surface);
    border-radius: 12px;
    padding: 2.5rem;
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.about-section:hover {
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.section-title {
    font-family: 'Press Start 2P', cursive;
    font-size: 1.3rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
    text-align: center;
    text-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
}

/* Story Section */
.story-content p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-dim);
    margin-bottom: 1.5rem;
    text-align: justify;
}

.story-content p:last-child {
    margin-bottom: 0;
}

/* Features Section */
.features-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--elevated);
    border-radius: 8px;
    border: 1px solid rgba(59, 130, 246, 0.1);
    transition: all 0.3s ease;
}

.feature-item:hover {
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-2px);
    background: rgba(59, 130, 246, 0.05);
}

.feature-icon {
    font-size: 2rem;
    min-width: 2rem;
    text-align: center;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.feature-content h3 {
    font-family: 'Press Start 2P', cursive;
    font-size: 0.9rem;
    color: var(--text);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.feature-content p {
    font-size: 0.9rem;
    color: var(--text-dim);
    line-height: 1.5;
    margin: 0;
}

/* Future Plans Section */
.plans-content p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-dim);
    margin-bottom: 1.5rem;
    text-align: justify;
}

.future-features {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--elevated);
    border-radius: 8px;
    border-left: 4px solid var(--accent);
}

.future-features h3 {
    font-family: 'Press Start 2P', cursive;
    font-size: 1rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

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

.future-features li {
    padding: 0.5rem 0;
    color: var(--text-dim);
    position: relative;
    padding-left: 1.5rem;
}

.future-features li::before {
    content: "⚡";
    position: absolute;
    left: 0;
    color: var(--accent);
}

/* Support Section */
.support-content p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-dim);
    margin-bottom: 1.5rem;
    text-align: justify;
}

.donate-container {
    text-align: center;
    margin-top: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(16, 185, 129, 0.1) 100%);
    border-radius: 12px;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.donate-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #ff5e5b 0%, #ff9500 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-family: 'Press Start 2P', cursive;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    box-shadow: 0 4px 15px rgba(255, 94, 91, 0.3);
}

.donate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 94, 91, 0.4);
    background: linear-gradient(135deg, #ff7875 0%, #ffb344 100%);
}

.donate-icon {
    font-size: 1.2rem;
}

.donate-note {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--text-dim);
    font-style: italic;
}

/* Credits Section */
.credits-content p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-dim);
    margin-bottom: 1.5rem;
    text-align: justify;
}

.credits-content strong {
    color: var(--accent);
    font-weight: 600;
}

.version-info {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--elevated);
    border-radius: 8px;
    border: 1px solid rgba(59, 130, 246, 0.1);
    text-align: center;
}

.version-info p {
    font-family: 'Press Start 2P', cursive;
    font-size: 0.7rem;
    color: var(--text-dim);
    margin: 0.5rem 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .about-page {
        padding: 0 1rem;
        margin-top: 80px;
    }
    
    .about-hero {
        padding: 2rem 1rem 3rem;
        margin-bottom: 2rem;
    }
    
    .about-title {
        font-size: 1.8rem;
    }
    
    .about-subtitle {
        font-size: 1rem;
    }
    
    .about-section {
        padding: 1.5rem;
    }
    
    .section-title {
        font-size: 1rem;
    }
    
    .features-list {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .feature-item {
        padding: 1rem;
    }
    
    .feature-content h3 {
        font-size: 0.8rem;
    }
    
    .donate-btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.8rem;
    }
    
    .story-content p,
    .plans-content p,
    .support-content p,
    .credits-content p {
        text-align: left;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .about-logo {
        width: 60px;
        height: 60px;
    }
    
    .about-title {
        font-size: 1.5rem;
    }
    
    .about-hero {
        padding: 1.5rem 0.5rem 2rem;
    }
    
    .about-section {
        padding: 1rem;
    }
    
    .donate-container {
        padding: 1.5rem;
    }
    
    .feature-item {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .feature-icon {
        align-self: center;
    }
}

/* ===== HIGHSCORES PAGE STYLES ===== */

.highscores-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    margin-top: 70px; /* Account for fixed navbar */
    min-height: calc(100vh - 70px);
}

.page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.page-title-gradient {
    font-family: 'Press Start 2P', cursive;
    font-size: 2.5rem;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    text-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

.page-subtitle {
    font-size: 1.2rem;
    color: var(--text-dim);
    font-weight: 500;
}

/* Coming Soon Styles */
.coming-soon-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
}

.coming-soon-content {
    background: var(--surface);
    border-radius: 16px;
    padding: 3rem;
    text-align: center;
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
    max-width: 600px;
    width: 100%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.coming-soon-content:hover {
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

.coming-soon-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 4px 8px rgba(59, 130, 246, 0.3));
    animation: pulseGlow 2s ease-in-out infinite alternate;
}

@keyframes pulseGlow {
    from {
        filter: drop-shadow(0 4px 8px rgba(59, 130, 246, 0.3));
    }
    to {
        filter: drop-shadow(0 4px 16px rgba(59, 130, 246, 0.6));
    }
}

.coming-soon-title {
    font-family: 'Press Start 2P', cursive;
    font-size: 1.8rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
    text-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
}

.coming-soon-text {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-dim);
    margin-bottom: 2rem;
}

.coming-soon-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
    text-align: left;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.coming-soon-features li {
    padding: 0.75rem 0;
    color: var(--text-dim);
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.coming-soon-features li:last-child {
    border-bottom: none;
}

.coming-soon-features li:hover {
    color: var(--accent);
    transform: translateX(8px);
}

.coming-soon-note {
    padding: 1.5rem;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.coming-soon-note p {
    font-size: 0.9rem;
    color: var(--text-dim);
    font-style: italic;
    margin: 0;
}

/* Responsive Design for Highscores */
@media (max-width: 768px) {
    .highscores-main {
        padding: 1rem;
    }
    
    .page-title-gradient {
        font-size: 1.8rem;
    }
    
    .page-subtitle {
        font-size: 1rem;
    }
    
    .coming-soon-content {
        padding: 2rem;
        margin: 1rem;
    }
    
    .coming-soon-title {
        font-size: 1.3rem;
    }
    
    .coming-soon-icon {
        font-size: 3rem;
    }
}

@media (max-width: 480px) {
    .coming-soon-content {
        padding: 1.5rem;
    }
    
    .page-title-gradient {
        font-size: 1.5rem;
    }
    
    .coming-soon-title {
        font-size: 1rem;
    }
    
    .coming-soon-features {
        text-align: center;
    }
}

/* ===== NEW MODAL REDESIGN STYLES ===== */
.modal-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.modal-logo {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.modal-brand h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    margin: 0;
}

.signin-content {
    text-align: center;
}

.signin-description {
    color: var(--text-dim);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 2rem;
}

.signin-btn-discord-redesign {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 1px solid #5865F2;
    border-radius: 12px;
    background: linear-gradient(135deg, #5865F2 0%, #4752C4 100%);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.signin-btn-discord-redesign:hover {
    background: linear-gradient(135deg, #4752C4 0%, #3C47A0 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(88, 101, 242, 0.3);
}

.signin-btn-discord-redesign svg {
    width: 24px;
    height: 24px;
}

.signin-benefits {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-dim);
}

.benefit-icon {
    font-size: 1.1rem;
    opacity: 0.8;
}