

.bk-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.9);
  z-index: 3000;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease;
}
.bk-overlay.on { opacity: 1; pointer-events: all; }

.bk-box {
  background: #181a23;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 18px;
  width: 100%; max-width: 520px;
  max-height: 92vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  transform: scale(.94) translateY(12px);
  transition: transform .25s ease;
  position: relative;
}
.bk-overlay.on .bk-box { transform: scale(1) translateY(0); }

.bk-header {
  padding: 1.5rem 1.5rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,.07);
  position: sticky; top: 0; z-index: 5;
  background: #181a23;
  display: flex; align-items: center; justify-content: space-between;
}
.bk-header h3 {
  font-family: 'Exo 2', sans-serif;
  font-weight: 800; font-size: 1.2rem; margin: 0;
}
.bk-close {
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12);
  color: #fff; font-size: 1rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, border-color .2s;
  flex-shrink: 0;
}
.bk-close:hover { background: rgba(230,32,32,.35); border-color: rgba(230,32,32,.6); }

.bk-steps {
  display: flex; gap: 0; padding: 1rem 1.5rem .5rem;
  position: relative;
}
.bk-steps::before {
  content: '';
  position: absolute;
  top: 50%; left: calc(1.5rem + 14px);
  right: calc(1.5rem + 14px);
  height: 2px;
  background: rgba(255,255,255,.08);
  transform: translateY(-50%);
  z-index: 0;
}
.bk-step-dot {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; gap: .35rem; position: relative; z-index: 1;
}
.bk-step-dot .dot {
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(255,255,255,.08);
  border: 2px solid rgba(255,255,255,.12);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Exo 2', sans-serif; font-weight: 700; font-size: .72rem;
  color: #8a8f9e;
  transition: background .3s, border-color .3s, color .3s;
}
.bk-step-dot.active .dot {
  background: #e62020; border-color: #e62020; color: #fff;
}
.bk-step-dot.done .dot {
  background: rgba(34,197,94,.2); border-color: #4ade80; color: #4ade80;
}
.bk-step-dot .lbl { font-size: .62rem; color: #8a8f9e; letter-spacing: .04em; text-align: center; }
.bk-step-dot.active .lbl, .bk-step-dot.done .lbl { color: #c8cad2; }

.bk-panel { display: none; padding: 1.2rem 1.5rem 1.5rem; }
.bk-panel.on { display: block; }

.bk-cal-nav {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: .9rem;
}
.bk-cal-nav h4 {
  font-family: 'Exo 2', sans-serif; font-weight: 700; font-size: 1rem; margin: 0;
  text-transform: capitalize;
}
.bk-cal-nav-btn {
  width: 32px; height: 32px; border-radius: 8px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1);
  color: #fff; cursor: pointer; font-size: .9rem;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.bk-cal-nav-btn:hover { background: rgba(255,255,255,.14); }

.bk-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.bk-cal-weekday {
  text-align: center; font-size: .65rem; color: #8a8f9e;
  letter-spacing: .06em; text-transform: uppercase; padding: .3rem 0;
}
.bk-cal-day {
  aspect-ratio: 1; border-radius: 8px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem; font-weight: 500;
  border: 1px solid transparent;
  transition: background .18s, border-color .18s, color .18s;
  position: relative;
}
.bk-cal-day.empty { cursor: default; }
.bk-cal-day.past { color: #3a3e4a; cursor: default; pointer-events: none; }
.bk-cal-day.available { color: #fff; background: rgba(255,255,255,.05); }
.bk-cal-day.available:hover { background: rgba(230,32,32,.2); border-color: rgba(230,32,32,.4); }
.bk-cal-day.booked { color: #8a8f9e; background: rgba(255,255,255,.04); cursor: pointer; }

.bk-cal-day.has-bookings { background: rgba(251,146,60,.18); border-color: rgba(251,146,60,.35); color: #fb923c; }
.bk-cal-day.has-bookings:hover { background: rgba(251,146,60,.3); }
.bk-cal-day.selected { background: #e62020 !important; border-color: #e62020 !important; color: #fff !important; }
.bk-cal-day.today::after {
  content: ''; position: absolute; bottom: 3px;
  width: 4px; height: 4px; border-radius: 50%; background: #3a5aff;
}

.bk-slots-popup {
  background: rgba(24,26,35,.98);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  padding: 1rem 1.2rem;
  margin-top: .85rem;
}
.bk-slots-popup h6 {
  font-family: 'Exo 2', sans-serif; font-weight: 700; font-size: .88rem;
  margin-bottom: .7rem; color: #fb923c;
}
.bk-slot-item {
  display: flex; align-items: center; gap: .5rem;
  font-size: .8rem; color: #c8cad2; padding: .25rem 0;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.bk-slot-item:last-child { border-bottom: none; }
.bk-slot-item i { color: #fb923c; font-size: .7rem; }

.bk-time-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: .5rem; margin-top: .6rem;
}
.bk-time-btn {
  padding: .5rem .3rem; border-radius: 7px; text-align: center;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  color: #c8cad2; font-size: .82rem; cursor: pointer;
  transition: background .18s, border-color .18s, color .18s;
}
.bk-time-btn:hover { background: rgba(230,32,32,.18); border-color: rgba(230,32,32,.4); color: #fff; }
.bk-time-btn.selected { background: #e62020; border-color: #e62020; color: #fff; }
.bk-time-btn.disabled { color: #3a3e4a; pointer-events: none; background: rgba(255,255,255,.02); }

.bk-field { margin-bottom: 1.1rem; }
.bk-field label {
  display: block; font-size: .78rem; color: #8a8f9e;
  letter-spacing: .06em; text-transform: uppercase; margin-bottom: .4rem;
  font-family: 'Rajdhani', sans-serif; font-weight: 600;
}
.bk-field input, .bk-field select {
  width: 100%; padding: .72rem 1rem; border-radius: 8px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  color: #fff; font-size: .9rem; outline: none;
  transition: border-color .2s, background .2s;
  font-family: 'Inter', sans-serif;
  -webkit-appearance: none; appearance: none;
}
.bk-field input:focus, .bk-field select:focus {
  border-color: #e62020; background: rgba(255,255,255,.09);
}
.bk-field input::placeholder { color: #5a5e6a; }
.bk-field select option { background: #1a1c25; color: #fff; }
.bk-field .hint { font-size: .73rem; color: #5a5e6a; margin-top: .3rem; }

.pkg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; margin-top: .4rem; }
.pkg-card {
  border: 1px solid rgba(255,255,255,.1); border-radius: 10px;
  padding: .9rem; cursor: pointer; background: rgba(255,255,255,.04);
  transition: border-color .2s, background .2s;
  position: relative;
}
.pkg-card:hover { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.2); }
.pkg-card.selected { border-color: #e62020; background: rgba(230,32,32,.1); }
.pkg-card .pkg-name { font-family: 'Exo 2', sans-serif; font-weight: 700; font-size: .85rem; margin-bottom: .25rem; }
.pkg-card .pkg-price { font-size: .95rem; font-weight: 700; color: #e62020; }
.pkg-card .pkg-desc { font-size: .72rem; color: #8a8f9e; margin-top: .2rem; line-height: 1.4; }
.pkg-card input[type=radio] { position: absolute; opacity: 0; pointer-events: none; }

.bk-summary {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px; padding: 1rem 1.2rem; margin-bottom: 1.2rem;
}
.bk-summary-row {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: .35rem 0; border-bottom: 1px solid rgba(255,255,255,.05);
  font-size: .84rem;
}
.bk-summary-row:last-child { border-bottom: none; }
.bk-summary-row .lbl { color: #8a8f9e; }
.bk-summary-row .val { color: #fff; font-weight: 500; text-align: right; max-width: 60%; }
.bk-total { font-size: 1.2rem; font-weight: 700; color: #e62020 !important; }

.bk-qr-block {
  text-align: center; padding: 1.2rem 0;
}
.bk-qr-block .qr-img {
  width: 200px; height: 200px; border-radius: 12px;
  margin: 0 auto 1rem;
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.bk-qr-block .qr-img img { width: 100%; height: 100%; object-fit: contain; }
.bk-qr-note { font-size: .82rem; color: #8a8f9e; line-height: 1.6; margin-bottom: 1.2rem; }
.bk-amount-badge {
  display: inline-block; background: rgba(230,32,32,.15);
  border: 1px solid rgba(230,32,32,.3); border-radius: 8px;
  padding: .5rem 1.2rem; font-family: 'Exo 2', sans-serif;
  font-size: 1.5rem; font-weight: 900; color: #e62020;
  margin-bottom: 1.2rem;
}

.bk-file-drop {
  border: 2px dashed rgba(255,255,255,.15); border-radius: 10px;
  padding: 2rem 1rem; text-align: center; cursor: pointer;
  transition: border-color .2s, background .2s;
  position: relative; overflow: hidden;
}
.bk-file-drop:hover { border-color: rgba(230,32,32,.5); background: rgba(230,32,32,.04); }
.bk-file-drop input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.bk-file-drop .upload-icon { font-size: 2rem; margin-bottom: .5rem; color: #5a5e6a; }
.bk-file-drop .upload-text { font-size: .85rem; color: #8a8f9e; }
.bk-file-drop .upload-hint { font-size: .72rem; color: #4a4e5a; margin-top: .3rem; }
.bk-file-preview {
  display: none; margin-top: .8rem;
  border-radius: 8px; overflow: hidden;
  border: 1px solid rgba(255,255,255,.1);
}
.bk-file-preview img { width: 100%; max-height: 200px; object-fit: cover; display: block; }

.bk-status-screen {
  text-align: center; padding: 2rem 1rem;
}
.bk-status-icon { font-size: 3.5rem; margin-bottom: 1rem; }
.bk-status-screen h4 {
  font-family: 'Exo 2', sans-serif; font-weight: 800;
  font-size: 1.3rem; margin-bottom: .6rem;
}
.bk-status-screen p { font-size: .88rem; color: #8a8f9e; line-height: 1.65; margin-bottom: 1.5rem; }

.bk-spinner {
  width: 44px; height: 44px; border-radius: 50%;
  border: 3px solid rgba(255,255,255,.1);
  border-top-color: #e62020;
  animation: spin .8s linear infinite;
  margin: 0 auto 1.2rem;
}
@keyframes spin { to { transform: rotate(360deg); } }

.bk-btn {
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  width: 100%; padding: .85rem; border-radius: 8px;
  font-family: 'Rajdhani', sans-serif; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; font-size: .95rem;
  cursor: pointer; transition: transform .18s, box-shadow .18s, opacity .18s;
  border: none; margin-bottom: .6rem;
  -webkit-tap-highlight-color: transparent;
}
.bk-btn:last-child { margin-bottom: 0; }
.bk-btn.primary {
  background: linear-gradient(135deg, #e62020, #ff4444);
  color: #fff; box-shadow: 0 0 20px rgba(230,32,32,.35);
}
.bk-btn.primary:hover { transform: translateY(-1px); box-shadow: 0 0 32px rgba(230,32,32,.55); }
.bk-btn.primary:disabled { opacity: .45; cursor: default; transform: none; }
.bk-btn.secondary {
  background: rgba(255,255,255,.07); color: #c8cad2;
  border: 1px solid rgba(255,255,255,.12);
}
.bk-btn.secondary:hover { background: rgba(255,255,255,.12); }
.bk-btn.success {
  background: linear-gradient(135deg, #16a34a, #22c55e);
  color: #fff; box-shadow: 0 0 20px rgba(34,197,94,.3);
}

#my-bookings { background: rgba(11,12,16,.95); }
.my-book-form {
  display: flex; gap: .7rem; flex-wrap: wrap; margin-bottom: 2rem;
}
.my-book-input {
  flex: 1; min-width: 200px; padding: .72rem 1rem; border-radius: 8px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  color: #fff; font-size: .9rem; outline: none;
  transition: border-color .2s; font-family: 'Inter', sans-serif;
}
.my-book-input:focus { border-color: #e62020; }

.booking-list { display: flex; flex-direction: column; gap: .85rem; }
.booking-item {
  background: rgba(24,26,35,.92); border: 1px solid rgba(255,255,255,.07);
  border-radius: 12px; padding: 1.2rem 1.4rem;
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
  transition: border-color .2s;
}
.booking-item:hover { border-color: rgba(255,255,255,.14); }
.booking-item-left h6 {
  font-family: 'Exo 2', sans-serif; font-weight: 700; font-size: .95rem; margin-bottom: .3rem;
}
.booking-item-left small { font-size: .78rem; color: #8a8f9e; }
.booking-status-badge {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .3rem .7rem; border-radius: 5px;
  font-family: 'Rajdhani', sans-serif; font-weight: 700;
  font-size: .68rem; letter-spacing: .08em; text-transform: uppercase;
  flex-shrink: 0;
}
.status-confirmed   { background: rgba(34,197,94,.12);  border: 1px solid rgba(34,197,94,.25);  color: #4ade80; }
.status-pending     { background: rgba(251,146,60,.12);  border: 1px solid rgba(251,146,60,.25);  color: #fb923c; }
.status-rejected    { background: rgba(230,32,32,.12);   border: 1px solid rgba(230,32,32,.25);   color: #ff6060; }
.status-bad_receipt { background: rgba(168,85,247,.12);  border: 1px solid rgba(168,85,247,.25);  color: #c084fc; }

@media (max-width: 480px) {
  .bk-box { border-radius: 14px; }
  .pkg-grid { grid-template-columns: 1fr; }
  .bk-time-grid { grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); }
}



@media (max-width: 600px) {
  .bk-overlay {
    padding: 0;
    align-items: flex-end;
  }
  .bk-box {
    border-radius: 22px 22px 0 0;
    max-height: 96svh;
    max-height: 96vh;
    
  }
  .bk-box::before {
    content: '';
    display: block;
    width: 40px; height: 4px;
    background: rgba(255,255,255,.18);
    border-radius: 2px;
    margin: 10px auto 0;
  }

  
  .bk-header {
    padding: 0.9rem 1.2rem 0.75rem;
    border-bottom: 1px solid rgba(255,255,255,.07);
  }
  .bk-header h3 { font-size: 1rem; }

  
  .bk-steps { padding: 0.8rem 1.2rem 0.4rem; }
  .bk-step-dot .dot { width: 24px; height: 24px; font-size: .68rem; }
  .bk-step-dot .lbl { font-size: .56rem; }

  
  .bk-panel { padding: 1rem 1.2rem 1.2rem; }

  
  .bk-cal-day { font-size: .78rem; border-radius: 6px; }
  .bk-cal-weekday { font-size: .6rem; }

  
  .bk-time-btn {
    padding: .6rem .2rem;
    font-size: .78rem;
    border-radius: 8px;
    min-height: 40px;
  }
  .bk-time-grid {
    grid-template-columns: repeat(auto-fill, minmax(58px, 1fr));
    gap: 0.4rem;
  }

  
  .pkg-grid { grid-template-columns: 1fr; gap: .55rem; }
  .pkg-card { padding: .85rem; }
  .pkg-card .pkg-name { font-size: .88rem; }
  .pkg-card .pkg-price { font-size: 1rem; }

  
  .bk-field input, .bk-field select {
    font-size: 16px; 
    padding: .75rem .9rem;
  }

  
  .bk-btn {
    padding: .9rem;
    font-size: .9rem;
    min-height: 48px;
  }

  
  .bk-qr-block .qr-img { width: 170px; height: 170px; }
  .bk-amount-badge { font-size: 1.3rem; padding: .45rem 1rem; }

  
  .bk-summary-row { font-size: .8rem; }

  
  .bk-status-icon { font-size: 3rem; }
  .bk-status-screen h4 { font-size: 1.1rem; }

  
  .bk-file-drop { padding: 1.5rem 1rem; }
  .upload-icon { font-size: 1.7rem; }
}


.bk-btn, .bk-cal-day, .bk-time-btn, .pkg-card {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}


.bk-box {
  scroll-behavior: smooth;
  overscroll-behavior: contain;
}


.bk-overlay, .gm-overlay {
  overflow: hidden;
  max-width: 100vw;
}
.bk-box, .gm-box {
  max-width: 100vw !important;
  box-sizing: border-box;
}

.bk-qr-block .qr-img {
  position: relative; cursor: pointer;
}
.bk-qr-block .qr-img:hover img { opacity: .85; }
.bk-qr-block .qr-img:active { transform: scale(.97); }
.qr-img-hint {
  position: absolute; bottom: 6px; right: 6px;
  background: rgba(0,0,0,.55); color: #fff;
  border-radius: 6px; padding: 3px 7px; font-size: .75rem;
  pointer-events: none;
}

.bk-prepay-row .val { color: #e62020; font-weight: 700; }
.bk-prepay-hint {
  font-size: .78rem; color: #8a8f9e; line-height: 1.5;
  text-align: center; margin: .3rem 0 1rem;
  padding: .5rem .8rem;
  background: rgba(230,32,32,.07);
  border-radius: 8px;
  border: 1px solid rgba(230,32,32,.15);
}

@media (max-width: 480px) {
  .bk-box {
    width: 100vw !important;
    max-width: 100vw !important;
    border-radius: 16px 16px 0 0 !important;
    max-height: 92vh;
    overflow-y: auto;
  }
  .bk-overlay {
    align-items: flex-end !important;
  }
  .bk-qr-block .qr-img { width: 190px !important; height: 190px !important; }
  .bk-amount-badge { font-size: 1.15rem !important; }
  .bk-summary-row { font-size: .82rem; }
  .bk-btn { font-size: .9rem !important; padding: .75rem 1rem !important; }
}
