/* =========================
   Dropdown wrapper
========================= */

.maih_header_mrhost_dropdown {
    position: relative;
    display: inline-block;
}

.maih_header_mrhost_dropdown::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 10px;
}

.maih_header_mrhost_arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    line-height: 0;
}

.maih_header_mrhost_arrow i {
    font-size: 12px;
    color: #7253ED;
    display: block;
    transition: transform 0.2s ease;
    transform-origin: center;
}

.maih_header_mrhost_dropdown:hover .maih_header_mrhost_arrow i {
    transform: rotate(180deg);
}
/* =========================
   Hidden menu
========================= */

.maih_header_mrhost_menu {
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.2s ease;
    position: absolute;
    top: calc(100% + 6px);

    left: 50%;
    transform: translateX(-50%) translateY(8px);
    width: 100%;
    background: #fff;
    border: 1px solid #e7ecff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    z-index: 99999999999;
    display: block;
}

/* =========================
   Hover behavior
========================= */

@media (hover: hover) and (pointer: fine) {

	.maih_header_mrhost_dropdown:hover .maih_header_mrhost_menu {
	    opacity: 1;
	    visibility: visible;
	
	    transform: translateX(-50%) translateY(0);
	}
}

/* =========================
   Menu links
========================= */

.maih_header_mrhost_menu a {
    display: block;
    padding: 12px 16px;
    color: #333;
    text-decoration: none;
    font-family: 'DM Sans', sans-serif;
    transition: background 0.25s ease;
    border-bottom: 1px solid #e7ecff;
}

.maih_header_mrhost_menu a:first-child {
	border-top-right-radius: 10px;
	border-top-left-radius: 10px;
}

.maih_header_mrhost_menu a:not(.maih_header_mrhost_logout):hover {
    background-color: #f2f0ff;
    color: #7253ED;
}

/* =========================
   Logout
========================= */

.maih_header_mrhost_logout {
    background: #7253ED;
    border-bottom: none;
	color: white !important;
    font-weight: 400;
}

.maih_header_mrhost_logout:hover {
    background: #f2f0ff !important;
    color: #7253ED !important;
}

/* =========================
   Button base
========================= */

.maih_header_mrhost_btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 18px;
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
    white-space: nowrap;
    gap: 8px;
}

/* Login + dropdown button styles */
.maih_header_mrhost_dropdown_btn,
.maih_header_mrhost_login_btn {
    background-color: #fff;
    border: 1px solid #e7ecff;
    color: #333;
}

.maih_header_mrhost_dropdown_btn:hover,
.maih_header_mrhost_login_btn:hover {
    background-color: #f2f0ff;
    border-color: #7253ED;
}

.maih_header_mrhost_dropdown_btn {
    background-color: #fff;
    border: 1px solid #e7ecff;
    color: #333;
}

/* =========================
   Label + icon
========================= */

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

.maih_header_mrhost_profile_icon {
    color: #7253ED;
    font-size: 0.95rem;
}

.maih_header_mrhost_label {
    color: #1D1E20;
    transition: 150ms ease;
    font-weight: 400;
}

/* =========================
   Last item cleanup
========================= */

.maih_header_mrhost_menu a:last-child {
    border-bottom: none;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

/* =========================
   Tablet adjustments
========================= */

@media (min-width: 768px) and (max-width: 1024px) {

    .maih_header_mrhost_btn {
        padding: 8px 14px;
        font-size: 0.9rem;
        border-radius: 8px;
        gap: 6px;
    }

    .maih_header_mrhost_profile_icon {
        font-size: 1rem;
    }

    .maih_header_mrhost_arrow svg {
        font-size: 0.75rem;
    }

    .maih_header_mrhost_menu {
        min-width: 150px;
        border-radius: 8px;
    }

    .maih_header_mrhost_menu a {
        padding: 10px 14px;
        font-size: 0.9rem;
    }
}

/* =========================
   Hide on mobile
========================= */

@media (max-width: 767px) {
    .maih_header_mrhost_dropdown,
    .maih_header_mrhost_login_btn {
        display: none !important;
    }
}