.tbc-app { max-width: 900px; margin: 0 auto; font-family: inherit; color: #1f2a24; }

.tbc-login-required { text-align: center; padding: 30px; background: #f4f6f4; border-radius: 10px; }
.tbc-btn-primary {
  display: inline-block; margin-top: 10px; background: #1e6b3f; color: #fff !important;
  padding: 10px 18px; border-radius: 6px; text-decoration: none; font-weight: 600;
}
.tbc-btn-primary:hover { background: #14502e; }

.tbc-toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.tbc-toolbar input[type="date"] { padding: 8px; border-radius: 6px; border: 1px solid #dfe4df; }
.tbc-window-note { color: #6b756f; font-size: 0.85rem; }

.tbc-credits-badge {
  display: inline-block; background: #eaf3ee; color: #14502e; padding: 6px 12px;
  border-radius: 20px; font-weight: 600; font-size: 0.9rem; margin-bottom: 14px;
}
.tbc-credits-badge.low { background: #fdecea; color: #c0392b; }

.tbc-legend { display: flex; gap: 16px; margin: 10px 0 18px; font-size: 0.8rem; color: #6b756f; flex-wrap: wrap; }
.tbc-legend span { display: inline-flex; align-items: center; gap: 6px; }
.tbc-dot { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }

.tbc-court-block { background: #fff; border: 1px solid #dfe4df; border-radius: 10px; padding: 16px; margin-bottom: 16px; }
.tbc-court-title { font-weight: 700; margin-bottom: 10px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px;}
.tbc-court-title .tbc-meta { color: #6b756f; font-weight: 400; font-size: 0.85rem; }

.tbc-slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 8px; }
.tbc-slot {
  padding: 10px 6px; border-radius: 6px; text-align: center; font-size: 0.85rem;
  cursor: pointer; border: 1px solid transparent; user-select: none;
}
.tbc-slot.free { background: #e8f5ec; color: #14502e; border-color: #c9e6d3; }
.tbc-slot.free:hover { background: #d3ecdc; }
.tbc-slot.confirmed { background: #1e6b3f; color: #fff; cursor: default; }
.tbc-slot.mine { background: #2f7fd1; color: #fff; }
.tbc-slot.blocked { background: #cfcfcf; color: #666; cursor: not-allowed; }

.tbc-my-bookings, .tbc-credits-history { background: #fff; border: 1px solid #dfe4df; border-radius: 10px; padding: 16px; margin-bottom: 16px; }
.tbc-booking-row, .tbc-tx-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid #dfe4df; font-size: 0.9rem; }
.tbc-booking-row:last-child, .tbc-tx-row:last-child { border-bottom: none; }
.tbc-btn-cancel { background: #fdecea; color: #c0392b; border: none; padding: 6px 10px; border-radius: 6px; cursor: pointer; font-size: 0.8rem; }
.tbc-btn-cancel:hover { background: #fbd6d2; }

.tbc-tx-amount.positive { color: #1e6b3f; font-weight: 600; }
.tbc-tx-amount.negative { color: #c0392b; font-weight: 600; }

.tbc-modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.4); display: flex; align-items: center; justify-content: center; z-index: 9999; }
.tbc-modal { background: #fff; border-radius: 10px; padding: 20px; width: 320px; max-width: 90vw; }
.tbc-modal h3 { margin-top: 0; }
.tbc-modal label { display: flex; flex-direction: column; gap: 4px; font-size: 0.85rem; color: #6b756f; margin-bottom: 12px; }
.tbc-modal input { padding: 8px; border: 1px solid #dfe4df; border-radius: 6px; width: 100%; }
.tbc-modal-actions { display: flex; justify-content: flex-end; gap: 8px; }
.tbc-modal-actions button { padding: 8px 14px; border-radius: 6px; cursor: pointer; border: 1px solid #dfe4df; }
.tbc-modal-actions .tbc-confirm { background: #1e6b3f; color: #fff; border: none; }

.tbc-toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: #1f2a24; color: #fff; padding: 10px 18px; border-radius: 8px; font-size: 0.9rem; z-index: 10000; }
.tbc-toast.error { background: #c0392b; }
