:root {
    --nu-green: #008751;
    --nu-dark: #063b25;
    --nu-soft: #e9fff3;
    --nu-light: #f7fffb;
    --nu-text: #10251a;
    --nu-muted: #68776d;
    --nu-border: #dcefe5;
    --nu-white: #fff;
    --nu-danger: #991b1b;
    --nu-shadow: 0 20px 45px rgb(0 60 30 / .18);
}

.nu-navbar,
.nu-navbar * {
    box-sizing: border-box;
}

.nu-navbar {
    position: sticky;
    top: 0;
    z-index: 9999;
    width: 100%;
    border-bottom: 1px solid var(--nu-border);
    color: var(--nu-text);
    background: rgb(255 255 255 / .98);
    box-shadow: 0 8px 24px rgb(0 0 0 / .05);
    backdrop-filter: blur(14px);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
}

.nu-navbar a {
    color: inherit;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

.nu-nav-wrap {
    display: flex;
    width: 100%;
    min-height: 64px;
    margin: auto;
    padding: 8px 10px;
    align-items: center;
    justify-content: space-between;
    gap: 9px;
}

.nu-brand {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 10px;
    color: var(--nu-dark) !important;
    font-weight: 900;
}

.nu-brand-icon {
    display: flex;
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    overflow: hidden;
    border: 1px solid var(--nu-border);
    border-radius: 14px;
    align-items: center;
    justify-content: center;
    background: var(--nu-white);
    box-shadow: 0 8px 20px rgb(0 60 30 / .1);
}

.nu-logo,
.nu-mobile-logo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nu-brand-text {
    display: none;
    font-size: 1rem;
    letter-spacing: .04em;
}

.nu-wallet-chip {
    display: grid;
    margin-left: auto;
    padding: 6px 9px;
    border: 1px solid #b7ecd1;
    border-radius: 11px;
    color: var(--nu-dark) !important;
    background: var(--nu-soft);
    line-height: 1.05;
    text-align: right;
}

.nu-wallet-chip small {
    color: var(--nu-muted);
    font-size: .55rem;
}

.nu-wallet-chip strong {
    margin-top: 3px;
    color: var(--nu-green);
    font-size: .72rem;
}

.nu-mobile-open,
.nu-mobile-close,
.nu-backdrop {
    cursor: pointer;
}

.nu-mobile-open {
    display: grid;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 14px;
    place-content: center;
    gap: 4px;
    color: var(--nu-dark);
    background: var(--nu-soft);
}

.nu-mobile-open span {
    display: block;
    width: 19px;
    height: 2px;
    border-radius: 99px;
    background: currentColor;
}

.nu-backdrop {
    display: none;
}

.nu-backdrop.show {
    position: fixed;
    inset: 0;
    z-index: 9997;
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: rgb(0 0 0 / .48);
}

.nu-menu {
    position: fixed;
    top: 0;
    right: -105%;
    z-index: 9998;
    display: flex;
    width: min(92vw, 410px);
    height: 100dvh;
    margin: 0;
    padding: 0 14px 25px;
    overflow-y: auto;
    overscroll-behavior: contain;
    flex: none;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    list-style: none;
    background: var(--nu-white);
    box-shadow: -18px 0 45px rgb(0 0 0 / .22);
    transition: right .28s ease;
}

.nu-menu.show {
    right: 0;
}

.nu-mobile-head {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    margin-bottom: 10px;
    padding: 14px 0 12px;
    border-bottom: 1px solid var(--nu-border);
    align-items: center;
    justify-content: space-between;
    background: var(--nu-white);
}

.nu-mobile-title {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--nu-dark) !important;
    font-size: .85rem;
    font-weight: 900;
}

.nu-mobile-logo {
    width: 42px;
    height: 42px;
    border: 1px solid var(--nu-border);
    border-radius: 12px;
    background: var(--nu-white);
    box-shadow: 0 8px 18px rgb(0 60 30 / .1);
}

.nu-mobile-close {
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    color: var(--nu-danger);
    background: #fee2e2;
    font: inherit;
    font-size: 1.55rem;
}

.nu-item {
    position: relative;
    width: 100%;
    border-bottom: 1px solid #edf7f1;
}

.nu-link,
.nu-drop-btn {
    display: flex;
    width: 100%;
    min-height: 48px;
    padding: 13px 10px;
    border: 0;
    border-radius: 12px;
    align-items: center;
    justify-content: space-between;
    gap: 7px;
    color: var(--nu-text) !important;
    background: transparent;
    cursor: pointer;
    font: inherit;
    font-size: .9rem;
    font-weight: 800;
    line-height: 1.2;
    text-align: left;
}

.nu-link:hover,
.nu-link.active,
.nu-drop-btn:hover,
.nu-drop-btn.active {
    color: var(--nu-green) !important;
    background: var(--nu-soft);
}

.nu-resource-link {
    min-height: 50px;
    margin: 8px 0;
    justify-content: center;
    border: 1px solid rgb(0 135 81 / .15);
    background: linear-gradient(135deg, rgb(0 135 81 / .12), rgb(6 59 37 / .08));
}

.nu-resource-link:hover,
.nu-resource-link.active {
    color: var(--nu-white) !important;
    background: linear-gradient(135deg, var(--nu-green), var(--nu-dark));
}

.nu-caret {
    font-size: .7rem;
    transition: transform .2s ease;
}

.nu-dropdown,
.nu-dropdown.nu-right,
.nu-dropdown.nu-mega {
    position: static;
    display: none;
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    max-height: none;
    margin: 0 0 10px;
    padding: 8px;
    overflow: visible;
    border: 0;
    border-left: 3px solid var(--nu-green);
    border-radius: 0 0 14px 14px;
    background: var(--nu-light);
    box-shadow: none;
}

