body {
    background: #f6f7f8;
}

.login-page {
    background:
        radial-gradient(circle at top left, rgba(0,0,0,.04), transparent 35%),
        #f6f7f8;
}

.app-page {
    padding-bottom: 76px;
}

.empty-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 18px;
    padding: 24px;
}

.mobile-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: 68px;
    background: #fff;
    border-top: 1px solid #e9ecef;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: center;
    z-index: 1030;
}

.mobile-nav a {
    color: #6c757d;
    text-decoration: none;
    text-align: center;
    font-size: .8rem;
}

.mobile-nav a.active {
    color: #111;
    font-weight: 600;
}

.mobile-nav a.create {
    width: 46px;
    height: 46px;
    margin: 0 auto;
    border-radius: 50%;
    background: #111;
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 1.5rem;
    transform: translateY(-6px);
}


.notification-fab{
    position: fixed;
    right: 18px;
    bottom: 84px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: #212529;
    box-shadow: 0 8px 24px rgba(0,0,0,.14);
    text-decoration: none;
    z-index: 1030;
}



/* Buscar mejor horario */
.schedule-day-header{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    padding:16px 18px;
    background:#f8f9fa;
    border-bottom:1px solid rgba(0,0,0,.08);
}

.schedule-slot{
    padding:0 18px;
    border-bottom:1px solid rgba(0,0,0,.07);
}

.schedule-slot:last-child{
    border-bottom:0;
}

.schedule-slot-main{
    display:grid;
    grid-template-columns:110px minmax(0,1fr) auto;
    gap:16px;
    align-items:center;
    min-height:68px;
}

.schedule-time{
    display:flex;
    flex-direction:column;
    line-height:1.15;
}

.schedule-time strong{
    font-size:1.05rem;
}

.schedule-time span{
    font-size:.82rem;
    color:#6c757d;
}

.schedule-details{
    padding:0 0 12px 126px;
}

.schedule-details summary{
    width:max-content;
    cursor:pointer;
    font-size:.82rem;
    color:#6c757d;
    user-select:none;
}

.schedule-players{
    padding-top:8px;
}

@media (max-width: 767.98px){
    .schedule-day-header{
        padding:14px 15px;
    }

    .schedule-slot{
        padding:0 15px;
    }

    .schedule-slot-main{
        grid-template-columns:72px minmax(0,1fr) auto;
        gap:10px;
        min-height:74px;
    }

    .schedule-summary{
        font-size:.9rem;
    }

    .schedule-details{
        padding-left:82px;
    }

    .schedule-actions .btn{
        padding-left:10px;
        padding-right:10px;
    }
}

/* Tarjetas visuales de partido — v11.1 */
.match-card-link{
    display:block;
    color:inherit;
    text-decoration:none;
}

.match-card{
    background:#fff;
    border:1px solid rgba(33,37,41,.04);
    border-radius:22px;
    box-shadow:0 5px 15px rgba(17,24,39,.08);
    overflow:hidden;
    transition:transform .18s ease, box-shadow .18s ease;
}

.match-card-link:hover .match-card{
    transform:translateY(-2px);
    box-shadow:0 10px 25px rgba(17,24,39,.11);
}

.match-card-main{
    min-height:150px;
    padding:24px 26px;
    display:grid;
    grid-template-columns:minmax(270px,.9fr) minmax(330px,1.35fr) minmax(220px,.75fr) 24px;
    gap:24px;
    align-items:center;
}

.match-card-info{
    padding-right:24px;
    border-right:1px solid #e9ecef;
}

.match-date,.match-place{
    color:#667085;
    font-size:.94rem;
}

.match-date span,.match-place span{
    color:#198754;
    display:inline-block;
    min-width:20px;
}

.match-time{
    margin:3px 0;
    color:#1f2937;
    font-size:1.3rem;
    font-weight:750;
    letter-spacing:-.02em;
}

.match-organizer{
    display:inline-flex;
    gap:5px;
    margin-top:10px;
    padding:4px 9px;
    border-radius:8px;
    background:#f7f8fa;
    color:#667085;
    font-size:.88rem;
}

