/* =========================
   STICKY TOPBAR
========================= */
.topbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    min-height: var(--topbar-height);
    width: min(90vw, 1500px);
    margin: 0 auto;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 18px;
    background: rgba(21, 21, 21, 0.92);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: 0 12px 28px rgba(0,0,0,0.35);
    backdrop-filter: blur(10px);
}

.topbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text);
    font-weight: bold;
    white-space: nowrap;
}

.topbar-brand img {
    width: 34px;
    height: 34px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.topbar-menu {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-link,
.discord-button {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 9px 12px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    border: 1px solid transparent;
    transition: 0.2s;
}

.nav-link {
    color: var(--muted);
}

.nav-link:hover,
.nav-link.active {
    color: var(--royal-purple-bright);
    border-color: rgba(192,108,255,0.58);
    background: var(--royal-purple-soft);
    box-shadow: 0 0 18px rgba(143,61,255,0.20);
}

.discord-button {
    margin-left: auto;
    background: linear-gradient(135deg, var(--royal-purple-bright), var(--royal-purple));
    color: #11071f;
    border-color: rgba(225,178,255,0.50);
    box-shadow: 0 0 16px rgba(143,61,255,0.36);
}

.discord-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 28px rgba(192,108,255,0.60);
}

.rok-notes-download-button {
    margin-left: 0;
    background: linear-gradient(135deg, #32e6b2, #25bfe8);
    color: #06151c;
    border-color: rgba(111, 255, 226, 0.62);
    box-shadow: 0 0 16px rgba(37, 191, 232, 0.34);
}

.rok-notes-download-button:hover {
    box-shadow: 0 0 28px rgba(50, 230, 178, 0.55);
}

.topbar-meta {
    display: flex;
    align-items: center;
    gap: 10px;
}

.version-badge {
    color: rgba(156, 163, 175, 0.55);
    font-size: 11px;
    font-weight: bold;
    white-space: nowrap;
}

.website-session-identity {
    display: inline-flex;
    align-items: center;
    margin-left: 9px;
    padding-left: 9px;
    border-left: 1px solid rgba(156, 163, 175, 0.28);
    color: rgba(31, 241, 255, 0.72);
}

.site-footer {
    width: min(90vw, 1500px);
    margin: 8px auto 24px;
    text-align: right;
}

.mobile-nav-toggle {
    background: var(--card2);
    color: var(--text);
    border: 1px solid var(--border);
    padding: 9px 11px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
}

.mobile-nav-toggle:hover {
    border-color: var(--green);
    color: var(--green);
}

.mobile-nav-toggle {
    display: none;
    margin-left: auto;
}
