/* ویجت دکمه ورود / ثبت‌نام — کلاس‌های اختصاصی (بدون وابستگی به style.css تم) */

.jt-login-widget {
    display: block;
    width: 100%;
}

.jt-login-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    border: none;
    box-sizing: border-box;
    font-family: inherit;
    line-height: 1.4;
    text-decoration: none;
    background: #fafafa;
    color: inherit;
    min-height: 39px;
    padding: 3px 11px;
    border-radius: 7px;
}

.jt-login-btn__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 50px;
    border: 1px solid #9e9e9e;
    color: #9e9e9e;
    font-size: 14px;
}

.jt-login-btn__icon svg {
    width: 1em;
    height: 1em;
    fill: currentColor;
}

.jt-login-btn__title {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
}

.jt-profile-btn {
    display: inline-flex;
    align-items: center;
    justify-content: space-around;
    position: relative;
    cursor: pointer;
    box-sizing: border-box;
    width: 62px;
    height: 39px;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.jt-profile-btn:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-color: #bdbdbd;
}

.jt-profile-btn__avatar {
    width: 27px;
    height: 27px;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid #9e9e9e;
    flex-shrink: 0;
}

.jt-profile-btn__avatar img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.jt-profile-btn__arrow {
    font-size: 8px;
    transition: transform 0.3s ease;
}

.jt-profile-btn.active .jt-profile-btn__arrow {
    transform: rotate(180deg);
}

.jt-profile-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    width: 260px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    border: 1px solid #e0e0e0;
    padding: 8px 0;
    list-style: none;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: scaleY(0);
    transform-origin: top;
    transition: opacity 0.2s ease-in, visibility 0.2s ease-in, transform 0.2s ease-in;
    z-index: 999;
}

.jt-profile-btn.active > .jt-profile-dropdown {
    opacity: 1;
    visibility: visible;
    transform: scaleY(1);
}

.jt-profile-dropdown ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.jt-profile-dropdown li {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0 16px;
    margin: 2px 8px;
    border-radius: 8px;
    position: relative;
    transition: background 0.2s ease, transform 0.2s ease;
}

.jt-profile-dropdown li:hover {
    background: linear-gradient(135deg, #f5f5f5 0%, #eeeeee 100%);
    transform: translateX(4px);
}

.jt-profile-dropdown li a {
    color: #424242;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
}

.jt-profile-dropdown li a i {
    font-size: 16px;
    width: 20px;
    text-align: center;
    color: #757575;
}

.jt-profile-dropdown li:last-child a {
    color: #f44336;
    font-weight: 600;
}

.jt-profile-dropdown li:last-child:hover {
    background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
}
