.scb-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(255, 252, 247, 0.92);
    border-bottom: 1px solid rgba(18, 22, 20, 0.08);
    backdrop-filter: blur(12px);
}

.scb-header-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: var(--scb-max);
    margin: 0 auto;
    padding: 0 20px;
    min-height: 48px;
}

.scb-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    text-decoration: none;
    color: var(--scb-text);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.scb-brand-logo {
    width: 28px;
    height: 28px;
    border-radius: 8px;
}

.scb-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.scb-nav-cta {
    padding: 6px 14px;
    background: var(--scb-accent);
    color: #fff;
    text-decoration: none;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.88rem;
    white-space: nowrap;
}

.scb-nav-cta:hover,
.scb-nav-cta.is-active {
    background: var(--scb-accent-hover);
}

.scb-nav-link {
    padding: 6px 10px;
    color: var(--scb-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.88rem;
    border-radius: 999px;
}

.scb-nav-link:hover,
.scb-nav-link.is-active {
    color: var(--scb-text);
    background: rgba(19, 128, 152, 0.1);
}

.scb-nav-link.is-active {
    color: var(--scb-accent);
}

.scb-header-right {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.scb-text-link,
.scb-logout {
    color: var(--scb-muted);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    white-space: nowrap;
}

.scb-text-link:hover,
.scb-logout:hover {
    color: var(--scb-text);
}

.scb-header-cta {
    padding: 5px 12px;
    background: var(--scb-accent);
    color: #fff;
    text-decoration: none;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.9rem;
    white-space: nowrap;
}

.scb-header-cta:hover {
    background: var(--scb-accent-hover);
}

.scb-account {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    padding: 4px 10px 4px 4px;
    border-radius: 999px;
    text-decoration: none;
    color: var(--scb-text);
    background: rgba(18, 22, 20, 0.04);
}

.scb-account:hover {
    background: rgba(19, 128, 152, 0.12);
}

.scb-account-avatar {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--scb-accent);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    flex-shrink: 0;
}

.scb-account-meta {
    display: flex;
    align-items: baseline;
    gap: 6px;
    min-width: 0;
}

.scb-account-name {
    overflow: hidden;
    max-width: 9rem;
    font-weight: 700;
    font-size: 0.88rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.scb-user-rating {
    color: var(--scb-muted);
    font-weight: 600;
    font-size: 0.8rem;
}

.scb-credits {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    color: var(--scb-text);
    font-weight: 700;
    font-size: 0.82rem;
    text-decoration: none;
    background: rgba(19, 128, 152, 0.1);
    white-space: nowrap;
}

.scb-user-credits {
    color: var(--scb-accent);
}

.scb-lang {
    position: relative;
}

.scb-lang-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 8px;
    border: 0;
    background: transparent;
    cursor: pointer;
    font: inherit;
}

.scb-lang-drop {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    min-width: 160px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(18, 22, 20, 0.14);
    border-radius: 12px;
    z-index: 20;
    overflow: hidden;
}

.scb-lang:hover .scb-lang-drop,
.scb-lang:focus-within .scb-lang-drop {
    display: block;
}

.scb-lang-drop a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    color: var(--scb-text);
    text-decoration: none;
}

.scb-lang-drop a:hover {
    background: var(--scb-accent-light, #d7f2f4);
}

@media (max-width: 860px) {
    .scb-header-inner {
        gap: 8px;
        padding: 0 12px;
        min-height: 44px;
    }

    .scb-nav {
        gap: 4px;
    }
}

@media (max-width: 768px) {
    .scb-brand-name {
        display: none;
    }
}

@media (max-width: 480px) {
    .scb-nav-tactics {
        display: none;
    }

    .scb-lang-name,
    .scb-credits {
        font-size: 0;
        gap: 0;
        padding: 6px 8px;
    }

    .scb-user-credits {
        font-size: 0.82rem;
    }

    .scb-account-meta {
        display: none;
    }

    .scb-account {
        padding: 4px;
    }
}
