:root {
    --bg-color: #0d0d12;
    --card-bg: rgba(30, 30, 40, 0.6);
    --text-color: #e0e0e0;
    --accent-color: #ffd700;
    --accent-glow: #ffea00;
    --secondary-color: #03dad9;
    --gold-color: #ffd700;
    /* Gold */
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(255, 215, 0, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(3, 218, 217, 0.1) 0%, transparent 40%);
    background-attachment: fixed;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 4px;
}

/* Header & Nav */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background: rgba(13, 13, 18, 0.8);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 0 10px var(--accent-glow);
    text-decoration: none;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
}

nav a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 8px 16px;
    border-radius: 20px;
}

nav a:hover,
nav a.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 10px rgba(123, 44, 191, 0.5);
}

/* Hero Section */
.hero {
    position: relative;
    text-align: center;
    min-height: 90vh;
    /* Taller hero */
    display: flex;
    /* Center content vertically */
    flex-direction: column;
    justify-content: center;
    padding: 20px;
    overflow: hidden;
    /* Background color removed */
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    background: linear-gradient(to right, #fff, var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.2rem;
    color: #aaa;
    max-width: 600px;
    margin: 0 auto;
}

/* Rules Section (Accordion) */
.rules-section {
    max-width: 800px;
    margin: 50px auto;
    padding: 0 20px;
}

.rules-container {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.5s ease;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    padding: 30px;
}

.rules-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.05);
}

.rules-header h2 {
    font-size: 1.5rem;
    color: var(--secondary-color);
}

.toggle-icon {
    font-size: 1.5rem;
    transition: transform 0.4s ease;
}

.rules-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.6s ease-out, opacity 0.4s ease;
    opacity: 0;
    padding: 0 20px;
}

.rules-content.open {
    opacity: 1;
    padding: 20px;
    max-height: 500px;
    /* Limit height for scrolling */
    overflow-y: auto;
    /* Enable scrolling */
}

/* Rule Tabs */
.rules-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.rule-tab {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-color);
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-weight: 500;
}

.rule-tab:hover,
.rule-tab.active {
    background: var(--secondary-color);
    color: #000;
    box-shadow: 0 0 15px var(--secondary-color);
    border-color: transparent;
}

/* Slider */
.hero {
    position: relative;
    text-align: center;
    padding: 150px 20px;
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 0.5;
    transform: scale(1.05);
    /* Zoom slightly to hide blurred edges */
    filter: blur(4px);
    /* Blur background for text readability */
    z-index: 1;
}

/* Force immediate visibility on load */
.slide.active.initial {
    transition: none !important;
    opacity: 0.5 !important;
    filter: blur(4px) !important;
    transform: scale(1.05) !important;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
    /* Strong shadow for readability */
}

.rules-list {
    list-style-type: none;
}

.rules-list li {
    margin-bottom: 15px;
    padding-left: 20px;
    position: relative;
    border-left: 2px solid var(--accent-color);
}

/* Products Section */
.products-section {
    padding: 50px 5%;
}

.filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-color);
    padding: 10px 25px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--accent-color);
    color: white;
    box-shadow: 0 0 15px var(--accent-glow);
    transform: translateY(-2px);
    border-color: transparent;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(5px);
    position: relative;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: scale(1.03) translateY(-5px);
    box-shadow: 0 10px 30px rgba(123, 44, 191, 0.3);
    border-color: var(--accent-color);
}

.product-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 1px solid var(--glass-border);
}

.product-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: white;
}

.product-price {
    font-size: 1.1rem;
    color: var(--secondary-color);
    font-weight: bold;
    margin-bottom: 15px;
}

.buy-btn {
    margin-top: auto;
    display: block;
    width: 100%;
    padding: 12px;
    text-align: center;
    background: linear-gradient(45deg, var(--accent-color), var(--accent-glow));
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: bold;
    transition: opacity 0.3s;
}

.buy-btn:hover {
    opacity: 0.9;
    box-shadow: 0 0 15px var(--accent-glow);
}

/* Footer for Project */
footer {
    text-align: center;
    padding: 40px;
    margin-top: 50px;
    border-top: 1px solid var(--glass-border);
    color: #666;
}

/* Admin Panel Styles */
.admin-container {
    max-width: 600px;
    margin: 50px auto;
    padding: 30px;
    background: var(--card-bg);
    border-radius: 20px;
    border: 1px solid var(--glass-border);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--secondary-color);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: white;
    font-size: 1rem;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent-color);
}

