/* ========================================
   PROFILE6 - Vibrant Unified Profile
   CozyBlast Design System
   ======================================== */

:root {
    --p6-pink: #cb1da1;
    --p6-pink-light: #ff6ed4;
    --p6-pink-glow: rgba(203, 29, 161, 0.4);
    --p6-purple: #8b5cf6;
    --p6-purple-light: #a78bfa;
    --p6-cyan: #06b6d4;
    --p6-green: #10b981;
    --p6-gold: #f59e0b;
    --p6-orange: #f97316;
    --p6-dark: #1e1b4b;
    --p6-text: #1e293b;
    --p6-text-mid: #2d3748;
    --p6-text-light: #404852;
    --p6-white: #ffffff;
    --p6-glass: rgba(255, 255, 255, 0.75);
    --p6-glass-border: rgba(255, 255, 255, 0.4);
    --p6-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    --p6-shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.2);
    --p6-radius: 24px;
    --p6-radius-sm: 14px;
    --p6-corner-shape: squircle;
    --p6-corner-shape-round: round;
    --p6-elastic: linear(0, 0.009 0.7%, 0.041 1.5%, 0.157 3.1%, 0.807 8.9%, 1.039 11.4%, 1.182 13.8%, 1.223 15%, 1.247 16.3%, 1.251 17.8%, 1.231 19.5%, 1 28.2%, 0.957 30.8%, 0.938 33.5%, 0.942 36.8%, 1 45.4%, 1.015 50.5%, 0.996 67.4%, 1);
    --p6-max-width: 768px;
}

/* ========================================
   BASE & BACKGROUND
   ======================================== */

.p6-animated-bg {
    --size: 80vh;
    --speed: 25s;
    position: fixed;
    width: var(--size);
    height: var(--size);
    filter: blur(100px);
    background-image: linear-gradient(135deg, #fda4af, #c4b5fd, #a5f3fc, #86efac);
    animation: p6BgRotate var(--speed) cubic-bezier(0.8, 0.2, 0.2, 0.8) alternate infinite;
    border-radius: 30% 70% 70% 30%/30% 30% 70% 70%;
    corner-shape: var(--p6-corner-shape);
    left: 50%;
    top: 50%;
    translate: -50% -50%;
    z-index: -1;
    opacity: 0.6;
}

.p6-animated-bg::after {
    content: '';
    position: fixed;
    width: 60vh;
    height: 60vh;
    filter: blur(120px);
    background: linear-gradient(225deg, #fcd34d, #fdba74, #fca5a5);
    border-radius: 60% 40% 30% 70%/60% 30% 70% 40%;
    corner-shape: var(--p6-corner-shape);
    top: 60%;
    left: 20%;
    z-index: -1;
    opacity: 0.5;
    animation: p6BgRotate2 30s ease-in-out alternate infinite;
}

@keyframes p6BgRotate2 {
    0% { transform: rotate(0deg) scale(1); }
    100% { transform: rotate(-180deg) scale(1.2); }
}

@keyframes p6BgRotate {
    0% { transform: rotate(0deg) scale(1); }
    100% { transform: rotate(360deg) scale(1.1); }
}

@media (min-width: 800px) {
    .p6-animated-bg { --size: 90vw; }
}

.p6-wrapper {
    max-width: var(--p6-max-width);
    margin: 0 auto;
    /* padding: 20px; */
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.p6-wrapper > section {
    /* Sections flow naturally with minimal visual separation */
}

/* ========================================
   HERO SECTION
   ======================================== */

.p6-hero {
    position: relative;
    background: transparent;
    padding: 40px 0px 32px 0px;
    overflow: visible;
    animation: p6SlideDown 0.6s var(--p6-elastic) forwards;
}

.p6-hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Avatar */
.p6-avatar-wrapper {
    position: relative;
    width: 300px;
    height: 300px;
    margin-bottom: 20px;
    animation: p6PopIn 0.5s var(--p6-elastic) 0.2s both;
}

.p6-avatar-glow {
    position: absolute;
    inset: -10px;
    background: linear-gradient(135deg, #9ca3af, #d1d5db, #9ca3af);
    border-radius: 50%;
    corner-shape: var(--p6-corner-shape-round);
    opacity: 0.5;
    filter: blur(15px);
    animation: p6PulseGlow 3s ease-in-out infinite;
}

/* Gender-based glow colors */
.gender-male .p6-avatar-glow {
    background: linear-gradient(135deg, #3b82f6, #60a5fa, #93c5fd);
}

.gender-female .p6-avatar-glow {
    background: linear-gradient(135deg, var(--p6-pink), #ff9de0, #fdb4e2);
}

.gender-other .p6-avatar-glow {
    background: linear-gradient(135deg, #9ca3af, #d1d5db, #9ca3af);
}

@keyframes p6PulseGlow {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.05); }
}

.p6-avatar-ring {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    corner-shape: var(--p6-corner-shape-round);
    padding: 4px;
    background: linear-gradient(135deg, #9ca3af, #d1d5db, #9ca3af);
    position: relative;
    box-shadow: 0 8px 24px rgba(107, 114, 128, 0.3);
}

/* Gender-based ring colors */
.gender-male .p6-avatar-ring {
    background: linear-gradient(135deg, #3b82f6, #60a5fa, #93c5fd);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.3);
}

.gender-female .p6-avatar-ring {
    background: linear-gradient(135deg, var(--p6-pink), #ff6ed4, #ff9de0);
    box-shadow: 0 8px 24px rgba(203, 29, 161, 0.3);
}

.gender-other .p6-avatar-ring {
    background: linear-gradient(135deg, #9ca3af, #d1d5db, #9ca3af);
    box-shadow: 0 8px 24px rgba(107, 114, 128, 0.3);
}

.p6-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    corner-shape: var(--p6-corner-shape-round);
    object-fit: cover;
    border: 4px solid var(--p6-white);
}

.p6-avatar-edit {
    position: absolute;
    bottom: 15px;
    right: -5px;
    width: 36px;
    height: 36px;
    background: var(--p6-dark);
    border-radius: 50%;
    corner-shape: var(--p6-corner-shape-round);
    border: 3px solid var(--p6-white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--p6-white);
    font-size: 0.85rem;
    transition: transform 0.3s var(--p6-elastic);
    z-index: 2;
}

.p6-avatar-edit:hover {
    background: var(--p6-pink);
    transform: scale(1.1);
}

.p6-level-badge {
    position: absolute;
    top: 15px;
    right: 10px;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    border-radius: 50%;
    corner-shape: var(--p6-corner-shape-round);
    border: 3px solid var(--p6-white);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8b6914;
    font-size: 0.8rem;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
}

/* Username */
.p6-username {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.8rem, 6vw, 2.4rem);
    font-weight: 800;
    color: var(--p6-dark);
    margin: 0 0 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: p6SlideUp 0.5s var(--p6-elastic) 0.3s both;
}

.p6-flag {
    font-size: 1.8rem;
    line-height: 1;
}

.p6-subtitle {
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    color: var(--p6-text-light);
    display: flex;
    align-items: center;
    background: #0000000d;
    padding: 4px 24px;
    border-radius: 7px;
    corner-shape: var(--p6-corner-shape);
    gap: 10px;
    flex-wrap: wrap;
    text-transform: uppercase;
    font-weight: 700 !important;
    justify-content: center;
    animation: p6FadeIn 0.5s ease 0.4s both;
}

.p6-level {
    color: var(--p6-pink);
    /* font-weight: 600; */
}

.p6-subtitle .fa-mars,
.p6-subtitle .fa-venus {
    -webkit-text-stroke: 1px currentColor;
}

.p6-gender-icon {
    display: inline-block;
    animation: p6GenderBounce 15s ease-in-out infinite;
}

@keyframes p6GenderBounce {
    0%, 90% { transform: rotate(0deg); }
    94% { transform: rotate(400deg); }
    96% { transform: rotate(340deg); }
    98% { transform: rotate(375deg); }
    100% { transform: rotate(360deg); }
}

.p6-dot {
    width: 4px;
    height: 4px;
    background: var(--p6-text-light);
    border-radius: 50%;
    corner-shape: var(--p6-corner-shape-round);
}

/* Stats Row */
.p6-stats-row {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 12px;
    margin: 24px 0;
    padding: 18px 16px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(6, 182, 212, 0.1));
    border-radius: var(--p6-radius);
    corner-shape: var(--p6-corner-shape);
    border: 1px solid rgba(139, 92, 246, 0.2);
    animation: p6SlideUp 0.5s var(--p6-elastic) 0.5s both;
}

.p6-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 16px;
    border-radius: var(--p6-radius-sm);
    corner-shape: var(--p6-corner-shape);
    min-width: 70px;
}

.p6-stat-item:first-child { background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(124, 58, 237, 0.1)); }
.p6-stat-item:last-child { background: linear-gradient(135deg, rgba(6, 182, 212, 0.15), rgba(8, 145, 178, 0.1)); }

.p6-stat-number {
    font-family: 'Bungee', cursive;
    font-size: 1.5rem;
    color: var(--p6-dark);
    line-height: 1.2;
}

.p6-stat-label {
    font-family: 'Poppins', sans-serif;
    font-size: 0.8rem;
    color: var(--p6-text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
    margin-top: 2px;
}

.p6-stat-item {
    cursor: pointer;
    transition: flex 0.35s ease, min-width 0.35s ease;
}

.p6-stat-item.expanded {
    flex: 2;
    min-width: 140px;
}

.p6-stat-user-list {
    display: none;
    flex-direction: column;
    gap: 4px;
    width: 100%;
    margin-top: 8px;
    overflow: hidden;
}

.p6-stat-item.expanded .p6-stat-user-list {
    display: flex;
}

.p6-stat-user-row {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    padding: 2px 0;
    animation: p6StatUserIn 0.25s ease both;
    animation-delay: calc(var(--i, 0) * 25ms);
}

.p6-stat-user-row:hover .p6-stat-user-name {
    color: var(--p6-pink);
}

#p6StatFollowers .p6-stat-user-row {
    flex-direction: row-reverse;
    text-align: right;
}

.p6-stat-user-avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    corner-shape: var(--p6-corner-shape-round);
    padding: 1.5px;
    background: linear-gradient(135deg, #9ca3af, #d1d5db, #9ca3af);
    flex-shrink: 0;
}

.p6-stat-user-avatar.gender-male {
    background: linear-gradient(135deg, #3b82f6, #60a5fa, #93c5fd);
}

.p6-stat-user-avatar.gender-female {
    background: linear-gradient(135deg, var(--p6-pink), #ff9de0, #fdb4e2);
}

.p6-stat-user-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    corner-shape: var(--p6-corner-shape-round);
    object-fit: cover;
    display: block;
}

.p6-stat-user-name {
    font-family: 'Poppins', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--p6-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s ease;
}

.p6-stat-user-more {
    font-family: 'Poppins', sans-serif;
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--p6-text-light);
    padding-top: 2px;
}

@keyframes p6StatUserIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

.p6-stat-divider {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, transparent, rgba(139, 92, 246, 0.3), transparent);
}

/* Karma badge on avatar */
.p6-karma-badge {
    position: absolute;
    bottom: 0px;
    left: -10px;
    font-size: 1rem;
    display: flex;
    gap: 4px;
    background: linear-gradient(135deg, var(--p6-pink), var(--p6-pink-light));
    padding: 7px 16px 7px 14px;
    border-radius: 20px;
    corner-shape: var(--p6-corner-shape);
    box-shadow: 0 4px 12px var(--p6-pink-glow);
    z-index: 5;
    animation: p6SlideUp 0.5s var(--p6-elastic) 0.4s both;
    align-items: center;
    flex-wrap: nowrap;
    flex-direction: row;
}

.p6-karma-icon {
    width: 22px;
    height: 22px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    animation: p6HeartPulse 2s ease-in-out infinite;
}

@keyframes p6HeartPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.p6-karma-value {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--p6-white);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Action Buttons */
.p6-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    animation: p6SlideUp 0.5s var(--p6-elastic) 0.6s both;
}

.p6-btn-follow,
.p6-btn-message,
.p6-btn-edit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 50px;
    corner-shape: var(--p6-corner-shape);
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: color 0.3s linear, transform 0.3s var(--p6-elastic), box-shadow 0.3s var(--p6-elastic);
    text-decoration: none;
}

.p6-btn-follow {
    background: linear-gradient(135deg, var(--p6-pink), var(--p6-pink-light));
    color: var(--p6-white);
    box-shadow: 0 4px 15px var(--p6-pink-glow);
    position: relative;
    overflow: visible;
}

.p6-btn-follow::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    corner-shape: var(--p6-corner-shape);
    opacity: 0;
    pointer-events: none;
}

