.tcb-booking-wrap {
    max-width: 1100px;
    margin: 40px auto;
    padding: 50px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.207);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #0f172a;
}

.tcb-booking-wrap.tcb-champ-mode {
    background: #fefdee; /* una mica mes fosc que #f8fafc */
}

.tcb-booking-header {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.tcb-booking-title h2 {
    margin: 0 0 4px;
    font-size: 24px;
}

.tcb-booking-subtitle {
    margin: 0;
    font-size: 14px;
    color: #64748b;
}

.tcb-booking-mode {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.tcb-mode-label {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #94a3b8;
}

.tcb-mode-option {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid #cbd5f5;
    background: #e2e8f0;
    cursor: pointer;
}

.tcb-mode-option input {
    margin: 0;
}

.tcb-booking-user-info {
    flex: 1 1 100%;
}

.tcb-alert {
    padding: 10px 12px;
    border-radius: 10px;
    margin: 0;
}

.tcb-alert {
    font-size: 16px !important;
    text-align: center !important;
    line-height: 43px;

}

.tcb-login-link {
    background-color: #ffffff;
    margin-top: 30px !important;
    padding: 14px 24px;
    margin-top: 13px;
    border-radius: 8px;
}

.tcb-login-link:hover {
    background-color: #514b07;
    color: #ffffff;
 
}

.tcb-alert-warning {
    background: #fef3c7;
    color: #92400e;
    padding: 12px !important;
    min-height: 115px;
}

.tcb-alert-success {
    background: #e0e8e0;
    color: #166534;
    padding: 12px !important;
}

.tcb-alert-info {
    background: #e0f2fe;
    color: #075985;
    padding: 12px !important;
}

.tcb-courts-tabs {
    display: inline-flex;
    padding: 4px;
    border-radius: 999px;
    background: #e2e8f0;
    margin-bottom: 16px;
    font-weight: 600;
    text-transform: uppercase !important;
}

.tcb-tab {
    border: none;
    background: transparent;
    padding: 12px 22px;
    border-radius: 999px;
    font-size: 16px;
    cursor: pointer;
    color: #475569;
    text-transform: uppercase !important;
}

.tcb-tab.active {
    background: #0f172a;
    color: #f9fafb;
}

.tcb-calendar {
    display: none;
}

.tcb-calendar.active {
    display: block;
}

.tcb-calendar-header-row,
.tcb-calendar-row {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    line-height: 80% !important;
}

.tcb-calendar-cell {
    border: 1px solid #e2e8f0;
    padding: 8px;
    font-size: 12px;
    box-sizing: border-box;
}

.tcb-calendar-cell-time {
    background: #e2e8f0;
    font-weight: 600;
    text-align: center;
}

.tcb-calendar-cell-day {
    background: #e2e8f0;
    text-align: center;
    font-weight: 600;
    border-left: 1px solid #525252;
}

.tcb-day-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.tcb-day-label2 {
    font-size: 15px;
    color: #64748b;
    font-weight: 600;
    margin-top: 8px;
    margin-bottom: 4px;
}

.tcb-calendar-body {
    /*max-height: 480px; talla finestra del calendari i fa scroll */
    overflow-y: auto;
    border-radius: 0 0 12px 12px;
     position: relative;
    z-index: 1;
}

.tcb-calendar-body,
.tcb-calendar-row,
.tcb-calendar-cell {
    overflow: visible;
}

.tcb-slot {

        position: relative;   /* perquè el ::after es col·loqui respecte el botó */
    overflow: visible;    /* important: que NO el talli */

    border-top: 1px solid #ffffff;
     border-bottom: 1px solid #ffffff;
      border-left: 1px solid #525252;
    background: #ffffff;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 4px;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.05s ease, box-shadow 0.15s ease;
    z-index: 999999999999999999999999999;

}

.tcb-slot:hover {
    background: #eff6ff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.tcb-slot-free {
    background: #f5f8f6;
}

.tcb-slot-free .tcb-slot-status {
    color: #16a34a;
}

.tcb-slot-busy {
    background: #fee2e2;
    cursor: not-allowed;
    border-bottom: 1px solid #fee2e2 !important;
    border-top: 1px solid #fee2e2 !important;
    cursor:grabbing !important;
}

.tcb-slot-busy:hover {
    background: #e4c6c6;
    cursor: not-allowed;
    border-bottom: 1px solid #e4c6c6 !important;
    border-top: 1px solid #e4c6c6 !important;
}

.tcb-slot-busy .tcb-slot-status {
    color: #b91c1c;
}

.tcb-slot-blocked {
    background: #e5e7eb;
    cursor:not-allowed !important;
}

/* Campionat: ocupa pero amb color diferent */
.tcb-slot-busy.tcb-slot-champ {
    background: #f4f5d7;
       border-bottom: 1px solid #f4f5d7  !important;
    border-top: 1px solid #f4f5d7  !important;
    cursor:grabbing !important;
}

.tcb-slot-busy.tcb-slot-champ:hover {
    background: #d6d8ac;
       border-bottom: 1px solid #d6d8ac !important;
    border-top: 1px solid #d6d8ac !important;
}



.tcb-slot-blocked .tcb-slot-status {
    color: #6b7280;
}

.tcb-slot-time {
    display: block;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 5px;
}

.tcb-slot-status {
     font-size: 13px;
    display: block;
    margin-top: -10px;
    line-height: 110%;
    
}

/* Slots del passat: gris clar, sense efecte hover i no clicables */
.tcb-slot-past {
    background: #ebeced;   /* gris clar suau */
    color: #d0d6e0;        /* text apagat per si hi ha algo */
    cursor: default;
    border-color: #ebeced; 
}

.tcb-slot-past:hover {
    transform: none;
    box-shadow: none;
    background: #ebeced;
    cursor: not-allowed !important;
}

.tcb-slot-past,
.tcb-slot-far {
    background: #e5e7eb;   /* gris suau */
    color: #9ca3af;
    cursor: default;
}

.tcb-slot-past .tcb-slot-status,
.tcb-slot-far .tcb-slot-status {
    color: #9ca3af;
}



.tcb-calendar-cell.tcb-slot {
    position: relative;
    cursor: pointer;
    transition: background-color 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
}

.tcb-calendar-cell.tcb-slot-free:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.15);
}



