.profile-layout {
    display: flex;
    flex: 1;
    overflow: hidden;
    flex-direction: row;
    height: 100%;
    min-height: 0;
    background-color: var(--surface-2);
    border-top: 1px solid var(--border);
}

.achievement-card {
    background-color: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.collection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    width: 95%;
    max-width: 1100px;
    margin: 0 auto;
    padding-bottom: 50px;
}

.collection-card {
    background-color: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
    position: relative;
    aspect-ratio: 2 / 3;
}

.collection-card:hover {
    transform: translateY(-3px) scale(1.02);
    border-color: var(--purple);
    z-index: 10;
    box-shadow: 0 8px 24px rgba(162, 155, 254, 0.18);
}

.collection-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.25s ease;
}

/* Skeleton shimmer shown while the lazy image is off-screen */
@keyframes skeletonShimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
.collection-card.loading {
    background: linear-gradient(
        90deg,
        var(--surface-2) 25%,
        var(--surface-1) 50%,
        var(--surface-2) 75%
    );
    background-size: 200% 100%;
    animation: skeletonShimmer 1.4s ease infinite;
}
.collection-card.loading img { opacity: 0; }
body.reduced-motion .collection-card.loading { animation: none; }

/* Generic shimmering placeholder bar — used for leaderboard / Hall of Fame
   skeleton rows while data is loading, reusing the shimmer above. */
.skeleton-block {
    display: inline-block;
    background: linear-gradient(
        90deg,
        var(--surface-2) 25%,
        var(--surface-1) 50%,
        var(--surface-2) 75%
    );
    background-size: 200% 100%;
    animation: skeletonShimmer 1.4s ease infinite;
    border-radius: 4px;
}
body.reduced-motion .skeleton-block { animation: none; }

/* --- PROFIL GOMB (JOBB FELSŐ SAROK) --- */
#profile-display {
    position: fixed;
    top: max(20px, env(safe-area-inset-top));
    right: max(20px, env(safe-area-inset-right));
    width: 60px;
    height: 70px;
    background-color: var(--surface-2);
    border: 2px solid var(--border-hi);
    border-radius: var(--radius-md);
    cursor: pointer;
    z-index: 1000;
    overflow: hidden;
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
    box-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

#profile-display:hover {
    transform: scale(1.06);
    border-color: var(--purple);
    box-shadow: 0 4px 16px var(--purple-dim);
}

#miniProfileImg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- PROFILE MODAL RESPONSIVE --- */
@media (max-width: 600px) {
    .profile-layout {
        flex-direction: column;
        height: auto;
        max-height: 80vh;
    }
    .profile-sidebar {
        width: 100%;
        flex-direction: row;
        overflow-x: auto;
        border-right: none;
        border-bottom: 1px solid var(--border);
    }
    .profile-content-area { overflow-y: visible; }
}

/* --- SIDEBAR --- */
.profile-sidebar {
    width: 200px;
    background-color: var(--surface-1);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    padding: 10px;
    gap: 4px;
}

.sidebar-btn {
    background: none;
    border: none;
    border-left: 3px solid transparent;
    color: var(--text-muted);
    padding: 12px 10px 12px 8px;
    text-align: left;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.sidebar-btn:hover {
    background-color: var(--surface-2);
    color: var(--white);
}

.sidebar-btn.active {
    background-color: var(--purple-dim);
    color: var(--purple);
    border-left: 3px solid var(--purple);
}

/* --- CONTENT AREA --- */
.profile-content-area {
    flex: 1;
    padding: 20px 28px 36px 28px;
    height: 100%;
    max-height: none;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: var(--white) var(--surface-1);
}

.profile-content-area::-webkit-scrollbar       { width: 6px; }
.profile-content-area::-webkit-scrollbar-track { background: var(--surface-1); }
.profile-content-area::-webkit-scrollbar-thumb { background-color: var(--white); border-radius: 3px; }

.tab-content {
    animation: fadeIn 0.25s ease-out;
    width: 100%;
}

/* --- PROFILE IMAGE --- */
.profile-big-img-container {
    position: relative;
    width: 220px;
    height: auto;
    min-height: 260px;
    padding-bottom: 20px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.35s ease;
}

#bigProfileImg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-md);
    border: 2px solid var(--border-hi);
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    transition: border-color var(--transition);
}