.p6-btn-follow.pulse::after {
    animation: p6FollowPulsePink 0.4s ease-out forwards;
}

.p6-btn-follow.following.pulse::after {
    animation: p6FollowPulseGreen 0.4s ease-out forwards;
}

@keyframes p6FollowPulsePink {
    0% {
        box-shadow: 0 0 0 0 var(--p6-pink);
        opacity: 0.7;
    }
    100% {
        box-shadow: 0 0 0 50px var(--p6-pink);
        opacity: 0;
    }
}

@keyframes p6FollowPulseGreen {
    0% {
        box-shadow: 0 0 0 0 #10b981;
        opacity: 0.7;
    }
    100% {
        box-shadow: 0 0 0 50px #10b981;
        opacity: 0;
    }
}

.p6-btn-follow:hover {
    box-shadow: 0 8px 25px var(--p6-pink-glow);
}

.p6-btn-follow.following {
    background: linear-gradient(135deg, #10b981, #34d399);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.p6-btn-message {
    background: var(--p6-white);
    color: var(--p6-dark);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.p6-btn-message:hover {
    background: var(--p6-dark);
    color: var(--p6-white);
}

.p6-btn-edit {
    background: var(--p6-pink);
    color: var(--p6-white);
    box-shadow: 0 4px 15px var(--p6-pink-glow);
}

.p6-btn-edit:hover {
    background: var(--p6-pink-light);
}

.p6-btn-edit.active {
    background: rgba(0, 0, 0, 0.1);
    color: var(--p6-dark);
    box-shadow: none;
}

.p6-btn-edit.active:hover {
    background: rgba(0, 0, 0, 0.15);
}

.p6-btn-link {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    corner-shape: var(--p6-corner-shape-round);
    background: rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--p6-dark);
    font-size: 1.1rem;
    transition: color 0.3s linear, transform 0.3s var(--p6-elastic);
}

.p6-btn-link:hover {
    background: var(--p6-dark);
    color: var(--p6-white);
    transform: scale(1.1);
}

/* ========================================
   GLASS CARD (Reusable - used sparingly)
   ======================================== */

.p6-glass-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: var(--p6-radius);
    corner-shape: var(--p6-corner-shape);
    padding: 24px;
    box-shadow: var(--p6-shadow), inset 0 1px 0 var(--p6-glass-border);
}

/* Minimal card - no background, just content */
.p6-flow-section {
    padding: 0;
}

/* ========================================
   BIO SECTION (Integrated into hero)
   ======================================== */

/* Bio Section - Combined bio and highlights */
.p6-bio-section {
    animation: p6SlideUp 0.5s var(--p6-elastic) 0.2s both;
    margin-top: -12px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: var(--p6-radius);
    corner-shape: var(--p6-corner-shape);
    padding: 24px;
}

.p6-bio-text {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    line-height: 1.8;
    color: var(--p6-dark);
    font-weight: 500;
    margin: 0;
    text-align: center;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.p6-bio-placeholder {
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    color: var(--p6-text-light);
    font-style: italic;
    margin: 0;
    text-align: center;
}

/* Highlights - Inline with bio */
.p6-highlights {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.p6-highlight-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 30px;
    corner-shape: var(--p6-corner-shape);
}

.p6-highlight-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    corner-shape: var(--p6-corner-shape);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--p6-white);
    font-size: 1rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.p6-highlight-icon.best-game { background: linear-gradient(135deg, #fbbf24, #f59e0b); }
.p6-highlight-icon.streak { background: linear-gradient(135deg, #ef4444, #dc2626); }
.p6-highlight-icon.games { background: linear-gradient(135deg, #ec4899, #db2777); }
.p6-highlight-icon.trophy { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }

/* Game-specific highlight icon (shows actual game logo) */
.p6-highlight-game-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    corner-shape: var(--p6-corner-shape);
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.p6-highlight-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.p6-highlight-label {
    font-family: 'Poppins', sans-serif;
    font-size: 0.65rem;
    color: #4a5568;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-weight: 600;
}

.p6-highlight-value {
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: #1a202c;
    white-space: nowrap;
}

/* ========================================
   EDIT PANEL
   ======================================== */

.p6-edit-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s var(--p6-elastic);
}

.p6-edit-panel.open {
    max-height: 100%;
    overflow: visible;
}

.p6-edit-content {
    display: none;
}

.p6-edit-content.active {
    display: block;
    animation: p6FadeIn 0.3s ease;
}

.p6-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.p6-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.p6-form-group label {
    font-family: 'Poppins', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--p6-text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.p6-form-group input,
.p6-form-group textarea,
.p6-form-group select {
    padding: 12px 16px;
    border: 2px solid rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    corner-shape: var(--p6-corner-shape);
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: var(--p6-white);
}

.p6-form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23718096' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

.p6-form-group input:focus,
.p6-form-group textarea:focus,
.p6-form-group select:focus {
    outline: none;
    border-color: var(--p6-pink);
    box-shadow: 0 0 0 3px var(--p6-pink-glow);
}

/* Gender Selector - Big Radio Buttons */
.p6-gender-selector {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.p6-gender-option {
    flex: 1;
    position: relative;
    cursor: pointer;
}

.p6-gender-option input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.p6-gender-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 12px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: var(--p6-radius-sm);
    corner-shape: var(--p6-corner-shape);
    border: 2px solid transparent;
    transition: box-shadow 0.3s var(--p6-elastic), border-color 0.3s linear;
}

.p6-gender-label i {
    font-size: 1.8rem;
    margin-bottom: 6px;
    color: var(--p6-text-light);
    transition: color 0.3s;
}

.p6-gender-label span {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--p6-text-light);
}

.p6-gender-option input:checked + .p6-gender-label {
    background: var(--p6-white);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.p6-gender-option.male input:checked + .p6-gender-label {
    border-color: #3b82f6;
}
.p6-gender-option.male input:checked + .p6-gender-label i {
    color: #3b82f6;
}

.p6-gender-option.female input:checked + .p6-gender-label {
    border-color: #ec4899;
}
.p6-gender-option.female input:checked + .p6-gender-label i {
    color: #ec4899;
}

.p6-gender-option.other input:checked + .p6-gender-label {
    border-color: #8b5cf6;
}
.p6-gender-option.other input:checked + .p6-gender-label i {
    color: #8b5cf6;
}

.p6-gender-option:hover .p6-gender-label {
    background: var(--p6-white);
}

/* Form Actions */
.p6-form-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.p6-form-actions .p6-btn-ghost {
    flex: 1;
}

.p6-form-actions .p6-btn-primary {
    flex: 2;
}

/* Small Buttons */
.p6-btn-sm {
    padding: 8px 16px;
    font-size: 0.8rem;
    border-radius: 8px;
    corner-shape: var(--p6-corner-shape);
    font-weight: 600;
    cursor: pointer;
    border: none;
}

.p6-btn-sm.p6-btn-ghost {
    background: rgba(0, 0, 0, 0.05);
    color: var(--p6-text);
}

.p6-btn-sm.p6-btn-ghost:hover {
    background: rgba(0, 0, 0, 0.1);
}

.p6-btn-sm.p6-btn-primary {
    background: var(--p6-pink);
    color: var(--p6-white);
}

.p6-btn-sm.p6-btn-primary:hover {
    background: var(--p6-pink-light);
}

.p6-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--p6-pink), var(--p6-pink-light));
    color: var(--p6-white);
    border: none;
    border-radius: 10px;
    corner-shape: var(--p6-corner-shape);
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 15px var(--p6-pink-glow);
    transition: transform 0.3s var(--p6-elastic), box-shadow 0.3s var(--p6-elastic);
}

.p6-btn-primary:hover {
    box-shadow: 0 6px 20px var(--p6-pink-glow);
}

.p6-btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.p6-btn-full {
    width: 100%;
}

.p6-btn-ghost {
    padding: 10px 20px;
    background: transparent;
    border: none;
    color: var(--p6-text-light);
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    cursor: pointer;
}

/* Dropzone */
.p6-dropzone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    border: 2px dashed rgba(0, 0, 0, 0.15);
    border-radius: var(--p6-radius-sm);
    corner-shape: var(--p6-corner-shape);
    background: rgba(0, 0, 0, 0.02);
    cursor: pointer;
    transition: border-color 0.3s ease;
    margin-bottom: 16px;
}

.p6-dropzone:hover,
.p6-dropzone.dragover {
    border-color: var(--p6-pink);
    background: rgba(203, 29, 161, 0.05);
}

.p6-dropzone i {
    font-size: 2.5rem;
    color: var(--p6-text-light);
    margin-bottom: 12px;
}

.p6-dropzone p {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: var(--p6-text);
    margin: 0;
}

.p6-dropzone span {
    font-family: 'Poppins', sans-serif;
    font-size: 0.8rem;
    color: var(--p6-text-light);
    margin-top: 4px;
}

.p6-dropzone input {
    display: none;
}

.p6-upload-preview {
    display: none;
    position: relative;
    border-radius: var(--p6-radius-sm);
    corner-shape: var(--p6-corner-shape);
    overflow: hidden;
    background: #000;
    margin-bottom: 16px;
}

.p6-upload-preview img {
    width: 100%;
    max-height: 200px;
    object-fit: contain;
}

.p6-preview-remove {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    corner-shape: var(--p6-corner-shape-round);
    background: rgba(0, 0, 0, 0.7);
    color: var(--p6-white);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.p6-preview-remove:hover {
    background: #ef4444;
}

/* ========================================
   PERSONAL BESTS
   ======================================== */

.p6-bests-section {
    animation: p6SlideUp 0.5s var(--p6-elastic) 0.3s both;
    margin-bottom: 20px;
}

.p6-section-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.3rem;
    font-weight: 800;
    color: #0f172a;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0 0 16px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    padding: 0;
}

.p6-section-title i {
    font-size: 1.1rem;
    color: #0f172a;
}

.p6-bests-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
    gap: 26px;
}

@media (max-width: 600px) {
    .p6-bests-grid {
        grid-template-columns: 1fr;
    }
}

.p6-best-card {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 6px 18px;
    min-height: 50px;
    border-radius: var(--p6-radius-sm);
    corner-shape: var(--p6-corner-shape);
    position: relative;
    overflow: visible;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15);
}

