/* Posh Trophy Case Styles */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

.posh-trophy-case {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Poppins', sans-serif;
}

/* ── Section card wrapper ── */
.tc-section-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.07);
    margin: 0 0 1.75rem;
    padding: 1.25rem 1rem 1.5rem;
}

/* ── Section heading row ── */
.tc-section-heading {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0 0 0.25rem;
}
.tc-section-heading h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a1a1a;
}
.tc-section-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

/* ── Section subtitle ── */
.tc-section-subtitle {
    font-size: 0.78rem;
    color: #999;
    margin: 0 0 1.1rem;
    padding-left: calc(24px + 0.6rem);
}

/* ── Page header ── */
.trophy-case-header {
    text-align: center;
    margin-bottom: 1.75rem;
}
.trophy-case-header h2 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    font-size: 1.75rem;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0 0 0.25rem;
}
.trophy-case-header .trophy-case-subtitle {
    font-size: 0.85rem;
    color: #aaa;
    margin: 0;
}

/* Empty State */
.trophy-case-empty {
    text-align: center;
    padding: 60px 20px;
    color: #7f8c8d;
    font-weight: 400;
}

.trophy-case-empty .trophy-case-empty-icon {
    display: block;
    margin: 0 auto 20px;
}

/* Rank Advancement Section (timeline lives inside .tc-section-card) */
.rank-advancement-section .rank-timeline {
    margin-top: 0;
}

/* Timeline */
.rank-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.rank-timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #000;
}

.rank-timeline-item {
    position: relative;
    margin-bottom: 30px;
    padding-left: 80px;
    display: flex;
    align-items: center;
    min-height: 60px;
}

.rank-timeline-item::before {
    content: '';
    position: absolute;
    left: 22px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #000;
    border: 3px solid white;
    box-shadow: 0 0 0 3px #000;
    z-index: 2;
}

/* Rank-specific circle colors */
.rank-timeline-item:has(.rank-5)::before {
    background: #E0457B;
    box-shadow: 0 0 0 3px #E0457B;
}

.rank-timeline-item:has(.rank-6)::before,
.rank-timeline-item:has(.rank-7)::before,
.rank-timeline-item:has(.rank-8)::before {
    background: #EAA26D;
    box-shadow: 0 0 0 3px #EAA26D;
}

.rank-timeline-item:has(.rank-9)::before {
    background: #0ABAB5;
    box-shadow: 0 0 0 3px #0ABAB5;
}

.rank-timeline-item:has(.rank-10)::before,
.rank-timeline-item:has(.rank-11)::before,
.rank-timeline-item:has(.rank-12)::before,
.rank-timeline-item:has(.rank-13)::before,
.rank-timeline-item:has(.rank-14)::before,
.rank-timeline-item:has(.rank-15)::before,
.rank-timeline-item:has(.rank-16)::before,
.rank-timeline-item:has(.rank-17)::before,
.rank-timeline-item:has(.rank-18)::before,
.rank-timeline-item:has(.rank-19)::before,
.rank-timeline-item:has(.rank-20)::before,
.rank-timeline-item:has(.rank-21)::before,
.rank-timeline-item:has(.rank-22)::before,
.rank-timeline-item:has(.rank-23)::before {
    background: #375275;
    box-shadow: 0 0 0 3px #375275;
}

/* Stop the timeline line at the last item */
.rank-timeline-item.last-item::after {
    content: '';
    position: absolute;
    left: 30px;
    top: 50%;
    transform: translateY(0%);
    width: 2px;
    height: 50%;
    background: white;
    z-index: 1;
}

