@font-face { font-family: "Great Vibes"; src: url(/fonts/great-vibes.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url(/fonts/inter.woff2) format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url(/fonts/inter-italic.woff2) format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }

:root {
  --bg: #000;
  --bg-2: #050a07;
  --card: #0a0f0c;
  --line: #16291d;
  --line-accent: #1d5a35;
  --text: #f2f7f3;
  --muted: #8a9a90;
  --green: #00a651;
  --green-hot: #1fd170;
  --neon: #3dff8b;
  --danger: #ff6b6b;
  --radius: 16px;
  --script: "Great Vibes", "Snell Roundhand", "Brush Script MT", cursive;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--neon); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: -.01em; }
h2 { font-size: 1.3rem; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; }
.right { text-align: right; }
.mono { font-family: ui-monospace, Menlo, monospace; }
.script { font-family: var(--script); font-weight: 400; letter-spacing: 0; text-transform: none; }

/* nav */
.nav {
  display: flex; align-items: center; justify-content: space-between; gap: 8px 12px; flex-wrap: wrap;
  padding: 12px clamp(16px, 4vw, 40px);
  border-bottom: 1px solid var(--line-accent);
  background: rgba(0, 0, 0, .88);
  backdrop-filter: blur(10px);
  position: sticky; top: 0; z-index: 10;
}
.brand { color: var(--text); font-size: clamp(1.5rem, 5.5vw, 2rem); line-height: 1; white-space: nowrap; }
.brand:hover { text-decoration: none; color: var(--neon); }
.nav nav { display: flex; align-items: center; gap: clamp(10px, 3vw, 22px); flex-wrap: wrap; }
.nav nav a { color: var(--muted); font-size: .95rem; }
.nav nav a:hover { color: var(--text); text-decoration: none; }
.nav nav a.pill { color: var(--text); border: 1px solid #333; border-radius: 999px; padding: 8px 18px; }
.nav nav a.pill:hover { border-color: var(--green); }
.inline { display: inline; margin: 0; }
.linkish { background: none; border: 0; color: var(--muted); font: inherit; cursor: pointer; padding: 0; }
.linkish:hover { color: var(--text); }

main { flex: 1; width: 100%; max-width: 1100px; margin: 0 auto; padding: 32px clamp(16px, 4vw, 40px) 64px; }

/* footer */
.site-footer { border-top: 1px solid var(--line-accent); padding: 48px 16px 40px; text-align: center; }
.footer-logo { display: inline-block; color: var(--green-hot); font-size: clamp(2.2rem, 9vw, 2.8rem); line-height: 1.1; margin-bottom: 28px; }
.footer-logo:hover { text-decoration: none; color: var(--neon); }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 520px; margin: 0 auto; }
.footer-grid a, .footer-grid button {
  display: block; padding: 14px 10px; border: 1px solid #262626; border-radius: 10px; background: #0a0a0a;
  color: var(--text); font: inherit; font-size: .95rem; cursor: pointer; text-align: center;
}
.footer-grid a:hover, .footer-grid button:hover { border-color: var(--green); text-decoration: none; }
.footer-grid form { margin: 0; }
.footer-grid form button { width: 100%; }
.footer-note { color: var(--muted); font-size: .85rem; margin: 28px 0 14px; }
.footer-staff { color: var(--muted); font-size: .85rem; text-decoration: underline; text-underline-offset: 3px; }
.footer-staff:hover { color: var(--text); }

/* buttons */
.btn {
  display: inline-block; background: var(--green); color: #fff; border: 0; border-radius: 10px;
  padding: 12px 22px; font: inherit; font-weight: 700; cursor: pointer; text-align: center;
  white-space: nowrap; transition: transform .08s, box-shadow .2s, background .2s;
}
.btn:hover { text-decoration: none; background: var(--green-hot); box-shadow: 0 0 24px rgba(61, 255, 139, .3); }
.btn:active { transform: scale(.98); }
.btn.small { padding: 7px 14px; font-size: .9rem; }
.btn.ghost { background: transparent; color: var(--neon); border: 1px solid var(--line-accent); }
.btn.ghost:hover { border-color: var(--neon); }
.btn.block { display: block; width: 100%; }
.btn.cta { text-transform: uppercase; letter-spacing: .04em; font-size: 1.1rem; padding: 18px 36px; }

