header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    animation: headerFadeInDown 1s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

@keyframes headerFadeInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header-inner {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    background: rgba(8, 12, 18, 0);
    border: 2px solid transparent;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 0;
    transition: max-width 0.5s cubic-bezier(0.23, 1, 0.32, 1),
        margin 0.5s cubic-bezier(0.23, 1, 0.32, 1),
        border-radius 0.5s cubic-bezier(0.23, 1, 0.32, 1),
        background 0.5s ease,
        border-color 0.5s ease,
        backdrop-filter 0.5s ease;
}

.header-top-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 30px 0px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-bottom-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 15px 30px 10px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header.scrolled .header-inner {
    max-width: 1300px;
    margin: 15px auto 0 auto;
    border-radius: 30px;
    background: rgba(10, 10, 12, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(25px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8);
    transition: max-width 0.5s cubic-bezier(0.23, 1, 0.32, 1),
        margin 0.5s cubic-bezier(0.23, 1, 0.32, 1),
        border-radius 0.5s cubic-bezier(0.23, 1, 0.32, 1),
        background 0.5s ease,
        border-color 0.5s ease 0.1s,
        backdrop-filter 0.5s ease;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.logo a:hover {
    transform: scale(1.05);
}

.logo img {
    height: 24px;
    width: auto;
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.logo a:hover img {
    transform: rotate(-10deg) scale(1.1);
}

.logo-text {
    font-size: 1.1rem;
    font-weight: 900;
    position: relative;
    color: #fff;
    transition: all 0.3s ease;
    letter-spacing: 1px;
    display: block;
}

.logo a:hover .logo-text {
    letter-spacing: 3px;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

.logo-text::before {
    content: 'Xeno.ovh';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: #ffffff;
    clip-path: polygon(-40% 0, -20% 0, 0% 100%, -20% 100%);
    animation: black-sweep 4s ease-in-out infinite;
    opacity: 0.5;
}

@keyframes black-sweep {
    0% {
        clip-path: polygon(-40% 0, -20% 0, 0% 100%, -20% 100%);
    }

    100% {
        clip-path: polygon(100% 0, 120% 0, 140% 100%, 120% 100%);
    }
}

.top-auth-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.header-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.2);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.6rem;
    font-weight: 800;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.admin-btn {
    border-color: rgba(231, 76, 60, 0.5);
    color: #e74c3c;
}

.admin-btn:hover {
    background: rgba(231, 76, 60, 0.1);
    border-color: #e74c3c;
    box-shadow: 0 0 15px rgba(231, 76, 60, 0.3);
}

.client-btn:hover {
    background: #fff;
    color: #000;
    border-color: #fff;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
    align-items: center;
    margin: 0;
    padding: 0;
    margin-left: 10px;
}

.nav-links li a i {
    display: block;
    margin-right: 8px;
    font-size: 0.9rem;
}

.nav-links a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #888;
    font-weight: 700;
    font-size: 0.75rem;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.nav-socials {
    display: flex;
    gap: 15px;
    align-items: center;
}

.shop-now-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    color: #fff;
    text-decoration: none;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.65rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.shop-now-btn:hover {
    background: #fff;
    color: #000;
    transform: translateY(-2px);
    border-color: #fff;
    box-shadow: 0 5px 10px rgba(255, 255, 255, 0.4);
}

.shop-now-btn i {
    transition: transform 0.3s ease;
    transform: translateY(2px);
}

.shop-now-btn:hover i {
    transform: translate(4px, 2px);
}

.nav-social-icon {
    font-size: 1rem;
    color: #fff;
    opacity: 0.6;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
}

.yt-icon:hover {
    opacity: 1;
    color: #ff0000;
    filter: drop-shadow(0 0 8px rgba(255, 0, 0, 0.6));
    transform: scale(1.1);
}

.dc-icon:hover {
    opacity: 1;
    color: #5865F2;
    filter: drop-shadow(0 0 8px rgba(88, 101, 242, 0.6));
    transform: scale(1.1);
}


.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: #fff;
    cursor: pointer;
    z-index: 3001;
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.mobile-brand,
.mobile-nav-footer {
    display: none;
}

@media (max-width: 1024px) {

    .nav-links,
    .nav-socials,
    .top-auth-actions {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    header.scrolled .header-inner {
        border-radius: 0;
        margin: 0;
        max-width: 100%;
        border-left: none;
        border-right: none;
        border-top: none;
        border-bottom: 2px solid rgba(255, 255, 255, 0.08);
    }
}

@media (max-width: 968px) {
    #nav-links {
        display: flex;
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        max-width: 320px;
        height: 100vh;
        background: #000;
        border-left: 2px solid rgba(255, 255, 255, 0.1);
        border-radius: 0;
        flex-direction: column;
        justify-content: flex-start;
        padding: 60px 20px;
        transform: translateX(100%);
        transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
        z-index: 2000;
        gap: 5px;
    }

    #nav-links.active {
        transform: translateX(0);
        box-shadow: -20px 0 50px rgba(0, 0, 0, 0.8);
    }

    .mobile-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
        margin-bottom: 40px;
        width: 100%;
    }

    .sidebar-logo-anim {
        height: 80px;
        width: auto;
        animation: logoFloat 3s ease-in-out infinite;
    }

    .logo-text-anim {
        font-weight: 900;
        letter-spacing: 4px;
        font-size: 1.8rem;
        color: #fff;
        text-transform: uppercase;
    }

    #nav-links li {
        width: 100%;
    }

    #nav-links a {
        display: flex;
        align-items: center;
        gap: 15px;
        padding: 16px 20px;
        color: #666;
        font-weight: 700;
        font-size: 1rem;
        border-radius: 14px;
        width: 100%;
        border: 2px solid transparent;
    }

    #nav-links li a i {
        display: block;
        font-size: 1.1rem;
        width: 25px;
        text-align: center;
        margin-right: 0;
    }

    #nav-links a:hover {
        background: rgba(255, 255, 255, 0.05);
        transform: translateX(5px);
        color: #fff;
        border-color: rgba(255, 255, 255, 0.1);
    }

    #nav-links.active li {
        animation: sidebarItemSlide 0.5s cubic-bezier(0.23, 1, 0.32, 1) forwards;
        opacity: 0;
    }

    #nav-links.active li:nth-child(2) {
        animation-delay: 0.1s;
    }

    #nav-links.active li:nth-child(3) {
        animation-delay: 0.15s;
    }

    #nav-links.active li:nth-child(4) {
        animation-delay: 0.2s;
    }

    #nav-links.active li:nth-child(5) {
        animation-delay: 0.25s;
    }

    .mobile-nav-footer {
        display: flex;
        flex-direction: column;
        gap: 12px;
        margin-top: auto;
        padding: 20px 0;
        width: 100%;
    }

    .mobile-cta-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
        padding: 18px;
        background: rgba(255, 255, 255, 0.05);
        border: 2px solid rgba(255, 255, 255, 0.1);
        border-radius: 14px;
        color: #fff;
        text-decoration: none;
        font-weight: 800;
        font-size: 0.9rem;
        text-transform: uppercase;
    }
}

@keyframes sidebarItemSlide {
    from {
        transform: translateX(20px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes logoFloat {

    0%,
    100% {
        transform: translateY(0) rotate(0);
    }

    50% {
        transform: translateY(-5px) rotate(-3deg);
    }
}