/* Timeline Content */
.rank-timeline-content {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-left: 4px solid #f39c12;
    width: 100%;
    min-height: 60px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rank-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.rank-timeline-content h4 {
    color: #2c3e50;
    font-weight: 600;
    font-size: 1.3em;
    margin: 0;
    flex: 1;
}

.rank-timeline-date {
    color: #bdc3c7;
    font-weight: 500;
    font-size: 0.9em;
    text-align: right;
}

/* Special Message */
.rank-special-message {
    font-size: 0.95em;
    line-height: 1.4;
}

.rank-special-message strong {
    display: block;
    margin-bottom: 4px;
}

/* Rank States */
.rank-timeline-content.rank-pending {
    opacity: 0.6;
    border-left-style: dashed;
}

.rank-timeline-content.rank-pending h4 {
    color: #95a5a6;
}

.rank-timeline-content.rank-achieved {
    opacity: 1;
}

/* Ensure achieved ranks maintain full opacity and good contrast */
.rank-timeline-content.rank-achieved.rank-5,
.rank-timeline-content.rank-achieved.rank-9,
.rank-timeline-content.rank-achieved.rank-10,
.rank-timeline-content.rank-achieved.rank-11,
.rank-timeline-content.rank-achieved.rank-12,
.rank-timeline-content.rank-achieved.rank-13,
.rank-timeline-content.rank-achieved.rank-14,
.rank-timeline-content.rank-achieved.rank-15,
.rank-timeline-content.rank-achieved.rank-16,
.rank-timeline-content.rank-achieved.rank-17,
.rank-timeline-content.rank-achieved.rank-18,
.rank-timeline-content.rank-achieved.rank-19,
.rank-timeline-content.rank-achieved.rank-20,
.rank-timeline-content.rank-achieved.rank-21,
.rank-timeline-content.rank-achieved.rank-22,
.rank-timeline-content.rank-achieved.rank-23 {
    opacity: 1;
}

.rank-info-link {
    color: #3498db;
    text-decoration: underline;
    cursor: pointer;
    font-size: 0.9em;
}

.rank-info-link:hover {
    color: #2980b9;
}

/* Rank Color Coding */
.rank-timeline-content.rank-1,
.rank-timeline-content.rank-2,
.rank-timeline-content.rank-3,
.rank-timeline-content.rank-4 {
    border-left-color: #000;
    background: #fff;
}

.rank-timeline-content.rank-1 h4,
.rank-timeline-content.rank-2 h4,
.rank-timeline-content.rank-3 h4,
.rank-timeline-content.rank-4 h4 {
    color: #000;
}

.rank-timeline-content.rank-1 .rank-timeline-date,
.rank-timeline-content.rank-2 .rank-timeline-date,
.rank-timeline-content.rank-3 .rank-timeline-date,
.rank-timeline-content.rank-4 .rank-timeline-date {
    color: #000;
}

.rank-timeline-content.rank-5 {
    border-left-color: #E0457B;
    background: #E0457B;
    color: #fff;
}

.rank-timeline-content.rank-5 h4 {
    color: #fff;
    font-weight: 600;
}

.rank-timeline-content.rank-5 .rank-timeline-date {
    color: #fff;
}

.rank-timeline-content.rank-5 .rank-info-link {
    color: #fff;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.7);
}

.rank-timeline-content.rank-5 .rank-info-link:hover {
    color: #fff;
    text-decoration-color: #fff;
}

.rank-timeline-content.rank-6,
.rank-timeline-content.rank-7,
.rank-timeline-content.rank-8 {
    border-left-color: #000;
    background: #EAA26D;
}

.rank-timeline-content.rank-6 h4,
.rank-timeline-content.rank-7 h4,
.rank-timeline-content.rank-8 h4 {
    color: #000;
}

.rank-timeline-content.rank-6 .rank-timeline-date,
.rank-timeline-content.rank-7 .rank-timeline-date,
.rank-timeline-content.rank-8 .rank-timeline-date {
    color: #000;
}

.rank-timeline-content.rank-9 {
    border-left-color: #0ABAB5;
    background: #0ABAB5;
    color: #fff;
}

.rank-timeline-content.rank-9 h4 {
    color: #fff;
}

.rank-timeline-content.rank-9 .rank-timeline-date {
    color: #fff;
}

.rank-timeline-content.rank-9 .rank-info-link {
    color: #fff;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.7);
}

.rank-timeline-content.rank-9 .rank-info-link:hover {
    color: #fff;
    text-decoration-color: #fff;
}

.rank-timeline-content.rank-10,
.rank-timeline-content.rank-11,
.rank-timeline-content.rank-12,
.rank-timeline-content.rank-13,
.rank-timeline-content.rank-14,
.rank-timeline-content.rank-15,
.rank-timeline-content.rank-16,
.rank-timeline-content.rank-17,
.rank-timeline-content.rank-18,
.rank-timeline-content.rank-19,
.rank-timeline-content.rank-20,
.rank-timeline-content.rank-21,
.rank-timeline-content.rank-22,
.rank-timeline-content.rank-23 {
    border-left-color: #375275;
    background: #375275;
    color: #fff;
}

.rank-timeline-content.rank-10 h4,
.rank-timeline-content.rank-11 h4,
.rank-timeline-content.rank-12 h4,
.rank-timeline-content.rank-13 h4,
.rank-timeline-content.rank-14 h4,
.rank-timeline-content.rank-15 h4,
.rank-timeline-content.rank-16 h4,
.rank-timeline-content.rank-17 h4,
.rank-timeline-content.rank-18 h4,
.rank-timeline-content.rank-19 h4,
.rank-timeline-content.rank-20 h4,
.rank-timeline-content.rank-21 h4,
.rank-timeline-content.rank-22 h4,
.rank-timeline-content.rank-23 h4 {
    color: #fff;
}

.rank-timeline-content.rank-10 .rank-timeline-date,
.rank-timeline-content.rank-11 .rank-timeline-date,
.rank-timeline-content.rank-12 .rank-timeline-date,
.rank-timeline-content.rank-13 .rank-timeline-date,
.rank-timeline-content.rank-14 .rank-timeline-date,
.rank-timeline-content.rank-15 .rank-timeline-date,
.rank-timeline-content.rank-16 .rank-timeline-date,
.rank-timeline-content.rank-17 .rank-timeline-date,
.rank-timeline-content.rank-18 .rank-timeline-date,
.rank-timeline-content.rank-19 .rank-timeline-date,
.rank-timeline-content.rank-20 .rank-timeline-date,
.rank-timeline-content.rank-21 .rank-timeline-date,
.rank-timeline-content.rank-22 .rank-timeline-date,
.rank-timeline-content.rank-23 .rank-timeline-date {
    color: #fff;
}

/* Link colors for dark/colored backgrounds */
.rank-timeline-content.rank-5 .rank-info-link,
.rank-timeline-content.rank-9 .rank-info-link,
.rank-timeline-content.rank-10 .rank-info-link,
.rank-timeline-content.rank-11 .rank-info-link,
.rank-timeline-content.rank-12 .rank-info-link,
.rank-timeline-content.rank-13 .rank-info-link,
.rank-timeline-content.rank-14 .rank-info-link,
.rank-timeline-content.rank-15 .rank-info-link,
.rank-timeline-content.rank-16 .rank-info-link,
.rank-timeline-content.rank-17 .rank-info-link,
.rank-timeline-content.rank-18 .rank-info-link,
.rank-timeline-content.rank-19 .rank-info-link,
.rank-timeline-content.rank-20 .rank-info-link,
.rank-timeline-content.rank-21 .rank-info-link,
.rank-timeline-content.rank-22 .rank-info-link,
.rank-timeline-content.rank-23 .rank-info-link {
    color: #fff;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.7);
}

.rank-timeline-content.rank-5 .rank-info-link:hover,
.rank-timeline-content.rank-9 .rank-info-link:hover,
.rank-timeline-content.rank-10 .rank-info-link:hover,
.rank-timeline-content.rank-11 .rank-info-link:hover,
.rank-timeline-content.rank-12 .rank-info-link:hover,
.rank-timeline-content.rank-13 .rank-info-link:hover,
.rank-timeline-content.rank-14 .rank-info-link:hover,
.rank-timeline-content.rank-15 .rank-info-link:hover,
.rank-timeline-content.rank-16 .rank-info-link:hover,
.rank-timeline-content.rank-17 .rank-info-link:hover,
.rank-timeline-content.rank-18 .rank-info-link:hover,
.rank-timeline-content.rank-19 .rank-info-link:hover,
.rank-timeline-content.rank-20 .rank-info-link:hover,
.rank-timeline-content.rank-21 .rank-info-link:hover,
.rank-timeline-content.rank-22 .rank-info-link:hover,
.rank-timeline-content.rank-23 .rank-info-link:hover {
    color: #fff;
    text-decoration-color: #fff;
}

/* Modal */
.rank-info-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.rank-info-modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.rank-info-modal-image {
    text-align: center;
    margin: 20px 0;
}

.rank-info-modal-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.rank-info-modal-close {
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
}

.rank-info-modal-close:hover {
    color: #000;
}

.rank-info-modal-content h3 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 1.5em;
}

