@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@100..900&display=swap');

body {
    font-family: "Outfit", sans-serif;
    background: linear-gradient(135deg, #eef6ff 0%, #fff7f3 100%);
    color: #1f2937;
    min-height: 100vh;
    padding-bottom: 280px;
}

h1, h3, h5 {
    font-weight: 700;
}

/* HERO  CSS */

.hero {
    background: linear-gradient(180deg, #2366ff 0%, #1d4ed8 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(255,255,255,0.35), transparent 30%);
    opacity: 0.7;
}

.hero-glow {
    position: absolute;
    top: 10px;
    right: -90px;
    width: 220px;
    height: 80px;
    background: rgba(255, 255, 255, 0.22);
    border-radius: 50%;
    filter: blur(38px);
}

.hero > * {
    position: relative;
    z-index: 1;
}

.search-card,
.booking-card {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.status-badge {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 56px;
    font-size: 0.95rem;
    border-radius: 1rem;
    padding: 0.85rem 1rem;
    cursor: pointer;
}

.badge {
    cursor: pointer;
}

.time-slot {
    min-height: 52px;
    border-radius: 2rem;
    font-weight: 600;
}

.time-slot,
.btn,
button,
.btn-icon,
.date-card,
label[for="reservationDate"] {
    cursor: pointer;
}

/* Reservation date input - unique UI kit style */
#reservationDate {
  min-width: 170px;
  padding: 0.45rem 0.8rem;
  border-radius: 12px;
  border: 1px solid rgba(67,56,202,0.15);
  background: linear-gradient(180deg, rgba(124,58,237,0.06), rgba(14,165,233,0.02));
  color: var(--text-dark, #111827);
  box-shadow: 0 8px 24px rgba(67,56,202,0.06);
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease, background .12s ease;
  height: 38px;
}

#reservationDate:focus {
  outline: none;
  border-color: var(--primary, #4338ca);
  box-shadow: 0 14px 40px rgba(67,56,202,0.12);
  transform: translateY(-2px);
  background: #ffffff;
}

#reservationDate::-webkit-calendar-picker-indicator {
  filter: invert(30%) sepia(80%) saturate(400%) hue-rotate(170deg) brightness(95%);
}

.date-action {
  align-items: center;
}

.date-card {
  flex: 1 1 240px;
  background: linear-gradient(180deg, rgba(59,130,246,0.12), rgba(37,99,235,0.04));
  border: 1px solid rgba(59,130,246,0.18);
  color: #0f172a;
  transition: transform .2s ease, box-shadow .2s ease;
}

/* .date-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 32px rgba(15,23,42,0.08);
} */

.date-card-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  background: white;
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(15,23,42,0.08);
}

.date-card-icon i {
  font-size: 1.35rem;
}

.date-card-copy {
  min-width: 0;
}

.date-card-copy .small {
  opacity: 0.8;
}

.date-input {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  font-size: 0.95rem;
  color: #111827;
}

.date-input:focus {
  outline: none;
}

.btn-icon {
  width: 52px;
  height: 52px;
  padding: 0;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
}

.btn-icon i {
  line-height: 1;
}

@media (max-width: 767.98px) {
  #reservationDate { min-width: 140px; height: 36px; }
  .date-action {
    width: 100%;
    justify-content: space-between;
  }
  .date-card {
    width: 100%;
    padding: 18px 18px;
  }
  .btn-icon {
    width: 48px;
    height: 48px;
  }
}

.card-header h3 {
    margin-bottom: 0.25rem;
}

.card-header p {
    margin-bottom: 0;
    opacity: 0.85;
}

.btn-outline-secondary {
    border-color: #d1d5db;
}

/* TABLE CSS */
.availability-table {
    border-collapse: separate;
    border-spacing: 0 0.85rem;
    width: 100%;
    background: transparent;
    box-shadow: 0 22px 60px rgba(15, 23, 42, 0.08);
}

.availability-table thead th {
    background: linear-gradient(135deg, #5b21b6 0%, #0ea5e9 100%);
    color: #ffffff;
    font-weight: 700;
    border: none;
    padding: 1rem 1rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.availability-table thead th:first-child {
    border-top-left-radius: 18px;
    border-bottom-left-radius: 18px;
}

.availability-table thead th:last-child {
    border-top-right-radius: 18px;
    border-bottom-right-radius: 18px;
}

.availability-table tbody tr {
    background: rgba(255, 255, 255, 0.95);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* .availability-table tbody tr:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.08);
} */

.availability-table td,
.availability-table th {
    border: none;
    padding: 1rem 0.85rem;
    vertical-align: middle;
}

.availability-table td {
    cursor: pointer;
}

.availability-table tbody tr td:first-child,
.availability-table tbody tr th:first-child {
  background: linear-gradient(135deg, #5b21b6 0%, #0ea5e9 100%);
  border-top-left-radius: 15px;
  border-bottom-left-radius: 15px;
  color: #fff;
  padding-left: 1.5rem;

}

.availability-table tbody tr td:last-child {
    padding-right: 1.5rem;
}

.availability-table tbody tr:first-child td:first-child {
    border-top-left-radius: 18px;
}

.availability-table tbody tr:first-child td:last-child {
    border-top-right-radius: 18px;
}

.availability-table tbody tr:last-child td:first-child {
    border-bottom-left-radius: 18px;
}

.availability-table tbody tr:last-child td:last-child {
    border-bottom-right-radius: 18px;
}

.availability-table .badge {
    min-width: 4.5rem;
    border-radius: 999px;
    padding: 0.65rem 0.9rem;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.availability-table .badge.text-bg-light {
    color: #4f46e5;
    background: rgba(99, 102, 241, 0.12);
}

.availability-table .badge.text-bg-primary {
    color: #1d4ed8;
    background: rgba(59, 130, 246, 0.15);
}

.availability-table .badge.text-bg-warning {
    color: #c2410c;
    background: rgba(251, 146, 60, 0.18);
}

.availability-table .badge.text-bg-success {
    color: #166534;
    background: rgba(34, 197, 94, 0.16);
}

.table-responsive {
    background: rgba(255, 255, 255, 0.84);
    border-radius: 22px;
    padding: 1.25rem;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.availability-table {
    width: 100%;
    min-width: 950px;
    table-layout: auto;
}

.availability-table th,
.availability-table td {
    white-space: nowrap;
}

@media (max-width: 1199.98px) {
    .table-responsive {
        padding: 1rem;
    }

    .availability-table thead th {
        padding: 0.85rem 0.9rem;
        font-size: 0.82rem;
    }

    .availability-table tbody td,
    .availability-table tbody th {
        padding: 0.85rem 0.9rem;
    }
}

@media (max-width: 767.98px) {
  #availabilityTableContainer {
    max-height: min(70vh, 620px);
    overflow: auto;
        padding: 0.85rem;
    overscroll-behavior: contain;
    }

    .availability-table {
        min-width: 850px;
    }

    .availability-table thead th {
        padding: 0.75rem 0.75rem;
        font-size: 0.78rem;
    }

    .availability-table tbody td,
    .availability-table tbody th {
        padding: 0.75rem 0.75rem;
    }

    .availability-table thead th {
      position: sticky;
      top: 0;
      z-index: 2;
    }

    .availability-table thead th:first-child,
    .availability-table tbody th[scope="row"] {
      position: sticky;
      left: 0;
    }

    .availability-table thead th:first-child {
      z-index: 4;
      box-shadow: 8px 0 12px rgba(15, 23, 42, 0.12);
    }

    .availability-table tbody th[scope="row"] {
      z-index: 2;
      min-width: 10.5rem;
      box-shadow: 8px 0 12px rgba(15, 23, 42, 0.12);
    }
}

@media (max-width: 575.98px) {
    .hero {
        padding: 2.5rem 1.5rem;
    }
}

 /* FLOATING CART CSS */
    .floating-cart {
      position:fixed;
      left:50%;
      bottom:24px;
      width:min(680px, calc(100vw - 48px));
      transform:translateX(-50%);
      z-index:9999;
    }

    .floating-card {
      background:#ffffff;
      border:1px solid #e2e8f0;
      border-radius:18px;
      padding:16px 18px;
      box-shadow:0 14px 30px rgba(15,23,42,.14);
      position:relative;
    }

    .cart-content {
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap:24px;
    }

    .cart-info {
      min-width:0;
    }

    .cart-action {
      flex:0 0 auto;
      margin-right:28px;
    }

    .cart-title {
      color:#64748b;
      font-size:.72rem;
      font-weight:700;
      letter-spacing:.08em;
      margin-bottom:4px;
    }

    .slot-counter {
      color:#334155;
      font-size:.92rem;
      font-weight:600;
    }

    .slot-number {
      color:#0f172a;
      font-size:1.25rem;
      font-weight:800;
    }

    .slot-max {
      color:#94a3b8;
      font-size:.82rem;
      margin-left:4px;
    }

    .cart-total {
      align-items:center;
      background:#fff1f2;
      border-radius:999px;
      color:#be123c;
      display:inline-flex;
      font-size:.84rem;
      font-weight:800;
      margin-top:8px;
      padding:5px 9px;
    }

    /* PAY BUTTON */
    .pay-btn {
      background:#dc3545;
      color:white;
      border:none;
      border-radius:12px;
      box-shadow:0 8px 16px rgba(220,53,69,.22);
      padding:13px 18px;
      font-size:.92rem;
      font-weight:700;
      width:100%;
      transition:.2s ease;
    }
    .pay-btn:hover {
      background:#ffc107;
    }
    .arrow {
      margin-left:10px;
      font-size:22px;
    }

    .floating-card .close-btn {
      align-items:center;
      background:#f1f5f9;
      border-radius:50%;
      color:#64748b;
      display:flex;
      font-size:1.15rem;
      height:24px;
      justify-content:center;
      right:12px;
      top:12px;
      width:24px;
      z-index:2;
    }

    .checkout-backdrop {
      position: fixed;
      inset: 0;
      background: rgba(15, 23, 42, 0.48);
      backdrop-filter: blur(4px);
      z-index: 9998;
    }

    .checkout-modal {
      position: fixed;
      inset: 0;
      display: flex;
      justify-content: center;
      align-items: center;
      padding: 1rem;
      z-index: 10000;
      pointer-events: none;
    }

    .checkout-modal:not(.d-none) {
      pointer-events: auto;
    }

    .checkout-card {
      width: min(100%, 620px);
      max-width: 620px;
      background: #ffffff;
      border-radius: 28px;
      padding: 28px 32px 30px 28px;
      box-shadow: 0 28px 60px rgba(15, 23, 42, 0.18);
      position: relative;
      transform: translateY(20px);
      animation: slideInUp .25s ease forwards;
      display: flex;
      flex-direction: column;
      max-height: min(90vh, 720px);
      overflow: hidden;
    }

    .checkout-header h3 {
      margin: 0 0 0.25rem;
      font-size: 1.45rem;
      color: #111827;
    }

    .checkout-header p {
      margin: 0;
      color: #475569;
      line-height: 1.6;
      font-size: 0.96rem;
    }

    .checkout-body {
      flex: 1 1 auto;
      overflow-y: auto;
      min-height: 0;
      padding-right: 4px;
    }

    .checkout-body::-webkit-scrollbar {
      width: 6px;
    }

    .checkout-body::-webkit-scrollbar-thumb {
      background: rgba(15, 23, 42, 0.15);
      border-radius: 999px;
    }

    .checkout-summary {
      margin: .3rem; 
      background: #f8fafc;
      border-radius: 20px;
      padding: 1.2rem 1.25rem;
      border: 1px solid rgba(15, 23, 42, 0.06);
    }

    .summary-title {
      font-size: 0.94rem;
      font-weight: 700;
      color: #111827;
      margin-bottom: 0.85rem;
    }

    .summary-content {
      display: grid;
      gap: 0.75rem;
    }

    .summary-slot-list {
      display: grid;
      gap: 0.7rem;
      padding: 0.75rem 0.65rem;
      background: #ffffff;
      border-radius: 16px;
      border: 1px solid rgba(15, 23, 42, 0.06);
      max-height: 220px;
      overflow-y: auto;
    }

    .summary-slot-list::-webkit-scrollbar {
      width: 8px;
    }

    .summary-slot-list::-webkit-scrollbar-thumb {
      background: rgba(15, 23, 42, 0.12);
      border-radius: 999px;
    }

    .summary-line {
      display: flex;
      justify-content: space-between;
      gap: 0.75rem;
      color: #334155;
      font-size: 0.92rem;
      line-height: 1.4;
    }

    .summary-line.empty {
      color: #94a3b8;
      font-style: italic;
    }

    .summary-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
      color: #475569;
      font-size: 0.95rem;
    }

    .summary-row.summary-total {
      margin-top: 0.75rem;
      font-size: 1rem;
      color: #111827;
      font-weight: 700;
    }

    .summary-value {
      color: #111827;
      text-align: right;
    }

    .summary-note {
      margin-top: 1rem;
      font-size: 0.82rem;
      color: #64748b;
      line-height: 1.6;
    }

    .checkout-form {
      display: grid;
      gap: 1rem;
    }

    .form-group label {
      display: block;
      margin-bottom: 0.45rem;
      font-size: 0.92rem;
      color: #334155;
      font-weight: 600;
    }

    .checkout-form .form-control {
      width: 100%;
      border: 1px solid #cbd5e1;
      border-radius: 16px;
      padding: 0.9rem 1rem;
      font-size: 0.95rem;
      color: #0f172a;
      background: #f8fafc;
      outline: none;
      transition: border-color .2s ease, box-shadow .2s ease;
    }

    .checkout-form .form-control:focus {
      border-color: #0f4c64;
      box-shadow: 0 0 0 4px rgba(15, 76, 100, 0.1);
      background: #ffffff;
    }

    .checkout-submit {
      width: 100%;
      border: none;
      border-radius: 16px;
      background: #dc3545;
      color: white;
      font-size: 1rem;
      font-weight: 700;
      padding: 0.95rem 1rem;
      cursor: pointer;
      transition: background .2s ease, transform .2s ease;
      margin-top: 1rem;
      flex-shrink: 0;
    }

    .checkout-submit:hover {
      background: #ffc107;
      transform: translateY(-1px);
    }

    @keyframes slideInUp {
      from { opacity: 0; transform: translateY(40px); }
      to { opacity: 1; transform: translateY(0); }
    }

    /* CLOSE BUTTON */
    .close-btn {
      position:absolute;
      top:12px;
      right:16px;
      border:none;
      background:none;
      font-size:28px;
      color:#667085;
      cursor:pointer;
    }

    /* ANIMATION */
    @keyframes slideUp {
      from { opacity:0; transform:translateY(32px); }
      to   { opacity:1; transform:translateY(0); }
    }

    /* MOBILE CSS */
    @media (max-width: 768px) {
      .floating-cart {
        width: min(95%, 520px);
        left: 50%;
        transform: translateX(-50%);
        bottom: 12px;
      }

      .floating-card {
        padding: 18px 18px;
      }

      .cart-content {
        flex-direction: column;
        align-items: flex-start;
      }

      .pay-btn {
        width: 100%;
        min-width: unset;
      }

      .slot-number {
        font-size: 32px;
      }

      .cart-total {
        font-size: 20px;
      }

      .checkout-modal {
        padding: 0.75rem;
      }

      .checkout-card {
        width: min(100%, 100%);
        max-width: 100%;
        border-radius: 22px;
        padding: 20px 16px 16px;
        max-height: calc(100vh - 32px);
        overflow: hidden;
      }

      .checkout-header h3 {
        font-size: 1.25rem;
      }

      .checkout-summary {
        margin: 1.2rem 0 1rem;
        padding: 1rem;
      }

      .summary-slot-list {
        max-height: 180px;
      }

      .summary-line {
        font-size: 0.88rem;
      }

      .summary-row {
        font-size: 0.9rem;
      }

      .form-group label {
        font-size: 0.9rem;
      }

      .checkout-form .form-control {
        padding: 0.85rem 0.95rem;
        font-size: 0.92rem;
      }

      .checkout-submit {
        padding: 0.9rem 0.95rem;
        font-size: 0.95rem;
      }

      .close-btn {
        top: 10px;
        right: 12px;
        font-size: 24px;
      }
    }

    .payment-page {
      min-height: 100vh;
      background: linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%);
    }

    .payment-header {
      align-items: flex-start;
    }

    .payment-timer {
      min-width: 180px;
      background: #ffffff;
      border: 1px solid rgba(15, 23, 42, 0.08);
      border-radius: 24px;
    }

    .payment-grid {
      display: grid;
      grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
      gap: 1.5rem;
    }

    .payment-card {
      background: #ffffff;
      border: 1px solid rgba(15, 23, 42, 0.08);
      border-radius: 28px;
      box-shadow: 0 24px 50px rgba(15, 23, 42, 0.08);
      padding: 1.75rem;
      display: flex;
      flex-direction: column;
      gap: 1rem;
      min-height: 420px;
    }

    .payment-card-title {
      font-size: 1rem;
      font-weight: 700;
      color: #0f172a;
    }

    .payment-card-subtitle {
      color: #475569;
      font-size: 0.95rem;
      line-height: 1.6;
    }

    .qr-frame {
      width: 100%;
      margin: 0 auto;
      min-height: 340px;
      aspect-ratio: 1 / 1;
      display: grid;
      place-items: center;
      background: radial-gradient(circle at top left, rgba(59, 130, 246, 0.08), transparent 42%),
                  radial-gradient(circle at bottom right, rgba(56, 189, 248, 0.08), transparent 35%),
                  #f8fafc;
      border-radius: 28px;
      position: relative;
      overflow: hidden;
      cursor: pointer;
      transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    .qr-frame:hover {
      transform: translateY(-2px);
      box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
    }

    .qr-dot-grid {
      width: 220px;
      height: 220px;
      border-radius: 28px;
      background: radial-gradient(circle, #0f172a 18%, transparent 19%) 0 0 / 24px 24px,
                  radial-gradient(circle, #0f172a 18%, transparent 19%) 12px 12px / 24px 24px;
      box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08);
      position: relative;
    }

    .qr-badge {
      position: absolute;
      bottom: 1.4rem;
      left: 50%;
      transform: translateX(-50%);
      z-index: 1;
      background: #ffffff;
      color: #0f172a;
      padding: 0.5rem 1rem;
      border-radius: 999px;
      font-weight: 700;
      border: 1px solid rgba(15, 23, 42, 0.08);
    }

    .qr-image {
      width: 100%;
      height: 100%;
      margin: 0 auto;
      object-fit: cover;
      position: absolute;
      inset: 0;
      border-radius: 28px;
      z-index: 0;
    }

    .qr-placeholder {
      color: #475569;
      font-size: 0.92rem;
      line-height: 1.5;
      text-align: center;
      padding: 1rem 1.25rem;
      z-index: 0;
    }

    .qr-frame.has-image .qr-dot-grid,
    .qr-frame.has-image .qr-placeholder {
      display: none;
    }

    .qr-modal {
      position: fixed;
      inset: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      background: rgba(15, 23, 42, 0.72);
      padding: 1.5rem;
      z-index: 20000;
    }

    .qr-modal-card {
      width: min(100%, 520px);
      background: #ffffff;
      border-radius: 28px;
      box-shadow: 0 36px 90px rgba(15, 23, 42, 0.24);
      padding: 1.75rem;
      position: relative;
    }

    .qr-modal-close {
      position: absolute;
      top: 18px;
      right: 18px;
      border: none;
      background: rgba(15, 23, 42, 0.05);
      color: #0f172a;
      width: 38px;
      height: 38px;
      border-radius: 50%;
      font-size: 1.35rem;
      cursor: pointer;
      line-height: 1;
    }

    .qr-modal-header h3 {
      font-size: 1.2rem;
      margin: 0;
      color: #111827;
    }

    .qr-modal-body {
      display: grid;
      gap: 1rem;
      justify-items: center;
      padding: 1rem 0;
    }

    .qr-modal-image {
      width: 320px;
      max-width: 100%;
      border-radius: 24px;
      border: 1px solid rgba(15, 23, 42, 0.08);
      background: #f8fafc;
    }

    .qr-modal-label {
      color: #6b7280;
      font-size: 0.95rem;
      text-align: center;
    }

    .qr-modal-actions {
      margin-top: 1rem;
    }

    .payment-info {
      background: #f8fafc;
      border-radius: 22px;
      border: 1px solid rgba(15, 23, 42, 0.08);
      padding: 1rem;
      color: #475569;
      flex: 1;
    }

    .receipt-dropzone {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 0.8rem;
      min-height: 220px;
      border: 2px dashed rgba(15, 23, 42, 0.18);
      border-radius: 24px;
      background: #f8fafc;
      cursor: pointer;
      text-align: center;
      transition: border-color 0.2s ease, background 0.2s ease;
      padding: 1.5rem;
    }

    .receipt-dropzone:hover {
      border-color: #0f172a;
      background: #eff6ff;
    }

    .upload-icon {
      width: 52px;
      height: 52px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border-radius: 18px;
      background: #e2e8f0;
      color: #0f172a;
      font-size: 1.4rem;
    }

    .receipt-preview {
      background: #ffffff;
      border: 1px solid rgba(15, 23, 42, 0.08);
      border-radius: 18px;
      padding: 1rem;
      min-height: 60px;
      color: #475569;
      font-size: 0.95rem;
    }

    .booking-slot-overview {
      padding: 1rem 0 0;
      border-top: 1px solid rgba(15, 23, 42, 0.08);
    }

    .booking-slots-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
      gap: 1rem;
    }

    .booking-slot-card {
      background: #f8fafc;
      border: 1px solid rgba(15, 23, 42, 0.08);
      border-radius: 22px;
      padding: 1rem;
      display: flex;
      flex-direction: column;
      gap: 0.65rem;
      min-height: 100px;
    }

    .booking-slot-card.empty {
      justify-content: center;
      align-items: center;
      color: #64748b;
      font-style: italic;
    }

    .booking-slot-card .slot-top {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 0.5rem;
      flex-wrap: wrap;
    }

    .booking-slot-card .slot-name {
      font-weight: 700;
      color: #0f172a;
    }

    .booking-slot-card .slot-tag {
      font-size: 0.8rem;
      font-weight: 700;
      color: #064e3b;
      background: #d1fae5;
      border-radius: 999px;
      padding: 0.35rem 0.75rem;
      white-space: nowrap;
    }

    .booking-slot-card .slot-time {
      color: #475569;
      font-size: 0.95rem;
      line-height: 1.4;
    }

    .booking-details-card {
      background: #ffffff;
      border: 1px solid rgba(15, 23, 42, 0.08);
      border-radius: 28px;
      box-shadow: 0 20px 40px rgba(15, 23, 42, 0.06);
    }

    .details-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 1rem;
    }

    .detail-label {
      color: #64748b;
      font-size: 0.9rem;
      margin-bottom: 0.35rem;
    }

    .detail-value {
      color: #0f172a;
      font-weight: 700;
    }

    .detail-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 1rem;
      padding: 1rem;
      border-radius: 18px;
      background: #f8fafc;
    }

    .total-row {
      border-top: 1px solid rgba(15, 23, 42, 0.08);
      padding-top: 1rem;
      font-size: 1rem;
    }

    .payment-confirmation-modal {
      position: fixed;
      inset: 0;
      z-index: 20010;
      display: grid;
      place-items: center;
      padding: 1.5rem;
      background: rgba(15, 23, 42, 0.78);
      backdrop-filter: blur(4px);
    }

    .payment-confirmation-card {
      width: min(100%, 540px);
      max-height: calc(100vh - 3rem);
      overflow-y: auto;
      position: relative;
      padding: 2.25rem;
      border: 1px solid rgba(26, 102, 201, 0.45);
      border-radius: 28px;
      background: #fffdfa;
      box-shadow: 0 32px 90px rgba(15, 23, 42, 0.34);
    }

    .payment-confirmation-heading {
      display: flex;
      align-items: flex-start;
      gap: 1rem;
      padding-right: 1.75rem;
    }

    .payment-confirmation-icon {
      display: grid;
      flex: 0 0 42px;
      width: 42px;
      height: 42px;
      place-items: center;
      border-radius: 13px;
      background: #e43f3f;
      color: #ffffff;
      font-size: 1.5rem;
      font-weight: 800;
      box-shadow: 0 10px 18px rgba(245, 158, 11, 0.28);
    }

    .payment-confirmation-heading h2 {
      margin: 0 0 0.35rem;
      color: #422006;
      font-size: 1.2rem;
      font-weight: 800;
    }

    .payment-confirmation-heading p,
    .payment-confirmation-note {
      margin: 0;
      color: #64748b;
      font-size: 0.93rem;
      line-height: 1.55;
    }

    .payment-confirmation-close {
      position: absolute;
      top: 1.15rem;
      right: 1.15rem;
      width: 34px;
      height: 34px;
      padding: 0;
      border: 0;
      border-radius: 50%;
      background: transparent;
      color: #64748b;
      font-size: 1.55rem;
      line-height: 1;
    }

    .payment-confirmation-close:hover {
      background: #f1f5f9;
      color: #0f172a;
    }

    .payment-confirmation-rule {
      height: 1px;
      margin: 1.35rem 0 1rem;
      background: #fde68a;
    }

    .payment-confirmation-checklist {
      padding: 1rem 1.1rem;
      border: 1px solid #fd8a90;
      border-radius: 16px;
      background: #ffffff;
    }

    .payment-confirmation-checklist h3 {
      margin: 0 0 0.6rem;
      color: #92400e;
      font-size: 0.95rem;
      font-weight: 800;
    }

    .payment-confirmation-checklist ul {
      display: grid;
      gap: 0.45rem;
      margin: 0;
      padding-left: 1.1rem;
      color: #a16207;
      font-size: 0.9rem;
    }

    .payment-confirmation-checklist li::marker {
      color: #f97316;
    }

    .payment-confirmation-total {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 1rem;
      margin-top: 0.9rem;
      padding: 0.85rem 1rem;
      border: 1px solid #cbd5e1;
      border-radius: 14px;
      background: #f1f5f9;
      color: #0f5e75;
      font-weight: 700;
    }

    .payment-confirmation-total strong {
      font-size: 1.2rem;
    }

    .payment-confirmation-note {
      margin-top: 0.85rem;
      color: #b45309;
      font-size: 0.82rem;
    }

    .payment-confirmation-actions {
      display: flex;
      justify-content: flex-end;
      gap: 0.75rem;
      margin-top: 1.25rem;
      padding-top: 1.2rem;
      border-top: 1px solid #fef3c7;
    }

    .payment-confirmation-back,
    .payment-confirmation-submit {
      min-height: 44px;
      border: 0;
      border-radius: 12px;
      padding: 0.7rem 1rem;
      font-weight: 700;
    }

    .payment-confirmation-back {
      background: #f8fafc;
      color: #334155;
      box-shadow: inset 0 0 0 1px #e2e8f0;
    }

    .payment-confirmation-submit {
      background: #f06d4d;
      color: #ffffff;
      box-shadow: 0 10px 22px rgba(234, 88, 12, 0.26);
    }

    .payment-confirmation-submit:hover {
      background: #39eb74;
    }

    .payment-success-modal {
      position: fixed;
      inset: 0;
      z-index: 20020;
      display: grid;
      place-items: center;
      padding: 1.5rem;
      background: rgba(4, 25, 31, 0.76);
      backdrop-filter: blur(5px);
    }

    .payment-success-card {
      width: min(100%, 470px);
      padding: 2.2rem 1.55rem 1.75rem;
      border: 1px solid rgba(255, 255, 255, 0.72);
      border-radius: 16px;
      background: linear-gradient(150deg, #ffffff 0%, #f4f9f3 100%);
      box-shadow: 0 28px 80px rgba(0, 0, 0, 0.3);
      text-align: center;
    }

    .payment-success-icon {
      display: grid;
      width: 64px;
      height: 64px;
      margin: 0 auto 1.4rem;
      place-items: center;
      border-radius: 18px;
      background: #97bb4b;
      box-shadow: 0 12px 24px rgba(107, 142, 35, 0.28);
      color: #ffffff;
      font-size: 2rem;
      font-weight: 800;
    }

    .payment-success-card h2 {
      margin: 0;
      color: #0f172a;
      font-size: 1.45rem;
      font-weight: 800;
    }

    .payment-success-card > p {
      max-width: 340px;
      margin: 0.85rem auto 1.15rem;
      color: #64748b;
      font-size: 0.95rem;
      line-height: 1.55;
    }

    .payment-success-transaction {
      display: grid;
      gap: 0.35rem;
      padding: 0.9rem 1rem;
      border: 1px solid #bfd3d7;
      border-radius: 13px;
      background: rgba(235, 244, 243, 0.8);
    }

    .payment-success-transaction span {
      color: #64748b;
      font-size: 0.68rem;
      font-weight: 800;
      letter-spacing: 0.08em;
      text-transform: uppercase;
    }

    .payment-success-transaction strong {
      color: #11566b;
      font-size: 0.95rem;
      letter-spacing: 0.08em;
    }

    .payment-success-next {
      margin-top: 0.85rem;
      padding: 0.95rem 1rem;
      border: 1px solid #cfe0bd;
      border-radius: 13px;
      background: rgba(239, 246, 234, 0.84);
      text-align: left;
    }

    .payment-success-next h3 {
      margin: 0 0 0.65rem;
      color: #11566b;
      font-size: 0.82rem;
      font-weight: 800;
    }

    .payment-success-next ul {
      display: grid;
      gap: 0.55rem;
      margin: 0;
      padding-left: 1rem;
      color: #64748b;
      font-size: 0.9rem;
      line-height: 1.35;
    }

    .payment-success-next li::marker {
      color: #91b947;
    }

    .payment-success-home {
      width: 100%;
      margin-top: 1.45rem;
      border: 0;
      border-radius: 12px;
      padding: 0.85rem 1rem;
      background: #91b947;
      box-shadow: 0 10px 20px rgba(107, 142, 35, 0.2);
      color: #0f2810;
      font-weight: 800;
    }

    .payment-success-home:hover {
      background: #39eb74;
    }

    @media (max-width: 991.98px) {
      .payment-grid {
        grid-template-columns: 1fr;
      }
      .payment-header {
        flex-direction: column;
        gap: 1rem;
      }
      .payment-timer {
        width: 100%;
        min-width: auto;
      }
      .payment-card {
        min-height: auto;
      }
      .details-grid {
        grid-template-columns: 1fr;
      }
      .detail-row {
        flex-direction: column;
        align-items: flex-start;
      }
      .booking-details-card {
        padding: 1.5rem;
      }
      .payment-confirmation-card {
        padding: 1.75rem;
      }
      .payment-success-card {
        padding: 1.75rem 1.2rem 1.3rem;
      }
      .payment-card .payment-info p {
        margin-bottom: 1rem;
      }
    }

    @media (max-width: 575.98px) {
      .payment-header h1 {
        font-size: 2rem;
      }
      .payment-card,
      .booking-details-card {
        padding: 1.3rem;
      }
      .receipt-dropzone {
        min-height: 140px;
      }
      .payment-confirmation-modal {
        padding: 0.8rem;
      }
      .payment-confirmation-card {
        max-height: calc(100vh - 1.6rem);
        padding: 1.45rem;
        border-radius: 22px;
      }
      .payment-confirmation-actions {
        flex-direction: column-reverse;
      }
      .payment-confirmation-back,
      .payment-confirmation-submit {
        width: 100%;
      }
    }

/* ========================================================================== */
/* VIEW.BLADE.PHP: PAGE-SPECIFIC BOOKING STYLES                               */
/* ========================================================================== */

.booking-page {
  background: #f4f7fb;
  padding-bottom: 8rem;
}

.booking-shell {
  max-width: 1180px;
}

.hero {
  background: #f6c515;
  box-shadow: 0 20px 42px rgba(181, 127, 0, .2) !important;
}

.hero::before {
  background: linear-gradient(120deg, rgba(255, 255, 255, .35), transparent 58%);
  opacity: 1;
}

.hero-glow {
  background: rgba(255, 255, 255, .3);
}

.hero h1,
.hero h3,
.hero p,
.hero .text-white-75 {
  color: #2b2100 !important;
}

.hero .bg-white.bg-opacity-10 {
  background: rgba(255, 250, 224, .55) !important;
  border: 1px solid rgba(94, 65, 0, .14);
}

.hero .text-uppercase {
  color: #715400 !important;
  opacity: 1 !important;
}

.booking-search-card,
.booking-card,
#availabilityTableContainer {
  border: 1px solid rgba(37, 99, 235, .08);
}

.booking-date-control {
  min-width: 250px;
}

.booking-status-legend .status-badge {
  border: 1px solid rgba(15, 23, 42, .06);
  box-shadow: none !important;
}

.court-grid-hint {
  color: #64748b;
  display: none;
  font-size: .8rem;
  margin: 0 0 .75rem;
}

#availabilityTableContainer {
  scroll-behavior: smooth;
}

