.nexa-login-header {
    position: relative;
    z-index: 500;
    width: 100%;
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 28px;
    direction: rtl;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(182, 139, 32, 0.14);
    box-shadow: 0 8px 24px rgba(45, 34, 8, 0.05);
}

.nexa-login-header-brand {
    width: 48px;
    height: 48px;
    flex: 0 0 52px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(198, 157, 50, 0.26);
    border-radius: 17px;
    background: linear-gradient(145deg, #fffdf5, #f4e3ad);
    box-shadow: 0 9px 20px rgba(157, 116, 17, 0.14);
    padding-left: 8px;
    padding-right: 8px;
}

.nexa-login-logo {
    width: 43px;
    height: 43px;
    display: block;
    object-fit: contain;
}

.nexa-header {
    position: sticky;
    top: 0;
    z-index: 500;
    min-height: var(--nexa-header-height);
    direction: rtl;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(182, 139, 32, 0.16);
    box-shadow: 0 10px 30px rgba(30, 24, 10, 0.06);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.nexa-header-container {
    width: 100%;
    max-width: 1800px;
    min-height: var(--nexa-header-height);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "actions brand";
    align-items: center;
    gap: 24px;
    direction: ltr;
}

.nexa-header-brand {
    grid-area: brand;
    min-width: 240px;
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 13px;
    color: inherit;
    text-decoration: none;
    direction: rtl;
}

.nexa-header-actions {
    grid-area: actions;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    direction: rtl;
}

.nexa-header-logo-wrap {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(198, 157, 50, 0.32);
    border-radius: 17px;
    background: linear-gradient(145deg, #fffdf5, #f4e3ad);
    box-shadow: 0 10px 24px rgba(157, 116, 17, 0.16);
}

.nexa-header-logo {
    width: 43px;
    height: 43px;
    object-fit: contain;
}

.nexa-header-brand-copy,
.nexa-header-user-copy,
.nexa-header-datetime-copy {
    display: flex;
    flex-direction: column;
    text-align: right;
    direction: rtl;
}

.nexa-header-brand-copy {
    gap: 2px;
}

.nexa-header-brand-copy strong {
    color: var(--nexa-text);
    font-size: 1.2rem;
    font-weight: 900;
    line-height: 1.2;
}

.nexa-header-brand-copy small {
    color: var(--nexa-text-muted);
    font-size: 0.7rem;
    font-weight: 600;
}

.nexa-header-datetime,
.nexa-header-user {
    min-height: 54px;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 7px 11px;
    border: 1px solid transparent;
    border-radius: 16px;
    direction: rtl;
}

.nexa-header-action-icon,
.nexa-header-avatar {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
}

.nexa-header-action-icon {
    color: #8b6812;
    background: #fbf4dc;
    border: 1px solid #f0dfaa;
}

.nexa-header-avatar {
    color: #fff;
    background: linear-gradient(135deg, #d6b253, #9e710c);
    font-weight: 900;
}

.nexa-header-datetime-copy,
.nexa-header-user-copy {
    gap: 3px;
    white-space: nowrap;
}

.nexa-header-datetime-copy strong,
.nexa-header-user-copy strong {
    color: var(--nexa-text);
    font-size: 0.88rem;
    font-weight: 850;
}

.nexa-header-datetime-copy strong {
    direction: ltr;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.nexa-header-datetime-copy small,
.nexa-header-user-copy small {
    color: var(--nexa-text-muted);
    font-size: 0.7rem;
    font-weight: 650;
}

.nexa-header-user-copy small {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.nexa-header-separator {
    width: 1px;
    height: 38px;
    background: rgba(130, 103, 38, 0.2);
}

.nexa-header-logout-form {
    margin: 0;
}

.nexa-header-logout {
    min-width: 102px;
    height: 46px;
    padding: 0 17px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 15px;
    color: #fff;
    background: linear-gradient(135deg, #dc5656, #a92727);
    font: inherit;
    font-size: 0.82rem;
    font-weight: 850;
    cursor: pointer;
}

@media (max-width: 760px) {
    .nexa-header-container {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 12px;
        padding: 8px 12px;
    }

    .nexa-header-brand {
        min-width: auto;
    }

    .nexa-header-user-copy,
    .nexa-header-separator {
        display: none;
    }

    .nexa-header-brand-copy strong {
        font-size: 1rem;
    }

    .nexa-header-brand-copy small {
        font-size: 0.62rem;
    }

    .nexa-header-logo-wrap {
        width: 46px;
        height: 46px;
        flex-basis: 46px;
    }

    .nexa-header-logo {
        width: 38px;
        height: 38px;
    }

    .nexa-header-datetime,
    .nexa-header-user {
        min-height: 46px;
        padding: 3px;
    }

    .nexa-header-action-icon,
    .nexa-header-avatar {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
    }

    .nexa-header-datetime-copy small {
        display: none;
    }

    .nexa-header-logout {
        width: 42px;
        min-width: 42px;
        height: 42px;
        padding: 0;
    }

    .nexa-header-logout span {
        display: none;
    }
}
