.topbar-outer {
    position: sticky;
    top: 0;
    z-index: 1000;
}

.axiom-topbar {
    width: 100%;
    border-bottom: 1px solid var(--axiom-border-accent);
    background: var(--axiom-bg);
}

.axiom-topbar-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: 64px;
    padding: 0 1em;
}

/* tablets */
@media (min-width: 768px) {
    .axiom-topbar-inner {
        padding: 0 1em;
    }
}

/* desktop */
@media (min-width: 1200px) {
    .axiom-topbar-inner {
        padding: 0 1em;
    }
}

/* large screens */
@media (min-width: 1600px) {
    .axiom-topbar-inner {
        padding: 0 1.5em;
    }
}

/* =========================
   LEFT: BRAND
========================= */

.axiom-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    flex-shrink: 0;
    min-width: 0;
}

.brand-text-wrapper {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    margin-top: -8px;
    min-width: 0;
}

.brand-text {
    font-size: 16px;
    font-weight: 600;
    color: var(--axiom-text-main);
    white-space: nowrap;
    text-transform: uppercase;
}

.brand-subtext {
    font-size: 11px;
    font-weight: 400;
    color: var(--axiom-primary);
    letter-spacing: 0.2px;
    text-transform: uppercase;
    margin-top: 1px;
    white-space: nowrap;
}

.brand-meta {
    font-size: 10px;
    font-weight: 500;
    color: var(--axiom-text-orange);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-top: 2px;
    white-space: nowrap;
}

/* =========================
   CENTER NAV
========================= */

.axiom-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    flex: 1;
    min-width: 0;
}

    .axiom-nav .nav-link {
        text-decoration: none;
        padding: 6px 8px;
        border-radius: 6px;
        transition: background 0.15s ease;
        color: var(--axiom-text-dim);
        letter-spacing: 0.12em;
        font-size: 0.75rem;
        text-transform: uppercase;
        white-space: nowrap;
    }

        .axiom-nav .nav-link:hover {
            background: var(--axiom-primary);
            color: #042f2e;
        }

/* =========================
   RIGHT ACTIONS
========================= */

.axiom-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    margin-left: auto;
}

    /* CTA */

    .axiom-actions .cta {
        background: var(--axiom-primary);
        border: none;
        padding: 8px 14px;
        cursor: pointer;
        font-size: 11px;
        letter-spacing: 1.5px;
        text-transform: uppercase;
        color: var(--axiom-text-navy);
        font-weight: 500;
        transition: opacity 0.2s;
    }

        .axiom-actions .cta:hover {
            opacity: 0.85;
        }

/* =========================
   AVATAR
========================= */

.user-avatar,
.avatar-fallback {
    width: 28px;
    height: 28px;
    font-size: 12px;
}

.avatar-fallback {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    border: 2px solid rgba(255,255,255,0.12);
}

/* USER BUTTON */

.axiom .user-button {
    padding: 2px;
}

/* =========================
   MOBILE NAV TOGGLE
========================= */

/* IMPORTANT:
   Use !important because PrimeVue Button styles
   often override display rules.
*/

.mobile-nav-toggle {
    display: none !important;
    flex-shrink: 0;
}

/* =========================
   MOBILE DRAWER
========================= */
.p-drawer-top .mobile-nav-drawer.p-drawer {
    background: #0f172a !important;
    color: #e5e7eb !important;
    border: 1px solid rgba(255,255,255,0.08);
    height: auto;
}

.mobile-nav-drawer .p-drawer-header {
    background: #0f172a;
    color: #f8fafc;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.mobile-nav-drawer .p-drawer-content {
    background: #0f172a;
    padding: 1rem;
}

/* close button */
.mobile-nav-drawer .p-drawer-close-button {
    color: #cbd5e1;
}

.mobile-nav-drawer .p-drawer-close-button:hover {
    background: rgba(255,255,255,0.08);
    color: white;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-top: 1rem;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #e2e8f0;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.9rem 1rem;
    border-radius: 10px;
    transition: background 0.15s ease, color 0.15s ease;
}

    .mobile-nav-link:hover {
        background: #14b8a6;
        color: #042f2e;
    }

/* =========================
   RESPONSIVE COLLAPSE
========================= */

@media (max-width: 980px) {

    .axiom-topbar-inner {
        gap: 0.5rem;
    }

    /* Hide desktop nav */
    .axiom-nav {
        display: none !important;
    }

    /* Show hamburger */
    .mobile-nav-toggle {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
    }

    /* Hide verbose brand metadata */
    .brand-meta {
        display: none;
    }
}

@media (max-width: 700px) {

    .brand-subtext {
        display: none;
    }

    .axiom-actions .cta {
        display: none;
    }
}

@media (max-width: 520px) {

    .brand-text {
        font-size: 14px;
    }

    .axiom-topbar-inner {
        padding: 0 12px;
    }
}

/*Sign In*/
.btn-signin.p-button {
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--axiom-text-muted);
    background: none;
    border: 1px solid var(--axiom-primary);
    padding: 6px 14px;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    transition: border-color 0.2s, color 0.2s;
    border-radius: 0;
    gap: unset;
    text-decoration: none !important;
}

.btn-signin.p-button:hover,
.btn-signin.p-button:focus,
.btn-signin.p-button:active {
    border-color: var(--axiom-border-accent);
    color: var(--axiom-primary);
    text-decoration: none !important;
}
