.site-topbar {
    position: fixed;
    inset: 0 0 auto;
    z-index: 20;
    min-height: 68px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(12, 12, 13, 0.88);
    backdrop-filter: blur(14px);
}

.site-topbar-inner {
    display: flex;
    width: min(1440px, 100%);
    min-height: 68px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 0 auto;
    padding: 10px clamp(16px, 4vw, 56px);
}

.site-topbar-brand {
    flex: 0 0 auto;
    color: #f1d58f;
    font-size: 15px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-decoration: none;
}

.site-topbar-brand span {
    color: #aaa69d;
    font-size: 10px;
    font-weight: 600;
}

.site-topbar-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.site-topbar-actions .site-topbar-link[aria-current="page"] {
    border-color: rgba(215, 183, 107, 0.4);
    color: #f1d58f;
    background: rgba(215, 183, 107, 0.09);
}

.site-topbar-link,
.site-topbar .admin-link {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin: 0;
    padding: 7px 11px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    color: #d0cdc5;
    background: rgba(0, 0, 0, 0.2);
    font-size: 12px;
    text-decoration: none;
    white-space: nowrap;
    transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.site-topbar-link:hover,
.site-topbar .admin-link:hover {
    border-color: rgba(215, 183, 107, 0.45);
    color: #f1d58f;
    background: rgba(215, 183, 107, 0.08);
}

.site-topbar .member-button {
    min-height: 36px;
    margin: 0;
    padding: 7px 12px;
    font-size: 12px;
}

@media (max-width: 520px) {
    .site-topbar,
    .site-topbar-inner {
        min-height: 58px;
    }

    .site-topbar-inner {
        gap: 8px;
        padding: 8px 12px;
    }

    .site-topbar-brand {
        font-size: 13px;
        letter-spacing: 0.08em;
    }

    .site-topbar-brand span {
        font-size: 8px;
    }

    .site-topbar-actions {
        max-width: calc(100vw - 126px);
        gap: 6px;
        justify-content: flex-start;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .site-topbar-actions::-webkit-scrollbar {
        display: none;
    }

    .site-topbar-link,
    .site-topbar .admin-link {
        min-height: 32px;
        gap: 5px;
        padding: 6px 9px;
        font-size: 10px;
    }

    .site-topbar .member-button {
        min-height: 32px;
        max-width: 164px;
        gap: 5px;
        overflow: hidden;
        padding: 6px 9px;
        font-size: 10px;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}
