.technex-user-card-overlay {
    position: fixed; inset: 0; z-index: 10050;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex; align-items: center; justify-content: center;
    padding: 20px 16px;
    opacity: 0; pointer-events: none;
    transition: opacity 0.25s ease;
}
.technex-user-card-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}
.technex-user-card {
    --uc-role-color: var(--technex-role-user-base, #0087ff);
    position: relative;
    width: min(100%, 340px);
    background: #fff;
    border-radius: 18px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    transform: translateY(12px) scale(0.96);
    transition: transform 0.28s cubic-bezier(0.34, 1.4, 0.64, 1);
}
.technex-user-card-overlay.is-open .technex-user-card {
    transform: translateY(0) scale(1);
}

/* ── Header cover (nhẹ + minh họa theo role) ── */
.technex-user-card-header {
    height: 80px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f4f6fb 0%, #eef1f8 100%);
}
.technex-user-card-header::before {
    content: '';
    position: absolute; inset: 0;
    background:
        radial-gradient(circle at 12% 80%, color-mix(in srgb, var(--uc-role-color) 14%, transparent) 0%, transparent 42%),
        radial-gradient(circle at 88% 18%, color-mix(in srgb, var(--uc-role-color) 10%, transparent) 0%, transparent 38%);
    pointer-events: none;
}
.technex-user-card-header--admin {
    background: linear-gradient(135deg, #fff8f8 0%, #fff1f1 45%, #faf5f5 100%);
}
.technex-user-card-header--manager {
    background: linear-gradient(135deg, #fff9f3 0%, #fff4e8 45%, #faf6f0 100%);
}
.technex-user-card-header--pro {
    background: linear-gradient(135deg, #faf5ff 0%, #f3ebff 45%, #f8f4fc 100%);
}
.technex-user-card-header--basic {
    background: linear-gradient(135deg, #f5f9ff 0%, #ebf3ff 45%, #f4f8fd 100%);
}
.technex-user-card-header-art {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 92px;
    height: 92px;
    color: var(--uc-role-color);
    opacity: 0.42;
    pointer-events: none;
}
.technex-user-card-header-art svg {
    width: 100%;
    height: 100%;
    display: block;
}
.technex-user-card-header--admin::after,
.technex-user-card-header--manager::after,
.technex-user-card-header--pro::after,
.technex-user-card-header--basic::after {
    content: '';
    position: absolute;
    left: 16px;
    top: 14px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1.5px dashed color-mix(in srgb, var(--uc-role-color) 22%, transparent);
    pointer-events: none;
}
.technex-user-card-header--admin::after { top: 18px; width: 40px; height: 40px; }
.technex-user-card-header--manager::after {
    border-radius: 12px;
    transform: rotate(12deg);
    width: 44px;
    height: 44px;
}
.technex-user-card-header--pro::after {
    width: 36px;
    height: 36px;
    border-style: dotted;
}
.technex-user-card-header--basic::after {
    width: 52px;
    height: 52px;
    top: 10px;
    opacity: 0.7;
}

.technex-user-card-body {
    padding: 0 20px 16px;
    margin-top: -40px;
    position: relative;
    text-align: center;
}
.technex-user-card-avatar-wrap {
    --uc-ring-light: color-mix(in srgb, var(--uc-role-color) 52%, #fff);
    --uc-ring-deep: color-mix(in srgb, var(--uc-role-color) 82%, #111);
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--uc-ring-light) 0%, var(--uc-role-color) 48%, var(--uc-ring-deep) 100%);
    margin-bottom: 10px;
}
.technex-user-card-avatar-wrap::before {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 1px solid color-mix(in srgb, var(--uc-role-color) 28%, transparent);
    pointer-events: none;
}
.technex-user-card-avatar-wrap::after {
    content: '';
    position: absolute;
    inset: 1px;
    border-radius: 50%;
    border: 1px solid color-mix(in srgb, #fff 65%, var(--uc-role-color));
    opacity: 0.55;
    pointer-events: none;
}
.technex-user-card-avatar {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    border: 2px solid #fff;
    background: #f3f4f6;
    position: relative;
    z-index: 1;
}
.technex-user-card-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
.technex-user-card-top {
    display: flex; align-items: center; justify-content: center;
    flex-wrap: wrap; gap: 8px;
}
.technex-user-card-name {
    font-size: 17px; font-weight: 700; color: #111827;
    margin: 0; line-height: 1.25;
    letter-spacing: -0.01em;
}
.technex-user-card-role {
    display: inline-flex; align-items: center;
    font-size: 10px; font-weight: 700;
    padding: 3px 10px; border-radius: 999px;
    border: 1px solid transparent;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}
.technex-user-card-username {
    font-size: 13px; font-weight: 500; color: #6b7280;
    margin: 0;
}
.technex-user-card-meta {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 12px; color: #6b7280;
    margin: 2px 0 0;
    padding: 5px 12px;
    background: #f3f4f6;
    border-radius: 999px;
}
.technex-user-card-meta-icon {
    width: 14px; height: 14px; flex-shrink: 0;
    color: var(--uc-role-color);
    opacity: 0.85;
}
.technex-user-card-meta-label { display: none; }
.technex-user-card-bio {
    margin: 0;
    padding: 14px 20px 18px;
    border-top: 1px solid #f0f2f5;
    background: linear-gradient(180deg, #fafbfc 0%, #fff 100%);
    text-align: left;
}
.technex-user-card-bio-label {
    display: block;
    font-size: 10px; font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #9ca3af;
    margin-bottom: 6px;
}
.technex-user-card-bio-text {
    font-size: 13px; color: #374151; line-height: 1.55;
    margin: 0;
    padding-left: 10px;
    border-left: 3px solid var(--uc-role-color);
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.technex-user-card-close {
    position: absolute; top: 10px; right: 10px;
    width: 30px; height: 30px; border: none; border-radius: 50%;
    background: rgba(15, 23, 42, 0.06);
    color: #64748b; cursor: pointer;
    font-size: 18px; line-height: 1;
    display: flex; align-items: center; justify-content: center;
    z-index: 2;
    transition: background 0.15s, transform 0.15s, color 0.15s;
}
.technex-user-card-close:hover {
    background: rgba(15, 23, 42, 0.1);
    color: #334155;
    transform: scale(1.05);
}

@media (max-width: 480px) {
    .technex-user-card { width: min(calc(100vw - 24px), 320px); border-radius: 16px; }
    .technex-user-card-header { height: 68px; }
    .technex-user-card-header-art { width: 76px; height: 76px; right: 4px; }
    .technex-user-card-body { padding: 0 16px 14px; margin-top: -36px; }
    .technex-user-card-avatar { width: 68px; height: 68px; }
    .technex-user-card-name { font-size: 16px; }
    .technex-user-card-bio { padding: 12px 16px 16px; }
}
