/* Court Ledger · shared portal and booking surfaces */

/* STEP TABS FOR SPORT SELECTION */
.sport-pills-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 28px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.sport-pill {
  padding: 12px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font: 600 13px var(--font-display);
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.sport-pill:hover {
  border-color: var(--ink);
}

.sport-pill.active {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

.sport-pill.active span.pill-badge {
  background: var(--lime);
  color: var(--ink);
}

.pill-badge {
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #eaeeec;
  color: var(--muted);
  font-weight: 700;
}

/* 2-COLUMN BOOKING WORKFLOW */
.booking-flow {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  align-items: start;
}

/* SECTION WITHIN FLOW */
.flow-step {
  background: #fff;
  border: 1px solid var(--line);
  padding: 28px;
  margin-bottom: 24px;
}

.flow-step-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.flow-step-head h3 {
  margin: 0;
  font-size: 18px;
  letter-spacing: -0.04em;
  color: var(--ink);
}

.flow-step-head small {
  color: var(--muted);
  font-size: 11px;
}

/* DATE ROW */
.dates-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 2px 2px 10px;
}

.date-btn {
  flex: 0 0 68px;
  padding: 12px 6px;
  background: #fff;
  border: 1px solid var(--line);
  text-align: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.date-btn:hover {
  border-color: var(--ink);
}

.date-btn.active {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

.date-btn small {
  display: block;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.7;
}

.date-btn strong {
  display: block;
  font: 600 16px var(--font-display);
  margin-top: 4px;
}

/* LEGEND */
.schedule-legend {
  display: flex;
  gap: 16px;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 16px;
  flex-wrap: wrap;
}

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

.dot-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.dot-avail {
  background: var(--blue);
}
.dot-selected {
  background: var(--lime);
  border: 1px solid var(--ink);
}
.dot-booked {
  background: #cbd5e1;
}
.dot-blocked {
  background: #f87171;
}

/* 14-SLOT CLEAN GRID */
.slots-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
}

.slot-tile {
  background: #fff;
  border: 1px solid var(--line);
  padding: 14px 10px;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s ease;
  position: relative;
  user-select: none;
}

.slot-tile:hover:not(.disabled) {
  border-color: var(--blue);
  background: #fdfefe;
}

.slot-tile.selected {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

.slot-tile.disabled {
  background: #f1f4f3;
  color: #9ca3af;
  border-color: #e5e7eb;
  cursor: not-allowed;
}

.slot-tile .st-time {
  font: 600 13px var(--font-display);
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}

.slot-tile .st-price {
  font-size: 11px;
  opacity: 0.85;
}

.slot-tile.selected .st-price {
  color: var(--lime);
  font-weight: 600;
}

.st-tag {
  display: inline-block;
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 1px 5px;
  border-radius: 2px;
  margin-bottom: 4px;
  background: #e0f2fe;
  color: #0369a1;
}

.slot-tile.selected .st-tag {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

/* ADDONS ROWS (Clean list like .service) */
.addons-list-clean {
  border-top: 1px solid var(--line);
}

.addon-row-clean {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.addon-row-clean strong {
  font-size: 13px;
  display: block;
  color: var(--ink);
}

.addon-row-clean small {
  color: var(--muted);
  font-size: 11px;
}

.qty-stepper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qty-btn {
  width: 26px;
  height: 26px;
  background: #fff;
  border: 1px solid var(--line);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 12px;
  border-radius: 50%;
  color: var(--ink);
  transition: all 0.1s ease;
}

.qty-btn:hover {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

.qty-val {
  font: 600 13px var(--font-display);
  min-width: 16px;
  text-align: center;
}

/* CLEAN SUMMARY SIDEBAR */
.summary-box {
  background: #fff;
  border: 1px solid var(--line);
  padding: 24px;
  position: sticky;
  top: 30px;
}

.summary-box h3 {
  font-size: 17px;
  letter-spacing: -0.04em;
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.summary-line {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 10px;
}

.summary-line strong {
  color: var(--ink);
}

.summary-total {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.summary-total small {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 700;
}

.summary-total strong {
  font: 700 24px var(--font-display);
  letter-spacing: -0.04em;
  color: var(--blue);
}

@media (max-width: 860px) {
  .booking-flow {
    grid-template-columns: 1fr;
  }
  .summary-box {
    position: static;
  }
}

/* Portal surfaces inherit the shared Court Ledger tokens in main.css. */
.portal-page {
  max-width: 1280px;
}
.portal-page .nav {
  height: auto;
  min-height: 80px;
  gap: 20px;
}
.portal-page .brand {
  letter-spacing: -0.045em;
}
.portal-page .mark {
  border-radius: 3px;
  transform: none;
  background: var(--blue);
  color: #fff;
  width: 42px;
  height: 42px;
}
.portal-page .nav-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}
.portal-page .navcta,
.portal-page .primary,
.portal-page .btn,
.portal-page .qty-btn {
  border-radius: 3px;
}
.portal-page .primary {
  background: var(--blue);
  color: var(--white);
  min-height: 44px;
}
.portal-page .primary:hover:not(:disabled) {
  background: var(--blue2);
  opacity: 1;
}
.portal-page .primary b {
  border-radius: 2px;
}
.portal-page
  :is(a, button, input, select, summary, [role="button"]):focus-visible {
  outline: 3px solid var(--signal);
  outline-offset: 3px;
}
.portal-page :is(.label, .kicker) {
  letter-spacing: 0.16em;
}
.portal-page .kicker {
  margin-bottom: 16px;
}
.portal-page .kicker::before {
  background: var(--signal);
  width: 20px;
}
.portal-page footer {
  margin-top: 76px;
}
.portal-page .badge {
  white-space: nowrap;
}
.portal-page .badge-blue,
.portal-page .alert-info {
  background: #e0f2fe;
  color: var(--blue);
  border-color: #bae6fd;
}
.portal-page .badge-success,
.portal-page .alert-success {
  background: #dcfce7;
  color: #166534;
  border-color: #86efac;
}
.portal-page .badge-warning,
.portal-page .alert-warning {
  background: #fef3c7;
  color: #92400e;
  border-color: #fde68a;
}
.portal-page .badge-danger,
.portal-page .alert-danger {
  background: #fee2e2;
  color: #991b1b;
  border-color: #fca5a5;
}
.portal-page .badge-neutral {
  background: var(--paper);
  color: var(--ink);
}
.portal-page .badge-lime {
  background: var(--lime);
  color: var(--ink);
}
.portal-page .modal-dialog {
  background: var(--white);
}

.portal-page .modal-dialog {
  max-height: min(90vh, 800px);
  overflow-y: auto;
}
.portal-page .modal-backdrop:not(.active) {
  visibility: hidden;
}

.portal-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  padding: 44px clamp(22px, 5vw, 62px) 48px;
  margin: 24px 0 0;
  background: linear-gradient(135deg, var(--blue2) 0%, var(--blue) 100%);
  color: var(--white);
  min-height: 238px;
}
.portal-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 350px;
  height: 350px;
  border: 1px solid rgba(11, 94, 145, 0.28);
  border-radius: 50%;
  right: 5%;
  top: -170px;
  box-shadow:
    0 0 0 52px rgba(11, 94, 145, 0.055),
    0 0 0 106px rgba(11, 94, 145, 0.035);
}
.portal-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-left: 1px solid rgba(11, 94, 145, 0.24);
  height: 100%;
  right: 27%;
  top: 0;
}
.portal-hero .kicker {
  color: var(--lime);
}
.portal-hero h1 {
  font-size: clamp(36px, 5.2vw, 70px);
  line-height: 0.98;
  letter-spacing: -0.065em;
  margin: 0 0 16px;
  max-width: 750px;
}
.portal-hero h1 span {
  color: var(--lime);
}
.portal-hero p {
  margin: 0;
  max-width: 560px;
  color: #cbd5e1;
  font-size: 14px;
  line-height: 1.65;
}
.portal-hero .btn-outline {
  color: var(--ink);
  background: var(--lime);
  border-color: var(--lime);
  flex: none;
}
.hero-index {
  font: 600 11px var(--font-display);
  letter-spacing: 0.15em;
  color: var(--lime);
  white-space: nowrap;
}
.portal-nav-strip {
  display: flex;
  gap: 0;
  overflow-x: auto;
  white-space: nowrap;
  border: 1px solid var(--line);
  border-top: 0;
  margin: 0 0 38px;
  background: var(--white);
  scrollbar-width: thin;
}
.portal-link {
  display: inline-flex;
  align-items: center;
  min-height: 54px;
  padding: 0 clamp(14px, 2vw, 26px);
  border-right: 1px solid var(--line);
  font: 700 11px var(--font-display);
  letter-spacing: 0.025em;
  color: var(--muted);
}
.portal-link:hover {
  color: var(--blue);
  background: #f0f9ff;
}
.portal-link.active {
  color: var(--white);
  background: var(--blue);
  box-shadow: inset 0 -3px var(--lime);
}
.portal-link[aria-current="page"] {
  color: var(--white);
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin: 0 0 20px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
}
.section-heading h2,
.section-heading h3 {
  font-size: clamp(23px, 3vw, 34px);
  letter-spacing: -0.045em;
  margin: 4px 0 0;
  line-height: 1.1;
}
.section-heading p {
  color: var(--muted);
  font-size: 12px;
  margin: 0;
}
.section-number {
  font: 600 12px var(--font-display);
  color: var(--blue);
}

.active-card,
.court-item,
.quick-cabor,
.history-card,
.pay-box,
.receipt-box,
.ticket-sheet,
.info-panel {
  background: var(--white);
  border: 1px solid var(--line);
}
.active-card {
  padding: clamp(24px, 4vw, 40px);
  margin-bottom: 48px;
  border-top: 4px solid var(--blue);
}
.active-card h2 {
  font-size: clamp(24px, 3vw, 34px) !important;
}
.active-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0;
  padding: 20px 0;
  border-top: 1px dashed var(--line);
  border-bottom: 1px dashed var(--line);
}
.active-grid small,
.receipt-row small,
.t-row small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 5px;
}
.active-grid strong {
  display: block;
  font: 600 16px var(--font-display);
  overflow-wrap: anywhere;
}
.quick-cabor-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.quick-cabor {
  display: flex;
  position: relative;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
  min-height: 198px;
  padding: 25px;
  border-top: 4px solid var(--ink);
}
.quick-cabor::before {
  content: attr(data-court);
  color: var(--blue);
  font: 600 12px var(--font-display);
  letter-spacing: 0.15em;
}
.quick-cabor h4 {
  font-size: 23px;
  letter-spacing: -0.045em;
}
.quick-cabor p {
  font-size: 12px;
}
.quick-cabor .textlink {
  color: var(--blue);
}

.courts-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 0;
}
.court-item {
  display: grid;
  grid-template-columns: minmax(240px, 38%) 1fr;
  overflow: hidden;
}
.court-img {
  position: relative;
  min-height: 295px;
  overflow: hidden;
  background: var(--blue2);
}
.court-img::after {
  content: "";
  position: absolute;
  inset: 13px;
  border: 1px solid rgba(255, 253, 248, 0.65);
  pointer-events: none;
}
.court-img img {
  width: 100%;
  height: 100%;
  min-height: 295px;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.92) contrast(1.03);
  transition:
    transform 0.3s ease,
    filter 0.3s ease;
}
.court-item:hover img {
  transform: scale(1.025);
  filter: saturate(1) contrast(1.03);
}
.court-item:nth-child(2) .court-img img {
  object-position: 50% 55%;
}
.court-item:nth-child(3) .court-img img {
  object-position: 50% 62%;
}
.court-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(22px, 4vw, 42px);
}
.court-info h3 {
  font-size: clamp(26px, 3vw, 40px);
  margin: 5px 0 9px;
  letter-spacing: -0.055em;
}
.court-info p {
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 57ch;
}
.rates-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
  margin-top: 22px;
}
.rates-strip strong {
  display: block;
  color: var(--blue);
  font-size: 14px;
}