.output-area {
    width: 100%;
    height: 150px;
    background: #000;
    color: #0f0;
    font-family: monospace;
    padding: 15px;
    border-radius: 10px;
    margin-top: 20px;
    border: 1px solid #333;
}

/* Mobile Menu Styles */
.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.8rem;
    color: white;
    z-index: 2000;
}

.mobile-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(13, 13, 18, 0.95);
    backdrop-filter: blur(15px);
    z-index: 1500;
    border-bottom: 1px solid var(--glass-border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out;
}

.mobile-nav.active {
    display: block;
    max-height: 400px;
}

.mobile-nav ul {
    list-style: none;
    padding: 20px 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.mobile-nav a {
    font-size: 1.2rem;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .rules-section {
        margin: 30px auto;
        padding: 0 10px;
    }

    .rules-container {
        padding: 20px 15px;
        border-radius: 15px;
    }

    .rules-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 10px;
        gap: 10px;
        -webkit-overflow-scrolling: touch;
        margin-bottom: 20px;
    }

    .rules-tabs::-webkit-scrollbar {
        height: 4px;
    }

    .rules-tabs::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.1);
        border-radius: 4px;
    }

    .rule-tab {
        white-space: nowrap;
        padding: 8px 16px;
        font-size: 0.9rem;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    nav ul {
        display: none;
        /* Hide desktop nav */
    }

    .hamburger {
        display: block;
        /* Show hamburger */
    }

    .mobile-nav {
        display: block;
        /* Make available for toggle */
    }

    .filters {
        gap: 10px;
    }

    .filter-btn {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
}

/* Sidebar Styles */
.sidebar-toggle-btn {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    background: var(--accent-color);
    color: #000;
    width: 40px;
    height: 80px;
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2000;
    box-shadow: 0 0 15px var(--accent-glow);
    transition: right 0.3s ease;
}

.sidebar-toggle-btn .icon {
    font-size: 1.5rem;
    font-weight: bold;
}

.sidebar-toggle-btn:hover {
    width: 50px;
}

.main-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    /* Hidden by default */
    width: 350px;
    height: 100vh;
    background: rgba(13, 13, 18, 0.98);
    backdrop-filter: blur(15px);
    z-index: 2500;
    transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    border-left: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.5);
}

.main-sidebar.active {
    right: 0;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-header h3 {
    margin: 0;
    color: var(--accent-color);
}

.close-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s;
}

.close-btn:hover {
    color: var(--accent-color);
}

.sidebar-content {
    padding: 20px;
    overflow-y: auto;
    flex-grow: 1;
}

.sidebar-section {
    margin-bottom: 30px;
}

.sidebar-section h4 {
    color: var(--secondary-color);
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 5px;
}

.sidebar-links {
    list-style: none;
}

.sidebar-links li {
    margin-bottom: 10px;
}

.sidebar-links a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s;
    display: block;
    padding: 5px 0;
}

.sidebar-links a:hover {
    color: var(--accent-color);
    padding-left: 10px;
    /* Slight movement effect */
}

/* Sidebar Form */
.sidebar-form input,
.sidebar-form select,
.sidebar-form textarea {
    width: 100%;
    margin-bottom: 10px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 5px;
    color: #fff;
    font-family: inherit;
}

.sidebar-form input:focus,
.sidebar-form select:focus,
.sidebar-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

.sidebar-form button {
    width: 100%;
    padding: 10px;
    background: var(--accent-color);
    color: #000;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.sidebar-form button:hover {
    background: var(--accent-glow);
}

/* Streamers List */
.streamer-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    background: rgba(255, 255, 255, 0.05);
    padding: 10px;
    border-radius: 10px;
}

.streamer-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 15px;
    border: 2px solid #43b581;
    /* Online green */
}

.streamer-info {
    flex-grow: 1;
}

.streamer-name {
    display: block;
    font-weight: bold;
    color: #fff;
}

.streamer-status {
    font-size: 0.8rem;
    color: #bbb;
}

/* Overlay */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2400;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s;
    backdrop-filter: blur(2px);
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Responsive Sidebar */
@media (max-width: 480px) {
    .main-sidebar {
        width: 100%;
        /* Full width on mobile */
        right: -100%;
    }
}