/* ──────────────────────────────────────────────────────────────────────
 * Qubble Labs unified nav — injected by qubble-nav.js
 * Mirrors qubblelabs.com Nav.tsx visual treatment (logo + 6 tabs + CTA).
 * ────────────────────────────────────────────────────────────────────── */

#qubble-nav-mount[data-active-chat="1"] { display: none !important; }

.qln-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    background: rgba(5, 6, 11, 0.65);
    border-bottom: 1px solid rgba(123, 47, 247, 0.18);
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', system-ui, sans-serif;
}

.qln-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

/* ─── LOGO ───────────────────────────────────────── */
.qln-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #e8e8f0;
    transition: opacity 200ms;
}
.qln-logo:hover { opacity: 0.92; }
.qln-logo-q {
    display: inline-flex;
    align-items: center; justify-content: center;
    width: 32px; height: 32px;
    border-radius: 6px;
    background: linear-gradient(135deg, #7b2ff7, #00d4ff);
    color: #fff;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700; font-size: 14px;
    box-shadow: 0 0 14px rgba(123, 47, 247, 0.45);
    transition: transform 300ms;
}
.qln-logo:hover .qln-logo-q { transform: scale(1.05); }
.qln-logo-text { display: flex; flex-direction: column; line-height: 1; }
.qln-logo-row1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 15px;
    letter-spacing: 0.04em;
    color: #e8e8f0;
}
.qln-logo-row2 {
    margin-top: 3px;
    font-family: ui-monospace, 'JetBrains Mono', Menlo, monospace;
    font-size: 9px;
    letter-spacing: 0.32em;
    color: #b8a4ff;
}

/* ─── TABS (desktop) ─────────────────────────────── */
.qln-tabs {
    display: none;
    align-items: center;
    gap: 28px;
}
@media (min-width: 1024px) { .qln-tabs { display: inline-flex; } }

.qln-tab {
    position: relative;
    font-family: ui-monospace, 'JetBrains Mono', Menlo, monospace;
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #7d7d99;
    text-decoration: none;
    transition: color 200ms;
}
.qln-tab:hover { color: #e8e8f0; }
.qln-tab::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: -6px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #00d4ff, transparent);
    opacity: 0;
    transition: opacity 220ms;
}
.qln-tab:hover::after { opacity: 1; }
.qln-tab-active { color: #00d4ff; }
.qln-tab-active::after { opacity: 1; }

/* ─── CTA (desktop) ──────────────────────────────── */
.qln-cta {
    display: none;
    align-items: center;
    padding: 10px 16px;
    font-family: 'Orbitron', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(135deg, #7b2ff7, #00d4ff);
    border-radius: 6px;
    text-decoration: none;
    box-shadow: 0 6px 18px -6px rgba(123, 47, 247, 0.55);
    transition: transform 180ms, filter 180ms;
    white-space: nowrap;
}
.qln-cta:hover { transform: translateY(-1px); filter: brightness(1.1); }
@media (min-width: 1024px) { .qln-cta { display: inline-flex; } }

/* ─── BURGER (mobile) ────────────────────────────── */
.qln-burger {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 36px; height: 32px;
    padding: 0 6px;
    background: transparent;
    border: 1px solid rgba(123, 47, 247, 0.35);
    border-radius: 6px;
    cursor: pointer;
}
.qln-burger span {
    display: block;
    height: 2px;
    width: 100%;
    background: #e8e8f0;
    border-radius: 1px;
    transition: transform 220ms;
}
@media (min-width: 1024px) { .qln-burger { display: none; } }

/* ─── DRAWER (mobile) ────────────────────────────── */
.qln-drawer {
    display: none;
    flex-direction: column;
    background: rgba(10, 10, 20, 0.96);
    border-top: 1px solid rgba(123, 47, 247, 0.18);
    padding: 14px 24px 18px;
    gap: 10px;
}
.qln-drawer.qln-drawer-open { display: flex; }
.qln-drawer-tab {
    padding: 10px 6px;
    font-family: ui-monospace, 'JetBrains Mono', Menlo, monospace;
    font-size: 12px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #b8b6cb;
    text-decoration: none;
    border-bottom: 1px solid rgba(123, 47, 247, 0.08);
}
.qln-drawer-tab:hover { color: #00d4ff; }
.qln-drawer-cta {
    margin-top: 6px;
    padding: 12px;
    font-family: 'Orbitron', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(135deg, #7b2ff7, #00d4ff);
    border-radius: 6px;
    text-decoration: none;
    text-align: center;
}

@media (min-width: 1024px) {
    .qln-drawer { display: none !important; }
}

/* ─── Page top-spacer (so injected nav doesn't overlap content) ─── */
body { padding-top: 0; }
body.qln-spaced { padding-top: 64px; }
