:root{
  --bg: #ffffff;
  --surface: #f7fbff;
  --surface-2: #eef7ff;
  --text: #0b1220;
  --muted: #516179;
  --border: rgba(18, 62, 96, 0.16);
  --shadow: 0 10px 30px rgba(10, 35, 60, 0.10);

  --green: #16a34a;
  --green-2: #22c55e;
  --blue: #38bdf8;
  --blue-2: #0ea5e9;
  --cal-grid-line: #0ea5e9;
  --accent: linear-gradient(135deg, var(--green) 0%, var(--blue-2) 100%);
  --focus: rgba(56, 189, 248, 0.35);

  --radius: 16px;
  --radius-sm: 12px;
  --pad: 18px;
  --btn-h: 44px;
  --btn-pad-x: 16px;
}

*{ box-sizing: border-box; }
html,body{ height:100%; }
/* Accessible text for icon-only buttons */
.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;
}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color: var(--text);
  font-size: 15px;
  line-height: 1.45;
  background:
    radial-gradient(1200px 600px at 20% -10%, rgba(56,189,248,0.20), transparent 60%),
    radial-gradient(900px 500px at 90% 0%, rgba(34,197,94,0.18), transparent 55%),
    var(--bg);
}

.container{
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.app-shell{ min-height: 100%; display:flex; flex-direction:column; }

.topbar{
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
  background: rgba(255,255,255,0.72);
  border-bottom: 1px solid var(--border);
}
.topbar__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 16px;
  padding: 14px 16px;
}
.topbar__brand{ display:flex; align-items:center; }
.brand{
  display:flex;
  align-items:center;
  gap: 10px;
  text-decoration:none;
  color: var(--text);
  font-weight: 800;
  letter-spacing: 0.2px;
}
.brand__logo{
  height: 34px;
  width: auto;
  object-fit: contain;
  border-radius: 10px;
  display:block;
  filter: drop-shadow(0 10px 18px rgba(10, 35, 60, 0.12));
  transition: transform .12s ease, filter .12s ease;
}
.brand__logo--white{
  background: transparent;
  padding: 0;
  border: 0;
  /* keep white logo readable on light header without a solid box */
  filter:
    drop-shadow(0 10px 18px rgba(10, 35, 60, 0.18))
    drop-shadow(0 0 1px rgba(10, 35, 60, 0.30));
}
.brand:hover .brand__logo{
  transform: translateY(-1px);
  filter: drop-shadow(0 14px 22px rgba(10, 35, 60, 0.16));
}
.brand__dot{
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 6px 18px rgba(14,165,233,0.25);
}
.topbar__actions{
  display:flex;
  align-items:center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.topbar__toggle{
  display:none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.70);
  cursor:pointer;
  align-items:center;
  justify-content:center;
  box-shadow: 0 8px 18px rgba(10, 35, 60, 0.06);
}
.topbar__toggle:focus{ outline:none; box-shadow: 0 0 0 4px var(--focus); }
.topbar__toggleIcon{
  width: 18px;
  height: 2px;
  background: rgba(11,18,32,0.82);
  position: relative;
  display:block;
  border-radius: 999px;
}
.topbar__toggleIcon::before,
.topbar__toggleIcon::after{
  content:'';
  position:absolute;
  left:0;
  width: 18px;
  height: 2px;
  background: rgba(11,18,32,0.82);
  border-radius: 999px;
}
.topbar__toggleIcon::before{ top:-6px; }
.topbar__toggleIcon::after{ top:6px; }

