.topnav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1040;
    display: flex;
    align-items: center;
    gap: 28px;
    height: 56px;
    padding: 0 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(6, 7, 10, 0.72);
    -webkit-backdrop-filter: blur(18px) saturate(170%);
    backdrop-filter: blur(18px) saturate(170%);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 17px;
    line-height: 1.4;
}

.topnav, .topnav * {
    box-sizing: border-box;
    border-radius: 0 !important;
}

.topnav a {
    color: #9aa4b5;
    text-decoration: none;
}

.topnav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #f5f7fb !important;
    font-size: 1.15em;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.topnav-brand img {
    display: block;
}

.topnav nav {
    display: flex;
    gap: 22px;
    margin-right: auto;
}

.topnav nav a {
    padding: 4px 0;
    border-bottom: 2px solid transparent;
    font-size: 0.92em;
    font-weight: 500;
}

.topnav nav a:hover {
    color: #f5f7fb;
}

.topnav nav a[aria-current="page"] {
    border-bottom-color: #3b82f6;
    color: #f5f7fb;
}

.topnav-extra {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #9aa4b5;
    font-size: 0.92em;
}

body.has-topnav {
    padding-top: 56px;
    font-size: 17px;
    line-height: 1.65;
}

body.has-topnav .chat-container {
    height: calc(100dvh - 56px) !important;
}

@media (max-width: 560px) {
    .topnav {
        gap: 14px;
        padding: 0 14px;
    }

    .topnav-brand span {
        display: none;
    }

    .topnav nav {
        gap: 14px;
    }
}