.sport-pills-bar {
  gap: 0;
  border: 1px solid var(--line);
  background: var(--white);
  margin: 0 0 22px;
  padding: 0;
}
.sport-pill {
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  min-height: 64px;
  padding: 12px 20px;
}
.sport-pill.active {
  background: var(--blue);
  color: #fff;
}
.sport-pill:hover {
  border-color: var(--line);
  background: var(--paper);
}
.sport-pill.active:hover {
  background: var(--blue2);
  color: #fff;
}
.pill-badge,
.sport-pill.active span.pill-badge {
  border-radius: 2px;
}
.booking-flow {
  grid-template-columns: minmax(0, 1fr) minmax(310px, 360px);
  gap: 22px;
}
.flow-step {
  background: var(--white);
  padding: clamp(18px, 3vw, 32px);
  margin-bottom: 16px;
  border-left: 4px solid var(--blue);
}
.flow-step-head {
  align-items: start;
  gap: 16px;
  flex-wrap: wrap;
}
.flow-step-head h3 {
  font-size: 20px;
}
.date-btn {
  flex-basis: 75px;
  min-height: 79px;
  background: var(--white);
}
.date-btn.active {
  background: var(--blue);
  color: #fff;
}
.date-btn:focus-visible,
.slot-tile:focus-visible {
  outline: 3px solid var(--signal);
  outline-offset: 2px;
}
.schedule-legend {
  margin: 0;
}
.dot-booked {
  background: #94a3b8;
}
.slots-container {
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 7px;
}
.slot-tile {
  min-height: 93px;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  background: var(--white);
  font-family: inherit;
}
.slot-tile:hover:not(.disabled) {
  background: #f0f7fc;
}
.slot-tile.selected {
  background: var(--blue);
  color: #fff;
}
.slot-tile.disabled {
  background: var(--paper);
  color: var(--muted);
  border-color: var(--line);
}
.slot-tile .st-time {
  font-size: 14px;
}
.st-tag {
  background: #e0f2fe;
  color: #0284c7;
  border-radius: 2px;
}
.addon-row-clean {
  gap: 12px;
}
.qty-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.summary-box {
  background: var(--blue2);
  color: var(--white);
  border: 0;
  border-top: 5px solid var(--lime);
  padding: 27px;
}
.summary-box h3 {
  color: var(--white);
  font-size: 21px;
  border-color: rgba(255, 255, 255, 0.15);
}
.summary-box :is(.summary-line, .summary-total small) {
  color: #cbd5e1;
}
.summary-box .summary-line strong {
  color: var(--white);
  text-align: right;
}
.summary-box .summary-total {
  border-color: rgba(255, 255, 255, 0.25);
}
.summary-box .summary-total strong {
  color: var(--lime);
}
.summary-box .form-label {
  color: var(--white);
}
.summary-box .form-input {
  background: var(--white);
  color: var(--ink);
}
.summary-box .primary {
  background: var(--lime);
  color: var(--ink);
}
.summary-box .primary b {
  background: var(--ink);
  color: var(--lime);
}
.summary-box .primary:hover:not(:disabled) {
  background: #d0e7f7;
}
.summary-payment-note {
  border-left: 3px solid var(--lime);
  background: rgba(255, 255, 255, 0.09);
  padding: 12px;
  margin: 0 0 16px;
  color: var(--white);
  font-size: 12px;
  line-height: 1.55;
}
.summary-payment-note a {
  color: var(--lime);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.summary-box #civitasDiscountPill {
  background: #e0f2fe !important;
  border-color: var(--lime) !important;
  color: #0369a1 !important;
}