.floating-cart.is-visible {
  animation: selected-slots-enter .22s ease-out;
}

@keyframes selected-slots-enter {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

@media (max-width: 767.98px) {
  .booking-page {
    padding-bottom: 7rem;
  }

  .booking-shell {
    padding-left: 16px;
    padding-right: 16px;
  }

  .booking-search-card {
    margin-bottom: 24px !important;
    padding: 16px !important;
  }

  .booking-search-card .input-group {
    box-shadow: none !important;
    flex-wrap: nowrap;
    max-width: 100%;
  }

  .booking-search-card .input-group-text {
    flex: 0 0 auto;
    padding-left: 0.8rem;
    padding-right: 0.5rem;
  }

  .booking-search-card #bookingLookupInput {
    font-size: 16px;
    min-width: 0;
    padding-left: 0.4rem;
    text-overflow: ellipsis;
  }

  .booking-search-card .btn {
    min-height: 48px;
  }

  .booking-card {
    margin-bottom: 24px !important;
  }

  .booking-card .card-header,
  .booking-card .card-body {
    padding: 20px !important;
  }

  .booking-card .card-header h3 {
    font-size: 1.35rem;
  }

  .booking-date-control {
    min-width: 0;
    width: 100%;
  }

  .booking-date-control .date-card {
    flex: 1 1 auto;
    padding: 12px !important;
  }

  .booking-date-control .date-card-icon {
    border-radius: 12px;
    height: 42px;
    width: 42px;
  }

  .booking-date-control #reservationDate {
    min-width: 0;
  }

  .booking-status-legend {
    row-gap: 10px !important;
  }

  .booking-status-legend .status-badge {
    font-size: .82rem;
    min-height: 46px;
    padding: .6rem;
  }

  #availabilityTableContainer {
    border-radius: 16px;
    margin-top: 0 !important;
    padding: 10px;
  }

  .court-grid-hint {
    align-items: center;
    display: flex;
    gap: .35rem;
  }

  .availability-table {
    min-width: 780px;
  }

  .availability-table .badge {
    min-width: 5.25rem;
    padding: .58rem .65rem;
  }

  .floating-cart {
    bottom: 34px;
    width: calc(100vw - 20px);
  }

  .floating-card {
    border-radius: 18px;
    padding: 10px 36px 10px 12px;
  }

  .cart-content {
    align-items: center;
    flex-direction: row;
    gap: 10px;
  }

  .cart-title {
    font-size: .68rem;
    letter-spacing: .08em;
    margin-bottom: 2px;
  }

  .slot-counter,
  .cart-total {
    font-size: .82rem;
    margin-top: 2px;
  }

  .cart-total {
    margin-top: 5px;
    padding: 4px 7px;
  }

  .slot-number {
    font-size: 1.2rem;
  }

  .slot-max {
    display: none;
  }

  .pay-btn {
    flex: 0 0 auto;
    font-size: .82rem;
    padding: 10px 13px;
    width: auto;
  }

  .cart-action {
    margin-right: 16px;
  }

  .pay-btn .arrow {
    display: none;
  }

  .floating-card .close-btn {
    align-items: center;
    background: #f1f5f9;
    border-radius: 50%;
    color: #64748b;
    display: flex;
    font-size: 1.35rem;
    height: 24px;
    justify-content: center;
    right: 12px;
    top: 8px;
    width: 24px;
    z-index: 1;
  }

  @media (max-width: 374.98px) {
    .floating-cart {
      width: calc(100vw - 16px);
    }

    .floating-card {
      padding: 10px 34px 10px 12px;
    }

    .cart-content {
      gap: 8px;
    }

    .cart-action {
      margin-right: 14px;
    }

    .cart-title {
      font-size: 0.62rem;
    }

    .slot-counter,
    .cart-total {
      font-size: 0.82rem;
    }

    .slot-number {
      font-size: 1.05rem;
    }

    .pay-btn {
      font-size: 0.8rem;
      padding: 10px 11px;
    }
  }

  .checkout-modal {
    align-items: flex-start;
    overflow-y: auto;
    padding: 10px;
  }

  .checkout-card {
    margin: auto 0;
    max-width: 100%;
    width: 100%;
  }

  .checkout-form,
  .checkout-form .form-group {
    min-width: 0;
    width: 100%;
  }

  .checkout-form .form-control,
  .checkout-form .form-select {
    box-sizing: border-box;
    font-size: 16px;
    max-width: 100%;
    min-width: 0;
    width: 100%;
  }

  .checkout-form .form-select {
    min-height: 48px;
    padding-right: 2.5rem;
  }

  .checkout-consents {
    display: grid;
    gap: 0.65rem;
    margin-top: 0.25rem;
  }

  .checkout-consent {
    align-items: flex-start;
    color: #475569;
    display: flex;
    font-size: 0.88rem;
    gap: 0.55rem;
    line-height: 1.45;
    min-width: 0;
  }

  .checkout-consent input {
    accent-color: #2563eb;
    flex: 0 0 auto;
    height: 1rem;
    margin: 0.18rem 0 0;
    width: 1rem;
  }

  .checkout-consent span {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .checkout-consent a {
    color: #2563eb;
    text-decoration: none;
  }

  .checkout-submit {
    overflow-wrap: anywhere;
    white-space: normal;
  }
}