.tcb-booking-legend {
    display: flex;
    gap: 16px;
    margin-top: 12px;
    font-size: 12px;
    color: #64748b;
}

.tcb-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.tcb-legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    display: inline-block;
}

.tcb-legend-free {
    background: #bbf7d0;
}

.tcb-legend-busy {
    background: #fecaca;
}

.tcb-legend-blocked {
    background: #cbd5f5;
}

/* Modal */

.tcb-booking-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
}

.tcb-booking-modal.open {
    display: block;
}

.tcb-booking-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.4);
}

.tcb-booking-modal-content {
    position: relative;
    max-width: 420px;
    margin: 80px auto;
    background: #ffffff;
    border-radius: 16px;
    padding: 40px 40px 28px;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.3);
}

.tcb-booking-modal-content h3 {
    margin: 0 0 16px;
    font-size: 26px;
}

.tcb-modal-body {
    font-size: 14px;
}

.tcb-modal-field {
    margin-bottom: 12px;
}

.tcb-modal-field input,
.tcb-modal-field select {
    width: 100%;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    font-size: 14px;
    box-sizing: border-box;
}

.tcb-modal-info {
    font-size: 12px;
    color: #64748b;
}

.tcb-modal-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.tcb-btn {
    border: none;
    border-radius: 999px;
    padding: 8px 16px;
    font-size: 13px;
    cursor: pointer;
}

.tcb-btn-primary {
    background-color: #6d940b;
    color: #f9fafb;
    font-size: 15px;  
    margin-top: 14px;
}

.tcb-btn-primary:hover {
    background-color: #78c90e;
    color: #000000;
   
}

.tcb-btn-secondary {
    background-color: #9ca3af !important;
    color: #ffffff;
     margin-right: 30px !important;   
     box-shadow: #0206175c 0px 0px 8px;
}

.tcb-btn-secondary:hover {
    background-color: #7a7f88 !important;
    color: #ffffff;
}

.tcb-modal-close {
    position: absolute;
    display: block;
    top: 12px;
    right: 12px;
    border: 1px solid #64748b;
    border-radius: 100%;
    font-size: 18px;
    cursor: pointer;
    padding: 2px 12px;
      box-shadow: #0206175c 0px 0px 8px;
   
    
}