.history-card {
  overflow: hidden;
}
.history-toolbar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: end;
  padding: 20px;
  border-bottom: 1px solid var(--line);
  background: #f8fafc;
}
.history-toolbar label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}
.history-toolbar .form-input,
.history-toolbar .form-select {
  width: 100%;
  min-height: 40px;
  background: var(--white);
}
.history-toolbar .search-field {
  flex: 1 1 175px;
}
.history-toolbar .date-field {
  flex: 1 1 136px;
}
.history-toolbar .filter-field {
  flex: 1 1 160px;
}
.history-toolbar .btn {
  min-height: 40px;
}
.history-table {
  width: 100%;
  min-width: 840px;
  border-collapse: collapse;
  text-align: left;
  font-size: 12px;
}
.history-table th {
  background: var(--blue2);
  color: var(--white);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  padding: 14px 16px;
  text-align: left;
}
.history-table td {
  border-bottom: 1px solid var(--line);
  padding: 17px 16px;
  vertical-align: middle;
}
.history-table tbody tr:hover {
  background: #eef3f6;
}
.history-table tbody tr:last-child td {
  border-bottom: 0;
}
.history-table td:last-child {
  min-width: 175px;
}
.history-table td:last-child > div {
  flex-wrap: wrap;
}
.history-table td strong {
  overflow-wrap: anywhere;
}

