/* ========== NAVBAR ========== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    height: 60px;
    background: #16171c;
    font-weight: 700;
}

/* Left brand */
.nav-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo {
    height: 80px;
}

.brand {
    font-weight: 700;
    font-size: 1.25rem;
    color: #fff;
    margin: 0;
}

/* Center nav */
.nav-center {
    display: flex;
    gap: 24px;
    align-items: center;
}

.nav-center>a {
    text-decoration: none;
    color: white;
}

.nav-item {
    position: relative;
    font-size: 0.95rem;
    cursor: pointer;
    padding: 0 8px;
    line-height: 60px;
    transition: .2s;
    font-weight: 700;
}

.nav-item:hover {
    color: #00aaff;
}

.nav-item:hover::after {
    content: '';
    position: absolute;
    bottom: 12px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #00aaff;
    border-radius: 1px;
}

/* Dropdown submenu */
.nav-item.with-submenu {
    position: relative;
}

.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    flex-direction: column;
    background: #16171c;
    min-width: 160px;
    border-radius: 6px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.6);
    z-index: 50;
}

.with-submenu:hover .submenu {
    display: flex;
}

.submenu a {
    padding: 10px 16px;
    text-decoration: none;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: 6px;
    transition: 0.2s;
    line-height: 1.4;
}

.submenu a:hover {
    background: #222;
    color: #00aaff;
}

/* Right buttons */
.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

#loginButton {
    padding: 10px 20px;
    font-size: 17px;
    background-color: #5b67e7;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 6px;
    transition: background-color 0.2s;
    font-weight: 700;
    font-family: "Lato", sans-serif;
    white-space: nowrap;
}

#loginButton:hover {
    background-color: #717dff;
}

#loginButton img {
    font-size: 18px;
    margin-right: 8px;
    vertical-align: middle;
    color: white;
    height: 25px;
    width: auto;
}

.premium-btn {
    background: #FFD700;
    color: #000;
    padding: 6px 16px;
    border-radius: 6px;
    font-weight: 700;
    text-decoration: none;
    transition: .2s;
}

.premium-btn:hover {
    background: #e6c200;
}

/* General button styles */
.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Avatar and User Menu */
.user-menu {
    position: relative;
    display: inline-block;
    width: 100%;
}

.avatar-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
}

#avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 8px;
    object-fit: cover;
}

#username {
    font-size: 16px;
    color: white;
    font-family: "Lato", sans-serif;
    font-weight: 700;
}

#username:hover {
    color: #00aaff;
}

#username:hover::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 35%;
    width: 60%;
    height: 1px;
    background: #00aaff;
    border-radius: 1px;
}