:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --text: #17202a;
  --muted: #617080;
  --line: #dfe5eb;
  --accent: #0f766e;
  --accent-dark: #0b5f59;
  --danger: #b42318;
  --warm: #f3b23c;
  --ink: #102527;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select {
  font: inherit;
}
.site-header, .site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px clamp(16px, 4vw, 48px);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.site-footer {
  border-top: 1px solid var(--line);
  border-bottom: 0;
  margin-top: 48px;
}
.brand {
  font-weight: 800;
  font-size: 22px;
}
.nav, .site-footer nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}
.inline-form { display: inline; }
.inline-form button, .button, button {
  border: 0;
  background: var(--accent);
  color: white;
  border-radius: 8px;
  padding: 10px 14px;
  cursor: pointer;
}
.inline-form button:hover, .button:hover, button:hover { background: var(--accent-dark); }
.page { min-height: 65vh; }
.hero {
  background:
    linear-gradient(90deg, rgba(16, 37, 39, .94), rgba(15, 118, 110, .72)),
    url('/public/assets/images/poster-festival.svg') center/cover;
  color: white;
  padding: clamp(48px, 10vw, 96px) clamp(16px, 4vw, 48px);
}
.hero.compact { padding-block: 56px; }
.hero h1 {
  max-width: 780px;
  margin: 0 0 14px;
  font-size: clamp(36px, 7vw, 72px);
  line-height: 1.04;
}
.hero p { max-width: 680px; color: rgba(255,255,255,.88); }
.hero-search, .filters {
  display: grid;
  grid-template-columns: 1fr minmax(170px, .4fr) auto;
  gap: 10px;
  max-width: 900px;
  margin-top: 24px;
}
.filters {
  grid-template-columns: 1.6fr repeat(6, minmax(120px, 1fr)) auto;
  max-width: none;
  margin-bottom: 24px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}
