* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #1a1a1a;
    color: #fff;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #ff0000, #ff4400);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #ff4000, #FF8C00);
}

/* Favicon Theme Support - CSS approach for additional browser support */
@media (prefers-color-scheme: light) {
    /* Light mode styles can be added here if needed */
    :root {
        --favicon-filter: invert(1);
    }
}

@media (prefers-color-scheme: dark) {
    /* Dark mode styles can be added here if needed */
    :root {
        --favicon-filter: invert(0);
    }
}

/* Keyframes for pulsing glow effect */
@keyframes pulseGlow {
    0% {
        filter: drop-shadow(0 0 20px rgba(255, 0, 0, 0.5));
    }
    50% {
        filter: drop-shadow(0 0 35px rgba(255, 0, 0, 0.8)) drop-shadow(0 0 50px rgba(255, 0, 0, 0.3));
    }
    100% {
        filter: drop-shadow(0 0 20px rgba(255, 0, 0, 0.5));
    }
}

@keyframes shimmer {
    0% {
        filter: drop-shadow(0 0 20px rgba(255, 0, 0, 0.5)) brightness(1);
    }
    25% {
        filter: drop-shadow(0 0 30px rgba(255, 0, 0, 0.7)) brightness(1.1);
    }
    50% {
        filter: drop-shadow(0 0 40px rgba(255, 0, 0, 0.9)) brightness(1.2);
    }
    75% {
        filter: drop-shadow(0 0 30px rgba(255, 0, 0, 0.7)) brightness(1.1);
    }
    100% {
        filter: drop-shadow(0 0 20px rgba(255, 0, 0, 0.5)) brightness(1);
    }
}

@keyframes shadowPulse {
    0% {
        box-shadow: 0 4px 15px rgba(255, 0, 0, 0.3);
    }
    50% {
        box-shadow: 0 8px 25px rgba(255, 0, 0, 0.6);
    }
    100% {
        box-shadow: 0 4px 15px rgba(255, 0, 0, 0.3);
    }
}

@keyframes cardGlow {
    0% {
        box-shadow: 0 10px 25px rgba(255, 0, 0, 0.3);
    }
    50% {
        box-shadow: 0 15px 40px rgba(255, 0, 0, 0.5);
    }
    100% {
        box-shadow: 0 10px 25px rgba(255, 0, 0, 0.3);
    }
}

@keyframes numberPulse {
    0% {
        transform: scale(1);
        text-shadow: 0 0 5px rgba(255, 0, 0, 0.5);
    }
    50% {
        transform: scale(1.1);
        text-shadow: 0 0 20px rgba(255, 0, 0, 0.8);
    }
    100% {
        transform: scale(1);
        text-shadow: 0 0 5px rgba(255, 0, 0, 0.5);
    }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.3);
    z-index: 1000;
    animation: shadowPulse 4s ease-in-out infinite;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ff0000;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.logo:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 0 15px rgba(255, 0, 0, 0.6)) drop-shadow(0 0 25px rgba(255, 0, 0, 0.4));
}

.logo img {
    height: 40px;
    width: auto;
    object-fit: contain;
    transition: all 0.3s ease;
}

.logo:hover img {
    filter: brightness(1.2) drop-shadow(0 0 10px rgba(255, 0, 0, 0.8));
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
}

.nav-links li {
    position: relative;
    margin: 0 15px;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.nav-links a:hover {
    color: #ff0000;
    transform: scale(1.05);
}

/* Dropdown Styles */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 10px 0;
    min-width: 200px;
    box-shadow: 0 4px 10px rgba(255, 0, 0, 0.3);
    z-index: 100;
    animation: shadowPulse 3s ease-in-out infinite;
}

.dropdown-menu li {
    margin: 0;
    padding: 10px 20px;
}

.dropdown-menu a {
    font-size: 1rem;
    color: #fff;
}

.dropdown-menu a:hover {
    color: #ff0000;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

/* Wallet Button */
.wallet-btn {
    background: #ff0000;
    color: #000;
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 700;
    transition: transform 0.3s ease;
}

.wallet-btn:hover {
    transform: scale(1.05);
}

/* Hamburger Menu for Mobile */
.nav-toggle {
    display: none;
    font-size: 1.8rem;
    color: #ff0000;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 120vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: 120px;
    padding-bottom: 60px;
}

.hero-content {
    text-align: center;
    z-index: 2;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 20px;
}

.hero-logo {
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-logo img {
    padding-top: 80px;
    height: 400px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 20px rgba(255, 0, 0, 0.5));
    transition: all 0.3s ease;
    animation: shimmer 3s ease-in-out infinite;
}

.hero-logo img:hover {
    transform: scale(1.05);
    animation: pulseGlow 1.5s ease-in-out infinite;
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 30px;
}

.cta-btn {
    background: #ff0000;
    color: #fff;
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.2rem;
}

.parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 50%, #1a1a1a 100%);
    z-index: 1;
    transform: translateZ(0);
}