@media (max-width: 767.98px) {
  #availabilityTableContainer {
    max-height: min(78vh, 720px);
    padding: 6px;
  }

  .availability-table {
    border-spacing: 0 0.35rem;
    min-width: 620px;
  }

  .availability-table thead th {
    font-size: 0.64rem;
    padding: 0.45rem 0.35rem;
  }

  .availability-table tbody td,
  .availability-table tbody th {
    font-size: 0.64rem;
    line-height: 1.2;
    padding: 0.35rem 0.3rem;
  }

  .availability-table tbody th[scope="row"] {
    min-width: 5.25rem;
    padding-left: 0.45rem;
  }

  .availability-table .badge {
    min-width: 3.9rem;
    padding: 0.38rem 0.35rem;
    font-size: 0.58rem;
    line-height: 1.25;
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  #availabilityTableContainer {
    scroll-behavior: auto;
  }

  .floating-cart.is-visible {
    animation: none;
  }
}

/* ========================================================================== */
/* PAYMENT.BLADE.PHP: PAYMENT TOAST STYLES                                    */
/* ========================================================================== */

.ajax-toast-container {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  position: fixed;
  right: 1rem;
  top: 1rem;
  z-index: 1100;
}

.ajax-toast {
  background: #0d6efd;
  border-radius: .5rem;
  box-shadow: 0 6px 18px rgba(13, 110, 253, .22);
  color: #fff;
  max-width: 380px;
  min-width: 300px;
  opacity: 0;
  padding: .75rem 1rem;
  transform: translateY(-8px);
  transition: transform .24s ease, opacity .24s ease;
}