.btn{
  height: var(--btn-h);
  padding: 0 var(--btn-pad-x);
  border-radius: 12px;
  border: 1px solid transparent;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  text-decoration:none;
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  cursor:pointer;
  user-select:none;
  transition: transform .08s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:active{ transform: translateY(1px); }
.btn:focus{ outline: none; box-shadow: 0 0 0 4px var(--focus); }
.btn--primary{
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 22px rgba(22,163,74,0.18);
}
.btn--primary:hover{ box-shadow: 0 14px 28px rgba(14,165,233,0.22); }
.btn--ghost{
  background: rgba(255,255,255,0.55);
  border-color: var(--border);
  color: var(--text);
}
.btn--ghost:hover{ background: rgba(238,247,255,0.9); }
.btn--danger{
  background: rgba(239,68,68,0.10);
  border-color: rgba(239,68,68,0.28);
  color: #b91c1c;
}
.btn--full{ width: 100%; }

/* Admin bookings — reject booking modal */
.booking-reject-dialog{
  padding: 0;
  border: none;
  border-radius: var(--radius);
  max-width: min(440px, calc(100vw - 32px));
  box-shadow: var(--shadow);
  background: var(--bg);
}
.booking-reject-dialog::backdrop{
  background: rgba(11, 18, 32, 0.48);
}
.booking-reject-dialog form{
  padding: 18px;
}
.booking-reject-dialog .textarea{
  width: 100%;
  min-height: 100px;
  resize: vertical;
}

/* Membership applications: colored Non-Members tab (inactive state) */
.btn--members-accent{
  background: linear-gradient(135deg, rgba(22,163,74,0.16) 0%, rgba(14,165,233,0.16) 100%);
  border-color: rgba(20,184,166,0.42);
  color: #0d9488;
  box-shadow: 0 8px 18px rgba(20,184,166,0.14);
}
.btn--members-accent:hover{
  border-color: rgba(14,165,233,0.55);
  box-shadow: 0 12px 24px rgba(14,165,233,0.18);
  color: #0f766e;
}

.membership-filter-row{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  margin-top: 14px;
}
.membership-filter-row__main{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  flex: 1 1 auto;
  min-width: 0;
}
.membership-filter-row__aside{
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-left: auto;
  padding-left: 12px;
  border-left: 1px solid rgba(18, 62, 96, 0.12);
}
@media (max-width: 560px){
  .membership-filter-row__aside{
    margin-left: 0;
    padding-left: 0;
    padding-top: 8px;
    border-left: 0;
    border-top: 1px solid rgba(18, 62, 96, 0.12);
    width: 100%;
  }
}

.grid{
  display:grid;
  gap: 16px;
}
.grid--2{ grid-template-columns: 1fr 1fr; }
.grid--3{ grid-template-columns: repeat(3, 1fr); }
.grid--4{ grid-template-columns: repeat(4, 1fr); }

/* User dashboard: responsive — sticky sidebar only on desktop (see min-width below) */
.dashboard-grid{
  align-items: start;
}
.dashboard-grid__main{
  align-self: stretch;
}

/* Notices / QR sidebar: static by default (tablet/mobile); sticky only on wide screens */
.sidebar-sticky{
  position: static;
  z-index: auto;
}

@media (min-width: 1025px){
  .dashboard-grid{
    align-items: stretch;
  }
  .dashboard-grid__main{
    align-self: start;
  }
  .sidebar-sticky{
    position: sticky;
    top: 88px;
    z-index: 2;
  }
}
@media (max-width: 900px){
  .grid--2, .grid--3, .grid--4{ grid-template-columns: 1fr; }
  .topbar{ position: static; }
  .topbar__inner{ padding: 12px 0; }
}

/* Tablet */
@media (max-width: 1024px){
  :root{
    --pad: 16px;
  }
  .container{
    width: min(980px, calc(100% - 28px));
  }
  .topbar__inner{
    gap: 12px;
    padding: 12px 0;
  }
  .topbar__actions{
    gap: 8px;
  }
  .card__inner{ padding: 16px; }
  .section-title{ font-size: 20px; }
}

/* Mobile */
@media (max-width: 600px){
  body{ font-size: 14px; }
  .container{
    width: calc(100% - 20px);
  }

  .topbar__inner{
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 0;
  }
  .brand{ gap: 8px; }
  .brand__logo{ height: 30px; }
  /* Hide the "TGE Booking System" text on mobile */
  .brand__text{ display:none; }

  .topbar__toggle{ display:inline-flex; }

  /* Hamburger dropdown */
  .topbar__actions{
    width: 100%;
    justify-content: flex-start;
    gap: 8px;
    flex-wrap: wrap;
    display: none;
    padding-top: 6px;
  }
  .topbar__actions.is-open{ display:flex; }

  :root{
    --btn-h: 40px;
    --btn-pad-x: 12px;
    --radius: 14px;
  }
  .btn{ font-size: 13px; }

  .card__inner{ padding: 14px; }
  .section-title{ font-size: 18px; }
  .label{ font-size: 12px; }
  .help{ font-size: 12px; }
  .input, .select, .textarea{ padding: 11px 11px; }

  /* Make fixed footer less cramped on small screens */
  .footer{ padding: 14px 0; }
  .footer__inner{ gap: 8px; }
  main.container{ padding-bottom: 110px; }
}

.card{
  background: rgba(255,255,255,0.78);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card__inner{ padding: var(--pad); }
.card__title{ margin:0; font-size: 18px; letter-spacing: 0.2px; }
.card__subtitle{ margin: 6px 0 0; color: var(--muted); }

.section-title{
  margin: 18px 0 10px;
  font-size: 22px;
  letter-spacing: 0.2px;
}
.muted{ color: var(--muted); }

.field{ display:flex; flex-direction:column; gap: 7px; }
.label{ font-weight: 700; font-size: 13px; color: rgba(11,18,32,0.86); }
.input, .select, .textarea{
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.85);
  padding: 12px 12px;
  color: var(--text);
  outline: none;
  transition: box-shadow .15s ease, border-color .15s ease;
}
.textarea{ min-height: 120px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus{
  border-color: rgba(14,165,233,0.55);
  box-shadow: 0 0 0 4px var(--focus);
}

/* Hourly custom dropdown (allows colored items reliably) */
.hourly-dd{
  position: relative;
}
.hourly-dd__btn{
  width: 100%;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.85);
  padding: 0 12px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  font-weight: 900;
  cursor:pointer;
}
.hourly-dd__btn:focus{ outline:none; box-shadow: 0 0 0 4px var(--focus); }
.hourly-dd__value{ color: rgba(11,18,32,0.88); }
.hourly-dd__chev{ color: rgba(11,18,32,0.55); font-weight: 900; }
.hourly-dd__menu{
  position:absolute;
  left:0;
  right:0;
  top: calc(44px + 8px);
  z-index: 20;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.96);
  box-shadow: 0 14px 30px rgba(10, 35, 60, 0.14);
  padding: 8px;
  display:none;
  max-height: 260px;
  overflow:auto;
}
.hourly-dd.is-open .hourly-dd__menu{ display:block; }
.hourly-dd__item{
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 10px 10px;
  background: transparent;
  text-align:left;
  font-weight: 900;
  cursor:pointer;
}
.hourly-dd__item:hover{ background: rgba(0,0,0,0.04); }
.hourly-dd__item--available{
  background: rgba(238,247,255,0.92);
  color: rgba(14,165,233,0.95);
  border: 1px solid rgba(14,165,233,0.28);
}
.hourly-dd__item--available:hover{
  background: rgba(238,247,255,1);
  border-color: rgba(22,163,74,0.30);
  color: rgba(22,163,74,0.95);
}
.hourly-dd__item--disabled{
  opacity: 0.42;
  cursor:not-allowed;
}
.hourly-dd__item--selected{
  box-shadow: inset 0 0 0 2px rgba(22,163,74,0.55), 0 0 0 4px rgba(56,189,248,0.14);
}
@media (max-width: 600px){
  .hourly-dd__btn{ height: 40px; }
  .hourly-dd__menu{ top: calc(40px + 8px); }
}
.help{ font-size: 12px; color: var(--muted); }