#bigProfileImg:hover { border-color: var(--purple); }

.edit-icon {
    position: absolute;
    bottom: 14px;
    right: -6px;
    background-color: var(--purple);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    border: 2px solid var(--surface-2);
    font-size: 13px;
    transition: transform var(--transition);
}

.edit-icon:hover { transform: scale(1.1); }

/* --- NAME INPUT --- */
.name-input {
    background-color: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--white);
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-family: inherit;
    width: 160px;
    text-align: center;
    font-weight: 600;
    transition: border-color var(--transition);
}

.name-input:focus {
    outline: none;
    border-color: var(--purple);
}

.icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    padding: 2px 5px;
    transition: transform var(--transition);
}

.icon-btn:hover { transform: scale(1.2); }

/* --- AVATAR GRID --- */
.avatar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
    gap: 10px;
    padding: 14px;
    background-color: var(--surface-1);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    width: 100%;
}

.avatar-item {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    border: 2px solid transparent;
}

.avatar-item:hover { border-color: var(--purple); transform: scale(1.06); }

/* --- STATS BOXES --- */
.stats-container {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin: 16px 0;
    width: 100%;
    flex-wrap: wrap;
}

.stat-box.full-width { min-width: 200px; }

.stat-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 14px 10px;
}

.stat-number {
    font-size: 32px;
    font-weight: 800;
    color: var(--white);
}

.stat-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-top: 4px;
}

/* --- FAVOURITE IMAGE (STATS) --- */
.stat-fav-image {
    width: 80px;
    height: 100px;
    object-fit: cover;
    border-radius: var(--radius-md);
    border: 2px solid var(--border-hi);
    margin-bottom: 8px;
    cursor: pointer;
    transition: transform var(--transition), border-color var(--transition);
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

.stat-fav-image:hover {
    transform: scale(1.06);
    border-color: var(--purple);
}

/* --- ACHIEVEMENTS --- */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 10px;
    width: 95%;
    max-width: 900px;
    margin: 16px auto;
    max-height: 55vh;
    overflow-y: auto;
    padding: 12px;
    background-color: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.achievement-card.locked {
    opacity: 0.45;
    filter: grayscale(80%);
}

.achievement-card.unlocked {
    background-color: var(--surface-2);
    border-color: var(--purple);
    box-shadow: 0 2px 12px var(--purple-dim);
}

.achievement-icon {
    font-size: 22px;
    width: 40px;
    height: 40px;
    background-color: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.achievement-info { flex: 1; text-align: left; }

.achievement-title {
    font-weight: 700;
    color: var(--white);
    font-size: 13px;
    margin-bottom: 3px;
}

.achievement-desc {
    color: var(--text-muted);
    font-size: 11px;
}

.ach-progress-bg {
    width: 100%;
    height: 3px;
    background-color: var(--border);
    border-radius: 2px;
    margin-top: 6px;
}

.ach-progress-fill {
    height: 100%;
    background-color: var(--purple);
    border-radius: 2px;
    transition: width 0.5s ease;
}

/* --- COLLECTION SCREEN --- */
#collection-screen {
    justify-content: flex-start;
    overflow-y: auto;
    padding-bottom: 50px;
}

.collection-name-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0) 100%);
    color: var(--white);
    font-size: 10px;
    font-weight: 600;
    text-align: center;
    padding: 18px 4px 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    pointer-events: none;
}

/* --- COMPARE MODE --- */
.collection-card.selected-for-compare {
    border: 2px solid var(--purple) !important;
    box-shadow: 0 0 14px var(--purple-dim);
}

.collection-card.selected-for-compare::after {
    content: "✓";
    position: absolute;
    bottom: 6px;
    right: 6px;
    font-size: 13px;
    font-weight: 800;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--purple);
    color: #fff;
    border-radius: 50%;
}

/* Compare button active state */
button.active-compare {
    background-color: #c0392b !important;
    border-color: #c0392b !important;
    color: white !important;
}

/* --- FAVORITES --- */
#favFilterBtn.active {
    background-color: #c0392b;
    border-color: #c0392b !important;
    color: white !important;
}