.p6-best-card.wordblast {
    background-color: #B4C555;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 2000 1500'%3E%3Cdefs%3E%3Crect stroke='%23B4C555' stroke-width='0.2' width='1' height='1' id='s'/%3E%3Cpattern id='a' width='3' height='3' patternUnits='userSpaceOnUse' patternTransform='scale(30.5) translate(-967.21 -725.41)'%3E%3Cuse fill='%23b2c354' href='%23s' y='2'/%3E%3Cuse fill='%23b2c354' href='%23s' x='1' y='2'/%3E%3Cuse fill='%23b0c153' href='%23s' x='2' y='2'/%3E%3Cuse fill='%23b0c153' href='%23s'/%3E%3Cuse fill='%23afbf52' href='%23s' x='2'/%3E%3Cuse fill='%23afbf52' href='%23s' x='1' y='1'/%3E%3C/pattern%3E%3Cpattern id='b' width='7' height='11' patternUnits='userSpaceOnUse' patternTransform='scale(30.5) translate(-967.21 -725.41)'%3E%3Cg fill='%23adbd52'%3E%3Cuse href='%23s'/%3E%3Cuse href='%23s' y='5' /%3E%3Cuse href='%23s' x='1' y='10'/%3E%3Cuse href='%23s' x='2' y='1'/%3E%3Cuse href='%23s' x='2' y='4'/%3E%3Cuse href='%23s' x='3' y='8'/%3E%3Cuse href='%23s' x='4' y='3'/%3E%3Cuse href='%23s' x='4' y='7'/%3E%3Cuse href='%23s' x='5' y='2'/%3E%3Cuse href='%23s' x='5' y='6'/%3E%3Cuse href='%23s' x='6' y='9'/%3E%3C/g%3E%3C/pattern%3E%3Cpattern id='h' width='5' height='13' patternUnits='userSpaceOnUse' patternTransform='scale(30.5) translate(-967.21 -725.41)'%3E%3Cg fill='%23adbd52'%3E%3Cuse href='%23s' y='5'/%3E%3Cuse href='%23s' y='8'/%3E%3Cuse href='%23s' x='1' y='1'/%3E%3Cuse href='%23s' x='1' y='9'/%3E%3Cuse href='%23s' x='1' y='12'/%3E%3Cuse href='%23s' x='2'/%3E%3Cuse href='%23s' x='2' y='4'/%3E%3Cuse href='%23s' x='3' y='2'/%3E%3Cuse href='%23s' x='3' y='6'/%3E%3Cuse href='%23s' x='3' y='11'/%3E%3Cuse href='%23s' x='4' y='3'/%3E%3Cuse href='%23s' x='4' y='7'/%3E%3Cuse href='%23s' x='4' y='10'/%3E%3C/g%3E%3C/pattern%3E%3Cpattern id='c' width='17' height='13' patternUnits='userSpaceOnUse' patternTransform='scale(30.5) translate(-967.21 -725.41)'%3E%3Cg fill='%23abbb51'%3E%3Cuse href='%23s' y='11'/%3E%3Cuse href='%23s' x='2' y='9'/%3E%3Cuse href='%23s' x='5' y='12'/%3E%3Cuse href='%23s' x='9' y='4'/%3E%3Cuse href='%23s' x='12' y='1'/%3E%3Cuse href='%23s' x='16' y='6'/%3E%3C/g%3E%3C/pattern%3E%3Cpattern id='d' width='19' height='17' patternUnits='userSpaceOnUse' patternTransform='scale(30.5) translate(-967.21 -725.41)'%3E%3Cg fill='%23B4C555'%3E%3Cuse href='%23s' y='9'/%3E%3Cuse href='%23s' x='16' y='5'/%3E%3Cuse href='%23s' x='14' y='2'/%3E%3Cuse href='%23s' x='11' y='11'/%3E%3Cuse href='%23s' x='6' y='14'/%3E%3C/g%3E%3Cg fill='%23a9b950'%3E%3Cuse href='%23s' x='3' y='13'/%3E%3Cuse href='%23s' x='9' y='7'/%3E%3Cuse href='%23s' x='13' y='10'/%3E%3Cuse href='%23s' x='15' y='4'/%3E%3Cuse href='%23s' x='18' y='1'/%3E%3C/g%3E%3C/pattern%3E%3Cpattern id='e' width='47' height='53' patternUnits='userSpaceOnUse' patternTransform='scale(30.5) translate(-967.21 -725.41)'%3E%3Cg fill='%23A1BC1B'%3E%3Cuse href='%23s' x='2' y='5'/%3E%3Cuse href='%23s' x='16' y='38'/%3E%3Cuse href='%23s' x='46' y='42'/%3E%3Cuse href='%23s' x='29' y='20'/%3E%3C/g%3E%3C/pattern%3E%3Cpattern id='f' width='59' height='71' patternUnits='userSpaceOnUse' patternTransform='scale(30.5) translate(-967.21 -725.41)'%3E%3Cg fill='%23A1BC1B'%3E%3Cuse href='%23s' x='33' y='13'/%3E%3Cuse href='%23s' x='27' y='54'/%3E%3Cuse href='%23s' x='55' y='55'/%3E%3C/g%3E%3C/pattern%3E%3Cpattern id='g' width='139' height='97' patternUnits='userSpaceOnUse' patternTransform='scale(30.5) translate(-967.21 -725.41)'%3E%3Cg fill='%23A1BC1B'%3E%3Cuse href='%23s' x='11' y='8'/%3E%3Cuse href='%23s' x='51' y='13'/%3E%3Cuse href='%23s' x='17' y='73'/%3E%3Cuse href='%23s' x='99' y='57'/%3E%3C/g%3E%3C/pattern%3E%3C/defs%3E%3Crect fill='url(%23a)' width='100%25' height='100%25'/%3E%3Crect fill='url(%23b)' width='100%25' height='100%25'/%3E%3Crect fill='url(%23h)' width='100%25' height='100%25'/%3E%3Crect fill='url(%23c)' width='100%25' height='100%25'/%3E%3Crect fill='url(%23d)' width='100%25' height='100%25'/%3E%3Crect fill='url(%23e)' width='100%25' height='100%25'/%3E%3Crect fill='url(%23f)' width='100%25' height='100%25'/%3E%3Crect fill='url(%23g)' width='100%25' height='100%25'/%3E%3C/svg%3E");
    background-size: 600px;
}

.p6-best-card.blockchamp {
    background-color: #BCA237;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100%25' height='100%25' viewBox='0 0 1600 1200'%3E%3Cdefs%3E%3ClinearGradient id='a' x1='0' x2='0' y1='0' y2='100%25' gradientTransform='rotate(148,916,392)' gradientUnits='userSpaceOnUse'%3E%3Cstop offset='0' stop-color='%23bca135'/%3E%3Cstop offset='0.02' stop-color='%23BCA237'/%3E%3Cstop offset='0.02' stop-color='%23b99a2e'/%3E%3Cstop offset='0.032' stop-color='%23BCA237'/%3E%3Cstop offset='0.032' stop-color='%23bfa32b'/%3E%3Cstop offset='0.056' stop-color='%23BCA237'/%3E%3Cstop offset='0.056' stop-color='%23bfa533'/%3E%3Cstop offset='0.07' stop-color='%23BCA237'/%3E%3Cstop offset='0.07' stop-color='%23ba9e33'/%3E%3Cstop offset='0.1' stop-color='%23BCA237'/%3E%3Cstop offset='0.1' stop-color='%23bda335'/%3E%3Cstop offset='0.126' stop-color='%23BCA237'/%3E%3Cstop offset='0.126' stop-color='%23bb9d30'/%3E%3Cstop offset='0.142' stop-color='%23BCA237'/%3E%3Cstop offset='0.142' stop-color='%23cab62c'/%3E%3Cstop offset='0.159' stop-color='%23BCA237'/%3E%3Cstop offset='0.159' stop-color='%23c5af2f'/%3E%3Cstop offset='0.17' stop-color='%23BCA237'/%3E%3Cstop offset='0.17' stop-color='%23bb9e33'/%3E%3Cstop offset='0.197' stop-color='%23BCA237'/%3E%3Cstop offset='0.197' stop-color='%23bda333'/%3E%3Cstop offset='0.218' stop-color='%23BCA237'/%3E%3Cstop offset='0.218' stop-color='%23cebc2b'/%3E%3Cstop offset='0.239' stop-color='%23BCA237'/%3E%3Cstop offset='0.239' stop-color='%23ba9e31'/%3E%3Cstop offset='0.254' stop-color='%23BCA237'/%3E%3Cstop offset='0.254' stop-color='%23bda131'/%3E%3Cstop offset='0.283' stop-color='%23BCA237'/%3E%3Cstop offset='0.283' stop-color='%23c1a933'/%3E%3Cstop offset='0.294' stop-color='%23BCA237'/%3E%3Cstop offset='0.294' stop-color='%23c1a833'/%3E%3Cstop offset='0.305' stop-color='%23BCA237'/%3E%3Cstop offset='0.305' stop-color='%23c2aa31'/%3E%3Cstop offset='0.332' stop-color='%23BCA237'/%3E%3Cstop offset='0.332' stop-color='%23bea330'/%3E%3Cstop offset='0.346' stop-color='%23BCA237'/%3E%3Cstop offset='0.346' stop-color='%23bea436'/%3E%3Cstop offset='0.362' stop-color='%23BCA237'/%3E%3Cstop offset='0.362' stop-color='%23c0a733'/%3E%3Cstop offset='0.381' stop-color='%23BCA237'/%3E%3Cstop offset='0.381' stop-color='%23bc9e2b'/%3E%3Cstop offset='0.415' stop-color='%23BCA237'/%3E%3Cstop offset='0.415' stop-color='%23c0a42b'/%3E%3Cstop offset='0.428' stop-color='%23BCA237'/%3E%3Cstop offset='0.428' stop-color='%23c5af30'/%3E%3Cstop offset='0.442' stop-color='%23BCA237'/%3E%3Cstop offset='0.442' stop-color='%23bca033'/%3E%3Cstop offset='0.456' stop-color='%23BCA237'/%3E%3Cstop offset='0.456' stop-color='%23bda333'/%3E%3Cstop offset='0.498' stop-color='%23BCA237'/%3E%3Cstop offset='0.498' stop-color='%23b99a30'/%3E%3Cstop offset='0.511' stop-color='%23BCA237'/%3E%3Cstop offset='0.511' stop-color='%23c4ac32'/%3E%3Cstop offset='0.532' stop-color='%23BCA237'/%3E%3Cstop offset='0.532' stop-color='%23cbb72c'/%3E%3Cstop offset='0.541' stop-color='%23BCA237'/%3E%3Cstop offset='0.541' stop-color='%23b99a2b'/%3E%3Cstop offset='0.56' stop-color='%23BCA237'/%3E%3Cstop offset='0.56' stop-color='%23c7b02c'/%3E%3Cstop offset='0.581' stop-color='%23BCA237'/%3E%3Cstop offset='0.581' stop-color='%23ccb930'/%3E%3Cstop offset='0.6' stop-color='%23BCA237'/%3E%3Cstop offset='0.6' stop-color='%23c9b532'/%3E%3Cstop offset='0.618' stop-color='%23BCA237'/%3E%3Cstop offset='0.618' stop-color='%23bb9d2e'/%3E%3Cstop offset='0.656' stop-color='%23BCA237'/%3E%3Cstop offset='0.656' stop-color='%23bda335'/%3E%3Cstop offset='0.679' stop-color='%23BCA237'/%3E%3Cstop offset='0.679' stop-color='%23bca237'/%3E%3Cstop offset='0.689' stop-color='%23BCA237'/%3E%3Cstop offset='0.689' stop-color='%23bb9f31'/%3E%3Cstop offset='0.720' stop-color='%23BCA237'/%3E%3Cstop offset='0.720' stop-color='%23bda436'/%3E%3Cstop offset='0.734' stop-color='%23BCA237'/%3E%3Cstop offset='0.734' stop-color='%23c0a832'/%3E%3Cstop offset='0.748' stop-color='%23BCA237'/%3E%3Cstop offset='0.748' stop-color='%23ba9c2d'/%3E%3Cstop offset='0.764' stop-color='%23BCA237'/%3E%3Cstop offset='0.764' stop-color='%23bfa736'/%3E%3Cstop offset='0.788' stop-color='%23BCA237'/%3E%3Cstop offset='0.788' stop-color='%23bc9e2c'/%3E%3Cstop offset='0.808' stop-color='%23BCA237'/%3E%3Cstop offset='0.808' stop-color='%23c9b531'/%3E%3Cstop offset='0.831' stop-color='%23BCA237'/%3E%3Cstop offset='0.831' stop-color='%23bba036'/%3E%3Cstop offset='0.856' stop-color='%23BCA237'/%3E%3Cstop offset='0.856' stop-color='%23bda336'/%3E%3Cstop offset='0.872' stop-color='%23BCA237'/%3E%3Cstop offset='0.872' stop-color='%23cdba30'/%3E%3Cstop offset='0.894' stop-color='%23BCA237'/%3E%3Cstop offset='0.894' stop-color='%23c6b132'/%3E%3Cstop offset='0.914' stop-color='%23BCA237'/%3E%3Cstop offset='0.914' stop-color='%23bda335'/%3E%3Cstop offset='0.942' stop-color='%23BCA237'/%3E%3Cstop offset='0.942' stop-color='%23bca135'/%3E%3Cstop offset='0.957' stop-color='%23BCA237'/%3E%3Cstop offset='0.957' stop-color='%23c2aa33'/%3E%3Cstop offset='0.973' stop-color='%23BCA237'/%3E%3Cstop offset='0.973' stop-color='%23c0a835'/%3E%3Cstop offset='1' stop-color='%23BCA237'/%3E%3Cstop offset='1' stop-color='%23c6b02d'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect fill='url(%23a)' x='0' y='0' width='100%25' height='100%25'/%3E%3C/svg%3E");
    background-size: 500px;
    background-position: 50% 50%;
}

