:root {
    --header-primary: #3b82f6;
    --header-primary-glow: rgba(59, 130, 246, 0.3);
    --header-bg-dark: #020617;
    --header-border: rgba(255, 255, 255, 0.1);
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    z-index: 1000;
    color: white;
    background: rgba(2, 6, 23, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--header-border);
    transition: 0.3s;
}

.header .navbar-brand {
    margin: 0;
    order: 1;
}

.header .navbar-box {
    order: 2;
    flex: 1;
    display: flex;
    justify-content: center;
    position: unset;
    background: unset;
    box-shadow: unset;
    padding: unset;
}

.header .navbar-items {
    flex-direction: row;
    padding: 0;
    gap: 5px;
}

.header .nav-link {
    color: rgba(255, 255, 255, 0.9);
    margin-right: 8px;
    padding: 8px 12px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 6px;
}

.header .nav-link:hover,
.header .nav-item.active .nav-link {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.header .dropdown-toggle::after {
    border-top-color: rgba(255, 255, 255, 0.8);
}

.header .dropdown-menu {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border: none;
    padding: 5px 0;
}

.header .dropdown-menu .dropdown-item {
    color: #333;
    padding: 10px 15px;
}

.header .dropdown-menu .dropdown-item:hover {
    background: #f8fafc;
    color: var(--header-primary);
}

.header .menu {
    order: 3;
    flex: 0 0 auto;
}

.header .menu ul {
    gap: 12px;
}

.header .lang-wrapper {
    position: relative;
    cursor: pointer;
}

.header .lang-current {
    padding: 6px 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    color: white;
}

.header .lang-dropdown {
    position: absolute;
    top: 110%;
    right: 0;
    width: 160px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: 0.3s;
    padding: 5px 0;
    z-index: 1001;
}

.header .lang-wrapper:hover .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.header .lang-item {
    padding: 10px 15px;
    color: #333;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.header .lang-item:hover {
    background: #f8fafc;
    color: var(--header-primary);
}

.header .menu-login a,
.header .menu-register a,
.header .menu-profile a:not(.dropdown-item) {
    background: var(--header-primary) !important;
    color: white !important;
    padding: 8px 20px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 14px;
}

.header .menu-login a:hover,
.header .menu-register a:hover,
.header .menu-profile a:not(.dropdown-item):hover {
    background: #2563eb !important;
    color: white !important;
}

.header .navbar-toggler {
    color: white;
    padding: 8px;
}

.header .navbar-toggler svg {
    fill: white;
}

body.has-header {
    padding-top: 60px;
}
@media (max-height: 1080px) {
    .header{
        height: 40px;
    }
    body.has-header{
        padding-top: 40px;
    }
}
@media (max-width: 991px) {
    .header .navbar-box {
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: rgba(2, 6, 23, 0.98);
        padding: 15px;
        border-bottom: 1px solid var(--header-border);
    }

    .header .navbar-box.collapse {
        display: none !important;
    }

    .header .navbar-box.collapse.show {
        display: flex !important;
    }

    .header .navbar-items {
        flex-direction: column;
    }

    .header .nav-link {
        color: white;
        margin: 5px 0;
    }
}

@media (min-width: 992px) {
    .header .navbar-box.collapse {
        display: flex !important;
    }

    .header .navbar-toggler {
        display: none !important;
    }

    .header .lang-nav-mobile {
        display: none !important;
    }
}

@media (max-width: 991px) {
    .header .lang-nav-mobile {
        display: list-item;
    }
}

@media (max-width: 650px) {
    .header{
        height: 32px;
    }
    body.has-header{
        padding-top: 32px;
    }
}