.rank-info-modal-content p {
    color: #7f8c8d;
    line-height: 1.6;
    margin: 10px 0;
}

.rank-info-modal-content strong {
    color: #2c3e50;
}

/* Monthly Award Section (header uses .tc-section-heading) */
.monthly-award-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.monthly-award-trophy {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-left: 4px solid #f39c12;
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.monthly-award-trophy:hover {
    transform: translateY(-5px);
}

.award-icon {
    margin-right: 20px;
    width: 60px;
    text-align: center;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.award-icon svg {
    display: block;
}

.award-content h4 {
    color: #2c3e50;
    font-weight: 600;
    font-size: 1.2em;
    margin: 0 0 8px 0;
}

.award-month {
    color: #2c3e50;
    font-weight: 600;
    font-size: 1.1em;
    margin: 0 0 6px 0;
}

.award-details {
    color: #7f8c8d;
    font-weight: 500;
    font-size: 0.9em;
    margin: 0 0 6px 0;
}

.award-stats {
    color: #95a5a6;
    font-weight: 400;
    font-size: 0.85em;
    margin: 0;
}

/* Annual Award Section */
.annual-award-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.annual-award-trophy {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3);
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
    color: white;
}

.annual-award-trophy:hover {
    transform: translateY(-8px);
    box-shadow: 0 6px 20px rgba(243, 156, 18, 0.4);
}

.annual-award-trophy .award-icon {
    margin-right: 20px;
    width: 80px;
    text-align: center;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.annual-award-trophy .award-icon svg {
    display: block;
}

.annual-award-trophy .award-content h4 {
    color: white;
    font-weight: 700;
    font-size: 1.3em;
    margin: 0 0 8px 0;
}

.annual-award-trophy .award-period {
    color: white;
    font-weight: 600;
    font-size: 1.2em;
    margin: 0 0 6px 0;
}

.annual-award-trophy .award-details {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    font-size: 1em;
    margin: 0 0 6px 0;
}

.annual-award-trophy .award-bonus {
    color: white;
    font-weight: 700;
    font-size: 1.1em;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Error State */
.trophy-case-error {
    background: #e74c3c;
    color: white;
    padding: 15px;
    border-radius: 5px;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .posh-trophy-case {
        padding: 15px;
    }
    
    .rank-timeline-item {
        padding-left: 60px;
        margin-bottom: 20px;
    }
    
    .rank-timeline-item::before {
        left: 20px;
        width: 14px;
        height: 14px;
    }
    
    .rank-timeline::before {
        left: 27px;
    }
    
    .rank-timeline-content {
        padding: 15px;
        min-height: 50px;
    }
    
    .rank-timeline-content h4 {
        font-size: 1.1em;
    }
    
    .rank-title-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .rank-timeline-date {
        text-align: left;
        font-size: 0.85em;
    }
    
    .monthly-award-grid,
    .annual-award-grid {
        grid-template-columns: 1fr;
    }
    
    .monthly-award-trophy,
    .annual-award-trophy {
        flex-direction: column;
        text-align: center;
    }
    
    .award-icon,
    .annual-award-trophy .award-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }
}

/* ── Badges Section (card shell from .tc-section-card) ── */
.tc-badges-header .tc-section-heading {
    margin-bottom: 0;
}
.tc-badges-earned-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.875rem;
    margin-bottom: 0.75rem;
}
.tc-badge-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    cursor: pointer;
    position: relative;
    width: 72px;
    text-align: center;
    border-radius: 10px;
    padding: 0.4rem;
    transition: background 0.15s;
}
.tc-badge-item:hover {
    background: #fdf0f5;
}
.tc-badge-item--readonly {
    cursor: default;
}
.tc-badge-item--readonly:hover {
    background: transparent;
}
.tc-badge-item--featured {
    background: #fde8f2;
    outline: 2px solid #e0457b;
    outline-offset: 2px;
}
.tc-badge-img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}
.tc-badge-placeholder-img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #999;
}
.tc-badge-featured-star {
    position: absolute;
    top: 0;
    right: 4px;
    line-height: 0;
}
.tc-badge-featured-star svg {
    display: block;
}
.tc-badge-label {
    font-size: 0.65rem;
    color: #555;
    line-height: 1.2;
}
.tc-badges-featured-status {
    font-size: 0.78rem;
    color: #666;
    margin: 0.5rem 0 1rem;
}
.tc-badges-empty {
    color: #999;
    font-size: 0.85rem;
    margin: 0.5rem 0 1rem;
}
.tc-badge-directory-btn {
    display: inline-block;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #444;
    cursor: pointer;
    transition: background 0.15s;
}
.tc-badge-directory-btn:hover {
    background: #efefef;
}

