:root {
  --ink: #f7f7fb;
  --muted: #aeb8c5;
  --panel: #111823;
  --panel-2: #172230;
  --line: rgba(255, 255, 255, 0.14);
  --dark: #080b10;
  --orange: #ff9d16;
  --purple: #9d28ff;
  --cyan: #30c7ff;
  --green: #37d67a;
  --red: #ff6a5f;
  --shadow: 0 22px 80px rgba(0, 0, 0, 0.38);
  --body-font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  --display-font: Audiowide, Inter, ui-sans-serif, system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--dark);
  font-family: var(--body-font);
  line-height: 1.55;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(135deg, rgba(255, 157, 22, 0.1), transparent 30%),
    linear-gradient(315deg, rgba(48, 199, 255, 0.08), transparent 34%),
    rgb(8, 11, 16);
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

img {
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 70px;
  padding: 0 18px;
  background: rgba(8, 11, 16, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--display-font);
  font-weight: 400;
}

.brand img {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 8px;
  object-fit: cover;
}

.brand span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-family: var(--display-font);
  font-size: 12px;
}

.site-nav a {
  padding: 9px 10px;
  border-radius: 8px;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.08);
  outline: 0;
}

.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: min(620px, calc(100vh - 70px));
  padding: 104px 24px 26px;
  overflow: hidden;
  background-image: url("https://asphaltarena.co.uk/assets/venue-layout-web.jpg");
  background-position: center;
  background-size: cover;
}

.booking-page-hero,
.admin-page-hero {
  min-height: 390px;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(8, 11, 16, 0.96),
      rgba(8, 11, 16, 0.58) 48%,
      rgba(8, 11, 16, 0.86)
    ),
    linear-gradient(
      0deg,
      rgba(8, 11, 16, 0.92),
      rgba(8, 11, 16, 0.08) 46%,
      rgba(8, 11, 16, 0.72)
    );
}

.hero-content,
.hero-status,
.admin-actions {
  position: relative;
  z-index: 1;
}

.hero-content {
  width: min(720px, 100%);
  padding-bottom: 34px;
}

.eyebrow {
  margin: 0 0 9px;
  color: var(--orange);
  font-family: var(--display-font);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-family: var(--display-font);
  font-size: clamp(34px, 5.4vw, 68px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-family: var(--display-font);
  font-size: clamp(25px, 3vw, 38px);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: 0;
}

.hero-copy,
.section-heading p {
  color: var(--muted);
  font-size: 17px;
}

.hero-copy {
  width: min(620px, 100%);
  margin-bottom: 28px;
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.08);
  text-decoration: none;
  font-family: var(--display-font);
  font-size: 13px;
  font-weight: 400;
}

.button.primary {
  color: rgb(23, 14, 4);
  background: var(--orange);
  border-color: var(--orange);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  outline: 3px solid rgba(48, 199, 255, 0.28);
  outline-offset: 2px;
}

.hero-status {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.hero-status span {
  min-height: 38px;
  padding: 8px 12px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: var(--display-font);
  font-size: 12px;
  font-weight: 400;
}

.booking-section,
.requests-panel {
  width: min(980px, 100% - 36px);
  margin: 0 auto;
  padding: 44px 0 58px;
}

.booking-card,
.requests-panel {
  background: rgba(17, 24, 35, 0.95);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.booking-card {
  padding: 20px;
}

.compact-heading {
  margin-bottom: 22px;
}

.compact-heading p {
  margin-bottom: 0;
}

.compact-heading .email-note {
  margin-top: 10px;
  color: var(--ink);
  font-weight: 800;
}

.split-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 20px 0;
}

#request-count {
  color: var(--muted);
  font-family: var(--display-font);
  font-size: 12px;
}

.form-grid {
  display: grid;
  gap: 16px;
}

.fixed-date-panel {
  display: grid;
  gap: 4px;
  min-height: 92px;
  align-content: center;
  padding: 16px;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(255, 157, 22, 0.16), transparent 62%),
    rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.fixed-date-panel span,
.fixed-date-panel small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.fixed-date-panel strong {
  font-family: var(--display-font);
  font-size: 18px;
  font-weight: 400;
}

.field {
  display: grid;
  gap: 7px;
}

.field > span {
  color: var(--orange);
  font-size: 13px;
  font-weight: 900;
}

