/* On the Town — brand: night-out dark theme, gold + coral accents */
:root {
  --bg: #0c1019;
  --bg2: #151b25;
  --panel: #111722;
  --ink: #f7f3ec;
  --muted: #c8cbd2;
  --faint: #959aa5;
  --gold: #edae52;
  --coral: #e75f4e;
  --line: rgba(255, 255, 255, 0.14);
  --serif: Georgia, 'Times New Roman', serif;
  --sans: 'Segoe UI', system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 88% 8%, rgba(239, 89, 74, 0.12), transparent 26%),
    radial-gradient(circle at 10% 90%, rgba(230, 165, 72, 0.1), transparent 30%),
    var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: var(--gold); }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
main { flex: 1; padding: 28px 0 60px; }

/* header */
.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(12, 16, 25, 0.92);
  position: sticky; top: 0; z-index: 10;
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.brand { font-weight: 800; letter-spacing: 0.16em; font-size: 15px; color: var(--ink); text-decoration: none; }
.brand b { color: var(--gold); }
nav a { color: var(--muted); text-decoration: none; margin-left: 22px; font-size: 14px; }
nav a:hover { color: var(--gold); }
nav a.cta { color: #111722; background: var(--gold); padding: 8px 16px; border-radius: 999px; font-weight: 700; }
nav a.cta:hover { background: #f4bd6d; color: #111722; }
.nav-toggle { display: none; background: none; border: 0; color: var(--ink); font-size: 24px; line-height: 1; cursor: pointer; padding: 8px; }

/* Mobile nav: hamburger dropdown. */
@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .site-header nav {
    display: none;
    position: absolute; top: 62px; left: 0; right: 0;
    background: rgba(12, 16, 25, 0.98);
    flex-direction: column; align-items: stretch;
    padding: 6px 20px 16px; border-bottom: 1px solid var(--line);
    z-index: 20;
  }
  .site-header.nav-open nav { display: flex; }
  .site-header nav a { margin: 0; padding: 12px 4px; font-size: 15px; border-top: 1px solid var(--line); }
  .site-header nav a:first-child { border-top: 0; }
  .site-header nav a.cta { margin-top: 10px; text-align: center; border-top: 0; }
  .site-header nav form { margin: 10px 0 0; }
  .site-header nav form button { width: 100%; }
}

/* hero */
.hero { padding: 56px 0 40px; }
.kicker { text-transform: uppercase; letter-spacing: 0.18em; font-size: 12px; color: var(--muted); }
h1, h2, h3 { font-family: var(--serif); letter-spacing: -0.01em; }
.hero h1 { font-size: 44px; margin: 10px 0 14px; line-height: 1.05; }
.hero h1 em { color: var(--gold); font-style: normal; }
.lede { color: var(--muted); font-size: 17px; max-width: 640px; line-height: 1.5; }
.btn {
  display: inline-block; background: var(--gold); color: #111722; font-weight: 700;
  padding: 12px 26px; border-radius: 999px; text-decoration: none; border: none;
  cursor: pointer; font-size: 15px; margin-top: 18px;
}
.btn:hover { background: #f4bd6d; }
.btn.ghost { background: transparent; color: var(--gold); border: 1px solid var(--gold); margin-left: 10px; }
.btn.danger { background: transparent; color: var(--coral); border: 1px solid var(--coral); padding: 7px 14px; font-size: 13px; margin-top: 0; }
.btn.small { padding: 7px 16px; font-size: 13px; margin-top: 0; }

/* cards */
.section-title { font-size: 26px; margin: 44px 0 18px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.card {
  background: linear-gradient(165deg, rgba(237, 174, 82, 0.07), var(--bg2) 55%);
  border: 1px solid var(--line); border-radius: 14px; padding: 20px;
}
.card h3 { margin: 0 0 6px; font-size: 20px; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: var(--gold); }
.card .tag { color: var(--gold); font-size: 13px; letter-spacing: 0.04em; }
.card p { color: var(--muted); font-size: 14px; line-height: 1.5; }
.meta { color: var(--faint); font-size: 13px; }

/* feed */
.post { border-left: 3px solid var(--coral); background: var(--panel); border-radius: 0 12px 12px 0; padding: 16px 20px; margin-bottom: 14px; }
.post .kind { font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--coral); }
.post h3 { margin: 6px 0 4px; font-size: 18px; }
.post p { color: var(--muted); margin: 0; font-size: 14px; }
.post time { color: var(--faint); font-size: 12px; }

/* forms */
form.stacked { max-width: 520px; }
label { display: block; font-size: 13px; color: var(--muted); margin: 14px 0 6px; }
input[type="text"], input[type="email"], input[type="password"], input[type="tel"], input[type="number"], input[type="datetime-local"], textarea, select {
  width: 100%; background: var(--bg2); border: 1px solid var(--line); color: var(--ink);
  border-radius: 10px; padding: 11px 14px; font-size: 15px; font-family: var(--sans);
}
textarea { min-height: 110px; resize: vertical; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--gold); }
.errors { background: rgba(231, 95, 78, 0.12); border: 1px solid var(--coral); border-radius: 10px; padding: 12px 18px; color: #f2b8b1; }
.errors li { margin: 4px 0; }
.notice { background: rgba(237, 174, 82, 0.1); border: 1px solid var(--gold); border-radius: 10px; padding: 14px 18px; color: var(--ink); }

/* tables */
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
th { color: var(--faint); font-weight: 600; text-transform: uppercase; font-size: 11px; letter-spacing: 0.1em; }
.badge { display: inline-block; padding: 3px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.badge.pending { background: rgba(237, 174, 82, 0.16); color: var(--gold); }
.badge.active, .badge.published { background: rgba(102, 187, 106, 0.16); color: #8fd694; }
.badge.rejected, .badge.draft { background: rgba(231, 95, 78, 0.16); color: var(--coral); }
.row-actions form { display: inline; margin-right: 8px; }

/* admin */
.admin-bar { background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 18px; margin-bottom: 26px; display: flex; justify-content: space-between; align-items: center; }
.admin-bar .who { color: var(--muted); font-size: 14px; }
.columns { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
@media (max-width: 820px) { .columns { grid-template-columns: 1fr; } .hero h1 { font-size: 34px; } }

footer { border-top: 1px solid var(--line); padding: 22px 0; color: var(--faint); font-size: 13px; }
footer .wrap { display: flex; justify-content: space-between; }
.empty { color: var(--faint); font-style: italic; }

/* billing (milestone 3) */
.plan-cards { display: flex; gap: 12px; flex-wrap: wrap; margin: 6px 0 4px; }
.plan-card {
  display: flex; flex-direction: column; gap: 4px;
  border: 1px solid var(--line); border-radius: 12px;
  padding: 16px 20px; cursor: pointer; min-width: 150px;
  transition: border-color 0.15s;
}
.plan-card:hover { border-color: var(--gold); }
.plan-card input { accent-color: var(--gold); }
.plan-card:has(input:checked) { border-color: var(--gold); background: rgba(237, 174, 82, 0.06); }
.plan-name { font-weight: 700; font-size: 16px; }
.plan-price { font-size: 24px; font-weight: 700; color: var(--gold); }
.plan-price .per { font-size: 13px; font-weight: 400; color: var(--faint); }
.code-block {
  background: #06090f; border: 1px solid var(--line); border-radius: 10px;
  padding: 14px 18px; font-family: ui-monospace, monospace; font-size: 13px;
  white-space: pre-wrap; color: var(--ink);
}
.badge.trialing { background: rgba(237, 174, 82, 0.16); color: var(--gold); }
.badge.past_due { background: rgba(231, 95, 78, 0.16); color: var(--coral); }
.badge.canceled { background: rgba(255, 255, 255, 0.08); color: var(--faint); }
/* Self-service signup (/join): honeypot field — hidden from humans. */
.hp-field { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
/* Social links on venue profiles. */
.social-links { margin-top: 10px; }
.social-links a { font-weight: 600; }

/* Venue photo gallery (public venue page). */
.venue-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 24px 0; }
.venue-gallery img { width: 100%; height: 180px; object-fit: cover; border-radius: 8px; display: block; }
.venue-gallery img.featured { grid-column: span 2; grid-row: span 2; height: 370px; }
@media (max-width: 640px) {
  .venue-gallery { grid-template-columns: repeat(2, 1fr); }
  .venue-gallery img { height: 140px; }
  .venue-gallery img.featured { height: 290px; }
}
/* Menu text preserves the owner's line breaks. */
.menu-text { white-space: pre-wrap; }
/* Dashboard photo manager. */
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin: 12px 0; }
.photo-thumb { position: relative; }
.photo-thumb img { width: 100%; height: 120px; object-fit: cover; border-radius: 8px; display: block; }
.photo-actions { display: flex; gap: 4px; margin-top: 4px; }
.photo-actions form { margin: 0; }
.photo-actions button { cursor: pointer; border: 1px solid var(--line, #ddd); background: #fff; border-radius: 6px; padding: 2px 8px; font-size: 13px; }

/* Emergency broadcast banner: high-visibility red, used for admin
   emergency alerts on member and venue dashboards. */
.emergency-banner {
  background: #fdecea;
  border: 2px solid #c0392b;
  border-radius: 10px;
  padding: 16px 18px;
  color: #7b241c;
  margin-bottom: 18px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.emergency-banner .meta { color: #935116; font-size: 0.85em; }
