/* ================================================================
   ProfilePanel â€” Personal Profile, Ranks, Stats & Achievements
   ================================================================ */

.profile-panel {
    display: flex;
    flex-direction: column;
    gap: 28px;
    width: 100%;
    pointer-events: all;
    padding-bottom: 48px;
    flex-shrink: 0;
}

/* â”€â”€ Header: Avatar + Rank Progress â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.profile-header {
    display: flex;
    flex-direction: column;
    gap: 20px;
    background-color: #121214;
    border: 1px solid #27272a;
    border-radius: 16px;
    flex-shrink: 0;
    padding: 28px;
}

.profile-avatar {
    display: flex;
    align-items: center;
    gap: 20px;
}

.avatar-circle {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 3px solid #3b82f6;
    background-color: #18181b;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.avatar-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
}

.avatar-icon .ui-icon {
    width: 42px;
    height: 42px;
    line-height: 42px;
    font-size: 38px;
}

.avatar-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.player-name {
    font-size: 24px;
    font-weight: 800;
    color: #f8fafc;
}

.player-rank {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.player-platform-info {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
}

.platform-stat {
    font-size: 12px;
    font-weight: 600;
    color: #52525b;
}

.platform-dot {
    font-size: 12px;
    color: #3f3f46;
}

.platform-ach-bar-bg {
    width: 100%;
    height: 8px;
    background-color: #27272a;
    border-radius: 100px;
    overflow: hidden;
}

.platform-ach-bar-fill {
    height: 100%;
    border-radius: 100px;
    min-width: 4px;
    background-color: #f59e0b;
}

.rank-progress-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rank-bar-labels {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.rank-current {
    font-size: 14px;
    font-weight: 800;
    color: #f8fafc;
}

.rank-next {
    font-size: 14px;
    font-weight: 700;
    color: #a1a1aa;
}

.rank-bar-bg {
    width: 100%;
    height: 10px;
    background-color: #27272a;
    border-radius: 100px;
    overflow: hidden;
}

.rank-bar-fill {
    height: 100%;
    border-radius: 100px;
    min-width: 0px;
}

.rank-bar-pct {
    font-size: 12px;
    font-weight: 700;
    color: #71717a;
    text-align: right;
}

/* â”€â”€ Section container â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.profile-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
    background-color: #121214;
    border: 1px solid #27272a;
    border-radius: 16px;
    padding: 24px;
    flex-shrink: 0;
}

.section-title {
    font-size: 18px;
    font-weight: 800;
    color: #f8fafc;
    display: flex;
    align-items: center;
    gap: 12px;
}

.ach-counter {
    font-size: 14px;
    font-weight: 600;
    color: #71717a;
    background-color: #18181b;
    padding: 4px 12px;
    border-radius: 100px;
}

/* â”€â”€ Stats Grid â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.stats-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.pstat {
    display: flex;
    align-items: center;
    gap: 14px;
    background-color: #18181b;
    border: 1px solid #27272a;
    border-radius: 12px;
    padding: 16px 20px;
    min-width: 220px;
    flex: 1;
}

.pstat-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.pstat-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.pstat-val {
    font-size: 20px;
    font-weight: 800;
    color: #f8fafc;
}

.pstat-val.clr-green { color: #10b981; }
.pstat-val.clr-red   { color: #ef4444; }

.pstat-lbl {
    font-size: 12px;
    font-weight: 600;
    color: #71717a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* â”€â”€ Achievements Grid â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.achievements-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.achievement {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border-radius: 10px;
    border: 1px solid #27272a;
    background-color: #18181b;
}

.achievement.locked {
    opacity: 0.45;
}

.achievement.unlocked {
    border-color: #3b82f6;
    background-color: #1a2744;
}

.ach-icon {
    font-size: 26px;
    flex-shrink: 0;
    width: 36px;
    text-align: center;
}

.ach-icon .ui-icon {
    width: 30px;
    height: 30px;
    line-height: 30px;
    font-size: 26px;
    padding: 0;
}

.ach-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ach-name {
    font-size: 15px;
    font-weight: 700;
    color: #f8fafc;
}

.ach-desc {
    font-size: 12px;
    color: #71717a;
}

/* â”€â”€ Ranks List â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.ranks-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.rank-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border-radius: 10px;
    background-color: #18181b;
    border: 1px solid #27272a;
}

.rank-item.current {
    border-color: #3b82f6;
    background-color: #1a2744;
}

.rank-item.locked {
    opacity: 0.35;
}

.rank-icon {
    font-size: 22px;
    flex-shrink: 0;
    width: 32px;
    text-align: center;
}

.rank-name {
    font-size: 15px;
    font-weight: 700;
    flex: 1;
}

.rank-req {
    font-size: 13px;
    font-weight: 600;
    color: #52525b;
    font-family: monospace;
}

/* â”€â”€ Achievement Popup â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.ach-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9000;
    pointer-events: all;
}

.ach-popup {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    background-color: #121214;
    border: 2px solid #f59e0b;
    border-radius: 20px;
    padding: 40px 48px;
    text-align: center;
    box-shadow: 0 0 60px rgba(245, 158, 11, 0.2);
}

.ach-popup-icon {
    font-size: 56px;
}

.ach-popup-title {
    font-size: 14px;
    font-weight: 700;
    color: #f59e0b;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.ach-popup-name {
    font-size: 24px;
    font-weight: 800;
    color: #f8fafc;
}

.ach-popup-desc {
    font-size: 14px;
    color: #a1a1aa;
    max-width: 300px;
    line-height: 22px;
}

.avatar-icon .ui-icon,
.pstat-icon,
.ach-icon .ui-icon,
.ach-popup-icon .ui-icon {
    padding: 0;
}

.ach-popup-btn {
    margin-top: 8px;
    padding: 12px 32px;
    border-radius: 10px;
    border: 1px solid #f59e0b;
    background-color: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    pointer-events: all;
}

.ach-popup-btn:hover {
    background-color: #f59e0b;
    color: #09090b;
}

/* RankPanel now has its own stylesheet */