/* ── Modal ── */
.tc-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: flex-end;
}
.tc-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}
.tc-modal-box {
    position: relative;
    z-index: 1;
    background: #fff;
    width: 100%;
    max-height: 88vh;
    border-radius: 18px 18px 0 0;
    display: flex;
    flex-direction: column;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.15);
}
@media (min-width: 600px) {
    .tc-modal {
        align-items: center;
        justify-content: center;
    }
    .tc-modal-box {
        max-width: 640px;
        border-radius: 18px;
        max-height: 82vh;
    }
}
.tc-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #f0f0f0;
    flex-shrink: 0;
}
.tc-modal-header h2 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
}
.tc-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #888;
    line-height: 1;
    padding: 0 4px;
}
.tc-modal-body {
    overflow-y: auto;
    padding: 1rem 1.25rem 2rem;
}
.tc-modal-intro {
    font-size: 0.8rem;
    color: #888;
    margin: 0 0 1rem;
}

/* ── Directory ── */
.tc-directory-category {
    margin-bottom: 1.5rem;
}
.tc-directory-category-label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #aaa;
    margin: 0 0 0.75rem;
}
/* Fixed 4-column grid — badges align in uniform columns */
.tc-directory-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem 0.75rem;
    margin-bottom: 0.5rem;
}