.match-organizer strong{color:#374151;font-weight:600;}

.match-players-heading{
    margin-bottom:14px;
    color:#198754;
    font-weight:700;
}
.match-players-heading span:last-child{color:#667085;font-weight:500;}

.match-avatars{
    display:flex;
    align-items:flex-start;
    gap:12px;
    overflow:hidden;
}

.match-player{
    width:52px;
    flex:0 0 52px;
    text-align:center;
}

.match-avatar{
    width:46px;
    height:46px;
    margin:0 auto;
    border-radius:50%;
    display:grid;
    place-items:center;
    background:linear-gradient(145deg,#e9f7ef,#cfe8d9);
    border:2px solid #fff;
    box-shadow:0 0 0 1px rgba(25,135,84,.22);
    color:#146c43;
    font-size:.82rem;
    font-weight:800;
}

.match-avatar-empty{
    background:#fff;
    border:1.5px dashed #adb5bd;
    box-shadow:none;
}

.match-player-name{
    margin-top:5px;
    color:#4b5563;
    font-size:.76rem;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}
.match-player-empty .match-player-name{color:#adb5bd;}

.match-card-status{display:flex;flex-direction:column;gap:16px;}
.match-status-top{display:flex;align-items:center;justify-content:space-between;gap:14px;}
.match-status-badge{
    display:inline-flex;
    align-items:center;
    padding:5px 11px;
    border-radius:8px;
    color:#fff;
    font-size:.82rem;
    font-weight:700;
}
.status-green{background:#198754;}.status-blue{background:#3973b9;}.status-red{background:#dc3545;}.status-gray{background:#6c757d;}

.match-court-status{
    display:inline-flex;
    align-items:center;
    gap:8px;
    width:max-content;
    max-width:100%;
    font-weight:650;
    font-size:.9rem;
}
.match-court-status span{
    width:20px;
    height:20px;
    border-radius:50%;
    display:grid;
    place-items:center;
    color:#fff;
    font-size:.75rem;
    font-weight:900;
}
.match-court-status.is-ready{color:#198754;}.match-court-status.is-ready span{background:#198754;}
.match-court-status.is-pending{
    padding:7px 11px;
    border:1px solid #f3c56b;
    border-radius:8px;
    color:#d88700;
    background:#fffaf0;
}
.match-court-status.is-pending span{background:#f0a000;}

.match-extra-badge{
    width:max-content;
    max-width:100%;
    padding:5px 9px;
    border-radius:8px;
    background:#eef4ff;
    color:#3973b9;
    font-size:.78rem;
    font-weight:650;
}

.match-card-chevron{font-size:2rem;color:#667085;text-align:right;}

@media (max-width: 991.98px){
    .match-card-main{
        grid-template-columns:minmax(220px,.9fr) minmax(260px,1.15fr) 210px 18px;
        padding:20px;
        gap:18px;
    }
}

@media (max-width: 767.98px){
    .match-card-main{
        grid-template-columns:1fr auto;
        gap:16px 12px;
        padding:19px;
    }
    .match-card-info{
        grid-column:1/2;
        padding-right:0;
        border-right:0;
    }
    .match-card-status{
        grid-column:2/3;
        grid-row:1/2;
        align-self:start;
        align-items:flex-end;
        gap:10px;
    }
    .match-card-players{
        grid-column:1/3;
        padding-top:15px;
        border-top:1px solid #eef0f2;
    }
    .match-card-chevron{display:none;}
    .match-status-top{flex-direction:column;align-items:flex-end;gap:6px;}
    .match-court-status{font-size:.8rem;}
    .match-court-status.is-pending{padding:5px 8px;}
    .match-time{font-size:1.16rem;}
    .match-avatars{gap:9px;}
    .match-player{width:46px;flex-basis:46px;}
    .match-avatar{width:42px;height:42px;}
    .match-player-name{font-size:.7rem;}
}

/* Detalle de partido — v11.2 */
.match-detail-card,
.match-action-card,
.organizer-panel{
    background:#fff;
    border:1px solid rgba(33,37,41,.05);
    border-radius:22px;
    box-shadow:0 5px 15px rgba(17,24,39,.07);
}

.match-detail-grid{
    display:grid;
    grid-template-columns:minmax(250px,.9fr) minmax(320px,1.25fr) minmax(220px,.75fr);
    align-items:center;
    gap:26px;
    padding:26px 28px;
}

.match-detail-info{
    padding-right:26px;
    border-right:1px solid #e9ecef;
}
.match-detail-date,.match-detail-place{color:#667085;font-size:.95rem;}
.match-detail-time{margin:4px 0;font-size:1.65rem;font-weight:780;letter-spacing:-.035em;color:#1f2937;}
.match-detail-organizer{display:inline-flex;gap:5px;margin-top:12px;padding:5px 10px;background:#f7f8fa;border-radius:9px;color:#667085;font-size:.88rem;}
.match-detail-organizer strong{color:#374151;font-weight:650;}

.match-detail-section-title{margin-bottom:14px;color:#198754;font-weight:750;}
.match-detail-section-title span{color:#667085;font-weight:500;}
.match-detail-avatars{display:flex;gap:13px;align-items:flex-start;flex-wrap:wrap;}
.match-detail-player{width:56px;text-align:center;color:#4b5563;font-size:.75rem;overflow:hidden;}
.match-detail-avatar{width:48px;height:48px;margin:0 auto 5px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(145deg,#e9f7ef,#cfe8d9);box-shadow:0 0 0 1px rgba(25,135,84,.22);color:#146c43;font-weight:800;}
.match-detail-avatar.is-me{box-shadow:0 0 0 2px #198754,0 0 0 4px #d1e7dd;}
.match-detail-player.is-empty{color:#adb5bd;}
.match-detail-player.is-empty .match-detail-avatar{background:#fff;border:1.5px dashed #adb5bd;box-shadow:none;}

.match-detail-status{display:flex;flex-direction:column;gap:17px;}
.match-detail-court{display:flex;align-items:center;gap:9px;font-weight:700;font-size:.92rem;}
.match-detail-court>span{width:22px;height:22px;display:grid;place-items:center;border-radius:50%;color:#fff;font-weight:900;flex:0 0 22px;}
.match-detail-court small{display:block;font-weight:500;color:#667085;margin-top:2px;}
.match-detail-court.is-ready{color:#198754;}.match-detail-court.is-ready>span{background:#198754;}
.match-detail-court.is-pending{width:max-content;max-width:100%;padding:8px 11px;border:1px solid #f3c56b;border-radius:9px;background:#fffaf0;color:#d88700;}.match-detail-court.is-pending>span{background:#f0a000;}

.match-action-card{display:grid;grid-template-columns:minmax(0,1fr) minmax(260px,340px);gap:28px;align-items:center;padding:24px 28px;border-left:5px solid #198754;}
.match-action-copy h2{margin:5px 0 4px;font-size:1.2rem;font-weight:760;}
.match-action-copy p{margin:0;color:#667085;}
.match-action-kicker{display:inline-block;font-size:.8rem;font-weight:750;text-transform:uppercase;letter-spacing:.025em;}
.match-action-kicker.is-success{color:#198754}.match-action-kicker.is-warning{color:#d88700}.match-action-kicker.is-info{color:#3973b9}
.match-action-buttons form{margin:0;}
.match-secondary-actions{display:flex;flex-wrap:wrap;gap:9px;}

.organizer-panel{padding:22px 24px;}
.court-form{padding:17px;background:#f8f9fa;border:1px solid #e9ecef;border-radius:16px;}

/* Lista de jugadoras más legible */
.player-state-card .card-body{min-height:68px;}

@media (max-width: 991.98px){
    .match-detail-grid{grid-template-columns:1fr 1fr;}
    .match-detail-info{padding-right:20px;}
    .match-detail-status{grid-column:1/3;flex-direction:row;align-items:center;justify-content:space-between;padding-top:18px;border-top:1px solid #eef0f2;}
}

@media (max-width: 767.98px){
    .match-detail-grid{grid-template-columns:1fr;padding:20px;gap:20px;}
    .match-detail-info{padding-right:0;padding-bottom:18px;border-right:0;border-bottom:1px solid #eef0f2;}
    .match-detail-status{grid-column:auto;flex-direction:column;align-items:stretch;padding-top:18px;}
    .match-detail-status>div:first-child{justify-content:flex-start!important;}
    .match-detail-court.is-pending{width:100%;}
    .match-detail-time{font-size:1.45rem;}
    .match-detail-avatars{gap:10px;}
    .match-detail-player{width:49px;}
    .match-detail-avatar{width:44px;height:44px;}
    .match-action-card{grid-template-columns:1fr;padding:20px;border-left-width:4px;gap:18px;}
    .match-action-buttons .btn{min-height:52px;font-size:1rem;}
    .match-secondary-actions{display:grid;grid-template-columns:1fr;}
    .match-secondary-actions .btn{width:100%;}
    .organizer-panel{padding:20px;}
}


/* Ajustes UX v12.1 */
.privacy-disclaimer{
    padding:12px 14px;
    border-radius:12px;
    background:#f7f8fa;
    border:1px solid #e9ecef;
    color:#667085;
    font-size:.78rem;
    line-height:1.45;
}
.privacy-disclaimer strong{color:#374151;}
.dashboard-create-card{border:1px solid rgba(25,135,84,.16)!important;}
.court-reservation-panel{
    background:#fff;
    border:1px solid rgba(33,37,41,.05);
    border-radius:22px;
    box-shadow:0 5px 15px rgba(17,24,39,.07);
    padding:22px 24px;
}
.court-reservation-grid{display:grid;gap:12px;}
.court-reservation-row{
    display:grid;
    grid-template-columns:100px minmax(0,1fr);
    gap:14px;
    align-items:center;
    padding:12px 14px;
    border-radius:14px;
    background:#f8f9fa;
    border:1px solid #e9ecef;
}
.court-reservation-row strong{white-space:nowrap;}
.court-place-summary{display:grid;gap:7px;}
.court-place-summary div{display:flex;gap:8px;align-items:center;}
@media (max-width:767.98px){
    .court-reservation-panel{padding:18px;}
    .court-reservation-row{grid-template-columns:1fr;gap:7px;}
}

/* v12.3 - aviso de cancha pendiente en tarjetas */
.match-court-status.is-missing {
    padding: 7px 11px;
    border: 1px solid #f1c76a;
    border-radius: 8px;
    color: #9a6700;
    background: #fff8e6;
    line-height: 1.2;
}
.match-court-status.is-missing span {
    width: auto;
    height: auto;
    display: inline-flex;
    color: #d88700;
    background: transparent;
    font-size: 1rem;
    line-height: 1;
}
