.booking-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: 20px;
  padding: 28px 0 8px;
}

.booking-copy,
.booking-form,
.admin-panel {
  padding: 36px;
}

.booking-copy h1,
.admin-panel h1,
.admin-dashboard h1 {
  margin: 24px 0 0;
  font-size: clamp(3rem, 6vw, 5.5rem);
  line-height: 0.92;
  letter-spacing: -0.07em;
}

.booking-form {
  display: grid;
  gap: 18px;
}

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

.booking-form label,
.admin-form label {
  display: grid;
  gap: 10px;
  color: var(--muted);
  font-weight: 600;
}

.booking-form input,
.booking-form textarea,
.booking-form select,
.admin-form input,
.admin-form textarea,
.admin-form select,
.booking-actions select,
.service-edit input,
.service-edit select {
  width: 100%;
  padding: 16px 18px;
  color: var(--text);
  background: rgba(255,255,255,0.04);
  border-radius: 20px;
  border: 1px solid var(--line);
  outline: none;
  box-shadow: none;
}

.booking-form select option,
.booking-actions select option {
  color: #111;
}

.booking-form textarea {
  resize: vertical;
  min-height: 140px;
}

.full-span {
  grid-column: 1 / -1;
}

.hidden {
  display: none !important;
}

.admin-main {
  padding-top: 28px;
}

.admin-header .nav {
  justify-self: end;
}

.admin-logout {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 12px 18px;
  border-radius: 18px;
  cursor: pointer;
  font-weight: 600;
}

.admin-logout:hover {
  color: var(--text);
  background: rgba(255,255,255,0.06);
}

.admin-dashboard {
  display: grid;
  gap: 22px;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 20px;
}

.admin-panel h2 {
  margin: 0 0 20px;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  letter-spacing: -0.04em;
}

.small-form {
  max-width: 520px;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.admin-list {
  display: grid;
  gap: 14px;
}

.admin-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255,255,255,0.045);
}

.admin-item strong {
  display: block;
  font-size: 1.05rem;
}

.admin-item p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.admin-item button[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

.service-edit {
  display: grid;
  grid-template-columns: 92px 110px auto auto;
  gap: 10px;
  align-items: end;
}

.service-edit label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.85rem;
}

.inline-check {
  display: flex !important;
  align-items: center;
  gap: 8px !important;
  color: var(--muted);
}

.inline-check input {
  width: auto;
}

.booking-actions {
  min-width: 160px;
}

.message-preview {
  white-space: pre-wrap;
}

.empty-text {
  margin: 0;
  color: var(--muted);
}

@media (max-width: 1080px) {
  .booking-hero,
  .admin-grid,
  .form-grid,
  .admin-item,
  .service-edit {
    grid-template-columns: 1fr;
  }

  .booking-copy,
  .booking-form,
  .admin-panel {
    padding: 28px;
  }
}

@media (max-width: 720px) {
  .booking-copy h1,
  .admin-panel h1,
  .admin-dashboard h1 {
    font-size: clamp(2.8rem, 16vw, 4rem);
  }

  .booking-copy,
  .booking-form,
  .admin-panel {
    padding: 22px;
  }

  .booking-actions,
  .booking-actions select {
    width: 100%;
  }
}

.booking-summary {
  margin-top: 28px;
  padding: 18px;
  display: grid;
  gap: 8px;
}

.booking-summary span {
  color: var(--muted);
  font-weight: 600;
}

.booking-summary strong {
  font-size: clamp(1.2rem, 2vw, 1.6rem);
}

.calendar-shell {
  padding: 20px;
  background: rgba(255,255,255,0.04);
}

.calendar-head,
.admin-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.calendar-head h2,
.admin-topline h1 {
  margin: 12px 0 0;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1;
  letter-spacing: -0.05em;
  text-transform: capitalize;
}

.calendar-arrow {
  width: 54px;
  height: 54px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,0.05);
  color: var(--text);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.calendar-arrow:hover {
  border-color: var(--line-strong);
  background: rgba(255,255,255,0.08);
}

.weekday-row,
.booking-calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.weekday-row {
  margin-bottom: 8px;
}

.weekday-row span {
  color: var(--muted);
  text-align: center;
  font-size: 0.85rem;
  font-weight: 700;
}

.calendar-day {
  min-height: 82px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255,255,255,0.035);
  color: var(--muted);
  display: grid;
  align-content: space-between;
  gap: 8px;
  cursor: pointer;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.calendar-day strong {
  color: var(--text);
  font-size: 1.1rem;
}

.calendar-day span {
  font-size: 0.78rem;
  line-height: 1.2;
}

.calendar-day:hover:not(:disabled),
.calendar-day.is-selected {
  transform: translateY(-2px);
  border-color: rgba(119,193,255,0.44);
  background: linear-gradient(135deg, rgba(10,132,255,0.18), rgba(100,198,255,0.08));
}

.calendar-day.has-slots {
  color: rgba(247,249,253,0.88);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}

.calendar-day.has-bookings {
  border-color: rgba(255, 211, 111, 0.35);
}

.calendar-day.is-today {
  outline: 1px solid rgba(119,193,255,0.28);
}

.calendar-day:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.calendar-day.is-empty {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  pointer-events: none;
}

.slot-picker {
  margin-top: 22px;
}

.slot-picker h3,
.admin-day-slots h3 {
  margin: 0 0 14px;
  font-size: 1.1rem;
}

.slot-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.slot-button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  color: var(--text);
  padding: 12px 16px;
  font-weight: 700;
  cursor: pointer;
}

.slot-button:hover,
.slot-button.is-selected {
  border-color: rgba(119,193,255,0.5);
  background: linear-gradient(135deg, rgba(10,132,255,0.26), rgba(100,198,255,0.12));
}