@media (max-width: 360px) {
    .tc-directory-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Each badge item is a flex column:
   image at top, label below, "Earned" pinned to bottom */
.tc-dir-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0;
}

/* Image sits at top — no margin */
.tc-dir-badge .tc-dir-badge-img,
.tc-dir-badge .tc-dir-badge-locked-wrap,
.tc-dir-badge .tc-dir-badge-no-img {
    flex-shrink: 0;
    margin-bottom: 6px;
}

.tc-dir-badge-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

/* Earned badges in directory get a pink outline + shadow */
.tc-dir-badge--earned .tc-dir-badge-img {
    outline: 2px solid #e0457b;
    outline-offset: 2px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.tc-dir-badge-img--locked {
    filter: grayscale(100%) opacity(0.35);
}

.tc-dir-badge-locked-wrap {
    position: relative;
    display: inline-block;
    width: 80px;
    height: 80px;
}

.tc-dir-lock {
    position: absolute;
    bottom: 0;
    right: 0;
    background: #fff;
    border-radius: 50%;
    line-height: 0;
    padding: 2px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06);
}
.tc-dir-lock svg {
    display: block;
}

.tc-dir-badge-no-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #bbb;
}

/* Label: fixed area, top-aligned */
.tc-dir-badge-label {
    font-size: 0.65rem;
    color: #444;
    line-height: 1.3;
    min-height: 2.4em;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    text-align: center;
    width: 100%;
    margin-bottom: 3px;
}

.tc-dir-badge--locked .tc-dir-badge-label {
    color: #bbb;
}

/* "Earned" check — pinned at bottom of each cell */
.tc-dir-badge-earned-check {
    font-size: 0.6rem;
    font-weight: 700;
    color: #0abab5;
    margin-top: auto;
    letter-spacing: 0.04em;
}

/* Stackable badge count bubble — appears when count > 1 */
.tc-badge-icon {
    display: inline-block;
    position: relative;
    line-height: 0;
}
.tc-badge-icon--stackable,
.tc-dir-badge--stackable {
    position: relative;
}

.padv2-rank-badge-count,
.tc-badge-count,
.tc-dir-badge-count {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 26px;
    height: 26px;
    padding: 0;
    border-radius: 50%;
    background: #E0457B;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
    border: 2px solid #fff;
    box-sizing: border-box;
    z-index: 2;
    pointer-events: none;
}

/* Three-digit counts (100+) — slightly smaller font, still circular */
.padv2-rank-badge-count:not(:empty) {
    font-variant-numeric: tabular-nums;
}