/* Calendar picker (minimal style like screenshot) */
.fixed-picker{
  border: 0;
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(10, 35, 60, 0.10);
  width: 100%;
}
.fixed-picker__head{
  position: relative;
  background: #d9d9d9;
  padding: 10px 0;
  border-bottom: 1px solid rgba(0,0,0,0.10);
}
.fixed-picker__spiral{
  display:none;
}
.fixed-picker__headRow{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
}
.fixed-picker__title{
  font-weight: 900;
  text-align:center;
  flex: 1;
  letter-spacing: 0.2px;
}
.fixed-picker__nav{
  width: 54px;
  height: 42px;
  border-radius: 0;
  border: 0;
  background: transparent;
  cursor:pointer;
  font-weight: 900;
  font-size: 28px;
  line-height: 1;
  color: rgba(0,0,0,0.70);
}
.fixed-picker__nav:disabled{ opacity: 0.35; cursor: not-allowed; }
.fixed-picker__grid{
  display:grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0;
}
.fixed-picker__dow{
  font-size: 11px;
  font-weight: 900;
  background: #efefef;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  text-align:center;
  padding: 8px 0;
  color: rgba(0,0,0,0.55);
}
.fixed-picker__dow--sun{ color: #d11a2a; }
.fixed-picker__day{
  height: 52px;
  display:flex;
  align-items:center;
  justify-content:center;
  border: 0;
  cursor: default;
  user-select:none;
  font-weight: 900;
  background: #fff;
  color: rgba(0,0,0,0.25);
  pointer-events: none; /* default: not clickable */
}
.fixed-picker__day--sun{ color: #d11a2a; }
.fixed-picker__day--outside{
  color: rgba(0,0,0,0.16);
  background: #fff;
}
.fixed-picker__day--disabled{
  cursor: not-allowed;
  pointer-events: none;
}
.fixed-picker__day--enabled{
  cursor: pointer;
  pointer-events: auto; /* only enabled days clickable */
  color: rgba(0,0,0,0.92);
}
.fixed-picker__day--enabled:hover{
  background: rgba(0,0,0,0.04);
}
.fixed-picker__num{
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display:flex;
  align-items:center;
  justify-content:center;
}
.fixed-picker__day--selected{
  /* thin highlight box like screenshot */
  box-shadow: inset 0 0 0 2px rgba(201,176,138,0.85);
}
.fixed-picker__day--selected .fixed-picker__num{
  background: #2f80ed;
  color: #fff;
}

.flash{
  margin: 16px 0 0;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(238,247,255,0.7);
}
.flash--success{ background: rgba(34,197,94,0.12); border-color: rgba(34,197,94,0.25); }
.flash--error{ background: rgba(239,68,68,0.10); border-color: rgba(239,68,68,0.25); }
.flash--info{ background: rgba(56,189,248,0.10); border-color: rgba(56,189,248,0.22); }

.table{
  width:100%;
  border-collapse: collapse;
  overflow:hidden;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.78);
}
.table th,.table td{
  padding: 12px 12px;
  border-bottom: 1px solid rgba(18, 62, 96, 0.10);
  text-align:left;
  vertical-align: top;
  font-size: 14px;
}
.table th{ font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(11,18,32,0.70); }
.table tr:last-child td{ border-bottom:none; }

.booking-type-order-col{
  width: 52px;
  padding-right: 4px !important;
  vertical-align: middle;
}
.booking-type-order{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.booking-type-order__form{
  margin: 0;
  line-height: 1;
}
.booking-type-order__btn{
  min-width: 36px !important;
  width: 36px;
  height: 32px;
  padding: 0 !important;
  font-size: 12px;
  line-height: 1;
  border-radius: 8px;
}
.booking-type-order__btn:disabled{
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}
@media (max-width: 720px){
  .booking-type-order-col{
    width: 44px;
  }
  .booking-type-order__btn{
    min-width: 32px !important;
    width: 32px;
    height: 28px;
  }
}

/* Admin bookings calendar */
.calendar{
  background: rgba(255,255,255,0.78);
  border: 1px solid var(--cal-grid-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.calendar__grid{
  display:grid;
  grid-template-columns: repeat(7, 1fr);
}
.calendar__dow{
  font-size: 12px;
  font-weight: 900;
  padding: 12px 10px;
  background: rgba(238,247,255,0.85);
  border-bottom: 1px solid var(--cal-grid-line);
  color: rgba(11,18,32,0.68);
  text-align:center;
}
.calendar__dow--sun{ color: #d11a2a; }
.calendar__cell{
  min-height: 132px;
  padding: 10px;
  border-right: 1px solid var(--cal-grid-line);
  border-bottom: 1px solid var(--cal-grid-line);
  background: rgba(255,255,255,0.92);
}
.calendar__cell:nth-child(7n){ border-right:none; }
.calendar__cell--outside{
  background: rgba(255,255,255,0.55);
}
.calendar__daynum{
  font-weight: 950;
  font-size: 12px;
  color: rgba(11,18,32,0.55);
}
.calendar__daylink{
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}
.calendar__daylink:hover{
  text-decoration: underline;
  color: var(--primary);
}
.calendar__cell--clickable{
  cursor: pointer;
}
.calendar__cell--clickable:hover{
  background: rgba(238,247,255,0.95);
}
.calendar__dayview{
  margin-top: 16px;
  padding: 16px;
}
.calendar__dayview-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.calendar__dayview-title{
  font-weight: 950;
  font-size: 16px;
  margin: 0;
}
.calendar__dayview-items{
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.calendar__items{ margin-top: 8px; display:flex; flex-direction:column; gap: 8px; }
.calendar__item{
  border-radius: 12px;
  border: 1px solid rgba(18, 62, 96, 0.14);
  background: rgba(238,247,255,0.70);
  padding: 8px 10px;
}
.calendar__item--approved{
  background: rgba(34,197,94,0.10);
  border-color: rgba(34,197,94,0.24);
}
.calendar__item--pending{
  background: rgba(56,189,248,0.10);
  border-color: rgba(56,189,248,0.22);
}
.calendar__item--rejected{
  background: rgba(239,68,68,0.08);
  border-color: rgba(239,68,68,0.20);
}
.calendar__item--cancelled{
  background: rgba(148,163,184,0.14);
  border-color: rgba(148,163,184,0.28);
}
.calendar__item--rebooked{
  background: rgba(99,102,241,0.10);
  border-color: rgba(99,102,241,0.28);
}
.calendar__itemTop{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 8px;
  font-size: 12px;
  font-weight: 900;
}
.calendar__time{ color: rgba(11,18,32,0.78); }
.calendar__status{ color: rgba(11,18,32,0.52); font-weight: 800; }
.calendar__title{ font-weight: 950; margin-top: 4px; font-size: 13px; }
.calendar__meta{ font-size: 12px; margin-top: 2px; }
.calendar__phone{ font-size: 11px; margin-top: 4px; font-weight: 700; color: rgba(11,18,32,0.72); }
.calendar__item--detail{
  cursor: pointer;
  user-select: none;
}
.calendar__item--detail:focus{
  outline: 2px solid rgba(56,189,248,0.55);
  outline-offset: 1px;
}
.calendar__empty{ margin-top: 10px; font-size: 12px; }
.calendar__empty--link{
  display: block;
  color: inherit;
  text-decoration: none;
}
.calendar__empty--link:hover{
  text-decoration: underline;
  color: var(--primary);
}

/* Admin calendar booking detail modal */
.cal-modal{
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.cal-modal[hidden]{ display:none !important; }
.cal-modal__backdrop{
  position: absolute;
  inset: 0;
  background: rgba(15,23,42,0.45);
  backdrop-filter: blur(2px);
}
.cal-modal__panel{
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
  max-height: min(88vh, 720px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: rgba(255,255,255,0.96);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(11,18,32,0.18);
  padding: 22px 20px 16px;
}
.cal-modal__scroll{
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-right: 4px;
  margin-right: -2px;
}
.cal-modal__footer{
  flex-shrink: 0;
  margin-top: 12px;
  padding-top: 14px;
  border-top: 1px solid rgba(18,62,96,0.12);
}
.cal-modal__footer-label{
  font-weight: 800;
  font-size: 12px;
  color: rgba(11,18,32,0.5);
  margin-bottom: 8px;
}
.cal-modal__footer-block + .cal-modal__footer-block{
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(18,62,96,0.08);
}
.cal-modal__close{
  position: absolute;
  top: 10px;
  right: 12px;
  border: none;
  background: transparent;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  color: rgba(11,18,32,0.45);
  padding: 6px;
  border-radius: 8px;
}
.cal-modal__close:hover{
  color: rgba(11,18,32,0.85);
  background: rgba(11,18,32,0.06);
}
.cal-modal__title{
  margin: 0 36px 14px 0;
  font-size: 1.15rem;
  font-weight: 950;
  flex-shrink: 0;
}
.cal-modal__body{ font-size: 14px; }
.cal-modal__record{ margin-bottom: 4px; }
.cal-modal__sectionhead{
  font-weight: 900;
  font-size: 13px;
  margin: 8px 0 10px;
  color: rgba(11,18,32,0.55);
}
.cal-modal__breakhead{
  font-weight: 900;
  font-size: 12px;
  margin: 10px 0 2px;
  color: rgba(11,18,32,0.48);
  letter-spacing: 0.02em;
}
.cal-modal__row{
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(18,62,96,0.08);
}
.cal-modal__row:last-child{ border-bottom: none; }
.cal-modal__label{
  flex: 0 0 42%;
  color: rgba(11,18,32,0.55);
  font-weight: 700;
}
.cal-modal__val{
  flex: 1;
  text-align: right;
  font-weight: 600;
  word-break: break-word;
}
.cal-modal__hr{
  border: none;
  border-top: 1px solid rgba(18,62,96,0.12);
  margin: 14px 0;
}
.cal-modal__actions{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.cal-modal__footer .cal-modal__actions{
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}
.cal-modal__action-form{
  margin: 0;
  display: inline-flex;
}
.cal-modal__subdlg{
  z-index: 3000;
}

/* Admin day schedule grid (resource × time) */
.sched-toolbar{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 8px;
  padding: 0 2px;
}
.sched-toolbar__date{
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: rgba(11,18,32,0.92);
}
.sched-toolbar__controls{
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.sched-toolbar__select{
  min-width: 130px;
  font-size: 13px;
  padding: 8px 12px;
}
.sched-toolbar__picker{
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  min-width: unset;
  cursor: pointer;
}
.sched-toolbar__date-input{
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}
.sched-toolbar__nav{
  display: inline-flex;
  border: 1px solid rgba(18,62,96,0.18);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}
.sched-toolbar__nav-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  color: rgba(11,18,32,0.75);
  text-decoration: none;
  border-right: 1px solid rgba(18,62,96,0.14);
  background: #fff;
  transition: background 0.12s;
}
.sched-toolbar__nav-btn:last-child{ border-right: none; }
.sched-toolbar__nav-btn:hover{
  background: rgba(238,247,255,0.95);
  color: var(--primary);
}
.sched-toolbar__nav-btn--today{
  min-width: 72px;
  font-size: 12px;
  letter-spacing: 0.04em;
}

.sched-grid{
  margin-top: 12px;
  background: #fff;
  border: 1px solid var(--cal-grid-line);
  border-radius: 4px;
  overflow: hidden;
}
.sched-grid__scroll{
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.sched-grid__table{
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  table-layout: fixed;
}
.sched-grid__corner{
  width: 52px;
  min-width: 52px;
  background: #fff;
  border-bottom: 1px solid var(--cal-grid-line);
}
.sched-grid__corner--right{ border-left: 1px solid var(--cal-grid-line); }
.sched-grid__resource{
  vertical-align: middle;
  text-align: center;
  padding: 12px 10px;
  border-bottom: 1px solid var(--cal-grid-line);
  border-right: 1px solid var(--cal-grid-line);
  background: #fff;
  min-width: 140px;
}
.sched-grid__resource:last-of-type{ border-right: none; }
.sched-grid__resource-name{
  font-weight: 700;
  font-size: 13px;
  line-height: 1.25;
  text-align: center;
  color: rgba(11,18,32,0.92);
}
.sched-grid__resource-desc{
  display: none;
}

/* Day grid column headers — site accent (green → blue, same as New booking btn) */
.sched-grid__resource[class*="sched-grid__resource--"]{
  background: linear-gradient(90deg, var(--green) 0%, var(--blue-2) 100%);
  border-bottom-color: var(--cal-grid-line);
}
.sched-grid__resource--pb-court-1{
  background: linear-gradient(90deg, var(--green-2) 0%, var(--green) 55%, var(--blue-2) 100%);
}
.sched-grid__resource--pb-court-2{
  background: linear-gradient(90deg, var(--green-2) 0%, var(--green) 45%, var(--blue-2) 100%);
}
.sched-grid__resource--pb-court-3{
  background: linear-gradient(90deg, var(--green) 0%, var(--green-2) 35%, var(--blue-2) 100%);
}
.sched-grid__resource--pb-court-4{
  background: linear-gradient(90deg, var(--green) 0%, var(--blue) 50%, var(--blue-2) 100%);
}
.sched-grid__resource--pb-court{
  background: linear-gradient(90deg, var(--green) 0%, var(--green-2) 40%, var(--blue-2) 100%);
}
.sched-grid__resource--pb-coaching{
  background: linear-gradient(90deg, var(--green) 0%, var(--blue) 55%, var(--blue-2) 100%);
}
.sched-grid__resource--pb-open{
  background: linear-gradient(90deg, var(--green) 0%, var(--blue) 65%, var(--blue-2) 100%);
}
.sched-grid__resource--tennis-in-court{
  background: linear-gradient(90deg, var(--green) 8%, var(--blue) 72%, var(--blue-2) 100%);
}
.sched-grid__resource--tennis-in-coaching{
  background: linear-gradient(90deg, var(--green) 15%, var(--blue) 78%, var(--blue-2) 100%);
}
.sched-grid__resource--tennis-out-court{
  background: linear-gradient(90deg, var(--green) 22%, var(--blue) 82%, var(--blue-2) 100%);
}
.sched-grid__resource--tennis-out-coaching{
  background: linear-gradient(90deg, var(--green) 30%, var(--blue) 88%, var(--blue-2) 100%);
}
.sched-grid__resource--events{
  background: linear-gradient(90deg, var(--green) 38%, var(--blue) 92%, var(--blue-2) 100%);
}
.sched-grid__resource--default{
  background: linear-gradient(90deg, var(--green) 0%, var(--blue-2) 100%);
}
.sched-grid__resource[class*="sched-grid__resource--"] .sched-grid__resource-name{
  color: #fff;
}

/* Subtle column tint for open cells — green → blue steps */
.sched-grid__cell--pb-court-1:not(.sched-grid__cell--booked){ background: rgba(34, 197, 94, 0.07); }
.sched-grid__cell--pb-court-2:not(.sched-grid__cell--booked){ background: rgba(34, 197, 94, 0.06); }
.sched-grid__cell--pb-court-3:not(.sched-grid__cell--booked){ background: rgba(22, 163, 74, 0.06); }
.sched-grid__cell--pb-court-4:not(.sched-grid__cell--booked){ background: rgba(22, 163, 74, 0.05); }
.sched-grid__cell--pb-court:not(.sched-grid__cell--booked){ background: rgba(34, 197, 94, 0.06); }
.sched-grid__cell--pb-coaching:not(.sched-grid__cell--booked){ background: rgba(56, 189, 248, 0.06); }
.sched-grid__cell--pb-open:not(.sched-grid__cell--booked){ background: rgba(56, 189, 248, 0.07); }
.sched-grid__cell--tennis-in-court:not(.sched-grid__cell--booked){ background: rgba(56, 189, 248, 0.08); }
.sched-grid__cell--tennis-in-coaching:not(.sched-grid__cell--booked){ background: rgba(14, 165, 233, 0.07); }
.sched-grid__cell--tennis-out-court:not(.sched-grid__cell--booked){ background: rgba(14, 165, 233, 0.08); }
.sched-grid__cell--tennis-out-coaching:not(.sched-grid__cell--booked){ background: rgba(14, 165, 233, 0.09); }
.sched-grid__cell--events:not(.sched-grid__cell--booked){ background: rgba(14, 165, 233, 0.10); }
.sched-grid__cell--inactive.sched-grid__cell--pb-court-1,
.sched-grid__cell--inactive.sched-grid__cell--pb-court-2,
.sched-grid__cell--inactive.sched-grid__cell--pb-court-3,
.sched-grid__cell--inactive.sched-grid__cell--pb-court-4,
.sched-grid__cell--inactive.sched-grid__cell--pb-court,
.sched-grid__cell--inactive.sched-grid__cell--pb-coaching,
.sched-grid__cell--inactive.sched-grid__cell--pb-open,
.sched-grid__cell--inactive.sched-grid__cell--tennis-in-court,
.sched-grid__cell--inactive.sched-grid__cell--tennis-in-coaching,
.sched-grid__cell--inactive.sched-grid__cell--tennis-out-court,
.sched-grid__cell--inactive.sched-grid__cell--tennis-out-coaching,
.sched-grid__cell--inactive.sched-grid__cell--events{
  background: rgba(248, 250, 252, 0.92);
}

.sched-grid__cell--inactive{
  background: rgba(248,250,252,0.9);
}
.sched-grid__time{
  width: 52px;
  min-width: 52px;
  padding: 0 8px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(11,18,32,0.55);
  text-align: center;
  vertical-align: top;
  border-right: 1px solid var(--cal-grid-line);
  background: #fff;
  white-space: nowrap;
}
.sched-grid__time--right{
  border-right: none;
  border-left: 1px solid var(--cal-grid-line);
}
.sched-grid__cell{
  height: 72px;
  min-height: 72px;
  padding: 0;
  border-right: 1px solid var(--cal-grid-line);
  border-bottom: 1px solid var(--cal-grid-line);
  vertical-align: top;
  background: #fff;
  position: relative;
}
.sched-grid__cell:last-of-type{ border-right: none; }
.sched-grid__price{
  display: block;
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(11,18,32,0.42);
  text-align: left;
}
.sched-grid__cell--fixed-block{
  vertical-align: top;
  padding: 0;
}
.sched-grid__booking--fixed-block{
  min-height: 100%;
  height: 100%;
  box-sizing: border-box;
}
.sched-grid__cell--hourly-merge{
  vertical-align: top;
}
.sched-grid__booking--hourly-merge{
  min-height: 100%;
  height: 100%;
  box-sizing: border-box;
}
.sched-grid__fixed-open{
  display: block;
  width: 100%;
  height: 100%;
  min-height: 72px;
}
.sched-grid__booking{
  display: block;
  width: 100%;
  height: 100%;
  min-height: 72px;
  margin: 0;
  padding: 8px 10px;
  border: none;
  text-align: left;
  cursor: pointer;
  font: inherit;
  position: relative;
}
.sched-grid__booking-status{
  display: block;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: rgba(11, 18, 32, 0.55);
}
.sched-grid__booking--named .sched-grid__booking-status{ color: rgba(55, 48, 163, 0.75); }
.sched-grid__booking--pending .sched-grid__booking-status{ color: rgba(14, 116, 144, 0.85); }
.sched-grid__booking--rejected .sched-grid__booking-status,
.sched-grid__booking--cancelled .sched-grid__booking-status,
.sched-grid__booking--rebooked .sched-grid__booking-status{ color: rgba(100, 116, 139, 0.9); }
.sched-grid__booking--open-play{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  padding: 8px 8px 10px;
}
.sched-grid__open-play{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  width: 100%;
  height: 100%;
}
.sched-grid__open-play-count{
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  color: rgba(11, 18, 32, 0.88);
}
.sched-grid__open-play-count--pending{
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  color: rgba(14, 116, 144, 0.92);
}
.sched-grid__open-play-users{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  width: 100%;
  max-height: 100%;
  overflow-y: auto;
}
.sched-grid__open-play-user{
  display: block;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.25;
  color: rgba(11, 18, 32, 0.78);
  word-break: break-word;
}
.sched-grid__open-play-user--approved{ color: rgba(55, 48, 163, 0.92); }
.sched-grid__open-play-user--pending{ color: rgba(14, 116, 144, 0.9); }
.sched-grid__open-play-user--rejected,
.sched-grid__open-play-user--cancelled{ color: rgba(100, 116, 139, 0.88); }
.sched-grid__booking-label{
  display: block;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  color: rgba(11,18,32,0.88);
}
.sched-grid__booking--named{
  background: #e8e4f8;
}
.sched-grid__booking--named .sched-grid__booking-label{ color: rgba(55,48,163,0.95); }
.sched-grid__booking--generic{
  background: #fef9e0;
}
.sched-grid__booking--generic .sched-grid__booking-label{ color: rgba(11,18,32,0.72); }
.sched-grid__booking--pending{
  background: rgba(56,189,248,0.14);
}
.sched-grid__booking--rejected{
  background: rgba(239,68,68,0.08);
}
.sched-grid__booking--cancelled{
  background: rgba(148,163,184,0.12);
}
.sched-grid__booking--rebooked{
  background: rgba(99,102,241,0.12);
}
.sched-grid__booking:hover{
  filter: brightness(0.97);
}
.sched-grid__booking:focus{
  outline: 2px solid rgba(56,189,248,0.55);
  outline-offset: -2px;
}
.sched-grid__recur{
  position: absolute;
  top: 8px;
  right: 8px;
  color: rgba(11,18,32,0.35);
  line-height: 0;
}

/* Admin booked calendar: fullscreen (tablet & desktop) */
@media (min-width: 768px){
  body.admin-cal-fs main.container--cal-fs{
    width: calc(100% - 24px);
    max-width: none;
    padding-top: 6px;
  }

  body.admin-cal-fs .admin-layout--fs{
    margin-top: 0;
  }

  body.admin-cal-fs .admin-cal-exit{
    margin-bottom: 8px;
  }

  body.admin-cal-fs .admin-cal-filters .card__inner{
    padding-top: 10px;
    padding-bottom: 10px;
  }

  body.admin-cal-fs .admin-cal-filters__titles{
    display: none;
  }

  body.admin-cal-fs .admin-cal-filters__head{
    justify-content: flex-end;
    margin-bottom: 0;
  }

  body.admin-cal-fs .admin-cal-filters form{
    margin-top: 0 !important;
  }

  body.admin-cal-fs .admin-cal-filters .grid--3{
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  body.admin-cal-fs .admin-cal-filters .field .label{
    font-size: 11px;
    margin-bottom: 4px;
  }

  body.admin-cal-fs .admin-cal-filters .select,
  body.admin-cal-fs .admin-cal-filters .input{
    padding: 8px 10px;
    font-size: 13px;
  }

  body.admin-cal-fs .admin-cal-filters form > div:last-child{
    margin-top: 8px !important;
  }

  body.admin-cal-fs .admin-cal-filters form > div:last-child .btn{
    min-width: 120px !important;
    padding: 8px 14px;
  }

  body.admin-cal-fs .sched-grid__scroll{
    max-height: calc(100vh - 240px);
    overflow: auto;
  }

  body.admin-cal-day .sched-toolbar{
    margin-top: 4px;
  }

  body.admin-cal-day .sched-grid{
    margin-top: 6px;
  }

  body.admin-cal-day .sched-grid__scroll{
    max-height: calc(100vh - 220px);
  }

  body.admin-cal-month .sched-toolbar{
    margin-top: 4px;
  }

  body.admin-cal-month .calendar{
    margin-top: 8px !important;
  }
}

@media (max-width: 900px){
  .calendar__cell{ min-height: 110px; padding: 8px; }
  .sched-toolbar__date{ font-size: 1.1rem; }
  .sched-grid__cell{ height: 64px; min-height: 64px; }
  .sched-grid__booking{ min-height: 64px; }
}
@media (max-width: 600px){
  .calendar{ border-radius: 14px; }
  .calendar__grid{ grid-template-columns: repeat(1, 1fr); }
  .calendar__dow{ display:none; }
  .calendar__cell{
    border-right:none;
    min-height: unset;
  }
  .calendar__daynum{ font-size: 13px; }
}

.footer{
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9;
  padding: 18px 0;
  color: rgba(11,18,32,0.62);
  background: rgba(255,255,255,0.80);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border);
}
.footer__inner{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap: 12px;
  flex-wrap:wrap;
}
.footer__account{
  display:flex;
  align-items:center;
  gap: 10px;
  line-height: 1.25;
}
.footer__account-name{
  font-weight: 800;
  font-size: 14px;
  color: var(--text);
}
.footer__account-role{
  display:inline-flex;
  align-items:center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #0c4a6e;
  background: rgba(14,165,233,0.14);
  border: 1px solid rgba(14,165,233,0.22);
}
.footer__muted{ color: rgba(11,18,32,0.50); }

/* Reserve space for fixed footer */
main.container{
  padding-bottom: 92px;
}

/* Sidebar: two QR codes side by side */
.sidebar-qr-wrap{
  margin-top: 10px;
  padding: 14px;
  border-radius: var(--radius);
  border: 1px dashed var(--border);
  background: rgba(238,247,255,0.55);
}
.sidebar-qr-grid{
  display: flex;
  flex-wrap: wrap;
  gap: 18px 22px;
  justify-content: center;
  align-items: stretch;
}
.sidebar-qr-card{
  flex: 1 1 200px;
  max-width: min(280px, 100%);
  margin: 0;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.92);
  box-shadow:
    0 10px 28px rgba(15, 23, 42, 0.12),
    0 4px 10px rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(18, 62, 96, 0.08);
}
.sidebar-qr-card img{
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}
.sidebar-qr-card__cap{
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--muted);
  text-align: center;
}

/* Admin settings: tennis / coaching fee tiers */
.settings-pricing-card{
  box-shadow: none;
  border: 1px solid rgba(99, 102, 241, 0.28);
  background: rgba(238, 242, 255, 0.65);
}
.settings-pricing-card--coaching{
  border-color: rgba(20, 184, 166, 0.35);
  background: rgba(240, 253, 250, 0.85);
}
.settings-pricing-card__inner{
  padding: 16px 18px;
}
.settings-pricing-card__title{
  margin: 0 0 8px;
  font-size: 18px;
}
.settings-pricing-card__intro{
  margin: 0 0 16px;
  line-height: 1.55;
  max-width: 72ch;
}
.settings-pricing-tiers{
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.settings-pricing-tier{
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(18, 62, 96, 0.1);
  background: rgba(255, 255, 255, 0.82);
}
.settings-pricing-tier__head{
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.01em;
}
.settings-fee-grid{
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}

/* User booking: add-on quantity rows */
.booking-addon-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.65);
}
.booking-addon-row__name {
  font-weight: 700;
  color: var(--text);
}
.booking-addon-row__price {
  font-weight: 900;
  white-space: nowrap;
}
.booking-addon-row__qty {
  width: 88px;
}
.booking-addon-row__qty-input {
  text-align: center;
  padding-left: 8px;
  padding-right: 8px;
}
@media (max-width: 560px) {
  .booking-addon-row {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "name price"
      "qty qty";
  }
  .booking-addon-row__name { grid-area: name; }
  .booking-addon-row__price { grid-area: price; justify-self: end; }
  .booking-addon-row__qty { grid-area: qty; width: 100%; }
}

/* User booking: court vs coaching fee panels */
.booking-fee-panel{
  box-shadow: none;
  margin-top: 6px;
  border-radius: 14px;
}
.booking-fee-panel--court{
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.25);
}
.booking-fee-panel--coaching{
  background: rgba(20, 184, 166, 0.09);
  border: 1px solid rgba(20, 184, 166, 0.32);
}
.booking-fee-panel--pickleball.booking-fee-panel--court{
  background: rgba(234, 88, 12, 0.08);
  border: 1px solid rgba(234, 88, 12, 0.28);
}
.booking-fee-panel--pickleball.booking-fee-panel--coaching{
  background: rgba(168, 85, 247, 0.08);
  border: 1px solid rgba(168, 85, 247, 0.28);
}
.booking-fee-panel__equip{
  align-items: start;
}
.settings-pricing-card--pickleball{
  border: 1px solid rgba(234, 88, 12, 0.22);
  background: linear-gradient(180deg, rgba(255, 247, 237, 0.9) 0%, rgba(255, 255, 255, 0.95) 100%);
}
.booking-fee-panel__inner{
  padding: 14px 16px;
}
.booking-fee-panel__title{
  margin: 0 0 8px;
  font-size: 16px;
}
.booking-fee-panel__note,
.booking-fee-panel__hint{
  margin: 0 0 10px;
  line-height: 1.5;
  font-size: 13px;
}
.booking-service-check{
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(238, 247, 255, 0.55);
  cursor: pointer;
}
.booking-service-check input{
  margin-top: 4px;
  flex-shrink: 0;
}

@media (max-width: 900px){
  .settings-pricing-tiers{
    grid-template-columns: 1fr;
  }
}