/* hero */
.hero { text-align: center; padding: clamp(32px, 8vw, 72px) 0 clamp(40px, 9vw, 80px); }
.hero-logo {
  color: var(--green-hot); font-size: clamp(3.2rem, 15vw, 6.5rem); line-height: 1.05; margin: 0;
  text-shadow: 0 0 40px rgba(31, 209, 112, .25);
}
.hero-rule { width: 64px; height: 2px; background: var(--green); margin: 28px auto 32px; }
.hero-tag { margin: 0; text-transform: uppercase; letter-spacing: .32em; color: #c9d3cc; font-size: clamp(.8rem, 3vw, 1rem); }
.section-label { color: var(--green-hot); text-transform: uppercase; letter-spacing: .3em; font-size: .9rem; font-weight: 600; margin: 0 0 24px; }

/* event list */
.event-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 40px 28px; margin-bottom: 56px; }
.event-list.past { opacity: .6; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.event-card { display: block; color: var(--text); }
.event-card:hover { text-decoration: none; }
.flyer-wrap { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid #1c1c1c; transition: border-color .15s, transform .15s; }
.event-card:hover .flyer-wrap { border-color: var(--green); transform: translateY(-2px); }
.stock-badge {
  position: absolute; left: 14px; bottom: 14px; padding: 6px 14px; border-radius: 999px;
  background: rgba(0, 0, 0, .78); backdrop-filter: blur(6px); color: #fff;
  font-size: .85rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}
.stock-badge.almost { background: #e5251f; color: #fff; border: 1px solid #ff5a4f; box-shadow: 0 0 18px rgba(229, 37, 31, .45); }
.stock-badge.soldout { background: rgba(20, 20, 20, .85); color: #c8c8c8; border: 1px solid #555; }
.when { color: var(--green-hot); font-weight: 600; font-size: .95rem; text-transform: uppercase; letter-spacing: .06em; margin-top: 14px; }
.event-card h3 { font-size: clamp(1.25rem, 4.5vw, 1.5rem); text-transform: uppercase; letter-spacing: .01em; font-weight: 700; margin: 6px 0 4px; }
.card-meta { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); }
.card-meta span:first-child { text-transform: uppercase; letter-spacing: .04em; }
.card-meta span:last-child { white-space: nowrap; }

.flyer { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; background: var(--bg-2); }
.flyer.placeholder {
  display: flex; align-items: flex-end; padding: 22px;
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(31, 209, 112, .35), transparent 60%),
    repeating-linear-gradient(135deg, transparent 0 22px, rgba(255,255,255,.025) 22px 44px),
    linear-gradient(170deg, #06311b 0%, #031a0e 55%, #000 100%);
}
.flyer.placeholder span { font-size: clamp(1.6rem, 7vw, 2.2rem); font-weight: 900; line-height: 1.05; text-transform: uppercase; text-shadow: 0 2px 14px rgba(0,0,0,.6); }
.flyer.big { border-radius: var(--radius); }

/* promoter call-to-action */
.promo-cta {
  text-align: center; padding: clamp(40px, 9vw, 72px) clamp(20px, 6vw, 56px);
  border: 1px solid var(--line-accent); border-radius: 32px; margin: 16px 0 64px;
  background: radial-gradient(90% 70% at 0% 0%, rgba(0, 166, 81, .22), transparent 70%), #000;
}
.promo-cta h2 { font-size: clamp(2.4rem, 10vw, 4rem); font-weight: 900; text-transform: uppercase; letter-spacing: -.02em; line-height: 1; margin-bottom: 24px; }
.promo-sub { font-style: italic; font-weight: 600; font-size: clamp(1.15rem, 4.5vw, 1.4rem); color: #e4ece6; max-width: 620px; margin: 0 auto 20px; }
.promo-body { color: var(--muted); font-size: clamp(1rem, 4vw, 1.15rem); max-width: 620px; margin: 0 auto 36px; }

/* event page */
.event { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 40px; align-items: start; }
.event-media { position: sticky; top: 90px; }
.event-info .when { margin-top: 0; }
.event-info h1 { text-transform: uppercase; font-weight: 800; }
.where { margin: 8px 0 20px; }
.description { white-space: pre-line; color: #d5ddd7; margin-bottom: 24px; }
.tickets-box, .promo-box { margin-bottom: 20px; }
.tier {
  display: grid; grid-template-columns: auto 1fr auto; gap: 4px 12px; align-items: center;
  border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin-bottom: 10px; cursor: pointer;
}
.tier:has(input:checked) { border-color: var(--neon); background: rgba(61, 255, 139, .06); }
.tier-price { font-weight: 700; }
.tier-left { grid-column: 2 / 4; color: var(--muted); font-size: .85rem; }
.tier-left:empty { display: none; }
.tier.soldout { opacity: .45; cursor: not-allowed; }
.qty { display: flex; align-items: center; justify-content: space-between; margin: 14px 0; }
.qty select { width: auto; }

/* account + text pages */
.account { max-width: 520px; margin: 0 auto; }
.account .card { margin-bottom: 16px; }
.account .section-label { margin-bottom: 8px; font-size: .75rem; }
.account-name { font-size: 1.4rem; font-weight: 700; margin: 0; }
.account .muted { margin: 4px 0 0; }
.account-links { margin: 0; }
.prose { max-width: 680px; margin: 0 auto; }
.prose h2 { font-size: 1.1rem; margin-top: 28px; color: var(--green-hot); }
.prose p { color: #d5ddd7; }

/* forms */
label { display: block; font-size: .9rem; color: var(--muted); margin-bottom: 14px; }
input, select, textarea {
  display: block; width: 100%; margin-top: 6px; padding: 11px 12px;
  background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: 10px; font: inherit;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--green); border-color: transparent; }
input[type=radio], input[type=checkbox] { width: auto; display: inline; margin: 0; accent-color: var(--green); }
label.check { display: flex; gap: 10px; align-items: center; color: var(--text); align-self: end; }
.auth { max-width: 420px; margin: 20px auto; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.form-grid .full { grid-column: 1 / -1; }
fieldset { border: 1px solid var(--line); border-radius: 10px; padding: 16px; margin: 0 0 16px; }
legend { padding: 0 6px; font-weight: 600; }
.tier-rows { display: grid; gap: 8px; }
.tier-row { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 10px; }
.tier-row input { margin: 0; }
.tier-row.head { color: var(--muted); font-size: .8rem; text-transform: uppercase; }
.copy-row { display: flex; gap: 10px; align-items: center; }
.copy-row input { margin: 0; font-family: ui-monospace, Menlo, monospace; font-size: .9rem; }

.flash, .error { padding: 12px 16px; border-radius: 10px; margin-bottom: 20px; }
.flash { background: rgba(0, 166, 81, .15); border: 1px solid var(--green); }
.error { background: rgba(255, 107, 107, .12); border: 1px solid var(--danger); color: #ffd1d1; }
.badge { display: inline-block; font-size: .75rem; padding: 2px 8px; border-radius: 999px; background: #3b3215; color: #ffd76b; margin-bottom: 8px; }

/* dashboards */
.page-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-bottom: 28px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.stat b { display: block; font-size: 1.6rem; color: var(--neon); }
.stat span { color: var(--muted); font-size: .85rem; }
section { margin-bottom: 32px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 500; font-size: .85rem; background: var(--bg-2); }
tr:last-child td { border-bottom: 0; }
.list { display: grid; gap: 14px; }
.row-card { display: flex; justify-content: space-between; gap: 16px; color: var(--text); }
.row-card:hover { text-decoration: none; border-color: var(--green); }
.mini-stats { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 12px; color: var(--muted); font-size: .9rem; }
.mini-stats b { color: var(--text); }

/* tickets */
.ticket-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.ticket {
  background: linear-gradient(160deg, #0f3a22, var(--card)); border: 1px dashed var(--green);
  border-radius: var(--radius); padding: 20px; text-align: center;
}
.ticket .code { font-family: ui-monospace, Menlo, monospace; font-size: 1.6rem; letter-spacing: .12em; color: var(--neon); margin: 10px 0; }
.ticket.used { opacity: .5; }

@media (max-width: 760px) {
  .event { grid-template-columns: 1fr; gap: 24px; }
  .event-media { position: static; max-width: 420px; }
  .form-grid { grid-template-columns: 1fr; }
  .row-card { flex-direction: column; }
  .row-card .right { text-align: left; }
}

/* ---------- QR tickets ---------- */
.ticket { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.ticket-head { display: flex; justify-content: space-between; width: 100%; font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; gap: 8px; }
.ticket-head span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qr { position: relative; width: 100%; max-width: 260px; background: #fff; border-radius: 12px; padding: 6px; }
.qr svg { display: block; width: 100%; height: auto; }
.qr-stamp {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 2.4rem; font-weight: 900; letter-spacing: .1em; color: var(--danger);
  background: rgba(255, 255, 255, .7); border-radius: 12px; transform: rotate(-12deg);
}
.ticket .code { font-size: 1.2rem; margin: 4px 0 0; }
.ticket.used { opacity: .7; }

/* ---------- Door scanner ---------- */
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; }
.stat.compact { padding: 10px 16px; text-align: right; }
.viewfinder {
  position: relative; width: 100%; max-width: 520px; aspect-ratio: 1; margin: 0 auto 16px;
  background: #000; border-radius: var(--radius); overflow: hidden; display: grid; place-items: center;
  border: 1px solid var(--line);
}
.viewfinder video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.viewfinder .btn { position: relative; z-index: 2; }
.reticle { position: absolute; inset: 18%; border: 3px solid rgba(61, 255, 139, .85); border-radius: 18px; box-shadow: 0 0 0 9999px rgba(0, 0, 0, .35); opacity: 0; transition: opacity .2s; }
.scanner.live .reticle { opacity: 1; }
.scan-result {
  max-width: 520px; margin: 0 auto 16px; padding: 18px; border-radius: var(--radius);
  font-size: 1.15rem; font-weight: 600; text-align: center; border: 1px solid var(--line); background: var(--card);
}
.scan-result.ok { background: #0b5d2e; border-color: var(--neon); color: #fff; }
.scan-result.bad { background: #5c1717; border-color: var(--danger); color: #fff; }
.scan-result.pending { opacity: .7; }
.scanner .manual { max-width: 520px; margin: 0 auto 16px; }
.scanner .manual summary { cursor: pointer; color: var(--muted); }
.scanner .manual form { margin-top: 12px; }
.scanner > .muted { max-width: 520px; margin: 0 auto; }
.ticket-check.valid { border-color: var(--neon); }
.ticket-check.used, .ticket-check.invalid { border-color: var(--danger); }
.btn.big { font-size: 1.2rem; padding: 18px; }

/* receipt email notice on the order page */
.email-box { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.email-box p { margin: 0; }
.email-box form { margin: 0; }

/* uploaded flyers keep their own shape (tall story-size flyers aren't cropped) */
img.flyer { aspect-ratio: auto; height: auto; }

/* flyer upload on the event form */
.flyer-field .flyer-upload { display: grid; grid-template-columns: 140px 1fr; gap: 18px; align-items: start; }
.flyer-thumb { width: 140px; border-radius: 10px; border: 1px solid var(--line); display: block; }
.flyer-thumb.empty { aspect-ratio: 4 / 5; display: grid; place-items: center; color: var(--muted); font-size: .85rem; background: var(--bg-2); }
input[type=file] { padding: 10px; cursor: pointer; }
input[type=file]::file-selector-button { background: var(--green); color: #fff; border: 0; border-radius: 8px; padding: 8px 14px; margin-right: 12px; font: inherit; font-weight: 600; cursor: pointer; }
.danger-zone { margin-top: 24px; border-color: #4a1d1d; }
.danger-zone h2 { color: var(--danger); font-size: 1.1rem; }
.btn.danger { background: #b3261e; margin-top: 12px; }
.btn.danger:hover { background: #d63a31; box-shadow: none; }
@media (max-width: 560px) { .flyer-field .flyer-upload { grid-template-columns: 1fr; } }

/* host setup checklist */
.setup-card { border-color: #5a4a14; background: linear-gradient(160deg, rgba(255, 196, 0, .07), var(--card)); margin-bottom: 28px; }
.setup-card h2 { color: #ffd76b; font-size: 1.1rem; }
.setup-card ul { margin: 0; padding-left: 20px; display: grid; gap: 10px; }
.setup-card code { background: #111; padding: 1px 5px; border-radius: 4px; }
