/* Cyberpunk / Neo-Futurism Design Variables */
:root {
    --neon-cyan: #00f3ff;
    --neon-pink: #ff00ff;
    --neon-yellow: #fcee0a;
    --bg-dark: #050505;
    /* Pitch blackish */
    --bg-panel: #0a0a0a;
    --border-color: #333;

    --font-heading: 'Orbitron', 'Inter', sans-serif;
    /* Futuristic font if available, fallback to Inter */
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;

    --clip-path-angle: polygon(0 0,
            100% 0,
            100% calc(100% - 20px),
            calc(100% - 20px) 100%,
            0 100%);
    --clip-path-btn: polygon(10px 0,
            100% 0,
            100% calc(100% - 10px),
            calc(100% - 10px) 100%,
            0 100%,
            0 10px);
}

/* Import Font */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;700;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-body);
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-dark);
    color: #e0e0e0;
    line-height: 1.5;
    min-height: 100vh;
    background-image:
        linear-gradient(rgba(0, 243, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 243, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    /* Grid Scanline effect */
    overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #000;
}

::-webkit-scrollbar-thumb {
    background: var(--neon-cyan);
    border-radius: 0;
}

/* Header */
header {
    background: rgba(5, 5, 5, 0.9);
    backdrop-filter: blur(5px);
    border-bottom: 1px solid var(--neon-cyan);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1rem 0;
    box-shadow: 0 4px 20px rgba(0, 243, 255, 0.1);
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

.header-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--neon-yellow);
    text-transform: uppercase;
    text-decoration: none;
    text-shadow: 2px 2px 0px var(--neon-pink);
    letter-spacing: 2px;
    position: relative;
}

/* Glitch Effect on Logo Hover (Optional css-only glitch) */
.logo:hover {
    animation: glitch 0.3s cubic-bezier(.25, .46, .45, .94) both infinite;
    color: var(--neon-cyan);
    text-shadow: -2px -2px 0px var(--neon-pink);
}

@keyframes glitch {
    0% {
        transform: translate(0)
    }

    20% {
        transform: translate(-2px, 2px)
    }

    40% {
        transform: translate(-2px, -2px)
    }

    60% {
        transform: translate(2px, 2px)
    }

    80% {
        transform: translate(2px, -2px)
    }

    100% {
        transform: translate(0)
    }
}

.btn-icon {
    background: transparent;
    border: 1px solid var(--neon-cyan);
    color: var(--neon-cyan);
    font-size: 1.2rem;
    cursor: pointer;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    clip-path: var(--clip-path-btn);
}

.btn-icon:hover {
    background: var(--neon-cyan);
    color: #000;
    box-shadow: 0 0 15px var(--neon-cyan);
}

/* Search */
.search-container {
    position: relative;
    width: 100%;
    max-width: 450px;
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--neon-pink);
    pointer-events: none;
    font-size: 1.1rem;
}

#searchInput {
    width: 100%;
    padding: 12px 20px 12px 45px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid #333;
    border-left: 3px solid var(--neon-pink);
    color: white;
    font-family: var(--font-heading);
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}

#searchInput:focus {
    border-color: var(--neon-pink);
    box-shadow: 0 0 10px rgba(255, 0, 255, 0.3);
    background: #000;
}

/* Filter Overlay */
.filter-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(15px);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    padding: 0;
    transform: translateY(-100%);
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    border-bottom: 2px solid var(--neon-cyan);
}

.filter-overlay.active {
    transform: translateY(0);
}

.filter-header {
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #333;
    flex-shrink: 0;
}

.filter-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.5);
}

.filter-content {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
    padding-bottom: 120px;
    max-width: 1300px;
    margin: 0 auto;
    width: 100%;
}

.filter-section {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid #222;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-radius: 4px;
    position: relative;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.filter-section::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: 20px;
    height: 20px;
    border-top: 2px solid var(--neon-cyan);
    border-left: 2px solid var(--neon-cyan);
}

.filter-section::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 20px;
    height: 20px;
    border-bottom: 2px solid var(--neon-cyan);
    border-right: 2px solid var(--neon-cyan);
}

