/* BFL Transfers v2 */
* { box-sizing: border-box; }

.bfl-tr-wrap { max-width: 800px; margin: 0 auto; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
.bfl-tr-wide { max-width: 100%; }

/* Header */
.bfl-tr-header {
    background: #2c3e50; color: #fff; padding: 14px 20px; font-size: 16px;
    font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
    border-top: 3px solid #3498db; display: flex; justify-content: space-between; align-items: center;
}
.bfl-tr-header-status { font-size: 12px; font-weight: 600; padding: 4px 12px; border-radius: 3px; }

.bfl-tr-body { background: #fff; border: 1px solid #ddd; border-top: none; padding: 24px; }

/* Status colors */
.bfl-tr-status-open { background: #27ae60; color: #fff; }
.bfl-tr-status-closed { background: #e74c3c; color: #fff; }

/* Team info */
.bfl-tr-team-info {
    display: flex; justify-content: space-between; align-items: center;
    padding: 16px; background: #f8f9fa; border-radius: 8px; margin-bottom: 20px;
    flex-wrap: wrap; gap: 16px;
}
.bfl-tr-team-left { display: flex; align-items: center; gap: 14px; }
.bfl-tr-team-logo { width: 56px; height: 56px; object-fit: contain; }
.bfl-tr-team-name { margin: 0; font-size: 20px; color: #2c3e50; }
.bfl-tr-team-manager { font-size: 13px; color: #888; }
.bfl-tr-team-right { display: flex; gap: 20px; flex-wrap: wrap; }
.bfl-tr-stat { text-align: center; }
.bfl-tr-stat-label { display: block; font-size: 11px; text-transform: uppercase; color: #888; letter-spacing: 0.5px; margin-bottom: 4px; }
.bfl-tr-stat-value { display: block; font-size: 18px; font-weight: 700; color: #2c3e50; }
.bfl-tr-negative { color: #e74c3c; }

/* Transfer window info */
.bfl-tr-window-info {
    background: #eef6ff; border: 1px solid #bdd7f1; border-top: none;
    padding: 8px 20px; font-size: 12px; color: #2c3e50;
}

/* Players header */
.bfl-tr-players-header {
    font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
    color: #2c3e50; padding-bottom: 8px; border-bottom: 2px solid #ecf0f1; margin-bottom: 0;
}

/* Players table */
.bfl-tr-players-table { width: 100%; border-collapse: collapse; }
.bfl-tr-players-table th {
    padding: 8px 12px; text-align: left; font-size: 11px; font-weight: 600;
    text-transform: uppercase; color: #888; background: #f8f9fa; border-bottom: 2px solid #e9ecef;
}
.bfl-tr-players-table td { padding: 10px 12px; border-bottom: 1px solid #f0f0f0; vertical-align: middle; }
.bfl-tr-players-table tbody tr:hover { background: #f8fbff; }
.bfl-tr-row-listed { background: #fef9e7; }
.bfl-tr-row-listed:hover { background: #fdf3d0 !important; }

.bfl-tr-col-num { width: 40px; color: #aaa; font-size: 13px; }
.bfl-tr-col-name { font-weight: 600; color: #2c3e50; }
.bfl-tr-col-pos { width: 90px; }
.bfl-tr-col-status { width: 80px; }
.bfl-tr-col-action { width: 140px; text-align: right; }

/* Badges */
.bfl-tr-badge {
    display: inline-block; padding: 3px 10px; border-radius: 12px;
    font-size: 11px; font-weight: 600; letter-spacing: 0.3px;
}
.bfl-tr-badge-ok { background: #eafaf1; color: #27ae60; }
.bfl-tr-badge-tl { background: #fef9e7; color: #f39c12; }
.bfl-tr-badge-wait { background: #fef9e7; color: #e67e22; }

.bfl-tr-pos-badge {
    display: inline-block; padding: 2px 8px; background: #34495e; color: #fff;
    border-radius: 3px; font-size: 11px; font-weight: 600;
}

/* Buttons */
.bfl-tr-btn-small {
    padding: 5px 14px; border: none; border-radius: 4px; cursor: pointer;
    font-size: 12px; font-weight: 600; transition: all 0.2s;
}
.bfl-tr-btn-list { background: #3498db; color: #fff; }
.bfl-tr-btn-list:hover { background: #2980b9; }
.bfl-tr-btn-unlist { background: #e74c3c; color: #fff; }
.bfl-tr-btn-unlist:hover { background: #c0392b; }
.bfl-tr-disabled { font-size: 11px; color: #bbb; }

/* Academy count */
.bfl-tr-academy-count { font-size: 13px; color: #3498db; font-weight: 600; }

/* ---- Transfer List TABLE ---- */
.bfl-tr-body-tl { padding: 0; }
.bfl-tr-tl-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.bfl-tr-tl-table { width: 100%; border-collapse: collapse; }
.bfl-tr-tl-table thead { background: #34495e; }
.bfl-tr-tl-table th {
    padding: 10px 14px; text-align: left; font-size: 11px; font-weight: 600;
    text-transform: uppercase; color: #fff; letter-spacing: 0.3px; white-space: nowrap;
}
.bfl-tr-tl-table td {
    padding: 10px 14px; border-bottom: 1px solid #f0f0f0; vertical-align: middle;
}
.bfl-tr-tl-table tbody tr:hover { background: #f8fbff; }
.bfl-tr-tl-table tbody tr:nth-child(even) { background: #fafafa; }
.bfl-tr-tl-table tbody tr:nth-child(even):hover { background: #f0f4f8; }

.bfl-tr-tl-col-time { white-space: nowrap; }
.bfl-tr-tl-datetime { font-size: 12px; color: #888; }
.bfl-tr-tl-clock { font-size: 14px; font-weight: 700; color: #2c3e50; }
.bfl-tr-tl-col-player { font-weight: 700; color: #2c3e50; font-size: 14px; white-space: nowrap; }
.bfl-tr-tl-col-pos { width: 60px; }
.bfl-tr-tl-col-seller { font-size: 13px; color: #555; white-space: nowrap; }
.bfl-tr-tl-col-price { font-size: 15px; font-weight: 700; color: #27ae60; white-space: nowrap; }
.bfl-tr-tl-col-hours { font-size: 13px; font-weight: 600; color: #888; text-align: center; }
.bfl-tr-tl-col-status { text-align: center; }

/* Messages */
.bfl-tr-msg { text-align: center; color: #888; padding: 30px; font-size: 14px; }
.bfl-tr-empty { padding: 60px 20px; }

/* Modal */
.bfl-tr-modal {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5); z-index: 99999; display: flex;
    align-items: center; justify-content: center;
}
.bfl-tr-modal-content {
    background: #fff; border-radius: 8px; width: 380px; max-width: 90vw;
    overflow: hidden; box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}
.bfl-tr-modal-header {
    background: #2c3e50; color: #fff; padding: 14px 20px;
    font-size: 14px; font-weight: 700; letter-spacing: 1px;
}
.bfl-tr-modal-body { padding: 20px; }
.bfl-tr-modal-body p { margin: 0 0 10px; font-size: 14px; color: #555; }
.bfl-tr-modal-field { margin-top: 16px; }
.bfl-tr-modal-field label { display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; margin-bottom: 6px; color: #333; }
.bfl-tr-modal-field input {
    width: 100%; padding: 10px; border: 1px solid #ccc; border-radius: 4px;
    font-size: 16px; font-weight: 700;
}
.bfl-tr-modal-field small { color: #999; font-size: 11px; }
.bfl-tr-modal-footer { padding: 16px 20px; display: flex; gap: 10px; justify-content: flex-end; border-top: 1px solid #eee; }
.bfl-tr-btn-confirm {
    padding: 8px 24px; background: #27ae60; color: #fff; border: none;
    border-radius: 4px; cursor: pointer; font-weight: 600; font-size: 14px;
}
.bfl-tr-btn-confirm:hover { background: #219a52; }
.bfl-tr-btn-cancel {
    padding: 8px 24px; background: #eee; color: #333; border: none;
    border-radius: 4px; cursor: pointer; font-weight: 600; font-size: 14px;
}
.bfl-tr-modal-msg { padding: 0 20px 12px; font-size: 13px; font-weight: 600; min-height: 16px; margin: 0; }

/* Responsive */
@media (max-width: 600px) {
    .bfl-tr-team-info { flex-direction: column; align-items: flex-start; }
    .bfl-tr-team-right { width: 100%; justify-content: space-around; }
    .bfl-tr-players-table { font-size: 13px; }
    .bfl-tr-col-num { display: none; }
    .bfl-tr-tl-grid { grid-template-columns: 1fr; }
}