.p6-best-card.lollipop {
    background-color: #EE72EC;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='250' viewBox='0 0 1080 900'%3E%3Cg fill-opacity='0.07'%3E%3Cpolygon fill='%23444' points='90 150 0 300 180 300'/%3E%3Cpolygon points='90 150 180 0 0 0'/%3E%3Cpolygon fill='%23AAA' points='270 150 360 0 180 0'/%3E%3Cpolygon fill='%23DDD' points='450 150 360 300 540 300'/%3E%3Cpolygon fill='%23999' points='450 150 540 0 360 0'/%3E%3Cpolygon points='630 150 540 300 720 300'/%3E%3Cpolygon fill='%23DDD' points='630 150 720 0 540 0'/%3E%3Cpolygon fill='%23444' points='810 150 720 300 900 300'/%3E%3Cpolygon fill='%23FFF' points='810 150 900 0 720 0'/%3E%3Cpolygon fill='%23DDD' points='990 150 900 300 1080 300'/%3E%3Cpolygon fill='%23444' points='990 150 1080 0 900 0'/%3E%3Cpolygon fill='%23DDD' points='90 450 0 600 180 600'/%3E%3Cpolygon points='90 450 180 300 0 300'/%3E%3Cpolygon fill='%23666' points='270 450 180 600 360 600'/%3E%3Cpolygon fill='%23AAA' points='270 450 360 300 180 300'/%3E%3Cpolygon fill='%23DDD' points='450 450 360 600 540 600'/%3E%3Cpolygon fill='%23999' points='450 450 540 300 360 300'/%3E%3Cpolygon fill='%23999' points='630 450 540 600 720 600'/%3E%3Cpolygon fill='%23FFF' points='630 450 720 300 540 300'/%3E%3Cpolygon points='810 450 720 600 900 600'/%3E%3Cpolygon fill='%23DDD' points='810 450 900 300 720 300'/%3E%3Cpolygon fill='%23AAA' points='990 450 900 600 1080 600'/%3E%3Cpolygon fill='%23444' points='990 450 1080 300 900 300'/%3E%3Cpolygon fill='%23222' points='90 750 0 900 180 900'/%3E%3Cpolygon points='270 750 180 900 360 900'/%3E%3Cpolygon fill='%23DDD' points='270 750 360 600 180 600'/%3E%3Cpolygon points='450 750 540 600 360 600'/%3E%3Cpolygon points='630 750 540 900 720 900'/%3E%3Cpolygon fill='%23444' points='630 750 720 600 540 600'/%3E%3Cpolygon fill='%23AAA' points='810 750 720 900 900 900'/%3E%3Cpolygon fill='%23666' points='810 750 900 600 720 600'/%3E%3Cpolygon fill='%23999' points='990 750 900 900 1080 900'/%3E%3Cpolygon fill='%23999' points='180 0 90 150 270 150'/%3E%3Cpolygon fill='%23444' points='360 0 270 150 450 150'/%3E%3Cpolygon fill='%23FFF' points='540 0 450 150 630 150'/%3E%3Cpolygon points='900 0 810 150 990 150'/%3E%3Cpolygon fill='%23222' points='0 300 -90 450 90 450'/%3E%3Cpolygon fill='%23FFF' points='0 300 90 150 -90 150'/%3E%3Cpolygon fill='%23FFF' points='180 300 90 450 270 450'/%3E%3Cpolygon fill='%23666' points='180 300 270 150 90 150'/%3E%3Cpolygon fill='%23222' points='360 300 270 450 450 450'/%3E%3Cpolygon fill='%23FFF' points='360 300 450 150 270 150'/%3E%3Cpolygon fill='%23444' points='540 300 450 450 630 450'/%3E%3Cpolygon fill='%23222' points='540 300 630 150 450 150'/%3E%3Cpolygon fill='%23AAA' points='720 300 630 450 810 450'/%3E%3Cpolygon fill='%23666' points='720 300 810 150 630 150'/%3E%3Cpolygon fill='%23FFF' points='900 300 810 450 990 450'/%3E%3Cpolygon fill='%23999' points='900 300 990 150 810 150'/%3E%3Cpolygon points='0 600 -90 750 90 750'/%3E%3Cpolygon fill='%23666' points='0 600 90 450 -90 450'/%3E%3Cpolygon fill='%23AAA' points='180 600 90 750 270 750'/%3E%3Cpolygon fill='%23444' points='180 600 270 450 90 450'/%3E%3Cpolygon fill='%23444' points='360 600 270 750 450 750'/%3E%3Cpolygon fill='%23999' points='360 600 450 450 270 450'/%3E%3Cpolygon fill='%23666' points='540 600 630 450 450 450'/%3E%3Cpolygon fill='%23222' points='720 600 630 750 810 750'/%3E%3Cpolygon fill='%23FFF' points='900 600 810 750 990 750'/%3E%3Cpolygon fill='%23222' points='900 600 990 450 810 450'/%3E%3Cpolygon fill='%23DDD' points='0 900 90 750 -90 750'/%3E%3Cpolygon fill='%23444' points='180 900 270 750 90 750'/%3E%3Cpolygon fill='%23FFF' points='360 900 450 750 270 750'/%3E%3Cpolygon fill='%23AAA' points='540 900 630 750 450 750'/%3E%3Cpolygon fill='%23FFF' points='720 900 810 750 630 750'/%3E%3Cpolygon fill='%23222' points='900 900 990 750 810 750'/%3E%3Cpolygon fill='%23222' points='1080 300 990 450 1170 450'/%3E%3Cpolygon fill='%23FFF' points='1080 300 1170 150 990 150'/%3E%3Cpolygon points='1080 600 990 750 1170 750'/%3E%3Cpolygon fill='%23666' points='1080 600 1170 450 990 450'/%3E%3Cpolygon fill='%23DDD' points='1080 900 1170 750 990 750'/%3E%3C/g%3E%3C/svg%3E");
}

.p6-best-card.default {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.p6-best-icon {
    width: 90px;
    height: 90px;
    border-radius: 0;
    corner-shape: var(--p6-corner-shape);
    object-fit: contain;
    background: transparent;
    border: none;
    box-shadow: none;
    flex-shrink: 0;
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.4));
    margin: -30px -10px -30px -15px;
    position: relative;
    z-index: 2;
}

.p6-best-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* Game-specific fonts - EXACT match from frontpage */
.p6-best-card.wordblast .p6-best-game {
    font-family: 'Bungee', cursive;
    font-size: 1rem;
    color: #fff;
    text-shadow: 0 2px 0 #000000, 0 4px 0 #645817, 0 6px 10px rgba(0, 0, 0, 0.5);
}

.p6-best-card.blockchamp .p6-best-game {
    font-family: 'Press Start 2P', cursive;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #6d3c1b;
    text-shadow: 0px 0px 1px #fff, 0px 0px 1px #fff, 0px 0px 1px #fff, 0px 0px 2px #fff, 0px 0px 2px #fff, 0px 0px 3px #fff;
}

.p6-best-card.lollipop .p6-best-game {
    font-family: 'Bangers', cursive;
    font-size: 1.3rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #ffdb7e;
    text-shadow: 2px 3px 2px #000000, 2px 3px 2px #000000, 0px 0px 2px #000000;
    letter-spacing: 2px;
}

.p6-best-card.default .p6-best-game {
    font-family: 'Bungee', cursive;
    font-size: 1rem;
    color: #fff;
    text-shadow: 0 2px 0 #000000, 0 4px 0 #645817, 0 6px 10px rgba(0, 0, 0, 0.5);
}

.p6-best-score {
    font-family: 'Bungee', cursive;
    font-size: 1.6rem;
    color: var(--p6-white);
    text-shadow: 0 3px 8px rgba(0, 0, 0, 0.4);
    line-height: 1.1;
}

.p6-best-rank {
    position: absolute;
    top: 12px;
    right: 12px;
    font-family: 'Bungee', cursive;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    background: rgba(0, 0, 0, 0.2);
    padding: 4px 10px;
    border-radius: 20px;
    corner-shape: var(--p6-corner-shape);
}

/* ========================================
   GALLERY SECTION
   ======================================== */

.p6-gallery-section {
    animation: p6SlideUp 0.5s var(--p6-elastic) 0.4s both;
}

.p6-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

/* Title with badge */
.p6-title-with-badge {
    position: relative;
    overflow: visible;
}

.p6-title-badge {
    position: absolute;
    top: -10px;
    right: -47px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
    background: #db2777;
    text-shadow: none;
    padding: 1px 10px;
    border-radius: 10px;
    corner-shape: var(--p6-corner-shape);
    box-shadow: 0 2px 8px rgba(219, 39, 119, 0.5);
    min-width: 20px;
    text-align: center;
    z-index: 10;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.p6-empty-gallery {
    padding: 40px 20px;
    text-align: center;
    background: rgba(255, 255, 255, 0.88);
    border-radius: var(--p6-radius);
    corner-shape: var(--p6-corner-shape);
}

.p6-empty-gallery i {
    font-size: 3rem;
    color: #64748b;
    opacity: 0.5;
    margin-bottom: 12px;
}

.p6-empty-gallery p {
    font-family: 'Poppins', sans-serif;
    color: #475569;
    font-weight: 500;
    margin: 0;
}

/* Prominent Add Media Card */
.p6-add-media-card {
    break-inside: avoid;
    margin-bottom: 12px;
    border-radius: var(--p6-radius-sm);
    corner-shape: var(--p6-corner-shape);
    overflow: hidden;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.88));
    border: 3px dashed #ec4899;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color 0.4s linear, transform 0.4s var(--p6-elastic);
    padding: 24px;
    text-align: center;
}

.p6-add-media-card:hover {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.15), rgba(139, 92, 246, 0.15));
    border-color: #db2777;
    transform: scale(1.03);
}

.p6-add-media-card i {
    font-size: 2.5rem;
    color: #db2777;
    margin-bottom: 12px;
    transition: transform 0.3s var(--p6-elastic);
}

.p6-add-media-card:hover i {
    transform: scale(1.2);
}