.pay-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  align-items: start;
  gap: 20px;
  margin-top: 20px;
}
.pay-box {
  padding: clamp(22px, 4vw, 38px);
  text-align: center;
  border-top: 4px solid var(--blue);
}
.timer-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  background: var(--lime);
  color: var(--ink);
  padding: 16px 20px;
  margin: 20px 0 0;
  font-size: 12px;
  font-weight: 700;
}
.timer-val {
  font: 700 26px var(--font-display);
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.payment-destination {
  display: grid;
  gap: 10px;
  margin: 20px 0;
  padding: 28px;
  text-align: left;
  border: 1px dashed var(--line);
  background: var(--paper);
}
.payment-destination span {
  color: var(--blue2);
  font: 700 10px var(--font-display);
  letter-spacing: 0.12em;
}
.payment-destination strong {
  color: var(--ink);
  font: 600 clamp(21px, 3vw, 30px)/1.1 var(--font-display);
  letter-spacing: -0.04em;
}
.payment-destination small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
.payment-caution {
  text-align: left;
  padding: 15px;
  background: #fff3e8;
  border-left: 4px solid var(--signal);
  color: var(--ink);
  font-size: 12px;
  line-height: 1.6;
}
.upload-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 0;
  padding: clamp(22px, 4vw, 36px);
}
.dropzone-clean {
  display: block;
  border: 1px dashed var(--blue);
  background: var(--paper);
  padding: 25px 16px;
  text-align: center;
  cursor: pointer;
  margin: 16px 0;
}
.dropzone-clean:hover,
.dropzone-clean:focus-within {
  background: #e0f2fe;
}
.dropzone-clean input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  clip-path: inset(50%);
  overflow: hidden;
}
.receipt-box {
  border-top: 4px solid var(--blue2);
}
.receipt-head {
  padding: 22px;
  background: var(--blue2);
  color: var(--white);
}
.receipt-head small {
  color: var(--lime);
  text-transform: uppercase;
  letter-spacing: 0.13em;
}
.receipt-head #bkgCode {
  font: 700 22px var(--font-display);
  overflow-wrap: anywhere;
}
.receipt-row {
  display: grid;
  grid-template-columns: 115px minmax(0, 1fr);
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px dashed var(--line);
  font-size: 13px;
}
.receipt-row strong {
  overflow-wrap: anywhere;
}
.receipt-row:last-child {
  background: #e0f2fe;
  border-bottom: 0;
}

