:root {
    --site-header-gradient: linear-gradient(135deg, #d946ef 0%, #c026d3 100%);
    --site-header-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --site-white-14: rgba(255, 255, 255, 0.14);
    --site-white-22: rgba(255, 255, 255, 0.22);
    --site-white-30: rgba(255, 255, 255, 0.3);
    --site-white-45: rgba(255, 255, 255, 0.45);
}

* {
    box-sizing: border-box;
}

.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--site-header-gradient);
    color: #ffffff;
    padding: 14px 24px;
    box-shadow: var(--site-header-shadow);
}

.header-shell {
    width: 100%;
    max-width: none;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-brand,
.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
    text-decoration: none;
    color: #ffffff;
    min-width: 0;
}

.header-brand {
    cursor: pointer;
}

.header-left {
    flex: 1;
}

.header img {
    height: 50px;
    width: 50px;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: 50%;
    clip-path: circle(50%);
    transform: scale(1.28);
    transform-origin: center;
}

.header-text h1 {
    font-size: 28px;
    font-weight: 700;
    margin: 0;
    letter-spacing: 1px;
    font-family: "Georgia", serif;
    color: #ffffff;
}

.header-text p {
    font-size: 13px;
    opacity: 0.9;
    margin: 0;
    font-style: italic;
    color: #ffffff;
}

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

.header-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #ffffff;
    flex-shrink: 0;
}

.header-user-info {
    display: flex;
    flex-direction: column;
}

.header-user-info span,
.header-user-info a {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    font-family: inherit;
    letter-spacing: 0;
    color: #ffffff;
    text-decoration: none;
}

.header-mobile-menu {
    position: relative;
    display: none;
}

.header-mobile-menu-btn,
.header-home-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid var(--site-white-45);
    background: var(--site-white-14);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    text-decoration: none;
    cursor: pointer;
    padding: 0;
}

.header-mobile-menu-btn:hover,
.header-home-icon:hover {
    background: var(--site-white-22);
}

.header-mobile-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 220px;
    padding: 14px;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 20px 50px rgba(17, 24, 39, 0.22);
    border: 1px solid #f1d4f5;
    display: none;
    flex-direction: column;
    gap: 10px;
    z-index: 1200;
}

.header-mobile-dropdown.is-visible {
    display: flex;
}

.header-mobile-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f3e8f8;
}

.header-mobile-name {
    font-size: 15px;
    font-weight: 700;
    color: #374151;
    flex: 1 1 auto;
    line-height: 1.25;
}

.header-mobile-avatar {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: linear-gradient(135deg, #f0abfc 0%, #d946ef 100%);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    flex: 0 0 36px;
}

.header-mobile-action {
    border: none;
    background: transparent;
    color: #374151;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    padding: 8px 2px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-align: left;
    cursor: pointer;
}

.header-mobile-action svg {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    color: currentColor;
}

.header-mobile-action--logout {
    color: #c026d3;
}

.header-logout-link,
.header-auth-icon {
    color: #ffffff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 42px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    font-family: inherit;
    letter-spacing: 0;
    transition: opacity 0.2s ease, background-color 0.25s ease;
}

.header-logout-link {
    padding: 8px 4px;
}

.header-logout-link:hover {
    opacity: 0.8;
}

.header-logout-link svg,
.header-auth-icon svg {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
}

.header-auth-icon {
    padding: 0 16px;
    border-radius: 12px;
    border: 1px solid var(--site-white-45);
    background: var(--site-white-14);
}

.header-auth-icon:hover {
    background: var(--site-white-22);
}

.header-auth-label {
    display: inline;
}
