/* SuperNOVA UI: Topbar */

.nova-topbar {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;

    z-index: 1000;

    width: 100%;

    border-bottom: 1px solid var(--border);

    background: var(--topbar-background);

    backdrop-filter: blur(18px);
}

.nova-topbar__inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 28px;

    width: 100%;
    margin: 0;
    padding: 14px 32px;
    box-sizing: border-box;
}

.nova-topbar__brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;

    min-width: 0;

    color: var(--text-primary);
    text-decoration: none;
}

.nova-topbar__logo {
    display: block;
    flex: 0 0 auto;

    width: 44px;
    height: 44px;

    object-fit: contain;

    filter:
        drop-shadow(0 0 14px rgba(139, 92, 246, 0.20))
        drop-shadow(0 0 30px rgba(120, 35, 255, 0.10));
}

.nova-topbar__brand-text {
    display: flex;
    align-items: baseline;
    gap: 8px;

    min-width: 0;
}

.nova-topbar__product-name {
    overflow: hidden;

    font-size: 1rem;
    font-weight: 760;
    letter-spacing: -0.02em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nova-topbar__product-meta {
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.nova-topbar__center {
    min-width: 0;

    color: var(--text-secondary);
    text-align: center;
}

.nova-topbar__context {
    overflow: hidden;

    font-size: 0.9rem;
    font-weight: 650;
    letter-spacing: 0.02em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nova-topbar__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    min-width: 0;
}

.nova-topbar__user {
    display: inline-flex;
    align-items: center;
    gap: 16px;

    padding: 9px 12px 9px 16px;

    border: 1px solid var(--border-accent-soft);
    border-radius: 999px;

    background: var(--surface-control-readonly);
}

.nova-topbar__user-email {
    overflow: hidden;

    max-width: 280px;

    color: var(--text-secondary);
    font-size: 0.86rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nova-topbar__logout {
    color: var(--accent);
    font-size: 0.86rem;
    font-weight: 700;
    text-decoration: none;
}

.nova-topbar__logout:hover {
    color: var(--text-primary);
}

.nova-topbar__logout:focus-visible {
    outline: none;
    border-radius: 6px;
    box-shadow: 0 0 0 4px var(--accent-glow);
}

@media (max-width: 900px) {
    .nova-topbar__inner {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 18px;

        min-height: 70px;
        padding: 12px 18px;
    }

    .nova-topbar__center {
        display: none;
    }

    .nova-topbar__user-email {
        display: none;
    }

    .nova-topbar__user {
        padding-left: 12px;
    }
}

@media (max-width: 520px) {
    .nova-topbar__inner {
        padding-right: 14px;
        padding-left: 14px;
    }

    .nova-topbar__logo {
        width: 38px;
        height: 38px;
    }

    .nova-topbar__product-name {
        font-size: 0.94rem;
    }

    .nova-topbar__product-meta {
        display: none;
    }
}