/* ===================================================================
   Gimnasio App — Tenis & Padel
   =================================================================== */

.tp-page {
    padding: 12px 16px 110px;
}

/* ── Sport switcher ─────────────────────────────────────────────────── */
.tp-sport-switcher {
    display: flex;
    background: rgba(255,255,255,0.15);
    border-radius: 10px;
    padding: 3px;
    margin-bottom: 12px;
}

.tp-sport-btn {
    flex: 1;
    padding: 8px 12px;
    border: none;
    background: transparent;
    color: rgba(255,255,255,0.75);
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.18s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.tp-sport-btn.active {
    background: white;
    color: #4682B4;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* ── Tab bar ────────────────────────────────────────────────────────── */
.tp-tabs {
    display: flex;
    background: rgba(255,255,255,0.12);
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 16px;
    gap: 2px;
}

.tp-tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 8px 4px;
    border: none;
    background: transparent;
    color: rgba(255,255,255,0.65);
    font-size: 10px;
    font-weight: 500;
    border-radius: 9px;
    cursor: pointer;
    position: relative;
    transition: all 0.15s ease;
}

.tp-tab i {
    font-size: 18px;
}

.tp-tab.active {
    background: white;
    color: #4682B4;
    font-weight: 700;
}

.tp-badge-count {
    position: absolute;
    top: 4px;
    right: 8px;
    background: #ef4444;
    color: white;
    font-size: 9px;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
}

/* ── Alerts ─────────────────────────────────────────────────────────── */
.tp-alert-error {
    background: #fee2e2;
    color: #b91c1c;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.tp-alert-pending {
    background: rgba(255,255,255,0.95);
    border-left: 4px solid #f59e0b;
    color: #92400e;
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.tp-alert-pending i:first-child {
    color: #f59e0b;
    font-size: 18px;
}

.tp-alert-pending i:last-child {
    margin-left: auto;
    color: #b45309;
}

.tp-inactive-note {
    background: rgba(255,255,255,0.85);
    color: #475569;
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 16px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.tp-inactive-note i {
    color: #4682B4;
    flex-shrink: 0;
}

/* ── Posición card (dashboard) ──────────────────────────────────────── */
.tp-posicion-card {
    background: white;
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.tp-posicion-num {
    font-size: 48px;
    font-weight: 900;
    color: #4682B4;
    line-height: 1;
    min-width: 70px;
    text-align: center;
}

.tp-posicion-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tp-posicion-label {
    font-size: 12px;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tp-posicion-stats {
    display: flex;
    gap: 14px;
    font-size: 14px;
    color: #334155;
}

.tp-posicion-stats strong {
    font-weight: 700;
    color: #1e3a5f;
}

/* ── Section title ──────────────────────────────────────────────────── */
.tp-section-title {
    font-size: 13px;
    font-weight: 700;
    color: rgba(255,255,255,0.9);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 16px 0 8px;
}

/* ── Últimos partidos (dashboard) ───────────────────────────────────── */
.tp-partidos-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.tp-partido-row {
    background: white;
    border-radius: 10px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.08);
}

.tp-resultado-badge {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    flex-shrink: 0;
}

.tp-resultado-badge.victoria { background: #d1fae5; color: #065f46; }
.tp-resultado-badge.derrota  { background: #fee2e2; color: #991b1b; }
.tp-resultado-badge.empate   { background: #f1f5f9; color: #64748b; }

.tp-partido-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.tp-partido-rival {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
}

.tp-partido-fecha {
    font-size: 11px;
    color: #94a3b8;
}

.tp-partido-score {
    display: flex;
    gap: 4px;
    font-size: 11px;
    font-weight: 700;
    color: #475569;
}

/* ── Torneo mini (dashboard) ────────────────────────────────────────── */
.tp-torneo-mini {
    background: white;
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    box-shadow: 0 1px 6px rgba(0,0,0,0.08);
}

.tp-torneo-mini-icon {
    width: 36px;
    height: 36px;
    background: #e8f0f8;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4682B4;
    font-size: 16px;
    flex-shrink: 0;
}

.tp-torneo-mini-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.tp-torneo-mini-nombre {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
}

.tp-torneo-mini-fecha {
    font-size: 11px;
    color: #94a3b8;
}

/* ── Género switcher (escalerilla) ──────────────────────────────────── */
.tp-genero-switcher {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.tp-genero-btn {
    flex: 1;
    padding: 8px;
    border: 2px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.8);
    font-size: 13px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s;
}

.tp-genero-btn.active {
    background: white;
    color: #4682B4;
    border-color: white;
}

/* ── Escalerilla ────────────────────────────────────────────────────── */
.tp-esc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.tp-esc-titulo {
    font-size: 15px;
    font-weight: 700;
    color: white;
}

.tp-esc-count {
    font-size: 11px;
    color: rgba(255,255,255,0.7);
}

.tp-ranking-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tp-rank-row {
    background: white;
    border-radius: 10px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.08);
}

.tp-rank-row.mio {
    background: #e8f0f8;
    border-left: 4px solid #4682B4;
}

.tp-rank-pos {
    font-size: 16px;
    font-weight: 800;
    color: #64748b;
    min-width: 32px;
    text-align: center;
}

.tp-rank-pos.oro    { color: #b45309; }
.tp-rank-pos.plata  { color: #64748b; }
.tp-rank-pos.bronce { color: #92400e; }

.tp-rank-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.tp-rank-nombre {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
}

.tp-rank-stats {
    font-size: 11px;
    color: #94a3b8;
}

.tp-btn-desafiar {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: none;
    background: #4682B4;
    color: white;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s;
}

.tp-btn-desafiar:active { background: #3a6f9a; }

.tp-rank-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.tp-btn-whatsapp {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: #25D366;
    color: white;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    text-decoration: none;
    transition: background 0.15s;
}

.tp-btn-whatsapp:hover { background: #1ebe5a; color: white; }
.tp-btn-whatsapp:active { background: #179c48; }

.tp-rank-tu-badge {
    font-size: 10px;
    font-weight: 700;
    background: #4682B4;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
}

/* ── Estado badges ──────────────────────────────────────────────────── */
.tp-estado-badge {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    padding: 2px 8px;
    border-radius: 4px;
}

.tp-estado-badge.pendiente    { background: #fef9c3; color: #854d0e; }
.tp-estado-badge.aceptado     { background: #d1fae5; color: #065f46; }
.tp-estado-badge.verificacion { background: #dbeafe; color: #1e40af; }
.tp-estado-badge.resuelto     { background: #e8f0f8; color: #1e3a5f; }
.tp-estado-badge.rechazado    { background: #fee2e2; color: #991b1b; }
.tp-estado-badge.cancelado    { background: #f1f5f9; color: #64748b; }

/* ── Desafío cards ──────────────────────────────────────────────────── */
.tp-desafio-card {
    background: white;
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.tp-desafio-escalerilla-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #4682B4;
    background: rgba(70,130,180,0.1);
    border-radius: 4px;
    padding: 2px 8px;
    margin-bottom: 8px;
}

.tp-desafio-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.tp-desafio-rival {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
}

.tp-desafio-meta {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 6px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tp-desafio-contrapropuesta {
    background: #f8f9fa;
    border-left: 3px solid #94a3b8;
    padding: 6px 10px;
    border-radius: 0 6px 6px 0;
    font-size: 12px;
    color: #64748b;
    margin-bottom: 8px;
}

.tp-desafio-sets {
    display: flex;
    gap: 6px;
    margin-bottom: 10px;
}

.tp-set-chip {
    background: #e8f0f8;
    color: #4682B4;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
}

.tp-desafio-acciones {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.tp-desafio-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #f1f5f9;
}

.tp-desafio-sport {
    font-size: 11px;
    font-weight: 600;
    color: #4682B4;
    text-transform: uppercase;
}

.tp-desafio-fecha {
    font-size: 11px;
    color: #94a3b8;
}

/* ── Torneo cards ───────────────────────────────────────────────────── */
.tp-torneo-card {
    background: white;
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.tp-torneo-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.tp-torneo-nombre {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
    flex: 1;
}

.tp-torneo-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 12px;
    color: #64748b;
    margin-bottom: 12px;
}

.tp-torneo-meta i { color: #4682B4; }

.tp-torneo-link {
    color: #1e293b;
    text-decoration: none;
}
.tp-torneo-link:hover { color: #4682B4; text-decoration: underline; }

.tp-torneo-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.tp-torneo-inscrito-badge {
    font-size: 12px;
    font-weight: 600;
    color: #16a34a;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ── Botones de acción ──────────────────────────────────────────────── */
.tp-btn-primary {
    flex: 1;
    padding: 12px;
    background: #4682B4;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: background 0.15s;
}

.tp-btn-primary:active { background: #3a6f9a; }
.tp-btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }

.tp-btn-primary-sm {
    padding: 8px 14px;
    background: #4682B4;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: background 0.15s;
}

.tp-btn-primary-sm:active { background: #3a6f9a; }

.tp-btn-secondary-sm {
    padding: 8px 14px;
    background: #f1f5f9;
    color: #475569;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    transition: background 0.15s;
}
.tp-btn-secondary-sm:hover { background: #e2e8f0; color: #1e293b; }
.tp-btn-secondary-sm:active { background: #cbd5e1; }

.tp-btn-secondary {
    flex: 1;
    padding: 12px;
    background: #f1f5f9;
    color: #475569;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}

.tp-btn-secondary:active { background: #e2e8f0; }

.tp-btn-accept {
    flex: 1;
    padding: 8px 12px;
    background: #d1fae5;
    color: #065f46;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    justify-content: center;
}

.tp-btn-reject {
    flex: 1;
    padding: 8px 12px;
    background: #fee2e2;
    color: #991b1b;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    justify-content: center;
}

.tp-btn-danger {
    flex: 1;
    padding: 12px;
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.tp-btn-link {
    background: none;
    border: none;
    color: #4682B4;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 0;
}

/* ── Modal ──────────────────────────────────────────────────────────── */
.tp-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 200;
}

.tp-modal {
    position: fixed;
    bottom: calc(80px + env(safe-area-inset-bottom));
    left: 0;
    right: 0;
    background: white;
    border-radius: 20px 20px 0 0;
    z-index: 201;
    max-height: 85vh;
    overflow-y: auto;
    animation: tp-slide-up 0.25s ease;
}

@keyframes tp-slide-up {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
}

.tp-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px 12px;
    border-bottom: 1px solid #f1f5f9;
}

.tp-modal-title {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
}

.tp-modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: #f1f5f9;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #64748b;
}

.tp-modal-body {
    padding: 16px 20px;
}

.tp-modal-body p {
    font-size: 14px;
    color: #334155;
    margin-bottom: 12px;
}

.tp-modal-meta {
    font-size: 13px;
    color: #64748b;
}

.tp-modal-subtitle {
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.tp-modal-footer {
    display: flex;
    gap: 10px;
    padding: 12px 20px 20px;
}

/* ── Set score input ────────────────────────────────────────────────── */
.tp-set-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.tp-set-label {
    font-size: 13px;
    color: #64748b;
    min-width: 40px;
}

.tp-set-input {
    width: 50px;
    padding: 6px 8px;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    color: #1e293b;
}

.tp-set-sep {
    color: #94a3b8;
    font-size: 14px;
    font-weight: 700;
}

.tp-set-players-header {
    margin-bottom: 4px;
}

.tp-set-player-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
    width: 50px;
    text-align: center;
}

.tp-sets-display {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.tp-set-chip-lg {
    background: #e8f0f8;
    color: #1e3a5f;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
}

/* ── Ganador selector ───────────────────────────────────────────────── */
.tp-ganador-selector {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.tp-ganador-btn {
    flex: 1;
    padding: 10px 8px;
    border: 2px solid #cbd5e1;
    background: white;
    color: #475569;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-overflow: ellipsis;
    overflow: hidden;
}

.tp-ganador-btn.selected {
    border-color: #4682B4;
    background: #e8f0f8;
    color: #4682B4;
}

/* ── Activation form ────────────────────────────────────────────────── */
.tp-activation {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 32px 0 16px;
}

.tp-activation-icon {
    width: 72px;
    height: 72px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: white;
    margin-bottom: 16px;
}

.tp-activation-title {
    font-size: 20px;
    font-weight: 800;
    color: white;
    margin-bottom: 8px;
    text-align: center;
}

.tp-activation-desc {
    font-size: 13px;
    color: rgba(255,255,255,0.8);
    text-align: center;
    margin-bottom: 24px;
    max-width: 280px;
}

.tp-activation-form {
    width: 100%;
    max-width: 360px;
    background: white;
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

/* ── Shared form elements ───────────────────────────────────────────── */
.tp-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tp-form-label {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
}

.tp-form-optional {
    font-size: 11px;
    font-weight: 400;
    color: #94a3b8;
}

.tp-form-input {
    padding: 10px 12px;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    font-size: 14px;
    color: #1e293b;
    outline: none;
    transition: border-color 0.15s;
    width: 100%;
    box-sizing: border-box;
}

.tp-form-input:focus { border-color: #4682B4; }

.tp-form-textarea {
    padding: 10px 12px;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    font-size: 14px;
    color: #1e293b;
    resize: vertical;
    outline: none;
    width: 100%;
    box-sizing: border-box;
    font-family: inherit;
}

.tp-form-textarea:focus { border-color: #4682B4; }

.tp-check-group {
    display: flex;
    gap: 8px;
}

.tp-check-pill {
    flex: 1;
    padding: 10px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    text-align: center;
    cursor: pointer;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.tp-check-pill input { display: none; }

.tp-check-pill.selected {
    border-color: #4682B4;
    background: #e8f0f8;
    color: #4682B4;
}

/* ── Spinner pequeño ────────────────────────────────────────────────── */
.tp-spinner-sm {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255,255,255,0.4);
    border-top-color: white;
    border-radius: 50%;
    animation: tp-spin 0.7s linear infinite;
}

@keyframes tp-spin {
    to { transform: rotate(360deg); }
}

/* ── Historial stats ────────────────────────────────────────────────── */
.tp-historial-stats {
    display: flex;
    background: rgba(255,255,255,0.18);
    border-radius: 14px;
    padding: 16px 8px;
    margin-bottom: 16px;
    gap: 0;
}

.tp-hstat {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    position: relative;
}

.tp-hstat:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background: rgba(255,255,255,0.25);
}

.tp-hstat-num {
    font-size: 28px;
    font-weight: 800;
    color: white;
    line-height: 1;
}

.tp-hstat-num small {
    font-size: 16px;
    font-weight: 700;
}

.tp-hstat-v { color: #4ade80; }
.tp-hstat-d { color: #f87171; }

.tp-hstat-label {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ── Filtro pills ───────────────────────────────────────────────────── */
.tp-filtro-pills {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.tp-filtro-pill {
    padding: 6px 14px;
    border: 1.5px solid rgba(255,255,255,0.35);
    border-radius: 20px;
    background: transparent;
    color: rgba(255,255,255,0.8);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
}

.tp-filtro-pill.active {
    background: white;
    border-color: white;
    color: #4682B4;
}

/* ── Torneos — inscrito ─────────────────────────────────────────────── */
.tp-torneo-mio {
    border-left: 3px solid #4682B4;
}

.tp-torneo-inscrito-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 600;
    color: #4682B4;
    background: #e8f0f8;
    border-radius: 6px;
    padding: 4px 10px;
}

/* ── Duplas pádel ── */
.tp-rank-row--dupla .tp-rank-nombre {
    font-size: 0.82rem;
}

.tp-rank-tu-badge-inline {
    font-size: 0.72rem;
    color: var(--steel-600);
    font-weight: 500;
}

.tp-inscripcion-prompt {
    background: linear-gradient(135deg, var(--steel-50) 0%, #f0f7ff 100%);
    border: 1.5px dashed var(--steel-300);
    border-radius: 12px;
    padding: 1.25rem 1rem;
    text-align: center;
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.tp-inscripcion-prompt-icon {
    width: 48px;
    height: 48px;
    background: var(--steel-100);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--steel-600);
    margin-bottom: 0.25rem;
}

.tp-inscripcion-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--steel-800);
    margin: 0;
}

.tp-inscripcion-desc {
    color: var(--steel-500);
    font-size: 0.8rem;
    margin: 0;
}

.tp-inscripcion-prompt .tp-btn-inscribir {
    flex: unset;
    width: auto;
    padding: 10px 20px;
    background: var(--steel-600);
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: background 0.15s, transform 0.1s;
    margin-top: 0.25rem;
}

.tp-inscripcion-prompt .tp-btn-inscribir:hover { background: var(--steel-700); transform: translateY(-1px); }
.tp-inscripcion-prompt .tp-btn-inscribir:active { transform: translateY(0); }
.tp-inscripcion-prompt .tp-btn-inscribir:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* ── Banner de pausa ─────────────────────────────────────────────────── */
/* ── Banner de pausa activa ── */
.tp-pausa-banner {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    background: linear-gradient(135deg, #fefce8 0%, #fffbeb 100%);
    border: 1.5px solid #fde68a;
    border-radius: 14px;
    padding: 1rem 1.125rem;
    margin-bottom: 1rem;
    position: relative;
    overflow: hidden;
}
/* Borde superior animado — shimmer dorado */
.tp-pausa-banner::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #fbbf24 0%, #f59e0b 40%, #fde68a 60%, #f59e0b 80%, #fbbf24 100%);
    background-size: 200% 100%;
    animation: tp-pausa-shimmer 2.5s infinite linear;
    border-radius: 14px 14px 0 0;
}
@keyframes tp-pausa-shimmer {
    0%   { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}
.tp-pausa-banner.expirada {
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    border-color: #fb923c;
}
.tp-pausa-banner.expirada::before {
    background: linear-gradient(90deg, #ea580c, #f97316, #fed7aa, #f97316, #ea580c);
    background-size: 200% 100%;
}
.tp-pausa-banner__icon {
    font-size: 1.75rem;
    color: #d97706;
    flex-shrink: 0;
    animation: tp-pausa-pulse 2s infinite ease-in-out;
}
@keyframes tp-pausa-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.65; transform: scale(0.9); }
}
.tp-pausa-banner.expirada .tp-pausa-banner__icon {
    color: #ea580c;
    animation: none;
}
.tp-pausa-banner__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}
.tp-pausa-banner__title {
    font-size: 0.875rem;
    font-weight: 700;
    color: #78350f;
    letter-spacing: -0.01em;
}
.tp-pausa-banner.expirada .tp-pausa-banner__title { color: #9a3412; }
.tp-pausa-banner__desc {
    font-size: 0.775rem;
    color: #a16207;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.tp-pausa-banner__btn {
    flex-shrink: 0;
    padding: 7px 14px;
    background: #d97706;
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
    box-shadow: 0 2px 8px rgba(217,119,6,0.3);
}
.tp-pausa-banner__btn:hover:not(:disabled) {
    background: #b45309;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(217,119,6,0.4);
}
.tp-pausa-banner.expirada .tp-pausa-banner__btn {
    background: #ea580c;
    box-shadow: 0 2px 8px rgba(234,88,12,0.3);
}
.tp-pausa-banner.expirada .tp-pausa-banner__btn:hover:not(:disabled) {
    background: #c2410c;
}
.tp-pausa-banner__btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* ── Zona de pausa — al fondo del dashboard ── */
.tp-pausa-zone {
    margin-top: 2rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255,255,255,0.12);
    display: flex;
    justify-content: center;
}

/* ── Botón "Pausar mi participación" — ghost sutil ── */
.tp-btn-pausa {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: transparent;
    color: rgba(255,255,255,0.45);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: 0.01em;
}
.tp-btn-pausa:hover {
    border-color: rgba(251,191,36,0.45);
    color: rgba(251,191,36,0.85);
    background: rgba(251,191,36,0.07);
}
.tp-btn-pausa:active { opacity: 0.7; }

/* ── Modal de pausa con cabecera amber ── */
.tp-modal--pausa {
    border-top: 3px solid #fbbf24;
}
.tp-modal--pausa .tp-modal-header {
    background: linear-gradient(135deg, #fffbeb 0%, #fef9c3 100%);
    border-bottom: 1.5px solid #fde68a;
}
.tp-modal--pausa .tp-modal-title {
    color: #78350f;
}
.tp-modal--pausa .tp-modal-close {
    color: #a16207;
}
.tp-modal--pausa .tp-modal-close:hover {
    background: #fde68a;
    color: #78350f;
}

/* Cat badges en ranking pádel */
.tp-cat-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.1rem 0.4rem;
    border-radius: 3px;
    margin-left: 0.3rem;
}

.tp-cat-badge--a { background: #fef3c7; color: #92400e; }
.tp-cat-badge--b { background: #dbeafe; color: #1e40af; }
.tp-cat-badge--c { background: #f1f5f9; color: #475569; }

/* Modal jugadores para dupla */
.tp-jugadores-list {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    max-height: 220px;
    overflow-y: auto;
    margin-top: 0.75rem;
}

.tp-jugador-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--steel-200);
    border-radius: 6px;
    background: white;
    cursor: pointer;
    font-size: 0.88rem;
    transition: background 0.15s;
    text-align: left;
    width: 100%;
}

.tp-jugador-item:hover {
    background: var(--steel-50);
}

.tp-jugador-item.selected {
    border-color: var(--steel-500);
    background: var(--steel-50);
    font-weight: 500;
}

.tp-empty-msg {
    color: var(--steel-500);
    font-size: 0.85rem;
    text-align: center;
    margin-top: 0.75rem;
}

/* ── Desafíos dupla — badge deporte ── */
.tp-desafio-header-right {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.tp-badge-deporte {
    font-size: 0.68rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.tp-badge-padel {
    background: var(--steel-100);
    color: var(--steel-700);
}

/* ── Dashboard — card dupla pádel ── */
.tp-dupla-card {
    position: relative;
}

/* ── Sport switcher — deporte inactivo ── */
.tp-sport-btn.disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

/* ── Timer de verificación ── */
.tp-timeout-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 700;
    background: #dbeafe;
    color: #1e40af;
    border-radius: 6px;
    padding: 3px 8px;
    margin-top: 6px;
}

.tp-timeout-badge.expired {
    background: #fee2e2;
    color: #991b1b;
}

/* ── Racha badge en ranking ── */
.tp-racha-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    margin-top: 2px;
}

.tp-racha-badge.positiva {
    background: #d1fae5;
    color: #065f46;
}

.tp-racha-badge.negativa {
    background: #fee2e2;
    color: #991b1b;
}

/* ── Aviso desafío activo (solo 1 a la vez) ── */
.tp-aviso-desafio-activo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #92400e;
    background: #fef3c7;
    border: 1px solid #fcd34d;
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 12px;
}

/* ── ELO oculto (toggle fácil: cambiar display a inline/inline-flex para reactivar) ── */
.tp-elo-hidden {
    display: none !important;
}

/* ── Mejor posición histórica ── */
.tp-mejor-posicion {
    font-size: 11px;
    color: #b45309;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
}

/* ── Motivo rechazo en historial ── */
.tp-motivo-rechazo {
    display: block;
    font-size: 11px;
    color: #991b1b;
    background: #fee2e2;
    border-radius: 4px;
    padding: 3px 8px;
    margin-top: 4px;
}

.tp-badge-pendiente {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    color: #f59e0b;
    font-size: 1rem;
}

.tp-btn-warning {
    background: var(--warning-600, #b45309) !important;
}
.tp-btn-warning:hover:not(:disabled) {
    background: #92400e !important;
}

/* ── Botón cancelar/retirar desafío ── */
.tp-btn-cancel {
    flex: 1;
    padding: 8px 12px;
    background: #f1f5f9;
    color: #64748b;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    justify-content: center;
    transition: all 0.15s;
}
.tp-btn-cancel:hover:not(:disabled) {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #991b1b;
}
.tp-btn-cancel:disabled { opacity: 0.6; cursor: not-allowed; }

/* ── Alerta "reportar resultado" en dashboard ── */
.tp-reportar-alert {
    background: rgba(255,255,255,0.95);
    border-left: 4px solid #4682B4;
    color: #1e3a5f;
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}
.tp-reportar-alert i:first-child {
    color: #4682B4;
    font-size: 18px;
}
.tp-reportar-alert i:last-child {
    margin-left: auto;
    color: #3a6f9a;
}
.tp-reportar-alert span { flex: 1; }

/* ── Escalerilla header con botón reglas ── */
.tp-esc-header-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tp-btn-reglas {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: rgba(255,255,255,0.18);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 16px;
    color: rgba(255,255,255,0.9);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
}
.tp-btn-reglas:hover {
    background: rgba(255,255,255,0.28);
    color: white;
}

/* ── Modal reglas ── */
.tp-modal--reglas {
    border-top: 3px solid #4682B4;
}
.tp-modal--reglas .tp-modal-header {
    background: linear-gradient(135deg, #e8f0f8 0%, #f0f7ff 100%);
    border-bottom: 1.5px solid #bfdbfe;
}
.tp-modal--reglas .tp-modal-title { color: #1e3a5f; }
.tp-modal--reglas .tp-modal-close { color: #3a6f9a; }

.tp-reglas-body {
    font-size: 13px;
    line-height: 1.6;
    color: #334155;
}
.tp-reglas-body h2, .tp-reglas-body h3 {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
    margin: 1rem 0 0.4rem;
    border-bottom: 1.5px solid #e2e8f0;
    padding-bottom: 4px;
}
.tp-reglas-body h4 { font-size: 13px; font-weight: 700; color: #4682B4; margin: 0.75rem 0 0.3rem; }
.tp-reglas-body ul, .tp-reglas-body ol { padding-left: 1.25rem; margin-bottom: 0.75rem; }
.tp-reglas-body li { margin-bottom: 4px; }
.tp-reglas-body p { margin-bottom: 0.75rem; }
.tp-reglas-body strong { color: #1e293b; }
.tp-reglas-body table { width: 100%; border-collapse: collapse; margin-bottom: 0.75rem; font-size: 12px; }
.tp-reglas-body th { background: #e8f0f8; color: #1e3a5f; font-weight: 700; padding: 6px 8px; text-align: left; }
.tp-reglas-body td { padding: 5px 8px; border-bottom: 1px solid #f1f5f9; }

/* ── Info card en modal de pausa ── */
.tp-pausa-info-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.tp-pausa-info-item {
    font-size: 12.5px;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ── Escalerilla: filas clickeables ─────────────────────────────────── */
.tp-rank-row.clickable {
    cursor: pointer;
    transition: background 0.15s ease;
}
.tp-rank-row.clickable:hover  { background: rgba(255,255,255,0.05); }
.tp-rank-row.clickable:active { background: rgba(255,255,255,0.09); }

/* ── Modal perfil jugador ────────────────────────────────────────────── */
.tp-modal--perfil {
    border-top: 3px solid #4682B4;
}
.tp-modal--perfil .tp-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}
.tp-perfil-header-name {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
    flex: 1;
}
.tp-perfil-pos {
    font-size: 1.05rem;
    font-weight: 800;
    color: #4682B4;
    flex-shrink: 0;
}
.tp-perfil-nombre {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.tp-perfil-stats {
    display: flex;
    gap: 0.25rem;
    justify-content: space-around;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 6px;
    margin-bottom: 1rem;
}
.tp-perfil-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    flex: 1;
}
.tp-perfil-stat-val {
    font-size: 1.2rem;
    font-weight: 800;
    color: #1e293b;
}
.tp-perfil-stat-label {
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
}
.tp-perfil-section-title {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #94a3b8;
    margin: 0 0 0.5rem;
}
.tp-perfil-body {
    max-height: 55vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.tp-perfil-empty {
    font-size: 0.85rem;
    color: #94a3b8;
    text-align: center;
    padding: 1.5rem 0;
    font-style: italic;
}
.tp-pausa-info-item i { color: #4682B4; font-size: 14px; flex-shrink: 0; }

/* ════════════════════════════════════════════════════════════════
   FLAT STEELBLUE — app socio Tenis & Pádel (reskin 2026-06-04)
   Quita glassmorphism del toggle, sub-nav, pill "Reglas" y stats.
   Superficies sólidas claras + activo steelblue. Scope .tp-page.
   (Los empty states usan .empty-state → ya cubierto en club-pages.css)
   ════════════════════════════════════════════════════════════════ */
.tp-page .tp-sport-switcher { background: #eef3f8; border: 1px solid #dbe3ec; }
.tp-page .tp-sport-btn { color: #3a5268; }
.tp-page .tp-sport-btn.active { background: #4682B4; color: #fff; box-shadow: none; }
.tp-page .tp-tabs { background: #eef3f8; border: 1px solid #dbe3ec; }
.tp-page .tp-tab { color: #3a5268; }
.tp-page .tp-tab.active { background: #4682B4; color: #fff; }
.tp-page .tp-btn-reglas { background: #eef3f8; border: 1px solid #cdd9e5; color: #3a5268; }
.tp-page .tp-btn-reglas:hover { background: #e2ebf3; color: #2f5a7e; }
.tp-page .tp-historial-stats { background: #ffffff; border: 1px solid #dbe3ec; }
.tp-page .tp-hstat:not(:last-child)::after { background: #dbe3ec; }