.ajax-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.ajax-toast .title {
  font-weight: 700;
}

.ajax-toast .message {
  font-size: .93rem;
  margin-top: .25rem;
}

.ajax-toast .ref {
  font-size: .82rem;
  margin-top: .5rem;
  opacity: .95;
}

.ajax-toast .close {
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
}

.ajax-toast.ajax-toast-danger {
  background: #dc3545;
  box-shadow: 0 6px 18px rgba(220, 53, 69, .24);
}

#paymentNotification {
  margin-bottom: .5rem;
}

/* ========================================================================== */
/* PAYMENT.BLADE.PHP: MOBILE PAYMENT LAYOUT                                  */
/* ========================================================================== */

@media (max-width: 767.98px) {
  .payment-page {
    padding-bottom: 1.5rem;
  }

  .payment-page > .container {
    padding: 1.25rem 16px !important;
  }

  .payment-header {
    gap: 1rem !important;
    margin-bottom: 1.25rem !important;
  }

  .payment-header .display-5 {
    font-size: 2rem;
    line-height: 1.15;
  }

  .payment-header h4 {
    font-size: 1.1rem;
    margin-top: 1rem !important;
  }

  .payment-header p {
    font-size: .92rem;
    line-height: 1.5;
  }

  .payment-timer {
    align-items: center;
    display: flex;
    justify-content: space-between;
    min-width: 0;
    padding: .9rem 1rem !important;
    width: 100%;
  }

  .payment-timer .small {
    margin: 0 !important;
  }

  .payment-timer .h4 {
    font-size: 1.25rem;
  }

  .payment-grid {
    gap: 1rem;
  }

  .payment-card {
    border-radius: 18px;
    gap: .85rem;
    padding: 1rem;
  }

  .payment-card-title {
    font-size: .95rem;
  }

  .payment-card-subtitle,
  .upload-card > p {
    font-size: .88rem;
    margin-bottom: .25rem !important;
  }

  .qr-frame {
    border-radius: 18px;
    min-height: 0;
  }

  .qr-image {
    border-radius: 18px;
  }

  .payment-info {
    border-radius: 14px;
    padding: .85rem;
  }

  #referenceField .input-group {
    flex-wrap: wrap;
    gap: .5rem;
  }

  #referenceField .form-control,
  #removeReference {
    border-radius: .375rem !important;
    width: 100%;
  }

  .receipt-dropzone {
    border-radius: 18px;
    min-height: 170px;
    padding: 1rem;
  }

  .upload-icon {
    border-radius: 14px;
    height: 44px;
    width: 44px;
  }

  .receipt-preview {
    border-radius: 14px;
    font-size: .88rem;
    min-height: 52px;
    overflow-wrap: anywhere;
    padding: .8rem;
  }

  .booking-details-card {
    border-radius: 18px;
    margin-top: 1rem !important;
    padding: 1rem !important;
  }

  .booking-details-card > .d-flex:first-child {
    align-items: flex-start !important;
    gap: .75rem;
  }

  .booking-details-card .details-grid {
    gap: .75rem;
  }

  .booking-details-card .detail-value {
    overflow-wrap: anywhere;
  }

  .booking-slot-overview {
    margin-bottom: 1rem !important;
    padding-top: .85rem;
  }

  .booking-slots-grid {
    gap: .75rem;
    grid-template-columns: 1fr;
  }

  .booking-slot-card {
    border-radius: 16px;
    min-height: auto;
    padding: .85rem;
  }

  .detail-row.total-row {
    align-items: flex-start;
    border-radius: 14px;
    font-size: .92rem;
    padding: .85rem;
  }

  .qr-modal,
  .payment-confirmation-modal,
  .payment-success-modal {
    padding: .75rem;
  }

  .qr-modal-card,
  .payment-confirmation-card,
  .payment-success-card {
    border-radius: 18px;
  }

  .qr-modal-card {
    padding: 1.25rem;
  }

  .payment-confirmation-heading {
    gap: .75rem;
  }

  .payment-confirmation-icon {
    flex-basis: 36px;
    height: 36px;
    width: 36px;
  }

  .payment-confirmation-heading h2,
  .payment-success-card h2 {
    font-size: 1.2rem;
  }

  .payment-confirmation-total {
    align-items: flex-start;
    flex-direction: column;
    gap: .35rem;
  }
}


