:root {
  --violet: #6d28d9;
  --violet-2: #8b5cf6;
  --magenta: #db2777;
  --pink: #f472b6;
  --green: #22c55e;
  --ink: #2a1a4a;
  --card: rgba(255, 255, 255, 0.96);
  --shadow: 0 18px 50px rgba(60, 20, 90, 0.35);
  font-size: 17px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 15% -10%, #a855f7 0%, transparent 55%),
    radial-gradient(1000px 500px at 100% 0%, #ec4899 0%, transparent 50%),
    radial-gradient(900px 700px at 50% 120%, #4c1d95 0%, transparent 60%),
    linear-gradient(160deg, #3b0764 0%, #5b21b6 45%, #7c3aed 100%);
  background-attachment: fixed;
}

.stars {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    radial-gradient(2px 2px at 20% 30%, #fff8 40%, transparent),
    radial-gradient(2px 2px at 70% 60%, #fff6 40%, transparent),
    radial-gradient(1.5px 1.5px at 40% 80%, #fff7 40%, transparent),
    radial-gradient(1.5px 1.5px at 85% 25%, #fff5 40%, transparent),
    radial-gradient(2px 2px at 55% 15%, #fff6 40%, transparent);
}

.wrap {
  position: relative; z-index: 1;
  max-width: 620px;
  margin: 0 auto;
  padding: 28px 18px 60px;
}
.wrap.wide { max-width: 1040px; }

.card {
  background: var(--card);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 26px 24px;
  margin-bottom: 20px;
}

.hero-title {
  text-align: center;
  margin: 6px 0 2px;
  font-size: 2rem;
  line-height: 1.1;
  font-weight: 800;
  background: linear-gradient(90deg, var(--green), var(--violet) 45%, var(--magenta));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { text-align: center; margin: 0 0 6px; font-weight: 700; color: var(--violet); }
.hero-emoji { text-align: center; font-size: 1.6rem; margin: 2px 0 10px; letter-spacing: 4px; }

.facts { list-style: none; padding: 0; margin: 14px 0 0; }
.facts li { display: flex; gap: 10px; align-items: baseline; padding: 7px 0; border-bottom: 1px dashed #e6d9f7; }
.facts li:last-child { border-bottom: 0; }
.facts .ico { font-size: 1.15rem; width: 1.6rem; text-align: center; }
.facts .lbl { font-weight: 700; }

label { display: block; font-weight: 700; margin: 16px 0 6px; }
.hint { font-weight: 400; color: #7c6a99; font-size: 0.85rem; }

.counter { display: flex; align-items: center; gap: 14px; }
.counter button {
  width: 46px; height: 46px; border-radius: 14px; border: 0; cursor: pointer;
  font-size: 1.5rem; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, var(--violet-2), var(--violet));
  box-shadow: 0 6px 16px rgba(109,40,217,0.35);
}
.counter button:active { transform: translateY(1px); }
.counter output {
  min-width: 46px; text-align: center; font-size: 1.6rem; font-weight: 800; color: var(--violet);
}
.counter-msg { margin: 8px 0 0; color: var(--magenta); font-weight: 800; font-size: 0.98rem; }

/* toggle switch (need parking) */
.toggle { display: flex; align-items: center; gap: 12px; cursor: pointer; margin-top: 6px; }
.toggle input { position: absolute; opacity: 0; width: 0; height: 0; }
.toggle-track { position: relative; width: 58px; height: 32px; border-radius: 999px; background: #e3d6f7; transition: background .2s; flex: none; }
.toggle-thumb { position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.25); transition: transform .2s; }
.toggle input:checked + .toggle-track { background: linear-gradient(135deg, var(--magenta), var(--violet)); }
.toggle input:checked + .toggle-track .toggle-thumb { transform: translateX(26px); }
.toggle input:focus-visible + .toggle-track { outline: 2px solid var(--violet-2); outline-offset: 2px; }
.toggle-text { font-weight: 700; }

textarea, input[type=text] {
  width: 100%; border: 2px solid #e3d6f7; border-radius: 14px; padding: 12px 14px;
  font: inherit; color: var(--ink); background: #fff;
}
textarea:focus, input:focus { outline: none; border-color: var(--violet-2); }

.btn {
  display: inline-block; width: 100%; text-align: center; cursor: pointer;
  border: 0; border-radius: 16px; padding: 15px 20px; margin-top: 22px;
  font-size: 1.1rem; font-weight: 800; color: #fff; text-decoration: none;
  background: linear-gradient(135deg, var(--magenta), var(--violet));
  box-shadow: 0 10px 26px rgba(219,39,119,0.4);
}
.btn:active { transform: translateY(1px); }
.btn.secondary {
  background: #fff; color: var(--violet); border: 2px solid #e3d6f7;
  box-shadow: none; margin-top: 12px;
}
.btn.green { background: linear-gradient(135deg, #22c55e, #16a34a); box-shadow: 0 10px 26px rgba(34,197,94,0.4); }

.error { background: #fee2e2; color: #b91c1c; border-radius: 12px; padding: 10px 14px; margin: 14px 0 0; font-weight: 600; }

.confirm-badge { text-align: center; font-size: 3rem; }
.map-embed { width: 100%; height: 260px; border: 0; border-radius: 16px; margin-top: 6px; }
.parking-qr { display: block; max-width: 240px; margin: 8px auto 0; border-radius: 12px; background: #fff; padding: 8px; }
.muted { color: #7c6a99; }
.center { text-align: center; }

.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 0.78rem; font-weight: 700; }
.badge.yes { background: #dcfce7; color: #15803d; }
.badge.no { background: #f3e8ff; color: #7c3aed; }
.badge.warn { background: #fef3c7; color: #b45309; }

/* admin */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; min-width: 640px; }
th, td { text-align: left; padding: 9px 8px; border-bottom: 1px solid #eee; vertical-align: top; }
th { color: #7c3aed; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; }
.admin-wrap { max-width: 1000px; }
.mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.82rem; }
.row-actions form { display: inline; }
.linkbtn { background: none; border: 0; color: var(--magenta); cursor: pointer; font: inherit; text-decoration: underline; padding: 0; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; }
.toolbar form { display: flex; gap: 8px; flex: 1; min-width: 240px; }
.toolbar input[type=text] { flex: 1; }
.pill { background:#f3e8ff; color:#6d28d9; border-radius:999px; padding:6px 12px; font-weight:700; font-size:0.85rem; }
.copy { cursor: pointer; }