input, select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  background: white;
}
.section {
  padding: 36px clamp(16px, 4vw, 48px);
}
.section-muted { background: #edf5f3; }
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 18px;
}
.section h1, .section h2 { margin: 0 0 10px; }
.section-lead {
  margin: 0;
  color: var(--muted);
}
.eyebrow {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}
.chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 14px;
}
.chip span {
  color: var(--muted);
  font-size: 13px;
}
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-top: 18px;
}
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .06);
}
.card h3 {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 14px;
}
.card p {
  margin: 0;
  font-size: 28px;
  font-weight: 900;
}
.table-wrap {
  overflow-x: auto;
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .06);
}
table {
  width: 100%;
  border-collapse: collapse;
}
th,
td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}
.actions-cell {
  min-width: 360px;
}
.actions-cell .button {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  margin: 0 6px 6px 0;
  padding: 7px 10px;
  font-size: 12px;
}
.button.ghost {
  background: #eef2ff;
  color: var(--accent-dark);
  box-shadow: none;
}
.button.ghost:hover {
  background: #dbeafe;
}
.admin-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px clamp(16px, 4vw, 48px);
  background: #0f172a;
  border-bottom: 1px solid #1e293b;
}
.admin-nav a {
  flex: 0 0 auto;
  padding: 9px 12px;
  border-radius: 8px;
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 800;
}
.admin-nav a.active,
.admin-nav a:hover {
  color: white;
  background: var(--accent);
}
.admin-action-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.admin-action {
  display: grid;
  gap: 4px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .06);
}
.admin-action span {
  color: var(--muted);
  font-size: 13px;
}
.inline-admin-form {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 230px;
}
.inline-admin-form select {
  min-width: 130px;
}
.inline-admin-form button {
  min-height: 38px;
  padding: 8px 10px;
}
.event-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}
.compact-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.event-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.event-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #dde8e6;
}
.event-card-body { padding: 14px; }
.event-card h3 { margin: 0 0 8px; }
.event-meta {
  color: var(--muted);
  font-size: 14px;
}
.price { font-weight: 800; }
.city-grid, .category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 12px;
}
.city-tile, .category-tile {
  display: grid;
  gap: 6px;
  min-height: 96px;
  align-content: end;
  padding: 16px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.city-tile span, .category-tile span {
  color: var(--muted);
  font-size: 14px;
}
.split-sections {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.stack-list {
  display: grid;
  gap: 10px;
}
.mini-event {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}
.cta-band {
  margin: 36px clamp(16px, 4vw, 48px);
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.event-detail {
  display: grid;
  grid-template-columns: minmax(240px, 420px) 1fr;
  gap: 32px;
  padding: 36px clamp(16px, 4vw, 48px);
}
.event-poster {
  border-radius: 8px;
  border: 1px solid var(--line);
  background: white;
}
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}
.facts div, .ticket-row {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}
.facts dt { color: var(--muted); font-size: 13px; }
.facts dd { margin: 0; font-weight: 700; }
.ticket-list { display: grid; gap: 10px; }
.ticket-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.ticket-price {
  display: grid;
  justify-items: end;
  gap: 4px;
  font-weight: 800;
}
.ticket-select {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 400;
}
.ticket-select input { width: auto; }
.qty-control {
  display: grid;
  gap: 6px;
  max-width: 180px;
}
.checkout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  align-items: start;
}
.checkout-form, .checkout-summary {
  display: grid;
  gap: 14px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}
.checkout-summary dl {
  display: grid;
  gap: 8px;
}
.checkout-summary dl div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.secondary-button {
  background: #475467;
}
.ticket-detail-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
}
.qr-panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  text-align: center;
}
.qr-panel img {
  margin: 0 auto 12px;
}
.success-qr {
  display: grid;
  justify-items: end;
  gap: 8px;
}
.success-qr img {
  width: 112px;
  height: 112px;
}
.ticket-price small {
  color: var(--muted);
  font-weight: 400;
}
.status-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 9px;
  background: #e6f4f1;
  color: #0b5f59;
  font-size: 13px;
  font-weight: 700;
}
.button.disabled {
  display: inline-block;
  margin-top: 16px;
  opacity: .6;
  pointer-events: none;
}
.pagination {
  display: flex;
  gap: 8px;
  margin-top: 22px;
}
.pagination a {
  min-width: 38px;
  text-align: center;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
}
.pagination a.active {
  background: var(--accent);
  color: white;
}
.notice, .flash {
  padding: 12px 14px;
  border-radius: 8px;
  background: #e6f4f1;
  border: 1px solid #b8ded7;
}
.flash { margin: 16px clamp(16px, 4vw, 48px); }
.flash-danger { background: #fee4e2; border-color: #fda29b; }
.auth-shell {
  min-height: 100vh;
  display: grid;
  place-content: center;
  gap: 18px;
  padding: 20px;
}
.auth-card {
  width: min(420px, calc(100vw - 32px));
  display: grid;
  gap: 14px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
}
.prose { max-width: 860px; }
pre { white-space: pre-wrap; overflow-wrap: anywhere; }

@media (max-width: 760px) {
  .site-header, .site-footer { align-items: flex-start; flex-direction: column; }
  .hero-search, .filters { grid-template-columns: 1fr; }
  .event-detail { grid-template-columns: 1fr; }
  .split-sections { grid-template-columns: 1fr; }
  .ticket-row { align-items: flex-start; }
  .checkout-grid, .ticket-detail-page { grid-template-columns: 1fr; }
}

/* Eventor app shell, based on the provided UI preview. */
:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --accent: #4f46e5;
  --accent-dark: #4338ca;
  --accent-soft: #eef2ff;
  --danger: #dc2626;
  --shadow: 0 14px 40px rgba(15, 23, 42, 0.08);
  --shadow-soft: 0 8px 24px rgba(15, 23, 42, 0.06);
}

body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top left, rgba(79, 70, 229, 0.10), transparent 34%), var(--bg);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.86);
  padding-block: 14px;
}

.site-footer {
  background: white;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.035em;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: inline-grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #06b6d4);
  box-shadow: 0 10px 30px rgba(79, 70, 229, 0.25);
  font-weight: 900;
}

.nav a {
  color: #475569;
  padding: 9px 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
}

.nav a:hover {
  background: #f1f5f9;
  color: var(--text);
}

button,
.button,
.inline-form button {
  border-radius: 14px;
  min-height: 42px;
  font-weight: 800;
  background: var(--accent);
  box-shadow: 0 14px 30px rgba(79, 70, 229, 0.18);
}