.filter-section h3 {
    font-family: var(--font-heading);
    color: var(--neon-cyan);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    font-size: 1.1rem;
    letter-spacing: 1px;
    border-bottom: 1px solid #333;
    padding-bottom: 0.5rem;
    display: inline-block;
}

.filter-tags {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}

.filter-tag {
    background: #0f0f0f;
    border: 1px solid #333;
    padding: 12px 16px;
    color: #aaa;
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font-body);
    font-size: 0.9rem;
    position: relative;
    text-align: center;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

.filter-tag:hover {
    background: #1a1a1a;
    border-color: #555;
    color: #fff;
    transform: translateY(-2px);
}

.filter-tag.selected {
    background: rgba(0, 243, 255, 0.15);
    border-color: var(--neon-cyan);
    color: var(--neon-cyan);
    font-weight: 600;
    box-shadow: inset 0 0 15px rgba(0, 243, 255, 0.1);
}

/* Mobile grid tweak for filters */
@media (max-width: 600px) {
    .filter-tags {
        grid-template-columns: repeat(2, 1fr);
        /* 2 cols on mobile */
    }

    .filter-content {
        padding: 1rem;
    }
}

.filter-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: rgba(5, 5, 5, 0.95);
    border-top: 1px solid var(--neon-cyan);
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    backdrop-filter: blur(10px);
}

/* Grid */
.grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem 0;
}

@media (min-width: 640px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Cyberpunk Card */
.card {
    background: var(--bg-panel);
    border: 1px solid #333;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: all 0.3s;
    clip-path: var(--clip-path-angle);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--neon-cyan), transparent);
    z-index: 10;
    opacity: 0.5;
}

.card:hover {
    border-color: var(--neon-cyan);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 243, 255, 0.15);
}

.card-image-container {
    width: 100%;
    padding-top: 56.25%;
    position: relative;
    background: #000;
    overflow: hidden;
    border-bottom: 1px solid #333;
}

.card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    filter: grayscale(40%) contrast(1.1);
}

.card:hover .card-image {
    transform: scale(1.1);
    filter: grayscale(0%) contrast(1.2);
}

.card-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-title:hover {
    color: var(--neon-yellow);
}

.card-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: auto;
}

/* Badges */
.badge-new {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--neon-pink);
    color: #fff;
    padding: 4px 8px;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 20;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
    box-shadow: 0 0 10px var(--neon-pink);
    animation: badgePulse 2s infinite;
}

@keyframes badgePulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 0, 255, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(255, 0, 255, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 0, 255, 0);
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1rem;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: var(--font-heading);
    clip-path: var(--clip-path-btn);
    position: relative;
}

.btn-details {
    background: transparent;
    border: 1px solid #555;
    color: #fff;
}

.btn-details:hover {
    background: #fff;
    color: #000;
    border-color: #fff;
}

.btn-buy {
    background: var(--neon-yellow);
    color: #000;
    border: 1px solid var(--neon-yellow);
    box-shadow: 0 0 10px rgba(252, 238, 10, 0.4);
}

.btn-buy:hover {
    background: #000;
    color: var(--neon-yellow);
    box-shadow: 0 0 20px rgba(252, 238, 10, 0.6);
}

.btn-disabled {
    background: #222;
    color: #555;
    cursor: not-allowed;
    border: 1px solid #333;
}

/* Load More - Full Width Cyberpunk */
.load-more-container {
    padding: 2rem 0;
    width: 100%;
}

.btn-load-more {
    width: 100%;
    padding: 1.2rem;
    background: transparent;
    border: 2px solid var(--neon-cyan);
    color: var(--neon-cyan);
    text-transform: uppercase;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 900;
    letter-spacing: 3px;
    transition: all 0.3s;
    clip-path: polygon(20px 0,
            100% 0,
            100% calc(100% - 20px),
            calc(100% - 20px) 100%,
            0 100%,
            0 20px);
}

.btn-load-more:hover {
    background: var(--neon-cyan);
    color: #000;
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.4);
}

.btn-full {
    width: 100%;
    background: var(--neon-pink);
    color: #fff;
    padding: 1rem;
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-weight: 700;
    clip-path: var(--clip-path-btn);
}

.btn-text {
    background: transparent;
    color: #666;
    text-transform: uppercase;
    font-size: 0.8rem;
    margin-top: 10px;
}