.tcb-modal-body label {
    padding-top: 2px;
} 

/* Responsive */

@media (max-width: 768px) {
    .tcb-booking-wrap {
        padding: 14px;
    }

    .tcb-calendar-header-row,
    .tcb-calendar-row {
        grid-template-columns: 60px repeat(7, minmax(60px, 1fr));
    }

    .tcb-booking-header {
        flex-direction: column;
        align-items: flex-start;
    }
}




/* Les meves reserves */

.tcb-my-bookings-wrap {
    max-width: 900px;
    margin: 40px auto;
    padding: 50px;
    background: #f8fafc;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.209);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #0f172a;
}

.tcb-my-bookings-wrap h2 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 31px;
}

.tcb-my-bookings-user {
    margin-bottom: 16px;
    font-size: 16px;
    color: #475569;
}

.tcb-my-bookings-user-name {
    font-weight: 600;
}

.tcb-my-bookings-sections {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.tcb-my-bookings-section {
    flex: 1 1 100%;
}

.tcb-my-bookings-section h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.tcb-my-bookings-empty {
    font-size: 14px;
    color: #64748b;
}

.tcb-my-bookings-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tcb-booking-card {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
    padding: 30px;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.05);
    font-size: 14px;
}

.tcb-booking-card-main {
    flex: 1 1 60%;
    min-width: 220px;
}

.tcb-booking-card-actions {
    float: inline-end;
    text-align: right;
   
    min-width: 200px;
    
}

.tcb-booking-card-row {
    display: flex;
    flex-wrap: wrap;
    
    margin-bottom: 4px;
}

.tcb-booking-card-date,
.tcb-booking-card-time,
.tcb-booking-card-court,
.tcb-booking-card-mode,
.tcb-booking-card-opponent,
.tcb-booking-card-status {
    margin-right: 8px;
}

.tcb-booking-card-opponent {
    font-size: 15px;
    background-color: #e3e6ec !important;
    color: #151414;
    padding: 10px 15px;
    border-radius: 10px;
     margin-top: 6px;
}

.tcb-booking-card-date {
    font-size: 15px;
    background-color: #767981;
    color: #ffffff;
    padding: 10px 15px;
    border-radius: 10px;

}

.tcb-booking-card-time{
    font-size: 15px;
    background-color: #767981;
    color: #ffffff;
    padding: 10px 15px;
    border-radius: 10px;

}

.tcb-booking-card-court {
     font-size: 15px;
    background-color: #eec3b9;
    color: #2e2a2a;
    padding: 10px 15px;
    border-radius: 10px;
    margin-top: 6px;

}

/* Etiquetes de mode a "Les meves reserves" */

.tcb-booking-card-mode {
    display: inline-flex;
    align-items: center;
     padding: 10px 15px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    border: 1px solid transparent;
    margin-top: 6px;
     background: #c9ccd2;
}

/* Normal = blanc trencat */
.tcb-booking-card-mode.tcb-mode-normal {
    background: #c9ccd2 !important;   /* gris clar / blanc trencat */
    color: #111827;
    border-color: #d1d5db;
}

/* Campionat = groc */
.tcb-booking-card-mode.tcb-mode-champ {
    background: #ede4be;   /* groc viu */
    color: #2e2c2b;        /* marró fosc per contrast */
    border-color: #eab308;
}

.tcb-booking-card-status {
    font-weight: 600;
    margin-top: 20px;
    font-size: 16px;
}

.tcb-booking-card-note {
    font-size: 13px;
    color: #64748b;
}

/* Estats */

.tcb-status-confirmed {
    color: #166534;
}

.tcb-status-pending_payment {
    color: #92400e;
}

.tcb-status-cancelled {
    color: #b91c1c;
}

.tcb-booking-card-past {
    opacity: 0.85;
}

.tcb-booking-card-cancelled {
    opacity: 0.7;
}

/* Botons una mica mes grans per gent gran */

.tcb-my-bookings-wrap .tcb-btn {
    font-size: 14px;
    padding: 8px 18px;
}

/* Responsive */

@media (max-width: 768px) {
    .tcb-booking-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .tcb-booking-card-actions {
        width: 100%;
        justify-content: flex-start;
    }
}

