/* ==========================================================
   ADMINISTRACIÓN ZERO MIEDO FC - ESTILOS MOBILE-FIRST
   ========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&family=Inter:wght@400;500;600;700&display=swap');

:root {
    --bg-main: #0B0D12;
    --bg-surface: #141720;
    --bg-card: #1B202D;
    --bg-card-hover: #222938;
    --bg-glass: rgba(27, 32, 45, 0.75);
    
    --primary-red: #E50914;
    --primary-red-hover: #F40612;
    --primary-red-glow: rgba(229, 9, 20, 0.35);
    --gold-accent: #FFB800;
    --gold-glow: rgba(255, 184, 0, 0.3);
    
    --text-main: #FFFFFF;
    --text-muted: #9BA3B5;
    --text-dark: #0B0D12;
    
    --color-debt: #FF3B30;
    --color-debt-bg: rgba(255, 59, 48, 0.12);
    --color-credit: #34C759;
    --color-credit-bg: rgba(52, 199, 89, 0.12);
    --color-warning: #FF9500;
    --color-warning-bg: rgba(255, 149, 0, 0.12);
    
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-red: rgba(229, 9, 20, 0.4);
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    
    --shadow-card: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px var(--primary-red-glow);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.5;
    min-height: 100vh;
    padding-bottom: 90px; /* Espacio para barra de navegación móvil */
    overflow-x: hidden;
}

/* ==========================================================
   CABECERA GLOBAL OBLIGATORIA (ZeroMiedoFC.jpeg)
   ========================================================== */
.header-hero {
    position: relative;
    width: 100%;
    background-color: #050608;
    overflow: hidden;
    border-bottom: 2px solid var(--primary-red);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

.header-hero-img-container {
    width: 100%;
    max-height: 180px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle at center, #1a0808 0%, #050608 100%);
    position: relative;
}

.header-hero-img {
    width: 100%;
    max-height: 180px;
    object-fit: contain;
    object-position: center;
    display: block;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.7));
}

.header-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(11,13,18,0.2) 0%, rgba(11,13,18,0.85) 100%);
    pointer-events: none;
}

.header-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    z-index: 10;
    background: linear-gradient(180deg, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0) 100%);
}

.header-logo-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-main);
}

.header-logo-badge img {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1.5px solid var(--primary-red);
    box-shadow: 0 0 10px var(--primary-red-glow);
    background: #000;
    object-fit: cover;
}

.header-title-wrap {
    display: flex;
    flex-direction: column;
}

.header-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #FFF;
    text-shadow: 0 2px 4px rgba(0,0,0,0.9);
}

.header-subtitle {
    font-size: 0.72rem;
    color: var(--gold-accent);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.header-user-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-user-badge {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-subtle);
    color: #fff;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-logout {
    background: rgba(229, 9, 20, 0.2);
    border: 1px solid var(--border-red);
    color: #ff6b6b;
    padding: 5px 8px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-logout:hover {
    background: var(--primary-red);
    color: #fff;
}

/* ==========================================================
   CONTENEDOR PRINCIPAL
   ========================================================== */
.app-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 16px 14px;
}

/* ==========================================================
   ALERTA DEUDORES Y RESUMEN RÁPIDO
   ========================================================== */
.alert-deudores-banner {
    background: linear-gradient(135deg, rgba(229, 9, 20, 0.18) 0%, rgba(20, 23, 32, 0.95) 100%);
    border: 1px solid var(--border-red);
    border-left: 4px solid var(--primary-red);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    margin-bottom: 18px;
    box-shadow: 0 4px 18px rgba(229, 9, 20, 0.15);
}

.alert-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.alert-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    color: #FFF;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ratita-pill {
    background: rgba(255, 59, 48, 0.25);
    color: #FF5A50;
    font-weight: 700;
    font-size: 0.78rem;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 59, 48, 0.4);
}

.ratita-pill.al-corriente {
    background: rgba(52, 199, 89, 0.2);
    color: #34C759;
    border-color: rgba(52, 199, 89, 0.4);
}

