/* Thumb War Hockey - Plan 02: payments, broadcasts, calendar + follow-team. Included per page via $extraHead. */

/* Pay-now choice (registration step 4) */
.pay-choice { background: var(--cream, #f5f1e8); border-radius: 12px; padding: 1rem; }
.pay-options { display: grid; gap: .6rem; }
.pay-option { position: relative; display: block; margin: 0; cursor: pointer; }
.pay-option[hidden] { display: none; }
.pay-option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pay-option .pay-body { display: block; border: 2px solid #dfe3ea; border-radius: 12px; padding: .8rem 1rem .8rem 2.6rem; background: #fff; min-height: 56px; transition: border-color .15s, box-shadow .15s; }
.pay-option .pay-body::before { content: ''; position: absolute; left: 1rem; top: 1rem; width: 20px; height: 20px; border-radius: 50%; border: 2px solid #b9c0cc; background: #fff; }
.pay-option input:checked + .pay-body { border-color: var(--navy, #1f2d4d); box-shadow: 0 0 0 .2rem rgba(31, 45, 77, .12); }
.pay-option input:checked + .pay-body::before { border-color: var(--red, #b22234); background: radial-gradient(var(--red, #b22234) 0 45%, #fff 50%); }
.pay-option input:focus-visible + .pay-body { outline: 3px solid var(--ice, #a8cde6); outline-offset: 2px; }
.pay-option .pay-title { display: block; font-family: var(--font-head, inherit); font-weight: 800; text-transform: uppercase; color: var(--navy-deep, #141a2b); font-size: .95rem; line-height: 1.2; }
.pay-option .pay-meta { display: block; color: var(--muted, #5d6474); font-size: .85rem; margin-top: .15rem; }
.pay-option .pay-meta b { color: var(--navy, #1f2d4d); }

/* Portal: balance card */
.balance-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; background: var(--cream, #f5f1e8); border-radius: 12px; padding: 1rem 1.1rem; }
.balance-card .amount { font-family: var(--font-score, inherit); font-weight: 800; font-size: 2rem; line-height: 1; color: var(--navy, #1f2d4d); }
.balance-card .amount.is-zero { color: #2e9e5b; }
.balance-card .label { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted, #5d6474); font-weight: 700; }
.balance-card .actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.balance-card .actions .btn { min-height: 44px; }
.badge-tw.badge-due { background: var(--red, #b22234); color: #fff; }
.pay-ledger { font-size: .9rem; }
.pay-ledger li { display: flex; justify-content: space-between; gap: .75rem; padding: .45rem 0; border-bottom: 1px solid #eee; }
.pay-ledger li:last-child { border: 0; }
.pay-ledger .neg { color: var(--red, #b22234); }

/* Follow this team */
.follow-btn { min-height: 44px; white-space: nowrap; }
.follow-btn.is-following { background: var(--navy, #1f2d4d); color: #fff; border-color: var(--navy, #1f2d4d); }
.follow-btn .fa-heart { transition: transform .15s; }
.follow-btn.is-following .fa-heart { color: var(--red, #b22234); transform: scale(1.12); }
.follow-bar { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.follow-bar .btn { min-height: 44px; }

/* Home: your next game */
.next-game { background: #fff; border-radius: var(--radius, 14px); box-shadow: var(--shadow, 0 10px 30px rgba(20, 26, 43, .12)); padding: 1.1rem 1.25rem; display: grid; gap: .75rem; }
.next-game .ng-head { display: flex; justify-content: space-between; align-items: baseline; gap: .75rem; flex-wrap: wrap; }
.next-game .ng-team { font-family: var(--font-head, inherit); font-weight: 800; text-transform: uppercase; color: var(--navy-deep, #141a2b); font-size: 1.05rem; }
.next-game .ng-matchup { font-family: var(--font-score, inherit); font-weight: 800; font-size: 1.6rem; line-height: 1.1; color: var(--navy, #1f2d4d); }
.next-game .ng-matchup small { font-family: inherit; font-weight: 600; color: var(--muted, #5d6474); font-size: 1rem; }
.next-game .ng-meta { color: var(--muted, #5d6474); font-size: .92rem; }
.next-game .ng-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.next-game .ng-actions .btn { min-height: 44px; }
.next-game .ng-unfollow { background: none; border: 0; color: var(--muted, #5d6474); font-size: .85rem; text-decoration: underline; min-height: 44px; padding: 0 .5rem; }
.next-game-section { padding: 1.25rem 0 0; }
@media (min-width: 992px) { .next-game-section { margin-top: -2.5rem; position: relative; z-index: 2; } }

/* Admin: payment history table + broadcast */
.pay-history td, .pay-history th { vertical-align: middle; }
.badge-pay-succeeded { background: #2e9e5b; }
.badge-pay-pending { background: #d9a400; color: #1a1f2b; }
.badge-pay-failed { background: #b22234; }
.badge-pay-refunded { background: #6c757d; }
.badge-bc-sent { background: #2e9e5b; }
.badge-bc-failed { background: #b22234; }
.badge-bc-queued { background: #6c757d; }
.merge-chip { display: inline-block; border: 1px solid #ced4da; border-radius: 999px; padding: .2rem .65rem; font-size: .8rem; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; background: #f8f9fa; cursor: pointer; min-height: 32px; }
.merge-chip:hover { background: #e9ecef; }
.sms-counter { font-variant-numeric: tabular-nums; }
.bc-progress { height: 10px; }
.stat-tile { background: #fff; border: 1px solid #e6e8ee; border-radius: 12px; padding: .9rem 1rem; }
.stat-tile .v { font-family: var(--font-head, inherit); font-weight: 800; font-size: 1.5rem; line-height: 1.1; color: #1f2d4d; }
.stat-tile .l { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: #6c757d; font-weight: 700; }
@media (max-width: 575.98px) {
    .next-game .ng-matchup { font-size: 1.3rem; }
    .balance-card .amount { font-size: 1.6rem; }
}
