


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

body {
    overflow-x: hidden;
}


.page-background {
    position: relative;
    min-height: 100vh;
}

.page-background::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/images/HBv1/roots/HB-Background.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    opacity: 0.15;
    z-index: 0;
    animation: slowZoom 20s ease-in-out infinite alternate;
}

.page-background > * {
    position: relative;
    z-index: 1;
}


body.admin-panel::before {
    display: none;
}



#serverStatusWidget [data-player-count],
#serverStatusWidget .text-primary {
    color: #9333EA !important; 
}

#serverStatusWidget [data-max-players],
#serverStatusWidget .text-secondary {
    color: #FCD34D !important; 
}

#serverStatusWidget [data-server-version],
#serverStatusWidget .text-white {
    color: #ffffff !important;
}


::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #1f2937;
}

::-webkit-scrollbar-thumb {
    background: #9333EA;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #7C3AED;
}


#navbar {
    background: rgba(17, 24, 39, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

#navbar.scrolled {
    background: rgba(17, 24, 39, 0.95);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.nav-link {
    position: relative;
    color: #9ca3af;
    transition: color 0.3s ease;
    font-weight: 500;
}

.nav-link:hover,
.nav-link.active {
    color: #9333EA;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 2px;
    background: #9333EA;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    background: #7C3AED;
}

.nav-link.active::after {
    width: 100%;
}

.logo-text {
    color: #9333EA;
}

.logo-text:hover {
    color: #7C3AED;
}


.hero-section {
    min-height: calc(100vh - 5rem);
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.3;
    background-size: cover;
    background-position: center;
    animation: slowZoom 20s ease-in-out infinite alternate;
}

@keyframes slowZoom {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.1);
    }
}

.gradient-text {
    color: #9333EA;
}

.gradient-text:hover {
    color: #7C3AED;
}


.product-card {
    background: #1f2937;
    border: 1px solid #374151;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(233, 30, 99, 0.15) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none; 
    z-index: 0; 
}

.product-card:hover {
    transform: translateY(-10px);
    border-color: #9333EA;
    box-shadow: 0 20px 25px -5px rgba(147, 51, 234, 0.4), 0 10px 10px -5px rgba(168, 85, 247, 0.3);
}

.product-card:hover::before {
    opacity: 1;
    background: radial-gradient(circle, rgba(147, 51, 234, 0.15) 0%, transparent 70%);
}

.mode-card {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    border: 2px solid #374151;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%; 
}

.mode-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(147, 51, 234, 0.15);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 1;
}

.mode-card:hover {
    transform: scale(1.05);
    border-color: #9333EA;
    box-shadow: 0 0 30px rgba(147, 51, 234, 0.6), 0 0 50px rgba(252, 211, 77, 0.3);
}

.mode-card:hover::after {
    background: rgba(147, 51, 234, 0.2);
}

.mode-card:hover::after {
    opacity: 1;
}

.mode-card img {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mode-card:hover img {
    transform: scale(1.1);
}

.mode-card > div:last-child {
    position: relative;
    z-index: 2;
}


.btn-primary {
    background: #9333EA;
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-block;
    text-decoration: none;
}

.btn-primary:hover {
    background: #7C3AED;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(147, 51, 234, 0.5), 0 5px 15px rgba(168, 85, 247, 0.3);
}

.btn-secondary {
    background: #FCD34D;
    color: #111827;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-block;
    text-decoration: none;
}

.btn-secondary:hover {
    background: #FBBF24;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(252, 211, 77, 0.5);
}

.btn-outline {
    background: transparent;
    border: 2px solid #9333EA;
    color: #9333EA;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-block;
    text-decoration: none;
}

.btn-outline:hover {
    background: #9333EA;
    border-color: #9333EA;
    color: white;
    box-shadow: 0 8px 15px rgba(147, 51, 234, 0.3);
}


.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-new {
    background: #9333EA;
    color: white;
}

.badge-new:hover {
    background: #7C3AED;
}

.badge-hot {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

.badge-sale {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}


.glass {
    background: rgba(31, 41, 55, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}


.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    padding: 1rem;
    overflow: hidden;
}

.modal-content {
    background: #1f2937;
    border: 1px solid #374151;
    border-radius: 1rem;
    max-width: 90vw;
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    /* Smooth scrolling on mobile */
    scroll-behavior: smooth;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .modal-overlay {
        padding: 0;
        align-items: flex-end;
    }
    
    .modal-content {
        max-width: 100vw;
        max-height: 95vh;
        border-radius: 1rem 1rem 0 0;
        width: 100%;
        /* Ensure scrolling works on mobile */
        -webkit-overflow-scrolling: touch;
        touch-action: pan-y;
    }
}


input, textarea, select {
    background: #111827;
    border: 2px solid #374151;
    color: #f3f4f6;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #9333EA;
    box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.1);
}

input::placeholder, textarea::placeholder {
    color: #6b7280;
}


.toast {
    background: #1f2937;
    border: 1px solid #374151;
    border-left: 4px solid;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
    min-width: 300px;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.toast.show {
    opacity: 1;
    transform: translateX(0);
}

.toast-success {
    border-left-color: #10b981;
}

.toast-error {
    border-left-color: #ef4444;
}

.toast-warning {
    border-left-color: #f59e0b;
}

.toast-info {
    border-left-color: #9333EA;
}


.podium {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
    align-items: end;
    margin: 2rem 0;
}

.podium-place {
    text-align: center;
    padding: 2rem 1rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, #1f2937, #111827);
    border: 2px solid;
    transition: all 0.3s ease;
}

.podium-place-1 {
    order: 2;
    min-height: 300px;
    border-color: #fbbf24;
    box-shadow: 0 0 30px rgba(251, 191, 36, 0.3);
}

.podium-place-2 {
    order: 1;
    min-height: 250px;
    border-color: #9ca3af;
    box-shadow: 0 0 20px rgba(156, 163, 175, 0.2);
}

.podium-place-3 {
    order: 3;
    min-height: 200px;
    border-color: #cd7f32;
    box-shadow: 0 0 20px rgba(205, 127, 50, 0.2);
}


.progress-bar {
    height: 0.5rem;
    background: #374151;
    border-radius: 9999px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #9333EA;
    transition: width 0.3s ease;
}

.progress-fill:hover {
    background: #7C3AED;
}


.skeleton {
    background: linear-gradient(90deg, #1f2937 25%, #374151 50%, #1f2937 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}


.text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.glow {
    box-shadow: 0 0 20px rgba(147, 51, 234, 0.6), 0 0 40px rgba(168, 85, 247, 0.3);
}

.pulse-glow {
    animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(147, 51, 234, 0.5), 0 0 40px rgba(252, 211, 77, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(147, 51, 234, 0.8), 0 0 60px rgba(252, 211, 77, 0.5);
    }
}


@media (max-width: 768px) {
    .podium {
        grid-template-columns: 1fr;
    }
    
    .podium-place {
        min-height: auto !important;
    }
    
    .podium-place-1 {
        order: 1;
    }
    
    .podium-place-2 {
        order: 2;
    }
    
    .podium-place-3 {
        order: 3;
    }
}


@media print {
    nav, footer, #cartSidebar {
        display: none !important;
    }
}