.deudores-chips-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.deudor-chip {
    background: rgba(11, 13, 18, 0.85);
    border: 1px solid rgba(255, 59, 48, 0.35);
    border-radius: var(--radius-full);
    padding: 6px 12px 6px 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: transform 0.15s ease, border-color 0.15s ease;
}

.deudor-chip:active {
    transform: scale(0.96);
}

.deudor-chip .chip-ratita {
    font-size: 1.1rem;
    filter: drop-shadow(0 0 4px rgba(255, 100, 100, 0.5));
}

.deudor-chip .chip-name {
    font-weight: 600;
    font-size: 0.85rem;
    color: #FFF;
}

.deudor-chip .chip-amount {
    font-weight: 800;
    font-size: 0.85rem;
    color: #FF453A;
    background: rgba(255, 59, 48, 0.15);
    padding: 1px 6px;
    border-radius: var(--radius-full);
}

/* ==========================================================
   ESTADÍSTICAS RÁPIDAS
   ========================================================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

@media (min-width: 600px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.stat-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.stat-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.stat-value {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 800;
    margin-top: 4px;
    color: #FFF;
}

.stat-value.debt {
    color: var(--color-debt);
}

.stat-value.credit {
    color: var(--color-credit);
}

.stat-value.gold {
    color: var(--gold-accent);
}

/* ==========================================================
   PRÓXIMO PARTIDO CARD
   ========================================================== */
.match-highlight-card {
    background: linear-gradient(135deg, #1B202D 0%, #12151E 100%);
    border: 1px solid rgba(255, 184, 0, 0.3);
    border-radius: var(--radius-lg);
    padding: 16px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
}

.match-highlight-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(229, 9, 20, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.match-badge-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 184, 0, 0.15);
    border: 1px solid rgba(255, 184, 0, 0.4);
    color: var(--gold-accent);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    margin-bottom: 8px;
}

.match-rival-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    color: #FFF;
    display: flex;
    align-items: center;
    gap: 8px;
}

.match-details-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border-subtle);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.match-details-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.match-details-item strong {
    color: #FFF;
}

/* ==========================================================
   ESTAMPILLAS DE ÁLBUM DE JUGADORES (CARDS)
   ========================================================== */
.section-title-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #FFF;
    display: flex;
    align-items: center;
    gap: 6px;
}

.filters-bar {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

@media (min-width: 640px) {
    .filters-bar {
        flex-direction: row;
    }
}

.search-input-wrap {
    flex: 1;
    position: relative;
}

.search-input {
    width: 100%;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 10px 14px 10px 38px;
    color: #FFF;
    font-size: 0.9rem;
    font-family: var(--font-body);
    transition: all 0.2s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 0 0 12px var(--primary-red-glow);
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.95rem;
}

.filter-pills {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.filter-btn {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    padding: 8px 14px;
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s ease;
}

.filter-btn.active, .filter-btn:hover {
    background: var(--primary-red);
    border-color: var(--primary-red);
    color: #FFF;
    box-shadow: 0 2px 10px var(--primary-red-glow);
}

/* Grid de Estampillas */
.players-album-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

@media (min-width: 500px) {
    .players-album-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 768px) {
    .players-album-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
    }
}

/* Tarjeta Estilo Estampilla Panini / Cromo Coleccionable */
.stamp-card {
    background: linear-gradient(165deg, #1C212E 0%, #10131B 100%);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease, border-color 0.2s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.6);
}

.stamp-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary-red);
    box-shadow: 0 12px 24px -6px rgba(229, 9, 20, 0.35);
}

.stamp-card.has-ratita {
    border-color: rgba(255, 59, 48, 0.55);
}

.stamp-header-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 5;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    padding: 2px 7px;
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--gold-accent);
}

.stamp-ratita-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    z-index: 5;
    font-size: 1.4rem;
    animation: ratitaBounce 2s infinite ease-in-out;
    filter: drop-shadow(0 2px 6px rgba(255, 59, 48, 0.8));
}

