:root {
    --header-bg: rgba(15, 26, 10, 0.6);
    --header-bg-scrolled: rgba(41, 58, 33, 0.92);
    --nav-link-color: rgba(255, 255, 255, 0.7);
    --nav-link-hover: #ffffff;
    --nav-link-active-bg: rgba(161, 170, 139, 0.12);
    --primary: #a1aa8b;
    --primary-light: #c5cdb3;
    --primary-gradient: linear-gradient(135deg, #a1aa8b, #8a9a7a);
    --primary-shadow: rgba(161, 170, 139, 0.3);
    --transition-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --z-header: 1000;
}

.header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 1200px;
    height: 64px;
    z-index: var(--z-header);
    background: rgb(0 0 0 / 48%);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-top: 4px solid #8b977e;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.2);
    transition: all 0.4s var(--transition-smooth);
    padding: 0 24px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.header.scrolled {
    top: 12px;
    background: rgba(0, 0, 0, 0.726);
    border-top: 4px solid #8b977e;
    box-shadow: 0 12px 50px rgba(0, 0, 0, 0.35);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    gap: 16px;
    margin-top: 8px;
}

.logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 45px;
    width: auto;
    transition: transform 0.3s var(--transition-smooth);
}

.logo-img:hover {
    transform: scale(1.05);
}

.nav-desktop {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: center;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--nav-link-color);
    transition: all 0.3s var(--transition-smooth);
    cursor: pointer;
    position: relative;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.nav-link i {
    font-size: 0.75rem;
    opacity: 0.5;
    transition: opacity 0.3s;
}

.nav-link:hover {
    color: var(--nav-link-hover);
    background: rgba(255, 255, 255, 0.06);
}

.nav-link:hover i {
    opacity: 1;
}

.nav-link.active {
    color: var(--nav-link-hover);
    background: var(--nav-link-active-bg);
}

.nav-link.active i {
    opacity: 1;
    color: var(--primary);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    box-shadow: 0 0 12px var(--primary-shadow);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.header-actions .btn {
    padding: 8px 18px;
    font-size: 0.75rem;
    border-radius: 50px;
    height: 38px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    overflow: hidden;
    transition: all 0.3s var(--transition-smooth);
}

.header-actions .btn i {
    font-size: 0.7rem;
    margin-right: 4px;
}

.header-actions .btn .shimmer-effect {
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: skewX(-25deg);
    transition: left 0.6s ease;
}

.header-actions .btn:hover .shimmer-effect {
    left: 150%;
}

.btn-outline {
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.9);
    border: 1.5px solid rgba(255, 255, 255, 0.15);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.btn-primary {
    background: var(--primary-gradient);
    color: #ffffff;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background 0.3s;
    flex-shrink: 0;
}

.menu-toggle:hover {
    background: rgba(255, 255, 255, 0.05);
}

.menu-toggle .bar {
    display: block;
    width: 22px;
    height: 2.5px;
    background: #ffffff;
    border-radius: 2px;
    transition: all 0.3s var(--transition-smooth);
    transform-origin: center;
}

.menu-toggle.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.menu-toggle.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.nav-mobile {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 380px;
    height: 100vh;
    background: rgba(15, 26, 10, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    padding: 0;
    transition: transform 0.4s var(--transition-smooth);
    overflow-y: auto;
    box-shadow: -10px 0 60px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}

.nav-mobile.open {
    transform: translateX(0);
    visibility: visible;
    opacity: 1;
    pointer-events: auto !important;
}

.nav-mobile.open * {
    pointer-events: auto !important;
}

.nav-mobile-overlay {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    pointer-events: none !important;
}

.nav-mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

.nav-mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
}

.nav-mobile-brand {
    display: flex;
    align-items: center;
}

.nav-mobile-logo {
    height: 32px;
    width: auto;
    object-fit: contain;
}

.nav-mobile-close {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.4rem;
    cursor: pointer;
    padding: 4px;
    transition: transform 0.3s;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto !important;
}

.nav-mobile-close:hover {
    transform: rotate(90deg);
    background: rgba(255, 255, 255, 0.05);
}

.nav-mobile-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 20px 24px;
    flex: 1;
}

.nav-link-mobile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s var(--transition-smooth);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    pointer-events: auto !important;
}

.nav-link-mobile i {
    width: 22px;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.3);
    transition: color 0.3s;
    text-align: center;
}

.nav-link-mobile:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

.nav-link-mobile:hover i {
    color: var(--primary);
}

.nav-link-mobile.active {
    color: #ffffff;
    background: var(--nav-link-active-bg);
}

.nav-link-mobile.active i {
    color: var(--primary-light);
}

.mobile-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.06);
    margin: 12px 0;
}

