:root {
    --mg-bg: #05070a;
    --mg-panel: rgba(12,17,24,.82);
    --mg-line: #26303c;
    --mg-text: #f6f8fb;
    --mg-muted: #8e99aa;
    --mg-lime: #b9ff3d;
    --mg-violet: #8b6cff
}

.mg-nav {
    height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    border-bottom: 1px solid rgba(255,255,255,.08);
    background: rgba(5,7,10,.72);
    backdrop-filter: blur(22px);
    position: sticky;
    top: 0;
    z-index: 1000
}

.mg-brand {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--mg-text);
    text-decoration: none;
    font-weight: 950;
    letter-spacing: -.07em;
    font-size: 17px
}

.mg-brand span {
    color: var(--mg-lime)
}

.mg-brand em {
    font-style: normal;
    color: var(--mg-lime);
    font-size: 9px;
    margin-left: 3px
}

.mg-links {
    display: flex;
    align-items: center;
    gap: 5px
}

.mg-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 12px;
    color: #aeb7c6;
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
    transition: .2s
}

.mg-link:hover,.mg-link.active {
    color: #fff;
    background: rgba(255,255,255,.055)
}

.mg-link svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round
}

.mg-sign {
    color: #050608;
    background: var(--mg-lime);
    padding: 10px 15px;
    border-radius: 12px;
    font-weight: 950;
    text-decoration: none;
    font-size: 13px
}

.mg-menu {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 13px;
    background: rgba(255,255,255,.04);
    color: #fff;
    align-items: center;
    justify-content: center
}

.mg-menu svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round
}

.mg-drawer {
    display: none
}

@media(max-width: 760px) {
    .mg-nav {
        height:68px;
        padding: 0 14px
    }

    .mg-links {
        display: none
    }

    .mg-menu {
        display: flex
    }

    .mg-drawer {
        position: fixed;
        inset: 0 0 0 auto;
        width: min(88vw,360px);
        display: flex;
        flex-direction: column;
        padding: 86px 20px 24px;
        background: rgba(6,9,13,.96);
        backdrop-filter: blur(28px);
        border-left: 1px solid rgba(255,255,255,.09);
        transform: translateX(105%);
        transition: transform .32s cubic-bezier(.2,.8,.2,1);
        z-index: 1001
    }

    .mg-drawer.open {
        transform: translateX(0)
    }

    .mg-drawer-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,.55);
        opacity: 0;
        pointer-events: none;
        transition: .25s;
        z-index: 1000
    }

    .mg-drawer-backdrop.open {
        opacity: 1;
        pointer-events: auto
    }

    .mg-drawer .mg-link,.mg-drawer .mg-sign {
        width: 100%;
        min-height: 48px;
        margin-bottom: 7px
    }

    .mg-drawer-close {
        position: absolute;
        right: 16px;
        top: 16px;
        width: 42px;
        height: 42px;
        border-radius: 12px;
        border: 1px solid rgba(255,255,255,.1);
        background: rgba(255,255,255,.04);
        color: #fff
    }

    .mg-drawer-close svg {
        width: 20px;
        height: 20px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.8;
        stroke-linecap: round
    }

    .mg-drawer-label {
        font-size: 10px;
        letter-spacing: .2em;
        color: var(--mg-lime);
        font-weight: 950;
        margin: 0 0 15px
    }
}


.mg-account-actions{display:flex;align-items:center;gap:7px;margin-left:3px}.mg-account-link{display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:9px 12px;border-radius:11px;color:#d5dbe5;background:rgba(255,255,255,.035);border:1px solid rgba(255,255,255,.08);text-decoration:none;font-size:12px;font-weight:900;transition:.2s}.mg-account-link:hover,.mg-account-link.active{color:#fff;background:rgba(196,255,63,.07);border-color:rgba(196,255,63,.22)}.mg-account-link:first-child{color:#050608;background:var(--mg-lime);border-color:var(--mg-lime)}.mg-account-link:first-child:hover,.mg-account-link:first-child.active{color:#050608;background:#cfff62;border-color:#cfff62}.mg-logout{display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:9px 12px;border:1px solid rgba(255,255,255,.10);background:#0d131b;color:#aeb7c6;border-radius:11px;font:inherit;font-size:12px;font-weight:900;cursor:pointer;transition:.2s}.mg-logout:hover{color:#fff;border-color:rgba(196,255,63,.28);background:#121a24}.mg-drawer .mg-account-actions{width:100%;display:grid;grid-template-columns:1fr 1fr;gap:7px;margin:6px 0 0}.mg-drawer .mg-account-link,.mg-drawer .mg-logout{width:100%;min-height:48px}.mg-drawer .mg-account-link:first-child{grid-column:1/-1}.mg-drawer .mg-account-actions .mg-settings-link{grid-column:1}.mg-drawer .mg-account-actions .mg-logout{grid-column:2}@media(max-width:760px){.mg-drawer .mg-account-actions{grid-template-columns:1fr 1fr}.mg-links .mg-account-actions{display:none}}