.fav-heart {
    position: absolute;
    top: 5px;
    left: 6px;
    font-size: 15px;
    cursor: pointer;
    z-index: 20;
    transition: transform var(--transition);
    filter: drop-shadow(0 1px 3px rgba(0,0,0,0.9));
    -webkit-user-select: none;
    user-select: none;
}

.fav-heart:hover { transform: scale(1.25); }

@keyframes heartPop {
    0%   { transform: scale(1);   }
    50%  { transform: scale(1.4); }
    100% { transform: scale(1);   }
}
.fav-heart.active-heart { animation: heartPop 0.3s ease; }

/* A kis ceruza a név mellett */
.edit-icon-small {
    cursor: pointer;
    font-size: 16px;
    opacity: 0.7;
    transition: opacity 0.2s;
}
.edit-icon-small:hover {
    opacity: 1;
    transform: scale(1.1);
}
#nameDisplayContainer{
    padding-bottom: 20px;
}
.save-btn:hover { text-shadow: 0 0 5px #538d4e; } /* Zöld fény */
.cancel-btn:hover { text-shadow: 0 0 5px #e03b3b; } /* Piros fény */

/* 1. ZÁROLV (Locked) Állapot */
.avatar-item.locked {
    filter: grayscale(100%); /* Teljesen szürke */
    opacity: 0.3;            /* Halvány */
    cursor: not-allowed;     /* Tiltó kurzor */
}

/* 2. MEGSZERZETT (Unlocked) Állapot */
.avatar-item.unlocked {
    filter: none;            /* Színes */
    opacity: 1;
    cursor: pointer;         /* Kéz ikon */
    border-color: var(--border-hi);
}

/* Hover effekt a megszerzettekre */
.avatar-item.unlocked:hover {
    transform: scale(1.1);
    border-color: #ffffff;   /* Arany keret ha ráviszed az egeret */
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Ha ez az aktív profilképed, legyen zöld kerete */
.avatar-item.active-avatar {
    border-color: #000000;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* 1. Az ablak kerete */
#profileModal .game-over-card {
    display: flex;
    flex-direction: column;
    align-items: stretch !important;
    width: 95%;
    max-width: 1100px;
    padding: 0 !important;
    gap: 0 !important;
}

/* 2. A fejléc (X gomb és Cím) */
#profileModal h2 {
    text-align: center;   /* A cím maradjon középen */
    width: 100%;
}

/* --- PROFILE SIDEBAR (second block — safe override with min-width) --- */
.profile-sidebar {
    min-width: 200px;
    flex-shrink: 0;
    background-color: var(--surface-1);
    border-right: 1px solid var(--border);
    border-top: 1px solid var(--border);
}

/* sidebar-btn.active: purple, not user-color */
.sidebar-btn.active {
    background-color: var(--purple-dim);
    color: var(--purple);
    border-left: 3px solid var(--purple);
}

/* --- ACHIEVEMENT FILTER BUTTONS --- */
.active-filter {
    background-color: var(--purple) !important;
    color: #1c1c1e !important;
    border-color: var(--purple) !important;
    font-weight: 700;
}

/* --- SCROLLBARS (achievement / avatar lists) --- */
.achievements-grid::-webkit-scrollbar,
.avatar-grid::-webkit-scrollbar { width: 6px; }

.achievements-grid::-webkit-scrollbar-track,
.avatar-grid::-webkit-scrollbar-track { background: var(--surface-1); }

.achievements-grid::-webkit-scrollbar-thumb,
.avatar-grid::-webkit-scrollbar-thumb { background: var(--white); border-radius: 3px; }

/* --- DISTRIBUTION CHART --- */
.distribution-chart {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 8px;
    padding-top: 20px;
    border-bottom: 2px solid var(--border-hi);
    margin-bottom: 60px;
}

.dist-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
    position: relative;
}

.dist-bar-vertical {
    width: 100%;
    background-color: var(--surface-2);
    border-radius: 4px 4px 0 0;
    transition: height 0.5s ease;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 5px;
    min-height: 2px;
}

.dist-bar-vertical.has-data { background-color: var(--purple); }

.dist-count {
    color: #1c1c1e;
    font-size: 11px;
    font-weight: 700;
}

.dist-label {
    margin-top: 8px;
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
    position: absolute;
    bottom: -25px;
    width: 100%;
}

/* --- STATS SPLIT ROW --- */
.stats-split-row {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    width: 100%;
    margin-bottom: 20px;
}

.stat-box.half-width {
    flex: 1;
    background-color: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* --- CHART / STAT SELECTOR BUTTONS --- */
.chart-btn {
    background: var(--surface-2);
    color: var(--text-muted);
    border: 1px solid var(--border);
    padding: 5px 12px;
    border-radius: var(--radius-lg);
    cursor: pointer;
    font-size: 12px;
    font-family: inherit;
    transition: all var(--transition);
}

.chart-btn:hover { border-color: var(--border-hi); color: var(--white); }

.chart-btn.active {
    background: var(--purple);
    color: #1c1c1e;
    border-color: var(--purple);
    font-weight: 700;
}

.stat-sub-btn {
    background: var(--surface-2);
    color: var(--text-muted);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition);
    font-weight: 500;
    font-family: inherit;
    padding: 8px 15px !important;
    font-size: 13px !important;
}

.stat-sub-btn:hover { border-color: var(--border-hi); color: var(--white); }

.stat-sub-btn.active {
    background: var(--purple);
    color: #1c1c1e;
    border-color: var(--purple);
    font-weight: 700;
    box-shadow: 0 0 12px var(--purple-dim);
}

.stats-selector {
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    background: var(--surface-2);
    color: var(--white);
    border: 1px solid var(--border);
    font-family: inherit;
    font-size: 13px;
}

/* --- PROFILE MODAL MISC --- */
.profile-modal-card { width: 100%; padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.profile-header { padding: 15px; position: relative; background: var(--surface-1); }
.online-status-container { text-align: center; padding: 10px; background: rgba(0,0,0,0.25); border-radius: var(--radius-sm); }
.online-status-text { color: var(--text); font-size: 13px; margin-bottom: 15px; }
.player-level-display { color: var(--white); font-weight: 700; font-size: 14px; margin: 5px 0; }

/* --- SETTINGS ROWS --- */
.setting-row {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    margin-bottom: 12px;
}

.setting-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    width: 100px;
    text-align: right;
    flex-shrink: 0;
    font-weight: 600;
}

.setting-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
}

