.header {
    height: 68px !important;
    max-height: 68px;
    box-sizing: border-box;
}

.logo {
    display: inline-flex !important;
    align-items: center;
    flex-shrink: 0;
    height: 52px;
    text-decoration: none !important;
    background: none !important;
    -webkit-text-fill-color: unset !important;
}

.logo span {
    background: none !important;
    -webkit-text-fill-color: unset !important;
}

.logo-img {
    display: block;
    height: 48px;
    width: auto;
    max-width: 270px;
}

.auth-logo {
    display: flex !important;
    justify-content: center;
    align-items: center;
    text-decoration: none !important;
    margin-bottom: 1.4rem;
    background: none !important;
    -webkit-text-fill-color: unset !important;
}

.auth-logo span {
    background: none !important;
    -webkit-text-fill-color: unset !important;
}

.auth-logo .logo-img {
    height: 96px;
    max-width: 280px;
}

@media (max-width: 640px) {
    .logo { height: 44px; }
    .logo-img { height: 40px; max-width: 190px; }
    .auth-logo .logo-img { height: 72px; }
}

.header-container {
    height: 100%;
    max-height: 100%;
    align-items: center;
    box-sizing: border-box;
}

.header-role-links {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
    height: 40px;
}

.header-right {
    gap: 0.45rem;
    flex-shrink: 0;
    min-width: 0;
    height: 40px;
    align-items: center;
}

.header-center {
    display: flex;
    flex: 0 1 auto;
    align-self: stretch;
    align-items: stretch;
    min-width: 0;
    height: 100%;
    max-height: none !important;
    gap: 0 !important;
    padding: 0 !important;
    margin: 0;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-sizing: border-box;
}

.header-center .nav-link {
    position: relative;
    display: flex !important;
    align-items: center;
    justify-content: center;
    height: 100%;
    margin: 0;
    padding: 0 1.2rem !important;
    border-radius: 0 !important;
    border-left: 1px solid rgba(148, 163, 184, 0.14) !important;
    border-right: none !important;
    border-top: none !important;
    border-bottom: none !important;
    background: transparent !important;
    box-shadow: none !important;
    color: var(--muted, #94a3b8);
    font-size: 0.88rem !important;
    font-weight: 500;
    line-height: 1.2 !important;
    white-space: nowrap;
    transition: color 0.2s ease, background 0.2s ease;
}

.header-center .nav-link:last-child {
    border-right: 1px solid rgba(148, 163, 184, 0.14) !important;
}

.header-center .nav-link:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.06) !important;
}

.header-center .nav-link.active {
    color: #fff !important;
    font-weight: 600;
    background: rgba(34, 211, 238, 0.08) !important;
    box-shadow: none !important;
}

.header-center .nav-link.active::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: linear-gradient(90deg, #67e8f9, #38bdf8);
}

.header-role-links .boost-link,
.header-role-links .support-link,
.header-role-links .admin-link {
    width: 40px;
    min-width: 40px;
    height: 40px;
    padding: 0 !important;
    gap: 0;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.header-role-links .boost-link:hover,
.header-role-links .support-link:hover,
.header-role-links .admin-link:hover,
.header-role-links .boost-link.is-active,
.header-role-links .support-link.is-active,
.header-role-links .admin-link.is-active {
    transform: none !important;
}

.header-role-links .role-link-label {
    display: none;
}

.header .admin-link:hover,
.header .boost-link:hover {
    transform: none !important;
}

.admin-link,
.boost-link,
.support-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    height: 40px;
    padding: 0 0.9rem;
    border-radius: 12px;
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    white-space: nowrap;
    transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.admin-link {
    color: #a5f3fc;
    background: rgba(34, 211, 238, 0.1);
    border: 1px solid rgba(34, 211, 238, 0.28);
}

.admin-link:hover,
.admin-link.is-active {
    background: rgba(34, 211, 238, 0.22);
    border-color: rgba(34, 211, 238, 0.6);
    color: #fff;
}

.boost-link {
    color: #ddd6fe;
    background: rgba(139, 92, 246, 0.12);
    border: 1px solid rgba(139, 92, 246, 0.32);
}

.boost-link:hover,
.boost-link.is-active {
    background: rgba(139, 92, 246, 0.24);
    border-color: rgba(139, 92, 246, 0.65);
    color: #fff;
}

.support-link {
    color: #e9d5ff;
    background: rgba(168, 85, 247, 0.14);
    border: 1px solid rgba(168, 85, 247, 0.38);
}

.support-link:hover,
.support-link.is-active {
    background: rgba(168, 85, 247, 0.24);
    border-color: rgba(168, 85, 247, 0.65);
    color: #fff;
}

.support-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #7c3aed;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    line-height: 1;
    box-shadow: none;
}

.support-badge[hidden] {
    display: none !important;
}

.lang-form {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 0;
}

.lang-form .lang-option {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    width: 100%;
    border: none;
    background: transparent;
    color: rgba(233, 237, 247, 0.85);
    padding: 0.55rem 0.7rem;
    border-radius: 10px;
    font: inherit;
    font-size: 0.88rem;
    cursor: pointer;
    text-align: left;
}

.lang-form .lang-option:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.lang-form .lang-option.active {
    background: rgba(34, 211, 238, 0.12);
    color: #67e8f9;
}

@media (max-width: 1200px) {
    .header-right > .icon-link { display: none; }
    .header-center .nav-link { padding: 0 0.85rem !important; font-size: 0.82rem !important; }
    .profile-btn .user-name { display: none; }
}

@media (max-width: 1100px) {
    .header-center { display: none !important; }
}