.p6-add-media-card span {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: #be185d;
}

.p6-add-media-card small {
    font-family: 'Poppins', sans-serif;
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 500;
    margin-top: 4px;
}

.p6-add-media-card input[type="file"] {
    display: none;
}

/* Add Media - Default State */
.p6-add-default {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Add Media - Preview State */
.p6-add-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.p6-add-preview-img,
.p6-add-preview-video {
    max-width: 100%;
    max-height: 120px;
    border-radius: 8px;
    corner-shape: var(--p6-corner-shape);
    object-fit: cover;
}

.p6-add-caption-input {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    corner-shape: var(--p6-corner-shape);
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    background: var(--p6-white);
    transition: border-color 0.2s ease;
}

.p6-add-caption-input:focus {
    outline: none;
    border-color: var(--p6-pink);
}

.p6-add-actions {
    display: flex;
    gap: 8px;
    width: 100%;
}

.p6-add-actions button {
    flex: 1;
}

/* Masonry Grid */
.p6-masonry {
    column-count: 3;
    column-gap: 12px;
}

@media (max-width: 600px) {
    .p6-masonry { column-count: 2; }
}

@media (max-width: 380px) {
    .p6-masonry { column-count: 1; }
}

.p6-masonry-item {
    break-inside: avoid;
    margin-bottom: 12px;
    border-radius: var(--p6-radius);
    corner-shape: var(--p6-corner-shape);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    background: #f0f0f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s var(--p6-elastic), box-shadow 0.4s var(--p6-elastic);
}

.p6-masonry-item:hover {
    transform: scale(1.03);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.p6-masonry-item img,
.p6-masonry-item video {
    width: 100%;
    display: block;
    transition: transform 0.4s ease;
}

.p6-masonry-item:hover img,
.p6-masonry-item:hover video {
    transform: scale(1.05);
}

.p6-play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.25);
}

.p6-masonry-item:hover .p6-play-overlay {
    background: rgba(0, 0, 0, 0.4);
}

.p6-play-overlay i {
    width: 50px;
    height: 50px;
    background: var(--p6-white);
    border-radius: 50%;
    corner-shape: var(--p6-corner-shape-round);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--p6-pink);
    font-size: 1.2rem;
    padding-left: 4px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s var(--p6-elastic);
}

.p6-masonry-item:hover .p6-play-overlay i {
    transform: scale(1.1);
}

.p6-item-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 12px 12px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: var(--p6-white);
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.p6-masonry-item:hover .p6-item-caption {
    opacity: 1;
    transform: translateY(0);
}

.p6-item-delete {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    background: rgba(239, 68, 68, 0.9);
    border: none;
    border-radius: 50%;
    corner-shape: var(--p6-corner-shape-round);
    color: var(--p6-white);
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s var(--p6-elastic);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}

/* Inline caption edit for newly uploaded items */
.p6-caption-edit {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
}

.p6-caption-edit input {
    width: 100%;
    padding: 8px 12px;
    border: none;
    border-radius: 8px;
    corner-shape: var(--p6-corner-shape);
    background: rgba(255, 255, 255, 0.95);
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    color: var(--p6-dark);
    box-sizing: border-box;
}

.p6-caption-edit input:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--p6-pink);
}

.p6-caption-edit input::placeholder {
    color: #9ca3af;
}

.p6-new-item {
    animation: p6NewItemPulse 2s ease-in-out;
}

@keyframes p6NewItemPulse {
    0%, 100% { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); }
    50% { box-shadow: 0 4px 24px rgba(236, 72, 153, 0.5); }
}

.p6-masonry-item:hover .p6-item-delete {
    opacity: 1;
}

.p6-item-delete:hover {
    background: #dc2626;
    transform: scale(1.15);
}

.p6-item-animate {
    animation: p6ItemPop 0.5s var(--p6-elastic) both;
}

@keyframes p6ItemPop {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

/* Load More */
.p6-load-more-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 24px;
}

.p6-btn-load-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--p6-dark);
    border: none;
    border-radius: 50px;
    corner-shape: var(--p6-corner-shape);
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--p6-shadow);
    transition: color 0.3s linear, transform 0.3s var(--p6-elastic), box-shadow 0.3s var(--p6-elastic);
}

.p6-btn-load-more:hover {
    background: var(--p6-pink);
    color: var(--p6-white);
    box-shadow: 0 8px 25px var(--p6-pink-glow);
}

.p6-btn-load-more:disabled {
    opacity: 0.7;
    cursor: wait;
}

/* ========================================
   ACTIVITY SECTION
   ======================================== */

.p6-activity-section {
    animation: p6SlideUp 0.5s var(--p6-elastic) 0.5s both;
}

.p6-activity-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: rgba(255, 255, 255, 0.9);
    border-radius: var(--p6-radius);
    corner-shape: var(--p6-corner-shape);
    padding: 4px 12px;
}

.p6-activity-empty {
    text-align: center;
    padding: 24px 16px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    color: var(--p6-text-light);
}

.p6-activity-load-more {
    text-align: center;
    padding: 8px 0;
}

/* Day group header */
.p6-act-day-header {
    font-family: 'Poppins', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--p6-text-light);
    background: #0000000a;
    text-transform: uppercase;
    padding: 3px 16px 3px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    border-top: 1px solid rgba(255, 255, 255, 1);
    border-radius: 7px;
}

.p6-act-day-header:first-child {
    padding-top: 4px;
}

/* Compact activity item */
.p6-act-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}
.p6-act-item:has(+ .p6-act-day-header) {
    border-bottom: none;
}

.p6-act-item:last-child {
    border-bottom: none;
}

.p6-act-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.p6-act-icon-img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.p6-act-icon-fa {
    font-size: 18px;
    color: var(--p6-text-mid);
}

.p6-act-text {
    flex: 1;
    font-family: 'Poppins', sans-serif;
    font-size: 0.8rem;
    color: var(--p6-text-mid);
    line-height: 1.3;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.p6-act-text strong {
    font-weight: 600;
    color: var(--p6-text-mid);
}

.p6-act-text a {
    text-decoration: none;
    color: inherit;
}

.p6-act-clickable {
    cursor: pointer;
}

.p6-act-clickable:hover {
    background: rgba(0, 0, 0, 0.03);
    border-radius: 6px;
    corner-shape: var(--p6-corner-shape);
}

.p6-act-play-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    corner-shape: var(--p6-corner-shape-round);
    background: linear-gradient(135deg, #e91e63, #ff6090);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 11px;
}

.p6-act-play-btn .fa-play {
    margin-left: 2px;
}

.p6-act-thumb {
    width: 28px;
    height: 28px;
    border-radius: 4px;
    corner-shape: var(--p6-corner-shape);
    object-fit: cover;
}

.p6-act-detail {
    color: var(--p6-text-light);
    font-size: 0.75rem;
}

.p6-act-pb {
    color: #e91e63;
    font-weight: 600;
}

.p6-act-pb-badge {
    display: inline-block;
    background: linear-gradient(135deg, #e91e63, #f06292);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 20px;
    margin-left: 4px;
    vertical-align: middle;
    white-space: nowrap;
}

.p6-act-time {
    flex-shrink: 0;
    font-family: 'Poppins', sans-serif;
    font-size: 0.7rem;
    color: var(--p6-text-light);
    white-space: nowrap;
}

/* ========================================
   SIMILAR PLAYERS
   ======================================== */

.p6-similar-section {
    animation: p6SlideUp 0.5s var(--p6-elastic) 0.6s both;
}

.p6-carousel-wrapper {
    background: rgba(255, 255, 255, 0.88);
    border-radius: var(--p6-radius);
    corner-shape: var(--p6-corner-shape);
    padding: 16px;
    overflow: hidden;
}

.p6-similar-carousel {
    display: flex;
    gap: 12px;
    transition: transform 0.5s ease;
}

/* Swipeable carousel mode */
.p6-similar-carousel.swipeable {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
    padding-bottom: 4px;
}

.p6-similar-carousel.swipeable::-webkit-scrollbar {
    display: none;
}

.p6-similar-carousel.swipeable.dragging {
    cursor: grabbing;
    scroll-behavior: auto;
    scroll-snap-type: none;
}

.p6-similar-carousel.swipeable .p6-similar-card {
    scroll-snap-align: start;
    flex-shrink: 0;
}

.p6-similar-carousel.centered {
    justify-content: center;
}

.p6-similar-carousel.centered.swipeable {
    overflow-x: hidden;
}

.p6-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

.p6-carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    corner-shape: var(--p6-corner-shape-round);
    background: rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.p6-carousel-dot:hover {
    background: rgba(0, 0, 0, 0.4);
}

.p6-carousel-dot.active {
    background: var(--p6-pink);
    transform: scale(1.3);
}

.p6-similar-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
    padding: 12px;
    transition: transform 0.4s var(--p6-elastic);
    width: 100px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: var(--p6-radius-sm);
    corner-shape: var(--p6-corner-shape);
}

.p6-similar-card:hover {
    transform: translateY(-4px) scale(1.05);
    background: rgba(255, 255, 255, 0.8);
}

.p6-similar-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    corner-shape: var(--p6-corner-shape-round);
    padding: 3px;
    background: linear-gradient(135deg, #9ca3af, #d1d5db, #9ca3af);
    margin-bottom: 10px;
}

/* Gender-based border colors for similar players */
.p6-similar-avatar.gender-male {
    background: linear-gradient(135deg, #3b82f6, #60a5fa, #93c5fd);
}

.p6-similar-avatar.gender-female {
    background: linear-gradient(135deg, var(--p6-pink), #ff9de0, #fdb4e2);
}

.p6-similar-avatar.gender-other {
    background: linear-gradient(135deg, #9ca3af, #d1d5db, #9ca3af);
}

.p6-similar-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    corner-shape: var(--p6-corner-shape-round);
    object-fit: cover;
    border: 2px solid var(--p6-white);
}

.p6-similar-name {
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: #1a202c;
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.p6-similar-karma {
    font-family: 'Poppins', sans-serif;
    font-size: 0.7rem;
    color: #be185d;
    font-weight: 600;
    margin-top: 4px;
}

/* ========================================
   LIGHTBOX
   ======================================== */

.p6-lightbox {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
}

.p6-lightbox.open {
    display: flex;
    animation: p6FadeIn 0.3s ease;
}

.p6-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
}

.p6-lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1;
}

#p6LightboxMedia img,
#p6LightboxMedia video {
    max-width: 90vw;
    max-height: 80vh;
    border-radius: var(--p6-radius-sm);
    corner-shape: var(--p6-corner-shape);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: p6ScaleIn 0.4s var(--p6-elastic);
}

.p6-lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: none;
    border: none;
    color: var(--p6-white);
    font-size: 1.8rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.p6-lightbox-close:hover {
    opacity: 1;
    transform: scale(1.1);
}

.p6-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    corner-shape: var(--p6-corner-shape-round);
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: var(--p6-white);
    font-size: 1.1rem;
    cursor: pointer;
    transition: transform 0.3s var(--p6-elastic);
    display: flex;
    align-items: center;
    justify-content: center;
}

.p6-lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.p6-lightbox-prev { left: -70px; }
.p6-lightbox-next { right: -70px; }

@media (max-width: 800px) {
    .p6-lightbox-prev { left: 10px; }
    .p6-lightbox-next { right: 10px; }
}

.p6-lightbox-info {
    margin-top: 16px;
    text-align: center;
}

#p6LightboxCaption {
    color: var(--p6-white);
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
}

#p6LightboxCounter {
    color: rgba(255, 255, 255, 0.5);
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    margin-top: 8px;
}

/* ========================================
   MODAL
   ======================================== */

.p6-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
}

.p6-modal-overlay.open {
    display: flex;
    animation: p6FadeIn 0.3s ease;
}