.ticket-intro {
  text-align: center;
  padding: 40px 16px 0;
}
.ticket-intro h1 {
  font-size: clamp(35px, 5vw, 58px);
  letter-spacing: -0.06em;
  margin: 5px 0;
}
.ticket-intro p {
  color: var(--muted);
  font-size: 13px;
}
.ticket-intro h1 span {
  color: var(--blue);
}
.portal-page .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.ticket-sheet {
  max-width: 590px;
  margin: 30px auto 24px;
  border-top: 0;
  position: relative;
}

.ticket-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 25px 30px;
  background: var(--blue2);
  color: var(--white);
  border-top: 5px solid var(--lime);
}
.ticket-head h2 {
  color: var(--white);
  font-size: 20px;
  margin: 0;
}
.ticket-head small {
  color: var(--lime);
  font-size: 10px;
  letter-spacing: 0.12em;
}
.ticket-body {
  padding: clamp(22px, 4vw, 36px);
}
.ticket-qr-center {
  text-align: center;
  border-bottom: 1px dashed var(--line);
  padding-bottom: 22px;
  margin-bottom: 12px;
}
.ticket-qr-center .label {
  display: block;
  margin-bottom: 12px;
}
.ticket-code {
  display: block;
  padding: 18px 12px;
  margin-bottom: 10px;
  background: var(--lime);
  color: var(--ink);
  font: 700 clamp(19px, 3vw, 26px) var(--font-display);
  letter-spacing: 0.05em;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}