button:hover,
.button:hover,
.inline-form button:hover {
  background: var(--accent-dark);
}

input,
select,
textarea {
  border-radius: 14px;
  min-height: 42px;
}

.hero {
  margin: 28px clamp(16px, 4vw, 48px) 0;
  border-radius: 30px;
  background: linear-gradient(135deg, #111827 0%, #312e81 54%, #0891b2 100%);
  padding: clamp(34px, 7vw, 64px);
  box-shadow: var(--shadow);
}

.hero h1,
.section h1,
.section h2,
.cta-band h2 {
  letter-spacing: -0.035em;
}

.filters,
.event-card,
.city-tile,
.category-tile,
.mini-event,
.cta-band,
.event-poster,
.facts div,
.ticket-row,
.checkout-form,
.checkout-summary,
.qr-panel,
.auth-card {
  border-color: var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
}

.filters {
  border-radius: 22px;
  align-items: end;
}

.chip {
  box-shadow: var(--shadow-soft);
}

.status-badge,
.notice,
.flash {
  background: var(--accent-soft);
  color: var(--accent-dark);
  border-color: #c7d2fe;
}

.installer-body {
  background: radial-gradient(circle at top left, rgba(79, 70, 229, 0.14), transparent 34%), var(--bg);
}

.installer-shell {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 28px 0 70px;
}

.installer-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  color: white;
  background: linear-gradient(135deg, #111827 0%, #312e81 54%, #0891b2 100%);
  border-radius: 30px;
  padding: clamp(28px, 6vw, 46px);
  box-shadow: var(--shadow);
}

.installer-hero .eyebrow,
.installer-hero p {
  color: rgba(255,255,255,.82);
}

.installer-hero h1 {
  margin: 10px 0;
  max-width: 760px;
  font-size: clamp(32px, 6vw, 58px);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.installer-status {
  display: grid;
  gap: 6px;
  min-width: 180px;
  padding: 18px;
  border-radius: 20px;
  background: rgba(255,255,255,.13);
  border: 1px solid rgba(255,255,255,.22);
}

.install-steps {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

.install-card {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 18px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 20px;
  box-shadow: var(--shadow-soft);
}

.install-card h2 {
  margin: 0 0 12px;
}

.install-step {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-weight: 900;
}

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

.installer-form button,
.installer-form .checkbox-row,
.installer-form p {
  grid-column: 1 / -1;
}

.check-list {
  margin: 0;
  padding-left: 18px;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.checkbox-row input {
  width: auto;
  min-height: auto;
}

.festival-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.scan-result-panel {
  margin-top: 18px;
  padding: 22px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: white;
  box-shadow: var(--shadow-soft);
}

.scan-result-panel.valid {
  background: #dcfce7;
  border-color: #86efac;
  color: #14532d;
}

.scan-result-panel.invalid {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #7f1d1d;
}

.scan-result-panel.warning,
.notice.warning {
  background: #fef3c7;
  border-color: #f59e0b;
  color: #78350f;
}

.scan-photo {
  width: 128px;
  height: 128px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid currentColor;
}

@media (max-width: 980px) {
  .filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .event-detail,
  .checkout-grid,
  .ticket-detail-page {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  body {
    overflow-x: hidden;
  }
  .site-header {
    position: static;
    padding: 12px 16px;
  }
  .nav {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .nav a,
  .inline-form button {
    width: 100%;
    text-align: center;
    background: #f1f5f9;
  }
  .hero {
    margin: 16px 16px 0;
    border-radius: 24px;
    padding: 28px 20px;
  }
  .hero h1 {
    font-size: clamp(34px, 13vw, 52px);
  }
  .hero-search,
  .filters,
  .installer-form,
  .installer-hero,
  .install-card {
    grid-template-columns: 1fr;
  }
  .section {
    padding: 28px 16px;
  }
  .section-header,
  .ticket-row,
  .mini-event {
    align-items: stretch;
    flex-direction: column;
  }
  .event-grid,
  .city-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }
  .ticket-price,
  .success-qr {
    justify-items: start;
  }
  .installer-shell {
    width: calc(100vw - 24px);
    padding-top: 12px;
  }
}