.p6-modal {
    background: var(--p6-white);
    border-radius: var(--p6-radius);
    corner-shape: var(--p6-corner-shape);
    padding: 32px;
    width: 90%;
    max-width: 420px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    animation: p6ScaleIn 0.4s var(--p6-elastic);
    position: relative;
}

.p6-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    corner-shape: var(--p6-corner-shape-round);
    background: #f3f4f6;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--p6-text-light);
    transition: color 0.2s ease;
}

.p6-modal-close:hover {
    background: #e5e7eb;
    color: var(--p6-dark);
}

.p6-modal h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--p6-dark);
    margin: 0 0 4px;
}

.p6-modal-subtitle {
    font-family: 'Poppins', sans-serif;
    color: var(--p6-text-light);
    margin: 0 0 20px;
}

.p6-modal textarea {
    width: 100%;
    padding: 14px;
    border: 2px solid rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    corner-shape: var(--p6-corner-shape);
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    resize: vertical;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.p6-modal textarea:focus {
    outline: none;
    border-color: var(--p6-pink);
    box-shadow: 0 0 0 3px var(--p6-pink-glow);
}

.p6-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 20px;
}

/* Upload Modal */
.p6-upload-modal {
    max-width: 480px;
}

.p6-upload-modal h3 {
    display: flex;
    align-items: center;
    gap: 10px;
}

.p6-upload-modal h3 i {
    color: var(--p6-pink);
}

.p6-upload-modal .p6-upload-preview {
    margin-bottom: 16px;
}

.p6-upload-modal .p6-upload-preview img,
.p6-upload-modal .p6-upload-preview video {
    width: 100%;
    max-height: 220px;
    object-fit: contain;
    border-radius: var(--p6-radius-sm);
    corner-shape: var(--p6-corner-shape);
}

.p6-upload-modal .p6-form-group label {
    display: flex;
    align-items: center;
    gap: 6px;
}

.p6-upload-modal .p6-form-group label i {
    color: var(--p6-pink);
}

.p6-upload-modal textarea {
    resize: vertical;
    min-height: 60px;
}

/* ========================================
   KARMA VOTE MODAL
   ======================================== */

.p6-karma-modal {
    text-align: center;
    max-width: 420px;
}

.p6-karma-modal h3 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.p6-karma-modal-icon {
    width: 28px;
    height: 28px;
    vertical-align: middle;
}

.p6-karma-score-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 20px 0;
}

.p6-karma-score-display #p6KarmaScoreValue {
    font-family: 'Bungee', cursive;
    font-size: 3rem;
    background: linear-gradient(135deg, var(--p6-pink), var(--p6-pink-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.p6-karma-score-label {
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    color: var(--p6-text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}

.p6-karma-vote-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin: 20px 0;
}

.p6-karma-vote-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 32px;
    border-radius: var(--p6-radius-sm);
    corner-shape: var(--p6-corner-shape);
    border: 2px solid transparent;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.3s linear, border-color 0.3s linear, box-shadow 0.3s var(--p6-elastic), transform 0.3s var(--p6-elastic);
    flex: 1;
}

.p6-karma-vote-btn i {
    font-size: 1.8rem;
}

.p6-karma-up {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border-color: rgba(16, 185, 129, 0.2);
}

.p6-karma-up:hover,
.p6-karma-up.active {
    background: #10b981;
    color: var(--p6-white);
    border-color: #10b981;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.p6-karma-down {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.2);
}

.p6-karma-down:hover,
.p6-karma-down.active {
    background: #ef4444;
    color: var(--p6-white);
    border-color: #ef4444;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

.p6-icon-broken-heart {
    width: 1em;
    height: 1em;
    vertical-align: middle;
}

.p6-karma-vote-btn .p6-icon-broken-heart {
    width: 1.8rem;
    height: 1.8rem;
}

.p6-karma-badge.p6-clickable {
    cursor: pointer;
    transition: transform 0.3s var(--p6-elastic), box-shadow 0.3s ease;
}

.p6-karma-badge.p6-clickable:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 18px var(--p6-pink-glow);
}

.p6-karma-block-options {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    text-align: left;
    animation: p6FadeIn 0.3s ease;
}

.p6-karma-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    color: var(--p6-text);
}

.p6-karma-toggle input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 44px;
    min-width: 44px;
    height: 24px;
    background: #e5e7eb;
    border-radius: 12px;
    corner-shape: var(--p6-corner-shape);
    position: relative;
    cursor: pointer;
}

.p6-karma-toggle input[type="checkbox"]::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--p6-white);
    border-radius: 50%;
    corner-shape: var(--p6-corner-shape-round);
    top: 2px;
    left: 2px;
    transition: transform 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.p6-karma-toggle input[type="checkbox"]:checked {
    background: #ef4444;
}

.p6-karma-toggle input[type="checkbox"]:checked::after {
    transform: translateX(20px);
}

.p6-karma-toggle-label {
    flex: 1;
    line-height: 1.3;
}

.p6-karma-block-options .p6-btn-primary {
    margin-top: 12px;
}

.p6-karma-remove {
    margin-top: 12px;
    display: flex;
    justify-content: center;
}

/* ========================================
   OWN KARMA INFO MODAL
   ======================================== */

.p6-own-karma-modal {
    text-align: center;
    max-width: 420px;
}