@keyframes ratitaBounce {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-3px) scale(1.1); }
}

.stamp-photo-box {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #0D0F15;
    overflow: hidden;
}

.stamp-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.stamp-card:hover .stamp-photo {
    transform: scale(1.05);
}

.stamp-gradient-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, transparent 0%, rgba(16, 19, 27, 0.95) 100%);
}

.stamp-info {
    padding: 10px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

.stamp-name {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.92rem;
    color: #FFF;
    line-height: 1.25;
    display: flex;
    align-items: center;
    gap: 4px;
}

.stamp-pos {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.stamp-balance-badge {
    margin-top: 8px;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    font-size: 0.76rem;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stamp-balance-badge.debt {
    background: var(--color-debt-bg);
    color: var(--color-debt);
    border: 1px solid rgba(255, 59, 48, 0.3);
}

.stamp-balance-badge.credit {
    background: var(--color-credit-bg);
    color: var(--color-credit);
    border: 1px solid rgba(52, 199, 89, 0.3);
}

.stamp-balance-badge.ok {
    background: rgba(255, 255, 255, 0.05);
    color: #A0AEC0;
}

/* ==========================================================
   LISTA DE PARTIDOS Y CHECKS
   ========================================================== */
.match-card-item {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 14px;
    margin-bottom: 12px;
}

.match-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.match-date-badge {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.95rem;
    color: #FFF;
    display: flex;
    align-items: center;
    gap: 6px;
}

.match-time-tag {
    background: rgba(229, 9, 20, 0.2);
    border: 1px solid var(--border-red);
    color: #FFF;
    font-weight: 700;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: var(--radius-full);
}

.match-rival-text {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gold-accent);
}

/* Checklist de jugadores para el partido */
.players-checklist {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.check-player-row {
    background: rgba(11, 13, 18, 0.6);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.check-player-row:hover {
    background: rgba(255, 255, 255, 0.04);
}

.check-player-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.check-player-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border-subtle);
}

.check-player-name {
    font-weight: 600;
    font-size: 0.88rem;
    color: #FFF;
    display: flex;
    align-items: center;
    gap: 4px;
}

.custom-checkbox {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    border: 2px solid var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.check-player-row.checked .custom-checkbox {
    background: var(--color-credit);
    border-color: var(--color-credit);
}

.check-player-row.checked .custom-checkbox::after {
    content: '✓';
    color: #000;
    font-weight: 900;
    font-size: 0.85rem;
}

/* ==========================================================
   TABLAS Y TRANSACCIONES
   ========================================================== */
.history-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 16px;
}

.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    border-bottom: 1px solid var(--border-subtle);
}

.history-item:last-child {
    border-bottom: none;
}

.history-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.history-concept-badge {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    background: rgba(255, 255, 255, 0.05);
}

.history-info {
    display: flex;
    flex-direction: column;
}

.history-player {
    font-weight: 700;
    font-size: 0.9rem;
    color: #FFF;
}

.history-concept {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.history-right {
    text-align: right;
}

.history-amount {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--color-credit);
}

.history-date {
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* ==========================================================
   BARRA DE NAVEGACIÓN INFERIOR (MOBILE BOTTOM NAV)
   ========================================================== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(16, 19, 27, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-around;
    padding: 8px 6px calc(8px + env(safe-area-inset-bottom, 0px));
    z-index: 1000;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 10px;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    text-decoration: none;
}

.nav-item .nav-icon {
    font-size: 1.25rem;
    transition: transform 0.2s ease;
}

.nav-item.active {
    color: #FFF;
}

.nav-item.active .nav-icon {
    transform: translateY(-2px);
    filter: drop-shadow(0 0 8px var(--primary-red));
}

.nav-item.active::after {
    content: '';
    width: 16px;
    height: 3px;
    background: var(--primary-red);
    border-radius: var(--radius-full);
}

/* ==========================================================
   MODALES Y FORMULARIOS
   ========================================================== */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: none;
    justify-content: center;
    align-items: flex-end;
    padding: 0;
    opacity: 0;
    transition: opacity 0.25s ease;
}

@media (min-width: 600px) {
    .modal-backdrop {
        align-items: center;
        padding: 20px;
    }
}

.modal-backdrop.open {
    display: flex;
    opacity: 1;
}

.modal-sheet {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    width: 100%;
    max-width: 540px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 20px 18px 30px;
    position: relative;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.8);
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 600px) {
    .modal-sheet {
        border-radius: var(--radius-lg);
        transform: translateY(20px);
    }
}

