:root {
    --bg-deep: #0d0415;
    --hdr-grad: linear-gradient(180deg, #1a0829 0%, #120422 100%);
    --accent: #bc13fe;
    --pill-main: linear-gradient(135deg, #5a2ea6 0%, #8e24aa 100%);
    --pill-active: linear-gradient(135deg, #8e24aa 0%, #bc13fe 100%);
    --txt: #ffffff;
    --glass: rgba(255, 255, 255, 0.07);
}

body {
    margin: 0;
    background: var(--bg-deep);
    color: var(--txt);
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--hdr-grad);
    border-bottom: 1px solid rgba(188, 19, 254, 0.2);
    box-shadow: 0 4px 20px rgba(0,0,0,0.6);
}

.topbar__in {
    max-width: 1300px;
    margin: 0 auto;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.brand__logo {
    font-weight: 900;
    font-size: 22px;
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(188, 19, 254, 0.6);
    white-space: nowrap;
}

.brand__accent {
    color: var(--accent);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav {
    display: flex;
    gap: 8px;
    align-items: center;
}

.nav__a {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 38px;
    padding: 0 14px;
    border-radius: 99px;
    text-decoration: none;
    color: var(--txt);
    font-weight: 700;
    font-size: 13px;
    background: var(--glass);
    border: 1px solid rgba(255,255,255,0.1);
    transition: 0.2s;
    white-space: nowrap;
}

.nav__a:hover {
    background: var(--pill-main);
    transform: translateY(-1px);
}

.nav__a.is-active {
    background: var(--pill-active);
    border-color: var(--accent);
}

.nav__a--login {
    background: linear-gradient(135deg, #1565c0, #1e88e5) !important;
}

.nav__a--reg {
    background: var(--pill-main) !important;
}

.nav__a--logout {
    background: rgba(255, 77, 77, 0.15) !important;
    color: #ff4d4d !important;
}

.nav__badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #fff;
    color: #5a2ea6;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
}

.burger {
    display: none;
    width: 44px;
    height: 40px;
    border-radius: 10px;
    background: var(--glass);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    cursor: pointer;
}

@media (max-width: 1024px) {
    .brand__logo {
        font-size: 18px;
        white-space: normal;
        line-height: 1.1;
    }

    .burger {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .nav {
        display: none;
        position: absolute;
        top: 60px;
        left: 10px;
        right: 10px;
        background: rgba(26, 8, 41, 0.95);
        padding: 15px;
        border-radius: 16px;
        flex-direction: column;
        border: 1px solid var(--accent);
        backdrop-filter: blur(15px);
        box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    }

    .nav.is-open {
        display: flex;
    }

    .nav__a {
        width: 100%;
        box-sizing: border-box;
        justify-content: flex-start;
    }
}