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

:root {
    --bs-secondary-color: #9DB4A9;
    --bs-body-color: #F5F5ED;
    --contra-bg-dark: #07100D;
    --contra-surface: #0E1F1A;
    --contra-surface-card: #122821;
    --contra-surface-elevated: #18352C;
    --contra-surface-glass: rgba(14, 31, 26, 0.85);
    --contra-gold: #E5A93C;
    --contra-gold-light: #F3C367;
    --contra-gold-dark: #B87E1E;
    --contra-gold-glow: rgba(229, 169, 60, 0.3);
    --contra-text-cream: #F5F5ED;
    --contra-text-muted: #9DB4A9;
    --contra-text-subtle: #7A9588;
    --contra-accent-green: #22C55E;
    --contra-accent-cyan: #38BDF8;
    --contra-border: rgba(229, 169, 60, 0.22);
    --contra-border-focus: rgba(229, 169, 60, 0.6);
    --contra-border-subtle: rgba(255, 255, 255, 0.08);
    --font-heading: 'Outfit', system-ui, -apple-system, sans-serif;
    --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

html {
    font-size: 14px;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 15px;
    }
}

@media (min-width: 1200px) {
    html {
        font-size: 16px;
    }
}

body {
    background-color: var(--contra-bg-dark);
    color: var(--contra-text-cream);
    font-family: var(--font-body);
    margin-bottom: 0;
    min-height: 100vh;
    letter-spacing: -0.01em;
}

h1, h2, h3, h4, h5, h6, .display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
}

/* =============================================================
   REGLAS GLOBALES DE CONTRASTE Y LEGIBILIDAD (MODO OSCURO)
   Solución para textos tenues, encabezados y etiquetas
   ============================================================= */
.text-muted,
.text-secondary,
.small.text-muted,
span.text-muted,
p.text-muted,
div.text-muted,
td.text-muted,
label.text-muted {
    color: #9DB4A9 !important;
}

.table thead th,
.table-dark thead th,
table th {
    color: #B2C7BD !important;
    font-weight: 700 !important;
    letter-spacing: 0.4px;
}

.table th.text-muted,
.table thead tr.text-muted th {
    color: #B2C7BD !important;
}

.hover-gold {
    transition: color 0.15s ease;
}

.hover-gold:hover {
    color: var(--contra-gold-light) !important;
}

/* =============================================================
   0. UTILIDADES DUAL RESPONSIVE (DESKTOP & MOBILE FIRST)
   ============================================================= */
@media (min-width: 992px) {
    .contra-desktop-only { display: block !important; }
    .contra-mobile-only { display: none !important; }
    .contra-desktop-flex { display: flex !important; }
    .contra-desktop-grid { display: grid !important; }
}

@media (max-width: 991.98px) {
    .contra-desktop-only { display: none !important; }
    .contra-mobile-only { display: block !important; }
    .contra-mobile-flex { display: flex !important; }
}

/* Contenedor fluido enriquecido para desktop */
.container-xl {
    max-width: 1400px !important;
}

.container-xxl {
    max-width: 1600px !important;
}

@media (min-width: 1600px) {
    .container-xxl {
        max-width: 1720px !important;
    }
}

/* Header global con contexto de apilamiento */
header {
    position: relative;
    z-index: 1050;
}

