:root {
  --bg: #f3f3f5;
  --ink: #1a1a2e;
  --ink-soft: #5a5a78;
  --blue: #2f5fd0;
  --pink: #ff2d8f;
  --card: rgba(255, 255, 255, 0.96);
  --line: rgba(47, 95, 208, 0.18);
  --ok: #2f6a48;
  --danger: #b42318;
  --held: #c47a22;
  --radius: 22px;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: Montserrat, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
.decor { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.stripe { position: absolute; width: 140%; height: 32%; left: -20%; transform: rotate(-28deg); opacity: 0.16; }
.s1 { top: -8%; background: var(--pink); }
.s2 { bottom: -18%; height: 22%; background: var(--blue); opacity: 0.1; }
.top {
  position: relative; z-index: 2;
  display: flex; justify-content: space-between; align-items: center;
  width: min(1120px, calc(100% - 24px));
  margin: 0 auto;
  padding: 16px 0;
}
.logo { font-weight: 900; letter-spacing: 0.04em; font-size: 1.05rem; }
.logo span { color: var(--pink); }
.ghost {
  border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px;
  background: #fff; font-weight: 700; font-size: 0.82rem;
}
.wrap { position: relative; z-index: 1; width: min(1120px, calc(100% - 24px)); margin: 0 auto 40px; }
h1 { margin: 0 0 8px; font-size: 1.7rem; }
.muted { color: var(--ink-soft); font-weight: 600; }
.card {
  background: var(--card); border-radius: var(--radius);
  box-shadow: 0 18px 40px rgba(47, 95, 208, 0.08);
  padding: 18px;
  margin: 14px 0;
}
.grid { display: grid; gap: 14px; }
.event-layout { display: grid; gap: 16px; }
@media (min-width: 1100px) {
  .event-layout { grid-template-columns: minmax(0, 1fr) 300px; align-items: start; }
}
@media (min-width: 800px) and (max-width: 1099px) {
  .event-layout { grid-template-columns: minmax(0, 1fr); }
}
.event-link { display: block; }
.event-link h2 { margin: 0 0 6px; font-size: 1.2rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 999px; padding: 12px 18px;
  background: var(--pink); color: #fff; font-weight: 800;
}
.btn.secondary { background: var(--blue); }
.btn.ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.field { display: grid; gap: 6px; margin: 10px 0; font-weight: 700; font-size: 0.85rem; }
.field input, .field textarea, .field select {
  border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; background: #fff;
}
.field textarea { min-height: 88px; resize: vertical; font: inherit; }
.form-row { display: grid; gap: 10px; }
@media (min-width: 720px) {
  .form-row.two { grid-template-columns: 1fr 1fr; }
}
.event-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.status-tag { display: inline-block; font-size: 0.78rem; font-weight: 800; padding: 4px 10px; border-radius: 999px; background: #eef1fb; }
.legend { display: flex; flex-wrap: wrap; gap: 10px 16px; margin: 8px 0 12px; font-size: 0.8rem; font-weight: 700; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }
.hall-scroll { overflow: hidden; background: #fafafa; border-radius: 16px; padding: 8px; }
.hall { width: 100%; height: auto; display: block; max-width: 100%; }
.hall-frame { fill: #fff; stroke: #d8d8e4; stroke-width: 1.4; }
.seat {
  cursor: pointer; stroke: #fff; stroke-width: 1;
}
.seat.sold, .seat.held, .seat.blocked { cursor: not-allowed; }
.seat.picked { stroke: var(--ink); stroke-width: 2.4; }
.cart-item { display: flex; justify-content: space-between; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 0.86rem; }
.total { font-size: 1.2rem; font-weight: 900; margin: 12px 0; }
.error { color: var(--danger); font-weight: 700; }
.ok { color: var(--ok); font-weight: 700; }
.ticket {
  background: #fff; border-radius: 18px; overflow: hidden;
  border: 1px solid var(--line);
}
.ticket-head { background: var(--pink); color: #fff; padding: 16px 18px; font-weight: 900; }
.ticket-body { padding: 16px 18px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.ticket-body img { width: 168px; height: 168px; background: #fff; flex: 0 0 auto; }
.table { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
.table th, .table td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); }
.admin-body { background: #14151c; color: #f5f5f7; }
.admin-body .wrap { width: min(980px, calc(100% - 24px)); padding-top: 28px; }
.admin-body .card { background: #1e2030; color: #f5f5f7; box-shadow: none; }
.admin-body .muted { color: #9aa0b8; }
.admin-body input, .admin-body textarea, .admin-body select { background: #14151c; color: #fff; border-color: #3a3d55; }
.admin-body .status-tag { background: #2a2d44; color: #d5d8ef; }
.scan-box input { font-size: 1.2rem; letter-spacing: 0.08em; text-transform: uppercase; }