.btn-text:hover {
    color: #fff;
}

/* Loading & No Results */
.loading p,
.no-results p {
    font-family: var(--font-heading);
    color: var(--neon-cyan);
    letter-spacing: 1px;
}

.spinner {
    border-color: #333;
    border-left-color: var(--neon-cyan);
    border-width: 4px;
}

/* Mobile Changes */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .header-left {
        width: 100%;
        justify-content: flex-start;
    }

    .search-container {
        width: 100%;
        max-width: 100%;
        display: block;
    }

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

/* Stats Container */
.stats-container {
    display: flex;
    gap: 1rem;
    padding-bottom: 2rem;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.stat-item {
    background: rgba(5, 5, 5, 0.6);
    border: 1px solid #333;
    padding: 10px 15px;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 100px;
    position: relative;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
    transition: all 0.3s ease;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 100%;
    background: var(--neon-cyan);
    opacity: 0.5;
}

.stat-item:hover {
    border-color: var(--neon-cyan);
    background: rgba(0, 243, 255, 0.05);
    transform: translateY(-2px);
}

.stat-item.total {
    border-color: var(--neon-yellow);
    background: rgba(252, 238, 10, 0.05);
}

.stat-item.total::before {
    background: var(--neon-yellow);
}

.stat-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: #888;
    letter-spacing: 1px;
    font-family: var(--font-heading);
    margin-bottom: 4px;
}

.stat-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    font-family: var(--font-heading);
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.stat-item.total .stat-value {
    color: var(--neon-yellow);
    text-shadow: 0 0 10px rgba(252, 238, 10, 0.3);
}

.stat-item:hover .stat-value {
    color: var(--neon-cyan);
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.3);
}

.stat-item.total:hover .stat-value {
    color: var(--neon-yellow);
}

/* Layout Wrapper */
.layout-wrapper {
    display: flex;
    gap: 20px;
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
}

.main-content {
    flex: 1;
    min-width: 0;
    /* Prevent flex overflow */
}

/* Alpha Sidebar */
.alpha-sidebar {
    position: sticky;
    top: 100px;
    height: calc(100vh - 120px);
    overflow-y: auto;
    width: 50px;
    background: rgba(5, 5, 5, 0.8);
    border: 1px solid #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 0;
    gap: 5px;
    border-radius: 4px;
    flex-shrink: 0;
    backdrop-filter: blur(5px);
}

.alpha-link {
    color: #666;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    text-decoration: none;
    padding: 4px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.alpha-link:hover {
    color: var(--neon-cyan);
    background: rgba(0, 243, 255, 0.1);
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.2);
}

/* Alphabetical Sections */
.alpha-section {
    margin-bottom: 3rem;
    scroll-margin-top: 100px;
    /* Header offset */
}

.alpha-header {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--neon-pink);
    border-bottom: 2px solid #333;
    padding-bottom: 10px;
    margin-bottom: 20px;
    text-transform: uppercase;
    text-shadow: 2px 2px 0 #000;
}

/* Override Grid for Alpha Layout */
.grid-alpha {
    display: flex;
    flex-direction: column;
}

.alpha-grid {
    /* Uses existing grid styles but nested */
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 640px) {
    .alpha-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .alpha-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Mobile responsive for sidebar */
@media (max-width: 768px) {
    .layout-wrapper {
        flex-direction: column;
    }

    .alpha-sidebar {
        position: fixed;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        height: auto;
        max-height: 80vh;
        width: 40px;
        z-index: 90;
        border-right: none;
        border-radius: 10px 0 0 10px;
        background: rgba(0, 0, 0, 0.9);
        border: 1px solid var(--neon-cyan);
        border-right: none;
    }
}

/* --- UI Refinements --- */

/* Stats Container Correction */
.stats-container {
    width: 100%;
    margin-top: 2rem;
    margin-bottom: 3rem;
    justify-content: flex-start;
    /* Aligns items to the start */
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    padding-top: 20px;
    /* Added padding as requested */
}

/* Ensure stats items take full width of their grid cell */
.stat-item {
    width: 100%;
    background: rgba(10, 10, 10, 0.8);
}

/* Alpha Header Cyberpunk Style */
.alpha-header {
    font-family: 'Orbitron', sans-serif;
    font-size: 4rem;
    font-weight: 900;
    color: transparent;
    /* Outline effect base */
    -webkit-text-stroke: 2px var(--neon-cyan);
    text-transform: uppercase;
    position: relative;
    display: inline-block;
    padding-left: 20px;
    margin-bottom: 30px;
    border-left: 5px solid var(--neon-pink);
    line-height: 1;
    text-shadow:
        5px 5px 0px rgba(0, 243, 255, 0.2);
}

/* Data attribute content for neon glow */
.alpha-header::before {
    content: attr(data-letter);
    position: absolute;
    top: 0;
    left: 20px;
    color: var(--neon-cyan);
    opacity: 0.5;
    filter: blur(10px);
    z-index: -1;
}

/* Underline decoration */
.alpha-header::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--neon-pink), transparent);
}

