:root {
    --primary-color: #9b59b6; /* Purple */
    --secondary-color: #3498db; /* Blue */
    --text-color: #ecf0f1;
    --sidebar-bg: rgba(10, 10, 10, 0.85);
    --card-bg: rgba(44, 62, 80, 0.7);
    --border-color: #8e44ad;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    color: var(--text-color);
    background-color: #000;
    overflow-x: hidden;
}

#bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
}

/* Sidebar */
#sidebar {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 250px; /* Adjusted width */
    background: var(--sidebar-bg);
    backdrop-filter: blur(10px);
    border-left: 1px solid var(--border-color);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 2rem;
    box-shadow: -10px 0 25px rgba(0,0,0,0.5);
    overflow-y: auto; 
}

#user-profile, #auth-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    width: 80%;
}

#user-avatar { width: 80px; height: 80px; border-radius: 50%; border: 2px solid var(--primary-color); }
#user-name { font-weight: bold; font-size: 1rem; }
#logout-btn { background: #c0392b; border: none; color: white; padding: 0.5rem 1rem; border-radius: 20px; cursor: pointer; transition: background 0.3s; }
#logout-btn:hover { background: #e74c3c; }

#login-btn, #register-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 0.7rem; /* Adjusted padding */
    font-size: 0.9rem; /* Adjusted font size */
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s, color 0.3s;
    width: 100%;
    border-radius: 20px;
}

#login-btn:hover, #register-btn:hover { background: var(--primary-color); color: #fff; }

.tabs { display: flex; flex-direction: column; gap: 0.8rem; width: 80%; }
.tab-btn, .tab-btn.active {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid transparent;
    border-radius: 8px;
    color: var(--text-color);
    padding: 0.8rem;
    font-size: 0.9rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s, border-color 0.3s;
    text-align: center;
    text-decoration: none; /* Added for a tag */
    display: block; /* Added for a tag */
}
.tab-btn:hover { background: rgba(255, 255, 255, 0.2); }
.tab-btn.active { background: var(--primary-color); color: #fff; border-color: var(--primary-color); }

/* Main Content */
#main-content { margin-right: 250px; padding: 4rem 2rem; }
#info { text-align: center; margin-bottom: 4rem; }
#info h1 { font-size: 6rem; margin: 0 0 1rem 0; color: #fff; text-shadow: 0 0 15px var(--primary-color), 0 0 25px var(--primary-color); }

/* Panel Box */
#panel-box {
    background: rgba(0,0,0,0.4);
    padding: 2.5rem;
    border-radius: 15px;
    margin: 2rem auto;
    max-width: 700px;
    border: 1px solid var(--border-color);
    text-align: center;
}

#panel-box h2 {
    font-size: 2.2rem;
    margin: 0 0 1.5rem 0;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

#panel-box p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

#panel-box .discord-btn {
    background: var(--primary-color);
}

