.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    background: radial-gradient( circle at 10% 0%, rgba(36, 215, 234, 0.13), transparent 30%), radial-gradient( circle at 90% 0%, rgba(169, 76, 242, 0.14), transparent 30%), rgba(9, 14, 24, 0.96);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.site-header::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 2px;
    opacity: 0.65;
    background: linear-gradient( 90deg, transparent, var(--blue), var(--cyan), var(--green), var(--purple), transparent);
}

.site-header .container {
    padding-top: 0;
    padding-bottom: 0;
}

.navbar {
    position: relative;
    min-height: 86px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding-right: 20px;
    padding-left: 20px;
}

.brand {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s ease;
}

.brand:hover {
    transform: translateY(-2px);
}

.brand img {
    width: 105px;
    height: 62px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
}

.nav-links a {
    position: relative;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    color: #b7c1ce;
    text-decoration: none;
    border-radius: 10px;
    transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.nav-links a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.07);
}

.nav-links a.active {
    color: #07131c;
    background: linear-gradient( 90deg, var(--cyan), var(--green));
    box-shadow: 0 8px 22px rgba(36, 215, 234, 0.17);
}

.nav-links a::after,
.nav-links a:hover::after,
.nav-links a.active::after {
    display: none;
}

.nav-actions {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 11px;
}

.nav-actions .btn {
    border-radius: 12px;
}

.menu-toggle {
    display: none;
    width: 46px;
    height: 46px;
    padding: 0;
    color: #ffffff;
    font-size: 19px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: background 0.25s ease, transform 0.25s ease;
}

.menu-toggle:hover {
    background: rgba(36, 215, 234, 0.12);
    transform: translateY(-2px);
}

@media (max-width: 1000px) {
    .navbar {
        gap: 18px;
    }
    .nav-links {
        gap: 4px;
    }
    .nav-links a {
        padding: 0 13px;
        font-size: 12px;
    }
    .nav-actions .btn {
        padding: 0 15px;
    }
}

@media (max-width: 830px) {
    .navbar {
        min-height: 76px;
    }
    .brand img {
        width: 88px;
        height: 54px;
    }
    .menu-toggle {
        display: grid;
        place-items: center;
    }
    .nav-actions .btn {
        display: none;
    }
    .nav-links {
        position: absolute;
        top: calc(100% + 1px);
        right: 20px;
        left: 20px;
        z-index: 1001;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 7px;
        padding: 14px;
        visibility: hidden;
        opacity: 0;
        pointer-events: none;
        transform: translateY(-10px);
        transform-origin: top;
        background: radial-gradient( circle at 90% 10%, rgba(169, 76, 242, 0.13), transparent 35%), rgba(10, 16, 27, 0.99);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-top: 0;
        border-radius: 0 0 18px 18px;
        box-shadow: 0 24px 50px rgba(0, 0, 0, 0.36);
        transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    }
    .nav-links.open {
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }
    .nav-links a {
        width: 100%;
        min-height: 48px;
        justify-content: flex-start;
        padding: 0 17px;
        font-size: 13px;
        border-radius: 11px;
    }
    .nav-links a.active {
        color: #07131c;
    }
}

@media (max-width: 560px) {
    .navbar {
        min-height: 72px;
        padding-right: 15px;
        padding-left: 15px;
    }
    .brand img {
        width: 82px;
        height: 50px;
    }
    .menu-toggle {
        width: 43px;
        height: 43px;
        font-size: 18px;
    }
    .nav-links {
        right: 15px;
        left: 15px;
    }
}

.simple-dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.simple-dropdown-trigger {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
}

.simple-dropdown-trigger>i {
    font-size: 9px;
    transition: transform 0.25s ease;
}

.simple-dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    z-index: 1200;
    width: 285px;
    padding: 8px 0;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    background: #ffffff;
    border: 1px solid #e6e9ef;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 18px 45px rgba(11, 16, 26, 0.18);
    transform: translateX(-50%) translateY(-8px);
    transition: opacity 0.22s ease, visibility 0.22s ease, transform 0.22s ease;
}

.simple-dropdown-menu::before {
    content: "";
    position: absolute;
    right: 0;
    bottom: 100%;
    left: 0;
    height: 14px;
}

.simple-dropdown:hover .simple-dropdown-menu,
.simple-dropdown:focus-within .simple-dropdown-menu,
.simple-dropdown.open .simple-dropdown-menu {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.simple-dropdown:hover .simple-dropdown-trigger>i,
.simple-dropdown:focus-within .simple-dropdown-trigger>i,
.simple-dropdown.open .simple-dropdown-trigger>i {
    transform: rotate(180deg);
}

.nav-links .simple-dropdown-menu>a {
    width: 100%;
    min-height: 47px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 10px 21px;
    color: #202938;
    font-size: 13px;
    font-weight: 550;
    line-height: 1.45;
    text-align: left;
    background: #ffffff;
    border-radius: 0;
    transition: color 0.22s ease, background 0.22s ease, padding-left 0.22s ease;
}

.nav-links .simple-dropdown-menu>a:hover {
    color: var(--blue);
    background: #f2f6ff;
    padding-left: 25px;
}

.simple-dropdown-menu::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    background: linear-gradient( 90deg, var(--blue), var(--cyan), var(--purple));
}

@media (max-width: 830px) {
    .simple-dropdown {
        width: 100%;
        display: block;
    }
    .simple-dropdown-trigger {
        width: 100% !important;
        justify-content: space-between !important;
    }
    .simple-dropdown-menu {
        position: relative;
        top: auto;
        width: 100%;
        max-height: 0;
        margin-top: 0;
        padding: 0;
        overflow: hidden;
        visibility: hidden;
        opacity: 0;
        pointer-events: none;
        background: #ffffff;
        border: 0;
        border-radius: 10px;
        box-shadow: none;
        transform: none;
        transition: max-height 0.35s ease, margin-top 0.35s ease, padding 0.35s ease, opacity 0.25s ease, visibility 0.25s ease;
    }
    .simple-dropdown:hover .simple-dropdown-menu,
    .simple-dropdown:focus-within .simple-dropdown-menu {
        max-height: 0;
        margin-top: 0;
        padding: 0;
        visibility: hidden;
        opacity: 0;
        pointer-events: none;
    }
    /* Open through JavaScript */
    .simple-dropdown.open .simple-dropdown-menu {
        max-height: 450px;
        margin-top: 7px;
        padding: 7px 0;
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
    }
    .simple-dropdown-menu::before {
        display: none;
    }
    .nav-links .simple-dropdown-menu>a {
        min-height: 44px;
        padding: 9px 17px;
        color: #202938;
        font-size: 12px;
    }
    .nav-links .simple-dropdown-menu>a:hover {
        padding-left: 21px;
    }
}