/* Sections */
.section {
    padding: 100px 50px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.section h2 {
    font-size: 3rem;
    margin-bottom: 50px;
    position: relative;
    z-index: 2;
}

.section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(45deg, #ff0000, #ff0000);
    border-radius: 2px;
}

/* NFT Gallery */
.nft-gallery {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 20px 0;
    max-width: 1200px;
    margin: 0 auto;
}

.nft-card {
    width: 300px;
    max-width: 300px;
    flex: 0 0 auto;
    background: #2a2a2a;
    padding: 20px;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.nft-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 0, 0, 0.1), transparent);
    transition: left 0.5s;
}

.nft-card:hover::before {
    left: 100%;
}

.nft-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(255, 0, 0, 0.3);
    border-color: rgba(255, 0, 0, 0.5);
    animation: cardGlow 2s ease-in-out infinite;
}

.nft-preview {
    width: 100%;
    height: 200px;
    background: #333;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

/* Passes */
.pass-container {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    padding: 40px 0;
}

.pass-card {
    background: linear-gradient(145deg, #2a2a2a, #1f1f1f);
    padding: 18px;
    border-radius: 15px;
    width: 260px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border: 1px solid rgba(255, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.pass-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 0, 0, 0.05) 0%, transparent 70%);
    transform: scale(0);
    transition: transform 0.4s ease;
}

.pass-card:hover::before {
    transform: scale(1);
}

.pass-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 35px rgba(255, 0, 0, 0.4);
    border-color: rgba(255, 0, 0, 0.5);
    animation: cardGlow 2.5s ease-in-out infinite;
}

.pass-image {
    width: 100%;
    height: 170px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 12px;
    background: #333;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pass-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.pass-image img:hover {
    transform: scale(1.05);
}

/* Origins Gallery */
.origins-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 25px;
    margin: 40px auto;
    z-index: 2;
    position: relative;
    max-width: 1200px;
    padding: 20px;
}

.origins-image-card {
    flex: 0 0 auto;
    width: 280px;
    max-width: 280px;
}

@media (max-width: 900px) {
    .origins-image-card {
        width: 250px;
        max-width: 250px;
    }
}

@media (max-width: 600px) {
    .origins-image-card {
        width: 90%;
        max-width: 400px;
    }
}

.origins-image-card {
    background: rgba(42, 42, 42, 0.95);
    backdrop-filter: blur(15px);
    padding: 25px;
    border-radius: 15px;
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.origins-image-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(255, 0, 0, 0.05), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.origins-image-card:hover::after {
    opacity: 1;
}

.origins-image-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(255, 0, 0, 0.25);
    border-color: rgba(255, 0, 0, 0.6);
    animation: cardGlow 2s ease-in-out infinite;
}

.origins-image-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.origins-image-card h4 {
    color: #ff0000;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

/* Pitbits */
.pitbits-gallery {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.pitbit-card {
    background: #2a2a2a;
    padding: 20px;
    border-radius: 10px;
    width: 250px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pitbit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(255, 0, 0, 0.3);
    animation: cardGlow 2s ease-in-out infinite;
}

.pitbit-image {
    width: 100%;
    height: 150px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
    background: #333;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pitbit-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.pitbit-image img:hover {
    transform: scale(1.05);
}

.loading-message {
    color: #ff0000;
    font-size: 1.2rem;
    text-align: center;
    padding: 40px;
    width: 100%;
}

.nft-error {
    color: #ff6b6b;
    font-size: 1rem;
    text-align: center;
    padding: 20px;
}

.nft-id {
    color: #888;
    font-size: 0.9rem;
    margin-top: 5px;
}

.nft-rarity {
    font-weight: bold;
    font-size: 0.9rem;
    margin-top: 8px;
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    display: inline-block;
}

/* Roadmap */
.roadmap-timeline {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.milestone {
    background: #2a2a2a;
    padding: 15px;
    border-radius: 10px;
    width: 300px;
}

/* Chess */
.chess-preview {
    background: #2a2a2a;
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
}

/* Pixel Art */
.pixel-art-gallery {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.pixel-art-card {
    background: #2a2a2a;
    padding: 20px;
    border-radius: 10px;
    width: 200px;
}

/* Mint Interface */
.mint-collections {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 30px;
    margin: 40px auto;
    max-width: 1200px;
    padding: 0 20px;
}

.mint-collection-card {
    flex: 0 0 auto;
    width: 350px;
    max-width: 350px;
}

/* Ensure proper centering for mint collections */
@media (max-width: 1200px) {
    .mint-collection-card {
        width: 320px;
        max-width: 320px;
    }
}

@media (max-width: 900px) {
    .mint-collection-card {
        width: 300px;
        max-width: 300px;
    }
}

@media (max-width: 700px) {
    .mint-collection-card {
        width: 90%;
        max-width: 400px;
    }
}

.mint-collection-card {
    background: linear-gradient(145deg, #2a2a2a, #1f1f1f);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.4s ease;
    border: 2px solid #ff0000;
    position: relative;
    overflow: hidden;
}

.mint-collection-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 0, 0, 0.1), transparent);
    transition: left 0.6s ease;
}

.mint-collection-card:hover::before {
    left: 100%;
}

.mint-collection-card:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 0 25px 50px rgba(255, 0, 0, 0.4);
    border-color: #ff0000;
    animation: cardGlow 1.8s ease-in-out infinite;
}

.mint-collection-image {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    border-radius: 15px;
    overflow: hidden;
    background: #333;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mint-collection-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.mint-collection-image img:hover {
    transform: scale(1.1);
}

.mint-collection-card h3 {
    color: #ff0000;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.mint-collection-card p {
    color: #ccc;
    margin-bottom: 20px;
    line-height: 1.5;
}

.mint-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0;
    padding: 15px;
    background: rgba(255, 0, 0, 0.1);
    border-radius: 10px;
}

