:root {
  /* Shindiggity brand: teal #22C1B6 · purple #7B5CF6 · pink #FF5CAB ·
     coral #FF7A59 · navy #11162B — "Every moment. Together." */
  --bg: #11162B; --card: #1A2142; --card2: #252E5C; --text: #F5F7FF;
  --muted: #9AA3C7; --accent: #22C1B6; --accent2: #7B5CF6; --pink: #FF5CAB;
  --coral: #FF7A59; --ok: #22C1B6; --rose: #FF5CAB; --line: #232B4F;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg); color: var(--text); min-height: 100vh;
}
.wrap { max-width: 860px; margin: 0 auto; padding: 20px 20px 90px; }

/* ---- app bar: persistent brand header on app pages (injected by shindig.js).
       Full wordmark on desktop, S-mark on mobile; Home collapses to 🏠. ---- */
.appbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 22px; border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 40;
  background: rgba(17, 22, 43, .92); backdrop-filter: blur(8px);
}
.appbar .logo img, .topnav .logo img { height: 32px; display: block; }
.appbar .logo .lg-s, .topnav .logo .lg-s { display: none; }
.appbar .apphome {
  color: var(--text); text-decoration: none; font-weight: 700; opacity: .85;
  display: flex; align-items: center; gap: 6px;
}
.appbar .apphome:hover { opacity: 1; }
.appbar .apphome .ic { display: none; }
.topnav .homeic { display: none; text-decoration: none; font-size: 1.25rem; margin-left: auto; padding: 0 10px; }
@media (max-width: 720px) {
  .appbar .logo .lg-full, .topnav .logo .lg-full { display: none; }
  .appbar .logo .lg-s, .topnav .logo .lg-s { display: block; }
  .appbar .apphome .txt { display: none; }
  .appbar .apphome .ic { display: block; font-size: 1.3rem; }
  .topnav .homeic { display: block; }
  .topnav nav { margin-left: 0; }
}

/* ---- monochrome inline icons ---- */
.icn { display: inline-block; vertical-align: -0.16em; }

