/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--white);
    z-index: 1000;
    border-bottom: 1px solid var(--gray-100);
}

.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.logo img {
    height: 30px;
}

.logo-text {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary);
}

nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 12px 16px;
    font-weight: 500;
    font-size: 15px;
    color: var(--gray-700);
    transition: color 0.2s;
    cursor: pointer;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
    transition: transform 0.2s;
}

.nav-item:hover .nav-link svg {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 12px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s;
    z-index: 100;
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    font-size: 14px;
    color: var(--gray-700);
    transition: all 0.2s;
}

.dropdown-menu a:hover {
    background: var(--gray-100);
    color: var(--primary);
}

.dropdown-menu a svg {
    width: 20px;
    height: 20px;
    fill: var(--primary);
}

.dropdown-menu .dropdown-desc {
    font-size: 12px;
    color: var(--gray-500);
    margin-top: 2px;
}

.dropdown-item-content {
    display: flex;
    flex-direction: column;
}

.dropdown-divider {
    height: 1px;
    background: var(--gray-100);
    margin: 8px 0;
}

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

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--gray-700);
    position: relative;
    transition: all 0.3s;
}

.mobile-menu-toggle span::before,
.mobile-menu-toggle span::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--gray-700);
    left: 0;
    transition: all 0.3s;
}

.mobile-menu-toggle span::before {
    top: -7px;
}

.mobile-menu-toggle span::after {
    bottom: -7px;
}

.mobile-menu-toggle.active span {
    background: transparent;
}

.mobile-menu-toggle.active span::before {
    top: 0;
    transform: rotate(45deg);
}

.mobile-menu-toggle.active span::after {
    bottom: 0;
    transform: rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    z-index: 999;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu-inner {
    padding: 24px;
}

.mobile-nav-item {
    border-bottom: 1px solid var(--gray-100);
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    font-size: 16px;
    font-weight: 500;
    color: var(--gray-900);
}

.mobile-nav-link svg {
    width: 20px;
    height: 20px;
    fill: var(--gray-500);
    transition: transform 0.3s;
}

.mobile-nav-item.active .mobile-nav-link svg {
    transform: rotate(180deg);
}

.mobile-dropdown {
    display: none;
    padding-bottom: 12px;
}

.mobile-nav-item.active .mobile-dropdown {
    display: block;
}

.mobile-dropdown a {
    display: block;
    padding: 12px 16px;
    font-size: 14px;
    color: var(--gray-600);
    border-radius: 8px;
}

.mobile-dropdown a:hover {
    background: var(--gray-100);
    color: var(--primary);
}

.mobile-menu-buttons {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mobile-menu-buttons .btn {
    width: 100%;
    justify-content: center;
}

/* Header Responsive */
@media (max-width: 768px) {
    nav {
        display: none;
    }

    .header-buttons {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .mobile-menu {
        display: block;
    }
}
