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

:root {
    --primary-purple: #9333ea;
    --secondary-purple: #a855f7;
    --light-purple: #c084fc;
    --dark-bg: #0a0e1a;
    --card-bg: #141824;
    --accent-purple: #7c3aed;
    --accent-blue: #3b82f6;
    --discord-blue: #5865F2;
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --success: #10b981;
    --danger: #ef4444;
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--dark-bg) 0%, #1a1f35 100%);
    color: var(--text-primary);
    min-height: 100vh;
}

.navbar-top {
    background: linear-gradient(135deg, #0f1419 0%, #1a1f35 100%);
    padding: 1.5rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 2px solid var(--primary-purple);
    gap: 2rem;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.navbar-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex: 1;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link:hover {
    background: rgba(147, 51, 234, 0.1);
    color: var(--primary-purple);
    transform: translateY(-2px);
}

.nav-link.active {
    background: rgba(147, 51, 234, 0.2);
    color: var(--primary-purple);
    box-shadow: 0 2px 0 var(--primary-purple);
}

.navbar-brand img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid var(--primary-purple);
    box-shadow: 0 0 20px rgba(147, 51, 234, 0.5);
    transition: transform 0.3s ease;
}

.navbar-brand img:hover {
    transform: scale(1.1) rotate(360deg);
}

.navbar-brand h1 {
    font-size: 2.5rem;
    font-weight: bold;
    background: linear-gradient(135deg, var(--primary-purple), var(--light-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: rgba(147, 51, 234, 0.1);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    border: 2px solid var(--primary-purple);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--primary-purple);
}

.username {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-purple);
}

.btn-discord-login {
    background: #5865F2;
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.3);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
}

.btn-discord-login:hover {
    background: #4752C4;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(88, 101, 242, 0.5);
}

.btn-discord-login svg {
    flex-shrink: 0;
}

.btn-auth, .btn-logout {
    background: linear-gradient(135deg, var(--primary-purple), var(--secondary-purple));
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(147, 51, 234, 0.3);
    text-decoration: none;
    display: inline-block;
}

.btn-auth:hover, .btn-logout:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(147, 51, 234, 0.6);
}

.btn-register {
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));
    color: white;
}

.categories-bar {
    background: var(--card-bg);
    padding: 1.5rem 3rem;
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    position: sticky;
    top: 95px;
    z-index: 99;
    border-bottom: 1px solid rgba(147, 51, 234, 0.2);
}

.categories-bar::-webkit-scrollbar {
    height: 6px;
}

.categories-bar::-webkit-scrollbar-track {
    background: var(--dark-bg);
}

.categories-bar::-webkit-scrollbar-thumb {
    background: var(--primary-purple);
    border-radius: 3px;
}

.category-btn {
    background: transparent;
    border: 2px solid rgba(147, 51, 234, 0.3);
    color: var(--text-primary);
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.category-btn .icon {
    font-size: 1.3rem;
}

.category-btn:hover {
    background: rgba(147, 51, 234, 0.1);
    border-color: var(--primary-purple);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(147, 51, 234, 0.3);
}

.category-btn.active {
    background: linear-gradient(135deg, var(--primary-purple), var(--secondary-purple));
    color: white;
    border-color: var(--primary-purple);
    box-shadow: 0 4px 20px rgba(147, 51, 234, 0.5);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

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

.item-card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(147, 51, 234, 0.1);
    opacity: 0;
}

.item-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 40px rgba(147, 51, 234, 0.4);
    border-color: var(--primary-purple);
}

.item-image {
    position: relative;
    height: 250px;
    background: linear-gradient(135deg, #1a1f35 0%, var(--card-bg) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.item-image img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 0 10px rgba(147, 51, 234, 0.3));
}

.item-card:hover .item-image img {
    transform: scale(1.15) rotate(5deg);
}

.item-info {
    padding: 1.5rem;
}

.item-info h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.item-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.2rem;
    line-height: 1.5;
}

.item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.price-container {
    display: flex;
    align-items: center;
}

.item-price {
    font-size: 1.6rem;
    font-weight: bold;
    color: var(--primary-purple);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.euro-icon {
    font-size: 1.4rem;
}

.buy-btn {
    background: linear-gradient(135deg, var(--primary-purple), var(--secondary-purple));
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(147, 51, 234, 0.3);
}

.buy-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(147, 51, 234, 0.5);
}

.buy-btn:active {
    transform: scale(0.98);
}

.hero-section {
    background: linear-gradient(135deg, #0f1419 0%, #1a1f35 50%, #0a0e1a 100%);
    padding: 4rem 3rem;
    text-align: center;
    border-bottom: 1px solid rgba(147, 51, 234, 0.2);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(147, 51, 234, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: bold;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.hero-highlight {
    background: linear-gradient(135deg, var(--primary-purple), var(--light-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
}

.stat-num {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-purple);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.hero-cta {
    background: linear-gradient(135deg, var(--primary-purple), var(--secondary-purple));
    color: white;
    text-decoration: none;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(147, 51, 234, 0.4);
    display: inline-block;
}

.hero-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(147, 51, 234, 0.6);
}

.burger-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 101;
}

.burger-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--primary-purple);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.burger-btn.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger-btn.open span:nth-child(2) { opacity: 0; }
.burger-btn.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

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

.item-card.card-visible {
    animation: cardSlideIn 0.4s ease forwards;
}

@media (max-width: 1024px) {
    .navbar-top { padding: 1rem 2rem; }
    .navbar-brand h1 { font-size: 2rem; }
    .nav-link { font-size: 0.9rem; padding: 0.4rem 0.7rem; }
    .navbar-links { gap: 1rem; }
    .shop-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
    .categories-bar { padding: 1rem 2rem; }
}

@media (max-width: 768px) {
    .navbar-top {
        padding: 1rem 1.5rem;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .burger-btn {
        display: flex;
        margin-left: auto;
    }

    .navbar-links {
        display: none;
        flex-direction: column;
        width: 100%;
        flex: none;
        background: #0f1419;
        padding: 1rem 0;
        border-top: 1px solid rgba(147, 51, 234, 0.2);
        gap: 0.5rem;
    }

    .navbar-links.open {
        display: flex;
    }

    .navbar-actions {
        width: 100%;
        justify-content: center;
    }

    .navbar-brand h1 {
        font-size: 1.8rem;
    }

    .navbar-brand img {
        width: 45px;
        height: 45px;
    }

    .hero-section {
        padding: 2.5rem 1.5rem;
    }

    .hero-stats {
        gap: 1.5rem;
    }

    .stat-num {
        font-size: 1.5rem;
    }

    .categories-bar {
        padding: 1rem;
        gap: 0.5rem;
        position: static;
    }

    .category-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }

    .shop-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
    }

    .container {
        padding: 2rem 1rem;
    }

    .item-footer {
        flex-direction: row;
        align-items: center;
        flex-wrap: wrap;
    }

    .buy-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .navbar-brand h1 { font-size: 1.4rem; letter-spacing: 0; }
    .navbar-brand img { width: 36px; height: 36px; }
    .shop-grid { grid-template-columns: 1fr; }
    .hero-section { padding: 2rem 1rem; }
    .hero-stats { gap: 1rem; }
    .stat-num { font-size: 1.3rem; }
    .user-info { padding: 0.5rem 1rem; gap: 0.8rem; }
    .btn-discord-login { padding: 0.6rem 1.2rem; font-size: 0.9rem; }
}