/* Discord Section */
#discord-join { background: rgba(0,0,0,0.4); padding: 2rem; border-radius: 15px; margin: 2rem auto; max-width: 700px; border: 1px solid var(--border-color);}
#discord-join h2 { font-size: 2.2rem; margin: 0 0 1.5rem 0; font-weight: bold; }
.discord-btn { display: inline-block; background: var(--secondary-color); color: #fff; padding: 1.2rem 2.5rem; text-decoration: none; border-radius: 8px; font-weight: bold; font-size: 1.5rem; transition: background 0.3s; }
.discord-btn:hover { background: #8e44ad; }

/* Dashboard Section */
.dashboard-content { background: var(--card-bg); border-radius: 15px; padding: 2rem; text-align: left; max-width: 800px; margin: 0 auto; border: 1px solid var(--border-color); }
.dashboard-content h3 { font-size: 2rem; margin-bottom: 1rem; text-align: center; }
.dashboard-content h4 { font-size: 1.5rem; margin-top: 2rem; margin-bottom: 1rem; color: var(--secondary-color); }
.dashboard-content ul { list-style: none; padding: 0; }
.dashboard-content ul li { margin-bottom: 1rem; font-size: 1.1rem; }

/* Special Offers */
#special-offers h2 { font-size: 2.8rem; text-align: center; margin-bottom: 3rem; }
.special-offer { border: 2px solid #f1c40f; box-shadow: 0 0 30px rgba(241, 196, 15, 0.5); }
.special-offer h2 { color: #f1c40f; }

/* Plan Sections */
.plan-section {
    display: none; /* Hide by default */
}

.plan-section.active {
    display: block; /* Show active section */
    animation: fadeIn 0.5s ease-in-out; /* Add a simple fade-in */
}

.plan-section h2 { font-size: 2.8rem; text-align: center; margin-bottom: 3rem; }
.pricing-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 2.5rem; }
.plan { background: var(--card-bg); border-radius: 15px; padding: 2rem; text-align: center; width: 300px; border: 1px solid var(--border-color); transition: transform 0.3s, box-shadow 0.3s; }
.plan:hover { transform: translateY(-10px); box-shadow: 0 0 20px rgba(155, 89, 182, 0.5); }
.plan h2 { font-size: 1.8rem; margin-bottom: 1.5rem; color: #fff; display: flex; align-items: center; justify-content: center; gap: 0.5rem; }
.price { font-size: 2.5rem; font-weight: bold; margin-bottom: 1rem; color: var(--secondary-color); }
.slots { color: #f1c40f; font-weight: bold; margin-bottom: 1.5rem; }

.features { list-style: none; padding: 0; margin-bottom: 2rem; text-align: left; font-size: 1.1rem; }
.features li { margin-bottom: 0.8rem; display: flex; align-items: center; gap: 0.7rem; }

.buy-btn { display: inline-block; background: var(--primary-color); color: #fff; padding: 0.8rem 2rem; text-decoration: none; border-radius: 25px; font-weight: bold; transition: background 0.3s; }
.buy-btn:hover { background: #8e44ad; }

/* Payment Methods */
#payment-methods { background: rgba(0,0,0,0.4); padding: 2.5rem; border-radius: 15px; margin: 4rem auto; max-width: 800px; text-align: center; border: 1px solid var(--border-color); }
#payment-methods h2 { font-size: 2.2rem; margin-bottom: 2rem; }
.payment-list { list-style: none; padding: 0; margin: 0 auto 2rem auto; display: flex; justify-content: center; gap: 2rem; font-size: 1.4rem; }

/* Contact Us Section */
#contact-us { background: rgba(0,0,0,0.4); padding: 2.5rem; border-radius: 15px; margin: 4rem auto; max-width: 800px; text-align: center; border: 1px solid var(--border-color); }
#contact-us h2 { font-size: 2.2rem; margin-bottom: 1rem; }
#contact-us p { font-size: 1.2rem; }
#contact-us a { color: var(--secondary-color); text-decoration: none; transition: color 0.3s; }
#contact-us a:hover { color: #fff; }

/* Modals */
.modal { display: none; position: fixed; z-index: 100; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.7); justify-content: center; align-items: center; }
.modal-content { background-color: #1a1a1a; padding: 2rem; border: 1px solid var(--border-color); border-radius: 10px; width: 90%; max-width: 400px; text-align: center; position: relative; box-shadow: 0 0 25px rgba(155, 89, 182, 0.4); }
.close-btn { color: #aaa; position: absolute; top: 15px; right: 20px; font-size: 28px; font-weight: bold; cursor: pointer; }
.modal-content input { width: calc(100% - 2rem); padding: 0.8rem; margin-bottom: 1rem; border-radius: 5px; border: 1px solid #555; background: #333; color: #fff; font-size: 1rem;}
.modal-content button[type="submit"] { background: var(--primary-color); color: #fff; border: none; padding: 0.8rem 1.5rem; font-size: 1.1rem; font-weight: bold; cursor: pointer; border-radius: 20px; transition: background 0.3s; width: 100%; }
.modal-content button[type="submit"]:hover { background: #8e44ad; }
#google-signin-btn { background: #fff; color: #444; border: 1px solid #ccc; padding: 0.6rem 1rem; border-radius: 5px; font-size: 1rem; cursor: pointer; transition: background 0.3s; display: flex; align-items: center; justify-content: center; gap: 0.5rem; width: 100%; margin-top: 1rem; }

.hidden { display: none !important; }

@media (max-width: 768px) { 
    #main-content { margin-right: 0; padding: 1rem; }
    #sidebar { width: 100%; height: auto; top: 0; right: 0; flex-direction: row; justify-content: space-around; padding: 1rem 0; border-left: none; border-bottom: 1px solid var(--border-color); }
    #main-content { margin-top: 150px; }
    .tabs { flex-direction: row; }
    #user-profile { flex-direction: row; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