.p6-own-karma-modal h3 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.p6-own-karma-modal .p6-own-karma-score-value {
    font-family: 'Bungee', cursive;
    font-size: 3rem;
    background: linear-gradient(135deg, var(--p6-pink), var(--p6-pink-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.p6-karma-explanation {
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    color: var(--p6-text-light);
    line-height: 1.5;
    margin: 16px 0;
    padding: 0 8px;
}

.p6-karma-stats-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.03);
    border-radius: var(--p6-radius-sm);
    corner-shape: var(--p6-corner-shape);
    margin: 16px 0;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
}

.p6-karma-stats-votes {
    color: var(--p6-text);
    font-weight: 600;
}

.p6-karma-trend {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
}

.p6-trend-up {
    color: #10b981;
}

.p6-trend-down {
    color: #ef4444;
}

.p6-trend-neutral {
    color: #9ca3af;
}

.p6-karma-tier-section {
    margin: 20px 0 16px;
}

.p6-karma-tier-labels {
    display: flex;
    justify-content: space-between;
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.p6-karma-tier-bar {
    width: 100%;
    height: 10px;
    background: rgba(0, 0, 0, 0.08);
    border-radius: 5px;
    corner-shape: var(--p6-corner-shape);
    overflow: hidden;
}

.p6-karma-tier-fill {
    height: 100%;
    border-radius: 5px;
    corner-shape: var(--p6-corner-shape);
    transition: width 0.6s var(--p6-elastic);
}

.p6-karma-tip {
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    color: var(--p6-text-light);
    margin-top: 16px;
    padding: 12px 16px;
    background: rgba(245, 158, 11, 0.08);
    border-radius: var(--p6-radius-sm);
    corner-shape: var(--p6-corner-shape);
    line-height: 1.4;
}

.p6-karma-tip i {
    color: var(--p6-gold);
    margin-right: 6px;
}

/* ========================================
   TOAST
   ======================================== */

.p6-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    padding: 14px 28px;
    border-radius: 50px;
    corner-shape: var(--p6-corner-shape);
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: opacity 0.4s var(--p6-elastic), transform 0.4s var(--p6-elastic);
    pointer-events: none;
    z-index: 4000;
    background: linear-gradient(135deg, #10b981, #34d399);
    color: var(--p6-white);
}

.p6-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.p6-toast.error {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

/* ========================================
   FLOATING ACTION BUTTON
   ======================================== */

.p6-fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-end;
}

.p6-fab-main {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    corner-shape: var(--p6-corner-shape-round);
    background: linear-gradient(135deg, var(--p6-pink), var(--p6-pink-light));
    border: none;
    color: var(--p6-white);
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 8px 32px var(--p6-pink-glow);
    transition: transform 0.4s var(--p6-elastic), box-shadow 0.4s var(--p6-elastic);
    display: flex;
    align-items: center;
    justify-content: center;
}

.p6-fab-main:hover {
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 12px 40px var(--p6-pink-glow);
}

.p6-fab-main.active {
    background: linear-gradient(135deg, #6b7280, #4b5563);
    transform: rotate(45deg);
}

.p6-fab-menu {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: opacity 0.3s var(--p6-elastic), transform 0.3s var(--p6-elastic);
}

.p6-fab.open .p6-fab-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.p6-fab-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    background: var(--p6-white);
    border-radius: 30px;
    corner-shape: var(--p6-corner-shape);
    border: none;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--p6-dark);
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s var(--p6-elastic), box-shadow 0.3s var(--p6-elastic);
    white-space: nowrap;
}

.p6-fab-item:hover {
    transform: translateX(-6px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.p6-fab-item i {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    corner-shape: var(--p6-corner-shape-round);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}

.p6-fab-item.edit-profile i {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
}

.p6-fab-item.add-media i {
    background: linear-gradient(135deg, var(--p6-pink), var(--p6-pink-light));
    color: white;
}

.p6-fab-item.change-photo i {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    color: white;
}

/* ========================================
   ANIMATIONS
   ======================================== */

@keyframes p6SlideDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes p6SlideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes p6PopIn {
    from { opacity: 0; transform: scale(0.5); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes p6ScaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes p6FadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 600px) {
    .p6-hero {
        padding: 30px 0px 24px 0px;
    }

    .p6-avatar-wrapper {
        width: 200px;
        height: 200px;
    }

    .p6-avatar-ring {
        width: 200px;
        height: 200px;
    }

    .p6-level-badge {
        top: 0;
        right: 0;
    }

    .p6-avatar-edit {
        bottom: 5px;
        right: -20px;
    }

    .p6-karma-badge {
        bottom: -16px;
        left: -26px;
    }

    .p6-username {
        font-size: 1.6rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .p6-stats-row {
        flex-wrap: wrap;
        gap: 10px;
        padding: 14px;
    }

    .p6-stat-divider {
        display: none;
    }

    .p6-stat-item {
        min-width: 65px;
        padding: 8px 12px;
    }

    .p6-stat-number {
        font-size: 1.3rem;
    }

    .p6-actions {
        width: 100%;
    }

    .p6-btn-follow,
    .p6-btn-message {
        flex: 1;
        justify-content: center;
    }

    .p6-form-row {
        grid-template-columns: 1fr;
    }

    .p6-highlights {
        grid-template-columns: 1fr;
    }

    .p6-bests-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   ACTIVITY GRAPH (GitHub-style Heatmap)
   ======================================== */

.p6-activity-graph-section {
    /* No padding - matches other sections */
}

.p6-activity-graph-wrapper {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--p6-glass-border);
    border-radius: var(--p6-radius);
    corner-shape: var(--p6-corner-shape);
    padding: 16px;
    position: relative;
    overflow: hidden; /* Prevent scrollbar on cell hover */
}

.p6-activity-content {
    display: flex;
    flex-direction: column;
}

.p6-activity-graph-col {
    flex: 1;
    min-width: 0;
}

.p6-activity-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.p6-activity-stats .p6-stat-card {
    background: rgba(0, 0, 0, 0.04);
    border-radius: var(--p6-radius-sm);
    corner-shape: var(--p6-corner-shape);
    padding: 10px 12px;
    text-align: center;
    flex: 1 1 0;
    min-width: 0;
}

.p6-activity-stats .p6-stat-icon {
    font-size: 16px;
    color: #6b7280;
    margin-bottom: 4px;
}

.p6-activity-stats .p6-stat-value {
    font-size: 17px;
    font-weight: 700;
    color: #374151;
    line-height: 1.2;
}

.p6-activity-stats .p6-stat-sub {
    font-size: 10px;
    color: #9ca3af;
    margin-top: 2px;
}

.p6-activity-stats .p6-stat-label {
    font-size: 10px;
    color: #9ca3af;
    text-transform: uppercase;
    margin-top: 4px;
    letter-spacing: 0.3px;
}

.p6-activity-graph {
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: relative;
    width: 100%;
}

.p6-graph-header {
    display: flex;
    align-items: flex-end;
    margin-bottom: 4px;
}

.p6-graph-day-spacer {
    width: 30px;
    flex-shrink: 0;
}

.p6-graph-months {
    display: flex;
    position: relative;
    height: 16px;
}

.p6-month-label {
    position: absolute;
    font-size: 11px;
    font-weight: 500;
    color: var(--p6-text-light);
    text-transform: uppercase;
}

.p6-graph-body {
    display: flex;
    gap: 4px;
}

.p6-graph-days {
    display: flex;
    flex-direction: column;
    width: 26px;
    flex-shrink: 0;
    gap: 2px;
}

.p6-day-label {
    font-size: 10px;
    font-weight: 500;
    color: var(--p6-text-light);
    height: 14px;
    line-height: 14px;
    text-transform: uppercase;
}

.p6-graph-weeks {
    display: flex;
    gap: 2px;
}

.p6-graph-week {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.p6-graph-cell {
    width: 14px;
    height: 14px;
    border-radius: 3px;
    corner-shape: var(--p6-corner-shape);
    background: rgba(0, 0, 0, 0.03);
    transition: transform 0.1s ease;
    cursor: pointer;
    --cell-color: var(--p6-pink);
}

/* Zebra stripe: Only darken EMPTY cells in alternate months */
.p6-graph-cell.p6-month-even[data-level="0"] {
    background: rgba(0, 0, 0, 0.08);
}

/* Data levels - Specificity ensures these override default background */
.p6-graph-cell[data-level="1"] { background: color-mix(in srgb, var(--cell-color) 25%, #ebedf0); }
.p6-graph-cell[data-level="2"] { background: color-mix(in srgb, var(--cell-color) 50%, #ebedf0); }
.p6-graph-cell[data-level="3"] { background: color-mix(in srgb, var(--cell-color) 75%, #ebedf0); }
.p6-graph-cell[data-level="4"] { background: var(--cell-color); }

.p6-graph-cell.future {
    background: transparent;
    cursor: default;
}

.p6-graph-cell:not(.future):hover {
    transform: scale(1.2);
    outline: 2px solid var(--p6-pink);
    outline-offset: 1px;
}

.p6-graph-cell[data-level="0"] {
    background: rgba(0, 0, 0, 0.03);
}

.p6-graph-cell[data-level="1"] {
    background: color-mix(in srgb, var(--cell-color) 25%, #ebedf0);
}

.p6-graph-cell[data-level="2"] {
    background: color-mix(in srgb, var(--cell-color) 50%, #ebedf0);
}

.p6-graph-cell[data-level="3"] {
    background: color-mix(in srgb, var(--cell-color) 75%, #ebedf0);
}

.p6-graph-cell[data-level="4"] {
    background: var(--cell-color);
}

/* Game Color Legend */
.p6-activity-game-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    justify-content: center;
}

.p6-game-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--p6-text-light);
}

.p6-game-color {
    width: 12px;
    height: 12px;
    border-radius: 2px;
    corner-shape: var(--p6-corner-shape);
}

/* Tooltip */
.p6-activity-tooltip {
    position: absolute;
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
    padding: 10px 14px;
    border-radius: 8px;
    corner-shape: var(--p6-corner-shape);
    font-size: 13px;
    line-height: 1.6;
    pointer-events: none;
    opacity: 0;
    transform: translateX(-50%) translateY(-100%);
    transition: opacity 0.15s ease;
    white-space: nowrap;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.p6-activity-tooltip.visible {
    opacity: 1;
}

.p6-activity-tooltip::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid rgba(0, 0, 0, 0.9);
}

/* Desktop: side-by-side graph + stats */
@media (min-width: 800px) {
    .p6-activity-content {
        flex-direction: row;
        gap: 20px;
        align-items: stretch;
    }

    .p6-activity-stats {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        width: 220px;
        flex-shrink: 0;
        align-content: stretch;
        margin-top: 0;
        padding-top: 0;
        border-top: none;
    }

    .p6-activity-stats .p6-stat-card {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}

/* Mobile adjustments for activity graph */
@media (max-width: 600px) {
    .p6-activity-graph-wrapper {
        padding: 12px;
    }

    .p6-month-label {
        font-size: 10px;
    }

    .p6-activity-game-legend {
        justify-content: center;
        gap: 12px;
    }

    .p6-game-legend-item {
        font-size: 11px;
    }

    .p6-activity-stats .p6-stat-card {
        padding: 8px 6px;
    }

    .p6-activity-stats .p6-stat-value {
        font-size: 14px;
    }

    .p6-activity-stats .p6-stat-label {
        font-size: 9px;
    }
}

/* ========================================
   MESSAGES SECTION
   ======================================== */

.p6-messages-section {
    display: flex;
    flex-direction: column;
    animation: p6SlideUp 0.5s var(--p6-elastic) 0.25s both;
    margin-bottom: 20px;
}

.p6-messages-section .p6-messages-list {
    width: 100%;
}

.p6-messages-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    background: var(--p6-pink);
    color: var(--p6-white);
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 50px;
    corner-shape: var(--p6-corner-shape);
    animation: p6MsgPulse 2s ease-in-out infinite;
}

@keyframes p6MsgPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}


.p6-messages-tabs {
    display: inline-flex;
    position: relative;
    align-self: center;
    background: #e8e8e8;
    border-radius: 30px;
    corner-shape: var(--p6-corner-shape);
    padding: 4px;
    margin-bottom: 12px;
}

.p6-messages-tab-slider {
    position: absolute;
    top: 4px;
    height: calc(100% - 8px);
    background: linear-gradient(135deg, #cb1da1, #e84cbe);
    border-radius: 26px;
    corner-shape: var(--p6-corner-shape);
    box-shadow: 0 2px 8px rgba(203, 29, 161, 0.3);
    transition: left 0.4s linear(0, 0.007, 0.029 2.2%, 0.118 4.7%, 0.625 14.4%, 0.826 19%, 0.902, 0.962, 1.008 26.1%, 1.041 28.7%, 1.064 32.1%, 1.07 36%, 1.061 40.5%, 1.015 53.4%, 0.999 61.6%, 0.995 71.2%, 1),
                width 0.4s linear(0, 0.007, 0.029 2.2%, 0.118 4.7%, 0.625 14.4%, 0.826 19%, 0.902, 0.962, 1.008 26.1%, 1.041 28.7%, 1.064 32.1%, 1.07 36%, 1.061 40.5%, 1.015 53.4%, 0.999 61.6%, 0.995 71.2%, 1);
    pointer-events: none;
    z-index: 0;
}

.p6-messages-tab {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 30px;
    background: transparent;
    border: none;
    border-radius: 26px;
    corner-shape: var(--p6-corner-shape);
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: color 0.25s ease;
}

.p6-messages-tab.active {
    color: #fff;
}

.p6-messages-tabs:hover .p6-messages-tab.active {
    color: #000;
}

.p6-messages-tabs:hover .p6-messages-tab.hovered {
    color: #fff;
}

.p6-messages-list {
    background: rgba(255, 255, 255, 0.88);
    border-radius: var(--p6-radius);
    corner-shape: var(--p6-corner-shape);
    overflow-x: clip;
    overflow-y: hidden;
}

.p6-messages-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: var(--p6-text-light);
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
}

.p6-messages-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 20px;
    color: var(--p6-text-light);
    font-family: 'Poppins', sans-serif;
}

.p6-messages-empty i {
    font-size: 2.5rem;
    margin-bottom: 12px;
    opacity: 0.4;
}

.p6-messages-empty p {
    margin: 0;
    font-size: 0.95rem;
}

.p6-message-item {
    background: rgba(255, 255, 255, 0.5);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.p6-slide-out-left,
.p6-slide-out-right,
.p6-slide-in-left,
.p6-slide-in-right {
    animation-duration: 0.3s;
    animation-timing-function: ease;
    animation-fill-mode: both;
    animation-delay: calc(var(--i, 0) * 40ms);
}

.p6-slide-out-left { animation-name: p6SlideOutLeft; }
.p6-slide-out-right { animation-name: p6SlideOutRight; }
.p6-slide-in-left { animation-name: p6SlideInLeft; animation-duration: 0.35s; }
.p6-slide-in-right { animation-name: p6SlideInRight; animation-duration: 0.35s; }

@keyframes p6SlideOutLeft {
    to { opacity: 0; transform: translateX(-60px); }
}

@keyframes p6SlideOutRight {
    to { opacity: 0; transform: translateX(60px); }
}

@keyframes p6SlideInLeft {
    from { opacity: 0; transform: translateX(-60px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes p6SlideInRight {
    from { opacity: 0; transform: translateX(60px); }
    to { opacity: 1; transform: translateX(0); }
}

.p6-message-item:last-child {
    border-bottom: none;
}

.p6-message-item.unread {
    background: rgba(203, 29, 161, 0.04);
}

.p6-message-item.unread .p6-msg-sender {
    font-weight: 700;
}

.p6-message-item.unread .p6-msg-preview {
    font-weight: 600;
    color: var(--p6-text);
}

.p6-msg-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    cursor: pointer;
}

.p6-msg-row:hover {
    background: rgba(0, 0, 0, 0.02);
}

.p6-msg-avatar-wrap {
    flex-shrink: 0;
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    corner-shape: var(--p6-corner-shape-round);
    padding: 2px;
    background: linear-gradient(135deg, #9ca3af, #d1d5db, #9ca3af);
}

.p6-msg-avatar-wrap.gender-male {
    background: linear-gradient(135deg, #3b82f6, #60a5fa, #93c5fd);
}

.p6-msg-avatar-wrap.gender-female {
    background: linear-gradient(135deg, var(--p6-pink), #ff9de0, #fdb4e2);
}

.p6-msg-avatar-wrap img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    corner-shape: var(--p6-corner-shape-round);
    object-fit: cover;
    border: 2px solid var(--p6-white);
}

.p6-msg-online-dot {
    position: absolute;
    bottom: 1px;
    right: 1px;
    width: 12px;
    height: 12px;
    background: var(--p6-green);
    border: 2px solid var(--p6-white);
    border-radius: 50%;
    corner-shape: var(--p6-corner-shape-round);
}

.p6-msg-content {
    flex: 1;
    min-width: 0;
}

.p6-msg-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 4px;
}

.p6-msg-sender {
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--p6-text);
    text-decoration: none;
}

.p6-msg-sender:hover {
    color: var(--p6-pink);
}

.p6-msg-time {
    font-family: 'Poppins', sans-serif;
    font-size: 0.75rem;
    color: var(--p6-text-light);
    white-space: nowrap;
}

.p6-msg-preview {
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    color: var(--p6-text-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.p6-msg-full {
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    color: var(--p6-text);
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-word;
}

.p6-msg-indicators {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    padding-top: 4px;
}

.p6-msg-read-badge {
    font-family: 'Poppins', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--p6-green);
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.p6-msg-unread-badge {
    font-size: 0.8rem;
    color: var(--p6-text-light);
}

.p6-msg-actions {
    display: flex;
    justify-content: flex-end;
    padding: 0 16px 10px;
    gap: 8px;
}

.p6-btn-sm {
    padding: 6px 12px;
    font-size: 0.8rem;
}

.p6-messages-load-more {
    display: flex;
    justify-content: center;
    padding: 12px;
}

.p6-messages-load-more .p6-btn-ghost {
    font-size: 0.85rem;
}

.p6-wave-char {
    animation: p6WaveChar 1s ease-in-out infinite;
}

@keyframes p6WaveChar {
    0%, 60%, 100% { color: inherit; }
    30% { color: #fff; }
}

.p6-arrow-spin {
    display: inline-block;
    animation: p6ArrowSpin 1.1s ease-out infinite;
}

@keyframes p6ArrowSpin {
    0% { transform: rotate(0deg); }
    55% { transform: rotate(360deg); }
    100% { transform: rotate(360deg); }
}

.p6-msg-reply {
    display: flex;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.p6-msg-reply-input {
    flex: 1;
    min-width: 0;
    padding: 8px 14px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    corner-shape: var(--p6-corner-shape);
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    outline: none;
    transition: border-color 0.2s ease;
}

.p6-msg-reply-input:focus {
    border-color: var(--p6-pink);
}

.p6-msg-reply .p6-btn-primary {
    white-space: nowrap;
}

/* Messages mobile tweaks */
@media (max-width: 480px) {
    .p6-msg-row {
        padding: 12px;
        gap: 10px;
    }

    .p6-msg-avatar-wrap {
        width: 40px;
        height: 40px;
    }

    .p6-msg-sender {
        font-size: 0.85rem;
    }

    .p6-msg-preview {
        font-size: 0.8rem;
    }
}

/* ========================================
   SOCIAL & PARTNER (Added)
   ======================================== */

/* View Mode Social Links */
.p6-social-links {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 16px 0;
    flex-wrap: wrap;
}

.p6-social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    corner-shape: var(--p6-corner-shape-round);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    transition: transform 0.3s var(--p6-elastic), box-shadow 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    text-decoration: none;
}

.p6-social-link:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.p6-social-link.twitter { background: #1DA1F2; }
.p6-social-link.twitch { background: #9146FF; }
.p6-social-link.instagram { background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%); }
.p6-social-link.youtube { background: #FF0000; }
.p6-social-link.facebook { background: #1877F2; }
.p6-social-link.discord { background: #5865F2; cursor: default; }

/* View Mode Partner Display */
.p6-partner-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin: 20px 0;
    padding: 12px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: var(--p6-radius-sm);
    corner-shape: var(--p6-corner-shape);
    border: 1px dashed var(--p6-pink);
}

.p6-partner-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--p6-text-light);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.p6-partner-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--p6-text);
    font-weight: 600;
    transition: color 0.2s;
}

.p6-partner-link:hover {
    color: var(--p6-pink);
}

.p6-partner-link img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    corner-shape: var(--p6-corner-shape-round);
    object-fit: cover;
    border: 2px solid var(--p6-white);
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* Edit Mode Social Grid */
.p6-social-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.p6-social-input {
    position: relative;
}

.p6-social-input i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--p6-text-light);
    font-size: 1rem;
}

.p6-social-input.twitter i { color: #1DA1F2; }
.p6-social-input.twitch i { color: #9146FF; }
.p6-social-input.instagram i { color: #E1306C; }
.p6-social-input.youtube i { color: #FF0000; }
.p6-social-input.facebook i { color: #1877F2; }
.p6-social-input.discord i { color: #5865F2; }

.p6-social-input input {
    width: 100%;
    padding-left: 36px !important;
    box-sizing: border-box;
}

/* Edit Mode Partner Selector */
.p6-partner-selector {
    position: relative;
}

.p6-partner-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: var(--p6-white);
    border: 2px solid var(--p6-pink);
    border-radius: 10px;
    corner-shape: var(--p6-corner-shape);
    width: fit-content;
}

.p6-partner-chip img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    corner-shape: var(--p6-corner-shape-round);
    object-fit: cover;
}

.p6-partner-chip button {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    font-size: 1rem;
    margin-left: 8px;
    padding: 0;
    display: flex;
}

.p6-partner-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--p6-white);
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 0 0 10px 10px;
    corner-shape: var(--p6-corner-shape);
    max-height: 200px;
    overflow-y: auto;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    display: none;
}

.p6-partner-results.active {
    display: block;
}

.p6-partner-result-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    cursor: pointer;
}

.p6-partner-result-item:hover {
    background: rgba(0,0,0,0.05);
}

.p6-partner-result-item img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    corner-shape: var(--p6-corner-shape-round);
    object-fit: cover;
}

/* Partner Avatar Gender Ring */
.p6-partner-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    corner-shape: var(--p6-corner-shape-round);
    padding: 2px;
    background: linear-gradient(135deg, #9ca3af, #d1d5db, #9ca3af);
    flex-shrink: 0;
}

.p6-partner-avatar.gender-male {
    background: linear-gradient(135deg, #3b82f6, #60a5fa, #93c5fd);
}

.p6-partner-avatar.gender-female {
    background: linear-gradient(135deg, #cb1da1, #ff9de0, #fdb4e2);
}

.p6-partner-avatar.gender-other {
    background: linear-gradient(135deg, #9ca3af, #d1d5db, #9ca3af);
}

.p6-partner-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    corner-shape: var(--p6-corner-shape-round);
    object-fit: cover;
    border: 2px solid #ffffff;
    display: block;
}

/* Dynamic Social Manager */
.p6-social-manager {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.p6-social-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.p6-social-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px;
    background: #f8fafc;
    border-radius: 8px;
    corner-shape: var(--p6-corner-shape);
    border: 1px solid rgba(0,0,0,0.05);
    animation: p6FadeIn 0.3s ease;
}

.p6-social-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    corner-shape: var(--p6-corner-shape);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1rem;
    flex-shrink: 0;
}

.p6-social-row input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 6px;
    font-size: 0.9rem;
    font-family: 'Poppins', sans-serif;
    color: var(--p6-text);
}

.p6-social-row input:focus {
    outline: none;
}

.p6-social-delete {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    padding: 6px;
    font-size: 1rem;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.p6-social-delete:hover {
    opacity: 1;
}

.p6-social-add-wrapper {
    position: relative;
    width: fit-content;
}

.p6-social-add-btn {
    border: 1px dashed rgba(0,0,0,0.2);
    color: var(--p6-text-light);
}

.p6-social-add-btn:hover {
    background: rgba(0,0,0,0.03);
    border-color: var(--p6-pink);
    color: var(--p6-pink);
}

.p6-social-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 8px;
    background: var(--p6-white);
    border-radius: 10px;
    corner-shape: var(--p6-corner-shape);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    padding: 8px;
    z-index: 100;
    width: 200px;
    display: none;
    flex-direction: column;
    gap: 4px;
    border: 1px solid rgba(0,0,0,0.05);
}

.p6-social-dropdown.active {
    display: flex;
    animation: p6SlideUp 0.2s ease;
}

.p6-social-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 6px;
    corner-shape: var(--p6-corner-shape);
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--p6-text);
}

.p6-social-option:hover {
    background: rgba(0,0,0,0.05);
}

.p6-social-option i {
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
}

/* New Bio Layout Styles */

.p6-partner-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 12px;
    font-size: 0.9rem;
    color: var(--p6-text);
}

.p6-partner-inline {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: var(--p6-text);
    transition: transform 0.2s;
}

.p6-partner-inline:hover {
    transform: scale(1.05);
}

.p6-partner-avatar-sm {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    corner-shape: var(--p6-corner-shape-round);
    padding: 1.5px;
    background: linear-gradient(135deg, #9ca3af, #d1d5db, #9ca3af);
    flex-shrink: 0;
    display: inline-block;
}

.p6-partner-avatar-sm.gender-male { background: linear-gradient(135deg, #3b82f6, #60a5fa, #93c5fd); }
.p6-partner-avatar-sm.gender-female { background: linear-gradient(135deg, #cb1da1, #ff9de0, #fdb4e2); }
.p6-partner-avatar-sm.gender-other { background: linear-gradient(135deg, #9ca3af, #d1d5db, #9ca3af); }

.p6-partner-avatar-sm img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    corner-shape: var(--p6-corner-shape-round);
    object-fit: cover;
    border: 1.5px solid #fff;
    display: block;
}

.p6-partner-text {
    color: var(--p6-text-light);
    font-family: 'Poppins', sans-serif;
}

.p6-social-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
    padding-top: 13px;
    margin-bottom: -10px;
    font-size: 0.9rem;
    flex-wrap: wrap;
    border-top: 1px solid #9da3af;
    position: relative;
}

.p6-visit-text {
    color: #9da3af;
    font-family: 'Poppins', sans-serif;
    /* font-style: italic; */
    font-size: small;
}

.p6-social-icon-gray {
    color: #9ca3af;
    font-size: 1.1rem;
    transition: color 0.2s ease, transform 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.p6-social-icon-gray:hover {
    color: var(--p6-text);
    transform: scale(1.2);
}

/* Partner Bar (Guest Bar Style) */
.p6-partner-container {
    display: flex;
    justify-content: center;
    margin-top: 8px;
    margin-bottom: 8px;
}

.p6-partner-bar {
    background: rgba(0, 0, 0, 0.21);
    border-radius: 20px;
    corner-shape: var(--p6-corner-shape);
    padding: 6px clamp(6px, 8vw, 50px);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s;
}

.p6-partner-bar:hover {
    background: rgba(0, 0, 0, 0.3);
}

.p6-partner-label-yellow {
    color: #ffd700;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    font-family: 'Poppins', sans-serif;
}

.p6-partner-avatar-xs {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    corner-shape: var(--p6-corner-shape-round);
    padding: 1px;
    background: linear-gradient(135deg, #9ca3af, #d1d5db, #9ca3af);
    object-fit: cover;
}

.p6-partner-avatar-xs.gender-male { background: linear-gradient(135deg, #3b82f6, #60a5fa, #93c5fd); }
.p6-partner-avatar-xs.gender-female { background: linear-gradient(135deg, #cb1da1, #ff9de0, #fdb4e2); }
.p6-partner-avatar-xs.gender-other { background: linear-gradient(135deg, #9ca3af, #d1d5db, #9ca3af); }

.p6-partner-name {
    color: #fff;
    font-weight: 600;
    font-size: 0.8rem;
    font-family: 'Poppins', sans-serif;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

/* Partner Bar Hanging Style */
.p6-bio-section {
    position: relative;
    z-index: 2;
}

.p6-partner-container {
    overflow: hidden;
    /* padding-bottom: 20px; */
    margin-top: -32px;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.p6-partner-bar {
    background: rgba(0, 0, 0, 0.21);
    border-radius: 0 0 10px 10px;
    corner-shape: var(--p6-corner-shape);
    padding: 6px clamp(6px, 8vw, 50px);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: p6SlideDownBounce 0.7s linear(0, 0.009 0.7%, 0.041 1.5%, 0.157 3.1%, 0.807 8.9%, 1.039 11.4%, 1.182 13.8%, 1.223 15%, 1.247 16.3%, 1.251 17.8%, 1.231 19.5%, 1 28.2%, 0.957 30.8%, 0.938 33.5%, 0.942 36.8%, 1 45.4%, 1.015 50.5%, 0.996 67.4%, 1) forwards;
    transform: translateY(-100%);
    opacity: 0;
}

.p6-partner-bar:hover {
    background: rgba(0, 0, 0, 0.3);
}

.p6-partner-label-badge {
    background-color: #f6ea84;
    color: #000;
    padding: 1px 6px;
    border-radius: 4px;
    corner-shape: var(--p6-corner-shape);
    font-weight: 700;
    font-size: 0.7rem;
    text-transform: uppercase;
    font-family: 'Poppins', sans-serif;
    white-space: nowrap;
    flex-shrink: 0;
}

@keyframes p6SlideDownBounce {
    0% { transform: translateY(-100%); opacity: 0; }
    10% { opacity: 1; }
    100% { transform: translateY(0); opacity: 1; }
}