/* Sub-barra de Navegación Rápida para Administración y Dueño (Desktop) */
.contra-mgmt-subnav {
    background: rgba(10, 22, 17, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(229, 169, 60, 0.2);
    position: relative;
    z-index: 1040; /* Menor que .contra-navbar (1060) para no tapar dropdowns */
}

.contra-mgmt-subnav.dueno {
    border-bottom: 1px solid rgba(56, 189, 248, 0.25);
}

.btn-ghost-contra {
    color: #8EA59B !important;
    background: transparent;
    border: 1px solid transparent;
    font-weight: 600;
    font-size: 0.84rem;
    transition: all 0.2s ease;
}

.btn-ghost-contra:hover {
    color: #F5F5ED !important;
    background: rgba(229, 169, 60, 0.12);
    border-color: rgba(229, 169, 60, 0.3);
}

.btn-ghost-dueno {
    color: #8EA59B !important;
    background: transparent;
    border: 1px solid transparent;
    font-weight: 600;
    font-size: 0.84rem;
    transition: all 0.2s ease;
}

.btn-ghost-dueno:hover {
    color: #38BDF8 !important;
    background: rgba(56, 189, 248, 0.12);
    border-color: rgba(56, 189, 248, 0.35);
}

/* =============================================================
   1. NAVBAR SUPERIOR (DESKTOP Y HEADER COMPACTO MOBILE)
   ============================================================= */
.contra-navbar {
    background: rgba(10, 22, 17, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--contra-border);
    transition: all 0.25s ease;
    position: relative;
    z-index: 1060; /* Mayor que el subnav y contenido principal */
}

.contra-nav-link {
    color: var(--contra-text-cream) !important;
    font-weight: 600;
    font-size: 0.86rem;
    padding: 0.42rem 0.62rem !important;
    border-radius: 8px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

@media (min-width: 1400px) {
    .contra-nav-link {
        font-size: 0.91rem;
        padding: 0.48rem 0.82rem !important;
    }
}

.contra-nav-link:hover {
    color: var(--contra-gold) !important;
    background: rgba(229, 169, 60, 0.08);
}

.contra-nav-link.active {
    color: var(--contra-gold) !important;
    background: rgba(229, 169, 60, 0.12);
}

/* =============================================================
   MENÚS DESPLEGABLES (DROPDOWNS) CON ALTA ELEVACIÓN Y CONTRASTE
   ============================================================= */
.dropdown-menu {
    position: absolute;
    z-index: 1200 !important;
    background-color: #0E1F1A !important;
    border: 1px solid rgba(229, 169, 60, 0.35) !important;
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.9), 0 0 16px rgba(229, 169, 60, 0.15) !important;
    border-radius: 12px !important;
    padding: 0.5rem 0 !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.dropdown-menu.dropdown-menu-end {
    right: 0 !important;
    left: auto !important;
}

.dropdown-item {
    color: #E2E8F0 !important;
    font-size: 0.84rem;
    padding: 0.5rem 1.1rem !important;
    transition: all 0.15s ease;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: rgba(229, 169, 60, 0.16) !important;
    color: #F3C367 !important;
}

.dropdown-item.active,
.dropdown-item:active {
    background-color: var(--contra-gold) !important;
    color: #07100D !important;
}

.dropdown-divider {
    border-color: rgba(255, 255, 255, 0.1) !important;
    margin: 0.4rem 0 !important;
}

.btn-contra-gold {
    background: linear-gradient(135deg, #F3C367 0%, #E5A93C 60%, #C78A24 100%);
    color: #07100D !important;
    font-family: var(--font-heading);
    font-weight: 700;
    border: none;
    box-shadow: 0 4px 15px rgba(229, 169, 60, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-contra-gold:hover {
    color: #07100D !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(229, 169, 60, 0.45);
}

.btn-contra-gold:active {
    transform: translateY(0);
}

.contra-card {
    background: var(--contra-surface-card);
    border: 1px solid var(--contra-border);
    border-radius: 1.1rem;
    color: var(--contra-text-cream);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.contra-card-hover:hover {
    transform: translateY(-4px);
    border-color: rgba(229, 169, 60, 0.45);
    box-shadow: 0 16px 35px rgba(0, 0, 0, 0.55), 0 0 15px var(--contra-gold-glow);
}

/* =============================================================
   2. BARRA DE NAVEGACIÓN INFERIOR FIJA (MOBILE DOCK)
   ============================================================= */
.contra-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    height: 68px;
    background: rgba(10, 22, 17, 0.97);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-top: 1px solid rgba(229, 169, 60, 0.25);
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.7);
    padding-left: 8px;
    padding-right: 8px;
    padding-bottom: max(env(safe-area-inset-bottom, 0px), 6px);
    display: flex;
    align-items: center;
    justify-content: space-around;
}

.contra-bottom-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #8EA59B;
    transition: color 0.15s ease, transform 0.15s ease;
    padding: 4px 0;
    position: relative;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.contra-bottom-item:active {
    transform: scale(0.92);
}

.contra-bottom-item .bottom-icon {
    font-size: 1.45rem;
    line-height: 1;
    display: block;
    margin-bottom: 2px;
}

.contra-bottom-item .bottom-label {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.2px;
    text-transform: capitalize;
}

/* Estado activo de pestaña */
.contra-bottom-item.active {
    color: var(--contra-gold);
}

.contra-bottom-item.active .bottom-label {
    color: var(--contra-gold);
    font-weight: 700;
}

.contra-bottom-item.active::after {
    content: '';
    position: absolute;
    top: 2px;
    width: 18px;
    height: 3px;
    background: var(--contra-gold);
    border-radius: 4px;
    box-shadow: 0 0 8px rgba(229, 169, 60, 0.7);
}

/* Botón central "+" Destacado (FAB) */
.contra-bottom-fab {
    flex: 0 0 62px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    position: relative;
    margin-top: -24px;
    -webkit-tap-highlight-color: transparent;
}

.contra-bottom-fab .fab-circle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #F5BE58 0%, #E5A93C 55%, #C78A24 100%);
    border: 3.5px solid #07100D;
    box-shadow: 0 6px 20px rgba(229, 169, 60, 0.55), 0 2px 8px rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #07100D;
    font-size: 32px;
    font-weight: 900;
    line-height: 1;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
}

.contra-bottom-fab:active .fab-circle {
    transform: scale(0.9);
}

.contra-bottom-fab.active .fab-circle {
    box-shadow: 0 0 24px rgba(229, 169, 60, 0.8), 0 2px 8px rgba(0, 0, 0, 0.6);
}

.contra-bottom-fab .fab-label {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--contra-gold);
    margin-top: 2px;
}

/* =============================================================
   3. ADAPTACIONES ESPECÍFICAS MOBILE
   ============================================================= */
@media (max-width: 991.98px) {
    /* Espacio para que el contenido no quede oculto detrás de la barra inferior */
    body {
        padding-bottom: 86px !important;
    }

    /* Ocultar el botón hamburguesa tradicional */
    .navbar-toggler {
        display: none !important;
    }

    /* Reducir padding de contenedores en mobile */
    .container {
        padding-left: 14px;
        padding-right: 14px;
    }

    /* Botones más cómodos para el pulgar */
    .btn {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* Tarjetas más suaves y modernas */
    .card {
        border-radius: 18px !important;
    }
}

/* =============================================================
   4. GESTOR DE FOTOS MODERNO (REORDENABLE Y VISUAL)
   ============================================================= */
.contra-photo-manager {
    background: #0b1814;
    border: 1px solid rgba(229, 169, 60, 0.25);
    border-radius: 18px;
    padding: 16px;
}

.photo-dropzone {
    border: 2px dashed rgba(229, 169, 60, 0.4);
    background: rgba(16, 34, 28, 0.5);
    border-radius: 14px;
    padding: 24px 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.photo-dropzone:hover, .photo-dropzone.dragover {
    border-color: var(--contra-gold);
    background: rgba(229, 169, 60, 0.1);
    transform: scale(0.99);
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 12px;
    margin-top: 16px;
}

@media (max-width: 576px) {
    .photo-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
}

.photo-card {
    aspect-ratio: 1;
    border-radius: 14px;
    position: relative;
    overflow: hidden;
    background: #07100D;
    border: 2px solid rgba(229, 169, 60, 0.2);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.photo-card.is-principal {
    border: 2.5px solid var(--contra-gold);
    box-shadow: 0 0 16px rgba(229, 169, 60, 0.45);
}

.photo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Badges sobre la foto */
.photo-card .badge-principal {
    position: absolute;
    top: 6px;
    left: 6px;
    background: linear-gradient(135deg, #F5BE58, #E5A93C);
    color: #07100D;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.photo-card .badge-order {
    position: absolute;
    top: 6px;
    left: 6px;
    background: rgba(7, 16, 13, 0.8);
    color: #F5F5ED;
    border: 1px solid rgba(229, 169, 60, 0.4);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 6px;
    z-index: 2;
}

/* Botón eliminar */
.photo-card .btn-remove-photo {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.9);
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
    z-index: 3;
    transition: transform 0.15s ease;
}

.photo-card .btn-remove-photo:active {
    transform: scale(0.85);
}

/* Barra de acciones al pie de cada foto */
.photo-card .photo-actions {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(7, 16, 13, 0.95) 0%, rgba(7, 16, 13, 0.7) 70%, transparent 100%);
    padding: 6px 4px 4px 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 2;
}

.photo-card .btn-photo-action {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #F5F5ED;
    border-radius: 6px;
    padding: 2px 6px;
    font-size: 0.7rem;
    cursor: pointer;
    line-height: 1.2;
    transition: background 0.15s ease;
}

.photo-card .btn-photo-action:active {
    background: var(--contra-gold);
    color: #07100D;
}

.photo-card .btn-make-principal {
    background: rgba(229, 169, 60, 0.25);
    border: 1px solid var(--contra-gold);
    color: var(--contra-gold);
    font-weight: 700;
}

/* =============================================================
   5. NATIVE MOBILE APP TOUCH & SEGMENTED CONTROLS
   ============================================================= */
html, body {
    overscroll-behavior-y: auto;
    -webkit-tap-highlight-color: transparent;
}

/* Evitar zoom automático en Safari iOS en inputs de texto */
@media (max-width: 768px) {
    input, select, textarea {
        font-size: 16px !important;
    }
}

/* Segmented Control estilo App Nativa para Pestañas */
.contra-segmented {
    background: #0b1814;
    border-radius: 14px;
    padding: 4px;
    border: 1px solid rgba(229, 169, 60, 0.25);
    display: flex;
    gap: 4px;
    width: 100%;
    user-select: none;
    -webkit-user-select: none;
}

.contra-segmented .nav-link {
    border-radius: 10px;
    flex: 1;
    text-align: center;
    color: #8EA59B;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 10px 14px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    background: transparent;
    cursor: pointer;
}

.contra-segmented .nav-link.active {
    background: linear-gradient(135deg, #F5BE58 0%, #E5A93C 100%);
    color: #07100D !important;
    font-weight: 800;
    box-shadow: 0 3px 12px rgba(229, 169, 60, 0.4);
}

.contra-segmented .nav-link:active {
    transform: scale(0.97);
}

/* Chips / Filtros Rápidos Deslizables */
.contra-chips {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
}

.contra-chips::-webkit-scrollbar {
    display: none;
}

.contra-chip {
    white-space: nowrap;
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid rgba(229, 169, 60, 0.3);
    background: #0b1814;
    color: #F5F5ED;
    text-decoration: none;
    transition: all 0.2s ease;
    user-select: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.contra-chip:active {
    transform: scale(0.95);
}

.contra-chip.active, .contra-chip:hover {
    background: var(--contra-gold);
    color: #07100D;
    border-color: var(--contra-gold);
    font-weight: 700;
}

/* Tarjetas con feedback táctil */
.card-touchable {
    transition: transform 0.15s ease, border-color 0.15s ease;
}

.card-touchable:active {
    transform: scale(0.98);
    border-color: var(--contra-gold) !important;
}

/* =============================================================
   8. SECCIÓN COMUNITARIA (FAIR PLAY, COMPLEJOS, SUGERENCIAS)
   ============================================================= */
.community-link-card {
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease, box-shadow 0.2s ease;
}

.community-link-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
    border-color: rgba(229, 169, 60, 0.5) !important;
}

.community-link-card:active {
    transform: scale(0.98);
}

/* =============================================================
   9. ESTILOS HERO Y DASHBOARD (DESKTOP & MOBILE)
   ============================================================= */
.contra-hero-desktop {
    background: radial-gradient(100% 120% at 85% 10%, rgba(229, 169, 60, 0.15) 0%, rgba(14, 31, 26, 0.75) 50%, var(--contra-surface) 100%);
    border: 1px solid var(--contra-border);
    border-radius: 1.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.55);
}

.contra-hero-glow {
    position: absolute;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(229, 169, 60, 0.22) 0%, transparent 70%);
    top: -100px;
    right: -100px;
    pointer-events: none;
    z-index: 1;
}

.contra-stat-pill {
    background: rgba(11, 24, 20, 0.85);
    border: 1px solid rgba(229, 169, 60, 0.25);
    border-radius: 12px;
    padding: 10px 16px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.contra-stat-number {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--contra-gold);
    line-height: 1;
}

.contra-stat-desc {
    font-size: 0.75rem;
    color: var(--contra-text-muted);
    line-height: 1.2;
}

/* =============================================================
   10. TARJETAS DE PARTIDO PREMIUM (BUSCAR CONTRAS)
   ============================================================= */
.contra-match-card {
    background: var(--contra-surface-card);
    border: 1px solid var(--contra-border);
    border-radius: 1.25rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.22s ease, box-shadow 0.22s ease;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.45);
}

.contra-match-card:hover {
    transform: translateY(-5px);
    border-color: rgba(229, 169, 60, 0.55);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.65), 0 0 20px var(--contra-gold-glow);
}

.contra-match-card .card-header-sport {
    padding: 14px 18px;
    background: rgba(11, 24, 20, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.badge-sport {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 5px 10px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.badge-sport.futbol {
    background: rgba(34, 197, 94, 0.18);
    color: #4ade80;
    border: 1px solid rgba(74, 222, 128, 0.3);
}

.badge-sport.padel {
    background: rgba(56, 189, 248, 0.18);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.3);
}

.badge-level {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 8px;
}

.badge-level.tranquilo {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.badge-level.intermedio {
    background: rgba(229, 169, 60, 0.18);
    color: #fbbf24;
    border: 1px solid rgba(229, 169, 60, 0.35);
}

.badge-level.picante {
    background: rgba(239, 68, 68, 0.18);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.35);
}

.match-time-tag {
    background: rgba(229, 169, 60, 0.12);
    border: 1px solid rgba(229, 169, 60, 0.3);
    color: var(--contra-gold-light);
    border-radius: 10px;
    padding: 8px 12px;
    font-weight: 700;
    font-size: 0.88rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* =============================================================
   11. FORMULARIOS Y CONTROLES PULIDOS
   ============================================================= */
.form-label-contra {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    color: var(--contra-gold);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
}

.form-control-contra, .form-select-contra {
    background-color: #0b1814 !important;
    border: 1px solid rgba(229, 169, 60, 0.3) !important;
    color: var(--contra-text-cream) !important;
    border-radius: 10px !important;
    padding: 10px 14px;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.form-control-contra:focus, .form-select-contra:focus {
    border-color: var(--contra-gold) !important;
    box-shadow: 0 0 0 3px rgba(229, 169, 60, 0.25) !important;
    background-color: #0e201b !important;
    outline: none;
}

/* =============================================================
   12. PANELES DE FILTRO Y VISTAS DE DETALLE DUAL
   ============================================================= */
.contra-filter-panel {
    background: var(--contra-surface);
    border: 1px solid var(--contra-border);
    border-radius: 1.25rem;
    padding: 20px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.live-preview-box {
    position: sticky;
    top: 90px;
    background: var(--contra-surface);
    border: 1.5px dashed rgba(229, 169, 60, 0.4);
    border-radius: 1.25rem;
    padding: 20px;
}

/* =============================================================
   13. TABLAS RESPONSIVAS PROFESIONALES (ADMIN / DUEÑO)
   ============================================================= */
.contra-table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
}

.contra-table thead th {
    background: #091511;
    color: var(--contra-text-muted);
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 14px 16px;
    border-bottom: 2px solid rgba(229, 169, 60, 0.25);
    font-weight: 700;
}

.contra-table tbody tr {
    background: rgba(14, 31, 26, 0.7);
    transition: background 0.15s ease;
}

.contra-table tbody tr:hover {
    background: rgba(22, 46, 39, 0.95);
}

.contra-table tbody td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--contra-text-cream);
    font-size: 0.88rem;
    vertical-align: middle;
}

/* =============================================================
   14. INSIGNIAS Y ALERTAS DE URGENCIA HOY
   ============================================================= */
@keyframes pulseFireGlow {
    0% {
        box-shadow: 0 0 6px rgba(239, 68, 68, 0.4), inset 0 0 4px rgba(239, 68, 68, 0.2);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 16px rgba(239, 68, 68, 0.85), inset 0 0 8px rgba(249, 115, 22, 0.4);
        transform: scale(1.03);
    }
    100% {
        box-shadow: 0 0 6px rgba(239, 68, 68, 0.4), inset 0 0 4px rgba(239, 68, 68, 0.2);
        transform: scale(1);
    }
}

.badge-urgente-hoy {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    border-radius: 50rem;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.6px;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.25) 0%, rgba(249, 115, 22, 0.35) 100%);
    border: 1px solid #ef4444;
    color: #fca5a5;
    animation: pulseFireGlow 1.8s infinite ease-in-out;
}

.badge-hoy-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.65rem;
    border-radius: 50rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    background: rgba(229, 169, 60, 0.18);
    border: 1px solid rgba(229, 169, 60, 0.45);
    color: #E5A93C;
}

