/* ============================================
   Profile Dropdown — Header Icon
   ============================================ */

.ssc-profile-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 280px;
    padding: 20px;
    background: #FBFAF7;
    color: #2D2420;
    z-index: 99998;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.ssc-profile-dropdown.is-open {
    display: block;
}

/* Logged-in: profile section */
.ssc-profile-dropdown__section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ssc-profile-dropdown__avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #F2E9DD;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.ssc-profile-dropdown__avatar span {
    font-family: 'Figtree', sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 1;
    color: #2D2420;
}

.ssc-profile-dropdown__avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.ssc-profile-dropdown__info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ssc-profile-dropdown__name {
    font-family: 'Figtree', sans-serif;
    font-weight: 700;
    font-size: 18px;
    line-height: 1;
    color: #2D2420;
}

.ssc-profile-dropdown__email {
    font-family: 'Figtree', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 1;
    color: #2D2420;
}

.ssc-profile-dropdown__divider {
    height: 1px;
    background: #F2E9DD;
    margin: 16px 0;
}

/* Menu items */
.ssc-profile-dropdown__menu {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ssc-profile-dropdown__item {
    display: flex;
    align-items: center;
    cursor: pointer;
    text-decoration: none;
    background: none;
    border: none;
    padding: 0;
}

.ssc-profile-dropdown__item img {
    width: 24px;
    height: 24px;
    margin-right: 19px;
    flex-shrink: 0;
}

.ssc-profile-dropdown__item span {
    font-family: 'Figtree', sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 1;
    color: #2D2420;
}

.ssc-profile-dropdown__item--logout span {
    color: #FF383C;
}

/* Logged-out state */
.ssc-profile-dropdown__welcome-title {
    font-family: 'Figtree', sans-serif;
    font-weight: 700;
    font-size: 18px;
    line-height: 1;
    color: #2D2420;
}

.ssc-profile-dropdown__welcome-text {
    font-family: 'Figtree', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 1;
    color: #2D2420;
    margin-top: 8px;
}

.ssc-profile-dropdown__btn-login {
    display: inline-block;
    margin-top: 16px;
    padding: 8px 16px;
    border: 1px solid #2D2420;
    background: transparent;
    font-family: 'Figtree', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 1;
    text-align: center;
    color: #2D2420;
    cursor: pointer;
    text-decoration: none;
}

.ssc-profile-dropdown__btn-login:hover {
    opacity: 0.85;
    color: #2D2420;
}

/* Wrapper: position context for the dropdown */
.ssc-profile-icon-wrap {
    position: relative;
    display: inline-block;
}

/* --- Logout modal (reuse account styles) --- */
#ssc-profile-logout-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
}

#ssc-profile-logout-overlay.is-open {
    display: flex;
}

#ssc-profile-logout-overlay .ssc-logout-modal {
    background: #FBFAF7;
    padding: 30px;
    max-width: 460px;
    width: calc(100% - 30px);
    text-align: center;
    border-radius: 0;
}

#ssc-profile-logout-overlay .ssc-logout-title {
    font-family: "Figtree", sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #2D2420;
    margin: 0 0 20px;
    line-height: 1.3;
}

#ssc-profile-logout-overlay .ssc-logout-desc {
    font-family: "Figtree", sans-serif;
    font-size: clamp(1.125rem, 1.074rem + 0.196vw, 1.25rem);
    font-weight: 400;
    color: #2D2420;
    margin: 0 0 40px;
    line-height: 1.3;
}

#ssc-profile-logout-overlay .ssc-logout-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
}

#ssc-profile-logout-overlay .ssc-logout-btn {
    font-family: "Figtree", sans-serif;
    font-size: 1rem;
    font-weight: 500;
    padding: 14px 20px;
    border-radius: 0;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease;
    line-height: 1;
    background: transparent;
}

#ssc-profile-logout-overlay .ssc-logout-btn:hover {
    opacity: 0.85;
}

#ssc-profile-logout-overlay .ssc-logout-cancel {
    background: transparent;
    color: #2D2420;
    border: 1px solid #2D2420;
}

#ssc-profile-logout-overlay .ssc-logout-confirm {
    background: transparent;
    color: #FF383C;
    border: 1px solid #FF383C;
}
