:root {
  --brand: #e11530;        /* vivid confident crimson — brand voice */
  --brand-600: #b90f26;    /* hover / pressed */
  --brand-700: #8c0a1d;    /* deep pressed */
  --brand-bright: #ff4d63; /* highlight on dark surfaces */
  --brand-tint: #fdeaed;   /* soft red wash — active states, badges */
  --brand-tint-line: #f6c9d0; /* border for tinted chips */
  --gold: #c8912b;         /* restrained premium accent (red-carpet gold) */
  --gold-soft: #f7edd7;
  /* Calm, cool neutrals — Luma-style clean surfaces. */
  --ink: #17161c;          /* near-black — headings */
  --ink-deep: #100f14;     /* darkest — photo overlays */
  --text: #3f3d47;         /* body (~9:1 on white) */
  --muted: #6c6a77;        /* secondary (~4.8:1 on white) */
  --line: #ecebf1;         /* hairline borders */
  --line-soft: #f4f3f8;
  --bg: #ffffff;
  --bg-page: #f7f6fa;      /* app canvas behind cards */
  --bg-soft: #f5f4f9;      /* soft neutral surface — hovers, wells */
  --surface: #ffffff;
  --success: #178a50;
  --danger: #c92a2a;
  --warning: #b7791f;
  --radius-lg: 24px;
  --radius: 18px;
  --radius-sm: 12px;
  --radius-pill: 999px;
  /* Soft, diffuse elevation. */
  --shadow-sm: 0 1px 2px rgba(20,18,30,.05);
  --shadow: 0 1px 2px rgba(20,18,30,.04), 0 8px 24px rgba(20,18,30,.06);
  --shadow-hover: 0 2px 6px rgba(20,18,30,.06), 0 20px 44px rgba(20,18,30,.13);
  --shadow-nav: 0 1px 0 rgba(20,18,30,.04), 0 10px 30px rgba(20,18,30,.05);
  --ring: 0 0 0 3px rgba(225,21,48,.16);  /* focus ring */
  /* Luma-style signature gradient — red-anchored: crimson → pink → orange → gold.
     Decorative only (hero text, aurora) — too light for white text at the gold end. */
  --grad: linear-gradient(100deg, #e11530 0%, #f31a7c 32%, #ff6a3d 64%, #f5a623 100%);
  --grad-2: linear-gradient(120deg, #e11530, #ff5a3c 55%, #f5a623);
  /* Contrast-safe gradient for buttons/white text — min 5.5:1 with #fff at every stop (WCAG AA). */
  --grad-btn: linear-gradient(100deg, #d10f2a 0%, #b3143f 42%, #a83c14 100%);
  --grad-brand-shadow: 0 8px 22px rgba(225,21,48,.28);
  /* Hero word-gradients (decorative headline accents). */
  --grad-cool: linear-gradient(92deg, #29d3ee 0%, #6a5cf5 100%);
  --grad-warm: linear-gradient(92deg, #ffcf3a 0%, #ff5fa2 100%);
  /* Deep marketing surfaces (hero / feature band / CTA overlays). */
  --maroon: #2b1116;
  --maroon-2: #43121d;
  --band-maroon: linear-gradient(120deg, #2a1015 0%, #4a1320 55%, #611826 100%);
  --bg-blush: #fbecef;     /* soft pink testimonial ground */
  /* Soft light "aurora" mesh — colourful blobs behind hero surfaces. */
  --aurora:
    radial-gradient(46% 60% at 12% 8%, rgba(243,26,124,.20), transparent 62%),
    radial-gradient(42% 58% at 88% 12%, rgba(245,166,35,.20), transparent 60%),
    radial-gradient(60% 80% at 70% 108%, rgba(225,21,48,.16), transparent 60%);
  --z-sticky: 40; --z-nav: 60; --z-dropdown: 70; --z-overlay: 90; --z-modal: 100;
  --nav-h: 68px;
  --font-display: "Bricolage Grotesque", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
/* Screen-reader-only: in the a11y tree, out of the visual layout. */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  border: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg-page);
  color: var(--text);
  line-height: 1.55;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 { color: var(--ink); line-height: 1.18; }
h1, h2 { font-family: var(--font-display); letter-spacing: -.021em; }
h3, h4 { letter-spacing: -.01em; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
::selection { background: var(--brand-tint); color: var(--brand-700); }

/* ---------- Luma-style gradient + motion utilities ---------- */
/* Gradient text — the signature "start here" treatment. */
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.grad-text--cool { background-image: var(--grad-cool); }
.grad-text--warm { background-image: var(--grad-warm); }
/* Animated gradient (subtle drift) for hero accents. */
.grad-text--anim { background-size: 200% 100%; animation: grad-drift 8s ease-in-out infinite; }
@keyframes grad-drift { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

/* Soft aurora backdrop applied to hero/marketing surfaces. */
.aurora { position: relative; isolation: isolate; }
.aurora::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--aurora); pointer-events: none;
}

/* Scroll-reveal: elements start hidden, .is-in fades them up (set by scroll.js). */
.io-reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.22,1,.36,1), transform .7s cubic-bezier(.22,1,.36,1); }
.io-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .io-reveal { opacity: 1 !important; transform: none !important; transition: none; }
  .grad-text--anim { animation: none; }
}

/* ---------- top navbar shell ---------- */
.app-main { display: flex; flex-direction: column; flex: 1; min-height: 100vh; }
.app-main-inner { display: flex; flex-direction: column; flex: 1; min-width: 0; }

.navbar {
  position: sticky; top: 0; z-index: var(--z-nav);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.navbar.is-scrolled { box-shadow: var(--shadow-nav); }
.navbar__inner {
  max-width: 1280px; margin: 0 auto; min-height: var(--nav-h);
  display: flex; align-items: center; gap: 1.1rem; padding: 0 1.5rem;
}

.brand {
  font-family: var(--font-display); font-weight: 800; font-size: 1.28rem;
  color: var(--ink); letter-spacing: -.03em; white-space: nowrap; flex-shrink: 0;
  display: inline-flex; align-items: center; gap: .55rem;
}
.brand:hover { text-decoration: none; color: var(--ink); }
.brand__mark {
  width: 15px; height: 15px; border-radius: 5px; flex-shrink: 0;
  background: var(--grad); box-shadow: 0 0 0 4px var(--brand-tint);
  transition: transform .25s cubic-bezier(.22,1,.36,1);
}
.brand:hover .brand__mark { transform: rotate(45deg) scale(1.05); }

.nav-primary { display: flex; align-items: center; gap: .1rem; }
.nav-link {
  position: relative; padding: .5rem .72rem; border-radius: 8px;
  color: var(--text); font-weight: 600; font-size: .93rem; white-space: nowrap;
  display: inline-flex; align-items: center; gap: .4rem; cursor: pointer;
  background: none; border: none; font-family: inherit;
}
.nav-link:hover { background: var(--bg-soft); color: var(--ink); text-decoration: none; }
.nav-link.active { color: var(--brand); }
.nav-link.active::after {
  content: ""; position: absolute; left: .72rem; right: .72rem; bottom: -.15rem;
  height: 2px; border-radius: 2px; background: var(--brand);
}
.nav-caret { width: .7em; transition: transform .18s ease; opacity: .7; }
.menu.open .nav-caret { transform: rotate(180deg); }

.nav-spacer { flex: 1; }
.nav-search { flex: 0 1 340px; min-width: 0; }
.nav-actions { display: flex; align-items: center; gap: .55rem; flex-shrink: 0; }
.nav-cta { padding: .55rem 1.05rem; }

/* dropdown menu component (JS-toggled) */
.menu { position: relative; }
.avatar-btn {
  width: 40px; height: 40px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--grad-btn); color: #fff; font-weight: 700; font-size: .9rem;
  font-family: var(--font-display); display: grid; place-items: center;
  box-shadow: 0 0 0 0 var(--brand-tint); transition: box-shadow .18s ease, transform .12s ease;
}
.avatar-btn:hover { box-shadow: 0 0 0 4px var(--brand-tint); }
.avatar-btn:active { transform: scale(.96); }
.menu__panel {
  position: absolute; top: calc(100% + 12px); right: 0; min-width: 244px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-hover); padding: .45rem; z-index: var(--z-dropdown);
  opacity: 0; transform: translateY(-8px) scale(.98); transform-origin: top right;
  pointer-events: none; transition: opacity .16s ease, transform .18s cubic-bezier(.22,1,.36,1);
}
.menu--left .menu__panel { right: auto; left: 0; transform-origin: top left; }
.menu.open .menu__panel { opacity: 1; transform: none; pointer-events: auto; }
.menu__panel a, .menu__panel button {
  display: flex; align-items: center; gap: .65rem; width: 100%; text-align: left;
  padding: .58rem .7rem; border-radius: 9px; color: var(--text);
  font-weight: 500; font-size: .93rem; background: none; border: none;
  font-family: inherit; cursor: pointer;
}
.menu__panel a:hover, .menu__panel button:hover { background: var(--bg-soft); color: var(--ink); text-decoration: none; }
.menu__panel a.active { color: var(--brand-700); background: var(--brand-tint); }
.menu__ico { width: 1.15em; text-align: center; flex-shrink: 0; }
.menu__label { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em;
  color: var(--muted); font-weight: 700; padding: .7rem .7rem .25rem; }
.menu__sep { height: 1px; background: var(--line-soft); margin: .4rem .3rem; }
.menu__user { padding: .35rem .7rem .55rem; }
.menu__user b { display: block; color: var(--ink); font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu__user span { color: var(--muted); font-size: .8rem; }

/* hamburger + mobile menu */
.hamburger { display: none; border: 1px solid var(--line); background: var(--surface);
  border-radius: 10px; width: 42px; height: 42px; cursor: pointer; color: var(--ink);
  align-items: center; justify-content: center; }
.hamburger svg { width: 20px; height: 20px; }
.mobile-menu { display: none; }
.nav-overlay { display: none; }

/* header search pill */
.search-pill {
  display: flex; align-items: center; background: var(--bg-soft);
  border: 1px solid var(--line); border-radius: var(--radius-pill, 999px);
  overflow: hidden; transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.search-pill:focus-within { border-color: var(--brand); background: #fff; box-shadow: 0 0 0 3px var(--brand-tint); }
.search-pill input {
  border: none; background: transparent; padding: .58rem .9rem;
  font-size: .92rem; color: var(--text); flex: 1; min-width: 0; outline: none;
}
.search-pill input::placeholder { color: var(--muted); }
.search-pill .sep { width: 1px; height: 22px; background: var(--line); }
.search-pill button {
  border: none; background: var(--grad-btn); color: #fff; width: 38px; height: 38px;
  border-radius: 50%; margin: 3px; cursor: pointer; font-size: 1rem; flex-shrink: 0;
  transition: transform .15s ease, filter .15s ease;
}
.search-pill button:hover { filter: brightness(1.06); transform: scale(1.04); }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 2.25rem 1.5rem; }
.container-wide { max-width: 1240px; }
main { flex: 1; }

/* ---------- hero ---------- */
.hero {
  position: relative; isolation: isolate;
  text-align: center;
  padding: 5rem 1rem 4.5rem;
  background: var(--bg);
  border-bottom: 1px solid var(--line-soft);
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: -10% -10% 0; z-index: -1;
  background: var(--aurora); filter: saturate(1.1);
}
.hero h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); margin: 0 0 .6rem; letter-spacing: -.03em; }
.hero p { color: var(--muted); max-width: 46ch; margin: 0 auto 1.75rem; font-size: 1.1rem; }
.hero-actions { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }
.hero .search-pill { max-width: 560px; margin: 0 auto; }

.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin: 2.5rem 0 1.25rem; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 0; }
.see-all { font-weight: 700; white-space: nowrap; }

/* ---------- marketing / brand surfaces ---------- */
.display { font-family: var(--font-display, inherit); letter-spacing: -.03em; text-wrap: balance; }

.landing-hero {
  position: relative;
  min-height: clamp(540px, 82vh, 760px);
  display: flex; align-items: flex-end;
  background-size: cover; background-position: center;
  overflow: hidden;
}
.landing-hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(18,10,12,.26) 0%, rgba(18,10,12,.48) 42%, rgba(18,10,12,.94) 100%),
    linear-gradient(115deg, rgba(225,21,48,.52) 0%, rgba(225,21,48,0) 58%);
}
.landing-hero__inner {
  position: relative; z-index: 1;
  width: 100%; max-width: 1120px; margin: 0 auto;
  padding: clamp(2rem, 6vw, 5rem) 1.5rem clamp(2.5rem, 5vw, 4rem);
  color: #fff;
}
.landing-hero h1 {
  color: #fff; font-weight: 800;
  font-size: clamp(2.5rem, 6.2vw, 5rem); line-height: 1.02;
  margin: 0 0 1rem; max-width: 16ch;
}
.landing-hero p {
  color: rgba(255,255,255,.92); font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  max-width: 56ch; margin: 0 0 1.75rem; line-height: 1.5;
}
.org-hero { align-items: center; text-align: left; }
.org-hero .landing-hero__inner { padding-block: clamp(3rem, 8vh, 6rem); }

