#UserPage {
    position: fixed;
    top: 68px;
    right: 14px;
    width: 380px;
    max-width: calc(100vw - 28px);
    max-height: calc(100vh - 84px);
    overflow-x: hidden;
    overflow-y: auto;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow:
            0 28px 70px rgba(15, 23, 42, 0.2),
            0 8px 22px rgba(15, 23, 42, 0.09);
    color: #172033;
    font-family: 'Pretendard', sans-serif;
    isolation: isolate;
    backdrop-filter: blur(18px);
}

#UserPage::before {
    content: "";
    position: absolute;
    top: -7px;
    right: 22px;
    width: 14px;
    height: 14px;
    border-top: 1px solid rgba(148, 163, 184, 0.28);
    border-left: 1px solid rgba(148, 163, 184, 0.28);
    background: rgba(255, 255, 255, 0.97);
    transform: rotate(45deg);
}

#UserPage_img {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    border-radius: inherit;
    background:
            radial-gradient(circle at 92% 2%, rgba(91, 105, 230, 0.2), transparent 32%),
            radial-gradient(circle at 4% 45%, rgba(69, 173, 225, 0.12), transparent 30%),
            linear-gradient(180deg, rgba(247, 249, 255, 0.98), rgba(255, 255, 255, 0.97));
    pointer-events: none;
}

.user-page-card-content {
    position: relative;
    z-index: 1;
    padding: 20px;
}

.user-page-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.user-page-card-eyebrow {
    margin: 0 0 4px;
    color: #63708a;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.16em;
}

#UserPage_Title {
    margin: 0;
    color: #16213a;
    font-size: 19px;
    font-weight: 800;
    line-height: 1.3;
}

.user-page-logout {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    padding: 7px 10px;
    border: 1px solid rgba(148, 163, 184, 0.34);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.76);
    color: #526078;
    cursor: pointer;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.user-page-logout img {
    width: 17px;
    height: 17px;
    object-fit: contain;
}

.user-page-logout:hover {
    border-color: rgba(59, 130, 246, 0.38);
    background: rgba(239, 246, 255, 0.94);
    color: #1d4ed8;
}

.user-page-profile {
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    margin-top: 18px;
    padding: 15px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 17px;
    background: rgba(255, 255, 255, 0.73);
}

#UserPage_Icon {
    position: relative;
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(77, 103, 216, 0.2);
    border-radius: 18px;
    background: linear-gradient(145deg, #eef3ff, #e3eaff);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

#UserPage_Icon::after {
    content: "";
    position: absolute;
    right: 4px;
    bottom: 4px;
    width: 9px;
    height: 9px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    background: #28b872;
}

#UserPage_Icon_Img {
    width: 31px;
    height: 31px;
    object-fit: contain;
}

.user-page-profile-copy {
    min-width: 0;
    flex: 1;
}

#UserPage_ID {
    overflow: hidden;
    color: #17213a;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#UserPage_Email {
    overflow: hidden;
    margin-top: 2px;
    color: #6b768d;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#UserPage_Point {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    min-height: 22px;
    margin-top: 7px;
    padding: 3px 8px;
    overflow: hidden;
    border: 1px solid rgba(79, 110, 228, 0.18);
    border-radius: 999px;
    background: rgba(237, 242, 255, 0.9);
    color: #4d61b9;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-page-nickname-link {
    display: inline-flex;
    min-height: 28px;
    margin-top: 8px;
    padding: 5px 9px;
    align-items: center;
    gap: 5px;
    border: 1px solid rgba(79, 110, 228, 0.2);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.8);
    color: #465bab;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    transition:
            border-color 0.16s ease,
            box-shadow 0.16s ease,
            color 0.16s ease,
            transform 0.16s ease;
}

.user-page-nickname-link img {
    width: 13px;
    height: 13px;
    object-fit: contain;
    opacity: 0.76;
}

.user-page-nickname-link:hover {
    border-color: rgba(68, 92, 193, 0.4);
    box-shadow: 0 7px 16px rgba(66, 83, 151, 0.1);
    color: #34499d;
    text-decoration: none;
    transform: translateY(-1px);
}

.user-page-nickname-link:active {
    box-shadow: none;
    transform: translateY(0);
}

.user-page-license-card {
    position: relative;
    margin-top: 13px;
    padding: 15px 16px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 17px;
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.98), rgba(241, 245, 249, 0.88));
}

.user-page-license-card::after {
    content: "";
    position: absolute;
    top: -34px;
    right: -24px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(148, 163, 184, 0.13);
    pointer-events: none;
}

.user-page-license-heading {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: #667085;
    font-size: 11px;
    font-weight: 700;
}

.user-page-license-tier {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 4px 9px;
    border: 1px solid rgba(100, 116, 139, 0.25);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    color: #64748b;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.06em;
}

#UserPage_LicenseName {
    position: relative;
    z-index: 1;
    display: block;
    margin-top: 7px;
    color: #263248;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.35;
}

#UserPage_LicenseDescription {
    position: relative;
    z-index: 1;
    margin: 3px 0 0;
    color: #6f7a8f;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.45;
    word-break: keep-all;
}

