:root {
  --font-body: "Barlow", "Segoe UI", sans-serif;
  --font-display: "Barlow", "Segoe UI", sans-serif;
  --color-bg: #050505;
  --color-surface: #101010;
  --color-surface-strong: #171717;
  --color-border: #262626;
  --color-border-strong: #38332d;
  --color-text: #f4f1ea;
  --color-text-muted: #b8b0a3;
  --color-text-dim: #8f8678;
  --color-accent: #d61f1f;
  --color-accent-strong: #f04235;
  --color-slot: #f2ede4;
  --color-slot-text: #181511;
  --color-slot-muted: #6a6257;
  --radius-sm: 4px;
  --radius-md: 7px;
  --radius-lg: 10px;
  --shadow-soft: 0 18px 44px rgba(0, 0, 0, 0.28);
  --content-max: 980px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  background: #fff;
  color: #222;
  line-height: 1.6;
  font-size: 16px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body > main {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  flex: 1;
}

header {
  background: #000;
  color: #fff;
  padding: 0;
  margin-bottom: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

header main {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logout-form {
  background: transparent;
  margin: 0;
  padding: 0;
}

.header-logout {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.5);
  padding: 6px 14px;
  font-size: 14px;
  border-radius: 4px;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}

.header-logout:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

body.public-theme > main,
body.public-theme header main {
  max-width: var(--content-max);
}

body.public-theme header {
  display: none;
}

.home-hero-logo {
  display: block;
  width: 68px;
  height: 68px;
  margin-bottom: 4px;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
}

header .logo-section {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-left: 0;
}

header .logo-link {
  display: inline-block;
  color: inherit;
  text-decoration: none;
}

header .logo-section img {
  width: 48px;
  height: 48px;
  display: block;
}

footer {
  background: #f5f5f5;
  padding: 20px;
  margin-top: 60px;
  text-align: center;
  color: #666;
  font-size: 13px;
}

h1 {
  font-size: 28px;
  font-weight: 700;
  color: #000;
  margin-bottom: 24px;
}

h2 {
  font-family: var(--font-display);
  font-size: 29px;
  font-weight: 700;
  color: #000;
  margin-bottom: 16px;
  margin-top: 16px;
  margin-left: 0;
  padding-left: 0;
}

.set-heading {
  margin: 0 0 18px;
  padding: 0 24px;
}

.home-hero {
  margin: 12px 0 22px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #151515 0%, #101010 100%);
  overflow: hidden;
}

.home-hero--has-banner {
  background-size: auto, cover;
  background-position: 0 0, center;
  background-repeat: no-repeat, no-repeat;
  background-color: #0c0c0c;
}

.home-hero-kicker {
  color: var(--color-text-dim);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.home-hero-body {
  padding: 28px 28px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.home-hero-range {
  display: block;
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--color-text);
}

.home-hero-meta {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 15px;
  font-weight: 500;
}

.home-hero-body h2 {
  color: var(--color-text);
  margin: 4px 0 0;
}

.home-hero-body p {
  color: var(--color-text-muted);
  margin: 0;
}

.home-hero-filters {
  border-top: 1px solid var(--color-border);
  padding: 16px 28px;
}

.home-quick-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding-left: 0;
}

.home-filter-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid var(--color-border-strong);
  border-radius: 12px;
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.03);
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.home-filter-pill:hover {
  border-color: var(--color-accent-strong);
  background: rgba(214, 31, 31, 0.12);
  color: #fff;
  transform: translateY(-1px);
}

.home-filter-pill.is-active {
  background: linear-gradient(180deg, var(--color-accent-strong) 0%, var(--color-accent) 100%);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 10px 24px rgba(214, 31, 31, 0.24);
}

.home-filter-dropdown {
  display: none;
}

.home-filter-dropdown-label {
  color: #ffd7d7;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.home-filter-dropdown-toggle {
  list-style: none;
  cursor: pointer;
  display: grid;
  gap: 2px;
  margin: 0;
  min-height: 54px;
  padding: 8px 40px 8px 12px;
  border: 1px solid #de4c4c;
  border-radius: 8px;
  background: linear-gradient(180deg, #cf1e1e 0%, #a91010 100%);
  color: #fff;
  position: relative;
}

.home-filter-dropdown-toggle::-webkit-details-marker {
  display: none;
}

.home-filter-dropdown-toggle::after {
  content: 'expand_more';
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-family: 'Material Symbols Outlined';
  font-size: 22px;
  color: #fff;
  transition: transform 0.2s ease;
}

.home-filter-dropdown[open] .home-filter-dropdown-toggle::after {
  transform: translateY(-50%) rotate(180deg);
}

.home-filter-dropdown-value {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
}

.home-filter-dropdown-menu {
  margin-top: 6px;
  border: 1px solid #8f1414;
  border-radius: 8px;
  overflow: hidden;
  background: #a91010;
}

.home-filter-dropdown-option {
  position: relative;
  display: block;
  padding: 12px 14px;
  min-height: 46px;
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.25;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.home-filter-dropdown-option:last-child {
  border-bottom: none;
}

.home-filter-dropdown-option:hover {
  background: #900e0e;
}

.home-filter-dropdown-option.is-active {
  background: #740b0b;
  padding-left: 40px;
}

.home-filter-dropdown-option.is-active::before {
  content: 'check';
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-family: 'Material Symbols Outlined';
  font-size: 18px;
  line-height: 1;
  color: #fff;
}

.home-filter-dropdown:focus-within .home-filter-dropdown-toggle {
  border-color: #ffb2b2;
  box-shadow: 0 0 0 2px rgba(255, 178, 178, 0.3);
}

.set-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #111111 0%, #0a0a0a 100%);
  padding: 18px 0 16px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-soft);
}

.set-heading-kicker {
  color: var(--color-text-dim);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.set-heading-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.set-heading h2 {
  margin: 0;
  line-height: 0.96;
  font-size: 46px;
  max-width: 12ch;
}

.set-date-range {
  font-weight: 500;
  font-size: 18px;
  color: var(--color-text-muted);
  line-height: 1.1;
}

h3 {
  font-size: 18px;
  font-weight: 600;
  color: #000;
  margin-bottom: 12px;
  margin-top: 5px;
  margin-left: 0;
  padding-left: 0;
}

p {
  margin-bottom: 16px;
  color: #444;
}

a {
  color: #000;
  text-decoration: none;
  font-weight: 500;
}

a:hover {
  color: #c11;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
  background: #fff;
  border: 1px solid #e0e0e0;
}

th {
  background: #f5f5f5;
  color: #000;
  font-weight: 600;
  padding: 12px;
  text-align: left;
  border-bottom: 2px solid #e0e0e0;
  font-size: 14px;
}

td {
  padding: 12px;
  border-bottom: 1px solid #e0e0e0;
}

tr:hover {
  background: #fafafa;
}

tr.reg-row-marked {
  background: #f0f0f0;
}

tr.reg-row-marked:hover {
  background: #ebebeb;
}

.admin-regs-table th,
.admin-regs-table td {
  font-size: 14px;
}

.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid currentColor;
}

.badge.available {
  color: #fff;
  border-color: #c11;
  background: #c11;
}

.badge.booked {
  color: #000;
  border-color: #000;
  background: #fff;
}

.badge.disabled {
  color: #fff;
  border-color: #aaa;
  background: #aaa;
}

.btn {
  display: inline-block;
  padding: 10px 16px;
  background: #000;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  font-size: 14px;
  transition: background 0.2s, box-shadow 0.2s, opacity 0.2s;
}

.btn:hover {
  background: #222;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.btn-block {
  display: block;
  width: 100%;
  padding: 14px 16px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.btn-block.is-ready {
  background: #c11;
}

.btn-block.is-ready:hover {
  background: #a00;
}

.btn:disabled,
.btn.is-loading {
  opacity: 0.7;
  cursor: not-allowed;
  box-shadow: none;
}

.btn.is-disabled,
.btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
  box-shadow: none;
}

.btn-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 8px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  vertical-align: -2px;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.btn-warning {
  background: #888;
}

.btn-warning:hover {
  background: #666;
}

.btn-danger {
  background: #c11;
}

.btn-danger:hover {
  background: #a00;
}

.btn-secondary {
  background: #666;
}

.btn-secondary:hover {
  background: #c11;
  color: #fff;
}

.alert {
  margin-bottom: 16px;
  padding: 14px;
  border-radius: 4px;
  border-left: 4px solid #000;
}

.alert-success {
  background: transparent;
  color: #000;
  border-color: #2e7d32;
}

.alert-error {
  background: #fff5f5;
  color: #c11;
  border-color: #c11;
}

form {
  background: #fff;
  padding: 24px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  margin-bottom: 24px;
}

label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: #000;
  font-size: 14px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="date"],
