.app-header {
    width: 100%;
    margin: 0;
    background: #0f172a;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.22);
}

.app-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    width: min(100%, 1280px);
    min-height: 70px;
    height: auto;
    margin: 0 auto;
    padding: 10px 20px;
    background: transparent;
}

.app-brand,
.app-nav-link {
    text-decoration: none;
}

.app-brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #fff;
    font: 700 1.15rem/1 Arial, sans-serif;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.app-brand i {
    color: #38bdf8;
    font-size: 1.45rem;
}

.app-nav-links {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}

.app-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 12px;
    border-radius: 8px;
    color: #e2e8f0;
    font: 600 0.92rem/1 Arial, sans-serif;
    transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
    white-space: nowrap;
}

.app-nav-link i {
    color: #7dd3fc;
    font-size: 1.15rem;
}

.app-nav-link:hover,
.app-nav-link:focus-visible {
    color: #fff;
    background: #1e293b;
    outline: none;
    transform: translateY(-1px);
}

.app-nav-link:focus-visible,
.app-brand:focus-visible,
.app-nav-toggle:focus-visible {
    outline: 3px solid #38bdf8;
    outline-offset: 3px;
}

.app-nav-badge {
    display: inline-grid;
    min-width: 21px;
    height: 21px;
    padding: 0 5px;
    place-items: center;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font: 700 0.73rem/1 Arial, sans-serif;
}

.app-nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-left: auto;
    border: 1px solid #475569;
    border-radius: 8px;
    background: #1e293b;
    color: #fff;
    cursor: pointer;
}

.app-nav-toggle i {
    font-size: 1.5rem;
}

.app-nav-toggle .visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 900px) {
    .app-nav {
        flex-wrap: wrap;
        gap: 10px;
        padding: 10px 14px;
    }

    .app-nav-toggle {
        display: inline-flex;
    }

    .app-nav-links {
        display: none;
        flex-basis: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding-top: 8px;
        border-top: 1px solid #334155;
    }

    .app-nav-links[data-open="true"] {
        display: flex;
    }

    .app-nav-link {
        justify-content: flex-start;
        padding: 0 12px;
    }

    .app-nav-badge {
        margin-left: auto;
    }
}

@media (max-width: 420px) {
    .app-brand span {
        font-size: 1rem;
    }
}
