/* ==========================================================================
   TDC XP & Leaderboard Styles
   ========================================================================== */
.tdc-xp-container {
    max-width: 1180px;
    margin: 30px auto 80px;
    padding: 0 16px;
    color: #e2e8f0;
}

.tdc-xp-hero {
    background: linear-gradient(135deg, rgba(20, 27, 38, 0.95), rgba(12, 16, 24, 0.98));
    border: 1px solid #273549;
    border-radius: 14px;
    padding: 34px 40px;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 30px;
    align-items: center;
    margin-bottom: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.tdc-xp-eyebrow {
    font-size: 11px;
    letter-spacing: 3px;
    color: #ef1630;
    font-weight: 800;
    text-transform: uppercase;
}

.tdc-xp-hero-content h1 {
    font-size: 32px;
    color: #fff;
    margin: 8px 0 12px;
}

.tdc-xp-hero-content p {
    color: #94a3b8;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

.tdc-xp-my-card {
    background: #0d131b;
    border: 1px solid #233144;
    border-radius: 12px;
    padding: 20px;
}

.tdc-xp-my-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.tdc-xp-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 999px;
    border: 1px solid currentColor;
    font-size: 11px;
    font-weight: 800;
}

.tdc-xp-bar-wrap {
    height: 10px;
    background: #1e293b;
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 8px;
}

.tdc-xp-bar-fill {
    height: 100%;
    border-radius: 999px;
    transition: width 0.4s ease;
}

.tdc-xp-bar-labels {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #94a3b8;
}

/* Podium */
.tdc-podium-grid {
    display: grid;
    grid-template-columns: 1fr 1.15fr 1fr;
    gap: 18px;
    align-items: flex-end;
    margin-bottom: 34px;
}

.tdc-podium-card {
    background: linear-gradient(145deg, #131b26, #0c1119);
    border: 1px solid #28374d;
    border-radius: 14px;
    padding: 26px 20px;
    text-align: center;
    position: relative;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.tdc-podium-1 {
    background: linear-gradient(145deg, #241a0d, #0f141d);
    border-color: #eab308;
    box-shadow: 0 20px 60px rgba(234, 179, 8, 0.15);
    padding: 34px 20px;
}

.tdc-podium-crown {
    font-size: 32px;
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
}

.tdc-podium-rank {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    color: #94a3b8;
    margin-bottom: 12px;
}

.tdc-podium-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    margin: 0 auto 12px;
    border: 2px solid #334155;
    background: #1e293b;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    font-weight: 900;
    color: #fff;
}

.tdc-podium-1 .tdc-podium-avatar {
    width: 86px;
    height: 86px;
    border-color: #eab308;
}

.tdc-podium-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tdc-podium-card h3 {
    margin: 0 0 4px;
    font-size: 17px;
    color: #fff;
}

.tdc-podium-tag {
    display: block;
    font-size: 11px;
    color: #64748b;
    margin-bottom: 10px;
}

.tdc-podium-level {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    margin-bottom: 8px;
}

.tdc-podium-xp {
    font-size: 18px;
    font-weight: 900;
    color: #fff;
}

/* Table */
.tdc-leaderboard-card {
    background: #0e131b;
    border: 1px solid #233144;
    border-radius: 14px;
    padding: 28px;
    margin-bottom: 40px;
}

.tdc-leaderboard-card h2 {
    margin: 0 0 20px;
    font-size: 22px;
    color: #fff;
}

.tdc-table-responsive {
    overflow-x: auto;
}

.tdc-xp-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.tdc-xp-table th {
    padding: 12px 14px;
    text-align: left;
    color: #64748b;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid #1e293b;
}

.tdc-xp-table td {
    padding: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    vertical-align: middle;
}

.tdc-my-row {
    background: rgba(239, 22, 48, 0.08);
}

.tdc-rank-num {
    font-weight: 800;
    font-size: 14px;
    color: #94a3b8;
}

.tdc-table-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tdc-table-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #1e293b;
    border: 1px solid #334155;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
}

.tdc-table-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tdc-table-user strong {
    display: block;
    color: #fff;
    line-height: 1.2;
}

.tdc-table-user small {
    color: #64748b;
    font-size: 11px;
}

.tdc-table-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.tdc-mini-bar {
    width: 120px;
    height: 6px;
    background: #1e293b;
    border-radius: 999px;
    overflow: hidden;
}

.tdc-mini-bar-fill {
    height: 100%;
    border-radius: 999px;
}

.tdc-xp-points {
    color: #fff;
    font-size: 14px;
}

/* Achievements */
.tdc-achievements-section h2 {
    font-size: 22px;
    color: #fff;
    margin: 0 0 6px;
}

.tdc-achievements-section p {
    color: #94a3b8;
    font-size: 13px;
    margin: 0 0 20px;
}

.tdc-achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.tdc-achievement-card {
    background: #0e131b;
    border: 1px solid #233144;
    border-radius: 12px;
    padding: 18px;
    display: flex;
    gap: 14px;
    align-items: center;
    transition: transform 0.2s, border-color 0.2s;
}

.tdc-achievement-card:hover {
    border-color: #ef1630;
    transform: translateY(-2px);
}

.tdc-ach-icon {
    font-size: 32px;
    width: 52px;
    height: 52px;
    background: #151e2b;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tdc-ach-info h3 {
    margin: 0 0 4px;
    font-size: 15px;
    color: #fff;
}

.tdc-ach-info p {
    margin: 0 0 6px;
    font-size: 11px;
    color: #94a3b8;
    line-height: 1.4;
}

.tdc-ach-reward {
    display: inline-block;
    color: #eab308;
    font-size: 11px;
    font-weight: 800;
}

@media(max-width: 900px) {
    .tdc-xp-hero {
        grid-template-columns: 1fr;
    }
    .tdc-podium-grid {
        grid-template-columns: 1fr;
    }
}