/* ── Rank badge chip ── */
.rank-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 1px 7px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
    line-height: 1.4;
    vertical-align: middle;
    white-space: nowrap;
}

.rank-badge i {
    font-size: 0.65rem;
}

.rank-badge-level {
    font-size: 0.65rem;
}

/* Tier colors */
.rank-gray {
    background-color: #e9ecef;
    color: #6c757d;
}

.rank-bronze {
    background-color: #f5e6d3;
    color: #8b5e3c;
}

.rank-silver {
    background-color: #e8edf2;
    color: #5a6872;
}

.rank-gold {
    background-color: #fff3cd;
    color: #856404;
}

.rank-diamond {
    background: linear-gradient(135deg, #e0f0ff, #f0e6ff);
    color: #4a2fbd;
}

/* ── Level-up celebration modal ── */
.level-up-modal .modal-content {
    border: none;
    border-radius: 16px;
    overflow: hidden;
}

.level-up-header {
    padding: 2rem 2rem 1rem;
    text-align: center;
}

.level-up-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    animation: level-up-pop 0.6s ease-out;
}

.level-up-body {
    padding: 0 2rem 2rem;
    text-align: center;
}

.level-up-privileges {
    text-align: left;
    margin: 1rem auto;
    max-width: 320px;
}

.level-up-privileges li {
    padding: 4px 0;
}

/* Confetti-like shine effect */
@keyframes level-up-pop {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes shine-sweep {
    0% { left: -100%; }
    100% { left: 200%; }
}

.level-up-shine {
    position: relative;
    overflow: hidden;
}

.level-up-shine::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shine-sweep 1.5s ease-in-out 0.5s;
}
