.header-shell,
.site-header,
.lux-header,
.header-row,
.header-right {
    overflow: visible !important;
}

.header-right {
    position: relative;
    z-index: 10000;
}

.account-entry {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.account-entry *,
.account-entry *::before,
.account-entry *::after {
    box-sizing: border-box;
}

.account-entry a,
.account-entry a:hover,
.account-entry a:focus,
.account-hover-card a,
.account-hover-card a:hover,
.account-hover-card a:focus {
    text-decoration: none !important;
}

.account-icon-trigger {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
}

.account-icon-trigger svg {
    width: 24px;
    height: 24px;
}

.account-hover-card {
    position: absolute;
    top: calc(100% + 14px);
    right: -28px;
    width: 270px;
    background: #ffffff;
    color: #222222;
    border: 1px solid #e5dfd8;
    border-radius: 2px;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity 0.24s ease, transform 0.24s ease, visibility 0.24s ease;
    z-index: 999999;
    overflow: hidden;
}

.account-entry.open .account-hover-card {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.account-hover-card::before {
    content: "";
    position: absolute;
    top: -8px;
    right: 32px;
    width: 16px;
    height: 16px;
    background: #ffffff;
    border-left: 1px solid #e5dfd8;
    border-top: 1px solid #e5dfd8;
    transform: rotate(45deg);
}

.account-card-section {
    padding: 22px 18px 18px;
    background: #ffffff;
}

.account-card-section h4 {
    margin: 0 0 8px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
    color: #222222;
}

.account-card-section p {
    margin: 0 0 16px;
    font-size: 13px;
    line-height: 1.5;
    color: #4f4f4f;
}

.account-card-divider {
    height: 1px;
    background: #ebe5de;
}

.account-card-button {
    display: block;
    width: 100%;
    padding: 14px 16px;
    background: #7D6363;
    color: #050505 !important;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 2px;
    transition: background 0.2s ease;
}

.account-card-button:hover {
    background: #B8A093;
    color: #183347 !important;
}

@media (max-width: 768px) {
    .account-hover-card {
        position: fixed;
        top: 90px;
        right: 16px;
        left: 16px;
        width: auto;
    }

    .account-hover-card::before {
        display: none;
    }
}

.account-icon-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: inherit;
}

.account-user-label {
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
}

.account-hover-card form {
    margin: 0;
}

.account-hover-card .account-card-button {
    width: 100%;
    border: none;
    cursor: pointer;
}