.field input,
.field textarea,
.status-control select {
  width: 100%;
  min-height: 50px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.field input,
.field textarea {
  padding: 12px 13px;
}

.field input[type="date"] {
  color-scheme: dark;
}

.field textarea {
  resize: vertical;
}

.field input:focus,
.field textarea:focus,
.status-control select:focus,
.slot-button:focus-visible {
  outline: 3px solid rgba(48, 199, 255, 0.28);
  outline-offset: 2px;
}

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

.slot-button {
  display: grid;
  min-height: 64px;
  place-items: center;
  padding: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: var(--display-font);
  font-size: 17px;
  font-weight: 400;
}

.slot-button strong {
  font: inherit;
}

.slot-button span {
  margin-top: 2px;
  color: var(--muted);
  font-family: var(--body-font);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.slot-button:hover:not(:disabled),
.slot-button.is-selected {
  color: rgb(23, 14, 4);
  background: var(--orange);
  border-color: var(--orange);
}

.slot-button:hover:not(:disabled) span,
.slot-button.is-selected span {
  color: rgb(23, 14, 4);
}

.slot-button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

.slot-button.is-taken {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
}

.form-message {
  min-height: 24px;
  margin: 16px 0;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.45;
}

.form-message.is-error {
  color: var(--red);
}

.form-message.is-success {
  color: var(--green);
}

.submit-button {
  width: 100%;
}

.submit-button:disabled,
.status-control select:disabled {
  cursor: wait;
  opacity: 0.62;
}

.requests-panel {
  padding-top: 0;
  overflow: hidden;
}

.page-footer {
  width: min(980px, 100% - 36px);
  margin: -30px auto 42px;
  color: var(--muted);
  text-align: center;
}

.owner-link {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--muted);
  font-family: var(--display-font);
  font-size: 11px;
  text-decoration: none;
}

.owner-link:hover,
.owner-link:focus-visible {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.08);
  outline: 3px solid rgba(48, 199, 255, 0.28);
  outline-offset: 2px;
}

.admin-message {
  min-height: 0;
  margin: 0 20px 16px;
}

.slot-groups {
  display: grid;
  gap: 16px;
  padding: 0 20px 20px;
}

.slot-group {
  overflow: hidden;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.slot-group-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  background:
    linear-gradient(135deg, rgba(255, 157, 22, 0.12), transparent 62%),
    rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid var(--line);
}

.slot-group-heading h3 {
  margin: 0;
  color: var(--ink);
}

.slot-group-heading span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  text-align: right;
}

.slot-empty {
  margin: 0;
  padding: 14px;
  color: var(--muted);
}

.empty-state {
  display: grid;
  gap: 4px;
  margin: 0 20px 16px;
  padding: 16px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.06);
  border: 1px dashed var(--line);
  border-radius: 8px;
}

.empty-state[hidden] {
  display: none;
}

.empty-state strong {
  color: var(--ink);
}

.table-wrap {
  overflow-x: auto;
}

.requests-table {
  width: 100%;
  border-collapse: collapse;
}

.requests-table thead {
  display: none;
}

.requests-table tbody {
  display: grid;
  gap: 12px;
}

.requests-table tr {
  display: grid;
  gap: 10px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.requests-table td {
  display: grid;
  gap: 4px;
  min-width: 0;
  color: var(--ink);
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.requests-table td::before {
  content: attr(data-label);
  color: var(--orange);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.status-control {
  display: block;
}

.status-control select {
  padding: 10px 12px;
}

.delete-request-button {
  min-height: 42px;
  padding: 9px 12px;
  color: var(--ink);
  background: rgba(255, 106, 95, 0.14);
  border: 1px solid rgba(255, 106, 95, 0.42);
  border-radius: 8px;
  font-weight: 900;
}

.delete-request-button:hover,
.delete-request-button:focus-visible {
  background: rgba(255, 106, 95, 0.24);
  outline: 3px solid rgba(255, 106, 95, 0.22);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

@media (max-width: 760px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding: 12px 18px;
  }

  .site-nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero {
    min-height: 520px;
    padding-top: 66px;
  }

  .booking-page-hero,
  .admin-page-hero {
    min-height: 390px;
  }
}

@media (min-width: 700px) {
  .site-header {
    padding: 0 28px;
  }

  .booking-card {
    padding: 26px;
  }

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

  .fixed-date-panel,
  .slot-field,
  .field-wide {
    grid-column: 1 / -1;
  }

  .slot-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .submit-button {
    width: auto;
    min-width: 240px;
  }
}

@media (min-width: 980px) {
  .booking-section,
  .requests-panel {
    width: min(1060px, 100% - 56px);
  }

  .requests-table thead {
    display: table-header-group;
  }

  .requests-table tbody {
    display: table-row-group;
  }

  .requests-table tr {
    display: table-row;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .requests-table th,
  .requests-table td {
    padding: 14px 12px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
  }

  .requests-table th {
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
  }

  .requests-table td {
    display: table-cell;
  }

  .requests-table td::before {
    content: none;
  }
}