input[type="time"],
input[type="password"],
select {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  width: 100%;
  padding: 10px;
  height: 40px;
  margin-bottom: 16px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #fff;
  font-family: inherit;
  line-height: 1.2;
  font-size: 14px;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
input[type="time"]:focus,
input[type="password"]:focus,
select:focus {
  outline: none;
  border-color: #000;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}

.field-invalid {
  border-color: #c11 !important;
  box-shadow: 0 0 0 2px rgba(193, 17, 17, 0.14) !important;
}

.checkbox-label.field-invalid {
  border: 1px solid #c11;
  border-radius: 4px;
  padding: 8px;
}

.field-error-msg {
  display: block;
  margin-top: -12px;
  margin-bottom: 12px;
  padding-left: 2px;
  color: #c11;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 500;
}

.checkbox-label + .field-error-msg {
  margin-top: 4px;
  margin-bottom: 12px;
  padding-left: 0;
}

input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  min-width: 20px;
  border: 2px solid #ccc;
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  margin-right: 0;
  margin-top: 1px;
  position: relative;
  flex-shrink: 0;
  transition: border-color 0.15s, background 0.15s;
}

input[type="checkbox"]:checked {
  background: #111;
  border-color: #111;
}

input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 1px;
  width: 6px;
  height: 10px;
  border: 2px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
}