.user-page-license-upgrade {
    position: relative;
    z-index: 1;
    display: flex;
    min-height: 38px;
    margin-top: 12px;
    padding: 9px 12px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid rgba(74, 93, 198, 0.22);
    border-radius: 11px;
    background: linear-gradient(135deg, #566be2, #4054c7);
    box-shadow: 0 8px 18px rgba(63, 81, 190, 0.2);
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.35;
    text-decoration: none;
    transition:
            box-shadow 0.16s ease,
            filter 0.16s ease,
            transform 0.16s ease;
}

.user-page-license-upgrade:hover {
    box-shadow: 0 11px 23px rgba(63, 81, 190, 0.28);
    color: #ffffff;
    filter: brightness(1.04);
    text-decoration: none;
    transform: translateY(-1px);
}

.user-page-license-upgrade:active {
    box-shadow: 0 6px 12px rgba(63, 81, 190, 0.2);
    transform: translateY(0);
}

.user-page-license-upgrade--premium {
    border-color: rgba(112, 74, 210, 0.3);
    background: linear-gradient(135deg, #7652da, #5435b5);
    box-shadow: 0 8px 18px rgba(92, 57, 179, 0.24);
}

.user-page-license-upgrade--premium:hover {
    box-shadow: 0 11px 24px rgba(92, 57, 179, 0.32);
}

.user-page-license-upgrade-arrow {
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
    transition: transform 0.16s ease;
}

.user-page-license-upgrade:hover .user-page-license-upgrade-arrow {
    transform: translateX(2px);
}

.user-page-license-card[data-tier="BASIC"] {
    border-color: rgba(53, 109, 232, 0.25);
    background: linear-gradient(135deg, rgba(239, 245, 255, 0.98), rgba(231, 239, 255, 0.9));
}

.user-page-license-card[data-tier="BASIC"]::after {
    background: rgba(53, 109, 232, 0.14);
}

.user-page-license-card[data-tier="BASIC"] .user-page-license-tier {
    border-color: rgba(53, 109, 232, 0.24);
    background: rgba(255, 255, 255, 0.84);
    color: #315fc4;
}

.user-page-license-card[data-tier="PREMIUM"] {
    border-color: rgba(109, 72, 219, 0.28);
    background:
            radial-gradient(circle at 93% 10%, rgba(246, 194, 70, 0.2), transparent 35%),
            linear-gradient(135deg, rgba(245, 241, 255, 0.98), rgba(236, 232, 255, 0.92));
}

.user-page-license-card[data-tier="PREMIUM"]::after {
    background: rgba(114, 77, 218, 0.14);
}

.user-page-license-card[data-tier="PREMIUM"] .user-page-license-tier {
    border-color: rgba(109, 72, 219, 0.25);
    background: rgba(255, 255, 255, 0.86);
    color: #6840c6;
}

.user-page-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 13px;
}

.UserPage_Buttons {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 100px;
    padding: 13px;
    flex-direction: column;
    align-items: flex-start;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.78);
    color: #1d293d;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
    text-decoration: none;
    transition:
            border-color 0.16s ease,
            box-shadow 0.16s ease,
            transform 0.16s ease,
            background 0.16s ease;
}

.UserPage_Buttons:hover {
    border-color: rgba(74, 105, 220, 0.3);
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(50, 65, 105, 0.1);
    color: #17213a;
    text-decoration: none;
    transform: translateY(-2px);
}

.UserPage_Buttons:active {
    box-shadow: 0 5px 12px rgba(50, 65, 105, 0.08);
    transform: translateY(0);
}

.user-page-action-icon {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 12px;
    background: linear-gradient(145deg, #eef3ff, #e5ebff);
}

.UserPage_Buttons_Img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.UserPage_Buttons_Text {
    display: flex;
    min-width: 0;
    margin-top: 10px;
    flex-direction: column;
}

.UserPage_Buttons_Text strong {
    color: #1d293d;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.3;
}

.UserPage_Buttons_Text small {
    margin-top: 2px;
    color: #7a8498;
    font-size: 10px;
    font-weight: 500;
    line-height: 1.35;
    word-break: keep-all;
}

.UserPage_Buttons:focus-visible,
.user-page-logout:focus-visible,
.user-page-nickname-link:focus-visible,
.user-page-license-upgrade:focus-visible {
    outline: 3px solid rgba(79, 140, 255, 0.55);
    outline-offset: 2px;
}

@media (max-width: 480px) {
    #UserPage {
        top: 66px;
        right: 10px;
        width: calc(100vw - 20px);
        max-width: none;
        max-height: calc(100vh - 76px);
        border-radius: 18px;
    }

    #UserPage::before {
        right: 18px;
    }

    .user-page-card-content {
        padding: 17px;
    }

    .user-page-logout span {
        display: none;
    }

    .user-page-logout {
        width: 34px;
        padding: 7px;
        justify-content: center;
    }

    .user-page-license-upgrade {
        min-height: 42px;
        padding: 10px 13px;
    }
}