.admin-grid-calendar {
  grid-template-columns: minmax(0, 1.2fr) minmax(340px, 0.8fr);
}

.admin-calendar .calendar-day {
  min-height: 76px;
}

.admin-day-slots {
  margin-top: 28px;
}

.compact-list,
.compact-item {
  gap: 10px;
}

.compact-item {
  padding: 14px;
}

.legal-footer {
  display: grid;
  gap: 10px;
  justify-items: center;
}

.legal-footer div {
  display: inline-flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.legal-footer a,
.legal-link {
  color: var(--muted);
  text-decoration: none;
}

.legal-footer a:hover,
.legal-link:hover {
  color: var(--text);
}

.legal-page {
  padding: 28px 0 8px;
}

.legal-content {
  padding: 40px;
  display: grid;
  gap: 22px;
}

.legal-content h1 {
  margin: 14px 0 0;
  font-size: clamp(3rem, 7vw, 5rem);
  line-height: 0.95;
  letter-spacing: -0.07em;
}

.legal-content h2 {
  margin: 18px 0 0;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  letter-spacing: -0.04em;
}

.legal-content p,
.legal-content li {
  color: var(--muted);
  line-height: 1.7;
}

.legal-content ul {
  margin: 0;
  padding-left: 22px;
}

.legal-note {
  border: 1px solid rgba(255, 211, 111, 0.3);
  background: rgba(255, 211, 111, 0.08);
  border-radius: 24px;
  padding: 18px;
}

@media (max-width: 1080px) {
  .admin-grid-calendar {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .calendar-shell {
    padding: 14px;
  }

  .calendar-head {
    align-items: flex-start;
  }

  .calendar-arrow {
    width: 44px;
    height: 44px;
    border-radius: 15px;
  }

  .weekday-row,
  .booking-calendar {
    gap: 6px;
  }

  .calendar-day {
    min-height: 64px;
    padding: 8px;
    border-radius: 16px;
  }

  .calendar-day span {
    font-size: 0.68rem;
  }

  .legal-content {
    padding: 24px;
  }
}

/* Custom vLc controls: no native browser selects for booking/admin */
.custom-field {
  display: grid;
  gap: 10px;
  color: var(--muted);
  font-weight: 600;
}

.custom-select {
  width: 100%;
  padding: 0;
  background: rgba(255,255,255,0.04);
  border-radius: 20px;
  border: 1px solid var(--line);
  overflow: visible;
  box-shadow: none;
}

.custom-select::before,
.custom-select::after {
  border-radius: inherit;
}

.custom-select-trigger {
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  border: 0;
  color: var(--text);
  background: transparent;
  text-align: left;
  cursor: pointer;
  font-weight: 700;
}

.custom-select-trigger span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.custom-select-chevron {
  flex: 0 0 auto;
  color: var(--accent);
  font-size: 1.35rem;
  line-height: 1;
  transition: transform 0.25s ease;
}

.custom-select.is-open .custom-select-chevron {
  transform: rotate(180deg);
}

.custom-select-menu {
  position: relative;
  z-index: 4;
  display: none;
  gap: 8px;
  margin: 0 10px 10px;
  padding: 10px;
  max-height: 320px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(5, 10, 24, 0.94);
  box-shadow: 0 24px 70px rgba(0,0,0,0.42), inset 0 1px 0 rgba(255,255,255,0.08);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
}

.custom-select.is-open .custom-select-menu {
  display: grid;
}

.custom-select-option {
  width: 100%;
  display: grid;
  gap: 4px;
  padding: 13px 14px;
  border: 1px solid transparent;
  border-radius: 15px;
  color: var(--text);
  background: rgba(255,255,255,0.035);
  text-align: left;
  cursor: pointer;
}

.custom-select-option strong {
  font-size: 0.98rem;
  line-height: 1.25;
}

.custom-select-option span {
  color: var(--muted);
  font-size: 0.88rem;
}

.custom-select-option:hover,
.custom-select-option.is-selected,
.custom-select-option[aria-selected='true'] {
  border-color: rgba(119,193,255,0.42);
  background: linear-gradient(135deg, rgba(10,132,255,0.24), rgba(100,198,255,0.10));
}

.custom-select-option:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  background: rgba(255,255,255,0.02);
}

.time-menu {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-height: 260px;
}

.time-option {
  place-items: center;
  text-align: center;
}

.status-select {
  min-width: 210px;
}

.status-select .custom-select-trigger {
  min-height: 52px;
  padding: 12px 14px;
}

.status-menu {
  max-height: 260px;
}

.dropdown-empty {
  padding: 10px;
}

.switch-check {
  grid-template-columns: auto auto 1fr;
  align-items: center;
  align-self: center;
  padding-bottom: 2px;
}

.switch-check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.switch-track {
  width: 46px;
  height: 28px;
  position: relative;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}

.switch-track::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  left: 3px;
  top: 3px;
  border-radius: 50%;
  background: rgba(247,249,253,0.78);
  transition: transform 0.25s ease, background 0.25s ease;
}

.switch-check input:checked + .switch-track {
  border-color: rgba(119,193,255,0.48);
  background: linear-gradient(135deg, rgba(10,132,255,0.45), rgba(100,198,255,0.22));
}

.switch-check input:checked + .switch-track::after {
  transform: translateX(18px);
  background: #fff;
}

.booking-form input[type='hidden'],
.admin-form input[type='hidden'] {
  display: none;
}

@media (max-width: 720px) {
  .time-menu {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .custom-select-trigger {
    min-height: 54px;
  }

  .status-select {
    min-width: 0;
  }
}
