/*
 * Card tài khoản (_web/_profile_card) dùng chung cho header site chính (layout app) và topbar
 * terminal — dựng theo Figma "Article - ProfileCard" (file diRq1sZzfYz8fHwJtyON0r, node 1:4).
 * Font Plus Jakarta Sans nạp ở <head> của 2 layout đó.
 *
 * Thu nhỏ còn ~0.8 bản Figma (card 358px → 288px): kích thước, khoảng cách, icon, chữ cùng tỉ lệ;
 * chữ nhỏ nhất 11px để tiếng Việt có dấu vẫn đọc được.
 */
.pc {
    position: relative;
}

.pc__card {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 1000;
    width: 288px;
    max-width: calc(100vw - 32px);
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(241, 245, 249, 0.8);
    border-radius: 25px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.04), 0 16px 32px -12px rgba(20, 25, 113, 0.08);
    font-family: "Plus Jakarta Sans", var(--primary-font, "Inter"), sans-serif;
    text-align: left;
    animation: pc-in 0.18s ease-out;
}

@keyframes pc-in {
    from {
        opacity: 0;
        transform: translateY(-6px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .pc__card {
        animation: none;
    }
}

.pc__head {
    position: relative;
    overflow: hidden;
    padding: 23px 19px 19px;
    background: linear-gradient(161deg, #141971 0%, #101563 50%, #0c104f 100%);
}

.pc__glow {
    position: absolute;
    border-radius: 9999px;
    pointer-events: none;
}

.pc__glow--blue {
    top: -38px;
    right: -38px;
    width: 115px;
    height: 115px;
    background: rgba(59, 130, 246, 0.1);
    filter: blur(32px);
}

.pc__glow--green {
    top: 4px;
    right: 13px;
    width: 90px;
    height: 90px;
    background: rgba(48, 168, 129, 0.15);
    filter: blur(19px);
}

.pc__identity {
    position: relative;
    display: flex;
    align-items: center;
    gap: 13px;
}

.pc__avatar {
    position: relative;
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    padding: 2px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.3), inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

.pc__avatar img {
    width: 48px;
    height: 48px;
    border-radius: 9999px;
    -o-object-fit: cover;
       object-fit: cover;
}

.pc__online {
    position: absolute;
    right: 1px;
    bottom: 1px;
    width: 12px;
    height: 12px;
    border: 2px solid #141971;
    border-radius: 9999px;
    background: #30a881;
}

.pc__who {
    min-width: 0;
}

.pc__name,
.pc__email {
    margin: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: #ffffff;
}

.pc__name {
    font-size: 15.5px;
    font-weight: 700;
    line-height: 23px;
    letter-spacing: -0.35px;
}

.pc__email {
    font-family: "Liberation Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 11px;
    line-height: 16px;
    letter-spacing: 0.2px;
    opacity: 0.7;
}

.pc__tier {
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding: 16px 19px 13px;
    border-bottom: 1px solid #f3f4f6;
}

.pc__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.pc__tier-name {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 700;
    line-height: 20px;
    letter-spacing: -0.3px;
    color: #0f172a;
}

.pc__verified {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 9999px;
    background: #30a881;
    color: #ffffff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.pc__verified svg {
    width: 11px;
    height: 11px;
}

.pc__pill {
    padding: 1px 8px;
    border: 1px solid rgba(48, 168, 129, 0.2);
    border-radius: 9999px;
    background: #e8f7f2;
    font-size: 11px;
    font-weight: 600;
    line-height: 16px;
    letter-spacing: 0.5px;
    color: #30a881;
    white-space: nowrap;
}

.pc__validity {
    padding-bottom: 4px;
    font-size: 11.5px;
    font-weight: 500;
    line-height: 17px;
    color: #737373;
}

.pc__validity-note {
    font-size: 11px;
    line-height: 16px;
    opacity: 0.8;
}

.pc__upgrade {
    font-size: 11px;
    font-weight: 600;
    color: #30a881;
}

.pc__bar {
    height: 5px;
    overflow: hidden;
    border-radius: 9999px;
    background: #f1f5f9;
}

.pc__bar span {
    display: block;
    height: 100%;
    border-radius: 9999px;
    background: linear-gradient(90deg, #141971 0%, #30a881 100%);
}

.pc__menu {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 11px;
}

.pc__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 11px;
    border-radius: 13px;
    font-size: 12.5px;
    font-weight: 500;
    line-height: 18px;
    color: #334155;
    transition: background-color 0.2s;
}

.pc__item:hover {
    background: #f8fafc;
    color: #334155;
}

/* Khoảng hở quanh vạch ngăn như Figma: mục trên đệm dưới dày hơn, Đăng xuất đệm trên dày hơn */
.pc__item--before-divider {
    padding-bottom: 14px;
}

.pc__item--logout {
    padding-top: 13px;
    letter-spacing: -0.25px;
}

.pc__item-main,
.pc__item-end {
    display: flex;
    align-items: center;
}

.pc__item-main {
    gap: 11px;
}

.pc__item-end {
    gap: 6px;
}

.pc__icon {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 29px;
    height: 29px;
    border-radius: 10px;
    background: rgba(241, 245, 249, 0.8);
    color: #475569;
}

.pc__icon svg {
    width: 16px;
    height: 16px;
}

.pc__item--logout .pc__icon {
    color: #737373;
}

.pc__chevron {
    flex-shrink: 0;
    width: 13px;
    height: 13px;
    color: #b4b4b4;
}

.pc__count {
    padding: 1px 6px;
    border-radius: 9999px;
    background: #f1f5f9;
    font-size: 11px;
    font-weight: 600;
    line-height: 14px;
    color: #737373;
}

.pc__divider {
    height: 0;
    margin: 0 6px;
    border: 0;
    border-top: 1px solid #f1f5f9;
}

.pc__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 19px;
    border-top: 1px solid #f1f5f9;
    background: rgba(248, 250, 252, 0.5);
    font-size: 11px;
    line-height: 16px;
}

.pc__version {
    color: #b4b4b4;
}

.pc__secure {
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
    color: #737373;
}

.pc__dot {
    width: 5px;
    height: 5px;
    border-radius: 9999px;
    background: #30a881;
}

