/* Custom Menu V2 Styles */
.custom-menu-v2 {
    position: relative;
    z-index: 1000;
}

.custom-menu-v2__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.custom-menu-v2__left {
    display: flex;
    align-items: center;
    gap: 40px;
}

.custom-menu-v2__logo {
    display: block;
    flex-shrink: 0;
}

.custom-menu-v2__logo img {
    max-height: 40px;
    width: auto;
}

.custom-menu-v2__logo--sticky {
    display: none;
}

.custom-menu-v2__right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.custom-menu-v2__mobile-button {
    display: none;
    cursor: pointer;
    padding: 8px;
}

.custom-menu-v2__account {
    display: flex;
    align-items: center;
    gap: 12px;
}

.custom-menu-v2__avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #2A3946;
    color: #fff;
    text-decoration: none;
}

.custom-menu-v2__avatar--no-border {
    background: transparent;
}

.custom-menu-v2__avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.custom-menu-v2__account-link {
    color: #2A3946;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.custom-menu-v2__account-link:hover {
    color: #007cba;
}

.custom-menu-v2__separator {
    width: 1px;
    height: 16px;
    background: #D5E3F0;
}

.custom-menu-v2__button .custom-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.custom-button--primary-1 {
    background: #007cba;
    color: #fff;
}

.custom-button--primary-2 {
    background: #2A3946;
    color: #fff;
}

.custom-button:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.custom-menu-v2__item {
    position: relative;
}

.custom-menu-v2__item a {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 12px 16px;
    color: #2A3946;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.custom-menu-v2__item a:hover {
    color: #007cba;
}

.custom-menu-v2__submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.custom-menu-v2__item:hover .custom-menu-v2__submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.custom-menu-v2__submenu-inner {
    padding: 16px 0;
    min-width: 200px;
}

/* Mobile Styles */
.custom-menu-mobile-v2 {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 1001;
    transition: left 0.3s ease;
    overflow-y: auto;
}

.custom-menu-mobile-v2--open {
    left: 0;
}

.custom-menu-mobile-v2__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.custom-menu-mobile-v2__close {
    cursor: pointer;
    padding: 8px;
}

.custom-menu-mobile-v2__nav {
    padding: 20px;
}

.custom-menu-mobile-v2__item {
    border-bottom: 1px solid #eee;
}

.custom-menu-mobile-v2__item:last-child {
    border-bottom: none;
}

.custom-menu-mobile-v2__item a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    color: #2A3946;
    text-decoration: none;
    font-weight: 500;
}

.custom-menu-mobile-v2__submenu {
    padding-left: 20px;
    background: #f8f9fa;
}

.custom-menu-mobile-v2__info {
    padding: 20px;
    border-top: 1px solid #eee;
}

.custom-menu-mobile-v2__data {
    margin-bottom: 16px;
}

.custom-menu-mobile-v2__data-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 4px;
}

.custom-menu-mobile-v2__data-value a {
    color: #2A3946;
    text-decoration: none;
}

.custom-menu-mobile-v2__currencies {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.custom-menu-mobile-v2__currency {
    padding: 8px 0;
    cursor: pointer;
    transition: color 0.3s ease;
}

.custom-menu-mobile-v2__currency--current {
    color: #007cba;
    font-weight: 500;
}

.custom-dark-mask {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.custom-dark-mask--active {
    opacity: 1;
    visibility: visible;
}

/* Responsive */
@media (max-width: 768px) {
    .custom-menu-v2__mobile-button {
        display: block;
    }
    
    .custom-menu-v2__left nav {
        display: none;
    }
    
    .custom-menu-v2__account-link {
        display: none;
    }
    
    .custom-menu-v2__separator {
        display: none;
    }
}