:root {
  --bg-dark: #1a1a2e;
  --bg-dark-2: #22223a;
  --accent: #f1ae29;
  --text-light: #eee8f0;
  --text-muted: #a9a6c0;
  --border: #33334f;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg-dark);
  color: var(--text-light);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

#page {
  max-width: 560px;
  margin: 0 auto;
  padding: 32px 20px 60px;
}

#logo {
  display: block;
  height: 56px;
  margin: 0 auto 16px;
}

h1 {
  text-align: center;
  margin: 0 0 8px;
  font-size: 1.5rem;
}

#intro {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0 0 28px;
  line-height: 1.4;
}

form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.row {
  display: flex;
  gap: 12px;
}
.row > label { flex: 1; }

input, textarea, select {
  background: var(--bg-dark-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-light);
  padding: 9px 10px;
  font-size: 0.95rem;
  font-family: inherit;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--accent);
}

textarea { resize: vertical; }

.hidden { display: none !important; }

.field-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: -4px 0 0;
  line-height: 1.4;
}

#s-new-venue-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

#s-paid-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-dark-2);
}

.s-tier-toggle-row {
  flex-direction: row !important;
  align-items: center;
  justify-content: space-between;
  color: var(--text-light) !important;
  font-size: 0.9rem !important;
}

/* Same construction as the admin editor's toggle-switch (a full-sized,
   overlaid checkbox, not shrunk to 1px) so it's directly clickable/
   automatable, not just reachable via native label-click forwarding. */
.toggle-switch {
  position: relative; display: inline-block; width: 38px; height: 21px;
  cursor: pointer; flex: 0 0 auto;
}
.toggle-switch input {
  position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; z-index: 1;
}
.toggle-switch-track {
  display: block; width: 38px; height: 21px; border-radius: 11px;
  background: var(--border); position: relative; transition: background 0.15s ease;
}
.toggle-switch-track::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 17px; height: 17px;
  border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,0.35);
  transition: transform 0.15s ease;
}
.toggle-switch input:checked + .toggle-switch-track { background: var(--accent); }
.toggle-switch input:checked + .toggle-switch-track::after { transform: translateX(17px); }

#s-tiers-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.s-tier-row {
  display: flex;
  gap: 8px;
}
.s-tier-row input[type="text"] { flex: 3; }
.s-tier-row input[type="number"] { flex: 2; min-width: 0; }

#s-website-wrap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

button#s-submit-btn {
  margin-top: 8px;
  background: var(--accent);
  color: #1a1a2e;
  border: none;
  border-radius: 6px;
  padding: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}
button#s-submit-btn:disabled {
  opacity: 0.6;
  cursor: default;
}
button#s-submit-btn:hover:not(:disabled) { filter: brightness(1.08); }

#s-status {
  text-align: center;
  min-height: 1.2em;
  font-size: 0.9rem;
}
#s-status.ok { color: #6fcf97; }
#s-status.err { color: #eb5757; }