.t-row {
  display: grid;
  grid-template-columns: 115px minmax(0, 1fr);
  gap: 14px;
  padding: 12px 0;
  font-size: 13px;
  border-bottom: 1px solid var(--line);
}
.t-row strong {
  overflow-wrap: anywhere;
}
.ticket-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 30px;
}

.info-panel {
  border-left: 4px solid var(--signal);
  padding: clamp(22px, 4vw, 38px);
  margin-bottom: 16px;
}
.info-panel h2 {
  font-size: clamp(23px, 3vw, 32px);
  margin: 4px 0 10px;
  letter-spacing: -0.04em;
}
.info-panel p {
  color: var(--muted);
  max-width: 67ch;
  font-size: 13px;
  line-height: 1.7;
}
.help-contact {
  background: var(--blue);
  color: var(--white);
  padding: clamp(24px, 4vw, 40px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 46px;
}
.help-contact h3 {
  margin: 6px 0;
  color: var(--white);
  font-size: 24px;
}
.help-contact p {
  color: #cbd5e1;
  font-size: 12px;
  margin: 0;
}
.help-contact .label {
  color: var(--lime);
}
.help-contact .primary {
  background: var(--lime);
  color: var(--ink);
}
.faq-list {
  border-top: 1px solid var(--ink);
}
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 23px 4px;
  font: 600 16px var(--font-display);
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  content: "+";
  font-size: 23px;
  color: var(--blue);
}
.faq-item[open] summary::after {
  content: "−";
}
.faq-item summary:hover {
  color: var(--blue);
}
.faq-a {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
  padding: 0 4px 24px;
  max-width: 72ch;
}

@media (max-width: 900px) {
  .booking-flow,
  .pay-layout {
    grid-template-columns: 1fr;
  }
  .summary-box {
    position: static;
  }
  .quick-cabor-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .active-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 680px) {
  .portal-page {
    padding: 0 16px 40px;
  }
  .portal-page .nav {
    min-height: 70px;
  }
  .portal-hero {
    min-height: 210px;
    padding: 32px 24px;
    align-items: start;
    flex-direction: column;
  }
  .portal-hero::after {
    right: 18%;
  }
  .portal-nav-strip {
    margin-bottom: 28px;
  }
  .portal-link {
    min-height: 48px;
  }
  .quick-cabor-grid,
  .active-grid,
  .court-item {
    grid-template-columns: 1fr;
  }
  .quick-cabor {
    min-height: 165px;
  }
  .court-img,
  .court-img img {
    min-height: 195px;
    height: 195px;
  }
  .receipt-row,
  .t-row {
    grid-template-columns: 95px minmax(0, 1fr);
  }
  .sport-pill {
    min-height: 55px;
  }
  .section-heading {
    align-items: start;
  }
  .ticket-head {
    padding: 20px;
  }
}
@media print {
  body:has(.ticket-sheet) {
    background: #fff;
  }
  .ticket-intro,
  .portal-page .nav,
  .portal-page .portal-nav-strip,
  .portal-page footer,
  .ticket-actions {
    display: none !important;
  }
  .portal-page {
    padding: 0 !important;
  }
  .ticket-sheet {
    margin: 0 auto;
    border: 1px solid #000;
    max-width: 100%;
  }

  .ticket-head {
    background: #fff !important;
    color: #000 !important;
    border-bottom: 1px solid #000;
  }
  .ticket-head h2,
  .ticket-head small {
    color: #000 !important;
  }
}
