/* Sacred header controls - Professional styling */
.sacred-header {
    position: relative;
}

.sacred-header > * {
    position: relative;
    z-index: 1;
}

.sacred-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(37, 99, 235, 0.03);
    opacity: 0.25;
    pointer-events: none;
}

.header-actions {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 4px;
    padding: 0.5rem 0.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(8px);
    position: relative;
    z-index: 1;
}

.sacred-mode-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    background: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.25);
    color: var(--sacred-text, #e8eaf0);
    border-radius: 4px;
    padding: 0.55rem 0.9rem;
    font-size: 0.9rem;
    line-height: 1.2;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.sacred-mode-toggle:hover {
    background: rgba(37, 99, 235, 0.12);
    border-color: rgba(37, 99, 235, 0.4);
}

.sacred-mode-toggle:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Professional icon placeholder instead of orb */
.sacred-mode-orb {
    width: 28px;
    height: 28px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #2563eb;
    box-shadow: none;
}

.sacred-mode-icon {
    font-size: 0.95rem;
    color: #fff;
}

.sacred-mode-copy {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    text-align: left;
}

.sacred-mode-eyebrow {
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--sacred-text-muted, #94a3b8);
}

.sacred-mode-value {
    font-weight: 600;
}

.sacred-user {
    position: relative;
}

.sacred-user-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--sacred-text, #e8eaf0);
    border-radius: 4px;
    padding: 0.55rem 0.8rem;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease;
    min-width: 170px;
}

.sacred-user-toggle:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(37, 99, 235, 0.4);
}

.sacred-user-toggle:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Professional avatar placeholder instead of orb */
.sacred-user-orb {
    width: 28px;
    height: 28px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(37, 99, 235, 0.15);
    border: 1px solid rgba(37, 99, 235, 0.3);
    color: #3b82f6;
    font-weight: 700;
    box-shadow: none;
}

.sacred-user-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.1;
}

.sacred-user-label {
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--sacred-text-muted, #94a3b8);
}

.sacred-user-name {
    font-weight: 600;
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sacred-user-menu {
    background: rgba(15, 19, 28, 0.98);
    border: 1px solid rgba(37, 99, 235, 0.25);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    padding: 0.35rem 0;
}

.sacred-menu-icon {
    margin-right: 0.35rem;
    color: #3b82f6;
}

.sacred-menu-hint {
    font-size: 0.8rem;
    color: var(--sacred-text-muted, #94a3b8);
    padding: 0.35rem 1rem 0.25rem 1rem;
}

.sacred-logout-form {
    margin: 0 0.5rem 0.25rem 0.5rem;
}

.sacred-logout-form .dropdown-item {
    border-radius: 4px;
}

.sacred-auth-cta a {
    text-decoration: none;
}

.sacred-ghost-link,
.sacred-solid-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.8rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background-color 0.15s ease, border-color 0.15s ease;
    min-width: 120px;
}

.sacred-ghost-link {
    background: rgba(255, 255, 255, 0.06);
    color: var(--sacred-text, #e8eaf0);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.sacred-ghost-link:hover {
    border-color: rgba(37, 99, 235, 0.5);
    color: #3b82f6;
}

.sacred-solid-link {
    background: #2563eb;
    color: #fff;
    box-shadow: none;
}

.sacred-solid-link:hover {
    background: #1d4ed8;
}

@media (max-width: 992px) {
    .header-actions {
        padding: 0.45rem 0.65rem;
    }

    .sacred-user-toggle,
    .sacred-mode-toggle {
        padding: 0.5rem 0.75rem;
    }
}

@media (max-width: 768px) {
    .header-actions {
        width: 100%;
        justify-content: space-between;
    }

    .sacred-header {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .sacred-user-toggle,
    .sacred-mode-toggle {
        width: 100%;
    }
}
