:root {
    --pointer-x: 50%;
    --pointer-y: 50%;
    --pointer-from-center: 0;
    --pointer-from-top: 0.5;
    --pointer-from-left: 0.5;
    --card-opacity: 0;
    --rotate-x: 0deg;
    --rotate-y: 0deg;
    --background-x: 50%;
    --background-y: 50%;
    --icon: none;
    --behind-glow-color: rgba(98, 23, 43, 0.5);
    /* Theme color */
    --behind-glow-size: 30%;
    --inner-gradient: linear-gradient(145deg, rgba(20, 20, 25, 0.9), rgba(10, 10, 15, 0.95));
    --card-radius: 24px;
}

.pc-card-wrapper {
    perspective: 1000px;
    position: relative;
    touch-action: none;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
}

.pc-behind {
    position: absolute;
    inset: -20px;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(circle at var(--pointer-x) var(--pointer-y),
            var(--behind-glow-color) 0%,
            transparent 70%);
    opacity: calc(0.6 * var(--card-opacity));
    transition: opacity 0.3s ease;
}

.pc-card {
    height: 420px;
    width: 100%;
    border-radius: var(--card-radius);
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    background: #0a0a0f;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transform: rotateX(var(--rotate-y)) rotateY(var(--rotate-x)) translateZ(0);
    transition: transform 0.2s cubic-bezier(0.2, 0, 0.2, 1), border-color 0.4s ease, box-shadow 0.4s ease;
    will-change: transform;
}

.pc-card-wrapper:hover .pc-card {
    --card-opacity: 1;
    border-color: rgba(98, 23, 43, 0.6);
    box-shadow: 0 15px 45px rgba(98, 23, 43, 0.3);
    transform: rotateX(var(--rotate-y)) rotateY(var(--rotate-x)) translateZ(12px) scale(1.02);
}

.pc-inside {
    position: absolute;
    inset: 0;
    background: var(--inner-gradient);
    display: flex;
    flex-direction: column;
}

.pc-content {
    position: relative;
    z-index: 2;
    height: 100%;
}

.pc-avatar-content {
    position: relative;
    height: 70%;
    overflow: hidden;
}

.avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.pc-card-wrapper:hover .avatar {
    transform: scale(1.05);
}

.pc-avatar-content::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, #0a0a0f 0%, transparent 40%);
}

.pc-shine {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--pointer-x) var(--pointer-y),
            rgba(255, 255, 255, 0.08) 0%,
            transparent 60%);
    z-index: 3;
    pointer-events: none;
}

.pc-details {
    padding: 20px;
    text-align: center;
}

.pc-details h3 {
    font-family: 'Audiowide', cursive;
    font-size: 20px;
    margin: 0;
    color: #fff;
}

.pc-details p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    margin: 4px 0 15px;
}

.pc-user-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: rgba(10, 10, 15, 0.8);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    z-index: 10;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.pc-card-wrapper:hover .pc-user-info {
    transform: translateY(0);
}

.pc-mini-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.pc-mini-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pc-user-text {
    flex: 1;
    margin-left: 10px;
    text-align: left;
}

.pc-handle {
    font-size: 12px;
    font-weight: 600;
    color: #fff;
}

.pc-status {
    font-size: 10px;
    color: #62172b;
    /* Theme color for status */
}

.pc-contact-btn {
    padding: 8px 14px;
    background: #62172b;
    color: #fff;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
}

.pc-contact-btn:hover {
    background: #8a253f;
}

@media (max-width: 480px) {
    .pc-card {
        height: 380px;
    }
}