.header {
    width:100%;
    border-bottom:1px solid #eee;
    background:white;
}

.header-inner {
    width:1200px;
    margin:0 auto;
    padding:12px 0;

    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:32px;

    min-height:102px;
}

.logo a{
    font-size:38px;
    font-weight:800;
    color:#7b3ff2;
    text-decoration:none;
    letter-spacing:-0.03em;
    display:inline-block;
}

.search-bar{
    flex:1;
    display:flex;
    justify-content:center;
    align-items:center;
}

.search-bar input{
    width:100%;
    max-width:460px;
    height:40px;
    border-radius:20px;
    border:1px solid #ddd;
    padding:0 48px 0 20px;
    font-size:14px;
}

.search-bar{
    position:relative;
    max-width:460px;
}

.search-bar__submit{
    position:absolute;
    right:6px;
    top:50%;
    width:30px;
    height:30px;
    transform:translateY(-50%);
    border:0;
    border-radius:999px;
    background:transparent;
    color:#667085;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
}

.search-bar__submit svg{
    width:18px;
    height:18px;
    fill:currentColor;
}

.search-bar__submit:hover{
    background:#f3f4f6;
    color:#111827;
}

.menu-right{
    display:flex;
    flex-direction:column;
    align-items:flex-end;
    gap:12px;
    justify-content:center;
    flex:0 0 360px;
}

.menu-group{
    display:inline-flex;
    align-items:center;
    gap:18px;
    min-height:40px;
}

.user-status-group{
    position:relative;
    display:inline-flex;
    align-items:center;
    gap:12px;
    min-height:40px;
}

.header-action-link{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    height:40px;
    padding:0 14px;
    border-radius:999px;
    text-decoration:none;
    font-size:13px;
    font-weight:700;
    white-space:nowrap;
    line-height:1;
}

.header-action-link-secondary{
    background:#f8faff;
    color:#1f4acc;
    border:1px solid #c7d2fe;
}

.menu-group a{
    text-decoration:none;
    color:#333;
    font-size:14px;
    line-height:40px;
    display:inline-flex;
    align-items:center;
}

.logout-form{
    display:inline-flex;
    align-items:center;
    margin:0;
    height:40px;
}

.logout-button{
    margin:0;
    border:0;
    background:#111827;
    color:#fff;
    font-family:inherit;
    cursor:pointer;
    appearance:none;
    -webkit-appearance:none;
    transition:background-color 0.2s ease, transform 0.2s ease;
}

.logout-button:hover{
    background:#1f2937;
}

.logout-button:active{
    transform:translateY(1px);
}

.user-greeting{
    display:inline-flex;
    align-items:center;
    height:40px;
    color:#333;
    white-space:nowrap;
}

.user-greeting strong{
    margin:0 4px;
}

.notification-center{
    position:relative;
}

.notification-button{
    display:inline-flex;
    position:relative;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:6px;
    min-width:58px;
    padding:0;
    border:0;
    background:transparent;
    color:#222;
    font:inherit;
    cursor:pointer;
    text-decoration:none;
    font-size:13px;
    transition:color 0.2s ease;
}

.notification-button:hover{
    background:transparent;
    color:#7b3ff2;
}

.notification-button__icon{
    width:25px;
    height:25px;
    stroke:currentColor;
    fill:none;
    stroke-width:1.9;
    stroke-linecap:round;
    stroke-linejoin:round;
}

.notification-button span{
    line-height:1.2;
    text-align:center;
    white-space:nowrap;
}

.notification-button__badge{
    position:absolute;
    top:-2px;
    right:6px;
    display:none;
    min-width:18px;
    height:18px;
    padding:0 5px;
    border-radius:999px;
    background:#dc2626;
    color:#fff;
    font-size:11px;
    font-weight:800;
    line-height:18px;
    text-align:center;
}

.notification-button__badge.is-visible{
    display:inline-block;
}

.notification-panel{
    position:absolute;
    top:calc(100% + 8px);
    right:0;
    z-index:20;
    opacity:0;
    transform:translateY(-4px);
    pointer-events:none;
    width:340px;
    border:1px solid #e5e7eb;
    border-radius:16px;
    background:#fff;
    transition:opacity 0.2s ease, transform 0.2s ease;
}

.notification-panel.is-visible{
    opacity:1;
    transform:translateY(0);
    pointer-events:auto;
}

.notification-panel__header{
    padding:14px 16px;
    border-bottom:1px solid #f1f5f9;
}

.notification-panel__header strong{
    font-size:14px;
    font-weight:800;
    color:#111827;
}

.notification-panel__list{
    max-height:320px;
    overflow-y:auto;
}

.notification-panel__empty{
    margin:0;
    padding:20px 16px;
    color:#94a3b8;
    font-size:13px;
    text-align:center;
}

.notification-item{
    width:100%;
    border:0;
    border-bottom:1px solid #f8fafc;
    background:#fff;
    padding:14px 16px;
    text-align:left;
    font:inherit;
    cursor:pointer;
    display:flex;
    flex-direction:column;
    gap:6px;
}

.notification-item:hover{
    background:#f8fafc;
}

.notification-item.is-unread{
    background:#eff6ff;
}

.notification-item__message{
    color:#0f172a;
    font-size:13px;
    font-weight:700;
    line-height:1.5;
}

.notification-item__time{
    color:#64748b;
    font-size:12px;
}

.header-bottom{
    border-top:1px solid #f2f2f2;
}

.header-bottom-inner{
    width:1200px;
    margin:0 auto;
    padding:8px 0;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    min-height:50px;
}

.user-menu-line{
    gap:20px;
}

.icon-menu{
    display:flex;
    align-items:flex-start;
    gap:30px;
}

.icon-link{
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:6px;
    min-width:58px;
    color:#222;
    text-decoration:none;
    font-size:13px;
}

.icon-link svg{
    width:28px;
    height:28px;
    stroke:currentColor;
    fill:none;
    stroke-width:1.8;
    stroke-linecap:round;
    stroke-linejoin:round;
}

.icon-link:hover{
    color:#7b3ff2;
}

.icon-link span{
    line-height:1.2;
    text-align:center;
    white-space:nowrap;
}

.icon-link-current{
    color:#7b3ff2;
    cursor:default;
}

.category-menu{
    display:flex;
    gap:30px;
    justify-content:flex-start;
    flex-wrap:wrap;
}

.category-menu a{
    text-decoration:none;
    color:#333;
}

.header-bottom-action{
    flex:0 0 auto;
}

.admin-portal-link{
    height:44px;
    padding:0 18px;
    font-size:15px;
}