/* Hover Glitch Effect */
.alpha-header:hover {
    animation: glitch-text 0.4s infinite;
    -webkit-text-stroke: 2px var(--neon-pink);
    border-left-color: var(--neon-cyan);
    cursor: default;
}

@keyframes glitch-text {
    0% {
        transform: translate(0);
    }

    20% {
        transform: translate(-2px, 2px);
    }

    40% {
        transform: translate(-2px, -2px);
    }

    60% {
        transform: translate(2px, 2px);
    }

    80% {
        transform: translate(2px, -2px);
    }

    100% {
        transform: translate(0);
    }
}

/* Mobile Tweak for Header size */
@media (max-width: 768px) {
    .alpha-header {
        font-size: 3rem;
    }
}

/* Stats Container Refinement */
.stats-container {
    /* Existing grid layout, just tweaking sizes */
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    /* Smaller min-width */
    gap: 15px;
    /* Smaller gap */
    width: 100%;
    margin-top: 1rem;
    margin-bottom: 2rem;
}

.stat-item {
    padding: 8px 12px;
    /* Smaller padding */
    min-height: 70px;
    /* Reduced height constraint if any */
}

.stat-label {
    font-size: 0.65rem;
    /* Smaller font */
    margin-bottom: 2px;
}

.stat-value {
    font-size: 1.1rem;
    /* Smaller number */
    font-weight: 700;
}

/* Remove Sidebar Styles if present (overwrite or ignore) */
/* We removed HTML, so these classes won't be used, 
   but we can reset layout-wrapper just in case */
.layout-wrapper {
    display: block;
    /* Disable flex sidebar layout */
}

/* Fix grid-alpha to be full width */
.grid-alpha {
    width: 100%;
}

/* Mobile specific tweaks for stats */
@media (max-width: 600px) {
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        /* 2 cols on mobile */
        gap: 10px;
    }

    .stat-value {
        font-size: 1rem;
    }
}

/* Sidebar & Toggle Styles */
.sidebar-toggle {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: 30px;
    height: 50px;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid var(--neon-cyan);
    border-right: none;
    border-radius: 8px 0 0 8px;
    /* Rounded left corners */
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--neon-cyan);
    cursor: pointer;
    z-index: 1001;
    transition: right 0.3s ease, background 0.3s;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.5);
}

.sidebar-toggle:hover {
    background: var(--neon-cyan);
    color: #000;
}

.sidebar-toggle.active {
    right: 50px;
    /* Width of sidebar */
    border-radius: 0;
    /* Connect to sidebar */
    border-right: 1px solid var(--neon-cyan);
    /* Restore border if needed or merge */
    border-right: none;
}

.alpha-sidebar {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: 50px;
    max-height: 80vh;
    background: rgba(5, 5, 5, 0.95);
    border: 1px solid var(--neon-cyan);
    border-right: none;
    /* Stick to edge */
    border-radius: 8px 0 0 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 0;
    gap: 5px;
    z-index: 1000;
    overflow-y: auto;
    transition: transform 0.3s ease;
    backdrop-filter: blur(5px);
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.5);
}

/* Hide by sliding right */
.alpha-sidebar.hidden {
    transform: translate(100%, -50%);
    box-shadow: none;
}

/* Scrollbar hidden in sidebar for aesthetics */
.alpha-sidebar::-webkit-scrollbar {
    width: 0px;
    background: transparent;
}

