:root {
    --bg-main: #060606;
    --card-bg: #111111;
    --card-hover: #161616;
    --accent-purple: #a855f7;
    --accent-purple-glow: rgba(168, 85, 247, 0.4);
    --accent-blue: #0f80ff;
    --text-main: #ffffff;
    --text-secondary: #94a3b8;
    --border: #1a1a1a;
    --transition: all 0.3s ease;
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-body);
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
}

/* SESSION VISIBILITY GLOBALS */
.logged-only {
    display: none !important;
}

html.is-logged-in .logged-only {
    display: flex !important;
}

html.is-logged-in .guest-only {
    display: none !important;
}

html.is-logged-out .logged-only {
    display: none !important;
}

html.is-logged-out .guest-only {
    display: flex !important;
}

/* HEADER STYLES */
header {
    background: rgba(5, 5, 5, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.header-inner {
    max-width: 1600px;
    margin: 0 auto;
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.4rem;
    color: #fff;
}

.logo-area img {
    height: 32px;
}

.nav-center {
    display: flex;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
}

.nav-link:hover {
    color: #fff;
}

.header-btns {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* BUTTONS */
.btn-login,
.btn-register,
.btn-discord {
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-login {
    background: transparent;
    border: 1px solid var(--border);
    color: #fff;
}

.btn-register {
    background: var(--accent-purple);
    border: none;
    color: #fff;
    box-shadow: 0 0 15px var(--accent-purple-glow);
}

.btn-discord {
    background: #5865f2;
    border: none;
    color: #fff;
    padding: 10px 14px;
}

.btn-login:hover {
    border-color: #fff;
}

.btn-register:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

/* DROPDOWN BASICS */
.dropdown-wrap {
    position: relative;
}

.dropdown-btn {
    background: #111;
    border: 1px solid var(--border);
    color: #fff;
    padding: 9px 15px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: 0.2s;
}

.dropdown-btn:hover {
    border-color: #444;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: #0a0a0a;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 8px;
    min-width: 180px;
    display: none;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 100;
}

.dropdown-menu.show {
    display: flex;
}

.dropdown-menu a,
.dropdown-menu button {
    padding: 10px 15px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 6px;
    transition: 0.2s;
    background: transparent;
    border: none;
    text-align: left;
    width: 100%;
    cursor: pointer;
}

.dropdown-menu a:hover,
.dropdown-menu button:hover {
    background: #161616;
    color: #fff;
}

/* ICONS */
.icon-btn {
    padding: 9px !important;
}

/* FOOTER */
footer {
    border-top: 1px solid var(--border);
    padding: 80px 40px 40px;
    background: #050505;
}

.footer-inner {
    max-width: 1600px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 2fr;
    gap: 60px;
}

.footer-col h4 {
    color: #fff;
    font-family: var(--font-heading);
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: 0.2s;
}

.footer-links a:hover {
    color: #fff;
}

.footer-bottom {
    margin-top: 80px;
    padding-top: 30px;
    border-top: 1px solid #111;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #475569;
    font-size: 0.9rem;
}