.nu-item.nu-open > .nu-dropdown {
    display: block;
}

.nu-item.nu-open > .nu-drop-btn .nu-caret {
    transform: rotate(180deg);
}

.nu-dropdown a {
    display: flex;
    min-height: 44px;
    margin-bottom: 6px;
    padding: 11px 12px;
    border-radius: 12px;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: var(--nu-text) !important;
    background: var(--nu-white);
    font-size: .83rem;
    font-weight: 700;
    line-height: 1.25;
}

.nu-dropdown a:hover,
.nu-dropdown a.active {
    color: var(--nu-green) !important;
    background: var(--nu-soft);
}

.nu-mega-grid {
    display: block;
}

.nu-mega-col {
    min-width: 0;
    margin: 0 0 10px;
    padding: 0;
    border: 0;
    background: transparent;
}

.nu-mega-title {
    display: flex;
    margin: 8px 0 7px;
    padding: 9px 10px;
    border-radius: 12px;
    color: var(--nu-dark);
    background: var(--nu-soft);
    font-size: .68rem;
    font-weight: 900;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.nu-badge {
    margin-left: auto;
    padding: 3px 7px;
    border-radius: 50px;
    color: #166534;
    background: #dcfce7;
    font-size: .58rem;
    font-weight: 900;
}

.nu-premium,
.nu-login {
    min-height: 48px;
    margin-top: 10px;
    justify-content: center;
    color: var(--nu-white) !important;
    background: linear-gradient(135deg, var(--nu-green), var(--nu-dark));
}

.nu-premium:hover,
.nu-login:hover,
.nu-login.active {
    color: var(--nu-white) !important;
    background: var(--nu-dark);
}

.nu-account-name {
    margin: 0 0 7px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--nu-border);
    overflow: hidden;
    color: var(--nu-muted);
    font-size: .72rem;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nu-dropdown .nu-signout,
.nu-signout {
    color: var(--nu-danger) !important;
}

.nu-admin-signout {
    margin: 0;
}

body.nu-lock {
    overflow: hidden;
    touch-action: none;
}

@media (min-width: 1100px) {
    .nu-nav-wrap {
        max-width: 1480px;
        min-height: 68px;
        padding: 8px clamp(10px, 1.4vw, 22px);
        gap: 10px;
    }

    .nu-brand-icon {
        width: 48px;
        height: 48px;
        flex-basis: 48px;
    }

    .nu-mobile-open,
    .nu-mobile-head,
    .nu-backdrop,
    .nu-backdrop.show {
        display: none;
    }

    .nu-menu,
    .nu-menu.show {
        position: static;
        z-index: auto;
        display: flex;
        width: auto;
        height: auto;
        min-width: 0;
        margin: 0;
        padding: 0;
        overflow: visible;
        flex: 1 1 auto;
        flex-direction: row;
        align-items: center;
        justify-content: flex-end;
        gap: 3px;
        background: transparent;
        box-shadow: none;
        transition: none;
    }

    .nu-item {
        width: auto;
        border: 0;
    }

    .nu-link,
    .nu-drop-btn {
        width: auto;
        min-height: 42px;
        padding: 10px 8px;
        border-radius: 13px;
        justify-content: center;
        white-space: nowrap;
        font-size: .76rem;
    }

    .nu-resource-link {
        min-height: 42px;
        margin: 0;
    }

    .nu-dropdown,
    .nu-dropdown.nu-mega {
        position: absolute;
        top: calc(100% + 8px);
        left: 0;
        display: none;
        width: auto;
        min-width: 310px;
        max-width: 380px;
        max-height: calc(100vh - 92px);
        margin: 0;
        padding: 10px;
        overflow: auto;
        border: 1px solid var(--nu-border);
        border-radius: 18px;
        background: var(--nu-white);
        box-shadow: var(--nu-shadow);
    }

    .nu-dropdown.nu-right {
        right: 0;
        left: auto;
    }

    .nu-dropdown.nu-mega {
        width: min(92vw, 960px);
        min-width: min(92vw, 960px);
        max-width: min(92vw, 960px);
    }

    .nu-item:hover > .nu-dropdown,
    .nu-item.nu-open > .nu-dropdown {
        display: block;
    }

    .nu-dropdown a {
        min-height: 0;
        margin: 0;
        padding: 10px 12px;
        background: transparent;
        font-size: .78rem;
    }

    .nu-mega-grid {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 10px;
    }

    .nu-mega-col {
        margin: 0;
        padding: 8px;
        border: 1px solid #edf7f1;
        border-radius: 14px;
        background: linear-gradient(180deg, var(--nu-white), var(--nu-light));
    }

    .nu-mega-title {
        margin: 2px 4px 8px;
    }

    .nu-premium,
    .nu-login {
        min-height: 42px;
        margin: 0;
        padding-right: 13px;
        padding-left: 13px;
        border-radius: 50px;
    }

    .nu-wallet-chip {
        order: 3;
        margin-left: 0;
        padding: 7px 10px;
    }

    .nu-wallet-chip small {
        font-size: .58rem;
    }

    .nu-wallet-chip strong {
        font-size: .76rem;
    }

    .nu-admin-website {
        margin-left: auto;
    }
}

@media (min-width: 1240px) {
    .nu-link,
    .nu-drop-btn {
        padding-right: 10px;
        padding-left: 10px;
        font-size: .8rem;
    }
}

@media (min-width: 1420px) {
    .nu-brand-text {
        display: block;
    }
}

@media (prefers-reduced-motion: reduce) {
    .nu-menu,
    .nu-caret {
        transition: none;
    }
}

@media print {
    .nu-navbar {
        display: none !important;
    }
}