.hero-search { max-width: 620px; }
.search-pill--hero {
  background: #fff; border-color: transparent;
  box-shadow: 0 18px 50px rgba(6, 12, 34, .35);
}
.search-pill--hero input { padding: .95rem 1.1rem; font-size: 1rem; }
.search-pill--hero button { width: 48px; height: 48px; margin: 4px; }

.hero-notes { list-style: none; display: flex; flex-wrap: wrap; gap: 1.25rem; padding: 0; margin: 1.5rem 0 0;
  font-size: .95rem; color: rgba(255,255,255,.85); font-weight: 600; }
.hero-notes li { position: relative; padding-left: 1.35rem; }
.hero-notes li::before { content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 8px; height: 8px; border-radius: 50%; background: var(--brand-bright); }
.hero-note { font-size: .95rem; color: rgba(255,255,255,.8); margin-top: 1rem; }

.btn.btn-ghost { background: transparent; border: 1px solid rgba(255,255,255,.55); color: #fff; }
.btn.btn-ghost:hover { background: rgba(255,255,255,.14); border-color: #fff; color: #fff; }
.btn.btn-on-dark { background: #fff; border-color: #fff; color: var(--brand); }
.btn.btn-on-dark:hover { background: var(--brand-tint); border-color: var(--brand-tint); color: var(--brand-600); }

/* organizer cross-sell band on landing */
.org-band {
  position: relative; margin-top: 3rem; background-size: cover; background-position: center;
  overflow: hidden;
}
.org-band::before { content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(18,10,12,.94) 28%, rgba(18,10,12,.6) 100%),
    linear-gradient(280deg, rgba(225,21,48,.42) 0%, rgba(225,21,48,0) 55%); }
.org-band__inner { position: relative; z-index: 1; max-width: 1120px; margin: 0 auto;
  padding: clamp(3rem, 7vw, 5rem) 1.5rem; color: #fff; }
.org-band h2 { color: #fff; font-size: clamp(1.8rem, 3.4vw, 2.8rem); margin: 0 0 .75rem; max-width: 20ch; }
.org-band p { color: rgba(255,255,255,.88); max-width: 54ch; font-size: 1.1rem; margin: 0 0 1.5rem; }

.empty-state { text-align: center; padding: 4rem 1rem; }
.empty-state h3 { font-size: 1.5rem; margin: 0 0 .3rem; }
.empty-state p { margin: 0 0 1.25rem; }

/* become: features + steps + cta */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; margin: 3rem 0; }
.feature { background: var(--surface); padding: 1.75rem; }
.feature h3 { font-size: 1.15rem; margin: 0 0 .4rem; }
.feature p { color: var(--muted); margin: 0; line-height: 1.55; }

.steps { margin: 4rem 0; }
.steps h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin: 0 0 2rem; max-width: 22ch; }
.steps__list { list-style: none; padding: 0; margin: 0; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }
.steps__list li { display: flex; gap: 1rem; align-items: flex-start; }
.steps__n { flex-shrink: 0; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--font-display, inherit);
  font-weight: 800; font-size: 1.2rem; color: #fff; background: var(--grad-btn);
  box-shadow: var(--grad-brand-shadow); }
.steps__list h3 { margin: .2rem 0 .3rem; font-size: 1.15rem; }
.steps__list p { color: var(--muted); margin: 0; }

.cta-band { position: relative; isolation: isolate; text-align: center; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(2.5rem, 5vw, 4rem) 1.5rem; margin: 3rem 0; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--aurora); }
.cta-band h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); margin: 0 0 .5rem; }
.cta-band p { color: var(--muted); margin: 0 0 1.5rem; }

/* reveal-on-load motion */
.reveal { opacity: 0; transform: translateY(18px); animation: reveal-up .7s cubic-bezier(.22,1,.36,1) forwards;
  animation-delay: calc(var(--d, 0) * 110ms); }
@keyframes reveal-up { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .reveal { animation: none; opacity: 1; transform: none; }
}

/* ---------- cards / generic ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}
.card + .card { margin-top: 1.25rem; }
.stack { display: flex; flex-direction: column; gap: 1rem; }
/* Gradient-edged feature card — Luma-flavoured accent surface. */
.card--grad { position: relative; border-color: transparent; }
.card--grad::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: var(--grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; opacity: .55;
}
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.card h2 { margin-top: 0; }
.auth-card { max-width: 460px; margin: .25rem auto 2rem; padding: 1.5rem 1.75rem; box-shadow: var(--shadow); }
.auth-card h1 { margin-top: 0; }
.auth-card .field { margin-bottom: .8rem; }
.auth-card > p.muted { margin: .1rem 0 1rem; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.hint { color: var(--muted); font-size: .8rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }

/* ---------- forms ---------- */
.field { margin-bottom: 1.15rem; display: flex; flex-direction: column; gap: .35rem; }
.field label { font-size: .9rem; color: var(--ink); font-weight: 600; }
.input {
  width: 100%;
  padding: .74rem .9rem;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
  transition: background .15s ease, border-color .15s ease, box-shadow .15s ease;
}
textarea.input { min-height: 90px; resize: vertical; }
.input::placeholder { color: var(--muted); }
.input:hover { border-color: #dcdae4; }
.input:focus { outline: none; background: var(--surface); border-color: var(--brand); box-shadow: var(--ring); }
select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236f7287' d='M6 8 0 2l1.4-1.4L6 5.2 10.6.6 12 2z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .8rem center; padding-right: 2rem; }
.otp-input { letter-spacing: .5em; text-align: center; font-size: 1.4rem; }
.field-error { color: var(--danger); font-size: .82rem; }

/* ---------- buttons ---------- */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .74rem 1.4rem;
  background: var(--grad-btn); background-size: 140% 140%; background-position: 0% 50%;
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: .98rem;
  font-weight: 650;
  cursor: pointer;
  text-align: center;
  box-shadow: var(--grad-brand-shadow);
  transition: transform .16s cubic-bezier(.22,1,.36,1), box-shadow .18s ease, background-position .5s ease;
}
.btn:hover { background-position: 100% 50%; text-decoration: none; color: #fff;
  transform: translateY(-2px); box-shadow: 0 12px 28px rgba(225,21,48,.34); }