.setting-nav-btn {
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    width: 32px;
    height: 32px;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    flex-shrink: 0;
    font-family: inherit;
    line-height: 1;
}

.setting-nav-btn:hover {
    border-color: var(--purple);
    color: var(--purple);
}

.setting-nav-display {
    flex: 1;
    text-align: center;
    font-size: 13px;
    color: var(--white);
    font-weight: 600;
    padding: 6px 8px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.settings-section-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--purple);
    margin: 0 0 8px;
}

.setting-export-row {
    display: flex;
    gap: 10px;
    width: 100%;
    margin-bottom: 4px;
}
.setting-export-row .menu-btn {
    padding: 10px 12px;
    font-size: 13px;
}

.xp-bar-container {
    width: 80%;
    height: 8px;
    background: var(--surface-2);
    border-radius: 4px;
    margin: 0 auto 20px auto;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border);
}

.xp-bar-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #7739eb, var(--purple));
    transition: width 0.5s ease;
}

.xp-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 8px;
    color: var(--white);
    text-shadow: 0 0 2px rgba(0,0,0,0.8);
}

.prestige-placeholder { padding: 20px; border: 1px dashed var(--border-hi); border-radius: var(--radius-md); }
.leaderboard-container { background: var(--surface-1); padding: 15px; border-radius: var(--radius-md); border: 1px solid var(--border); }

/* Leaderboard Global / Daily toggle */
.leaderboard-toggle {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 4px;
}

.active-lb-tab {
    border-color: var(--purple) !important;
    background: var(--purple-dim) !important;
    color: var(--white) !important;
}

/* =============================================================
   PROFILE CARD (shareable)
   ============================================================= */
.profile-card-inner {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    background: linear-gradient(145deg, var(--surface-2), var(--bg));
    border: 1px solid var(--border-hi);
    border-radius: var(--radius-md);
    padding: 22px 18px 18px;
}

