#site-header,
#site-header * {
    font-family: 'Inter', sans-serif;
}

#site-header {
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 60;
    backdrop-filter: blur(18px);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.82)),
        radial-gradient(circle at top left, rgba(220, 252, 231, 0.45), transparent 35%);
    border-bottom: 1px solid rgba(226, 232, 240, 0.75);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.site-header-bar {
    max-width: 1400px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    flex-shrink: 0;
}

.site-brand-logo {
    width: 8rem;
    height: 2.55rem;
    object-fit: contain;
    display: block;
}

.site-brand-name {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #1a7a3e;
    line-height: 1;
}

.site-brand-name span {
    color: #1e40af;
}

.site-nav-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 28px;
    justify-content: center;
    padding: 0.7rem 1rem;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.05);
    font-size: 0.95rem;
    font-weight: 600;
    color: #475569;
}

.site-nav-links a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
    white-space: nowrap;
    position: relative;
    padding: 0.2rem 0;
}

.site-nav-links a:hover {
    color: #1a7a3e;
}

.site-nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -0.42rem;
    width: 100%;
    height: 2px;
    border-radius: 9999px;
    background: transparent;
    transition: background 0.2s ease;
}

.site-nav-links a:hover::after {
    background: linear-gradient(90deg, #1a7a3e, #1e40af);
}

.site-nav-links a.is-active {
    color: #1a7a3e;
}

.site-nav-links a.is-active::after {
    background: linear-gradient(90deg, #1a7a3e, #1e40af);
}

.site-nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
    flex-shrink: 0;
}

.site-nav-actions::before {
    content: '';
    width: 1px;
    height: 24px;
    background: #d1d5db;
    margin-right: 8px;
}

.site-action {
    text-decoration: none;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1;
    padding: 11px 24px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    letter-spacing: 0.01em;
}

.site-action-outline {
    color: #1a7a3e;
    border: 1px solid rgba(26, 122, 62, 0.35);
    background: rgba(255, 255, 255, 0.9);
}

.site-action-outline:hover {
    background: #f0fdf4;
    border-color: rgba(26, 122, 62, 0.5);
}

.site-action-solid {
    color: #ffffff;
    border: 1px solid #1a7a3e;
    background: linear-gradient(135deg, #1a7a3e 0%, #166534 100%);
    box-shadow: 0 14px 30px rgba(26, 122, 62, 0.24);
}

.site-action-solid:hover {
    background: linear-gradient(135deg, #166534 0%, #14532d 100%);
}

@media (max-width: 1024px) {
    .site-header-bar {
        gap: 14px;
        padding: 14px 16px;
    }

    .site-nav-links {
        order: 3;
        width: 100%;
        gap: 10px 18px;
        justify-content: center;
    }

    .site-nav-actions {
        margin-left: 0;
    }
}

@media (max-width: 640px) {
    .site-brand-logo {
        width: 2.2rem;
        height: 2.2rem;
    }

    .site-brand-name {
        font-size: 1.35rem;
    }

    .site-nav-actions::before {
        display: none;
    }

    .site-nav-actions {
        gap: 8px;
        width: 100%;
        justify-content: flex-end;
    }

    .site-action {
        padding: 10px 14px;
        font-size: 0.88rem;
    }

    .site-nav-links {
        font-size: 0.9rem;
        gap: 8px 14px;
        padding: 0.5rem 0.75rem;
    }
}

@media (min-width: 1024px) {
    .site-brand-logo {
        width: 8rem;
        height: 3.4rem;
    }
}

/* ==========================================================
   Logged User Header
========================================================== */

.guest-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-actions {
    display: none;
    align-items: center;
    gap: 18px;
    position: relative;
}

/* ==========================================================
   Notification
========================================================== */

.header-icon {
    width: 46px;
    height: 46px;
    border: none;
    border-radius: 50%;
    background: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a7a3e;
    position: relative;
    transition: .25s;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .08);
}

.header-icon:hover {
    background: #f0fdf4;
    transform: translateY(-2px);
}

.notification-count {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ef4444;
    color: white;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ==========================================================
   Profile
========================================================== */

.profile-wrapper {
    position: relative;
}

.profile-button {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #1a7a3e;
    cursor: pointer;
    background: white;
    transition: .25s;
    padding: 0;
}

.profile-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(26,122,62,.18);
}

.profile-button img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==========================================================
   Popup
========================================================== */

.profile-popup {

    position: absolute;

    top: 62px;

    right: 0;

    width: 310px;

    background: white;

    border-radius: 18px;

    border: 1px solid rgba(226,232,240,.8);

    box-shadow: 0 20px 50px rgba(15,23,42,.15);

    overflow: hidden;

    opacity: 0;

    visibility: hidden;

    transform: translateY(15px);

    transition: all .28s ease;

    z-index: 9999;

}

.show-popup {

    opacity: 1;

    visibility: visible;

    transform: translateY(0);

}

.profile-header {

    display: flex;

    align-items: center;

    gap: 15px;

    padding: 22px;

    background:
        linear-gradient(135deg,#1a7a3e,#166534);

    color: white;

}

.profile-header img {

    width: 62px;

    height: 62px;

    border-radius: 50%;

    object-fit: cover;

    border: 3px solid rgba(255,255,255,.25);

}

.profile-header h3 {

    margin: 0;

    font-size: 18px;

    font-weight: 700;

}

.profile-header p {

    margin-top: 5px;

    font-size: 14px;

    opacity: .85;

}

.popup-divider {

    height: 1px;

    background: #e5e7eb;

}

.profile-popup a {

    display: flex;

    align-items: center;

    padding: 16px 22px;

    text-decoration: none;

    color: #374151;

    font-weight: 600;

    transition: .2s;

}

.profile-popup a:hover {

    background: #f0fdf4;

    color: #166534;

    padding-left: 28px;

}

.logout-btn {

    width: 100%;

    border: none;

    border-top: 1px solid #e5e7eb;

    background: white;

    color: #dc2626;

    padding: 18px;

    font-size: 15px;

    font-weight: 700;

    cursor: pointer;

    transition: .2s;

}

.logout-btn:hover {

    background: #fef2f2;

}

/* ==========================================================
   Responsive
========================================================== */

@media(max-width:768px){

    .user-actions{

        gap:12px;

    }

    .profile-popup{

        width:280px;

        right:-10px;

    }

}

@media(max-width:640px){

    .guest-actions{

        width:100%;

        justify-content:flex-end;

    }

    .user-actions{

        width:100%;

        justify-content:flex-end;

    }

    .profile-popup{

        right:0;

    }
}