* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    background: #000000;
    overflow-x: hidden;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background: #000000;
    color: #ffffff;
    overflow-x: hidden;
}

#root {
    background: #000000;
    margin: 0;
    padding: 0;
}

.glass-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 90000;
    display: flex;
    align-items: center;
    justify-content: flex-start; /* keep left/right slots, center nav will be absolutely centered */
    padding: 1.5rem 3rem;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.35);
    gap: 1rem;
    transition: padding 220ms ease, background 220ms ease, backdrop-filter 220ms ease;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: 0.5rem;
}

.logo {
    width: var(--brand-logo-size, 25px);
    height: var(--brand-logo-size, 25px);
    display: block;
}

.header-center {
    display:flex;
    align-items:center;
    justify-content:center;
    flex: 1 1 auto;
    gap: 1rem;
}

/* content hero (centered in viewport under header) */
:root { --header-h: 88px; }

@media (max-width: 800px){
    .hero h1 { font-size: 2rem; }
}

.logo-wrap {
    display: flex;
    align-items: center;
    margin-right: 1rem;
}

.nav-center {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.header-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-width: 120px;
    margin-left: auto; /* push to the right */
    gap: 0.6rem;
}

/* auth/name next to profile */
.header-auth {
    display: flex;
    align-items: center;
    color: #fdfdfd;
}

.header-auth #auth-link,
.header-auth .auth-name {
    color: #fdfdfd;
    text-decoration: none;
    font-weight: 600;
    margin-right: 0.4rem;
}

.nav-link {
    position: relative;
    color: #fdfdfd;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.4rem 0;
    transition: color 0.2s ease, opacity 0.2s ease;

}
.nav-link a{
    z-index: 999999 !important;
}

.nav-link::before,
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    width: 0;
    height: 2px;
    background: #fdfdfd;
    transition: width 0.3s ease;
}

.nav-link::before {
    left: 50%;
    transform: translateX(-100%);
}

.nav-link::after {
    right: 50%;
    transform: translateX(100%);
}

.nav-link:hover::before,
.nav-link:hover::after {
    width: 50%;
}

.nav-link:hover {
    color: #ffffff;
}

/* Profile placeholder / avatar */
.profile {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.profile-placeholder {
    width: 100%;
    height: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    background: linear-gradient(135deg,#4f46e5,#06b6d4); /* purple -> blue */
}

/* small responsive tweaks */
@media (max-width: 800px){
    .glass-header {
        padding: 0.85rem 1rem;
        gap: 0.5rem;
    }

    .header-left {
        margin-left: 0;
        flex: 0 0 auto;
    }

    .header-center {
        min-width: 0;
        justify-content: flex-start;
        overflow-x: auto;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .header-center::-webkit-scrollbar {
        display: none;
    }

    .nav-center {
        gap: 0.8rem;
        min-width: max-content;
        padding: 0 0.35rem;
    }

    .nav-link {
        font-size: 0.85rem;
        white-space: nowrap;
    }

    .header-right {
        min-width: auto;
        gap: 0.35rem;
    }

    .header-auth #auth-link,
    .header-auth .auth-name {
        font-size: 0.82rem;
        margin-right: 0;
        white-space: nowrap;
    }

    .profile {
        width: 34px;
        height: 34px;
    }

    .brand-lockup__name,
    .brand-name { display: none; }
}

@media (max-width: 520px) {
    .glass-header {
        padding: 0.72rem 0.75rem;
    }

    .header-auth {
        display: none;
    }
}