input[type="checkbox"]:focus-visible {
  outline: 3px solid #c11;
  outline-offset: 2px;
}

label input[type="checkbox"] {
  display: inline-block;
  margin-bottom: 0;
  width: 20px;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 700;
  margin-bottom: 4px;
  cursor: pointer;
}

.checkbox-label + .checkbox-label {
  margin-top: 12px;
}

.checkbox-section-start {
  margin-top: 24px;
}

.checkbox-hint + button,
.checkbox-label + button {
  margin-top: 24px;
}

.checkbox-hint {
  font-size: 12px;
  color: #888;
  margin: 0 0 16px 30px;
  line-height: 1.4;
}

.admin-form-card {
  max-width: 720px;
}

.admin-form-card-wide {
  max-width: 920px;
}

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

.admin-form-grid > div {
  min-width: 0;
}

.admin-form-grid-span-2 {
  grid-column: 1 / -1;
}

.form-intro {
  margin: 0 0 18px;
  color: #555;
  font-size: 14px;
}

.field-help {
  display: block;
  margin-top: -8px;
  margin-bottom: 16px;
  color: #666;
  font-size: 12px;
  line-height: 1.4;
}

.admin-checkbox {
  margin-top: 4px;
  padding: 12px 14px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #fafafa;
}

.generation-preview {
  margin-top: 0;
  margin-bottom: 12px;
  border-left-color: #000;
  color: #222;
}

.admin-form-actions {
  display: flex;
  justify-content: flex-start;
  margin-top: 8px;
}

.admin-home-hero-preview-shell {
  max-width: 900px;
  margin: 0 0 16px;
  padding: 16px 18px 16px 30px;
  border: 1px solid #262626;
  border-radius: 8px;
  background: linear-gradient(180deg, #121212 0%, #0b0b0b 100%);
}

.admin-banner-preview-wrap {
  margin-bottom: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #2a2a2a;
  background: #111;
}

.admin-banner-preview {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: center;
}

.admin-upload-label {
  display: block;
}

.admin-upload-input {
  display: none !important;
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.admin-upload-trigger {
  margin-bottom: 10px;
}

.admin-upload-trigger:disabled {
  opacity: 0.7;
  cursor: wait;
}

.admin-upload-status {
  margin-top: 0;
  margin-bottom: 10px;
}

.admin-form-actions-wide .btn {
  min-width: 220px;
}

.admin-toolbar {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 18px 20px;
  margin-bottom: 18px;
}

.admin-toolbar-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(220px, 1fr) auto;
  gap: 16px;
  align-items: end;
}

.admin-toolbar-search-wide {
  grid-column: span 2;
}

.admin-toolbar-search input,
.admin-toolbar-grid select {
  margin-bottom: 0;
}

.admin-toolbar-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.admin-toolbar-actions .btn {
  margin-bottom: 0;
}

.admin-quick-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: -4px 0 18px;
}