.tcb-legend-dot.tcb-legend-champ {
    background: #fbbf24;
}

/* Tooltip per admins, aplicat a slots amb data-tooltip */
.tcb-slot[data-tooltip] {
    position: relative;
}

/* Fletxa del tooltip */
.tcb-slot[data-tooltip]:hover::before {
    content: "";
    position: absolute;

    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: -7px;          /* ajusta per apropar/ allunyar la fletxa del tooltip */

    border-width: 20px 20px 0 20px;
    border-style: solid;
    border-color: #111827 transparent transparent transparent;

    z-index: 999998;             /* una mica per sota del quadre negre */
    pointer-events: none;
}

/* Ajustos extrems: mateixes regles que el tooltip gran */

/* Columnes 1 i 2: enganxem cap a l’esquerra */
.tcb-calendar-row .tcb-slot:nth-child(1)[data-tooltip]:hover::before,
.tcb-calendar-row .tcb-slot:nth-child(2)[data-tooltip]:hover::before {
    left: 0;
    transform: translateX(0);
}

/* Columnes 6 i 7: enganxem cap a la dreta */
.tcb-calendar-row .tcb-slot:nth-child(6)[data-tooltip]:hover::before,
.tcb-calendar-row .tcb-slot:nth-child(7)[data-tooltip]:hover::before {
    left: 100%;
    transform: translateX(-100%);
}



.tcb-slot[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;

    bottom: 100%;           /* just per sobre del boto */
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 6px;     /* separacio respecte la cel·la */

    background: #111827;
    color: #f9fafb;
    padding: 7px 10px;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.2;
    z-index: 999999;
    pointer-events: none;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.4);

    white-space: normal;    /* permet salt de linia */
    max-width: 240px;
    width: 200px;
    box-sizing: border-box;
    text-align: center;
}


/* Columna 1 i 2: enganxem el tooltip cap a l'esquerra */
.tcb-calendar-row .tcb-slot:nth-child(1)[data-tooltip]:hover::after,
.tcb-calendar-row .tcb-slot:nth-child(2)[data-tooltip]:hover::after {
    left: 0;
    transform: translateX(0);
}

/* Columna 6 i 7: enganxem el tooltip cap a la dreta */
.tcb-calendar-row .tcb-slot:nth-child(6)[data-tooltip]:hover::after,
.tcb-calendar-row .tcb-slot:nth-child(7)[data-tooltip]:hover::after {
    left: 100%;
    transform: translateX(-100%);
}

/* Amagar tooltip a la primera fila del calendari */
.tcb-calendar-row:first-child .tcb-slot[data-tooltip]:hover::after,
.tcb-calendar-row:first-child .tcb-slot[data-tooltip]:hover::before {
    z-index: 99999999999999999999999999999999999999999999999999999999999999999999;
    margin-bottom: -35px;
}


/* Reserves d avui (per tauleta / kiosk) */

.tcb-today-wrap {
    max-width: 1000px;
    margin: 40px auto;
    padding: 30px;
    background: #27334e;
    color: #e5e7eb;
    border-radius: 18px;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.6);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.tcb-today-wrap h2 {
    margin: 0 0 8px;
    font-size: 26px;
}

.tcb-today-date {
    margin: 0 0 16px;
    font-size: 16px;
    color: #cbd5f5;
}

.tcb-today-empty {
    font-size: 16px;
    margin-top: 10px;
}

.tcb-today-table {
    width: 100%;
    border-radius: 14px;
    overflow: hidden;
    background: #020617;
}

.tcb-today-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    gap: 12px;
}

.tcb-today-header h2 {
    color: #e0f2fe;
}

.tcb-today-header-row,
.tcb-today-row {
    display: grid;
    grid-template-columns: 120px 1fr 1fr;
    border-bottom: 1px solid #1e293b;
}

.tcb-today-header-row {
    background: #111827;
    font-weight: 600;
    font-size: 15px;
}

.tcb-today-col {
    padding: 10px 12px;
    border-left: 1px solid #1e293b;
}

.tcb-today-col:first-child {
    border-left: none;
}

.tcb-today-col-time {
    font-weight: 600;
    font-size: 16px;
    text-align: center;
    background: #111827;
}

