.top_header,
.top_header * {
    box-sizing: border-box;
}

.top_header {
    position: relative;
    z-index: 1000;
    background: #ffffff;
    border-bottom: 1px solid #e6e6e6;
    font-family: Roboto, Arial, sans-serif;
}

.top_header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 46px;
    padding: 0 18px 0 28px;
    gap: 16px;
}

.top_menu {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #ffffff;
}

.top_menu-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid transparent;
    background-color: #ffffff;
    color: #3B5998 !important;
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.3s ease-in-out;
}

.top_menu-item svg {
    width: 20px;
    height: 20px;
    opacity: 0.8;
    flex-shrink: 0;
}

.top_menu-item:hover {
    color: #3B5998;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.top_menu-item.top_active {
    pointer-events: none;
    color: #4D4D4D !important;
    background-color: #fff;
    cursor: pointer;
    border-bottom: 2px solid #3B5998;
    border-radius: 0;
    padding: 3px 10px;
    align-self: stretch;
    box-shadow: none;
}

.top_divider {
    width: 1px;
    height: 20px;
    background-color: #D6D6D6;
    flex-shrink: 0;
}

.top_dropdown {
    position: relative;
}

.top_dropdown-head {
    border-radius: 5px;
    padding: 8px;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.top_dropdown-head:hover {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.top_menu-icon {
    display: flex;
    align-items: center;
    font-size: 18px;
    cursor: pointer;
    line-height: 0;
}

.top_dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: -9px;
    width: 215px;
    margin: 0;
    padding: 0;
    list-style: none;
    background: #ffffff;
    border: none;
    border-radius: 8px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 1001;
}

.top_dropdown:hover .top_dropdown-menu,
.top_dropdown-menu.top_active {
    display: block;
}

.top_dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    color: #4d4d4d;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
}

.top_dropdown-item svg {
    width: 20px;
    height: 20px;
    opacity: 0.8;
    flex-shrink: 0;
}

.top_dropdown-item:hover {
    background: #f3f3f3;
    color: #262626;
    text-decoration: none;
}

.top_header-right {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-left: auto;
    flex-shrink: 0;
}

.top_phone {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #2e2e2e !important;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
}

.top_phone {
    font-size: 16px;
}

.top_phone:hover {
    color: #2e2e2e;
    text-decoration: none;
}

.top_phone svg {
    display: block;
    flex-shrink: 0;
}

.top_get-demo {
    color: #3b5998 !important;
    font-size: 16px;
    font-weight: 500;
    line-height: 20px;
    text-decoration: none;
    white-space: nowrap;
}

.top_get-demo:hover {
    color: #2e2e2e !important;
    text-decoration: none;
}

.top_login-btn,
.top_started-btn {
    display: table;
    box-sizing: border-box;
    border-radius: 50px;
    border: solid 1px #1870d5;
    font-size: 16px;
    font-weight: 400;
    line-height: 20px;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
}

.top_login-btn {
    width: 4.6rem;
    padding: 7px 18px;
    background: #fff;
    color: #1870d5 !important;
}

.top_login-btn:hover {
    background-color: #0a53a8;
    color: #fff !important;
    text-decoration: none;
}

.top_started-btn {
    width: 8.5rem;
    padding: 7px 0;
    background-color: #1870d5;
    color: #fff !important;
}

.top_started-btn:hover {
    background-color: #0a53a8;
    border: solid 1px #0a53a8;
    color: #fff !important;
    text-decoration: none;
}

.top_avatar-wrap {
    position: relative;
}

.top_avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #1870d5;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    text-align: center;
}

.top_avatar:hover {
    color: #ffffff;
    text-decoration: none;
}

.top_avatar-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 140px;
    margin: 0;
    padding: 5px 0;
    list-style: none;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 1001;
}

.top_avatar-wrap:hover .top_avatar-menu,
.top_avatar-menu.top_active {
    display: block;
}

.top_avatar-item {
    display: block;
    padding: 8px 16px;
    color: #4d4d4d;
    font-size: 14px;
    font-weight: 400;
    text-decoration: none;
    white-space: nowrap;
}

.top_avatar-item:hover {
    background: #f3f3f3;
    color: #262626;
    text-decoration: none;
}

@media (max-width: 992px) {
    .top_header {
        display: none;
    }
}

@media (max-width: 767px) {
    .top_header-inner {
        padding: 0 12px;
        gap: 8px;
    }

    .top_phone span {
        display: none;
    }

    .top_header-right {
        gap: 12px;
    }
}