.quick-filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid #d7d7d7;
  border-radius: 999px;
  background: #fff;
  color: #333;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}

.quick-filter-button {
  font: inherit;
  cursor: pointer;
}

.quick-filter-right {
  margin-left: auto;
}

.quick-filter .material-symbols-outlined {
  font-size: 16px;
}

.quick-filter:hover {
  border-color: #c11;
  color: #c11;
}

.quick-filter.is-active {
  border-color: #000;
  background: #000;
  color: #fff;
}

.table-sort-link {
  color: inherit;
  text-decoration: none;
  font-weight: 700;
  white-space: nowrap;
}

.table-sort-link:hover {
  color: #c11;
}

.dashboard-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.dashboard-nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.admin-dashboard-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.admin-dashboard-nav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.admin-dashboard-stats .card,
.admin-dashboard-nav-grid .card {
  margin-bottom: 0;
}

.dashboard-section-title {
  margin: 0;
  font-size: 29px;
  font-weight: 700;
  line-height: 1.1;
}

.page-actions-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  margin-bottom: 10px;
}

.page-actions-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Slotide akordion */
.slots-accordion {
  margin-bottom: 16px;
}

.slot-group {
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  margin-bottom: 6px;
  overflow: hidden;
}

.slot-group-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #fafafa;
  cursor: pointer;
  user-select: none;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.15s;
  flex-wrap: wrap;
}

.slot-group-header:hover {
  background: #f0f0f0;
}

.slot-group-arrow {
  font-size: 18px;
  color: #555;
  transition: transform 0.2s;
  flex-shrink: 0;
}

.slot-group-header[aria-expanded="true"] .slot-group-arrow {
  transform: rotate(180deg);
}

.slot-group-set {
  font-weight: 400;
}

.slot-group-date {
  color: #333;
  font-weight: 400;
}

.slot-group-moto {
  color: #333;
  font-weight: 600;
}

.slot-group-moto-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  color: #666;
  text-decoration: none;
}

.slot-group-moto-link:hover {
  color: #000;
}

.slot-group-moto-link .material-symbols-outlined {
  font-size: 16px;
}

.slot-group-sep {
  color: #bbb;
  font-weight: 300;
}

.slot-group-counts {
  margin-left: auto;
  font-size: 13px;
  color: #555;
  white-space: nowrap;
}

.slot-group-body {
  display: none;
  border-top: 1px solid #e8e8e8;
}

.slot-group-body.is-open {
  display: block;
}

.slot-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 44px;
  border-bottom: 1px solid #f2f2f2;
  font-size: 14px;
}

.slot-row:last-child {
  border-bottom: none;
}

.slot-time {
  min-width: 46px;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}

.slot-booker {
  color: #444;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: none;
}

.slot-booker:hover,
.slot-booker:focus-visible {
  color: #111;
  text-decoration: underline;
}

.slot-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
}

.slot-action-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 4px;
  color: #555;
  transition: background 0.15s, color 0.15s;
  text-decoration: none;
}

.slot-action-icon:hover {
  background: #f0f0f0;
  color: #000;
}

.slot-action-icon .material-symbols-outlined {
  font-size: 18px;
}

.slot-action-danger {
  color: #c11;
}

.slot-action-danger:hover {
  background: #fdeaea;
  color: #a00;
}

.card-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.recent-bookings-card {
  margin-top: 16px;
}

.recent-bookings-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.recent-booking-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 0;
  border-top: 1px solid #ececec;
}

.recent-booking-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.recent-booking-item strong {
  color: #111;
  font-size: 15px;
  font-weight: 700;
}

.recent-booking-item span {
  color: #666;
  font-size: 13px;
  line-height: 1.45;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: -6px 0 24px;
  flex-wrap: wrap;
}

.pagination-summary {
  color: #666;
  font-size: 13px;
}

.pagination-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pagination-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid #d7d7d7;
  border-radius: 999px;
  background: #fff;
  color: #333;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}

