@font-face {
  font-family: 'Courier Prime';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/static/fonts/courier-prime-regular.woff2') format('woff2');
}

@font-face {
  font-family: 'Courier Prime';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/static/fonts/courier-prime-bold.woff2') format('woff2');
}

:root {
  color-scheme: dark;

  --color-bg: #0a0c10;
  --color-surface: #12161d;
  --color-surface-alt: #1a2029;
  --color-text: #d9dde3;
  --color-muted: #838d9c;
  --color-border: #262d38;

  --color-neon-primary: #39f5c4;
  --color-neon-primary-glow: rgba(57, 245, 196, 0.5);
  --color-neon-accent: #ff4fd8;
  --color-neon-accent-glow: rgba(255, 79, 216, 0.45);

  --color-error-bg: #2a1418;
  --color-error-text: #ff6b6b;
  --color-info-bg: #10262a;
  --color-info-text: #63e0c9;

  --font-display: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'Courier Prime', 'Courier New', Courier, monospace;

  --radius: 10px;
  --max-width: 960px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-mono);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
}

::selection {
  background: var(--color-neon-accent);
  color: #1a0313;
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.2;
}

h1, h2 {
  color: var(--color-neon-primary);
  text-shadow: 0 0 10px var(--color-neon-primary-glow), 0 0 26px var(--color-neon-primary-glow);
}

h2 {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 1.4rem;
}

a {
  color: var(--color-neon-accent);
}

a:hover {
  text-shadow: 0 0 10px var(--color-neon-accent-glow);
}

.muted {
  color: var(--color-muted);
}

/* Header / footer */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-surface);
}

.site-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
  color: var(--color-neon-primary);
  text-shadow: 0 0 8px var(--color-neon-primary-glow);
}

.site-nav a {
  text-decoration: none;
  font-weight: 700;
  font-family: var(--font-display);
  color: var(--color-neon-accent);
}

.site-nav a:hover {
  text-shadow: 0 0 10px var(--color-neon-accent-glow);
}

.site-footer {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--color-muted);
  font-size: 0.9rem;
}

/* Buttons */

.btn {
  display: inline-block;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn-primary {
  background: var(--color-neon-primary);
  color: #04120d;
  box-shadow: 0 0 18px var(--color-neon-primary-glow);
}

.btn-primary:hover {
  background: #6bffdd;
  box-shadow: 0 0 26px var(--color-neon-primary-glow);
}

.btn-primary:disabled {
  background: var(--color-border);
  color: var(--color-muted);
  box-shadow: none;
  cursor: not-allowed;
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--color-neon-accent);
  color: var(--color-neon-accent);
}

.btn-secondary:hover {
  background: rgba(255, 79, 216, 0.1);
  text-shadow: 0 0 10px var(--color-neon-accent-glow);
}

.btn-large {
  padding: 0.9rem 2rem;
  font-size: 1.1rem;
}

.btn-danger {
  background: transparent;
  border: 1px solid var(--color-error-text);
  color: var(--color-error-text);
}

.btn-danger:hover {
  background: var(--color-error-bg);
  box-shadow: 0 0 10px rgba(255, 107, 107, 0.35);
}

.btn-small {
  padding: 0.35rem 0.8rem;
  font-size: 0.85rem;
}

/* Hero */

.hero {
  position: relative;
  height: min(100vh, 720px);
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #fff;
  text-align: center;
}

.hero-video,
.hero-poster-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background-color: var(--color-surface);
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10, 12, 16, 0.4), rgba(10, 12, 16, 0.75));
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 1.5rem;
  max-width: 640px;
}

.hero-content h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 0.5rem;
}

.hero-tagline {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 0 0 1rem;
  color: var(--color-neon-accent);
  text-shadow: 0 0 8px var(--color-neon-accent-glow);
}

.hero-blurb {
  margin: 0 0 0.85rem;
  color: var(--color-text);
  opacity: 0.92;
}

.hero-blurb:last-of-type {
  margin-bottom: 1.75rem;
}

/* Offerings slideshow */

.offerings {
  padding: 3rem 0 1rem;
}

.offerings h2 {
  text-align: center;
  margin: 0 0 1.5rem;
}

.offer-slideshow {
  position: relative;
  height: min(60vw, 420px);
  min-height: 260px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
}

.offer-slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.offer-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  background-color: var(--color-surface);
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.offer-slide.is-active {
  opacity: 1;
}

.offer-slide-caption {
  width: 100%;
  padding: 2.5rem 1.5rem 1.25rem;
  background: linear-gradient(to top, rgba(6, 7, 9, 0.85), rgba(6, 7, 9, 0));
  color: #fff;
}

.offer-slide-caption h3 {
  margin: 0 0 0.35rem;
  color: var(--color-neon-accent);
  text-shadow: 0 0 8px var(--color-neon-accent-glow);
}

.offer-slide-caption p {
  margin: 0;
  font-family: var(--font-mono);
  opacity: 0.92;
}

.offer-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  border-radius: 50%;
  background: rgba(6, 7, 9, 0.55);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.offer-nav:hover {
  background: rgba(6, 7, 9, 0.8);
  box-shadow: 0 0 12px var(--color-neon-accent-glow);
}