.btn-mobile {
    background: rgba(161, 170, 139, 0.12) !important;
    color: var(--primary-light) !important;
    border-radius: 50px !important;
    justify-content: center;
    text-align: center;
    font-weight: 600 !important;
    padding: 12px 16px !important;
    pointer-events: auto !important;
    cursor: pointer !important;
}

.btn-mobile i {
    color: var(--primary-light) !important;
}

.btn-mobile:hover {
    background: rgba(161, 170, 139, 0.2) !important;
}

.btn-mobile-admin {
    background: var(--primary-gradient) !important;
    color: #ffffff !important;
    border-radius: 50px !important;
    justify-content: center;
    text-align: center;
    font-weight: 600 !important;
    padding: 12px 16px !important;
    box-shadow: 0 4px 20px var(--primary-shadow);
    pointer-events: auto !important;
    cursor: pointer !important;
}

.btn-mobile-admin i {
    color: rgba(255, 255, 255, 0.8) !important;
}

.btn-mobile-admin:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--primary-shadow);
}

@media (max-width: 992px) {
    .header {
        top: 16px;
        height: 56px;
        width: calc(100% - 32px);
        padding: 0 18px;
        border-radius: 14px;
    }

    .header.scrolled {
        top: 10px;
        height: 50px;
    }

    .nav-desktop {
        display: none;
    }

    .header-actions {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .logo-img {
        height: 30px;
    }

    .nav-mobile {
        max-width: 340px;
    }
}

@media (max-width: 768px) {
    .header {
        top: 12px;
        height: 52px;
        width: calc(100% - 24px);
        padding: 0 14px;
        border-radius: 12px;
    }

    .header.scrolled {
        top: 8px;
        height: 46px;
    }

    .header-content {
        gap: 10px;
    }

    .logo-img {
        height: 28px;
    }

    .menu-toggle .bar {
        width: 20px;
        height: 2.5px;
    }

    .nav-mobile {
        max-width: 100%;
        border-radius: 0;
    }

    .nav-mobile-header {
        padding: 16px 20px 14px;
    }

    .nav-mobile-logo {
        height: 28px;
    }

    .nav-mobile-list {
        padding: 16px 20px;
        gap: 2px;
    }

    .nav-link-mobile {
        padding: 10px 14px;
        font-size: 0.85rem;
        gap: 10px;
    }

    .nav-link-mobile i {
        font-size: 0.9rem;
        width: 20px;
    }

    .nav-mobile-close {
        width: 36px;
        height: 36px;
        font-size: 1.2rem;
    }

    .mobile-divider {
        margin: 8px 0;
    }

    .btn-mobile,
    .btn-mobile-admin {
        padding: 10px 14px !important;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .header {
        top: 10px;
        height: 48px;
        width: calc(100% - 16px);
        padding: 0 12px;
        border-radius: 10px;
    }

    .btn-mobile {
        margin-bottom: 10px;
    }

    .header.scrolled {
        top: 6px;
        height: 48px;
    }

    .header-content {
        gap: 8px;
        margin-top: 5px;
    }

    .logo-img {
        height: 35px;
    }

    .menu-toggle .bar {
        width: 18px;
        height: 2px;
    }

    .nav-mobile-header {
        padding: 14px 16px 12px;
    }

    .nav-mobile-logo {
        height: 24px;
    }

    .nav-mobile-list {
        padding: 12px 16px;
        gap: 2px;
    }

    .nav-link-mobile {
        padding: 8px 12px;
        font-size: 0.8rem;
        gap: 8px;
        border-radius: 8px;
    }

    .nav-link-mobile i {
        font-size: 0.8rem;
        width: 18px;
    }

    .nav-mobile-close {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }

    .btn-mobile,
    .btn-mobile-admin {
        padding: 8px 12px !important;
        font-size: 0.8rem;
    }
}

@media (max-width: 360px) {
    .header {
        top: 8px;
        height: 44px;
        width: calc(100% - 12px);
        padding: 0 10px;
        border-radius: 8px;
    }

    .header.scrolled {
        top: 5px;
        height: 38px;
    }

    .logo-img {
        height: 30px;
    }

    .menu-toggle .bar {
        width: 16px;
        height: 2px;
    }

    .nav-mobile-header {
        padding: 12px 14px 10px;
    }

    .nav-mobile-logo {
        height: 20px;
    }

    .nav-mobile-list {
        padding: 10px 14px;
    }

    .nav-link-mobile {
        padding: 6px 10px;
        font-size: 0.75rem;
        gap: 6px;
    }

    .nav-link-mobile i {
        font-size: 0.7rem;
        width: 16px;
    }

    .nav-mobile-close {
        width: 28px;
        height: 28px;
        font-size: 0.9rem;
    }

    .btn-mobile,
    .btn-mobile-admin {
        padding: 6px 10px !important;
        font-size: 0.75rem;
    }
}