/* ---- icon sub-tabs (e.g. host Setup: one panel of settings per module) ---- */
.subtabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.subtabs button {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  background: var(--card); border: 1px solid transparent; color: var(--muted);
  border-radius: 12px; padding: 10px 12px; font-size: .72rem; font-weight: 700;
  cursor: pointer; min-width: 72px;
}
.subtabs button .ico { font-size: 1.25rem; line-height: 1; display: block; }
.subtabs button.active { color: var(--text); border-color: var(--accent); background: #103B41; }
.subtabs button.active .ico { color: var(--accent); }
.setpane { display: none; }
.setpane.active { display: block; }
.brand {
  font-size: 1.05rem; font-weight: 800; letter-spacing: .02em;
  background: linear-gradient(90deg, var(--accent), var(--accent2), var(--pink));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.logoimg { height: 1.15em; vertical-align: -0.2em; }
.brandimg { height: 2.2em; vertical-align: middle; }
.tagline { color: var(--accent); font-size: .72rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; }
h1.big {
  font-size: 1.7rem; font-weight: 800;
  background: linear-gradient(90deg, var(--accent), var(--accent2), var(--pink));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.sub { color: var(--muted); font-size: .9rem; margin-top: 4px; }
button {
  border: none; border-radius: 10px; padding: 11px 16px; font-weight: 700;
  font-size: .9rem; cursor: pointer; font-family: inherit;
}
.primary { background: linear-gradient(90deg, var(--accent), var(--accent2)); color: #fff; }
.ghost { background: var(--card2); color: var(--text); }
.danger { background: #3A1B3E; color: var(--pink); }
button:disabled { opacity: .45; cursor: default; }
input[type="text"], input[type="password"], input[type="number"], textarea, select,
input[type="datetime-local"], input[type="date"], input[type="time"],
input[type="tel"], input[type="email"], input[type="file"] {
  width: 100%; padding: 13px 15px; border-radius: 12px; border: 1px solid #33334a;
  background: var(--card); color: var(--text); font-size: 1rem; outline: none; font-family: inherit;
  color-scheme: dark; /* native pickers (calendar/clock) render in dark mode */
}
/* every single-line control sits at exactly the same height (textareas excluded) */
input[type="text"], input[type="password"], input[type="number"], select,
input[type="datetime-local"], input[type="date"], input[type="time"],
input[type="tel"], input[type="email"], input[type="file"] {
  height: 50px;
}
input[type="file"] { padding-top: 12px; }
.inputrow .iconbtn, .mapbtn { height: 50px; }
input[type="datetime-local"]::-webkit-calendar-picker-indicator,
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator { filter: invert(0.85); cursor: pointer; }
input:focus, textarea:focus { border-color: var(--accent); }
/* Chrome/Safari autofill paints fields yellow — force the dark theme instead */
input:-webkit-autofill, input:-webkit-autofill:hover, input:-webkit-autofill:focus, input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px var(--card) inset;
  -webkit-text-fill-color: var(--text);
  caret-color: var(--text);
  transition: background-color 999999s ease-in-out 0s;
}
/* input + trailing icon-button on one row (e.g. date field + calendar button) */
.inputrow { display: flex; gap: 8px; }
.inputrow input { flex: 1; min-width: 0; }
.inputrow .iconbtn {
  flex: 0 0 auto; width: 48px; border-radius: 12px; border: 1px solid #33334a;
  background: var(--card2); color: var(--text); font-size: 1.15rem; cursor: pointer;
}
.inputrow .iconbtn:hover { border-color: var(--accent); }
.field { margin-bottom: 12px; }
label.lbl { display: block; color: var(--muted); font-size: .78rem; margin: 0 0 5px 3px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.banner {
  background: #2A2352; color: #C9BFFF; border: 1px solid #4A3F8F;
  padding: 8px 12px; border-radius: 10px; font-size: .8rem; margin-bottom: 14px;
  display: none; text-align: center;
}
.pill { font-size: .75rem; padding: 5px 11px; border-radius: 999px; background: var(--card2); color: var(--muted); }
.pill.ok { background: #103B41; color: var(--accent); }
.card { background: var(--card); border-radius: 14px; padding: 14px; }
.section-title {
  margin: 24px 0 10px; font-size: .8rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted); font-weight: 700;
  display: flex; justify-content: space-between; align-items: center;
}
.art {
  width: 48px; height: 48px; border-radius: 8px; background: var(--card2);
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; overflow: hidden;
}
.art img { width: 100%; height: 100%; object-fit: cover; }
.meta { flex: 1; min-width: 0; }
.meta .t { font-weight: 600; font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.meta .a { color: var(--muted); font-size: .82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qitem {
  display: flex; align-items: center; gap: 10px; padding: 9px 4px;
  border-bottom: 1px solid var(--line); font-size: .92rem;
}
.qitem .num { color: var(--muted); width: 22px; text-align: right; font-variant-numeric: tabular-nums; }
.qitem .by { margin-left: auto; color: var(--muted); font-size: .8rem; flex-shrink: 0; }
.tag { font-size: .66rem; font-weight: 800; padding: 2px 7px; border-radius: 999px; flex-shrink: 0; }
.tag.paid { background: #2A2352; color: #C9BFFF; }
.tag.pl { background: var(--card2); color: var(--muted); }
.now {
  background: linear-gradient(135deg, #1C2B54, #2A2352); border: 1px solid #3A4A8F;
  border-radius: 14px; padding: 14px; display: flex; gap: 12px; align-items: center;
}
.pulse { color: var(--accent); font-size: .72rem; font-weight: 700; letter-spacing: .1em; }
.toast {
  position: fixed; bottom: 84px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #07231F; padding: 11px 20px; border-radius: 999px;
  font-weight: 700; font-size: .9rem; opacity: 0; transition: opacity .3s; pointer-events: none;
  max-width: 90vw; text-align: center; z-index: 50;
}
.toast.err { background: var(--pink); color: #33071C; }
.toast.show { opacity: 1; }
.empty { color: var(--muted); font-size: .88rem; padding: 8px 4px; }
.hint { color: var(--muted); font-size: .78rem; margin-top: 6px; }
.tabs {
  position: fixed; bottom: 0; left: 0; right: 0; display: flex;
  background: #0D1223; border-top: 1px solid var(--line); z-index: 40;
  padding-bottom: env(safe-area-inset-bottom);
}
.tabs button {
  flex: 1; background: none; color: var(--muted); border-radius: 0; padding: 10px 4px 12px;
  font-size: .72rem; display: flex; flex-direction: column; gap: 3px; align-items: center;
}
.tabs button .ico { font-size: 1.25rem; }
.tabs button.active { color: var(--accent2); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.grid .cell {
  aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--card2);
  position: relative; cursor: pointer;
}
.grid .cell img, .grid .cell video { width: 100%; height: 100%; object-fit: cover; }
.grid .cell .who {
  position: absolute; bottom: 0; left: 0; right: 0; font-size: .62rem; padding: 3px 6px;
  background: linear-gradient(transparent, rgba(0,0,0,.75)); color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tickets-big {
  font-size: 3rem; font-weight: 800; text-align: center;
  background: linear-gradient(90deg, var(--accent), var(--accent2), var(--pink));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.gate { max-width: 320px; margin: 12vh auto; text-align: center; padding: 0 16px; }
.gate input { text-align: center; margin: 14px 0 0; }
.gate .err { color: var(--pink); font-size: .85rem; height: 1.2em; margin-top: 10px; }
progress { width: 100%; height: 4px; appearance: none; }
progress::-webkit-progress-bar { background: #33334a; border-radius: 2px; }
progress::-webkit-progress-value { background: var(--accent); border-radius: 2px; }
.sortable-ghost { opacity: .35; }

/* ---- marketing pages (landing, features, pricing, blog, events) ---- */
.mwrap { max-width: 1080px; margin: 0 auto; padding: 0 22px 40px; }
.topnav { display: flex; align-items: center; padding: 22px 0 10px; }
.topnav .logo img { height: 34px; display: block; }
.topnav nav { margin-left: auto; display: flex; gap: 26px; align-items: center; }
.topnav nav a.navlink { color: var(--text); opacity: .8; text-decoration: none; font-size: .95rem; font-weight: 600; }
.topnav nav a.navlink:hover { opacity: 1; }
.topnav a.cta {
  background: linear-gradient(90deg, var(--accent), var(--accent2)); color: #fff;
  padding: 10px 20px; border-radius: 10px; font-weight: 700; text-decoration: none; font-size: .92rem;
}
@media (max-width: 720px) { .topnav nav { gap: 14px } .topnav nav a.navlink { display: none } }
.mhero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 44px; align-items: center; padding: 9vh 0 40px; }
@media (max-width: 860px) { .mhero { grid-template-columns: 1fr; padding-top: 5vh } }
.mhero h1 { font-size: clamp(2.3rem, 5vw, 3.7rem); line-height: 1.07; font-weight: 800; letter-spacing: -.02em; }
.gradword {
  background: linear-gradient(90deg, var(--accent), var(--accent2), var(--pink), var(--coral));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.mhero p.lead { color: var(--muted); font-size: 1.15rem; margin-top: 18px; line-height: 1.55; max-width: 36ch; }
.mhero .joinhint { margin-top: 26px; font-size: .95rem; }
.mhero .joinhint a { color: var(--accent); text-decoration: none; font-weight: 700; }
.mtitle { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 800; letter-spacing: -.02em; margin: 6vh 0 8px; }
.msub { color: var(--muted); font-size: 1.05rem; margin-bottom: 30px; max-width: 60ch; }
.mfoot { color: var(--muted); font-size: .8rem; text-align: center; padding: 40px 0 16px; }
.mfoot a { color: var(--muted); }
.featgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.featgrid .card { overflow: hidden; }
.featgrid .fimg { width: calc(100% + 28px); margin: -14px -14px 12px; height: 150px; object-fit: cover; display: block; }
.featgrid .card h3 { font-size: 1rem; margin-bottom: 6px; }
.featgrid .card p { color: var(--muted); font-size: .88rem; line-height: 1.5; }
.narrow { max-width: 460px; margin: 0 auto; }

/* ---- site-styled confirm modal (replaces browser confirm()) ---- */
.cmodal {
  position: fixed; inset: 0; z-index: 90; display: flex; align-items: center;
  justify-content: center; background: rgba(8, 11, 24, .72); backdrop-filter: blur(3px);
  padding: 20px;
}
.cmodal .box {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 22px; max-width: 400px; width: 100%; box-shadow: 0 18px 50px rgba(0,0,0,.5);
}
.cmodal h3 { margin: 0 0 8px; font-size: 1.05rem; }
.cmodal p { color: var(--muted); font-size: .92rem; line-height: 1.55; margin: 0; }
.cmodal .btns { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; }
.cmodal .btns button { padding: 10px 18px; }
.cmodal .btns .danger { background: var(--pink); color: #fff; }