.modal-backdrop.open .modal-sheet {
    transform: translateY(0);
}

.modal-drag-indicator {
    width: 40px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    margin: 0 auto 14px;
}

@media (min-width: 600px) {
    .modal-drag-indicator {
        display: none;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-subtle);
}

.modal-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 800;
    color: #FFF;
}

.modal-close-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #FFF;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Campos de Formulario */
.form-group {
    margin-bottom: 14px;
}

.form-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.form-control {
    width: 100%;
    background: var(--bg-main);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    color: #FFF;
    font-family: var(--font-body);
    font-size: 0.92rem;
    transition: all 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 0 0 10px var(--primary-red-glow);
}

select.form-control option {
    background: var(--bg-surface);
    color: #FFF;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-red) 0%, #B30710 100%);
    border: none;
    color: #FFF;
    padding: 12px 18px;
    border-radius: var(--radius-md);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.4px;
    cursor: pointer;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 15px var(--primary-red-glow);
    transition: all 0.2s ease;
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-subtle);
    color: #FFF;
    padding: 10px 16px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.14);
}

/* Toast Notificaciones */
.toast-notice {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-30px);
    background: #1B202D;
    color: #FFF;
    border: 1px solid var(--primary-red);
    border-radius: var(--radius-full);
    padding: 10px 20px;
    font-size: 0.88rem;
    font-weight: 600;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
    z-index: 3000;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    gap: 8px;
}

.toast-notice.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* ==========================================================
   ESTILOS PARA EDICIÓN DE PAGOS, ESTADOS Y ABONOS
   ========================================================== */

/* Badges de Estado de Partido */
.match-status-badge {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    display: inline-flex;
    align-items: center;
}

.match-status-badge.programado {
    background: rgba(255, 184, 0, 0.15);
    color: var(--gold-accent);
    border: 1px solid rgba(255, 184, 0, 0.3);
}

.match-status-badge.finalizado {
    background: rgba(52, 199, 89, 0.15);
    color: var(--color-credit);
    border: 1px solid rgba(52, 199, 89, 0.3);
}

.match-card-item.match-finalizado {
    border-left: 3px solid var(--color-credit);
}

/* Botones de acción rápida para Pagos */
.btn-action-pago {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-subtle);
    color: #E2E8F0;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.btn-action-pago:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #FFF;
    border-color: rgba(255, 255, 255, 0.25);
}

.btn-action-pago.btn-delete-pago:hover {
    background: rgba(255, 59, 48, 0.2);
    border-color: #FF3B30;
    color: #FF6B6B;
}

/* Badges y botones de la lista de partido */
.badge-pago-ok {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-credit);
    background: rgba(52, 199, 89, 0.12);
    border: 1px solid rgba(52, 199, 89, 0.25);
    padding: 2px 7px;
    border-radius: 6px;
}

.btn-pago-extra {
    background: rgba(255, 184, 0, 0.12);
    border: 1px solid rgba(255, 184, 0, 0.3);
    color: var(--gold-accent);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-pago-extra:hover {
    background: rgba(255, 184, 0, 0.25);
    transform: scale(1.02);
}

.btn-pago-restar {
    background: rgba(255, 59, 48, 0.12);
    border: 1px solid rgba(255, 59, 48, 0.35);
    color: #FF6B6B;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-pago-restar:hover {
    background: rgba(255, 59, 48, 0.28);
    border-color: #FF3B30;
    color: #FFF;
    transform: scale(1.02);
}

