/* Shared header — landing, dashboard, docs */
.site-header {
    padding: 16px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 200;
    background: rgba(6, 11, 20, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border, rgba(255,255,255,0.07));
}

.header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-inner .logo {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary, #f0f4f8);
    text-decoration: none;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-inner .logo-icon { width: 28px; height: 28px; }
.header-inner .logo-icon img { width: 100%; height: 100%; object-fit: contain; }

.header-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.header-nav a {
    color: var(--text-secondary, #8899aa);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: color 0.2s;
}

.header-nav a:hover { color: var(--text-primary, #f0f4f8); }
.header-nav a.active { color: var(--accent-light, #22d3ee); }

/* Buttons in header */
.header-nav .hdr-btn {
    padding: 7px 16px;
    border-radius: 7px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    border: none;
}

.header-nav .hdr-btn-primary {
    background: linear-gradient(135deg, #0e7490, #06b6d4);
    color: white;
}
.header-nav .hdr-btn-primary:hover {
    background: linear-gradient(135deg, #0891b2, #22d3ee);
    transform: translateY(-1px);
}

.header-nav .hdr-btn-secondary {
    background: transparent;
    border: 1px solid var(--border, rgba(255,255,255,0.07));
    color: var(--text-secondary, #8899aa);
}
.header-nav .hdr-btn-secondary:hover {
    border-color: var(--border-accent, rgba(34,211,238,0.2));
    color: var(--text-primary, #f0f4f8);
}

/* User pill */
.user-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 20px;
    background: var(--bg-card, #0f1a2e);
    border: 1px solid var(--border, rgba(255,255,255,0.07));
    font-size: 0.78rem;
    color: var(--text-secondary, #8899aa);
    white-space: nowrap;
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: default;
    transition: border-color 0.2s;
}

.user-pill:hover { border-color: var(--border-accent, rgba(34,211,238,0.2)); }

.user-pill .pill-icon {
    display: inline-flex;
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}
.user-pill.pill-pro { border-color: rgba(6, 182, 212, 0.25); }
.user-pill.pill-pro .pill-icon svg { fill: var(--accent, #06b6d4); }
.user-pill.pill-warning .pill-icon svg { fill: var(--amber, #f59e0b); }

/* Sign out */
.logout-btn {
    background: none;
    border: 1px solid var(--border, rgba(255,255,255,0.07));
    color: var(--text-secondary, #8899aa);
    padding: 6px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 500;
    transition: all 0.2s;
}
.logout-btn:hover {
    border-color: var(--red, #ef4444);
    color: var(--red, #ef4444);
}

/* Responsive */
@media (max-width: 640px) {
    .header-nav { gap: 12px; }
    .header-nav .hdr-nav-link { display: none; }
    .user-pill .pill-label { display: none; }
    .user-pill { padding: 5px 8px; max-width: 36px; }
}