.tcb-today-row:nth-child(odd) .tcb-today-col:not(.tcb-today-col-time) {
    background: #020617;
}

.tcb-today-row:nth-child(even) .tcb-today-col:not(.tcb-today-col-time) {
    background: #020617;
}

/* Cel.les detalls */

.tcb-today-cell {
    font-size: 15px;
    line-height: 1.3;
}

.tcb-today-cell-empty {
    font-size: 14px;
    color: #64748b;
}

.tcb-today-names {
    font-weight: 600;
    margin-bottom: 4px;
}

.tcb-today-meta {
    font-size: 13px;
    color: #94a3b8;
}

.tcb-today-cell-confirmed .tcb-today-names {
    color: #bbf7d0;
}

.tcb-today-cell-pending .tcb-today-names {
    color: #facc15;
}

.tcb-today-cell-cancelled .tcb-today-names {
    color: #fecaca;
    text-decoration: line-through;
}

/* Responsiu */

@media (max-width: 768px) {
    .tcb-today-header-row,
    .tcb-today-row {
        grid-template-columns: 80px 1fr 1fr;
    }

    .tcb-today-wrap {
        margin: 20px 10px;
        padding: 14px;
    }
}

.tcb-today-nav {
    display: flex;
    gap: 8px;
}

.tcb-today-nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid #334155;
    background: #020617;
    color: #e5e7eb;
    font-size: 13px;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

.tcb-today-nav-btn:hover {
    background: #08b2e1;
    color: #ffffff !important;
     border: 1px solid #646464;
    
    transform: translateY(0px);
}

.tcb-today-nav-btn-today {
     border: 1px solid #14d424;
    color: #bbf7d0;
    
}

.tcb-today-nav-btn-today:hover {
    
    color: #bbf7d0;
     border: 1px solid #0d911f;
     background-color: #14d424 !important;
}


/* Fes que cada calendari tingui scroll vertical propi */
.tcb-calendar {
    position: relative;
    max-height: 60vh;    /* ajusta-ho al gust (400, 500...) */
    overflow-y: auto;
}

/* Capçalera de dies enganxada a dalt quan fas scroll */
.tcb-calendar-header-row {
   display: grid;
    grid-template-columns: repeat(7, 1fr);
        position: sticky;
    top: 0;              /* si queda massa a dalt, pots posar p.ex. 60px */
    z-index: 50;
    background: #f4f7fb; /* mateix fons que ja tens als dies */
    box-shadow: #1118276e 0px 0px 10px;
}

/* Navegacio de setmanes al calendari */
.tcb-week-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 35px 0 55px;
}

.tcb-week-nav-label {
    flex: 1;
    text-align: center;
    font-weight: 600;
    font-size: 1.85rem;
    color: #111827;
    border-bottom: 1px solid #9ca3af;
}

.tcb-week-nav-btn {
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid #d1d5db;
    background: #ffffff;
    font-size: 1.35rem;
    line-height: 1.2;
    text-decoration: none;
    color: #111827;
    cursor: pointer;
    white-space: nowrap;
    margin-bottom: -30px;
}

.tcb-week-nav-btn:hover {
    border-color: #9ca3af;
    background: #383c43;
     border: 1px solid #383c43;
     color: #ffffff;
}