.mint-price {
    font-weight: bold;
    color: #fbfbfb;
    font-size: 1.2rem;
}

.mint-supply {
    color: #aaa;
    font-size: 0.9rem;
}

.mint-btn {
    background: linear-gradient(45deg, #ff0000, #ff2f00);
    color: #000;
    padding: 15px 30px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: bold;
    width: 100%;
    transition: all 0.3s ease;
}

.mint-btn:hover {
    background: linear-gradient(45deg, #ff0000, #ff7700);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 0, 0, 0.4);
    animation: shadowPulse 1.5s ease-in-out infinite;
}

.mint-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 50px;
    padding: 30px;
    background: rgba(42, 42, 42, 0.8);
    border-radius: 15px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.stat-item {
    text-align: center;
    padding: 20px;
    border-radius: 10px;
    background: rgba(255, 0, 0, 0.1);
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 0, 0, 0.2), transparent);
    transition: left 0.6s ease;
}

.stat-item:hover::before {
    left: 100%;
}

.stat-item:hover {
    transform: translateY(-8px) scale(1.05);
    background: rgba(255, 0, 0, 0.2);
    border-color: rgba(255, 0, 0, 0.6);
    box-shadow: 0 15px 30px rgba(255, 0, 0, 0.3);
    animation: cardGlow 2s ease-in-out infinite;
}

.stat-item h4 {
    color: #ff0000;
    margin-bottom: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.stat-item:hover h4 {
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.8);
    transform: scale(1.1);
}

.stat-item span {
    color: #fff;
    font-size: 1.5rem;
    font-weight: bold;
    transition: all 0.3s ease;
}

.stat-item:hover span {
    color: #ff0000;
    text-shadow: 0 0 15px rgba(255, 0, 0, 0.6);
    transform: scale(1.2);
    animation: numberPulse 1.5s ease-in-out infinite;
}

/* Stat Dropdown Styles */
.stat-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 320px;
    max-width: 90vw;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 0, 0, 0.3);
    border-radius: 15px;
    padding: 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    pointer-events: none;
}

.stat-item.active .stat-dropdown {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateX(-50%) translateY(10px);
    animation: cardGlow 2s ease-in-out infinite;
    pointer-events: auto;
}

.stat-dropdown-content {
    padding: 20px;
}

.stat-dropdown-content h5 {
    color: #ff0000;
    margin: 0 0 15px 0;
    font-size: 1.2rem;
    text-align: center;
    border-bottom: 1px solid rgba(255, 0, 0, 0.3);
    padding-bottom: 10px;
}

.dropdown-item {
    margin-bottom: 15px;
    padding: 10px;
    background: rgba(255, 0, 0, 0.05);
    border-radius: 8px;
    border-left: 3px solid rgba(255, 0, 0, 0.4);
}

.dropdown-item:last-child {
    margin-bottom: 0;
}

.dropdown-item strong {
    color: #fff;
    display: block;
    margin-bottom: 5px;
    font-size: 0.95rem;
}

.dropdown-item p {
    color: #ccc;
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.4;
}

/* Responsive dropdown adjustments */
@media (max-width: 768px) {
    .stat-dropdown {
        width: 280px;
        left: 0;
        right: 0;
        margin: 0 auto;
        transform: translateX(0);
    }
    
    .stat-item.active .stat-dropdown {
        transform: translateX(0) translateY(10px);
    }
}

/* Footer */
footer {
    padding: 20px;
    text-align: center;
    background: #111;
}