.offer-nav-prev {
  left: 0.75rem;
}

.offer-nav-next {
  right: 0.75rem;
}

.offer-dots {
  position: absolute;
  bottom: 0.75rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.45rem;
}

.offer-dot {
  width: 0.55rem;
  height: 0.55rem;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
}

.offer-dot.is-active {
  background: var(--color-neon-accent);
  box-shadow: 0 0 8px var(--color-neon-accent-glow);
}

/* Alerts */

.alert {
  border-radius: var(--radius);
  padding: 0.9rem 1.1rem;
  margin: 1rem 0;
  border: 1px solid currentColor;
}

.alert ul {
  margin: 0;
  padding-left: 1.1rem;
}

.alert-error {
  background: var(--color-error-bg);
  color: var(--color-error-text);
}

.alert-info {
  background: var(--color-info-bg);
  color: var(--color-info-text);
}

/* Booking form */

.booking-form {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-top: 1.5rem;
}

.form-section {
  margin-bottom: 1.5rem;
}

.form-section label {
  display: block;
  font-weight: 700;
  margin: 0.9rem 0 0.3rem;
}

.form-section input[type='text'],
.form-section textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  color: var(--color-text);
  font: inherit;
}

.form-section input[type='text']:focus,
.form-section textarea:focus {
  outline: none;
  border-color: var(--color-neon-primary);
  box-shadow: 0 0 0 3px rgba(57, 245, 196, 0.18);
}

.form-section textarea {
  min-height: 5rem;
  resize: vertical;
}

.loading-slots {
  color: var(--color-muted);
}

.form-section kbd {
  font-family: var(--font-mono);
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 0.05rem 0.35rem;
  font-size: 0.9em;
}

.screenshot-example {
  margin: 0.5rem 0;
}

.screenshot-example summary {
  cursor: pointer;
  color: var(--color-neon-primary);
  font-size: 0.9rem;
}

.screenshot-example .example-thumb {
  display: block;
  max-width: 100%;
  margin-top: 0.6rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.form-section input[type='file'] {
  display: block;
  width: 100%;
  color: var(--color-text);
  font: inherit;
  margin-top: 0.4rem;
}

.screenshot-preview {
  display: block;
  max-width: 240px;
  margin-top: 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.slot-day {
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-surface-alt);
  margin: 0 0 0.75rem;
  overflow: hidden;
}

.slot-day summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-text);
}

.slot-day summary::-webkit-details-marker {
  display: none;
}

.slot-day-label::before {
  content: '\25B8';
  display: inline-block;
  margin-right: 0.6rem;
  color: var(--color-neon-primary);
  transition: transform 0.2s ease;
}

.slot-day[open] .slot-day-label::before {
  transform: rotate(90deg);
}

.slot-day summary:focus-visible {
  outline: 2px solid var(--color-neon-primary);
  outline-offset: -2px;
}

.slot-day-count {
  margin-left: auto;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--color-muted);
  white-space: nowrap;
}

.slot-day .slot-list {
  padding: 0 1rem 1rem;
}

.slot-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.6rem;
}

.slot-option {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 0.6rem 0.75rem;
  cursor: pointer;
}

.slot-option:has(input:checked) {
  border-color: var(--color-neon-primary);
  background: rgba(57, 245, 196, 0.1);
  box-shadow: 0 0 12px rgba(57, 245, 196, 0.15);
}

.slot-option span {
  display: flex;
  flex-direction: column;
}

.slot-option small {
  color: var(--color-muted);
}

/* Preferred professional picker (booking) */

.professional-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.6rem;
}

.form-section .professional-option {
  align-items: center;
  margin: 0;
  font-weight: 400;
}

.professional-thumb {
  display: block;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  object-fit: cover;
  border: 1px solid var(--color-border);
  border-radius: 6px;
}

.professional-preview {
  display: block;
  width: 120px;
  height: 120px;
  object-fit: cover;
  margin-top: 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

/* Confirmation */

.confirmation-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 1.25rem 0;
}

.reference-code {
  font-size: 1.1rem;
  color: var(--color-neon-primary);
}

.reference-code strong {
  text-shadow: 0 0 8px var(--color-neon-primary-glow);
}

/* Admin */

.admin-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.admin-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-display);
  font-weight: 700;
}

.admin-links a {
  text-decoration: none;
}

.row-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.status-pill {
  display: inline-block;
  padding: 0.1rem 0.6rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-family: var(--font-display);
  font-weight: 700;
}

.status-active {
  color: var(--color-info-text);
  background: var(--color-info-bg);
}

.status-inactive {
  color: var(--color-muted);
  background: var(--color-surface-alt);
}

.admin-actions {
  display: flex;
  justify-content: flex-end;
  margin: 1rem 0;
}

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

.bookings-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-surface);
}

.bookings-table th,
.bookings-table td {
  text-align: left;
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--color-border);
  white-space: nowrap;
}

.bookings-table th {
  font-family: var(--font-display);
  color: var(--color-neon-accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.8rem;
}

.screenshot-thumb {
  display: block;
  width: 64px;
  height: 48px;
  object-fit: cover;
  border: 1px solid var(--color-border);
  border-radius: 6px;
}

.bookings-table td form {
  margin: 0;
}