.tennis-court1-icon {
    display: inline-block;
    width: 44px;            /* ajusta la mida que vulguis */
    height: 44px;
    background-image: url("https://www.tenniscaldes.com/gestio/wp-content/uploads/2025/12/pista1-icob.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    vertical-align: middle;
}

.tennis-court2-icon {
    display: inline-block;
    width: 44px;            /* ajusta la mida que vulguis */
    height: 44px;
    background-image: url("https://www.tenniscaldes.com/gestio/wp-content/uploads/2025/12/pista2-icob.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    vertical-align: middle;
}


.tcb-modal-summary {
    margin: 0 0 16px;
    font-size: 16px;
    color: #0f172a;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    background-color: #d7e0f2;
    padding: 20px !important;
    border-radius: 12px;
}

.tcb-summary-item strong {
    font-weight: 600;
}

.tcb-opponent-group {
    margin-bottom: 16px;
}

.tcb-modal-label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
}

.tcb-opponent-type-option {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    font-size: 14px;
}

.tcb-opponent-type-option input[type="radio"] {
    width: auto;
    margin: 0;
}

.tcb-member-search-input {
    width: 250px !important;
    margin-bottom: 6px;
    box-sizing: border-box;
}


.tcb-member-search-input {
   
    box-sizing: border-box;
}

.tcb-member-search-results {
    display: none;
    margin-top: 4px;
    max-height: 180px;
    overflow-y: auto;
    border: 1px solid #ddd;
    background: #f8f7db;
    border-radius: 3px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    font-size: 14px;
    position: relative;
    z-index: 1000;
    width: 100% !important;
}

.tcb-member-result {
    padding: 4px 8px;
    cursor: pointer;
    border-bottom: 1px solid #d9d9d9;
    width: 100% !important;
}

.tcb-member-result:hover {
    background: #f0f0f0;
}

.tcb-member-result-empty {
    color: #888;
    cursor: default;
}


/* Spinner boto registre soci */
#tcb-register-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

#tcb-register-submit .tcb-spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: tcb-spin 0.8s linear infinite;
}

#tcb-register-submit.is-loading .tcb-spinner {
  display: inline-block;
}

#tcb-register-submit.is-loading {
  pointer-events: none;
  opacity: 0.85;
}

@keyframes tcb-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}



.tcb-booking-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 210px;
    min-height: 46px;
    position: relative;
}

.tcb-booking-submit-spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.38);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: tcb-spin 0.8s linear infinite;
}

.tcb-booking-submit-btn.is-loading {
    pointer-events: none;
    opacity: 0.88;
}

.tcb-booking-submit-btn.is-loading .tcb-booking-submit-spinner {
    display: inline-block;
}


.tcb-opponent-member-field {
    margin-top: 10px;
}

.tcb-player-card {
    background: #f8fafc;
    border: 1px solid #dbe4ee;
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 12px;
}

.tcb-player-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.tcb-player-card-title {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
}

.tcb-player-card-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    background: #dbeafe;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 600;
}

.tcb-player-card-badge-optional {
    background: #e5e7eb;
    color: #374151;
}

.tcb-member-search-input {
    width: 100% !important;
    margin-bottom: 6px;
    font-size: 14px;
}

.tcb-member-search-results {
    display: none;
    margin-top: 4px;
    max-height: 180px;
    overflow-y: auto;
    border: 1px solid #ddd;
    background: #f8f7db;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    font-size: 14px;
    position: relative;
    z-index: 1000;
    width: 100% !important;
}

.tcb-member-result {
    padding: 8px 10px;
    cursor: pointer;
    border-bottom: 1px solid #d9d9d9;
    width: 100% !important;
    box-sizing: border-box;
}

.tcb-member-result:hover {
    background: #f0f0f0;
}

.tcb-member-result-empty {
    color: #888;
    cursor: default;
}

/* CONTENIDOR MODAL */
.tcb-booking-modal-content {
    display: flex;
    flex-direction: column;
    width: min(92vw, 680px);
    max-width: 680px;
    max-height: 90vh;
    overflow: hidden;
    box-sizing: border-box;
}

/* FORM FLEX */
.tcb-booking-form {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

/* ZONA SCROLLABLE */
.tcb-modal-body {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
    padding-right: 8px;
}

/* BOTÓ FIX A BAIX */
.tcb-modal-actions {
    position: sticky;
    bottom: 0;
    background: #fff;
    padding: 12px 0 0 0;
    margin-top: 12px;
    border-top: 1px solid #e5e5e5;
    z-index: 10;
}

/* BOTÓ FULL WIDTH */
.tcb-modal-actions button,
.tcb-modal-actions input[type="submit"] {
    width: 100%;
}


.tcb-modal-close {
    z-index: 9999 !important;
}


.tcb-doubles-toggle-wrap {
    margin: 12px 0 16px 0;
}

.tcb-doubles-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d9d9d9;
    border-radius: 10px;
    background: #f7f7f7;
    color: #222;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.tcb-doubles-toggle:hover {
    background: #eeeeee;
}

.tcb-doubles-toggle.is-open {
    background: #222;
    border-color: #222;
    color: #fff;
}

.tcb-doubles-fields {
    margin-top: 4px;
}