/* ========================================
   Account Popup — header dropdown
   Positioned absolutely inside hp-header__actions
   Mirrors modal-login.css design language
   ======================================== */

/* Container — absolute dropdown, no overlay
   Positioned inside hp-header__inner (same as login modal) */
.hp-account-popup {
    display: none;
    position: absolute;
    top: 115%;
    left: 0;
    width: auto;
    height: auto;
    background: none;
    overflow: visible;
    z-index: 10;
}

.hp-account-popup.hp-account-popup--visible {
    display: block;
}

/* Panel — frosted glass dropdown */
.hp-account-popup__panel {
    width: 280px;
    margin: 0;
    padding: 28px 24px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: var(--hp-radius-section);
    border: 1px solid rgba(209, 205, 200, 0.24);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.10);
}

/* Photo */
.hp-account-popup__photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 14px;
    background: #e8e3dd;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hp-account-popup__photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hp-account-popup__initials {
    font-family: 'Heebo', sans-serif;
    font-size: 28px;
    font-weight: 600;
    color: #555;
    user-select: none;
}

/* Name & city */
.hp-account-popup__name {
    font-family: 'Heebo', sans-serif;
    font-weight: 700;
    font-size: 18px;
    line-height: 26px;
    color: var(--hp-text);
    text-align: center;
    margin-bottom: 4px;
}

.hp-account-popup__city {
    font-family: 'Heebo', sans-serif;
    font-size: 14px;
    line-height: 20px;
    color: var(--hp-text-secondary);
    text-align: center;
    margin-bottom: 20px;
}

/* Divider */
.hp-account-popup__divider {
    height: 1px;
    background: rgba(209, 205, 200, 0.48);
    margin-bottom: 16px;
}

/* Action links */
.hp-account-popup__actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.hp-account-popup__link {
    font-family: 'Heebo', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #3366cc;
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.hp-account-popup__link:hover {
    text-decoration: underline;
}

/* Avatar button in header */
.hp-header__avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid #e0dcd7;
    background: #d9d9d9;
    cursor: pointer;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 0;
    transition: border-color 0.2s;
}

.hp-header__avatar:hover {
    border-color: #b0ada8;
}

.hp-header__avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hp-header__avatar-initials {
    font-family: 'Heebo', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #555;
    line-height: 1;
    user-select: none;
}

/* Mobile — slightly narrower */
@media (max-width: 799px) {
    .hp-account-popup__panel {
        width: 260px;
    }
}
