/* ===============================
   BUXNESIA HEADER V2
   Fresh Gaming App Header
================================ */

.header {
    position: sticky;
    top: 14px;
    z-index: 1000;
    width: calc(100% - 28px);
    max-width: 1240px;
    margin: 14px auto 0;

    background:
        linear-gradient(135deg, rgba(15,23,42,.86), rgba(30,41,59,.72)),
        radial-gradient(circle at top left, rgba(59,130,246,.25), transparent 38%);

    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);

    border: 1px solid rgba(255,255,255,.12);
    border-radius: 999px;

    box-shadow:
        0 18px 50px rgba(0,0,0,.32),
        inset 0 1px 0 rgba(255,255,255,.08);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 12px 10px 16px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ===============================
   BRAND
================================ */

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;

    min-width: max-content;
}

.logo {
    width: 44px;
    height: 44px;
    object-fit: contain;

    padding: 6px;
    border-radius: 50%;

    background:
        linear-gradient(135deg, rgba(59,130,246,.18), rgba(139,92,246,.18));

    border: 1px solid rgba(255,255,255,.12);

    box-shadow:
        0 0 24px rgba(59,130,246,.22),
        inset 0 1px 0 rgba(255,255,255,.08);

    transition: .3s ease;
}

.logo:hover {
    transform: rotate(-4deg) scale(1.08);
}

.brand-name {
    display: flex;
    align-items: center;
    gap: 8px;

    font-size: 17px;
    font-weight: 900;
    color: #fff;

    letter-spacing: -.04em;
    line-height: 1;
}

.brand-name::after {
    content: "ID";
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .04em;

    color: #07111f;
    background: linear-gradient(135deg, #22d3ee, #facc15);

    padding: 4px 7px;
    border-radius: 999px;

    box-shadow: 0 0 18px rgba(34,211,238,.28);
}

/* ===============================
   HAMBURGER
================================ */

.menu-toggle {
    width: 46px;
    height: 46px;

    border: 1px solid rgba(255,255,255,.14);
    border-radius: 50%;

    background:
        linear-gradient(135deg, rgba(59,130,246,.22), rgba(139,92,246,.18));

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;

    padding: 0;
    cursor: pointer;

    box-shadow:
        0 10px 24px rgba(0,0,0,.24),
        inset 0 1px 0 rgba(255,255,255,.08);

    transition: .25s ease;
}

.menu-toggle:hover {
    transform: translateY(-2px);
    box-shadow:
        0 14px 30px rgba(59,130,246,.28),
        inset 0 1px 0 rgba(255,255,255,.1);
}

.menu-toggle span {
    width: 18px;
    height: 2px;
    background: #fff;
    border-radius: 999px;
    transition: .3s ease;
}

.menu-toggle span:nth-child(2) {
    width: 13px;
}

/* ===============================
   MOBILE MENU
================================ */

.mobile-menu {
    position: fixed;
    top: 92px;
    left: 14px;
    right: 14px;

    display: none;
    flex-direction: column;
    gap: 8px;

    padding: 12px;

    background:
        linear-gradient(180deg, rgba(15,23,42,.98), rgba(7,11,24,.98));

    border: 1px solid rgba(255,255,255,.12);
    border-radius: 24px;

    box-shadow:
        0 28px 70px rgba(0,0,0,.48),
        inset 0 1px 0 rgba(255,255,255,.08);

    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
}

.mobile-menu.show {
    display: flex;
}

.mobile-menu a {
    position: relative;

    display: flex;
    align-items: center;
    gap: 12px;

    min-height: 48px;
    padding: 13px 15px;

    color: #cbd5e1;
    font-size: 14px;
    font-weight: 800;

    border-radius: 16px;

    background: rgba(255,255,255,.035);
    border: 1px solid rgba(255,255,255,.06);

    transition: .25s ease;
    text-decoration: none !important;
}

.mobile-menu a::before {
    content: "";
    width: 8px;
    height: 8px;

    border-radius: 50%;
    background: rgba(148,163,184,.5);

    box-shadow: 0 0 0 rgba(59,130,246,0);
}

.mobile-menu a:hover {
    color: #fff;
    transform: translateX(4px);

    background: rgba(59,130,246,.14);
    border-color: rgba(59,130,246,.22);
}

.mobile-menu a:hover::before {
    background: #22d3ee;
    box-shadow: 0 0 18px rgba(34,211,238,.8);
}

.mobile-menu a.active {
    color: #fff;

    background:
        linear-gradient(135deg, rgba(59,130,246,.95), rgba(139,92,246,.95));

    border-color: rgba(255,255,255,.18);

    box-shadow:
        0 14px 34px rgba(59,130,246,.28),
        inset 0 1px 0 rgba(255,255,255,.16);
}

.mobile-menu a.active::before {
    background: #facc15;
    box-shadow: 0 0 18px rgba(250,204,21,.75);
}

/* ===============================
   DESKTOP MODE
================================ */

@media (min-width: 992px) {

    .menu-toggle {
        display: none;
    }

    .mobile-menu {
        position: static;

        display: flex !important;
        flex-direction: row;
        align-items: center;
        gap: 6px;

        padding: 6px;

        background: rgba(255,255,255,.045);
        border: 1px solid rgba(255,255,255,.075);
        border-radius: 999px;

        box-shadow:
            inset 0 1px 0 rgba(255,255,255,.06);

        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .mobile-menu a {
        min-height: 0;
        padding: 10px 16px;

        color: #cbd5e1;
        font-size: 13px;
        font-weight: 800;

        border-radius: 999px;

        background: transparent;
        border: 1px solid transparent;

        transform: none;
    }

    .mobile-menu a::before {
        display: none;
    }

    .mobile-menu a:hover {
        color: #fff;

        background: rgba(59,130,246,.14);
        border-color: rgba(59,130,246,.22);

        transform: translateY(-1px);
    }

    .mobile-menu a.active {
        color: #07111f;

        background: linear-gradient(135deg, #22d3ee, #facc15);
        border-color: rgba(255,255,255,.28);

        box-shadow:
            0 10px 30px rgba(34,211,238,.22),
            inset 0 1px 0 rgba(255,255,255,.35);
    }

    .mobile-menu a.active::after {
        display: none;
    }
}

/* ===============================
   MOBILE RESPONSIVE
================================ */

@media (max-width: 576px) {

    .header {
        top: 10px;
        width: calc(100% - 20px);
        margin-top: 10px;
        border-radius: 26px;
    }

    .header-container {
        padding: 9px 10px 9px 12px;
    }

    .logo {
        width: 40px;
        height: 40px;
    }

    .brand-name {
        font-size: 16px;
    }

    .menu-toggle {
        width: 42px;
        height: 42px;
    }

    .mobile-menu {
        top: 78px;
        left: 10px;
        right: 10px;
        border-radius: 22px;
    }
}