.social-links a {
    color: #ff0000;
    margin: 0 10px;
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        flex-wrap: wrap;
        padding: 10px 20px;
    }

    .nav-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: center;
        margin-top: 20px;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 10px 0;
    }

    .dropdown-menu {
        position: static;
        background: rgba(0, 0, 0, 0.8);
        width: 100%;
        text-align: center;
    }

    .dropdown:hover .dropdown-menu {
        display: none;
    }

    .dropdown.active .dropdown-menu {
        display: block;
    }

    .wallet-btn {
        margin-top: 10px;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-logo img {
        height: 200px;
        padding-top: 60px;
        filter: drop-shadow(0 0 15px rgba(255, 0, 0, 0.6));
        animation: shimmer 3s ease-in-out infinite;
    }

    .hero-logo img:hover {
        transform: scale(1.03);
        animation: pulseGlow 1.5s ease-in-out infinite;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .nft-gallery {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        padding: 20px 10px;
    }

    .nft-card {
        width: 95%;
        max-width: 400px;
        margin: 0 auto;
    }

    .pass-container, .origins-gallery, .pitbits-gallery {
        gap: 15px;
        padding: 10px;
        flex-direction: column;
        align-items: center;
    }

    .pass-card, .origins-image-card, .pitbit-card {
        width: 95%;
        max-width: 400px;
        margin: 0 auto;
    }

    .mint-collections {
        gap: 20px;
        padding: 10px;
        margin: 20px auto;
        flex-direction: column;
        align-items: center;
    }

    .mint-collection-card {
        padding: 20px;
        margin: 0 auto;
        max-width: 400px;
        width: 95%;
    }

    .mint-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 20px;
    }

    .stat-item {
        padding: 15px;
    }
}

/* Stat Modal Styles */
.stat-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.stat-modal.active {
    display: flex;
    opacity: 1;
    visibility: visible;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.stat-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    cursor: pointer;
}

.stat-modal-content {
    position: relative;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.95) 0%, rgba(42, 42, 42, 0.95) 100%);
    border: 2px solid rgba(255, 0, 0, 0.3);
    border-radius: 20px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(255, 0, 0, 0.2);
    transform: scale(0.8) translateY(50px);
    transition: all 0.3s ease;
}

.stat-modal.active .stat-modal-content {
    transform: scale(1) translateY(0);
}

.stat-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: #ff0000;
    font-size: 2rem;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10001;
}

.stat-modal-close:hover {
    background: rgba(255, 0, 0, 0.1);
    transform: scale(1.1) rotate(90deg);
    color: #fff;
}

.stat-modal-header {
    padding: 25px 30px 20px;
    border-bottom: 1px solid rgba(255, 0, 0, 0.2);
    background: linear-gradient(90deg, rgba(255, 0, 0, 0.1) 0%, transparent 100%);
}

.stat-modal-header h2 {
    color: #ff0000;
    margin: 0;
    font-size: 1.8rem;
    text-align: center;
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.3);
}

.stat-modal-body {
    padding: 30px;
    max-height: 60vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 0, 0, 0.5) rgba(42, 42, 42, 0.3);
}

.stat-modal-body::-webkit-scrollbar {
    width: 8px;
}

.stat-modal-body::-webkit-scrollbar-track {
    background: rgba(42, 42, 42, 0.3);
    border-radius: 4px;
}

.stat-modal-body::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #ff0000, #ff4400);
    border-radius: 4px;
}

.stat-modal-body::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #ff4000, #FF8C00);
}

.modal-item {
    margin-bottom: 25px;
    padding: 20px;
    background: rgba(255, 0, 0, 0.05);
    border-radius: 12px;
    border-left: 4px solid rgba(255, 0, 0, 0.4);
    transition: all 0.3s ease;
}

.modal-item:hover {
    background: rgba(255, 0, 0, 0.1);
    border-left-color: rgba(255, 0, 0, 0.6);
    transform: translateX(5px);
}

.modal-item:last-child {
    margin-bottom: 0;
}

.modal-item strong {
    color: #fff;
    display: block;
    margin-bottom: 10px;
    font-size: 1.1rem;
    text-shadow: 0 0 5px rgba(255, 0, 0, 0.3);
}

.modal-item p {
    color: #ccc;
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .stat-modal-content {
        max-width: 95%;
        margin: 10px;
        max-height: 85vh;
    }
    
    .stat-modal-header {
        padding: 20px 25px 15px;
    }
    
    .stat-modal-header h2 {
        font-size: 1.5rem;
    }
    
    .stat-modal-body {
        padding: 20px;
        max-height: 65vh;
    }
    
    .modal-item {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .modal-item strong {
        font-size: 1rem;
    }
    
    .modal-item p {
        font-size: 0.9rem;
    }
}
