/* ============================================================
   BOTinOK — Header (solid panel, без стекла)
   ============================================================ */

.header {
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    min-height: 56px;
    padding: 0 24px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    background: var(--bg-1);
    border-bottom: 1px solid var(--border-0);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 24px;
    max-width: 1280px;
    margin: 0 auto;
}

/* ===== NAV ===== */
.header-nav {
    display: flex;
    gap: 28px;
    align-items: center;
}

.header-nav a {
    color: var(--text-1);
    text-decoration: none;
    font-size: var(--fs-sm);
    font-weight: 500;
    transition: color var(--dur) var(--ease);
    position: relative;
    padding: 6px 0;
}

.header-nav a::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    border-radius: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform var(--dur) var(--ease);
}

.header-nav a:hover {
    color: var(--text-0);
}

.header-nav a:hover::after {
    transform: scaleX(1);
}

/* ===== ACTIONS ===== */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-actions-guest,
.header-actions-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-login {
    color: var(--text-1);
    text-decoration: none;
    font-size: var(--fs-sm);
    font-weight: 500;
    padding: 8px 4px;
    transition: color var(--dur) var(--ease);
}

.btn-login:hover {
    color: var(--text-0);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;

    background: var(--accent);
    color: #fff;
    border: 1px solid var(--accent);
    border-radius: var(--r-md);
    padding: 8px 14px;

    font-size: var(--fs-sm);
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    text-decoration: none;

    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
    transition:
        background var(--dur) var(--ease),
        border-color var(--dur) var(--ease),
        box-shadow var(--dur) var(--ease),
        transform var(--dur) var(--ease);
}

.btn-primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    box-shadow: 0 0 0 4px var(--accent-soft), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.btn-primary:active {
    transform: translateY(1px);
    box-shadow: inset 0 2px 4px var(--edge-dark);
}

/* ===== LOGO ===== */
.logo,
.logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-mark,
.logo-square {
    width: 32px;
    height: 32px;
    background: var(--accent-soft);
    border: 1px solid var(--accent-soft-2);
    border-radius: var(--r-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.logo-mark img,
.logo-square img {
    width: 18px;
    height: 24px;
    object-fit: contain;
}

.logo-text {
    font-weight: 800;
    font-size: var(--fs-md);
    letter-spacing: -0.01em;
    color: var(--text-0);
}

/* ===== ACCOUNT ===== */
.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.account-wrapper {
    position: relative;
}

.account-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    background: var(--bg-2);
    border: 1px solid var(--border-1);
    border-radius: var(--r-md);
    padding: 7px 12px;

    cursor: pointer;
    box-shadow: inset 0 1px 0 var(--edge-light);
    transition:
        background var(--dur) var(--ease),
        border-color var(--dur) var(--ease);
}

.account-btn:hover {
    background: var(--bg-3);
    border-color: var(--border-2);
}

.account-btn svg {
    width: 18px;
    height: 18px;
    stroke: var(--text-1);
}

.account-btn span {
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--text-0);
}

/* ===== DROPDOWN ===== */
.dropdown {
    width: 240px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-1);
    border-radius: var(--r-lg);
    padding: 8px;
    box-shadow: var(--shadow-lg), inset 0 1px 0 var(--edge-light);

    display: none;
    flex-direction: column;
    gap: 2px;

    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 100;

    animation: dropdownIn 160ms var(--ease);
}

.dropdown.show {
    display: flex;
}

@keyframes dropdownIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border-radius: var(--r-sm);
    cursor: pointer;
    transition: background var(--dur) var(--ease);
}

.dropdown-item:hover {
    background: var(--bg-3);
}

.dropdown-item svg {
    width: 18px;
    height: 18px;
    stroke: var(--text-1);
    fill: none;
    stroke-width: 2;
    flex-shrink: 0;
}

.dropdown-item span {
    font-size: var(--fs-base);
    color: var(--text-0);
}

.dropdown-item.profile span {
    font-weight: 600;
}

.dropdown-item.logout svg {
    stroke: var(--danger);
}

.dropdown-item.logout span {
    color: var(--danger);
}

.dropdown-divider {
    height: 1px;
    background: var(--border-1);
    margin: 6px 4px;
}

[hidden] {
    display: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .header {
        padding: 0 16px;
    }

    .header-nav {
        display: none;
    }
}