/* 👁️ Botón para ver/ocultar contraseña (Ojito) */
.btn-toggle-password {
    background-color: #0b1814 !important;
    border: 1px solid rgba(229, 169, 60, 0.3) !important;
    border-left: none !important;
    color: #8EA59B !important;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.btn-toggle-password:hover,
.btn-toggle-password:focus {
    color: #E5A93C !important;
    background-color: #10221c !important;
    box-shadow: none !important;
}

.input-group:focus-within .btn-toggle-password {
    border-color: rgba(229, 169, 60, 0.7) !important;
}

.input-group:focus-within .form-control {
    border-color: rgba(229, 169, 60, 0.7) !important;
}

/* =============================================================
   15. SISTEMA DE ESTRELLAS DEPORTIVAS (VERDE BASE -> DORADO SELECCIÓN)
   ============================================================= */
.contra-star-picker-card {
    background: radial-gradient(circle at 50% 20%, rgba(34, 197, 94, 0.08) 0%, #0b1814 85%);
    border: 1px solid rgba(34, 197, 94, 0.25);
    transition: all 0.3s ease;
}

.contra-star-picker-card:hover {
    border-color: rgba(229, 169, 60, 0.4);
}

.contra-star-big-number {
    font-family: var(--font-heading);
    font-size: 3.8rem;
    font-weight: 900;
    line-height: 1;
    color: #F3C367;
    text-shadow: 0 0 24px rgba(229, 169, 60, 0.65), 0 0 10px rgba(229, 169, 60, 0.4);
    display: inline-block;
    transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.2s ease;
}

.contra-star-big-number.pop-anim {
    animation: starPopNumber 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes starPopNumber {
    0% { transform: scale(0.8); opacity: 0.6; }
    50% { transform: scale(1.22); }
    100% { transform: scale(1); opacity: 1; }
}

.contra-star-total-label {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: #8EA59B;
    opacity: 0.8;
}

.contra-star-feedback-badge {
    background: rgba(229, 169, 60, 0.14);
    border: 1px solid rgba(229, 169, 60, 0.4);
    color: #F3C367;
    font-weight: 700;
    font-size: 0.92rem;
    padding: 6px 18px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.25s ease;
}

.contra-stars-row {
    background: rgba(7, 16, 13, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.5);
}

/* Botón individual de estrella interactivo */
.btn-contra-star {
    background: rgba(34, 197, 94, 0.08);
    border: 2px solid rgba(34, 197, 94, 0.4);
    color: #4ade80;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.85rem;
    cursor: pointer;
    padding: 0;
    box-shadow: 0 0 12px rgba(34, 197, 94, 0.15);
    transition: all 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.btn-contra-star:focus-visible {
    outline: 2px solid #E5A93C;
    outline-offset: 3px;
}

/* Al pasar el cursor sobre la estrella base verde */
.btn-contra-star:hover {
    transform: scale(1.15) translateY(-3px);
    border-color: #4ade80;
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.4);
}

/* Estrella seleccionada o iluminada en AMARILLO DORADO */
.btn-contra-star.selected,
.btn-contra-star.hovered {
    background: linear-gradient(135deg, rgba(229, 169, 60, 0.28) 0%, rgba(243, 195, 103, 0.4) 100%);
    border: 2px solid #F3C367 !important;
    color: #F3C367 !important;
    box-shadow: 0 0 22px rgba(229, 169, 60, 0.65), 0 4px 15px rgba(0, 0, 0, 0.5);
    transform: scale(1.12) translateY(-2px);
}

.btn-contra-star.selected:active,
.btn-contra-star.hovered:active {
    transform: scale(0.96);
}

/* =============================================================
   16. REDISEÑO ESPACIOSO Y DESCOMPRIMIDO (BUSCAR CONTRAS & DETALLE)
   ============================================================= */
.contra-top-control-bar {
    background: rgba(14, 31, 26, 0.85);
    backdrop-filter: blur(14px);
    border: 1px solid var(--contra-border);
    border-radius: 1.25rem;
    padding: 1rem 1.25rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.contra-filter-pill-btn {
    background: rgba(7, 16, 13, 0.7);
    border: 1px solid rgba(229, 169, 60, 0.35);
    color: #F5F5ED;
    border-radius: 999px;
    padding: 0.5rem 1.15rem;
    font-size: 0.88rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.2s ease;
    cursor: pointer;
    text-decoration: none;
}

.contra-filter-pill-btn:hover,
.contra-filter-pill-btn.active {
    background: var(--contra-gold);
    color: #07100D !important;
    border-color: var(--contra-gold);
    box-shadow: 0 4px 15px var(--contra-gold-glow);
}

/* Tarjeta espaciosa y sin amontonamiento */
.contra-card-spacious {
    background: linear-gradient(180deg, #11261f 0%, #0d1f19 100%);
    border: 1px solid rgba(229, 169, 60, 0.22);
    border-radius: 1.5rem;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.contra-card-spacious:hover {
    transform: translateY(-5px);
    border-color: rgba(229, 169, 60, 0.6);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.65), 0 0 25px rgba(229, 169, 60, 0.2);
}

.match-time-hero {
    background: rgba(7, 16, 13, 0.85);
    border: 1px solid rgba(229, 169, 60, 0.35);
    border-radius: 1rem;
    padding: 0.75rem 1.15rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}