.btn:active { transform: translateY(0); box-shadow: var(--shadow-sm); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-block { width: 100%; }
.btn-lg { padding: .95rem 1.6rem; font-size: 1.05rem; border-radius: var(--radius); }
.btn-sm { padding: .48rem .95rem; font-size: .88rem; }
.btn-outline { background: var(--surface); border: 1px solid var(--line); color: var(--ink); box-shadow: var(--shadow-sm); }
.btn-outline:hover { background: var(--bg-soft); border-color: var(--ink); color: var(--ink); box-shadow: var(--shadow-sm); }
.btn-dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; border-color: #000; color: #fff; box-shadow: 0 6px 18px rgba(20,18,30,.22); }
.link-btn { background: none; border: none; color: var(--brand); cursor: pointer; padding: .5rem; font-size: .9rem; }
.link-btn.danger { color: var(--danger); }
.link-btn:disabled, .link-btn.is-disabled { color: var(--muted); cursor: not-allowed; opacity: .7; }
.otp-code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 1.05rem; font-weight: 700; letter-spacing: .12em; background: var(--surface-2, #f1f1f4); padding: .15rem .45rem; border-radius: 6px; }

/* ---------- flashes ---------- */
.flashes { margin-bottom: 1.25rem; display: flex; flex-direction: column; gap: .5rem; }
.flash { padding: .75rem 1rem; border-radius: var(--radius-sm); font-size: .92rem; border: 1px solid var(--line); background: var(--bg-soft); color: var(--ink); }
.flash-info { background: var(--brand-tint); border-color: var(--brand-tint-line); }
.flash-success { background: #e9f7ef; border-color: #a9dcc0; }
.flash-warning { background: #fff6e6; border-color: #f0d089; }
.flash-danger { background: #fdecec; border-color: #f2b8b8; }

.footer { text-align: center; padding: 2rem 1.5rem; color: var(--muted); font-size: .85rem; border-top: 1px solid var(--line); background: var(--bg-soft); }

/* ---------- tables ---------- */
.table { width: 100%; border-collapse: collapse; margin: .5rem 0 1rem; font-size: .92rem; }
.table th, .table td { text-align: left; padding: .7rem .5rem; border-bottom: 1px solid var(--line-soft); }
.table th { color: var(--muted); font-weight: 600; }
.table .right { text-align: right; }
.table tfoot td { border-bottom: none; padding-top: .5rem; }
.table tr.total td { border-top: 1px solid var(--line); font-size: 1.05rem; }
.table td.credit { color: var(--success); }
.table td.debit { color: var(--danger); }
.row-actions { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.row-actions form { display: inline; }

/* ---------- badges ---------- */
.badge { display: inline-block; padding: .15rem .55rem; border-radius: 999px; font-size: .72rem; font-weight: 600;
  background: var(--bg-soft); border: 1px solid var(--line); color: var(--muted); }
.badge-primary { background: var(--brand-tint); border-color: var(--brand-tint-line); color: var(--brand-700); }
.badge-live { background: #e9f7ef; border-color: #a9dcc0; color: var(--success); }
.badge-draft { background: var(--bg-soft); }
.badge-pending { background: #fff6e6; border-color: #f0d089; color: var(--warning); }
.badge-suspended, .badge-ended { background: #fdecec; border-color: #f2b8b8; color: var(--danger); }

/* ---------- event grid (browse) ---------- */
.filters { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 1rem; }
.filters .input { flex: 1 1 160px; width: auto; }

.pills { display: flex; gap: .6rem; flex-wrap: wrap; margin: 1.25rem 0; }
.pill { padding: .5rem 1rem; border: 1px solid var(--line); border-radius: 999px; color: var(--text);
  font-size: .9rem; font-weight: 600; background: var(--surface); white-space: nowrap; box-shadow: var(--shadow-sm);
  transition: border-color .14s ease, background .14s ease, color .14s ease; }
.pill:hover { border-color: var(--ink); text-decoration: none; }
.pill.active { background: var(--ink); border-color: var(--ink); color: #fff; box-shadow: none; }

.event-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(288px, 1fr)); gap: 1.6rem; margin-top: 1rem; }
.event-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; color: var(--text); display: flex; flex-direction: column; box-shadow: var(--shadow-sm);
  transition: box-shadow .2s ease, transform .2s cubic-bezier(.22,1,.36,1), border-color .2s ease; }
.event-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); border-color: transparent; }

/* ♡ save button — outline (unsaved) vs filled (saved) so state isn't colour-only. */
.save-btn { position: absolute; top: .6rem; right: .6rem; width: 36px; height: 36px; border-radius: 50%;
  border: none; background: rgba(255,255,255,.94); color: var(--muted); font-size: 1.05rem; cursor: pointer;
  box-shadow: 0 2px 6px rgba(40,44,63,.18); line-height: 1; transition: transform .12s ease, color .12s ease; }
.save-btn::before { content: "\2661"; }         /* ♡ hollow heart = unsaved */
.save-btn.saved::before { content: "\2764"; }   /* ❤ solid heart = saved */
.save-btn:hover { transform: scale(1.08); color: var(--brand); }
.save-btn.saved { color: var(--brand); }
.save-btn-lg { position: static; width: 44px; height: 44px; font-size: 1.2rem; background: var(--bg-soft); box-shadow: none; border: 1px solid var(--line); }
.detail-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.event-cover { display: block; height: 176px; background: linear-gradient(135deg, var(--brand-tint), #f4a6b1); position: relative;
  background-size: cover; background-position: center; overflow: hidden; }
.event-cover-img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* category badge on cover: white pill, bottom-left (grid) / top-left (feature) */
.cover-badge { position: absolute; bottom: .8rem; left: .8rem; z-index: 2; padding: .3rem .8rem; border-radius: var(--radius-pill);
  background: #fff; color: var(--ink); font-size: .74rem; font-weight: 700; letter-spacing: .01em; box-shadow: 0 3px 10px rgba(20,18,30,.2); }
.event-body { padding: 1.05rem 1.15rem 1.2rem; display: flex; flex-direction: column; gap: .65rem; flex: 1; }
.event-body h3 { margin: 0; font-size: 1.1rem; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.event-body h3 a { color: var(--ink); }
.event-body h3 a:hover { color: var(--brand); text-decoration: none; }
.event-meta { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .45rem;
  color: var(--muted); font-size: .86rem; }
.event-meta li { display: flex; align-items: center; gap: .5rem; min-width: 0; }
.event-meta .mi { width: 16px; height: 16px; flex: none; color: currentColor; opacity: .85; }
.event-meta .org-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.event-meta .verified { width: 15px; height: 15px; flex: none; }
.org-avatar { flex: none; width: 24px; height: 24px; border-radius: 50%; overflow: hidden; display: inline-grid; place-items: center;
  background: var(--brand-tint); color: var(--brand-700); font-size: .64rem; font-weight: 800; letter-spacing: .02em; }
.event-div { border: none; border-top: 1px solid var(--line); margin: .2rem 0 .1rem; }
.event-foot { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.price-inline { display: inline-flex; align-items: center; gap: .35rem; color: var(--muted); font-size: .84rem; white-space: nowrap; }
.price-inline .mi { width: 16px; height: 16px; color: var(--brand); }
.price-inline b { color: var(--ink); font-weight: 800; }
.sold { display: flex; align-items: center; gap: .5rem; min-width: 0; }
.sold-bar { width: 62px; flex: none; height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; }
.sold-bar span { display: block; height: 100%; border-radius: 999px; background: var(--brand); }
.sold-meta { font-size: .72rem; color: var(--ink); font-weight: 700; white-space: nowrap; }
.sold-meta span { color: var(--muted); font-weight: 600; }
.event-body .btn { margin-top: auto; }
.cat-chip { display: inline-block; margin-top: .4rem; padding: .1rem .55rem; border-radius: 999px;
  background: var(--bg-soft); border: 1px solid var(--line); color: var(--muted); font-size: .78rem; font-weight: 600; }
.cat-chip-link { margin: 0 0 .6rem; }
.cat-chip-link:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }

/* following page */
.follow-group { padding: 1.5rem 0; border-top: 1px solid var(--line-soft); }
.follow-group:first-of-type { border-top: none; }
.follow-group-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }

/* ---------- event detail ---------- */
/* centered hero with a soft blurred backdrop of the same image */
/* Fixed height reserves the hero box so it never shifts when the image loads. */
.detail-hero-wrap { position: relative; border-radius: 12px; overflow: hidden; margin-bottom: 1rem;
  background: var(--ink-deep); height: clamp(260px, 42vw, 440px); display: flex; align-items: center; justify-content: center; }
.detail-hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center;
  filter: blur(28px) brightness(.7); transform: scale(1.15); }
.detail-hero-img { position: relative; max-height: 100%; max-width: 100%; width: auto; display: block; z-index: 1; }
.detail-hero-plain { width: 100%; height: clamp(260px, 42vw, 440px); background: linear-gradient(135deg, var(--brand-tint), #f4899a); }
/* Cover 404 / load error → hide the broken layers, show a gradient fallback. */
.detail-hero-wrap.hero-broken { background: linear-gradient(135deg, var(--brand-tint), #f4899a); }
.detail-hero-wrap.hero-broken .detail-hero-bg, .detail-hero-wrap.hero-broken .detail-hero-img { display: none; }

.detail-actions { display: flex; justify-content: flex-end; gap: .6rem; margin-bottom: .5rem; }
.icon-btn { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: #fff;
  color: var(--ink); font-size: 1.05rem; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.icon-btn:hover { background: var(--bg-soft); }
.icon-btn.save-btn { position: static; box-shadow: none; color: var(--muted); }
.icon-btn.save-btn.saved { color: var(--brand); }

.detail-layout { display: grid; grid-template-columns: 1fr 340px; gap: 2.5rem; align-items: start; }
.detail-main h1 { font-size: 2.2rem; margin: 0 0 1rem; letter-spacing: -.02em; }

.org-inline { display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; }
.org-inline .org-avatar { width: 40px; height: 40px; font-size: 1rem; }
.meta-lines { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1rem; }
.meta-line { color: var(--text); }
.meta-line .mi { display: inline-block; width: 1.4em; }

.detail-section { padding: 1.5rem 0; border-top: 1px solid var(--line-soft); }
.detail-section h2 { font-size: 1.35rem; margin: 0 0 .8rem; }
.detail-section p { white-space: pre-line; }

.know-card { border: 1px solid var(--line); border-radius: 10px; padding: 1rem 1.25rem; max-width: 320px; }
.know-card strong { display: block; margin-bottom: .6rem; }
.know-item { color: var(--muted); padding: .25rem 0; }
.know-item .mi { display: inline-block; width: 1.5em; }

.map-embed { margin-top: 1rem; height: 260px; border-radius: 10px; border: 1px solid var(--line);
  overflow: hidden; background: var(--bg-soft); z-index: 0; }
.map-embed.map-hidden { display: none; }
.map-fallback { display: flex; align-items: center; justify-content: center; height: 100%; color: var(--muted); font-size: .9rem; padding: 1rem; text-align: center; }
.map-directions { margin-top: .8rem; }

.org-card { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.25rem; background: var(--bg-soft); border-radius: var(--radius); }
.org-card-body { flex: 1; }
.org-avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--brand); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.2rem; flex-shrink: 0; }
.follow-btn { background: var(--brand); border-color: var(--brand); color: #fff; }
.follow-btn:hover { background: var(--brand-600); border-color: var(--brand-600); color: #fff; }
.follow-btn.following { background: #fff; color: var(--ink); border: 1px solid var(--ink); }
.report-line { margin-top: 1.5rem; }
.report-line a { color: var(--muted); }
.related { border-top: 1px solid var(--line-soft); }

/* compact reserve card (sticky) */
.reserve-card { position: sticky; top: 88px; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow); padding: 1.25rem; background: #fff; }
.reserve-price { font-size: 1.15rem; font-weight: 800; color: var(--ink); }
.reserve-card .btn { margin-top: 1rem; }

/* ticket modal */
.ticket-modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: flex-end; justify-content: center; }
.ticket-modal.hidden { display: none; }
.ticket-modal-backdrop { position: absolute; inset: 0; background: rgba(18,10,12,.55); }
.ticket-modal-panel { position: relative; z-index: 1; background: #fff; width: 100%; max-width: 460px;
  border-radius: 16px 16px 0 0; padding: 1.5rem; max-height: 90vh; overflow-y: auto; box-shadow: var(--shadow-hover); }
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .5rem; }
.modal-head h2 { margin: 0; font-size: 1.25rem; }
.modal-close { border: none; background: none; font-size: 1.6rem; line-height: 1; cursor: pointer; color: var(--muted); }
@media (min-width: 640px) { .ticket-modal { align-items: center; } .ticket-modal-panel { border-radius: 16px; } }

.tier { display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .9rem 0; border-bottom: 1px solid var(--line-soft); }
.tier:last-of-type { border-bottom: none; }
.tier .tier-name { font-weight: 700; color: var(--ink); }
.tier .tier-price { color: var(--muted); font-size: .9rem; }
.tier .soldout { color: var(--danger); font-size: .82rem; font-weight: 600; }

/* stepper */
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line);
  border-radius: var(--radius-sm); overflow: hidden; }
.stepper button { width: 34px; height: 34px; border: none; background: #fff; color: var(--brand);
  font-size: 1.2rem; cursor: pointer; line-height: 1; }
.stepper button:disabled { color: var(--muted); cursor: not-allowed; }
.stepper .qty-val { min-width: 32px; text-align: center; font-weight: 700; color: var(--ink); }

.order-summary { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.order-summary .row { display: flex; justify-content: space-between; margin-bottom: .35rem; }
.order-summary .row.grand { font-weight: 800; color: var(--ink); font-size: 1.1rem; margin-top: .4rem; }

/* ---------- checkout page ---------- */
.checkout-layout { display: grid; grid-template-columns: 1fr 340px; gap: 2rem; align-items: start; }
.timer-bar { display: flex; align-items: center; gap: .6rem; background: #fff6e6; border: 1px solid #f0d089;
  color: var(--warning); border-radius: var(--radius-sm); padding: .6rem 1rem; font-weight: 600; margin-bottom: 1rem; }
.timer-bar strong { font-variant-numeric: tabular-nums; }
.summary-card { border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 1.25rem; position: sticky; top: 88px; }

/* ---------- tickets & QR ---------- */
.qr-wrap { text-align: center; margin: 1.25rem 0; }
.qr-img { background: #fff; padding: 12px; border-radius: 12px; border: 1px solid var(--line); }
.ticket-view { max-width: 460px; margin: 0 auto; box-shadow: var(--shadow); }
.ticket-meta { display: grid; grid-template-columns: auto 1fr; gap: .3rem 1rem; margin: 1rem 0; }
.ticket-meta dt { color: var(--muted); }
.ticket-meta dd { margin: 0; color: var(--ink); }
.ticket-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; margin-top: 1rem; }
.ticket-card { display: flex; gap: .8rem; align-items: center; background: #fff;
  border: 1px solid var(--line); border-radius: 10px; padding: .8rem; color: var(--text); }
.ticket-card:hover { box-shadow: var(--shadow); text-decoration: none; }
.qr-thumb { background: #fff; padding: 6px; border-radius: 8px; border: 1px solid var(--line); }
code { background: var(--bg-soft); padding: .1rem .35rem; border-radius: 4px; font-size: .9em; }

/* ---------- scanner ---------- */
.scanner .stats { color: var(--muted); font-size: .9rem; }
.scanner-video-wrap { position: relative; max-width: 460px; margin: 1rem auto; aspect-ratio: 1;
  background: #111; border-radius: 12px; overflow: hidden; }
#video { width: 100%; height: 100%; object-fit: cover; display: block; }
.scan-frame { position: absolute; inset: 18%; border: 3px solid rgba(255,255,255,.85); border-radius: 12px; pointer-events: none; }
.scan-result { padding: 1rem; border-radius: 10px; margin: 1rem 0; font-size: 1.1rem; border: 1px solid var(--line); }
.scan-badge { font-size: 1.5rem; font-weight: 800; margin: .35rem 0; }
.scan-who { color: var(--muted); font-size: .95rem; }
.checkin-code { font-size: 1.8rem; font-weight: 800; letter-spacing: .2em; color: var(--brand);
  background: var(--bg-soft); border: 1px dashed var(--line); border-radius: 8px; padding: .5rem 1rem; display: inline-block; }
.scan-result.result-valid { background: #e9f7ef; border-color: #a9dcc0; color: var(--success); }
.scan-result.result-already_used { background: #fff6e6; border-color: #f0d089; color: var(--warning); }
.scan-result.result-invalid, .scan-result.result-wrong_event, .scan-result.result-void { background: #fdecec; border-color: #f2b8b8; color: var(--danger); }
.hidden { display: none; }
.manual { margin: 1rem 0; }
.manual-form { display: flex; gap: .5rem; margin-top: .5rem; }
.recent { list-style: none; padding: 0; margin: .5rem 0; }
.recent-item { display: flex; justify-content: space-between; padding: .55rem .6rem; border-left: 3px solid var(--line);
  background: var(--bg-soft); margin-bottom: .35rem; border-radius: 4px; }
.recent-item.result-valid { border-left-color: var(--success); }
.recent-item.result-already_used { border-left-color: var(--warning); }
.recent-item.result-invalid, .recent-item.result-wrong_event, .recent-item.result-void { border-left-color: var(--danger); }

/* ---------- wallet ---------- */
.wallet-hero { text-align: center; background: linear-gradient(160deg, var(--brand-tint), #fff); }
.wallet-hero .balance { font-size: 2.6rem; font-weight: 800; margin: .3rem 0; color: var(--ink); }

/* ---------- admin ---------- */
.admin-shell { display: grid; grid-template-columns: 208px 1fr; gap: 1.75rem; }
.admin-nav { display: flex; flex-direction: column; gap: .15rem; position: sticky; top: calc(var(--nav-h) + 1rem);
  align-self: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: .5rem; box-shadow: var(--shadow-sm); }
.admin-nav a { display: flex; align-items: center; justify-content: space-between; gap: .5rem;
  padding: .58rem .8rem; border-radius: var(--radius-sm); color: var(--text); font-weight: 550; font-size: .93rem; }
.admin-nav a:hover { background: var(--bg-soft); color: var(--ink); text-decoration: none; }
.admin-nav a.active { background: var(--brand-tint); color: var(--brand-700); }
.nav-count { background: var(--brand); color: #fff; font-size: .7rem; font-weight: 700; line-height: 1;
  min-width: 1.25rem; height: 1.25rem; padding: 0 .35rem; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center; }
.admin-main h1 { margin-top: 0; }
.metric-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.metric { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; min-width: 0; box-shadow: var(--shadow-sm); }
.metric span { display: block; font-size: clamp(1.15rem, 1.8vw, 1.5rem); font-weight: 800; color: var(--ink);
  line-height: 1.15; overflow-wrap: anywhere; }
.metric label { color: var(--muted); font-size: .82rem; }
.section-sub { font-size: 1rem; color: var(--muted); margin: 1.5rem 0 .6rem; font-weight: 600; }
.bar-chart { display: flex; align-items: flex-end; gap: 3px; height: 160px; padding-top: .5rem; }
.bar-col { flex: 1; display: flex; align-items: flex-end; height: 100%; min-width: 3px; }
.bar { width: 100%; background: var(--brand); border-radius: 3px 3px 0 0; min-height: 2px; }
.bar-col:hover .bar { background: var(--brand-600); }
.bar-axis { display: flex; justify-content: space-between; color: var(--muted); font-size: .78rem; margin-top: .4rem; }

/* ---------- organizer access request ---------- */
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: var(--brand-700); background: var(--brand-tint);
  border: 1px solid var(--brand-tint-line); padding: .3rem .7rem; border-radius: 999px; margin-bottom: 1rem; }
.lede { font-size: 1.12rem; color: var(--muted); line-height: 1.6; max-width: 46ch; }
.request-page { display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center;
  padding: 1.5rem 0 2rem; }
.request-intro h1 { font-size: clamp(2rem, 4vw, 3rem); margin: 0 0 1rem; }
.perk-list { list-style: none; padding: 0; margin: 1.75rem 0 0; display: flex; flex-direction: column; gap: .7rem; }
.perk-list li { position: relative; padding-left: 1.9rem; color: var(--text); font-weight: 500; }
.perk-list li::before { content: "✓"; position: absolute; left: 0; top: -1px; width: 1.4rem; height: 1.4rem;
  display: grid; place-items: center; font-size: .72rem; font-weight: 800; color: #fff;
  background: var(--grad-btn); border-radius: 50%; box-shadow: var(--grad-brand-shadow); }
.request-form-card { position: relative; isolation: isolate; box-shadow: var(--shadow-hover); border-radius: var(--radius-lg); padding: 1.9rem; overflow: hidden; }
.request-form-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--aurora); opacity: .7; }
.request-form-card h2 { margin: 0 0 .2rem; font-size: 1.4rem; }
.request-form-card form { margin-top: 1.1rem; }
.request-pending { text-align: center; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 2.5rem 2rem; box-shadow: var(--shadow); }
.request-pending__badge { width: 68px; height: 68px; margin: 0 auto 1rem; border-radius: 50%;
  display: grid; place-items: center; font-size: 1.9rem; background: var(--grad); box-shadow: var(--grad-brand-shadow); }
.request-pending h2 { margin: 0 0 .6rem; }
.request-pending .btn { margin-top: 1.25rem; }

/* admin: organizer request cards */
.request-card { padding: 1.35rem 1.5rem; }
.request-card__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.request-card__head h3 { margin: 0 0 .15rem; font-size: 1.15rem; }
.request-card__msg { margin: .8rem 0 0; padding: .8rem 1rem; background: var(--bg-soft);
  border-radius: var(--radius-sm); color: var(--text); }
.request-card__actions { display: flex; gap: .75rem; align-items: center; margin-top: 1rem; flex-wrap: wrap; }
.request-card__actions .input { flex: 1; min-width: 200px; }
@media (max-width: 820px) {
  .request-page { grid-template-columns: 1fr; gap: 1.75rem; }
  .request-card__actions { flex-direction: column; align-items: stretch; }
}

/* ---------- create-event wizard ---------- */
.wizard-steps { display: flex; gap: .5rem; list-style: none; padding: 0; margin: 0 0 1.5rem; flex-wrap: wrap; }
.wizard-steps li { display: flex; align-items: center; gap: .5rem; color: var(--muted); font-weight: 600; font-size: .92rem; }
.wizard-steps li:not(:last-child)::after { content: ""; width: 26px; height: 1px; background: var(--line); margin-left: .5rem; }
.wizard-steps li span { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px;
  border-radius: 50%; border: 1px solid var(--line); font-size: .82rem; background: #fff; }
.wizard-steps li.active { color: var(--ink); }
.wizard-steps li.active span { background: var(--brand); border-color: var(--brand); color: #fff; }
.wizard-steps li.done span { background: var(--brand-tint); border-color: var(--brand-tint-line); color: var(--brand-700); }
.wizard-nav { display: flex; gap: .75rem; margin-top: 1rem; }
.category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: .6rem; }
.cat-tile { display: flex; flex-direction: column; align-items: center; gap: .35rem; padding: .9rem .5rem;
  border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; font-size: .88rem;
  color: var(--text); font-weight: 600; transition: border-color .12s ease, background .12s ease; }
.cat-tile:hover { border-color: var(--ink); }
.cat-tile.active { border-color: var(--brand); background: var(--brand-tint); color: var(--brand-700); }
.cat-ico { font-size: 1.5rem; line-height: 1; }
.input-invalid { border-color: var(--danger) !important; box-shadow: 0 0 0 3px rgba(201,42,42,.12) !important; }
.cover-preview { display: block; max-width: 260px; border-radius: 8px; border: 1px solid var(--line); margin-bottom: .5rem; }
input[type="file"].input { padding: .5rem; background: var(--bg-soft); cursor: pointer; }

.danger-zone { border-color: #f2b8b8; }
.danger-zone h2 { color: var(--danger); }
/* ticket-type line items */
.tt-list { list-style: none; padding: 0; margin: 0; }
.tt-item { display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .85rem 0; border-bottom: 1px solid var(--line-soft); }
.tt-item:last-child { border-bottom: none; }
.tt-item.is-inactive { opacity: .55; }
.tt-name { font-weight: 700; color: var(--ink); }
.tt-meta { color: var(--muted); font-size: .88rem; display: flex; gap: .4rem; flex-wrap: wrap; margin-top: .1rem; }
.tt-price { color: var(--brand); font-weight: 700; }
.tt-actions { display: flex; align-items: center; gap: .5rem; flex-shrink: 0; }
.tt-actions form { display: inline; }
.tt-delete { color: var(--danger); border-color: #f2b8b8; }
.tt-delete:hover { background: #fdecec; border-color: #f2b8b8; color: var(--danger); }
@media (max-width: 480px) { .tt-item { flex-direction: column; align-items: flex-start; } }

.fees { border: 1px solid var(--line); border-radius: 10px; padding: 1rem; margin: 1rem 0; }
.fees legend { padding: 0 .4rem; color: var(--ink); font-weight: 700; }
.blockers { color: var(--danger); margin: .5rem 0 1rem; padding-left: 1.2rem; }
.blockers li { margin: .2rem 0; }

/* ---------- responsive ---------- */
/* follow-by-email + guest buyer fields */
.follow-email { display: flex; gap: .5rem; margin-top: 1rem; }
.follow-email .input { flex: 1; }
.buyer-fields { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line-soft); }

/* ---------- mobile navigation menu ---------- */
.mobile-menu {
  display: block;
  position: fixed; left: 0; right: 0; top: var(--nav-h);
  max-height: calc(100dvh - var(--nav-h)); overflow-y: auto;
  background: var(--surface); border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-hover); padding: 1.1rem 1.25rem 1.75rem;
  z-index: var(--z-nav);
  opacity: 0; transform: translateY(-14px); pointer-events: none;
  transition: opacity .2s ease, transform .26s cubic-bezier(.22,1,.36,1);
}
body.nav-open .mobile-menu { opacity: 1; transform: none; pointer-events: auto; }
.mobile-menu__search { margin-bottom: 1.1rem; }
.mm-link { display: flex; align-items: center; gap: .75rem; padding: .8rem .6rem;
  border-radius: 10px; color: var(--text); font-weight: 600; font-size: 1rem; }
.mm-link:hover { background: var(--bg-soft); color: var(--ink); text-decoration: none; }
.mm-link.active { color: var(--brand-700); background: var(--brand-tint); }
.mm-ico { width: 1.3em; text-align: center; flex-shrink: 0; }
.mm-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em;
  color: var(--muted); font-weight: 700; padding: 1rem .6rem .3rem; }
.mm-sep { height: 1px; background: var(--line-soft); margin: .7rem 0; }
.mm-actions { display: grid; gap: .6rem; margin-top: 1.25rem; }
.mm-user { padding: .3rem .6rem 1rem; }
.mm-user b { display: block; color: var(--ink); }
.mm-user span { color: var(--muted); font-size: .85rem; }

/* nav collapses: search first, then full nav into the hamburger menu */
@media (max-width: 1040px) {
  .nav-search { display: none; }
}
@media (max-width: 860px) {
  .nav-primary, .nav-actions { display: none; }
  .hamburger { display: inline-flex; }
  body.nav-open .nav-overlay {
    display: block; position: fixed; inset: var(--nav-h) 0 0;
    background: rgba(18,10,12,.42); z-index: var(--z-sticky);
  }
}
@media (min-width: 861px) { .mobile-menu { display: none; } }

/* ============================================================
   HOMEPAGE REDESIGN
   ============================================================ */
.home-hero { position: relative; overflow: hidden; background-size: cover; background-position: center; isolation: isolate; }
.home-hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(30,12,16,.62) 0%, rgba(30,12,16,.78) 100%),
    linear-gradient(115deg, rgba(43,17,22,.96) 8%, rgba(43,17,22,.4) 60%, rgba(43,17,22,.2) 100%); }
.home-hero__inner { max-width: 1200px; margin: 0 auto; padding: clamp(3rem, 7vw, 6rem) 1.5rem clamp(3.5rem, 8vw, 6.5rem);
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 2rem; align-items: center; }
.home-hero__copy { color: #fff; max-width: 640px; }
.home-hero h1 { color: #fff; font-weight: 800; font-size: clamp(2.4rem, 5.2vw, 4.4rem); line-height: 1.03;
  margin: 0 0 1.1rem; letter-spacing: -.02em; }
.home-hero p { color: rgba(255,255,255,.86); font-size: clamp(1.02rem, 1.4vw, 1.2rem); max-width: 52ch;
  margin: 0 0 1.6rem; line-height: 1.55; }
.home-hero .hero-search { max-width: 560px; }

/* floating photo collage */
.home-hero__collage { position: relative; height: clamp(320px, 34vw, 460px); }
.home-hero__collage .hc { position: absolute; border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 24px 60px rgba(10,6,10,.5); border: 4px solid rgba(255,255,255,.9); }
.home-hero__collage .hc img { width: 100%; height: 100%; object-fit: cover; display: block; }
.home-hero__collage .hc--1 { width: 42%; aspect-ratio: 3/4; top: 2%; right: 30%; transform: rotate(-6deg); z-index: 3; }
.home-hero__collage .hc--2 { width: 46%; aspect-ratio: 4/3; top: 8%; right: -2%; transform: rotate(5deg); z-index: 2; }
.home-hero__collage .hc--3 { width: 40%; aspect-ratio: 4/3; bottom: 6%; left: 4%; transform: rotate(4deg); z-index: 4; }
.home-hero__collage .hc--4 { width: 34%; aspect-ratio: 1/1; bottom: 0; right: 12%; transform: rotate(-4deg); z-index: 5; }
.home-hero__collage .hc--5 { width: 30%; aspect-ratio: 3/4; top: 40%; right: 2%; transform: rotate(8deg); z-index: 1; }

/* logged-in welcome banner (userArea) */
.welcome { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  margin-top: .5rem; padding: clamp(1.5rem, 3vw, 2.5rem) clamp(1.5rem, 3vw, 2.75rem);
  border-radius: var(--radius); color: #fff;
  background: radial-gradient(120% 140% at 100% 0%, #ff4d63 0%, var(--brand) 45%, var(--brand-700) 100%); }
.welcome::before { content: ""; position: absolute; inset: 0; z-index: 0; opacity: .5; mix-blend-mode: soft-light;
  background:
    radial-gradient(30% 60% at 15% 120%, rgba(255,255,255,.5), transparent 60%),
    radial-gradient(24% 50% at 60% -20%, rgba(255,255,255,.4), transparent 60%); }
.welcome__copy { position: relative; z-index: 1; max-width: 60ch; }
.welcome__copy h1 { color: #fff; font-size: clamp(1.4rem, 2.6vw, 2rem); margin: 0 0 .5rem; }
.welcome__copy p { color: rgba(255,255,255,.9); margin: 0 0 1.25rem; font-size: 1rem; max-width: 52ch; }
.welcome__btn { display: inline-flex; align-items: center; gap: 1.1rem; background: #fff; color: var(--brand);
  font-weight: 700; padding: .5rem .5rem .5rem 1.2rem; border-radius: 8px; }
.welcome__btn:hover { background: var(--bg-soft); color: var(--brand); text-decoration: none; }
.welcome__arrow { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 6px; background: var(--brand); color: #fff; }
.welcome__arrow svg { width: 18px; height: 18px; }
.welcome__mark { position: relative; z-index: 1; flex: none; width: clamp(72px, 8vw, 104px); aspect-ratio: 1;
  border-radius: var(--radius); background: #fff; display: grid; place-items: center; box-shadow: 0 10px 30px rgba(120,10,25,.35); }
.welcome__mark::before { content: ""; width: 56%; height: 56%; border-radius: 30%; background: var(--grad); }
@media (max-width: 560px) { .welcome__mark { display: none; } }

/* section heads with subtitle */
.section-head--stack { align-items: flex-end; }
.section-sub { color: var(--muted); margin: .35rem 0 0; max-width: 62ch; font-size: .98rem; }

/* browse by category */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: .5rem; }
.cat-card { display: flex; align-items: center; gap: .85rem; padding: .85rem 1rem; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); color: var(--ink);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.cat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: transparent; text-decoration: none; }
.cat-ico { flex: none; width: 46px; height: 46px; border-radius: var(--radius-sm); display: grid; place-items: center;
  font-size: 1.35rem; background: var(--brand-tint); }
.cat-thumb { flex: none; width: 48px; height: 48px; border-radius: var(--radius-sm); overflow: hidden; background: var(--bg-soft); }
.cat-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cat-text { display: flex; flex-direction: column; min-width: 0; }
.cat-name { font-weight: 700; font-size: .98rem; line-height: 1.2; }
.cat-count { color: var(--muted); font-size: .8rem; }

/* popular / featured cards — full-bleed photo with overlaid content */
.feature-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.6rem; margin-top: .5rem; }
.feature-card { position: relative; isolation: isolate; overflow: hidden; border-radius: var(--radius);
  min-height: 300px; background-size: cover; background-position: center; background-color: #2a1418; color: #fff;
  display: grid; grid-template-columns: 1.5fr 1fr; align-items: end; gap: 1rem;
  padding: 1.4rem 1.5rem; box-shadow: var(--shadow-sm);
  transition: box-shadow .2s ease, transform .2s ease; }
.feature-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.feature-card::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(10,8,14,.1) 0%, rgba(10,8,14,.5) 50%, rgba(10,8,14,.92) 100%); }
.feature-card .cover-badge { bottom: auto; top: 1rem; left: 1rem; background: rgba(255,255,255,.9); }
.feature-price { position: absolute; top: 1.05rem; right: 1.3rem; display: inline-flex; align-items: center; gap: .4rem;
  color: #fff; font-size: .86rem; font-weight: 600; }
.feature-price .mi { width: 17px; height: 17px; }
.feature-price b { font-weight: 800; }
.feature-content h3 { margin: .15rem 0 .45rem; font-size: clamp(1.2rem, 2vw, 1.5rem); line-height: 1.2; }
.feature-content h3 a { color: #fff; }
.feature-content h3 a:hover { color: #fff; text-decoration: none; opacity: .92; }
.event-meta--light { color: rgba(255,255,255,.9); }
.event-meta--light .org-avatar { background: rgba(255,255,255,.25); color: #fff; }
.feature-side { align-self: end; display: flex; flex-direction: column; gap: .6rem; }
.feature-side .btn { width: 100%; }
.sold--light { margin-top: .2rem; }
.sold--light .sold-bar { background: rgba(255,255,255,.3); }
.sold--light .sold-meta, .sold--light .sold-meta span { color: #fff; }

/* visionary marketing band — left photo+copy · center heading · right stat+photo */
.visionary { position: relative; margin-top: 3.5rem; isolation: isolate; overflow: hidden; }
.visionary::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--band-maroon); }
.visionary__inner { max-width: 1280px; margin-inline: auto; padding-inline: 1.5rem;
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.55fr) minmax(0, .95fr);
  gap: clamp(1.5rem, 3.5vw, 3.5rem); align-items: center; padding-block: clamp(3rem, 6vw, 5rem); color: #fff; }
.vis-left, .vis-right { display: flex; flex-direction: column; gap: 1.4rem; }
.vis-right { align-items: flex-end; text-align: right; }
.vis-photo { width: 100%; border-radius: 16px; object-fit: cover; box-shadow: 0 20px 50px rgba(0,0,0,.4); }
.vis-left .vis-photo { aspect-ratio: 1 / 1.05; }
.vis-right .vis-photo { aspect-ratio: 3 / 4; }
.vis-left p { color: rgba(255,255,255,.82); font-size: 1rem; margin: 0; line-height: 1.6; }
.vis-heading { color: #fff; font-weight: 800; font-size: clamp(2.4rem, 5.4vw, 5rem); line-height: 1.02;
  letter-spacing: -.01em; margin: 0; text-align: center; }
.vis-stat .stat-num { display: block; font-family: var(--font-display); font-weight: 800; font-size: clamp(2.8rem, 5vw, 4.2rem); color: #fff; line-height: 1; }
.vis-stat .stat-label { color: rgba(255,255,255,.78); font-size: .92rem; }

/* testimonials — 4-column masonry: Joan (L·high) · heading (center-top) ·
   Bryan (R·high) · Samuel + Carolyn (center·low) */
.testimonials { background: var(--bg-blush); padding: clamp(3rem, 6vw, 5.5rem) 1.5rem; }
/* admin-curated testimonials: centred heading on top + responsive card grid */
.testimonials__head--top { max-width: 34ch; margin: 0 auto 2.5rem; }
.testimonial-grid2 { max-width: 1120px; margin-inline: auto;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.2rem; align-items: start; }
.testimonial-grid { max-width: 1120px; margin-inline: auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; align-items: start; }
.t-head { grid-column: 2 / 4; grid-row: 1; text-align: center; padding: 0 .25rem; }
.t-head .quote-mark { display: block; font-family: var(--font-display); font-weight: 800; font-size: 3.4rem; line-height: .5;
  background: linear-gradient(90deg, #3b5bdb, var(--brand)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.t-head h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.12; margin: .6rem auto 0; }
.t-joan { grid-column: 1; grid-row: 1 / span 2; align-self: start; }
.t-bryan { grid-column: 4; grid-row: 1 / span 2; align-self: start; }
.t-samuel { grid-column: 2; grid-row: 2; }
.t-carolyn { grid-column: 3; grid-row: 2; }
.testimonial { background: var(--surface); border-radius: var(--radius); padding: 1.6rem 1.35rem; box-shadow: 0 10px 30px rgba(40,30,50,.06); text-align: center; }
.t-person { display: flex; flex-direction: column; align-items: center; gap: .35rem; margin-bottom: .9rem; }
.t-avatar { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center;
  background: var(--brand-tint); color: var(--brand-700); font-weight: 800; font-size: .95rem; }
.testimonial b { font-size: .95rem; color: var(--ink); }
.t-role { font-size: .78rem; color: var(--muted); }
.testimonial blockquote { margin: 0; font-size: .88rem; line-height: 1.55; color: var(--text); }

/* organizer CTA band — bordered card left · photo right */
.home-cta { position: relative; margin-top: 0; isolation: isolate; overflow: hidden; background: #10132e; }
.home-cta::before { content: ""; position: absolute; inset: -24px; z-index: -2;
  background: url("../img/auditorium.jpg") center / cover no-repeat; filter: blur(5px) brightness(.92); }
.home-cta::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(8,10,24,.3); }
.home-cta__inner { max-width: 1180px; margin-inline: auto; padding-inline: 1.5rem;
  display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  align-items: end; gap: clamp(1.5rem, 3vw, 3rem);
  padding-top: 0; padding-bottom: clamp(1.5rem, 3vw, 2.5rem); min-height: clamp(500px, 46vw, 640px); }
/* cream frame -> frosted panel (blurred section bg) + red button below */
.home-cta__frame { align-self: end; background: #fdf6ec; border-radius: 0; padding: 10px; }
.home-cta__panel { position: relative; isolation: isolate; overflow: hidden;
  border: 1px solid rgba(255,255,255,.18); border-radius: 0; padding: clamp(2.2rem, 3.6vw, 3.2rem); color: #fff; }
.home-cta__panel::before { content: ""; position: absolute; inset: 0; z-index: -2;
  background: url("../img/auditorium.jpg") center / cover; filter: blur(16px) brightness(.55); transform: scale(1.18); }
.home-cta__panel::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(16,20,50,.42); }
.home-cta__panel h2 { color: #fff; font-size: clamp(1.8rem, 3.2vw, 2.6rem); line-height: 1.12; margin: 0 0 1.1rem; }
.home-cta__panel p { color: rgba(255,255,255,.82); margin: 0; max-width: 44ch; font-size: 1.02rem; line-height: 1.55; }
.home-cta__btn { display: inline-flex; align-items: center; gap: 1.4rem; margin: 1.1rem 1.1rem 1.1rem 2.4rem;
  padding: .6rem .6rem .6rem 1.5rem; background: var(--brand); color: #fff; font-weight: 700; border-radius: 8px; }
.home-cta__btn:hover { background: var(--brand-600); color: #fff; text-decoration: none; }
.home-cta__arrow { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 6px;
  background: #fff; color: var(--brand); }
.home-cta__arrow svg { width: 20px; height: 20px; }
.home-cta__media { align-self: stretch; }
.home-cta__media img { display: block; width: 100%; height: 100%; border-radius: 0;
  object-fit: cover; box-shadow: 0 26px 60px rgba(0,0,0,.5); }

/* ============================================================
   EVENT DETAIL (ticket purchase)
   ============================================================ */
.ev { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); padding: clamp(1rem, 2vw, 1.5rem); }
.ev-layout { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); gap: clamp(1.25rem, 2.5vw, 2rem); }

/* hero cover with overlaid date/title + get-ticket bar */
.ev-hero { position: relative; border-radius: var(--radius); overflow: hidden; isolation: isolate;
  min-height: 380px; background-size: cover; background-position: center; display: flex; align-items: flex-end;
  color: #fff; }
.ev-hero--plain { background: linear-gradient(135deg, var(--brand-tint), #f4a6b1); }
.ev-hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(10,8,14,0) 35%, rgba(10,8,14,.55) 65%, rgba(10,8,14,.9) 100%); }
.ev-hero__body { width: 100%; padding: clamp(1.25rem, 2.5vw, 1.75rem); }
.ev-hero__date { display: flex; align-items: center; gap: .5rem; font-weight: 600; font-size: .9rem; color: rgba(255,255,255,.92); }
.ev-hero__date .mi { font-size: .95rem; }
.ev-hero h1 { color: #fff; font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.15; margin: .5rem 0 1rem; }
.ev-hero__actions { display: flex; gap: .6rem; }
.ev-get { flex: 1; background: var(--brand); box-shadow: none; }
.ev-get:hover { background: var(--brand-600); }
.ev-save { flex: none; width: 52px; border: none; border-radius: var(--radius-sm); background: #fff; color: var(--brand);
  font-size: 1.2rem; cursor: pointer; line-height: 1; }
.ev-save::before { content: "\2661"; }
.ev-save.saved::before { content: "\2764"; }

/* location / price info strip */
.ev-info { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.1rem;
  padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--brand-tint); }
.ev-info__cell { display: flex; align-items: center; gap: .7rem; min-width: 0; }
.ev-info__ico { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #2f9e44; }
.ev-info__ico svg { width: 20px; height: 20px; }
.ev-info__text { display: flex; flex-direction: column; min-width: 0; }
.ev-info__k { font-size: .78rem; color: var(--muted); }
.ev-info__v { font-weight: 700; color: var(--ink); font-size: .95rem; }

.ev-block { margin-top: 1.75rem; }
.ev-block h2 { font-size: 1.15rem; margin: 0 0 .5rem; }
.ev-block h3 { font-size: 1.02rem; margin: 0 0 .6rem; }
.ev-desc { color: var(--text); line-height: 1.65; margin: 0; }
.ev-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .9rem; }
.ev-tag { padding: .2rem .7rem; border-radius: var(--radius-pill); background: var(--brand-tint); color: var(--brand-700);
  font-size: .78rem; font-weight: 700; }
a.ev-tag:hover { background: var(--brand); color: #fff; text-decoration: none; }

.ev-org { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.ev-org__id { display: flex; align-items: center; gap: .6rem; min-width: 0; }
.ev-org__id .org-avatar { width: 34px; height: 34px; font-size: .8rem; }
.ev-org__name { font-weight: 700; color: var(--ink); }
.ev-org__id .verified { width: 16px; height: 16px; flex: none; }
.ev-org__meta { margin-top: .5rem; }

/* sidebar cards */
.ev-side { display: flex; flex-direction: column; gap: 1.25rem; }
.ev-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.15rem; }
.ev-card h3 { margin: 0 0 .75rem; font-size: 1.02rem; color: var(--ink); }
.ev-map { height: 190px; border-radius: var(--radius-sm); overflow: hidden; background: var(--bg-soft); margin-bottom: .8rem; }
.ev-qr { display: block; width: 180px; height: 180px; margin: .75rem auto; border-radius: var(--radius-sm); }
.ev-share { display: flex; align-items: center; gap: .5rem; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .4rem .4rem .4rem .7rem; }
.ev-share__link { flex: 1; min-width: 0; font-size: .8rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev-share__copy { flex: none; width: 34px; height: 34px; border: none; border-radius: var(--radius-sm); background: var(--bg-soft); color: var(--ink); cursor: pointer; display: grid; place-items: center; }
.ev-share__copy svg { width: 17px; height: 17px; }
.ev-share__copy.copied { background: var(--success); color: #fff; }

.ev-related { max-width: 1120px; margin: 2.5rem auto 0; }

@media (max-width: 900px) {
  .ev-layout { grid-template-columns: 1fr; }
}

/* ============================================================
   BROWSE / DISCOVER
   ============================================================ */
.browse-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin: .5rem 0 1.25rem; }
.browse-head h1 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 0; }
.browse-filters { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.browse-filters__label { color: var(--muted); font-size: .9rem; }
.filter-select { appearance: none; border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  font-size: .88rem; font-weight: 600; padding: .5rem 2rem .5rem .85rem; border-radius: var(--radius-sm); cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236f7287' d='M6 8 0 2l1.4-1.4L6 5.2 10.6.6 12 2z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .8rem center; }
.filter-select:hover { border-color: #dcdae4; }
.filter-select:focus { outline: none; border-color: var(--brand); box-shadow: var(--ring); }

/* horizontal category selector */
.cat-select { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(210px, 1fr); gap: 1rem;
  overflow-x: auto; padding: .25rem .25rem 1rem; margin-bottom: 1.25rem; scroll-snap-type: x proximity; }
.cat-select::-webkit-scrollbar { height: 6px; }
.cat-select::-webkit-scrollbar-thumb { background: var(--line); border-radius: 999px; }
.cat-select__card { scroll-snap-align: start; display: flex; align-items: center; gap: .85rem; padding: .7rem .9rem;
  background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius-sm); color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease; }
.cat-select__card:hover { border-color: #dcdae4; text-decoration: none; }
.cat-select__card.active { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-tint); }
.cat-select__card .cat-thumb { width: 44px; height: 44px; }
.cat-select__card .cat-ico { width: 44px; height: 44px; }

/* ============================================================
   ORGANIZER LANDING (become an organizer)
   ============================================================ */
.org-lander { position: relative; isolation: isolate; overflow: hidden; background-size: cover; background-position: center; }
.org-lander::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(24,10,12,.72), rgba(24,10,12,.82)); }
.org-lander__inner { position: relative; max-width: 1180px; margin: 0 auto; padding: clamp(3rem, 7vw, 6rem) 1.5rem; min-height: clamp(460px, 50vw, 620px); }
.org-lander__copy { position: relative; z-index: 2; max-width: 720px; margin: 0 auto; text-align: center; color: #fff; }
.org-lander__copy h1 { color: #fff; font-weight: 800; font-size: clamp(2.2rem, 5vw, 4rem); line-height: 1.05; margin: 0 0 1.1rem; }
.org-lander__copy p { color: rgba(255,255,255,.86); font-size: clamp(1rem, 1.4vw, 1.2rem); max-width: 54ch; margin: 0 auto 1.75rem; }
.org-lander .hero-actions { justify-content: center; }
.org-lander__copy .btn-dark { background: rgba(20,16,26,.55); border-color: rgba(255,255,255,.35); color: #fff; }
.org-lander__copy .btn-dark:hover { background: rgba(20,16,26,.75); color: #fff; }
/* scattered photo collage */
.org-lander__collage { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.org-lander__collage .olc { position: absolute; border-radius: var(--radius); overflow: hidden;
  border: 4px solid rgba(255,255,255,.9); box-shadow: 0 20px 50px rgba(6,4,8,.5); }
.org-lander__collage .olc img { width: 100%; height: 100%; object-fit: cover; display: block; }
.org-lander__collage .olc--1 { width: 150px; aspect-ratio: 4/3; top: 6%; left: 50%; transform: translateX(-50%) rotate(-4deg); }
.org-lander__collage .olc--2 { width: 190px; aspect-ratio: 4/3; top: 24%; left: 2%; transform: rotate(6deg); }
.org-lander__collage .olc--3 { width: 175px; aspect-ratio: 3/4; top: 20%; right: 2%; transform: rotate(-6deg); }
.org-lander__collage .olc--4 { width: 200px; aspect-ratio: 4/3; bottom: 4%; left: 8%; transform: rotate(-5deg); }
.org-lander__collage .olc--5 { width: 165px; aspect-ratio: 4/3; bottom: 6%; right: 12%; transform: rotate(5deg); }

/* what we offer — horizontal carousel */
.offer { margin-top: 1rem; }
.offer__nav { display: flex; gap: .6rem; }
.offer__arrow { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface);
  color: var(--ink); font-size: 1.2rem; line-height: 1; cursor: pointer; box-shadow: var(--shadow-sm); }
.offer__arrow:hover { border-color: var(--ink); }
.offer__row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 1fr); gap: 1.25rem;
  overflow-x: auto; scroll-snap-type: x mandatory; padding: .25rem .25rem 1rem; margin-top: 1.25rem; }
.offer__row::-webkit-scrollbar { height: 6px; }
.offer__row::-webkit-scrollbar-thumb { background: var(--line); border-radius: 999px; }
.offer-card { scroll-snap-align: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem 1.4rem; box-shadow: var(--shadow-sm); }
.offer-card h3 { margin: 0 0 .5rem; font-size: 1.05rem; }
.offer-card p { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.55; }

/* three steps — staggered image cards */
.steps2 { background: var(--bg-blush); padding: clamp(3rem, 6vw, 5rem) 0; margin-top: 3rem; }
.steps2__title { text-align: center; font-size: clamp(1.7rem, 3.2vw, 2.6rem); margin: 0; }
.steps2__sub { text-align: center; max-width: 60ch; margin: .6rem auto 2.5rem; }
.steps2__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; align-items: start; }
.step-card { background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.step-card--2 { margin-top: 3rem; }
.step-card--3 { margin-top: 1.5rem; }
.step-card__media { position: relative; }
.step-card__media img { display: block; width: 100%; aspect-ratio: 16/11; object-fit: cover; }
.step-card__n { position: absolute; top: .8rem; left: .8rem; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; background: var(--brand); color: #fff; font-weight: 800; font-size: .95rem; box-shadow: 0 4px 12px rgba(225,21,48,.4); }
.step-card__body { padding: 1.2rem 1.3rem 1.5rem; }
.step-card__body h3 { margin: 0 0 .4rem; font-size: 1.15rem; }
.step-card__body p { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.55; }

@media (max-width: 760px) {
  .org-lander__collage { display: none; }
  .steps2__grid { grid-template-columns: 1fr; }
  .step-card--2, .step-card--3 { margin-top: 0; }
}

/* ---- full-bleed auth screens (login / signup) ---- */
.auth-hero { position: relative; min-height: calc(100vh - var(--nav-h)); display: grid; place-items: center;
  padding: clamp(2rem, 5vw, 4rem) 1.25rem; background-size: cover; background-position: center; isolation: isolate; overflow: hidden; }
.auth-hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(24,10,12,.72), rgba(24,10,12,.82)),
              linear-gradient(115deg, rgba(60,20,14,.6), rgba(20,10,14,.2)); }
.auth-collage { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.auth-collage .ac { position: absolute; border-radius: 0; overflow: hidden;
  border: 4px solid rgba(255,255,255,.85); box-shadow: 0 20px 50px rgba(6,4,8,.5); }
.auth-collage .ac img { width: 100%; height: 100%; object-fit: cover; display: block; }
.auth-collage .ac--1 { width: clamp(150px, 15vw, 220px); aspect-ratio: 4/5; top: 12%; left: 3%; transform: rotate(-7deg); }
.auth-collage .ac--2 { width: clamp(160px, 16vw, 240px); aspect-ratio: 4/3; bottom: 5%; left: 5%; transform: rotate(5deg); }
.auth-collage .ac--3 { width: clamp(150px, 15vw, 210px); aspect-ratio: 4/3; top: 30%; right: 3%; transform: rotate(6deg); }
.auth-collage .ac--4 { width: clamp(130px, 13vw, 185px); aspect-ratio: 1/1; top: 12%; right: 13%; transform: rotate(-5deg); }

.auth-panel { position: relative; z-index: 1; width: 100%; max-width: 640px; }
.auth-panel--wide { max-width: 680px; }
.auth-panel .flashes { margin-bottom: 1rem; }
.auth-glass { border: 1.5px solid rgba(255,255,255,.9); border-radius: 0;
  background: rgba(30,16,20,.42); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  padding: clamp(2rem, 3.4vw, 3rem) clamp(1.75rem, 3.2vw, 2.75rem); color: #fff;
  min-height: 520px; }
.auth-glass h1 { color: #fff; font-weight: 800; font-size: clamp(1.9rem, 4vw, 2.9rem); margin: 0 0 .5rem; }
.auth-sub { color: rgba(255,255,255,.82); margin: 0 0 1.75rem; font-size: 1.02rem; }
.auth-fields { display: flex; flex-direction: column; gap: 1.1rem; }
.auth-fields--2col { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.25rem; }
.auth-fields .field { margin: 0; }
@media (max-width: 620px) { .auth-fields--2col { grid-template-columns: 1fr; } }
.auth-glass .field label { color: rgba(255,255,255,.92); font-weight: 600; }
.auth-glass .input { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.3);
  color: #fff; padding: .95rem 1.1rem; border-radius: 0; }
.auth-glass .input::placeholder { color: rgba(255,255,255,.6); }
.auth-glass .input:hover { border-color: rgba(255,255,255,.5); }
.auth-glass .input:focus { background: rgba(255,255,255,.16); border-color: #fff; box-shadow: 0 0 0 3px rgba(255,255,255,.2); }
.auth-glass .field-error { color: #ffd2d2; }
.auth-glass .hint { color: rgba(255,255,255,.62); }

.auth-footer { position: relative; z-index: 1; margin-top: 1rem; background: #fdf6ec; border-radius: 0;
  padding: 1.5rem clamp(1.25rem, 3vw, 2rem); box-shadow: var(--shadow); }
.auth-alt { text-align: center; margin: 1rem 0 0; color: var(--text); font-weight: 600; }
.auth-alt a { color: var(--brand); font-weight: 700; }
/* honour "no border radius" across the auth screen, buttons included;
   flat vivid red action button (not the site gradient) to match the design */
.auth-hero .btn { border-radius: 0; background: var(--brand); box-shadow: none; }
.auth-hero .btn:hover { background: var(--brand-600); }
@media (max-width: 720px) { .auth-collage { display: none; } }

@media (max-width: 960px) {
  .home-hero__inner { grid-template-columns: minmax(0, 1fr); }
  .home-hero__collage { display: none; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-row { grid-template-columns: 1fr; }
  .visionary__inner { grid-template-columns: 1fr; gap: 1.75rem; }
  .vis-right { align-items: flex-start; text-align: left; }
  .vis-heading { text-align: left; }
  .testimonial-grid { grid-template-columns: repeat(2, 1fr); }
  .t-head { grid-column: 1 / -1; grid-row: auto; }
  .t-joan, .t-bryan, .t-samuel, .t-carolyn { grid-column: auto; grid-row: auto; align-self: stretch; }
  .home-cta__inner { grid-template-columns: 1fr; min-height: 0; padding-top: clamp(2.5rem, 6vw, 4rem); }
  .home-cta__frame { align-self: stretch; }
  .home-cta__media { align-self: stretch; }
  .home-cta__media img { height: auto; aspect-ratio: 16 / 11; }
}
@media (max-width: 560px) {
  .cat-grid { grid-template-columns: 1fr; }
  .feature-card { grid-template-columns: 1fr; align-items: stretch; }
  .feature-side { align-self: stretch; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .section-head--stack { flex-direction: column; align-items: flex-start; gap: .5rem; }
  .home-hero h1 { font-size: 2.1rem; line-height: 1.08; overflow-wrap: break-word; }
  .home-hero p { font-size: 1rem; }
}

@media (max-width: 900px) {
  .detail-layout, .checkout-layout { grid-template-columns: 1fr; }
  .ticket-panel, .summary-card, .reserve-card { position: static; }
}
@media (max-width: 640px) {
  .follow-email { flex-direction: column; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 1.9rem; }
  .container { padding: 1.25rem 1rem; }
  .grid-2 { grid-template-columns: 1fr; }
  .table { display: block; overflow-x: auto; }
  .filters .input { flex-basis: 100%; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-nav { flex-direction: row; overflow-x: auto; }
}

/* ---------------------------------------------------------------- */
/* Footer legal links                                               */
/* ---------------------------------------------------------------- */
.footer-links { margin-top: .35rem; font-size: .85rem; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--brand); text-decoration: underline; }
.footer-links span { color: var(--line); margin: 0 .4rem; }

/* ---------------------------------------------------------------- */
/* Legal / policy pages                                             */
/* ---------------------------------------------------------------- */
.legal { max-width: 760px; margin: 0 auto; padding: 1rem 0 3rem; line-height: 1.7; }
.legal h1 { margin-bottom: .25rem; }
.legal h2 { margin-top: 2rem; font-size: 1.15rem; color: var(--ink); }
.legal ul { padding-left: 1.25rem; }
.legal li { margin: .35rem 0; }
.legal-table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.legal-table th, .legal-table td {
  text-align: left; padding: .6rem .7rem; border-bottom: 1px solid var(--line);
  vertical-align: top; font-size: .95rem;
}
.legal-table th { color: var(--muted); font-weight: 600; }

/* ---------------------------------------------------------------- */
/* Cookie consent banner                                            */
/* ---------------------------------------------------------------- */
.cookie-banner {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 1000;
  max-width: 720px; margin: 0 auto;
  display: flex; gap: 1rem; align-items: center; justify-content: space-between;
  flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-hover);
  padding: 1rem 1.15rem;
}
.cookie-banner-text { flex: 1 1 320px; }
.cookie-banner-text strong { display: block; margin-bottom: .15rem; color: var(--ink); }
.cookie-banner-text p { margin: 0; font-size: .9rem; color: var(--text); }
.cookie-banner-text a { color: var(--brand); }
.cookie-banner-actions { flex: 0 0 auto; }
@media (max-width: 520px) {
  .cookie-banner { left: .5rem; right: .5rem; bottom: .5rem; }
  .cookie-banner-actions { width: 100%; }
  .cookie-banner-actions .btn { width: 100%; }
}

/* Ticket picker: hide non-selected tiers when using the type dropdown */
.tier--hidden { display: none !important; }
.tier-select-field { margin-bottom: .5rem; }

/* Rendered rich-text (event description: markdown -> sanitized HTML) */
.rich-text p { margin: 0 0 .75rem; }
.rich-text ul, .rich-text ol { margin: 0 0 .75rem; padding-left: 1.4rem; }
.rich-text li { margin: .25rem 0; }
.rich-text h3, .rich-text h4, .rich-text h5 { margin: 1rem 0 .4rem; color: var(--ink); }
.rich-text a { color: var(--brand); text-decoration: underline; }
.rich-text blockquote { margin: .75rem 0; padding: .4rem .9rem; border-left: 3px solid var(--line); color: var(--muted); }
.rich-text code { background: var(--bg-soft); padding: .1rem .35rem; border-radius: 6px; font-size: .9em; }
.rich-text pre { background: var(--bg-soft); padding: .7rem .9rem; border-radius: var(--radius-sm); overflow-x: auto; }

/* Ticket view footer branding */
.ticket-powered { margin-top: .75rem; padding-top: .75rem; border-top: 1px solid var(--line); }

/* Order page: per-ticket actions */
.ticket-card-actions { margin-top: .35rem; display: flex; gap: .75rem; }
.ticket-card-actions a { font-size: .82rem; color: var(--brand); text-decoration: none; }
.ticket-card-actions a:hover { text-decoration: underline; }

/* ---------------------------------------------------------------- */
/* Organizer console (sidebar shell)                                */
/* ---------------------------------------------------------------- */
.org-shell { display: grid; grid-template-columns: 224px 1fr; gap: 1.75rem; }
.org-nav { display: flex; flex-direction: column; gap: .15rem; position: sticky;
  top: calc(var(--nav-h) + 1rem); align-self: start; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); padding: .5rem;
  box-shadow: var(--shadow-sm); }
.org-nav a { display: flex; align-items: center; gap: .6rem; padding: .58rem .8rem;
  border-radius: var(--radius-sm); color: var(--text); font-weight: 550; font-size: .93rem; }
.org-nav a:hover { background: var(--bg-soft); color: var(--ink); text-decoration: none; }
.org-nav a.active { background: var(--brand-tint); color: var(--brand-700); }
.org-nav .org-ico { width: 1.2rem; text-align: center; font-size: 1rem; }
.org-nav__cta { justify-content: center; background: var(--grad-btn); color: #fff !important;
  font-weight: 700; margin-bottom: .4rem; box-shadow: var(--shadow-sm); }
.org-nav__cta:hover { filter: brightness(1.05); background: var(--grad-btn); }
.org-main h1 { margin-top: 0; }
.org-metrics { margin: 1rem 0 1.5rem; }
.metric--accent { background: var(--brand-tint); border-color: var(--brand-tint-line); }
.org-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
@media (max-width: 900px) {
  .org-shell { grid-template-columns: 1fr; }
  .org-nav { flex-direction: row; overflow-x: auto; }
  .org-nav__cta { white-space: nowrap; }
  .org-grid { grid-template-columns: 1fr; }
}

/* Admin sidebar: settings sub-group */
.admin-nav__group { margin: .5rem .3rem .1rem; font-size: .72rem; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.admin-nav__sub { padding-left: 1.4rem !important; font-size: .9rem; }

/* Fix input overflow inside grids/modals (datetime-local has a wide intrinsic
   min-width; min-width:0 lets grid/flex children shrink) */
.grid-2 > * { min-width: 0; }
.field { min-width: 0; }
.input { width: 100%; box-sizing: border-box; max-width: 100%; }
.ticket-modal-panel { overflow-x: hidden; }
.ticket-modal-panel .input { min-width: 0; }

/* Segmented control (paid vs free event) */
.segmented { display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius-pill);
  padding: 3px; gap: 3px; background: var(--bg-soft); }
.segmented .seg { position: relative; cursor: pointer; }
.segmented .seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.segmented .seg span { display: inline-block; padding: .45rem 1rem; border-radius: var(--radius-pill);
  font-weight: 600; font-size: .9rem; color: var(--muted); }
.segmented .seg input:checked + span { background: var(--surface); color: var(--brand-700);
  box-shadow: var(--shadow-sm); }

/* Tabs (accreditation overview / attendees) */
.tabs { display: flex; gap: .25rem; border-bottom: 1px solid var(--line); margin: 1.25rem 0 1rem; }
.tabs .tab { border: none; background: none; padding: .6rem .9rem; font-weight: 600; font-size: .95rem;
  color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs .tab:hover { color: var(--ink); }
.tabs .tab.active { color: var(--brand-700); border-bottom-color: var(--brand); }
.tab-panel.hidden { display: none; }

/* Chart cards */
.chart-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.chart-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1rem 1.1rem; box-shadow: var(--shadow-sm); min-width: 0; }
.chart-card h3 { margin: 0 0 .6rem; font-size: 1rem; }
.chart-card--wide { grid-column: 1 / -1; }
@media (max-width: 720px) { .chart-grid { grid-template-columns: 1fr; } }

/* Organizer event share card */
.share-row { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; margin-bottom: .8rem; }
.share-row .ev-share { flex: 1; min-width: 220px; }
.share-qr { display: block; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; padding: 6px; }

/* User dashboard quick tiles */
.quick-tile { display: flex; align-items: center; gap: .8rem; text-decoration: none; color: var(--ink); }
.quick-tile:hover { box-shadow: var(--shadow-hover); text-decoration: none; }
.quick-tile .quick-ico { font-size: 1.6rem; }