/* Stats Alignment Fix */
/* Ensure container padding is respected and stats fill it */
.stats-container {
    /* Reset margins/width to ensure alignment */
    width: 100%;
    margin: 1rem 0 2rem 0;
    padding: 0;
    /* Remove internal padding if it causes misalignment */
    /* Grid gap handles spacing */
}

/* Override previous mobile tweaks if they mess up alignment */
@media (max-width: 600px) {
    .sidebar-toggle {
        width: 30px;
        height: 40px;
    }

    .alpha-sidebar {
        width: 40px;
    }

    .sidebar-toggle.active {
        right: 40px;
    }
}

/* Sidebar: Fit all letters, no scroll */
.alpha-sidebar {
    /* Adjust position / size */
    top: 50%;
    transform: translateY(-50%);
    /* Use vh to verify it fits on screen but leave some margin */
    height: auto;
    max-height: 96vh;
    /* Increased from 90vh */
    padding: 5px 0;
    /* Reduced from 10px */

    /* Flex settings to distribute items */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /* Distribute vertically */
    overflow-y: hidden;
    /* Disable scroll */

    /* Visuals */
    width: 40px;
    /* Slightly narrower */
}

.alpha-sidebar.hidden {
    transform: translate(100%, -50%);
}

.alpha-link {
    /* Make links compact to fit 30 chars */
    font-size: 0.7rem;
    /* Reduced from 0.75rem */
    height: auto;
    /* Let flex handle or minimal height */
    padding: 0;
    /* Reduced from 2px */
    width: 100%;
    text-align: center;
    flex: 1;
    /* Distribute space equally */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Toggle Button Adjustment */
.sidebar-toggle.active {
    right: 40px;
    /* Match new sidebar width */
}

/* Stats: Content 100% (Stretch items) */
.stats-container {
    /* Change auto-fill to auto-fit to stretch items to fill the row */
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    width: 100%;
    margin-top: 1rem;
    padding: 0;
    gap: 15px;
}

/* Mobile Tweaks */
@media (max-width: 600px) {
    .alpha-link {
        font-size: 0.65rem;
    }

    .stats-container {
        /* On mobile, maybe keep 2 columns but stretch */
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Request Button */
.btn-request {
    margin-left: 15px;
    background: transparent;
    border: 1px solid var(--neon-yellow);
    color: var(--neon-yellow);
    padding: 0.5rem 1rem;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: flex;
    /* Align icon */
    align-items: center;
    /* Center vert */
    gap: 8px;
    /* Space between icon and text */
}

.btn-request:hover {
    background: var(--neon-yellow);
    color: #000;
    box-shadow: 0 0 10px var(--neon-yellow);
}

/* Modal Overlay (Reusing/Extending existing if possible, or new) */
/* Assuming .filter-overlay structure is similar or we use .modal-overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: #0a0a0a;
    border: 1px solid var(--neon-purple);
    width: 90%;
    max-width: 500px;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(188, 19, 254, 0.3);
    display: flex;
    flex-direction: column;
    max-height: 80vh;
}

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

.modal-header h2 {
    color: var(--neon-purple);
    font-family: 'Orbitron', sans-serif;
    margin: 0;
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
}

/* Form */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #ccc;
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #444;
    color: #fff;
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
}

.form-group input:focus {
    outline: none;
    border-color: var(--neon-purple);
}

/* Request List */
.recent-requests {
    margin-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 15px;
}

.recent-requests h3 {
    font-size: 1rem;
    color: #888;
    margin-bottom: 15px;
}

.request-list {
    max-height: 200px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.request-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 4px;
    font-size: 0.9rem;
}

.req-game {
    color: #fff;
    font-weight: 500;
}

.req-date {
    color: #666;
    font-size: 0.8rem;
}

/* Scrollbar for list */
.request-list::-webkit-scrollbar {
    width: 6px;
}

.request-list::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 3px;
}

/* Mobile Tweaks */
@media (max-width: 600px) {
    .btn-request span {
        display: none;
        /* Icon only on really small screens if needed, otherwise clean layout */
    }
}

/* Form Note */
.form-note {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.form-note i {
    color: var(--neon-cyan);
}