.pagination-link:hover {
  border-color: #c11;
  color: #c11;
}

.pagination-link.is-active {
  border-color: #000;
  background: #000;
  color: #fff;
}

ul,
li {
  list-style: none;
}

ul {
  margin-bottom: 16px;
}

li {
  margin-bottom: 10px;
}

li a {
  color: #000;
  text-decoration: none;
  font-weight: 500;
}

li a:hover {
  color: #c11;
}

.card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 20px;
  margin-bottom: 20px;
}

.card-link {
  display: block;
  color: inherit;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.card-link:hover {
  color: inherit;
  border-color: #c11;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

.info-box {
  background: #f9f9f9;
  padding: 16px;
  margin-bottom: 16px;
  border-left: 3px solid #888;
  border-radius: 2px;
}

.empty-state {
  background: #f9f9f9;
  padding: 20px;
  margin-bottom: 16px;
  border-left: 3px solid #888;
  border-radius: 2px;
  line-height: 1.8;
}

.empty-state p {
  margin-bottom: 12px;
}

.empty-state p:last-of-type {
  margin-bottom: 16px;
}

.empty-state a {
  color: #c11;
  font-weight: 600;
  text-decoration: none;
}

.empty-state a:hover {
  text-decoration: underline;
}

.section-nav {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

button {
  font-family: inherit;
}

.rides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.ride-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.ride-card h3 {
  margin-bottom: 8px;
  font-size: 16px;
}

.ride-card p {
  margin-bottom: 12px;
  color: #666;
  font-size: 14px;
}

.time-btn {
  background: #000;
  color: #fff;
  border: 1px solid transparent;
  min-width: 70px;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: background 0.16s ease, color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
  display: inline-block;
  margin: 0;
}

.time-btn:hover {
  background: #c11;
  color: #fff;
  transform: translateY(-1px);
}

.time-btn-unavailable,
.time-btn-unavailable:hover {
  background: #E7E7E7;
  color: #E7E7E7;
  box-shadow: none;
  transform: none;
}

.time-btn-unavailable:disabled {
  opacity: 1;
  cursor: default;
}

.time-btn--booked,
.time-btn--booked:hover {
  background: #444444;
  color: #444444;
  border: 1px solid transparent;
  min-width: 70px;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 12px;
  cursor: default;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.01em;
  display: inline-block;
  margin: 0;
  pointer-events: none;
  box-shadow: none;
  transform: none;
}

.times-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  background: #fff;
  border: 1px solid #e0e0e0;
}

.times-table th,
.times-table td {
  border: 1px solid #e0e0e0;
  padding: 8px;
  text-align: center;
}

.times-table th {
  background: #f5f5f5;
  color: #000;
  font-weight: 600;
  font-size: 14px;
}

.times-table td:first-child {
  text-align: left;
  font-weight: 600;
}

.times-grid {
  display: grid;
  column-gap: 10px;
  row-gap: 10px;
  margin-bottom: 0;
  margin-left: 0;
  padding-left: 0;
}

.moto-name {
  font-weight: 600;
  font-size: 18px;
  padding: 4px 0 2px;
  padding-left: 0;
  text-align: left;
}

.moto-name-link,
.moto-inline-link,
.hero-inline-link {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.moto-name-link:hover,
.moto-inline-link:hover,
.hero-inline-link:hover {
  color: #c11;
}

body.public-theme .moto-name-link,
body.public-theme .moto-inline-link,
body.public-theme .hero-inline-link {
  color: #fff;
  text-decoration: none;
}

body.public-theme .moto-name-link span,
body.public-theme .moto-inline-link span {
  padding-bottom: 3px;
  background-image: linear-gradient(#c11, #c11);
  background-size: 33% 1.5px;
  background-position: left bottom;
  background-repeat: no-repeat;
  transition: background-size 0.2s ease;
}

body.public-theme .hero-inline-link span {
  padding-bottom: 3px;
  background-image: linear-gradient(#c11, #c11);
  background-size: 50% 1.5px;
  background-position: left bottom;
  background-repeat: no-repeat;
  transition: background-size 0.2s ease;
}

body.public-theme .moto-name-link:hover span,
body.public-theme .moto-inline-link:hover span,
body.public-theme .hero-inline-link:hover span {
  background-size: 100% 1.5px;
}

body.public-theme .moto-name-link::after,
body.public-theme .moto-inline-link::after {
  content: 'Vaata lähemalt →';
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  height: 1.5em;
  padding: 0 7px;
  margin-left: 8px;
  background: #c11;
  color: #fff;
  font-size: 0.72em;
  font-weight: 600;
  border-radius: 3px;
  white-space: nowrap;
  line-height: 1;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

body.public-theme .moto-name-link:hover::after,
body.public-theme .moto-inline-link:hover::after {
  opacity: 1;
  transform: translateX(0);
}

.time-cell {
  padding: 0;
  padding-left: 0;
  text-align: center;
  background: transparent;
}

.gray-time {
  color: #707070;
  font-size: 13px;
  font-weight: 600;
}

.date-section {
  margin: 0 12px 12px;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  background: #060606;
  overflow: hidden;
}

.date-section.open .date-content {
  max-height: 10000px;
  padding-bottom: 14px;
}

.date-section:not(.open) .date-content {
  max-height: 0;
  padding-bottom: 0;
}

.date-content {
  padding-left: 36px;
  padding-right: 18px;
  padding-bottom: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding-bottom 0.2s ease-out;
}

.date-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  padding: 16px 18px 16px 36px;
  position: relative;
  margin-bottom: 0;
  background: rgba(255, 255, 255, 0.02);
  transition: background 0.16s ease, border-color 0.16s ease;
}

.date-header:hover {
  background: rgba(255, 255, 255, 0.04);
}

.date-label {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  line-height: 0.96;
}

.date-summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--color-text-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.date-header:before {
  content: 'keyboard_arrow_right';
  font-family: 'Material Symbols Outlined';
  font-weight: 400;
  font-style: normal;
  font-size: 27px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  font-feature-settings: 'liga';
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
}

.date-section.open .date-header:before {
  content: 'keyboard_arrow_down';
}

.booking-modal-loading {
  padding: 24px;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  background: var(--color-surface-strong);
  color: var(--color-text);
  font-weight: 600;
}

.modal-open {
  overflow: hidden;
}

.modal {
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(3, 3, 3, 0.74);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 140ms ease, visibility 140ms ease;
}

.modal.is-open {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background-color: #e3e3e3;
  color: #000;
  margin: 4vh auto;
  padding: 38px 42px 34px;
  width: min(92%, 760px);
  max-width: 760px;
  max-height: 92vh;
  overflow: auto;
  border-radius: 14px;
  position: relative;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
  transform: translateY(8px) scale(0.985);
  opacity: 0;
  transition: transform 140ms ease, opacity 140ms ease;
  border: 1px solid var(--color-border);
}

.modal-content form {
  border: none;
  padding: 0;
  margin-bottom: 0;
  background: transparent;
}

.modal-content label {
  color: #000;
  font-weight: 700;
}

.modal-content input[type="text"],
.modal-content input[type="email"],
.modal-content input[type="tel"],
.modal-content input[type="number"],
.modal-content input[type="date"],
.modal-content input[type="time"],
.modal-content input[type="password"],
.modal-content select {
  background: #e3e3e3;
  border: 1px solid #aaaaaa;
  color: #000;
  height: 48px;
  min-height: 48px;
}

.modal-content input[type="text"]:not(:placeholder-shown),
.modal-content input[type="email"]:not(:placeholder-shown),
.modal-content input[type="tel"]:not(:placeholder-shown),
.modal-content input[type="number"]:not(:placeholder-shown),
.modal-content input[type="password"]:not(:placeholder-shown) {
  background: #ffffff;
  border-color: transparent;
}

.modal-content input[type="text"]:focus,
.modal-content input[type="email"]:focus,
.modal-content input[type="tel"]:focus,
.modal-content input[type="number"]:focus,
.modal-content input[type="date"]:focus,
.modal-content input[type="time"]:focus,
.modal-content input[type="password"]:focus,
.modal-content select:focus {
  outline: none;
  background: #ffffff;
  border-color: transparent;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.35), 0 2px 8px rgba(0, 0, 0, 0.18);
}

.modal-content input[type="checkbox"] {
  background: #ffffff;
  border: 2px solid #aaaaaa;
}

.modal-content input[type="checkbox"]:checked {
  background: var(--color-accent);
  border-color: var(--color-accent);
}

.modal-content .field-invalid {
  border-color: #e74c3c !important;
  box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.2) !important;
}

.modal-content .field-error-msg {
  color: #e74c3c;
}

.modal-content .checkbox-label {
  color: #000;
  font-weight: 800;
}

.modal-content .checkbox-hint {
  color: #555;
}

.modal.is-open .modal-content {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.modal-content-compact {
  max-width: 560px;
}

.modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.booking-confirm {
  text-align: center;
  padding: 12px 8px 8px;
}

.booking-confirm-icon {
  width: 96px;
  height: 96px;
  display: block;
  margin: 0 auto 12px;
}

.booking-confirm-name {
  margin: 0 0 4px;
  font-size: 26px;
  color: var(--color-text);
}

.booking-confirm-subtitle {
  margin: 0 0 24px;
  color: var(--color-text-muted);
  font-size: 15px;
}

.booking-confirm-details {
  background: #fff;
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 20px;
  text-align: left;
  border: none;
}

.booking-confirm-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  padding: 6px 0;
  color: #000;
  border-bottom: 1px solid #cfcfcf;
}

.booking-confirm-row:last-child {
  border-bottom: none;
}

.booking-confirm-row .material-symbols-outlined {
  font-size: 20px;
  color: var(--color-text-muted);
  flex-shrink: 0;
}

.booking-confirm-msg {
  font-size: 15px;
  color: var(--color-text-muted);
  margin: 0 0 24px;
  line-height: 1.6;
}

.close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  color: #000;
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 34px;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
}

.close.material-symbols-outlined {
  font-size: 51px;
  font-variation-settings: 'FILL' 0, 'wght' 100, 'GRAD' 0, 'opsz' 48;
}

.close:hover {
  color: #000;
  background: #fff;
  border-color: #aaaaaa;
}

body.public-theme {
  background: var(--color-bg);
  color: var(--color-text);
}

body.public-theme h2,
body.public-theme h3,
body.public-theme p,
body.public-theme label,
body.public-theme .moto-name,
body.public-theme .date-header,
body.public-theme a {
  color: #fff;
}

body.public-theme .slot-group-moto-link {
  color: #fff;
}

body.public-theme .slot-group-moto-link:hover {
  color: #c11;
}

body.public-theme .set-date-range {
  color: var(--color-text-muted);
}

body.public-theme .set-card {
  border-color: var(--color-border);
  background: linear-gradient(180deg, #111111 0%, #0a0a0a 100%);
}

body.public-theme .date-section {
  border-color: var(--color-border);
  background: #060606;
}

body.public-theme .time-cell {
  background: transparent;
}

body.public-theme .times-grid {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  min-width: 0;
  column-gap: 8px;
  row-gap: 8px;
}

body.public-theme .moto-name {
  flex: 0 0 100%;
  margin-top: 12px;
  padding: 0;
}

body.public-theme .times-grid .moto-name:first-child {
  margin-top: 0;
}

body.public-theme .time-cell {
  flex: 0 0 auto;
  padding: 0;
}

body.public-theme .times-grid .time-cell:empty {
  display: none;
}

body.public-theme .time-btn {
  background: var(--color-slot);
  color: var(--color-slot-text);
  padding: 0 14px;
  min-height: 48px;
  font-size: 16px;
  border-radius: 12px;
  border-color: rgba(255, 255, 255, 0.08);
  transition: background 0.16s ease, color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

body.public-theme .time-btn:hover {
  background: var(--color-accent);
  color: #fff;
  border-color: transparent;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(214, 31, 31, 0.24);
}

body.public-theme .time-btn-unavailable,
body.public-theme .time-btn-unavailable:hover {
  background: #4a443d;
  color: var(--color-slot-muted);
  border-color: #4a443d;
}

body.public-theme .time-btn--booked,
body.public-theme .time-btn--booked:hover {
  background: #444444;
  color: #444444;
  border-color: transparent;
  transform: none;
  box-shadow: none;
  pointer-events: none;
  cursor: default;
}

body.public-theme .info-box,
body.public-theme .empty-state,
body.public-theme .date-content {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border-strong);
}

body.public-theme .empty-state a {
  color: #f88;
}

body.public-theme .empty-state a:hover {
  color: #faa;
}

body.public-theme .modal-content,
body.public-theme .modal-content form,
body.public-theme .modal-content .info-box,
body.public-theme .modal-content label,
body.public-theme .modal-content p,
body.public-theme .modal-content h2 {
  color: #000;
}

body.public-theme .modal-content .btn {
  background: var(--color-accent);
  color: #fff;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

body.public-theme .modal-content .btn:hover {
  background: var(--color-accent-strong);
}

body.public-theme footer {
  background: #000;
  color: #fff;
}

@media (max-width: 768px) {
  .admin-form-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .admin-form-grid-span-2 {
    grid-column: auto;
  }

  .admin-toolbar-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .admin-banner-preview {
    height: 148px;
  }

  .admin-home-hero-preview-shell {
    padding-left: 26px;
  }

  .admin-quick-filters {
    gap: 8px;
  }

  .pagination {
    align-items: flex-start;
  }

  .admin-toolbar-search-wide {
    grid-column: auto;
  }

  body > main,
  header main {
    padding: 14px;
  }

  header .logo-section {
    gap: 10px;
    padding-left: 26px;
  }

  header .logo-section img {
    width: 40px;
    height: 40px;
  }

  h2 {
    font-size: 24px;
  }

  .set-heading {
    padding: 0 18px;
  }

  .home-hero-body {
    padding: 18px 18px 16px;
  }

  .home-hero-range {
    font-size: 28px;
  }

  .home-hero-filters {
    padding: 14px 18px;
  }

  .home-quick-filters {
    display: none;
  }

  .home-filter-dropdown {
    display: block;
    margin: 0;
    padding-left: 0;
    padding-right: 0;
  }

  .date-header {
    padding: 14px 14px 14px 32px;
  }

  .date-content {
    padding-left: 18px;
    padding-right: 18px;
    overflow-x: visible;
  }

  .date-header:before {
    left: 6px;
    font-size: 22px;
  }

  .date-label {
    font-size: 22px;
  }

  .times-grid {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    min-width: 0;
    column-gap: 6px;
    row-gap: 6px;
    grid-template-columns: none !important;
  }

  .moto-name {
    flex: 0 0 100%;
    font-size: 16px;
    margin-top: 4px;
    margin-bottom: 4px;
    padding: 0;
  }

  .moto-name-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 6px 0;
  }

  .times-grid .moto-name:first-child {
    margin-top: 0;
  }

  .time-cell {
    flex: 0 0 auto;
    padding: 0;
  }

  .time-btn,
  .time-btn--booked,
  body.public-theme .time-btn,
  body.public-theme .time-btn--booked {
    min-width: 62px;
    padding: 0 10px;
    font-size: 15px;
  }

  .modal {
    background-color: #000;
  }

  .modal-content {
    width: 100%;
    max-width: none;
    max-height: none;
    height: 100%;
    margin: 0;
    border-radius: 0;
    border: none;
    padding: 72px 18px 24px;
  }

  .close {
    top: 14px;
    right: 14px;
  }
}

/* Focus-visible rings — keyboard navigation a11y */
.time-btn:focus-visible {
  outline: 3px solid #c11;
  outline-offset: 2px;
}

.btn:focus-visible,
.home-filter-pill:focus-visible,
.home-filter-dropdown-toggle:focus-visible,
.close:focus-visible,
.pagination-link:focus-visible,
.quick-filter:focus-visible {
  outline: 3px solid #000;
  outline-offset: 2px;
}

body.public-theme .btn:focus-visible,
body.public-theme .home-filter-pill:focus-visible,
body.public-theme .home-filter-dropdown-toggle:focus-visible {
  outline-color: #c11;
}

/* Reduced motion — respect user preference */
@media (prefers-reduced-motion: reduce) {
  .time-btn,
  .btn,
  .card-link,
  .modal,
  .modal-content,
  .slot-group-arrow,
  .date-content,
  .home-filter-pill,
  .quick-filter,
  .pagination-link {
    transition: none !important;
    animation: none !important;
    transform: none !important;
  }

  .btn-spinner {
    animation: none !important;
    border-top-color: #fff;
  }
}
