/* Header */
.header {
    position: sticky;
    top: 0;
    padding: 0.8rem 0;
    height: 70px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--color-border);
    background: var(--color-background);
    z-index: 1000;
}

@media (min-width: 992px) {
    .header {
        background: rgba(255, 255, 255, 0.96);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }
}

.logo-brand {
    height: 32px;
    width: auto;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: var(--space-s);
}

.header-logo-link {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-s);
    margin-left: auto;
}

.header-menu {
    position: relative;
}

.header-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    background: transparent;
    cursor: pointer;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.header-menu-btn:hover,
.header-menu.is-open .header-menu-btn {
    border-color: var(--color-primary);
    background: var(--color-bg-alt);
}

.header-menu-dots {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.header-menu-dots span {
    display: block;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--color-dark);
    transition: background 0.3s ease;
}

.header-menu-btn:hover .header-menu-dots span,
.header-menu.is-open .header-menu-dots span {
    background: var(--color-primary);
}

.header-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 240px;
    background: var(--color-background);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    box-shadow: 0 16px 40px rgba(26, 31, 38, 0.12);
    padding: 0.5rem 0;
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.header-menu.is-open .header-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.header-dropdown-nav {
    display: flex;
    flex-direction: column;
}

.header-dropdown-label {
    padding: 0.65rem 1.25rem 0.35rem;
    font-size: 0.55rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-text-dim);
}

.header-dropdown-label:not(:first-child) {
    margin-top: 0.35rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--color-border);
}

.header-dropdown-link {
    display: block;
    padding: 0.7rem 1.25rem;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-dark);
    text-decoration: none;
    transition: color 0.3s ease, background 0.3s ease;
}

.header-dropdown-link:hover,
.header-dropdown-link.is-active {
    color: var(--color-primary);
    background: var(--color-bg-alt);
}

.header-badge {
    white-space: nowrap;
}

.header-badge[hidden] {
    display: none !important;
}

@media (min-width: 992px) {
    .header-badge {
        display: none;
    }
}
