.portal-page { min-height: 100vh; background: #022d23; color: #f4f8f6; }
.portal-background { position: fixed; inset: -20px; background: url("/assets/img/cancha1.webp") center / cover no-repeat; filter: blur(7px) saturate(.72); transform: scale(1.04); }
.portal-overlay { position: fixed; inset: 0; background: rgba(0, 49, 37, .82); }
.portal-shell { position: relative; z-index: 1; width: min(600px, calc(100% - 30px)); max-width: calc(100% - 30px); min-width: 0; min-height: 100vh; margin: 0 auto; padding: 28px 0 36px; overflow-x: hidden; overflow-x: clip; }
.portal-header { display: flex; justify-content: center; margin-bottom: 24px; }
.portal-brand { display: flex; align-items: center; gap: 11px; }
.portal-logo { width: 48px; height: 48px; display: grid; place-items: center; overflow: hidden; border: 1px solid rgba(255,255,255,.15); border-radius: 8px; background: rgba(255,255,255,.06); }
.portal-logo img { width: 37px; height: 37px; object-fit: contain; }
.portal-brand strong, .portal-brand small { display: block; }
.portal-brand strong { font-size: 18px; line-height: 1.1; }
.portal-brand small { margin-top: 3px; color: rgba(232, 243, 238, .58); font-size: 10px; }
.booking-card { width: 100%; max-width: 100%; min-width: 0; padding: clamp(20px, 5vw, 32px); border: 1px solid rgba(255, 255, 255, .12); border-radius: 8px; background: rgba(11, 22, 18, .93); box-shadow: 0 22px 65px rgba(0, 0, 0, .32); backdrop-filter: blur(18px); overflow-x: hidden; overflow-x: clip; }
.booking-card-header { margin-bottom: 20px; text-align: center; }
.portal-kicker { margin: 0 0 7px; color: #33cf98; font-size: 9px; font-weight: 800; }
.booking-card-header h1 { margin: 0; font-size: 24px; line-height: 1.2; text-transform: none; }
.booking-card-header > p:last-child { margin: 6px 0 0; color: rgba(226, 237, 232, .58); font-size: 11px; }
.booking-card-header strong { color: #33cf98; }
#public-booking-form { width: 100%; max-width: 100%; min-width: 0; display: grid; gap: 16px; }
#public-booking-form > *, .portal-field { max-width: 100%; min-width: 0; }
.portal-field { width: 100%; display: grid; gap: 7px; }
.portal-field > span:first-child, .slot-field legend, .court-field legend { width: 100%; display: flex; align-items: center; justify-content: space-between; color: rgba(226, 237, 232, .62); font-size: 9px; font-style: normal; font-weight: 800; text-transform: uppercase; }
.portal-field small, .slot-field small, .court-field legend small { padding: 3px 6px; border-radius: 3px; background: rgba(38, 201, 143, .1); color: #31c991; font-size: 8px; }
.portal-field em { color: rgba(226, 237, 232, .38); font-size: 8px; font-style: normal; }
.portal-field input, .portal-field textarea { width: 100%; max-width: 100%; min-width: 0; min-height: 46px; display: block; border-color: rgba(255,255,255,.12); background: rgba(3, 12, 9, .72); color: #f4f8f6; }
.portal-field textarea { min-height: 78px; }
.portal-field input:focus, .portal-field textarea:focus { border-color: rgba(47, 200, 142, .6); box-shadow: 0 0 0 3px rgba(47, 200, 142, .1); }
.portal-input { position: relative; width: 100%; max-width: 100%; min-width: 0; display: block; overflow: hidden; }
.portal-input > svg { position: absolute; left: 13px; top: 50%; width: 16px; transform: translateY(-50%); color: rgba(226, 237, 232, .4); pointer-events: none; }
.portal-input input { padding-left: 39px; }
#booking-date, #booking-date + .form-control { width: 100%; max-width: 100%; min-width: 0; inline-size: 100%; min-inline-size: 0; cursor: pointer; }
#booking-date + .form-control::placeholder { color: rgba(226, 237, 232, .38); opacity: 1; }
.flatpickr-calendar { width: 326px; padding: 9px; border: 1px solid rgba(255,255,255,.13); border-radius: 8px; background: #0b1713; color: #eef6f2; font-family: Manrope, sans-serif; box-shadow: 0 22px 60px rgba(0,0,0,.46); }
.flatpickr-calendar.arrowTop::before { border-bottom-color: rgba(255,255,255,.13); }
.flatpickr-calendar.arrowTop::after { border-bottom-color: #0b1713; }
.flatpickr-calendar.arrowBottom::before { border-top-color: rgba(255,255,255,.13); }
.flatpickr-calendar.arrowBottom::after { border-top-color: #0b1713; }
.flatpickr-months { align-items: center; margin-bottom: 6px; }
.flatpickr-months .flatpickr-month { height: 42px; color: #f4f8f6; fill: #f4f8f6; }
.flatpickr-current-month { height: 42px; padding-top: 10px; color: #f4f8f6; font-size: 14px; font-weight: 800; }
.flatpickr-current-month .flatpickr-monthDropdown-months { appearance: none; padding: 0 4px; background: transparent; color: #f4f8f6; font-weight: 800; }
.flatpickr-current-month .flatpickr-monthDropdown-months:hover,
.flatpickr-current-month input.cur-year:hover,
.flatpickr-current-month input.cur-year:focus { background: rgba(255,255,255,.06); }
.flatpickr-current-month .flatpickr-monthDropdown-months option { background: #0b1713; color: #f4f8f6; }
.flatpickr-current-month input.cur-year { color: #f4f8f6; font-weight: 800; }
.flatpickr-current-month input.cur-year:disabled { opacity: 1; color: rgba(244,248,246,.64); }
.numInputWrapper span { border-color: rgba(255,255,255,.08); }
.numInputWrapper span:hover { background: rgba(255,255,255,.06); }
.numInputWrapper span.arrowUp::after { border-bottom-color: rgba(244,248,246,.66); }
.numInputWrapper span.arrowDown::after { border-top-color: rgba(244,248,246,.66); }
.flatpickr-prev-month, .flatpickr-next-month { top: 9px; width: 36px; height: 36px; display: grid; place-items: center; padding: 10px; border-radius: 6px; color: rgba(238,246,242,.68) !important; fill: currentColor !important; }
.flatpickr-prev-month:hover, .flatpickr-next-month:hover { background: rgba(255,255,255,.06); color: #50dea9 !important; }
.flatpickr-prev-month svg, .flatpickr-next-month svg { width: 14px; height: 14px; fill: currentColor !important; }
.flatpickr-weekdays { height: 30px; border-top: 1px solid rgba(255,255,255,.06); border-bottom: 1px solid rgba(255,255,255,.06); }
span.flatpickr-weekday { color: rgba(226,237,232,.46); font-size: 9px; font-weight: 800; }
.flatpickr-innerContainer, .flatpickr-rContainer, .flatpickr-days, .dayContainer { width: 100%; min-width: 0; max-width: none; }
.flatpickr-days { border: 0; }
.dayContainer { padding-top: 5px; }
.flatpickr-day { max-width: 14.2857%; height: 38px; flex-basis: 14.2857%; border-radius: 5px; color: rgba(244,248,246,.82); font-size: 11px; font-weight: 700; line-height: 38px; }
.flatpickr-day:hover, .flatpickr-day:focus { border-color: rgba(47,200,142,.18); background: rgba(47,200,142,.1); color: #f4f8f6; }
.flatpickr-day.today { border-color: rgba(80,222,169,.58); color: #61dfb0; }
.flatpickr-day.today:hover, .flatpickr-day.today:focus { border-color: #50dea9; background: rgba(47,200,142,.14); color: #f4f8f6; }
.flatpickr-day.selected, .flatpickr-day.selected:hover, .flatpickr-day.selected:focus { border-color: #20bc84; background: #20bc84; color: #03251a; font-weight: 850; box-shadow: 0 6px 16px rgba(32,188,132,.2); }
.flatpickr-day.prevMonthDay, .flatpickr-day.nextMonthDay { color: rgba(226,237,232,.2); }
.flatpickr-day.flatpickr-disabled, .flatpickr-day.flatpickr-disabled:hover { border-color: transparent; background: transparent; color: rgba(226,237,232,.12); cursor: not-allowed; }
.slot-field, .court-field { min-width: 0; margin: 0; padding: 0; border: 0; }
.slot-field legend, .court-field legend { margin-bottom: 8px; }
.court-field[hidden] { display: none; }
.slot-list { min-height: 52px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; }
.slot-placeholder { grid-column: 1 / -1; min-height: 52px; display: grid; place-items: center; margin: 0; border: 1px dashed rgba(255,255,255,.1); border-radius: 6px; color: rgba(226, 237, 232, .38); font-size: 10px; text-align: center; }
.slot-option { min-height: 42px; display: grid; place-items: center; padding: 0; border: 1px solid rgba(255,255,255,.11); border-radius: 5px; background: rgba(3, 12, 9, .6); color: rgba(245,248,246,.78); font-size: 11px; font-weight: 750; cursor: pointer; }
.slot-option:hover { border-color: rgba(47, 200, 142, .4); }
.slot-option.selected { border-color: #2fc88e; background: rgba(47, 200, 142, .14); color: #50dea9; }
.slot-option small { display: block; margin-top: 2px; color: rgba(226, 237, 232, .38); font-size: 7px; }
.court-list { min-height: 72px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.court-option { min-width: 0; min-height: 70px; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 8px; padding: 9px; border: 1px solid rgba(255,255,255,.11); border-radius: 5px; background: rgba(3, 12, 9, .6); color: rgba(245,248,246,.78); cursor: pointer; text-align: left; }
.court-option:hover { border-color: rgba(47, 200, 142, .4); }
.court-option.selected { border-color: #2fc88e; background: rgba(47, 200, 142, .14); color: #50dea9; box-shadow: inset 0 0 0 1px rgba(47, 200, 142, .08); }
.court-option > svg { width: 16px; color: rgba(80,222,169,.76); }
.court-option span, .court-option strong, .court-option small { min-width: 0; display: block; }
.court-option strong { overflow: hidden; color: #f4f8f6; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.court-option small { margin-top: 4px; color: rgba(226,237,232,.42); font-size: 7px; line-height: 1.35; }
.portal-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.deposit-notice { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 10px; padding: 11px 12px; border: 1px solid rgba(201, 162, 103, .18); border-radius: 6px; background: rgba(201, 162, 103, .08); color: #d6b77f; font-size: 10px; }
.deposit-notice > svg { width: 18px; }
.deposit-notice strong, .deposit-notice small { display: block; }
.deposit-notice small { margin-top: 3px; color: rgba(232, 225, 208, .5); line-height: 1.45; }
.deposit-notice.deposit-unavailable { border-color: rgba(199, 124, 120, .24); background: rgba(199, 124, 120, .08); color: #d58f8b; }
.deposit-choice { display: flex; align-items: center; gap: 7px; margin-top: 7px; color: rgba(245, 248, 246, .72); cursor: pointer; }
.deposit-choice input { width: 15px; height: 15px; margin: 0; accent-color: #20bc84; }
.portal-submit { min-height: 52px; display: flex; align-items: center; justify-content: center; gap: 9px; margin-top: 2px; border: 0; border-radius: 6px; background: #20bc84; color: #05251a; font-weight: 800; cursor: pointer; box-shadow: 0 12px 28px rgba(22, 166, 114, .2); }
.portal-submit:hover { background: #31cb93; }
.portal-submit[disabled] { opacity: .55; cursor: wait; }
.manage-divider { height: 1px; margin: 25px 0 16px; background: rgba(255,255,255,.11); }
.manage-booking { border: 1px solid rgba(255,255,255,.06); border-radius: 6px; background: rgba(255,255,255,.025); }
.manage-booking summary { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 13px; color: rgba(245,248,246,.8); font-size: 11px; font-weight: 720; cursor: pointer; list-style: none; }
.manage-booking summary::-webkit-details-marker { display: none; }
.manage-booking summary > span { display: flex; align-items: center; gap: 8px; }
.manage-booking[open] summary > svg { transform: rotate(180deg); }
.manage-form { display: grid; gap: 12px; padding: 0 13px 14px; }
.manage-form > p { margin: 0; color: rgba(226, 237, 232, .47); font-size: 9px; }
.portal-secondary { min-height: 42px; border: 1px solid rgba(255,255,255,.13); border-radius: 6px; background: rgba(255,255,255,.05); color: #f4f8f6; font-size: 10px; font-weight: 750; cursor: pointer; }
.managed-result { display: grid; gap: 11px; margin: 0 13px 14px; padding: 13px; border: 1px solid rgba(255,255,255,.1); border-radius: 6px; background: rgba(3,12,9,.55); }
.managed-result header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.managed-result h3 { margin: 0; font-size: 12px; }
.managed-result p { margin: 4px 0 0; color: rgba(226,237,232,.5); font-size: 9px; }
.managed-result-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.managed-result-grid div { padding: 9px; border-radius: 5px; background: rgba(255,255,255,.035); }
.managed-result-grid span, .managed-result-grid strong { display: block; }
.managed-result-grid span { color: rgba(226,237,232,.4); font-size: 7px; text-transform: uppercase; }
.managed-result-grid strong { margin-top: 3px; font-size: 10px; }
.cancel-public-button { min-height: 40px; border: 1px solid rgba(199,124,120,.25); border-radius: 5px; background: rgba(199,124,120,.1); color: #d58f8b; font-size: 10px; font-weight: 750; cursor: pointer; }

.sponsor-section { margin-top: 22px; padding: 8px 0 18px; overflow: hidden; }
.sponsor-window { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.sponsor-track { width: max-content; display: flex; align-items: center; gap: 18px; animation: sponsor-scroll 28s linear infinite; }
.sponsor-item { width: clamp(84px, calc((100vw - 66px) / 3), 176px); min-width: clamp(84px, calc((100vw - 66px) / 3), 176px); height: 64px; display: flex; align-items: center; justify-content: center; gap: 8px; color: rgba(255,255,255,.9); filter: grayscale(.35); opacity: .92; transition: filter .2s ease, opacity .2s ease; }
.sponsor-item:hover { filter: grayscale(0); opacity: 1; }
.sponsor-item img { width: min(150px, calc(100% - 6px)); height: 52px; object-fit: contain; }
.sponsor-item span { font-size: 12px; font-weight: 800; }
@keyframes sponsor-scroll { to { transform: translateX(-50%); } }
.portal-footer { display: grid; justify-items: center; gap: 9px; margin-top: 16px; color: rgba(232, 243, 238, .28); font-size: 9px; text-align: center; }
.portal-footer small { padding: 4px 10px; border-radius: 99px; background: rgba(255,255,255,.04); font-size: 7px; font-weight: 750; }
.portal-success { text-align: center; }
.portal-success-icon { width: 48px; height: 48px; display: grid; place-items: center; margin: 0 auto 13px; border-radius: 50%; background: rgba(47,200,142,.12); color: #43d7a1; }
.portal-success h2 { margin: 0; font-size: 20px; }
.portal-success > p { margin: 6px 0 17px; color: rgba(226,237,232,.55); font-size: 10px; }
.reservation-code { padding: 13px; border: 1px solid rgba(47,200,142,.2); border-radius: 6px; background: rgba(47,200,142,.07); }
.reservation-code span, .reservation-code strong { display: block; }
.reservation-code span { color: rgba(226,237,232,.46); font-size: 8px; }
.reservation-code strong { margin-top: 4px; color: #50dea9; font-size: 22px; letter-spacing: 2px; }
.success-grid { margin: 12px 0; text-align: left; }
.success-note { line-height: 1.6; }
.success-sponsor-section { margin: 20px 0 18px; padding: 10px 0; border-top: 1px solid rgba(255,255,255,.08); border-bottom: 1px solid rgba(255,255,255,.08); }
.success-sponsor-section .sponsor-item { width: clamp(78px, calc((100vw - 86px) / 3), 160px); min-width: clamp(78px, calc((100vw - 86px) / 3), 160px); }
.portal-success > .portal-submit { width: 100%; }
.portal-closed { min-height: 250px; display: grid; place-content: center; justify-items: center; text-align: center; }
.portal-closed > svg { width: 36px; height: 36px; color: #33cf98; }
.portal-closed h2 { margin: 14px 0 5px; font-size: 19px; }
.portal-closed p { max-width: 320px; margin: 0; color: rgba(226,237,232,.55); font-size: 10px; line-height: 1.6; }
.portal-cancelled { display: flex; align-items: center; gap: 8px; margin: 12px 13px; padding: 11px; border: 1px solid rgba(47,200,142,.2); border-radius: 6px; background: rgba(47,200,142,.08); color: #50dea9; font-size: 10px; }

.payment-card { padding: clamp(20px, 4vw, 28px); }
.payment-step { display: grid; gap: 16px; }
.payment-step-header { display: flex; align-items: center; gap: 13px; }
.payment-step-header .payment-brand { width: 42px; height: 42px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid rgba(47, 200, 142, .22); border-radius: 7px; background: rgba(47, 200, 142, .09); color: #49d6a2; }
.payment-step-header h2 { margin: 0; font-size: 20px; }
.payment-step-header p:last-child { margin: 4px 0 0; color: rgba(226, 237, 232, .52); font-size: 10px; }
.payment-booking-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid rgba(255,255,255,.1); border-radius: 6px; background: rgba(3,12,9,.46); }
.payment-booking-summary > span { min-width: 0; padding: 12px; }
.payment-booking-summary > span + span { border-left: 1px solid rgba(255,255,255,.08); }
.payment-booking-summary small, .payment-booking-summary strong { display: block; }
.payment-booking-summary small { color: rgba(226,237,232,.42); font-size: 8px; text-transform: uppercase; }
.payment-booking-summary strong { margin-top: 4px; font-size: 16px; }
.payment-booking-summary > span:first-child strong { color: #4ad8a4; }
.hold-notice { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 34px; border-radius: 5px; background: rgba(201, 162, 103, .08); color: #d5b984; font-size: 9px; }
.hold-notice svg { width: 14px; }
.payment-loading, .payment-processing { min-height: 220px; display: grid; place-content: center; justify-items: center; gap: 10px; color: rgba(226,237,232,.52); font-size: 10px; text-align: center; }
.payment-processing h3 { margin: 2px 0 0; color: #f4f8f6; font-size: 15px; }
.payment-processing p { max-width: 300px; margin: 0; line-height: 1.6; }
#payment-content { min-width: 0; }
.payment-methods { display: grid; gap: 9px; }
.payment-method { width: 100%; min-height: 68px; display: grid; grid-template-columns: 40px minmax(0, 1fr) 18px; align-items: center; gap: 11px; padding: 12px 14px; border: 1px solid rgba(255,255,255,.1); border-radius: 7px; background: rgba(255,255,255,.035); color: #edf5f1; text-align: left; cursor: pointer; transition: border-color .16s ease, background .16s ease, transform .16s ease; }
.payment-method:hover { border-color: rgba(98,219,174,.3); background: rgba(255,255,255,.06); transform: translateY(-1px); }
.payment-method:focus-visible { outline: 2px solid rgba(74,216,164,.65); outline-offset: 2px; }
.payment-method:disabled { cursor: wait; opacity: .72; transform: none; }
.payment-method-primary { border-color: rgba(74,216,164,.28); background: rgba(39,174,124,.12); }
.payment-method-primary:hover { border-color: rgba(74,216,164,.48); background: rgba(39,174,124,.17); }
.payment-method-icon { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.09); border-radius: 6px; background: rgba(2,12,9,.42); color: #78dcb7; }
.payment-method-icon svg { width: 19px; height: 19px; }
.payment-method > span:nth-child(2) { min-width: 0; }
.payment-method strong, .payment-method small { display: block; letter-spacing: 0; }
.payment-method strong { font-size: 12px; line-height: 1.3; }
.payment-method small { margin-top: 3px; color: rgba(226,237,232,.5); font-size: 9px; }
.payment-method > svg { width: 16px; height: 16px; color: rgba(226,237,232,.4); }
.payment-card-toolbar { display: flex; margin-bottom: 5px; }
.payment-card-toolbar button { display: inline-flex; align-items: center; gap: 6px; padding: 5px 0; border: 0; background: transparent; color: rgba(226,237,232,.62); font: inherit; font-size: 9px; cursor: pointer; }
.payment-card-toolbar button:hover { color: #edf5f1; }
.payment-card-toolbar svg { width: 14px; height: 14px; }
.payment-return-notice { display: flex; align-items: flex-start; gap: 9px; margin-bottom: 10px; padding: 10px 11px; border: 1px solid rgba(205,168,105,.18); border-radius: 6px; background: rgba(205,168,105,.07); color: #d8c29d; font-size: 9px; line-height: 1.5; }
.payment-return-notice svg { width: 15px; height: 15px; flex: 0 0 auto; }
.payment-return-result { gap: 4px; }
.payment-return-result .reservation-code { width: min(100%, 300px); margin-top: 12px; }
#cardPaymentBrick_container { min-height: 60px; }
.payment-error { margin: 0; }
.payment-security { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 0; color: rgba(226,237,232,.36); font-size: 8px; text-align: center; }
.payment-security svg { width: 12px; }

@media (max-width: 620px) {
  .portal-shell { width: min(100% - 20px, 560px); padding-top: 18px; }
  .portal-header { margin-bottom: 16px; }
  .booking-card { padding: 19px 15px; }
  .payment-card { padding: 18px 12px; }
  .slot-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .court-option { grid-template-columns: 1fr; justify-items: center; padding: 8px 5px; text-align: center; }
  .court-option small { min-height: 19px; }
  .portal-form-grid { grid-template-columns: 1fr; }
  .payment-step-header { align-items: flex-start; }
  .flatpickr-calendar { width: min(326px, calc(100vw - 24px)); }
}

@media (max-width: 390px) {
  .slot-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  .sponsor-track { animation: none; }
}