.pc-avatar {
    width: 110px;
    height: 140px;
    border-radius: var(--radius-md);
    object-fit: cover;
    border: 3px solid var(--purple);
    box-shadow: 0 4px 16px rgba(0,0,0,0.5);
}

.pc-action-row {
    display: flex;
    gap: 10px;
    width: 100%;
    margin-top: 10px;
}

.pc-action-row .menu-btn { flex: 1; }

.pc-name {
    font-size: 20px;
    font-weight: 800;
    color: var(--white);
    margin-top: 6px;
}

.pc-level {
    font-size: 12px;
    font-weight: 700;
    color: var(--purple);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.pc-prestige {
    font-size: 11px;
    font-weight: 700;
    color: #d4af37;
    letter-spacing: 1px;
    margin-top: 2px;
}

.pc-divider {
    width: 80%;
    height: 1px;
    background: var(--border);
    margin: 10px 0;
}

.pc-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 100%;
}

.pc-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--surface-1);
    border-radius: var(--radius-sm);
    padding: 10px 8px;
    border: 1px solid var(--border);
}

.pc-stat-value {
    font-size: 22px;
    font-weight: 900;
    color: var(--white);
    line-height: 1;
}

.pc-stat-label {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}

.pc-footer {
    margin-top: 12px;
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}
.history-container { background: var(--surface-1); padding: 15px; border-radius: var(--radius-md); border: 1px solid var(--border); }
.chart-container { background: var(--surface-1); padding: 15px; border-radius: var(--radius-md); border: 1px solid var(--border); }
.chart-wrapper { position: relative; height: 250px; width: 100%; }
.dc-logo { width: 40px; border-radius: var(--radius-sm); transition: transform var(--transition); cursor: pointer; }
.dc-logo:hover { transform: scale(1.06); }
.link-logo { width: 200px; border-radius: var(--radius-md); border: 2px solid var(--purple); transition: transform var(--transition), border-color var(--transition); cursor: pointer; }
.link-logo:hover { transform: scale(1.04); border-color: var(--white); }
.credits-brand-carousel { text-align: center; }
.credits-brand-nav { display: flex; justify-content: center; align-items: center; gap: 15px; margin-bottom: 4px; }
.pub-profile-img {
    width: 120px;
    height: 160px;
    border-radius: var(--radius-lg);
    object-fit: cover;
    object-position: top;
    border: 2px solid var(--purple);
    box-shadow: 0 6px 20px rgba(0,0,0,0.5);
}
.pub-player-level { color: var(--purple); font-weight: 700; margin-bottom: 25px; font-size: 14px; }
.pub-stats-container { background: var(--surface-1); padding: 15px; border-radius: var(--radius-md); border: 1px solid var(--border); }

/* --- PLAYER CARDS (search results, friends list, requests) --- */
.player-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--surface-1);
    padding: 10px 14px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    transition: border-color var(--transition);
}
.player-card:hover { border-color: var(--purple-dim); }
.player-card-info  { display: flex; align-items: center; gap: 12px; }
.player-card-avatar {
    width: 46px;
    height: 58px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    object-position: top;
    border: 2px solid var(--border-hi);
    flex-shrink: 0;
}
.player-card-name    { color: var(--white); font-weight: 700; font-size: 14px; }
.player-card-sub     { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.player-card-sub .pcxp      { color: #a29bfe; font-weight: 600; }
.player-card-sub .pcprestige { color: var(--purple); font-weight: 600; }
.player-card-actions { display: flex; gap: 8px; }

/* =============================================================
   PERSONAL ANALYTICS
   ============================================================= */
.analytics-container { width: 100%; }

.analytics-section {
    background: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 14px;
}

.analytics-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin: 0 0 12px 0;
}
/* =============================================================
   GRADIENT CUSTOMIZER (moved from HTML inline styles)
   ============================================================= */
.gradient-customizer-box {
    background: var(--surface-2);
    border-radius: var(--radius-md);
    padding: 14px;
    border: 1px solid var(--border);
    margin-left: 112px;
}
.gradient-label-text {
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.gradient-controls-row {
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: flex-end;
    flex-wrap: wrap;
}
.color-input-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-muted);
}
.color-input-picker {
    width: 46px;
    height: 38px;
    border: none;
    background: none;
    cursor: pointer;
    border-radius: 6px;
}
