.main-header {
    width: 100%;
    position: fixed;
    top: 45px;
    z-index: 9998;
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
    gap: var(--space-2);
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: var(--space-2);
}

.logo img {
    width: 40px;
    height: auto;
    display: block;
}

.logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo-text span {
    font-size: 20px;
    font-weight: 600;
    color: var(--color-primary);
    line-height: 1;
}

.logo-text small {
    font-size: var(--fs-sm);
    font-weight: 500;
    color: var(--text-muted);
    line-height: 1;
    margin-top: 4px;
}

.main-menu {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.main-menu li a {
    text-decoration: none;
    font-size: var(--fs-base);
    transition: color var(--transition-base, 0.25s ease);
}

.main-menu li a:hover {
    color: var(--color-link-hover);
    cursor: pointer;
}

.mega-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
}

.mega-toggle i {
    font-size: 14px;
    margin-top: 1px;
}

.header-search form {
    position: relative;
}

.header-search input {
    width: 155px;
    height: 40px;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0 50px 0 var(--space-2);
    font-size: var(--fs-base);
}

.header-search input:focus {
    outline: 2px solid var(--color-link-hover);
    outline-offset: 2px;
}

.header-search button {
    position: absolute;
    top: 50%;
    right: 18px;
    transform: translateY(-50%);
    border: none;
    background: none;
    padding: 0;
    cursor: pointer;
}

.header-search button i {
    font-size: 15px;
    color: var(--text-muted);
}

.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background-color: var(--color-primary);
    height: 45px;
    color: var(--white);
    display: flex;
    align-items: center;
}

.topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-2);
    padding-top: var(--space-1);
    padding-bottom: var(--space-1);
}

.top-bar-left,
.top-bar-right {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    flex-wrap: wrap;
}

.top-item {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    color: var(--white);
    font-size: var(--fs-sm);
    white-space: nowrap;
}

.top-item i {
    color: #ffb400;
}

.top-bar-right a {
    color: var(--white);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: var(--space-1);
    font-size: var(--fs-sm);
    white-space: nowrap;
}

.top-bar-right a i {

    color: var(--color-accent);
}

.top-bar-right .btn-primary {
    background-color: var(--color-primary);
    padding: 3px 20px;
    font-weight: 400;
    border: 1px solid white;
}

.top-bar-right .btn-primary:hover {
    background-color: var(--color-accent);
}